Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
35996d22 | 3 | # Generated by GNU Autoconf 2.59. |
ba4481b5 | 4 | # |
35996d22 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
ba4481b5 DL |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc MR |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
503d2be0 AS |
11 | |
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
6bae0ccf DL |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
21 | fi | |
35996d22 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
503d2be0 | 23 | |
c0d27fcc | 24 | # Support unset when possible. |
35996d22 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
6bae0ccf DL |
31 | |
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
19650fd6 AS |
39 | for as_var in \ |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 43 | do |
35996d22 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
45 | eval $as_var=C; export $as_var |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
c0d27fcc MR |
63 | |
64 | ||
503d2be0 | 65 | # Name of the executable. |
6bae0ccf | 66 | as_me=`$as_basename "$0" || |
c0d27fcc MR |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
6bae0ccf | 77 | |
c0d27fcc MR |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
19650fd6 AS |
88 | echo "#! /bin/sh" >conf$$.sh |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
c0d27fcc MR |
92 | PATH_SEPARATOR=';' |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
19650fd6 | 96 | rm -f conf$$.sh |
c0d27fcc MR |
97 | fi |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6bae0ccf DL |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
c0d27fcc MR |
146 | CONFIG_SHELL=$as_dir/$as_base |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
503d2be0 AS |
193 | |
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
6bae0ccf DL |
218 | if mkdir -p . 2>/dev/null; then |
219 | as_mkdir_p=: | |
220 | else | |
35996d22 | 221 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
222 | as_mkdir_p=false |
223 | fi | |
224 | ||
503d2be0 AS |
225 | as_executable_p="test -f" |
226 | ||
c0d27fcc | 227 | # Sed expression to map a string onto a valid CPP name. |
35996d22 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
35996d22 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 232 | |
503d2be0 AS |
233 | |
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
6bae0ccf | 241 | $as_unset CDPATH |
c0d27fcc | 242 | |
503d2be0 AS |
243 | |
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
ba4481b5 | 254 | ac_default_prefix=/usr/local |
6bae0ccf | 255 | ac_config_libobj_dir=. |
503d2be0 AS |
256 | cross_compiling=no |
257 | subdirs= | |
c0d27fcc MR |
258 | MFLAGS= |
259 | MAKEFLAGS= | |
503d2be0 AS |
260 | SHELL=${CONFIG_SHELL-/bin/sh} |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
c0d27fcc MR |
267 | # Identity of this package. |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
503d2be0 | 274 | ac_unique_file="src/lisp.h" |
6bae0ccf | 275 | ac_config_libobj_dir=src |
503d2be0 AS |
276 | # Factoring default headers for most tests. |
277 | ac_includes_default="\ | |
278 | #include <stdio.h> | |
279 | #if HAVE_SYS_TYPES_H | |
280 | # include <sys/types.h> | |
281 | #endif | |
282 | #if HAVE_SYS_STAT_H | |
283 | # include <sys/stat.h> | |
284 | #endif | |
285 | #if STDC_HEADERS | |
286 | # include <stdlib.h> | |
287 | # include <stddef.h> | |
288 | #else | |
289 | # if HAVE_STDLIB_H | |
290 | # include <stdlib.h> | |
291 | # endif | |
292 | #endif | |
293 | #if HAVE_STRING_H | |
294 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
295 | # include <memory.h> | |
296 | # endif | |
297 | # include <string.h> | |
298 | #endif | |
299 | #if HAVE_STRINGS_H | |
300 | # include <strings.h> | |
301 | #endif | |
302 | #if HAVE_INTTYPES_H | |
303 | # include <inttypes.h> | |
304 | #else | |
305 | # if HAVE_STDINT_H | |
306 | # include <stdint.h> | |
307 | # endif | |
308 | #endif | |
309 | #if HAVE_UNISTD_H | |
310 | # include <unistd.h> | |
311 | #endif" | |
ba4481b5 | 312 | |
19650fd6 | 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS' |
6bae0ccf | 314 | ac_subst_files='' |
c0d27fcc | 315 | |
ba4481b5 | 316 | # Initialize some variables set by options. |
503d2be0 AS |
317 | ac_init_help= |
318 | ac_init_version=false | |
ba4481b5 DL |
319 | # The variables have the same names as the options, with |
320 | # dashes changed to underlines. | |
503d2be0 | 321 | cache_file=/dev/null |
ba4481b5 | 322 | exec_prefix=NONE |
ba4481b5 | 323 | no_create= |
ba4481b5 DL |
324 | no_recursion= |
325 | prefix=NONE | |
326 | program_prefix=NONE | |
327 | program_suffix=NONE | |
328 | program_transform_name=s,x,x, | |
329 | silent= | |
330 | site= | |
331 | srcdir= | |
ba4481b5 DL |
332 | verbose= |
333 | x_includes=NONE | |
334 | x_libraries=NONE | |
503d2be0 AS |
335 | |
336 | # Installation directory options. | |
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
338 | # and all the variables that are supposed to be based on exec_prefix | |
339 | # by default will actually change. | |
340 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ba4481b5 DL |
341 | bindir='${exec_prefix}/bin' |
342 | sbindir='${exec_prefix}/sbin' | |
343 | libexecdir='${exec_prefix}/libexec' | |
344 | datadir='${prefix}/share' | |
345 | sysconfdir='${prefix}/etc' | |
346 | sharedstatedir='${prefix}/com' | |
347 | localstatedir='${prefix}/var' | |
348 | libdir='${exec_prefix}/lib' | |
349 | includedir='${prefix}/include' | |
350 | oldincludedir='/usr/include' | |
351 | infodir='${prefix}/info' | |
352 | mandir='${prefix}/man' | |
353 | ||
ba4481b5 DL |
354 | ac_prev= |
355 | for ac_option | |
356 | do | |
ba4481b5 DL |
357 | # If the previous option needs an argument, assign it. |
358 | if test -n "$ac_prev"; then | |
359 | eval "$ac_prev=\$ac_option" | |
360 | ac_prev= | |
361 | continue | |
362 | fi | |
363 | ||
503d2be0 | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ba4481b5 DL |
365 | |
366 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
367 | ||
503d2be0 | 368 | case $ac_option in |
ba4481b5 DL |
369 | |
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
371 | ac_prev=bindir ;; | |
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 373 | bindir=$ac_optarg ;; |
ba4481b5 DL |
374 | |
375 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 376 | ac_prev=build_alias ;; |
ba4481b5 | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 378 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
379 | |
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
382 | ac_prev=cache_file ;; | |
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
385 | cache_file=$ac_optarg ;; |
386 | ||
387 | --config-cache | -C) | |
388 | cache_file=config.cache ;; | |
ba4481b5 DL |
389 | |
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
391 | ac_prev=datadir ;; | |
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
393 | | --da=*) | |
503d2be0 | 394 | datadir=$ac_optarg ;; |
ba4481b5 DL |
395 | |
396 | -disable-* | --disable-*) | |
503d2be0 | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 398 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
401 | { (exit 1); exit 1; }; } | |
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
403 | eval "enable_$ac_feature=no" ;; | |
ba4481b5 DL |
404 | |
405 | -enable-* | --enable-*) | |
503d2be0 | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 407 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
410 | { (exit 1); exit 1; }; } | |
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
412 | case $ac_option in | |
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
414 | *) ac_optarg=yes ;; |
415 | esac | |
503d2be0 | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
ba4481b5 DL |
417 | |
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
420 | | --exec | --exe | --ex) | |
421 | ac_prev=exec_prefix ;; | |
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
424 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 425 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
426 | |
427 | -gas | --gas | --ga | --g) | |
428 | # Obsolete; use --with-gas. | |
429 | with_gas=yes ;; | |
430 | ||
503d2be0 AS |
431 | -help | --help | --hel | --he | -h) |
432 | ac_init_help=long ;; | |
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
434 | ac_init_help=recursive ;; | |
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
436 | ac_init_help=short ;; | |
ba4481b5 DL |
437 | |
438 | -host | --host | --hos | --ho) | |
503d2be0 | 439 | ac_prev=host_alias ;; |
ba4481b5 | 440 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 441 | host_alias=$ac_optarg ;; |
ba4481b5 DL |
442 | |
443 | -includedir | --includedir | --includedi | --included | --include \ | |
444 | | --includ | --inclu | --incl | --inc) | |
445 | ac_prev=includedir ;; | |
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 448 | includedir=$ac_optarg ;; |
ba4481b5 DL |
449 | |
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
451 | ac_prev=infodir ;; | |
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 453 | infodir=$ac_optarg ;; |
ba4481b5 DL |
454 | |
455 | -libdir | --libdir | --libdi | --libd) | |
456 | ac_prev=libdir ;; | |
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 458 | libdir=$ac_optarg ;; |
ba4481b5 DL |
459 | |
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
461 | | --libexe | --libex | --libe) | |
462 | ac_prev=libexecdir ;; | |
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
464 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 465 | libexecdir=$ac_optarg ;; |
ba4481b5 DL |
466 | |
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
468 | | --localstate | --localstat | --localsta | --localst \ | |
469 | | --locals | --local | --loca | --loc | --lo) | |
470 | ac_prev=localstatedir ;; | |
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
503d2be0 | 474 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
475 | |
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
477 | ac_prev=mandir ;; | |
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 479 | mandir=$ac_optarg ;; |
ba4481b5 DL |
480 | |
481 | -nfp | --nfp | --nf) | |
482 | # Obsolete; use --without-fp. | |
483 | with_fp=no ;; | |
484 | ||
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 486 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
487 | no_create=yes ;; |
488 | ||
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
491 | no_recursion=yes ;; | |
492 | ||
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
495 | | --oldin | --oldi | --old | --ol | --o) | |
496 | ac_prev=oldincludedir ;; | |
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 500 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
501 | |
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
503 | ac_prev=prefix ;; | |
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 505 | prefix=$ac_optarg ;; |
ba4481b5 DL |
506 | |
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
508 | | --program-pre | --program-pr | --program-p) | |
509 | ac_prev=program_prefix ;; | |
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 512 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
513 | |
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
515 | | --program-suf | --program-su | --program-s) | |
516 | ac_prev=program_suffix ;; | |
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 519 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
520 | |
521 | -program-transform-name | --program-transform-name \ | |
522 | | --program-transform-nam | --program-transform-na \ | |
523 | | --program-transform-n | --program-transform- \ | |
524 | | --program-transform | --program-transfor \ | |
525 | | --program-transfo | --program-transf \ | |
526 | | --program-trans | --program-tran \ | |
527 | | --progr-tra | --program-tr | --program-t) | |
528 | ac_prev=program_transform_name ;; | |
529 | -program-transform-name=* | --program-transform-name=* \ | |
530 | | --program-transform-nam=* | --program-transform-na=* \ | |
531 | | --program-transform-n=* | --program-transform-=* \ | |
532 | | --program-transform=* | --program-transfor=* \ | |
533 | | --program-transfo=* | --program-transf=* \ | |
534 | | --program-trans=* | --program-tran=* \ | |
535 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 536 | program_transform_name=$ac_optarg ;; |
ba4481b5 DL |
537 | |
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
539 | | -silent | --silent | --silen | --sile | --sil) | |
540 | silent=yes ;; | |
541 | ||
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
543 | ac_prev=sbindir ;; | |
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
545 | | --sbi=* | --sb=*) | |
503d2be0 | 546 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
547 | |
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
550 | | --sharedst | --shareds | --shared | --share | --shar \ | |
551 | | --sha | --sh) | |
552 | ac_prev=sharedstatedir ;; | |
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
556 | | --sha=* | --sh=*) | |
503d2be0 | 557 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
558 | |
559 | -site | --site | --sit) | |
560 | ac_prev=site ;; | |
561 | -site=* | --site=* | --sit=*) | |
503d2be0 | 562 | site=$ac_optarg ;; |
ba4481b5 DL |
563 | |
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
565 | ac_prev=srcdir ;; | |
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 567 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
568 | |
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
570 | | --syscon | --sysco | --sysc | --sys | --sy) | |
571 | ac_prev=sysconfdir ;; | |
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 574 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
575 | |
576 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 577 | ac_prev=target_alias ;; |
ba4481b5 | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 579 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
580 | |
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
582 | verbose=yes ;; | |
583 | ||
503d2be0 AS |
584 | -version | --version | --versio | --versi | --vers | -V) |
585 | ac_init_version=: ;; | |
ba4481b5 DL |
586 | |
587 | -with-* | --with-*) | |
503d2be0 | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 589 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
592 | { (exit 1); exit 1; }; } | |
ba4481b5 | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
503d2be0 AS |
594 | case $ac_option in |
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
596 | *) ac_optarg=yes ;; |
597 | esac | |
503d2be0 | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
ba4481b5 DL |
599 | |
600 | -without-* | --without-*) | |
503d2be0 | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 602 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
605 | { (exit 1); exit 1; }; } | |
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
607 | eval "with_$ac_package=no" ;; | |
ba4481b5 DL |
608 | |
609 | --x) | |
610 | # Obsolete; use --with-x. | |
611 | with_x=yes ;; | |
612 | ||
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
614 | | --x-incl | --x-inc | --x-in | --x-i) | |
615 | ac_prev=x_includes ;; | |
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 618 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
619 | |
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
622 | ac_prev=x_libraries ;; | |
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 625 | x_libraries=$ac_optarg ;; |
ba4481b5 | 626 | |
503d2be0 AS |
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
628 | Try \`$0 --help' for more information." >&2 | |
629 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
630 | ;; |
631 | ||
503d2be0 AS |
632 | *=*) |
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
634 | # Reject names that are not valid shell variable names. | |
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
637 | { (exit 1); exit 1; }; } | |
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
639 | eval "$ac_envvar='$ac_optarg'" | |
640 | export $ac_envvar ;; | |
641 | ||
ba4481b5 | 642 | *) |
503d2be0 AS |
643 | # FIXME: should be removed in autoconf 3.0. |
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
648 | ;; |
649 | ||
650 | esac | |
651 | done | |
652 | ||
653 | if test -n "$ac_prev"; then | |
503d2be0 AS |
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
656 | { (exit 1); exit 1; }; } | |
ba4481b5 | 657 | fi |
ba4481b5 | 658 | |
503d2be0 AS |
659 | # Be sure to have absolute paths. |
660 | for ac_var in exec_prefix prefix | |
661 | do | |
662 | eval ac_val=$`echo $ac_var` | |
663 | case $ac_val in | |
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
c0d27fcc | 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 AS |
666 | { (exit 1); exit 1; }; };; |
667 | esac | |
668 | done | |
ba4481b5 | 669 | |
503d2be0 AS |
670 | # Be sure to have absolute paths. |
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
35996d22 | 672 | localstatedir libdir includedir oldincludedir infodir mandir |
ba4481b5 | 673 | do |
503d2be0 AS |
674 | eval ac_val=$`echo $ac_var` |
675 | case $ac_val in | |
676 | [\\/$]* | ?:[\\/]* ) ;; | |
c0d27fcc | 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 | 678 | { (exit 1); exit 1; }; };; |
ba4481b5 DL |
679 | esac |
680 | done | |
681 | ||
503d2be0 AS |
682 | # There might be people who depend on the old broken behavior: `$host' |
683 | # used to hold the argument of --host etc. | |
c0d27fcc | 684 | # FIXME: To remove some day. |
503d2be0 AS |
685 | build=$build_alias |
686 | host=$host_alias | |
687 | target=$target_alias | |
688 | ||
c0d27fcc | 689 | # FIXME: To remove some day. |
503d2be0 AS |
690 | if test "x$host_alias" != x; then |
691 | if test "x$build_alias" = x; then | |
692 | cross_compiling=maybe | |
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
694 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
695 | elif test "x$build_alias" != "x$host_alias"; then | |
696 | cross_compiling=yes | |
697 | fi | |
698 | fi | |
ba4481b5 | 699 | |
503d2be0 AS |
700 | ac_tool_prefix= |
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 702 | |
503d2be0 | 703 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 704 | |
c0d27fcc | 705 | |
ba4481b5 DL |
706 | # Find the source files, if location was not specified. |
707 | if test -z "$srcdir"; then | |
708 | ac_srcdir_defaulted=yes | |
709 | # Try the directory containing this script, then its parent. | |
c0d27fcc MR |
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
712 | X"$0" : 'X\(//\)[^/]' \| \ |
713 | X"$0" : 'X\(//\)$' \| \ | |
714 | X"$0" : 'X\(/\)' \| \ | |
715 | . : '\(.\)' 2>/dev/null || | |
c0d27fcc MR |
716 | echo X"$0" | |
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
719 | /^X\(\/\/\)$/{ s//\1/; q; } | |
720 | /^X\(\/\).*/{ s//\1/; q; } | |
721 | s/.*/./; q'` | |
ba4481b5 DL |
722 | srcdir=$ac_confdir |
723 | if test ! -r $srcdir/$ac_unique_file; then | |
724 | srcdir=.. | |
725 | fi | |
726 | else | |
727 | ac_srcdir_defaulted=no | |
728 | fi | |
729 | if test ! -r $srcdir/$ac_unique_file; then | |
730 | if test "$ac_srcdir_defaulted" = yes; then | |
c0d27fcc | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
503d2be0 | 732 | { (exit 1); exit 1; }; } |
ba4481b5 | 733 | else |
c0d27fcc | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
503d2be0 | 735 | { (exit 1); exit 1; }; } |
ba4481b5 DL |
736 | fi |
737 | fi | |
6bae0ccf DL |
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
740 | { (exit 1); exit 1; }; } | |
503d2be0 AS |
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
742 | ac_env_build_alias_set=${build_alias+set} | |
743 | ac_env_build_alias_value=$build_alias | |
744 | ac_cv_env_build_alias_set=${build_alias+set} | |
745 | ac_cv_env_build_alias_value=$build_alias | |
746 | ac_env_host_alias_set=${host_alias+set} | |
747 | ac_env_host_alias_value=$host_alias | |
748 | ac_cv_env_host_alias_set=${host_alias+set} | |
749 | ac_cv_env_host_alias_value=$host_alias | |
750 | ac_env_target_alias_set=${target_alias+set} | |
751 | ac_env_target_alias_value=$target_alias | |
752 | ac_cv_env_target_alias_set=${target_alias+set} | |
753 | ac_cv_env_target_alias_value=$target_alias | |
754 | ac_env_CC_set=${CC+set} | |
755 | ac_env_CC_value=$CC | |
756 | ac_cv_env_CC_set=${CC+set} | |
757 | ac_cv_env_CC_value=$CC | |
758 | ac_env_CFLAGS_set=${CFLAGS+set} | |
759 | ac_env_CFLAGS_value=$CFLAGS | |
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_cv_env_CFLAGS_value=$CFLAGS | |
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_env_LDFLAGS_value=$LDFLAGS | |
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
767 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_env_CPP_set=${CPP+set} | |
771 | ac_env_CPP_value=$CPP | |
772 | ac_cv_env_CPP_set=${CPP+set} | |
773 | ac_cv_env_CPP_value=$CPP | |
774 | ||
775 | # | |
776 | # Report the --help message. | |
777 | # | |
778 | if test "$ac_init_help" = "long"; then | |
779 | # Omit some internal or obsolete options to make the list less imposing. | |
780 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 781 | cat <<_ACEOF |
503d2be0 AS |
782 | \`configure' configures this package to adapt to many kinds of systems. |
783 | ||
784 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
785 | ||
786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
787 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
788 | ||
789 | Defaults for the options are specified in brackets. | |
790 | ||
791 | Configuration: | |
792 | -h, --help display this help and exit | |
793 | --help=short display options specific to this package | |
794 | --help=recursive display the short help of all the included packages | |
795 | -V, --version display version information and exit | |
796 | -q, --quiet, --silent do not print \`checking...' messages | |
797 | --cache-file=FILE cache test results in FILE [disabled] | |
798 | -C, --config-cache alias for \`--cache-file=config.cache' | |
799 | -n, --no-create do not create output files | |
800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
801 | ||
c0d27fcc | 802 | _ACEOF |
503d2be0 | 803 | |
c0d27fcc | 804 | cat <<_ACEOF |
503d2be0 AS |
805 | Installation directories: |
806 | --prefix=PREFIX install architecture-independent files in PREFIX | |
35996d22 | 807 | [$ac_default_prefix] |
503d2be0 | 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
35996d22 | 809 | [PREFIX] |
503d2be0 AS |
810 | |
811 | By default, \`make install' will install all the files in | |
812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
814 | for instance \`--prefix=\$HOME'. | |
815 | ||
816 | For better control, use the options below. | |
817 | ||
818 | Fine tuning of the installation directories: | |
819 | --bindir=DIR user executables [EPREFIX/bin] | |
820 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
821 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
826 | --libdir=DIR object code libraries [EPREFIX/lib] | |
827 | --includedir=DIR C header files [PREFIX/include] | |
828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
829 | --infodir=DIR info documentation [PREFIX/info] | |
830 | --mandir=DIR man documentation [PREFIX/man] | |
c0d27fcc | 831 | _ACEOF |
503d2be0 | 832 | |
c0d27fcc | 833 | cat <<\_ACEOF |
503d2be0 | 834 | |
ba5da88a PJ |
835 | Program names: |
836 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
837 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
838 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
839 | ||
503d2be0 AS |
840 | X features: |
841 | --x-includes=DIR X include files are in DIR | |
842 | --x-libraries=DIR X library files are in DIR | |
843 | ||
844 | System types: | |
845 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
846 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
847 | _ACEOF | |
503d2be0 AS |
848 | fi |
849 | ||
850 | if test -n "$ac_init_help"; then | |
851 | ||
c0d27fcc | 852 | cat <<\_ACEOF |
503d2be0 AS |
853 | |
854 | Optional Features: | |
855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6a3a24fa JD |
857 | --enable-carbon-app[=DIR] [DIR=/Application] |
858 | specify install directory for Emacs.app on Mac OS X | |
19650fd6 AS |
859 | --enable-maintainer-mode enable make rules and dependencies not useful |
860 | (and sometimes confusing) to the casual installer | |
503d2be0 AS |
861 | --disable-largefile omit support for large files |
862 | ||
863 | Optional Packages: | |
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
866 | --without-gcc don't use GCC to compile Emacs if GCC is found | |
867 | --without-pop don't support POP mail retrieval with movemail | |
868 | --with-kerberos support Kerberos-authenticated POP | |
869 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
870 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 871 | --without-sound don't compile with sound support |
488dd4c4 JD |
872 | --with-x-toolkit=KIT use an X toolkit |
873 | (KIT = yes/lucid/athena/motif/gtk/no) | |
503d2be0 AS |
874 | --with-xpm use -lXpm for displaying XPM images |
875 | --with-jpeg use -ljpeg for displaying JPEG images | |
876 | --with-tiff use -ltiff for displaying TIFF images | |
877 | --with-gif use -lungif for displaying GIF images | |
878 | --with-png use -lpng for displaying PNG images | |
488dd4c4 JD |
879 | --with-gtk use GTK (same as --with-x-toolkit=gtk) |
880 | --with-pkg-config-prog Path to pkg-config to use for finding GTK | |
503d2be0 | 881 | --without-toolkit-scroll-bars |
cc227489 MB |
882 | don't use Motif or Xaw3d scroll bars |
883 | --without-xim don't use X11 XIM | |
e0f712ba | 884 | --without-carbon don't use Carbon GUI on Mac OS X |
503d2be0 AS |
885 | --with-x use the X Window System |
886 | ||
887 | Some influential environment variables: | |
888 | CC C compiler command | |
889 | CFLAGS C compiler flags | |
890 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
891 | nonstandard directory <lib dir> | |
892 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
893 | headers in a nonstandard directory <include dir> | |
894 | CPP C preprocessor | |
895 | ||
896 | Use these variables to override the choices made by `configure' or to help | |
897 | it to find libraries and programs with nonstandard names/locations. | |
898 | ||
c0d27fcc | 899 | _ACEOF |
503d2be0 AS |
900 | fi |
901 | ||
902 | if test "$ac_init_help" = "recursive"; then | |
903 | # If there are subdirs, report their specific --help. | |
904 | ac_popdir=`pwd` | |
c0d27fcc MR |
905 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
906 | test -d $ac_dir || continue | |
907 | ac_builddir=. | |
908 | ||
909 | if test "$ac_dir" != .; then | |
910 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
911 | # A "../" for each directory in $ac_dir_suffix. | |
912 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
913 | else | |
914 | ac_dir_suffix= ac_top_builddir= | |
915 | fi | |
503d2be0 | 916 | |
c0d27fcc MR |
917 | case $srcdir in |
918 | .) # No --srcdir option. We are building in place. | |
919 | ac_srcdir=. | |
920 | if test -z "$ac_top_builddir"; then | |
921 | ac_top_srcdir=. | |
922 | else | |
923 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
924 | fi ;; | |
925 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
926 | ac_srcdir=$srcdir$ac_dir_suffix; | |
927 | ac_top_srcdir=$srcdir ;; | |
928 | *) # Relative path. | |
929 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
930 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
931 | esac | |
35996d22 AS |
932 | |
933 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
934 | # the directories may not exist. | |
935 | case `pwd` in | |
936 | .) ac_abs_builddir="$ac_dir";; | |
937 | *) | |
938 | case "$ac_dir" in | |
939 | .) ac_abs_builddir=`pwd`;; | |
940 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
941 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
942 | esac;; | |
943 | esac | |
944 | case $ac_abs_builddir in | |
945 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
946 | *) | |
947 | case ${ac_top_builddir}. in | |
948 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
949 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
950 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
951 | esac;; | |
952 | esac | |
953 | case $ac_abs_builddir in | |
954 | .) ac_abs_srcdir=$ac_srcdir;; | |
955 | *) | |
956 | case $ac_srcdir in | |
957 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
958 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
959 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
960 | esac;; | |
961 | esac | |
962 | case $ac_abs_builddir in | |
963 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
964 | *) | |
965 | case $ac_top_srcdir in | |
966 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
967 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
968 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
969 | esac;; | |
970 | esac | |
c0d27fcc MR |
971 | |
972 | cd $ac_dir | |
503d2be0 | 973 | # Check for guested configure; otherwise get Cygnus style configure. |
c0d27fcc | 974 | if test -f $ac_srcdir/configure.gnu; then |
503d2be0 | 975 | echo |
c0d27fcc MR |
976 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
977 | elif test -f $ac_srcdir/configure; then | |
503d2be0 | 978 | echo |
c0d27fcc MR |
979 | $SHELL $ac_srcdir/configure --help=recursive |
980 | elif test -f $ac_srcdir/configure.ac || | |
35996d22 | 981 | test -f $ac_srcdir/configure.in; then |
503d2be0 AS |
982 | echo |
983 | $ac_configure --help | |
984 | else | |
c0d27fcc | 985 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
503d2be0 | 986 | fi |
57669b57 | 987 | cd $ac_popdir |
503d2be0 AS |
988 | done |
989 | fi | |
990 | ||
991 | test -n "$ac_init_help" && exit 0 | |
992 | if $ac_init_version; then | |
c0d27fcc | 993 | cat <<\_ACEOF |
503d2be0 | 994 | |
35996d22 | 995 | Copyright (C) 2003 Free Software Foundation, Inc. |
503d2be0 AS |
996 | This configure script is free software; the Free Software Foundation |
997 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 998 | _ACEOF |
503d2be0 AS |
999 | exit 0 |
1000 | fi | |
1001 | exec 5>config.log | |
c0d27fcc | 1002 | cat >&5 <<_ACEOF |
503d2be0 AS |
1003 | This file contains any messages produced by compilers while |
1004 | running configure, to aid debugging if configure makes a mistake. | |
1005 | ||
1006 | It was created by $as_me, which was | |
35996d22 | 1007 | generated by GNU Autoconf 2.59. Invocation command line was |
503d2be0 AS |
1008 | |
1009 | $ $0 $@ | |
1010 | ||
c0d27fcc | 1011 | _ACEOF |
503d2be0 AS |
1012 | { |
1013 | cat <<_ASUNAME | |
c0d27fcc MR |
1014 | ## --------- ## |
1015 | ## Platform. ## | |
1016 | ## --------- ## | |
503d2be0 AS |
1017 | |
1018 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1019 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1020 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1021 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1022 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1023 | ||
1024 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1025 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1026 | ||
1027 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1028 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1029 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1030 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1031 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1032 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1033 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1034 | ||
925c2f3f | 1035 | _ASUNAME |
c0d27fcc MR |
1036 | |
1037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1038 | for as_dir in $PATH | |
1039 | do | |
1040 | IFS=$as_save_IFS | |
1041 | test -z "$as_dir" && as_dir=. | |
1042 | echo "PATH: $as_dir" | |
1043 | done | |
1044 | ||
503d2be0 AS |
1045 | } >&5 |
1046 | ||
c0d27fcc MR |
1047 | cat >&5 <<_ACEOF |
1048 | ||
1049 | ||
1050 | ## ----------- ## | |
1051 | ## Core tests. ## | |
1052 | ## ----------- ## | |
1053 | ||
1054 | _ACEOF | |
503d2be0 | 1055 | |
503d2be0 AS |
1056 | |
1057 | # Keep a trace of the command line. | |
1058 | # Strip out --no-create and --no-recursion so they do not pile up. | |
19650fd6 | 1059 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1060 | # Also quote any args containing shell meta-characters. |
19650fd6 | 1061 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1062 | ac_configure_args= |
19650fd6 AS |
1063 | ac_configure_args0= |
1064 | ac_configure_args1= | |
503d2be0 | 1065 | ac_sep= |
19650fd6 AS |
1066 | ac_must_keep_next=false |
1067 | for ac_pass in 1 2 | |
503d2be0 | 1068 | do |
19650fd6 AS |
1069 | for ac_arg |
1070 | do | |
1071 | case $ac_arg in | |
1072 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1073 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1074 | | -silent | --silent | --silen | --sile | --sil) | |
1075 | continue ;; | |
1076 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1077 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1078 | esac | |
1079 | case $ac_pass in | |
1080 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1081 | 2) | |
1082 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1083 | if test $ac_must_keep_next = true; then | |
35996d22 | 1084 | ac_must_keep_next=false # Got value, back to normal. |
19650fd6 | 1085 | else |
35996d22 AS |
1086 | case $ac_arg in |
1087 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1088 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1089 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1090 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1091 | case "$ac_configure_args0 " in | |
1092 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1093 | esac | |
1094 | ;; | |
1095 | -* ) ac_must_keep_next=true ;; | |
1096 | esac | |
19650fd6 AS |
1097 | fi |
1098 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1099 | # Get rid of the leading space. | |
1100 | ac_sep=" " | |
1101 | ;; | |
1102 | esac | |
1103 | done | |
503d2be0 | 1104 | done |
19650fd6 AS |
1105 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1106 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1107 | |
1108 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1109 | # config.log. We remove comments because anyway the quotes in there | |
1110 | # would cause problems or look ugly. | |
c0d27fcc MR |
1111 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1112 | # such as our DU 5.0 friend, will then `close' the trap. | |
503d2be0 AS |
1113 | trap 'exit_status=$? |
1114 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1115 | { |
1116 | echo | |
6bae0ccf | 1117 | |
c0d27fcc MR |
1118 | cat <<\_ASBOX |
1119 | ## ---------------- ## | |
1120 | ## Cache variables. ## | |
1121 | ## ---------------- ## | |
1122 | _ASBOX | |
1123 | echo | |
1124 | # The following way of writing the cache mishandles newlines in values, | |
503d2be0 AS |
1125 | { |
1126 | (set) 2>&1 | | |
1127 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1128 | *ac_space=\ *) | |
1129 | sed -n \ | |
35996d22 AS |
1130 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
503d2be0 AS |
1132 | ;; |
1133 | *) | |
1134 | sed -n \ | |
35996d22 | 1135 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
503d2be0 AS |
1136 | ;; |
1137 | esac; | |
c0d27fcc MR |
1138 | } |
1139 | echo | |
6bae0ccf DL |
1140 | |
1141 | cat <<\_ASBOX | |
1142 | ## ----------------- ## | |
1143 | ## Output variables. ## | |
1144 | ## ----------------- ## | |
1145 | _ASBOX | |
1146 | echo | |
1147 | for ac_var in $ac_subst_vars | |
1148 | do | |
1149 | eval ac_val=$`echo $ac_var` | |
1150 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1151 | done | sort | |
1152 | echo | |
1153 | ||
1154 | if test -n "$ac_subst_files"; then | |
1155 | cat <<\_ASBOX | |
1156 | ## ------------- ## | |
1157 | ## Output files. ## | |
1158 | ## ------------- ## | |
1159 | _ASBOX | |
1160 | echo | |
1161 | for ac_var in $ac_subst_files | |
1162 | do | |
1163 | eval ac_val=$`echo $ac_var` | |
35996d22 | 1164 | echo "$ac_var='"'"'$ac_val'"'"'" |
6bae0ccf DL |
1165 | done | sort |
1166 | echo | |
1167 | fi | |
1168 | ||
c0d27fcc MR |
1169 | if test -s confdefs.h; then |
1170 | cat <<\_ASBOX | |
1171 | ## ----------- ## | |
1172 | ## confdefs.h. ## | |
1173 | ## ----------- ## | |
1174 | _ASBOX | |
1175 | echo | |
6bae0ccf | 1176 | sed "/^$/d" confdefs.h | sort |
c0d27fcc MR |
1177 | echo |
1178 | fi | |
1179 | test "$ac_signal" != 0 && | |
1180 | echo "$as_me: caught signal $ac_signal" | |
1181 | echo "$as_me: exit $exit_status" | |
1182 | } >&5 | |
35996d22 | 1183 | rm -f core *.core && |
c0d27fcc | 1184 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
503d2be0 AS |
1185 | exit $exit_status |
1186 | ' 0 | |
1187 | for ac_signal in 1 2 13 15; do | |
1188 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1189 | done | |
1190 | ac_signal=0 | |
1191 | ||
1192 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1193 | rm -rf conftest* confdefs.h | |
1194 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1195 | echo >confdefs.h | |
ba4481b5 | 1196 | |
c0d27fcc MR |
1197 | # Predefined preprocessor variables. |
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | cat >>confdefs.h <<_ACEOF | |
1215 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1216 | _ACEOF | |
1217 | ||
1218 | ||
1219 | cat >>confdefs.h <<_ACEOF | |
1220 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1221 | _ACEOF | |
1222 | ||
1223 | ||
503d2be0 | 1224 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 DL |
1225 | # Prefer explicitly selected file to automatically selected ones. |
1226 | if test -z "$CONFIG_SITE"; then | |
1227 | if test "x$prefix" != xNONE; then | |
1228 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1229 | else | |
1230 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1231 | fi | |
1232 | fi | |
1233 | for ac_site_file in $CONFIG_SITE; do | |
1234 | if test -r "$ac_site_file"; then | |
c0d27fcc | 1235 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
503d2be0 | 1236 | echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1237 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1238 | . "$ac_site_file" |
1239 | fi | |
1240 | done | |
1241 | ||
1242 | if test -r "$cache_file"; then | |
503d2be0 AS |
1243 | # Some versions of bash will fail to source /dev/null (special |
1244 | # files actually), so we avoid doing that. | |
1245 | if test -f "$cache_file"; then | |
c0d27fcc | 1246 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
503d2be0 AS |
1247 | echo "$as_me: loading cache $cache_file" >&6;} |
1248 | case $cache_file in | |
1249 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1250 | *) . ./$cache_file;; | |
1251 | esac | |
1252 | fi | |
ba4481b5 | 1253 | else |
c0d27fcc | 1254 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
503d2be0 AS |
1255 | echo "$as_me: creating cache $cache_file" >&6;} |
1256 | >$cache_file | |
1257 | fi | |
1258 | ||
1259 | # Check that the precious variables saved in the cache have kept the same | |
1260 | # value. | |
1261 | ac_cache_corrupted=false | |
1262 | for ac_var in `(set) 2>&1 | | |
35996d22 | 1263 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
503d2be0 AS |
1264 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1265 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1266 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1267 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1268 | case $ac_old_set,$ac_new_set in | |
1269 | set,) | |
c0d27fcc | 1270 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
1271 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1272 | ac_cache_corrupted=: ;; | |
1273 | ,set) | |
c0d27fcc | 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
1275 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1276 | ac_cache_corrupted=: ;; | |
1277 | ,);; | |
1278 | *) | |
1279 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
35996d22 | 1280 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 1281 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
35996d22 | 1282 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
503d2be0 | 1283 | echo "$as_me: former value: $ac_old_val" >&2;} |
35996d22 | 1284 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
503d2be0 | 1285 | echo "$as_me: current value: $ac_new_val" >&2;} |
35996d22 | 1286 | ac_cache_corrupted=: |
503d2be0 AS |
1287 | fi;; |
1288 | esac | |
c0d27fcc | 1289 | # Pass precious variables to config.status. |
503d2be0 AS |
1290 | if test "$ac_new_set" = set; then |
1291 | case $ac_new_val in | |
1292 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
c0d27fcc MR |
1293 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1294 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1295 | esac | |
1296 | case " $ac_configure_args " in | |
1297 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1298 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
503d2be0 AS |
1299 | esac |
1300 | fi | |
1301 | done | |
1302 | if $ac_cache_corrupted; then | |
c0d27fcc | 1303 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 1304 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c0d27fcc | 1305 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
1306 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1307 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1308 | fi |
1309 | ||
1310 | ac_ext=c | |
ba4481b5 | 1311 | ac_cpp='$CPP $CPPFLAGS' |
503d2be0 AS |
1312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1315 | ||
c0d27fcc MR |
1316 | |
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
ba4481b5 | 1332 | |
6bae0ccf DL |
1333 | |
1334 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
ba4481b5 | 1335 | |
c0d27fcc | 1336 | |
ba5da88a PJ |
1337 | test "$program_prefix" != NONE && |
1338 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1339 | # Use a double $ so make ignores it. | |
1340 | test "$program_suffix" != NONE && | |
1341 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1342 | # Double any \ or $. echo might interpret backslashes. | |
1343 | # By default was `s,x,x', remove it if useless. | |
1344 | cat <<\_ACEOF >conftest.sed | |
1345 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1346 | _ACEOF | |
1347 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1348 | rm conftest.sed | |
1349 | ||
c0d27fcc | 1350 | |
ba4481b5 DL |
1351 | lispdir='${datadir}/emacs/${version}/lisp' |
1352 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1353 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1354 | lisppath='${locallisppath}:${lispdir}' | |
1355 | etcdir='${datadir}/emacs/${version}/etc' | |
1356 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1357 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1358 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1359 | |
1360 | gameuser=games | |
1361 | ||
c0d27fcc | 1362 | |
ba4481b5 DL |
1363 | # Check whether --with-gcc or --without-gcc was given. |
1364 | if test "${with_gcc+set}" = set; then | |
1365 | withval="$with_gcc" | |
503d2be0 AS |
1366 | |
1367 | fi; | |
ba4481b5 DL |
1368 | |
1369 | # Check whether --with-pop or --without-pop was given. | |
1370 | if test "${with_pop+set}" = set; then | |
1371 | withval="$with_pop" | |
243cf185 | 1372 | if test "$withval" = yes; then |
c0d27fcc | 1373 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1374 | #define MAIL_USE_POP 1 |
c0d27fcc | 1375 | _ACEOF |
ba4481b5 | 1376 | |
243cf185 DL |
1377 | else : |
1378 | fi | |
3d9fec71 | 1379 | else |
c0d27fcc | 1380 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 1381 | #define MAIL_USE_POP 1 |
c0d27fcc | 1382 | _ACEOF |
3d9fec71 | 1383 | |
503d2be0 | 1384 | fi; |
ba4481b5 | 1385 | |
c0d27fcc | 1386 | |
a21616bd KR |
1387 | # Check whether --with-kerberos or --without-kerberos was given. |
1388 | if test "${with_kerberos+set}" = set; then | |
1389 | withval="$with_kerberos" | |
c0d27fcc | 1390 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1391 | #define KERBEROS 1 |
c0d27fcc | 1392 | _ACEOF |
a21616bd | 1393 | |
503d2be0 | 1394 | fi; |
a21616bd | 1395 | |
c0d27fcc | 1396 | |
a21616bd KR |
1397 | # Check whether --with-kerberos5 or --without-kerberos5 was given. |
1398 | if test "${with_kerberos5+set}" = set; then | |
1399 | withval="$with_kerberos5" | |
1400 | if test "${with_kerberos5+set}" = set; then | |
1401 | if test "${with_kerberos+set}" != set; then | |
1402 | with_kerberos=yes | |
c0d27fcc | 1403 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1404 | #define KERBEROS 1 |
c0d27fcc | 1405 | _ACEOF |
a21616bd KR |
1406 | |
1407 | fi | |
1408 | fi | |
b936fae4 | 1409 | |
c0d27fcc | 1410 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1411 | #define KERBEROS5 1 |
c0d27fcc | 1412 | _ACEOF |
a21616bd | 1413 | |
503d2be0 | 1414 | fi; |
a21616bd | 1415 | |
ba4481b5 DL |
1416 | # Check whether --with-hesiod or --without-hesiod was given. |
1417 | if test "${with_hesiod+set}" = set; then | |
1418 | withval="$with_hesiod" | |
b936fae4 | 1419 | |
c0d27fcc | 1420 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1421 | #define HESIOD 1 |
c0d27fcc | 1422 | _ACEOF |
ba4481b5 | 1423 | |
503d2be0 | 1424 | fi; |
ba4481b5 | 1425 | |
c0d27fcc | 1426 | |
2c9dccc9 PJ |
1427 | # Check whether --with-sound or --without-sound was given. |
1428 | if test "${with_sound+set}" = set; then | |
1429 | withval="$with_sound" | |
1430 | ||
1431 | fi; | |
1432 | ||
c0d27fcc | 1433 | |
ba4481b5 DL |
1434 | # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1435 | if test "${with_x_toolkit+set}" = set; then | |
1436 | withval="$with_x_toolkit" | |
1437 | case "${withval}" in | |
1438 | y | ye | yes ) val=athena ;; | |
1439 | n | no ) val=no ;; | |
1440 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1441 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1442 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 1443 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 1444 | * ) |
c0d27fcc | 1445 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; |
488dd4c4 | 1446 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1447 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1448 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
488dd4c4 | 1449 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1450 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} |
1451 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1452 | ;; |
1453 | esac | |
1454 | with_x_toolkit=$val | |
1455 | ||
503d2be0 | 1456 | fi; |
ba4481b5 DL |
1457 | |
1458 | # Check whether --with-xpm or --without-xpm was given. | |
1459 | if test "${with_xpm+set}" = set; then | |
1460 | withval="$with_xpm" | |
503d2be0 AS |
1461 | |
1462 | fi; | |
ba4481b5 DL |
1463 | |
1464 | # Check whether --with-jpeg or --without-jpeg was given. | |
1465 | if test "${with_jpeg+set}" = set; then | |
1466 | withval="$with_jpeg" | |
503d2be0 AS |
1467 | |
1468 | fi; | |
ba4481b5 DL |
1469 | |
1470 | # Check whether --with-tiff or --without-tiff was given. | |
1471 | if test "${with_tiff+set}" = set; then | |
1472 | withval="$with_tiff" | |
503d2be0 AS |
1473 | |
1474 | fi; | |
ba4481b5 DL |
1475 | |
1476 | # Check whether --with-gif or --without-gif was given. | |
1477 | if test "${with_gif+set}" = set; then | |
1478 | withval="$with_gif" | |
503d2be0 AS |
1479 | |
1480 | fi; | |
ba4481b5 DL |
1481 | |
1482 | # Check whether --with-png or --without-png was given. | |
1483 | if test "${with_png+set}" = set; then | |
1484 | withval="$with_png" | |
503d2be0 AS |
1485 | |
1486 | fi; | |
ba4481b5 | 1487 | |
488dd4c4 JD |
1488 | # Check whether --with-gtk or --without-gtk was given. |
1489 | if test "${with_gtk+set}" = set; then | |
1490 | withval="$with_gtk" | |
1491 | ||
1492 | fi; | |
1493 | ||
1494 | # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given. | |
1495 | if test "${with_pkg_config_prog+set}" = set; then | |
1496 | withval="$with_pkg_config_prog" | |
1497 | ||
1498 | fi; | |
1499 | ||
ba4481b5 DL |
1500 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. |
1501 | if test "${with_toolkit_scroll_bars+set}" = set; then | |
1502 | withval="$with_toolkit_scroll_bars" | |
503d2be0 AS |
1503 | |
1504 | fi; | |
ba4481b5 | 1505 | |
1d36487c GM |
1506 | # Check whether --with-xim or --without-xim was given. |
1507 | if test "${with_xim+set}" = set; then | |
1508 | withval="$with_xim" | |
1d36487c | 1509 | |
503d2be0 | 1510 | fi; |
ba4481b5 | 1511 | |
e0f712ba AC |
1512 | # Check whether --with-carbon or --without-carbon was given. |
1513 | if test "${with_carbon+set}" = set; then | |
1514 | withval="$with_carbon" | |
1515 | ||
1516 | fi; | |
6a3a24fa JD |
1517 | # Check whether --enable-carbon-app or --disable-carbon-app was given. |
1518 | if test "${enable_carbon_app+set}" = set; then | |
1519 | enableval="$enable_carbon_app" | |
1520 | carbon_appdir_x=${enableval} | |
1521 | fi; | |
e0f712ba | 1522 | |
19650fd6 AS |
1523 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1524 | if test "${enable_maintainer_mode+set}" = set; then | |
1525 | enableval="$enable_maintainer_mode" | |
1526 | USE_MAINTAINER_MODE=$enableval | |
1527 | else | |
1528 | USE_MAINTAINER_MODE=no | |
1529 | fi; | |
1530 | if test $USE_MAINTAINER_MODE = yes; then | |
1531 | MAINT= | |
1532 | else | |
1533 | MAINT=# | |
1534 | fi | |
1535 | ||
1536 | ||
ba4481b5 | 1537 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 1538 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
1539 | #### give you automounter prefixes, which can go away. We do all this |
1540 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
1541 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1542 | unset CDPATH | |
ba4481b5 DL |
1543 | case "${srcdir}" in |
1544 | /* ) ;; | |
1545 | . ) | |
1546 | ## We may be able to use the $PWD environment variable to make this | |
1547 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
1548 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1549 | ## but that tested only for a well-formed and valid PWD, | |
1550 | ## it did not object when PWD was well-formed and valid but just wrong. | |
1551 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
1552 | then |
1553 | srcdir="$PWD" | |
1554 | else | |
1555 | srcdir="`(cd ${srcdir}; pwd)`" | |
1556 | fi | |
1557 | ;; | |
1558 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1559 | esac | |
1560 | ||
1561 | #### Check if the source directory already has a configured system in it. | |
1562 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1563 | && test -f "${srcdir}/src/config.h" ; then | |
c0d27fcc | 1564 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
1565 | as a build directory right now; it has been configured in its own |
1566 | right. To configure in another directory as well, you MUST | |
1567 | use GNU make. If you do not have GNU make, then you must | |
1568 | now do \`make distclean' in ${srcdir}, | |
1569 | and then run $0 again." >&5 | |
1570 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
1571 | as a build directory right now; it has been configured in its own |
1572 | right. To configure in another directory as well, you MUST | |
1573 | use GNU make. If you do not have GNU make, then you must | |
1574 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 1575 | and then run $0 again." >&2;} |
ba4481b5 | 1576 | |
22044edf | 1577 | extrasub='/^VPATH[ ]*=/c\ |
ba4481b5 DL |
1578 | vpath %.c $(srcdir)\ |
1579 | vpath %.h $(srcdir)\ | |
1580 | vpath %.y $(srcdir)\ | |
1581 | vpath %.l $(srcdir)\ | |
1582 | vpath %.s $(srcdir)\ | |
1583 | vpath %.in $(srcdir)\ | |
1584 | vpath %.texi $(srcdir)' | |
1585 | fi | |
1586 | ||
1587 | #### Given the configuration name, set machfile and opsysfile to the | |
1588 | #### names of the m/*.h and s/*.h files we should use. | |
1589 | ||
1590 | ### Canonicalize the configuration name. | |
1591 | ||
1592 | ac_aux_dir= | |
1593 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1594 | if test -f $ac_dir/install-sh; then | |
1595 | ac_aux_dir=$ac_dir | |
1596 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1597 | break | |
1598 | elif test -f $ac_dir/install.sh; then | |
1599 | ac_aux_dir=$ac_dir | |
1600 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1601 | break | |
503d2be0 AS |
1602 | elif test -f $ac_dir/shtool; then |
1603 | ac_aux_dir=$ac_dir | |
1604 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1605 | break | |
ba4481b5 DL |
1606 | fi |
1607 | done | |
1608 | if test -z "$ac_aux_dir"; then | |
c0d27fcc | 1609 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
503d2be0 AS |
1610 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1611 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1612 | fi |
503d2be0 AS |
1613 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1614 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1615 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
ba4481b5 DL |
1616 | |
1617 | # Make sure we can run config.sub. | |
503d2be0 | 1618 | $ac_config_sub sun4 >/dev/null 2>&1 || |
c0d27fcc | 1619 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
503d2be0 AS |
1620 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1621 | { (exit 1); exit 1; }; } | |
1622 | ||
c0d27fcc | 1623 | echo "$as_me:$LINENO: checking build system type" >&5 |
503d2be0 AS |
1624 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1625 | if test "${ac_cv_build+set}" = set; then | |
1626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1627 | else | |
1628 | ac_cv_build_alias=$build_alias | |
1629 | test -z "$ac_cv_build_alias" && | |
1630 | ac_cv_build_alias=`$ac_config_guess` | |
1631 | test -z "$ac_cv_build_alias" && | |
c0d27fcc | 1632 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
1633 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1634 | { (exit 1); exit 1; }; } | |
1635 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
c0d27fcc MR |
1636 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1637 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
503d2be0 AS |
1638 | { (exit 1); exit 1; }; } |
1639 | ||
1640 | fi | |
c0d27fcc | 1641 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
503d2be0 AS |
1642 | echo "${ECHO_T}$ac_cv_build" >&6 |
1643 | build=$ac_cv_build | |
1644 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1645 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1646 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1647 | ||
c0d27fcc MR |
1648 | |
1649 | echo "$as_me:$LINENO: checking host system type" >&5 | |
503d2be0 AS |
1650 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1651 | if test "${ac_cv_host+set}" = set; then | |
1652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1653 | else | |
1654 | ac_cv_host_alias=$host_alias | |
1655 | test -z "$ac_cv_host_alias" && | |
1656 | ac_cv_host_alias=$ac_cv_build_alias | |
1657 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
c0d27fcc | 1658 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
503d2be0 AS |
1659 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1660 | { (exit 1); exit 1; }; } | |
1661 | ||
1662 | fi | |
c0d27fcc | 1663 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
503d2be0 AS |
1664 | echo "${ECHO_T}$ac_cv_host" >&6 |
1665 | host=$ac_cv_host | |
1666 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1667 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1668 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
ba4481b5 | 1669 | |
c0d27fcc | 1670 | |
ba4481b5 | 1671 | canonical=$host |
531a3336 | 1672 | configuration=${host_alias-$host} |
ba4481b5 | 1673 | |
c0d27fcc | 1674 | |
22044edf | 1675 | |
ba4481b5 DL |
1676 | ### If you add support for a new configuration, add code to this |
1677 | ### switch statement to recognize your configuration name and select | |
1678 | ### the appropriate operating system and machine description files. | |
1679 | ||
1680 | ### You would hope that you could choose an m/*.h file pretty much | |
1681 | ### based on the machine portion of the configuration name, and an s- | |
1682 | ### file based on the operating system portion. However, it turns out | |
1683 | ### that each m/*.h file is pretty manufacturer-specific - for | |
1684 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1685 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1686 | ### machines. So we basically have to have a special case for each | |
1687 | ### configuration name. | |
1688 | ### | |
1689 | ### As far as handling version numbers on operating systems is | |
1690 | ### concerned, make sure things will fail in a fixable way. If | |
1691 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
1692 | ### prepared to handle anything reasonably. If version numbers | |
1693 | ### matter, be sure /etc/MACHINES says something about it. | |
1694 | ### | |
1695 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1696 | ### "System V Release 4"; he writes, "The old convention encouraged | |
1697 | ### confusion between `system' and `release' levels'." | |
1698 | ||
1699 | machine='' opsys='' unported=no | |
1700 | case "${canonical}" in | |
1701 | ||
1096bcc0 GM |
1702 | ## FreeBSD ports |
1703 | *-*-freebsd* ) | |
1704 | opsys=freebsd | |
1705 | case "${canonical}" in | |
1706 | alpha*-*-freebsd*) machine=alpha ;; | |
1707 | i[3456]86-*-freebsd*) machine=intel386 ;; | |
1708 | esac | |
1709 | ;; | |
1710 | ||
ba4481b5 DL |
1711 | ## NetBSD ports |
1712 | *-*-netbsd* ) | |
1713 | opsys=netbsd | |
dd038e26 | 1714 | if test -f /usr/lib/crti.o; then |
f57bd967 DL |
1715 | |
1716 | cat >>confdefs.h <<\_ACEOF | |
1717 | #define HAVE_CRTIN | |
dd038e26 AS |
1718 | _ACEOF |
1719 | ||
1720 | fi | |
1721 | ||
ba4481b5 DL |
1722 | case "${canonical}" in |
1723 | alpha*-*-netbsd*) machine=alpha ;; | |
1724 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
1725 | m68k-*-netbsd*) | |
1726 | # This is somewhat bogus. | |
1727 | machine=hp9000s300 ;; | |
1728 | powerpc-apple-netbsd*) machine=macppc ;; | |
1729 | mips-*-netbsd*) machine=pmax ;; | |
2df636f4 | 1730 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 1731 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 1732 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 1733 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 1734 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 1735 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 1736 | arm-*-netbsd*) machine=arm ;; |
ba4481b5 DL |
1737 | esac |
1738 | ;; | |
1739 | ||
1740 | ## OpenBSD ports | |
1741 | *-*-openbsd* ) | |
1742 | opsys=openbsd | |
1743 | case "${canonical}" in | |
1744 | alpha*-*-openbsd*) machine=alpha ;; | |
1745 | i386-*-openbsd*) machine=intel386 ;; | |
1746 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
1747 | mipsel-*-openbsd*) machine=pmax ;; | |
1748 | ns32k-*-openbsd*) machine=ns32000 ;; | |
1749 | sparc-*-openbsd*) machine=sparc ;; | |
1750 | vax-*-openbsd*) machine=vax ;; | |
1751 | esac | |
1752 | ;; | |
1753 | ||
1754 | ## Acorn RISCiX: | |
1755 | arm-acorn-riscix1.1* ) | |
1756 | machine=acorn opsys=riscix1-1 | |
1757 | ;; | |
1758 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1759 | ## This name is riscix12 instead of riscix1.2 | |
1760 | ## to avoid a file name conflict on MSDOS. | |
1761 | machine=acorn opsys=riscix12 | |
1762 | ;; | |
1763 | ||
1764 | ## BSDI ports | |
1765 | *-*-bsdi* ) | |
1766 | opsys=bsdi | |
1767 | case "${canonical}" in | |
1768 | i[345]86-*-bsdi*) machine=intel386 ;; | |
1769 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 1770 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
1771 | esac |
1772 | case "${canonical}" in | |
1773 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1774 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1775 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1776 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 1777 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
1778 | esac |
1779 | ;; | |
1780 | ||
1781 | ## Alliant machines | |
1782 | ## Strictly speaking, we need the version of the alliant operating | |
1783 | ## system to choose the right machine file, but currently the | |
1784 | ## configuration name doesn't tell us enough to choose the right | |
1785 | ## one; we need to give alliants their own operating system name to | |
1786 | ## do this right. When someone cares, they can help us. | |
1787 | fx80-alliant-* ) | |
1788 | machine=alliant4 opsys=bsd4-2 | |
1789 | ;; | |
1790 | i860-alliant-* ) | |
1791 | machine=alliant-2800 opsys=bsd4-3 | |
1792 | ;; | |
1793 | ||
1794 | ## Alpha (DEC) machines. | |
1795 | alpha*-dec-osf* ) | |
1796 | machine=alpha opsys=osf1 | |
1797 | # This is needed to find X11R6.1 libraries for certain tests. | |
1798 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1799 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
1800 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1801 | # due to non-traditional preprocessing with the current compiler | |
1802 | # defaults. OSF 4 can also have that compiler version, and there | |
1803 | # seems always to have been a usable /usr/bin/cpp. | |
1804 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 1805 | case "${canonical}" in |
a55b799a | 1806 | alpha*-dec-osf[5-9]*) |
bb17930d | 1807 | opsys=osf5-0 ;; |
ca512671 | 1808 | esac |
ba4481b5 DL |
1809 | ;; |
1810 | ||
1811 | alpha*-*-linux-gnu* ) | |
1812 | machine=alpha opsys=gnu-linux | |
1813 | ;; | |
1814 | ||
c4bb2108 DL |
1815 | arm*-*-linux-gnu* ) |
1816 | machine=arm opsys=gnu-linux | |
1817 | ;; | |
1818 | ||
1819 | ppc-*-linux | \ | |
1820 | powerpc-*-linux* ) | |
3aeecf97 | 1821 | machine=macppc opsys=gnu-linux |
c4bb2108 DL |
1822 | ;; |
1823 | ||
ba4481b5 DL |
1824 | ## Altos 3068 |
1825 | m68*-altos-sysv* ) | |
1826 | machine=altos opsys=usg5-2 | |
1827 | ;; | |
1828 | ||
1829 | ## Amdahl UTS | |
1830 | 580-amdahl-sysv* ) | |
1831 | machine=amdahl opsys=usg5-2-2 | |
1832 | ;; | |
1833 | ||
1834 | ## Apollo, Domain/OS | |
1835 | m68*-apollo-* ) | |
1836 | machine=apollo opsys=bsd4-3 | |
1837 | ;; | |
1838 | ||
1839 | ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1840 | we32k-att-sysv* ) | |
1841 | machine=att3b opsys=usg5-2-2 | |
1842 | ;; | |
1843 | ||
1844 | ## AT&T 3b1 - The Mighty Unix PC! | |
1845 | m68*-att-sysv* ) | |
1846 | machine=7300 opsys=usg5-2-2 | |
1847 | ;; | |
1848 | ||
1849 | ## Bull dpx20 | |
1850 | rs6000-bull-bosx* ) | |
1851 | machine=ibmrs6000 opsys=aix3-2 | |
1852 | ;; | |
1853 | ||
1854 | ## Bull dpx2 | |
1855 | m68*-bull-sysv3* ) | |
1856 | machine=dpx2 opsys=usg5-3 | |
1857 | ;; | |
1858 | ||
1859 | ## Bull sps7 | |
1860 | m68*-bull-sysv2* ) | |
1861 | machine=sps7 opsys=usg5-2 | |
1862 | ;; | |
1863 | ||
1864 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
1865 | ||
1866 | ## Celerity | |
1867 | ## I don't know what configuration name to use for this; config.sub | |
1868 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1869 | ## in touch with us! | |
1870 | celerity-celerity-bsd* ) | |
1871 | machine=celerity opsys=bsd4-2 | |
1872 | ;; | |
1873 | ||
1874 | ## Clipper | |
1875 | ## What operating systems does this chip run that Emacs has been | |
1876 | ## tested on? | |
1877 | clipper-* ) | |
1878 | machine=clipper | |
1879 | ## We'll use the catch-all code at the bottom to guess the | |
1880 | ## operating system. | |
1881 | ;; | |
1882 | ||
df645f7c AS |
1883 | ## Compaq Nonstop |
1884 | mips-compaq-nonstopux* ) | |
1885 | machine=nonstopux opsys=nonstopux | |
1886 | ;; | |
1887 | ||
ba4481b5 DL |
1888 | ## Convex |
1889 | *-convex-bsd* | *-convex-convexos* ) | |
1890 | machine=convex opsys=bsd4-3 | |
1891 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1892 | NON_GNU_CPP="cc -E -P" | |
1893 | ;; | |
1894 | ||
1895 | ## Cubix QBx/386 | |
1896 | i[3456]86-cubix-sysv* ) | |
1897 | machine=intel386 opsys=usg5-3 | |
1898 | ;; | |
1899 | ||
1900 | ## Cydra 5 | |
1901 | cydra*-cydrome-sysv* ) | |
1902 | machine=cydra5 opsys=usg5-3 | |
1903 | ;; | |
1904 | ||
1905 | ## Data General AViiON Machines | |
1906 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
1907 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
1908 | ## R this shouldn't conflict with older versions of the OS (which I | |
1909 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1910 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
1911 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1912 | machine=aviion opsys=dgux4 | |
1913 | ;; | |
1914 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1915 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1916 | ## to avoid a file name conflict on MSDOS. | |
1917 | machine=aviion opsys=dgux5-4-3 | |
1918 | ;; | |
1919 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1920 | machine=aviion opsys=dgux5-4r2 | |
1921 | ;; | |
1922 | m88k-dg-dgux* ) | |
1923 | machine=aviion opsys=dgux | |
1924 | ;; | |
1925 | ||
1926 | ## Data General AViiON Intel (x86) Machines | |
1927 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1928 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1929 | i[345]86-dg-dguxR4* ) | |
1930 | machine=aviion-intel opsys=dgux4 | |
1931 | ;; | |
1932 | ||
1933 | ## DECstations | |
1934 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1935 | machine=pmax opsys=bsd4-2 | |
1936 | ;; | |
1937 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1938 | machine=pmax opsys=bsd4-3 | |
1939 | ;; | |
1940 | mips-dec-ultrix* ) | |
1941 | machine=pmax opsys=ultrix4-3 | |
1942 | ;; | |
1943 | mips-dec-osf* ) | |
1944 | machine=pmax opsys=osf1 | |
1945 | ;; | |
1946 | mips-dec-mach_bsd4.3* ) | |
1947 | machine=pmax opsys=mach-bsd4-3 | |
1948 | ;; | |
1949 | ||
cd890796 JD |
1950 | ## Motorola Delta machines |
1951 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1952 | machine=delta opsys=usg5-3 | |
1953 | if test -z "`type gnucc | grep 'not found'`" | |
1954 | then | |
1955 | if test -s /etc/167config | |
1956 | then CC="gnucc -m68040" | |
1957 | else CC="gnucc -m68881" | |
1958 | fi | |
1959 | else | |
1960 | if test -z "`type gcc | grep 'not found'`" | |
1961 | then CC=gcc | |
1962 | else CC=cc | |
1963 | fi | |
1964 | fi | |
1965 | ;; | |
ba4481b5 DL |
1966 | m88k-motorola-sysv4* ) |
1967 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1968 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1969 | # I hope there are not other 4.0 versions for this machine | |
1970 | # which really need usg5-4 instead. | |
1971 | machine=delta88k opsys=usg5-4-2 | |
1972 | ;; | |
1973 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1974 | machine=delta88k opsys=usg5-3 | |
1975 | ;; | |
1976 | ||
1977 | ## Dual machines | |
1978 | m68*-dual-sysv* ) | |
1979 | machine=dual opsys=usg5-2 | |
1980 | ;; | |
1981 | m68*-dual-uniplus* ) | |
1982 | machine=dual opsys=unipl5-2 | |
1983 | ;; | |
1984 | ||
1985 | ## Elxsi 6400 | |
1986 | elxsi-elxsi-sysv* ) | |
1987 | machine=elxsi opsys=usg5-2 | |
1988 | ;; | |
1989 | ||
1990 | ## Encore machines | |
1991 | ns16k-encore-bsd* ) | |
1992 | machine=ns16000 opsys=umax | |
1993 | ;; | |
1994 | ||
65171e3a DL |
1995 | ## The GEC 63 - apparently, this port isn't really finished yet. |
1996 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
1997 | |
1998 | ## Gould Power Node and NP1 | |
1999 | pn-gould-bsd4.2* ) | |
2000 | machine=gould opsys=bsd4-2 | |
2001 | ;; | |
2002 | pn-gould-bsd4.3* ) | |
2003 | machine=gould opsys=bsd4-3 | |
2004 | ;; | |
2005 | np1-gould-bsd* ) | |
2006 | machine=gould-np1 opsys=bsd4-3 | |
2007 | ;; | |
2008 | ||
2009 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
2010 | ## as far as Emacs is concerned). | |
2011 | m88k-harris-cxux* ) | |
2012 | # Build needs to be different on 7.0 and later releases | |
2013 | case "`uname -r`" in | |
2014 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
2015 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
2016 | esac | |
2017 | NON_GNU_CPP="/lib/cpp" | |
2018 | ;; | |
2019 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
2020 | m68k-harris-cxux* ) | |
2021 | machine=nh3000 opsys=cxux | |
2022 | ;; | |
2023 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
2024 | powerpc-harris-powerunix ) | |
2025 | machine=nh6000 opsys=powerunix | |
2026 | NON_GNU_CPP="cc -Xo -E -P" | |
2027 | ;; | |
2028 | ## SR2001/SR2201 running HI-UX/MPP | |
2029 | hppa1.1-hitachi-hiuxmpp* ) | |
2030 | machine=sr2k opsys=hiuxmpp | |
2031 | ;; | |
89a336fa GM |
2032 | hppa1.1-hitachi-hiuxwe2* ) |
2033 | machine=sr2k opsys=hiuxwe2 | |
2034 | ;; | |
ba4481b5 DL |
2035 | ## Honeywell XPS100 |
2036 | xps*-honeywell-sysv* ) | |
2037 | machine=xps100 opsys=usg5-2 | |
2038 | ;; | |
2039 | ||
2040 | ## HP 9000 series 200 or 300 | |
2041 | m68*-hp-bsd* ) | |
2042 | machine=hp9000s300 opsys=bsd4-3 | |
2043 | ;; | |
2044 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
2045 | m68*-hp-hpux* ) | |
2046 | case "`uname -r`" in | |
2047 | ## Someone's system reports A.B8.05 for this. | |
2048 | ## I wonder what other possibilities there are. | |
2049 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2050 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2051 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
2052 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
2053 | *) machine=hp9000s300 opsys=hpux ;; | |
2054 | esac | |
2055 | ;; | |
2056 | ||
2057 | ## HP 9000 series 700 and 800, running HP/UX | |
2058 | hppa*-hp-hpux7* ) | |
2059 | machine=hp800 opsys=hpux | |
2060 | ;; | |
2061 | hppa*-hp-hpux8* ) | |
2062 | machine=hp800 opsys=hpux8 | |
2063 | ;; | |
2064 | hppa*-hp-hpux9shr* ) | |
2065 | machine=hp800 opsys=hpux9shr | |
2066 | ;; | |
2067 | hppa*-hp-hpux9* ) | |
2068 | machine=hp800 opsys=hpux9 | |
2069 | ;; | |
b0e44248 RB |
2070 | hppa*-hp-hpux10.2* ) |
2071 | machine=hp800 opsys=hpux10-20 | |
2072 | ;; | |
cc227489 | 2073 | hppa*-hp-hpux10* ) |
ba4481b5 DL |
2074 | machine=hp800 opsys=hpux10 |
2075 | ;; | |
cc227489 MB |
2076 | hppa*-hp-hpux1[1-9]* ) |
2077 | machine=hp800 opsys=hpux11 | |
2078 | ;; | |
ba4481b5 | 2079 | |
409d9577 GM |
2080 | hppa*-*-linux-gnu* ) |
2081 | machine=hp800 opsys=gnu-linux | |
2082 | ;; | |
2083 | ||
ba4481b5 DL |
2084 | ## HP 9000 series 700 and 800, running HP/UX |
2085 | hppa*-hp-hpux* ) | |
2086 | ## Cross-compilation? Nah! | |
2087 | case "`uname -r`" in | |
2088 | ## Someone's system reports A.B8.05 for this. | |
2089 | ## I wonder what other possibilities there are. | |
2090 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2091 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2092 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2093 | *) machine=hp800 opsys=hpux10 ;; | |
2094 | esac | |
2095 | ;; | |
2096 | hppa*-*-nextstep* ) | |
2097 | machine=hp800 opsys=nextstep | |
2098 | ;; | |
2099 | ||
2100 | ## Orion machines | |
2101 | orion-orion-bsd* ) | |
2102 | machine=orion opsys=bsd4-2 | |
2103 | ;; | |
2104 | clipper-orion-bsd* ) | |
2105 | machine=orion105 opsys=bsd4-2 | |
2106 | ;; | |
2107 | ||
2108 | ## IBM machines | |
2109 | i[3456]86-ibm-aix1.1* ) | |
2110 | machine=ibmps2-aix opsys=usg5-2-2 | |
2111 | ;; | |
2112 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
2113 | machine=ibmps2-aix opsys=usg5-3 | |
2114 | ;; | |
2115 | i370-ibm-aix*) | |
2116 | machine=ibm370aix opsys=usg5-3 | |
2117 | ;; | |
55597d70 | 2118 | s390-*-linux-gnu* ) |
138f0859 GM |
2119 | machine=ibms390 opsys=gnu-linux |
2120 | ;; | |
ba4481b5 DL |
2121 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2122 | machine=ibmrs6000 opsys=aix3-1 | |
2123 | ;; | |
2124 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2125 | machine=ibmrs6000 opsys=aix3-2-5 | |
2126 | ;; | |
2127 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2128 | machine=ibmrs6000 opsys=aix4-1 | |
2129 | ;; | |
2130 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2131 | machine=ibmrs6000 opsys=aix4-2 | |
2132 | ;; | |
55597d70 | 2133 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2134 | machine=ibmrs6000 opsys=aix4-2 |
2135 | ;; | |
ba4481b5 DL |
2136 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2137 | machine=ibmrs6000 opsys=aix4 | |
2138 | ;; | |
2139 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2140 | machine=ibmrs6000 opsys=aix4-1 | |
2141 | ;; | |
2142 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2143 | machine=ibmrs6000 opsys=aix3-2 | |
2144 | ;; | |
2145 | romp-ibm-bsd4.3* ) | |
2146 | machine=ibmrt opsys=bsd4-3 | |
2147 | ;; | |
2148 | romp-ibm-bsd4.2* ) | |
2149 | machine=ibmrt opsys=bsd4-2 | |
2150 | ;; | |
2151 | romp-ibm-aos4.3* ) | |
2152 | machine=ibmrt opsys=bsd4-3 | |
2153 | ;; | |
2154 | romp-ibm-aos4.2* ) | |
2155 | machine=ibmrt opsys=bsd4-2 | |
2156 | ;; | |
2157 | romp-ibm-aos* ) | |
2158 | machine=ibmrt opsys=bsd4-3 | |
2159 | ;; | |
2160 | romp-ibm-bsd* ) | |
2161 | machine=ibmrt opsys=bsd4-3 | |
2162 | ;; | |
2163 | romp-ibm-aix* ) | |
2164 | machine=ibmrt-aix opsys=usg5-2-2 | |
2165 | ;; | |
2166 | ||
2167 | ## Integrated Solutions `Optimum V' | |
2168 | m68*-isi-bsd4.2* ) | |
2169 | machine=isi-ov opsys=bsd4-2 | |
2170 | ;; | |
2171 | m68*-isi-bsd4.3* ) | |
2172 | machine=isi-ov opsys=bsd4-3 | |
2173 | ;; | |
2174 | ||
2175 | ## Intel 386 machines where we do care about the manufacturer | |
2176 | i[3456]86-intsys-sysv* ) | |
2177 | machine=is386 opsys=usg5-2-2 | |
2178 | ;; | |
2179 | ||
2180 | ## Prime EXL | |
2181 | i[3456]86-prime-sysv* ) | |
2182 | machine=i386 opsys=usg5-3 | |
2183 | ;; | |
2184 | ||
2185 | ## Sequent Symmetry running Dynix | |
2186 | i[3456]86-sequent-bsd* ) | |
2187 | machine=symmetry opsys=bsd4-3 | |
2188 | ;; | |
2189 | ||
2190 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2191 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2192 | machine=sequent-ptx opsys=ptx4 | |
2193 | NON_GNU_CPP=/lib/cpp | |
2194 | ;; | |
2195 | ||
2196 | ## Sequent Symmetry running DYNIX/ptx | |
2197 | ## Use the old cpp rather than the newer ANSI one. | |
2198 | i[3456]86-sequent-ptx* ) | |
2199 | machine=sequent-ptx opsys=ptx | |
2200 | NON_GNU_CPP="/lib/cpp" | |
2201 | ;; | |
2202 | ||
2203 | ## ncr machine running svr4.3. | |
2204 | i[3456]86-ncr-sysv4.3 ) | |
2205 | machine=ncr386 opsys=usg5-4-3 | |
2206 | ;; | |
2207 | ||
2208 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2209 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2210 | i[3456]86-ncr-sysv* ) | |
2211 | machine=ncr386 opsys=usg5-4-2 | |
2212 | ;; | |
2213 | ||
2214 | ## Intel Paragon OSF/1 | |
2215 | i860-intel-osf1* ) | |
2216 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2217 | ;; | |
2218 | ||
2219 | ## Intel 860 | |
2220 | i860-*-sysv4* ) | |
2221 | machine=i860 opsys=usg5-4 | |
2222 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2223 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2224 | ;; | |
2225 | ||
c76e04a8 GM |
2226 | ## Macintosh PowerPC |
2227 | powerpc*-*-linux-gnu* ) | |
2228 | machine=macppc opsys=gnu-linux | |
2229 | ;; | |
2230 | ||
ba4481b5 DL |
2231 | ## Masscomp machines |
2232 | m68*-masscomp-rtu* ) | |
2233 | machine=masscomp opsys=rtu | |
2234 | ;; | |
2235 | ||
2236 | ## Megatest machines | |
2237 | m68*-megatest-bsd* ) | |
2238 | machine=mega68 opsys=bsd4-2 | |
2239 | ;; | |
2240 | ||
2241 | ## Workstations sold by MIPS | |
2242 | ## This is not necessarily all workstations using the MIPS processor - | |
2243 | ## Irises are produced by SGI, and DECstations by DEC. | |
2244 | ||
2245 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2246 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2247 | ## it gives for choosing between the alternatives seems to be "Use | |
2248 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2249 | ## the BSD world." I'll assume that these are instructions for | |
2250 | ## handling two odd situations, and that every other situation | |
2251 | ## should use mips.h and usg5-2-2, they being listed first. | |
2252 | mips-mips-usg* ) | |
2253 | machine=mips4 | |
2254 | ## Fall through to the general code at the bottom to decide on the OS. | |
2255 | ;; | |
2256 | mips-mips-riscos4* ) | |
2257 | machine=mips4 opsys=bsd4-3 | |
2258 | NON_GNU_CC="cc -systype bsd43" | |
2259 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2260 | ;; | |
2261 | mips-mips-riscos5* ) | |
2262 | machine=mips4 opsys=riscos5 | |
2263 | NON_GNU_CC="cc -systype bsd43" | |
2264 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2265 | ;; | |
2266 | mips-mips-bsd* ) | |
2267 | machine=mips opsys=bsd4-3 | |
2268 | ;; | |
2269 | mips-mips-* ) | |
2270 | machine=mips opsys=usg5-2-2 | |
2271 | ;; | |
2272 | ||
2273 | ## NeXT | |
2274 | m68*-next-* | m68k-*-nextstep* ) | |
2275 | machine=m68k opsys=nextstep | |
2276 | ;; | |
2277 | ||
2278 | ## The complete machine from National Semiconductor | |
2279 | ns32k-ns-genix* ) | |
2280 | machine=ns32000 opsys=usg5-2 | |
2281 | ;; | |
2282 | ||
2283 | ## NCR machines | |
2284 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2285 | machine=tower32 opsys=usg5-2-2 | |
2286 | ;; | |
2287 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2288 | machine=tower32v3 opsys=usg5-3 | |
2289 | ;; | |
2290 | ||
2291 | ## NEC EWS4800 | |
2292 | mips-nec-sysv4*) | |
2293 | machine=ews4800 opsys=ux4800 | |
2294 | ;; | |
2295 | ||
2296 | ## Nixdorf Targon 31 | |
2297 | m68*-nixdorf-sysv* ) | |
2298 | machine=targon31 opsys=usg5-2-2 | |
2299 | ;; | |
2300 | ||
2301 | ## Nu (TI or LMI) | |
2302 | m68*-nu-sysv* ) | |
2303 | machine=nu opsys=usg5-2 | |
2304 | ;; | |
2305 | ||
2306 | ## Plexus | |
2307 | m68*-plexus-sysv* ) | |
2308 | machine=plexus opsys=usg5-2 | |
2309 | ;; | |
2310 | ||
ba4481b5 DL |
2311 | ## Pyramid machines |
2312 | ## I don't really have any idea what sort of processor the Pyramid has, | |
2313 | ## so I'm assuming it is its own architecture. | |
2314 | pyramid-pyramid-bsd* ) | |
2315 | machine=pyramid opsys=bsd4-2 | |
2316 | ;; | |
2317 | ||
2318 | ## Sequent Balance | |
2319 | ns32k-sequent-bsd4.2* ) | |
2320 | machine=sequent opsys=bsd4-2 | |
2321 | ;; | |
2322 | ns32k-sequent-bsd4.3* ) | |
2323 | machine=sequent opsys=bsd4-3 | |
2324 | ;; | |
2325 | ||
2326 | ## Siemens Nixdorf | |
2327 | mips-siemens-sysv* | mips-sni-sysv*) | |
2328 | machine=mips-siemens opsys=usg5-4 | |
2329 | NON_GNU_CC=/usr/ccs/bin/cc | |
2330 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2331 | ;; | |
2332 | ||
2333 | ## Silicon Graphics machines | |
2334 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2335 | m68*-sgi-iris3.5* ) | |
2336 | machine=irist opsys=iris3-5 | |
2337 | ;; | |
2338 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2339 | machine=irist opsys=iris3-6 | |
2340 | ;; | |
2341 | ## Iris 4D | |
2342 | mips-sgi-irix3* ) | |
2343 | machine=iris4d opsys=irix3-3 | |
2344 | ;; | |
2345 | mips-sgi-irix4* ) | |
2346 | machine=iris4d opsys=irix4-0 | |
2347 | ;; | |
2348 | mips-sgi-irix6.5 ) | |
2349 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2350 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2351 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2352 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2353 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2354 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
2355 | ;; |
2356 | mips-sgi-irix6* ) | |
2357 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 2358 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2359 | # but presumably it does no harm. |
2360 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2361 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2362 | NON_GCC_TEST_OPTIONS=-32 |
2363 | ;; | |
2364 | mips-sgi-irix5.[01]* ) | |
2365 | machine=iris4d opsys=irix5-0 | |
2366 | ;; | |
2367 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2368 | machine=iris4d opsys=irix5-2 | |
2369 | ;; | |
2370 | ||
2371 | ## SONY machines | |
2372 | m68*-sony-bsd4.2* ) | |
2373 | machine=news opsys=bsd4-2 | |
2374 | ;; | |
2375 | m68*-sony-bsd4.3* ) | |
2376 | machine=news opsys=bsd4-3 | |
2377 | ;; | |
2378 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2379 | machine=news opsys=bsd4-3 | |
2380 | ;; | |
2381 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2382 | machine=news-risc opsys=bsd4-3 | |
2383 | ;; | |
2384 | mips-sony-newsos6* ) | |
2385 | machine=news-r6 opsys=newsos6 | |
2386 | ;; | |
2387 | mips-sony-news* ) | |
2388 | machine=news-risc opsys=newsos5 | |
2389 | ;; | |
2390 | ||
2391 | ## Stride | |
2392 | m68*-stride-sysv* ) | |
2393 | machine=stride opsys=usg5-2 | |
2394 | ;; | |
2395 | ||
2396 | ## Suns | |
2397 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2398 | machine=sparc opsys=gnu-linux | |
2399 | ;; | |
2400 | ||
d054101f | 2401 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2402 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2403 | | rs6000-*-solaris2*) | |
2404 | case "${canonical}" in | |
2405 | m68*-sunos1* ) machine=sun1 ;; | |
2406 | m68*-sunos2* ) machine=sun2 ;; | |
2407 | m68* ) machine=sun3 ;; | |
2408 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2409 | i[3456]86-*-* ) machine=intel386 ;; | |
2410 | powerpcle* ) machine=powerpcle ;; | |
2411 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2412 | sparc* ) machine=sparc ;; | |
2413 | * ) unported=yes ;; | |
2414 | esac | |
2415 | case "${canonical}" in | |
2416 | ## The Sun386 didn't get past 4.0. | |
2417 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2418 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2419 | *-sunos4.1.[3-9]*noshare ) | |
2420 | ## This name is sunos413 instead of sunos4-1-3 | |
2421 | ## to avoid a file name conflict on MSDOS. | |
2422 | opsys=sunos413 | |
2423 | NON_GNU_CPP=/usr/lib/cpp | |
2424 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2425 | GCC_TEST_OPTIONS=-static | |
2426 | ;; | |
2427 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2428 | opsys=sunos4shr | |
2429 | NON_GNU_CPP=/usr/lib/cpp | |
2430 | ;; | |
2431 | *-sunos4* | *-sunos ) | |
2432 | opsys=sunos4-1 | |
2433 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2434 | GCC_TEST_OPTIONS=-static | |
2435 | ;; | |
2436 | *-sunos5.3* | *-solaris2.3* ) | |
2437 | opsys=sol2-3 | |
2438 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2439 | ;; | |
2440 | *-sunos5.4* | *-solaris2.4* ) | |
2441 | opsys=sol2-4 | |
2442 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2443 | RANLIB="ar -ts" | |
2444 | ;; | |
2445 | *-sunos5.5* | *-solaris2.5* ) | |
2446 | opsys=sol2-5 | |
2447 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2448 | RANLIB="ar -ts" | |
2449 | ;; | |
8e967cf7 MR |
2450 | *-sunos5.6* | *-solaris2.6* ) |
2451 | opsys=sol2-6 | |
2452 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2453 | RANLIB="ar -ts" | |
2454 | ;; | |
ba4481b5 | 2455 | *-sunos5* | *-solaris* ) |
9e71690e | 2456 | opsys=sol2-6 |
ba4481b5 DL |
2457 | NON_GNU_CPP=/usr/ccs/lib/cpp |
2458 | ;; | |
2459 | * ) opsys=bsd4-2 ;; | |
2460 | esac | |
2461 | ## Watch out for a compiler that we know will not work. | |
2462 | case "${canonical}" in | |
2463 | *-solaris* | *-sunos5* ) | |
2464 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2465 | ## /usr/ucb/cc doesn't work; | |
2466 | ## we should find some other compiler that does work. | |
2467 | unset CC | |
2468 | fi | |
2469 | ;; | |
2470 | *) ;; | |
2471 | esac | |
2472 | ;; | |
2473 | sparc-*-nextstep* ) | |
2474 | machine=sparc opsys=nextstep | |
2475 | ;; | |
2476 | ||
2477 | ## Tadpole 68k | |
2478 | m68*-tadpole-sysv* ) | |
2479 | machine=tad68k opsys=usg5-3 | |
2480 | ;; | |
2481 | ||
2482 | ## Tahoe machines | |
2483 | tahoe-tahoe-bsd4.2* ) | |
2484 | machine=tahoe opsys=bsd4-2 | |
2485 | ;; | |
2486 | tahoe-tahoe-bsd4.3* ) | |
2487 | machine=tahoe opsys=bsd4-3 | |
2488 | ;; | |
2489 | ||
2490 | ## Tandem Integrity S2 | |
2491 | mips-tandem-sysv* ) | |
2492 | machine=tandem-s2 opsys=usg5-3 | |
2493 | ;; | |
2494 | ||
2495 | ## Tektronix XD88 | |
2496 | m88k-tektronix-sysv3* ) | |
2497 | machine=tekxd88 opsys=usg5-3 | |
2498 | ;; | |
2499 | ||
2500 | ## Tektronix 16000 box (6130?) | |
2501 | ns16k-tektronix-bsd* ) | |
2502 | machine=ns16000 opsys=bsd4-2 | |
2503 | ;; | |
2504 | ## Tektronix 4300 | |
2505 | ## src/m/tek4300.h hints that this is a m68k machine. | |
2506 | m68*-tektronix-bsd* ) | |
2507 | machine=tek4300 opsys=bsd4-3 | |
2508 | ;; | |
2509 | ||
2510 | ## Titan P2 or P3 | |
2511 | ## We seem to have lost the machine-description file titan.h! | |
2512 | titan-titan-sysv* ) | |
2513 | machine=titan opsys=usg5-3 | |
2514 | ;; | |
2515 | ||
2516 | ## Ustation E30 (SS5E) | |
2517 | m68*-unisys-uniplus* ) | |
2518 | machine=ustation opsystem=unipl5-2 | |
2519 | ;; | |
2520 | ||
2521 | ## Vaxen. | |
2522 | vax-dec-* ) | |
2523 | machine=vax | |
2524 | case "${canonical}" in | |
2525 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
2526 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2527 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2528 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2529 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2530 | *-vms* ) opsys=vms ;; | |
2531 | * ) unported=yes | |
2532 | esac | |
2533 | ;; | |
2534 | ||
2535 | ## Whitechapel MG1 | |
2536 | ns16k-whitechapel-* ) | |
2537 | machine=mg1 | |
2538 | ## We don't know what sort of OS runs on these; we'll let the | |
2539 | ## operating system guessing code below try. | |
2540 | ;; | |
2541 | ||
2542 | ## Wicat | |
2543 | m68*-wicat-sysv* ) | |
2544 | machine=wicat opsys=usg5-2 | |
2545 | ;; | |
2546 | ||
f4988be7 GM |
2547 | ## IA-64 |
2548 | ia64*-*-linux* ) | |
2549 | machine=ia64 opsys=gnu-linux | |
2550 | ;; | |
2551 | ||
ba4481b5 DL |
2552 | ## Intel 386 machines where we don't care about the manufacturer |
2553 | i[3456]86-*-* ) | |
2554 | machine=intel386 | |
2555 | case "${canonical}" in | |
c60ee5e7 | 2556 | *-cygwin ) opsys=cygwin ;; |
9f817ea4 | 2557 | *-lynxos* ) opsys=lynxos ;; |
ba4481b5 DL |
2558 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2559 | *-isc2.2* ) opsys=isc2-2 ;; | |
2560 | *-isc4.0* ) opsys=isc4-0 ;; | |
2561 | *-isc4.* ) opsys=isc4-1 | |
2562 | GCC_TEST_OPTIONS=-posix | |
2563 | NON_GCC_TEST_OPTIONS=-Xp | |
2564 | ;; | |
2565 | *-isc* ) opsys=isc3-0 ;; | |
2566 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2567 | *-esix* ) opsys=esix ;; | |
2568 | *-xenix* ) opsys=xenix ;; | |
2569 | *-linux-gnu* ) opsys=gnu-linux ;; | |
2570 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 2571 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
2572 | NON_GNU_CPP=/lib/cpp |
2573 | # Prevent -belf from being passed to $CPP. | |
2574 | # /lib/cpp does not accept it. | |
2575 | OVERRIDE_CPPFLAGS=" " | |
2576 | ;; | |
2577 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
55597d70 DL |
2578 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
2579 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 | 2580 | *-386bsd* ) opsys=386bsd ;; |
ba4481b5 DL |
2581 | *-nextstep* ) opsys=nextstep ;; |
2582 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2583 | esac | |
2584 | ;; | |
2585 | ||
2586 | ## m68k Linux-based GNU system | |
2587 | m68k-*-linux-gnu* ) | |
2588 | machine=m68k opsys=gnu-linux | |
2589 | ;; | |
2590 | ||
2591 | ## Mips Linux-based GNU system | |
cd958eb3 | 2592 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
2593 | machine=mips opsys=gnu-linux |
2594 | ;; | |
2595 | ||
2596 | ## UXP/DS | |
2597 | sparc-fujitsu-sysv4* ) | |
2598 | machine=sparc opsys=uxpds | |
2599 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2600 | RANLIB="ar -ts" | |
2601 | ;; | |
2602 | ||
2603 | ## UXP/V | |
2604 | f301-fujitsu-uxpv4.1) | |
2605 | machine=f301 opsys=uxpv | |
2606 | ;; | |
2607 | ||
e0f712ba AC |
2608 | ## Darwin / Mac OS X |
2609 | powerpc-apple-darwin* ) | |
2610 | machine=powermac opsys=darwin | |
2611 | # Define CPP as follows to make autoconf work correctly. | |
2a75d75d | 2612 | CPP="${CC-cc} -E -no-cpp-precomp" |
c14dc0ed AS |
2613 | # Use fink packages if available. |
2614 | if test -d /sw/include && test -d /sw/lib; then | |
2615 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
2616 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
2617 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
2618 | fi | |
e0f712ba AC |
2619 | ;; |
2620 | ||
598a2813 AS |
2621 | ## AMD x86-64 Linux-based GNU system |
2622 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 2623 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
2624 | ;; |
2625 | ||
ba4481b5 DL |
2626 | * ) |
2627 | unported=yes | |
2628 | ;; | |
2629 | esac | |
2630 | ||
2631 | ### If the code above didn't choose an operating system, just choose | |
2632 | ### an operating system based on the configuration name. You really | |
2633 | ### only want to use this when you have no idea what the right | |
2634 | ### operating system is; if you know what operating systems a machine | |
2635 | ### runs, it's cleaner to make it explicit in the case statement | |
2636 | ### above. | |
2637 | if test x"${opsys}" = x; then | |
2638 | case "${canonical}" in | |
2639 | *-gnu* ) opsys=gnu ;; | |
2640 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2641 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
2642 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
2643 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2644 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2645 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2646 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2647 | *-sysv4.2uw* ) opsys=unixware ;; | |
55597d70 DL |
2648 | *-sysv5uw* ) opsys=unixware ;; |
2649 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
2650 | *-sysv4.1* | *-sysvr4.1* ) |
2651 | NON_GNU_CPP=/usr/lib/cpp | |
2652 | opsys=usg5-4 ;; | |
2653 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2654 | if [ x$NON_GNU_CPP = x ]; then | |
2655 | if [ -f /usr/ccs/lib/cpp ]; then | |
2656 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2657 | else | |
2658 | NON_GNU_CPP=/lib/cpp | |
2659 | fi | |
2660 | fi | |
2661 | opsys=usg5-4-2 ;; | |
2662 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2663 | * ) | |
2664 | unported=yes | |
2665 | ;; | |
2666 | esac | |
2667 | fi | |
2668 | ||
c0d27fcc | 2669 | |
22044edf | 2670 | |
ba4481b5 | 2671 | if test $unported = yes; then |
c0d27fcc | 2672 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
2673 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
2674 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2675 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2676 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2677 | fi |
2678 | ||
2679 | machfile="m/${machine}.h" | |
2680 | opsysfile="s/${opsys}.h" | |
2681 | ||
c0d27fcc | 2682 | |
ba4481b5 DL |
2683 | #### Choose a compiler. |
2684 | test -n "$CC" && cc_specified=yes | |
2685 | ||
2686 | # Save the value of CFLAGS that the user specified. | |
2687 | SPECIFIED_CFLAGS="$CFLAGS" | |
2688 | ||
2689 | case ${with_gcc} in | |
2690 | "yes" ) CC="gcc" GCC=yes ;; | |
2691 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
2692 | * ) |
2693 | esac | |
2694 | ac_ext=c | |
2695 | ac_cpp='$CPP $CPPFLAGS' | |
2696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2699 | if test -n "$ac_tool_prefix"; then | |
2700 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2701 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
c0d27fcc | 2702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2704 | if test "${ac_cv_prog_CC+set}" = set; then | |
2705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2706 | else |
2707 | if test -n "$CC"; then | |
2708 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2709 | else | |
c0d27fcc MR |
2710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2711 | for as_dir in $PATH | |
2712 | do | |
2713 | IFS=$as_save_IFS | |
2714 | test -z "$as_dir" && as_dir=. | |
2715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2717 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2719 | break 2 | |
2720 | fi | |
2721 | done | |
503d2be0 AS |
2722 | done |
2723 | ||
ba4481b5 DL |
2724 | fi |
2725 | fi | |
503d2be0 | 2726 | CC=$ac_cv_prog_CC |
ba4481b5 | 2727 | if test -n "$CC"; then |
c0d27fcc | 2728 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2729 | echo "${ECHO_T}$CC" >&6 |
2730 | else | |
c0d27fcc | 2731 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2732 | echo "${ECHO_T}no" >&6 |
2733 | fi | |
2734 | ||
2735 | fi | |
2736 | if test -z "$ac_cv_prog_CC"; then | |
2737 | ac_ct_CC=$CC | |
2738 | # Extract the first word of "gcc", so it can be a program name with args. | |
2739 | set dummy gcc; ac_word=$2 | |
c0d27fcc | 2740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2742 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2744 | else | |
2745 | if test -n "$ac_ct_CC"; then | |
2746 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2747 | else | |
c0d27fcc MR |
2748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2749 | for as_dir in $PATH | |
2750 | do | |
2751 | IFS=$as_save_IFS | |
2752 | test -z "$as_dir" && as_dir=. | |
2753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2755 | ac_cv_prog_ac_ct_CC="gcc" | |
2756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2757 | break 2 | |
2758 | fi | |
2759 | done | |
503d2be0 AS |
2760 | done |
2761 | ||
2762 | fi | |
2763 | fi | |
2764 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2765 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2766 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 | 2767 | echo "${ECHO_T}$ac_ct_CC" >&6 |
ba4481b5 | 2768 | else |
c0d27fcc | 2769 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2770 | echo "${ECHO_T}no" >&6 |
2771 | fi | |
2772 | ||
2773 | CC=$ac_ct_CC | |
2774 | else | |
2775 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
2776 | fi |
2777 | ||
2778 | if test -z "$CC"; then | |
503d2be0 AS |
2779 | if test -n "$ac_tool_prefix"; then |
2780 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2781 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
c0d27fcc | 2782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2784 | if test "${ac_cv_prog_CC+set}" = set; then | |
2785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2786 | else |
2787 | if test -n "$CC"; then | |
2788 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2789 | else | |
c0d27fcc MR |
2790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2791 | for as_dir in $PATH | |
2792 | do | |
2793 | IFS=$as_save_IFS | |
2794 | test -z "$as_dir" && as_dir=. | |
2795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2797 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2799 | break 2 | |
2800 | fi | |
2801 | done | |
503d2be0 AS |
2802 | done |
2803 | ||
2804 | fi | |
2805 | fi | |
2806 | CC=$ac_cv_prog_CC | |
2807 | if test -n "$CC"; then | |
c0d27fcc | 2808 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2809 | echo "${ECHO_T}$CC" >&6 |
2810 | else | |
c0d27fcc | 2811 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2812 | echo "${ECHO_T}no" >&6 |
2813 | fi | |
2814 | ||
2815 | fi | |
2816 | if test -z "$ac_cv_prog_CC"; then | |
2817 | ac_ct_CC=$CC | |
2818 | # Extract the first word of "cc", so it can be a program name with args. | |
2819 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2822 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2824 | else | |
2825 | if test -n "$ac_ct_CC"; then | |
2826 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2827 | else | |
c0d27fcc MR |
2828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2829 | for as_dir in $PATH | |
2830 | do | |
2831 | IFS=$as_save_IFS | |
2832 | test -z "$as_dir" && as_dir=. | |
2833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2835 | ac_cv_prog_ac_ct_CC="cc" | |
2836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2837 | break 2 | |
2838 | fi | |
2839 | done | |
503d2be0 AS |
2840 | done |
2841 | ||
2842 | fi | |
2843 | fi | |
2844 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2845 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2846 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2847 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2848 | else | |
c0d27fcc | 2849 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2850 | echo "${ECHO_T}no" >&6 |
2851 | fi | |
2852 | ||
2853 | CC=$ac_ct_CC | |
2854 | else | |
2855 | CC="$ac_cv_prog_CC" | |
2856 | fi | |
2857 | ||
2858 | fi | |
2859 | if test -z "$CC"; then | |
2860 | # Extract the first word of "cc", so it can be a program name with args. | |
2861 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2864 | if test "${ac_cv_prog_CC+set}" = set; then | |
2865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2866 | else | |
2867 | if test -n "$CC"; then | |
2868 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2869 | else | |
2870 | ac_prog_rejected=no | |
c0d27fcc MR |
2871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2872 | for as_dir in $PATH | |
2873 | do | |
2874 | IFS=$as_save_IFS | |
2875 | test -z "$as_dir" && as_dir=. | |
2876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2878 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2879 | ac_prog_rejected=yes | |
2880 | continue | |
2881 | fi | |
2882 | ac_cv_prog_CC="cc" | |
2883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2884 | break 2 | |
2885 | fi | |
2886 | done | |
503d2be0 AS |
2887 | done |
2888 | ||
ba4481b5 DL |
2889 | if test $ac_prog_rejected = yes; then |
2890 | # We found a bogon in the path, so make sure we never use it. | |
2891 | set dummy $ac_cv_prog_CC | |
2892 | shift | |
503d2be0 | 2893 | if test $# != 0; then |
ba4481b5 DL |
2894 | # We chose a different compiler from the bogus one. |
2895 | # However, it has the same basename, so the bogon will be chosen | |
2896 | # first if we set CC to just the basename; use the full file name. | |
2897 | shift | |
6bae0ccf | 2898 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
2899 | fi |
2900 | fi | |
2901 | fi | |
2902 | fi | |
503d2be0 | 2903 | CC=$ac_cv_prog_CC |
ba4481b5 | 2904 | if test -n "$CC"; then |
c0d27fcc | 2905 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2906 | echo "${ECHO_T}$CC" >&6 |
ba4481b5 | 2907 | else |
c0d27fcc | 2908 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2909 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2910 | fi |
2911 | ||
503d2be0 AS |
2912 | fi |
2913 | if test -z "$CC"; then | |
2914 | if test -n "$ac_tool_prefix"; then | |
2915 | for ac_prog in cl | |
2916 | do | |
2917 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2918 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c0d27fcc | 2919 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2921 | if test "${ac_cv_prog_CC+set}" = set; then | |
2922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
2923 | else |
2924 | if test -n "$CC"; then | |
2925 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2926 | else | |
c0d27fcc MR |
2927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2928 | for as_dir in $PATH | |
2929 | do | |
2930 | IFS=$as_save_IFS | |
2931 | test -z "$as_dir" && as_dir=. | |
2932 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2933 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2934 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2935 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2936 | break 2 | |
2937 | fi | |
2938 | done | |
503d2be0 AS |
2939 | done |
2940 | ||
c4bb2108 DL |
2941 | fi |
2942 | fi | |
503d2be0 | 2943 | CC=$ac_cv_prog_CC |
c4bb2108 | 2944 | if test -n "$CC"; then |
c0d27fcc | 2945 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2946 | echo "${ECHO_T}$CC" >&6 |
c4bb2108 | 2947 | else |
c0d27fcc | 2948 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2949 | echo "${ECHO_T}no" >&6 |
2950 | fi | |
2951 | ||
2952 | test -n "$CC" && break | |
2953 | done | |
2954 | fi | |
2955 | if test -z "$CC"; then | |
2956 | ac_ct_CC=$CC | |
2957 | for ac_prog in cl | |
2958 | do | |
2959 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2960 | set dummy $ac_prog; ac_word=$2 | |
c0d27fcc | 2961 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2963 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2965 | else | |
2966 | if test -n "$ac_ct_CC"; then | |
2967 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2968 | else | |
c0d27fcc MR |
2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2970 | for as_dir in $PATH | |
2971 | do | |
2972 | IFS=$as_save_IFS | |
2973 | test -z "$as_dir" && as_dir=. | |
2974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2976 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2978 | break 2 | |
2979 | fi | |
2980 | done | |
503d2be0 AS |
2981 | done |
2982 | ||
c4bb2108 | 2983 | fi |
503d2be0 AS |
2984 | fi |
2985 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2986 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2987 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2988 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2989 | else | |
c0d27fcc | 2990 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2991 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2992 | fi |
2993 | ||
503d2be0 AS |
2994 | test -n "$ac_ct_CC" && break |
2995 | done | |
ba4481b5 | 2996 | |
503d2be0 AS |
2997 | CC=$ac_ct_CC |
2998 | fi | |
2999 | ||
3000 | fi | |
ba4481b5 | 3001 | |
c0d27fcc | 3002 | |
19650fd6 AS |
3003 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3004 | See \`config.log' for more details." >&5 | |
3005 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3006 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3007 | { (exit 1); exit 1; }; } |
c4bb2108 | 3008 | |
503d2be0 | 3009 | # Provide some information about the compiler. |
c0d27fcc | 3010 | echo "$as_me:$LINENO:" \ |
503d2be0 AS |
3011 | "checking for C compiler version" >&5 |
3012 | ac_compiler=`set X $ac_compile; echo $2` | |
c0d27fcc | 3013 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
503d2be0 AS |
3014 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
3015 | ac_status=$? | |
c0d27fcc | 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3017 | (exit $ac_status); } |
c0d27fcc | 3018 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
503d2be0 AS |
3019 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
3020 | ac_status=$? | |
c0d27fcc | 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3022 | (exit $ac_status); } |
c0d27fcc | 3023 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
503d2be0 AS |
3024 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
3025 | ac_status=$? | |
c0d27fcc | 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3027 | (exit $ac_status); } |
3028 | ||
3029 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3030 | /* confdefs.h. */ |
3031 | _ACEOF | |
3032 | cat confdefs.h >>conftest.$ac_ext | |
3033 | cat >>conftest.$ac_ext <<_ACEOF | |
3034 | /* end confdefs.h. */ | |
c4bb2108 | 3035 | |
503d2be0 AS |
3036 | int |
3037 | main () | |
3038 | { | |
3039 | ||
3040 | ; | |
3041 | return 0; | |
3042 | } | |
3043 | _ACEOF | |
3044 | ac_clean_files_save=$ac_clean_files | |
19650fd6 | 3045 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
3046 | # Try to create an executable without -o first, disregard a.out. |
3047 | # It will help us diagnose broken compilers, and finding out an intuition | |
3048 | # of exeext. | |
35996d22 AS |
3049 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3050 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
503d2be0 | 3051 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
c0d27fcc | 3052 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
503d2be0 AS |
3053 | (eval $ac_link_default) 2>&5 |
3054 | ac_status=$? | |
c0d27fcc | 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3056 | (exit $ac_status); }; then |
3057 | # Find the output, starting from the most likely. This scheme is | |
3058 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3059 | # resort. | |
c0d27fcc MR |
3060 | |
3061 | # Be careful to initialize this variable, since it used to be cached. | |
3062 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3063 | ac_cv_exeext= | |
19650fd6 AS |
3064 | # b.out is created by i960 compilers. |
3065 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
3066 | do | |
6bae0ccf | 3067 | test -f "$ac_file" || continue |
503d2be0 | 3068 | case $ac_file in |
19650fd6 | 3069 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
35996d22 | 3070 | ;; |
19650fd6 | 3071 | conftest.$ac_ext ) |
35996d22 AS |
3072 | # This is the source file. |
3073 | ;; | |
19650fd6 | 3074 | [ab].out ) |
35996d22 AS |
3075 | # We found the default executable, but exeext='' is most |
3076 | # certainly right. | |
3077 | break;; | |
19650fd6 | 3078 | *.* ) |
35996d22 AS |
3079 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3080 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3081 | # but it would be cool to find out if it's true. Does anybody | |
3082 | # maintain Libtool? --akim. | |
3083 | export ac_cv_exeext | |
3084 | break;; | |
19650fd6 | 3085 | * ) |
35996d22 | 3086 | break;; |
503d2be0 AS |
3087 | esac |
3088 | done | |
3089 | else | |
3090 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3091 | sed 's/^/| /' conftest.$ac_ext >&5 |
3092 | ||
6bae0ccf | 3093 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
19650fd6 | 3094 | See \`config.log' for more details." >&5 |
6bae0ccf | 3095 | echo "$as_me: error: C compiler cannot create executables |
19650fd6 | 3096 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3097 | { (exit 77); exit 77; }; } |
3098 | fi | |
3099 | ||
3100 | ac_exeext=$ac_cv_exeext | |
c0d27fcc | 3101 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
503d2be0 AS |
3102 | echo "${ECHO_T}$ac_file" >&6 |
3103 | ||
3104 | # Check the compiler produces executables we can run. If not, either | |
3105 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3106 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
503d2be0 AS |
3107 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
3108 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3109 | # If not cross compiling, check that we can run a simple program. | |
3110 | if test "$cross_compiling" != yes; then | |
3111 | if { ac_try='./$ac_file' | |
c0d27fcc | 3112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3113 | (eval $ac_try) 2>&5 |
3114 | ac_status=$? | |
c0d27fcc | 3115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3116 | (exit $ac_status); }; }; then |
3117 | cross_compiling=no | |
ba4481b5 | 3118 | else |
503d2be0 AS |
3119 | if test "$cross_compiling" = maybe; then |
3120 | cross_compiling=yes | |
3121 | else | |
c0d27fcc | 3122 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
19650fd6 AS |
3123 | If you meant to cross compile, use \`--host'. |
3124 | See \`config.log' for more details." >&5 | |
503d2be0 | 3125 | echo "$as_me: error: cannot run C compiled programs. |
19650fd6 AS |
3126 | If you meant to cross compile, use \`--host'. |
3127 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3128 | { (exit 1); exit 1; }; } |
3129 | fi | |
ba4481b5 | 3130 | fi |
503d2be0 | 3131 | fi |
c0d27fcc | 3132 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 AS |
3133 | echo "${ECHO_T}yes" >&6 |
3134 | ||
19650fd6 | 3135 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 AS |
3136 | ac_clean_files=$ac_clean_files_save |
3137 | # Check the compiler produces executables we can run. If not, either | |
3138 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3139 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
503d2be0 | 3140 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
c0d27fcc | 3141 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
503d2be0 AS |
3142 | echo "${ECHO_T}$cross_compiling" >&6 |
3143 | ||
c0d27fcc MR |
3144 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3145 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
503d2be0 AS |
3147 | (eval $ac_link) 2>&5 |
3148 | ac_status=$? | |
c0d27fcc | 3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3150 | (exit $ac_status); }; then |
3151 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3152 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3153 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3154 | # `rm'. | |
6bae0ccf DL |
3155 | for ac_file in conftest.exe conftest conftest.*; do |
3156 | test -f "$ac_file" || continue | |
503d2be0 | 3157 | case $ac_file in |
6bae0ccf | 3158 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
503d2be0 | 3159 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
35996d22 AS |
3160 | export ac_cv_exeext |
3161 | break;; | |
503d2be0 AS |
3162 | * ) break;; |
3163 | esac | |
3164 | done | |
ba4481b5 | 3165 | else |
19650fd6 AS |
3166 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3167 | See \`config.log' for more details." >&5 | |
3168 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3169 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3170 | { (exit 1); exit 1; }; } |
ba4481b5 | 3171 | fi |
ba4481b5 | 3172 | |
503d2be0 | 3173 | rm -f conftest$ac_cv_exeext |
c0d27fcc | 3174 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
503d2be0 | 3175 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
ba4481b5 | 3176 | |
503d2be0 AS |
3177 | rm -f conftest.$ac_ext |
3178 | EXEEXT=$ac_cv_exeext | |
3179 | ac_exeext=$EXEEXT | |
c0d27fcc MR |
3180 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3181 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
503d2be0 AS |
3182 | if test "${ac_cv_objext+set}" = set; then |
3183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3184 | else |
503d2be0 | 3185 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3186 | /* confdefs.h. */ |
3187 | _ACEOF | |
3188 | cat confdefs.h >>conftest.$ac_ext | |
3189 | cat >>conftest.$ac_ext <<_ACEOF | |
3190 | /* end confdefs.h. */ | |
ba4481b5 | 3191 | |
503d2be0 AS |
3192 | int |
3193 | main () | |
3194 | { | |
ba4481b5 | 3195 | |
503d2be0 AS |
3196 | ; |
3197 | return 0; | |
3198 | } | |
3199 | _ACEOF | |
3200 | rm -f conftest.o conftest.obj | |
c0d27fcc | 3201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3202 | (eval $ac_compile) 2>&5 |
3203 | ac_status=$? | |
c0d27fcc | 3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3205 | (exit $ac_status); }; then |
3206 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3207 | case $ac_file in | |
6bae0ccf | 3208 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
503d2be0 AS |
3209 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3210 | break;; | |
3211 | esac | |
3212 | done | |
c4bb2108 | 3213 | else |
503d2be0 | 3214 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3215 | sed 's/^/| /' conftest.$ac_ext >&5 |
3216 | ||
3217 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3218 | See \`config.log' for more details." >&5 | |
3219 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3220 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3221 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3222 | fi |
3223 | ||
503d2be0 AS |
3224 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3225 | fi | |
c0d27fcc | 3226 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
503d2be0 AS |
3227 | echo "${ECHO_T}$ac_cv_objext" >&6 |
3228 | OBJEXT=$ac_cv_objext | |
3229 | ac_objext=$OBJEXT | |
c0d27fcc | 3230 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
503d2be0 AS |
3231 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
3232 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3234 | else |
503d2be0 | 3235 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3236 | /* confdefs.h. */ |
3237 | _ACEOF | |
3238 | cat confdefs.h >>conftest.$ac_ext | |
3239 | cat >>conftest.$ac_ext <<_ACEOF | |
3240 | /* end confdefs.h. */ | |
503d2be0 AS |
3241 | |
3242 | int | |
3243 | main () | |
3244 | { | |
3245 | #ifndef __GNUC__ | |
3246 | choke me | |
3247 | #endif | |
3248 | ||
3249 | ; | |
3250 | return 0; | |
3251 | } | |
3252 | _ACEOF | |
3253 | rm -f conftest.$ac_objext | |
c0d27fcc | 3254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3255 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3256 | ac_status=$? |
35996d22 AS |
3257 | grep -v '^ *+' conftest.er1 >conftest.err |
3258 | rm -f conftest.er1 | |
3259 | cat conftest.err >&5 | |
c0d27fcc | 3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3261 | (exit $ac_status); } && |
35996d22 AS |
3262 | { ac_try='test -z "$ac_c_werror_flag" |
3263 | || test ! -s conftest.err' | |
3264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3265 | (eval $ac_try) 2>&5 | |
3266 | ac_status=$? | |
3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3268 | (exit $ac_status); }; } && | |
3269 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3271 | (eval $ac_try) 2>&5 |
3272 | ac_status=$? | |
c0d27fcc | 3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3274 | (exit $ac_status); }; }; then |
3275 | ac_compiler_gnu=yes | |
3276 | else | |
3277 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3278 | sed 's/^/| /' conftest.$ac_ext >&5 |
3279 | ||
503d2be0 AS |
3280 | ac_compiler_gnu=no |
3281 | fi | |
35996d22 | 3282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3283 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3284 | ||
3285 | fi | |
c0d27fcc | 3286 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
503d2be0 AS |
3287 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
3288 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3289 | ac_test_CFLAGS=${CFLAGS+set} | |
3290 | ac_save_CFLAGS=$CFLAGS | |
3291 | CFLAGS="-g" | |
c0d27fcc | 3292 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
503d2be0 AS |
3293 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
3294 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3296 | else | |
3297 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3298 | /* confdefs.h. */ |
3299 | _ACEOF | |
3300 | cat confdefs.h >>conftest.$ac_ext | |
3301 | cat >>conftest.$ac_ext <<_ACEOF | |
3302 | /* end confdefs.h. */ | |
503d2be0 AS |
3303 | |
3304 | int | |
3305 | main () | |
3306 | { | |
3307 | ||
3308 | ; | |
3309 | return 0; | |
3310 | } | |
3311 | _ACEOF | |
3312 | rm -f conftest.$ac_objext | |
c0d27fcc | 3313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3314 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3315 | ac_status=$? |
35996d22 AS |
3316 | grep -v '^ *+' conftest.er1 >conftest.err |
3317 | rm -f conftest.er1 | |
3318 | cat conftest.err >&5 | |
c0d27fcc | 3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3320 | (exit $ac_status); } && |
35996d22 AS |
3321 | { ac_try='test -z "$ac_c_werror_flag" |
3322 | || test ! -s conftest.err' | |
3323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3324 | (eval $ac_try) 2>&5 | |
3325 | ac_status=$? | |
3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3327 | (exit $ac_status); }; } && | |
3328 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3330 | (eval $ac_try) 2>&5 |
3331 | ac_status=$? | |
c0d27fcc | 3332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3333 | (exit $ac_status); }; }; then |
ba4481b5 DL |
3334 | ac_cv_prog_cc_g=yes |
3335 | else | |
503d2be0 | 3336 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3337 | sed 's/^/| /' conftest.$ac_ext >&5 |
3338 | ||
503d2be0 | 3339 | ac_cv_prog_cc_g=no |
ba4481b5 | 3340 | fi |
35996d22 | 3341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 3342 | fi |
c0d27fcc | 3343 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
503d2be0 | 3344 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
c4bb2108 | 3345 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 3346 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
3347 | elif test $ac_cv_prog_cc_g = yes; then |
3348 | if test "$GCC" = yes; then | |
ba4481b5 DL |
3349 | CFLAGS="-g -O2" |
3350 | else | |
c4bb2108 | 3351 | CFLAGS="-g" |
ba4481b5 | 3352 | fi |
22afa6e8 | 3353 | else |
c4bb2108 DL |
3354 | if test "$GCC" = yes; then |
3355 | CFLAGS="-O2" | |
3356 | else | |
3357 | CFLAGS= | |
3358 | fi | |
ba4481b5 | 3359 | fi |
6bae0ccf DL |
3360 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3361 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3362 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3364 | else | |
3365 | ac_cv_prog_cc_stdc=no | |
3366 | ac_save_CC=$CC | |
3367 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3368 | /* confdefs.h. */ |
3369 | _ACEOF | |
3370 | cat confdefs.h >>conftest.$ac_ext | |
3371 | cat >>conftest.$ac_ext <<_ACEOF | |
3372 | /* end confdefs.h. */ | |
6bae0ccf DL |
3373 | #include <stdarg.h> |
3374 | #include <stdio.h> | |
3375 | #include <sys/types.h> | |
3376 | #include <sys/stat.h> | |
3377 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3378 | struct buf { int x; }; | |
3379 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3380 | static char *e (p, i) | |
3381 | char **p; | |
3382 | int i; | |
3383 | { | |
3384 | return p[i]; | |
3385 | } | |
3386 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3387 | { | |
3388 | char *s; | |
3389 | va_list v; | |
3390 | va_start (v,p); | |
3391 | s = g (p, va_arg (v,int)); | |
3392 | va_end (v); | |
3393 | return s; | |
3394 | } | |
35996d22 AS |
3395 | |
3396 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3397 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3398 | These don't provoke an error unfortunately, instead are silently treated | |
3399 | as 'x'. The following induces an error, until -std1 is added to get | |
3400 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3401 | array size at least. It's necessary to write '\x00'==0 to get something | |
3402 | that's true only with -std1. */ | |
3403 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3404 | ||
6bae0ccf DL |
3405 | int test (int i, double x); |
3406 | struct s1 {int (*f) (int a);}; | |
3407 | struct s2 {int (*f) (double a);}; | |
3408 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3409 | int argc; | |
3410 | char **argv; | |
3411 | int | |
3412 | main () | |
3413 | { | |
3414 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3415 | ; | |
3416 | return 0; | |
3417 | } | |
3418 | _ACEOF | |
3419 | # Don't try gcc -ansi; that turns off useful extensions and | |
3420 | # breaks some systems' header files. | |
3421 | # AIX -qlanglvl=ansi | |
3422 | # Ultrix and OSF/1 -std1 | |
3423 | # HP-UX 10.20 and later -Ae | |
3424 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3425 | # SVR4 -Xc -D__EXTENSIONS__ | |
3426 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3427 | do | |
3428 | CC="$ac_save_CC $ac_arg" | |
3429 | rm -f conftest.$ac_objext | |
3430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 3431 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 3432 | ac_status=$? |
35996d22 AS |
3433 | grep -v '^ *+' conftest.er1 >conftest.err |
3434 | rm -f conftest.er1 | |
3435 | cat conftest.err >&5 | |
6bae0ccf DL |
3436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3437 | (exit $ac_status); } && | |
35996d22 AS |
3438 | { ac_try='test -z "$ac_c_werror_flag" |
3439 | || test ! -s conftest.err' | |
3440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3441 | (eval $ac_try) 2>&5 | |
3442 | ac_status=$? | |
3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3444 | (exit $ac_status); }; } && | |
3445 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
3446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3447 | (eval $ac_try) 2>&5 | |
3448 | ac_status=$? | |
3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3450 | (exit $ac_status); }; }; then | |
3451 | ac_cv_prog_cc_stdc=$ac_arg | |
3452 | break | |
3453 | else | |
3454 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3455 | sed 's/^/| /' conftest.$ac_ext >&5 |
3456 | ||
6bae0ccf | 3457 | fi |
35996d22 | 3458 | rm -f conftest.err conftest.$ac_objext |
6bae0ccf DL |
3459 | done |
3460 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3461 | CC=$ac_save_CC | |
3462 | ||
3463 | fi | |
3464 | ||
3465 | case "x$ac_cv_prog_cc_stdc" in | |
3466 | x|xno) | |
3467 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3468 | echo "${ECHO_T}none needed" >&6 ;; | |
3469 | *) | |
3470 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3471 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3472 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3473 | esac | |
3474 | ||
503d2be0 AS |
3475 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3476 | # in C++ we need to declare it. In case someone uses the same compiler | |
3477 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3478 | # the declaration of exit, since it's the most demanding environment. | |
3479 | cat >conftest.$ac_ext <<_ACEOF | |
3480 | #ifndef __cplusplus | |
3481 | choke me | |
3482 | #endif | |
3483 | _ACEOF | |
3484 | rm -f conftest.$ac_objext | |
c0d27fcc | 3485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3486 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3487 | ac_status=$? |
35996d22 AS |
3488 | grep -v '^ *+' conftest.er1 >conftest.err |
3489 | rm -f conftest.er1 | |
3490 | cat conftest.err >&5 | |
c0d27fcc | 3491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3492 | (exit $ac_status); } && |
35996d22 AS |
3493 | { ac_try='test -z "$ac_c_werror_flag" |
3494 | || test ! -s conftest.err' | |
3495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3496 | (eval $ac_try) 2>&5 | |
3497 | ac_status=$? | |
3498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3499 | (exit $ac_status); }; } && | |
3500 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3502 | (eval $ac_try) 2>&5 |
3503 | ac_status=$? | |
c0d27fcc | 3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3505 | (exit $ac_status); }; }; then |
3506 | for ac_declaration in \ | |
35996d22 | 3507 | '' \ |
503d2be0 AS |
3508 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3509 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3510 | 'extern "C" void exit (int) throw ();' \ | |
3511 | 'extern "C" void exit (int);' \ | |
cffcede7 | 3512 | 'void exit (int);' |
503d2be0 AS |
3513 | do |
3514 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3515 | /* confdefs.h. */ |
3516 | _ACEOF | |
3517 | cat confdefs.h >>conftest.$ac_ext | |
3518 | cat >>conftest.$ac_ext <<_ACEOF | |
3519 | /* end confdefs.h. */ | |
57669b57 | 3520 | $ac_declaration |
35996d22 | 3521 | #include <stdlib.h> |
503d2be0 AS |
3522 | int |
3523 | main () | |
3524 | { | |
3525 | exit (42); | |
3526 | ; | |
3527 | return 0; | |
3528 | } | |
3529 | _ACEOF | |
3530 | rm -f conftest.$ac_objext | |
c0d27fcc | 3531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3532 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3533 | ac_status=$? |
35996d22 AS |
3534 | grep -v '^ *+' conftest.er1 >conftest.err |
3535 | rm -f conftest.er1 | |
3536 | cat conftest.err >&5 | |
c0d27fcc | 3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3538 | (exit $ac_status); } && |
35996d22 AS |
3539 | { ac_try='test -z "$ac_c_werror_flag" |
3540 | || test ! -s conftest.err' | |
3541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3542 | (eval $ac_try) 2>&5 | |
3543 | ac_status=$? | |
3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3545 | (exit $ac_status); }; } && | |
3546 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3548 | (eval $ac_try) 2>&5 |
3549 | ac_status=$? | |
c0d27fcc | 3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3551 | (exit $ac_status); }; }; then |
3552 | : | |
3553 | else | |
3554 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3555 | sed 's/^/| /' conftest.$ac_ext >&5 |
3556 | ||
503d2be0 AS |
3557 | continue |
3558 | fi | |
35996d22 | 3559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 3560 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3561 | /* confdefs.h. */ |
3562 | _ACEOF | |
3563 | cat confdefs.h >>conftest.$ac_ext | |
3564 | cat >>conftest.$ac_ext <<_ACEOF | |
3565 | /* end confdefs.h. */ | |
503d2be0 AS |
3566 | $ac_declaration |
3567 | int | |
3568 | main () | |
3569 | { | |
3570 | exit (42); | |
3571 | ; | |
3572 | return 0; | |
3573 | } | |
3574 | _ACEOF | |
3575 | rm -f conftest.$ac_objext | |
c0d27fcc | 3576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3577 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3578 | ac_status=$? |
35996d22 AS |
3579 | grep -v '^ *+' conftest.er1 >conftest.err |
3580 | rm -f conftest.er1 | |
3581 | cat conftest.err >&5 | |
c0d27fcc | 3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3583 | (exit $ac_status); } && |
35996d22 AS |
3584 | { ac_try='test -z "$ac_c_werror_flag" |
3585 | || test ! -s conftest.err' | |
3586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3587 | (eval $ac_try) 2>&5 | |
3588 | ac_status=$? | |
3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3590 | (exit $ac_status); }; } && | |
3591 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3593 | (eval $ac_try) 2>&5 |
3594 | ac_status=$? | |
c0d27fcc | 3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3596 | (exit $ac_status); }; }; then |
3597 | break | |
3598 | else | |
3599 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3600 | sed 's/^/| /' conftest.$ac_ext >&5 |
3601 | ||
503d2be0 | 3602 | fi |
35996d22 | 3603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3604 | done |
3605 | rm -f conftest* | |
3606 | if test -n "$ac_declaration"; then | |
3607 | echo '#ifdef __cplusplus' >>confdefs.h | |
3608 | echo $ac_declaration >>confdefs.h | |
3609 | echo '#endif' >>confdefs.h | |
3610 | fi | |
ba4481b5 | 3611 | |
503d2be0 AS |
3612 | else |
3613 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3614 | sed 's/^/| /' conftest.$ac_ext >&5 |
3615 | ||
503d2be0 | 3616 | fi |
35996d22 | 3617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3618 | ac_ext=c |
3619 | ac_cpp='$CPP $CPPFLAGS' | |
3620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 3623 | |
c0d27fcc | 3624 | |
ba4481b5 DL |
3625 | # On Suns, sometimes $CPP names a directory. |
3626 | if test -n "$CPP" && test -d "$CPP"; then | |
3627 | CPP= | |
3628 | fi | |
3629 | ||
3630 | #### Some systems specify a CPP to use unless we are using GCC. | |
3631 | #### Now that we know whether we are using GCC, we can decide whether | |
3632 | #### to use that one. | |
3633 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3634 | then | |
3635 | CPP="$NON_GNU_CPP" | |
3636 | fi | |
3637 | ||
3638 | #### Some systems specify a CC to use unless we are using GCC. | |
3639 | #### Now that we know whether we are using GCC, we can decide whether | |
3640 | #### to use that one. | |
3641 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3642 | test x$cc_specified != xyes | |
3643 | then | |
3644 | CC="$NON_GNU_CC" | |
3645 | fi | |
3646 | ||
3647 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3648 | then | |
3649 | CC="$CC $GCC_TEST_OPTIONS" | |
3650 | fi | |
3651 | ||
3652 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3653 | then | |
3654 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
3655 | fi | |
3656 | ||
6a3a24fa | 3657 | #### Some other nice autoconf tests. |
ba4481b5 | 3658 | |
c0d27fcc | 3659 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
503d2be0 AS |
3660 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3661 | LN_S=$as_ln_s | |
3662 | if test "$LN_S" = "ln -s"; then | |
c0d27fcc | 3663 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 3664 | echo "${ECHO_T}yes" >&6 |
ba4481b5 | 3665 | else |
c0d27fcc | 3666 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
503d2be0 | 3667 | echo "${ECHO_T}no, using $LN_S" >&6 |
ba4481b5 DL |
3668 | fi |
3669 | ||
503d2be0 AS |
3670 | ac_ext=c |
3671 | ac_cpp='$CPP $CPPFLAGS' | |
3672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c0d27fcc | 3675 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
503d2be0 | 3676 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
ba4481b5 DL |
3677 | # On Suns, sometimes $CPP names a directory. |
3678 | if test -n "$CPP" && test -d "$CPP"; then | |
3679 | CPP= | |
3680 | fi | |
3681 | if test -z "$CPP"; then | |
503d2be0 AS |
3682 | if test "${ac_cv_prog_CPP+set}" = set; then |
3683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3684 | else | |
3685 | # Double quotes because CPP needs to be expanded | |
3686 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3687 | do | |
3688 | ac_preproc_ok=false | |
3689 | for ac_c_preproc_warn_flag in '' yes | |
3690 | do | |
3691 | # Use a header file that comes with gcc, so configuring glibc | |
3692 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3693 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3694 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 3695 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
3696 | # not just through cpp. "Syntax error" is here to catch this case. |
3697 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3698 | /* confdefs.h. */ |
3699 | _ACEOF | |
3700 | cat confdefs.h >>conftest.$ac_ext | |
3701 | cat >>conftest.$ac_ext <<_ACEOF | |
3702 | /* end confdefs.h. */ | |
3703 | #ifdef __STDC__ | |
3704 | # include <limits.h> | |
3705 | #else | |
3706 | # include <assert.h> | |
3707 | #endif | |
35996d22 | 3708 | Syntax error |
503d2be0 | 3709 | _ACEOF |
c0d27fcc | 3710 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3711 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3712 | ac_status=$? | |
6bae0ccf | 3713 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3714 | rm -f conftest.er1 |
3715 | cat conftest.err >&5 | |
c0d27fcc | 3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3717 | (exit $ac_status); } >/dev/null; then |
3718 | if test -s conftest.err; then | |
3719 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3720 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3721 | else |
3722 | ac_cpp_err= | |
3723 | fi | |
3724 | else | |
3725 | ac_cpp_err=yes | |
3726 | fi | |
3727 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3728 | : |
3729 | else | |
503d2be0 | 3730 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3731 | sed 's/^/| /' conftest.$ac_ext >&5 |
3732 | ||
503d2be0 AS |
3733 | # Broken: fails on valid input. |
3734 | continue | |
3735 | fi | |
3736 | rm -f conftest.err conftest.$ac_ext | |
3737 | ||
3738 | # OK, works on sane cases. Now check whether non-existent headers | |
3739 | # can be detected and how. | |
3740 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3741 | /* confdefs.h. */ |
3742 | _ACEOF | |
3743 | cat confdefs.h >>conftest.$ac_ext | |
3744 | cat >>conftest.$ac_ext <<_ACEOF | |
3745 | /* end confdefs.h. */ | |
503d2be0 AS |
3746 | #include <ac_nonexistent.h> |
3747 | _ACEOF | |
c0d27fcc | 3748 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3749 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3750 | ac_status=$? | |
6bae0ccf | 3751 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3752 | rm -f conftest.er1 |
3753 | cat conftest.err >&5 | |
c0d27fcc | 3754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3755 | (exit $ac_status); } >/dev/null; then |
3756 | if test -s conftest.err; then | |
3757 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3758 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3759 | else |
3760 | ac_cpp_err= | |
3761 | fi | |
3762 | else | |
3763 | ac_cpp_err=yes | |
3764 | fi | |
3765 | if test -z "$ac_cpp_err"; then | |
3766 | # Broken: success on invalid input. | |
3767 | continue | |
c4bb2108 | 3768 | else |
503d2be0 | 3769 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3770 | sed 's/^/| /' conftest.$ac_ext >&5 |
3771 | ||
503d2be0 AS |
3772 | # Passes both tests. |
3773 | ac_preproc_ok=: | |
3774 | break | |
3775 | fi | |
3776 | rm -f conftest.err conftest.$ac_ext | |
3777 | ||
3778 | done | |
3779 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3780 | rm -f conftest.err conftest.$ac_ext | |
3781 | if $ac_preproc_ok; then | |
3782 | break | |
3783 | fi | |
3784 | ||
3785 | done | |
3786 | ac_cv_prog_CPP=$CPP | |
3787 | ||
3788 | fi | |
3789 | CPP=$ac_cv_prog_CPP | |
3790 | else | |
3791 | ac_cv_prog_CPP=$CPP | |
3792 | fi | |
c0d27fcc | 3793 | echo "$as_me:$LINENO: result: $CPP" >&5 |
503d2be0 AS |
3794 | echo "${ECHO_T}$CPP" >&6 |
3795 | ac_preproc_ok=false | |
3796 | for ac_c_preproc_warn_flag in '' yes | |
3797 | do | |
3798 | # Use a header file that comes with gcc, so configuring glibc | |
3799 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3800 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3801 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
3802 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3803 | # not just through cpp. "Syntax error" is here to catch this case. | |
3804 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3805 | /* confdefs.h. */ |
3806 | _ACEOF | |
3807 | cat confdefs.h >>conftest.$ac_ext | |
3808 | cat >>conftest.$ac_ext <<_ACEOF | |
3809 | /* end confdefs.h. */ | |
3810 | #ifdef __STDC__ | |
3811 | # include <limits.h> | |
3812 | #else | |
3813 | # include <assert.h> | |
3814 | #endif | |
35996d22 | 3815 | Syntax error |
503d2be0 | 3816 | _ACEOF |
c0d27fcc | 3817 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3818 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3819 | ac_status=$? | |
6bae0ccf | 3820 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3821 | rm -f conftest.er1 |
3822 | cat conftest.err >&5 | |
c0d27fcc | 3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3824 | (exit $ac_status); } >/dev/null; then |
3825 | if test -s conftest.err; then | |
3826 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3827 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3828 | else |
3829 | ac_cpp_err= | |
3830 | fi | |
3831 | else | |
3832 | ac_cpp_err=yes | |
3833 | fi | |
3834 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3835 | : |
3836 | else | |
503d2be0 | 3837 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3838 | sed 's/^/| /' conftest.$ac_ext >&5 |
3839 | ||
503d2be0 AS |
3840 | # Broken: fails on valid input. |
3841 | continue | |
3842 | fi | |
3843 | rm -f conftest.err conftest.$ac_ext | |
3844 | ||
3845 | # OK, works on sane cases. Now check whether non-existent headers | |
3846 | # can be detected and how. | |
3847 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3848 | /* confdefs.h. */ |
3849 | _ACEOF | |
3850 | cat confdefs.h >>conftest.$ac_ext | |
3851 | cat >>conftest.$ac_ext <<_ACEOF | |
3852 | /* end confdefs.h. */ | |
503d2be0 AS |
3853 | #include <ac_nonexistent.h> |
3854 | _ACEOF | |
c0d27fcc | 3855 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3856 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3857 | ac_status=$? | |
6bae0ccf | 3858 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3859 | rm -f conftest.er1 |
3860 | cat conftest.err >&5 | |
c0d27fcc | 3861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3862 | (exit $ac_status); } >/dev/null; then |
3863 | if test -s conftest.err; then | |
3864 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3865 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3866 | else |
3867 | ac_cpp_err= | |
3868 | fi | |
3869 | else | |
3870 | ac_cpp_err=yes | |
c4bb2108 | 3871 | fi |
503d2be0 AS |
3872 | if test -z "$ac_cpp_err"; then |
3873 | # Broken: success on invalid input. | |
3874 | continue | |
3875 | else | |
3876 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3877 | sed 's/^/| /' conftest.$ac_ext >&5 |
3878 | ||
503d2be0 AS |
3879 | # Passes both tests. |
3880 | ac_preproc_ok=: | |
3881 | break | |
ba4481b5 | 3882 | fi |
503d2be0 AS |
3883 | rm -f conftest.err conftest.$ac_ext |
3884 | ||
3885 | done | |
3886 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3887 | rm -f conftest.err conftest.$ac_ext | |
3888 | if $ac_preproc_ok; then | |
3889 | : | |
ba4481b5 | 3890 | else |
19650fd6 AS |
3891 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3892 | See \`config.log' for more details." >&5 | |
3893 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3894 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3895 | { (exit 1); exit 1; }; } |
ba4481b5 | 3896 | fi |
503d2be0 AS |
3897 | |
3898 | ac_ext=c | |
3899 | ac_cpp='$CPP $CPPFLAGS' | |
3900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
3903 | |
3904 | # Find a good install program. We prefer a C program (faster), | |
3905 | # so one script is as good as another. But avoid the broken or | |
3906 | # incompatible versions: | |
3907 | # SysV /etc/install, /usr/sbin/install | |
3908 | # SunOS /usr/etc/install | |
3909 | # IRIX /sbin/install | |
3910 | # AIX /bin/install | |
503d2be0 | 3911 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 3912 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
3913 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3914 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
35996d22 | 3915 | # OS/2's system install, which has a completely different semantic |
ba4481b5 | 3916 | # ./install, which can be erroneously created by make from ./install.sh. |
c0d27fcc MR |
3917 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3918 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
ba4481b5 | 3919 | if test -z "$INSTALL"; then |
503d2be0 AS |
3920 | if test "${ac_cv_path_install+set}" = set; then |
3921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3922 | else |
c0d27fcc MR |
3923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3924 | for as_dir in $PATH | |
3925 | do | |
3926 | IFS=$as_save_IFS | |
3927 | test -z "$as_dir" && as_dir=. | |
3928 | # Account for people who put trailing slashes in PATH elements. | |
3929 | case $as_dir/ in | |
3930 | ./ | .// | /cC/* | \ | |
3931 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
35996d22 | 3932 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
c0d27fcc MR |
3933 | /usr/ucb/* ) ;; |
3934 | *) | |
3935 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3936 | # Don't use installbsd from OSF since it installs stuff as root | |
3937 | # by default. | |
3938 | for ac_prog in ginstall scoinst install; do | |
3939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35996d22 AS |
3940 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3941 | if test $ac_prog = install && | |
3942 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3943 | # AIX install. It has an incompatible calling convention. | |
3944 | : | |
3945 | elif test $ac_prog = install && | |
3946 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3947 | # program-specific install script used by HP pwplus--don't use. | |
3948 | : | |
3949 | else | |
3950 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3951 | break 3 | |
3952 | fi | |
3953 | fi | |
ba4481b5 | 3954 | done |
c0d27fcc MR |
3955 | done |
3956 | ;; | |
3957 | esac | |
3958 | done | |
3959 | ||
ba4481b5 DL |
3960 | |
3961 | fi | |
3962 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 3963 | INSTALL=$ac_cv_path_install |
ba4481b5 DL |
3964 | else |
3965 | # As a last resort, use the slow shell script. We don't cache a | |
3966 | # path for INSTALL within a source directory, because that will | |
3967 | # break other packages using the cache if that directory is | |
3968 | # removed, or if the path is relative. | |
503d2be0 | 3969 | INSTALL=$ac_install_sh |
ba4481b5 DL |
3970 | fi |
3971 | fi | |
c0d27fcc | 3972 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
503d2be0 | 3973 | echo "${ECHO_T}$INSTALL" >&6 |
ba4481b5 DL |
3974 | |
3975 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3976 | # It thinks the first close brace ends the variable substitution. | |
3977 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3978 | ||
503d2be0 | 3979 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 3980 | |
ba4481b5 DL |
3981 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3982 | ||
c0d27fcc MR |
3983 | if test "x$RANLIB" = x; then |
3984 | if test -n "$ac_tool_prefix"; then | |
3985 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3986 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
503d2be0 | 3988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
c0d27fcc | 3989 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 3990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
3991 | else |
3992 | if test -n "$RANLIB"; then | |
3993 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3994 | else | |
c0d27fcc MR |
3995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3996 | for as_dir in $PATH | |
3997 | do | |
3998 | IFS=$as_save_IFS | |
3999 | test -z "$as_dir" && as_dir=. | |
4000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4002 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4004 | break 2 | |
4005 | fi | |
4006 | done | |
503d2be0 AS |
4007 | done |
4008 | ||
7397acc4 DL |
4009 | fi |
4010 | fi | |
503d2be0 | 4011 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 4012 | if test -n "$RANLIB"; then |
c0d27fcc | 4013 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
503d2be0 AS |
4014 | echo "${ECHO_T}$RANLIB" >&6 |
4015 | else | |
c0d27fcc | 4016 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
4017 | echo "${ECHO_T}no" >&6 |
4018 | fi | |
4019 | ||
4020 | fi | |
4021 | if test -z "$ac_cv_prog_RANLIB"; then | |
4022 | ac_ct_RANLIB=$RANLIB | |
4023 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4024 | set dummy ranlib; ac_word=$2 | |
c0d27fcc | 4025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
4026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4027 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4029 | else | |
4030 | if test -n "$ac_ct_RANLIB"; then | |
4031 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4032 | else | |
c0d27fcc MR |
4033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4034 | for as_dir in $PATH | |
4035 | do | |
4036 | IFS=$as_save_IFS | |
4037 | test -z "$as_dir" && as_dir=. | |
4038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4040 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4042 | break 2 | |
4043 | fi | |
4044 | done | |
503d2be0 AS |
4045 | done |
4046 | ||
4047 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4048 | fi | |
4049 | fi | |
4050 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4051 | if test -n "$ac_ct_RANLIB"; then | |
c0d27fcc | 4052 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
503d2be0 AS |
4053 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
4054 | else | |
c0d27fcc | 4055 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
4056 | echo "${ECHO_T}no" >&6 |
4057 | fi | |
4058 | ||
4059 | RANLIB=$ac_ct_RANLIB | |
7397acc4 | 4060 | else |
503d2be0 | 4061 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
4062 | fi |
4063 | ||
4064 | fi | |
9e71690e DK |
4065 | # Extract the first word of "install-info", so it can be a program name with args. |
4066 | set dummy install-info; ac_word=$2 | |
4067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4069 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4071 | else | |
4072 | case $INSTALL_INFO in | |
4073 | [\\/]* | ?:[\\/]*) | |
4074 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4075 | ;; | |
4076 | *) | |
4077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4078 | for as_dir in $PATH | |
4079 | do | |
4080 | IFS=$as_save_IFS | |
4081 | test -z "$as_dir" && as_dir=. | |
4082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4083 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4084 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4086 | break 2 | |
4087 | fi | |
4088 | done | |
4089 | done | |
4090 | ||
4091 | ;; | |
4092 | esac | |
4093 | fi | |
4094 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4095 | ||
4096 | if test -n "$INSTALL_INFO"; then | |
4097 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4098 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4099 | else | |
4100 | echo "$as_me:$LINENO: result: no" >&5 | |
4101 | echo "${ECHO_T}no" >&6 | |
4102 | fi | |
4103 | ||
4104 | # Extract the first word of "install-info", so it can be a program name with args. | |
4105 | set dummy install-info; ac_word=$2 | |
4106 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4107 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4108 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4110 | else | |
4111 | case $INSTALL_INFO in | |
4112 | [\\/]* | ?:[\\/]*) | |
4113 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4114 | ;; | |
4115 | *) | |
4116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4117 | for as_dir in /usr/sbin | |
4118 | do | |
4119 | IFS=$as_save_IFS | |
4120 | test -z "$as_dir" && as_dir=. | |
4121 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4122 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4123 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4125 | break 2 | |
4126 | fi | |
4127 | done | |
4128 | done | |
4129 | ||
4130 | ;; | |
4131 | esac | |
4132 | fi | |
4133 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4134 | ||
4135 | if test -n "$INSTALL_INFO"; then | |
4136 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4137 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4138 | else | |
4139 | echo "$as_me:$LINENO: result: no" >&5 | |
4140 | echo "${ECHO_T}no" >&6 | |
4141 | fi | |
4142 | ||
4143 | # Extract the first word of "install-info", so it can be a program name with args. | |
4144 | set dummy install-info; ac_word=$2 | |
4145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4147 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4149 | else | |
4150 | case $INSTALL_INFO in | |
4151 | [\\/]* | ?:[\\/]*) | |
4152 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4153 | ;; | |
4154 | *) | |
4155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4156 | for as_dir in /sbin | |
4157 | do | |
4158 | IFS=$as_save_IFS | |
4159 | test -z "$as_dir" && as_dir=. | |
4160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4162 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4164 | break 2 | |
4165 | fi | |
4166 | done | |
4167 | done | |
4168 | ||
4169 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
4170 | ;; | |
4171 | esac | |
4172 | fi | |
4173 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4174 | ||
4175 | if test -n "$INSTALL_INFO"; then | |
4176 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4177 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4178 | else | |
4179 | echo "$as_me:$LINENO: result: no" >&5 | |
4180 | echo "${ECHO_T}no" >&6 | |
4181 | fi | |
4182 | ||
ba4481b5 | 4183 | |
c0d27fcc | 4184 | |
8e967cf7 MR |
4185 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
4186 | then | |
4187 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
4188 | fi | |
4189 | ||
4190 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
4191 | then | |
4192 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
4193 | fi | |
4194 | ||
c0d27fcc MR |
4195 | |
4196 | ||
6bae0ccf DL |
4197 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4198 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4199 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4201 | else | |
4202 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4203 | then ac_cv_prog_egrep='grep -E' | |
4204 | else ac_cv_prog_egrep='egrep' | |
4205 | fi | |
4206 | fi | |
4207 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4208 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4209 | EGREP=$ac_cv_prog_egrep | |
4210 | ||
4211 | ||
c0d27fcc MR |
4212 | |
4213 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
503d2be0 AS |
4214 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
4215 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4216 | /* confdefs.h. */ |
4217 | _ACEOF | |
4218 | cat confdefs.h >>conftest.$ac_ext | |
4219 | cat >>conftest.$ac_ext <<_ACEOF | |
4220 | /* end confdefs.h. */ | |
ba4481b5 DL |
4221 | #ifdef _AIX |
4222 | yes | |
4223 | #endif | |
4224 | ||
503d2be0 | 4225 | _ACEOF |
ba4481b5 | 4226 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 4227 | $EGREP "yes" >/dev/null 2>&1; then |
c0d27fcc | 4228 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 4229 | echo "${ECHO_T}yes" >&6 |
c0d27fcc | 4230 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 4231 | #define _ALL_SOURCE 1 |
c0d27fcc | 4232 | _ACEOF |
ba4481b5 DL |
4233 | |
4234 | else | |
c0d27fcc | 4235 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 4236 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
4237 | fi |
4238 | rm -f conftest* | |
4239 | ||
c0d27fcc MR |
4240 | |
4241 | ||
3b33a005 DL |
4242 | #### Extract some information from the operating system and machine files. |
4243 | ||
c0d27fcc | 4244 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 4245 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
4246 | - whether the GNU malloc routines are usable..." >&5 |
4247 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 4248 | - which libraries the lib-src programs will want, and |
503d2be0 | 4249 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
4250 | |
4251 | ### First figure out CFLAGS (which we use for running the compiler here) | |
4252 | ### and REAL_CFLAGS (which we use for real compilation). | |
4253 | ### The two are the same except on a few systems, where they are made | |
4254 | ### different to work around various lossages. For example, | |
4255 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
4256 | ### as implying static linking. | |
4257 | ||
4258 | ### If the CFLAGS env var is specified, we use that value | |
4259 | ### instead of the default. | |
4260 | ||
4261 | ### It's not important that this name contain the PID; you can't run | |
4262 | ### two configures in the same directory and have anything work | |
4263 | ### anyway. | |
4264 | tempcname="conftest.c" | |
4265 | ||
4266 | echo ' | |
4267 | #include "'${srcdir}'/src/'${opsysfile}'" | |
4268 | #include "'${srcdir}'/src/'${machfile}'" | |
4269 | #ifndef LIBS_MACHINE | |
4270 | #define LIBS_MACHINE | |
4271 | #endif | |
4272 | #ifndef LIBS_SYSTEM | |
4273 | #define LIBS_SYSTEM | |
4274 | #endif | |
4275 | #ifndef C_SWITCH_SYSTEM | |
4276 | #define C_SWITCH_SYSTEM | |
4277 | #endif | |
4278 | #ifndef C_SWITCH_MACHINE | |
4279 | #define C_SWITCH_MACHINE | |
4280 | #endif | |
4281 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
4282 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
4283 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
4284 | ||
4285 | #ifndef LIB_X11_LIB | |
4286 | #define LIB_X11_LIB -lX11 | |
4287 | #endif | |
4288 | ||
4289 | #ifndef LIBX11_MACHINE | |
4290 | #define LIBX11_MACHINE | |
4291 | #endif | |
4292 | ||
4293 | #ifndef LIBX11_SYSTEM | |
4294 | #define LIBX11_SYSTEM | |
4295 | #endif | |
4296 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
4297 | ||
4298 | #ifdef UNEXEC | |
4299 | configure___ unexec=UNEXEC | |
4300 | #else | |
4301 | configure___ unexec=unexec.o | |
4302 | #endif | |
4303 | ||
4304 | #ifdef SYSTEM_MALLOC | |
4305 | configure___ system_malloc=yes | |
4306 | #else | |
4307 | configure___ system_malloc=no | |
4308 | #endif | |
4309 | ||
ef9e4345 GM |
4310 | #ifdef USE_MMAP_FOR_BUFFERS |
4311 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 4312 | #else |
ef9e4345 | 4313 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
4314 | #endif |
4315 | ||
3b33a005 DL |
4316 | #ifndef C_DEBUG_SWITCH |
4317 | #define C_DEBUG_SWITCH -g | |
4318 | #endif | |
4319 | ||
4320 | #ifndef C_OPTIMIZE_SWITCH | |
4321 | #ifdef __GNUC__ | |
4322 | #define C_OPTIMIZE_SWITCH -O2 | |
4323 | #else | |
4324 | #define C_OPTIMIZE_SWITCH -O | |
4325 | #endif | |
4326 | #endif | |
4327 | ||
4328 | #ifndef LD_SWITCH_MACHINE | |
4329 | #define LD_SWITCH_MACHINE | |
4330 | #endif | |
4331 | ||
4332 | #ifndef LD_SWITCH_SYSTEM | |
4333 | #define LD_SWITCH_SYSTEM | |
4334 | #endif | |
4335 | ||
4336 | #ifndef LD_SWITCH_X_SITE_AUX | |
4337 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 4338 | #endif |
3b33a005 DL |
4339 | |
4340 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
4341 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
4342 | ||
4343 | #ifdef THIS_IS_CONFIGURE | |
4344 | ||
4345 | /* Get the CFLAGS for tests in configure. */ | |
4346 | #ifdef __GNUC__ | |
4347 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4348 | #else | |
4349 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4350 | #endif | |
4351 | ||
4352 | #else /* not THIS_IS_CONFIGURE */ | |
4353 | ||
4354 | /* Get the CFLAGS for real compilation. */ | |
4355 | #ifdef __GNUC__ | |
4356 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4357 | #else | |
4358 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4359 | #endif | |
4360 | ||
4361 | #endif /* not THIS_IS_CONFIGURE */ | |
4362 | ' > ${tempcname} | |
4363 | ||
4364 | # The value of CPP is a quoted variable reference, so we need to do this | |
4365 | # to get its actual value... | |
4366 | CPP=`eval "echo $CPP"` | |
4367 | eval `${CPP} -Isrc ${tempcname} \ | |
4368 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4369 | if test "x$SPECIFIED_CFLAGS" = x; then | |
4370 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
4371 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4372 | else | |
4373 | REAL_CFLAGS="$CFLAGS" | |
4374 | fi | |
4375 | rm ${tempcname} | |
4376 | ||
4377 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
4378 | ||
4379 | ### Make sure subsequent tests use flags consistent with the build flags. | |
4380 | ||
4381 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
4382 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
4383 | else | |
4384 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
4385 | fi | |
4386 | ||
6bae0ccf DL |
4387 | |
4388 | ||
22044edf DL |
4389 | |
4390 | cat >>confdefs.h <<\_ACEOF | |
4391 | #define _GNU_SOURCE 1 | |
4392 | _ACEOF | |
4393 | ||
4394 | ||
4395 | ||
503d2be0 | 4396 | # Check whether --enable-largefile or --disable-largefile was given. |
f4988be7 GM |
4397 | if test "${enable_largefile+set}" = set; then |
4398 | enableval="$enable_largefile" | |
f4988be7 | 4399 | |
503d2be0 AS |
4400 | fi; |
4401 | if test "$enable_largefile" != no; then | |
f4988be7 | 4402 | |
c0d27fcc | 4403 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
503d2be0 AS |
4404 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
4405 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4407 | else |
f4988be7 | 4408 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
4409 | if test "$GCC" != yes; then |
4410 | ac_save_CC=$CC | |
4411 | while :; do | |
4412 | # IRIX 6.2 and later do not support large files by default, | |
4413 | # so use the C compiler's -n32 option if that helps. | |
35996d22 | 4414 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4415 | /* confdefs.h. */ |
4416 | _ACEOF | |
4417 | cat confdefs.h >>conftest.$ac_ext | |
4418 | cat >>conftest.$ac_ext <<_ACEOF | |
4419 | /* end confdefs.h. */ | |
f4988be7 | 4420 | #include <sys/types.h> |
503d2be0 AS |
4421 | /* Check that off_t can represent 2**63 - 1 correctly. |
4422 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4423 | since some C++ compilers masquerading as C compilers | |
4424 | incorrectly reject 9223372036854775807. */ | |
4425 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4426 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4427 | && LARGE_OFF_T % 2147483647 == 1) | |
4428 | ? 1 : -1]; | |
4429 | int | |
4430 | main () | |
4431 | { | |
f4988be7 | 4432 | |
503d2be0 AS |
4433 | ; |
4434 | return 0; | |
4435 | } | |
4436 | _ACEOF | |
4437 | rm -f conftest.$ac_objext | |
c0d27fcc | 4438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4439 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4440 | ac_status=$? |
35996d22 AS |
4441 | grep -v '^ *+' conftest.er1 >conftest.err |
4442 | rm -f conftest.er1 | |
4443 | cat conftest.err >&5 | |
c0d27fcc | 4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4445 | (exit $ac_status); } && |
35996d22 AS |
4446 | { ac_try='test -z "$ac_c_werror_flag" |
4447 | || test ! -s conftest.err' | |
4448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4449 | (eval $ac_try) 2>&5 | |
4450 | ac_status=$? | |
4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4452 | (exit $ac_status); }; } && | |
4453 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4455 | (eval $ac_try) 2>&5 |
4456 | ac_status=$? | |
c0d27fcc | 4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4458 | (exit $ac_status); }; }; then |
4459 | break | |
b192d653 | 4460 | else |
503d2be0 | 4461 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4462 | sed 's/^/| /' conftest.$ac_ext >&5 |
4463 | ||
503d2be0 | 4464 | fi |
35996d22 | 4465 | rm -f conftest.err conftest.$ac_objext |
503d2be0 AS |
4466 | CC="$CC -n32" |
4467 | rm -f conftest.$ac_objext | |
c0d27fcc | 4468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4469 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4470 | ac_status=$? |
35996d22 AS |
4471 | grep -v '^ *+' conftest.er1 >conftest.err |
4472 | rm -f conftest.er1 | |
4473 | cat conftest.err >&5 | |
c0d27fcc | 4474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4475 | (exit $ac_status); } && |
35996d22 AS |
4476 | { ac_try='test -z "$ac_c_werror_flag" |
4477 | || test ! -s conftest.err' | |
4478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4479 | (eval $ac_try) 2>&5 | |
4480 | ac_status=$? | |
4481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4482 | (exit $ac_status); }; } && | |
4483 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4485 | (eval $ac_try) 2>&5 |
4486 | ac_status=$? | |
c0d27fcc | 4487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4488 | (exit $ac_status); }; }; then |
4489 | ac_cv_sys_largefile_CC=' -n32'; break | |
4490 | else | |
4491 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4492 | sed 's/^/| /' conftest.$ac_ext >&5 |
4493 | ||
503d2be0 | 4494 | fi |
35996d22 AS |
4495 | rm -f conftest.err conftest.$ac_objext |
4496 | break | |
503d2be0 AS |
4497 | done |
4498 | CC=$ac_save_CC | |
4499 | rm -f conftest.$ac_ext | |
4500 | fi | |
b192d653 | 4501 | fi |
c0d27fcc | 4502 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
503d2be0 AS |
4503 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
4504 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4505 | CC=$CC$ac_cv_sys_largefile_CC | |
4506 | fi | |
b192d653 | 4507 | |
c0d27fcc | 4508 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
503d2be0 AS |
4509 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
4510 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4512 | else |
503d2be0 | 4513 | while :; do |
f4988be7 | 4514 | ac_cv_sys_file_offset_bits=no |
503d2be0 | 4515 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4516 | /* confdefs.h. */ |
4517 | _ACEOF | |
4518 | cat confdefs.h >>conftest.$ac_ext | |
4519 | cat >>conftest.$ac_ext <<_ACEOF | |
4520 | /* end confdefs.h. */ | |
f4988be7 | 4521 | #include <sys/types.h> |
503d2be0 AS |
4522 | /* Check that off_t can represent 2**63 - 1 correctly. |
4523 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4524 | since some C++ compilers masquerading as C compilers | |
4525 | incorrectly reject 9223372036854775807. */ | |
4526 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4527 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4528 | && LARGE_OFF_T % 2147483647 == 1) | |
4529 | ? 1 : -1]; | |
4530 | int | |
4531 | main () | |
4532 | { | |
f4988be7 | 4533 | |
503d2be0 AS |
4534 | ; |
4535 | return 0; | |
4536 | } | |
4537 | _ACEOF | |
4538 | rm -f conftest.$ac_objext | |
c0d27fcc | 4539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4540 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4541 | ac_status=$? |
35996d22 AS |
4542 | grep -v '^ *+' conftest.er1 >conftest.err |
4543 | rm -f conftest.er1 | |
4544 | cat conftest.err >&5 | |
c0d27fcc | 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4546 | (exit $ac_status); } && |
35996d22 AS |
4547 | { ac_try='test -z "$ac_c_werror_flag" |
4548 | || test ! -s conftest.err' | |
4549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4550 | (eval $ac_try) 2>&5 | |
4551 | ac_status=$? | |
4552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4553 | (exit $ac_status); }; } && | |
4554 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4556 | (eval $ac_try) 2>&5 |
4557 | ac_status=$? | |
c0d27fcc | 4558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4559 | (exit $ac_status); }; }; then |
4560 | break | |
f4988be7 | 4561 | else |
503d2be0 | 4562 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4563 | sed 's/^/| /' conftest.$ac_ext >&5 |
4564 | ||
503d2be0 | 4565 | fi |
35996d22 | 4566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 4567 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4568 | /* confdefs.h. */ |
4569 | _ACEOF | |
4570 | cat confdefs.h >>conftest.$ac_ext | |
4571 | cat >>conftest.$ac_ext <<_ACEOF | |
4572 | /* end confdefs.h. */ | |
f4988be7 GM |
4573 | #define _FILE_OFFSET_BITS 64 |
4574 | #include <sys/types.h> | |
503d2be0 AS |
4575 | /* Check that off_t can represent 2**63 - 1 correctly. |
4576 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4577 | since some C++ compilers masquerading as C compilers | |
4578 | incorrectly reject 9223372036854775807. */ | |
4579 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4580 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4581 | && LARGE_OFF_T % 2147483647 == 1) | |
4582 | ? 1 : -1]; | |
4583 | int | |
4584 | main () | |
4585 | { | |
4586 | ||
4587 | ; | |
4588 | return 0; | |
4589 | } | |
4590 | _ACEOF | |
4591 | rm -f conftest.$ac_objext | |
c0d27fcc | 4592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4593 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4594 | ac_status=$? |
35996d22 AS |
4595 | grep -v '^ *+' conftest.er1 >conftest.err |
4596 | rm -f conftest.er1 | |
4597 | cat conftest.err >&5 | |
c0d27fcc | 4598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4599 | (exit $ac_status); } && |
35996d22 AS |
4600 | { ac_try='test -z "$ac_c_werror_flag" |
4601 | || test ! -s conftest.err' | |
4602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4603 | (eval $ac_try) 2>&5 | |
4604 | ac_status=$? | |
4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4606 | (exit $ac_status); }; } && | |
4607 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4609 | (eval $ac_try) 2>&5 |
4610 | ac_status=$? | |
c0d27fcc | 4611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4612 | (exit $ac_status); }; }; then |
4613 | ac_cv_sys_file_offset_bits=64; break | |
4614 | else | |
4615 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4616 | sed 's/^/| /' conftest.$ac_ext >&5 |
4617 | ||
503d2be0 | 4618 | fi |
35996d22 | 4619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
4620 | break |
4621 | done | |
ba4481b5 | 4622 | fi |
c0d27fcc | 4623 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
503d2be0 AS |
4624 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
4625 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
ba4481b5 | 4626 | |
c0d27fcc | 4627 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4628 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 4629 | _ACEOF |
f4988be7 | 4630 | |
503d2be0 AS |
4631 | fi |
4632 | rm -f conftest* | |
c0d27fcc | 4633 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
503d2be0 AS |
4634 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
4635 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4637 | else |
503d2be0 | 4638 | while :; do |
f4988be7 | 4639 | ac_cv_sys_large_files=no |
503d2be0 | 4640 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4641 | /* confdefs.h. */ |
4642 | _ACEOF | |
4643 | cat confdefs.h >>conftest.$ac_ext | |
4644 | cat >>conftest.$ac_ext <<_ACEOF | |
4645 | /* end confdefs.h. */ | |
503d2be0 AS |
4646 | #include <sys/types.h> |
4647 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4648 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4649 | since some C++ compilers masquerading as C compilers | |
4650 | incorrectly reject 9223372036854775807. */ | |
4651 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4652 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4653 | && LARGE_OFF_T % 2147483647 == 1) | |
4654 | ? 1 : -1]; | |
4655 | int | |
4656 | main () | |
4657 | { | |
ba4481b5 | 4658 | |
503d2be0 AS |
4659 | ; |
4660 | return 0; | |
4661 | } | |
4662 | _ACEOF | |
4663 | rm -f conftest.$ac_objext | |
c0d27fcc | 4664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4665 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4666 | ac_status=$? |
35996d22 AS |
4667 | grep -v '^ *+' conftest.er1 >conftest.err |
4668 | rm -f conftest.er1 | |
4669 | cat conftest.err >&5 | |
c0d27fcc | 4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4671 | (exit $ac_status); } && |
35996d22 AS |
4672 | { ac_try='test -z "$ac_c_werror_flag" |
4673 | || test ! -s conftest.err' | |
4674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4675 | (eval $ac_try) 2>&5 | |
4676 | ac_status=$? | |
4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4678 | (exit $ac_status); }; } && | |
4679 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4681 | (eval $ac_try) 2>&5 |
4682 | ac_status=$? | |
c0d27fcc | 4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4684 | (exit $ac_status); }; }; then |
4685 | break | |
ba4481b5 | 4686 | else |
503d2be0 | 4687 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4688 | sed 's/^/| /' conftest.$ac_ext >&5 |
4689 | ||
503d2be0 | 4690 | fi |
35996d22 | 4691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 4692 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4693 | /* confdefs.h. */ |
4694 | _ACEOF | |
4695 | cat confdefs.h >>conftest.$ac_ext | |
4696 | cat >>conftest.$ac_ext <<_ACEOF | |
4697 | /* end confdefs.h. */ | |
f4988be7 | 4698 | #define _LARGE_FILES 1 |
503d2be0 AS |
4699 | #include <sys/types.h> |
4700 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4701 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4702 | since some C++ compilers masquerading as C compilers | |
4703 | incorrectly reject 9223372036854775807. */ | |
4704 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4705 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4706 | && LARGE_OFF_T % 2147483647 == 1) | |
4707 | ? 1 : -1]; | |
4708 | int | |
4709 | main () | |
4710 | { | |
f4988be7 | 4711 | |
503d2be0 AS |
4712 | ; |
4713 | return 0; | |
4714 | } | |
4715 | _ACEOF | |
4716 | rm -f conftest.$ac_objext | |
c0d27fcc | 4717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4718 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4719 | ac_status=$? |
35996d22 AS |
4720 | grep -v '^ *+' conftest.er1 >conftest.err |
4721 | rm -f conftest.er1 | |
4722 | cat conftest.err >&5 | |
c0d27fcc | 4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4724 | (exit $ac_status); } && |
35996d22 AS |
4725 | { ac_try='test -z "$ac_c_werror_flag" |
4726 | || test ! -s conftest.err' | |
4727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4728 | (eval $ac_try) 2>&5 | |
4729 | ac_status=$? | |
4730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4731 | (exit $ac_status); }; } && | |
4732 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4734 | (eval $ac_try) 2>&5 |
4735 | ac_status=$? | |
c0d27fcc | 4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4737 | (exit $ac_status); }; }; then |
4738 | ac_cv_sys_large_files=1; break | |
4739 | else | |
4740 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4741 | sed 's/^/| /' conftest.$ac_ext >&5 |
4742 | ||
503d2be0 | 4743 | fi |
35996d22 | 4744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
4745 | break |
4746 | done | |
ba4481b5 | 4747 | fi |
c0d27fcc | 4748 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
503d2be0 AS |
4749 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
4750 | if test "$ac_cv_sys_large_files" != no; then | |
ba4481b5 | 4751 | |
c0d27fcc | 4752 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4753 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 4754 | _ACEOF |
ba4481b5 | 4755 | |
503d2be0 AS |
4756 | fi |
4757 | rm -f conftest* | |
4758 | fi | |
ba4481b5 | 4759 | |
c0d27fcc | 4760 | |
2c9dccc9 PJ |
4761 | if test "${with_sound}" != "no"; then |
4762 | # Sound support for GNU/Linux and the free BSDs. | |
c0d27fcc MR |
4763 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4764 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4765 | if test "${ac_cv_header_stdc+set}" = set; then | |
4766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4767 | else | |
4768 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4769 | /* confdefs.h. */ |
4770 | _ACEOF | |
4771 | cat confdefs.h >>conftest.$ac_ext | |
4772 | cat >>conftest.$ac_ext <<_ACEOF | |
4773 | /* end confdefs.h. */ | |
c0d27fcc MR |
4774 | #include <stdlib.h> |
4775 | #include <stdarg.h> | |
4776 | #include <string.h> | |
4777 | #include <float.h> | |
98418dba | 4778 | |
19650fd6 AS |
4779 | int |
4780 | main () | |
4781 | { | |
4782 | ||
4783 | ; | |
4784 | return 0; | |
4785 | } | |
c0d27fcc | 4786 | _ACEOF |
19650fd6 AS |
4787 | rm -f conftest.$ac_objext |
4788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 4789 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 4790 | ac_status=$? |
35996d22 AS |
4791 | grep -v '^ *+' conftest.er1 >conftest.err |
4792 | rm -f conftest.er1 | |
4793 | cat conftest.err >&5 | |
cd958eb3 | 4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19650fd6 | 4795 | (exit $ac_status); } && |
35996d22 AS |
4796 | { ac_try='test -z "$ac_c_werror_flag" |
4797 | || test ! -s conftest.err' | |
4798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4799 | (eval $ac_try) 2>&5 | |
4800 | ac_status=$? | |
4801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4802 | (exit $ac_status); }; } && | |
4803 | { ac_try='test -s conftest.$ac_objext' | |
19650fd6 AS |
4804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4805 | (eval $ac_try) 2>&5 | |
4806 | ac_status=$? | |
4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4808 | (exit $ac_status); }; }; then | |
c0d27fcc MR |
4809 | ac_cv_header_stdc=yes |
4810 | else | |
4811 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4812 | sed 's/^/| /' conftest.$ac_ext >&5 |
4813 | ||
4814 | ac_cv_header_stdc=no | |
c0d27fcc | 4815 | fi |
35996d22 | 4816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4817 | |
4818 | if test $ac_cv_header_stdc = yes; then | |
4819 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4820 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4821 | /* confdefs.h. */ |
4822 | _ACEOF | |
4823 | cat confdefs.h >>conftest.$ac_ext | |
4824 | cat >>conftest.$ac_ext <<_ACEOF | |
4825 | /* end confdefs.h. */ | |
c0d27fcc MR |
4826 | #include <string.h> |
4827 | ||
4828 | _ACEOF | |
4829 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4830 | $EGREP "memchr" >/dev/null 2>&1; then |
c0d27fcc MR |
4831 | : |
4832 | else | |
4833 | ac_cv_header_stdc=no | |
4834 | fi | |
4835 | rm -f conftest* | |
4836 | ||
4837 | fi | |
4838 | ||
4839 | if test $ac_cv_header_stdc = yes; then | |
4840 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4841 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4842 | /* confdefs.h. */ |
4843 | _ACEOF | |
4844 | cat confdefs.h >>conftest.$ac_ext | |
4845 | cat >>conftest.$ac_ext <<_ACEOF | |
4846 | /* end confdefs.h. */ | |
c0d27fcc MR |
4847 | #include <stdlib.h> |
4848 | ||
4849 | _ACEOF | |
4850 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4851 | $EGREP "free" >/dev/null 2>&1; then |
c0d27fcc MR |
4852 | : |
4853 | else | |
4854 | ac_cv_header_stdc=no | |
4855 | fi | |
4856 | rm -f conftest* | |
4857 | ||
4858 | fi | |
4859 | ||
4860 | if test $ac_cv_header_stdc = yes; then | |
4861 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4862 | if test "$cross_compiling" = yes; then | |
4863 | : | |
4864 | else | |
4865 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4866 | /* confdefs.h. */ |
4867 | _ACEOF | |
4868 | cat confdefs.h >>conftest.$ac_ext | |
4869 | cat >>conftest.$ac_ext <<_ACEOF | |
4870 | /* end confdefs.h. */ | |
c0d27fcc MR |
4871 | #include <ctype.h> |
4872 | #if ((' ' & 0x0FF) == 0x020) | |
4873 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4874 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4875 | #else | |
19650fd6 | 4876 | # define ISLOWER(c) \ |
35996d22 AS |
4877 | (('a' <= (c) && (c) <= 'i') \ |
4878 | || ('j' <= (c) && (c) <= 'r') \ | |
4879 | || ('s' <= (c) && (c) <= 'z')) | |
c0d27fcc MR |
4880 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4881 | #endif | |
4882 | ||
4883 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4884 | int | |
4885 | main () | |
4886 | { | |
4887 | int i; | |
4888 | for (i = 0; i < 256; i++) | |
4889 | if (XOR (islower (i), ISLOWER (i)) | |
35996d22 | 4890 | || toupper (i) != TOUPPER (i)) |
c0d27fcc MR |
4891 | exit(2); |
4892 | exit (0); | |
4893 | } | |
4894 | _ACEOF | |
4895 | rm -f conftest$ac_exeext | |
4896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4897 | (eval $ac_link) 2>&5 | |
4898 | ac_status=$? | |
4899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4900 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4902 | (eval $ac_try) 2>&5 | |
4903 | ac_status=$? | |
4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4905 | (exit $ac_status); }; }; then | |
4906 | : | |
4907 | else | |
4908 | echo "$as_me: program exited with status $ac_status" >&5 | |
4909 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4910 | sed 's/^/| /' conftest.$ac_ext >&5 |
4911 | ||
c0d27fcc MR |
4912 | ( exit $ac_status ) |
4913 | ac_cv_header_stdc=no | |
4914 | fi | |
35996d22 | 4915 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4916 | fi |
4917 | fi | |
4918 | fi | |
4919 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4920 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4921 | if test $ac_cv_header_stdc = yes; then | |
4922 | ||
4923 | cat >>confdefs.h <<\_ACEOF | |
4924 | #define STDC_HEADERS 1 | |
4925 | _ACEOF | |
4926 | ||
4927 | fi | |
4928 | ||
4929 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4930 | ||
4931 | ||
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
4939 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
35996d22 | 4940 | inttypes.h stdint.h unistd.h |
98418dba CW |
4941 | do |
4942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc | 4943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
98418dba CW |
4944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 4946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 4947 | else |
925c2f3f | 4948 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4949 | /* confdefs.h. */ |
4950 | _ACEOF | |
4951 | cat confdefs.h >>conftest.$ac_ext | |
4952 | cat >>conftest.$ac_ext <<_ACEOF | |
4953 | /* end confdefs.h. */ | |
c0d27fcc MR |
4954 | $ac_includes_default |
4955 | ||
4956 | #include <$ac_header> | |
4957 | _ACEOF | |
4958 | rm -f conftest.$ac_objext | |
4959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 4960 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 4961 | ac_status=$? |
35996d22 AS |
4962 | grep -v '^ *+' conftest.er1 >conftest.err |
4963 | rm -f conftest.er1 | |
4964 | cat conftest.err >&5 | |
c0d27fcc MR |
4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4966 | (exit $ac_status); } && | |
35996d22 AS |
4967 | { ac_try='test -z "$ac_c_werror_flag" |
4968 | || test ! -s conftest.err' | |
4969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4970 | (eval $ac_try) 2>&5 | |
4971 | ac_status=$? | |
4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4973 | (exit $ac_status); }; } && | |
4974 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
4975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4976 | (eval $ac_try) 2>&5 | |
4977 | ac_status=$? | |
4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4979 | (exit $ac_status); }; }; then | |
4980 | eval "$as_ac_Header=yes" | |
4981 | else | |
4982 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4983 | sed 's/^/| /' conftest.$ac_ext >&5 |
4984 | ||
c0d27fcc MR |
4985 | eval "$as_ac_Header=no" |
4986 | fi | |
35996d22 | 4987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4988 | fi |
4989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4991 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4992 | cat >>confdefs.h <<_ACEOF | |
4993 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4994 | _ACEOF | |
4995 | ||
4996 | fi | |
4997 | ||
4998 | done | |
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ||
5004 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
5005 | do | |
5006 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5007 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5008 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5009 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5010 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5012 | fi | |
5013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5014 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5015 | else | |
5016 | # Is the header compilable? | |
5017 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5018 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5019 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5020 | /* confdefs.h. */ |
5021 | _ACEOF | |
5022 | cat confdefs.h >>conftest.$ac_ext | |
5023 | cat >>conftest.$ac_ext <<_ACEOF | |
5024 | /* end confdefs.h. */ | |
c0d27fcc | 5025 | $ac_includes_default |
98418dba | 5026 | #include <$ac_header> |
503d2be0 | 5027 | _ACEOF |
c0d27fcc MR |
5028 | rm -f conftest.$ac_objext |
5029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5030 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5031 | ac_status=$? |
35996d22 AS |
5032 | grep -v '^ *+' conftest.er1 >conftest.err |
5033 | rm -f conftest.er1 | |
5034 | cat conftest.err >&5 | |
c0d27fcc MR |
5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5036 | (exit $ac_status); } && | |
35996d22 AS |
5037 | { ac_try='test -z "$ac_c_werror_flag" |
5038 | || test ! -s conftest.err' | |
5039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5040 | (eval $ac_try) 2>&5 | |
5041 | ac_status=$? | |
5042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5043 | (exit $ac_status); }; } && | |
5044 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5046 | (eval $ac_try) 2>&5 | |
5047 | ac_status=$? | |
5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5049 | (exit $ac_status); }; }; then | |
5050 | ac_header_compiler=yes | |
5051 | else | |
5052 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5053 | sed 's/^/| /' conftest.$ac_ext >&5 |
5054 | ||
c0d27fcc MR |
5055 | ac_header_compiler=no |
5056 | fi | |
35996d22 | 5057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5058 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5059 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5060 | ||
5061 | # Is the header present? | |
5062 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5063 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5064 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5065 | /* confdefs.h. */ |
5066 | _ACEOF | |
5067 | cat confdefs.h >>conftest.$ac_ext | |
5068 | cat >>conftest.$ac_ext <<_ACEOF | |
5069 | /* end confdefs.h. */ | |
c0d27fcc MR |
5070 | #include <$ac_header> |
5071 | _ACEOF | |
5072 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
98418dba | 5073 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5074 | ac_status=$? |
6bae0ccf | 5075 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5076 | rm -f conftest.er1 |
5077 | cat conftest.err >&5 | |
c0d27fcc | 5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5079 | (exit $ac_status); } >/dev/null; then |
5080 | if test -s conftest.err; then | |
5081 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5082 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
5083 | else |
5084 | ac_cpp_err= | |
5085 | fi | |
5086 | else | |
5087 | ac_cpp_err=yes | |
5088 | fi | |
5089 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5090 | ac_header_preproc=yes |
f4988be7 | 5091 | else |
503d2be0 | 5092 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5093 | sed 's/^/| /' conftest.$ac_ext >&5 |
5094 | ||
c0d27fcc | 5095 | ac_header_preproc=no |
f4988be7 | 5096 | fi |
98418dba | 5097 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5098 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5099 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5100 | ||
5101 | # So? What about this header? | |
35996d22 AS |
5102 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5103 | yes:no: ) | |
c0d27fcc MR |
5104 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5105 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
5106 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5107 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5108 | ac_header_preproc=yes | |
19650fd6 | 5109 | ;; |
35996d22 | 5110 | no:yes:* ) |
c0d27fcc MR |
5111 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5112 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
5113 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5114 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5115 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5116 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5117 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5118 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 5119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 5120 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
5121 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5122 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
5123 | ( |
5124 | cat <<\_ASBOX | |
35996d22 AS |
5125 | ## ------------------------------------------ ## |
5126 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5127 | ## ------------------------------------------ ## | |
19650fd6 AS |
5128 | _ASBOX |
5129 | ) | | |
5130 | sed "s/^/$as_me: WARNING: /" >&2 | |
5131 | ;; | |
c0d27fcc MR |
5132 | esac |
5133 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5137 | else | |
35996d22 | 5138 | eval "$as_ac_Header=\$ac_header_preproc" |
f4988be7 | 5139 | fi |
c0d27fcc | 5140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5142 | |
5143 | fi | |
98418dba | 5144 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5145 | cat >>confdefs.h <<_ACEOF |
98418dba | 5146 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5147 | _ACEOF |
f4988be7 GM |
5148 | |
5149 | fi | |
c0d27fcc | 5150 | |
98418dba CW |
5151 | done |
5152 | ||
5153 | # Emulation library used on NetBSD. | |
c0d27fcc | 5154 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
98418dba CW |
5155 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
5156 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
503d2be0 | 5157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 5158 | else |
98418dba CW |
5159 | ac_check_lib_save_LIBS=$LIBS |
5160 | LIBS="-lossaudio $LIBS" | |
5161 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5162 | /* confdefs.h. */ |
5163 | _ACEOF | |
5164 | cat confdefs.h >>conftest.$ac_ext | |
5165 | cat >>conftest.$ac_ext <<_ACEOF | |
5166 | /* end confdefs.h. */ | |
98418dba CW |
5167 | |
5168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5169 | #ifdef __cplusplus | |
5170 | extern "C" | |
f4988be7 | 5171 | #endif |
98418dba CW |
5172 | /* We use char because int might match the return type of a gcc2 |
5173 | builtin and then its argument prototype would still apply. */ | |
5174 | char _oss_ioctl (); | |
503d2be0 AS |
5175 | int |
5176 | main () | |
5177 | { | |
98418dba | 5178 | _oss_ioctl (); |
503d2be0 AS |
5179 | ; |
5180 | return 0; | |
5181 | } | |
5182 | _ACEOF | |
98418dba | 5183 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 5184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 5185 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 5186 | ac_status=$? |
35996d22 AS |
5187 | grep -v '^ *+' conftest.er1 >conftest.err |
5188 | rm -f conftest.er1 | |
5189 | cat conftest.err >&5 | |
c0d27fcc | 5190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5191 | (exit $ac_status); } && |
35996d22 AS |
5192 | { ac_try='test -z "$ac_c_werror_flag" |
5193 | || test ! -s conftest.err' | |
5194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5195 | (eval $ac_try) 2>&5 | |
5196 | ac_status=$? | |
5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5198 | (exit $ac_status); }; } && | |
5199 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 5200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5201 | (eval $ac_try) 2>&5 |
5202 | ac_status=$? | |
c0d27fcc | 5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5204 | (exit $ac_status); }; }; then |
98418dba | 5205 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 5206 | else |
503d2be0 | 5207 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5208 | sed 's/^/| /' conftest.$ac_ext >&5 |
5209 | ||
98418dba | 5210 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 5211 | fi |
35996d22 AS |
5212 | rm -f conftest.err conftest.$ac_objext \ |
5213 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 5214 | LIBS=$ac_check_lib_save_LIBS |
f4988be7 | 5215 | fi |
c0d27fcc | 5216 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
98418dba CW |
5217 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
5218 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
5219 | LIBSOUND=-lossaudio | |
5220 | else | |
5221 | LIBSOUND= | |
5222 | fi | |
5223 | ||
c0d27fcc | 5224 | |
f4988be7 | 5225 | fi |
c0d27fcc MR |
5226 | |
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | ||
5233 | ||
5234 | ||
5235 | ||
5236 | ||
5237 | ||
5238 | ||
5239 | ||
5240 | ||
5241 | ||
5242 | ||
5243 | ||
22044edf DL |
5244 | |
5245 | ||
973a76b1 | 5246 | |
cffcede7 | 5247 | |
c0d27fcc | 5248 | |
f4988be7 | 5249 | |
98418dba CW |
5250 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
5251 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 5252 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
cffcede7 | 5253 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h |
98418dba CW |
5254 | do |
5255 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
5256 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5257 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
5258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 5260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
5261 | fi |
5262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5263 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f4988be7 | 5264 | else |
c0d27fcc MR |
5265 | # Is the header compilable? |
5266 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5267 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5268 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5269 | /* confdefs.h. */ |
5270 | _ACEOF | |
5271 | cat confdefs.h >>conftest.$ac_ext | |
5272 | cat >>conftest.$ac_ext <<_ACEOF | |
5273 | /* end confdefs.h. */ | |
c0d27fcc MR |
5274 | $ac_includes_default |
5275 | #include <$ac_header> | |
5276 | _ACEOF | |
5277 | rm -f conftest.$ac_objext | |
5278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5279 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5280 | ac_status=$? |
35996d22 AS |
5281 | grep -v '^ *+' conftest.er1 >conftest.err |
5282 | rm -f conftest.er1 | |
5283 | cat conftest.err >&5 | |
c0d27fcc MR |
5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5285 | (exit $ac_status); } && | |
35996d22 AS |
5286 | { ac_try='test -z "$ac_c_werror_flag" |
5287 | || test ! -s conftest.err' | |
5288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5289 | (eval $ac_try) 2>&5 | |
5290 | ac_status=$? | |
5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5292 | (exit $ac_status); }; } && | |
5293 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5295 | (eval $ac_try) 2>&5 | |
5296 | ac_status=$? | |
5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5298 | (exit $ac_status); }; }; then | |
5299 | ac_header_compiler=yes | |
5300 | else | |
5301 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5302 | sed 's/^/| /' conftest.$ac_ext >&5 |
5303 | ||
c0d27fcc MR |
5304 | ac_header_compiler=no |
5305 | fi | |
35996d22 | 5306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5307 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5308 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5309 | ||
5310 | # Is the header present? | |
5311 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5312 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5313 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5314 | /* confdefs.h. */ |
5315 | _ACEOF | |
5316 | cat confdefs.h >>conftest.$ac_ext | |
5317 | cat >>conftest.$ac_ext <<_ACEOF | |
5318 | /* end confdefs.h. */ | |
98418dba | 5319 | #include <$ac_header> |
503d2be0 | 5320 | _ACEOF |
c0d27fcc | 5321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 5322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5323 | ac_status=$? |
6bae0ccf | 5324 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5325 | rm -f conftest.er1 |
5326 | cat conftest.err >&5 | |
c0d27fcc | 5327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5328 | (exit $ac_status); } >/dev/null; then |
5329 | if test -s conftest.err; then | |
5330 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5331 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
5332 | else |
5333 | ac_cpp_err= | |
5334 | fi | |
5335 | else | |
5336 | ac_cpp_err=yes | |
5337 | fi | |
5338 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5339 | ac_header_preproc=yes |
34ec9ebe | 5340 | else |
503d2be0 | 5341 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5342 | sed 's/^/| /' conftest.$ac_ext >&5 |
5343 | ||
c0d27fcc | 5344 | ac_header_preproc=no |
34ec9ebe | 5345 | fi |
98418dba | 5346 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5347 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5348 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5349 | ||
5350 | # So? What about this header? | |
35996d22 AS |
5351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5352 | yes:no: ) | |
c0d27fcc MR |
5353 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5354 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
5355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5356 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5357 | ac_header_preproc=yes | |
19650fd6 | 5358 | ;; |
35996d22 | 5359 | no:yes:* ) |
c0d27fcc MR |
5360 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5361 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
5362 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5363 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5364 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5365 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5366 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5367 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 5368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 5369 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
5370 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5371 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
5372 | ( |
5373 | cat <<\_ASBOX | |
35996d22 AS |
5374 | ## ------------------------------------------ ## |
5375 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5376 | ## ------------------------------------------ ## | |
19650fd6 AS |
5377 | _ASBOX |
5378 | ) | | |
5379 | sed "s/^/$as_me: WARNING: /" >&2 | |
5380 | ;; | |
c0d27fcc MR |
5381 | esac |
5382 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5383 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5384 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5386 | else | |
35996d22 | 5387 | eval "$as_ac_Header=\$ac_header_preproc" |
34ec9ebe | 5388 | fi |
c0d27fcc | 5389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5390 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5391 | |
5392 | fi | |
98418dba | 5393 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5394 | cat >>confdefs.h <<_ACEOF |
98418dba | 5395 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5396 | _ACEOF |
34ec9ebe | 5397 | |
98418dba | 5398 | fi |
c0d27fcc | 5399 | |
98418dba CW |
5400 | done |
5401 | ||
22044edf DL |
5402 | |
5403 | for ac_header in term.h | |
5404 | do | |
5405 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5406 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5407 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5408 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5410 | else | |
5411 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5412 | /* confdefs.h. */ |
5413 | _ACEOF | |
5414 | cat confdefs.h >>conftest.$ac_ext | |
5415 | cat >>conftest.$ac_ext <<_ACEOF | |
5416 | /* end confdefs.h. */ | |
22044edf DL |
5417 | #include <$ac_header> |
5418 | _ACEOF | |
5419 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5420 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5421 | ac_status=$? | |
5422 | grep -v '^ *+' conftest.er1 >conftest.err | |
5423 | rm -f conftest.er1 | |
5424 | cat conftest.err >&5 | |
5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5426 | (exit $ac_status); } >/dev/null; then | |
5427 | if test -s conftest.err; then | |
5428 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5429 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
22044edf DL |
5430 | else |
5431 | ac_cpp_err= | |
5432 | fi | |
5433 | else | |
5434 | ac_cpp_err=yes | |
5435 | fi | |
5436 | if test -z "$ac_cpp_err"; then | |
5437 | eval "$as_ac_Header=yes" | |
5438 | else | |
5439 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5440 | sed 's/^/| /' conftest.$ac_ext >&5 |
5441 | ||
22044edf DL |
5442 | eval "$as_ac_Header=no" |
5443 | fi | |
5444 | rm -f conftest.err conftest.$ac_ext | |
5445 | fi | |
5446 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5447 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5448 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5449 | cat >>confdefs.h <<_ACEOF | |
5450 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5451 | _ACEOF | |
5452 | ||
5453 | fi | |
5454 | ||
5455 | done | |
5456 | ||
c0d27fcc | 5457 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
98418dba CW |
5458 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5459 | if test "${ac_cv_header_stdc+set}" = set; then | |
503d2be0 | 5460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5461 | else |
503d2be0 | 5462 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5463 | /* confdefs.h. */ |
5464 | _ACEOF | |
5465 | cat confdefs.h >>conftest.$ac_ext | |
5466 | cat >>conftest.$ac_ext <<_ACEOF | |
5467 | /* end confdefs.h. */ | |
98418dba CW |
5468 | #include <stdlib.h> |
5469 | #include <stdarg.h> | |
5470 | #include <string.h> | |
5471 | #include <float.h> | |
5472 | ||
19650fd6 AS |
5473 | int |
5474 | main () | |
5475 | { | |
5476 | ||
5477 | ; | |
5478 | return 0; | |
5479 | } | |
98418dba | 5480 | _ACEOF |
19650fd6 AS |
5481 | rm -f conftest.$ac_objext |
5482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5483 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 5484 | ac_status=$? |
35996d22 AS |
5485 | grep -v '^ *+' conftest.er1 >conftest.err |
5486 | rm -f conftest.er1 | |
5487 | cat conftest.err >&5 | |
cd958eb3 | 5488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19650fd6 | 5489 | (exit $ac_status); } && |
35996d22 AS |
5490 | { ac_try='test -z "$ac_c_werror_flag" |
5491 | || test ! -s conftest.err' | |
5492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5493 | (eval $ac_try) 2>&5 | |
5494 | ac_status=$? | |
5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5496 | (exit $ac_status); }; } && | |
5497 | { ac_try='test -s conftest.$ac_objext' | |
19650fd6 AS |
5498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5499 | (eval $ac_try) 2>&5 | |
5500 | ac_status=$? | |
5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5502 | (exit $ac_status); }; }; then | |
98418dba | 5503 | ac_cv_header_stdc=yes |
ba4481b5 | 5504 | else |
503d2be0 | 5505 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5506 | sed 's/^/| /' conftest.$ac_ext >&5 |
5507 | ||
5508 | ac_cv_header_stdc=no | |
ba4481b5 | 5509 | fi |
35996d22 | 5510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
5511 | |
5512 | if test $ac_cv_header_stdc = yes; then | |
5513 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5514 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5515 | /* confdefs.h. */ |
5516 | _ACEOF | |
5517 | cat confdefs.h >>conftest.$ac_ext | |
5518 | cat >>conftest.$ac_ext <<_ACEOF | |
5519 | /* end confdefs.h. */ | |
98418dba CW |
5520 | #include <string.h> |
5521 | ||
5522 | _ACEOF | |
5523 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5524 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
5525 | : |
5526 | else | |
5527 | ac_cv_header_stdc=no | |
ba4481b5 | 5528 | fi |
98418dba | 5529 | rm -f conftest* |
ba4481b5 DL |
5530 | |
5531 | fi | |
5532 | ||
98418dba CW |
5533 | if test $ac_cv_header_stdc = yes; then |
5534 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5535 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5536 | /* confdefs.h. */ |
5537 | _ACEOF | |
5538 | cat confdefs.h >>conftest.$ac_ext | |
5539 | cat >>conftest.$ac_ext <<_ACEOF | |
5540 | /* end confdefs.h. */ | |
98418dba CW |
5541 | #include <stdlib.h> |
5542 | ||
5543 | _ACEOF | |
5544 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5545 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
5546 | : |
5547 | else | |
5548 | ac_cv_header_stdc=no | |
5549 | fi | |
5550 | rm -f conftest* | |
5551 | ||
5552 | fi | |
5553 | ||
5554 | if test $ac_cv_header_stdc = yes; then | |
5555 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5556 | if test "$cross_compiling" = yes; then | |
5557 | : | |
d42122a3 | 5558 | else |
503d2be0 | 5559 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5560 | /* confdefs.h. */ |
5561 | _ACEOF | |
5562 | cat confdefs.h >>conftest.$ac_ext | |
5563 | cat >>conftest.$ac_ext <<_ACEOF | |
5564 | /* end confdefs.h. */ | |
98418dba CW |
5565 | #include <ctype.h> |
5566 | #if ((' ' & 0x0FF) == 0x020) | |
5567 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5568 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5569 | #else | |
19650fd6 | 5570 | # define ISLOWER(c) \ |
35996d22 AS |
5571 | (('a' <= (c) && (c) <= 'i') \ |
5572 | || ('j' <= (c) && (c) <= 'r') \ | |
5573 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
5574 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5575 | #endif | |
5576 | ||
5577 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
5578 | int |
5579 | main () | |
5580 | { | |
98418dba CW |
5581 | int i; |
5582 | for (i = 0; i < 256; i++) | |
5583 | if (XOR (islower (i), ISLOWER (i)) | |
35996d22 | 5584 | || toupper (i) != TOUPPER (i)) |
98418dba CW |
5585 | exit(2); |
5586 | exit (0); | |
503d2be0 AS |
5587 | } |
5588 | _ACEOF | |
98418dba | 5589 | rm -f conftest$ac_exeext |
c0d27fcc | 5590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 5591 | (eval $ac_link) 2>&5 |
503d2be0 | 5592 | ac_status=$? |
c0d27fcc | 5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 5594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 5595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5596 | (eval $ac_try) 2>&5 |
5597 | ac_status=$? | |
c0d27fcc | 5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5599 | (exit $ac_status); }; }; then |
98418dba | 5600 | : |
d42122a3 | 5601 | else |
98418dba CW |
5602 | echo "$as_me: program exited with status $ac_status" >&5 |
5603 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5604 | sed 's/^/| /' conftest.$ac_ext >&5 |
5605 | ||
c0d27fcc | 5606 | ( exit $ac_status ) |
98418dba | 5607 | ac_cv_header_stdc=no |
d42122a3 | 5608 | fi |
35996d22 | 5609 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 5610 | fi |
98418dba CW |
5611 | fi |
5612 | fi | |
c0d27fcc | 5613 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
98418dba CW |
5614 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
5615 | if test $ac_cv_header_stdc = yes; then | |
5616 | ||
c0d27fcc | 5617 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5618 | #define STDC_HEADERS 1 |
c0d27fcc | 5619 | _ACEOF |
d42122a3 DL |
5620 | |
5621 | fi | |
5622 | ||
c0d27fcc | 5623 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
98418dba CW |
5624 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
5625 | if test "${ac_cv_header_time+set}" = set; then | |
503d2be0 | 5626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5627 | else |
503d2be0 | 5628 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5629 | /* confdefs.h. */ |
5630 | _ACEOF | |
5631 | cat confdefs.h >>conftest.$ac_ext | |
5632 | cat >>conftest.$ac_ext <<_ACEOF | |
5633 | /* end confdefs.h. */ | |
ba4481b5 | 5634 | #include <sys/types.h> |
98418dba | 5635 | #include <sys/time.h> |
ba4481b5 | 5636 | #include <time.h> |
503d2be0 AS |
5637 | |
5638 | int | |
5639 | main () | |
5640 | { | |
98418dba CW |
5641 | if ((struct tm *) 0) |
5642 | return 0; | |
503d2be0 AS |
5643 | ; |
5644 | return 0; | |
5645 | } | |
5646 | _ACEOF | |
5647 | rm -f conftest.$ac_objext | |
c0d27fcc | 5648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5649 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5650 | ac_status=$? |
35996d22 AS |
5651 | grep -v '^ *+' conftest.er1 >conftest.err |
5652 | rm -f conftest.er1 | |
5653 | cat conftest.err >&5 | |
c0d27fcc | 5654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5655 | (exit $ac_status); } && |
35996d22 AS |
5656 | { ac_try='test -z "$ac_c_werror_flag" |
5657 | || test ! -s conftest.err' | |
5658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5659 | (eval $ac_try) 2>&5 | |
5660 | ac_status=$? | |
5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5662 | (exit $ac_status); }; } && | |
5663 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5665 | (eval $ac_try) 2>&5 |
5666 | ac_status=$? | |
c0d27fcc | 5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5668 | (exit $ac_status); }; }; then |
98418dba | 5669 | ac_cv_header_time=yes |
ba4481b5 | 5670 | else |
503d2be0 | 5671 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5672 | sed 's/^/| /' conftest.$ac_ext >&5 |
5673 | ||
98418dba | 5674 | ac_cv_header_time=no |
ba4481b5 | 5675 | fi |
35996d22 | 5676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5677 | fi |
c0d27fcc | 5678 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
98418dba CW |
5679 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
5680 | if test $ac_cv_header_time = yes; then | |
503d2be0 | 5681 | |
c0d27fcc | 5682 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5683 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 5684 | _ACEOF |
ba4481b5 DL |
5685 | |
5686 | fi | |
5687 | ||
cd958eb3 MB |
5688 | echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
5689 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 | |
5690 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | |
503d2be0 | 5691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5692 | else |
503d2be0 | 5693 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5694 | /* confdefs.h. */ |
5695 | _ACEOF | |
5696 | cat confdefs.h >>conftest.$ac_ext | |
5697 | cat >>conftest.$ac_ext <<_ACEOF | |
5698 | /* end confdefs.h. */ | |
cd958eb3 MB |
5699 | $ac_includes_default |
5700 | int | |
5701 | main () | |
5702 | { | |
5703 | #ifndef sys_siglist | |
5704 | char *p = (char *) sys_siglist; | |
98418dba | 5705 | #endif |
503d2be0 | 5706 | |
cd958eb3 MB |
5707 | ; |
5708 | return 0; | |
5709 | } | |
5710 | _ACEOF | |
5711 | rm -f conftest.$ac_objext | |
5712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5713 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 5714 | ac_status=$? |
35996d22 AS |
5715 | grep -v '^ *+' conftest.er1 >conftest.err |
5716 | rm -f conftest.er1 | |
5717 | cat conftest.err >&5 | |
cd958eb3 MB |
5718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5719 | (exit $ac_status); } && | |
35996d22 AS |
5720 | { ac_try='test -z "$ac_c_werror_flag" |
5721 | || test ! -s conftest.err' | |
5722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5723 | (eval $ac_try) 2>&5 | |
5724 | ac_status=$? | |
5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5726 | (exit $ac_status); }; } && | |
5727 | { ac_try='test -s conftest.$ac_objext' | |
cd958eb3 MB |
5728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5729 | (eval $ac_try) 2>&5 | |
5730 | ac_status=$? | |
5731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5732 | (exit $ac_status); }; }; then | |
5733 | ac_cv_have_decl_sys_siglist=yes | |
5734 | else | |
5735 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5736 | sed 's/^/| /' conftest.$ac_ext >&5 |
5737 | ||
cd958eb3 MB |
5738 | ac_cv_have_decl_sys_siglist=no |
5739 | fi | |
35996d22 | 5740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cd958eb3 MB |
5741 | fi |
5742 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 | |
5743 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 | |
5744 | if test $ac_cv_have_decl_sys_siglist = yes; then | |
5745 | ||
5746 | cat >>confdefs.h <<_ACEOF | |
5747 | #define HAVE_DECL_SYS_SIGLIST 1 | |
5748 | _ACEOF | |
5749 | ||
5750 | ||
5751 | else | |
5752 | cat >>confdefs.h <<_ACEOF | |
5753 | #define HAVE_DECL_SYS_SIGLIST 0 | |
5754 | _ACEOF | |
5755 | ||
5756 | ||
5757 | fi | |
5758 | ||
5759 | ||
5760 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
5761 | # For Tru64, at least: | |
5762 | echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 | |
5763 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6 | |
5764 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then | |
5765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5766 | else | |
5767 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5768 | /* confdefs.h. */ |
5769 | _ACEOF | |
5770 | cat confdefs.h >>conftest.$ac_ext | |
5771 | cat >>conftest.$ac_ext <<_ACEOF | |
5772 | /* end confdefs.h. */ | |
cd958eb3 | 5773 | $ac_includes_default |
503d2be0 AS |
5774 | int |
5775 | main () | |
5776 | { | |
cd958eb3 MB |
5777 | #ifndef __sys_siglist |
5778 | char *p = (char *) __sys_siglist; | |
5779 | #endif | |
5780 | ||
503d2be0 AS |
5781 | ; |
5782 | return 0; | |
5783 | } | |
5784 | _ACEOF | |
5785 | rm -f conftest.$ac_objext | |
c0d27fcc | 5786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5787 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5788 | ac_status=$? |
35996d22 AS |
5789 | grep -v '^ *+' conftest.er1 >conftest.err |
5790 | rm -f conftest.er1 | |
5791 | cat conftest.err >&5 | |
c0d27fcc | 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5793 | (exit $ac_status); } && |
35996d22 AS |
5794 | { ac_try='test -z "$ac_c_werror_flag" |
5795 | || test ! -s conftest.err' | |
5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5797 | (eval $ac_try) 2>&5 | |
5798 | ac_status=$? | |
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5800 | (exit $ac_status); }; } && | |
5801 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5803 | (eval $ac_try) 2>&5 |
5804 | ac_status=$? | |
c0d27fcc | 5805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5806 | (exit $ac_status); }; }; then |
cd958eb3 | 5807 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 5808 | else |
503d2be0 | 5809 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5810 | sed 's/^/| /' conftest.$ac_ext >&5 |
5811 | ||
cd958eb3 | 5812 | ac_cv_have_decl___sys_siglist=no |
ba4481b5 | 5813 | fi |
35996d22 | 5814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 5815 | fi |
cd958eb3 MB |
5816 | echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
5817 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 | |
5818 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
503d2be0 | 5819 | |
cd958eb3 MB |
5820 | cat >>confdefs.h <<_ACEOF |
5821 | #define HAVE_DECL___SYS_SIGLIST 1 | |
5822 | _ACEOF | |
5823 | ||
5824 | ||
5825 | else | |
5826 | cat >>confdefs.h <<_ACEOF | |
5827 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 5828 | _ACEOF |
503d2be0 | 5829 | |
cd958eb3 | 5830 | |
ba4481b5 DL |
5831 | fi |
5832 | ||
cd958eb3 MB |
5833 | |
5834 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
5835 | ||
5836 | cat >>confdefs.h <<\_ACEOF | |
5837 | #define sys_siglist __sys_siglist | |
5838 | _ACEOF | |
5839 | ||
5840 | fi | |
5841 | fi | |
c0d27fcc | 5842 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
98418dba CW |
5843 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
5844 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
503d2be0 | 5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5846 | else |
503d2be0 | 5847 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5848 | /* confdefs.h. */ |
5849 | _ACEOF | |
5850 | cat confdefs.h >>conftest.$ac_ext | |
5851 | cat >>conftest.$ac_ext <<_ACEOF | |
5852 | /* end confdefs.h. */ | |
98418dba CW |
5853 | #include <sys/types.h> |
5854 | #include <sys/wait.h> | |
5855 | #ifndef WEXITSTATUS | |
5856 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
5857 | #endif | |
5858 | #ifndef WIFEXITED | |
5859 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 5860 | #endif |
503d2be0 AS |
5861 | |
5862 | int | |
5863 | main () | |
5864 | { | |
98418dba CW |
5865 | int s; |
5866 | wait (&s); | |
5867 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
5868 | ; |
5869 | return 0; | |
5870 | } | |
5871 | _ACEOF | |
98418dba | 5872 | rm -f conftest.$ac_objext |
c0d27fcc | 5873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5874 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5875 | ac_status=$? |
35996d22 AS |
5876 | grep -v '^ *+' conftest.er1 >conftest.err |
5877 | rm -f conftest.er1 | |
5878 | cat conftest.err >&5 | |
c0d27fcc | 5879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5880 | (exit $ac_status); } && |
35996d22 AS |
5881 | { ac_try='test -z "$ac_c_werror_flag" |
5882 | || test ! -s conftest.err' | |
5883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5884 | (eval $ac_try) 2>&5 | |
5885 | ac_status=$? | |
5886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5887 | (exit $ac_status); }; } && | |
5888 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5890 | (eval $ac_try) 2>&5 |
5891 | ac_status=$? | |
c0d27fcc | 5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5893 | (exit $ac_status); }; }; then |
98418dba | 5894 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 5895 | else |
503d2be0 | 5896 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5897 | sed 's/^/| /' conftest.$ac_ext >&5 |
5898 | ||
98418dba | 5899 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 5900 | fi |
35996d22 | 5901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5902 | fi |
c0d27fcc | 5903 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
98418dba CW |
5904 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
5905 | if test $ac_cv_header_sys_wait_h = yes; then | |
503d2be0 | 5906 | |
c0d27fcc | 5907 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5908 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 5909 | _ACEOF |
ba4481b5 | 5910 | |
ba4481b5 DL |
5911 | fi |
5912 | ||
c0d27fcc MR |
5913 | |
5914 | echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
98418dba CW |
5915 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
5916 | if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
503d2be0 | 5917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 5918 | else |
503d2be0 | 5919 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5920 | /* confdefs.h. */ |
5921 | _ACEOF | |
5922 | cat confdefs.h >>conftest.$ac_ext | |
5923 | cat >>conftest.$ac_ext <<_ACEOF | |
5924 | /* end confdefs.h. */ | |
98418dba CW |
5925 | #ifdef TIME_WITH_SYS_TIME |
5926 | #include <sys/time.h> | |
5927 | #include <time.h> | |
5928 | #else | |
5929 | #ifdef HAVE_SYS_TIME_H | |
5930 | #include <sys/time.h> | |
5931 | #else | |
1113b624 | 5932 | #include <time.h> |
98418dba CW |
5933 | #endif |
5934 | #endif | |
5935 | #ifdef HAVE_UTIME_H | |
5936 | #include <utime.h> | |
5937 | #endif | |
503d2be0 AS |
5938 | int |
5939 | main () | |
5940 | { | |
98418dba | 5941 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
5942 | ; |
5943 | return 0; | |
5944 | } | |
5945 | _ACEOF | |
98418dba | 5946 | rm -f conftest.$ac_objext |
c0d27fcc | 5947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5948 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5949 | ac_status=$? |
35996d22 AS |
5950 | grep -v '^ *+' conftest.er1 >conftest.err |
5951 | rm -f conftest.er1 | |
5952 | cat conftest.err >&5 | |
c0d27fcc | 5953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5954 | (exit $ac_status); } && |
35996d22 AS |
5955 | { ac_try='test -z "$ac_c_werror_flag" |
5956 | || test ! -s conftest.err' | |
5957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5958 | (eval $ac_try) 2>&5 | |
5959 | ac_status=$? | |
5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5961 | (exit $ac_status); }; } && | |
5962 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5964 | (eval $ac_try) 2>&5 |
5965 | ac_status=$? | |
c0d27fcc | 5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5967 | (exit $ac_status); }; }; then |
98418dba | 5968 | emacs_cv_struct_utimbuf=yes |
1113b624 | 5969 | else |
503d2be0 | 5970 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5971 | sed 's/^/| /' conftest.$ac_ext >&5 |
5972 | ||
98418dba | 5973 | emacs_cv_struct_utimbuf=no |
1113b624 | 5974 | fi |
35996d22 | 5975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1113b624 | 5976 | fi |
c0d27fcc | 5977 | echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
98418dba CW |
5978 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
5979 | if test $emacs_cv_struct_utimbuf = yes; then | |
b936fae4 | 5980 | |
c0d27fcc | 5981 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5982 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 5983 | _ACEOF |
1113b624 PE |
5984 | |
5985 | fi | |
ba4481b5 | 5986 | |
c0d27fcc | 5987 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
98418dba CW |
5988 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
5989 | if test "${ac_cv_type_signal+set}" = set; then | |
503d2be0 | 5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 5991 | else |
98418dba | 5992 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5993 | /* confdefs.h. */ |
5994 | _ACEOF | |
5995 | cat confdefs.h >>conftest.$ac_ext | |
5996 | cat >>conftest.$ac_ext <<_ACEOF | |
5997 | /* end confdefs.h. */ | |
7397acc4 | 5998 | #include <sys/types.h> |
98418dba CW |
5999 | #include <signal.h> |
6000 | #ifdef signal | |
6001 | # undef signal | |
6002 | #endif | |
6003 | #ifdef __cplusplus | |
6004 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6005 | #else | |
6006 | void (*signal ()) (); | |
6007 | #endif | |
6008 | ||
503d2be0 AS |
6009 | int |
6010 | main () | |
6011 | { | |
98418dba | 6012 | int i; |
503d2be0 AS |
6013 | ; |
6014 | return 0; | |
6015 | } | |
6016 | _ACEOF | |
98418dba | 6017 | rm -f conftest.$ac_objext |
c0d27fcc | 6018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6019 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6020 | ac_status=$? |
35996d22 AS |
6021 | grep -v '^ *+' conftest.er1 >conftest.err |
6022 | rm -f conftest.er1 | |
6023 | cat conftest.err >&5 | |
c0d27fcc | 6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6025 | (exit $ac_status); } && |
35996d22 AS |
6026 | { ac_try='test -z "$ac_c_werror_flag" |
6027 | || test ! -s conftest.err' | |
6028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6029 | (eval $ac_try) 2>&5 | |
6030 | ac_status=$? | |
6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6032 | (exit $ac_status); }; } && | |
6033 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6035 | (eval $ac_try) 2>&5 |
6036 | ac_status=$? | |
c0d27fcc | 6037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6038 | (exit $ac_status); }; }; then |
98418dba | 6039 | ac_cv_type_signal=void |
503d2be0 AS |
6040 | else |
6041 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6042 | sed 's/^/| /' conftest.$ac_ext >&5 |
6043 | ||
98418dba | 6044 | ac_cv_type_signal=int |
503d2be0 | 6045 | fi |
35996d22 | 6046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6047 | fi |
c0d27fcc | 6048 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
98418dba | 6049 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
7397acc4 | 6050 | |
c0d27fcc | 6051 | cat >>confdefs.h <<_ACEOF |
98418dba | 6052 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
6053 | _ACEOF |
6054 | ||
503d2be0 | 6055 | |
c0d27fcc MR |
6056 | |
6057 | echo "$as_me:$LINENO: checking for speed_t" >&5 | |
98418dba CW |
6058 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
6059 | if test "${emacs_cv_speed_t+set}" = set; then | |
6060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 6061 | else |
98418dba | 6062 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6063 | /* confdefs.h. */ |
6064 | _ACEOF | |
6065 | cat confdefs.h >>conftest.$ac_ext | |
6066 | cat >>conftest.$ac_ext <<_ACEOF | |
6067 | /* end confdefs.h. */ | |
98418dba | 6068 | #include <termios.h> |
98418dba CW |
6069 | int |
6070 | main () | |
6071 | { | |
6072 | speed_t x = 1; | |
6073 | ; | |
6074 | return 0; | |
6075 | } | |
6076 | _ACEOF | |
6077 | rm -f conftest.$ac_objext | |
c0d27fcc | 6078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6079 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6080 | ac_status=$? |
35996d22 AS |
6081 | grep -v '^ *+' conftest.er1 >conftest.err |
6082 | rm -f conftest.er1 | |
6083 | cat conftest.err >&5 | |
c0d27fcc | 6084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6085 | (exit $ac_status); } && |
35996d22 AS |
6086 | { ac_try='test -z "$ac_c_werror_flag" |
6087 | || test ! -s conftest.err' | |
6088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6089 | (eval $ac_try) 2>&5 | |
6090 | ac_status=$? | |
6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6092 | (exit $ac_status); }; } && | |
6093 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6095 | (eval $ac_try) 2>&5 |
6096 | ac_status=$? | |
c0d27fcc | 6097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6098 | (exit $ac_status); }; }; then |
6099 | emacs_cv_speed_t=yes | |
6100 | else | |
6101 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6102 | sed 's/^/| /' conftest.$ac_ext >&5 |
6103 | ||
98418dba CW |
6104 | emacs_cv_speed_t=no |
6105 | fi | |
35996d22 | 6106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 6107 | fi |
c0d27fcc | 6108 | echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
98418dba CW |
6109 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
6110 | if test $emacs_cv_speed_t = yes; then | |
b936fae4 | 6111 | |
c0d27fcc | 6112 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6113 | #define HAVE_SPEED_T 1 |
c0d27fcc | 6114 | _ACEOF |
98418dba | 6115 | |
7397acc4 DL |
6116 | fi |
6117 | ||
c0d27fcc | 6118 | echo "$as_me:$LINENO: checking for struct timeval" >&5 |
98418dba CW |
6119 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
6120 | if test "${emacs_cv_struct_timeval+set}" = set; then | |
503d2be0 | 6121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6122 | else |
503d2be0 | 6123 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6124 | /* confdefs.h. */ |
6125 | _ACEOF | |
6126 | cat confdefs.h >>conftest.$ac_ext | |
6127 | cat >>conftest.$ac_ext <<_ACEOF | |
6128 | /* end confdefs.h. */ | |
98418dba CW |
6129 | #ifdef TIME_WITH_SYS_TIME |
6130 | #include <sys/time.h> | |
6131 | #include <time.h> | |
6132 | #else | |
6133 | #ifdef HAVE_SYS_TIME_H | |
6134 | #include <sys/time.h> | |
6135 | #else | |
6136 | #include <time.h> | |
6137 | #endif | |
6138 | #endif | |
503d2be0 AS |
6139 | int |
6140 | main () | |
6141 | { | |
98418dba | 6142 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
6143 | ; |
6144 | return 0; | |
6145 | } | |
6146 | _ACEOF | |
6147 | rm -f conftest.$ac_objext | |
c0d27fcc | 6148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6149 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6150 | ac_status=$? |
35996d22 AS |
6151 | grep -v '^ *+' conftest.er1 >conftest.err |
6152 | rm -f conftest.er1 | |
6153 | cat conftest.err >&5 | |
c0d27fcc | 6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6155 | (exit $ac_status); } && |
35996d22 AS |
6156 | { ac_try='test -z "$ac_c_werror_flag" |
6157 | || test ! -s conftest.err' | |
6158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6159 | (eval $ac_try) 2>&5 | |
6160 | ac_status=$? | |
6161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6162 | (exit $ac_status); }; } && | |
6163 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6165 | (eval $ac_try) 2>&5 |
6166 | ac_status=$? | |
c0d27fcc | 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6168 | (exit $ac_status); }; }; then |
98418dba | 6169 | emacs_cv_struct_timeval=yes |
7397acc4 | 6170 | else |
503d2be0 | 6171 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6172 | sed 's/^/| /' conftest.$ac_ext >&5 |
6173 | ||
98418dba | 6174 | emacs_cv_struct_timeval=no |
7397acc4 | 6175 | fi |
35996d22 | 6176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6177 | fi |
c0d27fcc | 6178 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
98418dba CW |
6179 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
6180 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
6181 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 6182 | |
c0d27fcc | 6183 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6184 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 6185 | _ACEOF |
7397acc4 DL |
6186 | |
6187 | fi | |
6188 | ||
c0d27fcc | 6189 | echo "$as_me:$LINENO: checking for struct exception" >&5 |
98418dba CW |
6190 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
6191 | if test "${emacs_cv_struct_exception+set}" = set; then | |
503d2be0 | 6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6193 | else |
503d2be0 | 6194 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6195 | /* confdefs.h. */ |
6196 | _ACEOF | |
6197 | cat confdefs.h >>conftest.$ac_ext | |
6198 | cat >>conftest.$ac_ext <<_ACEOF | |
6199 | /* end confdefs.h. */ | |
98418dba | 6200 | #include <math.h> |
503d2be0 AS |
6201 | int |
6202 | main () | |
6203 | { | |
98418dba | 6204 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
6205 | ; |
6206 | return 0; | |
ba4481b5 | 6207 | } |
503d2be0 AS |
6208 | _ACEOF |
6209 | rm -f conftest.$ac_objext | |
c0d27fcc | 6210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6211 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6212 | ac_status=$? |
35996d22 AS |
6213 | grep -v '^ *+' conftest.er1 >conftest.err |
6214 | rm -f conftest.er1 | |
6215 | cat conftest.err >&5 | |
c0d27fcc | 6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6217 | (exit $ac_status); } && |
35996d22 AS |
6218 | { ac_try='test -z "$ac_c_werror_flag" |
6219 | || test ! -s conftest.err' | |
6220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6221 | (eval $ac_try) 2>&5 | |
6222 | ac_status=$? | |
6223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6224 | (exit $ac_status); }; } && | |
6225 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6227 | (eval $ac_try) 2>&5 |
6228 | ac_status=$? | |
c0d27fcc | 6229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6230 | (exit $ac_status); }; }; then |
98418dba | 6231 | emacs_cv_struct_exception=yes |
ba4481b5 | 6232 | else |
503d2be0 | 6233 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6234 | sed 's/^/| /' conftest.$ac_ext >&5 |
6235 | ||
98418dba | 6236 | emacs_cv_struct_exception=no |
ba4481b5 | 6237 | fi |
35996d22 | 6238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6239 | fi |
c0d27fcc | 6240 | echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
98418dba CW |
6241 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
6242 | HAVE_EXCEPTION=$emacs_cv_struct_exception | |
6243 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 6244 | |
c0d27fcc | 6245 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6246 | #define NO_MATHERR 1 |
c0d27fcc | 6247 | _ACEOF |
ba4481b5 DL |
6248 | |
6249 | fi | |
6250 | ||
7862d3a8 AS |
6251 | |
6252 | for ac_header in sys/socket.h | |
6253 | do | |
6254 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6255 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6256 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6257 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6258 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6260 | fi | |
6261 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6262 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6263 | else | |
6264 | # Is the header compilable? | |
6265 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6266 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6267 | cat >conftest.$ac_ext <<_ACEOF | |
6268 | /* confdefs.h. */ | |
6269 | _ACEOF | |
6270 | cat confdefs.h >>conftest.$ac_ext | |
6271 | cat >>conftest.$ac_ext <<_ACEOF | |
6272 | /* end confdefs.h. */ | |
6273 | $ac_includes_default | |
6274 | #include <$ac_header> | |
6275 | _ACEOF | |
6276 | rm -f conftest.$ac_objext | |
6277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6278 | (eval $ac_compile) 2>conftest.er1 | |
6279 | ac_status=$? | |
6280 | grep -v '^ *+' conftest.er1 >conftest.err | |
6281 | rm -f conftest.er1 | |
6282 | cat conftest.err >&5 | |
6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6284 | (exit $ac_status); } && | |
6285 | { ac_try='test -z "$ac_c_werror_flag" | |
6286 | || test ! -s conftest.err' | |
6287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6288 | (eval $ac_try) 2>&5 | |
6289 | ac_status=$? | |
6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6291 | (exit $ac_status); }; } && | |
6292 | { ac_try='test -s conftest.$ac_objext' | |
6293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6294 | (eval $ac_try) 2>&5 | |
6295 | ac_status=$? | |
6296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6297 | (exit $ac_status); }; }; then | |
6298 | ac_header_compiler=yes | |
6299 | else | |
6300 | echo "$as_me: failed program was:" >&5 | |
6301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6302 | ||
6303 | ac_header_compiler=no | |
6304 | fi | |
6305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6306 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6307 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6308 | ||
6309 | # Is the header present? | |
6310 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6311 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6312 | cat >conftest.$ac_ext <<_ACEOF | |
6313 | /* confdefs.h. */ | |
6314 | _ACEOF | |
6315 | cat confdefs.h >>conftest.$ac_ext | |
6316 | cat >>conftest.$ac_ext <<_ACEOF | |
6317 | /* end confdefs.h. */ | |
6318 | #include <$ac_header> | |
6319 | _ACEOF | |
6320 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6321 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6322 | ac_status=$? | |
6323 | grep -v '^ *+' conftest.er1 >conftest.err | |
6324 | rm -f conftest.er1 | |
6325 | cat conftest.err >&5 | |
6326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6327 | (exit $ac_status); } >/dev/null; then | |
6328 | if test -s conftest.err; then | |
6329 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6330 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6331 | else | |
6332 | ac_cpp_err= | |
6333 | fi | |
6334 | else | |
6335 | ac_cpp_err=yes | |
6336 | fi | |
6337 | if test -z "$ac_cpp_err"; then | |
6338 | ac_header_preproc=yes | |
6339 | else | |
6340 | echo "$as_me: failed program was:" >&5 | |
6341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6342 | ||
6343 | ac_header_preproc=no | |
6344 | fi | |
6345 | rm -f conftest.err conftest.$ac_ext | |
6346 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6347 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6348 | ||
6349 | # So? What about this header? | |
6350 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6351 | yes:no: ) | |
6352 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6353 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6354 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6355 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6356 | ac_header_preproc=yes | |
6357 | ;; | |
6358 | no:yes:* ) | |
6359 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6360 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6361 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6362 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6363 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6364 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6365 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6366 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6367 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6368 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6369 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6370 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6371 | ( | |
6372 | cat <<\_ASBOX | |
6373 | ## ------------------------------------------ ## | |
6374 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6375 | ## ------------------------------------------ ## | |
6376 | _ASBOX | |
6377 | ) | | |
6378 | sed "s/^/$as_me: WARNING: /" >&2 | |
6379 | ;; | |
6380 | esac | |
6381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6385 | else | |
6386 | eval "$as_ac_Header=\$ac_header_preproc" | |
6387 | fi | |
6388 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6389 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6390 | ||
6391 | fi | |
6392 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6393 | cat >>confdefs.h <<_ACEOF | |
6394 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6395 | _ACEOF | |
6396 | ||
6397 | fi | |
6398 | ||
6399 | done | |
6400 | ||
6401 | ||
6402 | for ac_header in net/if.h | |
6403 | do | |
6404 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6405 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6406 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6409 | else | |
6410 | cat >conftest.$ac_ext <<_ACEOF | |
6411 | /* confdefs.h. */ | |
6412 | _ACEOF | |
6413 | cat confdefs.h >>conftest.$ac_ext | |
6414 | cat >>conftest.$ac_ext <<_ACEOF | |
6415 | /* end confdefs.h. */ | |
6416 | $ac_includes_default | |
6417 | #if HAVE_SYS_SOCKET_H | |
6418 | #include <sys/socket.h> | |
6419 | #endif | |
6420 | ||
6421 | #include <$ac_header> | |
6422 | _ACEOF | |
6423 | rm -f conftest.$ac_objext | |
6424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6425 | (eval $ac_compile) 2>conftest.er1 | |
6426 | ac_status=$? | |
6427 | grep -v '^ *+' conftest.er1 >conftest.err | |
6428 | rm -f conftest.er1 | |
6429 | cat conftest.err >&5 | |
6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6431 | (exit $ac_status); } && | |
6432 | { ac_try='test -z "$ac_c_werror_flag" | |
6433 | || test ! -s conftest.err' | |
6434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6435 | (eval $ac_try) 2>&5 | |
6436 | ac_status=$? | |
6437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6438 | (exit $ac_status); }; } && | |
6439 | { ac_try='test -s conftest.$ac_objext' | |
6440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6441 | (eval $ac_try) 2>&5 | |
6442 | ac_status=$? | |
6443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6444 | (exit $ac_status); }; }; then | |
6445 | eval "$as_ac_Header=yes" | |
6446 | else | |
6447 | echo "$as_me: failed program was:" >&5 | |
6448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6449 | ||
6450 | eval "$as_ac_Header=no" | |
6451 | fi | |
6452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6453 | fi | |
6454 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6455 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6456 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6457 | cat >>confdefs.h <<_ACEOF | |
6458 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6459 | _ACEOF | |
6460 | ||
6461 | fi | |
6462 | ||
6463 | done | |
6464 | ||
6465 | ||
c0d27fcc | 6466 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
98418dba CW |
6467 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
6468 | if test "${ac_cv_struct_tm+set}" = set; then | |
503d2be0 | 6469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6470 | else |
503d2be0 | 6471 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6472 | /* confdefs.h. */ |
6473 | _ACEOF | |
6474 | cat confdefs.h >>conftest.$ac_ext | |
6475 | cat >>conftest.$ac_ext <<_ACEOF | |
6476 | /* end confdefs.h. */ | |
98418dba CW |
6477 | #include <sys/types.h> |
6478 | #include <time.h> | |
7397acc4 | 6479 | |
503d2be0 AS |
6480 | int |
6481 | main () | |
6482 | { | |
98418dba | 6483 | struct tm *tp; tp->tm_sec; |
503d2be0 AS |
6484 | ; |
6485 | return 0; | |
6486 | } | |
6487 | _ACEOF | |
6488 | rm -f conftest.$ac_objext | |
c0d27fcc | 6489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6490 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6491 | ac_status=$? |
35996d22 AS |
6492 | grep -v '^ *+' conftest.er1 >conftest.err |
6493 | rm -f conftest.er1 | |
6494 | cat conftest.err >&5 | |
c0d27fcc | 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6496 | (exit $ac_status); } && |
35996d22 AS |
6497 | { ac_try='test -z "$ac_c_werror_flag" |
6498 | || test ! -s conftest.err' | |
c0d27fcc | 6499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6500 | (eval $ac_try) 2>&5 |
6501 | ac_status=$? | |
c0d27fcc | 6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
6503 | (exit $ac_status); }; } && |
6504 | { ac_try='test -s conftest.$ac_objext' | |
6505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6506 | (eval $ac_try) 2>&5 | |
6507 | ac_status=$? | |
6508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6509 | (exit $ac_status); }; }; then | |
6510 | ac_cv_struct_tm=time.h | |
6511 | else | |
503d2be0 | 6512 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6513 | sed 's/^/| /' conftest.$ac_ext >&5 |
6514 | ||
98418dba | 6515 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 6516 | fi |
35996d22 | 6517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6518 | fi |
c0d27fcc | 6519 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
98418dba CW |
6520 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
6521 | if test $ac_cv_struct_tm = sys/time.h; then | |
7397acc4 | 6522 | |
c0d27fcc | 6523 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6524 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 6525 | _ACEOF |
7397acc4 DL |
6526 | |
6527 | fi | |
ba4481b5 | 6528 | |
c0d27fcc | 6529 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
98418dba CW |
6530 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
6531 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
503d2be0 | 6532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6533 | else |
98418dba | 6534 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6535 | /* confdefs.h. */ |
6536 | _ACEOF | |
6537 | cat confdefs.h >>conftest.$ac_ext | |
6538 | cat >>conftest.$ac_ext <<_ACEOF | |
6539 | /* end confdefs.h. */ | |
98418dba CW |
6540 | #include <sys/types.h> |
6541 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 6542 | |
c0d27fcc | 6543 | |
98418dba CW |
6544 | int |
6545 | main () | |
6546 | { | |
6547 | static struct tm ac_aggr; | |
6548 | if (ac_aggr.tm_zone) | |
6549 | return 0; | |
6550 | ; | |
6551 | return 0; | |
6552 | } | |
6553 | _ACEOF | |
6554 | rm -f conftest.$ac_objext | |
c0d27fcc | 6555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6556 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6557 | ac_status=$? |
35996d22 AS |
6558 | grep -v '^ *+' conftest.er1 >conftest.err |
6559 | rm -f conftest.er1 | |
6560 | cat conftest.err >&5 | |
c0d27fcc | 6561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6562 | (exit $ac_status); } && |
35996d22 AS |
6563 | { ac_try='test -z "$ac_c_werror_flag" |
6564 | || test ! -s conftest.err' | |
6565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6566 | (eval $ac_try) 2>&5 | |
6567 | ac_status=$? | |
6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6569 | (exit $ac_status); }; } && | |
6570 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6572 | (eval $ac_try) 2>&5 |
6573 | ac_status=$? | |
c0d27fcc | 6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6575 | (exit $ac_status); }; }; then |
6576 | ac_cv_member_struct_tm_tm_zone=yes | |
ba4481b5 | 6577 | else |
98418dba | 6578 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6579 | sed 's/^/| /' conftest.$ac_ext >&5 |
6580 | ||
6bae0ccf | 6581 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6582 | /* confdefs.h. */ |
6583 | _ACEOF | |
6584 | cat confdefs.h >>conftest.$ac_ext | |
6585 | cat >>conftest.$ac_ext <<_ACEOF | |
6586 | /* end confdefs.h. */ | |
6bae0ccf DL |
6587 | #include <sys/types.h> |
6588 | #include <$ac_cv_struct_tm> | |
6589 | ||
6590 | ||
6591 | int | |
6592 | main () | |
6593 | { | |
6594 | static struct tm ac_aggr; | |
6595 | if (sizeof ac_aggr.tm_zone) | |
6596 | return 0; | |
6597 | ; | |
6598 | return 0; | |
6599 | } | |
6600 | _ACEOF | |
6601 | rm -f conftest.$ac_objext | |
6602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6603 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 6604 | ac_status=$? |
35996d22 AS |
6605 | grep -v '^ *+' conftest.er1 >conftest.err |
6606 | rm -f conftest.er1 | |
6607 | cat conftest.err >&5 | |
6bae0ccf DL |
6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6609 | (exit $ac_status); } && | |
35996d22 AS |
6610 | { ac_try='test -z "$ac_c_werror_flag" |
6611 | || test ! -s conftest.err' | |
6612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6613 | (eval $ac_try) 2>&5 | |
6614 | ac_status=$? | |
6615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6616 | (exit $ac_status); }; } && | |
6617 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
6618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6619 | (eval $ac_try) 2>&5 | |
6620 | ac_status=$? | |
6621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6622 | (exit $ac_status); }; }; then | |
6623 | ac_cv_member_struct_tm_tm_zone=yes | |
6624 | else | |
6625 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6626 | sed 's/^/| /' conftest.$ac_ext >&5 |
6627 | ||
98418dba | 6628 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 6629 | fi |
35996d22 | 6630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6631 | fi |
35996d22 | 6632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 6633 | fi |
c0d27fcc | 6634 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
98418dba CW |
6635 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
6636 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
503d2be0 | 6637 | |
c0d27fcc | 6638 | cat >>confdefs.h <<_ACEOF |
98418dba | 6639 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
6640 | _ACEOF |
6641 | ||
ba4481b5 | 6642 | |
98418dba | 6643 | fi |
ba4481b5 | 6644 | |
98418dba | 6645 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 6646 | |
c0d27fcc | 6647 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6648 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 6649 | _ACEOF |
ba4481b5 | 6650 | |
ba4481b5 | 6651 | else |
c0d27fcc | 6652 | echo "$as_me:$LINENO: checking for tzname" >&5 |
98418dba CW |
6653 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
6654 | if test "${ac_cv_var_tzname+set}" = set; then | |
503d2be0 | 6655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6656 | else |
98418dba | 6657 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6658 | /* confdefs.h. */ |
6659 | _ACEOF | |
6660 | cat confdefs.h >>conftest.$ac_ext | |
6661 | cat >>conftest.$ac_ext <<_ACEOF | |
6662 | /* end confdefs.h. */ | |
98418dba CW |
6663 | #include <time.h> |
6664 | #ifndef tzname /* For SGI. */ | |
6665 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
6666 | #endif | |
6667 | ||
98418dba CW |
6668 | int |
6669 | main () | |
6670 | { | |
6671 | atoi(*tzname); | |
6672 | ; | |
6673 | return 0; | |
6674 | } | |
6675 | _ACEOF | |
6676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 6678 | (eval $ac_link) 2>conftest.er1 |
98418dba | 6679 | ac_status=$? |
35996d22 AS |
6680 | grep -v '^ *+' conftest.er1 >conftest.err |
6681 | rm -f conftest.er1 | |
6682 | cat conftest.err >&5 | |
c0d27fcc | 6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6684 | (exit $ac_status); } && |
35996d22 AS |
6685 | { ac_try='test -z "$ac_c_werror_flag" |
6686 | || test ! -s conftest.err' | |
6687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6688 | (eval $ac_try) 2>&5 | |
6689 | ac_status=$? | |
6690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6691 | (exit $ac_status); }; } && | |
6692 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 6693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6694 | (eval $ac_try) 2>&5 |
6695 | ac_status=$? | |
c0d27fcc | 6696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6697 | (exit $ac_status); }; }; then |
6698 | ac_cv_var_tzname=yes | |
6699 | else | |
6700 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6701 | sed 's/^/| /' conftest.$ac_ext >&5 |
6702 | ||
98418dba | 6703 | ac_cv_var_tzname=no |
ba4481b5 | 6704 | fi |
35996d22 AS |
6705 | rm -f conftest.err conftest.$ac_objext \ |
6706 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 6707 | fi |
c0d27fcc | 6708 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
98418dba CW |
6709 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
6710 | if test $ac_cv_var_tzname = yes; then | |
ba4481b5 | 6711 | |
c0d27fcc | 6712 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6713 | #define HAVE_TZNAME 1 |
c0d27fcc | 6714 | _ACEOF |
503d2be0 | 6715 | |
98418dba CW |
6716 | fi |
6717 | fi | |
503d2be0 | 6718 | |
c0d27fcc | 6719 | echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
b936fae4 AS |
6720 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
6721 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
98418dba CW |
6722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6723 | else | |
6724 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6725 | /* confdefs.h. */ |
6726 | _ACEOF | |
6727 | cat confdefs.h >>conftest.$ac_ext | |
6728 | cat >>conftest.$ac_ext <<_ACEOF | |
6729 | /* end confdefs.h. */ | |
98418dba | 6730 | #include <time.h> |
b936fae4 | 6731 | |
98418dba CW |
6732 | int |
6733 | main () | |
6734 | { | |
b936fae4 AS |
6735 | static struct tm ac_aggr; |
6736 | if (ac_aggr.tm_gmtoff) | |
6737 | return 0; | |
98418dba CW |
6738 | ; |
6739 | return 0; | |
6740 | } | |
6741 | _ACEOF | |
b936fae4 | 6742 | rm -f conftest.$ac_objext |
c0d27fcc | 6743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6744 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6745 | ac_status=$? |
35996d22 AS |
6746 | grep -v '^ *+' conftest.er1 >conftest.err |
6747 | rm -f conftest.er1 | |
6748 | cat conftest.err >&5 | |
c0d27fcc | 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6750 | (exit $ac_status); } && |
35996d22 AS |
6751 | { ac_try='test -z "$ac_c_werror_flag" |
6752 | || test ! -s conftest.err' | |
6753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6754 | (eval $ac_try) 2>&5 | |
6755 | ac_status=$? | |
6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6757 | (exit $ac_status); }; } && | |
6758 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6760 | (eval $ac_try) 2>&5 |
6761 | ac_status=$? | |
c0d27fcc | 6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6763 | (exit $ac_status); }; }; then |
b936fae4 | 6764 | ac_cv_member_struct_tm_tm_gmtoff=yes |
98418dba CW |
6765 | else |
6766 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6767 | sed 's/^/| /' conftest.$ac_ext >&5 |
6768 | ||
8799b3e4 | 6769 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6770 | /* confdefs.h. */ |
6771 | _ACEOF | |
6772 | cat confdefs.h >>conftest.$ac_ext | |
6773 | cat >>conftest.$ac_ext <<_ACEOF | |
6774 | /* end confdefs.h. */ | |
6bae0ccf DL |
6775 | #include <time.h> |
6776 | ||
8799b3e4 CW |
6777 | int |
6778 | main () | |
6779 | { | |
6bae0ccf DL |
6780 | static struct tm ac_aggr; |
6781 | if (sizeof ac_aggr.tm_gmtoff) | |
6782 | return 0; | |
8799b3e4 CW |
6783 | ; |
6784 | return 0; | |
6785 | } | |
6786 | _ACEOF | |
6bae0ccf | 6787 | rm -f conftest.$ac_objext |
c0d27fcc | 6788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6789 | (eval $ac_compile) 2>conftest.er1 |
8799b3e4 | 6790 | ac_status=$? |
35996d22 AS |
6791 | grep -v '^ *+' conftest.er1 >conftest.err |
6792 | rm -f conftest.er1 | |
6793 | cat conftest.err >&5 | |
c0d27fcc | 6794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6795 | (exit $ac_status); } && |
35996d22 AS |
6796 | { ac_try='test -z "$ac_c_werror_flag" |
6797 | || test ! -s conftest.err' | |
6798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6799 | (eval $ac_try) 2>&5 | |
6800 | ac_status=$? | |
6801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6802 | (exit $ac_status); }; } && | |
6803 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8799b3e4 CW |
6805 | (eval $ac_try) 2>&5 |
6806 | ac_status=$? | |
c0d27fcc | 6807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6808 | (exit $ac_status); }; }; then |
6bae0ccf | 6809 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
6810 | else |
6811 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6812 | sed 's/^/| /' conftest.$ac_ext >&5 |
6813 | ||
6bae0ccf | 6814 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 6815 | fi |
35996d22 | 6816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 6817 | fi |
35996d22 | 6818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8799b3e4 | 6819 | fi |
6bae0ccf DL |
6820 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
6821 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 | |
6822 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
6823 | ||
6824 | cat >>confdefs.h <<\_ACEOF | |
6825 | #define HAVE_TM_GMTOFF 1 | |
6826 | _ACEOF | |
6827 | ||
6828 | fi | |
6829 | ||
96f3a036 DL |
6830 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 |
6831 | echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6 | |
6832 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then | |
6833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6834 | else | |
6835 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6836 | /* confdefs.h. */ |
6837 | _ACEOF | |
6838 | cat confdefs.h >>conftest.$ac_ext | |
6839 | cat >>conftest.$ac_ext <<_ACEOF | |
6840 | /* end confdefs.h. */ | |
7862d3a8 AS |
6841 | $ac_includes_default |
6842 | #if HAVE_SYS_SOCKET_H | |
6843 | #include <sys/socket.h> | |
6844 | #endif | |
6845 | #if HAVE_NET_IF_H | |
96f3a036 | 6846 | #include <net/if.h> |
7862d3a8 | 6847 | #endif |
96f3a036 DL |
6848 | |
6849 | int | |
6850 | main () | |
6851 | { | |
6852 | static struct ifreq ac_aggr; | |
6853 | if (ac_aggr.ifr_flags) | |
6854 | return 0; | |
6855 | ; | |
6856 | return 0; | |
6857 | } | |
6858 | _ACEOF | |
6859 | rm -f conftest.$ac_objext | |
6860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6861 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 6862 | ac_status=$? |
35996d22 AS |
6863 | grep -v '^ *+' conftest.er1 >conftest.err |
6864 | rm -f conftest.er1 | |
6865 | cat conftest.err >&5 | |
96f3a036 DL |
6866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6867 | (exit $ac_status); } && | |
35996d22 AS |
6868 | { ac_try='test -z "$ac_c_werror_flag" |
6869 | || test ! -s conftest.err' | |
6870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6871 | (eval $ac_try) 2>&5 | |
6872 | ac_status=$? | |
6873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6874 | (exit $ac_status); }; } && | |
6875 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
6876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6877 | (eval $ac_try) 2>&5 | |
6878 | ac_status=$? | |
6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6880 | (exit $ac_status); }; }; then | |
6881 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
6882 | else | |
6883 | echo "$as_me: failed program was:" >&5 | |
6884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6885 | ||
6886 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6887 | /* confdefs.h. */ |
6888 | _ACEOF | |
6889 | cat confdefs.h >>conftest.$ac_ext | |
6890 | cat >>conftest.$ac_ext <<_ACEOF | |
6891 | /* end confdefs.h. */ | |
7862d3a8 AS |
6892 | $ac_includes_default |
6893 | #if HAVE_SYS_SOCKET_H | |
6894 | #include <sys/socket.h> | |
6895 | #endif | |
6896 | #if HAVE_NET_IF_H | |
96f3a036 | 6897 | #include <net/if.h> |
7862d3a8 | 6898 | #endif |
96f3a036 DL |
6899 | |
6900 | int | |
6901 | main () | |
6902 | { | |
6903 | static struct ifreq ac_aggr; | |
6904 | if (sizeof ac_aggr.ifr_flags) | |
6905 | return 0; | |
6906 | ; | |
6907 | return 0; | |
6908 | } | |
6909 | _ACEOF | |
6910 | rm -f conftest.$ac_objext | |
6911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6912 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 6913 | ac_status=$? |
35996d22 AS |
6914 | grep -v '^ *+' conftest.er1 >conftest.err |
6915 | rm -f conftest.er1 | |
6916 | cat conftest.err >&5 | |
96f3a036 DL |
6917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6918 | (exit $ac_status); } && | |
35996d22 AS |
6919 | { ac_try='test -z "$ac_c_werror_flag" |
6920 | || test ! -s conftest.err' | |
6921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6922 | (eval $ac_try) 2>&5 | |
6923 | ac_status=$? | |
6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6925 | (exit $ac_status); }; } && | |
6926 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
6927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6928 | (eval $ac_try) 2>&5 | |
6929 | ac_status=$? | |
6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6931 | (exit $ac_status); }; }; then | |
6932 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
6933 | else | |
6934 | echo "$as_me: failed program was:" >&5 | |
6935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6936 | ||
6937 | ac_cv_member_struct_ifreq_ifr_flags=no | |
6938 | fi | |
35996d22 | 6939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 6940 | fi |
35996d22 | 6941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
6942 | fi |
6943 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 | |
6944 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6 | |
6945 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then | |
6946 | ||
6947 | cat >>confdefs.h <<_ACEOF | |
6948 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
6949 | _ACEOF | |
6950 | ||
6951 | ||
6952 | fi | |
6953 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 | |
6954 | echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6 | |
6955 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then | |
6956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6957 | else | |
6958 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6959 | /* confdefs.h. */ |
6960 | _ACEOF | |
6961 | cat confdefs.h >>conftest.$ac_ext | |
6962 | cat >>conftest.$ac_ext <<_ACEOF | |
6963 | /* end confdefs.h. */ | |
7862d3a8 AS |
6964 | $ac_includes_default |
6965 | #if HAVE_SYS_SOCKET_H | |
6966 | #include <sys/socket.h> | |
6967 | #endif | |
6968 | #if HAVE_NET_IF_H | |
96f3a036 | 6969 | #include <net/if.h> |
7862d3a8 | 6970 | #endif |
96f3a036 DL |
6971 | |
6972 | int | |
6973 | main () | |
6974 | { | |
6975 | static struct ifreq ac_aggr; | |
6976 | if (ac_aggr.ifr_hwaddr) | |
6977 | return 0; | |
6978 | ; | |
6979 | return 0; | |
6980 | } | |
6981 | _ACEOF | |
6982 | rm -f conftest.$ac_objext | |
6983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6984 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 6985 | ac_status=$? |
35996d22 AS |
6986 | grep -v '^ *+' conftest.er1 >conftest.err |
6987 | rm -f conftest.er1 | |
6988 | cat conftest.err >&5 | |
96f3a036 DL |
6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6990 | (exit $ac_status); } && | |
35996d22 AS |
6991 | { ac_try='test -z "$ac_c_werror_flag" |
6992 | || test ! -s conftest.err' | |
6993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6994 | (eval $ac_try) 2>&5 | |
6995 | ac_status=$? | |
6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6997 | (exit $ac_status); }; } && | |
6998 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
6999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7000 | (eval $ac_try) 2>&5 | |
7001 | ac_status=$? | |
7002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7003 | (exit $ac_status); }; }; then | |
7004 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
7005 | else | |
7006 | echo "$as_me: failed program was:" >&5 | |
7007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7008 | ||
7009 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7010 | /* confdefs.h. */ |
7011 | _ACEOF | |
7012 | cat confdefs.h >>conftest.$ac_ext | |
7013 | cat >>conftest.$ac_ext <<_ACEOF | |
7014 | /* end confdefs.h. */ | |
7862d3a8 AS |
7015 | $ac_includes_default |
7016 | #if HAVE_SYS_SOCKET_H | |
7017 | #include <sys/socket.h> | |
7018 | #endif | |
7019 | #if HAVE_NET_IF_H | |
96f3a036 | 7020 | #include <net/if.h> |
7862d3a8 | 7021 | #endif |
96f3a036 DL |
7022 | |
7023 | int | |
7024 | main () | |
7025 | { | |
7026 | static struct ifreq ac_aggr; | |
7027 | if (sizeof ac_aggr.ifr_hwaddr) | |
7028 | return 0; | |
7029 | ; | |
7030 | return 0; | |
7031 | } | |
7032 | _ACEOF | |
7033 | rm -f conftest.$ac_objext | |
7034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7035 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7036 | ac_status=$? |
35996d22 AS |
7037 | grep -v '^ *+' conftest.er1 >conftest.err |
7038 | rm -f conftest.er1 | |
7039 | cat conftest.err >&5 | |
96f3a036 DL |
7040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7041 | (exit $ac_status); } && | |
35996d22 AS |
7042 | { ac_try='test -z "$ac_c_werror_flag" |
7043 | || test ! -s conftest.err' | |
7044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7045 | (eval $ac_try) 2>&5 | |
7046 | ac_status=$? | |
7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7048 | (exit $ac_status); }; } && | |
7049 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7051 | (eval $ac_try) 2>&5 | |
7052 | ac_status=$? | |
7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7054 | (exit $ac_status); }; }; then | |
7055 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
7056 | else | |
7057 | echo "$as_me: failed program was:" >&5 | |
7058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7059 | ||
7060 | ac_cv_member_struct_ifreq_ifr_hwaddr=no | |
7061 | fi | |
35996d22 | 7062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7063 | fi |
35996d22 | 7064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7065 | fi |
7066 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 | |
7067 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6 | |
7068 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then | |
7069 | ||
7070 | cat >>confdefs.h <<_ACEOF | |
7071 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
7072 | _ACEOF | |
7073 | ||
7074 | ||
7075 | fi | |
7076 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 | |
7077 | echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6 | |
7078 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then | |
7079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7080 | else | |
7081 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7082 | /* confdefs.h. */ |
7083 | _ACEOF | |
7084 | cat confdefs.h >>conftest.$ac_ext | |
7085 | cat >>conftest.$ac_ext <<_ACEOF | |
7086 | /* end confdefs.h. */ | |
7862d3a8 AS |
7087 | $ac_includes_default |
7088 | #if HAVE_SYS_SOCKET_H | |
7089 | #include <sys/socket.h> | |
7090 | #endif | |
7091 | #if HAVE_NET_IF_H | |
96f3a036 | 7092 | #include <net/if.h> |
7862d3a8 | 7093 | #endif |
96f3a036 DL |
7094 | |
7095 | int | |
7096 | main () | |
7097 | { | |
7098 | static struct ifreq ac_aggr; | |
7099 | if (ac_aggr.ifr_netmask) | |
7100 | return 0; | |
7101 | ; | |
7102 | return 0; | |
7103 | } | |
7104 | _ACEOF | |
7105 | rm -f conftest.$ac_objext | |
7106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7107 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7108 | ac_status=$? |
35996d22 AS |
7109 | grep -v '^ *+' conftest.er1 >conftest.err |
7110 | rm -f conftest.er1 | |
7111 | cat conftest.err >&5 | |
96f3a036 DL |
7112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7113 | (exit $ac_status); } && | |
35996d22 AS |
7114 | { ac_try='test -z "$ac_c_werror_flag" |
7115 | || test ! -s conftest.err' | |
7116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117 | (eval $ac_try) 2>&5 | |
7118 | ac_status=$? | |
7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7120 | (exit $ac_status); }; } && | |
7121 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7123 | (eval $ac_try) 2>&5 | |
7124 | ac_status=$? | |
7125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7126 | (exit $ac_status); }; }; then | |
7127 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
7128 | else | |
7129 | echo "$as_me: failed program was:" >&5 | |
7130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7131 | ||
7132 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7133 | /* confdefs.h. */ |
7134 | _ACEOF | |
7135 | cat confdefs.h >>conftest.$ac_ext | |
7136 | cat >>conftest.$ac_ext <<_ACEOF | |
7137 | /* end confdefs.h. */ | |
7862d3a8 AS |
7138 | $ac_includes_default |
7139 | #if HAVE_SYS_SOCKET_H | |
7140 | #include <sys/socket.h> | |
7141 | #endif | |
7142 | #if HAVE_NET_IF_H | |
96f3a036 | 7143 | #include <net/if.h> |
7862d3a8 | 7144 | #endif |
96f3a036 DL |
7145 | |
7146 | int | |
7147 | main () | |
7148 | { | |
7149 | static struct ifreq ac_aggr; | |
7150 | if (sizeof ac_aggr.ifr_netmask) | |
7151 | return 0; | |
7152 | ; | |
7153 | return 0; | |
7154 | } | |
7155 | _ACEOF | |
7156 | rm -f conftest.$ac_objext | |
7157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7158 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7159 | ac_status=$? |
35996d22 AS |
7160 | grep -v '^ *+' conftest.er1 >conftest.err |
7161 | rm -f conftest.er1 | |
7162 | cat conftest.err >&5 | |
96f3a036 DL |
7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7164 | (exit $ac_status); } && | |
35996d22 AS |
7165 | { ac_try='test -z "$ac_c_werror_flag" |
7166 | || test ! -s conftest.err' | |
7167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7168 | (eval $ac_try) 2>&5 | |
7169 | ac_status=$? | |
7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7171 | (exit $ac_status); }; } && | |
7172 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7174 | (eval $ac_try) 2>&5 | |
7175 | ac_status=$? | |
7176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7177 | (exit $ac_status); }; }; then | |
7178 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
7179 | else | |
7180 | echo "$as_me: failed program was:" >&5 | |
7181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7182 | ||
7183 | ac_cv_member_struct_ifreq_ifr_netmask=no | |
7184 | fi | |
35996d22 | 7185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7186 | fi |
35996d22 | 7187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7188 | fi |
7189 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 | |
7190 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6 | |
7191 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then | |
7192 | ||
7193 | cat >>confdefs.h <<_ACEOF | |
7194 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
7195 | _ACEOF | |
7196 | ||
7197 | ||
7198 | fi | |
7199 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 | |
7200 | echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6 | |
7201 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then | |
7202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7203 | else | |
7204 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7205 | /* confdefs.h. */ |
7206 | _ACEOF | |
7207 | cat confdefs.h >>conftest.$ac_ext | |
7208 | cat >>conftest.$ac_ext <<_ACEOF | |
7209 | /* end confdefs.h. */ | |
7862d3a8 AS |
7210 | $ac_includes_default |
7211 | #if HAVE_SYS_SOCKET_H | |
7212 | #include <sys/socket.h> | |
7213 | #endif | |
7214 | #if HAVE_NET_IF_H | |
96f3a036 | 7215 | #include <net/if.h> |
7862d3a8 | 7216 | #endif |
96f3a036 DL |
7217 | |
7218 | int | |
7219 | main () | |
7220 | { | |
7221 | static struct ifreq ac_aggr; | |
7222 | if (ac_aggr.ifr_broadaddr) | |
7223 | return 0; | |
7224 | ; | |
7225 | return 0; | |
7226 | } | |
7227 | _ACEOF | |
7228 | rm -f conftest.$ac_objext | |
7229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7230 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7231 | ac_status=$? |
35996d22 AS |
7232 | grep -v '^ *+' conftest.er1 >conftest.err |
7233 | rm -f conftest.er1 | |
7234 | cat conftest.err >&5 | |
96f3a036 DL |
7235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7236 | (exit $ac_status); } && | |
35996d22 AS |
7237 | { ac_try='test -z "$ac_c_werror_flag" |
7238 | || test ! -s conftest.err' | |
7239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7240 | (eval $ac_try) 2>&5 | |
7241 | ac_status=$? | |
7242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7243 | (exit $ac_status); }; } && | |
7244 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7246 | (eval $ac_try) 2>&5 | |
7247 | ac_status=$? | |
7248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7249 | (exit $ac_status); }; }; then | |
7250 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
7251 | else | |
7252 | echo "$as_me: failed program was:" >&5 | |
7253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7254 | ||
7255 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7256 | /* confdefs.h. */ |
7257 | _ACEOF | |
7258 | cat confdefs.h >>conftest.$ac_ext | |
7259 | cat >>conftest.$ac_ext <<_ACEOF | |
7260 | /* end confdefs.h. */ | |
7862d3a8 AS |
7261 | $ac_includes_default |
7262 | #if HAVE_SYS_SOCKET_H | |
7263 | #include <sys/socket.h> | |
7264 | #endif | |
7265 | #if HAVE_NET_IF_H | |
96f3a036 | 7266 | #include <net/if.h> |
7862d3a8 | 7267 | #endif |
96f3a036 DL |
7268 | |
7269 | int | |
7270 | main () | |
7271 | { | |
7272 | static struct ifreq ac_aggr; | |
7273 | if (sizeof ac_aggr.ifr_broadaddr) | |
7274 | return 0; | |
7275 | ; | |
7276 | return 0; | |
7277 | } | |
7278 | _ACEOF | |
7279 | rm -f conftest.$ac_objext | |
7280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7281 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7282 | ac_status=$? |
35996d22 AS |
7283 | grep -v '^ *+' conftest.er1 >conftest.err |
7284 | rm -f conftest.er1 | |
7285 | cat conftest.err >&5 | |
96f3a036 DL |
7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7287 | (exit $ac_status); } && | |
35996d22 AS |
7288 | { ac_try='test -z "$ac_c_werror_flag" |
7289 | || test ! -s conftest.err' | |
7290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7291 | (eval $ac_try) 2>&5 | |
7292 | ac_status=$? | |
7293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7294 | (exit $ac_status); }; } && | |
7295 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7297 | (eval $ac_try) 2>&5 | |
7298 | ac_status=$? | |
7299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7300 | (exit $ac_status); }; }; then | |
7301 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
7302 | else | |
7303 | echo "$as_me: failed program was:" >&5 | |
7304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7305 | ||
7306 | ac_cv_member_struct_ifreq_ifr_broadaddr=no | |
7307 | fi | |
35996d22 | 7308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7309 | fi |
35996d22 | 7310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7311 | fi |
7312 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 | |
7313 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6 | |
7314 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then | |
7315 | ||
7316 | cat >>confdefs.h <<_ACEOF | |
7317 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
7318 | _ACEOF | |
7319 | ||
7320 | ||
7321 | fi | |
7322 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 | |
7323 | echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6 | |
7324 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then | |
7325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7326 | else | |
7327 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7328 | /* confdefs.h. */ |
7329 | _ACEOF | |
7330 | cat confdefs.h >>conftest.$ac_ext | |
7331 | cat >>conftest.$ac_ext <<_ACEOF | |
7332 | /* end confdefs.h. */ | |
7862d3a8 AS |
7333 | $ac_includes_default |
7334 | #if HAVE_SYS_SOCKET_H | |
7335 | #include <sys/socket.h> | |
7336 | #endif | |
7337 | #if HAVE_NET_IF_H | |
96f3a036 | 7338 | #include <net/if.h> |
7862d3a8 | 7339 | #endif |
96f3a036 DL |
7340 | |
7341 | int | |
7342 | main () | |
7343 | { | |
7344 | static struct ifreq ac_aggr; | |
7345 | if (ac_aggr.ifr_addr) | |
7346 | return 0; | |
7347 | ; | |
7348 | return 0; | |
7349 | } | |
7350 | _ACEOF | |
7351 | rm -f conftest.$ac_objext | |
7352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7353 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7354 | ac_status=$? |
35996d22 AS |
7355 | grep -v '^ *+' conftest.er1 >conftest.err |
7356 | rm -f conftest.er1 | |
7357 | cat conftest.err >&5 | |
96f3a036 DL |
7358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7359 | (exit $ac_status); } && | |
35996d22 AS |
7360 | { ac_try='test -z "$ac_c_werror_flag" |
7361 | || test ! -s conftest.err' | |
7362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7363 | (eval $ac_try) 2>&5 | |
7364 | ac_status=$? | |
7365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7366 | (exit $ac_status); }; } && | |
7367 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7369 | (eval $ac_try) 2>&5 | |
7370 | ac_status=$? | |
7371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7372 | (exit $ac_status); }; }; then | |
7373 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
7374 | else | |
7375 | echo "$as_me: failed program was:" >&5 | |
7376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7377 | ||
7378 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7379 | /* confdefs.h. */ |
7380 | _ACEOF | |
7381 | cat confdefs.h >>conftest.$ac_ext | |
7382 | cat >>conftest.$ac_ext <<_ACEOF | |
7383 | /* end confdefs.h. */ | |
7862d3a8 AS |
7384 | $ac_includes_default |
7385 | #if HAVE_SYS_SOCKET_H | |
7386 | #include <sys/socket.h> | |
7387 | #endif | |
7388 | #if HAVE_NET_IF_H | |
96f3a036 | 7389 | #include <net/if.h> |
7862d3a8 | 7390 | #endif |
96f3a036 DL |
7391 | |
7392 | int | |
7393 | main () | |
7394 | { | |
7395 | static struct ifreq ac_aggr; | |
7396 | if (sizeof ac_aggr.ifr_addr) | |
7397 | return 0; | |
7398 | ; | |
7399 | return 0; | |
7400 | } | |
7401 | _ACEOF | |
7402 | rm -f conftest.$ac_objext | |
7403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7404 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7405 | ac_status=$? |
35996d22 AS |
7406 | grep -v '^ *+' conftest.er1 >conftest.err |
7407 | rm -f conftest.er1 | |
7408 | cat conftest.err >&5 | |
96f3a036 DL |
7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7410 | (exit $ac_status); } && | |
35996d22 AS |
7411 | { ac_try='test -z "$ac_c_werror_flag" |
7412 | || test ! -s conftest.err' | |
7413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7414 | (eval $ac_try) 2>&5 | |
7415 | ac_status=$? | |
7416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7417 | (exit $ac_status); }; } && | |
7418 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7420 | (eval $ac_try) 2>&5 | |
7421 | ac_status=$? | |
7422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7423 | (exit $ac_status); }; }; then | |
7424 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
7425 | else | |
7426 | echo "$as_me: failed program was:" >&5 | |
7427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7428 | ||
7429 | ac_cv_member_struct_ifreq_ifr_addr=no | |
7430 | fi | |
35996d22 | 7431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7432 | fi |
35996d22 | 7433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7434 | fi |
7435 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 | |
7436 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6 | |
7437 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then | |
7438 | ||
7439 | cat >>confdefs.h <<_ACEOF | |
7440 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
7441 | _ACEOF | |
7442 | ||
7443 | ||
7444 | fi | |
7445 | ||
8799b3e4 | 7446 | |
8799b3e4 | 7447 | |
c0d27fcc | 7448 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
98418dba CW |
7449 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
7450 | if test "$ac_cv_prog_cc_stdc" != no; then | |
c0d27fcc | 7451 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7452 | echo "${ECHO_T}yes" >&6 |
7453 | ||
c0d27fcc | 7454 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7455 | #define PROTOTYPES 1 |
c0d27fcc MR |
7456 | _ACEOF |
7457 | ||
7458 | ||
7459 | cat >>confdefs.h <<\_ACEOF | |
7460 | #define __PROTOTYPES 1 | |
7461 | _ACEOF | |
98418dba CW |
7462 | |
7463 | else | |
c0d27fcc | 7464 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7465 | echo "${ECHO_T}no" >&6 |
7466 | fi | |
7467 | ||
c0d27fcc | 7468 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
98418dba CW |
7469 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
7470 | if test "${ac_cv_c_volatile+set}" = set; then | |
7471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7472 | else | |
7473 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7474 | /* confdefs.h. */ |
7475 | _ACEOF | |
7476 | cat confdefs.h >>conftest.$ac_ext | |
7477 | cat >>conftest.$ac_ext <<_ACEOF | |
7478 | /* end confdefs.h. */ | |
98418dba | 7479 | |
98418dba CW |
7480 | int |
7481 | main () | |
7482 | { | |
7483 | ||
7484 | volatile int x; | |
7485 | int * volatile y; | |
7486 | ; | |
7487 | return 0; | |
7488 | } | |
7489 | _ACEOF | |
7490 | rm -f conftest.$ac_objext | |
c0d27fcc | 7491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7492 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7493 | ac_status=$? |
35996d22 AS |
7494 | grep -v '^ *+' conftest.er1 >conftest.err |
7495 | rm -f conftest.er1 | |
7496 | cat conftest.err >&5 | |
c0d27fcc | 7497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7498 | (exit $ac_status); } && |
35996d22 AS |
7499 | { ac_try='test -z "$ac_c_werror_flag" |
7500 | || test ! -s conftest.err' | |
7501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7502 | (eval $ac_try) 2>&5 | |
7503 | ac_status=$? | |
7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7505 | (exit $ac_status); }; } && | |
7506 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7508 | (eval $ac_try) 2>&5 |
7509 | ac_status=$? | |
c0d27fcc | 7510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7511 | (exit $ac_status); }; }; then |
7512 | ac_cv_c_volatile=yes | |
7513 | else | |
7514 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7515 | sed 's/^/| /' conftest.$ac_ext >&5 |
7516 | ||
98418dba CW |
7517 | ac_cv_c_volatile=no |
7518 | fi | |
35996d22 | 7519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7520 | fi |
c0d27fcc | 7521 | echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
98418dba CW |
7522 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
7523 | if test $ac_cv_c_volatile = no; then | |
7524 | ||
c0d27fcc | 7525 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7526 | #define volatile |
c0d27fcc | 7527 | _ACEOF |
98418dba CW |
7528 | |
7529 | fi | |
7530 | ||
c0d27fcc | 7531 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
98418dba CW |
7532 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
7533 | if test "${ac_cv_c_const+set}" = set; then | |
7534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7535 | else | |
7536 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7537 | /* confdefs.h. */ |
7538 | _ACEOF | |
7539 | cat confdefs.h >>conftest.$ac_ext | |
7540 | cat >>conftest.$ac_ext <<_ACEOF | |
7541 | /* end confdefs.h. */ | |
98418dba | 7542 | |
98418dba CW |
7543 | int |
7544 | main () | |
7545 | { | |
7546 | /* FIXME: Include the comments suggested by Paul. */ | |
7547 | #ifndef __cplusplus | |
7548 | /* Ultrix mips cc rejects this. */ | |
7549 | typedef int charset[2]; | |
7550 | const charset x; | |
7551 | /* SunOS 4.1.1 cc rejects this. */ | |
7552 | char const *const *ccp; | |
7553 | char **p; | |
7554 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
7555 | struct point {int x, y;}; | |
7556 | static struct point const zero = {0,0}; | |
7557 | /* AIX XL C 1.02.0.0 rejects this. | |
7558 | It does not let you subtract one const X* pointer from another in | |
7559 | an arm of an if-expression whose if-part is not a constant | |
7560 | expression */ | |
7561 | const char *g = "string"; | |
7562 | ccp = &g + (g ? g-g : 0); | |
7563 | /* HPUX 7.0 cc rejects these. */ | |
7564 | ++ccp; | |
7565 | p = (char**) ccp; | |
7566 | ccp = (char const *const *) p; | |
7567 | { /* SCO 3.2v4 cc rejects this. */ | |
7568 | char *t; | |
7569 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
7570 | ||
7571 | *t++ = 0; | |
7572 | } | |
7573 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
7574 | int x[] = {25, 17}; | |
7575 | const int *foo = &x[0]; | |
7576 | ++foo; | |
7577 | } | |
7578 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
7579 | typedef const int *iptr; | |
7580 | iptr p = 0; | |
7581 | ++p; | |
7582 | } | |
7583 | { /* AIX XL C 1.02.0.0 rejects this saying | |
7584 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
7585 | struct s { int j; const int *ap[3]; }; | |
7586 | struct s *b; b->j = 5; | |
7587 | } | |
7588 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
7589 | const int foo = 10; | |
7590 | } | |
7591 | #endif | |
7592 | ||
7593 | ; | |
7594 | return 0; | |
7595 | } | |
7596 | _ACEOF | |
7597 | rm -f conftest.$ac_objext | |
c0d27fcc | 7598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7599 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7600 | ac_status=$? |
35996d22 AS |
7601 | grep -v '^ *+' conftest.er1 >conftest.err |
7602 | rm -f conftest.er1 | |
7603 | cat conftest.err >&5 | |
c0d27fcc | 7604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7605 | (exit $ac_status); } && |
35996d22 AS |
7606 | { ac_try='test -z "$ac_c_werror_flag" |
7607 | || test ! -s conftest.err' | |
7608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7609 | (eval $ac_try) 2>&5 | |
7610 | ac_status=$? | |
7611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7612 | (exit $ac_status); }; } && | |
7613 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7615 | (eval $ac_try) 2>&5 |
7616 | ac_status=$? | |
c0d27fcc | 7617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7618 | (exit $ac_status); }; }; then |
7619 | ac_cv_c_const=yes | |
7620 | else | |
7621 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7622 | sed 's/^/| /' conftest.$ac_ext >&5 |
7623 | ||
98418dba CW |
7624 | ac_cv_c_const=no |
7625 | fi | |
35996d22 | 7626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7627 | fi |
c0d27fcc | 7628 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
98418dba CW |
7629 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
7630 | if test $ac_cv_c_const = no; then | |
7631 | ||
c0d27fcc | 7632 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7633 | #define const |
c0d27fcc | 7634 | _ACEOF |
98418dba CW |
7635 | |
7636 | fi | |
7637 | ||
c0d27fcc | 7638 | echo "$as_me:$LINENO: checking for void * support" >&5 |
98418dba CW |
7639 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
7640 | if test "${emacs_cv_void_star+set}" = set; then | |
7641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7642 | else | |
7643 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7644 | /* confdefs.h. */ |
7645 | _ACEOF | |
7646 | cat confdefs.h >>conftest.$ac_ext | |
7647 | cat >>conftest.$ac_ext <<_ACEOF | |
7648 | /* end confdefs.h. */ | |
98418dba | 7649 | |
98418dba CW |
7650 | int |
7651 | main () | |
7652 | { | |
7653 | void * foo; | |
7654 | ; | |
7655 | return 0; | |
7656 | } | |
7657 | _ACEOF | |
7658 | rm -f conftest.$ac_objext | |
c0d27fcc | 7659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7660 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7661 | ac_status=$? |
35996d22 AS |
7662 | grep -v '^ *+' conftest.er1 >conftest.err |
7663 | rm -f conftest.er1 | |
7664 | cat conftest.err >&5 | |
c0d27fcc | 7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7666 | (exit $ac_status); } && |
35996d22 AS |
7667 | { ac_try='test -z "$ac_c_werror_flag" |
7668 | || test ! -s conftest.err' | |
7669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7670 | (eval $ac_try) 2>&5 | |
7671 | ac_status=$? | |
7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7673 | (exit $ac_status); }; } && | |
7674 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7676 | (eval $ac_try) 2>&5 |
7677 | ac_status=$? | |
c0d27fcc | 7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7679 | (exit $ac_status); }; }; then |
7680 | emacs_cv_void_star=yes | |
7681 | else | |
7682 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7683 | sed 's/^/| /' conftest.$ac_ext >&5 |
7684 | ||
98418dba CW |
7685 | emacs_cv_void_star=no |
7686 | fi | |
35996d22 | 7687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7688 | fi |
c0d27fcc | 7689 | echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
98418dba CW |
7690 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
7691 | if test $emacs_cv_void_star = yes; then | |
c0d27fcc | 7692 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7693 | #define POINTER_TYPE void |
c0d27fcc | 7694 | _ACEOF |
98418dba CW |
7695 | |
7696 | else | |
c0d27fcc | 7697 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7698 | #define POINTER_TYPE char |
c0d27fcc | 7699 | _ACEOF |
98418dba CW |
7700 | |
7701 | fi | |
7702 | ||
c0d27fcc | 7703 | |
cd958eb3 | 7704 | |
19650fd6 AS |
7705 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
7706 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
35996d22 | 7707 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
98418dba CW |
7708 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
7709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7710 | else | |
c0d27fcc | 7711 | cat >conftest.make <<\_ACEOF |
98418dba | 7712 | all: |
19650fd6 | 7713 | @echo 'ac_maketemp="$(MAKE)"' |
c0d27fcc | 7714 | _ACEOF |
98418dba CW |
7715 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7716 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
7717 | if test -n "$ac_maketemp"; then | |
7718 | eval ac_cv_prog_make_${ac_make}_set=yes | |
7719 | else | |
7720 | eval ac_cv_prog_make_${ac_make}_set=no | |
7721 | fi | |
7722 | rm -f conftest.make | |
7723 | fi | |
7724 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
c0d27fcc | 7725 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7726 | echo "${ECHO_T}yes" >&6 |
7727 | SET_MAKE= | |
7728 | else | |
c0d27fcc | 7729 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7730 | echo "${ECHO_T}no" >&6 |
7731 | SET_MAKE="MAKE=${MAKE-make}" | |
7732 | fi | |
7733 | ||
c0d27fcc MR |
7734 | |
7735 | echo "$as_me:$LINENO: checking for long file names" >&5 | |
98418dba CW |
7736 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
7737 | if test "${ac_cv_sys_long_file_names+set}" = set; then | |
7738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7739 | else | |
7740 | ac_cv_sys_long_file_names=yes | |
7741 | # Test for long file names in all the places we know might matter: | |
7742 | # . the current directory, where building will happen | |
7743 | # $prefix/lib where we will be installing things | |
7744 | # $exec_prefix/lib likewise | |
7745 | # eval it to expand exec_prefix. | |
7746 | # $TMPDIR if set, where it might want to write temporary files | |
7747 | # if $TMPDIR is not set: | |
7748 | # /tmp where it might want to write temporary files | |
7749 | # /var/tmp likewise | |
7750 | # /usr/tmp likewise | |
7751 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
7752 | ac_tmpdirs=$TMPDIR | |
7753 | else | |
7754 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
7755 | fi | |
7756 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
7757 | test -d $ac_dir || continue | |
7758 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
7759 | ac_xdir=$ac_dir/cf$$ | |
7760 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
7761 | ac_tf1=$ac_xdir/conftest9012345 | |
7762 | ac_tf2=$ac_xdir/conftest9012346 | |
7763 | (echo 1 >$ac_tf1) 2>/dev/null | |
7764 | (echo 2 >$ac_tf2) 2>/dev/null | |
7765 | ac_val=`cat $ac_tf1 2>/dev/null` | |
7766 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
7767 | ac_cv_sys_long_file_names=no | |
7768 | rm -rf $ac_xdir 2>/dev/null | |
7769 | break | |
7770 | fi | |
7771 | rm -rf $ac_xdir 2>/dev/null | |
7772 | done | |
7773 | fi | |
c0d27fcc | 7774 | echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
98418dba CW |
7775 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
7776 | if test $ac_cv_sys_long_file_names = yes; then | |
7777 | ||
c0d27fcc | 7778 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7779 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 7780 | _ACEOF |
98418dba CW |
7781 | |
7782 | fi | |
7783 | ||
c0d27fcc | 7784 | |
98418dba CW |
7785 | #### Choose a window system. |
7786 | ||
c0d27fcc | 7787 | echo "$as_me:$LINENO: checking for X" >&5 |
98418dba CW |
7788 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
7789 | ||
c0d27fcc | 7790 | |
98418dba CW |
7791 | # Check whether --with-x or --without-x was given. |
7792 | if test "${with_x+set}" = set; then | |
7793 | withval="$with_x" | |
7794 | ||
7795 | fi; | |
7796 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
7797 | if test "x$with_x" = xno; then | |
7798 | # The user explicitly disabled X. | |
7799 | have_x=disabled | |
7800 | else | |
7801 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7802 | # Both variables are already set. | |
7803 | have_x=yes | |
7804 | else | |
7805 | if test "${ac_cv_have_x+set}" = set; then | |
7806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7807 | else | |
7808 | # One or both of the vars are not set, and there is no cached value. | |
7809 | ac_x_includes=no ac_x_libraries=no | |
7810 | rm -fr conftest.dir | |
7811 | if mkdir conftest.dir; then | |
7812 | cd conftest.dir | |
7813 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
c0d27fcc | 7814 | cat >Imakefile <<'_ACEOF' |
98418dba CW |
7815 | acfindx: |
7816 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
c0d27fcc | 7817 | _ACEOF |
98418dba CW |
7818 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
7819 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7820 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7821 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
7822 | for ac_extension in a so sl; do | |
7823 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
35996d22 AS |
7824 | test -f $ac_im_libdir/libX11.$ac_extension; then |
7825 | ac_im_usrlibdir=$ac_im_libdir; break | |
98418dba CW |
7826 | fi |
7827 | done | |
7828 | # Screen out bogus values from the imake configuration. They are | |
7829 | # bogus both because they are the default anyway, and because | |
7830 | # using them would break gcc on systems where it needs fixed includes. | |
7831 | case $ac_im_incroot in | |
7832 | /usr/include) ;; | |
7833 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
7834 | esac | |
7835 | case $ac_im_usrlibdir in | |
7836 | /usr/lib | /lib) ;; | |
7837 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
7838 | esac | |
7839 | fi | |
7840 | cd .. | |
7841 | rm -fr conftest.dir | |
7842 | fi | |
7843 | ||
7844 | # Standard set of common directories for X headers. | |
7845 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7846 | ac_x_header_dirs=' | |
7847 | /usr/X11/include | |
7848 | /usr/X11R6/include | |
7849 | /usr/X11R5/include | |
7850 | /usr/X11R4/include | |
7851 | ||
7852 | /usr/include/X11 | |
7853 | /usr/include/X11R6 | |
7854 | /usr/include/X11R5 | |
7855 | /usr/include/X11R4 | |
7856 | ||
7857 | /usr/local/X11/include | |
7858 | /usr/local/X11R6/include | |
7859 | /usr/local/X11R5/include | |
7860 | /usr/local/X11R4/include | |
7861 | ||
7862 | /usr/local/include/X11 | |
7863 | /usr/local/include/X11R6 | |
7864 | /usr/local/include/X11R5 | |
7865 | /usr/local/include/X11R4 | |
7866 | ||
7867 | /usr/X386/include | |
7868 | /usr/x386/include | |
7869 | /usr/XFree86/include/X11 | |
7870 | ||
7871 | /usr/include | |
7872 | /usr/local/include | |
7873 | /usr/unsupported/include | |
7874 | /usr/athena/include | |
7875 | /usr/local/x11r5/include | |
7876 | /usr/lpp/Xamples/include | |
7877 | ||
7878 | /usr/openwin/include | |
7879 | /usr/openwin/share/include' | |
7880 | ||
7881 | if test "$ac_x_includes" = no; then | |
7882 | # Guess where to find include files, by looking for Intrinsic.h. | |
7883 | # First, try using that file with no special directory specified. | |
7884 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7885 | /* confdefs.h. */ |
7886 | _ACEOF | |
7887 | cat confdefs.h >>conftest.$ac_ext | |
7888 | cat >>conftest.$ac_ext <<_ACEOF | |
7889 | /* end confdefs.h. */ | |
98418dba CW |
7890 | #include <X11/Intrinsic.h> |
7891 | _ACEOF | |
c0d27fcc | 7892 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7893 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7894 | ac_status=$? | |
6bae0ccf | 7895 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
7896 | rm -f conftest.er1 |
7897 | cat conftest.err >&5 | |
c0d27fcc | 7898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7899 | (exit $ac_status); } >/dev/null; then |
7900 | if test -s conftest.err; then | |
7901 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 7902 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
7903 | else |
7904 | ac_cpp_err= | |
7905 | fi | |
7906 | else | |
7907 | ac_cpp_err=yes | |
7908 | fi | |
7909 | if test -z "$ac_cpp_err"; then | |
7910 | # We can compile using X headers with no special include directory. | |
7911 | ac_x_includes= | |
7912 | else | |
7913 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7914 | sed 's/^/| /' conftest.$ac_ext >&5 |
7915 | ||
98418dba CW |
7916 | for ac_dir in $ac_x_header_dirs; do |
7917 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
7918 | ac_x_includes=$ac_dir | |
7919 | break | |
7920 | fi | |
7921 | done | |
7922 | fi | |
7923 | rm -f conftest.err conftest.$ac_ext | |
7924 | fi # $ac_x_includes = no | |
7925 | ||
7926 | if test "$ac_x_libraries" = no; then | |
7927 | # Check for the libraries. | |
7928 | # See if we find them without any special options. | |
7929 | # Don't add to $LIBS permanently. | |
7930 | ac_save_LIBS=$LIBS | |
7931 | LIBS="-lXt $LIBS" | |
7932 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7933 | /* confdefs.h. */ |
7934 | _ACEOF | |
7935 | cat confdefs.h >>conftest.$ac_ext | |
7936 | cat >>conftest.$ac_ext <<_ACEOF | |
7937 | /* end confdefs.h. */ | |
98418dba | 7938 | #include <X11/Intrinsic.h> |
98418dba CW |
7939 | int |
7940 | main () | |
7941 | { | |
7942 | XtMalloc (0) | |
7943 | ; | |
7944 | return 0; | |
7945 | } | |
7946 | _ACEOF | |
7947 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 7949 | (eval $ac_link) 2>conftest.er1 |
98418dba | 7950 | ac_status=$? |
35996d22 AS |
7951 | grep -v '^ *+' conftest.er1 >conftest.err |
7952 | rm -f conftest.er1 | |
7953 | cat conftest.err >&5 | |
c0d27fcc | 7954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7955 | (exit $ac_status); } && |
35996d22 AS |
7956 | { ac_try='test -z "$ac_c_werror_flag" |
7957 | || test ! -s conftest.err' | |
7958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7959 | (eval $ac_try) 2>&5 | |
7960 | ac_status=$? | |
7961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7962 | (exit $ac_status); }; } && | |
7963 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 7964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7965 | (eval $ac_try) 2>&5 |
7966 | ac_status=$? | |
c0d27fcc | 7967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7968 | (exit $ac_status); }; }; then |
7969 | LIBS=$ac_save_LIBS | |
7970 | # We can link X programs with no special library path. | |
7971 | ac_x_libraries= | |
7972 | else | |
7973 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7974 | sed 's/^/| /' conftest.$ac_ext >&5 |
7975 | ||
98418dba CW |
7976 | LIBS=$ac_save_LIBS |
7977 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
7978 | do | |
7979 | # Don't even attempt the hair of trying to link an X program! | |
7980 | for ac_extension in a so sl; do | |
7981 | if test -r $ac_dir/libXt.$ac_extension; then | |
7982 | ac_x_libraries=$ac_dir | |
7983 | break 2 | |
7984 | fi | |
7985 | done | |
7986 | done | |
7987 | fi | |
35996d22 AS |
7988 | rm -f conftest.err conftest.$ac_objext \ |
7989 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
7990 | fi # $ac_x_libraries = no |
7991 | ||
7992 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
7993 | # Didn't find X anywhere. Cache the known absence of X. | |
7994 | ac_cv_have_x="have_x=no" | |
7995 | else | |
7996 | # Record where we found X for the cache. | |
7997 | ac_cv_have_x="have_x=yes \ | |
35996d22 | 7998 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
98418dba CW |
7999 | fi |
8000 | fi | |
8001 | ||
8002 | fi | |
8003 | eval "$ac_cv_have_x" | |
8004 | fi # $with_x != no | |
8005 | ||
8006 | if test "$have_x" != yes; then | |
c0d27fcc | 8007 | echo "$as_me:$LINENO: result: $have_x" >&5 |
98418dba CW |
8008 | echo "${ECHO_T}$have_x" >&6 |
8009 | no_x=yes | |
8010 | else | |
8011 | # If each of the values was on the command line, it overrides each guess. | |
8012 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8013 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8014 | # Update the cache value to reflect the command line values. | |
8015 | ac_cv_have_x="have_x=yes \ | |
8016 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
c0d27fcc | 8017 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
98418dba CW |
8018 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
8019 | fi | |
8020 | ||
8021 | if test "$no_x" = yes; then | |
8022 | window_system=none | |
8023 | else | |
8024 | window_system=x11 | |
8025 | fi | |
8026 | ||
8027 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
8028 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
8029 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
8030 | x_default_search_path="" | |
8031 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
8032 | x_search_path="\ | |
8033 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
8034 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
8035 | ${x_library}/X11/%T/%N%C%S:\ | |
8036 | ${x_library}/X11/%L/%T/%N%S:\ | |
8037 | ${x_library}/X11/%l/%T/%N%S:\ | |
8038 | ${x_library}/X11/%T/%N%S" | |
8039 | if test x"${x_default_search_path}" = x; then | |
8040 | x_default_search_path=${x_search_path} | |
8041 | else | |
8042 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
8043 | fi | |
8044 | done | |
8045 | fi | |
8046 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
8047 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
8048 | fi | |
8049 | ||
8050 | if test x"${x_includes}" = x; then | |
8051 | bitmapdir=/usr/include/X11/bitmaps | |
8052 | else | |
8053 | # accumulate include directories that have X11 bitmap subdirectories | |
8054 | bmd_acc="dummyval" | |
8055 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
8056 | if test -d "${bmd}/X11/bitmaps"; then | |
8057 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
8058 | fi | |
8059 | if test -d "${bmd}/bitmaps"; then | |
8060 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
8061 | fi | |
8062 | done | |
8063 | if test ${bmd_acc} != "dummyval"; then | |
8064 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
8065 | fi | |
8066 | fi | |
8067 | ||
8068 | case "${window_system}" in | |
8069 | x11 ) | |
8070 | HAVE_X_WINDOWS=yes | |
8071 | HAVE_X11=yes | |
8072 | case "${with_x_toolkit}" in | |
8073 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
8074 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
488dd4c4 JD |
8075 | gtk ) with_gtk=yes |
8076 | USE_X_TOOLKIT=none ;; | |
98418dba CW |
8077 | no ) USE_X_TOOLKIT=none ;; |
8078 | * ) USE_X_TOOLKIT=maybe ;; | |
8079 | esac | |
8080 | ;; | |
8081 | none ) | |
8082 | HAVE_X_WINDOWS=no | |
8083 | HAVE_X11=no | |
8084 | USE_X_TOOLKIT=none | |
8085 | ;; | |
8086 | esac | |
8087 | ||
8088 | ### If we're using X11, we should use the X menu package. | |
8089 | HAVE_MENUS=no | |
8090 | case ${HAVE_X11} in | |
8091 | yes ) HAVE_MENUS=yes ;; | |
8092 | esac | |
8093 | ||
8094 | if test "${opsys}" = "hpux9"; then | |
8095 | case "${x_libraries}" in | |
8096 | *X11R4* ) | |
8097 | opsysfile="s/hpux9-x11r4.h" | |
8098 | ;; | |
8099 | esac | |
8100 | fi | |
8101 | ||
8102 | if test "${opsys}" = "hpux9shr"; then | |
8103 | case "${x_libraries}" in | |
8104 | *X11R4* ) | |
8105 | opsysfile="s/hpux9shxr4.h" | |
8106 | ;; | |
8107 | esac | |
8108 | fi | |
8109 | ||
8110 | ### Compute the unexec source name from the object name. | |
8111 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
8112 | ||
8113 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
8114 | # Assume not, until told otherwise. | |
8115 | GNU_MALLOC=yes | |
8116 | doug_lea_malloc=yes | |
c0d27fcc | 8117 | echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
98418dba CW |
8118 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
8119 | if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
8120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8121 | else | |
8122 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8123 | /* confdefs.h. */ |
8124 | _ACEOF | |
8125 | cat confdefs.h >>conftest.$ac_ext | |
8126 | cat >>conftest.$ac_ext <<_ACEOF | |
8127 | /* end confdefs.h. */ | |
35996d22 AS |
8128 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. |
8129 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8130 | #define malloc_get_state innocuous_malloc_get_state | |
8131 | ||
98418dba | 8132 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8133 | which can conflict with char malloc_get_state (); below. |
8134 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8135 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8136 | |
19650fd6 AS |
8137 | #ifdef __STDC__ |
8138 | # include <limits.h> | |
8139 | #else | |
8140 | # include <assert.h> | |
8141 | #endif | |
35996d22 AS |
8142 | |
8143 | #undef malloc_get_state | |
8144 | ||
98418dba CW |
8145 | /* Override any gcc2 internal prototype to avoid an error. */ |
8146 | #ifdef __cplusplus | |
8147 | extern "C" | |
19650fd6 | 8148 | { |
98418dba CW |
8149 | #endif |
8150 | /* We use char because int might match the return type of a gcc2 | |
8151 | builtin and then its argument prototype would still apply. */ | |
8152 | char malloc_get_state (); | |
98418dba CW |
8153 | /* The GNU C library defines this for functions which it implements |
8154 | to always fail with ENOSYS. Some functions are actually named | |
8155 | something starting with __ and the normal name is an alias. */ | |
8156 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
8157 | choke me | |
8158 | #else | |
19650fd6 AS |
8159 | char (*f) () = malloc_get_state; |
8160 | #endif | |
8161 | #ifdef __cplusplus | |
8162 | } | |
98418dba CW |
8163 | #endif |
8164 | ||
19650fd6 AS |
8165 | int |
8166 | main () | |
8167 | { | |
8168 | return f != malloc_get_state; | |
98418dba CW |
8169 | ; |
8170 | return 0; | |
8171 | } | |
8172 | _ACEOF | |
8173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8175 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8176 | ac_status=$? |
35996d22 AS |
8177 | grep -v '^ *+' conftest.er1 >conftest.err |
8178 | rm -f conftest.er1 | |
8179 | cat conftest.err >&5 | |
c0d27fcc | 8180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8181 | (exit $ac_status); } && |
35996d22 AS |
8182 | { ac_try='test -z "$ac_c_werror_flag" |
8183 | || test ! -s conftest.err' | |
8184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8185 | (eval $ac_try) 2>&5 | |
8186 | ac_status=$? | |
8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8188 | (exit $ac_status); }; } && | |
8189 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8191 | (eval $ac_try) 2>&5 |
8192 | ac_status=$? | |
c0d27fcc | 8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8194 | (exit $ac_status); }; }; then |
8195 | ac_cv_func_malloc_get_state=yes | |
8196 | else | |
8197 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8198 | sed 's/^/| /' conftest.$ac_ext >&5 |
8199 | ||
98418dba CW |
8200 | ac_cv_func_malloc_get_state=no |
8201 | fi | |
35996d22 AS |
8202 | rm -f conftest.err conftest.$ac_objext \ |
8203 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8204 | fi |
c0d27fcc | 8205 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
98418dba CW |
8206 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
8207 | if test $ac_cv_func_malloc_get_state = yes; then | |
8208 | : | |
8209 | else | |
8210 | doug_lea_malloc=no | |
8211 | fi | |
8212 | ||
c0d27fcc | 8213 | echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
98418dba CW |
8214 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
8215 | if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
8216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8217 | else | |
8218 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8219 | /* confdefs.h. */ |
8220 | _ACEOF | |
8221 | cat confdefs.h >>conftest.$ac_ext | |
8222 | cat >>conftest.$ac_ext <<_ACEOF | |
8223 | /* end confdefs.h. */ | |
35996d22 AS |
8224 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. |
8225 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8226 | #define malloc_set_state innocuous_malloc_set_state | |
8227 | ||
98418dba | 8228 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8229 | which can conflict with char malloc_set_state (); below. |
8230 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8231 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8232 | |
19650fd6 AS |
8233 | #ifdef __STDC__ |
8234 | # include <limits.h> | |
8235 | #else | |
8236 | # include <assert.h> | |
8237 | #endif | |
35996d22 AS |
8238 | |
8239 | #undef malloc_set_state | |
8240 | ||
98418dba CW |
8241 | /* Override any gcc2 internal prototype to avoid an error. */ |
8242 | #ifdef __cplusplus | |
8243 | extern "C" | |
19650fd6 | 8244 | { |
98418dba CW |
8245 | #endif |
8246 | /* We use char because int might match the return type of a gcc2 | |
8247 | builtin and then its argument prototype would still apply. */ | |
8248 | char malloc_set_state (); | |
98418dba CW |
8249 | /* The GNU C library defines this for functions which it implements |
8250 | to always fail with ENOSYS. Some functions are actually named | |
8251 | something starting with __ and the normal name is an alias. */ | |
8252 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
8253 | choke me | |
8254 | #else | |
19650fd6 AS |
8255 | char (*f) () = malloc_set_state; |
8256 | #endif | |
8257 | #ifdef __cplusplus | |
8258 | } | |
98418dba CW |
8259 | #endif |
8260 | ||
19650fd6 AS |
8261 | int |
8262 | main () | |
8263 | { | |
8264 | return f != malloc_set_state; | |
98418dba CW |
8265 | ; |
8266 | return 0; | |
8267 | } | |
8268 | _ACEOF | |
8269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8271 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8272 | ac_status=$? |
35996d22 AS |
8273 | grep -v '^ *+' conftest.er1 >conftest.err |
8274 | rm -f conftest.er1 | |
8275 | cat conftest.err >&5 | |
c0d27fcc | 8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8277 | (exit $ac_status); } && |
35996d22 AS |
8278 | { ac_try='test -z "$ac_c_werror_flag" |
8279 | || test ! -s conftest.err' | |
8280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8281 | (eval $ac_try) 2>&5 | |
8282 | ac_status=$? | |
8283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8284 | (exit $ac_status); }; } && | |
8285 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8287 | (eval $ac_try) 2>&5 |
8288 | ac_status=$? | |
c0d27fcc | 8289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8290 | (exit $ac_status); }; }; then |
8291 | ac_cv_func_malloc_set_state=yes | |
8292 | else | |
8293 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8294 | sed 's/^/| /' conftest.$ac_ext >&5 |
8295 | ||
98418dba CW |
8296 | ac_cv_func_malloc_set_state=no |
8297 | fi | |
35996d22 AS |
8298 | rm -f conftest.err conftest.$ac_objext \ |
8299 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8300 | fi |
c0d27fcc | 8301 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
98418dba CW |
8302 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
8303 | if test $ac_cv_func_malloc_set_state = yes; then | |
8304 | : | |
8305 | else | |
8306 | doug_lea_malloc=no | |
8307 | fi | |
8308 | ||
c0d27fcc | 8309 | echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
98418dba CW |
8310 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
8311 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
8312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8313 | else | |
8314 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8315 | /* confdefs.h. */ |
8316 | _ACEOF | |
8317 | cat confdefs.h >>conftest.$ac_ext | |
8318 | cat >>conftest.$ac_ext <<_ACEOF | |
8319 | /* end confdefs.h. */ | |
98418dba | 8320 | extern void (* __after_morecore_hook)(); |
98418dba CW |
8321 | int |
8322 | main () | |
8323 | { | |
8324 | __after_morecore_hook = 0 | |
8325 | ; | |
8326 | return 0; | |
8327 | } | |
8328 | _ACEOF | |
8329 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8331 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8332 | ac_status=$? |
35996d22 AS |
8333 | grep -v '^ *+' conftest.er1 >conftest.err |
8334 | rm -f conftest.er1 | |
8335 | cat conftest.err >&5 | |
c0d27fcc | 8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8337 | (exit $ac_status); } && |
35996d22 AS |
8338 | { ac_try='test -z "$ac_c_werror_flag" |
8339 | || test ! -s conftest.err' | |
8340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8341 | (eval $ac_try) 2>&5 | |
8342 | ac_status=$? | |
8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8344 | (exit $ac_status); }; } && | |
8345 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8347 | (eval $ac_try) 2>&5 |
8348 | ac_status=$? | |
c0d27fcc | 8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8350 | (exit $ac_status); }; }; then |
8351 | emacs_cv_var___after_morecore_hook=yes | |
8352 | else | |
8353 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8354 | sed 's/^/| /' conftest.$ac_ext >&5 |
8355 | ||
98418dba CW |
8356 | emacs_cv_var___after_morecore_hook=no |
8357 | fi | |
35996d22 AS |
8358 | rm -f conftest.err conftest.$ac_objext \ |
8359 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8360 | fi |
c0d27fcc | 8361 | echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
98418dba CW |
8362 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
8363 | if test $emacs_cv_var___after_morecore_hook = no; then | |
8364 | doug_lea_malloc=no | |
8365 | fi | |
8366 | if test "${system_malloc}" = "yes"; then | |
8367 | GNU_MALLOC=no | |
8368 | GNU_MALLOC_reason=" | |
8369 | (The GNU allocators don't work with this system configuration.)" | |
8370 | fi | |
8371 | if test "$doug_lea_malloc" = "yes" ; then | |
8372 | if test "$GNU_MALLOC" = yes ; then | |
8373 | GNU_MALLOC_reason=" | |
8374 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
8375 | fi | |
b936fae4 | 8376 | |
c0d27fcc | 8377 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8378 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 8379 | _ACEOF |
98418dba CW |
8380 | |
8381 | fi | |
8382 | ||
8383 | if test x"${REL_ALLOC}" = x; then | |
8384 | REL_ALLOC=${GNU_MALLOC} | |
8385 | fi | |
8386 | ||
8387 | ||
c0d27fcc MR |
8388 | |
8389 | ||
8390 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
8391 | do |
8392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
8393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
8395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
8398 | fi |
8399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8400 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 8401 | else |
c0d27fcc MR |
8402 | # Is the header compilable? |
8403 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8405 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8406 | /* confdefs.h. */ |
8407 | _ACEOF | |
8408 | cat confdefs.h >>conftest.$ac_ext | |
8409 | cat >>conftest.$ac_ext <<_ACEOF | |
8410 | /* end confdefs.h. */ | |
98418dba CW |
8411 | $ac_includes_default |
8412 | #include <$ac_header> | |
8413 | _ACEOF | |
8414 | rm -f conftest.$ac_objext | |
c0d27fcc | 8415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 8416 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 8417 | ac_status=$? |
35996d22 AS |
8418 | grep -v '^ *+' conftest.er1 >conftest.err |
8419 | rm -f conftest.er1 | |
8420 | cat conftest.err >&5 | |
c0d27fcc | 8421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8422 | (exit $ac_status); } && |
35996d22 AS |
8423 | { ac_try='test -z "$ac_c_werror_flag" |
8424 | || test ! -s conftest.err' | |
8425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8426 | (eval $ac_try) 2>&5 | |
8427 | ac_status=$? | |
8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8429 | (exit $ac_status); }; } && | |
8430 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 8431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8432 | (eval $ac_try) 2>&5 |
8433 | ac_status=$? | |
c0d27fcc | 8434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8435 | (exit $ac_status); }; }; then |
c0d27fcc | 8436 | ac_header_compiler=yes |
98418dba CW |
8437 | else |
8438 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8439 | sed 's/^/| /' conftest.$ac_ext >&5 |
8440 | ||
c0d27fcc | 8441 | ac_header_compiler=no |
98418dba | 8442 | fi |
35996d22 | 8443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
8444 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8445 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 8446 | |
c0d27fcc MR |
8447 | # Is the header present? |
8448 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8449 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8450 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8451 | /* confdefs.h. */ |
8452 | _ACEOF | |
8453 | cat confdefs.h >>conftest.$ac_ext | |
8454 | cat >>conftest.$ac_ext <<_ACEOF | |
8455 | /* end confdefs.h. */ | |
98418dba CW |
8456 | #include <$ac_header> |
8457 | _ACEOF | |
c0d27fcc | 8458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
8459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8460 | ac_status=$? | |
6bae0ccf | 8461 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
8462 | rm -f conftest.er1 |
8463 | cat conftest.err >&5 | |
c0d27fcc | 8464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8465 | (exit $ac_status); } >/dev/null; then |
8466 | if test -s conftest.err; then | |
8467 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 8468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
8469 | else |
8470 | ac_cpp_err= | |
8471 | fi | |
8472 | else | |
8473 | ac_cpp_err=yes | |
8474 | fi | |
8475 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 8476 | ac_header_preproc=yes |
98418dba CW |
8477 | else |
8478 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8479 | sed 's/^/| /' conftest.$ac_ext >&5 |
8480 | ||
c0d27fcc | 8481 | ac_header_preproc=no |
98418dba CW |
8482 | fi |
8483 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
8484 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8485 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8486 | ||
8487 | # So? What about this header? | |
35996d22 AS |
8488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8489 | yes:no: ) | |
c0d27fcc MR |
8490 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8491 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
8492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8493 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8494 | ac_header_preproc=yes | |
19650fd6 | 8495 | ;; |
35996d22 | 8496 | no:yes:* ) |
c0d27fcc MR |
8497 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8498 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
8499 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8500 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8501 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8502 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8503 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8504 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 8505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 8506 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
8507 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8508 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
8509 | ( |
8510 | cat <<\_ASBOX | |
35996d22 AS |
8511 | ## ------------------------------------------ ## |
8512 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8513 | ## ------------------------------------------ ## | |
19650fd6 AS |
8514 | _ASBOX |
8515 | ) | | |
8516 | sed "s/^/$as_me: WARNING: /" >&2 | |
8517 | ;; | |
c0d27fcc MR |
8518 | esac |
8519 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8523 | else | |
35996d22 | 8524 | eval "$as_ac_Header=\$ac_header_preproc" |
98418dba | 8525 | fi |
c0d27fcc | 8526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 8527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
8528 | |
8529 | fi | |
98418dba | 8530 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 8531 | cat >>confdefs.h <<_ACEOF |
98418dba | 8532 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 8533 | _ACEOF |
98418dba CW |
8534 | |
8535 | fi | |
c0d27fcc | 8536 | |
98418dba CW |
8537 | done |
8538 | ||
c0d27fcc | 8539 | |
98418dba CW |
8540 | for ac_func in getpagesize |
8541 | do | |
8542 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 8543 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
8544 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8545 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8547 | else | |
8548 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8549 | /* confdefs.h. */ |
8550 | _ACEOF | |
8551 | cat confdefs.h >>conftest.$ac_ext | |
8552 | cat >>conftest.$ac_ext <<_ACEOF | |
8553 | /* end confdefs.h. */ | |
35996d22 AS |
8554 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8555 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8556 | #define $ac_func innocuous_$ac_func | |
8557 | ||
98418dba | 8558 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8559 | which can conflict with char $ac_func (); below. |
8560 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8561 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8562 | |
19650fd6 AS |
8563 | #ifdef __STDC__ |
8564 | # include <limits.h> | |
8565 | #else | |
8566 | # include <assert.h> | |
8567 | #endif | |
35996d22 AS |
8568 | |
8569 | #undef $ac_func | |
8570 | ||
98418dba CW |
8571 | /* Override any gcc2 internal prototype to avoid an error. */ |
8572 | #ifdef __cplusplus | |
8573 | extern "C" | |
19650fd6 | 8574 | { |
98418dba CW |
8575 | #endif |
8576 | /* We use char because int might match the return type of a gcc2 | |
8577 | builtin and then its argument prototype would still apply. */ | |
8578 | char $ac_func (); | |
98418dba CW |
8579 | /* The GNU C library defines this for functions which it implements |
8580 | to always fail with ENOSYS. Some functions are actually named | |
8581 | something starting with __ and the normal name is an alias. */ | |
8582 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8583 | choke me | |
8584 | #else | |
19650fd6 AS |
8585 | char (*f) () = $ac_func; |
8586 | #endif | |
8587 | #ifdef __cplusplus | |
8588 | } | |
98418dba CW |
8589 | #endif |
8590 | ||
19650fd6 AS |
8591 | int |
8592 | main () | |
8593 | { | |
8594 | return f != $ac_func; | |
98418dba CW |
8595 | ; |
8596 | return 0; | |
8597 | } | |
8598 | _ACEOF | |
8599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8601 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8602 | ac_status=$? |
35996d22 AS |
8603 | grep -v '^ *+' conftest.er1 >conftest.err |
8604 | rm -f conftest.er1 | |
8605 | cat conftest.err >&5 | |
c0d27fcc | 8606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8607 | (exit $ac_status); } && |
35996d22 AS |
8608 | { ac_try='test -z "$ac_c_werror_flag" |
8609 | || test ! -s conftest.err' | |
8610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8611 | (eval $ac_try) 2>&5 | |
8612 | ac_status=$? | |
8613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8614 | (exit $ac_status); }; } && | |
8615 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8617 | (eval $ac_try) 2>&5 |
8618 | ac_status=$? | |
c0d27fcc | 8619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8620 | (exit $ac_status); }; }; then |
8621 | eval "$as_ac_var=yes" | |
8622 | else | |
8623 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8624 | sed 's/^/| /' conftest.$ac_ext >&5 |
8625 | ||
98418dba CW |
8626 | eval "$as_ac_var=no" |
8627 | fi | |
35996d22 AS |
8628 | rm -f conftest.err conftest.$ac_objext \ |
8629 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8630 | fi |
c0d27fcc | 8631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
8632 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8633 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 8634 | cat >>confdefs.h <<_ACEOF |
98418dba | 8635 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 8636 | _ACEOF |
98418dba CW |
8637 | |
8638 | fi | |
8639 | done | |
8640 | ||
c0d27fcc | 8641 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
98418dba CW |
8642 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
8643 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
8644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8645 | else | |
8646 | if test "$cross_compiling" = yes; then | |
8647 | ac_cv_func_mmap_fixed_mapped=no | |
8648 | else | |
8649 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8650 | /* confdefs.h. */ |
8651 | _ACEOF | |
8652 | cat confdefs.h >>conftest.$ac_ext | |
8653 | cat >>conftest.$ac_ext <<_ACEOF | |
8654 | /* end confdefs.h. */ | |
98418dba | 8655 | $ac_includes_default |
c0d27fcc MR |
8656 | /* malloc might have been renamed as rpl_malloc. */ |
8657 | #undef malloc | |
8658 | ||
98418dba CW |
8659 | /* Thanks to Mike Haertel and Jim Avera for this test. |
8660 | Here is a matrix of mmap possibilities: | |
8661 | mmap private not fixed | |
8662 | mmap private fixed at somewhere currently unmapped | |
8663 | mmap private fixed at somewhere already mapped | |
8664 | mmap shared not fixed | |
8665 | mmap shared fixed at somewhere currently unmapped | |
8666 | mmap shared fixed at somewhere already mapped | |
8667 | For private mappings, we should verify that changes cannot be read() | |
8668 | back from the file, nor mmap's back from the file at a different | |
8669 | address. (There have been systems where private was not correctly | |
8670 | implemented like the infamous i386 svr4.0, and systems where the | |
8671 | VM page cache was not coherent with the file system buffer cache | |
8672 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8673 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 8674 | propagated back to all the places they're supposed to be. |
98418dba CW |
8675 | |
8676 | Grep wants private fixed already mapped. | |
8677 | The main things grep needs to know about mmap are: | |
8678 | * does it exist and is it safe to write into the mmap'd area | |
8679 | * how to use it (BSD variants) */ | |
8680 | ||
8681 | #include <fcntl.h> | |
8682 | #include <sys/mman.h> | |
8683 | ||
8684 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
8685 | char *malloc (); | |
8686 | #endif | |
8687 | ||
8688 | /* This mess was copied from the GNU getpagesize.h. */ | |
8689 | #if !HAVE_GETPAGESIZE | |
8690 | /* Assume that all systems that can run configure have sys/param.h. */ | |
8691 | # if !HAVE_SYS_PARAM_H | |
8692 | # define HAVE_SYS_PARAM_H 1 | |
8693 | # endif | |
8694 | ||
8695 | # ifdef _SC_PAGESIZE | |
8696 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8697 | # else /* no _SC_PAGESIZE */ | |
8698 | # if HAVE_SYS_PARAM_H | |
8699 | # include <sys/param.h> | |
8700 | # ifdef EXEC_PAGESIZE | |
8701 | # define getpagesize() EXEC_PAGESIZE | |
8702 | # else /* no EXEC_PAGESIZE */ | |
8703 | # ifdef NBPG | |
8704 | # define getpagesize() NBPG * CLSIZE | |
8705 | # ifndef CLSIZE | |
8706 | # define CLSIZE 1 | |
8707 | # endif /* no CLSIZE */ | |
8708 | # else /* no NBPG */ | |
8709 | # ifdef NBPC | |
8710 | # define getpagesize() NBPC | |
8711 | # else /* no NBPC */ | |
8712 | # ifdef PAGESIZE | |
8713 | # define getpagesize() PAGESIZE | |
8714 | # endif /* PAGESIZE */ | |
8715 | # endif /* no NBPC */ | |
8716 | # endif /* no NBPG */ | |
8717 | # endif /* no EXEC_PAGESIZE */ | |
8718 | # else /* no HAVE_SYS_PARAM_H */ | |
8719 | # define getpagesize() 8192 /* punt totally */ | |
8720 | # endif /* no HAVE_SYS_PARAM_H */ | |
8721 | # endif /* no _SC_PAGESIZE */ | |
8722 | ||
8723 | #endif /* no HAVE_GETPAGESIZE */ | |
8724 | ||
8725 | int | |
8726 | main () | |
8727 | { | |
8728 | char *data, *data2, *data3; | |
8729 | int i, pagesize; | |
8730 | int fd; | |
8731 | ||
8732 | pagesize = getpagesize (); | |
8733 | ||
8734 | /* First, make a file with some known garbage in it. */ | |
8735 | data = (char *) malloc (pagesize); | |
8736 | if (!data) | |
8737 | exit (1); | |
8738 | for (i = 0; i < pagesize; ++i) | |
8739 | *(data + i) = rand (); | |
8740 | umask (0); | |
8741 | fd = creat ("conftest.mmap", 0600); | |
8742 | if (fd < 0) | |
8743 | exit (1); | |
8744 | if (write (fd, data, pagesize) != pagesize) | |
8745 | exit (1); | |
8746 | close (fd); | |
8747 | ||
8748 | /* Next, try to mmap the file at a fixed address which already has | |
8749 | something else allocated at it. If we can, also make sure that | |
8750 | we see the same garbage. */ | |
8751 | fd = open ("conftest.mmap", O_RDWR); | |
8752 | if (fd < 0) | |
8753 | exit (1); | |
8754 | data2 = (char *) malloc (2 * pagesize); | |
8755 | if (!data2) | |
8756 | exit (1); | |
35996d22 | 8757 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
98418dba | 8758 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
35996d22 | 8759 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
98418dba CW |
8760 | exit (1); |
8761 | for (i = 0; i < pagesize; ++i) | |
8762 | if (*(data + i) != *(data2 + i)) | |
8763 | exit (1); | |
8764 | ||
8765 | /* Finally, make sure that changes to the mapped area do not | |
8766 | percolate back to the file as seen by read(). (This is a bug on | |
8767 | some variants of i386 svr4.0.) */ | |
8768 | for (i = 0; i < pagesize; ++i) | |
8769 | *(data2 + i) = *(data2 + i) + 1; | |
8770 | data3 = (char *) malloc (pagesize); | |
8771 | if (!data3) | |
8772 | exit (1); | |
8773 | if (read (fd, data3, pagesize) != pagesize) | |
8774 | exit (1); | |
8775 | for (i = 0; i < pagesize; ++i) | |
8776 | if (*(data + i) != *(data3 + i)) | |
8777 | exit (1); | |
8778 | close (fd); | |
8779 | exit (0); | |
8780 | } | |
8781 | _ACEOF | |
8782 | rm -f conftest$ac_exeext | |
c0d27fcc | 8783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8784 | (eval $ac_link) 2>&5 |
8785 | ac_status=$? | |
c0d27fcc | 8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8787 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 8788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8789 | (eval $ac_try) 2>&5 |
8790 | ac_status=$? | |
c0d27fcc | 8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8792 | (exit $ac_status); }; }; then |
8793 | ac_cv_func_mmap_fixed_mapped=yes | |
8794 | else | |
8795 | echo "$as_me: program exited with status $ac_status" >&5 | |
8796 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8797 | sed 's/^/| /' conftest.$ac_ext >&5 |
8798 | ||
c0d27fcc | 8799 | ( exit $ac_status ) |
98418dba CW |
8800 | ac_cv_func_mmap_fixed_mapped=no |
8801 | fi | |
35996d22 | 8802 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
8803 | fi |
8804 | fi | |
c0d27fcc | 8805 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
98418dba CW |
8806 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
8807 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
8808 | ||
c0d27fcc | 8809 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8810 | #define HAVE_MMAP 1 |
c0d27fcc | 8811 | _ACEOF |
98418dba CW |
8812 | |
8813 | fi | |
8814 | rm -f conftest.mmap | |
8815 | ||
8816 | if test $use_mmap_for_buffers = yes; then | |
8817 | REL_ALLOC=no | |
8818 | fi | |
8819 | ||
8820 | LIBS="$libsrc_libs $LIBS" | |
8821 | ||
c0d27fcc MR |
8822 | |
8823 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
98418dba CW |
8824 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
8825 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
8826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8827 | else | |
8828 | ac_check_lib_save_LIBS=$LIBS | |
8829 | LIBS="-ldnet $LIBS" | |
8830 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8831 | /* confdefs.h. */ |
8832 | _ACEOF | |
8833 | cat confdefs.h >>conftest.$ac_ext | |
8834 | cat >>conftest.$ac_ext <<_ACEOF | |
8835 | /* end confdefs.h. */ | |
98418dba CW |
8836 | |
8837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8838 | #ifdef __cplusplus | |
8839 | extern "C" | |
8840 | #endif | |
8841 | /* We use char because int might match the return type of a gcc2 | |
8842 | builtin and then its argument prototype would still apply. */ | |
8843 | char dnet_ntoa (); | |
98418dba CW |
8844 | int |
8845 | main () | |
8846 | { | |
8847 | dnet_ntoa (); | |
8848 | ; | |
8849 | return 0; | |
8850 | } | |
8851 | _ACEOF | |
8852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8854 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8855 | ac_status=$? |
35996d22 AS |
8856 | grep -v '^ *+' conftest.er1 >conftest.err |
8857 | rm -f conftest.er1 | |
8858 | cat conftest.err >&5 | |
c0d27fcc | 8859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8860 | (exit $ac_status); } && |
35996d22 AS |
8861 | { ac_try='test -z "$ac_c_werror_flag" |
8862 | || test ! -s conftest.err' | |
8863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8864 | (eval $ac_try) 2>&5 | |
8865 | ac_status=$? | |
8866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8867 | (exit $ac_status); }; } && | |
8868 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8870 | (eval $ac_try) 2>&5 |
8871 | ac_status=$? | |
c0d27fcc | 8872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8873 | (exit $ac_status); }; }; then |
8874 | ac_cv_lib_dnet_dnet_ntoa=yes | |
8875 | else | |
8876 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8877 | sed 's/^/| /' conftest.$ac_ext >&5 |
8878 | ||
98418dba CW |
8879 | ac_cv_lib_dnet_dnet_ntoa=no |
8880 | fi | |
35996d22 AS |
8881 | rm -f conftest.err conftest.$ac_objext \ |
8882 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8883 | LIBS=$ac_check_lib_save_LIBS |
8884 | fi | |
c0d27fcc | 8885 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
98418dba CW |
8886 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
8887 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
c0d27fcc | 8888 | cat >>confdefs.h <<_ACEOF |
98418dba | 8889 | #define HAVE_LIBDNET 1 |
c0d27fcc | 8890 | _ACEOF |
98418dba CW |
8891 | |
8892 | LIBS="-ldnet $LIBS" | |
8893 | ||
8894 | fi | |
8895 | ||
c0d27fcc MR |
8896 | |
8897 | echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | |
98418dba CW |
8898 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
8899 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
8900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8901 | else | |
8902 | ac_check_lib_save_LIBS=$LIBS | |
8903 | LIBS="-lXbsd $LIBS" | |
8904 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8905 | /* confdefs.h. */ |
8906 | _ACEOF | |
8907 | cat confdefs.h >>conftest.$ac_ext | |
8908 | cat >>conftest.$ac_ext <<_ACEOF | |
8909 | /* end confdefs.h. */ | |
98418dba | 8910 | |
c0d27fcc | 8911 | |
98418dba CW |
8912 | int |
8913 | main () | |
8914 | { | |
8915 | main (); | |
8916 | ; | |
8917 | return 0; | |
8918 | } | |
8919 | _ACEOF | |
8920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8922 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8923 | ac_status=$? |
35996d22 AS |
8924 | grep -v '^ *+' conftest.er1 >conftest.err |
8925 | rm -f conftest.er1 | |
8926 | cat conftest.err >&5 | |
c0d27fcc | 8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8928 | (exit $ac_status); } && |
35996d22 AS |
8929 | { ac_try='test -z "$ac_c_werror_flag" |
8930 | || test ! -s conftest.err' | |
8931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8932 | (eval $ac_try) 2>&5 | |
8933 | ac_status=$? | |
8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8935 | (exit $ac_status); }; } && | |
8936 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8938 | (eval $ac_try) 2>&5 |
8939 | ac_status=$? | |
c0d27fcc | 8940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8941 | (exit $ac_status); }; }; then |
8942 | ac_cv_lib_Xbsd_main=yes | |
8943 | else | |
8944 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8945 | sed 's/^/| /' conftest.$ac_ext >&5 |
8946 | ||
98418dba CW |
8947 | ac_cv_lib_Xbsd_main=no |
8948 | fi | |
35996d22 AS |
8949 | rm -f conftest.err conftest.$ac_objext \ |
8950 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8951 | LIBS=$ac_check_lib_save_LIBS |
8952 | fi | |
c0d27fcc | 8953 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
98418dba CW |
8954 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
8955 | if test $ac_cv_lib_Xbsd_main = yes; then | |
8956 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
8957 | fi | |
8958 | ||
c0d27fcc MR |
8959 | |
8960 | ||
8961 | echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
98418dba CW |
8962 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
8963 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
8964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8965 | else | |
8966 | ac_check_lib_save_LIBS=$LIBS | |
8967 | LIBS="-lpthreads $LIBS" | |
8968 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8969 | /* confdefs.h. */ |
8970 | _ACEOF | |
8971 | cat confdefs.h >>conftest.$ac_ext | |
8972 | cat >>conftest.$ac_ext <<_ACEOF | |
8973 | /* end confdefs.h. */ | |
98418dba CW |
8974 | |
8975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8976 | #ifdef __cplusplus | |
8977 | extern "C" | |
8978 | #endif | |
8979 | /* We use char because int might match the return type of a gcc2 | |
8980 | builtin and then its argument prototype would still apply. */ | |
8981 | char cma_open (); | |
98418dba CW |
8982 | int |
8983 | main () | |
8984 | { | |
8985 | cma_open (); | |
8986 | ; | |
8987 | return 0; | |
8988 | } | |
8989 | _ACEOF | |
8990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8992 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8993 | ac_status=$? |
35996d22 AS |
8994 | grep -v '^ *+' conftest.er1 >conftest.err |
8995 | rm -f conftest.er1 | |
8996 | cat conftest.err >&5 | |
c0d27fcc | 8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8998 | (exit $ac_status); } && |
35996d22 AS |
8999 | { ac_try='test -z "$ac_c_werror_flag" |
9000 | || test ! -s conftest.err' | |
9001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9002 | (eval $ac_try) 2>&5 | |
9003 | ac_status=$? | |
9004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9005 | (exit $ac_status); }; } && | |
9006 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9008 | (eval $ac_try) 2>&5 |
9009 | ac_status=$? | |
c0d27fcc | 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9011 | (exit $ac_status); }; }; then |
9012 | ac_cv_lib_pthreads_cma_open=yes | |
9013 | else | |
9014 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9015 | sed 's/^/| /' conftest.$ac_ext >&5 |
9016 | ||
98418dba CW |
9017 | ac_cv_lib_pthreads_cma_open=no |
9018 | fi | |
35996d22 AS |
9019 | rm -f conftest.err conftest.$ac_objext \ |
9020 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9021 | LIBS=$ac_check_lib_save_LIBS |
9022 | fi | |
c0d27fcc | 9023 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
98418dba CW |
9024 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
9025 | if test $ac_cv_lib_pthreads_cma_open = yes; then | |
c0d27fcc | 9026 | cat >>confdefs.h <<_ACEOF |
98418dba | 9027 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 9028 | _ACEOF |
98418dba CW |
9029 | |
9030 | LIBS="-lpthreads $LIBS" | |
9031 | ||
9032 | fi | |
9033 | ||
c0d27fcc MR |
9034 | |
9035 | echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 | |
98418dba CW |
9036 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
9037 | if test -d /usr/X386/include; then | |
9038 | HAVE_XFREE386=yes | |
9039 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
9040 | else | |
9041 | HAVE_XFREE386=no | |
9042 | fi | |
c0d27fcc | 9043 | echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
98418dba CW |
9044 | echo "${ECHO_T}$HAVE_XFREE386" >&6 |
9045 | ||
55597d70 DL |
9046 | |
9047 | case ${host_os} in | |
9048 | aix*) | |
9049 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 | |
9050 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
9051 | if test "${gdb_cv_bigtoc+set}" = set; then | |
9052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9053 | else | |
9054 | ||
9055 | case $GCC in | |
9056 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
9057 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
9058 | esac | |
9059 | ||
9060 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
9061 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9062 | /* confdefs.h. */ |
9063 | _ACEOF | |
9064 | cat confdefs.h >>conftest.$ac_ext | |
9065 | cat >>conftest.$ac_ext <<_ACEOF | |
9066 | /* end confdefs.h. */ | |
55597d70 DL |
9067 | |
9068 | int | |
9069 | main () | |
9070 | { | |
9071 | int i; | |
9072 | ; | |
9073 | return 0; | |
9074 | } | |
9075 | _ACEOF | |
9076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 9078 | (eval $ac_link) 2>conftest.er1 |
55597d70 | 9079 | ac_status=$? |
35996d22 AS |
9080 | grep -v '^ *+' conftest.er1 >conftest.err |
9081 | rm -f conftest.er1 | |
9082 | cat conftest.err >&5 | |
55597d70 DL |
9083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9084 | (exit $ac_status); } && | |
35996d22 AS |
9085 | { ac_try='test -z "$ac_c_werror_flag" |
9086 | || test ! -s conftest.err' | |
9087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9088 | (eval $ac_try) 2>&5 | |
9089 | ac_status=$? | |
9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9091 | (exit $ac_status); }; } && | |
9092 | { ac_try='test -s conftest$ac_exeext' | |
55597d70 DL |
9093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9094 | (eval $ac_try) 2>&5 | |
9095 | ac_status=$? | |
9096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9097 | (exit $ac_status); }; }; then | |
9098 | : | |
9099 | else | |
9100 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9101 | sed 's/^/| /' conftest.$ac_ext >&5 |
9102 | ||
55597d70 DL |
9103 | gdb_cv_bigtoc= |
9104 | fi | |
35996d22 AS |
9105 | rm -f conftest.err conftest.$ac_objext \ |
9106 | conftest$ac_exeext conftest.$ac_ext | |
55597d70 DL |
9107 | |
9108 | fi | |
9109 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
9110 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
9111 | ;; | |
9112 | esac | |
9113 | ||
ae1a998c RS |
9114 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
9115 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
9116 | # REAL_CPPFLAGS later on. | |
98418dba CW |
9117 | |
9118 | REAL_CPPFLAGS="$CPPFLAGS" | |
9119 | ||
9120 | if test "${HAVE_X11}" = "yes"; then | |
9121 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
9122 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
9123 | LIBS="$LIBX $LIBS" | |
9124 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
9125 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
9126 | ||
9127 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
9128 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
9129 | # but it's more convenient here to set LD_RUN_PATH | |
9130 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
9131 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
9132 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
9133 | export LD_RUN_PATH | |
9134 | fi | |
9135 | ||
9136 | if test "${opsys}" = "gnu-linux"; then | |
c0d27fcc | 9137 | echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
98418dba CW |
9138 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
9139 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9140 | /* confdefs.h. */ |
9141 | _ACEOF | |
9142 | cat confdefs.h >>conftest.$ac_ext | |
9143 | cat >>conftest.$ac_ext <<_ACEOF | |
9144 | /* end confdefs.h. */ | |
98418dba | 9145 | |
98418dba CW |
9146 | int |
9147 | main () | |
9148 | { | |
9149 | XOpenDisplay ("foo"); | |
9150 | ; | |
9151 | return 0; | |
9152 | } | |
9153 | _ACEOF | |
9154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9156 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9157 | ac_status=$? |
35996d22 AS |
9158 | grep -v '^ *+' conftest.er1 >conftest.err |
9159 | rm -f conftest.er1 | |
9160 | cat conftest.err >&5 | |
c0d27fcc | 9161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9162 | (exit $ac_status); } && |
35996d22 AS |
9163 | { ac_try='test -z "$ac_c_werror_flag" |
9164 | || test ! -s conftest.err' | |
c0d27fcc | 9165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9166 | (eval $ac_try) 2>&5 |
9167 | ac_status=$? | |
c0d27fcc | 9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
9169 | (exit $ac_status); }; } && |
9170 | { ac_try='test -s conftest$ac_exeext' | |
9171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9172 | (eval $ac_try) 2>&5 | |
9173 | ac_status=$? | |
9174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9175 | (exit $ac_status); }; }; then | |
9176 | xlinux_first_failure=no | |
98418dba CW |
9177 | else |
9178 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9179 | sed 's/^/| /' conftest.$ac_ext >&5 |
9180 | ||
98418dba CW |
9181 | xlinux_first_failure=yes |
9182 | fi | |
35996d22 AS |
9183 | rm -f conftest.err conftest.$ac_objext \ |
9184 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9185 | if test "${xlinux_first_failure}" = "yes"; then |
9186 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
9187 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
9188 | OLD_CPPFLAGS="$CPPFLAGS" | |
9189 | OLD_LIBS="$LIBS" | |
9190 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
9191 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
9192 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
9193 | LIBS="$LIBS -b i486-linuxaout" | |
9194 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9195 | /* confdefs.h. */ |
9196 | _ACEOF | |
9197 | cat confdefs.h >>conftest.$ac_ext | |
9198 | cat >>conftest.$ac_ext <<_ACEOF | |
9199 | /* end confdefs.h. */ | |
98418dba | 9200 | |
98418dba CW |
9201 | int |
9202 | main () | |
9203 | { | |
9204 | XOpenDisplay ("foo"); | |
9205 | ; | |
9206 | return 0; | |
9207 | } | |
9208 | _ACEOF | |
9209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9211 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9212 | ac_status=$? |
35996d22 AS |
9213 | grep -v '^ *+' conftest.er1 >conftest.err |
9214 | rm -f conftest.er1 | |
9215 | cat conftest.err >&5 | |
c0d27fcc | 9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9217 | (exit $ac_status); } && |
35996d22 AS |
9218 | { ac_try='test -z "$ac_c_werror_flag" |
9219 | || test ! -s conftest.err' | |
9220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9221 | (eval $ac_try) 2>&5 | |
9222 | ac_status=$? | |
9223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9224 | (exit $ac_status); }; } && | |
9225 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9227 | (eval $ac_try) 2>&5 |
9228 | ac_status=$? | |
c0d27fcc | 9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9230 | (exit $ac_status); }; }; then |
9231 | xlinux_second_failure=no | |
9232 | else | |
9233 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9234 | sed 's/^/| /' conftest.$ac_ext >&5 |
9235 | ||
98418dba CW |
9236 | xlinux_second_failure=yes |
9237 | fi | |
35996d22 AS |
9238 | rm -f conftest.err conftest.$ac_objext \ |
9239 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9240 | if test "${xlinux_second_failure}" = "yes"; then |
9241 | # If we get the same failure with -b, there is no use adding -b. | |
9242 | # So take it out. This plays safe. | |
9243 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
9244 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
9245 | CPPFLAGS="$OLD_CPPFLAGS" | |
9246 | LIBS="$OLD_LIBS" | |
c0d27fcc | 9247 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9248 | echo "${ECHO_T}no" >&6 |
9249 | else | |
c0d27fcc | 9250 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
9251 | echo "${ECHO_T}yes" >&6 |
9252 | fi | |
9253 | else | |
c0d27fcc | 9254 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9255 | echo "${ECHO_T}no" >&6 |
9256 | fi | |
9257 | fi | |
9258 | ||
9259 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
9260 | # header files included from there. | |
c0d27fcc | 9261 | echo "$as_me:$LINENO: checking for Xkb" >&5 |
98418dba CW |
9262 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
9263 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9264 | /* confdefs.h. */ |
9265 | _ACEOF | |
9266 | cat confdefs.h >>conftest.$ac_ext | |
9267 | cat >>conftest.$ac_ext <<_ACEOF | |
9268 | /* end confdefs.h. */ | |
98418dba CW |
9269 | #include <X11/Xlib.h> |
9270 | #include <X11/XKBlib.h> | |
98418dba CW |
9271 | int |
9272 | main () | |
9273 | { | |
9274 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
9275 | ; | |
9276 | return 0; | |
9277 | } | |
9278 | _ACEOF | |
9279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9281 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9282 | ac_status=$? |
35996d22 AS |
9283 | grep -v '^ *+' conftest.er1 >conftest.err |
9284 | rm -f conftest.er1 | |
9285 | cat conftest.err >&5 | |
c0d27fcc | 9286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9287 | (exit $ac_status); } && |
35996d22 AS |
9288 | { ac_try='test -z "$ac_c_werror_flag" |
9289 | || test ! -s conftest.err' | |
9290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9291 | (eval $ac_try) 2>&5 | |
9292 | ac_status=$? | |
9293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9294 | (exit $ac_status); }; } && | |
9295 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9297 | (eval $ac_try) 2>&5 |
9298 | ac_status=$? | |
c0d27fcc | 9299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9300 | (exit $ac_status); }; }; then |
9301 | emacs_xkb=yes | |
9302 | else | |
9303 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9304 | sed 's/^/| /' conftest.$ac_ext >&5 |
9305 | ||
98418dba CW |
9306 | emacs_xkb=no |
9307 | fi | |
35996d22 AS |
9308 | rm -f conftest.err conftest.$ac_objext \ |
9309 | conftest$ac_exeext conftest.$ac_ext | |
c0d27fcc | 9310 | echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
98418dba CW |
9311 | echo "${ECHO_T}$emacs_xkb" >&6 |
9312 | if test $emacs_xkb = yes; then | |
b936fae4 | 9313 | |
c0d27fcc | 9314 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9315 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 9316 | _ACEOF |
98418dba CW |
9317 | |
9318 | fi | |
9319 | ||
c0d27fcc MR |
9320 | |
9321 | ||
9322 | ||
9323 | ||
98418dba CW |
9324 | for ac_func in XrmSetDatabase XScreenResourceString \ |
9325 | XScreenNumberOfScreen XSetWMProtocols | |
9326 | do | |
9327 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 9328 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
9329 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9330 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9332 | else | |
9333 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9334 | /* confdefs.h. */ |
9335 | _ACEOF | |
9336 | cat confdefs.h >>conftest.$ac_ext | |
9337 | cat >>conftest.$ac_ext <<_ACEOF | |
9338 | /* end confdefs.h. */ | |
35996d22 AS |
9339 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9341 | #define $ac_func innocuous_$ac_func | |
9342 | ||
98418dba | 9343 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9344 | which can conflict with char $ac_func (); below. |
9345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9346 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 9347 | |
19650fd6 AS |
9348 | #ifdef __STDC__ |
9349 | # include <limits.h> | |
9350 | #else | |
9351 | # include <assert.h> | |
9352 | #endif | |
35996d22 AS |
9353 | |
9354 | #undef $ac_func | |
9355 | ||
98418dba CW |
9356 | /* Override any gcc2 internal prototype to avoid an error. */ |
9357 | #ifdef __cplusplus | |
9358 | extern "C" | |
19650fd6 | 9359 | { |
98418dba CW |
9360 | #endif |
9361 | /* We use char because int might match the return type of a gcc2 | |
9362 | builtin and then its argument prototype would still apply. */ | |
9363 | char $ac_func (); | |
98418dba CW |
9364 | /* The GNU C library defines this for functions which it implements |
9365 | to always fail with ENOSYS. Some functions are actually named | |
9366 | something starting with __ and the normal name is an alias. */ | |
9367 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9368 | choke me | |
9369 | #else | |
19650fd6 AS |
9370 | char (*f) () = $ac_func; |
9371 | #endif | |
9372 | #ifdef __cplusplus | |
9373 | } | |
98418dba CW |
9374 | #endif |
9375 | ||
19650fd6 AS |
9376 | int |
9377 | main () | |
9378 | { | |
9379 | return f != $ac_func; | |
98418dba CW |
9380 | ; |
9381 | return 0; | |
9382 | } | |
9383 | _ACEOF | |
9384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9386 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9387 | ac_status=$? |
35996d22 AS |
9388 | grep -v '^ *+' conftest.er1 >conftest.err |
9389 | rm -f conftest.er1 | |
9390 | cat conftest.err >&5 | |
c0d27fcc | 9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9392 | (exit $ac_status); } && |
35996d22 AS |
9393 | { ac_try='test -z "$ac_c_werror_flag" |
9394 | || test ! -s conftest.err' | |
9395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9396 | (eval $ac_try) 2>&5 | |
9397 | ac_status=$? | |
9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9399 | (exit $ac_status); }; } && | |
9400 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9402 | (eval $ac_try) 2>&5 |
9403 | ac_status=$? | |
c0d27fcc | 9404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9405 | (exit $ac_status); }; }; then |
9406 | eval "$as_ac_var=yes" | |
9407 | else | |
9408 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9409 | sed 's/^/| /' conftest.$ac_ext >&5 |
9410 | ||
98418dba CW |
9411 | eval "$as_ac_var=no" |
9412 | fi | |
35996d22 AS |
9413 | rm -f conftest.err conftest.$ac_objext \ |
9414 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 9415 | fi |
c0d27fcc | 9416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
9417 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9418 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 9419 | cat >>confdefs.h <<_ACEOF |
98418dba | 9420 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 9421 | _ACEOF |
98418dba CW |
9422 | |
9423 | fi | |
9424 | done | |
9425 | ||
9426 | fi | |
9427 | ||
9428 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 9429 | echo "$as_me:$LINENO: checking X11 version 6" >&5 |
98418dba CW |
9430 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
9431 | if test "${emacs_cv_x11_version_6+set}" = set; then | |
9432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9433 | else | |
9434 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9435 | /* confdefs.h. */ |
9436 | _ACEOF | |
9437 | cat confdefs.h >>conftest.$ac_ext | |
9438 | cat >>conftest.$ac_ext <<_ACEOF | |
9439 | /* end confdefs.h. */ | |
98418dba | 9440 | #include <X11/Xlib.h> |
98418dba CW |
9441 | int |
9442 | main () | |
9443 | { | |
9444 | #if XlibSpecificationRelease < 6 | |
9445 | fail; | |
9446 | #endif | |
9447 | ||
9448 | ; | |
9449 | return 0; | |
9450 | } | |
9451 | _ACEOF | |
9452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9454 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9455 | ac_status=$? |
35996d22 AS |
9456 | grep -v '^ *+' conftest.er1 >conftest.err |
9457 | rm -f conftest.er1 | |
9458 | cat conftest.err >&5 | |
c0d27fcc | 9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9460 | (exit $ac_status); } && |
35996d22 AS |
9461 | { ac_try='test -z "$ac_c_werror_flag" |
9462 | || test ! -s conftest.err' | |
9463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9464 | (eval $ac_try) 2>&5 | |
9465 | ac_status=$? | |
9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9467 | (exit $ac_status); }; } && | |
9468 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9470 | (eval $ac_try) 2>&5 |
9471 | ac_status=$? | |
c0d27fcc | 9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9473 | (exit $ac_status); }; }; then |
9474 | emacs_cv_x11_version_6=yes | |
9475 | else | |
9476 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9477 | sed 's/^/| /' conftest.$ac_ext >&5 |
9478 | ||
98418dba CW |
9479 | emacs_cv_x11_version_6=no |
9480 | fi | |
35996d22 AS |
9481 | rm -f conftest.err conftest.$ac_objext \ |
9482 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9483 | fi |
9484 | ||
9485 | if test $emacs_cv_x11_version_6 = yes; then | |
c0d27fcc | 9486 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 9487 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 9488 | |
c0d27fcc | 9489 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9490 | #define HAVE_X11R6 1 |
c0d27fcc | 9491 | _ACEOF |
98418dba CW |
9492 | |
9493 | else | |
c0d27fcc | 9494 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
9495 | echo "${ECHO_T}before 6" >&6 |
9496 | fi | |
9497 | fi | |
9498 | ||
9499 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 9500 | echo "$as_me:$LINENO: checking X11 version 5" >&5 |
98418dba CW |
9501 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
9502 | if test "${emacs_cv_x11_version_5+set}" = set; then | |
9503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9504 | else | |
9505 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9506 | /* confdefs.h. */ |
9507 | _ACEOF | |
9508 | cat confdefs.h >>conftest.$ac_ext | |
9509 | cat >>conftest.$ac_ext <<_ACEOF | |
9510 | /* end confdefs.h. */ | |
98418dba | 9511 | #include <X11/Xlib.h> |
98418dba CW |
9512 | int |
9513 | main () | |
9514 | { | |
9515 | #if XlibSpecificationRelease < 5 | |
9516 | fail; | |
9517 | #endif | |
9518 | ||
9519 | ; | |
9520 | return 0; | |
9521 | } | |
9522 | _ACEOF | |
9523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9525 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9526 | ac_status=$? |
35996d22 AS |
9527 | grep -v '^ *+' conftest.er1 >conftest.err |
9528 | rm -f conftest.er1 | |
9529 | cat conftest.err >&5 | |
c0d27fcc | 9530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9531 | (exit $ac_status); } && |
35996d22 AS |
9532 | { ac_try='test -z "$ac_c_werror_flag" |
9533 | || test ! -s conftest.err' | |
9534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9535 | (eval $ac_try) 2>&5 | |
9536 | ac_status=$? | |
9537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9538 | (exit $ac_status); }; } && | |
9539 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9541 | (eval $ac_try) 2>&5 |
9542 | ac_status=$? | |
c0d27fcc | 9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9544 | (exit $ac_status); }; }; then |
9545 | emacs_cv_x11_version_5=yes | |
9546 | else | |
9547 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9548 | sed 's/^/| /' conftest.$ac_ext >&5 |
9549 | ||
98418dba CW |
9550 | emacs_cv_x11_version_5=no |
9551 | fi | |
35996d22 AS |
9552 | rm -f conftest.err conftest.$ac_objext \ |
9553 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9554 | fi |
9555 | ||
9556 | if test $emacs_cv_x11_version_5 = yes; then | |
c0d27fcc | 9557 | echo "$as_me:$LINENO: result: 5 or newer" >&5 |
98418dba CW |
9558 | echo "${ECHO_T}5 or newer" >&6 |
9559 | HAVE_X11R5=yes | |
b936fae4 | 9560 | |
c0d27fcc | 9561 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9562 | #define HAVE_X11R5 1 |
c0d27fcc | 9563 | _ACEOF |
98418dba CW |
9564 | |
9565 | else | |
9566 | HAVE_X11R5=no | |
c0d27fcc | 9567 | echo "$as_me:$LINENO: result: before 5" >&5 |
98418dba CW |
9568 | echo "${ECHO_T}before 5" >&6 |
9569 | fi | |
9570 | fi | |
9571 | ||
488dd4c4 JD |
9572 | |
9573 | ||
9574 | HAVE_GTK=no | |
9575 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then | |
cd890796 | 9576 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
488dd4c4 JD |
9577 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
9578 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} | |
9579 | { (exit 1); exit 1; }; }; | |
9580 | fi | |
9581 | GLIB_REQUIRED=2.0.1 | |
e512ece1 | 9582 | GTK_REQUIRED=2.0.1 |
488dd4c4 JD |
9583 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
9584 | ||
9585 | if test "X${with_pkg_config_prog}" != X; then | |
9586 | PKG_CONFIG="${with_pkg_config_prog}" | |
9587 | fi | |
9588 | ||
9589 | succeeded=no | |
9590 | ||
9591 | if test -z "$PKG_CONFIG"; then | |
9592 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9593 | set dummy pkg-config; ac_word=$2 | |
9594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9596 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9598 | else | |
9599 | case $PKG_CONFIG in | |
9600 | [\\/]* | ?:[\\/]*) | |
9601 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9602 | ;; | |
9603 | *) | |
9604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9605 | for as_dir in $PATH | |
9606 | do | |
9607 | IFS=$as_save_IFS | |
9608 | test -z "$as_dir" && as_dir=. | |
9609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9611 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9613 | break 2 | |
9614 | fi | |
9615 | done | |
9616 | done | |
9617 | ||
9618 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
9619 | ;; | |
9620 | esac | |
9621 | fi | |
9622 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9623 | ||
9624 | if test -n "$PKG_CONFIG"; then | |
9625 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9626 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
9627 | else | |
9628 | echo "$as_me:$LINENO: result: no" >&5 | |
9629 | echo "${ECHO_T}no" >&6 | |
9630 | fi | |
9631 | ||
9632 | fi | |
9633 | ||
9634 | if test "$PKG_CONFIG" = "no" ; then | |
9635 | echo "*** The pkg-config script could not be found. Make sure it is" | |
9636 | echo "*** in your path, or give the full path to pkg-config with" | |
9637 | echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog." | |
9638 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
9639 | else | |
9640 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
9641 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
9642 | echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 | |
9643 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6 | |
9644 | ||
9645 | if $PKG_CONFIG --exists "$GTK_MODULES" ; then | |
9646 | echo "$as_me:$LINENO: result: yes" >&5 | |
9647 | echo "${ECHO_T}yes" >&6 | |
9648 | succeeded=yes | |
9649 | ||
9650 | echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 | |
9651 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 | |
9652 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"` | |
9653 | echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 | |
9654 | echo "${ECHO_T}$GTK_CFLAGS" >&6 | |
9655 | ||
9656 | echo "$as_me:$LINENO: checking GTK_LIBS" >&5 | |
9657 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 | |
9658 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"` | |
9659 | echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 | |
9660 | echo "${ECHO_T}$GTK_LIBS" >&6 | |
9661 | else | |
9662 | GTK_CFLAGS="" | |
9663 | GTK_LIBS="" | |
9664 | ## If we have a custom action on failure, don't print errors, but | |
9665 | ## do set a variable so people can do so. | |
9666 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
9667 | echo $GTK_PKG_ERRORS | |
9668 | fi | |
9669 | ||
9670 | ||
9671 | ||
9672 | else | |
9673 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
9674 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
9675 | fi | |
9676 | fi | |
9677 | ||
9678 | if test $succeeded = yes; then | |
9679 | : | |
9680 | else | |
9681 | { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 | |
9682 | echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} | |
9683 | { (exit 1); exit 1; }; } | |
9684 | fi | |
9685 | ||
9686 | ||
9687 | ||
9688 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
57669b57 JD |
9689 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
9690 | LIBS="$GTK_LIBS $LIBS" | |
488dd4c4 JD |
9691 | HAVE_GTK=yes |
9692 | ||
9693 | cat >>confdefs.h <<\_ACEOF | |
9694 | #define HAVE_GTK 1 | |
9695 | _ACEOF | |
9696 | ||
9697 | USE_X_TOOLKIT=none | |
9698 | ||
9699 | with_toolkit_scroll_bars=yes | |
57669b57 JD |
9700 | |
9701 | HAVE_GTK_MULTIDISPLAY=no | |
9702 | ||
9703 | for ac_func in gdk_display_open | |
9704 | do | |
9705 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9706 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9707 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9708 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9710 | else | |
9711 | cat >conftest.$ac_ext <<_ACEOF | |
57669b57 JD |
9712 | /* confdefs.h. */ |
9713 | _ACEOF | |
9714 | cat confdefs.h >>conftest.$ac_ext | |
9715 | cat >>conftest.$ac_ext <<_ACEOF | |
9716 | /* end confdefs.h. */ | |
35996d22 AS |
9717 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9719 | #define $ac_func innocuous_$ac_func | |
9720 | ||
57669b57 JD |
9721 | /* System header to define __stub macros and hopefully few prototypes, |
9722 | which can conflict with char $ac_func (); below. | |
9723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9724 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 9725 | |
57669b57 JD |
9726 | #ifdef __STDC__ |
9727 | # include <limits.h> | |
9728 | #else | |
9729 | # include <assert.h> | |
9730 | #endif | |
35996d22 AS |
9731 | |
9732 | #undef $ac_func | |
9733 | ||
57669b57 JD |
9734 | /* Override any gcc2 internal prototype to avoid an error. */ |
9735 | #ifdef __cplusplus | |
9736 | extern "C" | |
9737 | { | |
9738 | #endif | |
9739 | /* We use char because int might match the return type of a gcc2 | |
9740 | builtin and then its argument prototype would still apply. */ | |
9741 | char $ac_func (); | |
9742 | /* The GNU C library defines this for functions which it implements | |
9743 | to always fail with ENOSYS. Some functions are actually named | |
9744 | something starting with __ and the normal name is an alias. */ | |
9745 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9746 | choke me | |
9747 | #else | |
9748 | char (*f) () = $ac_func; | |
9749 | #endif | |
9750 | #ifdef __cplusplus | |
9751 | } | |
9752 | #endif | |
9753 | ||
9754 | int | |
9755 | main () | |
9756 | { | |
9757 | return f != $ac_func; | |
9758 | ; | |
9759 | return 0; | |
9760 | } | |
9761 | _ACEOF | |
9762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 9764 | (eval $ac_link) 2>conftest.er1 |
57669b57 | 9765 | ac_status=$? |
35996d22 AS |
9766 | grep -v '^ *+' conftest.er1 >conftest.err |
9767 | rm -f conftest.er1 | |
9768 | cat conftest.err >&5 | |
57669b57 JD |
9769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9770 | (exit $ac_status); } && | |
35996d22 AS |
9771 | { ac_try='test -z "$ac_c_werror_flag" |
9772 | || test ! -s conftest.err' | |
9773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9774 | (eval $ac_try) 2>&5 | |
9775 | ac_status=$? | |
9776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9777 | (exit $ac_status); }; } && | |
9778 | { ac_try='test -s conftest$ac_exeext' | |
57669b57 JD |
9779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9780 | (eval $ac_try) 2>&5 | |
9781 | ac_status=$? | |
9782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9783 | (exit $ac_status); }; }; then | |
9784 | eval "$as_ac_var=yes" | |
9785 | else | |
9786 | echo "$as_me: failed program was:" >&5 | |
9787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9788 | ||
9789 | eval "$as_ac_var=no" | |
9790 | fi | |
35996d22 AS |
9791 | rm -f conftest.err conftest.$ac_objext \ |
9792 | conftest$ac_exeext conftest.$ac_ext | |
57669b57 JD |
9793 | fi |
9794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9795 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9796 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9797 | cat >>confdefs.h <<_ACEOF | |
9798 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9799 | _ACEOF | |
9800 | HAVE_GTK_MULTIDISPLAY=yes | |
9801 | fi | |
9802 | done | |
9803 | ||
9804 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | |
9805 | ||
9806 | cat >>confdefs.h <<\_ACEOF | |
9807 | #define HAVE_GTK_MULTIDISPLAY 1 | |
9808 | _ACEOF | |
9809 | ||
9810 | fi | |
488dd4c4 JD |
9811 | fi |
9812 | ||
98418dba CW |
9813 | if test x"${USE_X_TOOLKIT}" = xmaybe; then |
9814 | if test x"${HAVE_X11R5}" = xyes; then | |
c0d27fcc | 9815 | echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
98418dba CW |
9816 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
9817 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
9818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9819 | else | |
9820 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9821 | /* confdefs.h. */ |
9822 | _ACEOF | |
9823 | cat confdefs.h >>conftest.$ac_ext | |
9824 | cat >>conftest.$ac_ext <<_ACEOF | |
9825 | /* end confdefs.h. */ | |
98418dba CW |
9826 | |
9827 | #include <X11/Intrinsic.h> | |
9828 | #include <X11/Xaw/Simple.h> | |
98418dba CW |
9829 | int |
9830 | main () | |
9831 | { | |
9832 | ||
9833 | ; | |
9834 | return 0; | |
9835 | } | |
9836 | _ACEOF | |
9837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9839 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9840 | ac_status=$? |
35996d22 AS |
9841 | grep -v '^ *+' conftest.er1 >conftest.err |
9842 | rm -f conftest.er1 | |
9843 | cat conftest.err >&5 | |
c0d27fcc | 9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9845 | (exit $ac_status); } && |
35996d22 AS |
9846 | { ac_try='test -z "$ac_c_werror_flag" |
9847 | || test ! -s conftest.err' | |
9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9849 | (eval $ac_try) 2>&5 | |
9850 | ac_status=$? | |
9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9852 | (exit $ac_status); }; } && | |
9853 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9855 | (eval $ac_try) 2>&5 |
9856 | ac_status=$? | |
c0d27fcc | 9857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9858 | (exit $ac_status); }; }; then |
9859 | emacs_cv_x11_version_5_with_xaw=yes | |
9860 | else | |
9861 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9862 | sed 's/^/| /' conftest.$ac_ext >&5 |
9863 | ||
98418dba CW |
9864 | emacs_cv_x11_version_5_with_xaw=no |
9865 | fi | |
35996d22 AS |
9866 | rm -f conftest.err conftest.$ac_objext \ |
9867 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9868 | fi |
9869 | ||
9870 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
c0d27fcc | 9871 | echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
98418dba CW |
9872 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
9873 | USE_X_TOOLKIT=LUCID | |
9874 | else | |
c0d27fcc | 9875 | echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
98418dba CW |
9876 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
9877 | USE_X_TOOLKIT=none | |
9878 | fi | |
9879 | else | |
9880 | USE_X_TOOLKIT=none | |
9881 | fi | |
9882 | fi | |
9883 | ||
9884 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
9885 | ||
9886 | if test "${USE_X_TOOLKIT}" != "none"; then | |
c0d27fcc | 9887 | echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
98418dba CW |
9888 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
9889 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
9890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9891 | else | |
9892 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9893 | /* confdefs.h. */ |
9894 | _ACEOF | |
9895 | cat confdefs.h >>conftest.$ac_ext | |
9896 | cat >>conftest.$ac_ext <<_ACEOF | |
9897 | /* end confdefs.h. */ | |
98418dba | 9898 | #include <X11/Intrinsic.h> |
98418dba CW |
9899 | int |
9900 | main () | |
9901 | { | |
9902 | #if XtSpecificationRelease < 6 | |
9903 | fail; | |
9904 | #endif | |
9905 | ||
9906 | ; | |
9907 | return 0; | |
9908 | } | |
9909 | _ACEOF | |
9910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9912 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9913 | ac_status=$? |
35996d22 AS |
9914 | grep -v '^ *+' conftest.er1 >conftest.err |
9915 | rm -f conftest.er1 | |
9916 | cat conftest.err >&5 | |
c0d27fcc | 9917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9918 | (exit $ac_status); } && |
35996d22 AS |
9919 | { ac_try='test -z "$ac_c_werror_flag" |
9920 | || test ! -s conftest.err' | |
9921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9922 | (eval $ac_try) 2>&5 | |
9923 | ac_status=$? | |
9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9925 | (exit $ac_status); }; } && | |
9926 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9928 | (eval $ac_try) 2>&5 |
9929 | ac_status=$? | |
c0d27fcc | 9930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9931 | (exit $ac_status); }; }; then |
9932 | emacs_cv_x11_toolkit_version_6=yes | |
9933 | else | |
9934 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9935 | sed 's/^/| /' conftest.$ac_ext >&5 |
9936 | ||
98418dba CW |
9937 | emacs_cv_x11_toolkit_version_6=no |
9938 | fi | |
35996d22 AS |
9939 | rm -f conftest.err conftest.$ac_objext \ |
9940 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9941 | fi |
9942 | ||
9943 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
9944 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
c0d27fcc | 9945 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 9946 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 9947 | |
c0d27fcc | 9948 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9949 | #define HAVE_X11XTR6 1 |
c0d27fcc | 9950 | _ACEOF |
98418dba CW |
9951 | |
9952 | else | |
c0d27fcc | 9953 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
9954 | echo "${ECHO_T}before 6" >&6 |
9955 | fi | |
9956 | ||
9957 | OLDLIBS="$LIBS" | |
9958 | if test x$HAVE_X11XTR6 = xyes; then | |
9959 | LIBS="-lXt -lSM -lICE $LIBS" | |
9960 | else | |
9961 | LIBS="-lXt $LIBS" | |
9962 | fi | |
9963 | ||
c0d27fcc | 9964 | echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
98418dba CW |
9965 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
9966 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
9967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9968 | else | |
9969 | ac_check_lib_save_LIBS=$LIBS | |
9970 | LIBS="-lXmu $LIBS" | |
9971 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9972 | /* confdefs.h. */ |
9973 | _ACEOF | |
9974 | cat confdefs.h >>conftest.$ac_ext | |
9975 | cat >>conftest.$ac_ext <<_ACEOF | |
9976 | /* end confdefs.h. */ | |
98418dba CW |
9977 | |
9978 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9979 | #ifdef __cplusplus | |
9980 | extern "C" | |
9981 | #endif | |
9982 | /* We use char because int might match the return type of a gcc2 | |
9983 | builtin and then its argument prototype would still apply. */ | |
9984 | char XmuConvertStandardSelection (); | |
98418dba CW |
9985 | int |
9986 | main () | |
9987 | { | |
9988 | XmuConvertStandardSelection (); | |
9989 | ; | |
9990 | return 0; | |
9991 | } | |
9992 | _ACEOF | |
9993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9995 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9996 | ac_status=$? |
35996d22 AS |
9997 | grep -v '^ *+' conftest.er1 >conftest.err |
9998 | rm -f conftest.er1 | |
9999 | cat conftest.err >&5 | |
c0d27fcc | 10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10001 | (exit $ac_status); } && |
35996d22 AS |
10002 | { ac_try='test -z "$ac_c_werror_flag" |
10003 | || test ! -s conftest.err' | |
10004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10005 | (eval $ac_try) 2>&5 | |
10006 | ac_status=$? | |
10007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10008 | (exit $ac_status); }; } && | |
10009 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10011 | (eval $ac_try) 2>&5 |
10012 | ac_status=$? | |
c0d27fcc | 10013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10014 | (exit $ac_status); }; }; then |
10015 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
10016 | else | |
10017 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10018 | sed 's/^/| /' conftest.$ac_ext >&5 |
10019 | ||
98418dba CW |
10020 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
10021 | fi | |
35996d22 AS |
10022 | rm -f conftest.err conftest.$ac_objext \ |
10023 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10024 | LIBS=$ac_check_lib_save_LIBS |
10025 | fi | |
c0d27fcc | 10026 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
98418dba CW |
10027 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
10028 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
c0d27fcc | 10029 | cat >>confdefs.h <<_ACEOF |
98418dba | 10030 | #define HAVE_LIBXMU 1 |
c0d27fcc | 10031 | _ACEOF |
98418dba CW |
10032 | |
10033 | LIBS="-lXmu $LIBS" | |
10034 | ||
10035 | fi | |
10036 | ||
10037 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
10038 | fi | |
10039 | ||
10040 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
10041 | if test "${HAVE_X11}" = "yes"; then | |
10042 | if test "${USE_X_TOOLKIT}" != "none"; then | |
10043 | ||
c0d27fcc | 10044 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
98418dba CW |
10045 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
10046 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
10047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10048 | else | |
10049 | ac_check_lib_save_LIBS=$LIBS | |
10050 | LIBS="-lXext $LIBS" | |
10051 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10052 | /* confdefs.h. */ |
10053 | _ACEOF | |
10054 | cat confdefs.h >>conftest.$ac_ext | |
10055 | cat >>conftest.$ac_ext <<_ACEOF | |
10056 | /* end confdefs.h. */ | |
98418dba CW |
10057 | |
10058 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10059 | #ifdef __cplusplus | |
10060 | extern "C" | |
10061 | #endif | |
10062 | /* We use char because int might match the return type of a gcc2 | |
10063 | builtin and then its argument prototype would still apply. */ | |
10064 | char XShapeQueryExtension (); | |
98418dba CW |
10065 | int |
10066 | main () | |
10067 | { | |
10068 | XShapeQueryExtension (); | |
10069 | ; | |
10070 | return 0; | |
10071 | } | |
10072 | _ACEOF | |
10073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10075 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10076 | ac_status=$? |
35996d22 AS |
10077 | grep -v '^ *+' conftest.er1 >conftest.err |
10078 | rm -f conftest.er1 | |
10079 | cat conftest.err >&5 | |
c0d27fcc | 10080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10081 | (exit $ac_status); } && |
35996d22 AS |
10082 | { ac_try='test -z "$ac_c_werror_flag" |
10083 | || test ! -s conftest.err' | |
10084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10085 | (eval $ac_try) 2>&5 | |
10086 | ac_status=$? | |
10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10088 | (exit $ac_status); }; } && | |
10089 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10091 | (eval $ac_try) 2>&5 |
10092 | ac_status=$? | |
c0d27fcc | 10093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10094 | (exit $ac_status); }; }; then |
10095 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
10096 | else | |
10097 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10098 | sed 's/^/| /' conftest.$ac_ext >&5 |
10099 | ||
98418dba CW |
10100 | ac_cv_lib_Xext_XShapeQueryExtension=no |
10101 | fi | |
35996d22 AS |
10102 | rm -f conftest.err conftest.$ac_objext \ |
10103 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10104 | LIBS=$ac_check_lib_save_LIBS |
10105 | fi | |
c0d27fcc | 10106 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
98418dba CW |
10107 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
10108 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
c0d27fcc | 10109 | cat >>confdefs.h <<_ACEOF |
98418dba | 10110 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 10111 | _ACEOF |
98418dba CW |
10112 | |
10113 | LIBS="-lXext $LIBS" | |
10114 | ||
10115 | fi | |
10116 | ||
10117 | fi | |
10118 | fi | |
10119 | ||
10120 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 10121 | echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
8e967cf7 MR |
10122 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 |
10123 | if test "${emacs_cv_lesstif+set}" = set; then | |
10124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10125 | else | |
ae1a998c RS |
10126 | # We put this in CFLAGS temporarily to precede other -I options |
10127 | # that might be in CFLAGS temporarily. | |
10128 | # We put this in CPPFLAGS where it precedes the other -I options. | |
10129 | OLD_CPPFLAGS=$CPPFLAGS | |
10130 | OLD_CFLAGS=$CFLAGS | |
10131 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
10132 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
8e967cf7 | 10133 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10134 | /* confdefs.h. */ |
10135 | _ACEOF | |
10136 | cat confdefs.h >>conftest.$ac_ext | |
10137 | cat >>conftest.$ac_ext <<_ACEOF | |
10138 | /* end confdefs.h. */ | |
8e967cf7 MR |
10139 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
10140 | int | |
10141 | main () | |
10142 | { | |
10143 | int x = 5; | |
10144 | ; | |
10145 | return 0; | |
10146 | } | |
10147 | _ACEOF | |
10148 | rm -f conftest.$ac_objext | |
c0d27fcc | 10149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 10150 | (eval $ac_compile) 2>conftest.er1 |
8e967cf7 | 10151 | ac_status=$? |
35996d22 AS |
10152 | grep -v '^ *+' conftest.er1 >conftest.err |
10153 | rm -f conftest.er1 | |
10154 | cat conftest.err >&5 | |
c0d27fcc | 10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 | 10156 | (exit $ac_status); } && |
35996d22 AS |
10157 | { ac_try='test -z "$ac_c_werror_flag" |
10158 | || test ! -s conftest.err' | |
10159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10160 | (eval $ac_try) 2>&5 | |
10161 | ac_status=$? | |
10162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10163 | (exit $ac_status); }; } && | |
10164 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 10165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8e967cf7 MR |
10166 | (eval $ac_try) 2>&5 |
10167 | ac_status=$? | |
c0d27fcc | 10168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 MR |
10169 | (exit $ac_status); }; }; then |
10170 | emacs_cv_lesstif=yes | |
10171 | else | |
10172 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10173 | sed 's/^/| /' conftest.$ac_ext >&5 |
10174 | ||
8e967cf7 MR |
10175 | emacs_cv_lesstif=no |
10176 | fi | |
35996d22 | 10177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8e967cf7 | 10178 | fi |
c0d27fcc | 10179 | echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
8e967cf7 MR |
10180 | echo "${ECHO_T}$emacs_cv_lesstif" >&6 |
10181 | if test $emacs_cv_lesstif = yes; then | |
ae1a998c RS |
10182 | # Make sure this -I option remains in CPPFLAGS after it is set |
10183 | # back to REAL_CPPFLAGS. | |
10184 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
10185 | # have those other -I options anyway. Ultimately, having this | |
10186 | # directory ultimately in CPPFLAGS will be enough. | |
10187 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
8e967cf7 | 10188 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
ae1a998c RS |
10189 | else |
10190 | CFLAGS=$OLD_CFLAGS | |
10191 | CPPFLAGS=$OLD_CPPFLAGS | |
8e967cf7 | 10192 | fi |
c0d27fcc | 10193 | echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
98418dba CW |
10194 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
10195 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
10196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10197 | else | |
10198 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10199 | /* confdefs.h. */ |
10200 | _ACEOF | |
10201 | cat confdefs.h >>conftest.$ac_ext | |
10202 | cat >>conftest.$ac_ext <<_ACEOF | |
10203 | /* end confdefs.h. */ | |
98418dba | 10204 | #include <Xm/Xm.h> |
98418dba CW |
10205 | int |
10206 | main () | |
10207 | { | |
10208 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
10209 | int x = 5; | |
10210 | #else | |
10211 | Motif version prior to 2.1. | |
10212 | #endif | |
10213 | ; | |
10214 | return 0; | |
10215 | } | |
10216 | _ACEOF | |
10217 | rm -f conftest.$ac_objext | |
c0d27fcc | 10218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 10219 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 10220 | ac_status=$? |
35996d22 AS |
10221 | grep -v '^ *+' conftest.er1 >conftest.err |
10222 | rm -f conftest.er1 | |
10223 | cat conftest.err >&5 | |
c0d27fcc | 10224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10225 | (exit $ac_status); } && |
35996d22 AS |
10226 | { ac_try='test -z "$ac_c_werror_flag" |
10227 | || test ! -s conftest.err' | |
10228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10229 | (eval $ac_try) 2>&5 | |
10230 | ac_status=$? | |
10231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10232 | (exit $ac_status); }; } && | |
10233 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 10234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10235 | (eval $ac_try) 2>&5 |
10236 | ac_status=$? | |
c0d27fcc | 10237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10238 | (exit $ac_status); }; }; then |
10239 | emacs_cv_motif_version_2_1=yes | |
10240 | else | |
10241 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10242 | sed 's/^/| /' conftest.$ac_ext >&5 |
10243 | ||
98418dba CW |
10244 | emacs_cv_motif_version_2_1=no |
10245 | fi | |
35996d22 | 10246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 10247 | fi |
c0d27fcc | 10248 | echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
98418dba CW |
10249 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
10250 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
10251 | if test $emacs_cv_motif_version_2_1 = yes; then | |
10252 | HAVE_LIBXP=no | |
b936fae4 | 10253 | |
c0d27fcc | 10254 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10255 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 10256 | _ACEOF |
98418dba | 10257 | |
c0d27fcc | 10258 | echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
98418dba CW |
10259 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
10260 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
10261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10262 | else | |
10263 | ac_check_lib_save_LIBS=$LIBS | |
10264 | LIBS="-lXp $LIBS" | |
10265 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10266 | /* confdefs.h. */ |
10267 | _ACEOF | |
10268 | cat confdefs.h >>conftest.$ac_ext | |
10269 | cat >>conftest.$ac_ext <<_ACEOF | |
10270 | /* end confdefs.h. */ | |
98418dba CW |
10271 | |
10272 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10273 | #ifdef __cplusplus | |
10274 | extern "C" | |
10275 | #endif | |
10276 | /* We use char because int might match the return type of a gcc2 | |
10277 | builtin and then its argument prototype would still apply. */ | |
10278 | char XpCreateContext (); | |
98418dba CW |
10279 | int |
10280 | main () | |
10281 | { | |
10282 | XpCreateContext (); | |
10283 | ; | |
10284 | return 0; | |
10285 | } | |
10286 | _ACEOF | |
10287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10289 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10290 | ac_status=$? |
35996d22 AS |
10291 | grep -v '^ *+' conftest.er1 >conftest.err |
10292 | rm -f conftest.er1 | |
10293 | cat conftest.err >&5 | |
c0d27fcc | 10294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10295 | (exit $ac_status); } && |
35996d22 AS |
10296 | { ac_try='test -z "$ac_c_werror_flag" |
10297 | || test ! -s conftest.err' | |
10298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10299 | (eval $ac_try) 2>&5 | |
10300 | ac_status=$? | |
10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10302 | (exit $ac_status); }; } && | |
10303 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10305 | (eval $ac_try) 2>&5 |
10306 | ac_status=$? | |
c0d27fcc | 10307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10308 | (exit $ac_status); }; }; then |
10309 | ac_cv_lib_Xp_XpCreateContext=yes | |
10310 | else | |
10311 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10312 | sed 's/^/| /' conftest.$ac_ext >&5 |
10313 | ||
98418dba CW |
10314 | ac_cv_lib_Xp_XpCreateContext=no |
10315 | fi | |
35996d22 AS |
10316 | rm -f conftest.err conftest.$ac_objext \ |
10317 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10318 | LIBS=$ac_check_lib_save_LIBS |
10319 | fi | |
c0d27fcc | 10320 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
98418dba CW |
10321 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
10322 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
10323 | HAVE_LIBXP=yes | |
10324 | fi | |
503d2be0 | 10325 | |
98418dba | 10326 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 10327 | |
c0d27fcc | 10328 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10329 | #define HAVE_LIBXP 1 |
c0d27fcc | 10330 | _ACEOF |
503d2be0 | 10331 | |
98418dba CW |
10332 | fi |
10333 | fi | |
10334 | fi | |
10335 | ||
10336 | ### Is -lXaw3d available? | |
10337 | HAVE_XAW3D=no | |
10338 | if test "${HAVE_X11}" = "yes"; then | |
10339 | if test "${USE_X_TOOLKIT}" != "none"; then | |
22044edf | 10340 | echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 |
98418dba CW |
10341 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
10342 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
10343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 10344 | else |
22044edf | 10345 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10346 | /* confdefs.h. */ |
10347 | _ACEOF | |
10348 | cat confdefs.h >>conftest.$ac_ext | |
10349 | cat >>conftest.$ac_ext <<_ACEOF | |
10350 | /* end confdefs.h. */ | |
98418dba | 10351 | #include <X11/Xaw3d/Scrollbar.h> |
503d2be0 | 10352 | _ACEOF |
c0d27fcc | 10353 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
10354 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10355 | ac_status=$? | |
6bae0ccf | 10356 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
10357 | rm -f conftest.er1 |
10358 | cat conftest.err >&5 | |
c0d27fcc | 10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10360 | (exit $ac_status); } >/dev/null; then |
10361 | if test -s conftest.err; then | |
10362 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 10363 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
10364 | else |
10365 | ac_cpp_err= | |
10366 | fi | |
10367 | else | |
10368 | ac_cpp_err=yes | |
10369 | fi | |
10370 | if test -z "$ac_cpp_err"; then | |
22044edf | 10371 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
ba4481b5 | 10372 | else |
503d2be0 | 10373 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10374 | sed 's/^/| /' conftest.$ac_ext >&5 |
10375 | ||
22044edf | 10376 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
ba4481b5 | 10377 | fi |
503d2be0 | 10378 | rm -f conftest.err conftest.$ac_ext |
98418dba | 10379 | fi |
c0d27fcc | 10380 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
98418dba | 10381 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
98418dba | 10382 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
c0d27fcc | 10383 | echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
98418dba CW |
10384 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
10385 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
10386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10387 | else | |
10388 | ac_check_lib_save_LIBS=$LIBS | |
10389 | LIBS="-lXaw3d $LIBS" | |
10390 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10391 | /* confdefs.h. */ |
10392 | _ACEOF | |
10393 | cat confdefs.h >>conftest.$ac_ext | |
10394 | cat >>conftest.$ac_ext <<_ACEOF | |
10395 | /* end confdefs.h. */ | |
98418dba CW |
10396 | |
10397 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10398 | #ifdef __cplusplus | |
10399 | extern "C" | |
10400 | #endif | |
10401 | /* We use char because int might match the return type of a gcc2 | |
10402 | builtin and then its argument prototype would still apply. */ | |
10403 | char XawScrollbarSetThumb (); | |
503d2be0 AS |
10404 | int |
10405 | main () | |
10406 | { | |
98418dba | 10407 | XawScrollbarSetThumb (); |
503d2be0 AS |
10408 | ; |
10409 | return 0; | |
10410 | } | |
10411 | _ACEOF | |
10412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10414 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 10415 | ac_status=$? |
35996d22 AS |
10416 | grep -v '^ *+' conftest.er1 >conftest.err |
10417 | rm -f conftest.er1 | |
10418 | cat conftest.err >&5 | |
c0d27fcc | 10419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10420 | (exit $ac_status); } && |
35996d22 AS |
10421 | { ac_try='test -z "$ac_c_werror_flag" |
10422 | || test ! -s conftest.err' | |
10423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10424 | (eval $ac_try) 2>&5 | |
10425 | ac_status=$? | |
10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10427 | (exit $ac_status); }; } && | |
10428 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10430 | (eval $ac_try) 2>&5 |
10431 | ac_status=$? | |
c0d27fcc | 10432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10433 | (exit $ac_status); }; }; then |
98418dba | 10434 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
ba4481b5 | 10435 | else |
503d2be0 | 10436 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10437 | sed 's/^/| /' conftest.$ac_ext >&5 |
10438 | ||
98418dba | 10439 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
ba4481b5 | 10440 | fi |
35996d22 AS |
10441 | rm -f conftest.err conftest.$ac_objext \ |
10442 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 10443 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 10444 | fi |
c0d27fcc | 10445 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
98418dba CW |
10446 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
10447 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
10448 | HAVE_XAW3D=yes | |
ba4481b5 | 10449 | fi |
503d2be0 | 10450 | |
ba4481b5 DL |
10451 | fi |
10452 | ||
c0d27fcc | 10453 | |
98418dba | 10454 | if test "${HAVE_XAW3D}" = "yes"; then |
b936fae4 | 10455 | |
c0d27fcc | 10456 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10457 | #define HAVE_XAW3D 1 |
c0d27fcc | 10458 | _ACEOF |
98418dba | 10459 | |
ba4481b5 | 10460 | fi |
98418dba | 10461 | fi |
ba4481b5 DL |
10462 | fi |
10463 | ||
c0d27fcc MR |
10464 | |
10465 | ||
98418dba CW |
10466 | USE_TOOLKIT_SCROLL_BARS=no |
10467 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
10468 | if test "${USE_X_TOOLKIT}" != "none"; then | |
10469 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 10470 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10471 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 10472 | _ACEOF |
98418dba CW |
10473 | |
10474 | HAVE_XAW3D=no | |
10475 | USE_TOOLKIT_SCROLL_BARS=yes | |
10476 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 10477 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10478 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 10479 | _ACEOF |
98418dba CW |
10480 | |
10481 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 10482 | fi |
488dd4c4 JD |
10483 | elif test "${HAVE_GTK}" = "yes"; then |
10484 | cat >>confdefs.h <<\_ACEOF | |
10485 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
10486 | _ACEOF | |
10487 | ||
10488 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
10489 | fi |
10490 | fi | |
10491 | ||
abd39b57 | 10492 | cat >conftest.$ac_ext <<_ACEOF |
abd39b57 AC |
10493 | /* confdefs.h. */ |
10494 | _ACEOF | |
10495 | cat confdefs.h >>conftest.$ac_ext | |
10496 | cat >>conftest.$ac_ext <<_ACEOF | |
10497 | /* end confdefs.h. */ | |
10498 | ||
10499 | #include <X11/Xlib.h> | |
10500 | #include <X11/Xresource.h> | |
10501 | int | |
10502 | main () | |
10503 | { | |
10504 | XIMProc callback; | |
10505 | ; | |
10506 | return 0; | |
10507 | } | |
10508 | _ACEOF | |
10509 | rm -f conftest.$ac_objext | |
10510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10511 | (eval $ac_compile) 2>conftest.er1 |
abd39b57 | 10512 | ac_status=$? |
35996d22 AS |
10513 | grep -v '^ *+' conftest.er1 >conftest.err |
10514 | rm -f conftest.er1 | |
10515 | cat conftest.err >&5 | |
abd39b57 AC |
10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10517 | (exit $ac_status); } && | |
35996d22 AS |
10518 | { ac_try='test -z "$ac_c_werror_flag" |
10519 | || test ! -s conftest.err' | |
10520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10521 | (eval $ac_try) 2>&5 | |
10522 | ac_status=$? | |
10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10524 | (exit $ac_status); }; } && | |
10525 | { ac_try='test -s conftest.$ac_objext' | |
abd39b57 AC |
10526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10527 | (eval $ac_try) 2>&5 | |
10528 | ac_status=$? | |
10529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10530 | (exit $ac_status); }; }; then | |
10531 | HAVE_XIM=yes | |
10532 | ||
10533 | cat >>confdefs.h <<\_ACEOF | |
10534 | #define HAVE_XIM 1 | |
10535 | _ACEOF | |
10536 | ||
10537 | else | |
10538 | echo "$as_me: failed program was:" >&5 | |
10539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10540 | ||
10541 | HAVE_XIM=no | |
10542 | fi | |
35996d22 | 10543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
abd39b57 | 10544 | |
c0d27fcc | 10545 | |
98418dba | 10546 | if test "${with_xim}" != "no"; then |
b936fae4 | 10547 | |
c0d27fcc | 10548 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10549 | #define USE_XIM 1 |
c0d27fcc | 10550 | _ACEOF |
98418dba | 10551 | |
793fa0d7 | 10552 | fi |
abd39b57 AC |
10553 | |
10554 | ||
10555 | if test "${HAVE_XIM}" != "no"; then | |
849d80cf DL |
10556 | late_CFLAGS=$CFLAGS |
10557 | if test "$GCC" = yes; then | |
10558 | CFLAGS="$CFLAGS --pedantic-errors" | |
10559 | fi | |
cffcede7 | 10560 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10561 | /* confdefs.h. */ |
10562 | _ACEOF | |
10563 | cat confdefs.h >>conftest.$ac_ext | |
10564 | cat >>conftest.$ac_ext <<_ACEOF | |
10565 | /* end confdefs.h. */ | |
cffcede7 JD |
10566 | |
10567 | #include <X11/Xlib.h> | |
10568 | #include <X11/Xresource.h> | |
10569 | int | |
10570 | main () | |
10571 | { | |
10572 | Display *display; | |
10573 | XrmDatabase db; | |
10574 | char *res_name; | |
10575 | char *res_class; | |
10576 | XIMProc callback; | |
10577 | XPointer *client_data; | |
849d80cf DL |
10578 | #ifndef __GNUC__ |
10579 | /* If we're not using GCC, it's probably not XFree86, and this is | |
10580 | probably right, but we can't use something like --pedantic-errors. */ | |
10581 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
10582 | char*, XIMProc, XPointer*); | |
10583 | #endif | |
cffcede7 JD |
10584 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
10585 | client_data); | |
10586 | ; | |
10587 | return 0; | |
10588 | } | |
10589 | _ACEOF | |
10590 | rm -f conftest.$ac_objext | |
10591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10592 | (eval $ac_compile) 2>conftest.er1 |
cffcede7 | 10593 | ac_status=$? |
35996d22 AS |
10594 | grep -v '^ *+' conftest.er1 >conftest.err |
10595 | rm -f conftest.er1 | |
10596 | cat conftest.err >&5 | |
cffcede7 JD |
10597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10598 | (exit $ac_status); } && | |
35996d22 AS |
10599 | { ac_try='test -z "$ac_c_werror_flag" |
10600 | || test ! -s conftest.err' | |
10601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10602 | (eval $ac_try) 2>&5 | |
10603 | ac_status=$? | |
10604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10605 | (exit $ac_status); }; } && | |
10606 | { ac_try='test -s conftest.$ac_objext' | |
cffcede7 JD |
10607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10608 | (eval $ac_try) 2>&5 | |
10609 | ac_status=$? | |
10610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10611 | (exit $ac_status); }; }; then | |
10612 | emacs_cv_arg6_star=yes | |
10613 | else | |
10614 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10615 | sed 's/^/| /' conftest.$ac_ext >&5 |
10616 | ||
cffcede7 | 10617 | fi |
35996d22 | 10618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cffcede7 JD |
10619 | |
10620 | if test "$emacs_cv_arg6_star" = yes; then | |
f57bd967 | 10621 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
10622 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
10623 | _ACEOF | |
10624 | ||
10625 | else | |
f57bd967 | 10626 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
10627 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
10628 | _ACEOF | |
10629 | ||
10630 | fi | |
849d80cf | 10631 | CFLAGS=$late_CFLAGS |
98418dba CW |
10632 | fi |
10633 | ||
10634 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
10635 | HAVE_XPM=no | |
10636 | if test "${HAVE_X11}" = "yes"; then | |
10637 | if test "${with_xpm}" != "no"; then | |
c0d27fcc MR |
10638 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
10639 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
98418dba CW |
10640 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
10641 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
10642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
10643 | fi |
10644 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
10645 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 | |
98418dba | 10646 | else |
c0d27fcc MR |
10647 | # Is the header compilable? |
10648 | echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
10649 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 | |
10650 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10651 | /* confdefs.h. */ |
10652 | _ACEOF | |
10653 | cat confdefs.h >>conftest.$ac_ext | |
10654 | cat >>conftest.$ac_ext <<_ACEOF | |
10655 | /* end confdefs.h. */ | |
c0d27fcc MR |
10656 | $ac_includes_default |
10657 | #include <X11/xpm.h> | |
10658 | _ACEOF | |
10659 | rm -f conftest.$ac_objext | |
10660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10661 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 10662 | ac_status=$? |
35996d22 AS |
10663 | grep -v '^ *+' conftest.er1 >conftest.err |
10664 | rm -f conftest.er1 | |
10665 | cat conftest.err >&5 | |
c0d27fcc MR |
10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10667 | (exit $ac_status); } && | |
35996d22 AS |
10668 | { ac_try='test -z "$ac_c_werror_flag" |
10669 | || test ! -s conftest.err' | |
10670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10671 | (eval $ac_try) 2>&5 | |
10672 | ac_status=$? | |
10673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10674 | (exit $ac_status); }; } && | |
10675 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
10676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10677 | (eval $ac_try) 2>&5 | |
10678 | ac_status=$? | |
10679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10680 | (exit $ac_status); }; }; then | |
10681 | ac_header_compiler=yes | |
10682 | else | |
10683 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10684 | sed 's/^/| /' conftest.$ac_ext >&5 |
10685 | ||
c0d27fcc MR |
10686 | ac_header_compiler=no |
10687 | fi | |
35996d22 | 10688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
10689 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10690 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10691 | ||
10692 | # Is the header present? | |
10693 | echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
10694 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 | |
10695 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10696 | /* confdefs.h. */ |
10697 | _ACEOF | |
10698 | cat confdefs.h >>conftest.$ac_ext | |
10699 | cat >>conftest.$ac_ext <<_ACEOF | |
10700 | /* end confdefs.h. */ | |
98418dba CW |
10701 | #include <X11/xpm.h> |
10702 | _ACEOF | |
c0d27fcc | 10703 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
10704 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10705 | ac_status=$? | |
6bae0ccf | 10706 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
10707 | rm -f conftest.er1 |
10708 | cat conftest.err >&5 | |
c0d27fcc | 10709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10710 | (exit $ac_status); } >/dev/null; then |
10711 | if test -s conftest.err; then | |
10712 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 10713 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
10714 | else |
10715 | ac_cpp_err= | |
10716 | fi | |
10717 | else | |
10718 | ac_cpp_err=yes | |
10719 | fi | |
10720 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 10721 | ac_header_preproc=yes |
98418dba CW |
10722 | else |
10723 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10724 | sed 's/^/| /' conftest.$ac_ext >&5 |
10725 | ||
c0d27fcc | 10726 | ac_header_preproc=no |
98418dba CW |
10727 | fi |
10728 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
10729 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10730 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10731 | ||
10732 | # So? What about this header? | |
35996d22 AS |
10733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10734 | yes:no: ) | |
c0d27fcc MR |
10735 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10736 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
10737 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 |
10738 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
10739 | ac_header_preproc=yes | |
19650fd6 | 10740 | ;; |
35996d22 | 10741 | no:yes:* ) |
c0d27fcc MR |
10742 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 |
10743 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
10744 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 |
10745 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
10746 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
10747 | echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
10748 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
10749 | echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 10750 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 10751 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
10752 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 |
10753 | echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
10754 | ( |
10755 | cat <<\_ASBOX | |
35996d22 AS |
10756 | ## ------------------------------------------ ## |
10757 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10758 | ## ------------------------------------------ ## | |
19650fd6 AS |
10759 | _ASBOX |
10760 | ) | | |
10761 | sed "s/^/$as_me: WARNING: /" >&2 | |
10762 | ;; | |
c0d27fcc MR |
10763 | esac |
10764 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
10765 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
10766 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
10767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10768 | else | |
10769 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 10770 | fi |
c0d27fcc | 10771 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
98418dba | 10772 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
c0d27fcc MR |
10773 | |
10774 | fi | |
98418dba | 10775 | if test $ac_cv_header_X11_xpm_h = yes; then |
c0d27fcc | 10776 | echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
98418dba CW |
10777 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
10778 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
503d2be0 | 10779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10780 | else |
98418dba CW |
10781 | ac_check_lib_save_LIBS=$LIBS |
10782 | LIBS="-lXpm -lX11 $LIBS" | |
10783 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10784 | /* confdefs.h. */ |
10785 | _ACEOF | |
10786 | cat confdefs.h >>conftest.$ac_ext | |
10787 | cat >>conftest.$ac_ext <<_ACEOF | |
10788 | /* end confdefs.h. */ | |
98418dba | 10789 | |
ba4481b5 | 10790 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10791 | #ifdef __cplusplus |
10792 | extern "C" | |
10793 | #endif | |
ba4481b5 | 10794 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 10795 | builtin and then its argument prototype would still apply. */ |
98418dba | 10796 | char XpmReadFileToPixmap (); |
503d2be0 AS |
10797 | int |
10798 | main () | |
10799 | { | |
98418dba | 10800 | XpmReadFileToPixmap (); |
503d2be0 AS |
10801 | ; |
10802 | return 0; | |
10803 | } | |
10804 | _ACEOF | |
10805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10807 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 10808 | ac_status=$? |
35996d22 AS |
10809 | grep -v '^ *+' conftest.er1 >conftest.err |
10810 | rm -f conftest.er1 | |
10811 | cat conftest.err >&5 | |
c0d27fcc | 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10813 | (exit $ac_status); } && |
35996d22 AS |
10814 | { ac_try='test -z "$ac_c_werror_flag" |
10815 | || test ! -s conftest.err' | |
10816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10817 | (eval $ac_try) 2>&5 | |
10818 | ac_status=$? | |
10819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10820 | (exit $ac_status); }; } && | |
10821 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10823 | (eval $ac_try) 2>&5 |
10824 | ac_status=$? | |
c0d27fcc | 10825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10826 | (exit $ac_status); }; }; then |
98418dba | 10827 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
10828 | else |
10829 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10830 | sed 's/^/| /' conftest.$ac_ext >&5 |
10831 | ||
98418dba | 10832 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 | 10833 | fi |
35996d22 AS |
10834 | rm -f conftest.err conftest.$ac_objext \ |
10835 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 10836 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 10837 | fi |
c0d27fcc | 10838 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
98418dba CW |
10839 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
10840 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
10841 | HAVE_XPM=yes | |
ba4481b5 DL |
10842 | fi |
10843 | ||
98418dba CW |
10844 | fi |
10845 | ||
c0d27fcc | 10846 | |
98418dba | 10847 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 10848 | echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
98418dba CW |
10849 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
10850 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10851 | /* confdefs.h. */ |
10852 | _ACEOF | |
10853 | cat confdefs.h >>conftest.$ac_ext | |
10854 | cat >>conftest.$ac_ext <<_ACEOF | |
10855 | /* end confdefs.h. */ | |
98418dba CW |
10856 | #include "X11/xpm.h" |
10857 | #ifndef XpmReturnAllocPixels | |
10858 | no_return_alloc_pixels | |
503d2be0 | 10859 | #endif |
ba4481b5 | 10860 | |
98418dba CW |
10861 | _ACEOF |
10862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 10863 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
10864 | HAVE_XPM=no |
10865 | else | |
10866 | HAVE_XPM=yes | |
10867 | fi | |
10868 | rm -f conftest* | |
ba4481b5 | 10869 | |
c0d27fcc | 10870 | |
98418dba | 10871 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 10872 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
10873 | echo "${ECHO_T}yes" >&6 |
10874 | else | |
c0d27fcc | 10875 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
10876 | echo "${ECHO_T}no" >&6 |
10877 | fi | |
10878 | fi | |
10879 | fi | |
10880 | ||
10881 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 10882 | |
c0d27fcc | 10883 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10884 | #define HAVE_XPM 1 |
c0d27fcc | 10885 | _ACEOF |
98418dba CW |
10886 | |
10887 | fi | |
10888 | fi | |
10889 | ||
10890 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
10891 | HAVE_JPEG=no | |
10892 | if test "${HAVE_X11}" = "yes"; then | |
10893 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc MR |
10894 | if test "${ac_cv_header_jerror_h+set}" = set; then |
10895 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
98418dba CW |
10896 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
10897 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
10898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
10899 | fi |
10900 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
10901 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 | |
503d2be0 | 10902 | else |
c0d27fcc MR |
10903 | # Is the header compilable? |
10904 | echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
10905 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 | |
10906 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10907 | /* confdefs.h. */ |
10908 | _ACEOF | |
10909 | cat confdefs.h >>conftest.$ac_ext | |
10910 | cat >>conftest.$ac_ext <<_ACEOF | |
10911 | /* end confdefs.h. */ | |
c0d27fcc MR |
10912 | $ac_includes_default |
10913 | #include <jerror.h> | |
10914 | _ACEOF | |
10915 | rm -f conftest.$ac_objext | |
10916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10917 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 10918 | ac_status=$? |
35996d22 AS |
10919 | grep -v '^ *+' conftest.er1 >conftest.err |
10920 | rm -f conftest.er1 | |
10921 | cat conftest.err >&5 | |
c0d27fcc MR |
10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10923 | (exit $ac_status); } && | |
35996d22 AS |
10924 | { ac_try='test -z "$ac_c_werror_flag" |
10925 | || test ! -s conftest.err' | |
10926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10927 | (eval $ac_try) 2>&5 | |
10928 | ac_status=$? | |
10929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10930 | (exit $ac_status); }; } && | |
10931 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
10932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10933 | (eval $ac_try) 2>&5 | |
10934 | ac_status=$? | |
10935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10936 | (exit $ac_status); }; }; then | |
10937 | ac_header_compiler=yes | |
10938 | else | |
10939 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10940 | sed 's/^/| /' conftest.$ac_ext >&5 |
10941 | ||
c0d27fcc MR |
10942 | ac_header_compiler=no |
10943 | fi | |
35996d22 | 10944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
10945 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10946 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10947 | ||
10948 | # Is the header present? | |
10949 | echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
10950 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 | |
10951 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10952 | /* confdefs.h. */ |
10953 | _ACEOF | |
10954 | cat confdefs.h >>conftest.$ac_ext | |
10955 | cat >>conftest.$ac_ext <<_ACEOF | |
10956 | /* end confdefs.h. */ | |
98418dba CW |
10957 | #include <jerror.h> |
10958 | _ACEOF | |
c0d27fcc | 10959 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
10960 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10961 | ac_status=$? | |
6bae0ccf | 10962 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
10963 | rm -f conftest.er1 |
10964 | cat conftest.err >&5 | |
c0d27fcc | 10965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10966 | (exit $ac_status); } >/dev/null; then |
10967 | if test -s conftest.err; then | |
10968 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 10969 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
10970 | else |
10971 | ac_cpp_err= | |
10972 | fi | |
10973 | else | |
10974 | ac_cpp_err=yes | |
503d2be0 | 10975 | fi |
98418dba | 10976 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 10977 | ac_header_preproc=yes |
ba4481b5 | 10978 | else |
98418dba | 10979 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10980 | sed 's/^/| /' conftest.$ac_ext >&5 |
10981 | ||
c0d27fcc | 10982 | ac_header_preproc=no |
98418dba CW |
10983 | fi |
10984 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
10985 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10986 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10987 | ||
10988 | # So? What about this header? | |
35996d22 AS |
10989 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10990 | yes:no: ) | |
c0d27fcc MR |
10991 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10992 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
10993 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
10994 | echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
10995 | ac_header_preproc=yes | |
19650fd6 | 10996 | ;; |
35996d22 | 10997 | no:yes:* ) |
c0d27fcc MR |
10998 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
10999 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11000 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
11001 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
11002 | { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
11003 | echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
11004 | { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11005 | echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11006 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11007 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11008 | { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
11009 | echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11010 | ( |
11011 | cat <<\_ASBOX | |
35996d22 AS |
11012 | ## ------------------------------------------ ## |
11013 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11014 | ## ------------------------------------------ ## | |
19650fd6 AS |
11015 | _ASBOX |
11016 | ) | | |
11017 | sed "s/^/$as_me: WARNING: /" >&2 | |
11018 | ;; | |
c0d27fcc MR |
11019 | esac |
11020 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
11021 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 | |
11022 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
11023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11024 | else | |
11025 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 11026 | fi |
c0d27fcc | 11027 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
98418dba | 11028 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
c0d27fcc MR |
11029 | |
11030 | fi | |
98418dba | 11031 | if test $ac_cv_header_jerror_h = yes; then |
c0d27fcc | 11032 | echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
98418dba CW |
11033 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
11034 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
503d2be0 | 11035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11036 | else |
98418dba CW |
11037 | ac_check_lib_save_LIBS=$LIBS |
11038 | LIBS="-ljpeg $LIBS" | |
11039 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11040 | /* confdefs.h. */ |
11041 | _ACEOF | |
11042 | cat confdefs.h >>conftest.$ac_ext | |
11043 | cat >>conftest.$ac_ext <<_ACEOF | |
11044 | /* end confdefs.h. */ | |
98418dba CW |
11045 | |
11046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11047 | #ifdef __cplusplus | |
11048 | extern "C" | |
11049 | #endif | |
11050 | /* We use char because int might match the return type of a gcc2 | |
11051 | builtin and then its argument prototype would still apply. */ | |
11052 | char jpeg_destroy_compress (); | |
503d2be0 AS |
11053 | int |
11054 | main () | |
11055 | { | |
98418dba | 11056 | jpeg_destroy_compress (); |
503d2be0 AS |
11057 | ; |
11058 | return 0; | |
11059 | } | |
11060 | _ACEOF | |
11061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11063 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11064 | ac_status=$? |
35996d22 AS |
11065 | grep -v '^ *+' conftest.er1 >conftest.err |
11066 | rm -f conftest.er1 | |
11067 | cat conftest.err >&5 | |
c0d27fcc | 11068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11069 | (exit $ac_status); } && |
35996d22 AS |
11070 | { ac_try='test -z "$ac_c_werror_flag" |
11071 | || test ! -s conftest.err' | |
11072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11073 | (eval $ac_try) 2>&5 | |
11074 | ac_status=$? | |
11075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11076 | (exit $ac_status); }; } && | |
11077 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11079 | (eval $ac_try) 2>&5 |
11080 | ac_status=$? | |
c0d27fcc | 11081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11082 | (exit $ac_status); }; }; then |
98418dba | 11083 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 11084 | else |
503d2be0 | 11085 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11086 | sed 's/^/| /' conftest.$ac_ext >&5 |
11087 | ||
98418dba | 11088 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 11089 | fi |
35996d22 AS |
11090 | rm -f conftest.err conftest.$ac_objext \ |
11091 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 11092 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 11093 | fi |
c0d27fcc | 11094 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
98418dba CW |
11095 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
11096 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
11097 | HAVE_JPEG=yes | |
ba4481b5 | 11098 | fi |
98418dba | 11099 | |
ba4481b5 | 11100 | fi |
98418dba | 11101 | |
c0d27fcc | 11102 | |
ba4481b5 | 11103 | fi |
ba4481b5 | 11104 | |
c0d27fcc | 11105 | |
98418dba | 11106 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 11107 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11108 | #define HAVE_JPEG 1 |
c0d27fcc | 11109 | _ACEOF |
98418dba CW |
11110 | |
11111 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11112 | /* confdefs.h. */ |
11113 | _ACEOF | |
11114 | cat confdefs.h >>conftest.$ac_ext | |
11115 | cat >>conftest.$ac_ext <<_ACEOF | |
11116 | /* end confdefs.h. */ | |
22044edf | 11117 | #include <jpeglib.h> |
98418dba CW |
11118 | version=JPEG_LIB_VERSION |
11119 | ||
11120 | _ACEOF | |
11121 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 11122 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 11123 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11124 | #define HAVE_JPEG 1 |
c0d27fcc | 11125 | _ACEOF |
ba4481b5 | 11126 | |
98418dba | 11127 | else |
c0d27fcc | 11128 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
11129 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
11130 | HAVE_JPEG=no | |
ba4481b5 | 11131 | fi |
98418dba | 11132 | rm -f conftest* |
ba4481b5 | 11133 | |
98418dba CW |
11134 | fi |
11135 | fi | |
503d2be0 | 11136 | |
98418dba CW |
11137 | ### Use -lpng if available, unless `--with-png=no'. |
11138 | HAVE_PNG=no | |
11139 | if test "${HAVE_X11}" = "yes"; then | |
11140 | if test "${with_png}" != "no"; then | |
f57bd967 DL |
11141 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
11142 | # in /usr/include/libpng. | |
11143 | ||
11144 | ||
11145 | for ac_header in png.h libpng/png.h | |
11146 | do | |
11147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11149 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11150 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11151 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 11152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 11153 | fi |
f57bd967 DL |
11154 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11155 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
503d2be0 | 11156 | else |
c0d27fcc | 11157 | # Is the header compilable? |
f57bd967 DL |
11158 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11159 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
c0d27fcc | 11160 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11161 | /* confdefs.h. */ |
11162 | _ACEOF | |
11163 | cat confdefs.h >>conftest.$ac_ext | |
11164 | cat >>conftest.$ac_ext <<_ACEOF | |
11165 | /* end confdefs.h. */ | |
c0d27fcc | 11166 | $ac_includes_default |
f57bd967 | 11167 | #include <$ac_header> |
c0d27fcc MR |
11168 | _ACEOF |
11169 | rm -f conftest.$ac_objext | |
11170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11171 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11172 | ac_status=$? |
35996d22 AS |
11173 | grep -v '^ *+' conftest.er1 >conftest.err |
11174 | rm -f conftest.er1 | |
11175 | cat conftest.err >&5 | |
c0d27fcc MR |
11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11177 | (exit $ac_status); } && | |
35996d22 AS |
11178 | { ac_try='test -z "$ac_c_werror_flag" |
11179 | || test ! -s conftest.err' | |
11180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11181 | (eval $ac_try) 2>&5 | |
11182 | ac_status=$? | |
11183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11184 | (exit $ac_status); }; } && | |
11185 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11187 | (eval $ac_try) 2>&5 | |
11188 | ac_status=$? | |
11189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11190 | (exit $ac_status); }; }; then | |
11191 | ac_header_compiler=yes | |
11192 | else | |
11193 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11194 | sed 's/^/| /' conftest.$ac_ext >&5 |
11195 | ||
c0d27fcc MR |
11196 | ac_header_compiler=no |
11197 | fi | |
35996d22 | 11198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11199 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11200 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11201 | ||
11202 | # Is the header present? | |
f57bd967 DL |
11203 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11204 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
c0d27fcc | 11205 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11206 | /* confdefs.h. */ |
11207 | _ACEOF | |
11208 | cat confdefs.h >>conftest.$ac_ext | |
11209 | cat >>conftest.$ac_ext <<_ACEOF | |
11210 | /* end confdefs.h. */ | |
f57bd967 | 11211 | #include <$ac_header> |
503d2be0 | 11212 | _ACEOF |
c0d27fcc | 11213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11215 | ac_status=$? | |
6bae0ccf | 11216 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
11217 | rm -f conftest.er1 |
11218 | cat conftest.err >&5 | |
c0d27fcc | 11219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11220 | (exit $ac_status); } >/dev/null; then |
11221 | if test -s conftest.err; then | |
11222 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
11224 | else |
11225 | ac_cpp_err= | |
11226 | fi | |
11227 | else | |
11228 | ac_cpp_err=yes | |
11229 | fi | |
11230 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11231 | ac_header_preproc=yes |
503d2be0 AS |
11232 | else |
11233 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11234 | sed 's/^/| /' conftest.$ac_ext >&5 |
11235 | ||
c0d27fcc | 11236 | ac_header_preproc=no |
ba4481b5 | 11237 | fi |
503d2be0 | 11238 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
11239 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11240 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11241 | ||
11242 | # So? What about this header? | |
35996d22 AS |
11243 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11244 | yes:no: ) | |
f57bd967 DL |
11245 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11246 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11248 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11249 | ac_header_preproc=yes | |
19650fd6 | 11250 | ;; |
35996d22 | 11251 | no:yes:* ) |
f57bd967 DL |
11252 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11253 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
11254 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11255 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11256 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11257 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11258 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11259 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f57bd967 | 11260 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11261 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11262 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11263 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11264 | ( |
11265 | cat <<\_ASBOX | |
35996d22 AS |
11266 | ## ------------------------------------------ ## |
11267 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11268 | ## ------------------------------------------ ## | |
19650fd6 AS |
11269 | _ASBOX |
11270 | ) | | |
11271 | sed "s/^/$as_me: WARNING: /" >&2 | |
11272 | ;; | |
c0d27fcc | 11273 | esac |
f57bd967 DL |
11274 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11276 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
c0d27fcc MR |
11277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11278 | else | |
35996d22 | 11279 | eval "$as_ac_Header=\$ac_header_preproc" |
f57bd967 DL |
11280 | fi |
11281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11283 | ||
ba4481b5 | 11284 | fi |
f57bd967 DL |
11285 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11286 | cat >>confdefs.h <<_ACEOF | |
11287 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11288 | _ACEOF | |
c0d27fcc MR |
11289 | |
11290 | fi | |
f57bd967 DL |
11291 | |
11292 | done | |
11293 | ||
11294 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
11295 | echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 | |
98418dba CW |
11296 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
11297 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
503d2be0 | 11298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11299 | else |
98418dba CW |
11300 | ac_check_lib_save_LIBS=$LIBS |
11301 | LIBS="-lpng -lz -lm $LIBS" | |
11302 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11303 | /* confdefs.h. */ |
11304 | _ACEOF | |
11305 | cat confdefs.h >>conftest.$ac_ext | |
11306 | cat >>conftest.$ac_ext <<_ACEOF | |
11307 | /* end confdefs.h. */ | |
98418dba | 11308 | |
ba4481b5 | 11309 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11310 | #ifdef __cplusplus |
11311 | extern "C" | |
11312 | #endif | |
ba4481b5 | 11313 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11314 | builtin and then its argument prototype would still apply. */ |
98418dba | 11315 | char png_get_channels (); |
503d2be0 AS |
11316 | int |
11317 | main () | |
11318 | { | |
98418dba | 11319 | png_get_channels (); |
503d2be0 AS |
11320 | ; |
11321 | return 0; | |
11322 | } | |
11323 | _ACEOF | |
11324 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11326 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11327 | ac_status=$? |
35996d22 AS |
11328 | grep -v '^ *+' conftest.er1 >conftest.err |
11329 | rm -f conftest.er1 | |
11330 | cat conftest.err >&5 | |
c0d27fcc | 11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 11332 | (exit $ac_status); } && |
35996d22 AS |
11333 | { ac_try='test -z "$ac_c_werror_flag" |
11334 | || test ! -s conftest.err' | |
11335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11336 | (eval $ac_try) 2>&5 | |
11337 | ac_status=$? | |
11338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11339 | (exit $ac_status); }; } && | |
11340 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11342 | (eval $ac_try) 2>&5 |
11343 | ac_status=$? | |
c0d27fcc | 11344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11345 | (exit $ac_status); }; }; then |
98418dba | 11346 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 11347 | else |
98418dba | 11348 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11349 | sed 's/^/| /' conftest.$ac_ext >&5 |
11350 | ||
98418dba | 11351 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 11352 | fi |
35996d22 AS |
11353 | rm -f conftest.err conftest.$ac_objext \ |
11354 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 11355 | LIBS=$ac_check_lib_save_LIBS |
73b77ee5 | 11356 | fi |
c0d27fcc | 11357 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
98418dba CW |
11358 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
11359 | if test $ac_cv_lib_png_png_get_channels = yes; then | |
11360 | HAVE_PNG=yes | |
73b77ee5 | 11361 | fi |
503d2be0 | 11362 | |
f57bd967 | 11363 | fi |
98418dba CW |
11364 | fi |
11365 | ||
11366 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 11367 | |
c0d27fcc | 11368 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11369 | #define HAVE_PNG 1 |
c0d27fcc | 11370 | _ACEOF |
73b77ee5 | 11371 | |
98418dba | 11372 | fi |
73b77ee5 GM |
11373 | fi |
11374 | ||
98418dba CW |
11375 | ### Use -ltiff if available, unless `--with-tiff=no'. |
11376 | HAVE_TIFF=no | |
11377 | if test "${HAVE_X11}" = "yes"; then | |
11378 | if test "${with_tiff}" != "no"; then | |
c0d27fcc MR |
11379 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
11380 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
98418dba CW |
11381 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
11382 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
11383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11384 | fi |
11385 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
11386 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
98418dba | 11387 | else |
c0d27fcc MR |
11388 | # Is the header compilable? |
11389 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
11390 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
11391 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11392 | /* confdefs.h. */ |
11393 | _ACEOF | |
11394 | cat confdefs.h >>conftest.$ac_ext | |
11395 | cat >>conftest.$ac_ext <<_ACEOF | |
11396 | /* end confdefs.h. */ | |
c0d27fcc MR |
11397 | $ac_includes_default |
11398 | #include <tiffio.h> | |
11399 | _ACEOF | |
11400 | rm -f conftest.$ac_objext | |
11401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11402 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11403 | ac_status=$? |
35996d22 AS |
11404 | grep -v '^ *+' conftest.er1 >conftest.err |
11405 | rm -f conftest.er1 | |
11406 | cat conftest.err >&5 | |
c0d27fcc MR |
11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11408 | (exit $ac_status); } && | |
35996d22 AS |
11409 | { ac_try='test -z "$ac_c_werror_flag" |
11410 | || test ! -s conftest.err' | |
11411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11412 | (eval $ac_try) 2>&5 | |
11413 | ac_status=$? | |
11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11415 | (exit $ac_status); }; } && | |
11416 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11418 | (eval $ac_try) 2>&5 | |
11419 | ac_status=$? | |
11420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11421 | (exit $ac_status); }; }; then | |
11422 | ac_header_compiler=yes | |
11423 | else | |
11424 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11425 | sed 's/^/| /' conftest.$ac_ext >&5 |
11426 | ||
c0d27fcc MR |
11427 | ac_header_compiler=no |
11428 | fi | |
35996d22 | 11429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11431 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11432 | ||
11433 | # Is the header present? | |
11434 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
11435 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
11436 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11437 | /* confdefs.h. */ |
11438 | _ACEOF | |
11439 | cat confdefs.h >>conftest.$ac_ext | |
11440 | cat >>conftest.$ac_ext <<_ACEOF | |
11441 | /* end confdefs.h. */ | |
98418dba CW |
11442 | #include <tiffio.h> |
11443 | _ACEOF | |
c0d27fcc | 11444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11446 | ac_status=$? | |
6bae0ccf | 11447 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11448 | rm -f conftest.er1 |
11449 | cat conftest.err >&5 | |
c0d27fcc | 11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11451 | (exit $ac_status); } >/dev/null; then |
11452 | if test -s conftest.err; then | |
11453 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11455 | else |
11456 | ac_cpp_err= | |
11457 | fi | |
11458 | else | |
11459 | ac_cpp_err=yes | |
11460 | fi | |
11461 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11462 | ac_header_preproc=yes |
98418dba CW |
11463 | else |
11464 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11465 | sed 's/^/| /' conftest.$ac_ext >&5 |
11466 | ||
c0d27fcc | 11467 | ac_header_preproc=no |
98418dba CW |
11468 | fi |
11469 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11471 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11472 | ||
11473 | # So? What about this header? | |
35996d22 AS |
11474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11475 | yes:no: ) | |
c0d27fcc MR |
11476 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11477 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11478 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
11479 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
11480 | ac_header_preproc=yes | |
19650fd6 | 11481 | ;; |
35996d22 | 11482 | no:yes:* ) |
c0d27fcc MR |
11483 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
11484 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11485 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
11486 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
11487 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
11488 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
11489 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11490 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11491 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11492 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11493 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
11494 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11495 | ( |
11496 | cat <<\_ASBOX | |
35996d22 AS |
11497 | ## ------------------------------------------ ## |
11498 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11499 | ## ------------------------------------------ ## | |
19650fd6 AS |
11500 | _ASBOX |
11501 | ) | | |
11502 | sed "s/^/$as_me: WARNING: /" >&2 | |
11503 | ;; | |
c0d27fcc MR |
11504 | esac |
11505 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
11506 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
11507 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
11508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11509 | else | |
11510 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 11511 | fi |
c0d27fcc | 11512 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
98418dba | 11513 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
c0d27fcc MR |
11514 | |
11515 | fi | |
98418dba CW |
11516 | if test $ac_cv_header_tiffio_h = yes; then |
11517 | tifflibs="-lz -lm" | |
11518 | # At least one tiff package requires the jpeg library. | |
11519 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
c0d27fcc | 11520 | echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
98418dba CW |
11521 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
11522 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
503d2be0 | 11523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 11524 | else |
503d2be0 | 11525 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 11526 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 11527 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11528 | /* confdefs.h. */ |
11529 | _ACEOF | |
11530 | cat confdefs.h >>conftest.$ac_ext | |
11531 | cat >>conftest.$ac_ext <<_ACEOF | |
11532 | /* end confdefs.h. */ | |
503d2be0 | 11533 | |
73b77ee5 | 11534 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11535 | #ifdef __cplusplus |
11536 | extern "C" | |
11537 | #endif | |
73b77ee5 | 11538 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11539 | builtin and then its argument prototype would still apply. */ |
98418dba | 11540 | char TIFFGetVersion (); |
503d2be0 AS |
11541 | int |
11542 | main () | |
11543 | { | |
98418dba | 11544 | TIFFGetVersion (); |
503d2be0 AS |
11545 | ; |
11546 | return 0; | |
11547 | } | |
11548 | _ACEOF | |
11549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11551 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11552 | ac_status=$? |
35996d22 AS |
11553 | grep -v '^ *+' conftest.er1 >conftest.err |
11554 | rm -f conftest.er1 | |
11555 | cat conftest.err >&5 | |
c0d27fcc | 11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11557 | (exit $ac_status); } && |
35996d22 AS |
11558 | { ac_try='test -z "$ac_c_werror_flag" |
11559 | || test ! -s conftest.err' | |
11560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11561 | (eval $ac_try) 2>&5 | |
11562 | ac_status=$? | |
11563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11564 | (exit $ac_status); }; } && | |
11565 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11567 | (eval $ac_try) 2>&5 |
11568 | ac_status=$? | |
c0d27fcc | 11569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11570 | (exit $ac_status); }; }; then |
98418dba | 11571 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
11572 | else |
11573 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11574 | sed 's/^/| /' conftest.$ac_ext >&5 |
11575 | ||
98418dba | 11576 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 | 11577 | fi |
35996d22 AS |
11578 | rm -f conftest.err conftest.$ac_objext \ |
11579 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
11580 | LIBS=$ac_check_lib_save_LIBS |
11581 | fi | |
c0d27fcc | 11582 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
98418dba CW |
11583 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
11584 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
11585 | HAVE_TIFF=yes | |
11586 | fi | |
11587 | ||
11588 | fi | |
73b77ee5 | 11589 | |
c0d27fcc | 11590 | |
98418dba CW |
11591 | fi |
11592 | ||
11593 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 11594 | |
c0d27fcc | 11595 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11596 | #define HAVE_TIFF 1 |
c0d27fcc | 11597 | _ACEOF |
98418dba CW |
11598 | |
11599 | fi | |
73b77ee5 GM |
11600 | fi |
11601 | ||
98418dba CW |
11602 | ### Use -lgif if available, unless `--with-gif=no'. |
11603 | HAVE_GIF=no | |
11604 | if test "${HAVE_X11}" = "yes"; then | |
11605 | if test "${with_gif}" != "no"; then | |
c0d27fcc MR |
11606 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
11607 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
98418dba CW |
11608 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
11609 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
11610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11611 | fi |
11612 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
11613 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
98418dba | 11614 | else |
c0d27fcc MR |
11615 | # Is the header compilable? |
11616 | echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
11617 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 | |
11618 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11619 | /* confdefs.h. */ |
11620 | _ACEOF | |
11621 | cat confdefs.h >>conftest.$ac_ext | |
11622 | cat >>conftest.$ac_ext <<_ACEOF | |
11623 | /* end confdefs.h. */ | |
c0d27fcc MR |
11624 | $ac_includes_default |
11625 | #include <gif_lib.h> | |
11626 | _ACEOF | |
11627 | rm -f conftest.$ac_objext | |
11628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11629 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11630 | ac_status=$? |
35996d22 AS |
11631 | grep -v '^ *+' conftest.er1 >conftest.err |
11632 | rm -f conftest.er1 | |
11633 | cat conftest.err >&5 | |
c0d27fcc MR |
11634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11635 | (exit $ac_status); } && | |
35996d22 AS |
11636 | { ac_try='test -z "$ac_c_werror_flag" |
11637 | || test ! -s conftest.err' | |
11638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11639 | (eval $ac_try) 2>&5 | |
11640 | ac_status=$? | |
11641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11642 | (exit $ac_status); }; } && | |
11643 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11645 | (eval $ac_try) 2>&5 | |
11646 | ac_status=$? | |
11647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11648 | (exit $ac_status); }; }; then | |
11649 | ac_header_compiler=yes | |
11650 | else | |
11651 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11652 | sed 's/^/| /' conftest.$ac_ext >&5 |
11653 | ||
c0d27fcc MR |
11654 | ac_header_compiler=no |
11655 | fi | |
35996d22 | 11656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11657 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11658 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11659 | ||
11660 | # Is the header present? | |
11661 | echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
11662 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 | |
11663 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11664 | /* confdefs.h. */ |
11665 | _ACEOF | |
11666 | cat confdefs.h >>conftest.$ac_ext | |
11667 | cat >>conftest.$ac_ext <<_ACEOF | |
11668 | /* end confdefs.h. */ | |
98418dba CW |
11669 | #include <gif_lib.h> |
11670 | _ACEOF | |
c0d27fcc | 11671 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11672 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11673 | ac_status=$? | |
6bae0ccf | 11674 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11675 | rm -f conftest.er1 |
11676 | cat conftest.err >&5 | |
c0d27fcc | 11677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11678 | (exit $ac_status); } >/dev/null; then |
11679 | if test -s conftest.err; then | |
11680 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11681 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11682 | else |
11683 | ac_cpp_err= | |
11684 | fi | |
11685 | else | |
11686 | ac_cpp_err=yes | |
11687 | fi | |
11688 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11689 | ac_header_preproc=yes |
98418dba CW |
11690 | else |
11691 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11692 | sed 's/^/| /' conftest.$ac_ext >&5 |
11693 | ||
c0d27fcc | 11694 | ac_header_preproc=no |
98418dba CW |
11695 | fi |
11696 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11697 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11698 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11699 | ||
11700 | # So? What about this header? | |
35996d22 AS |
11701 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11702 | yes:no: ) | |
c0d27fcc MR |
11703 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11704 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11705 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 |
11706 | echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
11707 | ac_header_preproc=yes | |
19650fd6 | 11708 | ;; |
35996d22 | 11709 | no:yes:* ) |
c0d27fcc MR |
11710 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 |
11711 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11712 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
11713 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
11714 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
11715 | echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
11716 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11717 | echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11718 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11719 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11720 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 |
11721 | echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11722 | ( |
11723 | cat <<\_ASBOX | |
35996d22 AS |
11724 | ## ------------------------------------------ ## |
11725 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11726 | ## ------------------------------------------ ## | |
19650fd6 AS |
11727 | _ASBOX |
11728 | ) | | |
11729 | sed "s/^/$as_me: WARNING: /" >&2 | |
11730 | ;; | |
c0d27fcc MR |
11731 | esac |
11732 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
11733 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
11734 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
11735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11736 | else | |
11737 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 11738 | fi |
c0d27fcc | 11739 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
98418dba | 11740 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
c0d27fcc MR |
11741 | |
11742 | fi | |
98418dba CW |
11743 | if test $ac_cv_header_gif_lib_h = yes; then |
11744 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
11745 | # Earlier versions can crash Emacs. | |
c0d27fcc | 11746 | echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 |
98418dba CW |
11747 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
11748 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 11749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 11750 | else |
503d2be0 | 11751 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 11752 | LIBS="-lungif $LIBS" |
503d2be0 | 11753 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11754 | /* confdefs.h. */ |
11755 | _ACEOF | |
11756 | cat confdefs.h >>conftest.$ac_ext | |
11757 | cat >>conftest.$ac_ext <<_ACEOF | |
11758 | /* end confdefs.h. */ | |
73b77ee5 | 11759 | |
98418dba CW |
11760 | /* Override any gcc2 internal prototype to avoid an error. */ |
11761 | #ifdef __cplusplus | |
11762 | extern "C" | |
11763 | #endif | |
11764 | /* We use char because int might match the return type of a gcc2 | |
11765 | builtin and then its argument prototype would still apply. */ | |
11766 | char EGifPutExtensionLast (); | |
503d2be0 AS |
11767 | int |
11768 | main () | |
11769 | { | |
98418dba | 11770 | EGifPutExtensionLast (); |
503d2be0 AS |
11771 | ; |
11772 | return 0; | |
11773 | } | |
11774 | _ACEOF | |
11775 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11777 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11778 | ac_status=$? |
35996d22 AS |
11779 | grep -v '^ *+' conftest.er1 >conftest.err |
11780 | rm -f conftest.er1 | |
11781 | cat conftest.err >&5 | |
c0d27fcc | 11782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 11783 | (exit $ac_status); } && |
35996d22 AS |
11784 | { ac_try='test -z "$ac_c_werror_flag" |
11785 | || test ! -s conftest.err' | |
c0d27fcc | 11786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
11787 | (eval $ac_try) 2>&5 |
11788 | ac_status=$? | |
c0d27fcc | 11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
11790 | (exit $ac_status); }; } && |
11791 | { ac_try='test -s conftest$ac_exeext' | |
11792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11793 | (eval $ac_try) 2>&5 | |
11794 | ac_status=$? | |
11795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11796 | (exit $ac_status); }; }; then | |
11797 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
11798 | else | |
98418dba | 11799 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11800 | sed 's/^/| /' conftest.$ac_ext >&5 |
11801 | ||
98418dba CW |
11802 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
11803 | fi | |
35996d22 AS |
11804 | rm -f conftest.err conftest.$ac_objext \ |
11805 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
11806 | LIBS=$ac_check_lib_save_LIBS |
11807 | fi | |
c0d27fcc | 11808 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
98418dba CW |
11809 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
11810 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
11811 | HAVE_GIF=yes | |
11812 | fi | |
11813 | ||
11814 | fi | |
11815 | ||
c0d27fcc | 11816 | |
98418dba CW |
11817 | fi |
11818 | ||
11819 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 11820 | |
c0d27fcc | 11821 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11822 | #define HAVE_GIF 1 |
c0d27fcc | 11823 | _ACEOF |
98418dba CW |
11824 | |
11825 | fi | |
11826 | fi | |
11827 | ||
c0d27fcc MR |
11828 | ### Use Mac OS X Carbon API to implement GUI. |
11829 | HAVE_CARBON=no | |
11830 | if test "${with_carbon}" != "no"; then | |
11831 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11832 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
11833 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
11834 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11836 | fi | |
11837 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 | |
11838 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 | |
11839 | else | |
11840 | # Is the header compilable? | |
11841 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 | |
11842 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 | |
11843 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11844 | /* confdefs.h. */ |
11845 | _ACEOF | |
11846 | cat confdefs.h >>conftest.$ac_ext | |
11847 | cat >>conftest.$ac_ext <<_ACEOF | |
11848 | /* end confdefs.h. */ | |
c0d27fcc MR |
11849 | $ac_includes_default |
11850 | #include <Carbon/Carbon.h> | |
11851 | _ACEOF | |
11852 | rm -f conftest.$ac_objext | |
11853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11854 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11855 | ac_status=$? |
35996d22 AS |
11856 | grep -v '^ *+' conftest.er1 >conftest.err |
11857 | rm -f conftest.er1 | |
11858 | cat conftest.err >&5 | |
c0d27fcc MR |
11859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11860 | (exit $ac_status); } && | |
35996d22 AS |
11861 | { ac_try='test -z "$ac_c_werror_flag" |
11862 | || test ! -s conftest.err' | |
11863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11864 | (eval $ac_try) 2>&5 | |
11865 | ac_status=$? | |
11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11867 | (exit $ac_status); }; } && | |
11868 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11870 | (eval $ac_try) 2>&5 | |
11871 | ac_status=$? | |
11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11873 | (exit $ac_status); }; }; then | |
11874 | ac_header_compiler=yes | |
11875 | else | |
11876 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11877 | sed 's/^/| /' conftest.$ac_ext >&5 |
11878 | ||
c0d27fcc MR |
11879 | ac_header_compiler=no |
11880 | fi | |
35996d22 | 11881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11882 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11883 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11884 | ||
11885 | # Is the header present? | |
11886 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 | |
11887 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 | |
11888 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11889 | /* confdefs.h. */ |
11890 | _ACEOF | |
11891 | cat confdefs.h >>conftest.$ac_ext | |
11892 | cat >>conftest.$ac_ext <<_ACEOF | |
11893 | /* end confdefs.h. */ | |
e0f712ba AC |
11894 | #include <Carbon/Carbon.h> |
11895 | _ACEOF | |
c0d27fcc | 11896 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
e0f712ba AC |
11897 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11898 | ac_status=$? | |
6bae0ccf | 11899 | grep -v '^ *+' conftest.er1 >conftest.err |
e0f712ba AC |
11900 | rm -f conftest.er1 |
11901 | cat conftest.err >&5 | |
c0d27fcc | 11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e0f712ba AC |
11903 | (exit $ac_status); } >/dev/null; then |
11904 | if test -s conftest.err; then | |
11905 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11906 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e0f712ba AC |
11907 | else |
11908 | ac_cpp_err= | |
11909 | fi | |
11910 | else | |
11911 | ac_cpp_err=yes | |
11912 | fi | |
11913 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11914 | ac_header_preproc=yes |
e0f712ba AC |
11915 | else |
11916 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11917 | sed 's/^/| /' conftest.$ac_ext >&5 |
11918 | ||
c0d27fcc | 11919 | ac_header_preproc=no |
e0f712ba AC |
11920 | fi |
11921 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11922 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11923 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11924 | ||
11925 | # So? What about this header? | |
35996d22 AS |
11926 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11927 | yes:no: ) | |
c0d27fcc MR |
11928 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11929 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11930 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
11931 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} | |
11932 | ac_header_preproc=yes | |
19650fd6 | 11933 | ;; |
35996d22 | 11934 | no:yes:* ) |
c0d27fcc MR |
11935 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
11936 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11937 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
11938 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
11939 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 | |
11940 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} | |
11941 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11942 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11943 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11944 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11945 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
11946 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11947 | ( |
11948 | cat <<\_ASBOX | |
35996d22 AS |
11949 | ## ------------------------------------------ ## |
11950 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11951 | ## ------------------------------------------ ## | |
19650fd6 AS |
11952 | _ASBOX |
11953 | ) | | |
11954 | sed "s/^/$as_me: WARNING: /" >&2 | |
11955 | ;; | |
c0d27fcc MR |
11956 | esac |
11957 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
11958 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
11959 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11961 | else | |
11962 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
e0f712ba | 11963 | fi |
c0d27fcc | 11964 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
e0f712ba | 11965 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
c0d27fcc MR |
11966 | |
11967 | fi | |
e0f712ba AC |
11968 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
11969 | HAVE_CARBON=yes | |
11970 | fi | |
11971 | ||
c0d27fcc | 11972 | |
e0f712ba AC |
11973 | fi |
11974 | ||
11975 | if test "${HAVE_CARBON}" = "yes"; then | |
e3ba1015 | 11976 | |
c0d27fcc | 11977 | cat >>confdefs.h <<\_ACEOF |
e0f712ba | 11978 | #define HAVE_CARBON 1 |
c0d27fcc | 11979 | _ACEOF |
e0f712ba | 11980 | |
6a3a24fa JD |
11981 | window_system=mac |
11982 | ## Specify the install directory | |
11983 | carbon_appdir= | |
11984 | if test "${carbon_appdir_x}" != ""; then | |
11985 | case ${carbon_appdir_x} in | |
11986 | y | ye | yes) carbon_appdir=/Applications ;; | |
11987 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
11988 | esac | |
11989 | fi | |
8f417b3b AS |
11990 | # We also have mouse menus. |
11991 | HAVE_MENUS=yes | |
e0f712ba AC |
11992 | fi |
11993 | ||
98418dba CW |
11994 | ### Use session management (-lSM -lICE) if available |
11995 | HAVE_X_SM=no | |
11996 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc MR |
11997 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
11998 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
98418dba CW |
11999 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
12000 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
12001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
12002 | fi |
12003 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
12004 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 | |
503d2be0 | 12005 | else |
c0d27fcc MR |
12006 | # Is the header compilable? |
12007 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
12008 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 | |
12009 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12010 | /* confdefs.h. */ |
12011 | _ACEOF | |
12012 | cat confdefs.h >>conftest.$ac_ext | |
12013 | cat >>conftest.$ac_ext <<_ACEOF | |
12014 | /* end confdefs.h. */ | |
c0d27fcc MR |
12015 | $ac_includes_default |
12016 | #include <X11/SM/SMlib.h> | |
12017 | _ACEOF | |
12018 | rm -f conftest.$ac_objext | |
12019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 12020 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 12021 | ac_status=$? |
35996d22 AS |
12022 | grep -v '^ *+' conftest.er1 >conftest.err |
12023 | rm -f conftest.er1 | |
12024 | cat conftest.err >&5 | |
c0d27fcc MR |
12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12026 | (exit $ac_status); } && | |
35996d22 AS |
12027 | { ac_try='test -z "$ac_c_werror_flag" |
12028 | || test ! -s conftest.err' | |
12029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12030 | (eval $ac_try) 2>&5 | |
12031 | ac_status=$? | |
12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12033 | (exit $ac_status); }; } && | |
12034 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
12035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12036 | (eval $ac_try) 2>&5 | |
12037 | ac_status=$? | |
12038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12039 | (exit $ac_status); }; }; then | |
12040 | ac_header_compiler=yes | |
12041 | else | |
12042 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12043 | sed 's/^/| /' conftest.$ac_ext >&5 |
12044 | ||
c0d27fcc MR |
12045 | ac_header_compiler=no |
12046 | fi | |
35996d22 | 12047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
12048 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12049 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12050 | ||
12051 | # Is the header present? | |
12052 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
12053 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 | |
12054 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12055 | /* confdefs.h. */ |
12056 | _ACEOF | |
12057 | cat confdefs.h >>conftest.$ac_ext | |
12058 | cat >>conftest.$ac_ext <<_ACEOF | |
12059 | /* end confdefs.h. */ | |
98418dba CW |
12060 | #include <X11/SM/SMlib.h> |
12061 | _ACEOF | |
c0d27fcc | 12062 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
12063 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12064 | ac_status=$? | |
6bae0ccf | 12065 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12066 | rm -f conftest.er1 |
12067 | cat conftest.err >&5 | |
c0d27fcc | 12068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12069 | (exit $ac_status); } >/dev/null; then |
12070 | if test -s conftest.err; then | |
12071 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 12072 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
12073 | else |
12074 | ac_cpp_err= | |
12075 | fi | |
12076 | else | |
12077 | ac_cpp_err=yes | |
503d2be0 | 12078 | fi |
98418dba | 12079 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 12080 | ac_header_preproc=yes |
98418dba CW |
12081 | else |
12082 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12083 | sed 's/^/| /' conftest.$ac_ext >&5 |
12084 | ||
c0d27fcc | 12085 | ac_header_preproc=no |
98418dba CW |
12086 | fi |
12087 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
12088 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12089 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12090 | ||
12091 | # So? What about this header? | |
35996d22 AS |
12092 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12093 | yes:no: ) | |
c0d27fcc MR |
12094 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
12095 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
12096 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 |
12097 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
12098 | ac_header_preproc=yes | |
19650fd6 | 12099 | ;; |
35996d22 | 12100 | no:yes:* ) |
c0d27fcc MR |
12101 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 |
12102 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
12103 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
12104 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
12105 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
12106 | echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
12107 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12108 | echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 12109 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 12110 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
12111 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 |
12112 | echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
12113 | ( |
12114 | cat <<\_ASBOX | |
35996d22 AS |
12115 | ## ------------------------------------------ ## |
12116 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12117 | ## ------------------------------------------ ## | |
19650fd6 AS |
12118 | _ASBOX |
12119 | ) | | |
12120 | sed "s/^/$as_me: WARNING: /" >&2 | |
12121 | ;; | |
c0d27fcc MR |
12122 | esac |
12123 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
12124 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
12125 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
12126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12127 | else | |
12128 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 12129 | fi |
c0d27fcc | 12130 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
98418dba | 12131 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
c0d27fcc MR |
12132 | |
12133 | fi | |
98418dba | 12134 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
c0d27fcc | 12135 | echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
98418dba CW |
12136 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
12137 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | |
503d2be0 | 12138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 12139 | else |
503d2be0 | 12140 | ac_check_lib_save_LIBS=$LIBS |
1660500f | 12141 | LIBS="-lSM -lICE $LIBS" |
503d2be0 | 12142 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12143 | /* confdefs.h. */ |
12144 | _ACEOF | |
12145 | cat confdefs.h >>conftest.$ac_ext | |
12146 | cat >>conftest.$ac_ext <<_ACEOF | |
12147 | /* end confdefs.h. */ | |
503d2be0 | 12148 | |
73b77ee5 | 12149 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12150 | #ifdef __cplusplus |
12151 | extern "C" | |
12152 | #endif | |
73b77ee5 | 12153 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12154 | builtin and then its argument prototype would still apply. */ |
98418dba | 12155 | char SmcOpenConnection (); |
503d2be0 AS |
12156 | int |
12157 | main () | |
12158 | { | |
98418dba | 12159 | SmcOpenConnection (); |
503d2be0 AS |
12160 | ; |
12161 | return 0; | |
12162 | } | |
12163 | _ACEOF | |
12164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12166 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12167 | ac_status=$? |
35996d22 AS |
12168 | grep -v '^ *+' conftest.er1 >conftest.err |
12169 | rm -f conftest.er1 | |
12170 | cat conftest.err >&5 | |
c0d27fcc | 12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12172 | (exit $ac_status); } && |
35996d22 AS |
12173 | { ac_try='test -z "$ac_c_werror_flag" |
12174 | || test ! -s conftest.err' | |
12175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12176 | (eval $ac_try) 2>&5 | |
12177 | ac_status=$? | |
12178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12179 | (exit $ac_status); }; } && | |
12180 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12182 | (eval $ac_try) 2>&5 |
12183 | ac_status=$? | |
c0d27fcc | 12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12185 | (exit $ac_status); }; }; then |
98418dba | 12186 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
12187 | else |
12188 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12189 | sed 's/^/| /' conftest.$ac_ext >&5 |
12190 | ||
98418dba | 12191 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 | 12192 | fi |
35996d22 AS |
12193 | rm -f conftest.err conftest.$ac_objext \ |
12194 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
12195 | LIBS=$ac_check_lib_save_LIBS |
12196 | fi | |
c0d27fcc | 12197 | echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
98418dba CW |
12198 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
12199 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | |
12200 | HAVE_X_SM=yes | |
73b77ee5 GM |
12201 | fi |
12202 | ||
73b77ee5 | 12203 | fi |
73b77ee5 | 12204 | |
c0d27fcc MR |
12205 | |
12206 | ||
98418dba | 12207 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 12208 | |
c0d27fcc | 12209 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12210 | #define HAVE_X_SM 1 |
c0d27fcc | 12211 | _ACEOF |
73b77ee5 | 12212 | |
98418dba CW |
12213 | case "$LIBS" in |
12214 | *-lSM*) ;; | |
12215 | *) LIBS="-lSM -lICE $LIBS" ;; | |
12216 | esac | |
73b77ee5 | 12217 | fi |
98418dba | 12218 | fi |
73b77ee5 | 12219 | |
98418dba | 12220 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
c0d27fcc | 12221 | echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
98418dba CW |
12222 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
12223 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
12224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12225 | else | |
12226 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12227 | /* confdefs.h. */ |
12228 | _ACEOF | |
12229 | cat confdefs.h >>conftest.$ac_ext | |
12230 | cat >>conftest.$ac_ext <<_ACEOF | |
12231 | /* end confdefs.h. */ | |
98418dba | 12232 | #include <netdb.h> |
503d2be0 AS |
12233 | int |
12234 | main () | |
12235 | { | |
98418dba | 12236 | return h_errno; |
503d2be0 AS |
12237 | ; |
12238 | return 0; | |
12239 | } | |
12240 | _ACEOF | |
12241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12243 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12244 | ac_status=$? |
35996d22 AS |
12245 | grep -v '^ *+' conftest.er1 >conftest.err |
12246 | rm -f conftest.er1 | |
12247 | cat conftest.err >&5 | |
c0d27fcc | 12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12249 | (exit $ac_status); } && |
35996d22 AS |
12250 | { ac_try='test -z "$ac_c_werror_flag" |
12251 | || test ! -s conftest.err' | |
12252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12253 | (eval $ac_try) 2>&5 | |
12254 | ac_status=$? | |
12255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12256 | (exit $ac_status); }; } && | |
12257 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12259 | (eval $ac_try) 2>&5 |
12260 | ac_status=$? | |
c0d27fcc | 12261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12262 | (exit $ac_status); }; }; then |
98418dba | 12263 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 12264 | else |
503d2be0 | 12265 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12266 | sed 's/^/| /' conftest.$ac_ext >&5 |
12267 | ||
98418dba | 12268 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 12269 | fi |
35996d22 AS |
12270 | rm -f conftest.err conftest.$ac_objext \ |
12271 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12272 | fi |
c0d27fcc | 12273 | echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
98418dba CW |
12274 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
12275 | if test $emacs_cv_netdb_declares_h_errno = yes; then | |
b936fae4 | 12276 | |
c0d27fcc | 12277 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12278 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 12279 | _ACEOF |
73b77ee5 | 12280 | |
98418dba CW |
12281 | fi |
12282 | ||
12283 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
12284 | # for constant arguments. Useless! | |
c0d27fcc | 12285 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
98418dba CW |
12286 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
12287 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
12288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12289 | else | |
12290 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12291 | /* confdefs.h. */ |
12292 | _ACEOF | |
12293 | cat confdefs.h >>conftest.$ac_ext | |
12294 | cat >>conftest.$ac_ext <<_ACEOF | |
12295 | /* end confdefs.h. */ | |
98418dba | 12296 | #include <alloca.h> |
503d2be0 AS |
12297 | int |
12298 | main () | |
12299 | { | |
98418dba | 12300 | char *p = (char *) alloca (2 * sizeof (int)); |
503d2be0 AS |
12301 | ; |
12302 | return 0; | |
12303 | } | |
12304 | _ACEOF | |
12305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12307 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12308 | ac_status=$? |
35996d22 AS |
12309 | grep -v '^ *+' conftest.er1 >conftest.err |
12310 | rm -f conftest.er1 | |
12311 | cat conftest.err >&5 | |
c0d27fcc | 12312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12313 | (exit $ac_status); } && |
35996d22 AS |
12314 | { ac_try='test -z "$ac_c_werror_flag" |
12315 | || test ! -s conftest.err' | |
12316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12317 | (eval $ac_try) 2>&5 | |
12318 | ac_status=$? | |
12319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12320 | (exit $ac_status); }; } && | |
12321 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12323 | (eval $ac_try) 2>&5 |
12324 | ac_status=$? | |
c0d27fcc | 12325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12326 | (exit $ac_status); }; }; then |
98418dba | 12327 | ac_cv_working_alloca_h=yes |
73b77ee5 | 12328 | else |
503d2be0 | 12329 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12330 | sed 's/^/| /' conftest.$ac_ext >&5 |
12331 | ||
98418dba | 12332 | ac_cv_working_alloca_h=no |
73b77ee5 | 12333 | fi |
35996d22 AS |
12334 | rm -f conftest.err conftest.$ac_objext \ |
12335 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12336 | fi |
c0d27fcc | 12337 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
98418dba CW |
12338 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
12339 | if test $ac_cv_working_alloca_h = yes; then | |
73b77ee5 | 12340 | |
c0d27fcc | 12341 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12342 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 12343 | _ACEOF |
98418dba CW |
12344 | |
12345 | fi | |
12346 | ||
c0d27fcc | 12347 | echo "$as_me:$LINENO: checking for alloca" >&5 |
98418dba CW |
12348 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
12349 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
12350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12351 | else | |
503d2be0 | 12352 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12353 | /* confdefs.h. */ |
12354 | _ACEOF | |
12355 | cat confdefs.h >>conftest.$ac_ext | |
12356 | cat >>conftest.$ac_ext <<_ACEOF | |
12357 | /* end confdefs.h. */ | |
98418dba CW |
12358 | #ifdef __GNUC__ |
12359 | # define alloca __builtin_alloca | |
12360 | #else | |
12361 | # ifdef _MSC_VER | |
12362 | # include <malloc.h> | |
12363 | # define alloca _alloca | |
12364 | # else | |
12365 | # if HAVE_ALLOCA_H | |
12366 | # include <alloca.h> | |
12367 | # else | |
12368 | # ifdef _AIX | |
12369 | #pragma alloca | |
12370 | # else | |
12371 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12372 | char *alloca (); | |
12373 | # endif | |
12374 | # endif | |
12375 | # endif | |
12376 | # endif | |
12377 | #endif | |
12378 | ||
503d2be0 AS |
12379 | int |
12380 | main () | |
12381 | { | |
98418dba | 12382 | char *p = (char *) alloca (1); |
503d2be0 AS |
12383 | ; |
12384 | return 0; | |
12385 | } | |
12386 | _ACEOF | |
12387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12389 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12390 | ac_status=$? |
35996d22 AS |
12391 | grep -v '^ *+' conftest.er1 >conftest.err |
12392 | rm -f conftest.er1 | |
12393 | cat conftest.err >&5 | |
c0d27fcc | 12394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12395 | (exit $ac_status); } && |
35996d22 AS |
12396 | { ac_try='test -z "$ac_c_werror_flag" |
12397 | || test ! -s conftest.err' | |
12398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12399 | (eval $ac_try) 2>&5 | |
12400 | ac_status=$? | |
12401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12402 | (exit $ac_status); }; } && | |
12403 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12405 | (eval $ac_try) 2>&5 |
12406 | ac_status=$? | |
c0d27fcc | 12407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12408 | (exit $ac_status); }; }; then |
98418dba | 12409 | ac_cv_func_alloca_works=yes |
ac95a621 | 12410 | else |
503d2be0 | 12411 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12412 | sed 's/^/| /' conftest.$ac_ext >&5 |
12413 | ||
98418dba | 12414 | ac_cv_func_alloca_works=no |
ac95a621 | 12415 | fi |
35996d22 AS |
12416 | rm -f conftest.err conftest.$ac_objext \ |
12417 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12418 | fi |
c0d27fcc | 12419 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
98418dba | 12420 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
ac95a621 | 12421 | |
98418dba CW |
12422 | if test $ac_cv_func_alloca_works = yes; then |
12423 | ||
c0d27fcc | 12424 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12425 | #define HAVE_ALLOCA 1 |
c0d27fcc | 12426 | _ACEOF |
98418dba CW |
12427 | |
12428 | else | |
12429 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
12430 | # that cause trouble. Some versions do not even contain alloca or | |
12431 | # contain a buggy version. If you still want to use their alloca, | |
12432 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
12433 | ||
12434 | ALLOCA=alloca.$ac_objext | |
12435 | ||
c0d27fcc | 12436 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12437 | #define C_ALLOCA 1 |
c0d27fcc | 12438 | _ACEOF |
98418dba | 12439 | |
c0d27fcc MR |
12440 | |
12441 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
98418dba CW |
12442 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
12443 | if test "${ac_cv_os_cray+set}" = set; then | |
12444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12445 | else | |
12446 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12447 | /* confdefs.h. */ |
12448 | _ACEOF | |
12449 | cat confdefs.h >>conftest.$ac_ext | |
12450 | cat >>conftest.$ac_ext <<_ACEOF | |
12451 | /* end confdefs.h. */ | |
98418dba CW |
12452 | #if defined(CRAY) && ! defined(CRAY2) |
12453 | webecray | |
12454 | #else | |
12455 | wenotbecray | |
12456 | #endif | |
12457 | ||
12458 | _ACEOF | |
12459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 12460 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
12461 | ac_cv_os_cray=yes |
12462 | else | |
12463 | ac_cv_os_cray=no | |
12464 | fi | |
12465 | rm -f conftest* | |
ac95a621 | 12466 | |
98418dba | 12467 | fi |
c0d27fcc | 12468 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
98418dba CW |
12469 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
12470 | if test $ac_cv_os_cray = yes; then | |
12471 | for ac_func in _getb67 GETB67 getb67; do | |
12472 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12473 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
12474 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12475 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 12477 | else |
503d2be0 | 12478 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12479 | /* confdefs.h. */ |
12480 | _ACEOF | |
12481 | cat confdefs.h >>conftest.$ac_ext | |
12482 | cat >>conftest.$ac_ext <<_ACEOF | |
12483 | /* end confdefs.h. */ | |
35996d22 AS |
12484 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
12485 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12486 | #define $ac_func innocuous_$ac_func | |
12487 | ||
73b77ee5 | 12488 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12489 | which can conflict with char $ac_func (); below. |
12490 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12491 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 12492 | |
19650fd6 AS |
12493 | #ifdef __STDC__ |
12494 | # include <limits.h> | |
12495 | #else | |
12496 | # include <assert.h> | |
12497 | #endif | |
35996d22 AS |
12498 | |
12499 | #undef $ac_func | |
12500 | ||
73b77ee5 | 12501 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12502 | #ifdef __cplusplus |
12503 | extern "C" | |
19650fd6 | 12504 | { |
503d2be0 | 12505 | #endif |
73b77ee5 | 12506 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
12507 | builtin and then its argument prototype would still apply. */ |
12508 | char $ac_func (); | |
73b77ee5 GM |
12509 | /* The GNU C library defines this for functions which it implements |
12510 | to always fail with ENOSYS. Some functions are actually named | |
12511 | something starting with __ and the normal name is an alias. */ | |
12512 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12513 | choke me | |
12514 | #else | |
19650fd6 AS |
12515 | char (*f) () = $ac_func; |
12516 | #endif | |
12517 | #ifdef __cplusplus | |
12518 | } | |
73b77ee5 GM |
12519 | #endif |
12520 | ||
19650fd6 AS |
12521 | int |
12522 | main () | |
12523 | { | |
12524 | return f != $ac_func; | |
503d2be0 AS |
12525 | ; |
12526 | return 0; | |
12527 | } | |
12528 | _ACEOF | |
12529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12531 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12532 | ac_status=$? |
35996d22 AS |
12533 | grep -v '^ *+' conftest.er1 >conftest.err |
12534 | rm -f conftest.er1 | |
12535 | cat conftest.err >&5 | |
c0d27fcc | 12536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12537 | (exit $ac_status); } && |
35996d22 AS |
12538 | { ac_try='test -z "$ac_c_werror_flag" |
12539 | || test ! -s conftest.err' | |
12540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12541 | (eval $ac_try) 2>&5 | |
12542 | ac_status=$? | |
12543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12544 | (exit $ac_status); }; } && | |
12545 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12547 | (eval $ac_try) 2>&5 |
12548 | ac_status=$? | |
c0d27fcc | 12549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12550 | (exit $ac_status); }; }; then |
12551 | eval "$as_ac_var=yes" | |
12552 | else | |
12553 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12554 | sed 's/^/| /' conftest.$ac_ext >&5 |
12555 | ||
503d2be0 AS |
12556 | eval "$as_ac_var=no" |
12557 | fi | |
35996d22 AS |
12558 | rm -f conftest.err conftest.$ac_objext \ |
12559 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 12560 | fi |
c0d27fcc | 12561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
12562 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12563 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
73b77ee5 | 12564 | |
c0d27fcc | 12565 | cat >>confdefs.h <<_ACEOF |
98418dba | 12566 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 12567 | _ACEOF |
98418dba CW |
12568 | |
12569 | break | |
73b77ee5 | 12570 | fi |
73b77ee5 | 12571 | |
98418dba | 12572 | done |
73b77ee5 GM |
12573 | fi |
12574 | ||
c0d27fcc | 12575 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
98418dba CW |
12576 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
12577 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
503d2be0 | 12578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
12579 | else |
12580 | if test "$cross_compiling" = yes; then | |
12581 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 12582 | else |
503d2be0 | 12583 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12584 | /* confdefs.h. */ |
12585 | _ACEOF | |
12586 | cat confdefs.h >>conftest.$ac_ext | |
12587 | cat >>conftest.$ac_ext <<_ACEOF | |
12588 | /* end confdefs.h. */ | |
503d2be0 | 12589 | int |
98418dba | 12590 | find_stack_direction () |
503d2be0 | 12591 | { |
98418dba CW |
12592 | static char *addr = 0; |
12593 | auto char dummy; | |
12594 | if (addr == 0) | |
12595 | { | |
12596 | addr = &dummy; | |
12597 | return find_stack_direction (); | |
12598 | } | |
73b77ee5 | 12599 | else |
98418dba CW |
12600 | return (&dummy > addr) ? 1 : -1; |
12601 | } | |
ba4481b5 | 12602 | |
503d2be0 AS |
12603 | int |
12604 | main () | |
12605 | { | |
98418dba | 12606 | exit (find_stack_direction () < 0); |
503d2be0 AS |
12607 | } |
12608 | _ACEOF | |
98418dba | 12609 | rm -f conftest$ac_exeext |
c0d27fcc | 12610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12611 | (eval $ac_link) 2>&5 |
12612 | ac_status=$? | |
c0d27fcc | 12613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 12614 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 12615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12616 | (eval $ac_try) 2>&5 |
12617 | ac_status=$? | |
c0d27fcc | 12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12619 | (exit $ac_status); }; }; then |
98418dba | 12620 | ac_cv_c_stack_direction=1 |
ba4481b5 | 12621 | else |
98418dba CW |
12622 | echo "$as_me: program exited with status $ac_status" >&5 |
12623 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12624 | sed 's/^/| /' conftest.$ac_ext >&5 |
12625 | ||
c0d27fcc | 12626 | ( exit $ac_status ) |
98418dba | 12627 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 12628 | fi |
35996d22 | 12629 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 12630 | fi |
98418dba | 12631 | fi |
c0d27fcc | 12632 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
98418dba CW |
12633 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
12634 | ||
c0d27fcc | 12635 | cat >>confdefs.h <<_ACEOF |
98418dba | 12636 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
12637 | _ACEOF |
12638 | ||
ba4481b5 | 12639 | |
ba4481b5 DL |
12640 | fi |
12641 | ||
c0d27fcc | 12642 | |
98418dba CW |
12643 | # fmod, logb, and frexp are found in -lm on most systems. |
12644 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
12645 | ||
c0d27fcc | 12646 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
98418dba CW |
12647 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
12648 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
503d2be0 | 12649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12650 | else |
98418dba CW |
12651 | ac_check_lib_save_LIBS=$LIBS |
12652 | LIBS="-lm $LIBS" | |
12653 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12654 | /* confdefs.h. */ |
12655 | _ACEOF | |
12656 | cat confdefs.h >>conftest.$ac_ext | |
12657 | cat >>conftest.$ac_ext <<_ACEOF | |
12658 | /* end confdefs.h. */ | |
ba4481b5 | 12659 | |
98418dba CW |
12660 | /* Override any gcc2 internal prototype to avoid an error. */ |
12661 | #ifdef __cplusplus | |
12662 | extern "C" | |
12663 | #endif | |
12664 | /* We use char because int might match the return type of a gcc2 | |
12665 | builtin and then its argument prototype would still apply. */ | |
12666 | char sqrt (); | |
503d2be0 AS |
12667 | int |
12668 | main () | |
12669 | { | |
98418dba | 12670 | sqrt (); |
503d2be0 AS |
12671 | ; |
12672 | return 0; | |
12673 | } | |
12674 | _ACEOF | |
12675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12677 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12678 | ac_status=$? |
35996d22 AS |
12679 | grep -v '^ *+' conftest.er1 >conftest.err |
12680 | rm -f conftest.er1 | |
12681 | cat conftest.err >&5 | |
c0d27fcc | 12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12683 | (exit $ac_status); } && |
35996d22 AS |
12684 | { ac_try='test -z "$ac_c_werror_flag" |
12685 | || test ! -s conftest.err' | |
12686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12687 | (eval $ac_try) 2>&5 | |
12688 | ac_status=$? | |
12689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12690 | (exit $ac_status); }; } && | |
12691 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12693 | (eval $ac_try) 2>&5 |
12694 | ac_status=$? | |
c0d27fcc | 12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12696 | (exit $ac_status); }; }; then |
98418dba | 12697 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 12698 | else |
503d2be0 | 12699 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12700 | sed 's/^/| /' conftest.$ac_ext >&5 |
12701 | ||
98418dba | 12702 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 12703 | fi |
35996d22 AS |
12704 | rm -f conftest.err conftest.$ac_objext \ |
12705 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12706 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12707 | fi |
c0d27fcc | 12708 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
98418dba CW |
12709 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
12710 | if test $ac_cv_lib_m_sqrt = yes; then | |
c0d27fcc | 12711 | cat >>confdefs.h <<_ACEOF |
98418dba | 12712 | #define HAVE_LIBM 1 |
c0d27fcc | 12713 | _ACEOF |
98418dba CW |
12714 | |
12715 | LIBS="-lm $LIBS" | |
ba4481b5 | 12716 | |
ba4481b5 DL |
12717 | fi |
12718 | ||
c0d27fcc | 12719 | |
55597d70 DL |
12720 | # Check for mail-locking functions in a "mail" library. Probably this should |
12721 | # have the same check as for liblockfile below. | |
98418dba | 12722 | |
c0d27fcc | 12723 | echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
98418dba CW |
12724 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
12725 | if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
503d2be0 | 12726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12727 | else |
98418dba CW |
12728 | ac_check_lib_save_LIBS=$LIBS |
12729 | LIBS="-lmail $LIBS" | |
12730 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12731 | /* confdefs.h. */ |
12732 | _ACEOF | |
12733 | cat confdefs.h >>conftest.$ac_ext | |
12734 | cat >>conftest.$ac_ext <<_ACEOF | |
12735 | /* end confdefs.h. */ | |
98418dba CW |
12736 | |
12737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12738 | #ifdef __cplusplus | |
12739 | extern "C" | |
12740 | #endif | |
12741 | /* We use char because int might match the return type of a gcc2 | |
12742 | builtin and then its argument prototype would still apply. */ | |
12743 | char maillock (); | |
503d2be0 AS |
12744 | int |
12745 | main () | |
12746 | { | |
98418dba | 12747 | maillock (); |
503d2be0 AS |
12748 | ; |
12749 | return 0; | |
12750 | } | |
12751 | _ACEOF | |
12752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12754 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12755 | ac_status=$? |
35996d22 AS |
12756 | grep -v '^ *+' conftest.er1 >conftest.err |
12757 | rm -f conftest.er1 | |
12758 | cat conftest.err >&5 | |
c0d27fcc | 12759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12760 | (exit $ac_status); } && |
35996d22 AS |
12761 | { ac_try='test -z "$ac_c_werror_flag" |
12762 | || test ! -s conftest.err' | |
12763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12764 | (eval $ac_try) 2>&5 | |
12765 | ac_status=$? | |
12766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12767 | (exit $ac_status); }; } && | |
12768 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12770 | (eval $ac_try) 2>&5 |
12771 | ac_status=$? | |
c0d27fcc | 12772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12773 | (exit $ac_status); }; }; then |
98418dba | 12774 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 12775 | else |
503d2be0 | 12776 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12777 | sed 's/^/| /' conftest.$ac_ext >&5 |
12778 | ||
98418dba | 12779 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 12780 | fi |
35996d22 AS |
12781 | rm -f conftest.err conftest.$ac_objext \ |
12782 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12783 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12784 | fi |
c0d27fcc | 12785 | echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
98418dba CW |
12786 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
12787 | if test $ac_cv_lib_mail_maillock = yes; then | |
c0d27fcc | 12788 | cat >>confdefs.h <<_ACEOF |
98418dba | 12789 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 12790 | _ACEOF |
ba4481b5 | 12791 | |
98418dba | 12792 | LIBS="-lmail $LIBS" |
ba4481b5 | 12793 | |
98418dba | 12794 | fi |
ba4481b5 | 12795 | |
c0d27fcc MR |
12796 | |
12797 | echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | |
98418dba CW |
12798 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
12799 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
503d2be0 | 12800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12801 | else |
503d2be0 | 12802 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 12803 | LIBS="-llockfile $LIBS" |
503d2be0 | 12804 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12805 | /* confdefs.h. */ |
12806 | _ACEOF | |
12807 | cat confdefs.h >>conftest.$ac_ext | |
12808 | cat >>conftest.$ac_ext <<_ACEOF | |
12809 | /* end confdefs.h. */ | |
503d2be0 | 12810 | |
ba4481b5 | 12811 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12812 | #ifdef __cplusplus |
12813 | extern "C" | |
12814 | #endif | |
ba4481b5 | 12815 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12816 | builtin and then its argument prototype would still apply. */ |
98418dba | 12817 | char maillock (); |
503d2be0 AS |
12818 | int |
12819 | main () | |
12820 | { | |
98418dba | 12821 | maillock (); |
503d2be0 AS |
12822 | ; |
12823 | return 0; | |
12824 | } | |
12825 | _ACEOF | |
12826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12828 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12829 | ac_status=$? |
35996d22 AS |
12830 | grep -v '^ *+' conftest.er1 >conftest.err |
12831 | rm -f conftest.er1 | |
12832 | cat conftest.err >&5 | |
c0d27fcc | 12833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12834 | (exit $ac_status); } && |
35996d22 AS |
12835 | { ac_try='test -z "$ac_c_werror_flag" |
12836 | || test ! -s conftest.err' | |
12837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12838 | (eval $ac_try) 2>&5 | |
12839 | ac_status=$? | |
12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12841 | (exit $ac_status); }; } && | |
12842 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12844 | (eval $ac_try) 2>&5 |
12845 | ac_status=$? | |
c0d27fcc | 12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12847 | (exit $ac_status); }; }; then |
98418dba | 12848 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
12849 | else |
12850 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12851 | sed 's/^/| /' conftest.$ac_ext >&5 |
12852 | ||
98418dba CW |
12853 | ac_cv_lib_lockfile_maillock=no |
12854 | fi | |
35996d22 AS |
12855 | rm -f conftest.err conftest.$ac_objext \ |
12856 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
12857 | LIBS=$ac_check_lib_save_LIBS |
12858 | fi | |
c0d27fcc | 12859 | echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
98418dba CW |
12860 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
12861 | if test $ac_cv_lib_lockfile_maillock = yes; then | |
c0d27fcc | 12862 | cat >>confdefs.h <<_ACEOF |
98418dba | 12863 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 12864 | _ACEOF |
98418dba CW |
12865 | |
12866 | LIBS="-llockfile $LIBS" | |
12867 | ||
12868 | fi | |
12869 | ||
12870 | # If we have the shared liblockfile, assume we must use it for mail | |
12871 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
12872 | # (no liblockfile.a installed), ensure that we don't need to. | |
12873 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
12874 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
12875 | set dummy liblockfile.so; ac_word=$2 | |
c0d27fcc | 12876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
98418dba CW |
12877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
12878 | if test "${ac_cv_prog_liblockfile+set}" = set; then | |
12879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12880 | else | |
12881 | if test -n "$liblockfile"; then | |
12882 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
12883 | else | |
c0d27fcc | 12884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
12885 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
12886 | for as_dir in $as_dummy | |
c0d27fcc MR |
12887 | do |
12888 | IFS=$as_save_IFS | |
12889 | test -z "$as_dir" && as_dir=. | |
12890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12891 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12892 | ac_cv_prog_liblockfile="yes" | |
12893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12894 | break 2 | |
12895 | fi | |
12896 | done | |
98418dba CW |
12897 | done |
12898 | ||
12899 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 12900 | fi |
503d2be0 | 12901 | fi |
98418dba CW |
12902 | liblockfile=$ac_cv_prog_liblockfile |
12903 | if test -n "$liblockfile"; then | |
c0d27fcc | 12904 | echo "$as_me:$LINENO: result: $liblockfile" >&5 |
98418dba CW |
12905 | echo "${ECHO_T}$liblockfile" >&6 |
12906 | else | |
c0d27fcc | 12907 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba | 12908 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
12909 | fi |
12910 | ||
98418dba | 12911 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 12912 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
12913 | This probably means that movemail could lose mail. |
12914 | There may be a \`development' package to install containing liblockfile." >&5 | |
12915 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
12916 | This probably means that movemail could lose mail. | |
12917 | There may be a \`development' package to install containing liblockfile." >&2;} | |
12918 | { (exit 1); exit 1; }; } | |
98418dba | 12919 | else : |
55597d70 | 12920 | fi |
98418dba | 12921 | fi |
503d2be0 | 12922 | |
98418dba CW |
12923 | for ac_func in touchlock |
12924 | do | |
12925 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12926 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
12927 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12928 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 12929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 12930 | else |
98418dba | 12931 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12932 | /* confdefs.h. */ |
12933 | _ACEOF | |
12934 | cat confdefs.h >>conftest.$ac_ext | |
12935 | cat >>conftest.$ac_ext <<_ACEOF | |
12936 | /* end confdefs.h. */ | |
35996d22 AS |
12937 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
12938 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12939 | #define $ac_func innocuous_$ac_func | |
12940 | ||
98418dba | 12941 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12942 | which can conflict with char $ac_func (); below. |
12943 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12944 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 12945 | |
19650fd6 AS |
12946 | #ifdef __STDC__ |
12947 | # include <limits.h> | |
12948 | #else | |
12949 | # include <assert.h> | |
12950 | #endif | |
35996d22 AS |
12951 | |
12952 | #undef $ac_func | |
12953 | ||
457b792c | 12954 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12955 | #ifdef __cplusplus |
12956 | extern "C" | |
19650fd6 | 12957 | { |
503d2be0 | 12958 | #endif |
457b792c | 12959 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12960 | builtin and then its argument prototype would still apply. */ |
98418dba | 12961 | char $ac_func (); |
98418dba CW |
12962 | /* The GNU C library defines this for functions which it implements |
12963 | to always fail with ENOSYS. Some functions are actually named | |
12964 | something starting with __ and the normal name is an alias. */ | |
12965 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12966 | choke me | |
12967 | #else | |
19650fd6 AS |
12968 | char (*f) () = $ac_func; |
12969 | #endif | |
12970 | #ifdef __cplusplus | |
12971 | } | |
cd958eb3 MB |
12972 | #endif |
12973 | ||
19650fd6 AS |
12974 | int |
12975 | main () | |
12976 | { | |
12977 | return f != $ac_func; | |
503d2be0 AS |
12978 | ; |
12979 | return 0; | |
12980 | } | |
12981 | _ACEOF | |
12982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12984 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12985 | ac_status=$? |
35996d22 AS |
12986 | grep -v '^ *+' conftest.er1 >conftest.err |
12987 | rm -f conftest.er1 | |
12988 | cat conftest.err >&5 | |
c0d27fcc | 12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12990 | (exit $ac_status); } && |
35996d22 AS |
12991 | { ac_try='test -z "$ac_c_werror_flag" |
12992 | || test ! -s conftest.err' | |
12993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12994 | (eval $ac_try) 2>&5 | |
12995 | ac_status=$? | |
12996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12997 | (exit $ac_status); }; } && | |
12998 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13000 | (eval $ac_try) 2>&5 |
13001 | ac_status=$? | |
c0d27fcc | 13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13003 | (exit $ac_status); }; }; then |
98418dba | 13004 | eval "$as_ac_var=yes" |
503d2be0 AS |
13005 | else |
13006 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13007 | sed 's/^/| /' conftest.$ac_ext >&5 |
13008 | ||
98418dba | 13009 | eval "$as_ac_var=no" |
503d2be0 | 13010 | fi |
35996d22 AS |
13011 | rm -f conftest.err conftest.$ac_objext \ |
13012 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 13013 | fi |
c0d27fcc | 13014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13015 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13016 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13017 | cat >>confdefs.h <<_ACEOF |
98418dba | 13018 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13019 | _ACEOF |
457b792c | 13020 | |
457b792c | 13021 | fi |
98418dba | 13022 | done |
457b792c | 13023 | |
c0d27fcc | 13024 | |
98418dba CW |
13025 | for ac_header in maillock.h |
13026 | do | |
13027 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13029 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
13030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 13032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
13033 | fi |
13034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13035 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ba4481b5 | 13036 | else |
c0d27fcc MR |
13037 | # Is the header compilable? |
13038 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13039 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13040 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13041 | /* confdefs.h. */ |
13042 | _ACEOF | |
13043 | cat confdefs.h >>conftest.$ac_ext | |
13044 | cat >>conftest.$ac_ext <<_ACEOF | |
13045 | /* end confdefs.h. */ | |
c0d27fcc MR |
13046 | $ac_includes_default |
13047 | #include <$ac_header> | |
13048 | _ACEOF | |
13049 | rm -f conftest.$ac_objext | |
13050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13051 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13052 | ac_status=$? |
35996d22 AS |
13053 | grep -v '^ *+' conftest.er1 >conftest.err |
13054 | rm -f conftest.er1 | |
13055 | cat conftest.err >&5 | |
c0d27fcc MR |
13056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13057 | (exit $ac_status); } && | |
35996d22 AS |
13058 | { ac_try='test -z "$ac_c_werror_flag" |
13059 | || test ! -s conftest.err' | |
13060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13061 | (eval $ac_try) 2>&5 | |
13062 | ac_status=$? | |
13063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13064 | (exit $ac_status); }; } && | |
13065 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13067 | (eval $ac_try) 2>&5 | |
13068 | ac_status=$? | |
13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13070 | (exit $ac_status); }; }; then | |
13071 | ac_header_compiler=yes | |
13072 | else | |
13073 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13074 | sed 's/^/| /' conftest.$ac_ext >&5 |
13075 | ||
c0d27fcc MR |
13076 | ac_header_compiler=no |
13077 | fi | |
35996d22 | 13078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13079 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13080 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13081 | ||
13082 | # Is the header present? | |
13083 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13084 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13085 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13086 | /* confdefs.h. */ |
13087 | _ACEOF | |
13088 | cat confdefs.h >>conftest.$ac_ext | |
13089 | cat >>conftest.$ac_ext <<_ACEOF | |
13090 | /* end confdefs.h. */ | |
98418dba | 13091 | #include <$ac_header> |
503d2be0 | 13092 | _ACEOF |
c0d27fcc | 13093 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 13094 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 13095 | ac_status=$? |
6bae0ccf | 13096 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13097 | rm -f conftest.er1 |
13098 | cat conftest.err >&5 | |
c0d27fcc | 13099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
13100 | (exit $ac_status); } >/dev/null; then |
13101 | if test -s conftest.err; then | |
13102 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13103 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
13104 | else |
13105 | ac_cpp_err= | |
13106 | fi | |
503d2be0 | 13107 | else |
98418dba | 13108 | ac_cpp_err=yes |
503d2be0 | 13109 | fi |
98418dba | 13110 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 13111 | ac_header_preproc=yes |
98418dba CW |
13112 | else |
13113 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13114 | sed 's/^/| /' conftest.$ac_ext >&5 |
13115 | ||
c0d27fcc | 13116 | ac_header_preproc=no |
503d2be0 | 13117 | fi |
98418dba | 13118 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13119 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13120 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13121 | ||
13122 | # So? What about this header? | |
35996d22 AS |
13123 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13124 | yes:no: ) | |
c0d27fcc MR |
13125 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13126 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13127 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13128 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13129 | ac_header_preproc=yes | |
19650fd6 | 13130 | ;; |
35996d22 | 13131 | no:yes:* ) |
c0d27fcc MR |
13132 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13133 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13134 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13135 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13136 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13137 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13138 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13139 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13141 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13142 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13143 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13144 | ( |
13145 | cat <<\_ASBOX | |
35996d22 AS |
13146 | ## ------------------------------------------ ## |
13147 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13148 | ## ------------------------------------------ ## | |
19650fd6 AS |
13149 | _ASBOX |
13150 | ) | | |
13151 | sed "s/^/$as_me: WARNING: /" >&2 | |
13152 | ;; | |
c0d27fcc MR |
13153 | esac |
13154 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13158 | else | |
35996d22 | 13159 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 13160 | fi |
c0d27fcc | 13161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 13162 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13163 | |
13164 | fi | |
98418dba | 13165 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13166 | cat >>confdefs.h <<_ACEOF |
98418dba | 13167 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13168 | _ACEOF |
48d4b120 | 13169 | |
ba4481b5 | 13170 | fi |
c0d27fcc | 13171 | |
98418dba CW |
13172 | done |
13173 | ||
c0d27fcc MR |
13174 | |
13175 | ||
13176 | ||
13177 | ||
13178 | ||
13179 | ||
13180 | ||
13181 | ||
13182 | ||
13183 | ||
13184 | ||
13185 | ||
13186 | ||
13187 | ||
13188 | ||
13189 | ||
13190 | ||
13191 | ||
13192 | ||
13193 | ||
13194 | ||
13195 | ||
13196 | ||
13197 | ||
13198 | ||
13199 | ||
13200 | ||
13201 | ||
13202 | ||
13203 | ||
13204 | ||
13205 | ||
13206 | ||
13207 | ||
13208 | ||
13209 | ||
13210 | ||
13211 | ||
13212 | ||
13213 | ||
13214 | ||
13215 | ||
13216 | ||
13217 | ||
13218 | ||
13219 | ||
13220 | ||
13221 | ||
13222 | ||
13223 | ||
13224 | ||
13225 | ||
13226 | ||
13227 | ||
13228 | ||
22044edf DL |
13229 | |
13230 | ||
c0d27fcc | 13231 | |
b0e44248 RB |
13232 | |
13233 | ||
973a76b1 DL |
13234 | |
13235 | ||
13236 | ||
cd958eb3 | 13237 | |
25ca0bca | 13238 | |
28127e47 | 13239 | |
c0d27fcc MR |
13240 | |
13241 | ||
98418dba CW |
13242 | for ac_func in gethostname getdomainname dup2 \ |
13243 | rename closedir mkdir rmdir sysinfo \ | |
13244 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
13245 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
973a76b1 | 13246 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
98418dba CW |
13247 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
13248 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
b0e44248 | 13249 | gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ |
28127e47 | 13250 | memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign |
98418dba CW |
13251 | do |
13252 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13253 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
13254 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13255 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13257 | else |
503d2be0 | 13258 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13259 | /* confdefs.h. */ |
13260 | _ACEOF | |
13261 | cat confdefs.h >>conftest.$ac_ext | |
13262 | cat >>conftest.$ac_ext <<_ACEOF | |
13263 | /* end confdefs.h. */ | |
35996d22 AS |
13264 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13265 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13266 | #define $ac_func innocuous_$ac_func | |
13267 | ||
98418dba | 13268 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
13269 | which can conflict with char $ac_func (); below. |
13270 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13271 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 13272 | |
19650fd6 AS |
13273 | #ifdef __STDC__ |
13274 | # include <limits.h> | |
13275 | #else | |
13276 | # include <assert.h> | |
13277 | #endif | |
35996d22 AS |
13278 | |
13279 | #undef $ac_func | |
13280 | ||
ba4481b5 | 13281 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13282 | #ifdef __cplusplus |
13283 | extern "C" | |
19650fd6 | 13284 | { |
503d2be0 | 13285 | #endif |
ba4481b5 | 13286 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13287 | builtin and then its argument prototype would still apply. */ |
98418dba | 13288 | char $ac_func (); |
98418dba CW |
13289 | /* The GNU C library defines this for functions which it implements |
13290 | to always fail with ENOSYS. Some functions are actually named | |
13291 | something starting with __ and the normal name is an alias. */ | |
13292 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13293 | choke me | |
13294 | #else | |
19650fd6 AS |
13295 | char (*f) () = $ac_func; |
13296 | #endif | |
13297 | #ifdef __cplusplus | |
13298 | } | |
98418dba CW |
13299 | #endif |
13300 | ||
19650fd6 AS |
13301 | int |
13302 | main () | |
13303 | { | |
13304 | return f != $ac_func; | |
503d2be0 AS |
13305 | ; |
13306 | return 0; | |
13307 | } | |
13308 | _ACEOF | |
13309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13311 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13312 | ac_status=$? |
35996d22 AS |
13313 | grep -v '^ *+' conftest.er1 >conftest.err |
13314 | rm -f conftest.er1 | |
13315 | cat conftest.err >&5 | |
c0d27fcc | 13316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13317 | (exit $ac_status); } && |
35996d22 AS |
13318 | { ac_try='test -z "$ac_c_werror_flag" |
13319 | || test ! -s conftest.err' | |
13320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13321 | (eval $ac_try) 2>&5 | |
13322 | ac_status=$? | |
13323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13324 | (exit $ac_status); }; } && | |
13325 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13327 | (eval $ac_try) 2>&5 |
13328 | ac_status=$? | |
c0d27fcc | 13329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13330 | (exit $ac_status); }; }; then |
98418dba | 13331 | eval "$as_ac_var=yes" |
503d2be0 AS |
13332 | else |
13333 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13334 | sed 's/^/| /' conftest.$ac_ext >&5 |
13335 | ||
98418dba | 13336 | eval "$as_ac_var=no" |
503d2be0 | 13337 | fi |
35996d22 AS |
13338 | rm -f conftest.err conftest.$ac_objext \ |
13339 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 13340 | fi |
c0d27fcc | 13341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13342 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13343 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13344 | cat >>confdefs.h <<_ACEOF |
98418dba | 13345 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13346 | _ACEOF |
ba4481b5 | 13347 | |
ba4481b5 | 13348 | fi |
98418dba | 13349 | done |
ba4481b5 | 13350 | |
c0d27fcc MR |
13351 | |
13352 | ||
98418dba CW |
13353 | for ac_header in sys/un.h |
13354 | do | |
13355 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13357 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
13358 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13359 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13361 | fi |
13362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13363 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 13364 | else |
c0d27fcc MR |
13365 | # Is the header compilable? |
13366 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13367 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13368 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13369 | /* confdefs.h. */ |
13370 | _ACEOF | |
13371 | cat confdefs.h >>conftest.$ac_ext | |
13372 | cat >>conftest.$ac_ext <<_ACEOF | |
13373 | /* end confdefs.h. */ | |
c0d27fcc MR |
13374 | $ac_includes_default |
13375 | #include <$ac_header> | |
13376 | _ACEOF | |
13377 | rm -f conftest.$ac_objext | |
13378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13379 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13380 | ac_status=$? |
35996d22 AS |
13381 | grep -v '^ *+' conftest.er1 >conftest.err |
13382 | rm -f conftest.er1 | |
13383 | cat conftest.err >&5 | |
c0d27fcc MR |
13384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13385 | (exit $ac_status); } && | |
35996d22 AS |
13386 | { ac_try='test -z "$ac_c_werror_flag" |
13387 | || test ! -s conftest.err' | |
13388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13389 | (eval $ac_try) 2>&5 | |
13390 | ac_status=$? | |
13391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13392 | (exit $ac_status); }; } && | |
13393 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13395 | (eval $ac_try) 2>&5 | |
13396 | ac_status=$? | |
13397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13398 | (exit $ac_status); }; }; then | |
13399 | ac_header_compiler=yes | |
13400 | else | |
13401 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13402 | sed 's/^/| /' conftest.$ac_ext >&5 |
13403 | ||
c0d27fcc MR |
13404 | ac_header_compiler=no |
13405 | fi | |
35996d22 | 13406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13407 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13408 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13409 | ||
13410 | # Is the header present? | |
13411 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13412 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13413 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13414 | /* confdefs.h. */ |
13415 | _ACEOF | |
13416 | cat confdefs.h >>conftest.$ac_ext | |
13417 | cat >>conftest.$ac_ext <<_ACEOF | |
13418 | /* end confdefs.h. */ | |
98418dba | 13419 | #include <$ac_header> |
503d2be0 | 13420 | _ACEOF |
c0d27fcc | 13421 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13422 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13423 | ac_status=$? | |
6bae0ccf | 13424 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13425 | rm -f conftest.er1 |
13426 | cat conftest.err >&5 | |
c0d27fcc | 13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13428 | (exit $ac_status); } >/dev/null; then |
13429 | if test -s conftest.err; then | |
13430 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13431 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
13432 | else |
13433 | ac_cpp_err= | |
13434 | fi | |
13435 | else | |
13436 | ac_cpp_err=yes | |
13437 | fi | |
13438 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13439 | ac_header_preproc=yes |
ba4481b5 | 13440 | else |
503d2be0 | 13441 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13442 | sed 's/^/| /' conftest.$ac_ext >&5 |
13443 | ||
c0d27fcc | 13444 | ac_header_preproc=no |
ba4481b5 | 13445 | fi |
503d2be0 | 13446 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13447 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13448 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13449 | ||
13450 | # So? What about this header? | |
35996d22 AS |
13451 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13452 | yes:no: ) | |
c0d27fcc MR |
13453 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13454 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13455 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13456 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13457 | ac_header_preproc=yes | |
19650fd6 | 13458 | ;; |
35996d22 | 13459 | no:yes:* ) |
c0d27fcc MR |
13460 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13461 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13462 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13463 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13464 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13465 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13466 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13467 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13469 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13470 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13471 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13472 | ( |
13473 | cat <<\_ASBOX | |
35996d22 AS |
13474 | ## ------------------------------------------ ## |
13475 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13476 | ## ------------------------------------------ ## | |
19650fd6 AS |
13477 | _ASBOX |
13478 | ) | | |
13479 | sed "s/^/$as_me: WARNING: /" >&2 | |
13480 | ;; | |
c0d27fcc MR |
13481 | esac |
13482 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13483 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13486 | else | |
35996d22 | 13487 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 13488 | fi |
c0d27fcc | 13489 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
925c2f3f | 13490 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13491 | |
13492 | fi | |
925c2f3f | 13493 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13494 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 13495 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13496 | _ACEOF |
503d2be0 | 13497 | |
925c2f3f | 13498 | fi |
c0d27fcc | 13499 | |
925c2f3f EZ |
13500 | done |
13501 | ||
c0d27fcc MR |
13502 | |
13503 | ||
13504 | ||
35996d22 AS |
13505 | |
13506 | for ac_header in stdlib.h sys/time.h unistd.h | |
925c2f3f EZ |
13507 | do |
13508 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13509 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13510 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
13511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13514 | fi |
13515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13516 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
925c2f3f | 13517 | else |
c0d27fcc MR |
13518 | # Is the header compilable? |
13519 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13520 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13521 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13522 | /* confdefs.h. */ |
13523 | _ACEOF | |
13524 | cat confdefs.h >>conftest.$ac_ext | |
13525 | cat >>conftest.$ac_ext <<_ACEOF | |
13526 | /* end confdefs.h. */ | |
c0d27fcc MR |
13527 | $ac_includes_default |
13528 | #include <$ac_header> | |
13529 | _ACEOF | |
13530 | rm -f conftest.$ac_objext | |
13531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13532 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13533 | ac_status=$? |
35996d22 AS |
13534 | grep -v '^ *+' conftest.er1 >conftest.err |
13535 | rm -f conftest.er1 | |
13536 | cat conftest.err >&5 | |
c0d27fcc MR |
13537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13538 | (exit $ac_status); } && | |
35996d22 AS |
13539 | { ac_try='test -z "$ac_c_werror_flag" |
13540 | || test ! -s conftest.err' | |
13541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13542 | (eval $ac_try) 2>&5 | |
13543 | ac_status=$? | |
13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13545 | (exit $ac_status); }; } && | |
13546 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13548 | (eval $ac_try) 2>&5 | |
13549 | ac_status=$? | |
13550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13551 | (exit $ac_status); }; }; then | |
13552 | ac_header_compiler=yes | |
13553 | else | |
13554 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13555 | sed 's/^/| /' conftest.$ac_ext >&5 |
13556 | ||
c0d27fcc MR |
13557 | ac_header_compiler=no |
13558 | fi | |
35996d22 | 13559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13560 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13561 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13562 | ||
13563 | # Is the header present? | |
13564 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13565 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13566 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13567 | /* confdefs.h. */ |
13568 | _ACEOF | |
13569 | cat confdefs.h >>conftest.$ac_ext | |
13570 | cat >>conftest.$ac_ext <<_ACEOF | |
13571 | /* end confdefs.h. */ | |
98418dba | 13572 | #include <$ac_header> |
503d2be0 | 13573 | _ACEOF |
c0d27fcc | 13574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13575 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13576 | ac_status=$? | |
6bae0ccf | 13577 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13578 | rm -f conftest.er1 |
13579 | cat conftest.err >&5 | |
c0d27fcc | 13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13581 | (exit $ac_status); } >/dev/null; then |
13582 | if test -s conftest.err; then | |
13583 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13584 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
13585 | else |
13586 | ac_cpp_err= | |
13587 | fi | |
13588 | else | |
13589 | ac_cpp_err=yes | |
13590 | fi | |
13591 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13592 | ac_header_preproc=yes |
98418dba CW |
13593 | else |
13594 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13595 | sed 's/^/| /' conftest.$ac_ext >&5 |
13596 | ||
c0d27fcc | 13597 | ac_header_preproc=no |
98418dba CW |
13598 | fi |
13599 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
13600 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13601 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13602 | ||
13603 | # So? What about this header? | |
35996d22 AS |
13604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13605 | yes:no: ) | |
c0d27fcc MR |
13606 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13607 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13609 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13610 | ac_header_preproc=yes | |
19650fd6 | 13611 | ;; |
35996d22 | 13612 | no:yes:* ) |
c0d27fcc MR |
13613 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13614 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13615 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13616 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13617 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13618 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13619 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13620 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13622 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13623 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13624 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13625 | ( |
13626 | cat <<\_ASBOX | |
35996d22 AS |
13627 | ## ------------------------------------------ ## |
13628 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13629 | ## ------------------------------------------ ## | |
19650fd6 AS |
13630 | _ASBOX |
13631 | ) | | |
13632 | sed "s/^/$as_me: WARNING: /" >&2 | |
13633 | ;; | |
c0d27fcc MR |
13634 | esac |
13635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13639 | else | |
35996d22 | 13640 | eval "$as_ac_Header=\$ac_header_preproc" |
ffe36136 | 13641 | fi |
c0d27fcc | 13642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 13643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13644 | |
13645 | fi | |
98418dba | 13646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13647 | cat >>confdefs.h <<_ACEOF |
98418dba | 13648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13649 | _ACEOF |
98418dba CW |
13650 | |
13651 | fi | |
c0d27fcc | 13652 | |
98418dba CW |
13653 | done |
13654 | ||
c0d27fcc | 13655 | |
98418dba CW |
13656 | for ac_func in alarm |
13657 | do | |
13658 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13659 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
13660 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13661 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13663 | else |
98418dba | 13664 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13665 | /* confdefs.h. */ |
13666 | _ACEOF | |
13667 | cat confdefs.h >>conftest.$ac_ext | |
13668 | cat >>conftest.$ac_ext <<_ACEOF | |
13669 | /* end confdefs.h. */ | |
35996d22 AS |
13670 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13671 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13672 | #define $ac_func innocuous_$ac_func | |
13673 | ||
98418dba | 13674 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
13675 | which can conflict with char $ac_func (); below. |
13676 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13677 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 13678 | |
19650fd6 AS |
13679 | #ifdef __STDC__ |
13680 | # include <limits.h> | |
13681 | #else | |
13682 | # include <assert.h> | |
13683 | #endif | |
35996d22 AS |
13684 | |
13685 | #undef $ac_func | |
13686 | ||
ba4481b5 | 13687 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13688 | #ifdef __cplusplus |
13689 | extern "C" | |
19650fd6 | 13690 | { |
503d2be0 | 13691 | #endif |
ba4481b5 | 13692 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13693 | builtin and then its argument prototype would still apply. */ |
98418dba | 13694 | char $ac_func (); |
98418dba CW |
13695 | /* The GNU C library defines this for functions which it implements |
13696 | to always fail with ENOSYS. Some functions are actually named | |
13697 | something starting with __ and the normal name is an alias. */ | |
13698 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13699 | choke me | |
13700 | #else | |
19650fd6 AS |
13701 | char (*f) () = $ac_func; |
13702 | #endif | |
13703 | #ifdef __cplusplus | |
13704 | } | |
98418dba CW |
13705 | #endif |
13706 | ||
19650fd6 AS |
13707 | int |
13708 | main () | |
13709 | { | |
13710 | return f != $ac_func; | |
503d2be0 AS |
13711 | ; |
13712 | return 0; | |
13713 | } | |
13714 | _ACEOF | |
13715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13717 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13718 | ac_status=$? |
35996d22 AS |
13719 | grep -v '^ *+' conftest.er1 >conftest.err |
13720 | rm -f conftest.er1 | |
13721 | cat conftest.err >&5 | |
c0d27fcc | 13722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13723 | (exit $ac_status); } && |
35996d22 AS |
13724 | { ac_try='test -z "$ac_c_werror_flag" |
13725 | || test ! -s conftest.err' | |
13726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13727 | (eval $ac_try) 2>&5 | |
13728 | ac_status=$? | |
13729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13730 | (exit $ac_status); }; } && | |
13731 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13733 | (eval $ac_try) 2>&5 |
13734 | ac_status=$? | |
c0d27fcc | 13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13736 | (exit $ac_status); }; }; then |
98418dba | 13737 | eval "$as_ac_var=yes" |
503d2be0 AS |
13738 | else |
13739 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13740 | sed 's/^/| /' conftest.$ac_ext >&5 |
13741 | ||
98418dba | 13742 | eval "$as_ac_var=no" |
503d2be0 | 13743 | fi |
35996d22 AS |
13744 | rm -f conftest.err conftest.$ac_objext \ |
13745 | conftest$ac_exeext conftest.$ac_ext | |
ffe36136 | 13746 | fi |
c0d27fcc | 13747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13748 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13749 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13750 | cat >>confdefs.h <<_ACEOF |
98418dba | 13751 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13752 | _ACEOF |
ffe36136 | 13753 | |
ba4481b5 | 13754 | fi |
98418dba | 13755 | done |
ba4481b5 | 13756 | |
c0d27fcc | 13757 | echo "$as_me:$LINENO: checking for working mktime" >&5 |
98418dba CW |
13758 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
13759 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
13760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13761 | else | |
13762 | if test "$cross_compiling" = yes; then | |
13763 | ac_cv_func_working_mktime=no | |
13764 | else | |
13765 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13766 | /* confdefs.h. */ |
13767 | _ACEOF | |
13768 | cat confdefs.h >>conftest.$ac_ext | |
13769 | cat >>conftest.$ac_ext <<_ACEOF | |
13770 | /* end confdefs.h. */ | |
98418dba CW |
13771 | /* Test program from Paul Eggert and Tony Leneis. */ |
13772 | #if TIME_WITH_SYS_TIME | |
13773 | # include <sys/time.h> | |
13774 | # include <time.h> | |
13775 | #else | |
13776 | # if HAVE_SYS_TIME_H | |
13777 | # include <sys/time.h> | |
13778 | # else | |
13779 | # include <time.h> | |
13780 | # endif | |
13781 | #endif | |
ba4481b5 | 13782 | |
35996d22 AS |
13783 | #if HAVE_STDLIB_H |
13784 | # include <stdlib.h> | |
13785 | #endif | |
13786 | ||
98418dba CW |
13787 | #if HAVE_UNISTD_H |
13788 | # include <unistd.h> | |
13789 | #endif | |
ba4481b5 | 13790 | |
98418dba CW |
13791 | #if !HAVE_ALARM |
13792 | # define alarm(X) /* empty */ | |
13793 | #endif | |
df645f7c | 13794 | |
98418dba CW |
13795 | /* Work around redefinition to rpl_putenv by other config tests. */ |
13796 | #undef putenv | |
df645f7c | 13797 | |
98418dba | 13798 | static time_t time_t_max; |
35996d22 | 13799 | static time_t time_t_min; |
df645f7c | 13800 | |
98418dba | 13801 | /* Values we'll use to set the TZ environment variable. */ |
35996d22 AS |
13802 | static char *tz_strings[] = { |
13803 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
98418dba CW |
13804 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
13805 | }; | |
13806 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 13807 | |
98418dba CW |
13808 | /* Fail if mktime fails to convert a date in the spring-forward gap. |
13809 | Based on a problem report from Andreas Jaeger. */ | |
13810 | static void | |
13811 | spring_forward_gap () | |
13812 | { | |
13813 | /* glibc (up to about 1998-10-07) failed this test. */ | |
13814 | struct tm tm; | |
13815 | ||
13816 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
13817 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
13818 | on systems that don't support the Olson extension, or don't have the | |
13819 | full zoneinfo tables installed. */ | |
13820 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
13821 | ||
13822 | tm.tm_year = 98; | |
13823 | tm.tm_mon = 3; | |
13824 | tm.tm_mday = 5; | |
13825 | tm.tm_hour = 2; | |
13826 | tm.tm_min = 0; | |
13827 | tm.tm_sec = 0; | |
13828 | tm.tm_isdst = -1; | |
13829 | if (mktime (&tm) == (time_t)-1) | |
13830 | exit (1); | |
13831 | } | |
13832 | ||
13833 | static void | |
35996d22 | 13834 | mktime_test1 (now) |
98418dba CW |
13835 | time_t now; |
13836 | { | |
13837 | struct tm *lt; | |
13838 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
13839 | exit (1); | |
35996d22 AS |
13840 | } |
13841 | ||
13842 | static void | |
13843 | mktime_test (now) | |
13844 | time_t now; | |
13845 | { | |
13846 | mktime_test1 (now); | |
13847 | mktime_test1 ((time_t) (time_t_max - now)); | |
13848 | mktime_test1 ((time_t) (time_t_min + now)); | |
98418dba CW |
13849 | } |
13850 | ||
13851 | static void | |
13852 | irix_6_4_bug () | |
13853 | { | |
13854 | /* Based on code from Ariel Faigon. */ | |
13855 | struct tm tm; | |
13856 | tm.tm_year = 96; | |
13857 | tm.tm_mon = 3; | |
13858 | tm.tm_mday = 0; | |
13859 | tm.tm_hour = 0; | |
13860 | tm.tm_min = 0; | |
13861 | tm.tm_sec = 0; | |
13862 | tm.tm_isdst = -1; | |
13863 | mktime (&tm); | |
13864 | if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
13865 | exit (1); | |
13866 | } | |
13867 | ||
13868 | static void | |
13869 | bigtime_test (j) | |
13870 | int j; | |
13871 | { | |
13872 | struct tm tm; | |
13873 | time_t now; | |
13874 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
13875 | now = mktime (&tm); | |
13876 | if (now != (time_t) -1) | |
13877 | { | |
13878 | struct tm *lt = localtime (&now); | |
13879 | if (! (lt | |
13880 | && lt->tm_year == tm.tm_year | |
13881 | && lt->tm_mon == tm.tm_mon | |
13882 | && lt->tm_mday == tm.tm_mday | |
13883 | && lt->tm_hour == tm.tm_hour | |
13884 | && lt->tm_min == tm.tm_min | |
13885 | && lt->tm_sec == tm.tm_sec | |
13886 | && lt->tm_yday == tm.tm_yday | |
13887 | && lt->tm_wday == tm.tm_wday | |
13888 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
13889 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
13890 | exit (1); | |
13891 | } | |
13892 | } | |
13893 | ||
13894 | int | |
13895 | main () | |
13896 | { | |
13897 | time_t t, delta; | |
13898 | int i, j; | |
13899 | ||
13900 | /* This test makes some buggy mktime implementations loop. | |
13901 | Give up after 60 seconds; a mktime slower than that | |
13902 | isn't worth using anyway. */ | |
13903 | alarm (60); | |
13904 | ||
13905 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
13906 | continue; | |
13907 | time_t_max--; | |
35996d22 AS |
13908 | if ((time_t) -1 < 0) |
13909 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
13910 | continue; | |
98418dba CW |
13911 | delta = time_t_max / 997; /* a suitable prime number */ |
13912 | for (i = 0; i < N_STRINGS; i++) | |
13913 | { | |
13914 | if (tz_strings[i]) | |
13915 | putenv (tz_strings[i]); | |
503d2be0 | 13916 | |
98418dba CW |
13917 | for (t = 0; t <= time_t_max - delta; t += delta) |
13918 | mktime_test (t); | |
35996d22 AS |
13919 | mktime_test ((time_t) 1); |
13920 | mktime_test ((time_t) (60 * 60)); | |
13921 | mktime_test ((time_t) (60 * 60 * 24)); | |
98418dba CW |
13922 | |
13923 | for (j = 1; 0 < j; j *= 2) | |
35996d22 | 13924 | bigtime_test (j); |
98418dba CW |
13925 | bigtime_test (j - 1); |
13926 | } | |
13927 | irix_6_4_bug (); | |
13928 | spring_forward_gap (); | |
13929 | exit (0); | |
503d2be0 AS |
13930 | } |
13931 | _ACEOF | |
98418dba | 13932 | rm -f conftest$ac_exeext |
c0d27fcc | 13933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
13934 | (eval $ac_link) 2>&5 |
13935 | ac_status=$? | |
c0d27fcc | 13936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 13937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 13938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13939 | (eval $ac_try) 2>&5 |
13940 | ac_status=$? | |
c0d27fcc | 13941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13942 | (exit $ac_status); }; }; then |
98418dba | 13943 | ac_cv_func_working_mktime=yes |
503d2be0 | 13944 | else |
98418dba CW |
13945 | echo "$as_me: program exited with status $ac_status" >&5 |
13946 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13947 | sed 's/^/| /' conftest.$ac_ext >&5 |
13948 | ||
c0d27fcc | 13949 | ( exit $ac_status ) |
98418dba | 13950 | ac_cv_func_working_mktime=no |
503d2be0 | 13951 | fi |
35996d22 | 13952 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 13953 | fi |
ba4481b5 | 13954 | fi |
c0d27fcc | 13955 | echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
98418dba CW |
13956 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
13957 | if test $ac_cv_func_working_mktime = no; then | |
35996d22 AS |
13958 | case $LIBOBJS in |
13959 | "mktime.$ac_objext" | \ | |
13960 | *" mktime.$ac_objext" | \ | |
13961 | "mktime.$ac_objext "* | \ | |
13962 | *" mktime.$ac_objext "* ) ;; | |
13963 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;; | |
13964 | esac | |
13965 | ||
ba4481b5 DL |
13966 | fi |
13967 | ||
98418dba | 13968 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 13969 | |
c0d27fcc | 13970 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13971 | #define BROKEN_MKTIME 1 |
c0d27fcc | 13972 | _ACEOF |
ba4481b5 | 13973 | |
ba4481b5 | 13974 | fi |
503d2be0 | 13975 | |
98418dba CW |
13976 | ac_have_func=no # yes means we've found a way to get the load average. |
13977 | ||
6bae0ccf DL |
13978 | # Make sure getloadavg.c is where it belongs, at configure-time. |
13979 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
13980 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
13981 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
13982 | { (exit 1); exit 1; }; } | |
13983 | ||
98418dba CW |
13984 | ac_save_LIBS=$LIBS |
13985 | ||
13986 | # Check for getloadavg, but be sure not to touch the cache variable. | |
c0d27fcc | 13987 | (echo "$as_me:$LINENO: checking for getloadavg" >&5 |
98418dba CW |
13988 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
13989 | if test "${ac_cv_func_getloadavg+set}" = set; then | |
503d2be0 | 13990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13991 | else |
503d2be0 | 13992 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13993 | /* confdefs.h. */ |
13994 | _ACEOF | |
13995 | cat confdefs.h >>conftest.$ac_ext | |
13996 | cat >>conftest.$ac_ext <<_ACEOF | |
13997 | /* end confdefs.h. */ | |
35996d22 AS |
13998 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
13999 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14000 | #define getloadavg innocuous_getloadavg | |
14001 | ||
98418dba | 14002 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14003 | which can conflict with char getloadavg (); below. |
14004 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14005 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14006 | |
19650fd6 AS |
14007 | #ifdef __STDC__ |
14008 | # include <limits.h> | |
14009 | #else | |
14010 | # include <assert.h> | |
14011 | #endif | |
35996d22 AS |
14012 | |
14013 | #undef getloadavg | |
14014 | ||
ba4481b5 | 14015 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14016 | #ifdef __cplusplus |
14017 | extern "C" | |
19650fd6 | 14018 | { |
503d2be0 | 14019 | #endif |
ba4481b5 | 14020 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14021 | builtin and then its argument prototype would still apply. */ |
98418dba | 14022 | char getloadavg (); |
98418dba CW |
14023 | /* The GNU C library defines this for functions which it implements |
14024 | to always fail with ENOSYS. Some functions are actually named | |
14025 | something starting with __ and the normal name is an alias. */ | |
14026 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
14027 | choke me | |
14028 | #else | |
19650fd6 AS |
14029 | char (*f) () = getloadavg; |
14030 | #endif | |
14031 | #ifdef __cplusplus | |
14032 | } | |
cd958eb3 MB |
14033 | #endif |
14034 | ||
19650fd6 AS |
14035 | int |
14036 | main () | |
14037 | { | |
14038 | return f != getloadavg; | |
503d2be0 AS |
14039 | ; |
14040 | return 0; | |
14041 | } | |
14042 | _ACEOF | |
14043 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14045 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14046 | ac_status=$? |
35996d22 AS |
14047 | grep -v '^ *+' conftest.er1 >conftest.err |
14048 | rm -f conftest.er1 | |
14049 | cat conftest.err >&5 | |
c0d27fcc | 14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14051 | (exit $ac_status); } && |
35996d22 AS |
14052 | { ac_try='test -z "$ac_c_werror_flag" |
14053 | || test ! -s conftest.err' | |
14054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14055 | (eval $ac_try) 2>&5 | |
14056 | ac_status=$? | |
14057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14058 | (exit $ac_status); }; } && | |
14059 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14061 | (eval $ac_try) 2>&5 |
14062 | ac_status=$? | |
c0d27fcc | 14063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14064 | (exit $ac_status); }; }; then |
98418dba | 14065 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
14066 | else |
14067 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14068 | sed 's/^/| /' conftest.$ac_ext >&5 |
14069 | ||
98418dba | 14070 | ac_cv_func_getloadavg=no |
503d2be0 | 14071 | fi |
35996d22 AS |
14072 | rm -f conftest.err conftest.$ac_objext \ |
14073 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 14074 | fi |
c0d27fcc | 14075 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
98418dba CW |
14076 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
14077 | if test $ac_cv_func_getloadavg = yes; then | |
14078 | exit 0 | |
14079 | else | |
14080 | exit 1 | |
ba4481b5 | 14081 | fi |
98418dba | 14082 | ) && ac_have_func=yes |
ba4481b5 | 14083 | |
98418dba | 14084 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 14085 | |
98418dba CW |
14086 | for ac_func in pstat_getdynamic |
14087 | do | |
14088 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14089 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
14090 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14091 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 14092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14093 | else |
503d2be0 | 14094 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14095 | /* confdefs.h. */ |
14096 | _ACEOF | |
14097 | cat confdefs.h >>conftest.$ac_ext | |
14098 | cat >>conftest.$ac_ext <<_ACEOF | |
14099 | /* end confdefs.h. */ | |
35996d22 AS |
14100 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14102 | #define $ac_func innocuous_$ac_func | |
14103 | ||
98418dba | 14104 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14105 | which can conflict with char $ac_func (); below. |
14106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14107 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14108 | |
19650fd6 AS |
14109 | #ifdef __STDC__ |
14110 | # include <limits.h> | |
14111 | #else | |
14112 | # include <assert.h> | |
14113 | #endif | |
35996d22 AS |
14114 | |
14115 | #undef $ac_func | |
14116 | ||
ba4481b5 | 14117 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14118 | #ifdef __cplusplus |
14119 | extern "C" | |
19650fd6 | 14120 | { |
503d2be0 | 14121 | #endif |
ba4481b5 | 14122 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14123 | builtin and then its argument prototype would still apply. */ |
98418dba | 14124 | char $ac_func (); |
98418dba CW |
14125 | /* The GNU C library defines this for functions which it implements |
14126 | to always fail with ENOSYS. Some functions are actually named | |
14127 | something starting with __ and the normal name is an alias. */ | |
14128 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14129 | choke me | |
14130 | #else | |
19650fd6 AS |
14131 | char (*f) () = $ac_func; |
14132 | #endif | |
14133 | #ifdef __cplusplus | |
14134 | } | |
98418dba CW |
14135 | #endif |
14136 | ||
19650fd6 AS |
14137 | int |
14138 | main () | |
14139 | { | |
14140 | return f != $ac_func; | |
98418dba CW |
14141 | ; |
14142 | return 0; | |
14143 | } | |
f21fadcc | 14144 | _ACEOF |
98418dba | 14145 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 14146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14147 | (eval $ac_link) 2>conftest.er1 |
f21fadcc | 14148 | ac_status=$? |
35996d22 AS |
14149 | grep -v '^ *+' conftest.er1 >conftest.err |
14150 | rm -f conftest.er1 | |
14151 | cat conftest.err >&5 | |
c0d27fcc | 14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14153 | (exit $ac_status); } && |
35996d22 AS |
14154 | { ac_try='test -z "$ac_c_werror_flag" |
14155 | || test ! -s conftest.err' | |
14156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14157 | (eval $ac_try) 2>&5 | |
14158 | ac_status=$? | |
14159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14160 | (exit $ac_status); }; } && | |
14161 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
14163 | (eval $ac_try) 2>&5 |
14164 | ac_status=$? | |
c0d27fcc | 14165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14166 | (exit $ac_status); }; }; then |
14167 | eval "$as_ac_var=yes" | |
f21fadcc JD |
14168 | else |
14169 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14170 | sed 's/^/| /' conftest.$ac_ext >&5 |
14171 | ||
98418dba | 14172 | eval "$as_ac_var=no" |
f21fadcc | 14173 | fi |
35996d22 AS |
14174 | rm -f conftest.err conftest.$ac_objext \ |
14175 | conftest$ac_exeext conftest.$ac_ext | |
f21fadcc | 14176 | fi |
c0d27fcc | 14177 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
14178 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14179 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14180 | cat >>confdefs.h <<_ACEOF |
98418dba | 14181 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14182 | _ACEOF |
98418dba CW |
14183 | |
14184 | fi | |
14185 | done | |
14186 | ||
c0d27fcc | 14187 | |
98418dba CW |
14188 | # Solaris has libkstat which does not require root. |
14189 | ||
c0d27fcc | 14190 | echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
98418dba CW |
14191 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
14192 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
f21fadcc JD |
14193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14194 | else | |
14195 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 14196 | LIBS="-lkstat $LIBS" |
f21fadcc | 14197 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14198 | /* confdefs.h. */ |
14199 | _ACEOF | |
14200 | cat confdefs.h >>conftest.$ac_ext | |
14201 | cat >>conftest.$ac_ext <<_ACEOF | |
14202 | /* end confdefs.h. */ | |
f21fadcc JD |
14203 | |
14204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14205 | #ifdef __cplusplus | |
14206 | extern "C" | |
14207 | #endif | |
14208 | /* We use char because int might match the return type of a gcc2 | |
14209 | builtin and then its argument prototype would still apply. */ | |
98418dba | 14210 | char kstat_open (); |
f21fadcc JD |
14211 | int |
14212 | main () | |
14213 | { | |
98418dba | 14214 | kstat_open (); |
f21fadcc JD |
14215 | ; |
14216 | return 0; | |
14217 | } | |
14218 | _ACEOF | |
14219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14221 | (eval $ac_link) 2>conftest.er1 |
f21fadcc | 14222 | ac_status=$? |
35996d22 AS |
14223 | grep -v '^ *+' conftest.er1 >conftest.err |
14224 | rm -f conftest.er1 | |
14225 | cat conftest.err >&5 | |
c0d27fcc | 14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 14227 | (exit $ac_status); } && |
35996d22 AS |
14228 | { ac_try='test -z "$ac_c_werror_flag" |
14229 | || test ! -s conftest.err' | |
14230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14231 | (eval $ac_try) 2>&5 | |
14232 | ac_status=$? | |
14233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14234 | (exit $ac_status); }; } && | |
14235 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f21fadcc JD |
14237 | (eval $ac_try) 2>&5 |
14238 | ac_status=$? | |
c0d27fcc | 14239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 14240 | (exit $ac_status); }; }; then |
98418dba | 14241 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
14242 | else |
14243 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14244 | sed 's/^/| /' conftest.$ac_ext >&5 |
14245 | ||
98418dba | 14246 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc | 14247 | fi |
35996d22 AS |
14248 | rm -f conftest.err conftest.$ac_objext \ |
14249 | conftest$ac_exeext conftest.$ac_ext | |
f21fadcc JD |
14250 | LIBS=$ac_check_lib_save_LIBS |
14251 | fi | |
c0d27fcc | 14252 | echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
98418dba CW |
14253 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
14254 | if test $ac_cv_lib_kstat_kstat_open = yes; then | |
c0d27fcc | 14255 | cat >>confdefs.h <<_ACEOF |
98418dba | 14256 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 14257 | _ACEOF |
f21fadcc | 14258 | |
98418dba | 14259 | LIBS="-lkstat $LIBS" |
f21fadcc | 14260 | |
f21fadcc JD |
14261 | fi |
14262 | ||
98418dba CW |
14263 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
14264 | ||
14265 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
14266 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
14267 | # to get the right answer into the cache. | |
14268 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
14269 | if test $ac_have_func = no; then | |
c0d27fcc | 14270 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
98418dba CW |
14271 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
14272 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
503d2be0 | 14273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14274 | else |
98418dba CW |
14275 | ac_check_lib_save_LIBS=$LIBS |
14276 | LIBS="-lelf $LIBS" | |
14277 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14278 | /* confdefs.h. */ |
14279 | _ACEOF | |
14280 | cat confdefs.h >>conftest.$ac_ext | |
14281 | cat >>conftest.$ac_ext <<_ACEOF | |
14282 | /* end confdefs.h. */ | |
98418dba CW |
14283 | |
14284 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14285 | #ifdef __cplusplus | |
14286 | extern "C" | |
14287 | #endif | |
14288 | /* We use char because int might match the return type of a gcc2 | |
14289 | builtin and then its argument prototype would still apply. */ | |
14290 | char elf_begin (); | |
503d2be0 AS |
14291 | int |
14292 | main () | |
14293 | { | |
98418dba | 14294 | elf_begin (); |
503d2be0 AS |
14295 | ; |
14296 | return 0; | |
14297 | } | |
14298 | _ACEOF | |
14299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14301 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14302 | ac_status=$? |
35996d22 AS |
14303 | grep -v '^ *+' conftest.er1 >conftest.err |
14304 | rm -f conftest.er1 | |
14305 | cat conftest.err >&5 | |
c0d27fcc | 14306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14307 | (exit $ac_status); } && |
35996d22 AS |
14308 | { ac_try='test -z "$ac_c_werror_flag" |
14309 | || test ! -s conftest.err' | |
14310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14311 | (eval $ac_try) 2>&5 | |
14312 | ac_status=$? | |
14313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14314 | (exit $ac_status); }; } && | |
14315 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14317 | (eval $ac_try) 2>&5 |
14318 | ac_status=$? | |
c0d27fcc | 14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14320 | (exit $ac_status); }; }; then |
98418dba | 14321 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 14322 | else |
503d2be0 | 14323 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14324 | sed 's/^/| /' conftest.$ac_ext >&5 |
14325 | ||
98418dba | 14326 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 14327 | fi |
35996d22 AS |
14328 | rm -f conftest.err conftest.$ac_objext \ |
14329 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 14330 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 14331 | fi |
c0d27fcc | 14332 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
98418dba CW |
14333 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
14334 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
14335 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
14336 | fi |
14337 | ||
98418dba CW |
14338 | fi |
14339 | if test $ac_have_func = no; then | |
c0d27fcc | 14340 | echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
98418dba CW |
14341 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
14342 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
503d2be0 | 14343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14344 | else |
98418dba CW |
14345 | ac_check_lib_save_LIBS=$LIBS |
14346 | LIBS="-lkvm $LIBS" | |
14347 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14348 | /* confdefs.h. */ |
14349 | _ACEOF | |
14350 | cat confdefs.h >>conftest.$ac_ext | |
14351 | cat >>conftest.$ac_ext <<_ACEOF | |
14352 | /* end confdefs.h. */ | |
98418dba CW |
14353 | |
14354 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14355 | #ifdef __cplusplus | |
14356 | extern "C" | |
14357 | #endif | |
14358 | /* We use char because int might match the return type of a gcc2 | |
14359 | builtin and then its argument prototype would still apply. */ | |
14360 | char kvm_open (); | |
503d2be0 AS |
14361 | int |
14362 | main () | |
14363 | { | |
98418dba | 14364 | kvm_open (); |
503d2be0 AS |
14365 | ; |
14366 | return 0; | |
14367 | } | |
14368 | _ACEOF | |
14369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14371 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14372 | ac_status=$? |
35996d22 AS |
14373 | grep -v '^ *+' conftest.er1 >conftest.err |
14374 | rm -f conftest.er1 | |
14375 | cat conftest.err >&5 | |
c0d27fcc | 14376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14377 | (exit $ac_status); } && |
35996d22 AS |
14378 | { ac_try='test -z "$ac_c_werror_flag" |
14379 | || test ! -s conftest.err' | |
14380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14381 | (eval $ac_try) 2>&5 | |
14382 | ac_status=$? | |
14383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14384 | (exit $ac_status); }; } && | |
14385 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14387 | (eval $ac_try) 2>&5 |
14388 | ac_status=$? | |
c0d27fcc | 14389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14390 | (exit $ac_status); }; }; then |
98418dba | 14391 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
14392 | else |
14393 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14394 | sed 's/^/| /' conftest.$ac_ext >&5 |
14395 | ||
98418dba | 14396 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 | 14397 | fi |
35996d22 AS |
14398 | rm -f conftest.err conftest.$ac_objext \ |
14399 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 14400 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 14401 | fi |
c0d27fcc | 14402 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
98418dba CW |
14403 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
14404 | if test $ac_cv_lib_kvm_kvm_open = yes; then | |
14405 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
14406 | fi |
14407 | ||
98418dba | 14408 | # Check for the 4.4BSD definition of getloadavg. |
c0d27fcc | 14409 | echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
98418dba CW |
14410 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
14411 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
503d2be0 | 14412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14413 | else |
98418dba CW |
14414 | ac_check_lib_save_LIBS=$LIBS |
14415 | LIBS="-lutil $LIBS" | |
14416 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14417 | /* confdefs.h. */ |
14418 | _ACEOF | |
14419 | cat confdefs.h >>conftest.$ac_ext | |
14420 | cat >>conftest.$ac_ext <<_ACEOF | |
14421 | /* end confdefs.h. */ | |
98418dba CW |
14422 | |
14423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14424 | #ifdef __cplusplus | |
14425 | extern "C" | |
14426 | #endif | |
14427 | /* We use char because int might match the return type of a gcc2 | |
14428 | builtin and then its argument prototype would still apply. */ | |
14429 | char getloadavg (); | |
503d2be0 AS |
14430 | int |
14431 | main () | |
14432 | { | |
98418dba | 14433 | getloadavg (); |
503d2be0 AS |
14434 | ; |
14435 | return 0; | |
14436 | } | |
14437 | _ACEOF | |
14438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14440 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14441 | ac_status=$? |
35996d22 AS |
14442 | grep -v '^ *+' conftest.er1 >conftest.err |
14443 | rm -f conftest.er1 | |
14444 | cat conftest.err >&5 | |
c0d27fcc | 14445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14446 | (exit $ac_status); } && |
35996d22 AS |
14447 | { ac_try='test -z "$ac_c_werror_flag" |
14448 | || test ! -s conftest.err' | |
c0d27fcc | 14449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14450 | (eval $ac_try) 2>&5 |
14451 | ac_status=$? | |
c0d27fcc | 14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
14453 | (exit $ac_status); }; } && |
14454 | { ac_try='test -s conftest$ac_exeext' | |
14455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14456 | (eval $ac_try) 2>&5 | |
14457 | ac_status=$? | |
14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14459 | (exit $ac_status); }; }; then | |
14460 | ac_cv_lib_util_getloadavg=yes | |
14461 | else | |
503d2be0 | 14462 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14463 | sed 's/^/| /' conftest.$ac_ext >&5 |
14464 | ||
98418dba | 14465 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 14466 | fi |
35996d22 AS |
14467 | rm -f conftest.err conftest.$ac_objext \ |
14468 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
14469 | LIBS=$ac_check_lib_save_LIBS |
14470 | fi | |
c0d27fcc | 14471 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
98418dba CW |
14472 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
14473 | if test $ac_cv_lib_util_getloadavg = yes; then | |
14474 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 14475 | fi |
503d2be0 | 14476 | |
98418dba | 14477 | fi |
ba4481b5 | 14478 | |
98418dba CW |
14479 | if test $ac_have_func = no; then |
14480 | # There is a commonly available library for RS/6000 AIX. | |
14481 | # Since it is not a standard part of AIX, it might be installed locally. | |
14482 | ac_getloadavg_LIBS=$LIBS | |
14483 | LIBS="-L/usr/local/lib $LIBS" | |
c0d27fcc | 14484 | echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
98418dba CW |
14485 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
14486 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
503d2be0 | 14487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14488 | else |
98418dba CW |
14489 | ac_check_lib_save_LIBS=$LIBS |
14490 | LIBS="-lgetloadavg $LIBS" | |
14491 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14492 | /* confdefs.h. */ |
14493 | _ACEOF | |
14494 | cat confdefs.h >>conftest.$ac_ext | |
14495 | cat >>conftest.$ac_ext <<_ACEOF | |
14496 | /* end confdefs.h. */ | |
ba4481b5 | 14497 | |
98418dba CW |
14498 | /* Override any gcc2 internal prototype to avoid an error. */ |
14499 | #ifdef __cplusplus | |
14500 | extern "C" | |
14501 | #endif | |
14502 | /* We use char because int might match the return type of a gcc2 | |
14503 | builtin and then its argument prototype would still apply. */ | |
14504 | char getloadavg (); | |
98418dba CW |
14505 | int |
14506 | main () | |
14507 | { | |
14508 | getloadavg (); | |
14509 | ; | |
14510 | return 0; | |
14511 | } | |
503d2be0 | 14512 | _ACEOF |
98418dba | 14513 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 14514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14515 | (eval $ac_link) 2>conftest.er1 |
98418dba | 14516 | ac_status=$? |
35996d22 AS |
14517 | grep -v '^ *+' conftest.er1 >conftest.err |
14518 | rm -f conftest.er1 | |
14519 | cat conftest.err >&5 | |
c0d27fcc | 14520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14521 | (exit $ac_status); } && |
35996d22 AS |
14522 | { ac_try='test -z "$ac_c_werror_flag" |
14523 | || test ! -s conftest.err' | |
14524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14525 | (eval $ac_try) 2>&5 | |
14526 | ac_status=$? | |
14527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14528 | (exit $ac_status); }; } && | |
14529 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
14531 | (eval $ac_try) 2>&5 |
14532 | ac_status=$? | |
c0d27fcc | 14533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14534 | (exit $ac_status); }; }; then |
14535 | ac_cv_lib_getloadavg_getloadavg=yes | |
ba4481b5 | 14536 | else |
98418dba | 14537 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14538 | sed 's/^/| /' conftest.$ac_ext >&5 |
14539 | ||
98418dba CW |
14540 | ac_cv_lib_getloadavg_getloadavg=no |
14541 | fi | |
35996d22 AS |
14542 | rm -f conftest.err conftest.$ac_objext \ |
14543 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
14544 | LIBS=$ac_check_lib_save_LIBS |
14545 | fi | |
c0d27fcc | 14546 | echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
98418dba CW |
14547 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
14548 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
14549 | LIBS="-lgetloadavg $LIBS" | |
14550 | else | |
14551 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 14552 | fi |
ba4481b5 DL |
14553 | |
14554 | fi | |
98418dba CW |
14555 | |
14556 | # Make sure it is really in the library, if we think we found it, | |
14557 | # otherwise set up the replacement function. | |
14558 | ||
14559 | for ac_func in getloadavg | |
14560 | do | |
14561 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14562 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
14563 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14564 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 14566 | else |
503d2be0 | 14567 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14568 | /* confdefs.h. */ |
14569 | _ACEOF | |
14570 | cat confdefs.h >>conftest.$ac_ext | |
14571 | cat >>conftest.$ac_ext <<_ACEOF | |
14572 | /* end confdefs.h. */ | |
35996d22 AS |
14573 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14574 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14575 | #define $ac_func innocuous_$ac_func | |
14576 | ||
ba4481b5 | 14577 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14578 | which can conflict with char $ac_func (); below. |
14579 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14580 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14581 | |
19650fd6 AS |
14582 | #ifdef __STDC__ |
14583 | # include <limits.h> | |
14584 | #else | |
14585 | # include <assert.h> | |
14586 | #endif | |
35996d22 AS |
14587 | |
14588 | #undef $ac_func | |
14589 | ||
ba4481b5 | 14590 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14591 | #ifdef __cplusplus |
14592 | extern "C" | |
19650fd6 | 14593 | { |
503d2be0 | 14594 | #endif |
ba4481b5 | 14595 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14596 | builtin and then its argument prototype would still apply. */ |
14597 | char $ac_func (); | |
ba4481b5 DL |
14598 | /* The GNU C library defines this for functions which it implements |
14599 | to always fail with ENOSYS. Some functions are actually named | |
14600 | something starting with __ and the normal name is an alias. */ | |
14601 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14602 | choke me | |
14603 | #else | |
19650fd6 AS |
14604 | char (*f) () = $ac_func; |
14605 | #endif | |
14606 | #ifdef __cplusplus | |
14607 | } | |
cd958eb3 MB |
14608 | #endif |
14609 | ||
19650fd6 AS |
14610 | int |
14611 | main () | |
14612 | { | |
14613 | return f != $ac_func; | |
503d2be0 AS |
14614 | ; |
14615 | return 0; | |
14616 | } | |
14617 | _ACEOF | |
14618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14620 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14621 | ac_status=$? |
35996d22 AS |
14622 | grep -v '^ *+' conftest.er1 >conftest.err |
14623 | rm -f conftest.er1 | |
14624 | cat conftest.err >&5 | |
c0d27fcc | 14625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14626 | (exit $ac_status); } && |
35996d22 AS |
14627 | { ac_try='test -z "$ac_c_werror_flag" |
14628 | || test ! -s conftest.err' | |
14629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14630 | (eval $ac_try) 2>&5 | |
14631 | ac_status=$? | |
14632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14633 | (exit $ac_status); }; } && | |
14634 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14636 | (eval $ac_try) 2>&5 |
14637 | ac_status=$? | |
c0d27fcc | 14638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14639 | (exit $ac_status); }; }; then |
14640 | eval "$as_ac_var=yes" | |
14641 | else | |
14642 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14643 | sed 's/^/| /' conftest.$ac_ext >&5 |
14644 | ||
503d2be0 AS |
14645 | eval "$as_ac_var=no" |
14646 | fi | |
35996d22 AS |
14647 | rm -f conftest.err conftest.$ac_objext \ |
14648 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 14649 | fi |
c0d27fcc | 14650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
14651 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14652 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14653 | cat >>confdefs.h <<_ACEOF |
98418dba | 14654 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14655 | _ACEOF |
503d2be0 | 14656 | |
98418dba | 14657 | else |
35996d22 AS |
14658 | case $LIBOBJS in |
14659 | "getloadavg.$ac_objext" | \ | |
14660 | *" getloadavg.$ac_objext" | \ | |
14661 | "getloadavg.$ac_objext "* | \ | |
14662 | *" getloadavg.$ac_objext "* ) ;; | |
14663 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;; | |
14664 | esac | |
14665 | ||
ba4481b5 | 14666 | |
c0d27fcc | 14667 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14668 | #define C_GETLOADAVG 1 |
c0d27fcc | 14669 | _ACEOF |
ba4481b5 | 14670 | |
98418dba CW |
14671 | # Figure out what our getloadavg.c needs. |
14672 | ac_have_func=no | |
c0d27fcc MR |
14673 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
14674 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
98418dba CW |
14675 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
14676 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
503d2be0 | 14677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
14678 | fi |
14679 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
14680 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
ba4481b5 | 14681 | else |
c0d27fcc MR |
14682 | # Is the header compilable? |
14683 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
14684 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
14685 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14686 | /* confdefs.h. */ |
14687 | _ACEOF | |
14688 | cat confdefs.h >>conftest.$ac_ext | |
14689 | cat >>conftest.$ac_ext <<_ACEOF | |
14690 | /* end confdefs.h. */ | |
c0d27fcc MR |
14691 | $ac_includes_default |
14692 | #include <sys/dg_sys_info.h> | |
14693 | _ACEOF | |
14694 | rm -f conftest.$ac_objext | |
14695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 14696 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 14697 | ac_status=$? |
35996d22 AS |
14698 | grep -v '^ *+' conftest.er1 >conftest.err |
14699 | rm -f conftest.er1 | |
14700 | cat conftest.err >&5 | |
c0d27fcc MR |
14701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14702 | (exit $ac_status); } && | |
35996d22 AS |
14703 | { ac_try='test -z "$ac_c_werror_flag" |
14704 | || test ! -s conftest.err' | |
14705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14706 | (eval $ac_try) 2>&5 | |
14707 | ac_status=$? | |
14708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14709 | (exit $ac_status); }; } && | |
14710 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
14711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14712 | (eval $ac_try) 2>&5 | |
14713 | ac_status=$? | |
14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14715 | (exit $ac_status); }; }; then | |
14716 | ac_header_compiler=yes | |
14717 | else | |
14718 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14719 | sed 's/^/| /' conftest.$ac_ext >&5 |
14720 | ||
c0d27fcc MR |
14721 | ac_header_compiler=no |
14722 | fi | |
35996d22 | 14723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
14724 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14725 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14726 | ||
14727 | # Is the header present? | |
14728 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
14729 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
14730 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14731 | /* confdefs.h. */ |
14732 | _ACEOF | |
14733 | cat confdefs.h >>conftest.$ac_ext | |
14734 | cat >>conftest.$ac_ext <<_ACEOF | |
14735 | /* end confdefs.h. */ | |
98418dba CW |
14736 | #include <sys/dg_sys_info.h> |
14737 | _ACEOF | |
c0d27fcc | 14738 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
14739 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14740 | ac_status=$? | |
6bae0ccf | 14741 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14742 | rm -f conftest.er1 |
14743 | cat conftest.err >&5 | |
c0d27fcc | 14744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14745 | (exit $ac_status); } >/dev/null; then |
14746 | if test -s conftest.err; then | |
14747 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 14748 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
14749 | else |
14750 | ac_cpp_err= | |
14751 | fi | |
14752 | else | |
14753 | ac_cpp_err=yes | |
ba4481b5 | 14754 | fi |
98418dba | 14755 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 14756 | ac_header_preproc=yes |
98418dba CW |
14757 | else |
14758 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14759 | sed 's/^/| /' conftest.$ac_ext >&5 |
14760 | ||
c0d27fcc | 14761 | ac_header_preproc=no |
ba4481b5 | 14762 | fi |
98418dba | 14763 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
14764 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14765 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14766 | ||
14767 | # So? What about this header? | |
35996d22 AS |
14768 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14769 | yes:no: ) | |
c0d27fcc MR |
14770 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14771 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
14772 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
14773 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
14774 | ac_header_preproc=yes | |
19650fd6 | 14775 | ;; |
35996d22 | 14776 | no:yes:* ) |
c0d27fcc MR |
14777 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 |
14778 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
14779 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
14780 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
14781 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
14782 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
14783 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14784 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 14785 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14786 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
14787 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
14788 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
14789 | ( |
14790 | cat <<\_ASBOX | |
35996d22 AS |
14791 | ## ------------------------------------------ ## |
14792 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14793 | ## ------------------------------------------ ## | |
19650fd6 AS |
14794 | _ASBOX |
14795 | ) | | |
14796 | sed "s/^/$as_me: WARNING: /" >&2 | |
14797 | ;; | |
c0d27fcc MR |
14798 | esac |
14799 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
14800 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
14801 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
14802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14803 | else | |
14804 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 14805 | fi |
c0d27fcc | 14806 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
98418dba | 14807 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
c0d27fcc MR |
14808 | |
14809 | fi | |
98418dba CW |
14810 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
14811 | ac_have_func=yes | |
ba4481b5 | 14812 | |
c0d27fcc | 14813 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14814 | #define DGUX 1 |
c0d27fcc MR |
14815 | _ACEOF |
14816 | ||
503d2be0 | 14817 | |
c0d27fcc | 14818 | echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
98418dba CW |
14819 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
14820 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
503d2be0 | 14821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14822 | else |
503d2be0 | 14823 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 14824 | LIBS="-ldgc $LIBS" |
503d2be0 | 14825 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14826 | /* confdefs.h. */ |
14827 | _ACEOF | |
14828 | cat confdefs.h >>conftest.$ac_ext | |
14829 | cat >>conftest.$ac_ext <<_ACEOF | |
14830 | /* end confdefs.h. */ | |
503d2be0 | 14831 | |
ba4481b5 | 14832 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14833 | #ifdef __cplusplus |
14834 | extern "C" | |
14835 | #endif | |
ba4481b5 | 14836 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14837 | builtin and then its argument prototype would still apply. */ |
98418dba | 14838 | char dg_sys_info (); |
503d2be0 AS |
14839 | int |
14840 | main () | |
14841 | { | |
98418dba | 14842 | dg_sys_info (); |
503d2be0 AS |
14843 | ; |
14844 | return 0; | |
14845 | } | |
14846 | _ACEOF | |
14847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14849 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14850 | ac_status=$? |
35996d22 AS |
14851 | grep -v '^ *+' conftest.er1 >conftest.err |
14852 | rm -f conftest.er1 | |
14853 | cat conftest.err >&5 | |
c0d27fcc | 14854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14855 | (exit $ac_status); } && |
35996d22 AS |
14856 | { ac_try='test -z "$ac_c_werror_flag" |
14857 | || test ! -s conftest.err' | |
14858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14859 | (eval $ac_try) 2>&5 | |
14860 | ac_status=$? | |
14861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14862 | (exit $ac_status); }; } && | |
14863 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14865 | (eval $ac_try) 2>&5 |
14866 | ac_status=$? | |
c0d27fcc | 14867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14868 | (exit $ac_status); }; }; then |
98418dba | 14869 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
14870 | else |
14871 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14872 | sed 's/^/| /' conftest.$ac_ext >&5 |
14873 | ||
98418dba | 14874 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 | 14875 | fi |
35996d22 AS |
14876 | rm -f conftest.err conftest.$ac_objext \ |
14877 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
14878 | LIBS=$ac_check_lib_save_LIBS |
14879 | fi | |
c0d27fcc | 14880 | echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
98418dba CW |
14881 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
14882 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
c0d27fcc | 14883 | cat >>confdefs.h <<_ACEOF |
98418dba | 14884 | #define HAVE_LIBDGC 1 |
c0d27fcc | 14885 | _ACEOF |
ba4481b5 | 14886 | |
98418dba | 14887 | LIBS="-ldgc $LIBS" |
ba4481b5 | 14888 | |
ba4481b5 DL |
14889 | fi |
14890 | ||
98418dba | 14891 | fi |
503d2be0 | 14892 | |
c0d27fcc MR |
14893 | |
14894 | ||
14895 | if test "${ac_cv_header_locale_h+set}" = set; then | |
14896 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
98418dba CW |
14897 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
14898 | if test "${ac_cv_header_locale_h+set}" = set; then | |
503d2be0 | 14899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
14900 | fi |
14901 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
14902 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
503d2be0 | 14903 | else |
c0d27fcc MR |
14904 | # Is the header compilable? |
14905 | echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
14906 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
14907 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14908 | /* confdefs.h. */ |
14909 | _ACEOF | |
14910 | cat confdefs.h >>conftest.$ac_ext | |
14911 | cat >>conftest.$ac_ext <<_ACEOF | |
14912 | /* end confdefs.h. */ | |
c0d27fcc MR |
14913 | $ac_includes_default |
14914 | #include <locale.h> | |
14915 | _ACEOF | |
14916 | rm -f conftest.$ac_objext | |
14917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 14918 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 14919 | ac_status=$? |
35996d22 AS |
14920 | grep -v '^ *+' conftest.er1 >conftest.err |
14921 | rm -f conftest.er1 | |
14922 | cat conftest.err >&5 | |
c0d27fcc MR |
14923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14924 | (exit $ac_status); } && | |
35996d22 AS |
14925 | { ac_try='test -z "$ac_c_werror_flag" |
14926 | || test ! -s conftest.err' | |
14927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14928 | (eval $ac_try) 2>&5 | |
14929 | ac_status=$? | |
14930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14931 | (exit $ac_status); }; } && | |
14932 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
14933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14934 | (eval $ac_try) 2>&5 | |
14935 | ac_status=$? | |
14936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14937 | (exit $ac_status); }; }; then | |
14938 | ac_header_compiler=yes | |
14939 | else | |
14940 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14941 | sed 's/^/| /' conftest.$ac_ext >&5 |
14942 | ||
c0d27fcc MR |
14943 | ac_header_compiler=no |
14944 | fi | |
35996d22 | 14945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
14946 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14947 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14948 | ||
14949 | # Is the header present? | |
14950 | echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
14951 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
14952 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14953 | /* confdefs.h. */ |
14954 | _ACEOF | |
14955 | cat confdefs.h >>conftest.$ac_ext | |
14956 | cat >>conftest.$ac_ext <<_ACEOF | |
14957 | /* end confdefs.h. */ | |
98418dba | 14958 | #include <locale.h> |
503d2be0 | 14959 | _ACEOF |
c0d27fcc | 14960 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 14961 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 14962 | ac_status=$? |
6bae0ccf | 14963 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14964 | rm -f conftest.er1 |
14965 | cat conftest.err >&5 | |
c0d27fcc | 14966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14967 | (exit $ac_status); } >/dev/null; then |
14968 | if test -s conftest.err; then | |
14969 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 14970 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
14971 | else |
14972 | ac_cpp_err= | |
14973 | fi | |
503d2be0 | 14974 | else |
98418dba | 14975 | ac_cpp_err=yes |
503d2be0 | 14976 | fi |
98418dba | 14977 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 14978 | ac_header_preproc=yes |
98418dba CW |
14979 | else |
14980 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14981 | sed 's/^/| /' conftest.$ac_ext >&5 |
14982 | ||
c0d27fcc | 14983 | ac_header_preproc=no |
ba4481b5 | 14984 | fi |
98418dba | 14985 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
14986 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14987 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14988 | ||
14989 | # So? What about this header? | |
35996d22 AS |
14990 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14991 | yes:no: ) | |
c0d27fcc MR |
14992 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14993 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
14994 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 |
14995 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
14996 | ac_header_preproc=yes | |
19650fd6 | 14997 | ;; |
35996d22 | 14998 | no:yes:* ) |
c0d27fcc MR |
14999 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 |
15000 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15001 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
15002 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
15003 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
15004 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
15005 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15006 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15007 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15008 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15009 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 |
15010 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15011 | ( |
15012 | cat <<\_ASBOX | |
35996d22 AS |
15013 | ## ------------------------------------------ ## |
15014 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15015 | ## ------------------------------------------ ## | |
19650fd6 AS |
15016 | _ASBOX |
15017 | ) | | |
15018 | sed "s/^/$as_me: WARNING: /" >&2 | |
15019 | ;; | |
c0d27fcc MR |
15020 | esac |
15021 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
15022 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
15023 | if test "${ac_cv_header_locale_h+set}" = set; then | |
15024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15025 | else | |
15026 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 15027 | fi |
c0d27fcc | 15028 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
98418dba CW |
15029 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
15030 | ||
c0d27fcc MR |
15031 | fi |
15032 | ||
15033 | ||
15034 | ||
98418dba | 15035 | for ac_func in setlocale |
ba4481b5 | 15036 | do |
503d2be0 | 15037 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 15038 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
15039 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
15040 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 15042 | else |
503d2be0 | 15043 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15044 | /* confdefs.h. */ |
15045 | _ACEOF | |
15046 | cat confdefs.h >>conftest.$ac_ext | |
15047 | cat >>conftest.$ac_ext <<_ACEOF | |
15048 | /* end confdefs.h. */ | |
35996d22 AS |
15049 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15050 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15051 | #define $ac_func innocuous_$ac_func | |
15052 | ||
ba4481b5 | 15053 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15054 | which can conflict with char $ac_func (); below. |
15055 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15056 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 15057 | |
19650fd6 AS |
15058 | #ifdef __STDC__ |
15059 | # include <limits.h> | |
15060 | #else | |
15061 | # include <assert.h> | |
15062 | #endif | |
35996d22 AS |
15063 | |
15064 | #undef $ac_func | |
15065 | ||
ba4481b5 | 15066 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
15067 | #ifdef __cplusplus |
15068 | extern "C" | |
19650fd6 | 15069 | { |
503d2be0 | 15070 | #endif |
ba4481b5 | 15071 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
15072 | builtin and then its argument prototype would still apply. */ |
15073 | char $ac_func (); | |
ba4481b5 DL |
15074 | /* The GNU C library defines this for functions which it implements |
15075 | to always fail with ENOSYS. Some functions are actually named | |
15076 | something starting with __ and the normal name is an alias. */ | |
15077 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15078 | choke me | |
15079 | #else | |
19650fd6 AS |
15080 | char (*f) () = $ac_func; |
15081 | #endif | |
15082 | #ifdef __cplusplus | |
15083 | } | |
ba4481b5 DL |
15084 | #endif |
15085 | ||
19650fd6 AS |
15086 | int |
15087 | main () | |
15088 | { | |
15089 | return f != $ac_func; | |
503d2be0 AS |
15090 | ; |
15091 | return 0; | |
15092 | } | |
15093 | _ACEOF | |
15094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 15096 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 15097 | ac_status=$? |
35996d22 AS |
15098 | grep -v '^ *+' conftest.er1 >conftest.err |
15099 | rm -f conftest.er1 | |
15100 | cat conftest.err >&5 | |
c0d27fcc | 15101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15102 | (exit $ac_status); } && |
35996d22 AS |
15103 | { ac_try='test -z "$ac_c_werror_flag" |
15104 | || test ! -s conftest.err' | |
15105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15106 | (eval $ac_try) 2>&5 | |
15107 | ac_status=$? | |
15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15109 | (exit $ac_status); }; } && | |
15110 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 15111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15112 | (eval $ac_try) 2>&5 |
15113 | ac_status=$? | |
c0d27fcc | 15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15115 | (exit $ac_status); }; }; then |
15116 | eval "$as_ac_var=yes" | |
15117 | else | |
15118 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15119 | sed 's/^/| /' conftest.$ac_ext >&5 |
15120 | ||
503d2be0 AS |
15121 | eval "$as_ac_var=no" |
15122 | fi | |
35996d22 AS |
15123 | rm -f conftest.err conftest.$ac_objext \ |
15124 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 15125 | fi |
c0d27fcc | 15126 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
15127 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
15128 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 15129 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15130 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15131 | _ACEOF |
ba4481b5 | 15132 | |
ba4481b5 DL |
15133 | fi |
15134 | done | |
15135 | ||
c0d27fcc | 15136 | |
98418dba CW |
15137 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
15138 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
15139 | # Irix 4.0.5F has the header but not the library. | |
15140 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
15141 | ac_have_func=yes | |
15142 | ||
c0d27fcc | 15143 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15144 | #define SVR4 1 |
c0d27fcc | 15145 | _ACEOF |
98418dba CW |
15146 | |
15147 | fi | |
15148 | ||
15149 | if test $ac_have_func = no; then | |
c0d27fcc MR |
15150 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
15151 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
98418dba CW |
15152 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
15153 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
503d2be0 | 15154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
15155 | fi |
15156 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
15157 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
98418dba | 15158 | else |
c0d27fcc MR |
15159 | # Is the header compilable? |
15160 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
15161 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
15162 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15163 | /* confdefs.h. */ |
15164 | _ACEOF | |
15165 | cat confdefs.h >>conftest.$ac_ext | |
15166 | cat >>conftest.$ac_ext <<_ACEOF | |
15167 | /* end confdefs.h. */ | |
c0d27fcc MR |
15168 | $ac_includes_default |
15169 | #include <inq_stats/cpustats.h> | |
15170 | _ACEOF | |
15171 | rm -f conftest.$ac_objext | |
15172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15173 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15174 | ac_status=$? |
35996d22 AS |
15175 | grep -v '^ *+' conftest.er1 >conftest.err |
15176 | rm -f conftest.er1 | |
15177 | cat conftest.err >&5 | |
c0d27fcc MR |
15178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15179 | (exit $ac_status); } && | |
35996d22 AS |
15180 | { ac_try='test -z "$ac_c_werror_flag" |
15181 | || test ! -s conftest.err' | |
15182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15183 | (eval $ac_try) 2>&5 | |
15184 | ac_status=$? | |
15185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15186 | (exit $ac_status); }; } && | |
15187 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15189 | (eval $ac_try) 2>&5 | |
15190 | ac_status=$? | |
15191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15192 | (exit $ac_status); }; }; then | |
15193 | ac_header_compiler=yes | |
15194 | else | |
15195 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15196 | sed 's/^/| /' conftest.$ac_ext >&5 |
15197 | ||
c0d27fcc MR |
15198 | ac_header_compiler=no |
15199 | fi | |
35996d22 | 15200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15201 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15202 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15203 | ||
15204 | # Is the header present? | |
15205 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
15206 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
15207 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15208 | /* confdefs.h. */ |
15209 | _ACEOF | |
15210 | cat confdefs.h >>conftest.$ac_ext | |
15211 | cat >>conftest.$ac_ext <<_ACEOF | |
15212 | /* end confdefs.h. */ | |
98418dba | 15213 | #include <inq_stats/cpustats.h> |
503d2be0 | 15214 | _ACEOF |
c0d27fcc | 15215 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15216 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15217 | ac_status=$? | |
6bae0ccf | 15218 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15219 | rm -f conftest.er1 |
15220 | cat conftest.err >&5 | |
c0d27fcc | 15221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15222 | (exit $ac_status); } >/dev/null; then |
15223 | if test -s conftest.err; then | |
15224 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15225 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
15226 | else |
15227 | ac_cpp_err= | |
15228 | fi | |
15229 | else | |
15230 | ac_cpp_err=yes | |
15231 | fi | |
15232 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15233 | ac_header_preproc=yes |
503d2be0 AS |
15234 | else |
15235 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15236 | sed 's/^/| /' conftest.$ac_ext >&5 |
15237 | ||
c0d27fcc | 15238 | ac_header_preproc=no |
ba4481b5 | 15239 | fi |
503d2be0 | 15240 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15241 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15242 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15243 | ||
15244 | # So? What about this header? | |
35996d22 AS |
15245 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15246 | yes:no: ) | |
c0d27fcc MR |
15247 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15248 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15249 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 |
15250 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
15251 | ac_header_preproc=yes | |
19650fd6 | 15252 | ;; |
35996d22 | 15253 | no:yes:* ) |
c0d27fcc MR |
15254 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 |
15255 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15256 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
15257 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
15258 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
15259 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
15260 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15261 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15262 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15263 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15264 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 |
15265 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15266 | ( |
15267 | cat <<\_ASBOX | |
35996d22 AS |
15268 | ## ------------------------------------------ ## |
15269 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15270 | ## ------------------------------------------ ## | |
19650fd6 AS |
15271 | _ASBOX |
15272 | ) | | |
15273 | sed "s/^/$as_me: WARNING: /" >&2 | |
15274 | ;; | |
c0d27fcc MR |
15275 | esac |
15276 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
15277 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
15278 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
15279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15280 | else | |
15281 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 15282 | fi |
c0d27fcc | 15283 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
98418dba | 15284 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
c0d27fcc MR |
15285 | |
15286 | fi | |
98418dba CW |
15287 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
15288 | ac_have_func=yes | |
ba4481b5 | 15289 | |
c0d27fcc | 15290 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15291 | #define UMAX 1 |
c0d27fcc | 15292 | _ACEOF |
98418dba | 15293 | |
c0d27fcc MR |
15294 | |
15295 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 15296 | #define UMAX4_3 1 |
c0d27fcc | 15297 | _ACEOF |
98418dba CW |
15298 | |
15299 | fi | |
15300 | ||
c0d27fcc | 15301 | |
98418dba CW |
15302 | fi |
15303 | ||
15304 | if test $ac_have_func = no; then | |
c0d27fcc MR |
15305 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
15306 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
98418dba CW |
15307 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
15308 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
503d2be0 | 15309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
15310 | fi |
15311 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
15312 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
503d2be0 | 15313 | else |
c0d27fcc MR |
15314 | # Is the header compilable? |
15315 | echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
15316 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
15317 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15318 | /* confdefs.h. */ |
15319 | _ACEOF | |
15320 | cat confdefs.h >>conftest.$ac_ext | |
15321 | cat >>conftest.$ac_ext <<_ACEOF | |
15322 | /* end confdefs.h. */ | |
c0d27fcc MR |
15323 | $ac_includes_default |
15324 | #include <sys/cpustats.h> | |
15325 | _ACEOF | |
15326 | rm -f conftest.$ac_objext | |
15327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15328 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15329 | ac_status=$? |
35996d22 AS |
15330 | grep -v '^ *+' conftest.er1 >conftest.err |
15331 | rm -f conftest.er1 | |
15332 | cat conftest.err >&5 | |
c0d27fcc MR |
15333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15334 | (exit $ac_status); } && | |
35996d22 AS |
15335 | { ac_try='test -z "$ac_c_werror_flag" |
15336 | || test ! -s conftest.err' | |
15337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15338 | (eval $ac_try) 2>&5 | |
15339 | ac_status=$? | |
15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15341 | (exit $ac_status); }; } && | |
15342 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15344 | (eval $ac_try) 2>&5 | |
15345 | ac_status=$? | |
15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15347 | (exit $ac_status); }; }; then | |
15348 | ac_header_compiler=yes | |
15349 | else | |
15350 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15351 | sed 's/^/| /' conftest.$ac_ext >&5 |
15352 | ||
c0d27fcc MR |
15353 | ac_header_compiler=no |
15354 | fi | |
35996d22 | 15355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15356 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15357 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15358 | ||
15359 | # Is the header present? | |
15360 | echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
15361 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
15362 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15363 | /* confdefs.h. */ |
15364 | _ACEOF | |
15365 | cat confdefs.h >>conftest.$ac_ext | |
15366 | cat >>conftest.$ac_ext <<_ACEOF | |
15367 | /* end confdefs.h. */ | |
98418dba CW |
15368 | #include <sys/cpustats.h> |
15369 | _ACEOF | |
c0d27fcc | 15370 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
15371 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15372 | ac_status=$? | |
6bae0ccf | 15373 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15374 | rm -f conftest.er1 |
15375 | cat conftest.err >&5 | |
c0d27fcc | 15376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
15377 | (exit $ac_status); } >/dev/null; then |
15378 | if test -s conftest.err; then | |
15379 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15380 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
15381 | else |
15382 | ac_cpp_err= | |
15383 | fi | |
15384 | else | |
15385 | ac_cpp_err=yes | |
503d2be0 | 15386 | fi |
98418dba | 15387 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 15388 | ac_header_preproc=yes |
98418dba CW |
15389 | else |
15390 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15391 | sed 's/^/| /' conftest.$ac_ext >&5 |
15392 | ||
c0d27fcc | 15393 | ac_header_preproc=no |
98418dba CW |
15394 | fi |
15395 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
15396 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15397 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15398 | ||
15399 | # So? What about this header? | |
35996d22 AS |
15400 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15401 | yes:no: ) | |
c0d27fcc MR |
15402 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15403 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15404 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 |
15405 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
15406 | ac_header_preproc=yes | |
19650fd6 | 15407 | ;; |
35996d22 | 15408 | no:yes:* ) |
c0d27fcc MR |
15409 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 |
15410 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15411 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
15412 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
15413 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
15414 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
15415 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15416 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15417 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15418 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15419 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 |
15420 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15421 | ( |
15422 | cat <<\_ASBOX | |
35996d22 AS |
15423 | ## ------------------------------------------ ## |
15424 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15425 | ## ------------------------------------------ ## | |
19650fd6 AS |
15426 | _ASBOX |
15427 | ) | | |
15428 | sed "s/^/$as_me: WARNING: /" >&2 | |
15429 | ;; | |
c0d27fcc MR |
15430 | esac |
15431 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
15432 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
15433 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
15434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15435 | else | |
15436 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 15437 | fi |
c0d27fcc | 15438 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
98418dba | 15439 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
c0d27fcc MR |
15440 | |
15441 | fi | |
98418dba | 15442 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 15443 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 15444 | #define UMAX 1 |
c0d27fcc | 15445 | _ACEOF |
ba4481b5 | 15446 | |
98418dba CW |
15447 | fi |
15448 | ||
c0d27fcc | 15449 | |
98418dba CW |
15450 | fi |
15451 | ||
15452 | if test $ac_have_func = no; then | |
15453 | ||
15454 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
15455 | do |
15456 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
15457 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15458 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2c9dccc9 PJ |
15459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15462 | fi |
15463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15465 | else |
c0d27fcc MR |
15466 | # Is the header compilable? |
15467 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15468 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15469 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15470 | /* confdefs.h. */ |
15471 | _ACEOF | |
15472 | cat confdefs.h >>conftest.$ac_ext | |
15473 | cat >>conftest.$ac_ext <<_ACEOF | |
15474 | /* end confdefs.h. */ | |
c0d27fcc MR |
15475 | $ac_includes_default |
15476 | #include <$ac_header> | |
15477 | _ACEOF | |
15478 | rm -f conftest.$ac_objext | |
15479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15480 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15481 | ac_status=$? |
35996d22 AS |
15482 | grep -v '^ *+' conftest.er1 >conftest.err |
15483 | rm -f conftest.er1 | |
15484 | cat conftest.err >&5 | |
c0d27fcc MR |
15485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15486 | (exit $ac_status); } && | |
35996d22 AS |
15487 | { ac_try='test -z "$ac_c_werror_flag" |
15488 | || test ! -s conftest.err' | |
15489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15490 | (eval $ac_try) 2>&5 | |
15491 | ac_status=$? | |
15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15493 | (exit $ac_status); }; } && | |
15494 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15496 | (eval $ac_try) 2>&5 | |
15497 | ac_status=$? | |
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15499 | (exit $ac_status); }; }; then | |
15500 | ac_header_compiler=yes | |
15501 | else | |
15502 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15503 | sed 's/^/| /' conftest.$ac_ext >&5 |
15504 | ||
c0d27fcc MR |
15505 | ac_header_compiler=no |
15506 | fi | |
35996d22 | 15507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15508 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15509 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15510 | ||
15511 | # Is the header present? | |
15512 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15513 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15514 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15515 | /* confdefs.h. */ |
15516 | _ACEOF | |
15517 | cat confdefs.h >>conftest.$ac_ext | |
15518 | cat >>conftest.$ac_ext <<_ACEOF | |
15519 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
15520 | #include <$ac_header> |
15521 | _ACEOF | |
c0d27fcc | 15522 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2c9dccc9 PJ |
15523 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15524 | ac_status=$? | |
6bae0ccf | 15525 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
15526 | rm -f conftest.er1 |
15527 | cat conftest.err >&5 | |
c0d27fcc | 15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2c9dccc9 PJ |
15529 | (exit $ac_status); } >/dev/null; then |
15530 | if test -s conftest.err; then | |
15531 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15532 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2c9dccc9 PJ |
15533 | else |
15534 | ac_cpp_err= | |
15535 | fi | |
15536 | else | |
15537 | ac_cpp_err=yes | |
15538 | fi | |
15539 | if test -z "$ac_cpp_err"; then | |
c0d27fcc MR |
15540 | ac_header_preproc=yes |
15541 | else | |
15542 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15543 | sed 's/^/| /' conftest.$ac_ext >&5 |
15544 | ||
c0d27fcc MR |
15545 | ac_header_preproc=no |
15546 | fi | |
15547 | rm -f conftest.err conftest.$ac_ext | |
15548 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15549 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15550 | ||
15551 | # So? What about this header? | |
35996d22 AS |
15552 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15553 | yes:no: ) | |
c0d27fcc MR |
15554 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15555 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15557 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15558 | ac_header_preproc=yes | |
19650fd6 | 15559 | ;; |
35996d22 | 15560 | no:yes:* ) |
c0d27fcc MR |
15561 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15562 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
15563 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15564 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15565 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15566 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15567 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15568 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15569 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15570 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15571 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15572 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15573 | ( |
15574 | cat <<\_ASBOX | |
35996d22 AS |
15575 | ## ------------------------------------------ ## |
15576 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15577 | ## ------------------------------------------ ## | |
19650fd6 AS |
15578 | _ASBOX |
15579 | ) | | |
15580 | sed "s/^/$as_me: WARNING: /" >&2 | |
15581 | ;; | |
c0d27fcc MR |
15582 | esac |
15583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15587 | else | |
35996d22 | 15588 | eval "$as_ac_Header=\$ac_header_preproc" |
c0d27fcc MR |
15589 | fi |
15590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15591 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15592 | ||
15593 | fi | |
15594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15595 | cat >>confdefs.h <<_ACEOF | |
15596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15597 | _ACEOF | |
15598 | ||
15599 | fi | |
15600 | ||
15601 | done | |
15602 | ||
15603 | fi | |
15604 | ||
15605 | ||
15606 | for ac_header in nlist.h | |
15607 | do | |
15608 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15609 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15614 | fi | |
15615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15616 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15617 | else | |
15618 | # Is the header compilable? | |
15619 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15620 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15621 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15622 | /* confdefs.h. */ |
15623 | _ACEOF | |
15624 | cat confdefs.h >>conftest.$ac_ext | |
15625 | cat >>conftest.$ac_ext <<_ACEOF | |
15626 | /* end confdefs.h. */ | |
c0d27fcc MR |
15627 | $ac_includes_default |
15628 | #include <$ac_header> | |
15629 | _ACEOF | |
15630 | rm -f conftest.$ac_objext | |
15631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15632 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15633 | ac_status=$? |
35996d22 AS |
15634 | grep -v '^ *+' conftest.er1 >conftest.err |
15635 | rm -f conftest.er1 | |
15636 | cat conftest.err >&5 | |
c0d27fcc MR |
15637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15638 | (exit $ac_status); } && | |
35996d22 AS |
15639 | { ac_try='test -z "$ac_c_werror_flag" |
15640 | || test ! -s conftest.err' | |
15641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15642 | (eval $ac_try) 2>&5 | |
15643 | ac_status=$? | |
15644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15645 | (exit $ac_status); }; } && | |
15646 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15648 | (eval $ac_try) 2>&5 | |
15649 | ac_status=$? | |
15650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15651 | (exit $ac_status); }; }; then | |
15652 | ac_header_compiler=yes | |
2c9dccc9 PJ |
15653 | else |
15654 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15655 | sed 's/^/| /' conftest.$ac_ext >&5 |
15656 | ||
c0d27fcc | 15657 | ac_header_compiler=no |
98418dba | 15658 | fi |
35996d22 | 15659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15660 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15661 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 15662 | |
c0d27fcc MR |
15663 | # Is the header present? |
15664 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15665 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15666 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15667 | /* confdefs.h. */ |
15668 | _ACEOF | |
15669 | cat confdefs.h >>conftest.$ac_ext | |
15670 | cat >>conftest.$ac_ext <<_ACEOF | |
15671 | /* end confdefs.h. */ | |
503d2be0 AS |
15672 | #include <$ac_header> |
15673 | _ACEOF | |
c0d27fcc | 15674 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15675 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15676 | ac_status=$? | |
6bae0ccf | 15677 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15678 | rm -f conftest.er1 |
15679 | cat conftest.err >&5 | |
c0d27fcc | 15680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15681 | (exit $ac_status); } >/dev/null; then |
15682 | if test -s conftest.err; then | |
15683 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15684 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
15685 | else |
15686 | ac_cpp_err= | |
15687 | fi | |
15688 | else | |
15689 | ac_cpp_err=yes | |
15690 | fi | |
15691 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15692 | ac_header_preproc=yes |
503d2be0 AS |
15693 | else |
15694 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15695 | sed 's/^/| /' conftest.$ac_ext >&5 |
15696 | ||
c0d27fcc | 15697 | ac_header_preproc=no |
b5de8dc0 | 15698 | fi |
503d2be0 | 15699 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15700 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15701 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15702 | ||
15703 | # So? What about this header? | |
35996d22 AS |
15704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15705 | yes:no: ) | |
c0d27fcc MR |
15706 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15707 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15709 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15710 | ac_header_preproc=yes | |
19650fd6 | 15711 | ;; |
35996d22 | 15712 | no:yes:* ) |
c0d27fcc MR |
15713 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15714 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
15715 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15716 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15717 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15718 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15719 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15720 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15722 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15723 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15724 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15725 | ( |
15726 | cat <<\_ASBOX | |
35996d22 AS |
15727 | ## ------------------------------------------ ## |
15728 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15729 | ## ------------------------------------------ ## | |
19650fd6 AS |
15730 | _ASBOX |
15731 | ) | | |
15732 | sed "s/^/$as_me: WARNING: /" >&2 | |
15733 | ;; | |
c0d27fcc MR |
15734 | esac |
15735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15739 | else | |
35996d22 | 15740 | eval "$as_ac_Header=\$ac_header_preproc" |
b5de8dc0 | 15741 | fi |
c0d27fcc | 15742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15744 | |
15745 | fi | |
98418dba | 15746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15747 | cat >>confdefs.h <<_ACEOF |
98418dba | 15748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc MR |
15749 | _ACEOF |
15750 | echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
98418dba CW |
15751 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
15752 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
503d2be0 | 15753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 15754 | else |
503d2be0 | 15755 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15756 | /* confdefs.h. */ |
15757 | _ACEOF | |
15758 | cat confdefs.h >>conftest.$ac_ext | |
15759 | cat >>conftest.$ac_ext <<_ACEOF | |
15760 | /* end confdefs.h. */ | |
98418dba | 15761 | #include <nlist.h> |
b5de8dc0 | 15762 | |
503d2be0 AS |
15763 | int |
15764 | main () | |
15765 | { | |
98418dba CW |
15766 | static struct nlist ac_aggr; |
15767 | if (ac_aggr.n_un.n_name) | |
15768 | return 0; | |
503d2be0 AS |
15769 | ; |
15770 | return 0; | |
15771 | } | |
15772 | _ACEOF | |
98418dba | 15773 | rm -f conftest.$ac_objext |
c0d27fcc | 15774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 15775 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 15776 | ac_status=$? |
35996d22 AS |
15777 | grep -v '^ *+' conftest.er1 >conftest.err |
15778 | rm -f conftest.er1 | |
15779 | cat conftest.err >&5 | |
c0d27fcc | 15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15781 | (exit $ac_status); } && |
35996d22 AS |
15782 | { ac_try='test -z "$ac_c_werror_flag" |
15783 | || test ! -s conftest.err' | |
15784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15785 | (eval $ac_try) 2>&5 | |
15786 | ac_status=$? | |
15787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15788 | (exit $ac_status); }; } && | |
15789 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 15790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15791 | (eval $ac_try) 2>&5 |
15792 | ac_status=$? | |
c0d27fcc | 15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15794 | (exit $ac_status); }; }; then |
98418dba | 15795 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
15796 | else |
15797 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15798 | sed 's/^/| /' conftest.$ac_ext >&5 |
15799 | ||
6bae0ccf | 15800 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15801 | /* confdefs.h. */ |
15802 | _ACEOF | |
15803 | cat confdefs.h >>conftest.$ac_ext | |
15804 | cat >>conftest.$ac_ext <<_ACEOF | |
15805 | /* end confdefs.h. */ | |
6bae0ccf DL |
15806 | #include <nlist.h> |
15807 | ||
15808 | int | |
15809 | main () | |
15810 | { | |
15811 | static struct nlist ac_aggr; | |
15812 | if (sizeof ac_aggr.n_un.n_name) | |
15813 | return 0; | |
15814 | ; | |
15815 | return 0; | |
15816 | } | |
15817 | _ACEOF | |
15818 | rm -f conftest.$ac_objext | |
15819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15820 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 15821 | ac_status=$? |
35996d22 AS |
15822 | grep -v '^ *+' conftest.er1 >conftest.err |
15823 | rm -f conftest.er1 | |
15824 | cat conftest.err >&5 | |
6bae0ccf DL |
15825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15826 | (exit $ac_status); } && | |
35996d22 AS |
15827 | { ac_try='test -z "$ac_c_werror_flag" |
15828 | || test ! -s conftest.err' | |
15829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15830 | (eval $ac_try) 2>&5 | |
15831 | ac_status=$? | |
15832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15833 | (exit $ac_status); }; } && | |
15834 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
15835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15836 | (eval $ac_try) 2>&5 | |
15837 | ac_status=$? | |
15838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15839 | (exit $ac_status); }; }; then | |
15840 | ac_cv_member_struct_nlist_n_un_n_name=yes | |
15841 | else | |
15842 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15843 | sed 's/^/| /' conftest.$ac_ext >&5 |
15844 | ||
98418dba | 15845 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 15846 | fi |
35996d22 | 15847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b5de8dc0 | 15848 | fi |
35996d22 | 15849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 15850 | fi |
c0d27fcc | 15851 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
98418dba CW |
15852 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
15853 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
b5de8dc0 | 15854 | |
c0d27fcc | 15855 | cat >>confdefs.h <<_ACEOF |
98418dba | 15856 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 15857 | _ACEOF |
b5de8dc0 | 15858 | |
c0d27fcc MR |
15859 | |
15860 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 15861 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 15862 | _ACEOF |
b5de8dc0 | 15863 | |
98418dba | 15864 | fi |
b5de8dc0 | 15865 | |
c0d27fcc | 15866 | |
98418dba | 15867 | fi |
c0d27fcc | 15868 | |
98418dba | 15869 | done |
b5de8dc0 | 15870 | |
98418dba CW |
15871 | fi |
15872 | done | |
b5de8dc0 | 15873 | |
c0d27fcc | 15874 | |
98418dba | 15875 | # Some definitions of getloadavg require that the program be installed setgid. |
c0d27fcc | 15876 | echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
98418dba CW |
15877 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
15878 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
15879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15880 | else | |
15881 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15882 | /* confdefs.h. */ |
15883 | _ACEOF | |
15884 | cat confdefs.h >>conftest.$ac_ext | |
15885 | cat >>conftest.$ac_ext <<_ACEOF | |
15886 | /* end confdefs.h. */ | |
6bae0ccf | 15887 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
15888 | #ifdef LDAV_PRIVILEGED |
15889 | Yowza Am I SETGID yet | |
15890 | #endif | |
15891 | _ACEOF | |
15892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 15893 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
15894 | ac_cv_func_getloadavg_setgid=yes |
15895 | else | |
15896 | ac_cv_func_getloadavg_setgid=no | |
15897 | fi | |
15898 | rm -f conftest* | |
b5de8dc0 | 15899 | |
98418dba | 15900 | fi |
c0d27fcc | 15901 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
98418dba CW |
15902 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
15903 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
15904 | NEED_SETGID=true | |
b5de8dc0 | 15905 | |
c0d27fcc | 15906 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15907 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 15908 | _ACEOF |
98418dba | 15909 | |
b5de8dc0 | 15910 | else |
98418dba | 15911 | NEED_SETGID=false |
b5de8dc0 | 15912 | fi |
98418dba CW |
15913 | |
15914 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
c0d27fcc | 15915 | echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
98418dba CW |
15916 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
15917 | if test "${ac_cv_group_kmem+set}" = set; then | |
15918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15919 | else | |
15920 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
15921 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
15922 | # If we got an error (system does not support symlinks), try without -L. | |
15923 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
15924 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
35996d22 | 15925 | | sed -ne 's/[ ][ ]*/ /g; |
98418dba CW |
15926 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
15927 | / /s/.* //;p;'` | |
15928 | ||
b5de8dc0 | 15929 | fi |
c0d27fcc | 15930 | echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
98418dba CW |
15931 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
15932 | KMEM_GROUP=$ac_cv_group_kmem | |
b5de8dc0 | 15933 | fi |
98418dba CW |
15934 | if test "x$ac_save_LIBS" = x; then |
15935 | GETLOADAVG_LIBS=$LIBS | |
15936 | else | |
15937 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 15938 | fi |
98418dba | 15939 | LIBS=$ac_save_LIBS |
b5de8dc0 | 15940 | |
c0d27fcc MR |
15941 | |
15942 | ||
15943 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
b936fae4 AS |
15944 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
15945 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
503d2be0 | 15946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 15947 | else |
b936fae4 AS |
15948 | while :; do |
15949 | ac_cv_sys_largefile_source=no | |
503d2be0 | 15950 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15951 | /* confdefs.h. */ |
15952 | _ACEOF | |
15953 | cat confdefs.h >>conftest.$ac_ext | |
15954 | cat >>conftest.$ac_ext <<_ACEOF | |
15955 | /* end confdefs.h. */ | |
b936fae4 | 15956 | #include <stdio.h> |
503d2be0 AS |
15957 | int |
15958 | main () | |
15959 | { | |
b936fae4 AS |
15960 | return !fseeko; |
15961 | ; | |
15962 | return 0; | |
15963 | } | |
15964 | _ACEOF | |
15965 | rm -f conftest.$ac_objext | |
c0d27fcc | 15966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 15967 | (eval $ac_compile) 2>conftest.er1 |
b936fae4 | 15968 | ac_status=$? |
35996d22 AS |
15969 | grep -v '^ *+' conftest.er1 >conftest.err |
15970 | rm -f conftest.er1 | |
15971 | cat conftest.err >&5 | |
c0d27fcc | 15972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 15973 | (exit $ac_status); } && |
35996d22 AS |
15974 | { ac_try='test -z "$ac_c_werror_flag" |
15975 | || test ! -s conftest.err' | |
15976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15977 | (eval $ac_try) 2>&5 | |
15978 | ac_status=$? | |
15979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15980 | (exit $ac_status); }; } && | |
15981 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 15982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
15983 | (eval $ac_try) 2>&5 |
15984 | ac_status=$? | |
c0d27fcc | 15985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
15986 | (exit $ac_status); }; }; then |
15987 | break | |
15988 | else | |
15989 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15990 | sed 's/^/| /' conftest.$ac_ext >&5 |
15991 | ||
b936fae4 | 15992 | fi |
35996d22 | 15993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b936fae4 | 15994 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15995 | /* confdefs.h. */ |
15996 | _ACEOF | |
15997 | cat confdefs.h >>conftest.$ac_ext | |
15998 | cat >>conftest.$ac_ext <<_ACEOF | |
15999 | /* end confdefs.h. */ | |
b936fae4 AS |
16000 | #define _LARGEFILE_SOURCE 1 |
16001 | #include <stdio.h> | |
b936fae4 AS |
16002 | int |
16003 | main () | |
16004 | { | |
16005 | return !fseeko; | |
16006 | ; | |
16007 | return 0; | |
16008 | } | |
16009 | _ACEOF | |
16010 | rm -f conftest.$ac_objext | |
c0d27fcc | 16011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 16012 | (eval $ac_compile) 2>conftest.er1 |
b936fae4 | 16013 | ac_status=$? |
35996d22 AS |
16014 | grep -v '^ *+' conftest.er1 >conftest.err |
16015 | rm -f conftest.er1 | |
16016 | cat conftest.err >&5 | |
c0d27fcc | 16017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 16018 | (exit $ac_status); } && |
35996d22 AS |
16019 | { ac_try='test -z "$ac_c_werror_flag" |
16020 | || test ! -s conftest.err' | |
16021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16022 | (eval $ac_try) 2>&5 | |
16023 | ac_status=$? | |
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16025 | (exit $ac_status); }; } && | |
16026 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
16028 | (eval $ac_try) 2>&5 |
16029 | ac_status=$? | |
c0d27fcc | 16030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
16031 | (exit $ac_status); }; }; then |
16032 | ac_cv_sys_largefile_source=1; break | |
16033 | else | |
16034 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16035 | sed 's/^/| /' conftest.$ac_ext >&5 |
16036 | ||
b936fae4 | 16037 | fi |
35996d22 | 16038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b936fae4 AS |
16039 | break |
16040 | done | |
16041 | fi | |
c0d27fcc | 16042 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
b936fae4 AS |
16043 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
16044 | if test "$ac_cv_sys_largefile_source" != no; then | |
16045 | ||
c0d27fcc | 16046 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 16047 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 16048 | _ACEOF |
b936fae4 AS |
16049 | |
16050 | fi | |
16051 | rm -f conftest* | |
4c343001 | 16052 | |
b936fae4 AS |
16053 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
16054 | # in glibc 2.1.3, but that breaks too many other things. | |
16055 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
c0d27fcc | 16056 | echo "$as_me:$LINENO: checking for fseeko" >&5 |
b936fae4 AS |
16057 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
16058 | if test "${ac_cv_func_fseeko+set}" = set; then | |
16059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16060 | else | |
16061 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16062 | /* confdefs.h. */ |
16063 | _ACEOF | |
16064 | cat confdefs.h >>conftest.$ac_ext | |
16065 | cat >>conftest.$ac_ext <<_ACEOF | |
16066 | /* end confdefs.h. */ | |
b936fae4 | 16067 | #include <stdio.h> |
b936fae4 AS |
16068 | int |
16069 | main () | |
16070 | { | |
16071 | return fseeko && fseeko (stdin, 0, 0); | |
503d2be0 AS |
16072 | ; |
16073 | return 0; | |
16074 | } | |
16075 | _ACEOF | |
16076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16078 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16079 | ac_status=$? |
35996d22 AS |
16080 | grep -v '^ *+' conftest.er1 >conftest.err |
16081 | rm -f conftest.er1 | |
16082 | cat conftest.err >&5 | |
c0d27fcc | 16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16084 | (exit $ac_status); } && |
35996d22 AS |
16085 | { ac_try='test -z "$ac_c_werror_flag" |
16086 | || test ! -s conftest.err' | |
16087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16088 | (eval $ac_try) 2>&5 | |
16089 | ac_status=$? | |
16090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16091 | (exit $ac_status); }; } && | |
16092 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16094 | (eval $ac_try) 2>&5 |
16095 | ac_status=$? | |
c0d27fcc | 16096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16097 | (exit $ac_status); }; }; then |
b936fae4 | 16098 | ac_cv_func_fseeko=yes |
503d2be0 AS |
16099 | else |
16100 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16101 | sed 's/^/| /' conftest.$ac_ext >&5 |
16102 | ||
b936fae4 | 16103 | ac_cv_func_fseeko=no |
503d2be0 | 16104 | fi |
35996d22 AS |
16105 | rm -f conftest.err conftest.$ac_objext \ |
16106 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16107 | fi |
c0d27fcc | 16108 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
b936fae4 AS |
16109 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
16110 | if test $ac_cv_func_fseeko = yes; then | |
16111 | ||
c0d27fcc | 16112 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 16113 | #define HAVE_FSEEKO 1 |
c0d27fcc | 16114 | _ACEOF |
b936fae4 | 16115 | |
4c343001 DL |
16116 | fi |
16117 | ||
c0d27fcc | 16118 | |
cd958eb3 MB |
16119 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
16120 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | |
16121 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | |
16122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16123 | else | |
16124 | # Use it with a single arg. | |
16125 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16126 | /* confdefs.h. */ |
16127 | _ACEOF | |
16128 | cat confdefs.h >>conftest.$ac_ext | |
16129 | cat >>conftest.$ac_ext <<_ACEOF | |
16130 | /* end confdefs.h. */ | |
cd958eb3 MB |
16131 | $ac_includes_default |
16132 | int | |
16133 | main () | |
16134 | { | |
16135 | getpgrp (0); | |
16136 | ; | |
16137 | return 0; | |
16138 | } | |
16139 | _ACEOF | |
16140 | rm -f conftest.$ac_objext | |
16141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 16142 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 16143 | ac_status=$? |
35996d22 AS |
16144 | grep -v '^ *+' conftest.er1 >conftest.err |
16145 | rm -f conftest.er1 | |
16146 | cat conftest.err >&5 | |
cd958eb3 MB |
16147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16148 | (exit $ac_status); } && | |
35996d22 AS |
16149 | { ac_try='test -z "$ac_c_werror_flag" |
16150 | || test ! -s conftest.err' | |
16151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16152 | (eval $ac_try) 2>&5 | |
16153 | ac_status=$? | |
16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16155 | (exit $ac_status); }; } && | |
16156 | { ac_try='test -s conftest.$ac_objext' | |
cd958eb3 MB |
16157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16158 | (eval $ac_try) 2>&5 | |
16159 | ac_status=$? | |
16160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16161 | (exit $ac_status); }; }; then | |
16162 | ac_cv_func_getpgrp_void=no | |
16163 | else | |
16164 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16165 | sed 's/^/| /' conftest.$ac_ext >&5 |
16166 | ||
cd958eb3 MB |
16167 | ac_cv_func_getpgrp_void=yes |
16168 | fi | |
35996d22 | 16169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cd958eb3 MB |
16170 | |
16171 | fi | |
16172 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
16173 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | |
16174 | if test $ac_cv_func_getpgrp_void = yes; then | |
16175 | ||
16176 | cat >>confdefs.h <<\_ACEOF | |
16177 | #define GETPGRP_VOID 1 | |
16178 | _ACEOF | |
16179 | ||
16180 | fi | |
16181 | ||
16182 | ||
973a76b1 DL |
16183 | |
16184 | for ac_func in strftime | |
16185 | do | |
16186 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16187 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16188 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16189 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16191 | else | |
16192 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16193 | /* confdefs.h. */ |
16194 | _ACEOF | |
16195 | cat confdefs.h >>conftest.$ac_ext | |
16196 | cat >>conftest.$ac_ext <<_ACEOF | |
16197 | /* end confdefs.h. */ | |
35996d22 AS |
16198 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16199 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16200 | #define $ac_func innocuous_$ac_func | |
16201 | ||
973a76b1 | 16202 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16203 | which can conflict with char $ac_func (); below. |
16204 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16205 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16206 | |
19650fd6 AS |
16207 | #ifdef __STDC__ |
16208 | # include <limits.h> | |
16209 | #else | |
16210 | # include <assert.h> | |
16211 | #endif | |
35996d22 AS |
16212 | |
16213 | #undef $ac_func | |
16214 | ||
973a76b1 DL |
16215 | /* Override any gcc2 internal prototype to avoid an error. */ |
16216 | #ifdef __cplusplus | |
16217 | extern "C" | |
19650fd6 | 16218 | { |
973a76b1 DL |
16219 | #endif |
16220 | /* We use char because int might match the return type of a gcc2 | |
16221 | builtin and then its argument prototype would still apply. */ | |
16222 | char $ac_func (); | |
16223 | /* The GNU C library defines this for functions which it implements | |
16224 | to always fail with ENOSYS. Some functions are actually named | |
16225 | something starting with __ and the normal name is an alias. */ | |
16226 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16227 | choke me | |
16228 | #else | |
19650fd6 AS |
16229 | char (*f) () = $ac_func; |
16230 | #endif | |
16231 | #ifdef __cplusplus | |
16232 | } | |
973a76b1 DL |
16233 | #endif |
16234 | ||
19650fd6 AS |
16235 | int |
16236 | main () | |
16237 | { | |
16238 | return f != $ac_func; | |
973a76b1 DL |
16239 | ; |
16240 | return 0; | |
16241 | } | |
16242 | _ACEOF | |
16243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 16245 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 16246 | ac_status=$? |
35996d22 AS |
16247 | grep -v '^ *+' conftest.er1 >conftest.err |
16248 | rm -f conftest.er1 | |
16249 | cat conftest.err >&5 | |
973a76b1 DL |
16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16251 | (exit $ac_status); } && | |
35996d22 AS |
16252 | { ac_try='test -z "$ac_c_werror_flag" |
16253 | || test ! -s conftest.err' | |
16254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16255 | (eval $ac_try) 2>&5 | |
16256 | ac_status=$? | |
16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16258 | (exit $ac_status); }; } && | |
16259 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
16260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16261 | (eval $ac_try) 2>&5 | |
16262 | ac_status=$? | |
16263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16264 | (exit $ac_status); }; }; then | |
16265 | eval "$as_ac_var=yes" | |
16266 | else | |
16267 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16268 | sed 's/^/| /' conftest.$ac_ext >&5 |
16269 | ||
973a76b1 DL |
16270 | eval "$as_ac_var=no" |
16271 | fi | |
35996d22 AS |
16272 | rm -f conftest.err conftest.$ac_objext \ |
16273 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
16274 | fi |
16275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16276 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16277 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16278 | cat >>confdefs.h <<_ACEOF | |
16279 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16280 | _ACEOF | |
16281 | ||
16282 | else | |
16283 | # strftime is in -lintl on SCO UNIX. | |
16284 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | |
16285 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | |
16286 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | |
16287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16288 | else | |
16289 | ac_check_lib_save_LIBS=$LIBS | |
16290 | LIBS="-lintl $LIBS" | |
16291 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16292 | /* confdefs.h. */ |
16293 | _ACEOF | |
16294 | cat confdefs.h >>conftest.$ac_ext | |
16295 | cat >>conftest.$ac_ext <<_ACEOF | |
16296 | /* end confdefs.h. */ | |
973a76b1 DL |
16297 | |
16298 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16299 | #ifdef __cplusplus | |
16300 | extern "C" | |
16301 | #endif | |
16302 | /* We use char because int might match the return type of a gcc2 | |
16303 | builtin and then its argument prototype would still apply. */ | |
16304 | char strftime (); | |
16305 | int | |
16306 | main () | |
16307 | { | |
16308 | strftime (); | |
16309 | ; | |
16310 | return 0; | |
16311 | } | |
16312 | _ACEOF | |
16313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 16315 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 16316 | ac_status=$? |
35996d22 AS |
16317 | grep -v '^ *+' conftest.er1 >conftest.err |
16318 | rm -f conftest.er1 | |
16319 | cat conftest.err >&5 | |
973a76b1 DL |
16320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16321 | (exit $ac_status); } && | |
35996d22 AS |
16322 | { ac_try='test -z "$ac_c_werror_flag" |
16323 | || test ! -s conftest.err' | |
16324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16325 | (eval $ac_try) 2>&5 | |
16326 | ac_status=$? | |
16327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16328 | (exit $ac_status); }; } && | |
16329 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
16330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16331 | (eval $ac_try) 2>&5 | |
16332 | ac_status=$? | |
16333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16334 | (exit $ac_status); }; }; then | |
16335 | ac_cv_lib_intl_strftime=yes | |
16336 | else | |
16337 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16338 | sed 's/^/| /' conftest.$ac_ext >&5 |
16339 | ||
973a76b1 DL |
16340 | ac_cv_lib_intl_strftime=no |
16341 | fi | |
35996d22 AS |
16342 | rm -f conftest.err conftest.$ac_objext \ |
16343 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
16344 | LIBS=$ac_check_lib_save_LIBS |
16345 | fi | |
16346 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | |
16347 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | |
16348 | if test $ac_cv_lib_intl_strftime = yes; then | |
16349 | cat >>confdefs.h <<\_ACEOF | |
16350 | #define HAVE_STRFTIME 1 | |
16351 | _ACEOF | |
16352 | ||
16353 | LIBS="-lintl $LIBS" | |
16354 | fi | |
16355 | ||
16356 | fi | |
16357 | done | |
16358 | ||
16359 | ||
b936fae4 AS |
16360 | # UNIX98 PTYs. |
16361 | ||
16362 | for ac_func in grantpt | |
503d2be0 AS |
16363 | do |
16364 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 16365 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
16366 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16367 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 16369 | else |
503d2be0 | 16370 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16371 | /* confdefs.h. */ |
16372 | _ACEOF | |
16373 | cat confdefs.h >>conftest.$ac_ext | |
16374 | cat >>conftest.$ac_ext <<_ACEOF | |
16375 | /* end confdefs.h. */ | |
35996d22 AS |
16376 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16378 | #define $ac_func innocuous_$ac_func | |
16379 | ||
503d2be0 | 16380 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16381 | which can conflict with char $ac_func (); below. |
16382 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16383 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16384 | |
19650fd6 AS |
16385 | #ifdef __STDC__ |
16386 | # include <limits.h> | |
16387 | #else | |
16388 | # include <assert.h> | |
16389 | #endif | |
35996d22 AS |
16390 | |
16391 | #undef $ac_func | |
16392 | ||
4c343001 | 16393 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16394 | #ifdef __cplusplus |
16395 | extern "C" | |
19650fd6 | 16396 | { |
503d2be0 | 16397 | #endif |
4c343001 | 16398 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16399 | builtin and then its argument prototype would still apply. */ |
16400 | char $ac_func (); | |
503d2be0 AS |
16401 | /* The GNU C library defines this for functions which it implements |
16402 | to always fail with ENOSYS. Some functions are actually named | |
16403 | something starting with __ and the normal name is an alias. */ | |
16404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16405 | choke me | |
16406 | #else | |
19650fd6 AS |
16407 | char (*f) () = $ac_func; |
16408 | #endif | |
16409 | #ifdef __cplusplus | |
16410 | } | |
503d2be0 | 16411 | #endif |
4c343001 | 16412 | |
19650fd6 AS |
16413 | int |
16414 | main () | |
16415 | { | |
16416 | return f != $ac_func; | |
503d2be0 AS |
16417 | ; |
16418 | return 0; | |
16419 | } | |
16420 | _ACEOF | |
16421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16423 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16424 | ac_status=$? |
35996d22 AS |
16425 | grep -v '^ *+' conftest.er1 >conftest.err |
16426 | rm -f conftest.er1 | |
16427 | cat conftest.err >&5 | |
c0d27fcc | 16428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16429 | (exit $ac_status); } && |
35996d22 AS |
16430 | { ac_try='test -z "$ac_c_werror_flag" |
16431 | || test ! -s conftest.err' | |
16432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16433 | (eval $ac_try) 2>&5 | |
16434 | ac_status=$? | |
16435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16436 | (exit $ac_status); }; } && | |
16437 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16439 | (eval $ac_try) 2>&5 |
16440 | ac_status=$? | |
c0d27fcc | 16441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16442 | (exit $ac_status); }; }; then |
16443 | eval "$as_ac_var=yes" | |
16444 | else | |
16445 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16446 | sed 's/^/| /' conftest.$ac_ext >&5 |
16447 | ||
503d2be0 AS |
16448 | eval "$as_ac_var=no" |
16449 | fi | |
35996d22 AS |
16450 | rm -f conftest.err conftest.$ac_objext \ |
16451 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16452 | fi |
c0d27fcc | 16453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16454 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16455 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16456 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16457 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16458 | _ACEOF |
4c343001 DL |
16459 | |
16460 | fi | |
503d2be0 AS |
16461 | done |
16462 | ||
c0d27fcc | 16463 | |
b936fae4 | 16464 | # PTY-related GNU extensions. |
4c343001 | 16465 | |
b936fae4 AS |
16466 | for ac_func in getpt |
16467 | do | |
16468 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 16469 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
b936fae4 AS |
16470 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16471 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 16472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 16473 | else |
b936fae4 | 16474 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16475 | /* confdefs.h. */ |
16476 | _ACEOF | |
16477 | cat confdefs.h >>conftest.$ac_ext | |
16478 | cat >>conftest.$ac_ext <<_ACEOF | |
16479 | /* end confdefs.h. */ | |
35996d22 AS |
16480 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16481 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16482 | #define $ac_func innocuous_$ac_func | |
16483 | ||
087121cc | 16484 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16485 | which can conflict with char $ac_func (); below. |
16486 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16487 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16488 | |
19650fd6 AS |
16489 | #ifdef __STDC__ |
16490 | # include <limits.h> | |
16491 | #else | |
16492 | # include <assert.h> | |
16493 | #endif | |
35996d22 AS |
16494 | |
16495 | #undef $ac_func | |
16496 | ||
087121cc | 16497 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16498 | #ifdef __cplusplus |
16499 | extern "C" | |
19650fd6 | 16500 | { |
503d2be0 | 16501 | #endif |
087121cc | 16502 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16503 | builtin and then its argument prototype would still apply. */ |
16504 | char $ac_func (); | |
087121cc GM |
16505 | /* The GNU C library defines this for functions which it implements |
16506 | to always fail with ENOSYS. Some functions are actually named | |
16507 | something starting with __ and the normal name is an alias. */ | |
16508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16509 | choke me | |
16510 | #else | |
19650fd6 AS |
16511 | char (*f) () = $ac_func; |
16512 | #endif | |
16513 | #ifdef __cplusplus | |
16514 | } | |
087121cc GM |
16515 | #endif |
16516 | ||
19650fd6 AS |
16517 | int |
16518 | main () | |
16519 | { | |
16520 | return f != $ac_func; | |
503d2be0 AS |
16521 | ; |
16522 | return 0; | |
16523 | } | |
16524 | _ACEOF | |
16525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16527 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16528 | ac_status=$? |
35996d22 AS |
16529 | grep -v '^ *+' conftest.er1 >conftest.err |
16530 | rm -f conftest.er1 | |
16531 | cat conftest.err >&5 | |
c0d27fcc | 16532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16533 | (exit $ac_status); } && |
35996d22 AS |
16534 | { ac_try='test -z "$ac_c_werror_flag" |
16535 | || test ! -s conftest.err' | |
16536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16537 | (eval $ac_try) 2>&5 | |
16538 | ac_status=$? | |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16540 | (exit $ac_status); }; } && | |
16541 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16543 | (eval $ac_try) 2>&5 |
16544 | ac_status=$? | |
c0d27fcc | 16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16546 | (exit $ac_status); }; }; then |
16547 | eval "$as_ac_var=yes" | |
16548 | else | |
16549 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16550 | sed 's/^/| /' conftest.$ac_ext >&5 |
16551 | ||
503d2be0 AS |
16552 | eval "$as_ac_var=no" |
16553 | fi | |
35996d22 AS |
16554 | rm -f conftest.err conftest.$ac_objext \ |
16555 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16556 | fi |
c0d27fcc | 16557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16559 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16560 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16562 | _ACEOF |
087121cc | 16563 | |
087121cc GM |
16564 | fi |
16565 | done | |
16566 | ||
c0d27fcc | 16567 | |
ba4481b5 DL |
16568 | # Check this now, so that we will NOT find the above functions in ncurses. |
16569 | # That is because we have not set up to link ncurses in lib-src. | |
16570 | # It's better to believe a function is not available | |
16571 | # than to expect to find it in ncurses. | |
503d2be0 | 16572 | |
c0d27fcc | 16573 | echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
503d2be0 AS |
16574 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
16575 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
16576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 16577 | else |
503d2be0 | 16578 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 16579 | LIBS="-lncurses $LIBS" |
503d2be0 | 16580 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16581 | /* confdefs.h. */ |
16582 | _ACEOF | |
16583 | cat confdefs.h >>conftest.$ac_ext | |
16584 | cat >>conftest.$ac_ext <<_ACEOF | |
16585 | /* end confdefs.h. */ | |
503d2be0 | 16586 | |
ba4481b5 | 16587 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16588 | #ifdef __cplusplus |
16589 | extern "C" | |
16590 | #endif | |
ba4481b5 | 16591 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16592 | builtin and then its argument prototype would still apply. */ |
16593 | char tparm (); | |
16594 | int | |
16595 | main () | |
16596 | { | |
16597 | tparm (); | |
16598 | ; | |
16599 | return 0; | |
16600 | } | |
16601 | _ACEOF | |
16602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16604 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16605 | ac_status=$? |
35996d22 AS |
16606 | grep -v '^ *+' conftest.er1 >conftest.err |
16607 | rm -f conftest.er1 | |
16608 | cat conftest.err >&5 | |
c0d27fcc | 16609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16610 | (exit $ac_status); } && |
35996d22 AS |
16611 | { ac_try='test -z "$ac_c_werror_flag" |
16612 | || test ! -s conftest.err' | |
16613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16614 | (eval $ac_try) 2>&5 | |
16615 | ac_status=$? | |
16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16617 | (exit $ac_status); }; } && | |
16618 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16620 | (eval $ac_try) 2>&5 |
16621 | ac_status=$? | |
c0d27fcc | 16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16623 | (exit $ac_status); }; }; then |
16624 | ac_cv_lib_ncurses_tparm=yes | |
16625 | else | |
16626 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16627 | sed 's/^/| /' conftest.$ac_ext >&5 |
16628 | ||
503d2be0 AS |
16629 | ac_cv_lib_ncurses_tparm=no |
16630 | fi | |
35996d22 AS |
16631 | rm -f conftest.err conftest.$ac_objext \ |
16632 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
16633 | LIBS=$ac_check_lib_save_LIBS |
16634 | fi | |
c0d27fcc | 16635 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
503d2be0 AS |
16636 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
16637 | if test $ac_cv_lib_ncurses_tparm = yes; then | |
c0d27fcc | 16638 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16639 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 16640 | _ACEOF |
ba4481b5 DL |
16641 | |
16642 | LIBS="-lncurses $LIBS" | |
16643 | ||
ba4481b5 DL |
16644 | fi |
16645 | ||
c0d27fcc | 16646 | |
84e70f78 KR |
16647 | # Do we need the Hesiod library to provide the support routines? |
16648 | if test "$with_hesiod" = yes ; then | |
16649 | # Don't set $LIBS here -- see comments above. | |
16650 | resolv=no | |
c0d27fcc | 16651 | echo "$as_me:$LINENO: checking for res_send" >&5 |
84e70f78 KR |
16652 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
16653 | if test "${ac_cv_func_res_send+set}" = set; then | |
16654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16655 | else | |
16656 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16657 | /* confdefs.h. */ |
16658 | _ACEOF | |
16659 | cat confdefs.h >>conftest.$ac_ext | |
16660 | cat >>conftest.$ac_ext <<_ACEOF | |
16661 | /* end confdefs.h. */ | |
35996d22 AS |
16662 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
16663 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16664 | #define res_send innocuous_res_send | |
16665 | ||
84e70f78 | 16666 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16667 | which can conflict with char res_send (); below. |
16668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16669 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16670 | |
19650fd6 AS |
16671 | #ifdef __STDC__ |
16672 | # include <limits.h> | |
16673 | #else | |
16674 | # include <assert.h> | |
16675 | #endif | |
35996d22 AS |
16676 | |
16677 | #undef res_send | |
16678 | ||
84e70f78 KR |
16679 | /* Override any gcc2 internal prototype to avoid an error. */ |
16680 | #ifdef __cplusplus | |
16681 | extern "C" | |
19650fd6 | 16682 | { |
84e70f78 KR |
16683 | #endif |
16684 | /* We use char because int might match the return type of a gcc2 | |
16685 | builtin and then its argument prototype would still apply. */ | |
16686 | char res_send (); | |
84e70f78 KR |
16687 | /* The GNU C library defines this for functions which it implements |
16688 | to always fail with ENOSYS. Some functions are actually named | |
16689 | something starting with __ and the normal name is an alias. */ | |
16690 | #if defined (__stub_res_send) || defined (__stub___res_send) | |
16691 | choke me | |
16692 | #else | |
19650fd6 AS |
16693 | char (*f) () = res_send; |
16694 | #endif | |
16695 | #ifdef __cplusplus | |
16696 | } | |
cd958eb3 MB |
16697 | #endif |
16698 | ||
19650fd6 AS |
16699 | int |
16700 | main () | |
16701 | { | |
16702 | return f != res_send; | |
84e70f78 KR |
16703 | ; |
16704 | return 0; | |
16705 | } | |
16706 | _ACEOF | |
16707 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16709 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16710 | ac_status=$? |
35996d22 AS |
16711 | grep -v '^ *+' conftest.er1 >conftest.err |
16712 | rm -f conftest.er1 | |
16713 | cat conftest.err >&5 | |
c0d27fcc | 16714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16715 | (exit $ac_status); } && |
35996d22 AS |
16716 | { ac_try='test -z "$ac_c_werror_flag" |
16717 | || test ! -s conftest.err' | |
16718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16719 | (eval $ac_try) 2>&5 | |
16720 | ac_status=$? | |
16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16722 | (exit $ac_status); }; } && | |
16723 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16725 | (eval $ac_try) 2>&5 |
16726 | ac_status=$? | |
c0d27fcc | 16727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16728 | (exit $ac_status); }; }; then |
16729 | ac_cv_func_res_send=yes | |
16730 | else | |
16731 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16732 | sed 's/^/| /' conftest.$ac_ext >&5 |
16733 | ||
84e70f78 KR |
16734 | ac_cv_func_res_send=no |
16735 | fi | |
35996d22 AS |
16736 | rm -f conftest.err conftest.$ac_objext \ |
16737 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 16738 | fi |
c0d27fcc | 16739 | echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
84e70f78 KR |
16740 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
16741 | if test $ac_cv_func_res_send = yes; then | |
16742 | : | |
16743 | else | |
c0d27fcc | 16744 | echo "$as_me:$LINENO: checking for __res_send" >&5 |
84e70f78 KR |
16745 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
16746 | if test "${ac_cv_func___res_send+set}" = set; then | |
16747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16748 | else | |
16749 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16750 | /* confdefs.h. */ |
16751 | _ACEOF | |
16752 | cat confdefs.h >>conftest.$ac_ext | |
16753 | cat >>conftest.$ac_ext <<_ACEOF | |
16754 | /* end confdefs.h. */ | |
35996d22 AS |
16755 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. |
16756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16757 | #define __res_send innocuous___res_send | |
16758 | ||
84e70f78 | 16759 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16760 | which can conflict with char __res_send (); below. |
16761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16762 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16763 | |
19650fd6 AS |
16764 | #ifdef __STDC__ |
16765 | # include <limits.h> | |
16766 | #else | |
16767 | # include <assert.h> | |
16768 | #endif | |
35996d22 AS |
16769 | |
16770 | #undef __res_send | |
16771 | ||
84e70f78 KR |
16772 | /* Override any gcc2 internal prototype to avoid an error. */ |
16773 | #ifdef __cplusplus | |
16774 | extern "C" | |
19650fd6 | 16775 | { |
84e70f78 KR |
16776 | #endif |
16777 | /* We use char because int might match the return type of a gcc2 | |
16778 | builtin and then its argument prototype would still apply. */ | |
16779 | char __res_send (); | |
84e70f78 KR |
16780 | /* The GNU C library defines this for functions which it implements |
16781 | to always fail with ENOSYS. Some functions are actually named | |
16782 | something starting with __ and the normal name is an alias. */ | |
16783 | #if defined (__stub___res_send) || defined (__stub_____res_send) | |
16784 | choke me | |
16785 | #else | |
19650fd6 AS |
16786 | char (*f) () = __res_send; |
16787 | #endif | |
16788 | #ifdef __cplusplus | |
16789 | } | |
84e70f78 KR |
16790 | #endif |
16791 | ||
19650fd6 AS |
16792 | int |
16793 | main () | |
16794 | { | |
16795 | return f != __res_send; | |
84e70f78 KR |
16796 | ; |
16797 | return 0; | |
16798 | } | |
16799 | _ACEOF | |
16800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16802 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16803 | ac_status=$? |
35996d22 AS |
16804 | grep -v '^ *+' conftest.er1 >conftest.err |
16805 | rm -f conftest.er1 | |
16806 | cat conftest.err >&5 | |
c0d27fcc | 16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16808 | (exit $ac_status); } && |
35996d22 AS |
16809 | { ac_try='test -z "$ac_c_werror_flag" |
16810 | || test ! -s conftest.err' | |
16811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16812 | (eval $ac_try) 2>&5 | |
16813 | ac_status=$? | |
16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16815 | (exit $ac_status); }; } && | |
16816 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16818 | (eval $ac_try) 2>&5 |
16819 | ac_status=$? | |
c0d27fcc | 16820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16821 | (exit $ac_status); }; }; then |
16822 | ac_cv_func___res_send=yes | |
16823 | else | |
16824 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16825 | sed 's/^/| /' conftest.$ac_ext >&5 |
16826 | ||
84e70f78 KR |
16827 | ac_cv_func___res_send=no |
16828 | fi | |
35996d22 AS |
16829 | rm -f conftest.err conftest.$ac_objext \ |
16830 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 16831 | fi |
c0d27fcc | 16832 | echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
84e70f78 KR |
16833 | echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
16834 | if test $ac_cv_func___res_send = yes; then | |
16835 | : | |
16836 | else | |
c0d27fcc | 16837 | echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
84e70f78 KR |
16838 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
16839 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then | |
16840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16841 | else | |
16842 | ac_check_lib_save_LIBS=$LIBS | |
16843 | LIBS="-lresolv $LIBS" | |
16844 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16845 | /* confdefs.h. */ |
16846 | _ACEOF | |
16847 | cat confdefs.h >>conftest.$ac_ext | |
16848 | cat >>conftest.$ac_ext <<_ACEOF | |
16849 | /* end confdefs.h. */ | |
84e70f78 KR |
16850 | |
16851 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16852 | #ifdef __cplusplus | |
16853 | extern "C" | |
16854 | #endif | |
16855 | /* We use char because int might match the return type of a gcc2 | |
16856 | builtin and then its argument prototype would still apply. */ | |
16857 | char res_send (); | |
16858 | int | |
16859 | main () | |
16860 | { | |
16861 | res_send (); | |
16862 | ; | |
16863 | return 0; | |
16864 | } | |
16865 | _ACEOF | |
16866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16868 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16869 | ac_status=$? |
35996d22 AS |
16870 | grep -v '^ *+' conftest.er1 >conftest.err |
16871 | rm -f conftest.er1 | |
16872 | cat conftest.err >&5 | |
c0d27fcc | 16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16874 | (exit $ac_status); } && |
35996d22 AS |
16875 | { ac_try='test -z "$ac_c_werror_flag" |
16876 | || test ! -s conftest.err' | |
16877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16878 | (eval $ac_try) 2>&5 | |
16879 | ac_status=$? | |
16880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16881 | (exit $ac_status); }; } && | |
16882 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16884 | (eval $ac_try) 2>&5 |
16885 | ac_status=$? | |
c0d27fcc | 16886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16887 | (exit $ac_status); }; }; then |
16888 | ac_cv_lib_resolv_res_send=yes | |
16889 | else | |
16890 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16891 | sed 's/^/| /' conftest.$ac_ext >&5 |
16892 | ||
84e70f78 KR |
16893 | ac_cv_lib_resolv_res_send=no |
16894 | fi | |
35996d22 AS |
16895 | rm -f conftest.err conftest.$ac_objext \ |
16896 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
16897 | LIBS=$ac_check_lib_save_LIBS |
16898 | fi | |
c0d27fcc | 16899 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
84e70f78 KR |
16900 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
16901 | if test $ac_cv_lib_resolv_res_send = yes; then | |
16902 | resolv=yes | |
16903 | else | |
c0d27fcc | 16904 | echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
84e70f78 KR |
16905 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
16906 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then | |
16907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16908 | else | |
16909 | ac_check_lib_save_LIBS=$LIBS | |
16910 | LIBS="-lresolv $LIBS" | |
16911 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16912 | /* confdefs.h. */ |
16913 | _ACEOF | |
16914 | cat confdefs.h >>conftest.$ac_ext | |
16915 | cat >>conftest.$ac_ext <<_ACEOF | |
16916 | /* end confdefs.h. */ | |
84e70f78 KR |
16917 | |
16918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16919 | #ifdef __cplusplus | |
16920 | extern "C" | |
16921 | #endif | |
16922 | /* We use char because int might match the return type of a gcc2 | |
16923 | builtin and then its argument prototype would still apply. */ | |
16924 | char __res_send (); | |
16925 | int | |
16926 | main () | |
16927 | { | |
16928 | __res_send (); | |
16929 | ; | |
16930 | return 0; | |
16931 | } | |
16932 | _ACEOF | |
16933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16935 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16936 | ac_status=$? |
35996d22 AS |
16937 | grep -v '^ *+' conftest.er1 >conftest.err |
16938 | rm -f conftest.er1 | |
16939 | cat conftest.err >&5 | |
c0d27fcc | 16940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16941 | (exit $ac_status); } && |
35996d22 AS |
16942 | { ac_try='test -z "$ac_c_werror_flag" |
16943 | || test ! -s conftest.err' | |
16944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16945 | (eval $ac_try) 2>&5 | |
16946 | ac_status=$? | |
16947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16948 | (exit $ac_status); }; } && | |
16949 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16951 | (eval $ac_try) 2>&5 |
16952 | ac_status=$? | |
c0d27fcc | 16953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16954 | (exit $ac_status); }; }; then |
16955 | ac_cv_lib_resolv___res_send=yes | |
16956 | else | |
16957 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16958 | sed 's/^/| /' conftest.$ac_ext >&5 |
16959 | ||
84e70f78 KR |
16960 | ac_cv_lib_resolv___res_send=no |
16961 | fi | |
35996d22 AS |
16962 | rm -f conftest.err conftest.$ac_objext \ |
16963 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
16964 | LIBS=$ac_check_lib_save_LIBS |
16965 | fi | |
c0d27fcc | 16966 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
84e70f78 KR |
16967 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
16968 | if test $ac_cv_lib_resolv___res_send = yes; then | |
16969 | resolv=yes | |
16970 | fi | |
16971 | ||
16972 | fi | |
16973 | ||
16974 | fi | |
16975 | ||
16976 | fi | |
16977 | ||
16978 | if test "$resolv" = yes ; then | |
16979 | RESOLVLIB=-lresolv | |
b936fae4 | 16980 | |
c0d27fcc | 16981 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 16982 | #define HAVE_LIBRESOLV 1 |
c0d27fcc | 16983 | _ACEOF |
84e70f78 KR |
16984 | |
16985 | else | |
16986 | RESOLVLIB= | |
16987 | fi | |
c0d27fcc | 16988 | echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
84e70f78 KR |
16989 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
16990 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then | |
16991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16992 | else | |
16993 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16994 | /* confdefs.h. */ |
16995 | _ACEOF | |
16996 | cat confdefs.h >>conftest.$ac_ext | |
16997 | cat >>conftest.$ac_ext <<_ACEOF | |
16998 | /* end confdefs.h. */ | |
35996d22 AS |
16999 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
17000 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17001 | #define hes_getmailhost innocuous_hes_getmailhost | |
17002 | ||
84e70f78 | 17003 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17004 | which can conflict with char hes_getmailhost (); below. |
17005 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17006 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 17007 | |
19650fd6 AS |
17008 | #ifdef __STDC__ |
17009 | # include <limits.h> | |
17010 | #else | |
17011 | # include <assert.h> | |
17012 | #endif | |
35996d22 AS |
17013 | |
17014 | #undef hes_getmailhost | |
17015 | ||
84e70f78 KR |
17016 | /* Override any gcc2 internal prototype to avoid an error. */ |
17017 | #ifdef __cplusplus | |
17018 | extern "C" | |
19650fd6 | 17019 | { |
84e70f78 KR |
17020 | #endif |
17021 | /* We use char because int might match the return type of a gcc2 | |
17022 | builtin and then its argument prototype would still apply. */ | |
17023 | char hes_getmailhost (); | |
84e70f78 KR |
17024 | /* The GNU C library defines this for functions which it implements |
17025 | to always fail with ENOSYS. Some functions are actually named | |
17026 | something starting with __ and the normal name is an alias. */ | |
17027 | #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) | |
17028 | choke me | |
17029 | #else | |
19650fd6 AS |
17030 | char (*f) () = hes_getmailhost; |
17031 | #endif | |
17032 | #ifdef __cplusplus | |
17033 | } | |
cd958eb3 MB |
17034 | #endif |
17035 | ||
19650fd6 AS |
17036 | int |
17037 | main () | |
17038 | { | |
17039 | return f != hes_getmailhost; | |
84e70f78 KR |
17040 | ; |
17041 | return 0; | |
17042 | } | |
17043 | _ACEOF | |
17044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17046 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17047 | ac_status=$? |
35996d22 AS |
17048 | grep -v '^ *+' conftest.er1 >conftest.err |
17049 | rm -f conftest.er1 | |
17050 | cat conftest.err >&5 | |
c0d27fcc | 17051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17052 | (exit $ac_status); } && |
35996d22 AS |
17053 | { ac_try='test -z "$ac_c_werror_flag" |
17054 | || test ! -s conftest.err' | |
17055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17056 | (eval $ac_try) 2>&5 | |
17057 | ac_status=$? | |
17058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17059 | (exit $ac_status); }; } && | |
17060 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17062 | (eval $ac_try) 2>&5 |
17063 | ac_status=$? | |
c0d27fcc | 17064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17065 | (exit $ac_status); }; }; then |
17066 | ac_cv_func_hes_getmailhost=yes | |
17067 | else | |
17068 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17069 | sed 's/^/| /' conftest.$ac_ext >&5 |
17070 | ||
84e70f78 KR |
17071 | ac_cv_func_hes_getmailhost=no |
17072 | fi | |
35996d22 AS |
17073 | rm -f conftest.err conftest.$ac_objext \ |
17074 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 17075 | fi |
c0d27fcc | 17076 | echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
84e70f78 KR |
17077 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
17078 | if test $ac_cv_func_hes_getmailhost = yes; then | |
17079 | : | |
17080 | else | |
c0d27fcc | 17081 | echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
84e70f78 KR |
17082 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
17083 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | |
17084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17085 | else | |
17086 | ac_check_lib_save_LIBS=$LIBS | |
17087 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
17088 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17089 | /* confdefs.h. */ |
17090 | _ACEOF | |
17091 | cat confdefs.h >>conftest.$ac_ext | |
17092 | cat >>conftest.$ac_ext <<_ACEOF | |
17093 | /* end confdefs.h. */ | |
84e70f78 KR |
17094 | |
17095 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17096 | #ifdef __cplusplus | |
17097 | extern "C" | |
17098 | #endif | |
17099 | /* We use char because int might match the return type of a gcc2 | |
17100 | builtin and then its argument prototype would still apply. */ | |
17101 | char hes_getmailhost (); | |
17102 | int | |
17103 | main () | |
17104 | { | |
17105 | hes_getmailhost (); | |
17106 | ; | |
17107 | return 0; | |
17108 | } | |
17109 | _ACEOF | |
17110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17112 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17113 | ac_status=$? |
35996d22 AS |
17114 | grep -v '^ *+' conftest.er1 >conftest.err |
17115 | rm -f conftest.er1 | |
17116 | cat conftest.err >&5 | |
c0d27fcc | 17117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17118 | (exit $ac_status); } && |
35996d22 AS |
17119 | { ac_try='test -z "$ac_c_werror_flag" |
17120 | || test ! -s conftest.err' | |
17121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17122 | (eval $ac_try) 2>&5 | |
17123 | ac_status=$? | |
17124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17125 | (exit $ac_status); }; } && | |
17126 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17128 | (eval $ac_try) 2>&5 |
17129 | ac_status=$? | |
c0d27fcc | 17130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17131 | (exit $ac_status); }; }; then |
17132 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
17133 | else | |
17134 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17135 | sed 's/^/| /' conftest.$ac_ext >&5 |
17136 | ||
84e70f78 KR |
17137 | ac_cv_lib_hesiod_hes_getmailhost=no |
17138 | fi | |
35996d22 AS |
17139 | rm -f conftest.err conftest.$ac_objext \ |
17140 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
17141 | LIBS=$ac_check_lib_save_LIBS |
17142 | fi | |
c0d27fcc | 17143 | echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
84e70f78 KR |
17144 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
17145 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | |
b936fae4 | 17146 | |
c0d27fcc | 17147 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 17148 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 17149 | _ACEOF |
84e70f78 KR |
17150 | |
17151 | else | |
17152 | : | |
17153 | fi | |
17154 | ||
17155 | fi | |
17156 | ||
17157 | fi | |
17158 | ||
a21616bd KR |
17159 | # These tell us which Kerberos-related libraries to use. |
17160 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 17161 | |
c0d27fcc | 17162 | echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
503d2be0 AS |
17163 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
17164 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
17165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17166 | else |
503d2be0 | 17167 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17168 | LIBS="-lcom_err $LIBS" |
503d2be0 | 17169 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17170 | /* confdefs.h. */ |
17171 | _ACEOF | |
17172 | cat confdefs.h >>conftest.$ac_ext | |
17173 | cat >>conftest.$ac_ext <<_ACEOF | |
17174 | /* end confdefs.h. */ | |
503d2be0 | 17175 | |
a21616bd | 17176 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17177 | #ifdef __cplusplus |
17178 | extern "C" | |
17179 | #endif | |
a21616bd | 17180 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17181 | builtin and then its argument prototype would still apply. */ |
17182 | char com_err (); | |
17183 | int | |
17184 | main () | |
17185 | { | |
17186 | com_err (); | |
17187 | ; | |
17188 | return 0; | |
17189 | } | |
17190 | _ACEOF | |
17191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17193 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17194 | ac_status=$? |
35996d22 AS |
17195 | grep -v '^ *+' conftest.er1 >conftest.err |
17196 | rm -f conftest.er1 | |
17197 | cat conftest.err >&5 | |
c0d27fcc | 17198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17199 | (exit $ac_status); } && |
35996d22 AS |
17200 | { ac_try='test -z "$ac_c_werror_flag" |
17201 | || test ! -s conftest.err' | |
17202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17203 | (eval $ac_try) 2>&5 | |
17204 | ac_status=$? | |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17206 | (exit $ac_status); }; } && | |
17207 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17209 | (eval $ac_try) 2>&5 |
17210 | ac_status=$? | |
c0d27fcc | 17211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17212 | (exit $ac_status); }; }; then |
17213 | ac_cv_lib_com_err_com_err=yes | |
17214 | else | |
17215 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17216 | sed 's/^/| /' conftest.$ac_ext >&5 |
17217 | ||
503d2be0 AS |
17218 | ac_cv_lib_com_err_com_err=no |
17219 | fi | |
35996d22 AS |
17220 | rm -f conftest.err conftest.$ac_objext \ |
17221 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17222 | LIBS=$ac_check_lib_save_LIBS |
17223 | fi | |
c0d27fcc | 17224 | echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
503d2be0 AS |
17225 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
17226 | if test $ac_cv_lib_com_err_com_err = yes; then | |
c0d27fcc | 17227 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17228 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 17229 | _ACEOF |
a21616bd KR |
17230 | |
17231 | LIBS="-lcom_err $LIBS" | |
17232 | ||
a21616bd KR |
17233 | fi |
17234 | ||
c0d27fcc MR |
17235 | |
17236 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
503d2be0 AS |
17237 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
17238 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
17239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17240 | else |
503d2be0 | 17241 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17242 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 17243 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17244 | /* confdefs.h. */ |
17245 | _ACEOF | |
17246 | cat confdefs.h >>conftest.$ac_ext | |
17247 | cat >>conftest.$ac_ext <<_ACEOF | |
17248 | /* end confdefs.h. */ | |
503d2be0 | 17249 | |
a21616bd | 17250 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17251 | #ifdef __cplusplus |
17252 | extern "C" | |
17253 | #endif | |
a21616bd | 17254 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17255 | builtin and then its argument prototype would still apply. */ |
17256 | char mit_des_cbc_encrypt (); | |
17257 | int | |
17258 | main () | |
17259 | { | |
17260 | mit_des_cbc_encrypt (); | |
17261 | ; | |
17262 | return 0; | |
17263 | } | |
17264 | _ACEOF | |
17265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17267 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17268 | ac_status=$? |
35996d22 AS |
17269 | grep -v '^ *+' conftest.er1 >conftest.err |
17270 | rm -f conftest.er1 | |
17271 | cat conftest.err >&5 | |
c0d27fcc | 17272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17273 | (exit $ac_status); } && |
35996d22 AS |
17274 | { ac_try='test -z "$ac_c_werror_flag" |
17275 | || test ! -s conftest.err' | |
17276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17277 | (eval $ac_try) 2>&5 | |
17278 | ac_status=$? | |
17279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17280 | (exit $ac_status); }; } && | |
17281 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17283 | (eval $ac_try) 2>&5 |
17284 | ac_status=$? | |
c0d27fcc | 17285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17286 | (exit $ac_status); }; }; then |
17287 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
17288 | else | |
17289 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17290 | sed 's/^/| /' conftest.$ac_ext >&5 |
17291 | ||
503d2be0 AS |
17292 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
17293 | fi | |
35996d22 AS |
17294 | rm -f conftest.err conftest.$ac_objext \ |
17295 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17296 | LIBS=$ac_check_lib_save_LIBS |
17297 | fi | |
c0d27fcc | 17298 | echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
17299 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
17300 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 17301 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17302 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 17303 | _ACEOF |
a21616bd KR |
17304 | |
17305 | LIBS="-lk5crypto $LIBS" | |
17306 | ||
a21616bd KR |
17307 | fi |
17308 | ||
c0d27fcc MR |
17309 | |
17310 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
503d2be0 AS |
17311 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
17312 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
17313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17314 | else |
503d2be0 | 17315 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17316 | LIBS="-lcrypto $LIBS" |
503d2be0 | 17317 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17318 | /* confdefs.h. */ |
17319 | _ACEOF | |
17320 | cat confdefs.h >>conftest.$ac_ext | |
17321 | cat >>conftest.$ac_ext <<_ACEOF | |
17322 | /* end confdefs.h. */ | |
503d2be0 | 17323 | |
a21616bd | 17324 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17325 | #ifdef __cplusplus |
17326 | extern "C" | |
17327 | #endif | |
a21616bd | 17328 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17329 | builtin and then its argument prototype would still apply. */ |
17330 | char mit_des_cbc_encrypt (); | |
17331 | int | |
17332 | main () | |
17333 | { | |
17334 | mit_des_cbc_encrypt (); | |
17335 | ; | |
17336 | return 0; | |
17337 | } | |
17338 | _ACEOF | |
17339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17341 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17342 | ac_status=$? |
35996d22 AS |
17343 | grep -v '^ *+' conftest.er1 >conftest.err |
17344 | rm -f conftest.er1 | |
17345 | cat conftest.err >&5 | |
c0d27fcc | 17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17347 | (exit $ac_status); } && |
35996d22 AS |
17348 | { ac_try='test -z "$ac_c_werror_flag" |
17349 | || test ! -s conftest.err' | |
17350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17351 | (eval $ac_try) 2>&5 | |
17352 | ac_status=$? | |
17353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17354 | (exit $ac_status); }; } && | |
17355 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17357 | (eval $ac_try) 2>&5 |
17358 | ac_status=$? | |
c0d27fcc | 17359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17360 | (exit $ac_status); }; }; then |
17361 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
17362 | else | |
17363 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17364 | sed 's/^/| /' conftest.$ac_ext >&5 |
17365 | ||
503d2be0 AS |
17366 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
17367 | fi | |
35996d22 AS |
17368 | rm -f conftest.err conftest.$ac_objext \ |
17369 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17370 | LIBS=$ac_check_lib_save_LIBS |
17371 | fi | |
c0d27fcc | 17372 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
17373 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
17374 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 17375 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17376 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 17377 | _ACEOF |
a21616bd KR |
17378 | |
17379 | LIBS="-lcrypto $LIBS" | |
17380 | ||
a21616bd KR |
17381 | fi |
17382 | ||
c0d27fcc MR |
17383 | |
17384 | echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | |
503d2be0 AS |
17385 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
17386 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
17387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17388 | else |
503d2be0 | 17389 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17390 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 17391 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17392 | /* confdefs.h. */ |
17393 | _ACEOF | |
17394 | cat confdefs.h >>conftest.$ac_ext | |
17395 | cat >>conftest.$ac_ext <<_ACEOF | |
17396 | /* end confdefs.h. */ | |
a21616bd | 17397 | |
503d2be0 AS |
17398 | /* Override any gcc2 internal prototype to avoid an error. */ |
17399 | #ifdef __cplusplus | |
17400 | extern "C" | |
17401 | #endif | |
17402 | /* We use char because int might match the return type of a gcc2 | |
17403 | builtin and then its argument prototype would still apply. */ | |
17404 | char krb5_init_context (); | |
17405 | int | |
17406 | main () | |
17407 | { | |
17408 | krb5_init_context (); | |
17409 | ; | |
17410 | return 0; | |
17411 | } | |
17412 | _ACEOF | |
17413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17415 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17416 | ac_status=$? |
35996d22 AS |
17417 | grep -v '^ *+' conftest.er1 >conftest.err |
17418 | rm -f conftest.er1 | |
17419 | cat conftest.err >&5 | |
c0d27fcc | 17420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17421 | (exit $ac_status); } && |
35996d22 AS |
17422 | { ac_try='test -z "$ac_c_werror_flag" |
17423 | || test ! -s conftest.err' | |
17424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17425 | (eval $ac_try) 2>&5 | |
17426 | ac_status=$? | |
17427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17428 | (exit $ac_status); }; } && | |
17429 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17431 | (eval $ac_try) 2>&5 |
17432 | ac_status=$? | |
c0d27fcc | 17433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17434 | (exit $ac_status); }; }; then |
17435 | ac_cv_lib_krb5_krb5_init_context=yes | |
17436 | else | |
17437 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17438 | sed 's/^/| /' conftest.$ac_ext >&5 |
17439 | ||
503d2be0 AS |
17440 | ac_cv_lib_krb5_krb5_init_context=no |
17441 | fi | |
35996d22 AS |
17442 | rm -f conftest.err conftest.$ac_objext \ |
17443 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17444 | LIBS=$ac_check_lib_save_LIBS |
17445 | fi | |
c0d27fcc | 17446 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
503d2be0 AS |
17447 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
17448 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
c0d27fcc | 17449 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17450 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 17451 | _ACEOF |
a21616bd KR |
17452 | |
17453 | LIBS="-lkrb5 $LIBS" | |
17454 | ||
a21616bd KR |
17455 | fi |
17456 | ||
17457 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 17458 | |
c0d27fcc | 17459 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
503d2be0 AS |
17460 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
17461 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
17462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17463 | else |
503d2be0 | 17464 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17465 | LIBS="-ldes425 $LIBS" |
503d2be0 | 17466 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17467 | /* confdefs.h. */ |
17468 | _ACEOF | |
17469 | cat confdefs.h >>conftest.$ac_ext | |
17470 | cat >>conftest.$ac_ext <<_ACEOF | |
17471 | /* end confdefs.h. */ | |
503d2be0 | 17472 | |
a21616bd | 17473 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17474 | #ifdef __cplusplus |
17475 | extern "C" | |
17476 | #endif | |
a21616bd | 17477 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17478 | builtin and then its argument prototype would still apply. */ |
17479 | char des_cbc_encrypt (); | |
17480 | int | |
17481 | main () | |
17482 | { | |
17483 | des_cbc_encrypt (); | |
17484 | ; | |
17485 | return 0; | |
17486 | } | |
17487 | _ACEOF | |
17488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17490 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17491 | ac_status=$? |
35996d22 AS |
17492 | grep -v '^ *+' conftest.er1 >conftest.err |
17493 | rm -f conftest.er1 | |
17494 | cat conftest.err >&5 | |
c0d27fcc | 17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17496 | (exit $ac_status); } && |
35996d22 AS |
17497 | { ac_try='test -z "$ac_c_werror_flag" |
17498 | || test ! -s conftest.err' | |
17499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17500 | (eval $ac_try) 2>&5 | |
17501 | ac_status=$? | |
17502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17503 | (exit $ac_status); }; } && | |
17504 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17506 | (eval $ac_try) 2>&5 |
17507 | ac_status=$? | |
c0d27fcc | 17508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17509 | (exit $ac_status); }; }; then |
17510 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
17511 | else | |
17512 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17513 | sed 's/^/| /' conftest.$ac_ext >&5 |
17514 | ||
503d2be0 AS |
17515 | ac_cv_lib_des425_des_cbc_encrypt=no |
17516 | fi | |
35996d22 AS |
17517 | rm -f conftest.err conftest.$ac_objext \ |
17518 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17519 | LIBS=$ac_check_lib_save_LIBS |
17520 | fi | |
c0d27fcc | 17521 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
503d2be0 AS |
17522 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
17523 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
c0d27fcc | 17524 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17525 | #define HAVE_LIBDES425 1 |
c0d27fcc | 17526 | _ACEOF |
a21616bd KR |
17527 | |
17528 | LIBS="-ldes425 $LIBS" | |
17529 | ||
17530 | else | |
503d2be0 | 17531 | |
c0d27fcc | 17532 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
503d2be0 AS |
17533 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
17534 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
17535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17536 | else |
503d2be0 | 17537 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17538 | LIBS="-ldes $LIBS" |
503d2be0 | 17539 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17540 | /* confdefs.h. */ |
17541 | _ACEOF | |
17542 | cat confdefs.h >>conftest.$ac_ext | |
17543 | cat >>conftest.$ac_ext <<_ACEOF | |
17544 | /* end confdefs.h. */ | |
503d2be0 | 17545 | |
a21616bd | 17546 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17547 | #ifdef __cplusplus |
17548 | extern "C" | |
17549 | #endif | |
a21616bd | 17550 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17551 | builtin and then its argument prototype would still apply. */ |
17552 | char des_cbc_encrypt (); | |
17553 | int | |
17554 | main () | |
17555 | { | |
17556 | des_cbc_encrypt (); | |
17557 | ; | |
17558 | return 0; | |
17559 | } | |
17560 | _ACEOF | |
17561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17563 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17564 | ac_status=$? |
35996d22 AS |
17565 | grep -v '^ *+' conftest.er1 >conftest.err |
17566 | rm -f conftest.er1 | |
17567 | cat conftest.err >&5 | |
c0d27fcc | 17568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17569 | (exit $ac_status); } && |
35996d22 AS |
17570 | { ac_try='test -z "$ac_c_werror_flag" |
17571 | || test ! -s conftest.err' | |
17572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17573 | (eval $ac_try) 2>&5 | |
17574 | ac_status=$? | |
17575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17576 | (exit $ac_status); }; } && | |
17577 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17579 | (eval $ac_try) 2>&5 |
17580 | ac_status=$? | |
c0d27fcc | 17581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17582 | (exit $ac_status); }; }; then |
17583 | ac_cv_lib_des_des_cbc_encrypt=yes | |
17584 | else | |
17585 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17586 | sed 's/^/| /' conftest.$ac_ext >&5 |
17587 | ||
503d2be0 AS |
17588 | ac_cv_lib_des_des_cbc_encrypt=no |
17589 | fi | |
35996d22 AS |
17590 | rm -f conftest.err conftest.$ac_objext \ |
17591 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17592 | LIBS=$ac_check_lib_save_LIBS |
17593 | fi | |
c0d27fcc | 17594 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
503d2be0 AS |
17595 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
17596 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
c0d27fcc | 17597 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17598 | #define HAVE_LIBDES 1 |
c0d27fcc | 17599 | _ACEOF |
a21616bd KR |
17600 | |
17601 | LIBS="-ldes $LIBS" | |
17602 | ||
a21616bd KR |
17603 | fi |
17604 | ||
17605 | fi | |
17606 | ||
c0d27fcc MR |
17607 | |
17608 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | |
503d2be0 AS |
17609 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
17610 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
17611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17612 | else |
503d2be0 | 17613 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17614 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 17615 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17616 | /* confdefs.h. */ |
17617 | _ACEOF | |
17618 | cat confdefs.h >>conftest.$ac_ext | |
17619 | cat >>conftest.$ac_ext <<_ACEOF | |
17620 | /* end confdefs.h. */ | |
503d2be0 | 17621 | |
a21616bd | 17622 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17623 | #ifdef __cplusplus |
17624 | extern "C" | |
17625 | #endif | |
a21616bd | 17626 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17627 | builtin and then its argument prototype would still apply. */ |
17628 | char krb_get_cred (); | |
17629 | int | |
17630 | main () | |
17631 | { | |
17632 | krb_get_cred (); | |
17633 | ; | |
17634 | return 0; | |
17635 | } | |
17636 | _ACEOF | |
17637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17639 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17640 | ac_status=$? |
35996d22 AS |
17641 | grep -v '^ *+' conftest.er1 >conftest.err |
17642 | rm -f conftest.er1 | |
17643 | cat conftest.err >&5 | |
c0d27fcc | 17644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17645 | (exit $ac_status); } && |
35996d22 AS |
17646 | { ac_try='test -z "$ac_c_werror_flag" |
17647 | || test ! -s conftest.err' | |
17648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17649 | (eval $ac_try) 2>&5 | |
17650 | ac_status=$? | |
17651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17652 | (exit $ac_status); }; } && | |
17653 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17655 | (eval $ac_try) 2>&5 |
17656 | ac_status=$? | |
c0d27fcc | 17657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17658 | (exit $ac_status); }; }; then |
17659 | ac_cv_lib_krb4_krb_get_cred=yes | |
17660 | else | |
17661 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17662 | sed 's/^/| /' conftest.$ac_ext >&5 |
17663 | ||
503d2be0 AS |
17664 | ac_cv_lib_krb4_krb_get_cred=no |
17665 | fi | |
35996d22 AS |
17666 | rm -f conftest.err conftest.$ac_objext \ |
17667 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17668 | LIBS=$ac_check_lib_save_LIBS |
17669 | fi | |
c0d27fcc | 17670 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
503d2be0 AS |
17671 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
17672 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
c0d27fcc | 17673 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17674 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 17675 | _ACEOF |
a21616bd KR |
17676 | |
17677 | LIBS="-lkrb4 $LIBS" | |
17678 | ||
17679 | else | |
503d2be0 | 17680 | |
c0d27fcc | 17681 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
503d2be0 AS |
17682 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
17683 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
17684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17685 | else |
503d2be0 | 17686 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17687 | LIBS="-lkrb $LIBS" |
503d2be0 | 17688 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17689 | /* confdefs.h. */ |
17690 | _ACEOF | |
17691 | cat confdefs.h >>conftest.$ac_ext | |
17692 | cat >>conftest.$ac_ext <<_ACEOF | |
17693 | /* end confdefs.h. */ | |
503d2be0 | 17694 | |
a21616bd | 17695 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17696 | #ifdef __cplusplus |
17697 | extern "C" | |
17698 | #endif | |
a21616bd | 17699 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17700 | builtin and then its argument prototype would still apply. */ |
17701 | char krb_get_cred (); | |
17702 | int | |
17703 | main () | |
17704 | { | |
17705 | krb_get_cred (); | |
17706 | ; | |
17707 | return 0; | |
17708 | } | |
17709 | _ACEOF | |
17710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17712 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17713 | ac_status=$? |
35996d22 AS |
17714 | grep -v '^ *+' conftest.er1 >conftest.err |
17715 | rm -f conftest.er1 | |
17716 | cat conftest.err >&5 | |
c0d27fcc | 17717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17718 | (exit $ac_status); } && |
35996d22 AS |
17719 | { ac_try='test -z "$ac_c_werror_flag" |
17720 | || test ! -s conftest.err' | |
17721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17722 | (eval $ac_try) 2>&5 | |
17723 | ac_status=$? | |
17724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17725 | (exit $ac_status); }; } && | |
17726 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17728 | (eval $ac_try) 2>&5 |
17729 | ac_status=$? | |
c0d27fcc | 17730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17731 | (exit $ac_status); }; }; then |
17732 | ac_cv_lib_krb_krb_get_cred=yes | |
17733 | else | |
17734 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17735 | sed 's/^/| /' conftest.$ac_ext >&5 |
17736 | ||
503d2be0 AS |
17737 | ac_cv_lib_krb_krb_get_cred=no |
17738 | fi | |
35996d22 AS |
17739 | rm -f conftest.err conftest.$ac_objext \ |
17740 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17741 | LIBS=$ac_check_lib_save_LIBS |
17742 | fi | |
c0d27fcc | 17743 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
503d2be0 AS |
17744 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
17745 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
c0d27fcc | 17746 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17747 | #define HAVE_LIBKRB 1 |
c0d27fcc | 17748 | _ACEOF |
a21616bd KR |
17749 | |
17750 | LIBS="-lkrb $LIBS" | |
17751 | ||
a21616bd KR |
17752 | fi |
17753 | ||
17754 | fi | |
17755 | ||
17756 | fi | |
17757 | ||
17758 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
17759 | |
17760 | for ac_header in krb5.h | |
a21616bd | 17761 | do |
503d2be0 | 17762 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
17763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17764 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
17765 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17766 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17768 | fi |
17769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17770 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 17771 | else |
c0d27fcc MR |
17772 | # Is the header compilable? |
17773 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17774 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17775 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17776 | /* confdefs.h. */ |
17777 | _ACEOF | |
17778 | cat confdefs.h >>conftest.$ac_ext | |
17779 | cat >>conftest.$ac_ext <<_ACEOF | |
17780 | /* end confdefs.h. */ | |
c0d27fcc MR |
17781 | $ac_includes_default |
17782 | #include <$ac_header> | |
17783 | _ACEOF | |
17784 | rm -f conftest.$ac_objext | |
17785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 17786 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 17787 | ac_status=$? |
35996d22 AS |
17788 | grep -v '^ *+' conftest.er1 >conftest.err |
17789 | rm -f conftest.er1 | |
17790 | cat conftest.err >&5 | |
c0d27fcc MR |
17791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17792 | (exit $ac_status); } && | |
35996d22 AS |
17793 | { ac_try='test -z "$ac_c_werror_flag" |
17794 | || test ! -s conftest.err' | |
17795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17796 | (eval $ac_try) 2>&5 | |
17797 | ac_status=$? | |
17798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17799 | (exit $ac_status); }; } && | |
17800 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
17801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17802 | (eval $ac_try) 2>&5 | |
17803 | ac_status=$? | |
17804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17805 | (exit $ac_status); }; }; then | |
17806 | ac_header_compiler=yes | |
17807 | else | |
17808 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17809 | sed 's/^/| /' conftest.$ac_ext >&5 |
17810 | ||
c0d27fcc MR |
17811 | ac_header_compiler=no |
17812 | fi | |
35996d22 | 17813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
17814 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17815 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17816 | ||
17817 | # Is the header present? | |
17818 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17819 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17820 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17821 | /* confdefs.h. */ |
17822 | _ACEOF | |
17823 | cat confdefs.h >>conftest.$ac_ext | |
17824 | cat >>conftest.$ac_ext <<_ACEOF | |
17825 | /* end confdefs.h. */ | |
503d2be0 AS |
17826 | #include <$ac_header> |
17827 | _ACEOF | |
c0d27fcc | 17828 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
17829 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17830 | ac_status=$? | |
6bae0ccf | 17831 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17832 | rm -f conftest.er1 |
17833 | cat conftest.err >&5 | |
c0d27fcc | 17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17835 | (exit $ac_status); } >/dev/null; then |
17836 | if test -s conftest.err; then | |
17837 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 17838 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
17839 | else |
17840 | ac_cpp_err= | |
17841 | fi | |
17842 | else | |
17843 | ac_cpp_err=yes | |
17844 | fi | |
17845 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 17846 | ac_header_preproc=yes |
503d2be0 AS |
17847 | else |
17848 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17849 | sed 's/^/| /' conftest.$ac_ext >&5 |
17850 | ||
c0d27fcc | 17851 | ac_header_preproc=no |
a21616bd | 17852 | fi |
503d2be0 | 17853 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
17854 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17855 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17856 | ||
17857 | # So? What about this header? | |
35996d22 AS |
17858 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17859 | yes:no: ) | |
c0d27fcc MR |
17860 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17861 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
17862 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17863 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17864 | ac_header_preproc=yes | |
19650fd6 | 17865 | ;; |
35996d22 | 17866 | no:yes:* ) |
c0d27fcc MR |
17867 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17868 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
17869 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17870 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17871 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17872 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17873 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17874 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17875 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17876 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
17877 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17878 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
17879 | ( |
17880 | cat <<\_ASBOX | |
35996d22 AS |
17881 | ## ------------------------------------------ ## |
17882 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
17883 | ## ------------------------------------------ ## | |
19650fd6 AS |
17884 | _ASBOX |
17885 | ) | | |
17886 | sed "s/^/$as_me: WARNING: /" >&2 | |
17887 | ;; | |
c0d27fcc MR |
17888 | esac |
17889 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17890 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17893 | else | |
35996d22 | 17894 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 17895 | fi |
c0d27fcc | 17896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 17897 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
17898 | |
17899 | fi | |
503d2be0 | 17900 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 17901 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17902 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 17903 | _ACEOF |
503d2be0 | 17904 | |
a21616bd | 17905 | fi |
c0d27fcc | 17906 | |
a21616bd KR |
17907 | done |
17908 | ||
17909 | else | |
503d2be0 AS |
17910 | |
17911 | for ac_header in des.h | |
a21616bd | 17912 | do |
503d2be0 | 17913 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
17914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17915 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
17916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17919 | fi |
17920 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17921 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 17922 | else |
c0d27fcc MR |
17923 | # Is the header compilable? |
17924 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17925 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17926 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17927 | /* confdefs.h. */ |
17928 | _ACEOF | |
17929 | cat confdefs.h >>conftest.$ac_ext | |
17930 | cat >>conftest.$ac_ext <<_ACEOF | |
17931 | /* end confdefs.h. */ | |
c0d27fcc MR |
17932 | $ac_includes_default |
17933 | #include <$ac_header> | |
17934 | _ACEOF | |
17935 | rm -f conftest.$ac_objext | |
17936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 17937 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 17938 | ac_status=$? |
35996d22 AS |
17939 | grep -v '^ *+' conftest.er1 >conftest.err |
17940 | rm -f conftest.er1 | |
17941 | cat conftest.err >&5 | |
c0d27fcc MR |
17942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17943 | (exit $ac_status); } && | |
35996d22 AS |
17944 | { ac_try='test -z "$ac_c_werror_flag" |
17945 | || test ! -s conftest.err' | |
17946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17947 | (eval $ac_try) 2>&5 | |
17948 | ac_status=$? | |
17949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17950 | (exit $ac_status); }; } && | |
17951 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
17952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17953 | (eval $ac_try) 2>&5 | |
17954 | ac_status=$? | |
17955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17956 | (exit $ac_status); }; }; then | |
17957 | ac_header_compiler=yes | |
17958 | else | |
17959 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17960 | sed 's/^/| /' conftest.$ac_ext >&5 |
17961 | ||
c0d27fcc MR |
17962 | ac_header_compiler=no |
17963 | fi | |
35996d22 | 17964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
17965 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17966 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17967 | ||
17968 | # Is the header present? | |
17969 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17970 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17971 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17972 | /* confdefs.h. */ |
17973 | _ACEOF | |
17974 | cat confdefs.h >>conftest.$ac_ext | |
17975 | cat >>conftest.$ac_ext <<_ACEOF | |
17976 | /* end confdefs.h. */ | |
503d2be0 AS |
17977 | #include <$ac_header> |
17978 | _ACEOF | |
c0d27fcc | 17979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
17980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17981 | ac_status=$? | |
6bae0ccf | 17982 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17983 | rm -f conftest.er1 |
17984 | cat conftest.err >&5 | |
c0d27fcc | 17985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17986 | (exit $ac_status); } >/dev/null; then |
17987 | if test -s conftest.err; then | |
17988 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 17989 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
17990 | else |
17991 | ac_cpp_err= | |
17992 | fi | |
17993 | else | |
17994 | ac_cpp_err=yes | |
17995 | fi | |
17996 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 17997 | ac_header_preproc=yes |
503d2be0 AS |
17998 | else |
17999 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18000 | sed 's/^/| /' conftest.$ac_ext >&5 |
18001 | ||
c0d27fcc | 18002 | ac_header_preproc=no |
a21616bd | 18003 | fi |
503d2be0 | 18004 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18005 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18006 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18007 | ||
18008 | # So? What about this header? | |
35996d22 AS |
18009 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18010 | yes:no: ) | |
c0d27fcc MR |
18011 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18012 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18014 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18015 | ac_header_preproc=yes | |
19650fd6 | 18016 | ;; |
35996d22 | 18017 | no:yes:* ) |
c0d27fcc MR |
18018 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18019 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18020 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18021 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18022 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18023 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18024 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18025 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18026 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18027 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18028 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18029 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18030 | ( |
18031 | cat <<\_ASBOX | |
35996d22 AS |
18032 | ## ------------------------------------------ ## |
18033 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18034 | ## ------------------------------------------ ## | |
19650fd6 AS |
18035 | _ASBOX |
18036 | ) | | |
18037 | sed "s/^/$as_me: WARNING: /" >&2 | |
18038 | ;; | |
c0d27fcc MR |
18039 | esac |
18040 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18041 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18042 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18044 | else | |
35996d22 | 18045 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18046 | fi |
c0d27fcc | 18047 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18048 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18049 | |
18050 | fi | |
503d2be0 | 18051 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18052 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18053 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18054 | _ACEOF |
503d2be0 | 18055 | |
a21616bd | 18056 | else |
503d2be0 AS |
18057 | |
18058 | for ac_header in kerberosIV/des.h | |
a21616bd | 18059 | do |
503d2be0 | 18060 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18062 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18064 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18066 | fi |
18067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18068 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18069 | else |
c0d27fcc MR |
18070 | # Is the header compilable? |
18071 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18072 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18073 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18074 | /* confdefs.h. */ |
18075 | _ACEOF | |
18076 | cat confdefs.h >>conftest.$ac_ext | |
18077 | cat >>conftest.$ac_ext <<_ACEOF | |
18078 | /* end confdefs.h. */ | |
c0d27fcc MR |
18079 | $ac_includes_default |
18080 | #include <$ac_header> | |
18081 | _ACEOF | |
18082 | rm -f conftest.$ac_objext | |
18083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18084 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18085 | ac_status=$? |
35996d22 AS |
18086 | grep -v '^ *+' conftest.er1 >conftest.err |
18087 | rm -f conftest.er1 | |
18088 | cat conftest.err >&5 | |
c0d27fcc MR |
18089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18090 | (exit $ac_status); } && | |
35996d22 AS |
18091 | { ac_try='test -z "$ac_c_werror_flag" |
18092 | || test ! -s conftest.err' | |
18093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18094 | (eval $ac_try) 2>&5 | |
18095 | ac_status=$? | |
18096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18097 | (exit $ac_status); }; } && | |
18098 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18100 | (eval $ac_try) 2>&5 | |
18101 | ac_status=$? | |
18102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18103 | (exit $ac_status); }; }; then | |
18104 | ac_header_compiler=yes | |
18105 | else | |
18106 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18107 | sed 's/^/| /' conftest.$ac_ext >&5 |
18108 | ||
c0d27fcc MR |
18109 | ac_header_compiler=no |
18110 | fi | |
35996d22 | 18111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18112 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18113 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18114 | ||
18115 | # Is the header present? | |
18116 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18117 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18118 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18119 | /* confdefs.h. */ |
18120 | _ACEOF | |
18121 | cat confdefs.h >>conftest.$ac_ext | |
18122 | cat >>conftest.$ac_ext <<_ACEOF | |
18123 | /* end confdefs.h. */ | |
503d2be0 AS |
18124 | #include <$ac_header> |
18125 | _ACEOF | |
c0d27fcc | 18126 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18127 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18128 | ac_status=$? | |
6bae0ccf | 18129 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18130 | rm -f conftest.er1 |
18131 | cat conftest.err >&5 | |
c0d27fcc | 18132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18133 | (exit $ac_status); } >/dev/null; then |
18134 | if test -s conftest.err; then | |
18135 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18136 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18137 | else |
18138 | ac_cpp_err= | |
18139 | fi | |
18140 | else | |
18141 | ac_cpp_err=yes | |
18142 | fi | |
18143 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18144 | ac_header_preproc=yes |
503d2be0 AS |
18145 | else |
18146 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18147 | sed 's/^/| /' conftest.$ac_ext >&5 |
18148 | ||
c0d27fcc | 18149 | ac_header_preproc=no |
a21616bd | 18150 | fi |
503d2be0 | 18151 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18152 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18153 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18154 | ||
18155 | # So? What about this header? | |
35996d22 AS |
18156 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18157 | yes:no: ) | |
c0d27fcc MR |
18158 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18159 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18161 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18162 | ac_header_preproc=yes | |
19650fd6 | 18163 | ;; |
35996d22 | 18164 | no:yes:* ) |
c0d27fcc MR |
18165 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18166 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18167 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18168 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18169 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18170 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18171 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18172 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18174 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18175 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18176 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18177 | ( |
18178 | cat <<\_ASBOX | |
35996d22 AS |
18179 | ## ------------------------------------------ ## |
18180 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18181 | ## ------------------------------------------ ## | |
19650fd6 AS |
18182 | _ASBOX |
18183 | ) | | |
18184 | sed "s/^/$as_me: WARNING: /" >&2 | |
18185 | ;; | |
c0d27fcc MR |
18186 | esac |
18187 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18189 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18191 | else | |
35996d22 | 18192 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18193 | fi |
c0d27fcc | 18194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18195 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18196 | |
18197 | fi | |
503d2be0 | 18198 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18199 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18200 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18201 | _ACEOF |
503d2be0 | 18202 | |
a21616bd | 18203 | else |
503d2be0 AS |
18204 | |
18205 | for ac_header in kerberos/des.h | |
a21616bd | 18206 | do |
503d2be0 | 18207 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18213 | fi |
18214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18216 | else |
c0d27fcc MR |
18217 | # Is the header compilable? |
18218 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18219 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18220 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18221 | /* confdefs.h. */ |
18222 | _ACEOF | |
18223 | cat confdefs.h >>conftest.$ac_ext | |
18224 | cat >>conftest.$ac_ext <<_ACEOF | |
18225 | /* end confdefs.h. */ | |
c0d27fcc MR |
18226 | $ac_includes_default |
18227 | #include <$ac_header> | |
18228 | _ACEOF | |
18229 | rm -f conftest.$ac_objext | |
18230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18231 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18232 | ac_status=$? |
35996d22 AS |
18233 | grep -v '^ *+' conftest.er1 >conftest.err |
18234 | rm -f conftest.er1 | |
18235 | cat conftest.err >&5 | |
c0d27fcc MR |
18236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18237 | (exit $ac_status); } && | |
35996d22 AS |
18238 | { ac_try='test -z "$ac_c_werror_flag" |
18239 | || test ! -s conftest.err' | |
18240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18241 | (eval $ac_try) 2>&5 | |
18242 | ac_status=$? | |
18243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18244 | (exit $ac_status); }; } && | |
18245 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18247 | (eval $ac_try) 2>&5 | |
18248 | ac_status=$? | |
18249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18250 | (exit $ac_status); }; }; then | |
18251 | ac_header_compiler=yes | |
18252 | else | |
18253 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18254 | sed 's/^/| /' conftest.$ac_ext >&5 |
18255 | ||
c0d27fcc MR |
18256 | ac_header_compiler=no |
18257 | fi | |
35996d22 | 18258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18259 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18260 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18261 | ||
18262 | # Is the header present? | |
18263 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18264 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18265 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18266 | /* confdefs.h. */ |
18267 | _ACEOF | |
18268 | cat confdefs.h >>conftest.$ac_ext | |
18269 | cat >>conftest.$ac_ext <<_ACEOF | |
18270 | /* end confdefs.h. */ | |
503d2be0 AS |
18271 | #include <$ac_header> |
18272 | _ACEOF | |
c0d27fcc | 18273 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18274 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18275 | ac_status=$? | |
6bae0ccf | 18276 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18277 | rm -f conftest.er1 |
18278 | cat conftest.err >&5 | |
c0d27fcc | 18279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18280 | (exit $ac_status); } >/dev/null; then |
18281 | if test -s conftest.err; then | |
18282 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18284 | else |
18285 | ac_cpp_err= | |
18286 | fi | |
18287 | else | |
18288 | ac_cpp_err=yes | |
18289 | fi | |
18290 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18291 | ac_header_preproc=yes |
503d2be0 AS |
18292 | else |
18293 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18294 | sed 's/^/| /' conftest.$ac_ext >&5 |
18295 | ||
c0d27fcc | 18296 | ac_header_preproc=no |
a21616bd | 18297 | fi |
503d2be0 | 18298 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18299 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18300 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18301 | ||
18302 | # So? What about this header? | |
35996d22 AS |
18303 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18304 | yes:no: ) | |
c0d27fcc MR |
18305 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18306 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18307 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18308 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18309 | ac_header_preproc=yes | |
19650fd6 | 18310 | ;; |
35996d22 | 18311 | no:yes:* ) |
c0d27fcc MR |
18312 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18313 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18314 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18315 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18316 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18317 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18318 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18319 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18321 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18322 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18323 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18324 | ( |
18325 | cat <<\_ASBOX | |
35996d22 AS |
18326 | ## ------------------------------------------ ## |
18327 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18328 | ## ------------------------------------------ ## | |
19650fd6 AS |
18329 | _ASBOX |
18330 | ) | | |
18331 | sed "s/^/$as_me: WARNING: /" >&2 | |
18332 | ;; | |
c0d27fcc MR |
18333 | esac |
18334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18338 | else | |
35996d22 | 18339 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18340 | fi |
c0d27fcc | 18341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18342 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18343 | |
18344 | fi | |
503d2be0 | 18345 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18346 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18347 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18348 | _ACEOF |
a21616bd KR |
18349 | |
18350 | fi | |
c0d27fcc | 18351 | |
a21616bd KR |
18352 | done |
18353 | ||
98418dba | 18354 | fi |
c0d27fcc | 18355 | |
925c2f3f EZ |
18356 | done |
18357 | ||
98418dba | 18358 | fi |
c0d27fcc | 18359 | |
925c2f3f | 18360 | done |
98418dba | 18361 | |
c0d27fcc | 18362 | |
925c2f3f EZ |
18363 | for ac_header in krb.h |
18364 | do | |
18365 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
18366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18367 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
18368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18371 | fi |
18372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18373 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18374 | else | |
18375 | # Is the header compilable? | |
18376 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18377 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18378 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18379 | /* confdefs.h. */ |
18380 | _ACEOF | |
18381 | cat confdefs.h >>conftest.$ac_ext | |
18382 | cat >>conftest.$ac_ext <<_ACEOF | |
18383 | /* end confdefs.h. */ | |
c0d27fcc MR |
18384 | $ac_includes_default |
18385 | #include <$ac_header> | |
18386 | _ACEOF | |
18387 | rm -f conftest.$ac_objext | |
18388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18389 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18390 | ac_status=$? |
35996d22 AS |
18391 | grep -v '^ *+' conftest.er1 >conftest.err |
18392 | rm -f conftest.er1 | |
18393 | cat conftest.err >&5 | |
c0d27fcc MR |
18394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18395 | (exit $ac_status); } && | |
35996d22 AS |
18396 | { ac_try='test -z "$ac_c_werror_flag" |
18397 | || test ! -s conftest.err' | |
18398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18399 | (eval $ac_try) 2>&5 | |
18400 | ac_status=$? | |
18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18402 | (exit $ac_status); }; } && | |
18403 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18405 | (eval $ac_try) 2>&5 | |
18406 | ac_status=$? | |
18407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18408 | (exit $ac_status); }; }; then | |
18409 | ac_header_compiler=yes | |
925c2f3f | 18410 | else |
c0d27fcc | 18411 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
18412 | sed 's/^/| /' conftest.$ac_ext >&5 |
18413 | ||
c0d27fcc MR |
18414 | ac_header_compiler=no |
18415 | fi | |
35996d22 | 18416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18417 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18418 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18419 | ||
18420 | # Is the header present? | |
18421 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18422 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18423 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18424 | /* confdefs.h. */ |
18425 | _ACEOF | |
18426 | cat confdefs.h >>conftest.$ac_ext | |
18427 | cat >>conftest.$ac_ext <<_ACEOF | |
18428 | /* end confdefs.h. */ | |
503d2be0 AS |
18429 | #include <$ac_header> |
18430 | _ACEOF | |
c0d27fcc | 18431 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18432 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18433 | ac_status=$? | |
6bae0ccf | 18434 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18435 | rm -f conftest.er1 |
18436 | cat conftest.err >&5 | |
c0d27fcc | 18437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18438 | (exit $ac_status); } >/dev/null; then |
18439 | if test -s conftest.err; then | |
18440 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18442 | else |
18443 | ac_cpp_err= | |
18444 | fi | |
18445 | else | |
18446 | ac_cpp_err=yes | |
18447 | fi | |
18448 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18449 | ac_header_preproc=yes |
503d2be0 AS |
18450 | else |
18451 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18452 | sed 's/^/| /' conftest.$ac_ext >&5 |
18453 | ||
c0d27fcc | 18454 | ac_header_preproc=no |
a21616bd | 18455 | fi |
503d2be0 | 18456 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18457 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18458 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18459 | ||
18460 | # So? What about this header? | |
35996d22 AS |
18461 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18462 | yes:no: ) | |
c0d27fcc MR |
18463 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18464 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18465 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18466 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18467 | ac_header_preproc=yes | |
19650fd6 | 18468 | ;; |
35996d22 | 18469 | no:yes:* ) |
c0d27fcc MR |
18470 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18471 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18472 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18473 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18474 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18475 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18476 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18477 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18479 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18480 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18481 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18482 | ( |
18483 | cat <<\_ASBOX | |
35996d22 AS |
18484 | ## ------------------------------------------ ## |
18485 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18486 | ## ------------------------------------------ ## | |
19650fd6 AS |
18487 | _ASBOX |
18488 | ) | | |
18489 | sed "s/^/$as_me: WARNING: /" >&2 | |
18490 | ;; | |
c0d27fcc MR |
18491 | esac |
18492 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18496 | else | |
35996d22 | 18497 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18498 | fi |
c0d27fcc | 18499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18500 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18501 | |
18502 | fi | |
503d2be0 | 18503 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18504 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18505 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18506 | _ACEOF |
503d2be0 | 18507 | |
a21616bd | 18508 | else |
503d2be0 AS |
18509 | |
18510 | for ac_header in kerberosIV/krb.h | |
a21616bd | 18511 | do |
503d2be0 | 18512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18514 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18515 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18516 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18518 | fi |
18519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18520 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18521 | else |
c0d27fcc MR |
18522 | # Is the header compilable? |
18523 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18524 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18525 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18526 | /* confdefs.h. */ |
18527 | _ACEOF | |
18528 | cat confdefs.h >>conftest.$ac_ext | |
18529 | cat >>conftest.$ac_ext <<_ACEOF | |
18530 | /* end confdefs.h. */ | |
c0d27fcc MR |
18531 | $ac_includes_default |
18532 | #include <$ac_header> | |
18533 | _ACEOF | |
18534 | rm -f conftest.$ac_objext | |
18535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18536 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18537 | ac_status=$? |
35996d22 AS |
18538 | grep -v '^ *+' conftest.er1 >conftest.err |
18539 | rm -f conftest.er1 | |
18540 | cat conftest.err >&5 | |
c0d27fcc MR |
18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18542 | (exit $ac_status); } && | |
35996d22 AS |
18543 | { ac_try='test -z "$ac_c_werror_flag" |
18544 | || test ! -s conftest.err' | |
18545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18546 | (eval $ac_try) 2>&5 | |
18547 | ac_status=$? | |
18548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18549 | (exit $ac_status); }; } && | |
18550 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18552 | (eval $ac_try) 2>&5 | |
18553 | ac_status=$? | |
18554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18555 | (exit $ac_status); }; }; then | |
18556 | ac_header_compiler=yes | |
18557 | else | |
18558 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18559 | sed 's/^/| /' conftest.$ac_ext >&5 |
18560 | ||
c0d27fcc MR |
18561 | ac_header_compiler=no |
18562 | fi | |
35996d22 | 18563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18564 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18565 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18566 | ||
18567 | # Is the header present? | |
18568 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18569 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18570 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18571 | /* confdefs.h. */ |
18572 | _ACEOF | |
18573 | cat confdefs.h >>conftest.$ac_ext | |
18574 | cat >>conftest.$ac_ext <<_ACEOF | |
18575 | /* end confdefs.h. */ | |
503d2be0 AS |
18576 | #include <$ac_header> |
18577 | _ACEOF | |
c0d27fcc | 18578 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18579 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18580 | ac_status=$? | |
6bae0ccf | 18581 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18582 | rm -f conftest.er1 |
18583 | cat conftest.err >&5 | |
c0d27fcc | 18584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18585 | (exit $ac_status); } >/dev/null; then |
18586 | if test -s conftest.err; then | |
18587 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18588 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18589 | else |
18590 | ac_cpp_err= | |
18591 | fi | |
18592 | else | |
18593 | ac_cpp_err=yes | |
18594 | fi | |
18595 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18596 | ac_header_preproc=yes |
503d2be0 AS |
18597 | else |
18598 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18599 | sed 's/^/| /' conftest.$ac_ext >&5 |
18600 | ||
c0d27fcc | 18601 | ac_header_preproc=no |
a21616bd | 18602 | fi |
503d2be0 | 18603 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18604 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18605 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18606 | ||
18607 | # So? What about this header? | |
35996d22 AS |
18608 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18609 | yes:no: ) | |
c0d27fcc MR |
18610 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18611 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18612 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18613 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18614 | ac_header_preproc=yes | |
19650fd6 | 18615 | ;; |
35996d22 | 18616 | no:yes:* ) |
c0d27fcc MR |
18617 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18618 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18619 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18620 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18621 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18622 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18623 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18624 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18625 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18626 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18627 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18628 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18629 | ( |
18630 | cat <<\_ASBOX | |
35996d22 AS |
18631 | ## ------------------------------------------ ## |
18632 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18633 | ## ------------------------------------------ ## | |
19650fd6 AS |
18634 | _ASBOX |
18635 | ) | | |
18636 | sed "s/^/$as_me: WARNING: /" >&2 | |
18637 | ;; | |
c0d27fcc MR |
18638 | esac |
18639 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18643 | else | |
35996d22 | 18644 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18645 | fi |
c0d27fcc | 18646 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18647 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18648 | |
18649 | fi | |
503d2be0 | 18650 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18651 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18652 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18653 | _ACEOF |
503d2be0 | 18654 | |
a21616bd | 18655 | else |
503d2be0 AS |
18656 | |
18657 | for ac_header in kerberos/krb.h | |
a21616bd | 18658 | do |
503d2be0 | 18659 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18661 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18663 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18665 | fi |
18666 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18667 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18668 | else |
c0d27fcc MR |
18669 | # Is the header compilable? |
18670 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18671 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18672 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18673 | /* confdefs.h. */ |
18674 | _ACEOF | |
18675 | cat confdefs.h >>conftest.$ac_ext | |
18676 | cat >>conftest.$ac_ext <<_ACEOF | |
18677 | /* end confdefs.h. */ | |
c0d27fcc MR |
18678 | $ac_includes_default |
18679 | #include <$ac_header> | |
18680 | _ACEOF | |
18681 | rm -f conftest.$ac_objext | |
18682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18683 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18684 | ac_status=$? |
35996d22 AS |
18685 | grep -v '^ *+' conftest.er1 >conftest.err |
18686 | rm -f conftest.er1 | |
18687 | cat conftest.err >&5 | |
c0d27fcc MR |
18688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18689 | (exit $ac_status); } && | |
35996d22 AS |
18690 | { ac_try='test -z "$ac_c_werror_flag" |
18691 | || test ! -s conftest.err' | |
18692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18693 | (eval $ac_try) 2>&5 | |
18694 | ac_status=$? | |
18695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18696 | (exit $ac_status); }; } && | |
18697 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18699 | (eval $ac_try) 2>&5 | |
18700 | ac_status=$? | |
18701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18702 | (exit $ac_status); }; }; then | |
18703 | ac_header_compiler=yes | |
18704 | else | |
18705 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18706 | sed 's/^/| /' conftest.$ac_ext >&5 |
18707 | ||
c0d27fcc MR |
18708 | ac_header_compiler=no |
18709 | fi | |
35996d22 | 18710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18711 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18712 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18713 | ||
18714 | # Is the header present? | |
18715 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18717 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18718 | /* confdefs.h. */ |
18719 | _ACEOF | |
18720 | cat confdefs.h >>conftest.$ac_ext | |
18721 | cat >>conftest.$ac_ext <<_ACEOF | |
18722 | /* end confdefs.h. */ | |
503d2be0 AS |
18723 | #include <$ac_header> |
18724 | _ACEOF | |
c0d27fcc | 18725 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18726 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18727 | ac_status=$? | |
6bae0ccf | 18728 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18729 | rm -f conftest.er1 |
18730 | cat conftest.err >&5 | |
c0d27fcc | 18731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18732 | (exit $ac_status); } >/dev/null; then |
18733 | if test -s conftest.err; then | |
18734 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18735 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18736 | else |
18737 | ac_cpp_err= | |
18738 | fi | |
18739 | else | |
18740 | ac_cpp_err=yes | |
18741 | fi | |
18742 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18743 | ac_header_preproc=yes |
503d2be0 AS |
18744 | else |
18745 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18746 | sed 's/^/| /' conftest.$ac_ext >&5 |
18747 | ||
c0d27fcc | 18748 | ac_header_preproc=no |
a21616bd | 18749 | fi |
503d2be0 | 18750 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18751 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18752 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35996d22 AS |
18753 | |
18754 | # So? What about this header? | |
18755 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18756 | yes:no: ) | |
18757 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18758 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18760 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18761 | ac_header_preproc=yes | |
19650fd6 | 18762 | ;; |
35996d22 | 18763 | no:yes:* ) |
c0d27fcc MR |
18764 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18765 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18766 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18767 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18768 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18769 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18770 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18771 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18772 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18773 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18774 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18775 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18776 | ( |
18777 | cat <<\_ASBOX | |
35996d22 AS |
18778 | ## ------------------------------------------ ## |
18779 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18780 | ## ------------------------------------------ ## | |
19650fd6 AS |
18781 | _ASBOX |
18782 | ) | | |
18783 | sed "s/^/$as_me: WARNING: /" >&2 | |
18784 | ;; | |
c0d27fcc MR |
18785 | esac |
18786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18790 | else | |
35996d22 | 18791 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18792 | fi |
c0d27fcc | 18793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18795 | |
18796 | fi | |
503d2be0 | 18797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18798 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18800 | _ACEOF |
503d2be0 | 18801 | |
a21616bd | 18802 | fi |
c0d27fcc | 18803 | |
a21616bd KR |
18804 | done |
18805 | ||
18806 | fi | |
c0d27fcc | 18807 | |
a21616bd KR |
18808 | done |
18809 | ||
18810 | fi | |
c0d27fcc | 18811 | |
a21616bd KR |
18812 | done |
18813 | ||
18814 | fi | |
503d2be0 AS |
18815 | |
18816 | for ac_header in com_err.h | |
a21616bd | 18817 | do |
503d2be0 | 18818 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18819 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18820 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18824 | fi |
18825 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18826 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18827 | else |
c0d27fcc MR |
18828 | # Is the header compilable? |
18829 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18830 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18831 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18832 | /* confdefs.h. */ |
18833 | _ACEOF | |
18834 | cat confdefs.h >>conftest.$ac_ext | |
18835 | cat >>conftest.$ac_ext <<_ACEOF | |
18836 | /* end confdefs.h. */ | |
c0d27fcc MR |
18837 | $ac_includes_default |
18838 | #include <$ac_header> | |
18839 | _ACEOF | |
18840 | rm -f conftest.$ac_objext | |
18841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18842 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18843 | ac_status=$? |
35996d22 AS |
18844 | grep -v '^ *+' conftest.er1 >conftest.err |
18845 | rm -f conftest.er1 | |
18846 | cat conftest.err >&5 | |
c0d27fcc MR |
18847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18848 | (exit $ac_status); } && | |
35996d22 AS |
18849 | { ac_try='test -z "$ac_c_werror_flag" |
18850 | || test ! -s conftest.err' | |
18851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18852 | (eval $ac_try) 2>&5 | |
18853 | ac_status=$? | |
18854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18855 | (exit $ac_status); }; } && | |
18856 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18858 | (eval $ac_try) 2>&5 | |
18859 | ac_status=$? | |
18860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18861 | (exit $ac_status); }; }; then | |
18862 | ac_header_compiler=yes | |
18863 | else | |
18864 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18865 | sed 's/^/| /' conftest.$ac_ext >&5 |
18866 | ||
c0d27fcc MR |
18867 | ac_header_compiler=no |
18868 | fi | |
35996d22 | 18869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18870 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18871 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18872 | ||
18873 | # Is the header present? | |
18874 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18875 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18876 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18877 | /* confdefs.h. */ |
18878 | _ACEOF | |
18879 | cat confdefs.h >>conftest.$ac_ext | |
18880 | cat >>conftest.$ac_ext <<_ACEOF | |
18881 | /* end confdefs.h. */ | |
503d2be0 AS |
18882 | #include <$ac_header> |
18883 | _ACEOF | |
c0d27fcc | 18884 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18885 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18886 | ac_status=$? | |
6bae0ccf | 18887 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18888 | rm -f conftest.er1 |
18889 | cat conftest.err >&5 | |
c0d27fcc | 18890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18891 | (exit $ac_status); } >/dev/null; then |
18892 | if test -s conftest.err; then | |
18893 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18894 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18895 | else |
18896 | ac_cpp_err= | |
18897 | fi | |
18898 | else | |
18899 | ac_cpp_err=yes | |
18900 | fi | |
18901 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18902 | ac_header_preproc=yes |
503d2be0 AS |
18903 | else |
18904 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18905 | sed 's/^/| /' conftest.$ac_ext >&5 |
18906 | ||
c0d27fcc | 18907 | ac_header_preproc=no |
a21616bd | 18908 | fi |
503d2be0 | 18909 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18910 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18911 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18912 | ||
18913 | # So? What about this header? | |
35996d22 AS |
18914 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18915 | yes:no: ) | |
c0d27fcc MR |
18916 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18917 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18919 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18920 | ac_header_preproc=yes | |
19650fd6 | 18921 | ;; |
35996d22 | 18922 | no:yes:* ) |
c0d27fcc MR |
18923 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18924 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18925 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18926 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18927 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18928 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18929 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18930 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18932 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18933 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18934 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18935 | ( |
18936 | cat <<\_ASBOX | |
35996d22 AS |
18937 | ## ------------------------------------------ ## |
18938 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18939 | ## ------------------------------------------ ## | |
19650fd6 AS |
18940 | _ASBOX |
18941 | ) | | |
18942 | sed "s/^/$as_me: WARNING: /" >&2 | |
18943 | ;; | |
c0d27fcc MR |
18944 | esac |
18945 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18947 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18949 | else | |
35996d22 | 18950 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18951 | fi |
c0d27fcc | 18952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18954 | |
18955 | fi | |
503d2be0 | 18956 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18957 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18958 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18959 | _ACEOF |
503d2be0 | 18960 | |
a21616bd | 18961 | fi |
c0d27fcc | 18962 | |
a21616bd KR |
18963 | done |
18964 | ||
18965 | fi | |
18966 | ||
ba4481b5 DL |
18967 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
18968 | # to return localized messages. | |
503d2be0 | 18969 | |
c0d27fcc | 18970 | echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
503d2be0 AS |
18971 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
18972 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
18973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 18974 | else |
503d2be0 | 18975 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 18976 | LIBS="-lintl $LIBS" |
503d2be0 | 18977 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18978 | /* confdefs.h. */ |
18979 | _ACEOF | |
18980 | cat confdefs.h >>conftest.$ac_ext | |
18981 | cat >>conftest.$ac_ext <<_ACEOF | |
18982 | /* end confdefs.h. */ | |
503d2be0 | 18983 | |
ba4481b5 | 18984 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
18985 | #ifdef __cplusplus |
18986 | extern "C" | |
18987 | #endif | |
ba4481b5 | 18988 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
18989 | builtin and then its argument prototype would still apply. */ |
18990 | char dgettext (); | |
18991 | int | |
18992 | main () | |
18993 | { | |
18994 | dgettext (); | |
18995 | ; | |
18996 | return 0; | |
18997 | } | |
18998 | _ACEOF | |
18999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19001 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19002 | ac_status=$? |
35996d22 AS |
19003 | grep -v '^ *+' conftest.er1 >conftest.err |
19004 | rm -f conftest.er1 | |
19005 | cat conftest.err >&5 | |
c0d27fcc | 19006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19007 | (exit $ac_status); } && |
35996d22 AS |
19008 | { ac_try='test -z "$ac_c_werror_flag" |
19009 | || test ! -s conftest.err' | |
19010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19011 | (eval $ac_try) 2>&5 | |
19012 | ac_status=$? | |
19013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19014 | (exit $ac_status); }; } && | |
19015 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19017 | (eval $ac_try) 2>&5 |
19018 | ac_status=$? | |
c0d27fcc | 19019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19020 | (exit $ac_status); }; }; then |
19021 | ac_cv_lib_intl_dgettext=yes | |
19022 | else | |
19023 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19024 | sed 's/^/| /' conftest.$ac_ext >&5 |
19025 | ||
503d2be0 AS |
19026 | ac_cv_lib_intl_dgettext=no |
19027 | fi | |
35996d22 AS |
19028 | rm -f conftest.err conftest.$ac_objext \ |
19029 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
19030 | LIBS=$ac_check_lib_save_LIBS |
19031 | fi | |
c0d27fcc | 19032 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
503d2be0 AS |
19033 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
19034 | if test $ac_cv_lib_intl_dgettext = yes; then | |
c0d27fcc | 19035 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19036 | #define HAVE_LIBINTL 1 |
c0d27fcc | 19037 | _ACEOF |
ba4481b5 DL |
19038 | |
19039 | LIBS="-lintl $LIBS" | |
19040 | ||
ba4481b5 DL |
19041 | fi |
19042 | ||
c0d27fcc MR |
19043 | |
19044 | echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | |
503d2be0 AS |
19045 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
19046 | if test "${emacs_cv_localtime_cache+set}" = set; then | |
19047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
19048 | else |
19049 | if test x$ac_cv_func_tzset = xyes; then | |
19050 | if test "$cross_compiling" = yes; then | |
19051 | # If we have tzset, assume the worst when cross-compiling. | |
19052 | emacs_cv_localtime_cache=yes | |
19053 | else | |
503d2be0 | 19054 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19055 | /* confdefs.h. */ |
19056 | _ACEOF | |
19057 | cat confdefs.h >>conftest.$ac_ext | |
19058 | cat >>conftest.$ac_ext <<_ACEOF | |
19059 | /* end confdefs.h. */ | |
ba4481b5 | 19060 | #include <time.h> |
ba4481b5 DL |
19061 | extern char **environ; |
19062 | unset_TZ () | |
19063 | { | |
19064 | char **from, **to; | |
19065 | for (to = from = environ; (*to = *from); from++) | |
19066 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
19067 | to++; | |
19068 | } | |
19069 | char TZ_GMT0[] = "TZ=GMT0"; | |
19070 | char TZ_PST8[] = "TZ=PST8"; | |
19071 | main() | |
19072 | { | |
19073 | time_t now = time ((time_t *) 0); | |
19074 | int hour_GMT0, hour_unset; | |
19075 | if (putenv (TZ_GMT0) != 0) | |
19076 | exit (1); | |
19077 | hour_GMT0 = localtime (&now)->tm_hour; | |
19078 | unset_TZ (); | |
19079 | hour_unset = localtime (&now)->tm_hour; | |
19080 | if (putenv (TZ_PST8) != 0) | |
19081 | exit (1); | |
19082 | if (localtime (&now)->tm_hour == hour_GMT0) | |
19083 | exit (1); | |
19084 | unset_TZ (); | |
19085 | if (localtime (&now)->tm_hour != hour_unset) | |
19086 | exit (1); | |
19087 | exit (0); | |
19088 | } | |
503d2be0 AS |
19089 | _ACEOF |
19090 | rm -f conftest$ac_exeext | |
c0d27fcc | 19091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
19092 | (eval $ac_link) 2>&5 |
19093 | ac_status=$? | |
c0d27fcc | 19094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19095 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 19096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19097 | (eval $ac_try) 2>&5 |
19098 | ac_status=$? | |
c0d27fcc | 19099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19100 | (exit $ac_status); }; }; then |
ba4481b5 DL |
19101 | emacs_cv_localtime_cache=no |
19102 | else | |
503d2be0 AS |
19103 | echo "$as_me: program exited with status $ac_status" >&5 |
19104 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19105 | sed 's/^/| /' conftest.$ac_ext >&5 |
19106 | ||
c0d27fcc | 19107 | ( exit $ac_status ) |
503d2be0 | 19108 | emacs_cv_localtime_cache=yes |
ba4481b5 | 19109 | fi |
35996d22 | 19110 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 19111 | fi |
ba4481b5 DL |
19112 | else |
19113 | # If we lack tzset, report that localtime does not cache TZ, | |
19114 | # since we can't invalidate the cache if we don't have tzset. | |
19115 | emacs_cv_localtime_cache=no | |
19116 | fi | |
19117 | fi | |
c0d27fcc | 19118 | echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
503d2be0 | 19119 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
ba4481b5 | 19120 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 19121 | |
c0d27fcc | 19122 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 19123 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 19124 | _ACEOF |
ba4481b5 DL |
19125 | |
19126 | fi | |
19127 | ||
19128 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
19129 | |
19130 | for ac_func in gettimeofday | |
48d4b120 | 19131 | do |
503d2be0 | 19132 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 19133 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
19134 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
19135 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 19137 | else |
503d2be0 | 19138 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19139 | /* confdefs.h. */ |
19140 | _ACEOF | |
19141 | cat confdefs.h >>conftest.$ac_ext | |
19142 | cat >>conftest.$ac_ext <<_ACEOF | |
19143 | /* end confdefs.h. */ | |
35996d22 AS |
19144 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19145 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19146 | #define $ac_func innocuous_$ac_func | |
19147 | ||
48d4b120 | 19148 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19149 | which can conflict with char $ac_func (); below. |
19150 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19151 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 19152 | |
19650fd6 AS |
19153 | #ifdef __STDC__ |
19154 | # include <limits.h> | |
19155 | #else | |
19156 | # include <assert.h> | |
19157 | #endif | |
35996d22 AS |
19158 | |
19159 | #undef $ac_func | |
19160 | ||
48d4b120 | 19161 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19162 | #ifdef __cplusplus |
19163 | extern "C" | |
19650fd6 | 19164 | { |
503d2be0 | 19165 | #endif |
48d4b120 | 19166 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19167 | builtin and then its argument prototype would still apply. */ |
19168 | char $ac_func (); | |
48d4b120 DL |
19169 | /* The GNU C library defines this for functions which it implements |
19170 | to always fail with ENOSYS. Some functions are actually named | |
19171 | something starting with __ and the normal name is an alias. */ | |
19172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19173 | choke me | |
19174 | #else | |
19650fd6 AS |
19175 | char (*f) () = $ac_func; |
19176 | #endif | |
19177 | #ifdef __cplusplus | |
19178 | } | |
cd958eb3 MB |
19179 | #endif |
19180 | ||
19650fd6 AS |
19181 | int |
19182 | main () | |
19183 | { | |
19184 | return f != $ac_func; | |
503d2be0 AS |
19185 | ; |
19186 | return 0; | |
19187 | } | |
19188 | _ACEOF | |
19189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19191 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19192 | ac_status=$? |
35996d22 AS |
19193 | grep -v '^ *+' conftest.er1 >conftest.err |
19194 | rm -f conftest.er1 | |
19195 | cat conftest.err >&5 | |
c0d27fcc | 19196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19197 | (exit $ac_status); } && |
35996d22 AS |
19198 | { ac_try='test -z "$ac_c_werror_flag" |
19199 | || test ! -s conftest.err' | |
19200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19201 | (eval $ac_try) 2>&5 | |
19202 | ac_status=$? | |
19203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19204 | (exit $ac_status); }; } && | |
19205 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19207 | (eval $ac_try) 2>&5 |
19208 | ac_status=$? | |
c0d27fcc | 19209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19210 | (exit $ac_status); }; }; then |
19211 | eval "$as_ac_var=yes" | |
19212 | else | |
19213 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19214 | sed 's/^/| /' conftest.$ac_ext >&5 |
19215 | ||
503d2be0 AS |
19216 | eval "$as_ac_var=no" |
19217 | fi | |
35996d22 AS |
19218 | rm -f conftest.err conftest.$ac_objext \ |
19219 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 19220 | fi |
c0d27fcc | 19221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
19222 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
19223 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 19224 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19225 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19226 | _ACEOF |
48d4b120 | 19227 | |
48d4b120 DL |
19228 | fi |
19229 | done | |
19230 | ||
b936fae4 | 19231 | if test $ac_cv_func_gettimeofday = yes; then |
c0d27fcc | 19232 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
503d2be0 AS |
19233 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
19234 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
19235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19236 | else |
503d2be0 | 19237 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19238 | /* confdefs.h. */ |
19239 | _ACEOF | |
19240 | cat confdefs.h >>conftest.$ac_ext | |
19241 | cat >>conftest.$ac_ext <<_ACEOF | |
19242 | /* end confdefs.h. */ | |
ba4481b5 | 19243 | |
a3f08d9e DL |
19244 | #ifdef TIME_WITH_SYS_TIME |
19245 | #include <sys/time.h> | |
19246 | #include <time.h> | |
19247 | #else | |
19248 | #ifdef HAVE_SYS_TIME_H | |
19249 | #include <sys/time.h> | |
19250 | #else | |
19251 | #include <time.h> | |
19252 | #endif | |
19253 | #endif | |
503d2be0 AS |
19254 | int |
19255 | main () | |
19256 | { | |
a3f08d9e | 19257 | struct timeval time; |
b936fae4 | 19258 | gettimeofday (&time, 0); |
503d2be0 AS |
19259 | ; |
19260 | return 0; | |
19261 | } | |
19262 | _ACEOF | |
19263 | rm -f conftest.$ac_objext | |
c0d27fcc | 19264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 19265 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 19266 | ac_status=$? |
35996d22 AS |
19267 | grep -v '^ *+' conftest.er1 >conftest.err |
19268 | rm -f conftest.er1 | |
19269 | cat conftest.err >&5 | |
c0d27fcc | 19270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19271 | (exit $ac_status); } && |
35996d22 AS |
19272 | { ac_try='test -z "$ac_c_werror_flag" |
19273 | || test ! -s conftest.err' | |
19274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19275 | (eval $ac_try) 2>&5 | |
19276 | ac_status=$? | |
19277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19278 | (exit $ac_status); }; } && | |
19279 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 19280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19281 | (eval $ac_try) 2>&5 |
19282 | ac_status=$? | |
c0d27fcc | 19283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19284 | (exit $ac_status); }; }; then |
ba4481b5 DL |
19285 | emacs_cv_gettimeofday_two_arguments=yes |
19286 | else | |
503d2be0 | 19287 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19288 | sed 's/^/| /' conftest.$ac_ext >&5 |
19289 | ||
503d2be0 | 19290 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 19291 | fi |
35996d22 | 19292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 19293 | fi |
c0d27fcc | 19294 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
503d2be0 | 19295 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
b936fae4 AS |
19296 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
19297 | ||
c0d27fcc | 19298 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 19299 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 19300 | _ACEOF |
ba4481b5 | 19301 | |
b936fae4 | 19302 | fi |
ba4481b5 DL |
19303 | fi |
19304 | fi | |
19305 | ||
973a76b1 DL |
19306 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. |
19307 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 | |
19308 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 | |
19309 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
19310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19311 | else | |
19312 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19313 | /* confdefs.h. */ |
19314 | _ACEOF | |
19315 | cat confdefs.h >>conftest.$ac_ext | |
19316 | cat >>conftest.$ac_ext <<_ACEOF | |
19317 | /* end confdefs.h. */ | |
973a76b1 DL |
19318 | #include <sys/types.h> |
19319 | #include <$ac_cv_struct_tm> | |
19320 | ||
19321 | ||
19322 | int | |
19323 | main () | |
19324 | { | |
19325 | static struct tm ac_aggr; | |
19326 | if (ac_aggr.tm_zone) | |
19327 | return 0; | |
19328 | ; | |
19329 | return 0; | |
19330 | } | |
19331 | _ACEOF | |
19332 | rm -f conftest.$ac_objext | |
19333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19334 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 19335 | ac_status=$? |
35996d22 AS |
19336 | grep -v '^ *+' conftest.er1 >conftest.err |
19337 | rm -f conftest.er1 | |
19338 | cat conftest.err >&5 | |
973a76b1 DL |
19339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19340 | (exit $ac_status); } && | |
35996d22 AS |
19341 | { ac_try='test -z "$ac_c_werror_flag" |
19342 | || test ! -s conftest.err' | |
19343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19344 | (eval $ac_try) 2>&5 | |
19345 | ac_status=$? | |
19346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19347 | (exit $ac_status); }; } && | |
19348 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
19349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19350 | (eval $ac_try) 2>&5 | |
19351 | ac_status=$? | |
19352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19353 | (exit $ac_status); }; }; then | |
19354 | ac_cv_member_struct_tm_tm_zone=yes | |
19355 | else | |
19356 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19357 | sed 's/^/| /' conftest.$ac_ext >&5 |
19358 | ||
973a76b1 | 19359 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19360 | /* confdefs.h. */ |
19361 | _ACEOF | |
19362 | cat confdefs.h >>conftest.$ac_ext | |
19363 | cat >>conftest.$ac_ext <<_ACEOF | |
19364 | /* end confdefs.h. */ | |
973a76b1 DL |
19365 | #include <sys/types.h> |
19366 | #include <$ac_cv_struct_tm> | |
19367 | ||
19368 | ||
19369 | int | |
19370 | main () | |
19371 | { | |
19372 | static struct tm ac_aggr; | |
19373 | if (sizeof ac_aggr.tm_zone) | |
19374 | return 0; | |
19375 | ; | |
19376 | return 0; | |
19377 | } | |
19378 | _ACEOF | |
19379 | rm -f conftest.$ac_objext | |
19380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19381 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 19382 | ac_status=$? |
35996d22 AS |
19383 | grep -v '^ *+' conftest.er1 >conftest.err |
19384 | rm -f conftest.er1 | |
19385 | cat conftest.err >&5 | |
973a76b1 DL |
19386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19387 | (exit $ac_status); } && | |
35996d22 AS |
19388 | { ac_try='test -z "$ac_c_werror_flag" |
19389 | || test ! -s conftest.err' | |
19390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19391 | (eval $ac_try) 2>&5 | |
19392 | ac_status=$? | |
19393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19394 | (exit $ac_status); }; } && | |
19395 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
19396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19397 | (eval $ac_try) 2>&5 | |
19398 | ac_status=$? | |
19399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19400 | (exit $ac_status); }; }; then | |
19401 | ac_cv_member_struct_tm_tm_zone=yes | |
19402 | else | |
19403 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19404 | sed 's/^/| /' conftest.$ac_ext >&5 |
19405 | ||
973a76b1 DL |
19406 | ac_cv_member_struct_tm_tm_zone=no |
19407 | fi | |
35996d22 | 19408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 | 19409 | fi |
35996d22 | 19410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 DL |
19411 | fi |
19412 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
19413 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 | |
19414 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
19415 | ||
19416 | cat >>confdefs.h <<_ACEOF | |
19417 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
19418 | _ACEOF | |
19419 | ||
19420 | ||
19421 | fi | |
19422 | ||
19423 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
19424 | ||
19425 | cat >>confdefs.h <<\_ACEOF | |
19426 | #define HAVE_TM_ZONE 1 | |
19427 | _ACEOF | |
19428 | ||
19429 | else | |
19430 | echo "$as_me:$LINENO: checking for tzname" >&5 | |
19431 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
19432 | if test "${ac_cv_var_tzname+set}" = set; then | |
19433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19434 | else | |
19435 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19436 | /* confdefs.h. */ |
19437 | _ACEOF | |
19438 | cat confdefs.h >>conftest.$ac_ext | |
19439 | cat >>conftest.$ac_ext <<_ACEOF | |
19440 | /* end confdefs.h. */ | |
973a76b1 DL |
19441 | #include <time.h> |
19442 | #ifndef tzname /* For SGI. */ | |
19443 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
19444 | #endif | |
19445 | ||
19446 | int | |
19447 | main () | |
19448 | { | |
19449 | atoi(*tzname); | |
19450 | ; | |
19451 | return 0; | |
19452 | } | |
19453 | _ACEOF | |
19454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 19456 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 19457 | ac_status=$? |
35996d22 AS |
19458 | grep -v '^ *+' conftest.er1 >conftest.err |
19459 | rm -f conftest.er1 | |
19460 | cat conftest.err >&5 | |
973a76b1 DL |
19461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19462 | (exit $ac_status); } && | |
35996d22 AS |
19463 | { ac_try='test -z "$ac_c_werror_flag" |
19464 | || test ! -s conftest.err' | |
19465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19466 | (eval $ac_try) 2>&5 | |
19467 | ac_status=$? | |
19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19469 | (exit $ac_status); }; } && | |
19470 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
19471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19472 | (eval $ac_try) 2>&5 | |
19473 | ac_status=$? | |
19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19475 | (exit $ac_status); }; }; then | |
19476 | ac_cv_var_tzname=yes | |
19477 | else | |
19478 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19479 | sed 's/^/| /' conftest.$ac_ext >&5 |
19480 | ||
973a76b1 DL |
19481 | ac_cv_var_tzname=no |
19482 | fi | |
35996d22 AS |
19483 | rm -f conftest.err conftest.$ac_objext \ |
19484 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
19485 | fi |
19486 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
19487 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
19488 | if test $ac_cv_var_tzname = yes; then | |
19489 | ||
19490 | cat >>confdefs.h <<\_ACEOF | |
19491 | #define HAVE_TZNAME 1 | |
19492 | _ACEOF | |
19493 | ||
19494 | fi | |
19495 | fi | |
19496 | ||
19497 | ||
48d4b120 | 19498 | if test "$ac_cv_func_gettimeofday" = yes; then |
c0d27fcc | 19499 | echo "$as_me:$LINENO: checking for struct timezone" >&5 |
503d2be0 AS |
19500 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
19501 | if test "${emacs_cv_struct_timezone+set}" = set; then | |
19502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 19503 | else |
503d2be0 | 19504 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19505 | /* confdefs.h. */ |
19506 | _ACEOF | |
19507 | cat confdefs.h >>conftest.$ac_ext | |
19508 | cat >>conftest.$ac_ext <<_ACEOF | |
19509 | /* end confdefs.h. */ | |
48d4b120 | 19510 | #include <sys/time.h> |
503d2be0 AS |
19511 | int |
19512 | main () | |
19513 | { | |
48d4b120 | 19514 | struct timezone tz; |
503d2be0 AS |
19515 | ; |
19516 | return 0; | |
19517 | } | |
19518 | _ACEOF | |
19519 | rm -f conftest.$ac_objext | |
c0d27fcc | 19520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 19521 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 19522 | ac_status=$? |
35996d22 AS |
19523 | grep -v '^ *+' conftest.er1 >conftest.err |
19524 | rm -f conftest.er1 | |
19525 | cat conftest.err >&5 | |
c0d27fcc | 19526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19527 | (exit $ac_status); } && |
35996d22 AS |
19528 | { ac_try='test -z "$ac_c_werror_flag" |
19529 | || test ! -s conftest.err' | |
19530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19531 | (eval $ac_try) 2>&5 | |
19532 | ac_status=$? | |
19533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19534 | (exit $ac_status); }; } && | |
19535 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 19536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19537 | (eval $ac_try) 2>&5 |
19538 | ac_status=$? | |
c0d27fcc | 19539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19540 | (exit $ac_status); }; }; then |
48d4b120 DL |
19541 | if test "$cross_compiling" = yes; then |
19542 | emacs_cv_struct_timezone=yes | |
19543 | else | |
503d2be0 | 19544 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19545 | /* confdefs.h. */ |
19546 | _ACEOF | |
19547 | cat confdefs.h >>conftest.$ac_ext | |
19548 | cat >>conftest.$ac_ext <<_ACEOF | |
19549 | /* end confdefs.h. */ | |
48d4b120 DL |
19550 | |
19551 | #ifdef TIME_WITH_SYS_TIME | |
19552 | #include <sys/time.h> | |
19553 | #include <time.h> | |
19554 | #else | |
19555 | #ifdef HAVE_SYS_TIME_H | |
19556 | #include <sys/time.h> | |
19557 | #else | |
19558 | #include <time.h> | |
19559 | #endif | |
19560 | #endif | |
19561 | main () { | |
19562 | struct timeval time; | |
19563 | struct timezone dummy; | |
19564 | exit (gettimeofday (&time, &dummy)); | |
19565 | } | |
503d2be0 AS |
19566 | _ACEOF |
19567 | rm -f conftest$ac_exeext | |
c0d27fcc | 19568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
19569 | (eval $ac_link) 2>&5 |
19570 | ac_status=$? | |
c0d27fcc | 19571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19572 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 19573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19574 | (eval $ac_try) 2>&5 |
19575 | ac_status=$? | |
c0d27fcc | 19576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19577 | (exit $ac_status); }; }; then |
48d4b120 DL |
19578 | emacs_cv_struct_timezone=yes |
19579 | else | |
503d2be0 AS |
19580 | echo "$as_me: program exited with status $ac_status" >&5 |
19581 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19582 | sed 's/^/| /' conftest.$ac_ext >&5 |
19583 | ||
c0d27fcc | 19584 | ( exit $ac_status ) |
503d2be0 | 19585 | emacs_cv_struct_timezone=no |
48d4b120 | 19586 | fi |
35996d22 | 19587 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 19588 | fi |
48d4b120 | 19589 | else |
503d2be0 | 19590 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19591 | sed 's/^/| /' conftest.$ac_ext >&5 |
19592 | ||
503d2be0 | 19593 | emacs_cv_struct_timezone=no |
48d4b120 | 19594 | fi |
35996d22 | 19595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 19596 | fi |
c0d27fcc | 19597 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 |
503d2be0 | 19598 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
48d4b120 DL |
19599 | fi |
19600 | ||
ba4481b5 | 19601 | ok_so_far=yes |
c0d27fcc | 19602 | echo "$as_me:$LINENO: checking for socket" >&5 |
503d2be0 AS |
19603 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
19604 | if test "${ac_cv_func_socket+set}" = set; then | |
19605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19606 | else |
503d2be0 | 19607 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19608 | /* confdefs.h. */ |
19609 | _ACEOF | |
19610 | cat confdefs.h >>conftest.$ac_ext | |
19611 | cat >>conftest.$ac_ext <<_ACEOF | |
19612 | /* end confdefs.h. */ | |
35996d22 AS |
19613 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
19614 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19615 | #define socket innocuous_socket | |
19616 | ||
ba4481b5 | 19617 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19618 | which can conflict with char socket (); below. |
19619 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19620 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 19621 | |
19650fd6 AS |
19622 | #ifdef __STDC__ |
19623 | # include <limits.h> | |
19624 | #else | |
19625 | # include <assert.h> | |
19626 | #endif | |
35996d22 AS |
19627 | |
19628 | #undef socket | |
19629 | ||
ba4481b5 | 19630 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19631 | #ifdef __cplusplus |
19632 | extern "C" | |
19650fd6 | 19633 | { |
503d2be0 | 19634 | #endif |
ba4481b5 | 19635 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19636 | builtin and then its argument prototype would still apply. */ |
19637 | char socket (); | |
ba4481b5 DL |
19638 | /* The GNU C library defines this for functions which it implements |
19639 | to always fail with ENOSYS. Some functions are actually named | |
19640 | something starting with __ and the normal name is an alias. */ | |
19641 | #if defined (__stub_socket) || defined (__stub___socket) | |
19642 | choke me | |
19643 | #else | |
19650fd6 AS |
19644 | char (*f) () = socket; |
19645 | #endif | |
19646 | #ifdef __cplusplus | |
19647 | } | |
cd958eb3 MB |
19648 | #endif |
19649 | ||
19650fd6 AS |
19650 | int |
19651 | main () | |
19652 | { | |
19653 | return f != socket; | |
503d2be0 AS |
19654 | ; |
19655 | return 0; | |
19656 | } | |
19657 | _ACEOF | |
19658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19660 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19661 | ac_status=$? |
35996d22 AS |
19662 | grep -v '^ *+' conftest.er1 >conftest.err |
19663 | rm -f conftest.er1 | |
19664 | cat conftest.err >&5 | |
c0d27fcc | 19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19666 | (exit $ac_status); } && |
35996d22 AS |
19667 | { ac_try='test -z "$ac_c_werror_flag" |
19668 | || test ! -s conftest.err' | |
19669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19670 | (eval $ac_try) 2>&5 | |
19671 | ac_status=$? | |
19672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19673 | (exit $ac_status); }; } && | |
19674 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19676 | (eval $ac_try) 2>&5 |
19677 | ac_status=$? | |
c0d27fcc | 19678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19679 | (exit $ac_status); }; }; then |
19680 | ac_cv_func_socket=yes | |
19681 | else | |
19682 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19683 | sed 's/^/| /' conftest.$ac_ext >&5 |
19684 | ||
503d2be0 AS |
19685 | ac_cv_func_socket=no |
19686 | fi | |
35996d22 AS |
19687 | rm -f conftest.err conftest.$ac_objext \ |
19688 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 19689 | fi |
c0d27fcc | 19690 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
503d2be0 AS |
19691 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
19692 | if test $ac_cv_func_socket = yes; then | |
ba4481b5 DL |
19693 | : |
19694 | else | |
503d2be0 | 19695 | ok_so_far=no |
ba4481b5 DL |
19696 | fi |
19697 | ||
19698 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
19699 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
19700 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
503d2be0 AS |
19701 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
19702 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
19703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
19704 | fi |
19705 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
19706 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 | |
98418dba | 19707 | else |
c0d27fcc MR |
19708 | # Is the header compilable? |
19709 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
19710 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 | |
19711 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19712 | /* confdefs.h. */ |
19713 | _ACEOF | |
19714 | cat confdefs.h >>conftest.$ac_ext | |
19715 | cat >>conftest.$ac_ext <<_ACEOF | |
19716 | /* end confdefs.h. */ | |
c0d27fcc MR |
19717 | $ac_includes_default |
19718 | #include <netinet/in.h> | |
19719 | _ACEOF | |
19720 | rm -f conftest.$ac_objext | |
19721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19722 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 19723 | ac_status=$? |
35996d22 AS |
19724 | grep -v '^ *+' conftest.er1 >conftest.err |
19725 | rm -f conftest.er1 | |
19726 | cat conftest.err >&5 | |
c0d27fcc MR |
19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19728 | (exit $ac_status); } && | |
35996d22 AS |
19729 | { ac_try='test -z "$ac_c_werror_flag" |
19730 | || test ! -s conftest.err' | |
19731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19732 | (eval $ac_try) 2>&5 | |
19733 | ac_status=$? | |
19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19735 | (exit $ac_status); }; } && | |
19736 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
19737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19738 | (eval $ac_try) 2>&5 | |
19739 | ac_status=$? | |
19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19741 | (exit $ac_status); }; }; then | |
19742 | ac_header_compiler=yes | |
19743 | else | |
19744 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19745 | sed 's/^/| /' conftest.$ac_ext >&5 |
19746 | ||
c0d27fcc MR |
19747 | ac_header_compiler=no |
19748 | fi | |
35996d22 | 19749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
19750 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19751 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19752 | ||
19753 | # Is the header present? | |
19754 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
19755 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 | |
19756 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19757 | /* confdefs.h. */ |
19758 | _ACEOF | |
19759 | cat confdefs.h >>conftest.$ac_ext | |
19760 | cat >>conftest.$ac_ext <<_ACEOF | |
19761 | /* end confdefs.h. */ | |
ba4481b5 | 19762 | #include <netinet/in.h> |
503d2be0 | 19763 | _ACEOF |
c0d27fcc | 19764 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
19765 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19766 | ac_status=$? | |
6bae0ccf | 19767 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
19768 | rm -f conftest.er1 |
19769 | cat conftest.err >&5 | |
c0d27fcc | 19770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19771 | (exit $ac_status); } >/dev/null; then |
19772 | if test -s conftest.err; then | |
19773 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 19774 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
19775 | else |
19776 | ac_cpp_err= | |
19777 | fi | |
19778 | else | |
19779 | ac_cpp_err=yes | |
19780 | fi | |
19781 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 19782 | ac_header_preproc=yes |
ba4481b5 | 19783 | else |
503d2be0 | 19784 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19785 | sed 's/^/| /' conftest.$ac_ext >&5 |
19786 | ||
c0d27fcc | 19787 | ac_header_preproc=no |
ba4481b5 | 19788 | fi |
503d2be0 | 19789 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
19790 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19791 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19792 | ||
19793 | # So? What about this header? | |
35996d22 AS |
19794 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19795 | yes:no: ) | |
c0d27fcc MR |
19796 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19797 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
19798 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
19799 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
19800 | ac_header_preproc=yes | |
19650fd6 | 19801 | ;; |
35996d22 | 19802 | no:yes:* ) |
c0d27fcc MR |
19803 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
19804 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
19805 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
19806 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
19807 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
19808 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
19809 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19810 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 19811 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 19812 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
19813 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
19814 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
19815 | ( |
19816 | cat <<\_ASBOX | |
35996d22 AS |
19817 | ## ------------------------------------------ ## |
19818 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
19819 | ## ------------------------------------------ ## | |
19650fd6 AS |
19820 | _ASBOX |
19821 | ) | | |
19822 | sed "s/^/$as_me: WARNING: /" >&2 | |
19823 | ;; | |
c0d27fcc MR |
19824 | esac |
19825 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
19826 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 | |
19827 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
19828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19829 | else | |
19830 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 19831 | fi |
c0d27fcc | 19832 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
503d2be0 | 19833 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
c0d27fcc MR |
19834 | |
19835 | fi | |
503d2be0 | 19836 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
19837 | : |
19838 | else | |
503d2be0 | 19839 | ok_so_far=no |
ba4481b5 DL |
19840 | fi |
19841 | ||
c0d27fcc | 19842 | |
ba4481b5 DL |
19843 | fi |
19844 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
19845 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
19846 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
503d2be0 AS |
19847 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
19848 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
19849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
19850 | fi |
19851 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
19852 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 | |
98418dba | 19853 | else |
c0d27fcc MR |
19854 | # Is the header compilable? |
19855 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
19856 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 | |
19857 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19858 | /* confdefs.h. */ |
19859 | _ACEOF | |
19860 | cat confdefs.h >>conftest.$ac_ext | |
19861 | cat >>conftest.$ac_ext <<_ACEOF | |
19862 | /* end confdefs.h. */ | |
c0d27fcc MR |
19863 | $ac_includes_default |
19864 | #include <arpa/inet.h> | |
19865 | _ACEOF | |
19866 | rm -f conftest.$ac_objext | |
19867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19868 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 19869 | ac_status=$? |
35996d22 AS |
19870 | grep -v '^ *+' conftest.er1 >conftest.err |
19871 | rm -f conftest.er1 | |
19872 | cat conftest.err >&5 | |
c0d27fcc MR |
19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19874 | (exit $ac_status); } && | |
35996d22 AS |
19875 | { ac_try='test -z "$ac_c_werror_flag" |
19876 | || test ! -s conftest.err' | |
19877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19878 | (eval $ac_try) 2>&5 | |
19879 | ac_status=$? | |
19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19881 | (exit $ac_status); }; } && | |
19882 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
19883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19884 | (eval $ac_try) 2>&5 | |
19885 | ac_status=$? | |
19886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19887 | (exit $ac_status); }; }; then | |
19888 | ac_header_compiler=yes | |
19889 | else | |
19890 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19891 | sed 's/^/| /' conftest.$ac_ext >&5 |
19892 | ||
c0d27fcc MR |
19893 | ac_header_compiler=no |
19894 | fi | |
35996d22 | 19895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
19896 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19897 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19898 | ||
19899 | # Is the header present? | |
19900 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
19901 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 | |
19902 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19903 | /* confdefs.h. */ |
19904 | _ACEOF | |
19905 | cat confdefs.h >>conftest.$ac_ext | |
19906 | cat >>conftest.$ac_ext <<_ACEOF | |
19907 | /* end confdefs.h. */ | |
ba4481b5 | 19908 | #include <arpa/inet.h> |
503d2be0 | 19909 | _ACEOF |
c0d27fcc | 19910 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
19911 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19912 | ac_status=$? | |
6bae0ccf | 19913 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
19914 | rm -f conftest.er1 |
19915 | cat conftest.err >&5 | |
c0d27fcc | 19916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19917 | (exit $ac_status); } >/dev/null; then |
19918 | if test -s conftest.err; then | |
19919 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 19920 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
19921 | else |
19922 | ac_cpp_err= | |
19923 | fi | |
19924 | else | |
19925 | ac_cpp_err=yes | |
19926 | fi | |
19927 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 19928 | ac_header_preproc=yes |
ba4481b5 | 19929 | else |
503d2be0 | 19930 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19931 | sed 's/^/| /' conftest.$ac_ext >&5 |
19932 | ||
c0d27fcc | 19933 | ac_header_preproc=no |
ba4481b5 | 19934 | fi |
503d2be0 | 19935 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
19936 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19937 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19938 | ||
19939 | # So? What about this header? | |
35996d22 AS |
19940 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19941 | yes:no: ) | |
c0d27fcc MR |
19942 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19943 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
19944 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
19945 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
19946 | ac_header_preproc=yes | |
19650fd6 | 19947 | ;; |
35996d22 | 19948 | no:yes:* ) |
c0d27fcc MR |
19949 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
19950 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
19951 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
19952 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
19953 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
19954 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
19955 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19956 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 19957 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 19958 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
19959 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
19960 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
19961 | ( |
19962 | cat <<\_ASBOX | |
35996d22 AS |
19963 | ## ------------------------------------------ ## |
19964 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
19965 | ## ------------------------------------------ ## | |
19650fd6 AS |
19966 | _ASBOX |
19967 | ) | | |
19968 | sed "s/^/$as_me: WARNING: /" >&2 | |
19969 | ;; | |
c0d27fcc MR |
19970 | esac |
19971 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
19972 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 | |
19973 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
19974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19975 | else | |
19976 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 19977 | fi |
c0d27fcc | 19978 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
503d2be0 | 19979 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
c0d27fcc MR |
19980 | |
19981 | fi | |
503d2be0 | 19982 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
19983 | : |
19984 | else | |
503d2be0 | 19985 | ok_so_far=no |
ba4481b5 DL |
19986 | fi |
19987 | ||
c0d27fcc | 19988 | |
ba4481b5 DL |
19989 | fi |
19990 | if test $ok_so_far = yes; then | |
b936fae4 | 19991 | |
c0d27fcc | 19992 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 19993 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 19994 | _ACEOF |
ba4481b5 DL |
19995 | |
19996 | fi | |
19997 | ||
2d2b6695 | 19998 | |
7862d3a8 | 19999 | for ac_header in sys/ioctl.h |
2d2b6695 KS |
20000 | do |
20001 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20002 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20003 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20007 | fi | |
20008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20009 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20010 | else | |
20011 | # Is the header compilable? | |
20012 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20013 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20014 | cat >conftest.$ac_ext <<_ACEOF | |
2d2b6695 KS |
20015 | /* confdefs.h. */ |
20016 | _ACEOF | |
20017 | cat confdefs.h >>conftest.$ac_ext | |
20018 | cat >>conftest.$ac_ext <<_ACEOF | |
20019 | /* end confdefs.h. */ | |
20020 | $ac_includes_default | |
20021 | #include <$ac_header> | |
20022 | _ACEOF | |
20023 | rm -f conftest.$ac_objext | |
20024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20025 | (eval $ac_compile) 2>conftest.er1 |
2d2b6695 | 20026 | ac_status=$? |
35996d22 AS |
20027 | grep -v '^ *+' conftest.er1 >conftest.err |
20028 | rm -f conftest.er1 | |
20029 | cat conftest.err >&5 | |
2d2b6695 KS |
20030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20031 | (exit $ac_status); } && | |
35996d22 AS |
20032 | { ac_try='test -z "$ac_c_werror_flag" |
20033 | || test ! -s conftest.err' | |
20034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20035 | (eval $ac_try) 2>&5 | |
20036 | ac_status=$? | |
20037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20038 | (exit $ac_status); }; } && | |
20039 | { ac_try='test -s conftest.$ac_objext' | |
2d2b6695 KS |
20040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20041 | (eval $ac_try) 2>&5 | |
20042 | ac_status=$? | |
20043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20044 | (exit $ac_status); }; }; then | |
20045 | ac_header_compiler=yes | |
20046 | else | |
20047 | echo "$as_me: failed program was:" >&5 | |
20048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20049 | ||
20050 | ac_header_compiler=no | |
20051 | fi | |
35996d22 | 20052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2d2b6695 KS |
20053 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20054 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20055 | ||
20056 | # Is the header present? | |
20057 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20058 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20059 | cat >conftest.$ac_ext <<_ACEOF | |
2d2b6695 KS |
20060 | /* confdefs.h. */ |
20061 | _ACEOF | |
20062 | cat confdefs.h >>conftest.$ac_ext | |
20063 | cat >>conftest.$ac_ext <<_ACEOF | |
20064 | /* end confdefs.h. */ | |
20065 | #include <$ac_header> | |
20066 | _ACEOF | |
20067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20069 | ac_status=$? | |
20070 | grep -v '^ *+' conftest.er1 >conftest.err | |
20071 | rm -f conftest.er1 | |
20072 | cat conftest.err >&5 | |
20073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20074 | (exit $ac_status); } >/dev/null; then | |
20075 | if test -s conftest.err; then | |
20076 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20077 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2d2b6695 KS |
20078 | else |
20079 | ac_cpp_err= | |
20080 | fi | |
20081 | else | |
20082 | ac_cpp_err=yes | |
20083 | fi | |
20084 | if test -z "$ac_cpp_err"; then | |
20085 | ac_header_preproc=yes | |
20086 | else | |
20087 | echo "$as_me: failed program was:" >&5 | |
20088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20089 | ||
20090 | ac_header_preproc=no | |
20091 | fi | |
20092 | rm -f conftest.err conftest.$ac_ext | |
20093 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20094 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20095 | ||
20096 | # So? What about this header? | |
35996d22 AS |
20097 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20098 | yes:no: ) | |
2d2b6695 KS |
20099 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20100 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20102 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20103 | ac_header_preproc=yes | |
2d2b6695 | 20104 | ;; |
35996d22 | 20105 | no:yes:* ) |
2d2b6695 KS |
20106 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20107 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
20108 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20109 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20110 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20111 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20112 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20113 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2d2b6695 KS |
20114 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20115 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
35996d22 AS |
20116 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20117 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
2d2b6695 KS |
20118 | ( |
20119 | cat <<\_ASBOX | |
35996d22 AS |
20120 | ## ------------------------------------------ ## |
20121 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20122 | ## ------------------------------------------ ## | |
2d2b6695 KS |
20123 | _ASBOX |
20124 | ) | | |
20125 | sed "s/^/$as_me: WARNING: /" >&2 | |
20126 | ;; | |
20127 | esac | |
20128 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20132 | else | |
35996d22 | 20133 | eval "$as_ac_Header=\$ac_header_preproc" |
2d2b6695 KS |
20134 | fi |
20135 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20136 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20137 | ||
20138 | fi | |
20139 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20140 | cat >>confdefs.h <<_ACEOF | |
20141 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20142 | _ACEOF | |
20143 | ||
20144 | fi | |
20145 | ||
20146 | done | |
20147 | ||
20148 | ||
ba4481b5 | 20149 | if test -f /usr/lpp/X11/bin/smt.exp; then |
b936fae4 | 20150 | |
c0d27fcc | 20151 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 20152 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 20153 | _ACEOF |
ba4481b5 DL |
20154 | |
20155 | fi | |
20156 | ||
c0d27fcc | 20157 | echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
503d2be0 | 20158 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
3d9fec71 | 20159 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
c0d27fcc | 20160 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 20161 | echo "${ECHO_T}yes" >&6 |
b936fae4 | 20162 | |
c0d27fcc | 20163 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 20164 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 20165 | _ACEOF |
3d9fec71 DL |
20166 | |
20167 | else | |
c0d27fcc | 20168 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 20169 | echo "${ECHO_T}no" >&6 |
3d9fec71 DL |
20170 | fi |
20171 | ||
c0d27fcc | 20172 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
503d2be0 AS |
20173 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
20174 | if test "${ac_cv_type_pid_t+set}" = set; then | |
20175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 20176 | else |
503d2be0 | 20177 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20178 | /* confdefs.h. */ |
20179 | _ACEOF | |
20180 | cat confdefs.h >>conftest.$ac_ext | |
20181 | cat >>conftest.$ac_ext <<_ACEOF | |
20182 | /* end confdefs.h. */ | |
503d2be0 AS |
20183 | $ac_includes_default |
20184 | int | |
20185 | main () | |
20186 | { | |
20187 | if ((pid_t *) 0) | |
20188 | return 0; | |
20189 | if (sizeof (pid_t)) | |
20190 | return 0; | |
20191 | ; | |
20192 | return 0; | |
20193 | } | |
20194 | _ACEOF | |
20195 | rm -f conftest.$ac_objext | |
c0d27fcc | 20196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 20197 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 20198 | ac_status=$? |
35996d22 AS |
20199 | grep -v '^ *+' conftest.er1 >conftest.err |
20200 | rm -f conftest.er1 | |
20201 | cat conftest.err >&5 | |
c0d27fcc | 20202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20203 | (exit $ac_status); } && |
35996d22 AS |
20204 | { ac_try='test -z "$ac_c_werror_flag" |
20205 | || test ! -s conftest.err' | |
20206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20207 | (eval $ac_try) 2>&5 | |
20208 | ac_status=$? | |
20209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20210 | (exit $ac_status); }; } && | |
20211 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 20212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20213 | (eval $ac_try) 2>&5 |
20214 | ac_status=$? | |
c0d27fcc | 20215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20216 | (exit $ac_status); }; }; then |
647847ea DL |
20217 | ac_cv_type_pid_t=yes |
20218 | else | |
503d2be0 | 20219 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20220 | sed 's/^/| /' conftest.$ac_ext >&5 |
20221 | ||
503d2be0 | 20222 | ac_cv_type_pid_t=no |
647847ea | 20223 | fi |
35996d22 | 20224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
647847ea | 20225 | fi |
c0d27fcc | 20226 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
503d2be0 AS |
20227 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
20228 | if test $ac_cv_type_pid_t = yes; then | |
20229 | : | |
20230 | else | |
20231 | ||
c0d27fcc | 20232 | cat >>confdefs.h <<_ACEOF |
647847ea | 20233 | #define pid_t int |
c0d27fcc | 20234 | _ACEOF |
647847ea DL |
20235 | |
20236 | fi | |
20237 | ||
c0d27fcc MR |
20238 | |
20239 | ||
503d2be0 AS |
20240 | for ac_header in unistd.h vfork.h |
20241 | do | |
20242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
20243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
20245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
20246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
20248 | fi |
20249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20250 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 20251 | else |
c0d27fcc MR |
20252 | # Is the header compilable? |
20253 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20254 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20255 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20256 | /* confdefs.h. */ |
20257 | _ACEOF | |
20258 | cat confdefs.h >>conftest.$ac_ext | |
20259 | cat >>conftest.$ac_ext <<_ACEOF | |
20260 | /* end confdefs.h. */ | |
c0d27fcc MR |
20261 | $ac_includes_default |
20262 | #include <$ac_header> | |
20263 | _ACEOF | |
20264 | rm -f conftest.$ac_objext | |
20265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20266 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 20267 | ac_status=$? |
35996d22 AS |
20268 | grep -v '^ *+' conftest.er1 >conftest.err |
20269 | rm -f conftest.er1 | |
20270 | cat conftest.err >&5 | |
c0d27fcc MR |
20271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20272 | (exit $ac_status); } && | |
35996d22 AS |
20273 | { ac_try='test -z "$ac_c_werror_flag" |
20274 | || test ! -s conftest.err' | |
20275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20276 | (eval $ac_try) 2>&5 | |
20277 | ac_status=$? | |
20278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20279 | (exit $ac_status); }; } && | |
20280 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
20281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20282 | (eval $ac_try) 2>&5 | |
20283 | ac_status=$? | |
20284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20285 | (exit $ac_status); }; }; then | |
20286 | ac_header_compiler=yes | |
20287 | else | |
20288 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20289 | sed 's/^/| /' conftest.$ac_ext >&5 |
20290 | ||
c0d27fcc MR |
20291 | ac_header_compiler=no |
20292 | fi | |
35996d22 | 20293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
20294 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20295 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20296 | ||
20297 | # Is the header present? | |
20298 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20299 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20300 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20301 | /* confdefs.h. */ |
20302 | _ACEOF | |
20303 | cat confdefs.h >>conftest.$ac_ext | |
20304 | cat >>conftest.$ac_ext <<_ACEOF | |
20305 | /* end confdefs.h. */ | |
503d2be0 AS |
20306 | #include <$ac_header> |
20307 | _ACEOF | |
c0d27fcc | 20308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
20309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
20310 | ac_status=$? | |
6bae0ccf | 20311 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20312 | rm -f conftest.er1 |
20313 | cat conftest.err >&5 | |
c0d27fcc | 20314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20315 | (exit $ac_status); } >/dev/null; then |
20316 | if test -s conftest.err; then | |
20317 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20318 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
20319 | else |
20320 | ac_cpp_err= | |
20321 | fi | |
647847ea | 20322 | else |
503d2be0 AS |
20323 | ac_cpp_err=yes |
20324 | fi | |
20325 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 20326 | ac_header_preproc=yes |
647847ea | 20327 | else |
503d2be0 | 20328 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20329 | sed 's/^/| /' conftest.$ac_ext >&5 |
20330 | ||
c0d27fcc | 20331 | ac_header_preproc=no |
647847ea | 20332 | fi |
503d2be0 | 20333 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
20334 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20335 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20336 | ||
20337 | # So? What about this header? | |
35996d22 AS |
20338 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20339 | yes:no: ) | |
c0d27fcc MR |
20340 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20341 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20343 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20344 | ac_header_preproc=yes | |
19650fd6 | 20345 | ;; |
35996d22 | 20346 | no:yes:* ) |
c0d27fcc MR |
20347 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20348 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
20349 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20350 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20351 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20352 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20353 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20354 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20356 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
20357 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20358 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
20359 | ( |
20360 | cat <<\_ASBOX | |
35996d22 AS |
20361 | ## ------------------------------------------ ## |
20362 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20363 | ## ------------------------------------------ ## | |
19650fd6 AS |
20364 | _ASBOX |
20365 | ) | | |
20366 | sed "s/^/$as_me: WARNING: /" >&2 | |
20367 | ;; | |
c0d27fcc MR |
20368 | esac |
20369 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20373 | else | |
35996d22 | 20374 | eval "$as_ac_Header=\$ac_header_preproc" |
647847ea | 20375 | fi |
c0d27fcc | 20376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 20377 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
20378 | |
20379 | fi | |
503d2be0 | 20380 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20381 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20382 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20383 | _ACEOF |
647847ea | 20384 | |
73b77ee5 | 20385 | fi |
c0d27fcc | 20386 | |
503d2be0 | 20387 | done |
73b77ee5 | 20388 | |
c0d27fcc MR |
20389 | |
20390 | ||
503d2be0 AS |
20391 | for ac_func in fork vfork |
20392 | do | |
20393 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 20394 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
20395 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
20396 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 20398 | else |
503d2be0 | 20399 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20400 | /* confdefs.h. */ |
20401 | _ACEOF | |
20402 | cat confdefs.h >>conftest.$ac_ext | |
20403 | cat >>conftest.$ac_ext <<_ACEOF | |
20404 | /* end confdefs.h. */ | |
35996d22 AS |
20405 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20406 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20407 | #define $ac_func innocuous_$ac_func | |
20408 | ||
fa0b693c | 20409 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
20410 | which can conflict with char $ac_func (); below. |
20411 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20412 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 20413 | |
19650fd6 AS |
20414 | #ifdef __STDC__ |
20415 | # include <limits.h> | |
20416 | #else | |
20417 | # include <assert.h> | |
20418 | #endif | |
35996d22 AS |
20419 | |
20420 | #undef $ac_func | |
20421 | ||
fa0b693c | 20422 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
20423 | #ifdef __cplusplus |
20424 | extern "C" | |
19650fd6 | 20425 | { |
503d2be0 | 20426 | #endif |
fa0b693c | 20427 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
20428 | builtin and then its argument prototype would still apply. */ |
20429 | char $ac_func (); | |
fa0b693c GM |
20430 | /* The GNU C library defines this for functions which it implements |
20431 | to always fail with ENOSYS. Some functions are actually named | |
20432 | something starting with __ and the normal name is an alias. */ | |
503d2be0 | 20433 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
fa0b693c GM |
20434 | choke me |
20435 | #else | |
19650fd6 AS |
20436 | char (*f) () = $ac_func; |
20437 | #endif | |
20438 | #ifdef __cplusplus | |
20439 | } | |
fa0b693c GM |
20440 | #endif |
20441 | ||
19650fd6 AS |
20442 | int |
20443 | main () | |
20444 | { | |
20445 | return f != $ac_func; | |
503d2be0 AS |
20446 | ; |
20447 | return 0; | |
20448 | } | |
20449 | _ACEOF | |
20450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 20451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 20452 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 20453 | ac_status=$? |
35996d22 AS |
20454 | grep -v '^ *+' conftest.er1 >conftest.err |
20455 | rm -f conftest.er1 | |
20456 | cat conftest.err >&5 | |
c0d27fcc | 20457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20458 | (exit $ac_status); } && |
35996d22 AS |
20459 | { ac_try='test -z "$ac_c_werror_flag" |
20460 | || test ! -s conftest.err' | |
20461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20462 | (eval $ac_try) 2>&5 | |
20463 | ac_status=$? | |
20464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20465 | (exit $ac_status); }; } && | |
20466 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 20467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20468 | (eval $ac_try) 2>&5 |
20469 | ac_status=$? | |
c0d27fcc | 20470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20471 | (exit $ac_status); }; }; then |
20472 | eval "$as_ac_var=yes" | |
20473 | else | |
20474 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20475 | sed 's/^/| /' conftest.$ac_ext >&5 |
20476 | ||
503d2be0 AS |
20477 | eval "$as_ac_var=no" |
20478 | fi | |
35996d22 AS |
20479 | rm -f conftest.err conftest.$ac_objext \ |
20480 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 20481 | fi |
c0d27fcc | 20482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
20483 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
20484 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 20485 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20486 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 20487 | _ACEOF |
503d2be0 | 20488 | |
fa0b693c | 20489 | fi |
503d2be0 | 20490 | done |
fa0b693c | 20491 | |
503d2be0 | 20492 | if test "x$ac_cv_func_fork" = xyes; then |
c0d27fcc | 20493 | echo "$as_me:$LINENO: checking for working fork" >&5 |
503d2be0 AS |
20494 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
20495 | if test "${ac_cv_func_fork_works+set}" = set; then | |
20496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 20497 | else |
503d2be0 AS |
20498 | if test "$cross_compiling" = yes; then |
20499 | ac_cv_func_fork_works=cross | |
20500 | else | |
20501 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 20502 | /* By Ruediger Kuhlmann. */ |
503d2be0 AS |
20503 | #include <sys/types.h> |
20504 | #if HAVE_UNISTD_H | |
20505 | # include <unistd.h> | |
20506 | #endif | |
20507 | /* Some systems only have a dummy stub for fork() */ | |
20508 | int main () | |
20509 | { | |
35996d22 AS |
20510 | if (fork() < 0) |
20511 | exit (1); | |
20512 | exit (0); | |
503d2be0 AS |
20513 | } |
20514 | _ACEOF | |
20515 | rm -f conftest$ac_exeext | |
c0d27fcc | 20516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
20517 | (eval $ac_link) 2>&5 |
20518 | ac_status=$? | |
c0d27fcc | 20519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 20521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20522 | (eval $ac_try) 2>&5 |
20523 | ac_status=$? | |
c0d27fcc | 20524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20525 | (exit $ac_status); }; }; then |
20526 | ac_cv_func_fork_works=yes | |
20527 | else | |
20528 | echo "$as_me: program exited with status $ac_status" >&5 | |
20529 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20530 | sed 's/^/| /' conftest.$ac_ext >&5 |
20531 | ||
c0d27fcc | 20532 | ( exit $ac_status ) |
503d2be0 AS |
20533 | ac_cv_func_fork_works=no |
20534 | fi | |
35996d22 | 20535 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
20536 | fi |
20537 | fi | |
c0d27fcc | 20538 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
503d2be0 AS |
20539 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
20540 | ||
6bae0ccf DL |
20541 | else |
20542 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
20543 | fi |
20544 | if test "x$ac_cv_func_fork_works" = xcross; then | |
20545 | case $host in | |
20546 | *-*-amigaos* | *-*-msdosdjgpp*) | |
20547 | # Override, as these systems have only a dummy fork() stub | |
20548 | ac_cv_func_fork_works=no | |
20549 | ;; | |
20550 | *) | |
20551 | ac_cv_func_fork_works=yes | |
20552 | ;; | |
20553 | esac | |
c0d27fcc MR |
20554 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
20555 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 20556 | fi |
73b77ee5 | 20557 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 20558 | if test "x$ac_cv_func_vfork" = xyes; then |
c0d27fcc | 20559 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
503d2be0 AS |
20560 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
20561 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
20562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20563 | else | |
20564 | if test "$cross_compiling" = yes; then | |
20565 | ac_cv_func_vfork_works=cross | |
fa0b693c | 20566 | else |
503d2be0 | 20567 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20568 | /* confdefs.h. */ |
20569 | _ACEOF | |
20570 | cat confdefs.h >>conftest.$ac_ext | |
20571 | cat >>conftest.$ac_ext <<_ACEOF | |
20572 | /* end confdefs.h. */ | |
73b77ee5 GM |
20573 | /* Thanks to Paul Eggert for this test. */ |
20574 | #include <stdio.h> | |
19650fd6 | 20575 | #include <stdlib.h> |
fa0b693c | 20576 | #include <sys/types.h> |
73b77ee5 | 20577 | #include <sys/stat.h> |
19650fd6 | 20578 | #include <sys/wait.h> |
503d2be0 AS |
20579 | #if HAVE_UNISTD_H |
20580 | # include <unistd.h> | |
73b77ee5 | 20581 | #endif |
503d2be0 AS |
20582 | #if HAVE_VFORK_H |
20583 | # include <vfork.h> | |
73b77ee5 GM |
20584 | #endif |
20585 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
20586 | argument registers are propagated back to the parent. The compiler |
20587 | is told about this with #include <vfork.h>, but some compilers | |
20588 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
20589 | static variable whose address is put into a register that is | |
20590 | clobbered by the vfork. */ | |
19650fd6 | 20591 | static void |
fa0b693c | 20592 | #ifdef __cplusplus |
73b77ee5 | 20593 | sparc_address_test (int arg) |
503d2be0 | 20594 | # else |
73b77ee5 | 20595 | sparc_address_test (arg) int arg; |
fa0b693c | 20596 | #endif |
fa0b693c | 20597 | { |
73b77ee5 GM |
20598 | static pid_t child; |
20599 | if (!child) { | |
20600 | child = vfork (); | |
20601 | if (child < 0) { | |
20602 | perror ("vfork"); | |
20603 | _exit(2); | |
20604 | } | |
20605 | if (!child) { | |
20606 | arg = getpid(); | |
20607 | write(-1, "", 0); | |
20608 | _exit (arg); | |
20609 | } | |
20610 | } | |
20611 | } | |
503d2be0 AS |
20612 | |
20613 | int | |
20614 | main () | |
20615 | { | |
73b77ee5 GM |
20616 | pid_t parent = getpid (); |
20617 | pid_t child; | |
fa0b693c | 20618 | |
19650fd6 | 20619 | sparc_address_test (0); |
fa0b693c | 20620 | |
73b77ee5 | 20621 | child = vfork (); |
fa0b693c | 20622 | |
73b77ee5 | 20623 | if (child == 0) { |
503d2be0 AS |
20624 | /* Here is another test for sparc vfork register problems. This |
20625 | test uses lots of local variables, at least as many local | |
20626 | variables as main has allocated so far including compiler | |
20627 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
20628 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
20629 | reuse the register of parent for one of the local variables, | |
20630 | since it will think that parent can't possibly be used any more | |
20631 | in this routine. Assigning to the local variable will thus | |
20632 | munge parent in the parent process. */ | |
73b77ee5 GM |
20633 | pid_t |
20634 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
20635 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
20636 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
20637 | use the same hardware register for all 8 local variables. */ | |
20638 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
20639 | || p != p5 || p != p6 || p != p7) | |
20640 | _exit(1); | |
fa0b693c | 20641 | |
503d2be0 AS |
20642 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
20643 | from child file descriptors. If the child closes a descriptor | |
20644 | before it execs or exits, this munges the parent's descriptor | |
20645 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
20646 | _exit(close(fileno(stdout)) != 0); |
20647 | } else { | |
20648 | int status; | |
20649 | struct stat st; | |
20650 | ||
20651 | while (wait(&status) != child) | |
20652 | ; | |
20653 | exit( | |
20654 | /* Was there some problem with vforking? */ | |
20655 | child < 0 | |
20656 | ||
20657 | /* Did the child fail? (This shouldn't happen.) */ | |
20658 | || status | |
20659 | ||
20660 | /* Did the vfork/compiler bug occur? */ | |
20661 | || parent != getpid() | |
fa0b693c | 20662 | |
73b77ee5 GM |
20663 | /* Did the file descriptor bug occur? */ |
20664 | || fstat(fileno(stdout), &st) != 0 | |
20665 | ); | |
20666 | } | |
20667 | } | |
503d2be0 AS |
20668 | _ACEOF |
20669 | rm -f conftest$ac_exeext | |
c0d27fcc | 20670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
20671 | (eval $ac_link) 2>&5 |
20672 | ac_status=$? | |
c0d27fcc | 20673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 20675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20676 | (eval $ac_try) 2>&5 |
20677 | ac_status=$? | |
c0d27fcc | 20678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20679 | (exit $ac_status); }; }; then |
73b77ee5 | 20680 | ac_cv_func_vfork_works=yes |
fa0b693c | 20681 | else |
503d2be0 AS |
20682 | echo "$as_me: program exited with status $ac_status" >&5 |
20683 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20684 | sed 's/^/| /' conftest.$ac_ext >&5 |
20685 | ||
c0d27fcc | 20686 | ( exit $ac_status ) |
503d2be0 AS |
20687 | ac_cv_func_vfork_works=no |
20688 | fi | |
35996d22 | 20689 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 20690 | fi |
fa0b693c | 20691 | fi |
c0d27fcc | 20692 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
503d2be0 | 20693 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
fa0b693c | 20694 | |
503d2be0 AS |
20695 | fi; |
20696 | if test "x$ac_cv_func_fork_works" = xcross; then | |
35996d22 | 20697 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
c0d27fcc MR |
20698 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
20699 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
20700 | fi |
20701 | ||
503d2be0 AS |
20702 | if test "x$ac_cv_func_vfork_works" = xyes; then |
20703 | ||
c0d27fcc | 20704 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 20705 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 20706 | _ACEOF |
503d2be0 AS |
20707 | |
20708 | else | |
20709 | ||
c0d27fcc | 20710 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 20711 | #define vfork fork |
c0d27fcc | 20712 | _ACEOF |
fa0b693c GM |
20713 | |
20714 | fi | |
503d2be0 AS |
20715 | if test "x$ac_cv_func_fork_works" = xyes; then |
20716 | ||
c0d27fcc | 20717 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 20718 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 20719 | _ACEOF |
fa0b693c | 20720 | |
503d2be0 | 20721 | fi |
647847ea | 20722 | |
c0d27fcc | 20723 | |
6a3a24fa JD |
20724 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
20725 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
20726 | if test "${emacs_cv_langinfo_codeset+set}" = set; then | |
20727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20728 | else | |
20729 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20730 | /* confdefs.h. */ |
20731 | _ACEOF | |
20732 | cat confdefs.h >>conftest.$ac_ext | |
20733 | cat >>conftest.$ac_ext <<_ACEOF | |
20734 | /* end confdefs.h. */ | |
6a3a24fa JD |
20735 | #include <langinfo.h> |
20736 | int | |
20737 | main () | |
20738 | { | |
20739 | char* cs = nl_langinfo(CODESET); | |
20740 | ; | |
20741 | return 0; | |
20742 | } | |
20743 | _ACEOF | |
20744 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 20746 | (eval $ac_link) 2>conftest.er1 |
6a3a24fa | 20747 | ac_status=$? |
35996d22 AS |
20748 | grep -v '^ *+' conftest.er1 >conftest.err |
20749 | rm -f conftest.er1 | |
20750 | cat conftest.err >&5 | |
6a3a24fa JD |
20751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20752 | (exit $ac_status); } && | |
35996d22 AS |
20753 | { ac_try='test -z "$ac_c_werror_flag" |
20754 | || test ! -s conftest.err' | |
20755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20756 | (eval $ac_try) 2>&5 | |
20757 | ac_status=$? | |
20758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20759 | (exit $ac_status); }; } && | |
20760 | { ac_try='test -s conftest$ac_exeext' | |
6a3a24fa JD |
20761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20762 | (eval $ac_try) 2>&5 | |
20763 | ac_status=$? | |
20764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20765 | (exit $ac_status); }; }; then | |
20766 | emacs_cv_langinfo_codeset=yes | |
20767 | else | |
20768 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20769 | sed 's/^/| /' conftest.$ac_ext >&5 |
20770 | ||
6a3a24fa JD |
20771 | emacs_cv_langinfo_codeset=no |
20772 | fi | |
35996d22 AS |
20773 | rm -f conftest.err conftest.$ac_objext \ |
20774 | conftest$ac_exeext conftest.$ac_ext | |
6a3a24fa JD |
20775 | |
20776 | fi | |
20777 | echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 | |
20778 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6 | |
20779 | if test $emacs_cv_langinfo_codeset = yes; then | |
20780 | ||
20781 | cat >>confdefs.h <<\_ACEOF | |
20782 | #define HAVE_LANGINFO_CODESET 1 | |
20783 | _ACEOF | |
20784 | ||
20785 | fi | |
20786 | ||
c0d27fcc | 20787 | echo "$as_me:$LINENO: checking for size_t" >&5 |
503d2be0 AS |
20788 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
20789 | if test "${ac_cv_type_size_t+set}" = set; then | |
20790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 20791 | else |
503d2be0 | 20792 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20793 | /* confdefs.h. */ |
20794 | _ACEOF | |
20795 | cat confdefs.h >>conftest.$ac_ext | |
20796 | cat >>conftest.$ac_ext <<_ACEOF | |
20797 | /* end confdefs.h. */ | |
503d2be0 AS |
20798 | $ac_includes_default |
20799 | int | |
20800 | main () | |
20801 | { | |
20802 | if ((size_t *) 0) | |
20803 | return 0; | |
20804 | if (sizeof (size_t)) | |
20805 | return 0; | |
20806 | ; | |
20807 | return 0; | |
20808 | } | |
20809 | _ACEOF | |
20810 | rm -f conftest.$ac_objext | |
c0d27fcc | 20811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 20812 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 20813 | ac_status=$? |
35996d22 AS |
20814 | grep -v '^ *+' conftest.er1 >conftest.err |
20815 | rm -f conftest.er1 | |
20816 | cat conftest.err >&5 | |
c0d27fcc | 20817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20818 | (exit $ac_status); } && |
35996d22 AS |
20819 | { ac_try='test -z "$ac_c_werror_flag" |
20820 | || test ! -s conftest.err' | |
20821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20822 | (eval $ac_try) 2>&5 | |
20823 | ac_status=$? | |
20824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20825 | (exit $ac_status); }; } && | |
20826 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 20827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20828 | (eval $ac_try) 2>&5 |
20829 | ac_status=$? | |
c0d27fcc | 20830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20831 | (exit $ac_status); }; }; then |
8730a8da DL |
20832 | ac_cv_type_size_t=yes |
20833 | else | |
503d2be0 | 20834 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20835 | sed 's/^/| /' conftest.$ac_ext >&5 |
20836 | ||
503d2be0 | 20837 | ac_cv_type_size_t=no |
8730a8da | 20838 | fi |
35996d22 | 20839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8730a8da | 20840 | fi |
c0d27fcc | 20841 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
503d2be0 AS |
20842 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
20843 | if test $ac_cv_type_size_t = yes; then | |
503d2be0 | 20844 | |
c0d27fcc MR |
20845 | cat >>confdefs.h <<_ACEOF |
20846 | #define HAVE_SIZE_T 1 | |
20847 | _ACEOF | |
20848 | ||
8730a8da DL |
20849 | |
20850 | fi | |
20851 | ||
c0d27fcc | 20852 | |
973a76b1 DL |
20853 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
20854 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
20855 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
20856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20857 | else | |
20858 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20859 | /* confdefs.h. */ |
20860 | _ACEOF | |
20861 | cat confdefs.h >>conftest.$ac_ext | |
20862 | cat >>conftest.$ac_ext <<_ACEOF | |
20863 | /* end confdefs.h. */ | |
973a76b1 DL |
20864 | $ac_includes_default |
20865 | # include <wchar.h> | |
20866 | int | |
20867 | main () | |
20868 | { | |
20869 | mbstate_t x; return sizeof x; | |
20870 | ; | |
20871 | return 0; | |
20872 | } | |
20873 | _ACEOF | |
20874 | rm -f conftest.$ac_objext | |
20875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20876 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 20877 | ac_status=$? |
35996d22 AS |
20878 | grep -v '^ *+' conftest.er1 >conftest.err |
20879 | rm -f conftest.er1 | |
20880 | cat conftest.err >&5 | |
973a76b1 DL |
20881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20882 | (exit $ac_status); } && | |
35996d22 AS |
20883 | { ac_try='test -z "$ac_c_werror_flag" |
20884 | || test ! -s conftest.err' | |
20885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20886 | (eval $ac_try) 2>&5 | |
20887 | ac_status=$? | |
20888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20889 | (exit $ac_status); }; } && | |
20890 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
20891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20892 | (eval $ac_try) 2>&5 | |
20893 | ac_status=$? | |
20894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20895 | (exit $ac_status); }; }; then | |
20896 | ac_cv_type_mbstate_t=yes | |
20897 | else | |
20898 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20899 | sed 's/^/| /' conftest.$ac_ext >&5 |
20900 | ||
973a76b1 DL |
20901 | ac_cv_type_mbstate_t=no |
20902 | fi | |
35996d22 | 20903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 DL |
20904 | fi |
20905 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
20906 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
20907 | if test $ac_cv_type_mbstate_t = yes; then | |
20908 | ||
20909 | cat >>confdefs.h <<\_ACEOF | |
20910 | #define HAVE_MBSTATE_T 1 | |
20911 | _ACEOF | |
20912 | ||
20913 | else | |
20914 | ||
20915 | cat >>confdefs.h <<\_ACEOF | |
20916 | #define mbstate_t int | |
20917 | _ACEOF | |
20918 | ||
20919 | fi | |
20920 | ||
22044edf DL |
20921 | echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
20922 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6 | |
20923 | if test "${emacs_cv_c_restrict+set}" = set; then | |
20924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20925 | else | |
20926 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20927 | /* confdefs.h. */ |
20928 | _ACEOF | |
20929 | cat confdefs.h >>conftest.$ac_ext | |
20930 | cat >>conftest.$ac_ext <<_ACEOF | |
20931 | /* end confdefs.h. */ | |
22044edf DL |
20932 | void fred (int *restrict x); |
20933 | int | |
20934 | main () | |
20935 | { | |
b936fae4 | 20936 | |
22044edf DL |
20937 | ; |
20938 | return 0; | |
20939 | } | |
c0d27fcc | 20940 | _ACEOF |
22044edf DL |
20941 | rm -f conftest.$ac_objext |
20942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20943 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 20944 | ac_status=$? |
35996d22 AS |
20945 | grep -v '^ *+' conftest.er1 >conftest.err |
20946 | rm -f conftest.er1 | |
20947 | cat conftest.err >&5 | |
22044edf DL |
20948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20949 | (exit $ac_status); } && | |
35996d22 AS |
20950 | { ac_try='test -z "$ac_c_werror_flag" |
20951 | || test ! -s conftest.err' | |
20952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20953 | (eval $ac_try) 2>&5 | |
20954 | ac_status=$? | |
20955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20956 | (exit $ac_status); }; } && | |
20957 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
20958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20959 | (eval $ac_try) 2>&5 | |
20960 | ac_status=$? | |
20961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20962 | (exit $ac_status); }; }; then | |
20963 | emacs_cv_c_restrict=yes | |
20964 | else | |
20965 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20966 | sed 's/^/| /' conftest.$ac_ext >&5 |
20967 | ||
22044edf | 20968 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20969 | /* confdefs.h. */ |
20970 | _ACEOF | |
20971 | cat confdefs.h >>conftest.$ac_ext | |
20972 | cat >>conftest.$ac_ext <<_ACEOF | |
20973 | /* end confdefs.h. */ | |
22044edf DL |
20974 | void fred (int *__restrict x); |
20975 | int | |
20976 | main () | |
20977 | { | |
c0d27fcc | 20978 | |
22044edf DL |
20979 | ; |
20980 | return 0; | |
20981 | } | |
c0d27fcc | 20982 | _ACEOF |
22044edf DL |
20983 | rm -f conftest.$ac_objext |
20984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20985 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 20986 | ac_status=$? |
35996d22 AS |
20987 | grep -v '^ *+' conftest.er1 >conftest.err |
20988 | rm -f conftest.er1 | |
20989 | cat conftest.err >&5 | |
22044edf DL |
20990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20991 | (exit $ac_status); } && | |
35996d22 AS |
20992 | { ac_try='test -z "$ac_c_werror_flag" |
20993 | || test ! -s conftest.err' | |
20994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20995 | (eval $ac_try) 2>&5 | |
20996 | ac_status=$? | |
20997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20998 | (exit $ac_status); }; } && | |
20999 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21001 | (eval $ac_try) 2>&5 | |
21002 | ac_status=$? | |
21003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21004 | (exit $ac_status); }; }; then | |
21005 | emacs_cv_c_restrict=__restrict | |
21006 | else | |
21007 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21008 | sed 's/^/| /' conftest.$ac_ext >&5 |
21009 | ||
22044edf | 21010 | emacs_cv_c_restrict=no |
ba4481b5 | 21011 | fi |
35996d22 | 21012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21013 | fi |
35996d22 | 21014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21015 | fi |
22044edf DL |
21016 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
21017 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6 | |
21018 | case "$emacs_cv_c_restrict" in | |
21019 | yes) emacs_restrict=restrict;; | |
21020 | no) emacs_restrict="";; | |
21021 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
21022 | esac | |
21023 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 21024 | |
22044edf DL |
21025 | cat >>confdefs.h <<_ACEOF |
21026 | #define __restrict $emacs_restrict | |
c0d27fcc | 21027 | _ACEOF |
ba4481b5 DL |
21028 | |
21029 | fi | |
ba4481b5 | 21030 | |
22044edf DL |
21031 | echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
21032 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6 | |
21033 | if test "${emacs_cv_c_restrict_arr+set}" = set; then | |
21034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21035 | else | |
21036 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
21037 | /* confdefs.h. */ |
21038 | _ACEOF | |
21039 | cat confdefs.h >>conftest.$ac_ext | |
21040 | cat >>conftest.$ac_ext <<_ACEOF | |
21041 | /* end confdefs.h. */ | |
22044edf DL |
21042 | void fred (int x[__restrict]); |
21043 | int | |
21044 | main () | |
21045 | { | |
b936fae4 | 21046 | |
22044edf DL |
21047 | ; |
21048 | return 0; | |
21049 | } | |
c0d27fcc | 21050 | _ACEOF |
22044edf DL |
21051 | rm -f conftest.$ac_objext |
21052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 21053 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 21054 | ac_status=$? |
35996d22 AS |
21055 | grep -v '^ *+' conftest.er1 >conftest.err |
21056 | rm -f conftest.er1 | |
21057 | cat conftest.err >&5 | |
22044edf DL |
21058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21059 | (exit $ac_status); } && | |
35996d22 AS |
21060 | { ac_try='test -z "$ac_c_werror_flag" |
21061 | || test ! -s conftest.err' | |
21062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21063 | (eval $ac_try) 2>&5 | |
21064 | ac_status=$? | |
21065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21066 | (exit $ac_status); }; } && | |
21067 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21069 | (eval $ac_try) 2>&5 | |
21070 | ac_status=$? | |
21071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21072 | (exit $ac_status); }; }; then | |
21073 | emacs_cv_c_restrict_arr=yes | |
21074 | else | |
21075 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21076 | sed 's/^/| /' conftest.$ac_ext >&5 |
21077 | ||
22044edf | 21078 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 21079 | fi |
35996d22 | 21080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
22044edf DL |
21081 | fi |
21082 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 | |
21083 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6 | |
21084 | if test "$emacs_cv_c_restrict_arr" = yes; then | |
b936fae4 | 21085 | |
c0d27fcc | 21086 | cat >>confdefs.h <<\_ACEOF |
22044edf | 21087 | #define __restrict_arr __restrict |
c0d27fcc | 21088 | _ACEOF |
ba4481b5 | 21089 | |
ba4481b5 DL |
21090 | fi |
21091 | ||
c0d27fcc | 21092 | |
c0d27fcc | 21093 | |
22044edf DL |
21094 | # Set up the CFLAGS for real compilation, so we can substitute it. |
21095 | CFLAGS="$REAL_CFLAGS" | |
21096 | CPPFLAGS="$REAL_CPPFLAGS" | |
21097 | ||
21098 | #### Find out which version of Emacs this is. | |
21099 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
21100 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
21101 | if test x"${version}" = x; then | |
21102 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
21103 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
21104 | { (exit 1); exit 1; }; } | |
21105 | fi | |
21106 | ||
21107 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
21108 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
21109 | ||
21110 | ||
21111 | ||
21112 | ||
21113 | ||
21114 | ||
21115 | ||
21116 | ||
21117 | ||
21118 | ||
21119 | ||
21120 | ||
21121 | ||
21122 | ||
21123 | ||
21124 | ||
21125 | ||
21126 | ||
21127 | ||
21128 | ||
21129 | ||
21130 | ||
21131 | ||
21132 | ||
21133 | ||
21134 | ||
21135 | ||
21136 | ||
21137 | ||
21138 | ||
21139 | ||
21140 | ||
6a3a24fa | 21141 | |
22044edf DL |
21142 | |
21143 | ||
21144 | cat >>confdefs.h <<_ACEOF | |
21145 | #define EMACS_CONFIGURATION "${canonical}" | |
21146 | _ACEOF | |
21147 | ||
21148 | ||
21149 | cat >>confdefs.h <<_ACEOF | |
21150 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
21151 | _ACEOF | |
21152 | ||
21153 | ||
21154 | cat >>confdefs.h <<_ACEOF | |
21155 | #define config_machfile "${machfile}" | |
21156 | _ACEOF | |
21157 | ||
21158 | ||
21159 | cat >>confdefs.h <<_ACEOF | |
21160 | #define config_opsysfile "${opsysfile}" | |
21161 | _ACEOF | |
21162 | ||
21163 | ||
21164 | cat >>confdefs.h <<_ACEOF | |
21165 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
21166 | _ACEOF | |
21167 | ||
21168 | ||
21169 | cat >>confdefs.h <<_ACEOF | |
21170 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
21171 | _ACEOF | |
21172 | ||
21173 | ||
21174 | cat >>confdefs.h <<_ACEOF | |
21175 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
21176 | _ACEOF | |
21177 | ||
21178 | ||
21179 | cat >>confdefs.h <<_ACEOF | |
21180 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
21181 | _ACEOF | |
21182 | ||
21183 | ||
21184 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
21185 | ||
21186 | cat >>confdefs.h <<\_ACEOF | |
21187 | #define HAVE_X_WINDOWS 1 | |
21188 | _ACEOF | |
21189 | ||
21190 | fi | |
21191 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
21192 | ||
21193 | cat >>confdefs.h <<\_ACEOF | |
21194 | #define USE_X_TOOLKIT 1 | |
21195 | _ACEOF | |
21196 | ||
21197 | fi | |
21198 | if test "${HAVE_X11}" = "yes" ; then | |
21199 | ||
21200 | cat >>confdefs.h <<\_ACEOF | |
21201 | #define HAVE_X11 1 | |
21202 | _ACEOF | |
21203 | ||
21204 | fi | |
21205 | if test "${HAVE_XFREE386}" = "yes" ; then | |
21206 | ||
21207 | cat >>confdefs.h <<\_ACEOF | |
21208 | #define HAVE_XFREE386 1 | |
21209 | _ACEOF | |
21210 | ||
21211 | fi | |
21212 | if test "${HAVE_MENUS}" = "yes" ; then | |
21213 | ||
21214 | cat >>confdefs.h <<\_ACEOF | |
21215 | #define HAVE_MENUS 1 | |
21216 | _ACEOF | |
21217 | ||
21218 | fi | |
21219 | if test "${GNU_MALLOC}" = "yes" ; then | |
21220 | ||
21221 | cat >>confdefs.h <<\_ACEOF | |
21222 | #define GNU_MALLOC 1 | |
21223 | _ACEOF | |
21224 | ||
21225 | fi | |
21226 | if test "${REL_ALLOC}" = "yes" ; then | |
21227 | ||
21228 | cat >>confdefs.h <<\_ACEOF | |
21229 | #define REL_ALLOC 1 | |
21230 | _ACEOF | |
21231 | ||
21232 | fi | |
21233 | ||
21234 | ||
21235 | ||
c0d27fcc MR |
21236 | |
21237 | ||
ba4481b5 | 21238 | #### Report on what we decided to do. |
488dd4c4 JD |
21239 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
21240 | #### It makes printing result more understandable as using GTK sets | |
21241 | #### toolkit_scroll_bars to yes by default. | |
21242 | if test "${HAVE_GTK}" = "yes"; then | |
21243 | USE_X_TOOLKIT=GTK | |
21244 | fi | |
21245 | ||
ba4481b5 DL |
21246 | echo " |
21247 | Configured for \`${canonical}'. | |
21248 | ||
21249 | Where should the build process find the source code? ${srcdir} | |
21250 | What operating system and machine description files should Emacs use? | |
21251 | \`${opsysfile}' and \`${machfile}' | |
21252 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
21253 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 21254 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 21255 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 21256 | What window system should Emacs use? ${window_system} |
8e967cf7 | 21257 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
21258 | |
21259 | if test -n "${x_includes}"; then | |
21260 | echo " Where do we find X Windows header files? ${x_includes}" | |
21261 | else | |
21262 | echo " Where do we find X Windows header files? Standard dirs" | |
21263 | fi | |
21264 | if test -n "${x_libraries}"; then | |
21265 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
21266 | else | |
21267 | echo " Where do we find X Windows libraries? Standard dirs" | |
21268 | fi | |
21269 | ||
21270 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
21271 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
21272 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
21273 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
21274 | echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
21275 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
21276 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
21277 | echo | |
21278 | ||
21279 | # Remove any trailing slashes in these variables. | |
21280 | test "${prefix}" != NONE && | |
21281 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
21282 | test "${exec_prefix}" != NONE && | |
21283 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
21284 | ||
d0e9bfd2 GM |
21285 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
21286 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
21287 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
21288 | ## C preprocessor. | |
21289 | ||
503d2be0 | 21290 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21291 | /* confdefs.h. */ |
21292 | _ACEOF | |
21293 | cat confdefs.h >>conftest.$ac_ext | |
21294 | cat >>conftest.$ac_ext <<_ACEOF | |
21295 | /* end confdefs.h. */ | |
d0e9bfd2 | 21296 | yes..yes |
503d2be0 | 21297 | _ACEOF |
d0e9bfd2 | 21298 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 21299 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
21300 | CPP_NEED_TRADITIONAL=no |
21301 | else | |
d0e9bfd2 GM |
21302 | CPP_NEED_TRADITIONAL=yes |
21303 | fi | |
21304 | rm -f conftest* | |
21305 | ||
c0d27fcc | 21306 | |
6bae0ccf DL |
21307 | 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 lispref/Makefile lispintro/Makefile leim/Makefile" |
21308 | ac_config_commands="$ac_config_commands default" | |
503d2be0 | 21309 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
21310 | # This file is a shell script that caches the results of configure |
21311 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
21312 | # scripts and configure runs, see configure's option --config-cache. |
21313 | # It is not useful on other systems. If it contains results you don't | |
21314 | # want to keep, you may remove or edit it. | |
ba4481b5 | 21315 | # |
503d2be0 AS |
21316 | # config.status only pays attention to the cache file if you give it |
21317 | # the --recheck option to rerun configure. | |
ba4481b5 | 21318 | # |
6bae0ccf | 21319 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
21320 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
21321 | # following values. | |
21322 | ||
21323 | _ACEOF | |
21324 | ||
ba4481b5 DL |
21325 | # The following way of writing the cache mishandles newlines in values, |
21326 | # but we know of no workaround that is simple, portable, and efficient. | |
21327 | # So, don't put newlines in cache variables' values. | |
21328 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21329 | # and sets the high bit in the cache file unless we assign to the vars. | |
503d2be0 AS |
21330 | { |
21331 | (set) 2>&1 | | |
21332 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21333 | *ac_space=\ *) | |
21334 | # `set' does not quote correctly, so add quotes (double-quote | |
21335 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21336 | sed -n \ | |
35996d22 AS |
21337 | "s/'/'\\\\''/g; |
21338 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
503d2be0 AS |
21339 | ;; |
21340 | *) | |
21341 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21342 | sed -n \ | |
35996d22 | 21343 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
503d2be0 AS |
21344 | ;; |
21345 | esac; | |
21346 | } | | |
21347 | sed ' | |
21348 | t clear | |
21349 | : clear | |
21350 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21351 | t end | |
21352 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21353 | : end' >>confcache | |
19650fd6 | 21354 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
ba4481b5 | 21355 | if test -w $cache_file; then |
503d2be0 AS |
21356 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
21357 | cat confcache >$cache_file | |
ba4481b5 DL |
21358 | else |
21359 | echo "not updating unwritable cache $cache_file" | |
21360 | fi | |
21361 | fi | |
21362 | rm -f confcache | |
21363 | ||
ba4481b5 DL |
21364 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21365 | # Let make expand exec_prefix. | |
21366 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21367 | ||
503d2be0 AS |
21368 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
21369 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21370 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21371 | # (actually we leave an empty line to preserve line numbers). | |
ba4481b5 | 21372 | if test "x$srcdir" = x.; then |
35996d22 | 21373 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
503d2be0 AS |
21374 | s/:*\$(srcdir):*/:/; |
21375 | s/:*\${srcdir}:*/:/; | |
21376 | s/:*@srcdir@:*/:/; | |
35996d22 | 21377 | s/^\([^=]*=[ ]*\):*/\1/; |
503d2be0 | 21378 | s/:*$//; |
35996d22 | 21379 | s/^[^=]*=[ ]*$//; |
503d2be0 | 21380 | }' |
ba4481b5 DL |
21381 | fi |
21382 | ||
ba4481b5 DL |
21383 | DEFS=-DHAVE_CONFIG_H |
21384 | ||
6bae0ccf DL |
21385 | ac_libobjs= |
21386 | ac_ltlibobjs= | |
21387 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21388 | # 1. Remove the extension, and $U if already installed. | |
21389 | ac_i=`echo "$ac_i" | | |
35996d22 | 21390 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
6bae0ccf DL |
21391 | # 2. Add them. |
21392 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21393 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21394 | done | |
21395 | LIBOBJS=$ac_libobjs | |
21396 | ||
21397 | LTLIBOBJS=$ac_ltlibobjs | |
21398 | ||
21399 | ||
c0d27fcc | 21400 | |
ba4481b5 | 21401 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
21402 | ac_clean_files_save=$ac_clean_files |
21403 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 21404 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
21405 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
21406 | cat >$CONFIG_STATUS <<_ACEOF | |
21407 | #! $SHELL | |
c0d27fcc | 21408 | # Generated by $as_me. |
ba4481b5 | 21409 | # Run this file to recreate the current configuration. |
ba4481b5 | 21410 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 21411 | # configure, is in config.log if it exists. |
ba4481b5 | 21412 | |
503d2be0 | 21413 | debug=false |
19650fd6 AS |
21414 | ac_cs_recheck=false |
21415 | ac_cs_silent=false | |
503d2be0 | 21416 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
21417 | _ACEOF |
21418 | ||
21419 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
21420 | ## --------------------- ## |
21421 | ## M4sh Initialization. ## | |
21422 | ## --------------------- ## | |
21423 | ||
503d2be0 AS |
21424 | # Be Bourne compatible |
21425 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21426 | emulate sh | |
21427 | NULLCMD=: | |
6bae0ccf DL |
21428 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21429 | # is contrary to our usage. Disable this feature. | |
21430 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
21431 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21432 | set -o posix | |
21433 | fi | |
35996d22 | 21434 | DUALCASE=1; export DUALCASE # for MKS sh |
503d2be0 | 21435 | |
c0d27fcc | 21436 | # Support unset when possible. |
35996d22 | 21437 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
21438 | as_unset=unset |
21439 | else | |
21440 | as_unset=false | |
21441 | fi | |
21442 | ||
6bae0ccf DL |
21443 | |
21444 | # Work around bugs in pre-3.0 UWIN ksh. | |
21445 | $as_unset ENV MAIL MAILPATH | |
21446 | PS1='$ ' | |
21447 | PS2='> ' | |
21448 | PS4='+ ' | |
21449 | ||
21450 | # NLS nuisances. | |
19650fd6 AS |
21451 | for as_var in \ |
21452 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21453 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21454 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 21455 | do |
35996d22 | 21456 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
21457 | eval $as_var=C; export $as_var |
21458 | else | |
21459 | $as_unset $as_var | |
21460 | fi | |
21461 | done | |
21462 | ||
21463 | # Required to use basename. | |
21464 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21465 | as_expr=expr | |
21466 | else | |
21467 | as_expr=false | |
21468 | fi | |
21469 | ||
21470 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21471 | as_basename=basename | |
21472 | else | |
21473 | as_basename=false | |
21474 | fi | |
c0d27fcc MR |
21475 | |
21476 | ||
503d2be0 | 21477 | # Name of the executable. |
6bae0ccf | 21478 | as_me=`$as_basename "$0" || |
c0d27fcc MR |
21479 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
21480 | X"$0" : 'X\(//\)$' \| \ | |
21481 | X"$0" : 'X\(/\)$' \| \ | |
21482 | . : '\(.\)' 2>/dev/null || | |
21483 | echo X/"$0" | | |
21484 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21485 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21486 | /^X\/\(\/\).*/{ s//\1/; q; } | |
21487 | s/.*/./; q'` | |
21488 | ||
6bae0ccf | 21489 | |
c0d27fcc MR |
21490 | # PATH needs CR, and LINENO needs CR and PATH. |
21491 | # Avoid depending upon Character Ranges. | |
21492 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21493 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21494 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21495 | as_cr_digits='0123456789' | |
21496 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21497 | ||
21498 | # The user is always right. | |
21499 | if test "${PATH_SEPARATOR+set}" != set; then | |
19650fd6 AS |
21500 | echo "#! /bin/sh" >conf$$.sh |
21501 | echo "exit 0" >>conf$$.sh | |
21502 | chmod +x conf$$.sh | |
21503 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
c0d27fcc MR |
21504 | PATH_SEPARATOR=';' |
21505 | else | |
21506 | PATH_SEPARATOR=: | |
21507 | fi | |
19650fd6 | 21508 | rm -f conf$$.sh |
c0d27fcc MR |
21509 | fi |
21510 | ||
21511 | ||
21512 | as_lineno_1=$LINENO | |
21513 | as_lineno_2=$LINENO | |
21514 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21515 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21516 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21517 | # Find who we are. Look in the path if we contain no path at all | |
21518 | # relative or not. | |
21519 | case $0 in | |
21520 | *[\\/]* ) as_myself=$0 ;; | |
21521 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21522 | for as_dir in $PATH | |
21523 | do | |
21524 | IFS=$as_save_IFS | |
21525 | test -z "$as_dir" && as_dir=. | |
21526 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21527 | done | |
21528 | ||
21529 | ;; | |
21530 | esac | |
21531 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21532 | # in which case we are not to be found in the path. | |
21533 | if test "x$as_myself" = x; then | |
21534 | as_myself=$0 | |
21535 | fi | |
21536 | if test ! -f "$as_myself"; then | |
21537 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21538 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21539 | { (exit 1); exit 1; }; } | |
21540 | fi | |
21541 | case $CONFIG_SHELL in | |
21542 | '') | |
21543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21544 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21545 | do | |
21546 | IFS=$as_save_IFS | |
21547 | test -z "$as_dir" && as_dir=. | |
21548 | for as_base in sh bash ksh sh5; do | |
21549 | case $as_dir in | |
21550 | /*) | |
21551 | if ("$as_dir/$as_base" -c ' | |
21552 | as_lineno_1=$LINENO | |
21553 | as_lineno_2=$LINENO | |
21554 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21555 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21556 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6bae0ccf DL |
21557 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
21558 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
c0d27fcc MR |
21559 | CONFIG_SHELL=$as_dir/$as_base |
21560 | export CONFIG_SHELL | |
21561 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21562 | fi;; | |
21563 | esac | |
21564 | done | |
21565 | done | |
21566 | ;; | |
21567 | esac | |
21568 | ||
21569 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21570 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21571 | # line-number line before each line; the second 'sed' does the real | |
21572 | # work. The second script uses 'N' to pair each line-number line | |
21573 | # with the numbered line, and appends trailing '-' during | |
21574 | # substitution so that $LINENO is not a special case at line end. | |
21575 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21576 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21577 | sed '=' <$as_myself | | |
21578 | sed ' | |
21579 | N | |
21580 | s,$,-, | |
21581 | : loop | |
21582 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21583 | t loop | |
21584 | s,-$,, | |
21585 | s,^['$as_cr_digits']*\n,, | |
21586 | ' >$as_me.lineno && | |
21587 | chmod +x $as_me.lineno || | |
21588 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21589 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
21590 | { (exit 1); exit 1; }; } | |
21591 | ||
21592 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21593 | # (the dirname of $[0] is not the place where we might find the | |
21594 | # original and so on. Autoconf is especially sensible to this). | |
21595 | . ./$as_me.lineno | |
21596 | # Exit status is that of the last command. | |
21597 | exit | |
21598 | } | |
21599 | ||
21600 | ||
21601 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
21602 | *c*,-n*) ECHO_N= ECHO_C=' | |
21603 | ' ECHO_T=' ' ;; | |
21604 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21605 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
21606 | esac | |
503d2be0 AS |
21607 | |
21608 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21609 | as_expr=expr | |
21610 | else | |
21611 | as_expr=false | |
21612 | fi | |
21613 | ||
21614 | rm -f conf$$ conf$$.exe conf$$.file | |
21615 | echo >conf$$.file | |
21616 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21617 | # We could just check for DJGPP; but this test a) works b) is more generic | |
21618 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21619 | if test -f conf$$.exe; then | |
21620 | # Don't use ln at all; we don't have any links | |
21621 | as_ln_s='cp -p' | |
21622 | else | |
21623 | as_ln_s='ln -s' | |
21624 | fi | |
21625 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21626 | as_ln_s=ln | |
21627 | else | |
21628 | as_ln_s='cp -p' | |
21629 | fi | |
21630 | rm -f conf$$ conf$$.exe conf$$.file | |
21631 | ||
6bae0ccf DL |
21632 | if mkdir -p . 2>/dev/null; then |
21633 | as_mkdir_p=: | |
21634 | else | |
35996d22 | 21635 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
21636 | as_mkdir_p=false |
21637 | fi | |
21638 | ||
503d2be0 AS |
21639 | as_executable_p="test -f" |
21640 | ||
c0d27fcc | 21641 | # Sed expression to map a string onto a valid CPP name. |
35996d22 | 21642 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
21643 | |
21644 | # Sed expression to map a string onto a valid variable name. | |
35996d22 | 21645 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 21646 | |
503d2be0 AS |
21647 | |
21648 | # IFS | |
21649 | # We need space, tab and new line, in precisely that order. | |
21650 | as_nl=' | |
21651 | ' | |
21652 | IFS=" $as_nl" | |
21653 | ||
21654 | # CDPATH. | |
6bae0ccf | 21655 | $as_unset CDPATH |
503d2be0 AS |
21656 | |
21657 | exec 6>&1 | |
21658 | ||
c0d27fcc MR |
21659 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
21660 | # report actual input values of CONFIG_FILES etc. instead of their | |
21661 | # values after options handling. Logging --version etc. is OK. | |
21662 | exec 5>>config.log | |
21663 | { | |
21664 | echo | |
21665 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21666 | ## Running $as_me. ## | |
21667 | _ASBOX | |
21668 | } >&5 | |
21669 | cat >&5 <<_CSEOF | |
21670 | ||
21671 | This file was extended by $as_me, which was | |
35996d22 | 21672 | generated by GNU Autoconf 2.59. Invocation command line was |
c0d27fcc MR |
21673 | |
21674 | CONFIG_FILES = $CONFIG_FILES | |
21675 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21676 | CONFIG_LINKS = $CONFIG_LINKS | |
21677 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21678 | $ $0 $@ | |
21679 | ||
21680 | _CSEOF | |
21681 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
21682 | echo >&5 | |
503d2be0 AS |
21683 | _ACEOF |
21684 | ||
21685 | # Files that config.status was made for. | |
21686 | if test -n "$ac_config_files"; then | |
21687 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
21688 | fi | |
21689 | ||
21690 | if test -n "$ac_config_headers"; then | |
21691 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
21692 | fi | |
21693 | ||
21694 | if test -n "$ac_config_links"; then | |
21695 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
21696 | fi | |
21697 | ||
21698 | if test -n "$ac_config_commands"; then | |
21699 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
21700 | fi | |
21701 | ||
c0d27fcc | 21702 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
21703 | |
21704 | ac_cs_usage="\ | |
21705 | \`$as_me' instantiates files from templates according to the | |
21706 | current configuration. | |
21707 | ||
21708 | Usage: $0 [OPTIONS] [FILE]... | |
21709 | ||
21710 | -h, --help print this help, then exit | |
21711 | -V, --version print version number, then exit | |
19650fd6 | 21712 | -q, --quiet do not print progress messages |
503d2be0 AS |
21713 | -d, --debug don't remove temporary files |
21714 | --recheck update $as_me by reconfiguring in the same conditions | |
21715 | --file=FILE[:TEMPLATE] | |
35996d22 | 21716 | instantiate the configuration file FILE |
503d2be0 | 21717 | --header=FILE[:TEMPLATE] |
35996d22 | 21718 | instantiate the configuration header FILE |
503d2be0 AS |
21719 | |
21720 | Configuration files: | |
21721 | $config_files | |
21722 | ||
21723 | Configuration headers: | |
21724 | $config_headers | |
21725 | ||
21726 | Configuration commands: | |
21727 | $config_commands | |
21728 | ||
21729 | Report bugs to <bug-autoconf@gnu.org>." | |
c0d27fcc | 21730 | _ACEOF |
503d2be0 | 21731 | |
c0d27fcc | 21732 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
21733 | ac_cs_version="\\ |
21734 | config.status | |
35996d22 | 21735 | configured by $0, generated by GNU Autoconf 2.59, |
503d2be0 AS |
21736 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
21737 | ||
35996d22 | 21738 | Copyright (C) 2003 Free Software Foundation, Inc. |
503d2be0 AS |
21739 | This config.status script is free software; the Free Software Foundation |
21740 | gives unlimited permission to copy, distribute and modify it." | |
21741 | srcdir=$srcdir | |
21742 | INSTALL="$INSTALL" | |
c0d27fcc | 21743 | _ACEOF |
503d2be0 | 21744 | |
c0d27fcc | 21745 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
21746 | # If no file are specified by the user, then we need to provide default |
21747 | # value. By we need to know if files were specified by the user. | |
21748 | ac_need_defaults=: | |
21749 | while test $# != 0 | |
ba4481b5 | 21750 | do |
503d2be0 AS |
21751 | case $1 in |
21752 | --*=*) | |
21753 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
21754 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6bae0ccf DL |
21755 | ac_shift=: |
21756 | ;; | |
21757 | -*) | |
21758 | ac_option=$1 | |
21759 | ac_optarg=$2 | |
21760 | ac_shift=shift | |
503d2be0 | 21761 | ;; |
503d2be0 AS |
21762 | *) # This is not an option, so the user has probably given explicit |
21763 | # arguments. | |
6bae0ccf | 21764 | ac_option=$1 |
503d2be0 AS |
21765 | ac_need_defaults=false;; |
21766 | esac | |
21767 | ||
6bae0ccf | 21768 | case $ac_option in |
503d2be0 | 21769 | # Handling of the options. |
c0d27fcc | 21770 | _ACEOF |
f57bd967 | 21771 | cat >>$CONFIG_STATUS <<\_ACEOF |
19650fd6 AS |
21772 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
21773 | ac_cs_recheck=: ;; | |
503d2be0 AS |
21774 | --version | --vers* | -V ) |
21775 | echo "$ac_cs_version"; exit 0 ;; | |
21776 | --he | --h) | |
21777 | # Conflict between --help and --header | |
c0d27fcc | 21778 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
503d2be0 AS |
21779 | Try \`$0 --help' for more information." >&5 |
21780 | echo "$as_me: error: ambiguous option: $1 | |
21781 | Try \`$0 --help' for more information." >&2;} | |
21782 | { (exit 1); exit 1; }; };; | |
21783 | --help | --hel | -h ) | |
21784 | echo "$ac_cs_usage"; exit 0 ;; | |
21785 | --debug | --d* | -d ) | |
21786 | debug=: ;; | |
21787 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
21788 | $ac_shift |
21789 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
21790 | ac_need_defaults=false;; |
21791 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
21792 | $ac_shift |
21793 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 21794 | ac_need_defaults=false;; |
19650fd6 AS |
21795 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
21796 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21797 | ac_cs_silent=: ;; | |
503d2be0 AS |
21798 | |
21799 | # This is an error. | |
c0d27fcc | 21800 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
503d2be0 AS |
21801 | Try \`$0 --help' for more information." >&5 |
21802 | echo "$as_me: error: unrecognized option: $1 | |
21803 | Try \`$0 --help' for more information." >&2;} | |
21804 | { (exit 1); exit 1; }; } ;; | |
21805 | ||
21806 | *) ac_config_targets="$ac_config_targets $1" ;; | |
21807 | ||
ba4481b5 | 21808 | esac |
503d2be0 | 21809 | shift |
ba4481b5 DL |
21810 | done |
21811 | ||
19650fd6 AS |
21812 | ac_configure_extra_args= |
21813 | ||
21814 | if $ac_cs_silent; then | |
21815 | exec 6>/dev/null | |
21816 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21817 | fi | |
21818 | ||
21819 | _ACEOF | |
21820 | cat >>$CONFIG_STATUS <<_ACEOF | |
21821 | if \$ac_cs_recheck; then | |
21822 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
21823 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21824 | fi | |
21825 | ||
503d2be0 | 21826 | _ACEOF |
ba4481b5 | 21827 | |
c0d27fcc | 21828 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
21829 | # |
21830 | # INIT-COMMANDS section. | |
21831 | # | |
ba4481b5 | 21832 | |
503d2be0 AS |
21833 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
21834 | ||
c0d27fcc MR |
21835 | _ACEOF |
21836 | ||
503d2be0 | 21837 | |
c0d27fcc MR |
21838 | |
21839 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
21840 | for ac_config_target in $ac_config_targets |
21841 | do | |
21842 | case "$ac_config_target" in | |
21843 | # Handling of arguments. | |
21844 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
21845 | "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
21846 | "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
21847 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
21848 | "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
21849 | "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
21850 | "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
23b24859 | 21851 | "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
981626b7 | 21852 | "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
503d2be0 AS |
21853 | "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
21854 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
21855 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
c0d27fcc | 21856 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
21857 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
21858 | { (exit 1); exit 1; }; };; | |
21859 | esac | |
ba4481b5 | 21860 | done |
503d2be0 AS |
21861 | |
21862 | # If the user did not use the arguments to specify the items to instantiate, | |
21863 | # then the envvar interface is used. Set only those that are not. | |
21864 | # We use the long form for the default assignment because of an extremely | |
21865 | # bizarre bug on SunOS 4.1.3. | |
21866 | if $ac_need_defaults; then | |
21867 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21868 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21869 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 21870 | fi |
503d2be0 | 21871 | |
19650fd6 AS |
21872 | # Have a temporary directory for convenience. Make it in the build tree |
21873 | # simply because there is no reason to put it here, and in addition, | |
21874 | # creating and moving files from /tmp can sometimes cause problems. | |
503d2be0 AS |
21875 | # Create a temporary directory, and hook for its removal unless debugging. |
21876 | $debug || | |
21877 | { | |
21878 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
21879 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21880 | } | |
21881 | ||
21882 | # Create a (secure) tmp directory for tmp files. | |
19650fd6 | 21883 | |
503d2be0 | 21884 | { |
19650fd6 | 21885 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
503d2be0 AS |
21886 | test -n "$tmp" && test -d "$tmp" |
21887 | } || | |
21888 | { | |
19650fd6 | 21889 | tmp=./confstat$$-$RANDOM |
503d2be0 AS |
21890 | (umask 077 && mkdir $tmp) |
21891 | } || | |
21892 | { | |
19650fd6 | 21893 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
21894 | { (exit 1); exit 1; } |
21895 | } | |
21896 | ||
c0d27fcc | 21897 | _ACEOF |
503d2be0 | 21898 | |
c0d27fcc | 21899 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
21900 | |
21901 | # | |
21902 | # CONFIG_FILES section. | |
21903 | # | |
21904 | ||
21905 | # No need to generate the scripts if there are no CONFIG_FILES. | |
21906 | # This happens for instance when ./config.status config.h | |
21907 | if test -n "\$CONFIG_FILES"; then | |
21908 | # Protect against being on the right side of a sed subst in config.status. | |
21909 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
21910 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
21911 | s,@SHELL@,$SHELL,;t t | |
c0d27fcc MR |
21912 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
21913 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
21914 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
21915 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
21916 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
21917 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
503d2be0 AS |
21918 | s,@exec_prefix@,$exec_prefix,;t t |
21919 | s,@prefix@,$prefix,;t t | |
21920 | s,@program_transform_name@,$program_transform_name,;t t | |
21921 | s,@bindir@,$bindir,;t t | |
21922 | s,@sbindir@,$sbindir,;t t | |
21923 | s,@libexecdir@,$libexecdir,;t t | |
21924 | s,@datadir@,$datadir,;t t | |
21925 | s,@sysconfdir@,$sysconfdir,;t t | |
21926 | s,@sharedstatedir@,$sharedstatedir,;t t | |
21927 | s,@localstatedir@,$localstatedir,;t t | |
21928 | s,@libdir@,$libdir,;t t | |
21929 | s,@includedir@,$includedir,;t t | |
21930 | s,@oldincludedir@,$oldincludedir,;t t | |
21931 | s,@infodir@,$infodir,;t t | |
21932 | s,@mandir@,$mandir,;t t | |
503d2be0 AS |
21933 | s,@build_alias@,$build_alias,;t t |
21934 | s,@host_alias@,$host_alias,;t t | |
21935 | s,@target_alias@,$target_alias,;t t | |
c0d27fcc | 21936 | s,@DEFS@,$DEFS,;t t |
503d2be0 AS |
21937 | s,@ECHO_C@,$ECHO_C,;t t |
21938 | s,@ECHO_N@,$ECHO_N,;t t | |
21939 | s,@ECHO_T@,$ECHO_T,;t t | |
503d2be0 | 21940 | s,@LIBS@,$LIBS,;t t |
19650fd6 | 21941 | s,@MAINT@,$MAINT,;t t |
503d2be0 AS |
21942 | s,@build@,$build,;t t |
21943 | s,@build_cpu@,$build_cpu,;t t | |
21944 | s,@build_vendor@,$build_vendor,;t t | |
21945 | s,@build_os@,$build_os,;t t | |
21946 | s,@host@,$host,;t t | |
21947 | s,@host_cpu@,$host_cpu,;t t | |
21948 | s,@host_vendor@,$host_vendor,;t t | |
21949 | s,@host_os@,$host_os,;t t | |
21950 | s,@CC@,$CC,;t t | |
21951 | s,@CFLAGS@,$CFLAGS,;t t | |
21952 | s,@LDFLAGS@,$LDFLAGS,;t t | |
21953 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
21954 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
21955 | s,@EXEEXT@,$EXEEXT,;t t | |
21956 | s,@OBJEXT@,$OBJEXT,;t t | |
21957 | s,@LN_S@,$LN_S,;t t | |
21958 | s,@CPP@,$CPP,;t t | |
21959 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
21960 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
21961 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
503d2be0 AS |
21962 | s,@RANLIB@,$RANLIB,;t t |
21963 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9e71690e | 21964 | s,@INSTALL_INFO@,$INSTALL_INFO,;t t |
6bae0ccf | 21965 | s,@EGREP@,$EGREP,;t t |
503d2be0 AS |
21966 | s,@LIBSOUND@,$LIBSOUND,;t t |
21967 | s,@SET_MAKE@,$SET_MAKE,;t t | |
488dd4c4 JD |
21968 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
21969 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
21970 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
503d2be0 AS |
21971 | s,@ALLOCA@,$ALLOCA,;t t |
21972 | s,@liblockfile@,$liblockfile,;t t | |
21973 | s,@LIBOBJS@,$LIBOBJS,;t t | |
21974 | s,@NEED_SETGID@,$NEED_SETGID,;t t | |
21975 | s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
21976 | s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
21977 | s,@version@,$version,;t t | |
21978 | s,@configuration@,$configuration,;t t | |
21979 | s,@canonical@,$canonical,;t t | |
21980 | s,@srcdir@,$srcdir,;t t | |
21981 | s,@lispdir@,$lispdir,;t t | |
21982 | s,@locallisppath@,$locallisppath,;t t | |
21983 | s,@lisppath@,$lisppath,;t t | |
21984 | s,@x_default_search_path@,$x_default_search_path,;t t | |
21985 | s,@etcdir@,$etcdir,;t t | |
21986 | s,@archlibdir@,$archlibdir,;t t | |
21987 | s,@docdir@,$docdir,;t t | |
21988 | s,@bitmapdir@,$bitmapdir,;t t | |
98418dba CW |
21989 | s,@gamedir@,$gamedir,;t t |
21990 | s,@gameuser@,$gameuser,;t t | |
503d2be0 AS |
21991 | s,@c_switch_system@,$c_switch_system,;t t |
21992 | s,@c_switch_machine@,$c_switch_machine,;t t | |
21993 | s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
21994 | s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
21995 | s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
21996 | s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
21997 | s,@machfile@,$machfile,;t t | |
21998 | s,@opsysfile@,$opsysfile,;t t | |
6a3a24fa | 21999 | s,@carbon_appdir@,$carbon_appdir,;t t |
6bae0ccf | 22000 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
503d2be0 AS |
22001 | CEOF |
22002 | ||
c0d27fcc | 22003 | _ACEOF |
ba4481b5 | 22004 | |
c0d27fcc | 22005 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
22006 | # Split the substitutions into bite-sized pieces for seds with |
22007 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22008 | ac_max_sed_lines=48 | |
22009 | ac_sed_frag=1 # Number of current file. | |
22010 | ac_beg=1 # First line for current file. | |
22011 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22012 | ac_more_lines=: | |
22013 | ac_sed_cmds= | |
22014 | while $ac_more_lines; do | |
22015 | if test $ac_beg -gt 1; then | |
22016 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22017 | else | |
22018 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22019 | fi | |
22020 | if test ! -s $tmp/subs.frag; then | |
22021 | ac_more_lines=false | |
22022 | else | |
22023 | # The purpose of the label and of the branching condition is to | |
22024 | # speed up the sed processing (if there are no `@' at all, there | |
22025 | # is no need to browse any of the substitutions). | |
22026 | # These are the two extra sed commands mentioned above. | |
22027 | (echo ':t | |
22028 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22029 | if test -z "$ac_sed_cmds"; then | |
35996d22 | 22030 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 | 22031 | else |
35996d22 | 22032 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 AS |
22033 | fi |
22034 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22035 | ac_beg=$ac_end | |
22036 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
22037 | fi | |
22038 | done | |
22039 | if test -z "$ac_sed_cmds"; then | |
22040 | ac_sed_cmds=cat | |
22041 | fi | |
22042 | fi # test -n "$CONFIG_FILES" | |
ba4481b5 | 22043 | |
c0d27fcc MR |
22044 | _ACEOF |
22045 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 | 22046 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
ba4481b5 | 22047 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
22048 | case $ac_file in |
22049 | - | *:- | *:-:* ) # input from stdin | |
35996d22 AS |
22050 | cat >$tmp/stdin |
22051 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22052 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 22053 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
35996d22 | 22054 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 22055 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
22056 | esac |
22057 | ||
503d2be0 | 22058 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
c0d27fcc MR |
22059 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
22060 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22061 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22062 | X"$ac_file" : 'X\(//\)$' \| \ | |
22063 | X"$ac_file" : 'X\(/\)' \| \ | |
22064 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
22065 | echo X"$ac_file" | |
22066 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22067 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22068 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22069 | /^X\(\/\).*/{ s//\1/; q; } | |
22070 | s/.*/./; q'` | |
6bae0ccf DL |
22071 | { if $as_mkdir_p; then |
22072 | mkdir -p "$ac_dir" | |
22073 | else | |
22074 | as_dir="$ac_dir" | |
22075 | as_dirs= | |
22076 | while test ! -d "$as_dir"; do | |
22077 | as_dirs="$as_dir $as_dirs" | |
22078 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22079 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22080 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22081 | X"$as_dir" : 'X\(//\)$' \| \ | |
22082 | X"$as_dir" : 'X\(/\)' \| \ | |
22083 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
22084 | echo X"$as_dir" | |
22085 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22086 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22087 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22088 | /^X\(\/\).*/{ s//\1/; q; } | |
22089 | s/.*/./; q'` | |
22090 | done | |
22091 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22092 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22093 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22094 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 22095 | |
c0d27fcc | 22096 | ac_builddir=. |
98418dba | 22097 | |
c0d27fcc MR |
22098 | if test "$ac_dir" != .; then |
22099 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22100 | # A "../" for each directory in $ac_dir_suffix. | |
22101 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22102 | else | |
22103 | ac_dir_suffix= ac_top_builddir= | |
22104 | fi | |
22105 | ||
22106 | case $srcdir in | |
22107 | .) # No --srcdir option. We are building in place. | |
22108 | ac_srcdir=. | |
22109 | if test -z "$ac_top_builddir"; then | |
22110 | ac_top_srcdir=. | |
22111 | else | |
22112 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22113 | fi ;; | |
22114 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22115 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22116 | ac_top_srcdir=$srcdir ;; | |
ba4481b5 | 22117 | *) # Relative path. |
c0d27fcc MR |
22118 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
22119 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22120 | esac | |
35996d22 AS |
22121 | |
22122 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22123 | # the directories may not exist. | |
22124 | case `pwd` in | |
22125 | .) ac_abs_builddir="$ac_dir";; | |
22126 | *) | |
22127 | case "$ac_dir" in | |
22128 | .) ac_abs_builddir=`pwd`;; | |
22129 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22130 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22131 | esac;; | |
22132 | esac | |
22133 | case $ac_abs_builddir in | |
22134 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22135 | *) | |
22136 | case ${ac_top_builddir}. in | |
22137 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22138 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22139 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22140 | esac;; | |
22141 | esac | |
22142 | case $ac_abs_builddir in | |
22143 | .) ac_abs_srcdir=$ac_srcdir;; | |
22144 | *) | |
22145 | case $ac_srcdir in | |
22146 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22147 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22148 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22149 | esac;; | |
22150 | esac | |
22151 | case $ac_abs_builddir in | |
22152 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22153 | *) | |
22154 | case $ac_top_srcdir in | |
22155 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22156 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22157 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22158 | esac;; | |
22159 | esac | |
c0d27fcc | 22160 | |
ba4481b5 | 22161 | |
503d2be0 AS |
22162 | case $INSTALL in |
22163 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
c0d27fcc | 22164 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
ba4481b5 DL |
22165 | esac |
22166 | ||
503d2be0 | 22167 | if test x"$ac_file" != x-; then |
c0d27fcc | 22168 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
22169 | echo "$as_me: creating $ac_file" >&6;} |
22170 | rm -f "$ac_file" | |
22171 | fi | |
22172 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22173 | # use $as_me), people would be surprised to read: | |
c0d27fcc MR |
22174 | # /* config.h. Generated by config.status. */ |
22175 | if test x"$ac_file" = x-; then | |
22176 | configure_input= | |
22177 | else | |
22178 | configure_input="$ac_file. " | |
22179 | fi | |
22180 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
35996d22 | 22181 | sed 's,.*/,,'` by configure." |
503d2be0 AS |
22182 | |
22183 | # First look for the input files in the build tree, otherwise in the | |
22184 | # src tree. | |
22185 | ac_file_inputs=`IFS=: | |
22186 | for f in $ac_file_in; do | |
22187 | case $f in | |
22188 | -) echo $tmp/stdin ;; | |
22189 | [\\/$]*) | |
35996d22 AS |
22190 | # Absolute (can't be DOS-style, as IFS=:) |
22191 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22192 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22193 | { (exit 1); exit 1; }; } | |
35996d22 | 22194 | echo "$f";; |
503d2be0 | 22195 | *) # Relative |
35996d22 AS |
22196 | if test -f "$f"; then |
22197 | # Build tree | |
22198 | echo "$f" | |
22199 | elif test -f "$srcdir/$f"; then | |
22200 | # Source tree | |
22201 | echo "$srcdir/$f" | |
22202 | else | |
22203 | # /dev/null tree | |
22204 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22205 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22206 | { (exit 1); exit 1; }; } | |
35996d22 | 22207 | fi;; |
503d2be0 AS |
22208 | esac |
22209 | done` || { (exit 1); exit 1; } | |
c0d27fcc MR |
22210 | _ACEOF |
22211 | cat >>$CONFIG_STATUS <<_ACEOF | |
503d2be0 AS |
22212 | sed "$ac_vpsub |
22213 | $extrasub | |
c0d27fcc MR |
22214 | _ACEOF |
22215 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
22216 | :t |
22217 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22218 | s,@configure_input@,$configure_input,;t t | |
22219 | s,@srcdir@,$ac_srcdir,;t t | |
c0d27fcc | 22220 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
503d2be0 | 22221 | s,@top_srcdir@,$ac_top_srcdir,;t t |
c0d27fcc MR |
22222 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
22223 | s,@builddir@,$ac_builddir,;t t | |
22224 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
22225 | s,@top_builddir@,$ac_top_builddir,;t t | |
22226 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
503d2be0 AS |
22227 | s,@INSTALL@,$ac_INSTALL,;t t |
22228 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22229 | rm -f $tmp/stdin | |
22230 | if test x"$ac_file" != x-; then | |
22231 | mv $tmp/out $ac_file | |
22232 | else | |
22233 | cat $tmp/out | |
22234 | rm -f $tmp/out | |
22235 | fi | |
22236 | ||
22237 | done | |
c0d27fcc MR |
22238 | _ACEOF |
22239 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ba4481b5 | 22240 | |
503d2be0 AS |
22241 | # |
22242 | # CONFIG_HEADER section. | |
22243 | # | |
ba4481b5 DL |
22244 | |
22245 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22246 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22247 | # | |
22248 | # ac_d sets the value in "#define NAME VALUE" lines. | |
35996d22 AS |
22249 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22250 | ac_dB='[ ].*$,\1#\2' | |
503d2be0 AS |
22251 | ac_dC=' ' |
22252 | ac_dD=',;t' | |
22253 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
35996d22 | 22254 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
503d2be0 | 22255 | ac_uB='$,\1#\2define\3' |
ba4481b5 | 22256 | ac_uC=' ' |
503d2be0 | 22257 | ac_uD=',;t' |
ba4481b5 | 22258 | |
503d2be0 | 22259 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
ba4481b5 | 22260 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
22261 | case $ac_file in |
22262 | - | *:- | *:-:* ) # input from stdin | |
35996d22 AS |
22263 | cat >$tmp/stdin |
22264 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22265 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 22266 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
35996d22 | 22267 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 22268 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
22269 | esac |
22270 | ||
c0d27fcc | 22271 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
22272 | echo "$as_me: creating $ac_file" >&6;} |
22273 | ||
22274 | # First look for the input files in the build tree, otherwise in the | |
22275 | # src tree. | |
22276 | ac_file_inputs=`IFS=: | |
22277 | for f in $ac_file_in; do | |
22278 | case $f in | |
22279 | -) echo $tmp/stdin ;; | |
22280 | [\\/$]*) | |
35996d22 AS |
22281 | # Absolute (can't be DOS-style, as IFS=:) |
22282 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22283 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22284 | { (exit 1); exit 1; }; } | |
35996d22 AS |
22285 | # Do quote $f, to prevent DOS paths from being IFS'd. |
22286 | echo "$f";; | |
503d2be0 | 22287 | *) # Relative |
35996d22 AS |
22288 | if test -f "$f"; then |
22289 | # Build tree | |
22290 | echo "$f" | |
22291 | elif test -f "$srcdir/$f"; then | |
22292 | # Source tree | |
22293 | echo "$srcdir/$f" | |
22294 | else | |
22295 | # /dev/null tree | |
22296 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22297 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22298 | { (exit 1); exit 1; }; } | |
35996d22 | 22299 | fi;; |
503d2be0 AS |
22300 | esac |
22301 | done` || { (exit 1); exit 1; } | |
22302 | # Remove the trailing spaces. | |
35996d22 | 22303 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
503d2be0 | 22304 | |
c0d27fcc | 22305 | _ACEOF |
503d2be0 AS |
22306 | |
22307 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
22308 | # `conftest.undefs', that substitutes the proper values into | |
22309 | # config.h.in to produce config.h. The first handles `#define' | |
22310 | # templates, and the second `#undef' templates. | |
22311 | # And first: Protect against being on the right side of a sed subst in | |
22312 | # config.status. Protect against being in an unquoted here document | |
22313 | # in config.status. | |
22314 | rm -f conftest.defines conftest.undefs | |
22315 | # Using a here document instead of a string reduces the quoting nightmare. | |
22316 | # Putting comments in sed scripts is not portable. | |
22317 | # | |
22318 | # `end' is used to avoid that the second main sed command (meant for | |
22319 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
22320 | # See the Autoconf documentation for `clear'. | |
c0d27fcc | 22321 | cat >confdef2sed.sed <<\_ACEOF |
503d2be0 AS |
22322 | s/[\\&,]/\\&/g |
22323 | s,[\\$`],\\&,g | |
22324 | t clear | |
22325 | : clear | |
35996d22 | 22326 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
503d2be0 | 22327 | t end |
35996d22 | 22328 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
503d2be0 | 22329 | : end |
c0d27fcc | 22330 | _ACEOF |
503d2be0 AS |
22331 | # If some macros were called several times there might be several times |
22332 | # the same #defines, which is useless. Nevertheless, we may not want to | |
22333 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
22334 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
22335 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
22336 | rm -f confdef2sed.sed | |
ba4481b5 DL |
22337 | |
22338 | # This sed command replaces #undef with comments. This is necessary, for | |
22339 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22340 | # on some systems where configure will not decide to define it. | |
c0d27fcc | 22341 | cat >>conftest.undefs <<\_ACEOF |
35996d22 | 22342 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
c0d27fcc | 22343 | _ACEOF |
ba4481b5 | 22344 | |
503d2be0 AS |
22345 | # Break up conftest.defines because some shells have a limit on the size |
22346 | # of here documents, and old seds have small limits too (100 cmds). | |
22347 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
35996d22 | 22348 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
503d2be0 AS |
22349 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
22350 | echo ' :' >>$CONFIG_STATUS | |
22351 | rm -f conftest.tail | |
22352 | while grep . conftest.defines >/dev/null | |
22353 | do | |
22354 | # Write a limited-size here document to $tmp/defines.sed. | |
22355 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
22356 | # Speed up: don't consider the non `#define' lines. | |
35996d22 | 22357 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
503d2be0 AS |
22358 | # Work around the forget-to-reset-the-flag bug. |
22359 | echo 't clr' >>$CONFIG_STATUS | |
22360 | echo ': clr' >>$CONFIG_STATUS | |
22361 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22362 | echo 'CEOF | |
22363 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22364 | rm -f $tmp/in | |
22365 | mv $tmp/out $tmp/in | |
22366 | ' >>$CONFIG_STATUS | |
22367 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22368 | rm -f conftest.defines | |
22369 | mv conftest.tail conftest.defines | |
22370 | done | |
22371 | rm -f conftest.defines | |
6bae0ccf | 22372 | echo ' fi # grep' >>$CONFIG_STATUS |
503d2be0 | 22373 | echo >>$CONFIG_STATUS |
ba4481b5 | 22374 | |
503d2be0 AS |
22375 | # Break up conftest.undefs because some shells have a limit on the size |
22376 | # of here documents, and old seds have small limits too (100 cmds). | |
22377 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
ba4481b5 | 22378 | rm -f conftest.tail |
503d2be0 | 22379 | while grep . conftest.undefs >/dev/null |
ba4481b5 | 22380 | do |
503d2be0 AS |
22381 | # Write a limited-size here document to $tmp/undefs.sed. |
22382 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22383 | # Speed up: don't consider the non `#undef' | |
35996d22 | 22384 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
503d2be0 AS |
22385 | # Work around the forget-to-reset-the-flag bug. |
22386 | echo 't clr' >>$CONFIG_STATUS | |
22387 | echo ': clr' >>$CONFIG_STATUS | |
22388 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
ba4481b5 | 22389 | echo 'CEOF |
503d2be0 AS |
22390 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
22391 | rm -f $tmp/in | |
22392 | mv $tmp/out $tmp/in | |
22393 | ' >>$CONFIG_STATUS | |
22394 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22395 | rm -f conftest.undefs | |
22396 | mv conftest.tail conftest.undefs | |
ba4481b5 | 22397 | done |
503d2be0 AS |
22398 | rm -f conftest.undefs |
22399 | ||
c0d27fcc | 22400 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
22401 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
22402 | # use $as_me), people would be surprised to read: | |
c0d27fcc | 22403 | # /* config.h. Generated by config.status. */ |
503d2be0 | 22404 | if test x"$ac_file" = x-; then |
c0d27fcc | 22405 | echo "/* Generated by configure. */" >$tmp/config.h |
ba4481b5 | 22406 | else |
c0d27fcc | 22407 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
503d2be0 AS |
22408 | fi |
22409 | cat $tmp/in >>$tmp/config.h | |
22410 | rm -f $tmp/in | |
22411 | if test x"$ac_file" != x-; then | |
19650fd6 | 22412 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
c0d27fcc | 22413 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
22414 | echo "$as_me: $ac_file is unchanged" >&6;} |
22415 | else | |
c0d27fcc MR |
22416 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
22417 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22418 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22419 | X"$ac_file" : 'X\(//\)$' \| \ | |
22420 | X"$ac_file" : 'X\(/\)' \| \ | |
22421 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
22422 | echo X"$ac_file" | |
22423 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22424 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22425 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22426 | /^X\(\/\).*/{ s//\1/; q; } | |
22427 | s/.*/./; q'` | |
6bae0ccf DL |
22428 | { if $as_mkdir_p; then |
22429 | mkdir -p "$ac_dir" | |
22430 | else | |
22431 | as_dir="$ac_dir" | |
22432 | as_dirs= | |
22433 | while test ! -d "$as_dir"; do | |
22434 | as_dirs="$as_dir $as_dirs" | |
22435 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22436 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22437 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22438 | X"$as_dir" : 'X\(//\)$' \| \ | |
22439 | X"$as_dir" : 'X\(/\)' \| \ | |
22440 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
22441 | echo X"$as_dir" | |
22442 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22443 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22444 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22445 | /^X\(\/\).*/{ s//\1/; q; } | |
22446 | s/.*/./; q'` | |
22447 | done | |
22448 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22449 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22450 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22451 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 22452 | |
503d2be0 AS |
22453 | rm -f $ac_file |
22454 | mv $tmp/config.h $ac_file | |
ba4481b5 | 22455 | fi |
503d2be0 AS |
22456 | else |
22457 | cat $tmp/config.h | |
22458 | rm -f $tmp/config.h | |
ba4481b5 | 22459 | fi |
503d2be0 | 22460 | done |
c0d27fcc MR |
22461 | _ACEOF |
22462 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
22463 | |
22464 | # | |
22465 | # CONFIG_COMMANDS section. | |
22466 | # | |
22467 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22468 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22469 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c0d27fcc MR |
22470 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
22471 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22472 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
22473 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22474 | X"$ac_dest" : 'X\(/\)' \| \ | |
22475 | . : '\(.\)' 2>/dev/null || | |
c0d27fcc MR |
22476 | echo X"$ac_dest" | |
22477 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22478 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22479 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22480 | /^X\(\/\).*/{ s//\1/; q; } | |
22481 | s/.*/./; q'` | |
35996d22 AS |
22482 | { if $as_mkdir_p; then |
22483 | mkdir -p "$ac_dir" | |
22484 | else | |
22485 | as_dir="$ac_dir" | |
22486 | as_dirs= | |
22487 | while test ! -d "$as_dir"; do | |
22488 | as_dirs="$as_dir $as_dirs" | |
22489 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22490 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22491 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22492 | X"$as_dir" : 'X\(//\)$' \| \ | |
22493 | X"$as_dir" : 'X\(/\)' \| \ | |
22494 | . : '\(.\)' 2>/dev/null || | |
22495 | echo X"$as_dir" | | |
22496 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22497 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22498 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22499 | /^X\(\/\).*/{ s//\1/; q; } | |
22500 | s/.*/./; q'` | |
22501 | done | |
22502 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22503 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22504 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22505 | { (exit 1); exit 1; }; }; } | |
22506 | ||
c0d27fcc MR |
22507 | ac_builddir=. |
22508 | ||
22509 | if test "$ac_dir" != .; then | |
22510 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22511 | # A "../" for each directory in $ac_dir_suffix. | |
22512 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22513 | else | |
22514 | ac_dir_suffix= ac_top_builddir= | |
22515 | fi | |
22516 | ||
22517 | case $srcdir in | |
22518 | .) # No --srcdir option. We are building in place. | |
22519 | ac_srcdir=. | |
22520 | if test -z "$ac_top_builddir"; then | |
22521 | ac_top_srcdir=. | |
22522 | else | |
22523 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22524 | fi ;; | |
22525 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22526 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22527 | ac_top_srcdir=$srcdir ;; | |
22528 | *) # Relative path. | |
22529 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22530 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22531 | esac | |
35996d22 AS |
22532 | |
22533 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22534 | # the directories may not exist. | |
22535 | case `pwd` in | |
22536 | .) ac_abs_builddir="$ac_dir";; | |
22537 | *) | |
22538 | case "$ac_dir" in | |
22539 | .) ac_abs_builddir=`pwd`;; | |
22540 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22541 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22542 | esac;; | |
22543 | esac | |
22544 | case $ac_abs_builddir in | |
22545 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22546 | *) | |
22547 | case ${ac_top_builddir}. in | |
22548 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22549 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22550 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22551 | esac;; | |
22552 | esac | |
22553 | case $ac_abs_builddir in | |
22554 | .) ac_abs_srcdir=$ac_srcdir;; | |
22555 | *) | |
22556 | case $ac_srcdir in | |
22557 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22558 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22559 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22560 | esac;; | |
22561 | esac | |
22562 | case $ac_abs_builddir in | |
22563 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22564 | *) | |
22565 | case $ac_top_srcdir in | |
22566 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22567 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22568 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22569 | esac;; | |
22570 | esac | |
ba4481b5 | 22571 | |
c0d27fcc MR |
22572 | |
22573 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
22574 | echo "$as_me: executing $ac_dest commands" >&6;} | |
503d2be0 AS |
22575 | case $ac_dest in |
22576 | default ) | |
ba4481b5 DL |
22577 | |
22578 | ### Make the necessary directories, if they don't exist. | |
22579 | for dir in etc lisp ; do | |
22580 | test -d ${dir} || mkdir ${dir} | |
22581 | done | |
22582 | ||
22583 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
22584 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
22585 | # This must be done after src/config.h is built, since we rely on that file. | |
22586 | ||
22587 | # Now get this: Some word that is part of the ${srcdir} directory name | |
22588 | # or the ${configuration} value might, just might, happen to be an | |
22589 | # identifier like `sun4' or `i386' or something, and be predefined by | |
22590 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
22591 | # string. Needless to say consequent macro substitutions are less | |
22592 | # than conducive to the makefile finding the correct directory. | |
22593 | undefs="`echo $top_srcdir $configuration $canonical | | |
22594 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
22595 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
22596 | `" | |
22597 | ||
22598 | echo creating src/epaths.h | |
4aa6b955 | 22599 | ${MAKE-make} epaths-force |
ba4481b5 | 22600 | |
1c203d4c DL |
22601 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
22602 | # `..' to `. .' unless invoked with -traditional | |
22603 | ||
d0e9bfd2 | 22604 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
22605 | CPPFLAGS="$CPPFLAGS -traditional" |
22606 | fi | |
22607 | ||
ba4481b5 DL |
22608 | echo creating lib-src/Makefile |
22609 | ( cd lib-src | |
22610 | rm -f junk.c junk1.c junk2.c | |
22611 | sed -e '/start of cpp stuff/q' \ | |
22612 | < Makefile.c > junk1.c | |
22613 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 22614 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 22615 | < Makefile.c > junk.c |
503d2be0 | 22616 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
22617 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
22618 | cat junk1.c junk2.c > Makefile.new | |
22619 | rm -f junk.c junk1.c junk2.c | |
22620 | chmod 444 Makefile.new | |
22621 | mv -f Makefile.new Makefile | |
22622 | ) | |
22623 | ||
22624 | echo creating src/Makefile | |
22625 | ( cd src | |
22626 | rm -f junk.c junk1.c junk2.c | |
22627 | sed -e '/start of cpp stuff/q' \ | |
22628 | < Makefile.c > junk1.c | |
22629 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 22630 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 22631 | < Makefile.c > junk.c |
503d2be0 | 22632 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
22633 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
22634 | cat junk1.c junk2.c > Makefile.new | |
22635 | rm -f junk.c junk1.c junk2.c | |
22636 | chmod 444 Makefile.new | |
22637 | mv -f Makefile.new Makefile | |
22638 | ) | |
22639 | ||
503d2be0 | 22640 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 22641 | echo creating src/.gdbinit |
503d2be0 | 22642 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
22643 | fi |
22644 | ||
22645 | # This is how we know whether to re-run configure in certain cases. | |
22646 | touch src/config.stamp | |
22647 | ||
503d2be0 AS |
22648 | ;; |
22649 | esac | |
22650 | done | |
c0d27fcc | 22651 | _ACEOF |
503d2be0 | 22652 | |
c0d27fcc | 22653 | cat >>$CONFIG_STATUS <<\_ACEOF |
ba4481b5 | 22654 | |
503d2be0 | 22655 | { (exit 0); exit 0; } |
c0d27fcc | 22656 | _ACEOF |
ba4481b5 | 22657 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
22658 | ac_clean_files=$ac_clean_files_save |
22659 | ||
c0d27fcc | 22660 | |
503d2be0 AS |
22661 | # configure is writing to config.log, and then calls config.status. |
22662 | # config.status does its own redirection, appending to config.log. | |
22663 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
22664 | # by configure, so config.status won't be able to write to it; its | |
22665 | # output is simply discarded. So we exec the FD to /dev/null, | |
22666 | # effectively closing config.log, so it can be properly (re)opened and | |
22667 | # appended to by config.status. When coming back to configure, we | |
22668 | # need to make the FD available again. | |
22669 | if test "$no_create" != yes; then | |
22670 | ac_cs_success=: | |
19650fd6 AS |
22671 | ac_config_status_args= |
22672 | test "$silent" = yes && | |
22673 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 22674 | exec 5>/dev/null |
19650fd6 | 22675 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
22676 | exec 5>>config.log |
22677 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22678 | # would make configure fail if this is the last instruction. | |
22679 | $ac_cs_success || { (exit 1); exit 1; } | |
22680 | fi | |
f5f47add | 22681 | |
c0d27fcc | 22682 |