Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
793fa0d7 | 3 | # Generated by GNU Autoconf 2.57. |
ba4481b5 | 4 | # |
793fa0d7 DL |
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
6 | # Free Software Foundation, Inc. | |
ba4481b5 DL |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc MR |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
503d2be0 AS |
12 | |
13 | # Be Bourne compatible | |
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15 | emulate sh | |
16 | NULLCMD=: | |
6bae0ccf DL |
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18 | # is contrary to our usage. Disable this feature. | |
19 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21 | set -o posix | |
22 | fi | |
23 | ||
c0d27fcc | 24 | # Support unset when possible. |
793fa0d7 | 25 | if (FOO=FOO; unset FOO) >/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 |
793fa0d7 | 44 | if (set +x; test -n "`(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 | |
221 | as_mkdir_p=false | |
222 | fi | |
223 | ||
503d2be0 AS |
224 | as_executable_p="test -f" |
225 | ||
c0d27fcc MR |
226 | # Sed expression to map a string onto a valid CPP name. |
227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
228 | ||
229 | # Sed expression to map a string onto a valid variable name. | |
230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
503d2be0 | 231 | |
503d2be0 AS |
232 | |
233 | # IFS | |
234 | # We need space, tab and new line, in precisely that order. | |
235 | as_nl=' | |
236 | ' | |
237 | IFS=" $as_nl" | |
238 | ||
239 | # CDPATH. | |
6bae0ccf | 240 | $as_unset CDPATH |
c0d27fcc | 241 | |
503d2be0 AS |
242 | |
243 | # Name of the host. | |
244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
245 | # so uname gets run too. | |
246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
247 | ||
248 | exec 6>&1 | |
249 | ||
250 | # | |
251 | # Initializations. | |
252 | # | |
ba4481b5 | 253 | ac_default_prefix=/usr/local |
6bae0ccf | 254 | ac_config_libobj_dir=. |
503d2be0 AS |
255 | cross_compiling=no |
256 | subdirs= | |
c0d27fcc MR |
257 | MFLAGS= |
258 | MAKEFLAGS= | |
503d2be0 AS |
259 | SHELL=${CONFIG_SHELL-/bin/sh} |
260 | ||
261 | # Maximum number of lines to put in a shell here document. | |
262 | # This variable seems obsolete. It should probably be removed, and | |
263 | # only ac_max_sed_lines should be used. | |
264 | : ${ac_max_here_lines=38} | |
265 | ||
c0d27fcc MR |
266 | # Identity of this package. |
267 | PACKAGE_NAME= | |
268 | PACKAGE_TARNAME= | |
269 | PACKAGE_VERSION= | |
270 | PACKAGE_STRING= | |
271 | PACKAGE_BUGREPORT= | |
272 | ||
503d2be0 | 273 | ac_unique_file="src/lisp.h" |
6bae0ccf | 274 | ac_config_libobj_dir=src |
503d2be0 AS |
275 | # Factoring default headers for most tests. |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
ba4481b5 | 311 | |
19650fd6 | 312 | 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 | 313 | ac_subst_files='' |
c0d27fcc | 314 | |
ba4481b5 | 315 | # Initialize some variables set by options. |
503d2be0 AS |
316 | ac_init_help= |
317 | ac_init_version=false | |
ba4481b5 DL |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
503d2be0 | 320 | cache_file=/dev/null |
ba4481b5 | 321 | exec_prefix=NONE |
ba4481b5 | 322 | no_create= |
ba4481b5 DL |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
ba4481b5 DL |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
503d2be0 AS |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ba4481b5 DL |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
ba4481b5 DL |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
ba4481b5 DL |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
503d2be0 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ba4481b5 DL |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
503d2be0 | 367 | case $ac_option in |
ba4481b5 DL |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 372 | bindir=$ac_optarg ;; |
ba4481b5 DL |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 375 | ac_prev=build_alias ;; |
ba4481b5 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 377 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
ba4481b5 DL |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
503d2be0 | 393 | datadir=$ac_optarg ;; |
ba4481b5 DL |
394 | |
395 | -disable-* | --disable-*) | |
503d2be0 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 397 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
ba4481b5 DL |
403 | |
404 | -enable-* | --enable-*) | |
503d2be0 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 406 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
413 | *) ac_optarg=yes ;; |
414 | esac | |
503d2be0 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
ba4481b5 DL |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 424 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
503d2be0 AS |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
ba4481b5 DL |
436 | |
437 | -host | --host | --hos | --ho) | |
503d2be0 | 438 | ac_prev=host_alias ;; |
ba4481b5 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 440 | host_alias=$ac_optarg ;; |
ba4481b5 DL |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 447 | includedir=$ac_optarg ;; |
ba4481b5 DL |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 452 | infodir=$ac_optarg ;; |
ba4481b5 DL |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 457 | libdir=$ac_optarg ;; |
ba4481b5 DL |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 464 | libexecdir=$ac_optarg ;; |
ba4481b5 DL |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
503d2be0 | 473 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 478 | mandir=$ac_optarg ;; |
ba4481b5 DL |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 485 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 499 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 504 | prefix=$ac_optarg ;; |
ba4481b5 DL |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 511 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 518 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 535 | program_transform_name=$ac_optarg ;; |
ba4481b5 DL |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
503d2be0 | 545 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
503d2be0 | 556 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
503d2be0 | 561 | site=$ac_optarg ;; |
ba4481b5 DL |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 566 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 573 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 576 | ac_prev=target_alias ;; |
ba4481b5 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 578 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
503d2be0 AS |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
ba4481b5 DL |
585 | |
586 | -with-* | --with-*) | |
503d2be0 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 588 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
ba4481b5 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
503d2be0 AS |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
595 | *) ac_optarg=yes ;; |
596 | esac | |
503d2be0 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
ba4481b5 DL |
598 | |
599 | -without-* | --without-*) | |
503d2be0 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 601 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
ba4481b5 DL |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 617 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 624 | x_libraries=$ac_optarg ;; |
ba4481b5 | 625 | |
503d2be0 AS |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
629 | ;; |
630 | ||
503d2be0 AS |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
ba4481b5 | 641 | *) |
503d2be0 AS |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
503d2be0 AS |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
ba4481b5 | 656 | fi |
ba4481b5 | 657 | |
503d2be0 AS |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
c0d27fcc | 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 AS |
665 | { (exit 1); exit 1; }; };; |
666 | esac | |
667 | done | |
ba4481b5 | 668 | |
503d2be0 AS |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
793fa0d7 | 671 | localstatedir libdir includedir oldincludedir infodir mandir |
ba4481b5 | 672 | do |
503d2be0 AS |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
c0d27fcc | 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 | 677 | { (exit 1); exit 1; }; };; |
ba4481b5 DL |
678 | esac |
679 | done | |
680 | ||
503d2be0 AS |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
c0d27fcc | 683 | # FIXME: To remove some day. |
503d2be0 AS |
684 | build=$build_alias |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
c0d27fcc | 688 | # FIXME: To remove some day. |
503d2be0 AS |
689 | if test "x$host_alias" != x; then |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
ba4481b5 | 698 | |
503d2be0 AS |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 701 | |
503d2be0 | 702 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 703 | |
c0d27fcc | 704 | |
ba4481b5 DL |
705 | # Find the source files, if location was not specified. |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
c0d27fcc MR |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
793fa0d7 DL |
711 | X"$0" : 'X\(//\)[^/]' \| \ |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
c0d27fcc MR |
715 | echo X"$0" | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
ba4481b5 DL |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
c0d27fcc | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
503d2be0 | 731 | { (exit 1); exit 1; }; } |
ba4481b5 | 732 | else |
c0d27fcc | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
503d2be0 | 734 | { (exit 1); exit 1; }; } |
ba4481b5 DL |
735 | fi |
736 | fi | |
6bae0ccf DL |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
503d2be0 AS |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
773 | ||
774 | # | |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 780 | cat <<_ACEOF |
503d2be0 AS |
781 | \`configure' configures this package to adapt to many kinds of systems. |
782 | ||
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
784 | ||
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
787 | ||
788 | Defaults for the options are specified in brackets. | |
789 | ||
790 | Configuration: | |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
c0d27fcc | 801 | _ACEOF |
503d2be0 | 802 | |
c0d27fcc | 803 | cat <<_ACEOF |
503d2be0 AS |
804 | Installation directories: |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
793fa0d7 | 806 | [$ac_default_prefix] |
503d2be0 | 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
793fa0d7 | 808 | [PREFIX] |
503d2be0 AS |
809 | |
810 | By default, \`make install' will install all the files in | |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
814 | ||
815 | For better control, use the options below. | |
816 | ||
817 | Fine tuning of the installation directories: | |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
c0d27fcc | 830 | _ACEOF |
503d2be0 | 831 | |
c0d27fcc | 832 | cat <<\_ACEOF |
503d2be0 | 833 | |
ba5da88a PJ |
834 | Program names: |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
838 | ||
503d2be0 AS |
839 | X features: |
840 | --x-includes=DIR X include files are in DIR | |
841 | --x-libraries=DIR X library files are in DIR | |
842 | ||
843 | System types: | |
844 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
845 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
846 | _ACEOF | |
503d2be0 AS |
847 | fi |
848 | ||
849 | if test -n "$ac_init_help"; then | |
850 | ||
c0d27fcc | 851 | cat <<\_ACEOF |
503d2be0 AS |
852 | |
853 | Optional Features: | |
854 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
855 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6a3a24fa JD |
856 | --enable-carbon-app[=DIR] [DIR=/Application] |
857 | specify install directory for Emacs.app on Mac OS X | |
19650fd6 AS |
858 | --enable-maintainer-mode enable make rules and dependencies not useful |
859 | (and sometimes confusing) to the casual installer | |
503d2be0 AS |
860 | --disable-largefile omit support for large files |
861 | ||
862 | Optional Packages: | |
863 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
864 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
865 | --without-gcc don't use GCC to compile Emacs if GCC is found | |
866 | --without-pop don't support POP mail retrieval with movemail | |
867 | --with-kerberos support Kerberos-authenticated POP | |
868 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
869 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 870 | --without-sound don't compile with sound support |
488dd4c4 JD |
871 | --with-x-toolkit=KIT use an X toolkit |
872 | (KIT = yes/lucid/athena/motif/gtk/no) | |
503d2be0 AS |
873 | --with-xpm use -lXpm for displaying XPM images |
874 | --with-jpeg use -ljpeg for displaying JPEG images | |
875 | --with-tiff use -ltiff for displaying TIFF images | |
876 | --with-gif use -lungif for displaying GIF images | |
877 | --with-png use -lpng for displaying PNG images | |
488dd4c4 JD |
878 | --with-gtk use GTK (same as --with-x-toolkit=gtk) |
879 | --with-pkg-config-prog Path to pkg-config to use for finding GTK | |
503d2be0 | 880 | --without-toolkit-scroll-bars |
cc227489 MB |
881 | don't use Motif or Xaw3d scroll bars |
882 | --without-xim don't use X11 XIM | |
e0f712ba | 883 | --without-carbon don't use Carbon GUI on Mac OS X |
503d2be0 AS |
884 | --with-x use the X Window System |
885 | ||
886 | Some influential environment variables: | |
887 | CC C compiler command | |
888 | CFLAGS C compiler flags | |
889 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
890 | nonstandard directory <lib dir> | |
891 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
892 | headers in a nonstandard directory <include dir> | |
893 | CPP C preprocessor | |
894 | ||
895 | Use these variables to override the choices made by `configure' or to help | |
896 | it to find libraries and programs with nonstandard names/locations. | |
897 | ||
c0d27fcc | 898 | _ACEOF |
503d2be0 AS |
899 | fi |
900 | ||
901 | if test "$ac_init_help" = "recursive"; then | |
902 | # If there are subdirs, report their specific --help. | |
903 | ac_popdir=`pwd` | |
c0d27fcc MR |
904 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
905 | test -d $ac_dir || continue | |
906 | ac_builddir=. | |
907 | ||
908 | if test "$ac_dir" != .; then | |
909 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
910 | # A "../" for each directory in $ac_dir_suffix. | |
911 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
912 | else | |
913 | ac_dir_suffix= ac_top_builddir= | |
914 | fi | |
503d2be0 | 915 | |
c0d27fcc MR |
916 | case $srcdir in |
917 | .) # No --srcdir option. We are building in place. | |
918 | ac_srcdir=. | |
919 | if test -z "$ac_top_builddir"; then | |
920 | ac_top_srcdir=. | |
921 | else | |
922 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
923 | fi ;; | |
924 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
925 | ac_srcdir=$srcdir$ac_dir_suffix; | |
926 | ac_top_srcdir=$srcdir ;; | |
927 | *) # Relative path. | |
928 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
929 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
930 | esac | |
931 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
932 | # absolute. | |
933 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
6bae0ccf | 934 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
c0d27fcc MR |
935 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
936 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
937 | ||
938 | cd $ac_dir | |
503d2be0 | 939 | # Check for guested configure; otherwise get Cygnus style configure. |
c0d27fcc | 940 | if test -f $ac_srcdir/configure.gnu; then |
503d2be0 | 941 | echo |
c0d27fcc MR |
942 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
943 | elif test -f $ac_srcdir/configure; then | |
503d2be0 | 944 | echo |
c0d27fcc MR |
945 | $SHELL $ac_srcdir/configure --help=recursive |
946 | elif test -f $ac_srcdir/configure.ac || | |
793fa0d7 | 947 | test -f $ac_srcdir/configure.in; then |
503d2be0 AS |
948 | echo |
949 | $ac_configure --help | |
950 | else | |
c0d27fcc | 951 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
503d2be0 AS |
952 | fi |
953 | cd $ac_popdir | |
954 | done | |
955 | fi | |
956 | ||
957 | test -n "$ac_init_help" && exit 0 | |
958 | if $ac_init_version; then | |
c0d27fcc | 959 | cat <<\_ACEOF |
503d2be0 | 960 | |
793fa0d7 DL |
961 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
962 | Free Software Foundation, Inc. | |
503d2be0 AS |
963 | This configure script is free software; the Free Software Foundation |
964 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 965 | _ACEOF |
503d2be0 AS |
966 | exit 0 |
967 | fi | |
968 | exec 5>config.log | |
c0d27fcc | 969 | cat >&5 <<_ACEOF |
503d2be0 AS |
970 | This file contains any messages produced by compilers while |
971 | running configure, to aid debugging if configure makes a mistake. | |
972 | ||
973 | It was created by $as_me, which was | |
793fa0d7 | 974 | generated by GNU Autoconf 2.57. Invocation command line was |
503d2be0 AS |
975 | |
976 | $ $0 $@ | |
977 | ||
c0d27fcc | 978 | _ACEOF |
503d2be0 AS |
979 | { |
980 | cat <<_ASUNAME | |
c0d27fcc MR |
981 | ## --------- ## |
982 | ## Platform. ## | |
983 | ## --------- ## | |
503d2be0 AS |
984 | |
985 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
986 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
987 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
988 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
989 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
990 | ||
991 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
992 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
993 | ||
994 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
995 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
996 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
997 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
998 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
999 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1000 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1001 | ||
925c2f3f | 1002 | _ASUNAME |
c0d27fcc MR |
1003 | |
1004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1005 | for as_dir in $PATH | |
1006 | do | |
1007 | IFS=$as_save_IFS | |
1008 | test -z "$as_dir" && as_dir=. | |
1009 | echo "PATH: $as_dir" | |
1010 | done | |
1011 | ||
503d2be0 AS |
1012 | } >&5 |
1013 | ||
c0d27fcc MR |
1014 | cat >&5 <<_ACEOF |
1015 | ||
1016 | ||
1017 | ## ----------- ## | |
1018 | ## Core tests. ## | |
1019 | ## ----------- ## | |
1020 | ||
1021 | _ACEOF | |
503d2be0 | 1022 | |
503d2be0 AS |
1023 | |
1024 | # Keep a trace of the command line. | |
1025 | # Strip out --no-create and --no-recursion so they do not pile up. | |
19650fd6 | 1026 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1027 | # Also quote any args containing shell meta-characters. |
19650fd6 | 1028 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1029 | ac_configure_args= |
19650fd6 AS |
1030 | ac_configure_args0= |
1031 | ac_configure_args1= | |
503d2be0 | 1032 | ac_sep= |
19650fd6 AS |
1033 | ac_must_keep_next=false |
1034 | for ac_pass in 1 2 | |
503d2be0 | 1035 | do |
19650fd6 AS |
1036 | for ac_arg |
1037 | do | |
1038 | case $ac_arg in | |
1039 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1040 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1041 | | -silent | --silent | --silen | --sile | --sil) | |
1042 | continue ;; | |
1043 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1044 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1045 | esac | |
1046 | case $ac_pass in | |
1047 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1048 | 2) | |
1049 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1050 | if test $ac_must_keep_next = true; then | |
793fa0d7 | 1051 | ac_must_keep_next=false # Got value, back to normal. |
19650fd6 | 1052 | else |
793fa0d7 DL |
1053 | case $ac_arg in |
1054 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1055 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1056 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1057 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1058 | case "$ac_configure_args0 " in | |
1059 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1060 | esac | |
1061 | ;; | |
1062 | -* ) ac_must_keep_next=true ;; | |
1063 | esac | |
19650fd6 AS |
1064 | fi |
1065 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1066 | # Get rid of the leading space. | |
1067 | ac_sep=" " | |
1068 | ;; | |
1069 | esac | |
1070 | done | |
503d2be0 | 1071 | done |
19650fd6 AS |
1072 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1073 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1074 | |
1075 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1076 | # config.log. We remove comments because anyway the quotes in there | |
1077 | # would cause problems or look ugly. | |
c0d27fcc MR |
1078 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1079 | # such as our DU 5.0 friend, will then `close' the trap. | |
503d2be0 AS |
1080 | trap 'exit_status=$? |
1081 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1082 | { |
1083 | echo | |
6bae0ccf | 1084 | |
c0d27fcc MR |
1085 | cat <<\_ASBOX |
1086 | ## ---------------- ## | |
1087 | ## Cache variables. ## | |
1088 | ## ---------------- ## | |
1089 | _ASBOX | |
1090 | echo | |
1091 | # The following way of writing the cache mishandles newlines in values, | |
503d2be0 AS |
1092 | { |
1093 | (set) 2>&1 | | |
1094 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1095 | *ac_space=\ *) | |
1096 | sed -n \ | |
793fa0d7 DL |
1097 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1098 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
503d2be0 AS |
1099 | ;; |
1100 | *) | |
1101 | sed -n \ | |
793fa0d7 | 1102 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
503d2be0 AS |
1103 | ;; |
1104 | esac; | |
c0d27fcc MR |
1105 | } |
1106 | echo | |
6bae0ccf DL |
1107 | |
1108 | cat <<\_ASBOX | |
1109 | ## ----------------- ## | |
1110 | ## Output variables. ## | |
1111 | ## ----------------- ## | |
1112 | _ASBOX | |
1113 | echo | |
1114 | for ac_var in $ac_subst_vars | |
1115 | do | |
1116 | eval ac_val=$`echo $ac_var` | |
1117 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1118 | done | sort | |
1119 | echo | |
1120 | ||
1121 | if test -n "$ac_subst_files"; then | |
1122 | cat <<\_ASBOX | |
1123 | ## ------------- ## | |
1124 | ## Output files. ## | |
1125 | ## ------------- ## | |
1126 | _ASBOX | |
1127 | echo | |
1128 | for ac_var in $ac_subst_files | |
1129 | do | |
1130 | eval ac_val=$`echo $ac_var` | |
793fa0d7 | 1131 | echo "$ac_var='"'"'$ac_val'"'"'" |
6bae0ccf DL |
1132 | done | sort |
1133 | echo | |
1134 | fi | |
1135 | ||
c0d27fcc MR |
1136 | if test -s confdefs.h; then |
1137 | cat <<\_ASBOX | |
1138 | ## ----------- ## | |
1139 | ## confdefs.h. ## | |
1140 | ## ----------- ## | |
1141 | _ASBOX | |
1142 | echo | |
6bae0ccf | 1143 | sed "/^$/d" confdefs.h | sort |
c0d27fcc MR |
1144 | echo |
1145 | fi | |
1146 | test "$ac_signal" != 0 && | |
1147 | echo "$as_me: caught signal $ac_signal" | |
1148 | echo "$as_me: exit $exit_status" | |
1149 | } >&5 | |
1150 | rm -f core core.* *.core && | |
1151 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
503d2be0 AS |
1152 | exit $exit_status |
1153 | ' 0 | |
1154 | for ac_signal in 1 2 13 15; do | |
1155 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1156 | done | |
1157 | ac_signal=0 | |
1158 | ||
1159 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1160 | rm -rf conftest* confdefs.h | |
1161 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1162 | echo >confdefs.h | |
ba4481b5 | 1163 | |
c0d27fcc MR |
1164 | # Predefined preprocessor variables. |
1165 | ||
1166 | cat >>confdefs.h <<_ACEOF | |
1167 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1168 | _ACEOF | |
1169 | ||
1170 | ||
1171 | cat >>confdefs.h <<_ACEOF | |
1172 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1173 | _ACEOF | |
1174 | ||
1175 | ||
1176 | cat >>confdefs.h <<_ACEOF | |
1177 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1178 | _ACEOF | |
1179 | ||
1180 | ||
1181 | cat >>confdefs.h <<_ACEOF | |
1182 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1183 | _ACEOF | |
1184 | ||
1185 | ||
1186 | cat >>confdefs.h <<_ACEOF | |
1187 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1188 | _ACEOF | |
1189 | ||
1190 | ||
503d2be0 | 1191 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 DL |
1192 | # Prefer explicitly selected file to automatically selected ones. |
1193 | if test -z "$CONFIG_SITE"; then | |
1194 | if test "x$prefix" != xNONE; then | |
1195 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1196 | else | |
1197 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1198 | fi | |
1199 | fi | |
1200 | for ac_site_file in $CONFIG_SITE; do | |
1201 | if test -r "$ac_site_file"; then | |
c0d27fcc | 1202 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
503d2be0 | 1203 | echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1204 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1205 | . "$ac_site_file" |
1206 | fi | |
1207 | done | |
1208 | ||
1209 | if test -r "$cache_file"; then | |
503d2be0 AS |
1210 | # Some versions of bash will fail to source /dev/null (special |
1211 | # files actually), so we avoid doing that. | |
1212 | if test -f "$cache_file"; then | |
c0d27fcc | 1213 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
503d2be0 AS |
1214 | echo "$as_me: loading cache $cache_file" >&6;} |
1215 | case $cache_file in | |
1216 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1217 | *) . ./$cache_file;; | |
1218 | esac | |
1219 | fi | |
ba4481b5 | 1220 | else |
c0d27fcc | 1221 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
503d2be0 AS |
1222 | echo "$as_me: creating cache $cache_file" >&6;} |
1223 | >$cache_file | |
1224 | fi | |
1225 | ||
1226 | # Check that the precious variables saved in the cache have kept the same | |
1227 | # value. | |
1228 | ac_cache_corrupted=false | |
1229 | for ac_var in `(set) 2>&1 | | |
793fa0d7 | 1230 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
503d2be0 AS |
1231 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1232 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1233 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1234 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1235 | case $ac_old_set,$ac_new_set in | |
1236 | set,) | |
c0d27fcc | 1237 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
1238 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1239 | ac_cache_corrupted=: ;; | |
1240 | ,set) | |
c0d27fcc | 1241 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
1242 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1243 | ac_cache_corrupted=: ;; | |
1244 | ,);; | |
1245 | *) | |
1246 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
793fa0d7 | 1247 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 1248 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
793fa0d7 | 1249 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
503d2be0 | 1250 | echo "$as_me: former value: $ac_old_val" >&2;} |
793fa0d7 | 1251 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
503d2be0 | 1252 | echo "$as_me: current value: $ac_new_val" >&2;} |
793fa0d7 | 1253 | ac_cache_corrupted=: |
503d2be0 AS |
1254 | fi;; |
1255 | esac | |
c0d27fcc | 1256 | # Pass precious variables to config.status. |
503d2be0 AS |
1257 | if test "$ac_new_set" = set; then |
1258 | case $ac_new_val in | |
1259 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
c0d27fcc MR |
1260 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1261 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1262 | esac | |
1263 | case " $ac_configure_args " in | |
1264 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1265 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
503d2be0 AS |
1266 | esac |
1267 | fi | |
1268 | done | |
1269 | if $ac_cache_corrupted; then | |
c0d27fcc | 1270 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 1271 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c0d27fcc | 1272 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
1273 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1274 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1275 | fi |
1276 | ||
1277 | ac_ext=c | |
ba4481b5 | 1278 | ac_cpp='$CPP $CPPFLAGS' |
503d2be0 AS |
1279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1282 | ||
c0d27fcc MR |
1283 | |
1284 | ||
1285 | ||
1286 | ||
1287 | ||
1288 | ||
1289 | ||
1290 | ||
1291 | ||
1292 | ||
1293 | ||
1294 | ||
1295 | ||
1296 | ||
1297 | ||
1298 | ||
ba4481b5 | 1299 | |
6bae0ccf DL |
1300 | |
1301 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
ba4481b5 | 1302 | |
c0d27fcc | 1303 | |
ba5da88a PJ |
1304 | test "$program_prefix" != NONE && |
1305 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1306 | # Use a double $ so make ignores it. | |
1307 | test "$program_suffix" != NONE && | |
1308 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1309 | # Double any \ or $. echo might interpret backslashes. | |
1310 | # By default was `s,x,x', remove it if useless. | |
1311 | cat <<\_ACEOF >conftest.sed | |
1312 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1313 | _ACEOF | |
1314 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1315 | rm conftest.sed | |
1316 | ||
c0d27fcc | 1317 | |
ba4481b5 DL |
1318 | lispdir='${datadir}/emacs/${version}/lisp' |
1319 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1320 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1321 | lisppath='${locallisppath}:${lispdir}' | |
1322 | etcdir='${datadir}/emacs/${version}/etc' | |
1323 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1324 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1325 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1326 | |
1327 | gameuser=games | |
1328 | ||
c0d27fcc | 1329 | |
ba4481b5 DL |
1330 | # Check whether --with-gcc or --without-gcc was given. |
1331 | if test "${with_gcc+set}" = set; then | |
1332 | withval="$with_gcc" | |
503d2be0 AS |
1333 | |
1334 | fi; | |
ba4481b5 DL |
1335 | |
1336 | # Check whether --with-pop or --without-pop was given. | |
1337 | if test "${with_pop+set}" = set; then | |
1338 | withval="$with_pop" | |
243cf185 | 1339 | if test "$withval" = yes; then |
c0d27fcc | 1340 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1341 | #define MAIL_USE_POP 1 |
c0d27fcc | 1342 | _ACEOF |
ba4481b5 | 1343 | |
243cf185 DL |
1344 | else : |
1345 | fi | |
3d9fec71 | 1346 | else |
c0d27fcc | 1347 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 1348 | #define MAIL_USE_POP 1 |
c0d27fcc | 1349 | _ACEOF |
3d9fec71 | 1350 | |
503d2be0 | 1351 | fi; |
ba4481b5 | 1352 | |
c0d27fcc | 1353 | |
a21616bd KR |
1354 | # Check whether --with-kerberos or --without-kerberos was given. |
1355 | if test "${with_kerberos+set}" = set; then | |
1356 | withval="$with_kerberos" | |
c0d27fcc | 1357 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1358 | #define KERBEROS 1 |
c0d27fcc | 1359 | _ACEOF |
a21616bd | 1360 | |
503d2be0 | 1361 | fi; |
a21616bd | 1362 | |
c0d27fcc | 1363 | |
a21616bd KR |
1364 | # Check whether --with-kerberos5 or --without-kerberos5 was given. |
1365 | if test "${with_kerberos5+set}" = set; then | |
1366 | withval="$with_kerberos5" | |
1367 | if test "${with_kerberos5+set}" = set; then | |
1368 | if test "${with_kerberos+set}" != set; then | |
1369 | with_kerberos=yes | |
c0d27fcc | 1370 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1371 | #define KERBEROS 1 |
c0d27fcc | 1372 | _ACEOF |
a21616bd KR |
1373 | |
1374 | fi | |
1375 | fi | |
b936fae4 | 1376 | |
c0d27fcc | 1377 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1378 | #define KERBEROS5 1 |
c0d27fcc | 1379 | _ACEOF |
a21616bd | 1380 | |
503d2be0 | 1381 | fi; |
a21616bd | 1382 | |
ba4481b5 DL |
1383 | # Check whether --with-hesiod or --without-hesiod was given. |
1384 | if test "${with_hesiod+set}" = set; then | |
1385 | withval="$with_hesiod" | |
b936fae4 | 1386 | |
c0d27fcc | 1387 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1388 | #define HESIOD 1 |
c0d27fcc | 1389 | _ACEOF |
ba4481b5 | 1390 | |
503d2be0 | 1391 | fi; |
ba4481b5 | 1392 | |
c0d27fcc | 1393 | |
2c9dccc9 PJ |
1394 | # Check whether --with-sound or --without-sound was given. |
1395 | if test "${with_sound+set}" = set; then | |
1396 | withval="$with_sound" | |
1397 | ||
1398 | fi; | |
1399 | ||
c0d27fcc | 1400 | |
ba4481b5 DL |
1401 | # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1402 | if test "${with_x_toolkit+set}" = set; then | |
1403 | withval="$with_x_toolkit" | |
1404 | case "${withval}" in | |
1405 | y | ye | yes ) val=athena ;; | |
1406 | n | no ) val=no ;; | |
1407 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1408 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1409 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 1410 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 1411 | * ) |
c0d27fcc | 1412 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; |
488dd4c4 | 1413 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1414 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1415 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
488dd4c4 | 1416 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1417 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} |
1418 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1419 | ;; |
1420 | esac | |
1421 | with_x_toolkit=$val | |
1422 | ||
503d2be0 | 1423 | fi; |
ba4481b5 DL |
1424 | |
1425 | # Check whether --with-xpm or --without-xpm was given. | |
1426 | if test "${with_xpm+set}" = set; then | |
1427 | withval="$with_xpm" | |
503d2be0 AS |
1428 | |
1429 | fi; | |
ba4481b5 DL |
1430 | |
1431 | # Check whether --with-jpeg or --without-jpeg was given. | |
1432 | if test "${with_jpeg+set}" = set; then | |
1433 | withval="$with_jpeg" | |
503d2be0 AS |
1434 | |
1435 | fi; | |
ba4481b5 DL |
1436 | |
1437 | # Check whether --with-tiff or --without-tiff was given. | |
1438 | if test "${with_tiff+set}" = set; then | |
1439 | withval="$with_tiff" | |
503d2be0 AS |
1440 | |
1441 | fi; | |
ba4481b5 DL |
1442 | |
1443 | # Check whether --with-gif or --without-gif was given. | |
1444 | if test "${with_gif+set}" = set; then | |
1445 | withval="$with_gif" | |
503d2be0 AS |
1446 | |
1447 | fi; | |
ba4481b5 DL |
1448 | |
1449 | # Check whether --with-png or --without-png was given. | |
1450 | if test "${with_png+set}" = set; then | |
1451 | withval="$with_png" | |
503d2be0 AS |
1452 | |
1453 | fi; | |
ba4481b5 | 1454 | |
488dd4c4 JD |
1455 | # Check whether --with-gtk or --without-gtk was given. |
1456 | if test "${with_gtk+set}" = set; then | |
1457 | withval="$with_gtk" | |
1458 | ||
1459 | fi; | |
1460 | ||
1461 | # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given. | |
1462 | if test "${with_pkg_config_prog+set}" = set; then | |
1463 | withval="$with_pkg_config_prog" | |
1464 | ||
1465 | fi; | |
1466 | ||
ba4481b5 DL |
1467 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. |
1468 | if test "${with_toolkit_scroll_bars+set}" = set; then | |
1469 | withval="$with_toolkit_scroll_bars" | |
503d2be0 AS |
1470 | |
1471 | fi; | |
ba4481b5 | 1472 | |
1d36487c GM |
1473 | # Check whether --with-xim or --without-xim was given. |
1474 | if test "${with_xim+set}" = set; then | |
1475 | withval="$with_xim" | |
1d36487c | 1476 | |
503d2be0 | 1477 | fi; |
ba4481b5 | 1478 | |
e0f712ba AC |
1479 | # Check whether --with-carbon or --without-carbon was given. |
1480 | if test "${with_carbon+set}" = set; then | |
1481 | withval="$with_carbon" | |
1482 | ||
1483 | fi; | |
6a3a24fa JD |
1484 | # Check whether --enable-carbon-app or --disable-carbon-app was given. |
1485 | if test "${enable_carbon_app+set}" = set; then | |
1486 | enableval="$enable_carbon_app" | |
1487 | carbon_appdir_x=${enableval} | |
1488 | fi; | |
e0f712ba | 1489 | |
19650fd6 AS |
1490 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1491 | if test "${enable_maintainer_mode+set}" = set; then | |
1492 | enableval="$enable_maintainer_mode" | |
1493 | USE_MAINTAINER_MODE=$enableval | |
1494 | else | |
1495 | USE_MAINTAINER_MODE=no | |
1496 | fi; | |
1497 | if test $USE_MAINTAINER_MODE = yes; then | |
1498 | MAINT= | |
1499 | else | |
1500 | MAINT=# | |
1501 | fi | |
1502 | ||
1503 | ||
ba4481b5 | 1504 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 1505 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
1506 | #### give you automounter prefixes, which can go away. We do all this |
1507 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
1508 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1509 | unset CDPATH | |
ba4481b5 DL |
1510 | case "${srcdir}" in |
1511 | /* ) ;; | |
1512 | . ) | |
1513 | ## We may be able to use the $PWD environment variable to make this | |
1514 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
1515 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1516 | ## but that tested only for a well-formed and valid PWD, | |
1517 | ## it did not object when PWD was well-formed and valid but just wrong. | |
1518 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
1519 | then |
1520 | srcdir="$PWD" | |
1521 | else | |
1522 | srcdir="`(cd ${srcdir}; pwd)`" | |
1523 | fi | |
1524 | ;; | |
1525 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1526 | esac | |
1527 | ||
1528 | #### Check if the source directory already has a configured system in it. | |
1529 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1530 | && test -f "${srcdir}/src/config.h" ; then | |
c0d27fcc | 1531 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
1532 | as a build directory right now; it has been configured in its own |
1533 | right. To configure in another directory as well, you MUST | |
1534 | use GNU make. If you do not have GNU make, then you must | |
1535 | now do \`make distclean' in ${srcdir}, | |
1536 | and then run $0 again." >&5 | |
1537 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
1538 | as a build directory right now; it has been configured in its own |
1539 | right. To configure in another directory as well, you MUST | |
1540 | use GNU make. If you do not have GNU make, then you must | |
1541 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 1542 | and then run $0 again." >&2;} |
ba4481b5 | 1543 | |
22044edf | 1544 | extrasub='/^VPATH[ ]*=/c\ |
ba4481b5 DL |
1545 | vpath %.c $(srcdir)\ |
1546 | vpath %.h $(srcdir)\ | |
1547 | vpath %.y $(srcdir)\ | |
1548 | vpath %.l $(srcdir)\ | |
1549 | vpath %.s $(srcdir)\ | |
1550 | vpath %.in $(srcdir)\ | |
1551 | vpath %.texi $(srcdir)' | |
1552 | fi | |
1553 | ||
1554 | #### Given the configuration name, set machfile and opsysfile to the | |
1555 | #### names of the m/*.h and s/*.h files we should use. | |
1556 | ||
1557 | ### Canonicalize the configuration name. | |
1558 | ||
1559 | ac_aux_dir= | |
1560 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1561 | if test -f $ac_dir/install-sh; then | |
1562 | ac_aux_dir=$ac_dir | |
1563 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1564 | break | |
1565 | elif test -f $ac_dir/install.sh; then | |
1566 | ac_aux_dir=$ac_dir | |
1567 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1568 | break | |
503d2be0 AS |
1569 | elif test -f $ac_dir/shtool; then |
1570 | ac_aux_dir=$ac_dir | |
1571 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1572 | break | |
ba4481b5 DL |
1573 | fi |
1574 | done | |
1575 | if test -z "$ac_aux_dir"; then | |
c0d27fcc | 1576 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
503d2be0 AS |
1577 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1578 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1579 | fi |
503d2be0 AS |
1580 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1581 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1582 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
ba4481b5 DL |
1583 | |
1584 | # Make sure we can run config.sub. | |
503d2be0 | 1585 | $ac_config_sub sun4 >/dev/null 2>&1 || |
c0d27fcc | 1586 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
503d2be0 AS |
1587 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1588 | { (exit 1); exit 1; }; } | |
1589 | ||
c0d27fcc | 1590 | echo "$as_me:$LINENO: checking build system type" >&5 |
503d2be0 AS |
1591 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1592 | if test "${ac_cv_build+set}" = set; then | |
1593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1594 | else | |
1595 | ac_cv_build_alias=$build_alias | |
1596 | test -z "$ac_cv_build_alias" && | |
1597 | ac_cv_build_alias=`$ac_config_guess` | |
1598 | test -z "$ac_cv_build_alias" && | |
c0d27fcc | 1599 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
1600 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1601 | { (exit 1); exit 1; }; } | |
1602 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
c0d27fcc MR |
1603 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1604 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
503d2be0 AS |
1605 | { (exit 1); exit 1; }; } |
1606 | ||
1607 | fi | |
c0d27fcc | 1608 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
503d2be0 AS |
1609 | echo "${ECHO_T}$ac_cv_build" >&6 |
1610 | build=$ac_cv_build | |
1611 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1612 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1613 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1614 | ||
c0d27fcc MR |
1615 | |
1616 | echo "$as_me:$LINENO: checking host system type" >&5 | |
503d2be0 AS |
1617 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1618 | if test "${ac_cv_host+set}" = set; then | |
1619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1620 | else | |
1621 | ac_cv_host_alias=$host_alias | |
1622 | test -z "$ac_cv_host_alias" && | |
1623 | ac_cv_host_alias=$ac_cv_build_alias | |
1624 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
c0d27fcc | 1625 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
503d2be0 AS |
1626 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1627 | { (exit 1); exit 1; }; } | |
1628 | ||
1629 | fi | |
c0d27fcc | 1630 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
503d2be0 AS |
1631 | echo "${ECHO_T}$ac_cv_host" >&6 |
1632 | host=$ac_cv_host | |
1633 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1634 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1635 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
ba4481b5 | 1636 | |
c0d27fcc | 1637 | |
ba4481b5 | 1638 | canonical=$host |
531a3336 | 1639 | configuration=${host_alias-$host} |
ba4481b5 | 1640 | |
c0d27fcc | 1641 | |
22044edf | 1642 | |
ba4481b5 DL |
1643 | ### If you add support for a new configuration, add code to this |
1644 | ### switch statement to recognize your configuration name and select | |
1645 | ### the appropriate operating system and machine description files. | |
1646 | ||
1647 | ### You would hope that you could choose an m/*.h file pretty much | |
1648 | ### based on the machine portion of the configuration name, and an s- | |
1649 | ### file based on the operating system portion. However, it turns out | |
1650 | ### that each m/*.h file is pretty manufacturer-specific - for | |
1651 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1652 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1653 | ### machines. So we basically have to have a special case for each | |
1654 | ### configuration name. | |
1655 | ### | |
1656 | ### As far as handling version numbers on operating systems is | |
1657 | ### concerned, make sure things will fail in a fixable way. If | |
1658 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
1659 | ### prepared to handle anything reasonably. If version numbers | |
1660 | ### matter, be sure /etc/MACHINES says something about it. | |
1661 | ### | |
1662 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1663 | ### "System V Release 4"; he writes, "The old convention encouraged | |
1664 | ### confusion between `system' and `release' levels'." | |
1665 | ||
1666 | machine='' opsys='' unported=no | |
1667 | case "${canonical}" in | |
1668 | ||
1096bcc0 GM |
1669 | ## FreeBSD ports |
1670 | *-*-freebsd* ) | |
1671 | opsys=freebsd | |
1672 | case "${canonical}" in | |
1673 | alpha*-*-freebsd*) machine=alpha ;; | |
1674 | i[3456]86-*-freebsd*) machine=intel386 ;; | |
1675 | esac | |
1676 | ;; | |
1677 | ||
ba4481b5 DL |
1678 | ## NetBSD ports |
1679 | *-*-netbsd* ) | |
1680 | opsys=netbsd | |
dd038e26 | 1681 | if test -f /usr/lib/crti.o; then |
f57bd967 DL |
1682 | |
1683 | cat >>confdefs.h <<\_ACEOF | |
1684 | #define HAVE_CRTIN | |
dd038e26 AS |
1685 | _ACEOF |
1686 | ||
1687 | fi | |
1688 | ||
ba4481b5 DL |
1689 | case "${canonical}" in |
1690 | alpha*-*-netbsd*) machine=alpha ;; | |
1691 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
1692 | m68k-*-netbsd*) | |
1693 | # This is somewhat bogus. | |
1694 | machine=hp9000s300 ;; | |
1695 | powerpc-apple-netbsd*) machine=macppc ;; | |
1696 | mips-*-netbsd*) machine=pmax ;; | |
2df636f4 | 1697 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 1698 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 1699 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 1700 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 1701 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 1702 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 1703 | arm-*-netbsd*) machine=arm ;; |
ba4481b5 DL |
1704 | esac |
1705 | ;; | |
1706 | ||
1707 | ## OpenBSD ports | |
1708 | *-*-openbsd* ) | |
1709 | opsys=openbsd | |
1710 | case "${canonical}" in | |
1711 | alpha*-*-openbsd*) machine=alpha ;; | |
1712 | i386-*-openbsd*) machine=intel386 ;; | |
1713 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
1714 | mipsel-*-openbsd*) machine=pmax ;; | |
1715 | ns32k-*-openbsd*) machine=ns32000 ;; | |
1716 | sparc-*-openbsd*) machine=sparc ;; | |
1717 | vax-*-openbsd*) machine=vax ;; | |
1718 | esac | |
1719 | ;; | |
1720 | ||
1721 | ## Acorn RISCiX: | |
1722 | arm-acorn-riscix1.1* ) | |
1723 | machine=acorn opsys=riscix1-1 | |
1724 | ;; | |
1725 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1726 | ## This name is riscix12 instead of riscix1.2 | |
1727 | ## to avoid a file name conflict on MSDOS. | |
1728 | machine=acorn opsys=riscix12 | |
1729 | ;; | |
1730 | ||
1731 | ## BSDI ports | |
1732 | *-*-bsdi* ) | |
1733 | opsys=bsdi | |
1734 | case "${canonical}" in | |
1735 | i[345]86-*-bsdi*) machine=intel386 ;; | |
1736 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 1737 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
1738 | esac |
1739 | case "${canonical}" in | |
1740 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1741 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1742 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1743 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 1744 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
1745 | esac |
1746 | ;; | |
1747 | ||
1748 | ## Alliant machines | |
1749 | ## Strictly speaking, we need the version of the alliant operating | |
1750 | ## system to choose the right machine file, but currently the | |
1751 | ## configuration name doesn't tell us enough to choose the right | |
1752 | ## one; we need to give alliants their own operating system name to | |
1753 | ## do this right. When someone cares, they can help us. | |
1754 | fx80-alliant-* ) | |
1755 | machine=alliant4 opsys=bsd4-2 | |
1756 | ;; | |
1757 | i860-alliant-* ) | |
1758 | machine=alliant-2800 opsys=bsd4-3 | |
1759 | ;; | |
1760 | ||
1761 | ## Alpha (DEC) machines. | |
1762 | alpha*-dec-osf* ) | |
1763 | machine=alpha opsys=osf1 | |
1764 | # This is needed to find X11R6.1 libraries for certain tests. | |
1765 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1766 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
1767 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1768 | # due to non-traditional preprocessing with the current compiler | |
1769 | # defaults. OSF 4 can also have that compiler version, and there | |
1770 | # seems always to have been a usable /usr/bin/cpp. | |
1771 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 1772 | case "${canonical}" in |
a55b799a | 1773 | alpha*-dec-osf[5-9]*) |
bb17930d | 1774 | opsys=osf5-0 ;; |
ca512671 | 1775 | esac |
ba4481b5 DL |
1776 | ;; |
1777 | ||
1778 | alpha*-*-linux-gnu* ) | |
1779 | machine=alpha opsys=gnu-linux | |
1780 | ;; | |
1781 | ||
c4bb2108 DL |
1782 | arm*-*-linux-gnu* ) |
1783 | machine=arm opsys=gnu-linux | |
1784 | ;; | |
1785 | ||
1786 | ppc-*-linux | \ | |
1787 | powerpc-*-linux* ) | |
3aeecf97 | 1788 | machine=macppc opsys=gnu-linux |
c4bb2108 DL |
1789 | ;; |
1790 | ||
ba4481b5 DL |
1791 | ## Altos 3068 |
1792 | m68*-altos-sysv* ) | |
1793 | machine=altos opsys=usg5-2 | |
1794 | ;; | |
1795 | ||
1796 | ## Amdahl UTS | |
1797 | 580-amdahl-sysv* ) | |
1798 | machine=amdahl opsys=usg5-2-2 | |
1799 | ;; | |
1800 | ||
1801 | ## Apollo, Domain/OS | |
1802 | m68*-apollo-* ) | |
1803 | machine=apollo opsys=bsd4-3 | |
1804 | ;; | |
1805 | ||
1806 | ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1807 | we32k-att-sysv* ) | |
1808 | machine=att3b opsys=usg5-2-2 | |
1809 | ;; | |
1810 | ||
1811 | ## AT&T 3b1 - The Mighty Unix PC! | |
1812 | m68*-att-sysv* ) | |
1813 | machine=7300 opsys=usg5-2-2 | |
1814 | ;; | |
1815 | ||
1816 | ## Bull dpx20 | |
1817 | rs6000-bull-bosx* ) | |
1818 | machine=ibmrs6000 opsys=aix3-2 | |
1819 | ;; | |
1820 | ||
1821 | ## Bull dpx2 | |
1822 | m68*-bull-sysv3* ) | |
1823 | machine=dpx2 opsys=usg5-3 | |
1824 | ;; | |
1825 | ||
1826 | ## Bull sps7 | |
1827 | m68*-bull-sysv2* ) | |
1828 | machine=sps7 opsys=usg5-2 | |
1829 | ;; | |
1830 | ||
1831 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
1832 | ||
1833 | ## Celerity | |
1834 | ## I don't know what configuration name to use for this; config.sub | |
1835 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1836 | ## in touch with us! | |
1837 | celerity-celerity-bsd* ) | |
1838 | machine=celerity opsys=bsd4-2 | |
1839 | ;; | |
1840 | ||
1841 | ## Clipper | |
1842 | ## What operating systems does this chip run that Emacs has been | |
1843 | ## tested on? | |
1844 | clipper-* ) | |
1845 | machine=clipper | |
1846 | ## We'll use the catch-all code at the bottom to guess the | |
1847 | ## operating system. | |
1848 | ;; | |
1849 | ||
df645f7c AS |
1850 | ## Compaq Nonstop |
1851 | mips-compaq-nonstopux* ) | |
1852 | machine=nonstopux opsys=nonstopux | |
1853 | ;; | |
1854 | ||
ba4481b5 DL |
1855 | ## Convex |
1856 | *-convex-bsd* | *-convex-convexos* ) | |
1857 | machine=convex opsys=bsd4-3 | |
1858 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1859 | NON_GNU_CPP="cc -E -P" | |
1860 | ;; | |
1861 | ||
1862 | ## Cubix QBx/386 | |
1863 | i[3456]86-cubix-sysv* ) | |
1864 | machine=intel386 opsys=usg5-3 | |
1865 | ;; | |
1866 | ||
1867 | ## Cydra 5 | |
1868 | cydra*-cydrome-sysv* ) | |
1869 | machine=cydra5 opsys=usg5-3 | |
1870 | ;; | |
1871 | ||
1872 | ## Data General AViiON Machines | |
1873 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
1874 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
1875 | ## R this shouldn't conflict with older versions of the OS (which I | |
1876 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1877 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
1878 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1879 | machine=aviion opsys=dgux4 | |
1880 | ;; | |
1881 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1882 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1883 | ## to avoid a file name conflict on MSDOS. | |
1884 | machine=aviion opsys=dgux5-4-3 | |
1885 | ;; | |
1886 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1887 | machine=aviion opsys=dgux5-4r2 | |
1888 | ;; | |
1889 | m88k-dg-dgux* ) | |
1890 | machine=aviion opsys=dgux | |
1891 | ;; | |
1892 | ||
1893 | ## Data General AViiON Intel (x86) Machines | |
1894 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1895 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1896 | i[345]86-dg-dguxR4* ) | |
1897 | machine=aviion-intel opsys=dgux4 | |
1898 | ;; | |
1899 | ||
1900 | ## DECstations | |
1901 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1902 | machine=pmax opsys=bsd4-2 | |
1903 | ;; | |
1904 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1905 | machine=pmax opsys=bsd4-3 | |
1906 | ;; | |
1907 | mips-dec-ultrix* ) | |
1908 | machine=pmax opsys=ultrix4-3 | |
1909 | ;; | |
1910 | mips-dec-osf* ) | |
1911 | machine=pmax opsys=osf1 | |
1912 | ;; | |
1913 | mips-dec-mach_bsd4.3* ) | |
1914 | machine=pmax opsys=mach-bsd4-3 | |
1915 | ;; | |
1916 | ||
cd890796 JD |
1917 | ## Motorola Delta machines |
1918 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1919 | machine=delta opsys=usg5-3 | |
1920 | if test -z "`type gnucc | grep 'not found'`" | |
1921 | then | |
1922 | if test -s /etc/167config | |
1923 | then CC="gnucc -m68040" | |
1924 | else CC="gnucc -m68881" | |
1925 | fi | |
1926 | else | |
1927 | if test -z "`type gcc | grep 'not found'`" | |
1928 | then CC=gcc | |
1929 | else CC=cc | |
1930 | fi | |
1931 | fi | |
1932 | ;; | |
ba4481b5 DL |
1933 | m88k-motorola-sysv4* ) |
1934 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1935 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1936 | # I hope there are not other 4.0 versions for this machine | |
1937 | # which really need usg5-4 instead. | |
1938 | machine=delta88k opsys=usg5-4-2 | |
1939 | ;; | |
1940 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1941 | machine=delta88k opsys=usg5-3 | |
1942 | ;; | |
1943 | ||
1944 | ## Dual machines | |
1945 | m68*-dual-sysv* ) | |
1946 | machine=dual opsys=usg5-2 | |
1947 | ;; | |
1948 | m68*-dual-uniplus* ) | |
1949 | machine=dual opsys=unipl5-2 | |
1950 | ;; | |
1951 | ||
1952 | ## Elxsi 6400 | |
1953 | elxsi-elxsi-sysv* ) | |
1954 | machine=elxsi opsys=usg5-2 | |
1955 | ;; | |
1956 | ||
1957 | ## Encore machines | |
1958 | ns16k-encore-bsd* ) | |
1959 | machine=ns16000 opsys=umax | |
1960 | ;; | |
1961 | ||
65171e3a DL |
1962 | ## The GEC 63 - apparently, this port isn't really finished yet. |
1963 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
1964 | |
1965 | ## Gould Power Node and NP1 | |
1966 | pn-gould-bsd4.2* ) | |
1967 | machine=gould opsys=bsd4-2 | |
1968 | ;; | |
1969 | pn-gould-bsd4.3* ) | |
1970 | machine=gould opsys=bsd4-3 | |
1971 | ;; | |
1972 | np1-gould-bsd* ) | |
1973 | machine=gould-np1 opsys=bsd4-3 | |
1974 | ;; | |
1975 | ||
1976 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1977 | ## as far as Emacs is concerned). | |
1978 | m88k-harris-cxux* ) | |
1979 | # Build needs to be different on 7.0 and later releases | |
1980 | case "`uname -r`" in | |
1981 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1982 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1983 | esac | |
1984 | NON_GNU_CPP="/lib/cpp" | |
1985 | ;; | |
1986 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1987 | m68k-harris-cxux* ) | |
1988 | machine=nh3000 opsys=cxux | |
1989 | ;; | |
1990 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1991 | powerpc-harris-powerunix ) | |
1992 | machine=nh6000 opsys=powerunix | |
1993 | NON_GNU_CPP="cc -Xo -E -P" | |
1994 | ;; | |
1995 | ## SR2001/SR2201 running HI-UX/MPP | |
1996 | hppa1.1-hitachi-hiuxmpp* ) | |
1997 | machine=sr2k opsys=hiuxmpp | |
1998 | ;; | |
89a336fa GM |
1999 | hppa1.1-hitachi-hiuxwe2* ) |
2000 | machine=sr2k opsys=hiuxwe2 | |
2001 | ;; | |
ba4481b5 DL |
2002 | ## Honeywell XPS100 |
2003 | xps*-honeywell-sysv* ) | |
2004 | machine=xps100 opsys=usg5-2 | |
2005 | ;; | |
2006 | ||
2007 | ## HP 9000 series 200 or 300 | |
2008 | m68*-hp-bsd* ) | |
2009 | machine=hp9000s300 opsys=bsd4-3 | |
2010 | ;; | |
2011 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
2012 | m68*-hp-hpux* ) | |
2013 | case "`uname -r`" in | |
2014 | ## Someone's system reports A.B8.05 for this. | |
2015 | ## I wonder what other possibilities there are. | |
2016 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2017 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2018 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
2019 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
2020 | *) machine=hp9000s300 opsys=hpux ;; | |
2021 | esac | |
2022 | ;; | |
2023 | ||
2024 | ## HP 9000 series 700 and 800, running HP/UX | |
2025 | hppa*-hp-hpux7* ) | |
2026 | machine=hp800 opsys=hpux | |
2027 | ;; | |
2028 | hppa*-hp-hpux8* ) | |
2029 | machine=hp800 opsys=hpux8 | |
2030 | ;; | |
2031 | hppa*-hp-hpux9shr* ) | |
2032 | machine=hp800 opsys=hpux9shr | |
2033 | ;; | |
2034 | hppa*-hp-hpux9* ) | |
2035 | machine=hp800 opsys=hpux9 | |
2036 | ;; | |
b0e44248 RB |
2037 | hppa*-hp-hpux10.2* ) |
2038 | machine=hp800 opsys=hpux10-20 | |
2039 | ;; | |
cc227489 | 2040 | hppa*-hp-hpux10* ) |
ba4481b5 DL |
2041 | machine=hp800 opsys=hpux10 |
2042 | ;; | |
cc227489 MB |
2043 | hppa*-hp-hpux1[1-9]* ) |
2044 | machine=hp800 opsys=hpux11 | |
2045 | ;; | |
ba4481b5 | 2046 | |
409d9577 GM |
2047 | hppa*-*-linux-gnu* ) |
2048 | machine=hp800 opsys=gnu-linux | |
2049 | ;; | |
2050 | ||
ba4481b5 DL |
2051 | ## HP 9000 series 700 and 800, running HP/UX |
2052 | hppa*-hp-hpux* ) | |
2053 | ## Cross-compilation? Nah! | |
2054 | case "`uname -r`" in | |
2055 | ## Someone's system reports A.B8.05 for this. | |
2056 | ## I wonder what other possibilities there are. | |
2057 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2058 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2059 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2060 | *) machine=hp800 opsys=hpux10 ;; | |
2061 | esac | |
2062 | ;; | |
2063 | hppa*-*-nextstep* ) | |
2064 | machine=hp800 opsys=nextstep | |
2065 | ;; | |
2066 | ||
2067 | ## Orion machines | |
2068 | orion-orion-bsd* ) | |
2069 | machine=orion opsys=bsd4-2 | |
2070 | ;; | |
2071 | clipper-orion-bsd* ) | |
2072 | machine=orion105 opsys=bsd4-2 | |
2073 | ;; | |
2074 | ||
2075 | ## IBM machines | |
2076 | i[3456]86-ibm-aix1.1* ) | |
2077 | machine=ibmps2-aix opsys=usg5-2-2 | |
2078 | ;; | |
2079 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
2080 | machine=ibmps2-aix opsys=usg5-3 | |
2081 | ;; | |
2082 | i370-ibm-aix*) | |
2083 | machine=ibm370aix opsys=usg5-3 | |
2084 | ;; | |
55597d70 | 2085 | s390-*-linux-gnu* ) |
138f0859 GM |
2086 | machine=ibms390 opsys=gnu-linux |
2087 | ;; | |
ba4481b5 DL |
2088 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2089 | machine=ibmrs6000 opsys=aix3-1 | |
2090 | ;; | |
2091 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2092 | machine=ibmrs6000 opsys=aix3-2-5 | |
2093 | ;; | |
2094 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2095 | machine=ibmrs6000 opsys=aix4-1 | |
2096 | ;; | |
2097 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2098 | machine=ibmrs6000 opsys=aix4-2 | |
2099 | ;; | |
55597d70 | 2100 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2101 | machine=ibmrs6000 opsys=aix4-2 |
2102 | ;; | |
ba4481b5 DL |
2103 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2104 | machine=ibmrs6000 opsys=aix4 | |
2105 | ;; | |
2106 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2107 | machine=ibmrs6000 opsys=aix4-1 | |
2108 | ;; | |
2109 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2110 | machine=ibmrs6000 opsys=aix3-2 | |
2111 | ;; | |
2112 | romp-ibm-bsd4.3* ) | |
2113 | machine=ibmrt opsys=bsd4-3 | |
2114 | ;; | |
2115 | romp-ibm-bsd4.2* ) | |
2116 | machine=ibmrt opsys=bsd4-2 | |
2117 | ;; | |
2118 | romp-ibm-aos4.3* ) | |
2119 | machine=ibmrt opsys=bsd4-3 | |
2120 | ;; | |
2121 | romp-ibm-aos4.2* ) | |
2122 | machine=ibmrt opsys=bsd4-2 | |
2123 | ;; | |
2124 | romp-ibm-aos* ) | |
2125 | machine=ibmrt opsys=bsd4-3 | |
2126 | ;; | |
2127 | romp-ibm-bsd* ) | |
2128 | machine=ibmrt opsys=bsd4-3 | |
2129 | ;; | |
2130 | romp-ibm-aix* ) | |
2131 | machine=ibmrt-aix opsys=usg5-2-2 | |
2132 | ;; | |
2133 | ||
2134 | ## Integrated Solutions `Optimum V' | |
2135 | m68*-isi-bsd4.2* ) | |
2136 | machine=isi-ov opsys=bsd4-2 | |
2137 | ;; | |
2138 | m68*-isi-bsd4.3* ) | |
2139 | machine=isi-ov opsys=bsd4-3 | |
2140 | ;; | |
2141 | ||
2142 | ## Intel 386 machines where we do care about the manufacturer | |
2143 | i[3456]86-intsys-sysv* ) | |
2144 | machine=is386 opsys=usg5-2-2 | |
2145 | ;; | |
2146 | ||
2147 | ## Prime EXL | |
2148 | i[3456]86-prime-sysv* ) | |
2149 | machine=i386 opsys=usg5-3 | |
2150 | ;; | |
2151 | ||
2152 | ## Sequent Symmetry running Dynix | |
2153 | i[3456]86-sequent-bsd* ) | |
2154 | machine=symmetry opsys=bsd4-3 | |
2155 | ;; | |
2156 | ||
2157 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2158 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2159 | machine=sequent-ptx opsys=ptx4 | |
2160 | NON_GNU_CPP=/lib/cpp | |
2161 | ;; | |
2162 | ||
2163 | ## Sequent Symmetry running DYNIX/ptx | |
2164 | ## Use the old cpp rather than the newer ANSI one. | |
2165 | i[3456]86-sequent-ptx* ) | |
2166 | machine=sequent-ptx opsys=ptx | |
2167 | NON_GNU_CPP="/lib/cpp" | |
2168 | ;; | |
2169 | ||
2170 | ## ncr machine running svr4.3. | |
2171 | i[3456]86-ncr-sysv4.3 ) | |
2172 | machine=ncr386 opsys=usg5-4-3 | |
2173 | ;; | |
2174 | ||
2175 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2176 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2177 | i[3456]86-ncr-sysv* ) | |
2178 | machine=ncr386 opsys=usg5-4-2 | |
2179 | ;; | |
2180 | ||
2181 | ## Intel Paragon OSF/1 | |
2182 | i860-intel-osf1* ) | |
2183 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2184 | ;; | |
2185 | ||
2186 | ## Intel 860 | |
2187 | i860-*-sysv4* ) | |
2188 | machine=i860 opsys=usg5-4 | |
2189 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2190 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2191 | ;; | |
2192 | ||
c76e04a8 GM |
2193 | ## Macintosh PowerPC |
2194 | powerpc*-*-linux-gnu* ) | |
2195 | machine=macppc opsys=gnu-linux | |
2196 | ;; | |
2197 | ||
ba4481b5 DL |
2198 | ## Masscomp machines |
2199 | m68*-masscomp-rtu* ) | |
2200 | machine=masscomp opsys=rtu | |
2201 | ;; | |
2202 | ||
2203 | ## Megatest machines | |
2204 | m68*-megatest-bsd* ) | |
2205 | machine=mega68 opsys=bsd4-2 | |
2206 | ;; | |
2207 | ||
2208 | ## Workstations sold by MIPS | |
2209 | ## This is not necessarily all workstations using the MIPS processor - | |
2210 | ## Irises are produced by SGI, and DECstations by DEC. | |
2211 | ||
2212 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2213 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2214 | ## it gives for choosing between the alternatives seems to be "Use | |
2215 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2216 | ## the BSD world." I'll assume that these are instructions for | |
2217 | ## handling two odd situations, and that every other situation | |
2218 | ## should use mips.h and usg5-2-2, they being listed first. | |
2219 | mips-mips-usg* ) | |
2220 | machine=mips4 | |
2221 | ## Fall through to the general code at the bottom to decide on the OS. | |
2222 | ;; | |
2223 | mips-mips-riscos4* ) | |
2224 | machine=mips4 opsys=bsd4-3 | |
2225 | NON_GNU_CC="cc -systype bsd43" | |
2226 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2227 | ;; | |
2228 | mips-mips-riscos5* ) | |
2229 | machine=mips4 opsys=riscos5 | |
2230 | NON_GNU_CC="cc -systype bsd43" | |
2231 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2232 | ;; | |
2233 | mips-mips-bsd* ) | |
2234 | machine=mips opsys=bsd4-3 | |
2235 | ;; | |
2236 | mips-mips-* ) | |
2237 | machine=mips opsys=usg5-2-2 | |
2238 | ;; | |
2239 | ||
2240 | ## NeXT | |
2241 | m68*-next-* | m68k-*-nextstep* ) | |
2242 | machine=m68k opsys=nextstep | |
2243 | ;; | |
2244 | ||
2245 | ## The complete machine from National Semiconductor | |
2246 | ns32k-ns-genix* ) | |
2247 | machine=ns32000 opsys=usg5-2 | |
2248 | ;; | |
2249 | ||
2250 | ## NCR machines | |
2251 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2252 | machine=tower32 opsys=usg5-2-2 | |
2253 | ;; | |
2254 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2255 | machine=tower32v3 opsys=usg5-3 | |
2256 | ;; | |
2257 | ||
2258 | ## NEC EWS4800 | |
2259 | mips-nec-sysv4*) | |
2260 | machine=ews4800 opsys=ux4800 | |
2261 | ;; | |
2262 | ||
2263 | ## Nixdorf Targon 31 | |
2264 | m68*-nixdorf-sysv* ) | |
2265 | machine=targon31 opsys=usg5-2-2 | |
2266 | ;; | |
2267 | ||
2268 | ## Nu (TI or LMI) | |
2269 | m68*-nu-sysv* ) | |
2270 | machine=nu opsys=usg5-2 | |
2271 | ;; | |
2272 | ||
2273 | ## Plexus | |
2274 | m68*-plexus-sysv* ) | |
2275 | machine=plexus opsys=usg5-2 | |
2276 | ;; | |
2277 | ||
ba4481b5 DL |
2278 | ## Pyramid machines |
2279 | ## I don't really have any idea what sort of processor the Pyramid has, | |
2280 | ## so I'm assuming it is its own architecture. | |
2281 | pyramid-pyramid-bsd* ) | |
2282 | machine=pyramid opsys=bsd4-2 | |
2283 | ;; | |
2284 | ||
2285 | ## Sequent Balance | |
2286 | ns32k-sequent-bsd4.2* ) | |
2287 | machine=sequent opsys=bsd4-2 | |
2288 | ;; | |
2289 | ns32k-sequent-bsd4.3* ) | |
2290 | machine=sequent opsys=bsd4-3 | |
2291 | ;; | |
2292 | ||
2293 | ## Siemens Nixdorf | |
2294 | mips-siemens-sysv* | mips-sni-sysv*) | |
2295 | machine=mips-siemens opsys=usg5-4 | |
2296 | NON_GNU_CC=/usr/ccs/bin/cc | |
2297 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2298 | ;; | |
2299 | ||
2300 | ## Silicon Graphics machines | |
2301 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2302 | m68*-sgi-iris3.5* ) | |
2303 | machine=irist opsys=iris3-5 | |
2304 | ;; | |
2305 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2306 | machine=irist opsys=iris3-6 | |
2307 | ;; | |
2308 | ## Iris 4D | |
2309 | mips-sgi-irix3* ) | |
2310 | machine=iris4d opsys=irix3-3 | |
2311 | ;; | |
2312 | mips-sgi-irix4* ) | |
2313 | machine=iris4d opsys=irix4-0 | |
2314 | ;; | |
2315 | mips-sgi-irix6.5 ) | |
2316 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2317 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2318 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2319 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2320 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2321 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
2322 | ;; |
2323 | mips-sgi-irix6* ) | |
2324 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 2325 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2326 | # but presumably it does no harm. |
2327 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2328 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2329 | NON_GCC_TEST_OPTIONS=-32 |
2330 | ;; | |
2331 | mips-sgi-irix5.[01]* ) | |
2332 | machine=iris4d opsys=irix5-0 | |
2333 | ;; | |
2334 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2335 | machine=iris4d opsys=irix5-2 | |
2336 | ;; | |
2337 | ||
2338 | ## SONY machines | |
2339 | m68*-sony-bsd4.2* ) | |
2340 | machine=news opsys=bsd4-2 | |
2341 | ;; | |
2342 | m68*-sony-bsd4.3* ) | |
2343 | machine=news opsys=bsd4-3 | |
2344 | ;; | |
2345 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2346 | machine=news opsys=bsd4-3 | |
2347 | ;; | |
2348 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2349 | machine=news-risc opsys=bsd4-3 | |
2350 | ;; | |
2351 | mips-sony-newsos6* ) | |
2352 | machine=news-r6 opsys=newsos6 | |
2353 | ;; | |
2354 | mips-sony-news* ) | |
2355 | machine=news-risc opsys=newsos5 | |
2356 | ;; | |
2357 | ||
2358 | ## Stride | |
2359 | m68*-stride-sysv* ) | |
2360 | machine=stride opsys=usg5-2 | |
2361 | ;; | |
2362 | ||
2363 | ## Suns | |
2364 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2365 | machine=sparc opsys=gnu-linux | |
2366 | ;; | |
2367 | ||
d054101f | 2368 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2369 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2370 | | rs6000-*-solaris2*) | |
2371 | case "${canonical}" in | |
2372 | m68*-sunos1* ) machine=sun1 ;; | |
2373 | m68*-sunos2* ) machine=sun2 ;; | |
2374 | m68* ) machine=sun3 ;; | |
2375 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2376 | i[3456]86-*-* ) machine=intel386 ;; | |
2377 | powerpcle* ) machine=powerpcle ;; | |
2378 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2379 | sparc* ) machine=sparc ;; | |
2380 | * ) unported=yes ;; | |
2381 | esac | |
2382 | case "${canonical}" in | |
2383 | ## The Sun386 didn't get past 4.0. | |
2384 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2385 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2386 | *-sunos4.1.[3-9]*noshare ) | |
2387 | ## This name is sunos413 instead of sunos4-1-3 | |
2388 | ## to avoid a file name conflict on MSDOS. | |
2389 | opsys=sunos413 | |
2390 | NON_GNU_CPP=/usr/lib/cpp | |
2391 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2392 | GCC_TEST_OPTIONS=-static | |
2393 | ;; | |
2394 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2395 | opsys=sunos4shr | |
2396 | NON_GNU_CPP=/usr/lib/cpp | |
2397 | ;; | |
2398 | *-sunos4* | *-sunos ) | |
2399 | opsys=sunos4-1 | |
2400 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2401 | GCC_TEST_OPTIONS=-static | |
2402 | ;; | |
2403 | *-sunos5.3* | *-solaris2.3* ) | |
2404 | opsys=sol2-3 | |
2405 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2406 | ;; | |
2407 | *-sunos5.4* | *-solaris2.4* ) | |
2408 | opsys=sol2-4 | |
2409 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2410 | RANLIB="ar -ts" | |
2411 | ;; | |
2412 | *-sunos5.5* | *-solaris2.5* ) | |
2413 | opsys=sol2-5 | |
2414 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2415 | RANLIB="ar -ts" | |
2416 | ;; | |
8e967cf7 MR |
2417 | *-sunos5.6* | *-solaris2.6* ) |
2418 | opsys=sol2-6 | |
2419 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2420 | RANLIB="ar -ts" | |
2421 | ;; | |
ba4481b5 | 2422 | *-sunos5* | *-solaris* ) |
9e71690e | 2423 | opsys=sol2-6 |
ba4481b5 DL |
2424 | NON_GNU_CPP=/usr/ccs/lib/cpp |
2425 | ;; | |
2426 | * ) opsys=bsd4-2 ;; | |
2427 | esac | |
2428 | ## Watch out for a compiler that we know will not work. | |
2429 | case "${canonical}" in | |
2430 | *-solaris* | *-sunos5* ) | |
2431 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2432 | ## /usr/ucb/cc doesn't work; | |
2433 | ## we should find some other compiler that does work. | |
2434 | unset CC | |
2435 | fi | |
2436 | ;; | |
2437 | *) ;; | |
2438 | esac | |
2439 | ;; | |
2440 | sparc-*-nextstep* ) | |
2441 | machine=sparc opsys=nextstep | |
2442 | ;; | |
2443 | ||
2444 | ## Tadpole 68k | |
2445 | m68*-tadpole-sysv* ) | |
2446 | machine=tad68k opsys=usg5-3 | |
2447 | ;; | |
2448 | ||
2449 | ## Tahoe machines | |
2450 | tahoe-tahoe-bsd4.2* ) | |
2451 | machine=tahoe opsys=bsd4-2 | |
2452 | ;; | |
2453 | tahoe-tahoe-bsd4.3* ) | |
2454 | machine=tahoe opsys=bsd4-3 | |
2455 | ;; | |
2456 | ||
2457 | ## Tandem Integrity S2 | |
2458 | mips-tandem-sysv* ) | |
2459 | machine=tandem-s2 opsys=usg5-3 | |
2460 | ;; | |
2461 | ||
2462 | ## Tektronix XD88 | |
2463 | m88k-tektronix-sysv3* ) | |
2464 | machine=tekxd88 opsys=usg5-3 | |
2465 | ;; | |
2466 | ||
2467 | ## Tektronix 16000 box (6130?) | |
2468 | ns16k-tektronix-bsd* ) | |
2469 | machine=ns16000 opsys=bsd4-2 | |
2470 | ;; | |
2471 | ## Tektronix 4300 | |
2472 | ## src/m/tek4300.h hints that this is a m68k machine. | |
2473 | m68*-tektronix-bsd* ) | |
2474 | machine=tek4300 opsys=bsd4-3 | |
2475 | ;; | |
2476 | ||
2477 | ## Titan P2 or P3 | |
2478 | ## We seem to have lost the machine-description file titan.h! | |
2479 | titan-titan-sysv* ) | |
2480 | machine=titan opsys=usg5-3 | |
2481 | ;; | |
2482 | ||
2483 | ## Ustation E30 (SS5E) | |
2484 | m68*-unisys-uniplus* ) | |
2485 | machine=ustation opsystem=unipl5-2 | |
2486 | ;; | |
2487 | ||
2488 | ## Vaxen. | |
2489 | vax-dec-* ) | |
2490 | machine=vax | |
2491 | case "${canonical}" in | |
2492 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
2493 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2494 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2495 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2496 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2497 | *-vms* ) opsys=vms ;; | |
2498 | * ) unported=yes | |
2499 | esac | |
2500 | ;; | |
2501 | ||
2502 | ## Whitechapel MG1 | |
2503 | ns16k-whitechapel-* ) | |
2504 | machine=mg1 | |
2505 | ## We don't know what sort of OS runs on these; we'll let the | |
2506 | ## operating system guessing code below try. | |
2507 | ;; | |
2508 | ||
2509 | ## Wicat | |
2510 | m68*-wicat-sysv* ) | |
2511 | machine=wicat opsys=usg5-2 | |
2512 | ;; | |
2513 | ||
f4988be7 GM |
2514 | ## IA-64 |
2515 | ia64*-*-linux* ) | |
2516 | machine=ia64 opsys=gnu-linux | |
2517 | ;; | |
2518 | ||
ba4481b5 DL |
2519 | ## Intel 386 machines where we don't care about the manufacturer |
2520 | i[3456]86-*-* ) | |
2521 | machine=intel386 | |
2522 | case "${canonical}" in | |
c60ee5e7 | 2523 | *-cygwin ) opsys=cygwin ;; |
9f817ea4 | 2524 | *-lynxos* ) opsys=lynxos ;; |
ba4481b5 DL |
2525 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2526 | *-isc2.2* ) opsys=isc2-2 ;; | |
2527 | *-isc4.0* ) opsys=isc4-0 ;; | |
2528 | *-isc4.* ) opsys=isc4-1 | |
2529 | GCC_TEST_OPTIONS=-posix | |
2530 | NON_GCC_TEST_OPTIONS=-Xp | |
2531 | ;; | |
2532 | *-isc* ) opsys=isc3-0 ;; | |
2533 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2534 | *-esix* ) opsys=esix ;; | |
2535 | *-xenix* ) opsys=xenix ;; | |
2536 | *-linux-gnu* ) opsys=gnu-linux ;; | |
2537 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 2538 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
2539 | NON_GNU_CPP=/lib/cpp |
2540 | # Prevent -belf from being passed to $CPP. | |
2541 | # /lib/cpp does not accept it. | |
2542 | OVERRIDE_CPPFLAGS=" " | |
2543 | ;; | |
2544 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
55597d70 DL |
2545 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
2546 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 | 2547 | *-386bsd* ) opsys=386bsd ;; |
ba4481b5 DL |
2548 | *-nextstep* ) opsys=nextstep ;; |
2549 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2550 | esac | |
2551 | ;; | |
2552 | ||
2553 | ## m68k Linux-based GNU system | |
2554 | m68k-*-linux-gnu* ) | |
2555 | machine=m68k opsys=gnu-linux | |
2556 | ;; | |
2557 | ||
2558 | ## Mips Linux-based GNU system | |
cd958eb3 | 2559 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
2560 | machine=mips opsys=gnu-linux |
2561 | ;; | |
2562 | ||
2563 | ## UXP/DS | |
2564 | sparc-fujitsu-sysv4* ) | |
2565 | machine=sparc opsys=uxpds | |
2566 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2567 | RANLIB="ar -ts" | |
2568 | ;; | |
2569 | ||
2570 | ## UXP/V | |
2571 | f301-fujitsu-uxpv4.1) | |
2572 | machine=f301 opsys=uxpv | |
2573 | ;; | |
2574 | ||
e0f712ba AC |
2575 | ## Darwin / Mac OS X |
2576 | powerpc-apple-darwin* ) | |
2577 | machine=powermac opsys=darwin | |
2578 | # Define CPP as follows to make autoconf work correctly. | |
463f5630 | 2579 | CPP="cc -E -traditional-cpp" |
e0f712ba AC |
2580 | ;; |
2581 | ||
598a2813 AS |
2582 | ## AMD x86-64 Linux-based GNU system |
2583 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 2584 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
2585 | ;; |
2586 | ||
ba4481b5 DL |
2587 | * ) |
2588 | unported=yes | |
2589 | ;; | |
2590 | esac | |
2591 | ||
2592 | ### If the code above didn't choose an operating system, just choose | |
2593 | ### an operating system based on the configuration name. You really | |
2594 | ### only want to use this when you have no idea what the right | |
2595 | ### operating system is; if you know what operating systems a machine | |
2596 | ### runs, it's cleaner to make it explicit in the case statement | |
2597 | ### above. | |
2598 | if test x"${opsys}" = x; then | |
2599 | case "${canonical}" in | |
2600 | *-gnu* ) opsys=gnu ;; | |
2601 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2602 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
2603 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
2604 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2605 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2606 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2607 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2608 | *-sysv4.2uw* ) opsys=unixware ;; | |
55597d70 DL |
2609 | *-sysv5uw* ) opsys=unixware ;; |
2610 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
2611 | *-sysv4.1* | *-sysvr4.1* ) |
2612 | NON_GNU_CPP=/usr/lib/cpp | |
2613 | opsys=usg5-4 ;; | |
2614 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2615 | if [ x$NON_GNU_CPP = x ]; then | |
2616 | if [ -f /usr/ccs/lib/cpp ]; then | |
2617 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2618 | else | |
2619 | NON_GNU_CPP=/lib/cpp | |
2620 | fi | |
2621 | fi | |
2622 | opsys=usg5-4-2 ;; | |
2623 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2624 | * ) | |
2625 | unported=yes | |
2626 | ;; | |
2627 | esac | |
2628 | fi | |
2629 | ||
c0d27fcc | 2630 | |
22044edf | 2631 | |
ba4481b5 | 2632 | if test $unported = yes; then |
c0d27fcc | 2633 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
2634 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
2635 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2636 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2637 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2638 | fi |
2639 | ||
2640 | machfile="m/${machine}.h" | |
2641 | opsysfile="s/${opsys}.h" | |
2642 | ||
c0d27fcc | 2643 | |
ba4481b5 DL |
2644 | #### Choose a compiler. |
2645 | test -n "$CC" && cc_specified=yes | |
2646 | ||
2647 | # Save the value of CFLAGS that the user specified. | |
2648 | SPECIFIED_CFLAGS="$CFLAGS" | |
2649 | ||
2650 | case ${with_gcc} in | |
2651 | "yes" ) CC="gcc" GCC=yes ;; | |
2652 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
2653 | * ) |
2654 | esac | |
2655 | ac_ext=c | |
2656 | ac_cpp='$CPP $CPPFLAGS' | |
2657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2660 | if test -n "$ac_tool_prefix"; then | |
2661 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2662 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
c0d27fcc | 2663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2665 | if test "${ac_cv_prog_CC+set}" = set; then | |
2666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2667 | else |
2668 | if test -n "$CC"; then | |
2669 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2670 | else | |
c0d27fcc MR |
2671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2672 | for as_dir in $PATH | |
2673 | do | |
2674 | IFS=$as_save_IFS | |
2675 | test -z "$as_dir" && as_dir=. | |
2676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2678 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2680 | break 2 | |
2681 | fi | |
2682 | done | |
503d2be0 AS |
2683 | done |
2684 | ||
ba4481b5 DL |
2685 | fi |
2686 | fi | |
503d2be0 | 2687 | CC=$ac_cv_prog_CC |
ba4481b5 | 2688 | if test -n "$CC"; then |
c0d27fcc | 2689 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2690 | echo "${ECHO_T}$CC" >&6 |
2691 | else | |
c0d27fcc | 2692 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2693 | echo "${ECHO_T}no" >&6 |
2694 | fi | |
2695 | ||
2696 | fi | |
2697 | if test -z "$ac_cv_prog_CC"; then | |
2698 | ac_ct_CC=$CC | |
2699 | # Extract the first word of "gcc", so it can be a program name with args. | |
2700 | set dummy gcc; ac_word=$2 | |
c0d27fcc | 2701 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2703 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2705 | else | |
2706 | if test -n "$ac_ct_CC"; then | |
2707 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2708 | else | |
c0d27fcc MR |
2709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2710 | for as_dir in $PATH | |
2711 | do | |
2712 | IFS=$as_save_IFS | |
2713 | test -z "$as_dir" && as_dir=. | |
2714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2716 | ac_cv_prog_ac_ct_CC="gcc" | |
2717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2718 | break 2 | |
2719 | fi | |
2720 | done | |
503d2be0 AS |
2721 | done |
2722 | ||
2723 | fi | |
2724 | fi | |
2725 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2726 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2727 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 | 2728 | echo "${ECHO_T}$ac_ct_CC" >&6 |
ba4481b5 | 2729 | else |
c0d27fcc | 2730 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2731 | echo "${ECHO_T}no" >&6 |
2732 | fi | |
2733 | ||
2734 | CC=$ac_ct_CC | |
2735 | else | |
2736 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
2737 | fi |
2738 | ||
2739 | if test -z "$CC"; then | |
503d2be0 AS |
2740 | if test -n "$ac_tool_prefix"; then |
2741 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2742 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
c0d27fcc | 2743 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2745 | if test "${ac_cv_prog_CC+set}" = set; then | |
2746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2747 | else |
2748 | if test -n "$CC"; then | |
2749 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2750 | else | |
c0d27fcc MR |
2751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2752 | for as_dir in $PATH | |
2753 | do | |
2754 | IFS=$as_save_IFS | |
2755 | test -z "$as_dir" && as_dir=. | |
2756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2757 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2758 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2760 | break 2 | |
2761 | fi | |
2762 | done | |
503d2be0 AS |
2763 | done |
2764 | ||
2765 | fi | |
2766 | fi | |
2767 | CC=$ac_cv_prog_CC | |
2768 | if test -n "$CC"; then | |
c0d27fcc | 2769 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2770 | echo "${ECHO_T}$CC" >&6 |
2771 | else | |
c0d27fcc | 2772 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2773 | echo "${ECHO_T}no" >&6 |
2774 | fi | |
2775 | ||
2776 | fi | |
2777 | if test -z "$ac_cv_prog_CC"; then | |
2778 | ac_ct_CC=$CC | |
2779 | # Extract the first word of "cc", so it can be a program name with args. | |
2780 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2781 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2783 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2785 | else | |
2786 | if test -n "$ac_ct_CC"; then | |
2787 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2788 | else | |
c0d27fcc MR |
2789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2790 | for as_dir in $PATH | |
2791 | do | |
2792 | IFS=$as_save_IFS | |
2793 | test -z "$as_dir" && as_dir=. | |
2794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2795 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2796 | ac_cv_prog_ac_ct_CC="cc" | |
2797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2798 | break 2 | |
2799 | fi | |
2800 | done | |
503d2be0 AS |
2801 | done |
2802 | ||
2803 | fi | |
2804 | fi | |
2805 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2806 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2807 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2808 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2809 | else | |
c0d27fcc | 2810 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2811 | echo "${ECHO_T}no" >&6 |
2812 | fi | |
2813 | ||
2814 | CC=$ac_ct_CC | |
2815 | else | |
2816 | CC="$ac_cv_prog_CC" | |
2817 | fi | |
2818 | ||
2819 | fi | |
2820 | if test -z "$CC"; then | |
2821 | # Extract the first word of "cc", so it can be a program name with args. | |
2822 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2823 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2825 | if test "${ac_cv_prog_CC+set}" = set; then | |
2826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2827 | else | |
2828 | if test -n "$CC"; then | |
2829 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2830 | else | |
2831 | ac_prog_rejected=no | |
c0d27fcc MR |
2832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2833 | for as_dir in $PATH | |
2834 | do | |
2835 | IFS=$as_save_IFS | |
2836 | test -z "$as_dir" && as_dir=. | |
2837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2839 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2840 | ac_prog_rejected=yes | |
2841 | continue | |
2842 | fi | |
2843 | ac_cv_prog_CC="cc" | |
2844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2845 | break 2 | |
2846 | fi | |
2847 | done | |
503d2be0 AS |
2848 | done |
2849 | ||
ba4481b5 DL |
2850 | if test $ac_prog_rejected = yes; then |
2851 | # We found a bogon in the path, so make sure we never use it. | |
2852 | set dummy $ac_cv_prog_CC | |
2853 | shift | |
503d2be0 | 2854 | if test $# != 0; then |
ba4481b5 DL |
2855 | # We chose a different compiler from the bogus one. |
2856 | # However, it has the same basename, so the bogon will be chosen | |
2857 | # first if we set CC to just the basename; use the full file name. | |
2858 | shift | |
6bae0ccf | 2859 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
2860 | fi |
2861 | fi | |
2862 | fi | |
2863 | fi | |
503d2be0 | 2864 | CC=$ac_cv_prog_CC |
ba4481b5 | 2865 | if test -n "$CC"; then |
c0d27fcc | 2866 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2867 | echo "${ECHO_T}$CC" >&6 |
ba4481b5 | 2868 | else |
c0d27fcc | 2869 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2870 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2871 | fi |
2872 | ||
503d2be0 AS |
2873 | fi |
2874 | if test -z "$CC"; then | |
2875 | if test -n "$ac_tool_prefix"; then | |
2876 | for ac_prog in cl | |
2877 | do | |
2878 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2879 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c0d27fcc | 2880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2882 | if test "${ac_cv_prog_CC+set}" = set; then | |
2883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
2884 | else |
2885 | if test -n "$CC"; then | |
2886 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2887 | else | |
c0d27fcc MR |
2888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2889 | for as_dir in $PATH | |
2890 | do | |
2891 | IFS=$as_save_IFS | |
2892 | test -z "$as_dir" && as_dir=. | |
2893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2895 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2897 | break 2 | |
2898 | fi | |
2899 | done | |
503d2be0 AS |
2900 | done |
2901 | ||
c4bb2108 DL |
2902 | fi |
2903 | fi | |
503d2be0 | 2904 | CC=$ac_cv_prog_CC |
c4bb2108 | 2905 | if test -n "$CC"; then |
c0d27fcc | 2906 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2907 | echo "${ECHO_T}$CC" >&6 |
c4bb2108 | 2908 | else |
c0d27fcc | 2909 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2910 | echo "${ECHO_T}no" >&6 |
2911 | fi | |
2912 | ||
2913 | test -n "$CC" && break | |
2914 | done | |
2915 | fi | |
2916 | if test -z "$CC"; then | |
2917 | ac_ct_CC=$CC | |
2918 | for ac_prog in cl | |
2919 | do | |
2920 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2921 | set dummy $ac_prog; ac_word=$2 | |
c0d27fcc | 2922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2924 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2926 | else | |
2927 | if test -n "$ac_ct_CC"; then | |
2928 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2929 | else | |
c0d27fcc MR |
2930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2931 | for as_dir in $PATH | |
2932 | do | |
2933 | IFS=$as_save_IFS | |
2934 | test -z "$as_dir" && as_dir=. | |
2935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2936 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2937 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2939 | break 2 | |
2940 | fi | |
2941 | done | |
503d2be0 AS |
2942 | done |
2943 | ||
c4bb2108 | 2944 | fi |
503d2be0 AS |
2945 | fi |
2946 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2947 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2948 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2949 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2950 | else | |
c0d27fcc | 2951 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2952 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2953 | fi |
2954 | ||
503d2be0 AS |
2955 | test -n "$ac_ct_CC" && break |
2956 | done | |
ba4481b5 | 2957 | |
503d2be0 AS |
2958 | CC=$ac_ct_CC |
2959 | fi | |
2960 | ||
2961 | fi | |
ba4481b5 | 2962 | |
c0d27fcc | 2963 | |
19650fd6 AS |
2964 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2965 | See \`config.log' for more details." >&5 | |
2966 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2967 | See \`config.log' for more details." >&2;} | |
503d2be0 | 2968 | { (exit 1); exit 1; }; } |
c4bb2108 | 2969 | |
503d2be0 | 2970 | # Provide some information about the compiler. |
c0d27fcc | 2971 | echo "$as_me:$LINENO:" \ |
503d2be0 AS |
2972 | "checking for C compiler version" >&5 |
2973 | ac_compiler=`set X $ac_compile; echo $2` | |
c0d27fcc | 2974 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
503d2be0 AS |
2975 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2976 | ac_status=$? | |
c0d27fcc | 2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 2978 | (exit $ac_status); } |
c0d27fcc | 2979 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
503d2be0 AS |
2980 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2981 | ac_status=$? | |
c0d27fcc | 2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 2983 | (exit $ac_status); } |
c0d27fcc | 2984 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
503d2be0 AS |
2985 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2986 | ac_status=$? | |
c0d27fcc | 2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
2988 | (exit $ac_status); } |
2989 | ||
2990 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 2991 | #line $LINENO "configure" |
19650fd6 AS |
2992 | /* confdefs.h. */ |
2993 | _ACEOF | |
2994 | cat confdefs.h >>conftest.$ac_ext | |
2995 | cat >>conftest.$ac_ext <<_ACEOF | |
2996 | /* end confdefs.h. */ | |
c4bb2108 | 2997 | |
503d2be0 AS |
2998 | int |
2999 | main () | |
3000 | { | |
3001 | ||
3002 | ; | |
3003 | return 0; | |
3004 | } | |
3005 | _ACEOF | |
3006 | ac_clean_files_save=$ac_clean_files | |
19650fd6 | 3007 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
3008 | # Try to create an executable without -o first, disregard a.out. |
3009 | # It will help us diagnose broken compilers, and finding out an intuition | |
3010 | # of exeext. | |
793fa0d7 DL |
3011 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
3012 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
503d2be0 | 3013 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
c0d27fcc | 3014 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
503d2be0 AS |
3015 | (eval $ac_link_default) 2>&5 |
3016 | ac_status=$? | |
c0d27fcc | 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3018 | (exit $ac_status); }; then |
3019 | # Find the output, starting from the most likely. This scheme is | |
3020 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3021 | # resort. | |
c0d27fcc MR |
3022 | |
3023 | # Be careful to initialize this variable, since it used to be cached. | |
3024 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3025 | ac_cv_exeext= | |
19650fd6 AS |
3026 | # b.out is created by i960 compilers. |
3027 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
3028 | do | |
6bae0ccf | 3029 | test -f "$ac_file" || continue |
503d2be0 | 3030 | case $ac_file in |
19650fd6 | 3031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
793fa0d7 | 3032 | ;; |
19650fd6 | 3033 | conftest.$ac_ext ) |
793fa0d7 DL |
3034 | # This is the source file. |
3035 | ;; | |
19650fd6 | 3036 | [ab].out ) |
793fa0d7 DL |
3037 | # We found the default executable, but exeext='' is most |
3038 | # certainly right. | |
3039 | break;; | |
19650fd6 | 3040 | *.* ) |
793fa0d7 DL |
3041 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3042 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3043 | # but it would be cool to find out if it's true. Does anybody | |
3044 | # maintain Libtool? --akim. | |
3045 | export ac_cv_exeext | |
3046 | break;; | |
19650fd6 | 3047 | * ) |
793fa0d7 | 3048 | break;; |
503d2be0 AS |
3049 | esac |
3050 | done | |
3051 | else | |
3052 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3053 | sed 's/^/| /' conftest.$ac_ext >&5 |
3054 | ||
6bae0ccf | 3055 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
19650fd6 | 3056 | See \`config.log' for more details." >&5 |
6bae0ccf | 3057 | echo "$as_me: error: C compiler cannot create executables |
19650fd6 | 3058 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3059 | { (exit 77); exit 77; }; } |
3060 | fi | |
3061 | ||
3062 | ac_exeext=$ac_cv_exeext | |
c0d27fcc | 3063 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
503d2be0 AS |
3064 | echo "${ECHO_T}$ac_file" >&6 |
3065 | ||
3066 | # Check the compiler produces executables we can run. If not, either | |
3067 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3068 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
503d2be0 AS |
3069 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
3070 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3071 | # If not cross compiling, check that we can run a simple program. | |
3072 | if test "$cross_compiling" != yes; then | |
3073 | if { ac_try='./$ac_file' | |
c0d27fcc | 3074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3075 | (eval $ac_try) 2>&5 |
3076 | ac_status=$? | |
c0d27fcc | 3077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3078 | (exit $ac_status); }; }; then |
3079 | cross_compiling=no | |
ba4481b5 | 3080 | else |
503d2be0 AS |
3081 | if test "$cross_compiling" = maybe; then |
3082 | cross_compiling=yes | |
3083 | else | |
c0d27fcc | 3084 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
19650fd6 AS |
3085 | If you meant to cross compile, use \`--host'. |
3086 | See \`config.log' for more details." >&5 | |
503d2be0 | 3087 | echo "$as_me: error: cannot run C compiled programs. |
19650fd6 AS |
3088 | If you meant to cross compile, use \`--host'. |
3089 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3090 | { (exit 1); exit 1; }; } |
3091 | fi | |
ba4481b5 | 3092 | fi |
503d2be0 | 3093 | fi |
c0d27fcc | 3094 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 AS |
3095 | echo "${ECHO_T}yes" >&6 |
3096 | ||
19650fd6 | 3097 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 AS |
3098 | ac_clean_files=$ac_clean_files_save |
3099 | # Check the compiler produces executables we can run. If not, either | |
3100 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3101 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
503d2be0 | 3102 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
c0d27fcc | 3103 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
503d2be0 AS |
3104 | echo "${ECHO_T}$cross_compiling" >&6 |
3105 | ||
c0d27fcc MR |
3106 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3107 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
503d2be0 AS |
3109 | (eval $ac_link) 2>&5 |
3110 | ac_status=$? | |
c0d27fcc | 3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3112 | (exit $ac_status); }; then |
3113 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3114 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3115 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3116 | # `rm'. | |
6bae0ccf DL |
3117 | for ac_file in conftest.exe conftest conftest.*; do |
3118 | test -f "$ac_file" || continue | |
503d2be0 | 3119 | case $ac_file in |
6bae0ccf | 3120 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
503d2be0 | 3121 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
793fa0d7 DL |
3122 | export ac_cv_exeext |
3123 | break;; | |
503d2be0 AS |
3124 | * ) break;; |
3125 | esac | |
3126 | done | |
ba4481b5 | 3127 | else |
19650fd6 AS |
3128 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3129 | See \`config.log' for more details." >&5 | |
3130 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3131 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3132 | { (exit 1); exit 1; }; } |
ba4481b5 | 3133 | fi |
ba4481b5 | 3134 | |
503d2be0 | 3135 | rm -f conftest$ac_cv_exeext |
c0d27fcc | 3136 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
503d2be0 | 3137 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
ba4481b5 | 3138 | |
503d2be0 AS |
3139 | rm -f conftest.$ac_ext |
3140 | EXEEXT=$ac_cv_exeext | |
3141 | ac_exeext=$EXEEXT | |
c0d27fcc MR |
3142 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3143 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
503d2be0 AS |
3144 | if test "${ac_cv_objext+set}" = set; then |
3145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3146 | else |
503d2be0 | 3147 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 3148 | #line $LINENO "configure" |
19650fd6 AS |
3149 | /* confdefs.h. */ |
3150 | _ACEOF | |
3151 | cat confdefs.h >>conftest.$ac_ext | |
3152 | cat >>conftest.$ac_ext <<_ACEOF | |
3153 | /* end confdefs.h. */ | |
ba4481b5 | 3154 | |
503d2be0 AS |
3155 | int |
3156 | main () | |
3157 | { | |
ba4481b5 | 3158 | |
503d2be0 AS |
3159 | ; |
3160 | return 0; | |
3161 | } | |
3162 | _ACEOF | |
3163 | rm -f conftest.o conftest.obj | |
c0d27fcc | 3164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3165 | (eval $ac_compile) 2>&5 |
3166 | ac_status=$? | |
c0d27fcc | 3167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3168 | (exit $ac_status); }; then |
3169 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3170 | case $ac_file in | |
6bae0ccf | 3171 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
503d2be0 AS |
3172 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3173 | break;; | |
3174 | esac | |
3175 | done | |
c4bb2108 | 3176 | else |
503d2be0 | 3177 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3178 | sed 's/^/| /' conftest.$ac_ext >&5 |
3179 | ||
3180 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3181 | See \`config.log' for more details." >&5 | |
3182 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3183 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3184 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3185 | fi |
3186 | ||
503d2be0 AS |
3187 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3188 | fi | |
c0d27fcc | 3189 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
503d2be0 AS |
3190 | echo "${ECHO_T}$ac_cv_objext" >&6 |
3191 | OBJEXT=$ac_cv_objext | |
3192 | ac_objext=$OBJEXT | |
c0d27fcc | 3193 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
503d2be0 AS |
3194 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
3195 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3197 | else |
503d2be0 | 3198 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 3199 | #line $LINENO "configure" |
19650fd6 AS |
3200 | /* confdefs.h. */ |
3201 | _ACEOF | |
3202 | cat confdefs.h >>conftest.$ac_ext | |
3203 | cat >>conftest.$ac_ext <<_ACEOF | |
3204 | /* end confdefs.h. */ | |
503d2be0 AS |
3205 | |
3206 | int | |
3207 | main () | |
3208 | { | |
3209 | #ifndef __GNUC__ | |
3210 | choke me | |
3211 | #endif | |
3212 | ||
3213 | ; | |
3214 | return 0; | |
3215 | } | |
3216 | _ACEOF | |
3217 | rm -f conftest.$ac_objext | |
c0d27fcc | 3218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3219 | (eval $ac_compile) 2>&5 |
3220 | ac_status=$? | |
c0d27fcc | 3221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3222 | (exit $ac_status); } && |
793fa0d7 | 3223 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 3224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3225 | (eval $ac_try) 2>&5 |
3226 | ac_status=$? | |
c0d27fcc | 3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3228 | (exit $ac_status); }; }; then |
3229 | ac_compiler_gnu=yes | |
3230 | else | |
3231 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3232 | sed 's/^/| /' conftest.$ac_ext >&5 |
3233 | ||
503d2be0 AS |
3234 | ac_compiler_gnu=no |
3235 | fi | |
3236 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3237 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3238 | ||
3239 | fi | |
c0d27fcc | 3240 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
503d2be0 AS |
3241 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
3242 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3243 | ac_test_CFLAGS=${CFLAGS+set} | |
3244 | ac_save_CFLAGS=$CFLAGS | |
3245 | CFLAGS="-g" | |
c0d27fcc | 3246 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
503d2be0 AS |
3247 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
3248 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3250 | else | |
3251 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 3252 | #line $LINENO "configure" |
19650fd6 AS |
3253 | /* confdefs.h. */ |
3254 | _ACEOF | |
3255 | cat confdefs.h >>conftest.$ac_ext | |
3256 | cat >>conftest.$ac_ext <<_ACEOF | |
3257 | /* end confdefs.h. */ | |
503d2be0 AS |
3258 | |
3259 | int | |
3260 | main () | |
3261 | { | |
3262 | ||
3263 | ; | |
3264 | return 0; | |
3265 | } | |
3266 | _ACEOF | |
3267 | rm -f conftest.$ac_objext | |
c0d27fcc | 3268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3269 | (eval $ac_compile) 2>&5 |
3270 | ac_status=$? | |
c0d27fcc | 3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3272 | (exit $ac_status); } && |
793fa0d7 | 3273 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3275 | (eval $ac_try) 2>&5 |
3276 | ac_status=$? | |
c0d27fcc | 3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3278 | (exit $ac_status); }; }; then |
ba4481b5 DL |
3279 | ac_cv_prog_cc_g=yes |
3280 | else | |
503d2be0 | 3281 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3282 | sed 's/^/| /' conftest.$ac_ext >&5 |
3283 | ||
503d2be0 | 3284 | ac_cv_prog_cc_g=no |
ba4481b5 | 3285 | fi |
503d2be0 | 3286 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 3287 | fi |
c0d27fcc | 3288 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
503d2be0 | 3289 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
c4bb2108 | 3290 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 3291 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
3292 | elif test $ac_cv_prog_cc_g = yes; then |
3293 | if test "$GCC" = yes; then | |
ba4481b5 DL |
3294 | CFLAGS="-g -O2" |
3295 | else | |
c4bb2108 | 3296 | CFLAGS="-g" |
ba4481b5 | 3297 | fi |
22afa6e8 | 3298 | else |
c4bb2108 DL |
3299 | if test "$GCC" = yes; then |
3300 | CFLAGS="-O2" | |
3301 | else | |
3302 | CFLAGS= | |
3303 | fi | |
ba4481b5 | 3304 | fi |
6bae0ccf DL |
3305 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3306 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3307 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3309 | else | |
3310 | ac_cv_prog_cc_stdc=no | |
3311 | ac_save_CC=$CC | |
3312 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 3313 | #line $LINENO "configure" |
19650fd6 AS |
3314 | /* confdefs.h. */ |
3315 | _ACEOF | |
3316 | cat confdefs.h >>conftest.$ac_ext | |
3317 | cat >>conftest.$ac_ext <<_ACEOF | |
3318 | /* end confdefs.h. */ | |
6bae0ccf DL |
3319 | #include <stdarg.h> |
3320 | #include <stdio.h> | |
3321 | #include <sys/types.h> | |
3322 | #include <sys/stat.h> | |
3323 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3324 | struct buf { int x; }; | |
3325 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3326 | static char *e (p, i) | |
3327 | char **p; | |
3328 | int i; | |
3329 | { | |
3330 | return p[i]; | |
3331 | } | |
3332 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3333 | { | |
3334 | char *s; | |
3335 | va_list v; | |
3336 | va_start (v,p); | |
3337 | s = g (p, va_arg (v,int)); | |
3338 | va_end (v); | |
3339 | return s; | |
3340 | } | |
3341 | int test (int i, double x); | |
3342 | struct s1 {int (*f) (int a);}; | |
3343 | struct s2 {int (*f) (double a);}; | |
3344 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3345 | int argc; | |
3346 | char **argv; | |
3347 | int | |
3348 | main () | |
3349 | { | |
3350 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3351 | ; | |
3352 | return 0; | |
3353 | } | |
3354 | _ACEOF | |
3355 | # Don't try gcc -ansi; that turns off useful extensions and | |
3356 | # breaks some systems' header files. | |
3357 | # AIX -qlanglvl=ansi | |
3358 | # Ultrix and OSF/1 -std1 | |
3359 | # HP-UX 10.20 and later -Ae | |
3360 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3361 | # SVR4 -Xc -D__EXTENSIONS__ | |
3362 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3363 | do | |
3364 | CC="$ac_save_CC $ac_arg" | |
3365 | rm -f conftest.$ac_objext | |
3366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3367 | (eval $ac_compile) 2>&5 | |
3368 | ac_status=$? | |
3369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3370 | (exit $ac_status); } && | |
793fa0d7 | 3371 | { ac_try='test -s conftest.$ac_objext' |
6bae0ccf DL |
3372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3373 | (eval $ac_try) 2>&5 | |
3374 | ac_status=$? | |
3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3376 | (exit $ac_status); }; }; then | |
3377 | ac_cv_prog_cc_stdc=$ac_arg | |
3378 | break | |
3379 | else | |
3380 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3381 | sed 's/^/| /' conftest.$ac_ext >&5 |
3382 | ||
6bae0ccf DL |
3383 | fi |
3384 | rm -f conftest.$ac_objext | |
3385 | done | |
3386 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3387 | CC=$ac_save_CC | |
3388 | ||
3389 | fi | |
3390 | ||
3391 | case "x$ac_cv_prog_cc_stdc" in | |
3392 | x|xno) | |
3393 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3394 | echo "${ECHO_T}none needed" >&6 ;; | |
3395 | *) | |
3396 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3397 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3398 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3399 | esac | |
3400 | ||
503d2be0 AS |
3401 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3402 | # in C++ we need to declare it. In case someone uses the same compiler | |
3403 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3404 | # the declaration of exit, since it's the most demanding environment. | |
3405 | cat >conftest.$ac_ext <<_ACEOF | |
3406 | #ifndef __cplusplus | |
3407 | choke me | |
3408 | #endif | |
3409 | _ACEOF | |
3410 | rm -f conftest.$ac_objext | |
c0d27fcc | 3411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3412 | (eval $ac_compile) 2>&5 |
3413 | ac_status=$? | |
c0d27fcc | 3414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3415 | (exit $ac_status); } && |
793fa0d7 | 3416 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 3417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3418 | (eval $ac_try) 2>&5 |
3419 | ac_status=$? | |
c0d27fcc | 3420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3421 | (exit $ac_status); }; }; then |
3422 | for ac_declaration in \ | |
463f5630 | 3423 | '' \ |
503d2be0 AS |
3424 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3425 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3426 | 'extern "C" void exit (int) throw ();' \ | |
3427 | 'extern "C" void exit (int);' \ | |
cffcede7 | 3428 | 'void exit (int);' |
503d2be0 AS |
3429 | do |
3430 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 3431 | #line $LINENO "configure" |
19650fd6 AS |
3432 | /* confdefs.h. */ |
3433 | _ACEOF | |
3434 | cat confdefs.h >>conftest.$ac_ext | |
3435 | cat >>conftest.$ac_ext <<_ACEOF | |
3436 | /* end confdefs.h. */ | |
abd39b57 | 3437 | $ac_declaration |
463f5630 | 3438 | #include <stdlib.h> |
503d2be0 AS |
3439 | int |
3440 | main () | |
3441 | { | |
3442 | exit (42); | |
3443 | ; | |
3444 | return 0; | |
3445 | } | |
3446 | _ACEOF | |
3447 | rm -f conftest.$ac_objext | |
c0d27fcc | 3448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3449 | (eval $ac_compile) 2>&5 |
3450 | ac_status=$? | |
c0d27fcc | 3451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3452 | (exit $ac_status); } && |
793fa0d7 | 3453 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 3454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3455 | (eval $ac_try) 2>&5 |
3456 | ac_status=$? | |
c0d27fcc | 3457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3458 | (exit $ac_status); }; }; then |
3459 | : | |
3460 | else | |
3461 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3462 | sed 's/^/| /' conftest.$ac_ext >&5 |
3463 | ||
503d2be0 AS |
3464 | continue |
3465 | fi | |
3466 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3467 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 3468 | #line $LINENO "configure" |
19650fd6 AS |
3469 | /* confdefs.h. */ |
3470 | _ACEOF | |
3471 | cat confdefs.h >>conftest.$ac_ext | |
3472 | cat >>conftest.$ac_ext <<_ACEOF | |
3473 | /* end confdefs.h. */ | |
503d2be0 AS |
3474 | $ac_declaration |
3475 | int | |
3476 | main () | |
3477 | { | |
3478 | exit (42); | |
3479 | ; | |
3480 | return 0; | |
3481 | } | |
3482 | _ACEOF | |
3483 | rm -f conftest.$ac_objext | |
c0d27fcc | 3484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3485 | (eval $ac_compile) 2>&5 |
3486 | ac_status=$? | |
c0d27fcc | 3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3488 | (exit $ac_status); } && |
793fa0d7 | 3489 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 3490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3491 | (eval $ac_try) 2>&5 |
3492 | ac_status=$? | |
c0d27fcc | 3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3494 | (exit $ac_status); }; }; then |
3495 | break | |
3496 | else | |
3497 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3498 | sed 's/^/| /' conftest.$ac_ext >&5 |
3499 | ||
503d2be0 AS |
3500 | fi |
3501 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3502 | done | |
3503 | rm -f conftest* | |
3504 | if test -n "$ac_declaration"; then | |
3505 | echo '#ifdef __cplusplus' >>confdefs.h | |
3506 | echo $ac_declaration >>confdefs.h | |
3507 | echo '#endif' >>confdefs.h | |
3508 | fi | |
ba4481b5 | 3509 | |
503d2be0 AS |
3510 | else |
3511 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3512 | sed 's/^/| /' conftest.$ac_ext >&5 |
3513 | ||
503d2be0 AS |
3514 | fi |
3515 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3516 | ac_ext=c | |
3517 | ac_cpp='$CPP $CPPFLAGS' | |
3518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 3521 | |
c0d27fcc | 3522 | |
ba4481b5 DL |
3523 | # On Suns, sometimes $CPP names a directory. |
3524 | if test -n "$CPP" && test -d "$CPP"; then | |
3525 | CPP= | |
3526 | fi | |
3527 | ||
3528 | #### Some systems specify a CPP to use unless we are using GCC. | |
3529 | #### Now that we know whether we are using GCC, we can decide whether | |
3530 | #### to use that one. | |
3531 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3532 | then | |
3533 | CPP="$NON_GNU_CPP" | |
3534 | fi | |
3535 | ||
3536 | #### Some systems specify a CC to use unless we are using GCC. | |
3537 | #### Now that we know whether we are using GCC, we can decide whether | |
3538 | #### to use that one. | |
3539 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3540 | test x$cc_specified != xyes | |
3541 | then | |
3542 | CC="$NON_GNU_CC" | |
3543 | fi | |
3544 | ||
3545 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3546 | then | |
3547 | CC="$CC $GCC_TEST_OPTIONS" | |
3548 | fi | |
3549 | ||
3550 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3551 | then | |
3552 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
3553 | fi | |
3554 | ||
6a3a24fa | 3555 | #### Some other nice autoconf tests. |
ba4481b5 | 3556 | |
c0d27fcc | 3557 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
503d2be0 AS |
3558 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3559 | LN_S=$as_ln_s | |
3560 | if test "$LN_S" = "ln -s"; then | |
c0d27fcc | 3561 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 3562 | echo "${ECHO_T}yes" >&6 |
ba4481b5 | 3563 | else |
c0d27fcc | 3564 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
503d2be0 | 3565 | echo "${ECHO_T}no, using $LN_S" >&6 |
ba4481b5 DL |
3566 | fi |
3567 | ||
503d2be0 AS |
3568 | ac_ext=c |
3569 | ac_cpp='$CPP $CPPFLAGS' | |
3570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c0d27fcc | 3573 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
503d2be0 | 3574 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
ba4481b5 DL |
3575 | # On Suns, sometimes $CPP names a directory. |
3576 | if test -n "$CPP" && test -d "$CPP"; then | |
3577 | CPP= | |
3578 | fi | |
3579 | if test -z "$CPP"; then | |
503d2be0 AS |
3580 | if test "${ac_cv_prog_CPP+set}" = set; then |
3581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3582 | else | |
3583 | # Double quotes because CPP needs to be expanded | |
3584 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3585 | do | |
3586 | ac_preproc_ok=false | |
3587 | for ac_c_preproc_warn_flag in '' yes | |
3588 | do | |
3589 | # Use a header file that comes with gcc, so configuring glibc | |
3590 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3591 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3592 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 3593 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
3594 | # not just through cpp. "Syntax error" is here to catch this case. |
3595 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 3596 | #line $LINENO "configure" |
19650fd6 AS |
3597 | /* confdefs.h. */ |
3598 | _ACEOF | |
3599 | cat confdefs.h >>conftest.$ac_ext | |
3600 | cat >>conftest.$ac_ext <<_ACEOF | |
3601 | /* end confdefs.h. */ | |
3602 | #ifdef __STDC__ | |
3603 | # include <limits.h> | |
3604 | #else | |
3605 | # include <assert.h> | |
3606 | #endif | |
793fa0d7 | 3607 | Syntax error |
503d2be0 | 3608 | _ACEOF |
c0d27fcc | 3609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3611 | ac_status=$? | |
6bae0ccf | 3612 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3613 | rm -f conftest.er1 |
3614 | cat conftest.err >&5 | |
c0d27fcc | 3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3616 | (exit $ac_status); } >/dev/null; then |
3617 | if test -s conftest.err; then | |
3618 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3619 | else | |
3620 | ac_cpp_err= | |
3621 | fi | |
3622 | else | |
3623 | ac_cpp_err=yes | |
3624 | fi | |
3625 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3626 | : |
3627 | else | |
503d2be0 | 3628 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3629 | sed 's/^/| /' conftest.$ac_ext >&5 |
3630 | ||
503d2be0 AS |
3631 | # Broken: fails on valid input. |
3632 | continue | |
3633 | fi | |
3634 | rm -f conftest.err conftest.$ac_ext | |
3635 | ||
3636 | # OK, works on sane cases. Now check whether non-existent headers | |
3637 | # can be detected and how. | |
3638 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 3639 | #line $LINENO "configure" |
19650fd6 AS |
3640 | /* confdefs.h. */ |
3641 | _ACEOF | |
3642 | cat confdefs.h >>conftest.$ac_ext | |
3643 | cat >>conftest.$ac_ext <<_ACEOF | |
3644 | /* end confdefs.h. */ | |
503d2be0 AS |
3645 | #include <ac_nonexistent.h> |
3646 | _ACEOF | |
c0d27fcc | 3647 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3648 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3649 | ac_status=$? | |
6bae0ccf | 3650 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3651 | rm -f conftest.er1 |
3652 | cat conftest.err >&5 | |
c0d27fcc | 3653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3654 | (exit $ac_status); } >/dev/null; then |
3655 | if test -s conftest.err; then | |
3656 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3657 | else | |
3658 | ac_cpp_err= | |
3659 | fi | |
3660 | else | |
3661 | ac_cpp_err=yes | |
3662 | fi | |
3663 | if test -z "$ac_cpp_err"; then | |
3664 | # Broken: success on invalid input. | |
3665 | continue | |
c4bb2108 | 3666 | else |
503d2be0 | 3667 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3668 | sed 's/^/| /' conftest.$ac_ext >&5 |
3669 | ||
503d2be0 AS |
3670 | # Passes both tests. |
3671 | ac_preproc_ok=: | |
3672 | break | |
3673 | fi | |
3674 | rm -f conftest.err conftest.$ac_ext | |
3675 | ||
3676 | done | |
3677 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3678 | rm -f conftest.err conftest.$ac_ext | |
3679 | if $ac_preproc_ok; then | |
3680 | break | |
3681 | fi | |
3682 | ||
3683 | done | |
3684 | ac_cv_prog_CPP=$CPP | |
3685 | ||
3686 | fi | |
3687 | CPP=$ac_cv_prog_CPP | |
3688 | else | |
3689 | ac_cv_prog_CPP=$CPP | |
3690 | fi | |
c0d27fcc | 3691 | echo "$as_me:$LINENO: result: $CPP" >&5 |
503d2be0 AS |
3692 | echo "${ECHO_T}$CPP" >&6 |
3693 | ac_preproc_ok=false | |
3694 | for ac_c_preproc_warn_flag in '' yes | |
3695 | do | |
3696 | # Use a header file that comes with gcc, so configuring glibc | |
3697 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3698 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3699 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
3700 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3701 | # not just through cpp. "Syntax error" is here to catch this case. | |
3702 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 3703 | #line $LINENO "configure" |
19650fd6 AS |
3704 | /* confdefs.h. */ |
3705 | _ACEOF | |
3706 | cat confdefs.h >>conftest.$ac_ext | |
3707 | cat >>conftest.$ac_ext <<_ACEOF | |
3708 | /* end confdefs.h. */ | |
3709 | #ifdef __STDC__ | |
3710 | # include <limits.h> | |
3711 | #else | |
3712 | # include <assert.h> | |
3713 | #endif | |
793fa0d7 | 3714 | Syntax error |
503d2be0 | 3715 | _ACEOF |
c0d27fcc | 3716 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3717 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3718 | ac_status=$? | |
6bae0ccf | 3719 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3720 | rm -f conftest.er1 |
3721 | cat conftest.err >&5 | |
c0d27fcc | 3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3723 | (exit $ac_status); } >/dev/null; then |
3724 | if test -s conftest.err; then | |
3725 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3726 | else | |
3727 | ac_cpp_err= | |
3728 | fi | |
3729 | else | |
3730 | ac_cpp_err=yes | |
3731 | fi | |
3732 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3733 | : |
3734 | else | |
503d2be0 | 3735 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3736 | sed 's/^/| /' conftest.$ac_ext >&5 |
3737 | ||
503d2be0 AS |
3738 | # Broken: fails on valid input. |
3739 | continue | |
3740 | fi | |
3741 | rm -f conftest.err conftest.$ac_ext | |
3742 | ||
3743 | # OK, works on sane cases. Now check whether non-existent headers | |
3744 | # can be detected and how. | |
3745 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 3746 | #line $LINENO "configure" |
19650fd6 AS |
3747 | /* confdefs.h. */ |
3748 | _ACEOF | |
3749 | cat confdefs.h >>conftest.$ac_ext | |
3750 | cat >>conftest.$ac_ext <<_ACEOF | |
3751 | /* end confdefs.h. */ | |
503d2be0 AS |
3752 | #include <ac_nonexistent.h> |
3753 | _ACEOF | |
c0d27fcc | 3754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3755 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3756 | ac_status=$? | |
6bae0ccf | 3757 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3758 | rm -f conftest.er1 |
3759 | cat conftest.err >&5 | |
c0d27fcc | 3760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3761 | (exit $ac_status); } >/dev/null; then |
3762 | if test -s conftest.err; then | |
3763 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3764 | else | |
3765 | ac_cpp_err= | |
3766 | fi | |
3767 | else | |
3768 | ac_cpp_err=yes | |
c4bb2108 | 3769 | fi |
503d2be0 AS |
3770 | if test -z "$ac_cpp_err"; then |
3771 | # Broken: success on invalid input. | |
3772 | continue | |
3773 | else | |
3774 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3775 | sed 's/^/| /' conftest.$ac_ext >&5 |
3776 | ||
503d2be0 AS |
3777 | # Passes both tests. |
3778 | ac_preproc_ok=: | |
3779 | break | |
ba4481b5 | 3780 | fi |
503d2be0 AS |
3781 | rm -f conftest.err conftest.$ac_ext |
3782 | ||
3783 | done | |
3784 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3785 | rm -f conftest.err conftest.$ac_ext | |
3786 | if $ac_preproc_ok; then | |
3787 | : | |
ba4481b5 | 3788 | else |
19650fd6 AS |
3789 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3790 | See \`config.log' for more details." >&5 | |
3791 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3792 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3793 | { (exit 1); exit 1; }; } |
ba4481b5 | 3794 | fi |
503d2be0 AS |
3795 | |
3796 | ac_ext=c | |
3797 | ac_cpp='$CPP $CPPFLAGS' | |
3798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
3801 | |
3802 | # Find a good install program. We prefer a C program (faster), | |
3803 | # so one script is as good as another. But avoid the broken or | |
3804 | # incompatible versions: | |
3805 | # SysV /etc/install, /usr/sbin/install | |
3806 | # SunOS /usr/etc/install | |
3807 | # IRIX /sbin/install | |
3808 | # AIX /bin/install | |
503d2be0 | 3809 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 3810 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
3811 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3812 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3813 | # ./install, which can be erroneously created by make from ./install.sh. | |
c0d27fcc MR |
3814 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3815 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
ba4481b5 | 3816 | if test -z "$INSTALL"; then |
503d2be0 AS |
3817 | if test "${ac_cv_path_install+set}" = set; then |
3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3819 | else |
c0d27fcc MR |
3820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3821 | for as_dir in $PATH | |
3822 | do | |
3823 | IFS=$as_save_IFS | |
3824 | test -z "$as_dir" && as_dir=. | |
3825 | # Account for people who put trailing slashes in PATH elements. | |
3826 | case $as_dir/ in | |
3827 | ./ | .// | /cC/* | \ | |
3828 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3829 | /usr/ucb/* ) ;; | |
3830 | *) | |
3831 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3832 | # Don't use installbsd from OSF since it installs stuff as root | |
3833 | # by default. | |
3834 | for ac_prog in ginstall scoinst install; do | |
3835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
793fa0d7 DL |
3836 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3837 | if test $ac_prog = install && | |
3838 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3839 | # AIX install. It has an incompatible calling convention. | |
3840 | : | |
3841 | elif test $ac_prog = install && | |
3842 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3843 | # program-specific install script used by HP pwplus--don't use. | |
3844 | : | |
3845 | else | |
3846 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3847 | break 3 | |
3848 | fi | |
3849 | fi | |
ba4481b5 | 3850 | done |
c0d27fcc MR |
3851 | done |
3852 | ;; | |
3853 | esac | |
3854 | done | |
3855 | ||
ba4481b5 DL |
3856 | |
3857 | fi | |
3858 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 3859 | INSTALL=$ac_cv_path_install |
ba4481b5 DL |
3860 | else |
3861 | # As a last resort, use the slow shell script. We don't cache a | |
3862 | # path for INSTALL within a source directory, because that will | |
3863 | # break other packages using the cache if that directory is | |
3864 | # removed, or if the path is relative. | |
503d2be0 | 3865 | INSTALL=$ac_install_sh |
ba4481b5 DL |
3866 | fi |
3867 | fi | |
c0d27fcc | 3868 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
503d2be0 | 3869 | echo "${ECHO_T}$INSTALL" >&6 |
ba4481b5 DL |
3870 | |
3871 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3872 | # It thinks the first close brace ends the variable substitution. | |
3873 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3874 | ||
503d2be0 | 3875 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 3876 | |
ba4481b5 DL |
3877 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3878 | ||
c0d27fcc MR |
3879 | if test "x$RANLIB" = x; then |
3880 | if test -n "$ac_tool_prefix"; then | |
3881 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3882 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3883 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
503d2be0 | 3884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
c0d27fcc | 3885 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 3886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
3887 | else |
3888 | if test -n "$RANLIB"; then | |
3889 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3890 | else | |
c0d27fcc MR |
3891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3892 | for as_dir in $PATH | |
3893 | do | |
3894 | IFS=$as_save_IFS | |
3895 | test -z "$as_dir" && as_dir=. | |
3896 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3897 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3898 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3899 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3900 | break 2 | |
3901 | fi | |
3902 | done | |
503d2be0 AS |
3903 | done |
3904 | ||
7397acc4 DL |
3905 | fi |
3906 | fi | |
503d2be0 | 3907 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 3908 | if test -n "$RANLIB"; then |
c0d27fcc | 3909 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
503d2be0 AS |
3910 | echo "${ECHO_T}$RANLIB" >&6 |
3911 | else | |
c0d27fcc | 3912 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
3913 | echo "${ECHO_T}no" >&6 |
3914 | fi | |
3915 | ||
3916 | fi | |
3917 | if test -z "$ac_cv_prog_RANLIB"; then | |
3918 | ac_ct_RANLIB=$RANLIB | |
3919 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3920 | set dummy ranlib; ac_word=$2 | |
c0d27fcc | 3921 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
3922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3923 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3925 | else | |
3926 | if test -n "$ac_ct_RANLIB"; then | |
3927 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3928 | else | |
c0d27fcc MR |
3929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3930 | for as_dir in $PATH | |
3931 | do | |
3932 | IFS=$as_save_IFS | |
3933 | test -z "$as_dir" && as_dir=. | |
3934 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3936 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3938 | break 2 | |
3939 | fi | |
3940 | done | |
503d2be0 AS |
3941 | done |
3942 | ||
3943 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3944 | fi | |
3945 | fi | |
3946 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3947 | if test -n "$ac_ct_RANLIB"; then | |
c0d27fcc | 3948 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
503d2be0 AS |
3949 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3950 | else | |
c0d27fcc | 3951 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
3952 | echo "${ECHO_T}no" >&6 |
3953 | fi | |
3954 | ||
3955 | RANLIB=$ac_ct_RANLIB | |
7397acc4 | 3956 | else |
503d2be0 | 3957 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
3958 | fi |
3959 | ||
3960 | fi | |
9e71690e DK |
3961 | # Extract the first word of "install-info", so it can be a program name with args. |
3962 | set dummy install-info; ac_word=$2 | |
3963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3965 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
3966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3967 | else | |
3968 | case $INSTALL_INFO in | |
3969 | [\\/]* | ?:[\\/]*) | |
3970 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
3971 | ;; | |
3972 | *) | |
3973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3974 | for as_dir in $PATH | |
3975 | do | |
3976 | IFS=$as_save_IFS | |
3977 | test -z "$as_dir" && as_dir=. | |
3978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3980 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
3981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3982 | break 2 | |
3983 | fi | |
3984 | done | |
3985 | done | |
3986 | ||
3987 | ;; | |
3988 | esac | |
3989 | fi | |
3990 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
3991 | ||
3992 | if test -n "$INSTALL_INFO"; then | |
3993 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
3994 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
3995 | else | |
3996 | echo "$as_me:$LINENO: result: no" >&5 | |
3997 | echo "${ECHO_T}no" >&6 | |
3998 | fi | |
3999 | ||
4000 | # Extract the first word of "install-info", so it can be a program name with args. | |
4001 | set dummy install-info; ac_word=$2 | |
4002 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4004 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4006 | else | |
4007 | case $INSTALL_INFO in | |
4008 | [\\/]* | ?:[\\/]*) | |
4009 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4010 | ;; | |
4011 | *) | |
4012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4013 | for as_dir in /usr/sbin | |
4014 | do | |
4015 | IFS=$as_save_IFS | |
4016 | test -z "$as_dir" && as_dir=. | |
4017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4018 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4019 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4020 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4021 | break 2 | |
4022 | fi | |
4023 | done | |
4024 | done | |
4025 | ||
4026 | ;; | |
4027 | esac | |
4028 | fi | |
4029 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4030 | ||
4031 | if test -n "$INSTALL_INFO"; then | |
4032 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4033 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4034 | else | |
4035 | echo "$as_me:$LINENO: result: no" >&5 | |
4036 | echo "${ECHO_T}no" >&6 | |
4037 | fi | |
4038 | ||
4039 | # Extract the first word of "install-info", so it can be a program name with args. | |
4040 | set dummy install-info; ac_word=$2 | |
4041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4043 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4045 | else | |
4046 | case $INSTALL_INFO in | |
4047 | [\\/]* | ?:[\\/]*) | |
4048 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4049 | ;; | |
4050 | *) | |
4051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4052 | for as_dir in /sbin | |
4053 | do | |
4054 | IFS=$as_save_IFS | |
4055 | test -z "$as_dir" && as_dir=. | |
4056 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4057 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4058 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4060 | break 2 | |
4061 | fi | |
4062 | done | |
4063 | done | |
4064 | ||
4065 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
4066 | ;; | |
4067 | esac | |
4068 | fi | |
4069 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4070 | ||
4071 | if test -n "$INSTALL_INFO"; then | |
4072 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4073 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4074 | else | |
4075 | echo "$as_me:$LINENO: result: no" >&5 | |
4076 | echo "${ECHO_T}no" >&6 | |
4077 | fi | |
4078 | ||
ba4481b5 | 4079 | |
c0d27fcc | 4080 | |
8e967cf7 MR |
4081 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
4082 | then | |
4083 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
4084 | fi | |
4085 | ||
4086 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
4087 | then | |
4088 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
4089 | fi | |
4090 | ||
c0d27fcc MR |
4091 | |
4092 | ||
6bae0ccf DL |
4093 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4094 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4095 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4097 | else | |
4098 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4099 | then ac_cv_prog_egrep='grep -E' | |
4100 | else ac_cv_prog_egrep='egrep' | |
4101 | fi | |
4102 | fi | |
4103 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4104 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4105 | EGREP=$ac_cv_prog_egrep | |
4106 | ||
4107 | ||
c0d27fcc MR |
4108 | |
4109 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
503d2be0 AS |
4110 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
4111 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4112 | #line $LINENO "configure" |
19650fd6 AS |
4113 | /* confdefs.h. */ |
4114 | _ACEOF | |
4115 | cat confdefs.h >>conftest.$ac_ext | |
4116 | cat >>conftest.$ac_ext <<_ACEOF | |
4117 | /* end confdefs.h. */ | |
ba4481b5 DL |
4118 | #ifdef _AIX |
4119 | yes | |
4120 | #endif | |
4121 | ||
503d2be0 | 4122 | _ACEOF |
ba4481b5 | 4123 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 4124 | $EGREP "yes" >/dev/null 2>&1; then |
c0d27fcc | 4125 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 4126 | echo "${ECHO_T}yes" >&6 |
c0d27fcc | 4127 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 4128 | #define _ALL_SOURCE 1 |
c0d27fcc | 4129 | _ACEOF |
ba4481b5 DL |
4130 | |
4131 | else | |
c0d27fcc | 4132 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 4133 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
4134 | fi |
4135 | rm -f conftest* | |
4136 | ||
c0d27fcc MR |
4137 | |
4138 | ||
3b33a005 DL |
4139 | #### Extract some information from the operating system and machine files. |
4140 | ||
c0d27fcc | 4141 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 4142 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
4143 | - whether the GNU malloc routines are usable..." >&5 |
4144 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 4145 | - which libraries the lib-src programs will want, and |
503d2be0 | 4146 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
4147 | |
4148 | ### First figure out CFLAGS (which we use for running the compiler here) | |
4149 | ### and REAL_CFLAGS (which we use for real compilation). | |
4150 | ### The two are the same except on a few systems, where they are made | |
4151 | ### different to work around various lossages. For example, | |
4152 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
4153 | ### as implying static linking. | |
4154 | ||
4155 | ### If the CFLAGS env var is specified, we use that value | |
4156 | ### instead of the default. | |
4157 | ||
4158 | ### It's not important that this name contain the PID; you can't run | |
4159 | ### two configures in the same directory and have anything work | |
4160 | ### anyway. | |
4161 | tempcname="conftest.c" | |
4162 | ||
4163 | echo ' | |
4164 | #include "'${srcdir}'/src/'${opsysfile}'" | |
4165 | #include "'${srcdir}'/src/'${machfile}'" | |
4166 | #ifndef LIBS_MACHINE | |
4167 | #define LIBS_MACHINE | |
4168 | #endif | |
4169 | #ifndef LIBS_SYSTEM | |
4170 | #define LIBS_SYSTEM | |
4171 | #endif | |
4172 | #ifndef C_SWITCH_SYSTEM | |
4173 | #define C_SWITCH_SYSTEM | |
4174 | #endif | |
4175 | #ifndef C_SWITCH_MACHINE | |
4176 | #define C_SWITCH_MACHINE | |
4177 | #endif | |
4178 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
4179 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
4180 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
4181 | ||
4182 | #ifndef LIB_X11_LIB | |
4183 | #define LIB_X11_LIB -lX11 | |
4184 | #endif | |
4185 | ||
4186 | #ifndef LIBX11_MACHINE | |
4187 | #define LIBX11_MACHINE | |
4188 | #endif | |
4189 | ||
4190 | #ifndef LIBX11_SYSTEM | |
4191 | #define LIBX11_SYSTEM | |
4192 | #endif | |
4193 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
4194 | ||
4195 | #ifdef UNEXEC | |
4196 | configure___ unexec=UNEXEC | |
4197 | #else | |
4198 | configure___ unexec=unexec.o | |
4199 | #endif | |
4200 | ||
4201 | #ifdef SYSTEM_MALLOC | |
4202 | configure___ system_malloc=yes | |
4203 | #else | |
4204 | configure___ system_malloc=no | |
4205 | #endif | |
4206 | ||
ef9e4345 GM |
4207 | #ifdef USE_MMAP_FOR_BUFFERS |
4208 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 4209 | #else |
ef9e4345 | 4210 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
4211 | #endif |
4212 | ||
3b33a005 DL |
4213 | #ifndef C_DEBUG_SWITCH |
4214 | #define C_DEBUG_SWITCH -g | |
4215 | #endif | |
4216 | ||
4217 | #ifndef C_OPTIMIZE_SWITCH | |
4218 | #ifdef __GNUC__ | |
4219 | #define C_OPTIMIZE_SWITCH -O2 | |
4220 | #else | |
4221 | #define C_OPTIMIZE_SWITCH -O | |
4222 | #endif | |
4223 | #endif | |
4224 | ||
4225 | #ifndef LD_SWITCH_MACHINE | |
4226 | #define LD_SWITCH_MACHINE | |
4227 | #endif | |
4228 | ||
4229 | #ifndef LD_SWITCH_SYSTEM | |
4230 | #define LD_SWITCH_SYSTEM | |
4231 | #endif | |
4232 | ||
4233 | #ifndef LD_SWITCH_X_SITE_AUX | |
4234 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 4235 | #endif |
3b33a005 DL |
4236 | |
4237 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
4238 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
4239 | ||
4240 | #ifdef THIS_IS_CONFIGURE | |
4241 | ||
4242 | /* Get the CFLAGS for tests in configure. */ | |
4243 | #ifdef __GNUC__ | |
4244 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4245 | #else | |
4246 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4247 | #endif | |
4248 | ||
4249 | #else /* not THIS_IS_CONFIGURE */ | |
4250 | ||
4251 | /* Get the CFLAGS for real compilation. */ | |
4252 | #ifdef __GNUC__ | |
4253 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4254 | #else | |
4255 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4256 | #endif | |
4257 | ||
4258 | #endif /* not THIS_IS_CONFIGURE */ | |
4259 | ' > ${tempcname} | |
4260 | ||
4261 | # The value of CPP is a quoted variable reference, so we need to do this | |
4262 | # to get its actual value... | |
4263 | CPP=`eval "echo $CPP"` | |
4264 | eval `${CPP} -Isrc ${tempcname} \ | |
4265 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4266 | if test "x$SPECIFIED_CFLAGS" = x; then | |
4267 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
4268 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4269 | else | |
4270 | REAL_CFLAGS="$CFLAGS" | |
4271 | fi | |
4272 | rm ${tempcname} | |
4273 | ||
4274 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
4275 | ||
4276 | ### Make sure subsequent tests use flags consistent with the build flags. | |
4277 | ||
4278 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
4279 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
4280 | else | |
4281 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
4282 | fi | |
4283 | ||
6bae0ccf DL |
4284 | |
4285 | ||
22044edf DL |
4286 | |
4287 | cat >>confdefs.h <<\_ACEOF | |
4288 | #define _GNU_SOURCE 1 | |
4289 | _ACEOF | |
4290 | ||
4291 | ||
4292 | ||
503d2be0 | 4293 | # Check whether --enable-largefile or --disable-largefile was given. |
f4988be7 GM |
4294 | if test "${enable_largefile+set}" = set; then |
4295 | enableval="$enable_largefile" | |
f4988be7 | 4296 | |
503d2be0 AS |
4297 | fi; |
4298 | if test "$enable_largefile" != no; then | |
f4988be7 | 4299 | |
c0d27fcc | 4300 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
503d2be0 AS |
4301 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
4302 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4304 | else |
f4988be7 | 4305 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
4306 | if test "$GCC" != yes; then |
4307 | ac_save_CC=$CC | |
4308 | while :; do | |
4309 | # IRIX 6.2 and later do not support large files by default, | |
4310 | # so use the C compiler's -n32 option if that helps. | |
793fa0d7 DL |
4311 | cat >conftest.$ac_ext <<_ACEOF |
4312 | #line $LINENO "configure" | |
19650fd6 AS |
4313 | /* confdefs.h. */ |
4314 | _ACEOF | |
4315 | cat confdefs.h >>conftest.$ac_ext | |
4316 | cat >>conftest.$ac_ext <<_ACEOF | |
4317 | /* end confdefs.h. */ | |
f4988be7 | 4318 | #include <sys/types.h> |
503d2be0 AS |
4319 | /* Check that off_t can represent 2**63 - 1 correctly. |
4320 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4321 | since some C++ compilers masquerading as C compilers | |
4322 | incorrectly reject 9223372036854775807. */ | |
4323 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4324 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4325 | && LARGE_OFF_T % 2147483647 == 1) | |
4326 | ? 1 : -1]; | |
4327 | int | |
4328 | main () | |
4329 | { | |
f4988be7 | 4330 | |
503d2be0 AS |
4331 | ; |
4332 | return 0; | |
4333 | } | |
4334 | _ACEOF | |
4335 | rm -f conftest.$ac_objext | |
c0d27fcc | 4336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4337 | (eval $ac_compile) 2>&5 |
4338 | ac_status=$? | |
c0d27fcc | 4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4340 | (exit $ac_status); } && |
793fa0d7 | 4341 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 4342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4343 | (eval $ac_try) 2>&5 |
4344 | ac_status=$? | |
c0d27fcc | 4345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4346 | (exit $ac_status); }; }; then |
4347 | break | |
b192d653 | 4348 | else |
503d2be0 | 4349 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4350 | sed 's/^/| /' conftest.$ac_ext >&5 |
4351 | ||
503d2be0 AS |
4352 | fi |
4353 | rm -f conftest.$ac_objext | |
4354 | CC="$CC -n32" | |
4355 | rm -f conftest.$ac_objext | |
c0d27fcc | 4356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4357 | (eval $ac_compile) 2>&5 |
4358 | ac_status=$? | |
c0d27fcc | 4359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4360 | (exit $ac_status); } && |
793fa0d7 | 4361 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 4362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4363 | (eval $ac_try) 2>&5 |
4364 | ac_status=$? | |
c0d27fcc | 4365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4366 | (exit $ac_status); }; }; then |
4367 | ac_cv_sys_largefile_CC=' -n32'; break | |
4368 | else | |
4369 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4370 | sed 's/^/| /' conftest.$ac_ext >&5 |
4371 | ||
503d2be0 AS |
4372 | fi |
4373 | rm -f conftest.$ac_objext | |
793fa0d7 | 4374 | break |
503d2be0 AS |
4375 | done |
4376 | CC=$ac_save_CC | |
4377 | rm -f conftest.$ac_ext | |
4378 | fi | |
b192d653 | 4379 | fi |
c0d27fcc | 4380 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
503d2be0 AS |
4381 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
4382 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4383 | CC=$CC$ac_cv_sys_largefile_CC | |
4384 | fi | |
b192d653 | 4385 | |
c0d27fcc | 4386 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
503d2be0 AS |
4387 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
4388 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4390 | else |
503d2be0 | 4391 | while :; do |
f4988be7 | 4392 | ac_cv_sys_file_offset_bits=no |
503d2be0 | 4393 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 4394 | #line $LINENO "configure" |
19650fd6 AS |
4395 | /* confdefs.h. */ |
4396 | _ACEOF | |
4397 | cat confdefs.h >>conftest.$ac_ext | |
4398 | cat >>conftest.$ac_ext <<_ACEOF | |
4399 | /* end confdefs.h. */ | |
f4988be7 | 4400 | #include <sys/types.h> |
503d2be0 AS |
4401 | /* Check that off_t can represent 2**63 - 1 correctly. |
4402 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4403 | since some C++ compilers masquerading as C compilers | |
4404 | incorrectly reject 9223372036854775807. */ | |
4405 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4406 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4407 | && LARGE_OFF_T % 2147483647 == 1) | |
4408 | ? 1 : -1]; | |
4409 | int | |
4410 | main () | |
4411 | { | |
f4988be7 | 4412 | |
503d2be0 AS |
4413 | ; |
4414 | return 0; | |
4415 | } | |
4416 | _ACEOF | |
4417 | rm -f conftest.$ac_objext | |
c0d27fcc | 4418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4419 | (eval $ac_compile) 2>&5 |
4420 | ac_status=$? | |
c0d27fcc | 4421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4422 | (exit $ac_status); } && |
793fa0d7 | 4423 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 4424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4425 | (eval $ac_try) 2>&5 |
4426 | ac_status=$? | |
c0d27fcc | 4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4428 | (exit $ac_status); }; }; then |
4429 | break | |
f4988be7 | 4430 | else |
503d2be0 | 4431 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4432 | sed 's/^/| /' conftest.$ac_ext >&5 |
4433 | ||
503d2be0 AS |
4434 | fi |
4435 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4436 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4437 | #line $LINENO "configure" |
19650fd6 AS |
4438 | /* confdefs.h. */ |
4439 | _ACEOF | |
4440 | cat confdefs.h >>conftest.$ac_ext | |
4441 | cat >>conftest.$ac_ext <<_ACEOF | |
4442 | /* end confdefs.h. */ | |
f4988be7 GM |
4443 | #define _FILE_OFFSET_BITS 64 |
4444 | #include <sys/types.h> | |
503d2be0 AS |
4445 | /* Check that off_t can represent 2**63 - 1 correctly. |
4446 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4447 | since some C++ compilers masquerading as C compilers | |
4448 | incorrectly reject 9223372036854775807. */ | |
4449 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4450 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4451 | && LARGE_OFF_T % 2147483647 == 1) | |
4452 | ? 1 : -1]; | |
4453 | int | |
4454 | main () | |
4455 | { | |
4456 | ||
4457 | ; | |
4458 | return 0; | |
4459 | } | |
4460 | _ACEOF | |
4461 | rm -f conftest.$ac_objext | |
c0d27fcc | 4462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4463 | (eval $ac_compile) 2>&5 |
4464 | ac_status=$? | |
c0d27fcc | 4465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4466 | (exit $ac_status); } && |
793fa0d7 | 4467 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 4468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4469 | (eval $ac_try) 2>&5 |
4470 | ac_status=$? | |
c0d27fcc | 4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4472 | (exit $ac_status); }; }; then |
4473 | ac_cv_sys_file_offset_bits=64; break | |
4474 | else | |
4475 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4476 | sed 's/^/| /' conftest.$ac_ext >&5 |
4477 | ||
503d2be0 AS |
4478 | fi |
4479 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4480 | break | |
4481 | done | |
ba4481b5 | 4482 | fi |
c0d27fcc | 4483 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
503d2be0 AS |
4484 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
4485 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
ba4481b5 | 4486 | |
c0d27fcc | 4487 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4488 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 4489 | _ACEOF |
f4988be7 | 4490 | |
503d2be0 AS |
4491 | fi |
4492 | rm -f conftest* | |
c0d27fcc | 4493 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
503d2be0 AS |
4494 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
4495 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4497 | else |
503d2be0 | 4498 | while :; do |
f4988be7 | 4499 | ac_cv_sys_large_files=no |
503d2be0 | 4500 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 4501 | #line $LINENO "configure" |
19650fd6 AS |
4502 | /* confdefs.h. */ |
4503 | _ACEOF | |
4504 | cat confdefs.h >>conftest.$ac_ext | |
4505 | cat >>conftest.$ac_ext <<_ACEOF | |
4506 | /* end confdefs.h. */ | |
503d2be0 AS |
4507 | #include <sys/types.h> |
4508 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4509 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4510 | since some C++ compilers masquerading as C compilers | |
4511 | incorrectly reject 9223372036854775807. */ | |
4512 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4513 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4514 | && LARGE_OFF_T % 2147483647 == 1) | |
4515 | ? 1 : -1]; | |
4516 | int | |
4517 | main () | |
4518 | { | |
ba4481b5 | 4519 | |
503d2be0 AS |
4520 | ; |
4521 | return 0; | |
4522 | } | |
4523 | _ACEOF | |
4524 | rm -f conftest.$ac_objext | |
c0d27fcc | 4525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4526 | (eval $ac_compile) 2>&5 |
4527 | ac_status=$? | |
c0d27fcc | 4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4529 | (exit $ac_status); } && |
793fa0d7 | 4530 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 4531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4532 | (eval $ac_try) 2>&5 |
4533 | ac_status=$? | |
c0d27fcc | 4534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4535 | (exit $ac_status); }; }; then |
4536 | break | |
ba4481b5 | 4537 | else |
503d2be0 | 4538 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4539 | sed 's/^/| /' conftest.$ac_ext >&5 |
4540 | ||
503d2be0 AS |
4541 | fi |
4542 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4543 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4544 | #line $LINENO "configure" |
19650fd6 AS |
4545 | /* confdefs.h. */ |
4546 | _ACEOF | |
4547 | cat confdefs.h >>conftest.$ac_ext | |
4548 | cat >>conftest.$ac_ext <<_ACEOF | |
4549 | /* end confdefs.h. */ | |
f4988be7 | 4550 | #define _LARGE_FILES 1 |
503d2be0 AS |
4551 | #include <sys/types.h> |
4552 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4553 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4554 | since some C++ compilers masquerading as C compilers | |
4555 | incorrectly reject 9223372036854775807. */ | |
4556 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4557 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4558 | && LARGE_OFF_T % 2147483647 == 1) | |
4559 | ? 1 : -1]; | |
4560 | int | |
4561 | main () | |
4562 | { | |
f4988be7 | 4563 | |
503d2be0 AS |
4564 | ; |
4565 | return 0; | |
4566 | } | |
4567 | _ACEOF | |
4568 | rm -f conftest.$ac_objext | |
c0d27fcc | 4569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
4570 | (eval $ac_compile) 2>&5 |
4571 | ac_status=$? | |
c0d27fcc | 4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4573 | (exit $ac_status); } && |
793fa0d7 | 4574 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 4575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4576 | (eval $ac_try) 2>&5 |
4577 | ac_status=$? | |
c0d27fcc | 4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4579 | (exit $ac_status); }; }; then |
4580 | ac_cv_sys_large_files=1; break | |
4581 | else | |
4582 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4583 | sed 's/^/| /' conftest.$ac_ext >&5 |
4584 | ||
503d2be0 AS |
4585 | fi |
4586 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4587 | break | |
4588 | done | |
ba4481b5 | 4589 | fi |
c0d27fcc | 4590 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
503d2be0 AS |
4591 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
4592 | if test "$ac_cv_sys_large_files" != no; then | |
ba4481b5 | 4593 | |
c0d27fcc | 4594 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4595 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 4596 | _ACEOF |
ba4481b5 | 4597 | |
503d2be0 AS |
4598 | fi |
4599 | rm -f conftest* | |
4600 | fi | |
ba4481b5 | 4601 | |
c0d27fcc | 4602 | |
2c9dccc9 PJ |
4603 | if test "${with_sound}" != "no"; then |
4604 | # Sound support for GNU/Linux and the free BSDs. | |
c0d27fcc MR |
4605 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4606 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4607 | if test "${ac_cv_header_stdc+set}" = set; then | |
4608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4609 | else | |
4610 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4611 | #line $LINENO "configure" |
19650fd6 AS |
4612 | /* confdefs.h. */ |
4613 | _ACEOF | |
4614 | cat confdefs.h >>conftest.$ac_ext | |
4615 | cat >>conftest.$ac_ext <<_ACEOF | |
4616 | /* end confdefs.h. */ | |
c0d27fcc MR |
4617 | #include <stdlib.h> |
4618 | #include <stdarg.h> | |
4619 | #include <string.h> | |
4620 | #include <float.h> | |
98418dba | 4621 | |
19650fd6 AS |
4622 | int |
4623 | main () | |
4624 | { | |
4625 | ||
4626 | ; | |
4627 | return 0; | |
4628 | } | |
c0d27fcc | 4629 | _ACEOF |
19650fd6 AS |
4630 | rm -f conftest.$ac_objext |
4631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4632 | (eval $ac_compile) 2>&5 | |
cd958eb3 MB |
4633 | ac_status=$? |
4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19650fd6 | 4635 | (exit $ac_status); } && |
793fa0d7 | 4636 | { ac_try='test -s conftest.$ac_objext' |
19650fd6 AS |
4637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4638 | (eval $ac_try) 2>&5 | |
4639 | ac_status=$? | |
4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4641 | (exit $ac_status); }; }; then | |
c0d27fcc MR |
4642 | ac_cv_header_stdc=yes |
4643 | else | |
4644 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4645 | sed 's/^/| /' conftest.$ac_ext >&5 |
4646 | ||
4647 | ac_cv_header_stdc=no | |
c0d27fcc | 4648 | fi |
19650fd6 | 4649 | rm -f conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4650 | |
4651 | if test $ac_cv_header_stdc = yes; then | |
4652 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4653 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4654 | #line $LINENO "configure" |
19650fd6 AS |
4655 | /* confdefs.h. */ |
4656 | _ACEOF | |
4657 | cat confdefs.h >>conftest.$ac_ext | |
4658 | cat >>conftest.$ac_ext <<_ACEOF | |
4659 | /* end confdefs.h. */ | |
c0d27fcc MR |
4660 | #include <string.h> |
4661 | ||
4662 | _ACEOF | |
4663 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4664 | $EGREP "memchr" >/dev/null 2>&1; then |
c0d27fcc MR |
4665 | : |
4666 | else | |
4667 | ac_cv_header_stdc=no | |
4668 | fi | |
4669 | rm -f conftest* | |
4670 | ||
4671 | fi | |
4672 | ||
4673 | if test $ac_cv_header_stdc = yes; then | |
4674 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4675 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4676 | #line $LINENO "configure" |
19650fd6 AS |
4677 | /* confdefs.h. */ |
4678 | _ACEOF | |
4679 | cat confdefs.h >>conftest.$ac_ext | |
4680 | cat >>conftest.$ac_ext <<_ACEOF | |
4681 | /* end confdefs.h. */ | |
c0d27fcc MR |
4682 | #include <stdlib.h> |
4683 | ||
4684 | _ACEOF | |
4685 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4686 | $EGREP "free" >/dev/null 2>&1; then |
c0d27fcc MR |
4687 | : |
4688 | else | |
4689 | ac_cv_header_stdc=no | |
4690 | fi | |
4691 | rm -f conftest* | |
4692 | ||
4693 | fi | |
4694 | ||
4695 | if test $ac_cv_header_stdc = yes; then | |
4696 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4697 | if test "$cross_compiling" = yes; then | |
4698 | : | |
4699 | else | |
4700 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4701 | #line $LINENO "configure" |
19650fd6 AS |
4702 | /* confdefs.h. */ |
4703 | _ACEOF | |
4704 | cat confdefs.h >>conftest.$ac_ext | |
4705 | cat >>conftest.$ac_ext <<_ACEOF | |
4706 | /* end confdefs.h. */ | |
c0d27fcc MR |
4707 | #include <ctype.h> |
4708 | #if ((' ' & 0x0FF) == 0x020) | |
4709 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4710 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4711 | #else | |
19650fd6 | 4712 | # define ISLOWER(c) \ |
793fa0d7 DL |
4713 | (('a' <= (c) && (c) <= 'i') \ |
4714 | || ('j' <= (c) && (c) <= 'r') \ | |
4715 | || ('s' <= (c) && (c) <= 'z')) | |
c0d27fcc MR |
4716 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4717 | #endif | |
4718 | ||
4719 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4720 | int | |
4721 | main () | |
4722 | { | |
4723 | int i; | |
4724 | for (i = 0; i < 256; i++) | |
4725 | if (XOR (islower (i), ISLOWER (i)) | |
793fa0d7 | 4726 | || toupper (i) != TOUPPER (i)) |
c0d27fcc MR |
4727 | exit(2); |
4728 | exit (0); | |
4729 | } | |
4730 | _ACEOF | |
4731 | rm -f conftest$ac_exeext | |
4732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4733 | (eval $ac_link) 2>&5 | |
4734 | ac_status=$? | |
4735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4736 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4738 | (eval $ac_try) 2>&5 | |
4739 | ac_status=$? | |
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4741 | (exit $ac_status); }; }; then | |
4742 | : | |
4743 | else | |
4744 | echo "$as_me: program exited with status $ac_status" >&5 | |
4745 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4746 | sed 's/^/| /' conftest.$ac_ext >&5 |
4747 | ||
c0d27fcc MR |
4748 | ( exit $ac_status ) |
4749 | ac_cv_header_stdc=no | |
4750 | fi | |
6bae0ccf | 4751 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4752 | fi |
4753 | fi | |
4754 | fi | |
4755 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4756 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4757 | if test $ac_cv_header_stdc = yes; then | |
4758 | ||
4759 | cat >>confdefs.h <<\_ACEOF | |
4760 | #define STDC_HEADERS 1 | |
4761 | _ACEOF | |
4762 | ||
4763 | fi | |
4764 | ||
4765 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4766 | ||
4767 | ||
4768 | ||
4769 | ||
4770 | ||
4771 | ||
4772 | ||
4773 | ||
4774 | ||
4775 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
793fa0d7 | 4776 | inttypes.h stdint.h unistd.h |
98418dba CW |
4777 | do |
4778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc | 4779 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
98418dba CW |
4780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 4783 | else |
925c2f3f | 4784 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 4785 | #line $LINENO "configure" |
19650fd6 AS |
4786 | /* confdefs.h. */ |
4787 | _ACEOF | |
4788 | cat confdefs.h >>conftest.$ac_ext | |
4789 | cat >>conftest.$ac_ext <<_ACEOF | |
4790 | /* end confdefs.h. */ | |
c0d27fcc MR |
4791 | $ac_includes_default |
4792 | ||
4793 | #include <$ac_header> | |
4794 | _ACEOF | |
4795 | rm -f conftest.$ac_objext | |
4796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4797 | (eval $ac_compile) 2>&5 | |
4798 | ac_status=$? | |
4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4800 | (exit $ac_status); } && | |
793fa0d7 | 4801 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
4802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4803 | (eval $ac_try) 2>&5 | |
4804 | ac_status=$? | |
4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4806 | (exit $ac_status); }; }; then | |
4807 | eval "$as_ac_Header=yes" | |
4808 | else | |
4809 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4810 | sed 's/^/| /' conftest.$ac_ext >&5 |
4811 | ||
c0d27fcc MR |
4812 | eval "$as_ac_Header=no" |
4813 | fi | |
4814 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4815 | fi | |
4816 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4817 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4818 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4819 | cat >>confdefs.h <<_ACEOF | |
4820 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4821 | _ACEOF | |
4822 | ||
4823 | fi | |
4824 | ||
4825 | done | |
4826 | ||
4827 | ||
4828 | ||
4829 | ||
4830 | ||
4831 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
4832 | do | |
4833 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4834 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4835 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4837 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4839 | fi | |
4840 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4841 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4842 | else | |
4843 | # Is the header compilable? | |
4844 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4845 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4846 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4847 | #line $LINENO "configure" |
19650fd6 AS |
4848 | /* confdefs.h. */ |
4849 | _ACEOF | |
4850 | cat confdefs.h >>conftest.$ac_ext | |
4851 | cat >>conftest.$ac_ext <<_ACEOF | |
4852 | /* end confdefs.h. */ | |
c0d27fcc | 4853 | $ac_includes_default |
98418dba | 4854 | #include <$ac_header> |
503d2be0 | 4855 | _ACEOF |
c0d27fcc MR |
4856 | rm -f conftest.$ac_objext |
4857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4858 | (eval $ac_compile) 2>&5 | |
4859 | ac_status=$? | |
4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4861 | (exit $ac_status); } && | |
793fa0d7 | 4862 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
4863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4864 | (eval $ac_try) 2>&5 | |
4865 | ac_status=$? | |
4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4867 | (exit $ac_status); }; }; then | |
4868 | ac_header_compiler=yes | |
4869 | else | |
4870 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4871 | sed 's/^/| /' conftest.$ac_ext >&5 |
4872 | ||
c0d27fcc MR |
4873 | ac_header_compiler=no |
4874 | fi | |
4875 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4876 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4877 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4878 | ||
4879 | # Is the header present? | |
4880 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4881 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4882 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4883 | #line $LINENO "configure" |
19650fd6 AS |
4884 | /* confdefs.h. */ |
4885 | _ACEOF | |
4886 | cat confdefs.h >>conftest.$ac_ext | |
4887 | cat >>conftest.$ac_ext <<_ACEOF | |
4888 | /* end confdefs.h. */ | |
c0d27fcc MR |
4889 | #include <$ac_header> |
4890 | _ACEOF | |
4891 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
98418dba | 4892 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 4893 | ac_status=$? |
6bae0ccf | 4894 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
4895 | rm -f conftest.er1 |
4896 | cat conftest.err >&5 | |
c0d27fcc | 4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
4898 | (exit $ac_status); } >/dev/null; then |
4899 | if test -s conftest.err; then | |
4900 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4901 | else | |
4902 | ac_cpp_err= | |
4903 | fi | |
4904 | else | |
4905 | ac_cpp_err=yes | |
4906 | fi | |
4907 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 4908 | ac_header_preproc=yes |
f4988be7 | 4909 | else |
503d2be0 | 4910 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4911 | sed 's/^/| /' conftest.$ac_ext >&5 |
4912 | ||
c0d27fcc | 4913 | ac_header_preproc=no |
f4988be7 | 4914 | fi |
98418dba | 4915 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
4916 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4917 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4918 | ||
4919 | # So? What about this header? | |
4920 | case $ac_header_compiler:$ac_header_preproc in | |
4921 | yes:no ) | |
4922 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4923 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
4924 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4925 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4926 | ( | |
4927 | cat <<\_ASBOX | |
4928 | ## ------------------------------------ ## | |
4929 | ## Report this to bug-autoconf@gnu.org. ## | |
4930 | ## ------------------------------------ ## | |
4931 | _ASBOX | |
4932 | ) | | |
4933 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 4934 | ;; |
c0d27fcc MR |
4935 | no:yes ) |
4936 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4937 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
4938 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4939 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 4940 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 4941 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
4942 | ( |
4943 | cat <<\_ASBOX | |
793fa0d7 DL |
4944 | ## ------------------------------------ ## |
4945 | ## Report this to bug-autoconf@gnu.org. ## | |
4946 | ## ------------------------------------ ## | |
19650fd6 AS |
4947 | _ASBOX |
4948 | ) | | |
4949 | sed "s/^/$as_me: WARNING: /" >&2 | |
4950 | ;; | |
c0d27fcc MR |
4951 | esac |
4952 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4956 | else | |
793fa0d7 | 4957 | eval "$as_ac_Header=$ac_header_preproc" |
f4988be7 | 4958 | fi |
c0d27fcc | 4959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 4960 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
4961 | |
4962 | fi | |
98418dba | 4963 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 4964 | cat >>confdefs.h <<_ACEOF |
98418dba | 4965 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 4966 | _ACEOF |
f4988be7 GM |
4967 | |
4968 | fi | |
c0d27fcc | 4969 | |
98418dba CW |
4970 | done |
4971 | ||
4972 | # Emulation library used on NetBSD. | |
c0d27fcc | 4973 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
98418dba CW |
4974 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
4975 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
503d2be0 | 4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 4977 | else |
98418dba CW |
4978 | ac_check_lib_save_LIBS=$LIBS |
4979 | LIBS="-lossaudio $LIBS" | |
4980 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 4981 | #line $LINENO "configure" |
19650fd6 AS |
4982 | /* confdefs.h. */ |
4983 | _ACEOF | |
4984 | cat confdefs.h >>conftest.$ac_ext | |
4985 | cat >>conftest.$ac_ext <<_ACEOF | |
4986 | /* end confdefs.h. */ | |
98418dba CW |
4987 | |
4988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4989 | #ifdef __cplusplus | |
4990 | extern "C" | |
f4988be7 | 4991 | #endif |
98418dba CW |
4992 | /* We use char because int might match the return type of a gcc2 |
4993 | builtin and then its argument prototype would still apply. */ | |
4994 | char _oss_ioctl (); | |
503d2be0 AS |
4995 | int |
4996 | main () | |
4997 | { | |
98418dba | 4998 | _oss_ioctl (); |
503d2be0 AS |
4999 | ; |
5000 | return 0; | |
5001 | } | |
5002 | _ACEOF | |
98418dba | 5003 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 5004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 5005 | (eval $ac_link) 2>&5 |
503d2be0 | 5006 | ac_status=$? |
c0d27fcc | 5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5008 | (exit $ac_status); } && |
793fa0d7 | 5009 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 5010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5011 | (eval $ac_try) 2>&5 |
5012 | ac_status=$? | |
c0d27fcc | 5013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5014 | (exit $ac_status); }; }; then |
98418dba | 5015 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 5016 | else |
503d2be0 | 5017 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5018 | sed 's/^/| /' conftest.$ac_ext >&5 |
5019 | ||
98418dba | 5020 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 5021 | fi |
98418dba CW |
5022 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5023 | LIBS=$ac_check_lib_save_LIBS | |
f4988be7 | 5024 | fi |
c0d27fcc | 5025 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
98418dba CW |
5026 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
5027 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
5028 | LIBSOUND=-lossaudio | |
5029 | else | |
5030 | LIBSOUND= | |
5031 | fi | |
5032 | ||
c0d27fcc | 5033 | |
f4988be7 | 5034 | fi |
c0d27fcc MR |
5035 | |
5036 | ||
5037 | ||
5038 | ||
5039 | ||
5040 | ||
5041 | ||
5042 | ||
5043 | ||
5044 | ||
5045 | ||
5046 | ||
5047 | ||
5048 | ||
5049 | ||
5050 | ||
5051 | ||
5052 | ||
22044edf DL |
5053 | |
5054 | ||
973a76b1 | 5055 | |
cffcede7 | 5056 | |
c0d27fcc | 5057 | |
f4988be7 | 5058 | |
98418dba CW |
5059 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
5060 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 5061 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
cffcede7 | 5062 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h |
98418dba CW |
5063 | do |
5064 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
5065 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5066 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
5067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 5069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
5070 | fi |
5071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5072 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f4988be7 | 5073 | else |
c0d27fcc MR |
5074 | # Is the header compilable? |
5075 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5076 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5077 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 5078 | #line $LINENO "configure" |
19650fd6 AS |
5079 | /* confdefs.h. */ |
5080 | _ACEOF | |
5081 | cat confdefs.h >>conftest.$ac_ext | |
5082 | cat >>conftest.$ac_ext <<_ACEOF | |
5083 | /* end confdefs.h. */ | |
c0d27fcc MR |
5084 | $ac_includes_default |
5085 | #include <$ac_header> | |
5086 | _ACEOF | |
5087 | rm -f conftest.$ac_objext | |
5088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5089 | (eval $ac_compile) 2>&5 | |
5090 | ac_status=$? | |
5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5092 | (exit $ac_status); } && | |
793fa0d7 | 5093 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
5094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5095 | (eval $ac_try) 2>&5 | |
5096 | ac_status=$? | |
5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5098 | (exit $ac_status); }; }; then | |
5099 | ac_header_compiler=yes | |
5100 | else | |
5101 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5102 | sed 's/^/| /' conftest.$ac_ext >&5 |
5103 | ||
c0d27fcc MR |
5104 | ac_header_compiler=no |
5105 | fi | |
5106 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5107 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5108 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5109 | ||
5110 | # Is the header present? | |
5111 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5112 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5113 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 5114 | #line $LINENO "configure" |
19650fd6 AS |
5115 | /* confdefs.h. */ |
5116 | _ACEOF | |
5117 | cat confdefs.h >>conftest.$ac_ext | |
5118 | cat >>conftest.$ac_ext <<_ACEOF | |
5119 | /* end confdefs.h. */ | |
98418dba | 5120 | #include <$ac_header> |
503d2be0 | 5121 | _ACEOF |
c0d27fcc | 5122 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 5123 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5124 | ac_status=$? |
6bae0ccf | 5125 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5126 | rm -f conftest.er1 |
5127 | cat conftest.err >&5 | |
c0d27fcc | 5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5129 | (exit $ac_status); } >/dev/null; then |
5130 | if test -s conftest.err; then | |
5131 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5132 | else | |
5133 | ac_cpp_err= | |
5134 | fi | |
5135 | else | |
5136 | ac_cpp_err=yes | |
5137 | fi | |
5138 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5139 | ac_header_preproc=yes |
34ec9ebe | 5140 | else |
503d2be0 | 5141 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5142 | sed 's/^/| /' conftest.$ac_ext >&5 |
5143 | ||
c0d27fcc | 5144 | ac_header_preproc=no |
34ec9ebe | 5145 | fi |
98418dba | 5146 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5147 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5148 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5149 | ||
5150 | # So? What about this header? | |
5151 | case $ac_header_compiler:$ac_header_preproc in | |
5152 | yes:no ) | |
5153 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5154 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
5155 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5156 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5157 | ( | |
5158 | cat <<\_ASBOX | |
5159 | ## ------------------------------------ ## | |
5160 | ## Report this to bug-autoconf@gnu.org. ## | |
5161 | ## ------------------------------------ ## | |
5162 | _ASBOX | |
5163 | ) | | |
5164 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 5165 | ;; |
c0d27fcc MR |
5166 | no:yes ) |
5167 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5168 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
5169 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5170 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 5171 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 5172 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
5173 | ( |
5174 | cat <<\_ASBOX | |
793fa0d7 DL |
5175 | ## ------------------------------------ ## |
5176 | ## Report this to bug-autoconf@gnu.org. ## | |
5177 | ## ------------------------------------ ## | |
19650fd6 AS |
5178 | _ASBOX |
5179 | ) | | |
5180 | sed "s/^/$as_me: WARNING: /" >&2 | |
5181 | ;; | |
c0d27fcc MR |
5182 | esac |
5183 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5184 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5185 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5187 | else | |
793fa0d7 | 5188 | eval "$as_ac_Header=$ac_header_preproc" |
34ec9ebe | 5189 | fi |
c0d27fcc | 5190 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5191 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5192 | |
5193 | fi | |
98418dba | 5194 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5195 | cat >>confdefs.h <<_ACEOF |
98418dba | 5196 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5197 | _ACEOF |
34ec9ebe | 5198 | |
98418dba | 5199 | fi |
c0d27fcc | 5200 | |
98418dba CW |
5201 | done |
5202 | ||
22044edf DL |
5203 | |
5204 | for ac_header in term.h | |
5205 | do | |
5206 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5207 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5211 | else | |
5212 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 5213 | #line $LINENO "configure" |
19650fd6 AS |
5214 | /* confdefs.h. */ |
5215 | _ACEOF | |
5216 | cat confdefs.h >>conftest.$ac_ext | |
5217 | cat >>conftest.$ac_ext <<_ACEOF | |
5218 | /* end confdefs.h. */ | |
22044edf DL |
5219 | #include <$ac_header> |
5220 | _ACEOF | |
5221 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5222 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5223 | ac_status=$? | |
5224 | grep -v '^ *+' conftest.er1 >conftest.err | |
5225 | rm -f conftest.er1 | |
5226 | cat conftest.err >&5 | |
5227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5228 | (exit $ac_status); } >/dev/null; then | |
5229 | if test -s conftest.err; then | |
5230 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5231 | else | |
5232 | ac_cpp_err= | |
5233 | fi | |
5234 | else | |
5235 | ac_cpp_err=yes | |
5236 | fi | |
5237 | if test -z "$ac_cpp_err"; then | |
5238 | eval "$as_ac_Header=yes" | |
5239 | else | |
5240 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5241 | sed 's/^/| /' conftest.$ac_ext >&5 |
5242 | ||
22044edf DL |
5243 | eval "$as_ac_Header=no" |
5244 | fi | |
5245 | rm -f conftest.err conftest.$ac_ext | |
5246 | fi | |
5247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5249 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5250 | cat >>confdefs.h <<_ACEOF | |
5251 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5252 | _ACEOF | |
5253 | ||
5254 | fi | |
5255 | ||
5256 | done | |
5257 | ||
c0d27fcc | 5258 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
98418dba CW |
5259 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5260 | if test "${ac_cv_header_stdc+set}" = set; then | |
503d2be0 | 5261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5262 | else |
503d2be0 | 5263 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5264 | #line $LINENO "configure" |
19650fd6 AS |
5265 | /* confdefs.h. */ |
5266 | _ACEOF | |
5267 | cat confdefs.h >>conftest.$ac_ext | |
5268 | cat >>conftest.$ac_ext <<_ACEOF | |
5269 | /* end confdefs.h. */ | |
98418dba CW |
5270 | #include <stdlib.h> |
5271 | #include <stdarg.h> | |
5272 | #include <string.h> | |
5273 | #include <float.h> | |
5274 | ||
19650fd6 AS |
5275 | int |
5276 | main () | |
5277 | { | |
5278 | ||
5279 | ; | |
5280 | return 0; | |
5281 | } | |
98418dba | 5282 | _ACEOF |
19650fd6 AS |
5283 | rm -f conftest.$ac_objext |
5284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5285 | (eval $ac_compile) 2>&5 | |
cd958eb3 MB |
5286 | ac_status=$? |
5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19650fd6 | 5288 | (exit $ac_status); } && |
793fa0d7 | 5289 | { ac_try='test -s conftest.$ac_objext' |
19650fd6 AS |
5290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5291 | (eval $ac_try) 2>&5 | |
5292 | ac_status=$? | |
5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5294 | (exit $ac_status); }; }; then | |
98418dba | 5295 | ac_cv_header_stdc=yes |
ba4481b5 | 5296 | else |
503d2be0 | 5297 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5298 | sed 's/^/| /' conftest.$ac_ext >&5 |
5299 | ||
5300 | ac_cv_header_stdc=no | |
ba4481b5 | 5301 | fi |
19650fd6 | 5302 | rm -f conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
5303 | |
5304 | if test $ac_cv_header_stdc = yes; then | |
5305 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5306 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 5307 | #line $LINENO "configure" |
19650fd6 AS |
5308 | /* confdefs.h. */ |
5309 | _ACEOF | |
5310 | cat confdefs.h >>conftest.$ac_ext | |
5311 | cat >>conftest.$ac_ext <<_ACEOF | |
5312 | /* end confdefs.h. */ | |
98418dba CW |
5313 | #include <string.h> |
5314 | ||
5315 | _ACEOF | |
5316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5317 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
5318 | : |
5319 | else | |
5320 | ac_cv_header_stdc=no | |
ba4481b5 | 5321 | fi |
98418dba | 5322 | rm -f conftest* |
ba4481b5 DL |
5323 | |
5324 | fi | |
5325 | ||
98418dba CW |
5326 | if test $ac_cv_header_stdc = yes; then |
5327 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5328 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 5329 | #line $LINENO "configure" |
19650fd6 AS |
5330 | /* confdefs.h. */ |
5331 | _ACEOF | |
5332 | cat confdefs.h >>conftest.$ac_ext | |
5333 | cat >>conftest.$ac_ext <<_ACEOF | |
5334 | /* end confdefs.h. */ | |
98418dba CW |
5335 | #include <stdlib.h> |
5336 | ||
5337 | _ACEOF | |
5338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5339 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
5340 | : |
5341 | else | |
5342 | ac_cv_header_stdc=no | |
5343 | fi | |
5344 | rm -f conftest* | |
5345 | ||
5346 | fi | |
5347 | ||
5348 | if test $ac_cv_header_stdc = yes; then | |
5349 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5350 | if test "$cross_compiling" = yes; then | |
5351 | : | |
d42122a3 | 5352 | else |
503d2be0 | 5353 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5354 | #line $LINENO "configure" |
19650fd6 AS |
5355 | /* confdefs.h. */ |
5356 | _ACEOF | |
5357 | cat confdefs.h >>conftest.$ac_ext | |
5358 | cat >>conftest.$ac_ext <<_ACEOF | |
5359 | /* end confdefs.h. */ | |
98418dba CW |
5360 | #include <ctype.h> |
5361 | #if ((' ' & 0x0FF) == 0x020) | |
5362 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5363 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5364 | #else | |
19650fd6 | 5365 | # define ISLOWER(c) \ |
793fa0d7 DL |
5366 | (('a' <= (c) && (c) <= 'i') \ |
5367 | || ('j' <= (c) && (c) <= 'r') \ | |
5368 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
5369 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5370 | #endif | |
5371 | ||
5372 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
5373 | int |
5374 | main () | |
5375 | { | |
98418dba CW |
5376 | int i; |
5377 | for (i = 0; i < 256; i++) | |
5378 | if (XOR (islower (i), ISLOWER (i)) | |
793fa0d7 | 5379 | || toupper (i) != TOUPPER (i)) |
98418dba CW |
5380 | exit(2); |
5381 | exit (0); | |
503d2be0 AS |
5382 | } |
5383 | _ACEOF | |
98418dba | 5384 | rm -f conftest$ac_exeext |
c0d27fcc | 5385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 5386 | (eval $ac_link) 2>&5 |
503d2be0 | 5387 | ac_status=$? |
c0d27fcc | 5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 5389 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 5390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5391 | (eval $ac_try) 2>&5 |
5392 | ac_status=$? | |
c0d27fcc | 5393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5394 | (exit $ac_status); }; }; then |
98418dba | 5395 | : |
d42122a3 | 5396 | else |
98418dba CW |
5397 | echo "$as_me: program exited with status $ac_status" >&5 |
5398 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5399 | sed 's/^/| /' conftest.$ac_ext >&5 |
5400 | ||
c0d27fcc | 5401 | ( exit $ac_status ) |
98418dba | 5402 | ac_cv_header_stdc=no |
d42122a3 | 5403 | fi |
6bae0ccf | 5404 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 5405 | fi |
98418dba CW |
5406 | fi |
5407 | fi | |
c0d27fcc | 5408 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
98418dba CW |
5409 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
5410 | if test $ac_cv_header_stdc = yes; then | |
5411 | ||
c0d27fcc | 5412 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5413 | #define STDC_HEADERS 1 |
c0d27fcc | 5414 | _ACEOF |
d42122a3 DL |
5415 | |
5416 | fi | |
5417 | ||
c0d27fcc | 5418 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
98418dba CW |
5419 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
5420 | if test "${ac_cv_header_time+set}" = set; then | |
503d2be0 | 5421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5422 | else |
503d2be0 | 5423 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5424 | #line $LINENO "configure" |
19650fd6 AS |
5425 | /* confdefs.h. */ |
5426 | _ACEOF | |
5427 | cat confdefs.h >>conftest.$ac_ext | |
5428 | cat >>conftest.$ac_ext <<_ACEOF | |
5429 | /* end confdefs.h. */ | |
ba4481b5 | 5430 | #include <sys/types.h> |
98418dba | 5431 | #include <sys/time.h> |
ba4481b5 | 5432 | #include <time.h> |
503d2be0 AS |
5433 | |
5434 | int | |
5435 | main () | |
5436 | { | |
98418dba CW |
5437 | if ((struct tm *) 0) |
5438 | return 0; | |
503d2be0 AS |
5439 | ; |
5440 | return 0; | |
5441 | } | |
5442 | _ACEOF | |
5443 | rm -f conftest.$ac_objext | |
c0d27fcc | 5444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5445 | (eval $ac_compile) 2>&5 |
5446 | ac_status=$? | |
c0d27fcc | 5447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5448 | (exit $ac_status); } && |
793fa0d7 | 5449 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5451 | (eval $ac_try) 2>&5 |
5452 | ac_status=$? | |
c0d27fcc | 5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5454 | (exit $ac_status); }; }; then |
98418dba | 5455 | ac_cv_header_time=yes |
ba4481b5 | 5456 | else |
503d2be0 | 5457 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5458 | sed 's/^/| /' conftest.$ac_ext >&5 |
5459 | ||
98418dba | 5460 | ac_cv_header_time=no |
ba4481b5 | 5461 | fi |
503d2be0 | 5462 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5463 | fi |
c0d27fcc | 5464 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
98418dba CW |
5465 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
5466 | if test $ac_cv_header_time = yes; then | |
503d2be0 | 5467 | |
c0d27fcc | 5468 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5469 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 5470 | _ACEOF |
ba4481b5 DL |
5471 | |
5472 | fi | |
5473 | ||
cd958eb3 MB |
5474 | echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
5475 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 | |
5476 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | |
503d2be0 | 5477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5478 | else |
503d2be0 | 5479 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5480 | #line $LINENO "configure" |
19650fd6 AS |
5481 | /* confdefs.h. */ |
5482 | _ACEOF | |
5483 | cat confdefs.h >>conftest.$ac_ext | |
5484 | cat >>conftest.$ac_ext <<_ACEOF | |
5485 | /* end confdefs.h. */ | |
cd958eb3 MB |
5486 | $ac_includes_default |
5487 | int | |
5488 | main () | |
5489 | { | |
5490 | #ifndef sys_siglist | |
5491 | char *p = (char *) sys_siglist; | |
98418dba | 5492 | #endif |
503d2be0 | 5493 | |
cd958eb3 MB |
5494 | ; |
5495 | return 0; | |
5496 | } | |
5497 | _ACEOF | |
5498 | rm -f conftest.$ac_objext | |
5499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5500 | (eval $ac_compile) 2>&5 | |
5501 | ac_status=$? | |
5502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5503 | (exit $ac_status); } && | |
793fa0d7 | 5504 | { ac_try='test -s conftest.$ac_objext' |
cd958eb3 MB |
5505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5506 | (eval $ac_try) 2>&5 | |
5507 | ac_status=$? | |
5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5509 | (exit $ac_status); }; }; then | |
5510 | ac_cv_have_decl_sys_siglist=yes | |
5511 | else | |
5512 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5513 | sed 's/^/| /' conftest.$ac_ext >&5 |
5514 | ||
cd958eb3 MB |
5515 | ac_cv_have_decl_sys_siglist=no |
5516 | fi | |
5517 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5518 | fi | |
5519 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 | |
5520 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 | |
5521 | if test $ac_cv_have_decl_sys_siglist = yes; then | |
5522 | ||
5523 | cat >>confdefs.h <<_ACEOF | |
5524 | #define HAVE_DECL_SYS_SIGLIST 1 | |
5525 | _ACEOF | |
5526 | ||
5527 | ||
5528 | else | |
5529 | cat >>confdefs.h <<_ACEOF | |
5530 | #define HAVE_DECL_SYS_SIGLIST 0 | |
5531 | _ACEOF | |
5532 | ||
5533 | ||
5534 | fi | |
5535 | ||
5536 | ||
5537 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
5538 | # For Tru64, at least: | |
5539 | echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 | |
5540 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6 | |
5541 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then | |
5542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5543 | else | |
5544 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 5545 | #line $LINENO "configure" |
19650fd6 AS |
5546 | /* confdefs.h. */ |
5547 | _ACEOF | |
5548 | cat confdefs.h >>conftest.$ac_ext | |
5549 | cat >>conftest.$ac_ext <<_ACEOF | |
5550 | /* end confdefs.h. */ | |
cd958eb3 | 5551 | $ac_includes_default |
503d2be0 AS |
5552 | int |
5553 | main () | |
5554 | { | |
cd958eb3 MB |
5555 | #ifndef __sys_siglist |
5556 | char *p = (char *) __sys_siglist; | |
5557 | #endif | |
5558 | ||
503d2be0 AS |
5559 | ; |
5560 | return 0; | |
5561 | } | |
5562 | _ACEOF | |
5563 | rm -f conftest.$ac_objext | |
c0d27fcc | 5564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5565 | (eval $ac_compile) 2>&5 |
5566 | ac_status=$? | |
c0d27fcc | 5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5568 | (exit $ac_status); } && |
793fa0d7 | 5569 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5571 | (eval $ac_try) 2>&5 |
5572 | ac_status=$? | |
c0d27fcc | 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5574 | (exit $ac_status); }; }; then |
cd958eb3 | 5575 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 5576 | else |
503d2be0 | 5577 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5578 | sed 's/^/| /' conftest.$ac_ext >&5 |
5579 | ||
cd958eb3 | 5580 | ac_cv_have_decl___sys_siglist=no |
ba4481b5 | 5581 | fi |
503d2be0 AS |
5582 | rm -f conftest.$ac_objext conftest.$ac_ext |
5583 | fi | |
cd958eb3 MB |
5584 | echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
5585 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 | |
5586 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
503d2be0 | 5587 | |
cd958eb3 MB |
5588 | cat >>confdefs.h <<_ACEOF |
5589 | #define HAVE_DECL___SYS_SIGLIST 1 | |
5590 | _ACEOF | |
5591 | ||
5592 | ||
5593 | else | |
5594 | cat >>confdefs.h <<_ACEOF | |
5595 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 5596 | _ACEOF |
503d2be0 | 5597 | |
cd958eb3 | 5598 | |
ba4481b5 DL |
5599 | fi |
5600 | ||
cd958eb3 MB |
5601 | |
5602 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
5603 | ||
5604 | cat >>confdefs.h <<\_ACEOF | |
5605 | #define sys_siglist __sys_siglist | |
5606 | _ACEOF | |
5607 | ||
5608 | fi | |
5609 | fi | |
c0d27fcc | 5610 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
98418dba CW |
5611 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
5612 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
503d2be0 | 5613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5614 | else |
503d2be0 | 5615 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5616 | #line $LINENO "configure" |
19650fd6 AS |
5617 | /* confdefs.h. */ |
5618 | _ACEOF | |
5619 | cat confdefs.h >>conftest.$ac_ext | |
5620 | cat >>conftest.$ac_ext <<_ACEOF | |
5621 | /* end confdefs.h. */ | |
98418dba CW |
5622 | #include <sys/types.h> |
5623 | #include <sys/wait.h> | |
5624 | #ifndef WEXITSTATUS | |
5625 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
5626 | #endif | |
5627 | #ifndef WIFEXITED | |
5628 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 5629 | #endif |
503d2be0 AS |
5630 | |
5631 | int | |
5632 | main () | |
5633 | { | |
98418dba CW |
5634 | int s; |
5635 | wait (&s); | |
5636 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
5637 | ; |
5638 | return 0; | |
5639 | } | |
5640 | _ACEOF | |
98418dba | 5641 | rm -f conftest.$ac_objext |
c0d27fcc | 5642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba | 5643 | (eval $ac_compile) 2>&5 |
503d2be0 | 5644 | ac_status=$? |
c0d27fcc | 5645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5646 | (exit $ac_status); } && |
793fa0d7 | 5647 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5649 | (eval $ac_try) 2>&5 |
5650 | ac_status=$? | |
c0d27fcc | 5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5652 | (exit $ac_status); }; }; then |
98418dba | 5653 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 5654 | else |
503d2be0 | 5655 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5656 | sed 's/^/| /' conftest.$ac_ext >&5 |
5657 | ||
98418dba | 5658 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 5659 | fi |
98418dba | 5660 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5661 | fi |
c0d27fcc | 5662 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
98418dba CW |
5663 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
5664 | if test $ac_cv_header_sys_wait_h = yes; then | |
503d2be0 | 5665 | |
c0d27fcc | 5666 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5667 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 5668 | _ACEOF |
ba4481b5 | 5669 | |
ba4481b5 DL |
5670 | fi |
5671 | ||
c0d27fcc MR |
5672 | |
5673 | echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
98418dba CW |
5674 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
5675 | if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
503d2be0 | 5676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 5677 | else |
503d2be0 | 5678 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5679 | #line $LINENO "configure" |
19650fd6 AS |
5680 | /* confdefs.h. */ |
5681 | _ACEOF | |
5682 | cat confdefs.h >>conftest.$ac_ext | |
5683 | cat >>conftest.$ac_ext <<_ACEOF | |
5684 | /* end confdefs.h. */ | |
98418dba CW |
5685 | #ifdef TIME_WITH_SYS_TIME |
5686 | #include <sys/time.h> | |
5687 | #include <time.h> | |
5688 | #else | |
5689 | #ifdef HAVE_SYS_TIME_H | |
5690 | #include <sys/time.h> | |
5691 | #else | |
1113b624 | 5692 | #include <time.h> |
98418dba CW |
5693 | #endif |
5694 | #endif | |
5695 | #ifdef HAVE_UTIME_H | |
5696 | #include <utime.h> | |
5697 | #endif | |
503d2be0 AS |
5698 | int |
5699 | main () | |
5700 | { | |
98418dba | 5701 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
5702 | ; |
5703 | return 0; | |
5704 | } | |
5705 | _ACEOF | |
98418dba | 5706 | rm -f conftest.$ac_objext |
c0d27fcc | 5707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba | 5708 | (eval $ac_compile) 2>&5 |
503d2be0 | 5709 | ac_status=$? |
c0d27fcc | 5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5711 | (exit $ac_status); } && |
793fa0d7 | 5712 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5714 | (eval $ac_try) 2>&5 |
5715 | ac_status=$? | |
c0d27fcc | 5716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5717 | (exit $ac_status); }; }; then |
98418dba | 5718 | emacs_cv_struct_utimbuf=yes |
1113b624 | 5719 | else |
503d2be0 | 5720 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5721 | sed 's/^/| /' conftest.$ac_ext >&5 |
5722 | ||
98418dba | 5723 | emacs_cv_struct_utimbuf=no |
1113b624 | 5724 | fi |
98418dba | 5725 | rm -f conftest.$ac_objext conftest.$ac_ext |
1113b624 | 5726 | fi |
c0d27fcc | 5727 | echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
98418dba CW |
5728 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
5729 | if test $emacs_cv_struct_utimbuf = yes; then | |
b936fae4 | 5730 | |
c0d27fcc | 5731 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5732 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 5733 | _ACEOF |
1113b624 PE |
5734 | |
5735 | fi | |
ba4481b5 | 5736 | |
c0d27fcc | 5737 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
98418dba CW |
5738 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
5739 | if test "${ac_cv_type_signal+set}" = set; then | |
503d2be0 | 5740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 5741 | else |
98418dba | 5742 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5743 | #line $LINENO "configure" |
19650fd6 AS |
5744 | /* confdefs.h. */ |
5745 | _ACEOF | |
5746 | cat confdefs.h >>conftest.$ac_ext | |
5747 | cat >>conftest.$ac_ext <<_ACEOF | |
5748 | /* end confdefs.h. */ | |
7397acc4 | 5749 | #include <sys/types.h> |
98418dba CW |
5750 | #include <signal.h> |
5751 | #ifdef signal | |
5752 | # undef signal | |
5753 | #endif | |
5754 | #ifdef __cplusplus | |
5755 | extern "C" void (*signal (int, void (*)(int)))(int); | |
5756 | #else | |
5757 | void (*signal ()) (); | |
5758 | #endif | |
5759 | ||
503d2be0 AS |
5760 | int |
5761 | main () | |
5762 | { | |
98418dba | 5763 | int i; |
503d2be0 AS |
5764 | ; |
5765 | return 0; | |
5766 | } | |
5767 | _ACEOF | |
98418dba | 5768 | rm -f conftest.$ac_objext |
c0d27fcc | 5769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5770 | (eval $ac_compile) 2>&5 |
5771 | ac_status=$? | |
c0d27fcc | 5772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5773 | (exit $ac_status); } && |
793fa0d7 | 5774 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5776 | (eval $ac_try) 2>&5 |
5777 | ac_status=$? | |
c0d27fcc | 5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5779 | (exit $ac_status); }; }; then |
98418dba | 5780 | ac_cv_type_signal=void |
503d2be0 AS |
5781 | else |
5782 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5783 | sed 's/^/| /' conftest.$ac_ext >&5 |
5784 | ||
98418dba | 5785 | ac_cv_type_signal=int |
503d2be0 | 5786 | fi |
98418dba | 5787 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 5788 | fi |
c0d27fcc | 5789 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
98418dba | 5790 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
7397acc4 | 5791 | |
c0d27fcc | 5792 | cat >>confdefs.h <<_ACEOF |
98418dba | 5793 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
5794 | _ACEOF |
5795 | ||
503d2be0 | 5796 | |
c0d27fcc MR |
5797 | |
5798 | echo "$as_me:$LINENO: checking for speed_t" >&5 | |
98418dba CW |
5799 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
5800 | if test "${emacs_cv_speed_t+set}" = set; then | |
5801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 5802 | else |
98418dba | 5803 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5804 | #line $LINENO "configure" |
19650fd6 AS |
5805 | /* confdefs.h. */ |
5806 | _ACEOF | |
5807 | cat confdefs.h >>conftest.$ac_ext | |
5808 | cat >>conftest.$ac_ext <<_ACEOF | |
5809 | /* end confdefs.h. */ | |
98418dba | 5810 | #include <termios.h> |
98418dba CW |
5811 | int |
5812 | main () | |
5813 | { | |
5814 | speed_t x = 1; | |
5815 | ; | |
5816 | return 0; | |
5817 | } | |
5818 | _ACEOF | |
5819 | rm -f conftest.$ac_objext | |
c0d27fcc | 5820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
5821 | (eval $ac_compile) 2>&5 |
5822 | ac_status=$? | |
c0d27fcc | 5823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 5824 | (exit $ac_status); } && |
793fa0d7 | 5825 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
5827 | (eval $ac_try) 2>&5 |
5828 | ac_status=$? | |
c0d27fcc | 5829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5830 | (exit $ac_status); }; }; then |
5831 | emacs_cv_speed_t=yes | |
5832 | else | |
5833 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5834 | sed 's/^/| /' conftest.$ac_ext >&5 |
5835 | ||
98418dba CW |
5836 | emacs_cv_speed_t=no |
5837 | fi | |
5838 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5839 | fi | |
c0d27fcc | 5840 | echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
98418dba CW |
5841 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
5842 | if test $emacs_cv_speed_t = yes; then | |
b936fae4 | 5843 | |
c0d27fcc | 5844 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5845 | #define HAVE_SPEED_T 1 |
c0d27fcc | 5846 | _ACEOF |
98418dba | 5847 | |
7397acc4 DL |
5848 | fi |
5849 | ||
c0d27fcc | 5850 | echo "$as_me:$LINENO: checking for struct timeval" >&5 |
98418dba CW |
5851 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
5852 | if test "${emacs_cv_struct_timeval+set}" = set; then | |
503d2be0 | 5853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 5854 | else |
503d2be0 | 5855 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5856 | #line $LINENO "configure" |
19650fd6 AS |
5857 | /* confdefs.h. */ |
5858 | _ACEOF | |
5859 | cat confdefs.h >>conftest.$ac_ext | |
5860 | cat >>conftest.$ac_ext <<_ACEOF | |
5861 | /* end confdefs.h. */ | |
98418dba CW |
5862 | #ifdef TIME_WITH_SYS_TIME |
5863 | #include <sys/time.h> | |
5864 | #include <time.h> | |
5865 | #else | |
5866 | #ifdef HAVE_SYS_TIME_H | |
5867 | #include <sys/time.h> | |
5868 | #else | |
5869 | #include <time.h> | |
5870 | #endif | |
5871 | #endif | |
503d2be0 AS |
5872 | int |
5873 | main () | |
5874 | { | |
98418dba | 5875 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
5876 | ; |
5877 | return 0; | |
5878 | } | |
5879 | _ACEOF | |
5880 | rm -f conftest.$ac_objext | |
c0d27fcc | 5881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5882 | (eval $ac_compile) 2>&5 |
5883 | ac_status=$? | |
c0d27fcc | 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5885 | (exit $ac_status); } && |
793fa0d7 | 5886 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5888 | (eval $ac_try) 2>&5 |
5889 | ac_status=$? | |
c0d27fcc | 5890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5891 | (exit $ac_status); }; }; then |
98418dba | 5892 | emacs_cv_struct_timeval=yes |
7397acc4 | 5893 | else |
503d2be0 | 5894 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5895 | sed 's/^/| /' conftest.$ac_ext >&5 |
5896 | ||
98418dba | 5897 | emacs_cv_struct_timeval=no |
7397acc4 | 5898 | fi |
503d2be0 | 5899 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 5900 | fi |
c0d27fcc | 5901 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
98418dba CW |
5902 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
5903 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
5904 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 5905 | |
c0d27fcc | 5906 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5907 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 5908 | _ACEOF |
7397acc4 DL |
5909 | |
5910 | fi | |
5911 | ||
c0d27fcc | 5912 | echo "$as_me:$LINENO: checking for struct exception" >&5 |
98418dba CW |
5913 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
5914 | if test "${emacs_cv_struct_exception+set}" = set; then | |
503d2be0 | 5915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5916 | else |
503d2be0 | 5917 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5918 | #line $LINENO "configure" |
19650fd6 AS |
5919 | /* confdefs.h. */ |
5920 | _ACEOF | |
5921 | cat confdefs.h >>conftest.$ac_ext | |
5922 | cat >>conftest.$ac_ext <<_ACEOF | |
5923 | /* end confdefs.h. */ | |
98418dba | 5924 | #include <math.h> |
503d2be0 AS |
5925 | int |
5926 | main () | |
5927 | { | |
98418dba | 5928 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
5929 | ; |
5930 | return 0; | |
ba4481b5 | 5931 | } |
503d2be0 AS |
5932 | _ACEOF |
5933 | rm -f conftest.$ac_objext | |
c0d27fcc | 5934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5935 | (eval $ac_compile) 2>&5 |
5936 | ac_status=$? | |
c0d27fcc | 5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5938 | (exit $ac_status); } && |
793fa0d7 | 5939 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5941 | (eval $ac_try) 2>&5 |
5942 | ac_status=$? | |
c0d27fcc | 5943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5944 | (exit $ac_status); }; }; then |
98418dba | 5945 | emacs_cv_struct_exception=yes |
ba4481b5 | 5946 | else |
503d2be0 | 5947 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5948 | sed 's/^/| /' conftest.$ac_ext >&5 |
5949 | ||
98418dba | 5950 | emacs_cv_struct_exception=no |
ba4481b5 | 5951 | fi |
503d2be0 | 5952 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5953 | fi |
c0d27fcc | 5954 | echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
98418dba CW |
5955 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
5956 | HAVE_EXCEPTION=$emacs_cv_struct_exception | |
5957 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 5958 | |
c0d27fcc | 5959 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5960 | #define NO_MATHERR 1 |
c0d27fcc | 5961 | _ACEOF |
ba4481b5 DL |
5962 | |
5963 | fi | |
5964 | ||
c0d27fcc | 5965 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
98418dba CW |
5966 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
5967 | if test "${ac_cv_struct_tm+set}" = set; then | |
503d2be0 | 5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 5969 | else |
503d2be0 | 5970 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 5971 | #line $LINENO "configure" |
19650fd6 AS |
5972 | /* confdefs.h. */ |
5973 | _ACEOF | |
5974 | cat confdefs.h >>conftest.$ac_ext | |
5975 | cat >>conftest.$ac_ext <<_ACEOF | |
5976 | /* end confdefs.h. */ | |
98418dba CW |
5977 | #include <sys/types.h> |
5978 | #include <time.h> | |
7397acc4 | 5979 | |
503d2be0 AS |
5980 | int |
5981 | main () | |
5982 | { | |
98418dba | 5983 | struct tm *tp; tp->tm_sec; |
503d2be0 AS |
5984 | ; |
5985 | return 0; | |
5986 | } | |
5987 | _ACEOF | |
5988 | rm -f conftest.$ac_objext | |
c0d27fcc | 5989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
5990 | (eval $ac_compile) 2>&5 |
5991 | ac_status=$? | |
c0d27fcc | 5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5993 | (exit $ac_status); } && |
793fa0d7 | 5994 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 5995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5996 | (eval $ac_try) 2>&5 |
5997 | ac_status=$? | |
c0d27fcc | 5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5999 | (exit $ac_status); }; }; then |
98418dba | 6000 | ac_cv_struct_tm=time.h |
7397acc4 | 6001 | else |
503d2be0 | 6002 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6003 | sed 's/^/| /' conftest.$ac_ext >&5 |
6004 | ||
98418dba | 6005 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 6006 | fi |
503d2be0 | 6007 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6008 | fi |
c0d27fcc | 6009 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
98418dba CW |
6010 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
6011 | if test $ac_cv_struct_tm = sys/time.h; then | |
7397acc4 | 6012 | |
c0d27fcc | 6013 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6014 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 6015 | _ACEOF |
7397acc4 DL |
6016 | |
6017 | fi | |
ba4481b5 | 6018 | |
c0d27fcc | 6019 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
98418dba CW |
6020 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
6021 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
503d2be0 | 6022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6023 | else |
98418dba | 6024 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 6025 | #line $LINENO "configure" |
19650fd6 AS |
6026 | /* confdefs.h. */ |
6027 | _ACEOF | |
6028 | cat confdefs.h >>conftest.$ac_ext | |
6029 | cat >>conftest.$ac_ext <<_ACEOF | |
6030 | /* end confdefs.h. */ | |
98418dba CW |
6031 | #include <sys/types.h> |
6032 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 6033 | |
c0d27fcc | 6034 | |
98418dba CW |
6035 | int |
6036 | main () | |
6037 | { | |
6038 | static struct tm ac_aggr; | |
6039 | if (ac_aggr.tm_zone) | |
6040 | return 0; | |
6041 | ; | |
6042 | return 0; | |
6043 | } | |
6044 | _ACEOF | |
6045 | rm -f conftest.$ac_objext | |
c0d27fcc | 6046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
6047 | (eval $ac_compile) 2>&5 |
6048 | ac_status=$? | |
c0d27fcc | 6049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6050 | (exit $ac_status); } && |
793fa0d7 | 6051 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 6052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6053 | (eval $ac_try) 2>&5 |
6054 | ac_status=$? | |
c0d27fcc | 6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6056 | (exit $ac_status); }; }; then |
6057 | ac_cv_member_struct_tm_tm_zone=yes | |
ba4481b5 | 6058 | else |
98418dba | 6059 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6060 | sed 's/^/| /' conftest.$ac_ext >&5 |
6061 | ||
6bae0ccf | 6062 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 6063 | #line $LINENO "configure" |
19650fd6 AS |
6064 | /* confdefs.h. */ |
6065 | _ACEOF | |
6066 | cat confdefs.h >>conftest.$ac_ext | |
6067 | cat >>conftest.$ac_ext <<_ACEOF | |
6068 | /* end confdefs.h. */ | |
6bae0ccf DL |
6069 | #include <sys/types.h> |
6070 | #include <$ac_cv_struct_tm> | |
6071 | ||
6072 | ||
6073 | int | |
6074 | main () | |
6075 | { | |
6076 | static struct tm ac_aggr; | |
6077 | if (sizeof ac_aggr.tm_zone) | |
6078 | return 0; | |
6079 | ; | |
6080 | return 0; | |
6081 | } | |
6082 | _ACEOF | |
6083 | rm -f conftest.$ac_objext | |
6084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6085 | (eval $ac_compile) 2>&5 | |
6086 | ac_status=$? | |
6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6088 | (exit $ac_status); } && | |
793fa0d7 | 6089 | { ac_try='test -s conftest.$ac_objext' |
6bae0ccf DL |
6090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6091 | (eval $ac_try) 2>&5 | |
6092 | ac_status=$? | |
6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6094 | (exit $ac_status); }; }; then | |
6095 | ac_cv_member_struct_tm_tm_zone=yes | |
6096 | else | |
6097 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6098 | sed 's/^/| /' conftest.$ac_ext >&5 |
6099 | ||
98418dba | 6100 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 6101 | fi |
98418dba | 6102 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6103 | fi |
6bae0ccf DL |
6104 | rm -f conftest.$ac_objext conftest.$ac_ext |
6105 | fi | |
c0d27fcc | 6106 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
98418dba CW |
6107 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
6108 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
503d2be0 | 6109 | |
c0d27fcc | 6110 | cat >>confdefs.h <<_ACEOF |
98418dba | 6111 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
6112 | _ACEOF |
6113 | ||
ba4481b5 | 6114 | |
98418dba | 6115 | fi |
ba4481b5 | 6116 | |
98418dba | 6117 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 6118 | |
c0d27fcc | 6119 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6120 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 6121 | _ACEOF |
ba4481b5 | 6122 | |
ba4481b5 | 6123 | else |
c0d27fcc | 6124 | echo "$as_me:$LINENO: checking for tzname" >&5 |
98418dba CW |
6125 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
6126 | if test "${ac_cv_var_tzname+set}" = set; then | |
503d2be0 | 6127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6128 | else |
98418dba | 6129 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 6130 | #line $LINENO "configure" |
19650fd6 AS |
6131 | /* confdefs.h. */ |
6132 | _ACEOF | |
6133 | cat confdefs.h >>conftest.$ac_ext | |
6134 | cat >>conftest.$ac_ext <<_ACEOF | |
6135 | /* end confdefs.h. */ | |
98418dba CW |
6136 | #include <time.h> |
6137 | #ifndef tzname /* For SGI. */ | |
6138 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
6139 | #endif | |
6140 | ||
98418dba CW |
6141 | int |
6142 | main () | |
6143 | { | |
6144 | atoi(*tzname); | |
6145 | ; | |
6146 | return 0; | |
6147 | } | |
6148 | _ACEOF | |
6149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
6151 | (eval $ac_link) 2>&5 |
6152 | ac_status=$? | |
c0d27fcc | 6153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6154 | (exit $ac_status); } && |
793fa0d7 | 6155 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 6156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6157 | (eval $ac_try) 2>&5 |
6158 | ac_status=$? | |
c0d27fcc | 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6160 | (exit $ac_status); }; }; then |
6161 | ac_cv_var_tzname=yes | |
6162 | else | |
6163 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6164 | sed 's/^/| /' conftest.$ac_ext >&5 |
6165 | ||
98418dba | 6166 | ac_cv_var_tzname=no |
ba4481b5 | 6167 | fi |
98418dba CW |
6168 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6169 | fi | |
c0d27fcc | 6170 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
98418dba CW |
6171 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
6172 | if test $ac_cv_var_tzname = yes; then | |
ba4481b5 | 6173 | |
c0d27fcc | 6174 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6175 | #define HAVE_TZNAME 1 |
c0d27fcc | 6176 | _ACEOF |
503d2be0 | 6177 | |
98418dba CW |
6178 | fi |
6179 | fi | |
503d2be0 | 6180 | |
c0d27fcc | 6181 | echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
b936fae4 AS |
6182 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
6183 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
98418dba CW |
6184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6185 | else | |
6186 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 6187 | #line $LINENO "configure" |
19650fd6 AS |
6188 | /* confdefs.h. */ |
6189 | _ACEOF | |
6190 | cat confdefs.h >>conftest.$ac_ext | |
6191 | cat >>conftest.$ac_ext <<_ACEOF | |
6192 | /* end confdefs.h. */ | |
98418dba | 6193 | #include <time.h> |
b936fae4 | 6194 | |
98418dba CW |
6195 | int |
6196 | main () | |
6197 | { | |
b936fae4 AS |
6198 | static struct tm ac_aggr; |
6199 | if (ac_aggr.tm_gmtoff) | |
6200 | return 0; | |
98418dba CW |
6201 | ; |
6202 | return 0; | |
6203 | } | |
6204 | _ACEOF | |
b936fae4 | 6205 | rm -f conftest.$ac_objext |
c0d27fcc | 6206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
b936fae4 | 6207 | (eval $ac_compile) 2>&5 |
98418dba | 6208 | ac_status=$? |
c0d27fcc | 6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6210 | (exit $ac_status); } && |
793fa0d7 | 6211 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 6212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6213 | (eval $ac_try) 2>&5 |
6214 | ac_status=$? | |
c0d27fcc | 6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6216 | (exit $ac_status); }; }; then |
b936fae4 | 6217 | ac_cv_member_struct_tm_tm_gmtoff=yes |
98418dba CW |
6218 | else |
6219 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6220 | sed 's/^/| /' conftest.$ac_ext >&5 |
6221 | ||
8799b3e4 | 6222 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 6223 | #line $LINENO "configure" |
19650fd6 AS |
6224 | /* confdefs.h. */ |
6225 | _ACEOF | |
6226 | cat confdefs.h >>conftest.$ac_ext | |
6227 | cat >>conftest.$ac_ext <<_ACEOF | |
6228 | /* end confdefs.h. */ | |
6bae0ccf DL |
6229 | #include <time.h> |
6230 | ||
8799b3e4 CW |
6231 | int |
6232 | main () | |
6233 | { | |
6bae0ccf DL |
6234 | static struct tm ac_aggr; |
6235 | if (sizeof ac_aggr.tm_gmtoff) | |
6236 | return 0; | |
8799b3e4 CW |
6237 | ; |
6238 | return 0; | |
6239 | } | |
6240 | _ACEOF | |
6bae0ccf | 6241 | rm -f conftest.$ac_objext |
c0d27fcc | 6242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8799b3e4 CW |
6243 | (eval $ac_compile) 2>&5 |
6244 | ac_status=$? | |
c0d27fcc | 6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6246 | (exit $ac_status); } && |
793fa0d7 | 6247 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 6248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8799b3e4 CW |
6249 | (eval $ac_try) 2>&5 |
6250 | ac_status=$? | |
c0d27fcc | 6251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6252 | (exit $ac_status); }; }; then |
6bae0ccf | 6253 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
6254 | else |
6255 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6256 | sed 's/^/| /' conftest.$ac_ext >&5 |
6257 | ||
6bae0ccf | 6258 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 6259 | fi |
6bae0ccf DL |
6260 | rm -f conftest.$ac_objext conftest.$ac_ext |
6261 | fi | |
6262 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8799b3e4 | 6263 | fi |
6bae0ccf DL |
6264 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
6265 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 | |
6266 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
6267 | ||
6268 | cat >>confdefs.h <<\_ACEOF | |
6269 | #define HAVE_TM_GMTOFF 1 | |
6270 | _ACEOF | |
6271 | ||
6272 | fi | |
6273 | ||
8799b3e4 | 6274 | |
8799b3e4 | 6275 | |
c0d27fcc | 6276 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
98418dba CW |
6277 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
6278 | if test "$ac_cv_prog_cc_stdc" != no; then | |
c0d27fcc | 6279 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
6280 | echo "${ECHO_T}yes" >&6 |
6281 | ||
c0d27fcc | 6282 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6283 | #define PROTOTYPES 1 |
c0d27fcc MR |
6284 | _ACEOF |
6285 | ||
6286 | ||
6287 | cat >>confdefs.h <<\_ACEOF | |
6288 | #define __PROTOTYPES 1 | |
6289 | _ACEOF | |
98418dba CW |
6290 | |
6291 | else | |
c0d27fcc | 6292 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
6293 | echo "${ECHO_T}no" >&6 |
6294 | fi | |
6295 | ||
c0d27fcc | 6296 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
98418dba CW |
6297 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
6298 | if test "${ac_cv_c_volatile+set}" = set; then | |
6299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6300 | else | |
6301 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 6302 | #line $LINENO "configure" |
19650fd6 AS |
6303 | /* confdefs.h. */ |
6304 | _ACEOF | |
6305 | cat confdefs.h >>conftest.$ac_ext | |
6306 | cat >>conftest.$ac_ext <<_ACEOF | |
6307 | /* end confdefs.h. */ | |
98418dba | 6308 | |
98418dba CW |
6309 | int |
6310 | main () | |
6311 | { | |
6312 | ||
6313 | volatile int x; | |
6314 | int * volatile y; | |
6315 | ; | |
6316 | return 0; | |
6317 | } | |
6318 | _ACEOF | |
6319 | rm -f conftest.$ac_objext | |
c0d27fcc | 6320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
6321 | (eval $ac_compile) 2>&5 |
6322 | ac_status=$? | |
c0d27fcc | 6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6324 | (exit $ac_status); } && |
793fa0d7 | 6325 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 6326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6327 | (eval $ac_try) 2>&5 |
6328 | ac_status=$? | |
c0d27fcc | 6329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6330 | (exit $ac_status); }; }; then |
6331 | ac_cv_c_volatile=yes | |
6332 | else | |
6333 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6334 | sed 's/^/| /' conftest.$ac_ext >&5 |
6335 | ||
98418dba CW |
6336 | ac_cv_c_volatile=no |
6337 | fi | |
6338 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6339 | fi | |
c0d27fcc | 6340 | echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
98418dba CW |
6341 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
6342 | if test $ac_cv_c_volatile = no; then | |
6343 | ||
c0d27fcc | 6344 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6345 | #define volatile |
c0d27fcc | 6346 | _ACEOF |
98418dba CW |
6347 | |
6348 | fi | |
6349 | ||
c0d27fcc | 6350 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
98418dba CW |
6351 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
6352 | if test "${ac_cv_c_const+set}" = set; then | |
6353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6354 | else | |
6355 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 6356 | #line $LINENO "configure" |
19650fd6 AS |
6357 | /* confdefs.h. */ |
6358 | _ACEOF | |
6359 | cat confdefs.h >>conftest.$ac_ext | |
6360 | cat >>conftest.$ac_ext <<_ACEOF | |
6361 | /* end confdefs.h. */ | |
98418dba | 6362 | |
98418dba CW |
6363 | int |
6364 | main () | |
6365 | { | |
6366 | /* FIXME: Include the comments suggested by Paul. */ | |
6367 | #ifndef __cplusplus | |
6368 | /* Ultrix mips cc rejects this. */ | |
6369 | typedef int charset[2]; | |
6370 | const charset x; | |
6371 | /* SunOS 4.1.1 cc rejects this. */ | |
6372 | char const *const *ccp; | |
6373 | char **p; | |
6374 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6375 | struct point {int x, y;}; | |
6376 | static struct point const zero = {0,0}; | |
6377 | /* AIX XL C 1.02.0.0 rejects this. | |
6378 | It does not let you subtract one const X* pointer from another in | |
6379 | an arm of an if-expression whose if-part is not a constant | |
6380 | expression */ | |
6381 | const char *g = "string"; | |
6382 | ccp = &g + (g ? g-g : 0); | |
6383 | /* HPUX 7.0 cc rejects these. */ | |
6384 | ++ccp; | |
6385 | p = (char**) ccp; | |
6386 | ccp = (char const *const *) p; | |
6387 | { /* SCO 3.2v4 cc rejects this. */ | |
6388 | char *t; | |
6389 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6390 | ||
6391 | *t++ = 0; | |
6392 | } | |
6393 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6394 | int x[] = {25, 17}; | |
6395 | const int *foo = &x[0]; | |
6396 | ++foo; | |
6397 | } | |
6398 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6399 | typedef const int *iptr; | |
6400 | iptr p = 0; | |
6401 | ++p; | |
6402 | } | |
6403 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6404 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6405 | struct s { int j; const int *ap[3]; }; | |
6406 | struct s *b; b->j = 5; | |
6407 | } | |
6408 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6409 | const int foo = 10; | |
6410 | } | |
6411 | #endif | |
6412 | ||
6413 | ; | |
6414 | return 0; | |
6415 | } | |
6416 | _ACEOF | |
6417 | rm -f conftest.$ac_objext | |
c0d27fcc | 6418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
6419 | (eval $ac_compile) 2>&5 |
6420 | ac_status=$? | |
c0d27fcc | 6421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6422 | (exit $ac_status); } && |
793fa0d7 | 6423 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 6424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6425 | (eval $ac_try) 2>&5 |
6426 | ac_status=$? | |
c0d27fcc | 6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6428 | (exit $ac_status); }; }; then |
6429 | ac_cv_c_const=yes | |
6430 | else | |
6431 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6432 | sed 's/^/| /' conftest.$ac_ext >&5 |
6433 | ||
98418dba CW |
6434 | ac_cv_c_const=no |
6435 | fi | |
6436 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6437 | fi | |
c0d27fcc | 6438 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
98418dba CW |
6439 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
6440 | if test $ac_cv_c_const = no; then | |
6441 | ||
c0d27fcc | 6442 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6443 | #define const |
c0d27fcc | 6444 | _ACEOF |
98418dba CW |
6445 | |
6446 | fi | |
6447 | ||
c0d27fcc | 6448 | echo "$as_me:$LINENO: checking for void * support" >&5 |
98418dba CW |
6449 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
6450 | if test "${emacs_cv_void_star+set}" = set; then | |
6451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6452 | else | |
6453 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 6454 | #line $LINENO "configure" |
19650fd6 AS |
6455 | /* confdefs.h. */ |
6456 | _ACEOF | |
6457 | cat confdefs.h >>conftest.$ac_ext | |
6458 | cat >>conftest.$ac_ext <<_ACEOF | |
6459 | /* end confdefs.h. */ | |
98418dba | 6460 | |
98418dba CW |
6461 | int |
6462 | main () | |
6463 | { | |
6464 | void * foo; | |
6465 | ; | |
6466 | return 0; | |
6467 | } | |
6468 | _ACEOF | |
6469 | rm -f conftest.$ac_objext | |
c0d27fcc | 6470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
6471 | (eval $ac_compile) 2>&5 |
6472 | ac_status=$? | |
c0d27fcc | 6473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6474 | (exit $ac_status); } && |
793fa0d7 | 6475 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 6476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6477 | (eval $ac_try) 2>&5 |
6478 | ac_status=$? | |
c0d27fcc | 6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6480 | (exit $ac_status); }; }; then |
6481 | emacs_cv_void_star=yes | |
6482 | else | |
6483 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6484 | sed 's/^/| /' conftest.$ac_ext >&5 |
6485 | ||
98418dba CW |
6486 | emacs_cv_void_star=no |
6487 | fi | |
6488 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6489 | fi | |
c0d27fcc | 6490 | echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
98418dba CW |
6491 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
6492 | if test $emacs_cv_void_star = yes; then | |
c0d27fcc | 6493 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6494 | #define POINTER_TYPE void |
c0d27fcc | 6495 | _ACEOF |
98418dba CW |
6496 | |
6497 | else | |
c0d27fcc | 6498 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6499 | #define POINTER_TYPE char |
c0d27fcc | 6500 | _ACEOF |
98418dba CW |
6501 | |
6502 | fi | |
6503 | ||
c0d27fcc | 6504 | |
cd958eb3 | 6505 | |
19650fd6 AS |
6506 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6507 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
793fa0d7 | 6508 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
98418dba CW |
6509 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
6510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6511 | else | |
c0d27fcc | 6512 | cat >conftest.make <<\_ACEOF |
98418dba | 6513 | all: |
19650fd6 | 6514 | @echo 'ac_maketemp="$(MAKE)"' |
c0d27fcc | 6515 | _ACEOF |
98418dba CW |
6516 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6517 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
6518 | if test -n "$ac_maketemp"; then | |
6519 | eval ac_cv_prog_make_${ac_make}_set=yes | |
6520 | else | |
6521 | eval ac_cv_prog_make_${ac_make}_set=no | |
6522 | fi | |
6523 | rm -f conftest.make | |
6524 | fi | |
6525 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
c0d27fcc | 6526 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
6527 | echo "${ECHO_T}yes" >&6 |
6528 | SET_MAKE= | |
6529 | else | |
c0d27fcc | 6530 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
6531 | echo "${ECHO_T}no" >&6 |
6532 | SET_MAKE="MAKE=${MAKE-make}" | |
6533 | fi | |
6534 | ||
c0d27fcc MR |
6535 | |
6536 | echo "$as_me:$LINENO: checking for long file names" >&5 | |
98418dba CW |
6537 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
6538 | if test "${ac_cv_sys_long_file_names+set}" = set; then | |
6539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6540 | else | |
6541 | ac_cv_sys_long_file_names=yes | |
6542 | # Test for long file names in all the places we know might matter: | |
6543 | # . the current directory, where building will happen | |
6544 | # $prefix/lib where we will be installing things | |
6545 | # $exec_prefix/lib likewise | |
6546 | # eval it to expand exec_prefix. | |
6547 | # $TMPDIR if set, where it might want to write temporary files | |
6548 | # if $TMPDIR is not set: | |
6549 | # /tmp where it might want to write temporary files | |
6550 | # /var/tmp likewise | |
6551 | # /usr/tmp likewise | |
6552 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
6553 | ac_tmpdirs=$TMPDIR | |
6554 | else | |
6555 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
6556 | fi | |
6557 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
6558 | test -d $ac_dir || continue | |
6559 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
6560 | ac_xdir=$ac_dir/cf$$ | |
6561 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
6562 | ac_tf1=$ac_xdir/conftest9012345 | |
6563 | ac_tf2=$ac_xdir/conftest9012346 | |
6564 | (echo 1 >$ac_tf1) 2>/dev/null | |
6565 | (echo 2 >$ac_tf2) 2>/dev/null | |
6566 | ac_val=`cat $ac_tf1 2>/dev/null` | |
6567 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
6568 | ac_cv_sys_long_file_names=no | |
6569 | rm -rf $ac_xdir 2>/dev/null | |
6570 | break | |
6571 | fi | |
6572 | rm -rf $ac_xdir 2>/dev/null | |
6573 | done | |
6574 | fi | |
c0d27fcc | 6575 | echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
98418dba CW |
6576 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
6577 | if test $ac_cv_sys_long_file_names = yes; then | |
6578 | ||
c0d27fcc | 6579 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6580 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 6581 | _ACEOF |
98418dba CW |
6582 | |
6583 | fi | |
6584 | ||
c0d27fcc | 6585 | |
98418dba CW |
6586 | #### Choose a window system. |
6587 | ||
c0d27fcc | 6588 | echo "$as_me:$LINENO: checking for X" >&5 |
98418dba CW |
6589 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
6590 | ||
c0d27fcc | 6591 | |
98418dba CW |
6592 | # Check whether --with-x or --without-x was given. |
6593 | if test "${with_x+set}" = set; then | |
6594 | withval="$with_x" | |
6595 | ||
6596 | fi; | |
6597 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
6598 | if test "x$with_x" = xno; then | |
6599 | # The user explicitly disabled X. | |
6600 | have_x=disabled | |
6601 | else | |
6602 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
6603 | # Both variables are already set. | |
6604 | have_x=yes | |
6605 | else | |
6606 | if test "${ac_cv_have_x+set}" = set; then | |
6607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6608 | else | |
6609 | # One or both of the vars are not set, and there is no cached value. | |
6610 | ac_x_includes=no ac_x_libraries=no | |
6611 | rm -fr conftest.dir | |
6612 | if mkdir conftest.dir; then | |
6613 | cd conftest.dir | |
6614 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
c0d27fcc | 6615 | cat >Imakefile <<'_ACEOF' |
98418dba CW |
6616 | acfindx: |
6617 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
c0d27fcc | 6618 | _ACEOF |
98418dba CW |
6619 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
6620 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6621 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
6622 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
6623 | for ac_extension in a so sl; do | |
6624 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
793fa0d7 DL |
6625 | test -f $ac_im_libdir/libX11.$ac_extension; then |
6626 | ac_im_usrlibdir=$ac_im_libdir; break | |
98418dba CW |
6627 | fi |
6628 | done | |
6629 | # Screen out bogus values from the imake configuration. They are | |
6630 | # bogus both because they are the default anyway, and because | |
6631 | # using them would break gcc on systems where it needs fixed includes. | |
6632 | case $ac_im_incroot in | |
6633 | /usr/include) ;; | |
6634 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
6635 | esac | |
6636 | case $ac_im_usrlibdir in | |
6637 | /usr/lib | /lib) ;; | |
6638 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
6639 | esac | |
6640 | fi | |
6641 | cd .. | |
6642 | rm -fr conftest.dir | |
6643 | fi | |
6644 | ||
6645 | # Standard set of common directories for X headers. | |
6646 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
6647 | ac_x_header_dirs=' | |
6648 | /usr/X11/include | |
6649 | /usr/X11R6/include | |
6650 | /usr/X11R5/include | |
6651 | /usr/X11R4/include | |
6652 | ||
6653 | /usr/include/X11 | |
6654 | /usr/include/X11R6 | |
6655 | /usr/include/X11R5 | |
6656 | /usr/include/X11R4 | |
6657 | ||
6658 | /usr/local/X11/include | |
6659 | /usr/local/X11R6/include | |
6660 | /usr/local/X11R5/include | |
6661 | /usr/local/X11R4/include | |
6662 | ||
6663 | /usr/local/include/X11 | |
6664 | /usr/local/include/X11R6 | |
6665 | /usr/local/include/X11R5 | |
6666 | /usr/local/include/X11R4 | |
6667 | ||
6668 | /usr/X386/include | |
6669 | /usr/x386/include | |
6670 | /usr/XFree86/include/X11 | |
6671 | ||
6672 | /usr/include | |
6673 | /usr/local/include | |
6674 | /usr/unsupported/include | |
6675 | /usr/athena/include | |
6676 | /usr/local/x11r5/include | |
6677 | /usr/lpp/Xamples/include | |
6678 | ||
6679 | /usr/openwin/include | |
6680 | /usr/openwin/share/include' | |
6681 | ||
6682 | if test "$ac_x_includes" = no; then | |
6683 | # Guess where to find include files, by looking for Intrinsic.h. | |
6684 | # First, try using that file with no special directory specified. | |
6685 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 6686 | #line $LINENO "configure" |
19650fd6 AS |
6687 | /* confdefs.h. */ |
6688 | _ACEOF | |
6689 | cat confdefs.h >>conftest.$ac_ext | |
6690 | cat >>conftest.$ac_ext <<_ACEOF | |
6691 | /* end confdefs.h. */ | |
98418dba CW |
6692 | #include <X11/Intrinsic.h> |
6693 | _ACEOF | |
c0d27fcc | 6694 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
6695 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6696 | ac_status=$? | |
6bae0ccf | 6697 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6698 | rm -f conftest.er1 |
6699 | cat conftest.err >&5 | |
c0d27fcc | 6700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6701 | (exit $ac_status); } >/dev/null; then |
6702 | if test -s conftest.err; then | |
6703 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6704 | else | |
6705 | ac_cpp_err= | |
6706 | fi | |
6707 | else | |
6708 | ac_cpp_err=yes | |
6709 | fi | |
6710 | if test -z "$ac_cpp_err"; then | |
6711 | # We can compile using X headers with no special include directory. | |
6712 | ac_x_includes= | |
6713 | else | |
6714 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6715 | sed 's/^/| /' conftest.$ac_ext >&5 |
6716 | ||
98418dba CW |
6717 | for ac_dir in $ac_x_header_dirs; do |
6718 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
6719 | ac_x_includes=$ac_dir | |
6720 | break | |
6721 | fi | |
6722 | done | |
6723 | fi | |
6724 | rm -f conftest.err conftest.$ac_ext | |
6725 | fi # $ac_x_includes = no | |
6726 | ||
6727 | if test "$ac_x_libraries" = no; then | |
6728 | # Check for the libraries. | |
6729 | # See if we find them without any special options. | |
6730 | # Don't add to $LIBS permanently. | |
6731 | ac_save_LIBS=$LIBS | |
6732 | LIBS="-lXt $LIBS" | |
6733 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 6734 | #line $LINENO "configure" |
19650fd6 AS |
6735 | /* confdefs.h. */ |
6736 | _ACEOF | |
6737 | cat confdefs.h >>conftest.$ac_ext | |
6738 | cat >>conftest.$ac_ext <<_ACEOF | |
6739 | /* end confdefs.h. */ | |
98418dba | 6740 | #include <X11/Intrinsic.h> |
98418dba CW |
6741 | int |
6742 | main () | |
6743 | { | |
6744 | XtMalloc (0) | |
6745 | ; | |
6746 | return 0; | |
6747 | } | |
6748 | _ACEOF | |
6749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
6751 | (eval $ac_link) 2>&5 |
6752 | ac_status=$? | |
c0d27fcc | 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6754 | (exit $ac_status); } && |
793fa0d7 | 6755 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 6756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6757 | (eval $ac_try) 2>&5 |
6758 | ac_status=$? | |
c0d27fcc | 6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6760 | (exit $ac_status); }; }; then |
6761 | LIBS=$ac_save_LIBS | |
6762 | # We can link X programs with no special library path. | |
6763 | ac_x_libraries= | |
6764 | else | |
6765 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6766 | sed 's/^/| /' conftest.$ac_ext >&5 |
6767 | ||
98418dba CW |
6768 | LIBS=$ac_save_LIBS |
6769 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
6770 | do | |
6771 | # Don't even attempt the hair of trying to link an X program! | |
6772 | for ac_extension in a so sl; do | |
6773 | if test -r $ac_dir/libXt.$ac_extension; then | |
6774 | ac_x_libraries=$ac_dir | |
6775 | break 2 | |
6776 | fi | |
6777 | done | |
6778 | done | |
6779 | fi | |
6780 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6781 | fi # $ac_x_libraries = no | |
6782 | ||
6783 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
6784 | # Didn't find X anywhere. Cache the known absence of X. | |
6785 | ac_cv_have_x="have_x=no" | |
6786 | else | |
6787 | # Record where we found X for the cache. | |
6788 | ac_cv_have_x="have_x=yes \ | |
793fa0d7 | 6789 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
98418dba CW |
6790 | fi |
6791 | fi | |
6792 | ||
6793 | fi | |
6794 | eval "$ac_cv_have_x" | |
6795 | fi # $with_x != no | |
6796 | ||
6797 | if test "$have_x" != yes; then | |
c0d27fcc | 6798 | echo "$as_me:$LINENO: result: $have_x" >&5 |
98418dba CW |
6799 | echo "${ECHO_T}$have_x" >&6 |
6800 | no_x=yes | |
6801 | else | |
6802 | # If each of the values was on the command line, it overrides each guess. | |
6803 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
6804 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
6805 | # Update the cache value to reflect the command line values. | |
6806 | ac_cv_have_x="have_x=yes \ | |
6807 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
c0d27fcc | 6808 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
98418dba CW |
6809 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
6810 | fi | |
6811 | ||
6812 | if test "$no_x" = yes; then | |
6813 | window_system=none | |
6814 | else | |
6815 | window_system=x11 | |
6816 | fi | |
6817 | ||
6818 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6819 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
6820 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
6821 | x_default_search_path="" | |
6822 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
6823 | x_search_path="\ | |
6824 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
6825 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
6826 | ${x_library}/X11/%T/%N%C%S:\ | |
6827 | ${x_library}/X11/%L/%T/%N%S:\ | |
6828 | ${x_library}/X11/%l/%T/%N%S:\ | |
6829 | ${x_library}/X11/%T/%N%S" | |
6830 | if test x"${x_default_search_path}" = x; then | |
6831 | x_default_search_path=${x_search_path} | |
6832 | else | |
6833 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
6834 | fi | |
6835 | done | |
6836 | fi | |
6837 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
6838 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
6839 | fi | |
6840 | ||
6841 | if test x"${x_includes}" = x; then | |
6842 | bitmapdir=/usr/include/X11/bitmaps | |
6843 | else | |
6844 | # accumulate include directories that have X11 bitmap subdirectories | |
6845 | bmd_acc="dummyval" | |
6846 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
6847 | if test -d "${bmd}/X11/bitmaps"; then | |
6848 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
6849 | fi | |
6850 | if test -d "${bmd}/bitmaps"; then | |
6851 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
6852 | fi | |
6853 | done | |
6854 | if test ${bmd_acc} != "dummyval"; then | |
6855 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
6856 | fi | |
6857 | fi | |
6858 | ||
6859 | case "${window_system}" in | |
6860 | x11 ) | |
6861 | HAVE_X_WINDOWS=yes | |
6862 | HAVE_X11=yes | |
6863 | case "${with_x_toolkit}" in | |
6864 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
6865 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
488dd4c4 JD |
6866 | gtk ) with_gtk=yes |
6867 | USE_X_TOOLKIT=none ;; | |
98418dba CW |
6868 | no ) USE_X_TOOLKIT=none ;; |
6869 | * ) USE_X_TOOLKIT=maybe ;; | |
6870 | esac | |
6871 | ;; | |
6872 | none ) | |
6873 | HAVE_X_WINDOWS=no | |
6874 | HAVE_X11=no | |
6875 | USE_X_TOOLKIT=none | |
6876 | ;; | |
6877 | esac | |
6878 | ||
6879 | ### If we're using X11, we should use the X menu package. | |
6880 | HAVE_MENUS=no | |
6881 | case ${HAVE_X11} in | |
6882 | yes ) HAVE_MENUS=yes ;; | |
6883 | esac | |
6884 | ||
6885 | if test "${opsys}" = "hpux9"; then | |
6886 | case "${x_libraries}" in | |
6887 | *X11R4* ) | |
6888 | opsysfile="s/hpux9-x11r4.h" | |
6889 | ;; | |
6890 | esac | |
6891 | fi | |
6892 | ||
6893 | if test "${opsys}" = "hpux9shr"; then | |
6894 | case "${x_libraries}" in | |
6895 | *X11R4* ) | |
6896 | opsysfile="s/hpux9shxr4.h" | |
6897 | ;; | |
6898 | esac | |
6899 | fi | |
6900 | ||
6901 | ### Compute the unexec source name from the object name. | |
6902 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
6903 | ||
6904 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
6905 | # Assume not, until told otherwise. | |
6906 | GNU_MALLOC=yes | |
6907 | doug_lea_malloc=yes | |
c0d27fcc | 6908 | echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
98418dba CW |
6909 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
6910 | if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
6911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6912 | else | |
6913 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 6914 | #line $LINENO "configure" |
19650fd6 AS |
6915 | /* confdefs.h. */ |
6916 | _ACEOF | |
6917 | cat confdefs.h >>conftest.$ac_ext | |
6918 | cat >>conftest.$ac_ext <<_ACEOF | |
6919 | /* end confdefs.h. */ | |
98418dba | 6920 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
6921 | which can conflict with char malloc_get_state (); below. |
6922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6923 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
6924 | #ifdef __STDC__ |
6925 | # include <limits.h> | |
6926 | #else | |
6927 | # include <assert.h> | |
6928 | #endif | |
98418dba CW |
6929 | /* Override any gcc2 internal prototype to avoid an error. */ |
6930 | #ifdef __cplusplus | |
6931 | extern "C" | |
19650fd6 | 6932 | { |
98418dba CW |
6933 | #endif |
6934 | /* We use char because int might match the return type of a gcc2 | |
6935 | builtin and then its argument prototype would still apply. */ | |
6936 | char malloc_get_state (); | |
98418dba CW |
6937 | /* The GNU C library defines this for functions which it implements |
6938 | to always fail with ENOSYS. Some functions are actually named | |
6939 | something starting with __ and the normal name is an alias. */ | |
6940 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
6941 | choke me | |
6942 | #else | |
19650fd6 AS |
6943 | char (*f) () = malloc_get_state; |
6944 | #endif | |
6945 | #ifdef __cplusplus | |
6946 | } | |
98418dba CW |
6947 | #endif |
6948 | ||
19650fd6 AS |
6949 | int |
6950 | main () | |
6951 | { | |
6952 | return f != malloc_get_state; | |
98418dba CW |
6953 | ; |
6954 | return 0; | |
6955 | } | |
6956 | _ACEOF | |
6957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
6959 | (eval $ac_link) 2>&5 |
6960 | ac_status=$? | |
c0d27fcc | 6961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6962 | (exit $ac_status); } && |
793fa0d7 | 6963 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 6964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6965 | (eval $ac_try) 2>&5 |
6966 | ac_status=$? | |
c0d27fcc | 6967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6968 | (exit $ac_status); }; }; then |
6969 | ac_cv_func_malloc_get_state=yes | |
6970 | else | |
6971 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6972 | sed 's/^/| /' conftest.$ac_ext >&5 |
6973 | ||
98418dba CW |
6974 | ac_cv_func_malloc_get_state=no |
6975 | fi | |
6976 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6977 | fi | |
c0d27fcc | 6978 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
98418dba CW |
6979 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
6980 | if test $ac_cv_func_malloc_get_state = yes; then | |
6981 | : | |
6982 | else | |
6983 | doug_lea_malloc=no | |
6984 | fi | |
6985 | ||
c0d27fcc | 6986 | echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
98418dba CW |
6987 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
6988 | if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
6989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6990 | else | |
6991 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 6992 | #line $LINENO "configure" |
19650fd6 AS |
6993 | /* confdefs.h. */ |
6994 | _ACEOF | |
6995 | cat confdefs.h >>conftest.$ac_ext | |
6996 | cat >>conftest.$ac_ext <<_ACEOF | |
6997 | /* end confdefs.h. */ | |
98418dba | 6998 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
6999 | which can conflict with char malloc_set_state (); below. |
7000 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7001 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
7002 | #ifdef __STDC__ |
7003 | # include <limits.h> | |
7004 | #else | |
7005 | # include <assert.h> | |
7006 | #endif | |
98418dba CW |
7007 | /* Override any gcc2 internal prototype to avoid an error. */ |
7008 | #ifdef __cplusplus | |
7009 | extern "C" | |
19650fd6 | 7010 | { |
98418dba CW |
7011 | #endif |
7012 | /* We use char because int might match the return type of a gcc2 | |
7013 | builtin and then its argument prototype would still apply. */ | |
7014 | char malloc_set_state (); | |
98418dba CW |
7015 | /* The GNU C library defines this for functions which it implements |
7016 | to always fail with ENOSYS. Some functions are actually named | |
7017 | something starting with __ and the normal name is an alias. */ | |
7018 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
7019 | choke me | |
7020 | #else | |
19650fd6 AS |
7021 | char (*f) () = malloc_set_state; |
7022 | #endif | |
7023 | #ifdef __cplusplus | |
7024 | } | |
98418dba CW |
7025 | #endif |
7026 | ||
19650fd6 AS |
7027 | int |
7028 | main () | |
7029 | { | |
7030 | return f != malloc_set_state; | |
98418dba CW |
7031 | ; |
7032 | return 0; | |
7033 | } | |
7034 | _ACEOF | |
7035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7037 | (eval $ac_link) 2>&5 |
7038 | ac_status=$? | |
c0d27fcc | 7039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7040 | (exit $ac_status); } && |
793fa0d7 | 7041 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 7042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7043 | (eval $ac_try) 2>&5 |
7044 | ac_status=$? | |
c0d27fcc | 7045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7046 | (exit $ac_status); }; }; then |
7047 | ac_cv_func_malloc_set_state=yes | |
7048 | else | |
7049 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7050 | sed 's/^/| /' conftest.$ac_ext >&5 |
7051 | ||
98418dba CW |
7052 | ac_cv_func_malloc_set_state=no |
7053 | fi | |
7054 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7055 | fi | |
c0d27fcc | 7056 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
98418dba CW |
7057 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
7058 | if test $ac_cv_func_malloc_set_state = yes; then | |
7059 | : | |
7060 | else | |
7061 | doug_lea_malloc=no | |
7062 | fi | |
7063 | ||
c0d27fcc | 7064 | echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
98418dba CW |
7065 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
7066 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
7067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7068 | else | |
7069 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7070 | #line $LINENO "configure" |
19650fd6 AS |
7071 | /* confdefs.h. */ |
7072 | _ACEOF | |
7073 | cat confdefs.h >>conftest.$ac_ext | |
7074 | cat >>conftest.$ac_ext <<_ACEOF | |
7075 | /* end confdefs.h. */ | |
98418dba | 7076 | extern void (* __after_morecore_hook)(); |
98418dba CW |
7077 | int |
7078 | main () | |
7079 | { | |
7080 | __after_morecore_hook = 0 | |
7081 | ; | |
7082 | return 0; | |
7083 | } | |
7084 | _ACEOF | |
7085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7087 | (eval $ac_link) 2>&5 |
7088 | ac_status=$? | |
c0d27fcc | 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7090 | (exit $ac_status); } && |
793fa0d7 | 7091 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7093 | (eval $ac_try) 2>&5 |
7094 | ac_status=$? | |
c0d27fcc | 7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7096 | (exit $ac_status); }; }; then |
7097 | emacs_cv_var___after_morecore_hook=yes | |
7098 | else | |
7099 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7100 | sed 's/^/| /' conftest.$ac_ext >&5 |
7101 | ||
98418dba CW |
7102 | emacs_cv_var___after_morecore_hook=no |
7103 | fi | |
7104 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7105 | fi | |
c0d27fcc | 7106 | echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
98418dba CW |
7107 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
7108 | if test $emacs_cv_var___after_morecore_hook = no; then | |
7109 | doug_lea_malloc=no | |
7110 | fi | |
7111 | if test "${system_malloc}" = "yes"; then | |
7112 | GNU_MALLOC=no | |
7113 | GNU_MALLOC_reason=" | |
7114 | (The GNU allocators don't work with this system configuration.)" | |
7115 | fi | |
7116 | if test "$doug_lea_malloc" = "yes" ; then | |
7117 | if test "$GNU_MALLOC" = yes ; then | |
7118 | GNU_MALLOC_reason=" | |
7119 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
7120 | fi | |
b936fae4 | 7121 | |
c0d27fcc | 7122 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7123 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 7124 | _ACEOF |
98418dba CW |
7125 | |
7126 | fi | |
7127 | ||
7128 | if test x"${REL_ALLOC}" = x; then | |
7129 | REL_ALLOC=${GNU_MALLOC} | |
7130 | fi | |
7131 | ||
7132 | ||
c0d27fcc MR |
7133 | |
7134 | ||
7135 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
7136 | do |
7137 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
7138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7139 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
7140 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7141 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
7143 | fi |
7144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7145 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 7146 | else |
c0d27fcc MR |
7147 | # Is the header compilable? |
7148 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7149 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7150 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7151 | #line $LINENO "configure" |
19650fd6 AS |
7152 | /* confdefs.h. */ |
7153 | _ACEOF | |
7154 | cat confdefs.h >>conftest.$ac_ext | |
7155 | cat >>conftest.$ac_ext <<_ACEOF | |
7156 | /* end confdefs.h. */ | |
98418dba CW |
7157 | $ac_includes_default |
7158 | #include <$ac_header> | |
7159 | _ACEOF | |
7160 | rm -f conftest.$ac_objext | |
c0d27fcc | 7161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
7162 | (eval $ac_compile) 2>&5 |
7163 | ac_status=$? | |
c0d27fcc | 7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7165 | (exit $ac_status); } && |
793fa0d7 | 7166 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 7167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7168 | (eval $ac_try) 2>&5 |
7169 | ac_status=$? | |
c0d27fcc | 7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7171 | (exit $ac_status); }; }; then |
c0d27fcc | 7172 | ac_header_compiler=yes |
98418dba CW |
7173 | else |
7174 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7175 | sed 's/^/| /' conftest.$ac_ext >&5 |
7176 | ||
c0d27fcc | 7177 | ac_header_compiler=no |
98418dba CW |
7178 | fi |
7179 | rm -f conftest.$ac_objext conftest.$ac_ext | |
c0d27fcc MR |
7180 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7181 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 7182 | |
c0d27fcc MR |
7183 | # Is the header present? |
7184 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7185 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7186 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7187 | #line $LINENO "configure" |
19650fd6 AS |
7188 | /* confdefs.h. */ |
7189 | _ACEOF | |
7190 | cat confdefs.h >>conftest.$ac_ext | |
7191 | cat >>conftest.$ac_ext <<_ACEOF | |
7192 | /* end confdefs.h. */ | |
98418dba CW |
7193 | #include <$ac_header> |
7194 | _ACEOF | |
c0d27fcc | 7195 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7196 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7197 | ac_status=$? | |
6bae0ccf | 7198 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
7199 | rm -f conftest.er1 |
7200 | cat conftest.err >&5 | |
c0d27fcc | 7201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7202 | (exit $ac_status); } >/dev/null; then |
7203 | if test -s conftest.err; then | |
7204 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7205 | else | |
7206 | ac_cpp_err= | |
7207 | fi | |
7208 | else | |
7209 | ac_cpp_err=yes | |
7210 | fi | |
7211 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 7212 | ac_header_preproc=yes |
98418dba CW |
7213 | else |
7214 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7215 | sed 's/^/| /' conftest.$ac_ext >&5 |
7216 | ||
c0d27fcc | 7217 | ac_header_preproc=no |
98418dba CW |
7218 | fi |
7219 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
7220 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7221 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7222 | ||
7223 | # So? What about this header? | |
7224 | case $ac_header_compiler:$ac_header_preproc in | |
7225 | yes:no ) | |
7226 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7227 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
7228 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7229 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7230 | ( | |
7231 | cat <<\_ASBOX | |
7232 | ## ------------------------------------ ## | |
7233 | ## Report this to bug-autoconf@gnu.org. ## | |
7234 | ## ------------------------------------ ## | |
7235 | _ASBOX | |
7236 | ) | | |
7237 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 7238 | ;; |
c0d27fcc MR |
7239 | no:yes ) |
7240 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7241 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
7242 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7243 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 7244 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 7245 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
7246 | ( |
7247 | cat <<\_ASBOX | |
793fa0d7 DL |
7248 | ## ------------------------------------ ## |
7249 | ## Report this to bug-autoconf@gnu.org. ## | |
7250 | ## ------------------------------------ ## | |
19650fd6 AS |
7251 | _ASBOX |
7252 | ) | | |
7253 | sed "s/^/$as_me: WARNING: /" >&2 | |
7254 | ;; | |
c0d27fcc MR |
7255 | esac |
7256 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7257 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7258 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7260 | else | |
793fa0d7 | 7261 | eval "$as_ac_Header=$ac_header_preproc" |
98418dba | 7262 | fi |
c0d27fcc | 7263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 7264 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
7265 | |
7266 | fi | |
98418dba | 7267 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 7268 | cat >>confdefs.h <<_ACEOF |
98418dba | 7269 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 7270 | _ACEOF |
98418dba CW |
7271 | |
7272 | fi | |
c0d27fcc | 7273 | |
98418dba CW |
7274 | done |
7275 | ||
c0d27fcc | 7276 | |
98418dba CW |
7277 | for ac_func in getpagesize |
7278 | do | |
7279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 7280 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
7281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7282 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7284 | else | |
7285 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7286 | #line $LINENO "configure" |
19650fd6 AS |
7287 | /* confdefs.h. */ |
7288 | _ACEOF | |
7289 | cat confdefs.h >>conftest.$ac_ext | |
7290 | cat >>conftest.$ac_ext <<_ACEOF | |
7291 | /* end confdefs.h. */ | |
98418dba | 7292 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
7293 | which can conflict with char $ac_func (); below. |
7294 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7295 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
7296 | #ifdef __STDC__ |
7297 | # include <limits.h> | |
7298 | #else | |
7299 | # include <assert.h> | |
7300 | #endif | |
98418dba CW |
7301 | /* Override any gcc2 internal prototype to avoid an error. */ |
7302 | #ifdef __cplusplus | |
7303 | extern "C" | |
19650fd6 | 7304 | { |
98418dba CW |
7305 | #endif |
7306 | /* We use char because int might match the return type of a gcc2 | |
7307 | builtin and then its argument prototype would still apply. */ | |
7308 | char $ac_func (); | |
98418dba CW |
7309 | /* The GNU C library defines this for functions which it implements |
7310 | to always fail with ENOSYS. Some functions are actually named | |
7311 | something starting with __ and the normal name is an alias. */ | |
7312 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7313 | choke me | |
7314 | #else | |
19650fd6 AS |
7315 | char (*f) () = $ac_func; |
7316 | #endif | |
7317 | #ifdef __cplusplus | |
7318 | } | |
98418dba CW |
7319 | #endif |
7320 | ||
19650fd6 AS |
7321 | int |
7322 | main () | |
7323 | { | |
7324 | return f != $ac_func; | |
98418dba CW |
7325 | ; |
7326 | return 0; | |
7327 | } | |
7328 | _ACEOF | |
7329 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7331 | (eval $ac_link) 2>&5 |
7332 | ac_status=$? | |
c0d27fcc | 7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7334 | (exit $ac_status); } && |
793fa0d7 | 7335 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 7336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7337 | (eval $ac_try) 2>&5 |
7338 | ac_status=$? | |
c0d27fcc | 7339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7340 | (exit $ac_status); }; }; then |
7341 | eval "$as_ac_var=yes" | |
7342 | else | |
7343 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7344 | sed 's/^/| /' conftest.$ac_ext >&5 |
7345 | ||
98418dba CW |
7346 | eval "$as_ac_var=no" |
7347 | fi | |
7348 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7349 | fi | |
c0d27fcc | 7350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
7351 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7352 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 7353 | cat >>confdefs.h <<_ACEOF |
98418dba | 7354 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 7355 | _ACEOF |
98418dba CW |
7356 | |
7357 | fi | |
7358 | done | |
7359 | ||
c0d27fcc | 7360 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
98418dba CW |
7361 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
7362 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
7363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7364 | else | |
7365 | if test "$cross_compiling" = yes; then | |
7366 | ac_cv_func_mmap_fixed_mapped=no | |
7367 | else | |
7368 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7369 | #line $LINENO "configure" |
19650fd6 AS |
7370 | /* confdefs.h. */ |
7371 | _ACEOF | |
7372 | cat confdefs.h >>conftest.$ac_ext | |
7373 | cat >>conftest.$ac_ext <<_ACEOF | |
7374 | /* end confdefs.h. */ | |
98418dba | 7375 | $ac_includes_default |
c0d27fcc MR |
7376 | /* malloc might have been renamed as rpl_malloc. */ |
7377 | #undef malloc | |
7378 | ||
98418dba CW |
7379 | /* Thanks to Mike Haertel and Jim Avera for this test. |
7380 | Here is a matrix of mmap possibilities: | |
7381 | mmap private not fixed | |
7382 | mmap private fixed at somewhere currently unmapped | |
7383 | mmap private fixed at somewhere already mapped | |
7384 | mmap shared not fixed | |
7385 | mmap shared fixed at somewhere currently unmapped | |
7386 | mmap shared fixed at somewhere already mapped | |
7387 | For private mappings, we should verify that changes cannot be read() | |
7388 | back from the file, nor mmap's back from the file at a different | |
7389 | address. (There have been systems where private was not correctly | |
7390 | implemented like the infamous i386 svr4.0, and systems where the | |
7391 | VM page cache was not coherent with the file system buffer cache | |
7392 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7393 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 7394 | propagated back to all the places they're supposed to be. |
98418dba CW |
7395 | |
7396 | Grep wants private fixed already mapped. | |
7397 | The main things grep needs to know about mmap are: | |
7398 | * does it exist and is it safe to write into the mmap'd area | |
7399 | * how to use it (BSD variants) */ | |
7400 | ||
7401 | #include <fcntl.h> | |
7402 | #include <sys/mman.h> | |
7403 | ||
7404 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
7405 | char *malloc (); | |
7406 | #endif | |
7407 | ||
7408 | /* This mess was copied from the GNU getpagesize.h. */ | |
7409 | #if !HAVE_GETPAGESIZE | |
7410 | /* Assume that all systems that can run configure have sys/param.h. */ | |
7411 | # if !HAVE_SYS_PARAM_H | |
7412 | # define HAVE_SYS_PARAM_H 1 | |
7413 | # endif | |
7414 | ||
7415 | # ifdef _SC_PAGESIZE | |
7416 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7417 | # else /* no _SC_PAGESIZE */ | |
7418 | # if HAVE_SYS_PARAM_H | |
7419 | # include <sys/param.h> | |
7420 | # ifdef EXEC_PAGESIZE | |
7421 | # define getpagesize() EXEC_PAGESIZE | |
7422 | # else /* no EXEC_PAGESIZE */ | |
7423 | # ifdef NBPG | |
7424 | # define getpagesize() NBPG * CLSIZE | |
7425 | # ifndef CLSIZE | |
7426 | # define CLSIZE 1 | |
7427 | # endif /* no CLSIZE */ | |
7428 | # else /* no NBPG */ | |
7429 | # ifdef NBPC | |
7430 | # define getpagesize() NBPC | |
7431 | # else /* no NBPC */ | |
7432 | # ifdef PAGESIZE | |
7433 | # define getpagesize() PAGESIZE | |
7434 | # endif /* PAGESIZE */ | |
7435 | # endif /* no NBPC */ | |
7436 | # endif /* no NBPG */ | |
7437 | # endif /* no EXEC_PAGESIZE */ | |
7438 | # else /* no HAVE_SYS_PARAM_H */ | |
7439 | # define getpagesize() 8192 /* punt totally */ | |
7440 | # endif /* no HAVE_SYS_PARAM_H */ | |
7441 | # endif /* no _SC_PAGESIZE */ | |
7442 | ||
7443 | #endif /* no HAVE_GETPAGESIZE */ | |
7444 | ||
7445 | int | |
7446 | main () | |
7447 | { | |
7448 | char *data, *data2, *data3; | |
7449 | int i, pagesize; | |
7450 | int fd; | |
7451 | ||
7452 | pagesize = getpagesize (); | |
7453 | ||
7454 | /* First, make a file with some known garbage in it. */ | |
7455 | data = (char *) malloc (pagesize); | |
7456 | if (!data) | |
7457 | exit (1); | |
7458 | for (i = 0; i < pagesize; ++i) | |
7459 | *(data + i) = rand (); | |
7460 | umask (0); | |
7461 | fd = creat ("conftest.mmap", 0600); | |
7462 | if (fd < 0) | |
7463 | exit (1); | |
7464 | if (write (fd, data, pagesize) != pagesize) | |
7465 | exit (1); | |
7466 | close (fd); | |
7467 | ||
7468 | /* Next, try to mmap the file at a fixed address which already has | |
7469 | something else allocated at it. If we can, also make sure that | |
7470 | we see the same garbage. */ | |
7471 | fd = open ("conftest.mmap", O_RDWR); | |
7472 | if (fd < 0) | |
7473 | exit (1); | |
7474 | data2 = (char *) malloc (2 * pagesize); | |
7475 | if (!data2) | |
7476 | exit (1); | |
7477 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
7478 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
793fa0d7 | 7479 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
98418dba CW |
7480 | exit (1); |
7481 | for (i = 0; i < pagesize; ++i) | |
7482 | if (*(data + i) != *(data2 + i)) | |
7483 | exit (1); | |
7484 | ||
7485 | /* Finally, make sure that changes to the mapped area do not | |
7486 | percolate back to the file as seen by read(). (This is a bug on | |
7487 | some variants of i386 svr4.0.) */ | |
7488 | for (i = 0; i < pagesize; ++i) | |
7489 | *(data2 + i) = *(data2 + i) + 1; | |
7490 | data3 = (char *) malloc (pagesize); | |
7491 | if (!data3) | |
7492 | exit (1); | |
7493 | if (read (fd, data3, pagesize) != pagesize) | |
7494 | exit (1); | |
7495 | for (i = 0; i < pagesize; ++i) | |
7496 | if (*(data + i) != *(data3 + i)) | |
7497 | exit (1); | |
7498 | close (fd); | |
7499 | exit (0); | |
7500 | } | |
7501 | _ACEOF | |
7502 | rm -f conftest$ac_exeext | |
c0d27fcc | 7503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7504 | (eval $ac_link) 2>&5 |
7505 | ac_status=$? | |
c0d27fcc | 7506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7507 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 7508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7509 | (eval $ac_try) 2>&5 |
7510 | ac_status=$? | |
c0d27fcc | 7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7512 | (exit $ac_status); }; }; then |
7513 | ac_cv_func_mmap_fixed_mapped=yes | |
7514 | else | |
7515 | echo "$as_me: program exited with status $ac_status" >&5 | |
7516 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7517 | sed 's/^/| /' conftest.$ac_ext >&5 |
7518 | ||
c0d27fcc | 7519 | ( exit $ac_status ) |
98418dba CW |
7520 | ac_cv_func_mmap_fixed_mapped=no |
7521 | fi | |
6bae0ccf | 7522 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
7523 | fi |
7524 | fi | |
c0d27fcc | 7525 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
98418dba CW |
7526 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
7527 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
7528 | ||
c0d27fcc | 7529 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7530 | #define HAVE_MMAP 1 |
c0d27fcc | 7531 | _ACEOF |
98418dba CW |
7532 | |
7533 | fi | |
7534 | rm -f conftest.mmap | |
7535 | ||
7536 | if test $use_mmap_for_buffers = yes; then | |
7537 | REL_ALLOC=no | |
7538 | fi | |
7539 | ||
7540 | LIBS="$libsrc_libs $LIBS" | |
7541 | ||
c0d27fcc MR |
7542 | |
7543 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
98418dba CW |
7544 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
7545 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
7546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7547 | else | |
7548 | ac_check_lib_save_LIBS=$LIBS | |
7549 | LIBS="-ldnet $LIBS" | |
7550 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7551 | #line $LINENO "configure" |
19650fd6 AS |
7552 | /* confdefs.h. */ |
7553 | _ACEOF | |
7554 | cat confdefs.h >>conftest.$ac_ext | |
7555 | cat >>conftest.$ac_ext <<_ACEOF | |
7556 | /* end confdefs.h. */ | |
98418dba CW |
7557 | |
7558 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7559 | #ifdef __cplusplus | |
7560 | extern "C" | |
7561 | #endif | |
7562 | /* We use char because int might match the return type of a gcc2 | |
7563 | builtin and then its argument prototype would still apply. */ | |
7564 | char dnet_ntoa (); | |
98418dba CW |
7565 | int |
7566 | main () | |
7567 | { | |
7568 | dnet_ntoa (); | |
7569 | ; | |
7570 | return 0; | |
7571 | } | |
7572 | _ACEOF | |
7573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7575 | (eval $ac_link) 2>&5 |
7576 | ac_status=$? | |
c0d27fcc | 7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7578 | (exit $ac_status); } && |
793fa0d7 | 7579 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 7580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7581 | (eval $ac_try) 2>&5 |
7582 | ac_status=$? | |
c0d27fcc | 7583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7584 | (exit $ac_status); }; }; then |
7585 | ac_cv_lib_dnet_dnet_ntoa=yes | |
7586 | else | |
7587 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7588 | sed 's/^/| /' conftest.$ac_ext >&5 |
7589 | ||
98418dba CW |
7590 | ac_cv_lib_dnet_dnet_ntoa=no |
7591 | fi | |
7592 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7593 | LIBS=$ac_check_lib_save_LIBS | |
7594 | fi | |
c0d27fcc | 7595 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
98418dba CW |
7596 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
7597 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
c0d27fcc | 7598 | cat >>confdefs.h <<_ACEOF |
98418dba | 7599 | #define HAVE_LIBDNET 1 |
c0d27fcc | 7600 | _ACEOF |
98418dba CW |
7601 | |
7602 | LIBS="-ldnet $LIBS" | |
7603 | ||
7604 | fi | |
7605 | ||
c0d27fcc MR |
7606 | |
7607 | echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | |
98418dba CW |
7608 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
7609 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
7610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7611 | else | |
7612 | ac_check_lib_save_LIBS=$LIBS | |
7613 | LIBS="-lXbsd $LIBS" | |
7614 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7615 | #line $LINENO "configure" |
19650fd6 AS |
7616 | /* confdefs.h. */ |
7617 | _ACEOF | |
7618 | cat confdefs.h >>conftest.$ac_ext | |
7619 | cat >>conftest.$ac_ext <<_ACEOF | |
7620 | /* end confdefs.h. */ | |
98418dba | 7621 | |
c0d27fcc | 7622 | |
98418dba CW |
7623 | int |
7624 | main () | |
7625 | { | |
7626 | main (); | |
7627 | ; | |
7628 | return 0; | |
7629 | } | |
7630 | _ACEOF | |
7631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7633 | (eval $ac_link) 2>&5 |
7634 | ac_status=$? | |
c0d27fcc | 7635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7636 | (exit $ac_status); } && |
793fa0d7 | 7637 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 7638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7639 | (eval $ac_try) 2>&5 |
7640 | ac_status=$? | |
c0d27fcc | 7641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7642 | (exit $ac_status); }; }; then |
7643 | ac_cv_lib_Xbsd_main=yes | |
7644 | else | |
7645 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7646 | sed 's/^/| /' conftest.$ac_ext >&5 |
7647 | ||
98418dba CW |
7648 | ac_cv_lib_Xbsd_main=no |
7649 | fi | |
7650 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7651 | LIBS=$ac_check_lib_save_LIBS | |
7652 | fi | |
c0d27fcc | 7653 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
98418dba CW |
7654 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
7655 | if test $ac_cv_lib_Xbsd_main = yes; then | |
7656 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
7657 | fi | |
7658 | ||
c0d27fcc MR |
7659 | |
7660 | ||
7661 | echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
98418dba CW |
7662 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
7663 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
7664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7665 | else | |
7666 | ac_check_lib_save_LIBS=$LIBS | |
7667 | LIBS="-lpthreads $LIBS" | |
7668 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7669 | #line $LINENO "configure" |
19650fd6 AS |
7670 | /* confdefs.h. */ |
7671 | _ACEOF | |
7672 | cat confdefs.h >>conftest.$ac_ext | |
7673 | cat >>conftest.$ac_ext <<_ACEOF | |
7674 | /* end confdefs.h. */ | |
98418dba CW |
7675 | |
7676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7677 | #ifdef __cplusplus | |
7678 | extern "C" | |
7679 | #endif | |
7680 | /* We use char because int might match the return type of a gcc2 | |
7681 | builtin and then its argument prototype would still apply. */ | |
7682 | char cma_open (); | |
98418dba CW |
7683 | int |
7684 | main () | |
7685 | { | |
7686 | cma_open (); | |
7687 | ; | |
7688 | return 0; | |
7689 | } | |
7690 | _ACEOF | |
7691 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7693 | (eval $ac_link) 2>&5 |
7694 | ac_status=$? | |
c0d27fcc | 7695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7696 | (exit $ac_status); } && |
793fa0d7 | 7697 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 7698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7699 | (eval $ac_try) 2>&5 |
7700 | ac_status=$? | |
c0d27fcc | 7701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7702 | (exit $ac_status); }; }; then |
7703 | ac_cv_lib_pthreads_cma_open=yes | |
7704 | else | |
7705 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7706 | sed 's/^/| /' conftest.$ac_ext >&5 |
7707 | ||
98418dba CW |
7708 | ac_cv_lib_pthreads_cma_open=no |
7709 | fi | |
7710 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7711 | LIBS=$ac_check_lib_save_LIBS | |
7712 | fi | |
c0d27fcc | 7713 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
98418dba CW |
7714 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
7715 | if test $ac_cv_lib_pthreads_cma_open = yes; then | |
c0d27fcc | 7716 | cat >>confdefs.h <<_ACEOF |
98418dba | 7717 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 7718 | _ACEOF |
98418dba CW |
7719 | |
7720 | LIBS="-lpthreads $LIBS" | |
7721 | ||
7722 | fi | |
7723 | ||
c0d27fcc MR |
7724 | |
7725 | echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 | |
98418dba CW |
7726 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
7727 | if test -d /usr/X386/include; then | |
7728 | HAVE_XFREE386=yes | |
7729 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
7730 | else | |
7731 | HAVE_XFREE386=no | |
7732 | fi | |
c0d27fcc | 7733 | echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
98418dba CW |
7734 | echo "${ECHO_T}$HAVE_XFREE386" >&6 |
7735 | ||
55597d70 DL |
7736 | |
7737 | case ${host_os} in | |
7738 | aix*) | |
7739 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 | |
7740 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
7741 | if test "${gdb_cv_bigtoc+set}" = set; then | |
7742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7743 | else | |
7744 | ||
7745 | case $GCC in | |
7746 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
7747 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
7748 | esac | |
7749 | ||
7750 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
7751 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7752 | #line $LINENO "configure" |
19650fd6 AS |
7753 | /* confdefs.h. */ |
7754 | _ACEOF | |
7755 | cat confdefs.h >>conftest.$ac_ext | |
7756 | cat >>conftest.$ac_ext <<_ACEOF | |
7757 | /* end confdefs.h. */ | |
55597d70 DL |
7758 | |
7759 | int | |
7760 | main () | |
7761 | { | |
7762 | int i; | |
7763 | ; | |
7764 | return 0; | |
7765 | } | |
7766 | _ACEOF | |
7767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7769 | (eval $ac_link) 2>&5 | |
7770 | ac_status=$? | |
7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7772 | (exit $ac_status); } && | |
793fa0d7 | 7773 | { ac_try='test -s conftest$ac_exeext' |
55597d70 DL |
7774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7775 | (eval $ac_try) 2>&5 | |
7776 | ac_status=$? | |
7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7778 | (exit $ac_status); }; }; then | |
7779 | : | |
7780 | else | |
7781 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7782 | sed 's/^/| /' conftest.$ac_ext >&5 |
7783 | ||
55597d70 DL |
7784 | gdb_cv_bigtoc= |
7785 | fi | |
7786 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7787 | ||
7788 | fi | |
7789 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
7790 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
7791 | ;; | |
7792 | esac | |
7793 | ||
ae1a998c RS |
7794 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
7795 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
7796 | # REAL_CPPFLAGS later on. | |
98418dba CW |
7797 | |
7798 | REAL_CPPFLAGS="$CPPFLAGS" | |
7799 | ||
7800 | if test "${HAVE_X11}" = "yes"; then | |
7801 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
7802 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
7803 | LIBS="$LIBX $LIBS" | |
7804 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
7805 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
7806 | ||
7807 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
7808 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
7809 | # but it's more convenient here to set LD_RUN_PATH | |
7810 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
7811 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
7812 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
7813 | export LD_RUN_PATH | |
7814 | fi | |
7815 | ||
7816 | if test "${opsys}" = "gnu-linux"; then | |
c0d27fcc | 7817 | echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
98418dba CW |
7818 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
7819 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7820 | #line $LINENO "configure" |
19650fd6 AS |
7821 | /* confdefs.h. */ |
7822 | _ACEOF | |
7823 | cat confdefs.h >>conftest.$ac_ext | |
7824 | cat >>conftest.$ac_ext <<_ACEOF | |
7825 | /* end confdefs.h. */ | |
98418dba | 7826 | |
98418dba CW |
7827 | int |
7828 | main () | |
7829 | { | |
7830 | XOpenDisplay ("foo"); | |
7831 | ; | |
7832 | return 0; | |
7833 | } | |
7834 | _ACEOF | |
7835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7837 | (eval $ac_link) 2>&5 |
7838 | ac_status=$? | |
c0d27fcc | 7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7840 | (exit $ac_status); } && |
793fa0d7 | 7841 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 7842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7843 | (eval $ac_try) 2>&5 |
7844 | ac_status=$? | |
c0d27fcc | 7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7846 | (exit $ac_status); }; }; then |
7847 | xlinux_first_failure=no | |
7848 | else | |
7849 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7850 | sed 's/^/| /' conftest.$ac_ext >&5 |
7851 | ||
98418dba CW |
7852 | xlinux_first_failure=yes |
7853 | fi | |
7854 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7855 | if test "${xlinux_first_failure}" = "yes"; then | |
7856 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
7857 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
7858 | OLD_CPPFLAGS="$CPPFLAGS" | |
7859 | OLD_LIBS="$LIBS" | |
7860 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
7861 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
7862 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
7863 | LIBS="$LIBS -b i486-linuxaout" | |
7864 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7865 | #line $LINENO "configure" |
19650fd6 AS |
7866 | /* confdefs.h. */ |
7867 | _ACEOF | |
7868 | cat confdefs.h >>conftest.$ac_ext | |
7869 | cat >>conftest.$ac_ext <<_ACEOF | |
7870 | /* end confdefs.h. */ | |
98418dba | 7871 | |
98418dba CW |
7872 | int |
7873 | main () | |
7874 | { | |
7875 | XOpenDisplay ("foo"); | |
7876 | ; | |
7877 | return 0; | |
7878 | } | |
7879 | _ACEOF | |
7880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7882 | (eval $ac_link) 2>&5 |
7883 | ac_status=$? | |
c0d27fcc | 7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7885 | (exit $ac_status); } && |
793fa0d7 | 7886 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 7887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7888 | (eval $ac_try) 2>&5 |
7889 | ac_status=$? | |
c0d27fcc | 7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7891 | (exit $ac_status); }; }; then |
7892 | xlinux_second_failure=no | |
7893 | else | |
7894 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7895 | sed 's/^/| /' conftest.$ac_ext >&5 |
7896 | ||
98418dba CW |
7897 | xlinux_second_failure=yes |
7898 | fi | |
7899 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7900 | if test "${xlinux_second_failure}" = "yes"; then | |
7901 | # If we get the same failure with -b, there is no use adding -b. | |
7902 | # So take it out. This plays safe. | |
7903 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
7904 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
7905 | CPPFLAGS="$OLD_CPPFLAGS" | |
7906 | LIBS="$OLD_LIBS" | |
c0d27fcc | 7907 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7908 | echo "${ECHO_T}no" >&6 |
7909 | else | |
c0d27fcc | 7910 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7911 | echo "${ECHO_T}yes" >&6 |
7912 | fi | |
7913 | else | |
c0d27fcc | 7914 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7915 | echo "${ECHO_T}no" >&6 |
7916 | fi | |
7917 | fi | |
7918 | ||
7919 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
7920 | # header files included from there. | |
c0d27fcc | 7921 | echo "$as_me:$LINENO: checking for Xkb" >&5 |
98418dba CW |
7922 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
7923 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7924 | #line $LINENO "configure" |
19650fd6 AS |
7925 | /* confdefs.h. */ |
7926 | _ACEOF | |
7927 | cat confdefs.h >>conftest.$ac_ext | |
7928 | cat >>conftest.$ac_ext <<_ACEOF | |
7929 | /* end confdefs.h. */ | |
98418dba CW |
7930 | #include <X11/Xlib.h> |
7931 | #include <X11/XKBlib.h> | |
98418dba CW |
7932 | int |
7933 | main () | |
7934 | { | |
7935 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
7936 | ; | |
7937 | return 0; | |
7938 | } | |
7939 | _ACEOF | |
7940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 7941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
7942 | (eval $ac_link) 2>&5 |
7943 | ac_status=$? | |
c0d27fcc | 7944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7945 | (exit $ac_status); } && |
793fa0d7 | 7946 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 7947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7948 | (eval $ac_try) 2>&5 |
7949 | ac_status=$? | |
c0d27fcc | 7950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7951 | (exit $ac_status); }; }; then |
7952 | emacs_xkb=yes | |
7953 | else | |
7954 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7955 | sed 's/^/| /' conftest.$ac_ext >&5 |
7956 | ||
98418dba CW |
7957 | emacs_xkb=no |
7958 | fi | |
7959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
c0d27fcc | 7960 | echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
98418dba CW |
7961 | echo "${ECHO_T}$emacs_xkb" >&6 |
7962 | if test $emacs_xkb = yes; then | |
b936fae4 | 7963 | |
c0d27fcc | 7964 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7965 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 7966 | _ACEOF |
98418dba CW |
7967 | |
7968 | fi | |
7969 | ||
c0d27fcc MR |
7970 | |
7971 | ||
7972 | ||
7973 | ||
98418dba CW |
7974 | for ac_func in XrmSetDatabase XScreenResourceString \ |
7975 | XScreenNumberOfScreen XSetWMProtocols | |
7976 | do | |
7977 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 7978 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
7979 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7980 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7982 | else | |
7983 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 7984 | #line $LINENO "configure" |
19650fd6 AS |
7985 | /* confdefs.h. */ |
7986 | _ACEOF | |
7987 | cat confdefs.h >>conftest.$ac_ext | |
7988 | cat >>conftest.$ac_ext <<_ACEOF | |
7989 | /* end confdefs.h. */ | |
98418dba | 7990 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
7991 | which can conflict with char $ac_func (); below. |
7992 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7993 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
7994 | #ifdef __STDC__ |
7995 | # include <limits.h> | |
7996 | #else | |
7997 | # include <assert.h> | |
7998 | #endif | |
98418dba CW |
7999 | /* Override any gcc2 internal prototype to avoid an error. */ |
8000 | #ifdef __cplusplus | |
8001 | extern "C" | |
19650fd6 | 8002 | { |
98418dba CW |
8003 | #endif |
8004 | /* We use char because int might match the return type of a gcc2 | |
8005 | builtin and then its argument prototype would still apply. */ | |
8006 | char $ac_func (); | |
98418dba CW |
8007 | /* The GNU C library defines this for functions which it implements |
8008 | to always fail with ENOSYS. Some functions are actually named | |
8009 | something starting with __ and the normal name is an alias. */ | |
8010 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8011 | choke me | |
8012 | #else | |
19650fd6 AS |
8013 | char (*f) () = $ac_func; |
8014 | #endif | |
8015 | #ifdef __cplusplus | |
8016 | } | |
98418dba CW |
8017 | #endif |
8018 | ||
19650fd6 AS |
8019 | int |
8020 | main () | |
8021 | { | |
8022 | return f != $ac_func; | |
98418dba CW |
8023 | ; |
8024 | return 0; | |
8025 | } | |
8026 | _ACEOF | |
8027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8029 | (eval $ac_link) 2>&5 |
8030 | ac_status=$? | |
c0d27fcc | 8031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8032 | (exit $ac_status); } && |
793fa0d7 | 8033 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 8034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8035 | (eval $ac_try) 2>&5 |
8036 | ac_status=$? | |
c0d27fcc | 8037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8038 | (exit $ac_status); }; }; then |
8039 | eval "$as_ac_var=yes" | |
8040 | else | |
8041 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8042 | sed 's/^/| /' conftest.$ac_ext >&5 |
8043 | ||
98418dba CW |
8044 | eval "$as_ac_var=no" |
8045 | fi | |
8046 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8047 | fi | |
c0d27fcc | 8048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
8049 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8050 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 8051 | cat >>confdefs.h <<_ACEOF |
98418dba | 8052 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 8053 | _ACEOF |
98418dba CW |
8054 | |
8055 | fi | |
8056 | done | |
8057 | ||
8058 | fi | |
8059 | ||
8060 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 8061 | echo "$as_me:$LINENO: checking X11 version 6" >&5 |
98418dba CW |
8062 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
8063 | if test "${emacs_cv_x11_version_6+set}" = set; then | |
8064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8065 | else | |
8066 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 8067 | #line $LINENO "configure" |
19650fd6 AS |
8068 | /* confdefs.h. */ |
8069 | _ACEOF | |
8070 | cat confdefs.h >>conftest.$ac_ext | |
8071 | cat >>conftest.$ac_ext <<_ACEOF | |
8072 | /* end confdefs.h. */ | |
98418dba | 8073 | #include <X11/Xlib.h> |
98418dba CW |
8074 | int |
8075 | main () | |
8076 | { | |
8077 | #if XlibSpecificationRelease < 6 | |
8078 | fail; | |
8079 | #endif | |
8080 | ||
8081 | ; | |
8082 | return 0; | |
8083 | } | |
8084 | _ACEOF | |
8085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8087 | (eval $ac_link) 2>&5 |
8088 | ac_status=$? | |
c0d27fcc | 8089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8090 | (exit $ac_status); } && |
793fa0d7 | 8091 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 8092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8093 | (eval $ac_try) 2>&5 |
8094 | ac_status=$? | |
c0d27fcc | 8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8096 | (exit $ac_status); }; }; then |
8097 | emacs_cv_x11_version_6=yes | |
8098 | else | |
8099 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8100 | sed 's/^/| /' conftest.$ac_ext >&5 |
8101 | ||
98418dba CW |
8102 | emacs_cv_x11_version_6=no |
8103 | fi | |
8104 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8105 | fi | |
8106 | ||
8107 | if test $emacs_cv_x11_version_6 = yes; then | |
c0d27fcc | 8108 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 8109 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 8110 | |
c0d27fcc | 8111 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8112 | #define HAVE_X11R6 1 |
c0d27fcc | 8113 | _ACEOF |
98418dba CW |
8114 | |
8115 | else | |
c0d27fcc | 8116 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
8117 | echo "${ECHO_T}before 6" >&6 |
8118 | fi | |
8119 | fi | |
8120 | ||
8121 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 8122 | echo "$as_me:$LINENO: checking X11 version 5" >&5 |
98418dba CW |
8123 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
8124 | if test "${emacs_cv_x11_version_5+set}" = set; then | |
8125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8126 | else | |
8127 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 8128 | #line $LINENO "configure" |
19650fd6 AS |
8129 | /* confdefs.h. */ |
8130 | _ACEOF | |
8131 | cat confdefs.h >>conftest.$ac_ext | |
8132 | cat >>conftest.$ac_ext <<_ACEOF | |
8133 | /* end confdefs.h. */ | |
98418dba | 8134 | #include <X11/Xlib.h> |
98418dba CW |
8135 | int |
8136 | main () | |
8137 | { | |
8138 | #if XlibSpecificationRelease < 5 | |
8139 | fail; | |
8140 | #endif | |
8141 | ||
8142 | ; | |
8143 | return 0; | |
8144 | } | |
8145 | _ACEOF | |
8146 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8148 | (eval $ac_link) 2>&5 |
8149 | ac_status=$? | |
c0d27fcc | 8150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8151 | (exit $ac_status); } && |
793fa0d7 | 8152 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 8153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8154 | (eval $ac_try) 2>&5 |
8155 | ac_status=$? | |
c0d27fcc | 8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8157 | (exit $ac_status); }; }; then |
8158 | emacs_cv_x11_version_5=yes | |
8159 | else | |
8160 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8161 | sed 's/^/| /' conftest.$ac_ext >&5 |
8162 | ||
98418dba CW |
8163 | emacs_cv_x11_version_5=no |
8164 | fi | |
8165 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8166 | fi | |
8167 | ||
8168 | if test $emacs_cv_x11_version_5 = yes; then | |
c0d27fcc | 8169 | echo "$as_me:$LINENO: result: 5 or newer" >&5 |
98418dba CW |
8170 | echo "${ECHO_T}5 or newer" >&6 |
8171 | HAVE_X11R5=yes | |
b936fae4 | 8172 | |
c0d27fcc | 8173 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8174 | #define HAVE_X11R5 1 |
c0d27fcc | 8175 | _ACEOF |
98418dba CW |
8176 | |
8177 | else | |
8178 | HAVE_X11R5=no | |
c0d27fcc | 8179 | echo "$as_me:$LINENO: result: before 5" >&5 |
98418dba CW |
8180 | echo "${ECHO_T}before 5" >&6 |
8181 | fi | |
8182 | fi | |
8183 | ||
488dd4c4 JD |
8184 | |
8185 | ||
8186 | HAVE_GTK=no | |
8187 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then | |
cd890796 | 8188 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
488dd4c4 JD |
8189 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
8190 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} | |
8191 | { (exit 1); exit 1; }; }; | |
8192 | fi | |
8193 | GLIB_REQUIRED=2.0.1 | |
e512ece1 | 8194 | GTK_REQUIRED=2.0.1 |
488dd4c4 JD |
8195 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
8196 | ||
8197 | if test "X${with_pkg_config_prog}" != X; then | |
8198 | PKG_CONFIG="${with_pkg_config_prog}" | |
8199 | fi | |
8200 | ||
8201 | succeeded=no | |
8202 | ||
8203 | if test -z "$PKG_CONFIG"; then | |
8204 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
8205 | set dummy pkg-config; ac_word=$2 | |
8206 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8208 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
8209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8210 | else | |
8211 | case $PKG_CONFIG in | |
8212 | [\\/]* | ?:[\\/]*) | |
8213 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
8214 | ;; | |
8215 | *) | |
8216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8217 | for as_dir in $PATH | |
8218 | do | |
8219 | IFS=$as_save_IFS | |
8220 | test -z "$as_dir" && as_dir=. | |
8221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8223 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8225 | break 2 | |
8226 | fi | |
8227 | done | |
8228 | done | |
8229 | ||
8230 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
8231 | ;; | |
8232 | esac | |
8233 | fi | |
8234 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
8235 | ||
8236 | if test -n "$PKG_CONFIG"; then | |
8237 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
8238 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
8239 | else | |
8240 | echo "$as_me:$LINENO: result: no" >&5 | |
8241 | echo "${ECHO_T}no" >&6 | |
8242 | fi | |
8243 | ||
8244 | fi | |
8245 | ||
8246 | if test "$PKG_CONFIG" = "no" ; then | |
8247 | echo "*** The pkg-config script could not be found. Make sure it is" | |
8248 | echo "*** in your path, or give the full path to pkg-config with" | |
8249 | echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog." | |
8250 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
8251 | else | |
8252 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
8253 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
8254 | echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 | |
8255 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6 | |
8256 | ||
8257 | if $PKG_CONFIG --exists "$GTK_MODULES" ; then | |
8258 | echo "$as_me:$LINENO: result: yes" >&5 | |
8259 | echo "${ECHO_T}yes" >&6 | |
8260 | succeeded=yes | |
8261 | ||
8262 | echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 | |
8263 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 | |
8264 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"` | |
8265 | echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 | |
8266 | echo "${ECHO_T}$GTK_CFLAGS" >&6 | |
8267 | ||
8268 | echo "$as_me:$LINENO: checking GTK_LIBS" >&5 | |
8269 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 | |
8270 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"` | |
8271 | echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 | |
8272 | echo "${ECHO_T}$GTK_LIBS" >&6 | |
8273 | else | |
8274 | GTK_CFLAGS="" | |
8275 | GTK_LIBS="" | |
8276 | ## If we have a custom action on failure, don't print errors, but | |
8277 | ## do set a variable so people can do so. | |
8278 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
8279 | echo $GTK_PKG_ERRORS | |
8280 | fi | |
8281 | ||
8282 | ||
8283 | ||
8284 | else | |
8285 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
8286 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
8287 | fi | |
8288 | fi | |
8289 | ||
8290 | if test $succeeded = yes; then | |
8291 | : | |
8292 | else | |
8293 | { { 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 | |
8294 | 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;} | |
8295 | { (exit 1); exit 1; }; } | |
8296 | fi | |
8297 | ||
8298 | ||
8299 | ||
8300 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
8301 | HAVE_GTK=yes | |
8302 | ||
8303 | cat >>confdefs.h <<\_ACEOF | |
8304 | #define HAVE_GTK 1 | |
8305 | _ACEOF | |
8306 | ||
8307 | USE_X_TOOLKIT=none | |
8308 | ||
8309 | with_toolkit_scroll_bars=yes | |
8310 | fi | |
8311 | ||
98418dba CW |
8312 | if test x"${USE_X_TOOLKIT}" = xmaybe; then |
8313 | if test x"${HAVE_X11R5}" = xyes; then | |
c0d27fcc | 8314 | echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
98418dba CW |
8315 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
8316 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
8317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8318 | else | |
8319 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 8320 | #line $LINENO "configure" |
19650fd6 AS |
8321 | /* confdefs.h. */ |
8322 | _ACEOF | |
8323 | cat confdefs.h >>conftest.$ac_ext | |
8324 | cat >>conftest.$ac_ext <<_ACEOF | |
8325 | /* end confdefs.h. */ | |
98418dba CW |
8326 | |
8327 | #include <X11/Intrinsic.h> | |
8328 | #include <X11/Xaw/Simple.h> | |
98418dba CW |
8329 | int |
8330 | main () | |
8331 | { | |
8332 | ||
8333 | ; | |
8334 | return 0; | |
8335 | } | |
8336 | _ACEOF | |
8337 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8339 | (eval $ac_link) 2>&5 |
8340 | ac_status=$? | |
c0d27fcc | 8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8342 | (exit $ac_status); } && |
793fa0d7 | 8343 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 8344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8345 | (eval $ac_try) 2>&5 |
8346 | ac_status=$? | |
c0d27fcc | 8347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8348 | (exit $ac_status); }; }; then |
8349 | emacs_cv_x11_version_5_with_xaw=yes | |
8350 | else | |
8351 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8352 | sed 's/^/| /' conftest.$ac_ext >&5 |
8353 | ||
98418dba CW |
8354 | emacs_cv_x11_version_5_with_xaw=no |
8355 | fi | |
8356 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8357 | fi | |
8358 | ||
8359 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
c0d27fcc | 8360 | echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
98418dba CW |
8361 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
8362 | USE_X_TOOLKIT=LUCID | |
8363 | else | |
c0d27fcc | 8364 | echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
98418dba CW |
8365 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
8366 | USE_X_TOOLKIT=none | |
8367 | fi | |
8368 | else | |
8369 | USE_X_TOOLKIT=none | |
8370 | fi | |
8371 | fi | |
8372 | ||
8373 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
8374 | ||
8375 | if test "${USE_X_TOOLKIT}" != "none"; then | |
c0d27fcc | 8376 | echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
98418dba CW |
8377 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
8378 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
8379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8380 | else | |
8381 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 8382 | #line $LINENO "configure" |
19650fd6 AS |
8383 | /* confdefs.h. */ |
8384 | _ACEOF | |
8385 | cat confdefs.h >>conftest.$ac_ext | |
8386 | cat >>conftest.$ac_ext <<_ACEOF | |
8387 | /* end confdefs.h. */ | |
98418dba | 8388 | #include <X11/Intrinsic.h> |
98418dba CW |
8389 | int |
8390 | main () | |
8391 | { | |
8392 | #if XtSpecificationRelease < 6 | |
8393 | fail; | |
8394 | #endif | |
8395 | ||
8396 | ; | |
8397 | return 0; | |
8398 | } | |
8399 | _ACEOF | |
8400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8402 | (eval $ac_link) 2>&5 |
8403 | ac_status=$? | |
c0d27fcc | 8404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8405 | (exit $ac_status); } && |
793fa0d7 | 8406 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 8407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8408 | (eval $ac_try) 2>&5 |
8409 | ac_status=$? | |
c0d27fcc | 8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8411 | (exit $ac_status); }; }; then |
8412 | emacs_cv_x11_toolkit_version_6=yes | |
8413 | else | |
8414 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8415 | sed 's/^/| /' conftest.$ac_ext >&5 |
8416 | ||
98418dba CW |
8417 | emacs_cv_x11_toolkit_version_6=no |
8418 | fi | |
8419 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8420 | fi | |
8421 | ||
8422 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
8423 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
c0d27fcc | 8424 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 8425 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 8426 | |
c0d27fcc | 8427 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8428 | #define HAVE_X11XTR6 1 |
c0d27fcc | 8429 | _ACEOF |
98418dba CW |
8430 | |
8431 | else | |
c0d27fcc | 8432 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
8433 | echo "${ECHO_T}before 6" >&6 |
8434 | fi | |
8435 | ||
8436 | OLDLIBS="$LIBS" | |
8437 | if test x$HAVE_X11XTR6 = xyes; then | |
8438 | LIBS="-lXt -lSM -lICE $LIBS" | |
8439 | else | |
8440 | LIBS="-lXt $LIBS" | |
8441 | fi | |
8442 | ||
c0d27fcc | 8443 | echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
98418dba CW |
8444 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
8445 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
8446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8447 | else | |
8448 | ac_check_lib_save_LIBS=$LIBS | |
8449 | LIBS="-lXmu $LIBS" | |
8450 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 8451 | #line $LINENO "configure" |
19650fd6 AS |
8452 | /* confdefs.h. */ |
8453 | _ACEOF | |
8454 | cat confdefs.h >>conftest.$ac_ext | |
8455 | cat >>conftest.$ac_ext <<_ACEOF | |
8456 | /* end confdefs.h. */ | |
98418dba CW |
8457 | |
8458 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8459 | #ifdef __cplusplus | |
8460 | extern "C" | |
8461 | #endif | |
8462 | /* We use char because int might match the return type of a gcc2 | |
8463 | builtin and then its argument prototype would still apply. */ | |
8464 | char XmuConvertStandardSelection (); | |
98418dba CW |
8465 | int |
8466 | main () | |
8467 | { | |
8468 | XmuConvertStandardSelection (); | |
8469 | ; | |
8470 | return 0; | |
8471 | } | |
8472 | _ACEOF | |
8473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8475 | (eval $ac_link) 2>&5 |
8476 | ac_status=$? | |
c0d27fcc | 8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8478 | (exit $ac_status); } && |
793fa0d7 | 8479 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 8480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8481 | (eval $ac_try) 2>&5 |
8482 | ac_status=$? | |
c0d27fcc | 8483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8484 | (exit $ac_status); }; }; then |
8485 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
8486 | else | |
8487 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8488 | sed 's/^/| /' conftest.$ac_ext >&5 |
8489 | ||
98418dba CW |
8490 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
8491 | fi | |
8492 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8493 | LIBS=$ac_check_lib_save_LIBS | |
8494 | fi | |
c0d27fcc | 8495 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
98418dba CW |
8496 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
8497 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
c0d27fcc | 8498 | cat >>confdefs.h <<_ACEOF |
98418dba | 8499 | #define HAVE_LIBXMU 1 |
c0d27fcc | 8500 | _ACEOF |
98418dba CW |
8501 | |
8502 | LIBS="-lXmu $LIBS" | |
8503 | ||
8504 | fi | |
8505 | ||
8506 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
8507 | fi | |
8508 | ||
8509 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
8510 | if test "${HAVE_X11}" = "yes"; then | |
8511 | if test "${USE_X_TOOLKIT}" != "none"; then | |
8512 | ||
c0d27fcc | 8513 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
98418dba CW |
8514 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
8515 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
8516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8517 | else | |
8518 | ac_check_lib_save_LIBS=$LIBS | |
8519 | LIBS="-lXext $LIBS" | |
8520 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 8521 | #line $LINENO "configure" |
19650fd6 AS |
8522 | /* confdefs.h. */ |
8523 | _ACEOF | |
8524 | cat confdefs.h >>conftest.$ac_ext | |
8525 | cat >>conftest.$ac_ext <<_ACEOF | |
8526 | /* end confdefs.h. */ | |
98418dba CW |
8527 | |
8528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8529 | #ifdef __cplusplus | |
8530 | extern "C" | |
8531 | #endif | |
8532 | /* We use char because int might match the return type of a gcc2 | |
8533 | builtin and then its argument prototype would still apply. */ | |
8534 | char XShapeQueryExtension (); | |
98418dba CW |
8535 | int |
8536 | main () | |
8537 | { | |
8538 | XShapeQueryExtension (); | |
8539 | ; | |
8540 | return 0; | |
8541 | } | |
8542 | _ACEOF | |
8543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8545 | (eval $ac_link) 2>&5 |
8546 | ac_status=$? | |
c0d27fcc | 8547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8548 | (exit $ac_status); } && |
793fa0d7 | 8549 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 8550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8551 | (eval $ac_try) 2>&5 |
8552 | ac_status=$? | |
c0d27fcc | 8553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8554 | (exit $ac_status); }; }; then |
8555 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
8556 | else | |
8557 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8558 | sed 's/^/| /' conftest.$ac_ext >&5 |
8559 | ||
98418dba CW |
8560 | ac_cv_lib_Xext_XShapeQueryExtension=no |
8561 | fi | |
8562 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8563 | LIBS=$ac_check_lib_save_LIBS | |
8564 | fi | |
c0d27fcc | 8565 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
98418dba CW |
8566 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
8567 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
c0d27fcc | 8568 | cat >>confdefs.h <<_ACEOF |
98418dba | 8569 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 8570 | _ACEOF |
98418dba CW |
8571 | |
8572 | LIBS="-lXext $LIBS" | |
8573 | ||
8574 | fi | |
8575 | ||
8576 | fi | |
8577 | fi | |
8578 | ||
8579 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 8580 | echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
8e967cf7 MR |
8581 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 |
8582 | if test "${emacs_cv_lesstif+set}" = set; then | |
8583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8584 | else | |
ae1a998c RS |
8585 | # We put this in CFLAGS temporarily to precede other -I options |
8586 | # that might be in CFLAGS temporarily. | |
8587 | # We put this in CPPFLAGS where it precedes the other -I options. | |
8588 | OLD_CPPFLAGS=$CPPFLAGS | |
8589 | OLD_CFLAGS=$CFLAGS | |
8590 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
8591 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
8e967cf7 | 8592 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 8593 | #line $LINENO "configure" |
19650fd6 AS |
8594 | /* confdefs.h. */ |
8595 | _ACEOF | |
8596 | cat confdefs.h >>conftest.$ac_ext | |
8597 | cat >>conftest.$ac_ext <<_ACEOF | |
8598 | /* end confdefs.h. */ | |
8e967cf7 MR |
8599 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
8600 | int | |
8601 | main () | |
8602 | { | |
8603 | int x = 5; | |
8604 | ; | |
8605 | return 0; | |
8606 | } | |
8607 | _ACEOF | |
8608 | rm -f conftest.$ac_objext | |
c0d27fcc | 8609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8e967cf7 MR |
8610 | (eval $ac_compile) 2>&5 |
8611 | ac_status=$? | |
c0d27fcc | 8612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 | 8613 | (exit $ac_status); } && |
793fa0d7 | 8614 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 8615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8e967cf7 MR |
8616 | (eval $ac_try) 2>&5 |
8617 | ac_status=$? | |
c0d27fcc | 8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 MR |
8619 | (exit $ac_status); }; }; then |
8620 | emacs_cv_lesstif=yes | |
8621 | else | |
8622 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8623 | sed 's/^/| /' conftest.$ac_ext >&5 |
8624 | ||
8e967cf7 MR |
8625 | emacs_cv_lesstif=no |
8626 | fi | |
8627 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8628 | fi | |
c0d27fcc | 8629 | echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
8e967cf7 MR |
8630 | echo "${ECHO_T}$emacs_cv_lesstif" >&6 |
8631 | if test $emacs_cv_lesstif = yes; then | |
ae1a998c RS |
8632 | # Make sure this -I option remains in CPPFLAGS after it is set |
8633 | # back to REAL_CPPFLAGS. | |
8634 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
8635 | # have those other -I options anyway. Ultimately, having this | |
8636 | # directory ultimately in CPPFLAGS will be enough. | |
8637 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
8e967cf7 | 8638 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
ae1a998c RS |
8639 | else |
8640 | CFLAGS=$OLD_CFLAGS | |
8641 | CPPFLAGS=$OLD_CPPFLAGS | |
8e967cf7 | 8642 | fi |
c0d27fcc | 8643 | echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
98418dba CW |
8644 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
8645 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
8646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647 | else | |
8648 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 8649 | #line $LINENO "configure" |
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 | #include <Xm/Xm.h> |
98418dba CW |
8656 | int |
8657 | main () | |
8658 | { | |
8659 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
8660 | int x = 5; | |
8661 | #else | |
8662 | Motif version prior to 2.1. | |
8663 | #endif | |
8664 | ; | |
8665 | return 0; | |
8666 | } | |
8667 | _ACEOF | |
8668 | rm -f conftest.$ac_objext | |
c0d27fcc | 8669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba CW |
8670 | (eval $ac_compile) 2>&5 |
8671 | ac_status=$? | |
c0d27fcc | 8672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8673 | (exit $ac_status); } && |
793fa0d7 | 8674 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 8675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8676 | (eval $ac_try) 2>&5 |
8677 | ac_status=$? | |
c0d27fcc | 8678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8679 | (exit $ac_status); }; }; then |
8680 | emacs_cv_motif_version_2_1=yes | |
8681 | else | |
8682 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8683 | sed 's/^/| /' conftest.$ac_ext >&5 |
8684 | ||
98418dba CW |
8685 | emacs_cv_motif_version_2_1=no |
8686 | fi | |
8687 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8688 | fi | |
c0d27fcc | 8689 | echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
98418dba CW |
8690 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
8691 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
8692 | if test $emacs_cv_motif_version_2_1 = yes; then | |
8693 | HAVE_LIBXP=no | |
b936fae4 | 8694 | |
c0d27fcc | 8695 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8696 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 8697 | _ACEOF |
98418dba | 8698 | |
c0d27fcc | 8699 | echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
98418dba CW |
8700 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
8701 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
8702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8703 | else | |
8704 | ac_check_lib_save_LIBS=$LIBS | |
8705 | LIBS="-lXp $LIBS" | |
8706 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 8707 | #line $LINENO "configure" |
19650fd6 AS |
8708 | /* confdefs.h. */ |
8709 | _ACEOF | |
8710 | cat confdefs.h >>conftest.$ac_ext | |
8711 | cat >>conftest.$ac_ext <<_ACEOF | |
8712 | /* end confdefs.h. */ | |
98418dba CW |
8713 | |
8714 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8715 | #ifdef __cplusplus | |
8716 | extern "C" | |
8717 | #endif | |
8718 | /* We use char because int might match the return type of a gcc2 | |
8719 | builtin and then its argument prototype would still apply. */ | |
8720 | char XpCreateContext (); | |
98418dba CW |
8721 | int |
8722 | main () | |
8723 | { | |
8724 | XpCreateContext (); | |
8725 | ; | |
8726 | return 0; | |
8727 | } | |
8728 | _ACEOF | |
8729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8731 | (eval $ac_link) 2>&5 |
8732 | ac_status=$? | |
c0d27fcc | 8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8734 | (exit $ac_status); } && |
793fa0d7 | 8735 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 8736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8737 | (eval $ac_try) 2>&5 |
8738 | ac_status=$? | |
c0d27fcc | 8739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8740 | (exit $ac_status); }; }; then |
8741 | ac_cv_lib_Xp_XpCreateContext=yes | |
8742 | else | |
8743 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8744 | sed 's/^/| /' conftest.$ac_ext >&5 |
8745 | ||
98418dba CW |
8746 | ac_cv_lib_Xp_XpCreateContext=no |
8747 | fi | |
8748 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8749 | LIBS=$ac_check_lib_save_LIBS | |
8750 | fi | |
c0d27fcc | 8751 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
98418dba CW |
8752 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
8753 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
8754 | HAVE_LIBXP=yes | |
8755 | fi | |
503d2be0 | 8756 | |
98418dba | 8757 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 8758 | |
c0d27fcc | 8759 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8760 | #define HAVE_LIBXP 1 |
c0d27fcc | 8761 | _ACEOF |
503d2be0 | 8762 | |
98418dba CW |
8763 | fi |
8764 | fi | |
8765 | fi | |
8766 | ||
8767 | ### Is -lXaw3d available? | |
8768 | HAVE_XAW3D=no | |
8769 | if test "${HAVE_X11}" = "yes"; then | |
8770 | if test "${USE_X_TOOLKIT}" != "none"; then | |
22044edf | 8771 | echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 |
98418dba CW |
8772 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
8773 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
8774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 8775 | else |
22044edf | 8776 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 8777 | #line $LINENO "configure" |
19650fd6 AS |
8778 | /* confdefs.h. */ |
8779 | _ACEOF | |
8780 | cat confdefs.h >>conftest.$ac_ext | |
8781 | cat >>conftest.$ac_ext <<_ACEOF | |
8782 | /* end confdefs.h. */ | |
98418dba | 8783 | #include <X11/Xaw3d/Scrollbar.h> |
503d2be0 | 8784 | _ACEOF |
c0d27fcc | 8785 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
8786 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8787 | ac_status=$? | |
6bae0ccf | 8788 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
8789 | rm -f conftest.er1 |
8790 | cat conftest.err >&5 | |
c0d27fcc | 8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
8792 | (exit $ac_status); } >/dev/null; then |
8793 | if test -s conftest.err; then | |
8794 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8795 | else | |
8796 | ac_cpp_err= | |
8797 | fi | |
8798 | else | |
8799 | ac_cpp_err=yes | |
8800 | fi | |
8801 | if test -z "$ac_cpp_err"; then | |
22044edf | 8802 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
ba4481b5 | 8803 | else |
503d2be0 | 8804 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
8805 | sed 's/^/| /' conftest.$ac_ext >&5 |
8806 | ||
22044edf | 8807 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
ba4481b5 | 8808 | fi |
503d2be0 | 8809 | rm -f conftest.err conftest.$ac_ext |
98418dba | 8810 | fi |
c0d27fcc | 8811 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
98418dba | 8812 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
98418dba | 8813 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
c0d27fcc | 8814 | echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
98418dba CW |
8815 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
8816 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
8817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8818 | else | |
8819 | ac_check_lib_save_LIBS=$LIBS | |
8820 | LIBS="-lXaw3d $LIBS" | |
8821 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 8822 | #line $LINENO "configure" |
19650fd6 AS |
8823 | /* confdefs.h. */ |
8824 | _ACEOF | |
8825 | cat confdefs.h >>conftest.$ac_ext | |
8826 | cat >>conftest.$ac_ext <<_ACEOF | |
8827 | /* end confdefs.h. */ | |
98418dba CW |
8828 | |
8829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8830 | #ifdef __cplusplus | |
8831 | extern "C" | |
8832 | #endif | |
8833 | /* We use char because int might match the return type of a gcc2 | |
8834 | builtin and then its argument prototype would still apply. */ | |
8835 | char XawScrollbarSetThumb (); | |
503d2be0 AS |
8836 | int |
8837 | main () | |
8838 | { | |
98418dba | 8839 | XawScrollbarSetThumb (); |
503d2be0 AS |
8840 | ; |
8841 | return 0; | |
8842 | } | |
8843 | _ACEOF | |
8844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
8846 | (eval $ac_link) 2>&5 |
8847 | ac_status=$? | |
c0d27fcc | 8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 8849 | (exit $ac_status); } && |
793fa0d7 | 8850 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 8851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
8852 | (eval $ac_try) 2>&5 |
8853 | ac_status=$? | |
c0d27fcc | 8854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 8855 | (exit $ac_status); }; }; then |
98418dba | 8856 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
ba4481b5 | 8857 | else |
503d2be0 | 8858 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
8859 | sed 's/^/| /' conftest.$ac_ext >&5 |
8860 | ||
98418dba | 8861 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
ba4481b5 | 8862 | fi |
503d2be0 | 8863 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 8864 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 8865 | fi |
c0d27fcc | 8866 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
98418dba CW |
8867 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
8868 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
8869 | HAVE_XAW3D=yes | |
ba4481b5 | 8870 | fi |
503d2be0 | 8871 | |
ba4481b5 DL |
8872 | fi |
8873 | ||
c0d27fcc | 8874 | |
98418dba | 8875 | if test "${HAVE_XAW3D}" = "yes"; then |
b936fae4 | 8876 | |
c0d27fcc | 8877 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8878 | #define HAVE_XAW3D 1 |
c0d27fcc | 8879 | _ACEOF |
98418dba | 8880 | |
ba4481b5 | 8881 | fi |
98418dba | 8882 | fi |
ba4481b5 DL |
8883 | fi |
8884 | ||
c0d27fcc MR |
8885 | |
8886 | ||
98418dba CW |
8887 | USE_TOOLKIT_SCROLL_BARS=no |
8888 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
8889 | if test "${USE_X_TOOLKIT}" != "none"; then | |
8890 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 8891 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8892 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 8893 | _ACEOF |
98418dba CW |
8894 | |
8895 | HAVE_XAW3D=no | |
8896 | USE_TOOLKIT_SCROLL_BARS=yes | |
8897 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 8898 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8899 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 8900 | _ACEOF |
98418dba CW |
8901 | |
8902 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 8903 | fi |
488dd4c4 JD |
8904 | elif test "${HAVE_GTK}" = "yes"; then |
8905 | cat >>confdefs.h <<\_ACEOF | |
8906 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
8907 | _ACEOF | |
8908 | ||
8909 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
8910 | fi |
8911 | fi | |
8912 | ||
c0d27fcc | 8913 | |
98418dba | 8914 | if test "${with_xim}" != "no"; then |
b936fae4 | 8915 | |
c0d27fcc | 8916 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8917 | #define USE_XIM 1 |
c0d27fcc | 8918 | _ACEOF |
98418dba | 8919 | |
793fa0d7 | 8920 | fi |
463f5630 | 8921 | if test "${HAVE_X11}" = "yes"; then |
849d80cf DL |
8922 | late_CFLAGS=$CFLAGS |
8923 | if test "$GCC" = yes; then | |
8924 | CFLAGS="$CFLAGS --pedantic-errors" | |
8925 | fi | |
cffcede7 | 8926 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 8927 | #line $LINENO "configure" |
19650fd6 AS |
8928 | /* confdefs.h. */ |
8929 | _ACEOF | |
8930 | cat confdefs.h >>conftest.$ac_ext | |
8931 | cat >>conftest.$ac_ext <<_ACEOF | |
8932 | /* end confdefs.h. */ | |
cffcede7 JD |
8933 | |
8934 | #include <X11/Xlib.h> | |
8935 | #include <X11/Xresource.h> | |
8936 | int | |
8937 | main () | |
8938 | { | |
8939 | Display *display; | |
8940 | XrmDatabase db; | |
8941 | char *res_name; | |
8942 | char *res_class; | |
8943 | XIMProc callback; | |
8944 | XPointer *client_data; | |
849d80cf DL |
8945 | #ifndef __GNUC__ |
8946 | /* If we're not using GCC, it's probably not XFree86, and this is | |
8947 | probably right, but we can't use something like --pedantic-errors. */ | |
8948 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
8949 | char*, XIMProc, XPointer*); | |
8950 | #endif | |
cffcede7 JD |
8951 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
8952 | client_data); | |
8953 | ; | |
8954 | return 0; | |
8955 | } | |
8956 | _ACEOF | |
8957 | rm -f conftest.$ac_objext | |
8958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8959 | (eval $ac_compile) 2>&5 | |
8960 | ac_status=$? | |
8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8962 | (exit $ac_status); } && | |
793fa0d7 | 8963 | { ac_try='test -s conftest.$ac_objext' |
cffcede7 JD |
8964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8965 | (eval $ac_try) 2>&5 | |
8966 | ac_status=$? | |
8967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8968 | (exit $ac_status); }; }; then | |
8969 | emacs_cv_arg6_star=yes | |
8970 | else | |
8971 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8972 | sed 's/^/| /' conftest.$ac_ext >&5 |
8973 | ||
cffcede7 JD |
8974 | fi |
8975 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8976 | ||
8977 | if test "$emacs_cv_arg6_star" = yes; then | |
f57bd967 | 8978 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
8979 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
8980 | _ACEOF | |
8981 | ||
8982 | else | |
f57bd967 | 8983 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
8984 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
8985 | _ACEOF | |
8986 | ||
8987 | fi | |
849d80cf | 8988 | CFLAGS=$late_CFLAGS |
98418dba CW |
8989 | fi |
8990 | ||
8991 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
8992 | HAVE_XPM=no | |
8993 | if test "${HAVE_X11}" = "yes"; then | |
8994 | if test "${with_xpm}" != "no"; then | |
c0d27fcc MR |
8995 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
8996 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
98418dba CW |
8997 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
8998 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
8999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
9000 | fi |
9001 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
9002 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 | |
98418dba | 9003 | else |
c0d27fcc MR |
9004 | # Is the header compilable? |
9005 | echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
9006 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 | |
9007 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9008 | #line $LINENO "configure" |
19650fd6 AS |
9009 | /* confdefs.h. */ |
9010 | _ACEOF | |
9011 | cat confdefs.h >>conftest.$ac_ext | |
9012 | cat >>conftest.$ac_ext <<_ACEOF | |
9013 | /* end confdefs.h. */ | |
c0d27fcc MR |
9014 | $ac_includes_default |
9015 | #include <X11/xpm.h> | |
9016 | _ACEOF | |
9017 | rm -f conftest.$ac_objext | |
9018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9019 | (eval $ac_compile) 2>&5 | |
9020 | ac_status=$? | |
9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9022 | (exit $ac_status); } && | |
793fa0d7 | 9023 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
9024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9025 | (eval $ac_try) 2>&5 | |
9026 | ac_status=$? | |
9027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9028 | (exit $ac_status); }; }; then | |
9029 | ac_header_compiler=yes | |
9030 | else | |
9031 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9032 | sed 's/^/| /' conftest.$ac_ext >&5 |
9033 | ||
c0d27fcc MR |
9034 | ac_header_compiler=no |
9035 | fi | |
9036 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9037 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9038 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9039 | ||
9040 | # Is the header present? | |
9041 | echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
9042 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 | |
9043 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9044 | #line $LINENO "configure" |
19650fd6 AS |
9045 | /* confdefs.h. */ |
9046 | _ACEOF | |
9047 | cat confdefs.h >>conftest.$ac_ext | |
9048 | cat >>conftest.$ac_ext <<_ACEOF | |
9049 | /* end confdefs.h. */ | |
98418dba CW |
9050 | #include <X11/xpm.h> |
9051 | _ACEOF | |
c0d27fcc | 9052 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
9053 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9054 | ac_status=$? | |
6bae0ccf | 9055 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9056 | rm -f conftest.er1 |
9057 | cat conftest.err >&5 | |
c0d27fcc | 9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9059 | (exit $ac_status); } >/dev/null; then |
9060 | if test -s conftest.err; then | |
9061 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9062 | else | |
9063 | ac_cpp_err= | |
9064 | fi | |
9065 | else | |
9066 | ac_cpp_err=yes | |
9067 | fi | |
9068 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 9069 | ac_header_preproc=yes |
98418dba CW |
9070 | else |
9071 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9072 | sed 's/^/| /' conftest.$ac_ext >&5 |
9073 | ||
c0d27fcc | 9074 | ac_header_preproc=no |
98418dba CW |
9075 | fi |
9076 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
9077 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9078 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9079 | ||
9080 | # So? What about this header? | |
9081 | case $ac_header_compiler:$ac_header_preproc in | |
9082 | yes:no ) | |
9083 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9084 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
9085 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
9086 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} | |
9087 | ( | |
9088 | cat <<\_ASBOX | |
9089 | ## ------------------------------------ ## | |
9090 | ## Report this to bug-autoconf@gnu.org. ## | |
9091 | ## ------------------------------------ ## | |
9092 | _ASBOX | |
9093 | ) | | |
9094 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 9095 | ;; |
c0d27fcc MR |
9096 | no:yes ) |
9097 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
9098 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
9099 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 |
9100 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 9101 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 9102 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
9103 | ( |
9104 | cat <<\_ASBOX | |
793fa0d7 DL |
9105 | ## ------------------------------------ ## |
9106 | ## Report this to bug-autoconf@gnu.org. ## | |
9107 | ## ------------------------------------ ## | |
19650fd6 AS |
9108 | _ASBOX |
9109 | ) | | |
9110 | sed "s/^/$as_me: WARNING: /" >&2 | |
9111 | ;; | |
c0d27fcc MR |
9112 | esac |
9113 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
9114 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
9115 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
9116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9117 | else | |
9118 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 9119 | fi |
c0d27fcc | 9120 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
98418dba | 9121 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
c0d27fcc MR |
9122 | |
9123 | fi | |
98418dba | 9124 | if test $ac_cv_header_X11_xpm_h = yes; then |
c0d27fcc | 9125 | echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
98418dba CW |
9126 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
9127 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
503d2be0 | 9128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9129 | else |
98418dba CW |
9130 | ac_check_lib_save_LIBS=$LIBS |
9131 | LIBS="-lXpm -lX11 $LIBS" | |
9132 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9133 | #line $LINENO "configure" |
19650fd6 AS |
9134 | /* confdefs.h. */ |
9135 | _ACEOF | |
9136 | cat confdefs.h >>conftest.$ac_ext | |
9137 | cat >>conftest.$ac_ext <<_ACEOF | |
9138 | /* end confdefs.h. */ | |
98418dba | 9139 | |
ba4481b5 | 9140 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
9141 | #ifdef __cplusplus |
9142 | extern "C" | |
9143 | #endif | |
ba4481b5 | 9144 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 9145 | builtin and then its argument prototype would still apply. */ |
98418dba | 9146 | char XpmReadFileToPixmap (); |
503d2be0 AS |
9147 | int |
9148 | main () | |
9149 | { | |
98418dba | 9150 | XpmReadFileToPixmap (); |
503d2be0 AS |
9151 | ; |
9152 | return 0; | |
9153 | } | |
9154 | _ACEOF | |
9155 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
9157 | (eval $ac_link) 2>&5 |
9158 | ac_status=$? | |
c0d27fcc | 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9160 | (exit $ac_status); } && |
793fa0d7 | 9161 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 9162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
9163 | (eval $ac_try) 2>&5 |
9164 | ac_status=$? | |
c0d27fcc | 9165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9166 | (exit $ac_status); }; }; then |
98418dba | 9167 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
9168 | else |
9169 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9170 | sed 's/^/| /' conftest.$ac_ext >&5 |
9171 | ||
98418dba | 9172 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 AS |
9173 | fi |
9174 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
98418dba | 9175 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 9176 | fi |
c0d27fcc | 9177 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
98418dba CW |
9178 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
9179 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
9180 | HAVE_XPM=yes | |
ba4481b5 DL |
9181 | fi |
9182 | ||
98418dba CW |
9183 | fi |
9184 | ||
c0d27fcc | 9185 | |
98418dba | 9186 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 9187 | echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
98418dba CW |
9188 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
9189 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9190 | #line $LINENO "configure" |
19650fd6 AS |
9191 | /* confdefs.h. */ |
9192 | _ACEOF | |
9193 | cat confdefs.h >>conftest.$ac_ext | |
9194 | cat >>conftest.$ac_ext <<_ACEOF | |
9195 | /* end confdefs.h. */ | |
98418dba CW |
9196 | #include "X11/xpm.h" |
9197 | #ifndef XpmReturnAllocPixels | |
9198 | no_return_alloc_pixels | |
503d2be0 | 9199 | #endif |
ba4481b5 | 9200 | |
98418dba CW |
9201 | _ACEOF |
9202 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 9203 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
9204 | HAVE_XPM=no |
9205 | else | |
9206 | HAVE_XPM=yes | |
9207 | fi | |
9208 | rm -f conftest* | |
ba4481b5 | 9209 | |
c0d27fcc | 9210 | |
98418dba | 9211 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 9212 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
9213 | echo "${ECHO_T}yes" >&6 |
9214 | else | |
c0d27fcc | 9215 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9216 | echo "${ECHO_T}no" >&6 |
9217 | fi | |
9218 | fi | |
9219 | fi | |
9220 | ||
9221 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 9222 | |
c0d27fcc | 9223 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9224 | #define HAVE_XPM 1 |
c0d27fcc | 9225 | _ACEOF |
98418dba CW |
9226 | |
9227 | fi | |
9228 | fi | |
9229 | ||
9230 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
9231 | HAVE_JPEG=no | |
9232 | if test "${HAVE_X11}" = "yes"; then | |
9233 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc MR |
9234 | if test "${ac_cv_header_jerror_h+set}" = set; then |
9235 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
98418dba CW |
9236 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
9237 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
9238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
9239 | fi |
9240 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
9241 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 | |
503d2be0 | 9242 | else |
c0d27fcc MR |
9243 | # Is the header compilable? |
9244 | echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
9245 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 | |
9246 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9247 | #line $LINENO "configure" |
19650fd6 AS |
9248 | /* confdefs.h. */ |
9249 | _ACEOF | |
9250 | cat confdefs.h >>conftest.$ac_ext | |
9251 | cat >>conftest.$ac_ext <<_ACEOF | |
9252 | /* end confdefs.h. */ | |
c0d27fcc MR |
9253 | $ac_includes_default |
9254 | #include <jerror.h> | |
9255 | _ACEOF | |
9256 | rm -f conftest.$ac_objext | |
9257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9258 | (eval $ac_compile) 2>&5 | |
9259 | ac_status=$? | |
9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9261 | (exit $ac_status); } && | |
793fa0d7 | 9262 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
9263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9264 | (eval $ac_try) 2>&5 | |
9265 | ac_status=$? | |
9266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9267 | (exit $ac_status); }; }; then | |
9268 | ac_header_compiler=yes | |
9269 | else | |
9270 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9271 | sed 's/^/| /' conftest.$ac_ext >&5 |
9272 | ||
c0d27fcc MR |
9273 | ac_header_compiler=no |
9274 | fi | |
9275 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9276 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9277 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9278 | ||
9279 | # Is the header present? | |
9280 | echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
9281 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 | |
9282 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9283 | #line $LINENO "configure" |
19650fd6 AS |
9284 | /* confdefs.h. */ |
9285 | _ACEOF | |
9286 | cat confdefs.h >>conftest.$ac_ext | |
9287 | cat >>conftest.$ac_ext <<_ACEOF | |
9288 | /* end confdefs.h. */ | |
98418dba CW |
9289 | #include <jerror.h> |
9290 | _ACEOF | |
c0d27fcc | 9291 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
9292 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9293 | ac_status=$? | |
6bae0ccf | 9294 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9295 | rm -f conftest.er1 |
9296 | cat conftest.err >&5 | |
c0d27fcc | 9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9298 | (exit $ac_status); } >/dev/null; then |
9299 | if test -s conftest.err; then | |
9300 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9301 | else | |
9302 | ac_cpp_err= | |
9303 | fi | |
9304 | else | |
9305 | ac_cpp_err=yes | |
503d2be0 | 9306 | fi |
98418dba | 9307 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 9308 | ac_header_preproc=yes |
ba4481b5 | 9309 | else |
98418dba | 9310 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
9311 | sed 's/^/| /' conftest.$ac_ext >&5 |
9312 | ||
c0d27fcc | 9313 | ac_header_preproc=no |
98418dba CW |
9314 | fi |
9315 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
9316 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9317 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9318 | ||
9319 | # So? What about this header? | |
9320 | case $ac_header_compiler:$ac_header_preproc in | |
9321 | yes:no ) | |
9322 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9323 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
9324 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
9325 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} | |
9326 | ( | |
9327 | cat <<\_ASBOX | |
9328 | ## ------------------------------------ ## | |
9329 | ## Report this to bug-autoconf@gnu.org. ## | |
9330 | ## ------------------------------------ ## | |
9331 | _ASBOX | |
9332 | ) | | |
9333 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 9334 | ;; |
c0d27fcc MR |
9335 | no:yes ) |
9336 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 | |
9337 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
9338 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
9339 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 9340 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 9341 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
9342 | ( |
9343 | cat <<\_ASBOX | |
793fa0d7 DL |
9344 | ## ------------------------------------ ## |
9345 | ## Report this to bug-autoconf@gnu.org. ## | |
9346 | ## ------------------------------------ ## | |
19650fd6 AS |
9347 | _ASBOX |
9348 | ) | | |
9349 | sed "s/^/$as_me: WARNING: /" >&2 | |
9350 | ;; | |
c0d27fcc MR |
9351 | esac |
9352 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
9353 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 | |
9354 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
9355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9356 | else | |
9357 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 9358 | fi |
c0d27fcc | 9359 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
98418dba | 9360 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
c0d27fcc MR |
9361 | |
9362 | fi | |
98418dba | 9363 | if test $ac_cv_header_jerror_h = yes; then |
c0d27fcc | 9364 | echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
98418dba CW |
9365 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
9366 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
503d2be0 | 9367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9368 | else |
98418dba CW |
9369 | ac_check_lib_save_LIBS=$LIBS |
9370 | LIBS="-ljpeg $LIBS" | |
9371 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9372 | #line $LINENO "configure" |
19650fd6 AS |
9373 | /* confdefs.h. */ |
9374 | _ACEOF | |
9375 | cat confdefs.h >>conftest.$ac_ext | |
9376 | cat >>conftest.$ac_ext <<_ACEOF | |
9377 | /* end confdefs.h. */ | |
98418dba CW |
9378 | |
9379 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9380 | #ifdef __cplusplus | |
9381 | extern "C" | |
9382 | #endif | |
9383 | /* We use char because int might match the return type of a gcc2 | |
9384 | builtin and then its argument prototype would still apply. */ | |
9385 | char jpeg_destroy_compress (); | |
503d2be0 AS |
9386 | int |
9387 | main () | |
9388 | { | |
98418dba | 9389 | jpeg_destroy_compress (); |
503d2be0 AS |
9390 | ; |
9391 | return 0; | |
9392 | } | |
9393 | _ACEOF | |
9394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
9396 | (eval $ac_link) 2>&5 |
9397 | ac_status=$? | |
c0d27fcc | 9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9399 | (exit $ac_status); } && |
793fa0d7 | 9400 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 9401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
9402 | (eval $ac_try) 2>&5 |
9403 | ac_status=$? | |
c0d27fcc | 9404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9405 | (exit $ac_status); }; }; then |
98418dba | 9406 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 9407 | else |
503d2be0 | 9408 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
9409 | sed 's/^/| /' conftest.$ac_ext >&5 |
9410 | ||
98418dba | 9411 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 9412 | fi |
503d2be0 | 9413 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 9414 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 9415 | fi |
c0d27fcc | 9416 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
98418dba CW |
9417 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
9418 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
9419 | HAVE_JPEG=yes | |
ba4481b5 | 9420 | fi |
98418dba | 9421 | |
ba4481b5 | 9422 | fi |
98418dba | 9423 | |
c0d27fcc | 9424 | |
ba4481b5 | 9425 | fi |
ba4481b5 | 9426 | |
c0d27fcc | 9427 | |
98418dba | 9428 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 9429 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9430 | #define HAVE_JPEG 1 |
c0d27fcc | 9431 | _ACEOF |
98418dba CW |
9432 | |
9433 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9434 | #line $LINENO "configure" |
19650fd6 AS |
9435 | /* confdefs.h. */ |
9436 | _ACEOF | |
9437 | cat confdefs.h >>conftest.$ac_ext | |
9438 | cat >>conftest.$ac_ext <<_ACEOF | |
9439 | /* end confdefs.h. */ | |
22044edf | 9440 | #include <jpeglib.h> |
98418dba CW |
9441 | version=JPEG_LIB_VERSION |
9442 | ||
9443 | _ACEOF | |
9444 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 9445 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 9446 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9447 | #define HAVE_JPEG 1 |
c0d27fcc | 9448 | _ACEOF |
ba4481b5 | 9449 | |
98418dba | 9450 | else |
c0d27fcc | 9451 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
9452 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
9453 | HAVE_JPEG=no | |
ba4481b5 | 9454 | fi |
98418dba | 9455 | rm -f conftest* |
ba4481b5 | 9456 | |
98418dba CW |
9457 | fi |
9458 | fi | |
503d2be0 | 9459 | |
98418dba CW |
9460 | ### Use -lpng if available, unless `--with-png=no'. |
9461 | HAVE_PNG=no | |
9462 | if test "${HAVE_X11}" = "yes"; then | |
9463 | if test "${with_png}" != "no"; then | |
f57bd967 DL |
9464 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
9465 | # in /usr/include/libpng. | |
9466 | ||
9467 | ||
9468 | for ac_header in png.h libpng/png.h | |
9469 | do | |
9470 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9471 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9472 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9473 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9474 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 9475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 9476 | fi |
f57bd967 DL |
9477 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9478 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
503d2be0 | 9479 | else |
c0d27fcc | 9480 | # Is the header compilable? |
f57bd967 DL |
9481 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9482 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
c0d27fcc | 9483 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 9484 | #line $LINENO "configure" |
19650fd6 AS |
9485 | /* confdefs.h. */ |
9486 | _ACEOF | |
9487 | cat confdefs.h >>conftest.$ac_ext | |
9488 | cat >>conftest.$ac_ext <<_ACEOF | |
9489 | /* end confdefs.h. */ | |
c0d27fcc | 9490 | $ac_includes_default |
f57bd967 | 9491 | #include <$ac_header> |
c0d27fcc MR |
9492 | _ACEOF |
9493 | rm -f conftest.$ac_objext | |
9494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9495 | (eval $ac_compile) 2>&5 | |
9496 | ac_status=$? | |
9497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9498 | (exit $ac_status); } && | |
793fa0d7 | 9499 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
9500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9501 | (eval $ac_try) 2>&5 | |
9502 | ac_status=$? | |
9503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9504 | (exit $ac_status); }; }; then | |
9505 | ac_header_compiler=yes | |
9506 | else | |
9507 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9508 | sed 's/^/| /' conftest.$ac_ext >&5 |
9509 | ||
c0d27fcc MR |
9510 | ac_header_compiler=no |
9511 | fi | |
9512 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9513 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9514 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9515 | ||
9516 | # Is the header present? | |
f57bd967 DL |
9517 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9518 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
c0d27fcc | 9519 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 9520 | #line $LINENO "configure" |
19650fd6 AS |
9521 | /* confdefs.h. */ |
9522 | _ACEOF | |
9523 | cat confdefs.h >>conftest.$ac_ext | |
9524 | cat >>conftest.$ac_ext <<_ACEOF | |
9525 | /* end confdefs.h. */ | |
f57bd967 | 9526 | #include <$ac_header> |
503d2be0 | 9527 | _ACEOF |
c0d27fcc | 9528 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9529 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9530 | ac_status=$? | |
6bae0ccf | 9531 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
9532 | rm -f conftest.er1 |
9533 | cat conftest.err >&5 | |
c0d27fcc | 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
9535 | (exit $ac_status); } >/dev/null; then |
9536 | if test -s conftest.err; then | |
9537 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9538 | else | |
9539 | ac_cpp_err= | |
9540 | fi | |
9541 | else | |
9542 | ac_cpp_err=yes | |
9543 | fi | |
9544 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 9545 | ac_header_preproc=yes |
503d2be0 AS |
9546 | else |
9547 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9548 | sed 's/^/| /' conftest.$ac_ext >&5 |
9549 | ||
c0d27fcc | 9550 | ac_header_preproc=no |
ba4481b5 | 9551 | fi |
503d2be0 | 9552 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
9553 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9554 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9555 | ||
9556 | # So? What about this header? | |
9557 | case $ac_header_compiler:$ac_header_preproc in | |
9558 | yes:no ) | |
f57bd967 DL |
9559 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9560 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
9561 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9562 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9563 | ( | |
9564 | cat <<\_ASBOX | |
9565 | ## ------------------------------------ ## | |
9566 | ## Report this to bug-autoconf@gnu.org. ## | |
9567 | ## ------------------------------------ ## | |
9568 | _ASBOX | |
9569 | ) | | |
9570 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 9571 | ;; |
c0d27fcc | 9572 | no:yes ) |
f57bd967 DL |
9573 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9574 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
9575 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9576 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
f57bd967 | 9577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 9578 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
9579 | ( |
9580 | cat <<\_ASBOX | |
793fa0d7 DL |
9581 | ## ------------------------------------ ## |
9582 | ## Report this to bug-autoconf@gnu.org. ## | |
9583 | ## ------------------------------------ ## | |
19650fd6 AS |
9584 | _ASBOX |
9585 | ) | | |
9586 | sed "s/^/$as_me: WARNING: /" >&2 | |
9587 | ;; | |
c0d27fcc | 9588 | esac |
f57bd967 DL |
9589 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9591 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
c0d27fcc MR |
9592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9593 | else | |
793fa0d7 | 9594 | eval "$as_ac_Header=$ac_header_preproc" |
f57bd967 DL |
9595 | fi |
9596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9597 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9598 | ||
ba4481b5 | 9599 | fi |
f57bd967 DL |
9600 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9601 | cat >>confdefs.h <<_ACEOF | |
9602 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9603 | _ACEOF | |
c0d27fcc MR |
9604 | |
9605 | fi | |
f57bd967 DL |
9606 | |
9607 | done | |
9608 | ||
9609 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
9610 | echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 | |
98418dba CW |
9611 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
9612 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
503d2be0 | 9613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9614 | else |
98418dba CW |
9615 | ac_check_lib_save_LIBS=$LIBS |
9616 | LIBS="-lpng -lz -lm $LIBS" | |
9617 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9618 | #line $LINENO "configure" |
19650fd6 AS |
9619 | /* confdefs.h. */ |
9620 | _ACEOF | |
9621 | cat confdefs.h >>conftest.$ac_ext | |
9622 | cat >>conftest.$ac_ext <<_ACEOF | |
9623 | /* end confdefs.h. */ | |
98418dba | 9624 | |
ba4481b5 | 9625 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
9626 | #ifdef __cplusplus |
9627 | extern "C" | |
9628 | #endif | |
ba4481b5 | 9629 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 9630 | builtin and then its argument prototype would still apply. */ |
98418dba | 9631 | char png_get_channels (); |
503d2be0 AS |
9632 | int |
9633 | main () | |
9634 | { | |
98418dba | 9635 | png_get_channels (); |
503d2be0 AS |
9636 | ; |
9637 | return 0; | |
9638 | } | |
9639 | _ACEOF | |
9640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
9642 | (eval $ac_link) 2>&5 |
9643 | ac_status=$? | |
c0d27fcc | 9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9645 | (exit $ac_status); } && |
793fa0d7 | 9646 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 9647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
9648 | (eval $ac_try) 2>&5 |
9649 | ac_status=$? | |
c0d27fcc | 9650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9651 | (exit $ac_status); }; }; then |
98418dba | 9652 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 9653 | else |
98418dba | 9654 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
9655 | sed 's/^/| /' conftest.$ac_ext >&5 |
9656 | ||
98418dba | 9657 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 9658 | fi |
98418dba CW |
9659 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
9660 | LIBS=$ac_check_lib_save_LIBS | |
73b77ee5 | 9661 | fi |
c0d27fcc | 9662 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
98418dba CW |
9663 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
9664 | if test $ac_cv_lib_png_png_get_channels = yes; then | |
9665 | HAVE_PNG=yes | |
73b77ee5 | 9666 | fi |
503d2be0 | 9667 | |
f57bd967 | 9668 | fi |
98418dba CW |
9669 | fi |
9670 | ||
9671 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 9672 | |
c0d27fcc | 9673 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9674 | #define HAVE_PNG 1 |
c0d27fcc | 9675 | _ACEOF |
73b77ee5 | 9676 | |
98418dba | 9677 | fi |
73b77ee5 GM |
9678 | fi |
9679 | ||
98418dba CW |
9680 | ### Use -ltiff if available, unless `--with-tiff=no'. |
9681 | HAVE_TIFF=no | |
9682 | if test "${HAVE_X11}" = "yes"; then | |
9683 | if test "${with_tiff}" != "no"; then | |
c0d27fcc MR |
9684 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
9685 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
98418dba CW |
9686 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
9687 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
9688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
9689 | fi |
9690 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
9691 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
98418dba | 9692 | else |
c0d27fcc MR |
9693 | # Is the header compilable? |
9694 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
9695 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
9696 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9697 | #line $LINENO "configure" |
19650fd6 AS |
9698 | /* confdefs.h. */ |
9699 | _ACEOF | |
9700 | cat confdefs.h >>conftest.$ac_ext | |
9701 | cat >>conftest.$ac_ext <<_ACEOF | |
9702 | /* end confdefs.h. */ | |
c0d27fcc MR |
9703 | $ac_includes_default |
9704 | #include <tiffio.h> | |
9705 | _ACEOF | |
9706 | rm -f conftest.$ac_objext | |
9707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9708 | (eval $ac_compile) 2>&5 | |
9709 | ac_status=$? | |
9710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9711 | (exit $ac_status); } && | |
793fa0d7 | 9712 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
9713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9714 | (eval $ac_try) 2>&5 | |
9715 | ac_status=$? | |
9716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9717 | (exit $ac_status); }; }; then | |
9718 | ac_header_compiler=yes | |
9719 | else | |
9720 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9721 | sed 's/^/| /' conftest.$ac_ext >&5 |
9722 | ||
c0d27fcc MR |
9723 | ac_header_compiler=no |
9724 | fi | |
9725 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9726 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9727 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9728 | ||
9729 | # Is the header present? | |
9730 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
9731 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
9732 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9733 | #line $LINENO "configure" |
19650fd6 AS |
9734 | /* confdefs.h. */ |
9735 | _ACEOF | |
9736 | cat confdefs.h >>conftest.$ac_ext | |
9737 | cat >>conftest.$ac_ext <<_ACEOF | |
9738 | /* end confdefs.h. */ | |
98418dba CW |
9739 | #include <tiffio.h> |
9740 | _ACEOF | |
c0d27fcc | 9741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
9742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9743 | ac_status=$? | |
6bae0ccf | 9744 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9745 | rm -f conftest.er1 |
9746 | cat conftest.err >&5 | |
c0d27fcc | 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9748 | (exit $ac_status); } >/dev/null; then |
9749 | if test -s conftest.err; then | |
9750 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9751 | else | |
9752 | ac_cpp_err= | |
9753 | fi | |
9754 | else | |
9755 | ac_cpp_err=yes | |
9756 | fi | |
9757 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 9758 | ac_header_preproc=yes |
98418dba CW |
9759 | else |
9760 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9761 | sed 's/^/| /' conftest.$ac_ext >&5 |
9762 | ||
c0d27fcc | 9763 | ac_header_preproc=no |
98418dba CW |
9764 | fi |
9765 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
9766 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9767 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9768 | ||
9769 | # So? What about this header? | |
9770 | case $ac_header_compiler:$ac_header_preproc in | |
9771 | yes:no ) | |
9772 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9773 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
9774 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
9775 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
9776 | ( | |
9777 | cat <<\_ASBOX | |
9778 | ## ------------------------------------ ## | |
9779 | ## Report this to bug-autoconf@gnu.org. ## | |
9780 | ## ------------------------------------ ## | |
9781 | _ASBOX | |
9782 | ) | | |
9783 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 9784 | ;; |
c0d27fcc MR |
9785 | no:yes ) |
9786 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
9787 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
9788 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
9789 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 9790 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 9791 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
9792 | ( |
9793 | cat <<\_ASBOX | |
793fa0d7 DL |
9794 | ## ------------------------------------ ## |
9795 | ## Report this to bug-autoconf@gnu.org. ## | |
9796 | ## ------------------------------------ ## | |
19650fd6 AS |
9797 | _ASBOX |
9798 | ) | | |
9799 | sed "s/^/$as_me: WARNING: /" >&2 | |
9800 | ;; | |
c0d27fcc MR |
9801 | esac |
9802 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
9803 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
9804 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
9805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9806 | else | |
9807 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 9808 | fi |
c0d27fcc | 9809 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
98418dba | 9810 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
c0d27fcc MR |
9811 | |
9812 | fi | |
98418dba CW |
9813 | if test $ac_cv_header_tiffio_h = yes; then |
9814 | tifflibs="-lz -lm" | |
9815 | # At least one tiff package requires the jpeg library. | |
9816 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
c0d27fcc | 9817 | echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
98418dba CW |
9818 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
9819 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
503d2be0 | 9820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 9821 | else |
503d2be0 | 9822 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 9823 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 9824 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 9825 | #line $LINENO "configure" |
19650fd6 AS |
9826 | /* confdefs.h. */ |
9827 | _ACEOF | |
9828 | cat confdefs.h >>conftest.$ac_ext | |
9829 | cat >>conftest.$ac_ext <<_ACEOF | |
9830 | /* end confdefs.h. */ | |
503d2be0 | 9831 | |
73b77ee5 | 9832 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
9833 | #ifdef __cplusplus |
9834 | extern "C" | |
9835 | #endif | |
73b77ee5 | 9836 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 9837 | builtin and then its argument prototype would still apply. */ |
98418dba | 9838 | char TIFFGetVersion (); |
503d2be0 AS |
9839 | int |
9840 | main () | |
9841 | { | |
98418dba | 9842 | TIFFGetVersion (); |
503d2be0 AS |
9843 | ; |
9844 | return 0; | |
9845 | } | |
9846 | _ACEOF | |
9847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
9849 | (eval $ac_link) 2>&5 |
9850 | ac_status=$? | |
c0d27fcc | 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9852 | (exit $ac_status); } && |
793fa0d7 | 9853 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 9854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
9855 | (eval $ac_try) 2>&5 |
9856 | ac_status=$? | |
c0d27fcc | 9857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 9858 | (exit $ac_status); }; }; then |
98418dba | 9859 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
9860 | else |
9861 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9862 | sed 's/^/| /' conftest.$ac_ext >&5 |
9863 | ||
98418dba | 9864 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 AS |
9865 | fi |
9866 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9867 | LIBS=$ac_check_lib_save_LIBS | |
9868 | fi | |
c0d27fcc | 9869 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
98418dba CW |
9870 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
9871 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
9872 | HAVE_TIFF=yes | |
9873 | fi | |
9874 | ||
9875 | fi | |
73b77ee5 | 9876 | |
c0d27fcc | 9877 | |
98418dba CW |
9878 | fi |
9879 | ||
9880 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 9881 | |
c0d27fcc | 9882 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9883 | #define HAVE_TIFF 1 |
c0d27fcc | 9884 | _ACEOF |
98418dba CW |
9885 | |
9886 | fi | |
73b77ee5 GM |
9887 | fi |
9888 | ||
98418dba CW |
9889 | ### Use -lgif if available, unless `--with-gif=no'. |
9890 | HAVE_GIF=no | |
9891 | if test "${HAVE_X11}" = "yes"; then | |
9892 | if test "${with_gif}" != "no"; then | |
c0d27fcc MR |
9893 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
9894 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
98418dba CW |
9895 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
9896 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
9897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
9898 | fi |
9899 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
9900 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
98418dba | 9901 | else |
c0d27fcc MR |
9902 | # Is the header compilable? |
9903 | echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
9904 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 | |
9905 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9906 | #line $LINENO "configure" |
19650fd6 AS |
9907 | /* confdefs.h. */ |
9908 | _ACEOF | |
9909 | cat confdefs.h >>conftest.$ac_ext | |
9910 | cat >>conftest.$ac_ext <<_ACEOF | |
9911 | /* end confdefs.h. */ | |
c0d27fcc MR |
9912 | $ac_includes_default |
9913 | #include <gif_lib.h> | |
9914 | _ACEOF | |
9915 | rm -f conftest.$ac_objext | |
9916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9917 | (eval $ac_compile) 2>&5 | |
9918 | ac_status=$? | |
9919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9920 | (exit $ac_status); } && | |
793fa0d7 | 9921 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
9922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9923 | (eval $ac_try) 2>&5 | |
9924 | ac_status=$? | |
9925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9926 | (exit $ac_status); }; }; then | |
9927 | ac_header_compiler=yes | |
9928 | else | |
9929 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9930 | sed 's/^/| /' conftest.$ac_ext >&5 |
9931 | ||
c0d27fcc MR |
9932 | ac_header_compiler=no |
9933 | fi | |
9934 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9935 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9936 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9937 | ||
9938 | # Is the header present? | |
9939 | echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
9940 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 | |
9941 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 9942 | #line $LINENO "configure" |
19650fd6 AS |
9943 | /* confdefs.h. */ |
9944 | _ACEOF | |
9945 | cat confdefs.h >>conftest.$ac_ext | |
9946 | cat >>conftest.$ac_ext <<_ACEOF | |
9947 | /* end confdefs.h. */ | |
98418dba CW |
9948 | #include <gif_lib.h> |
9949 | _ACEOF | |
c0d27fcc | 9950 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
9951 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9952 | ac_status=$? | |
6bae0ccf | 9953 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9954 | rm -f conftest.er1 |
9955 | cat conftest.err >&5 | |
c0d27fcc | 9956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9957 | (exit $ac_status); } >/dev/null; then |
9958 | if test -s conftest.err; then | |
9959 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9960 | else | |
9961 | ac_cpp_err= | |
9962 | fi | |
9963 | else | |
9964 | ac_cpp_err=yes | |
9965 | fi | |
9966 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 9967 | ac_header_preproc=yes |
98418dba CW |
9968 | else |
9969 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9970 | sed 's/^/| /' conftest.$ac_ext >&5 |
9971 | ||
c0d27fcc | 9972 | ac_header_preproc=no |
98418dba CW |
9973 | fi |
9974 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
9975 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9976 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9977 | ||
9978 | # So? What about this header? | |
9979 | case $ac_header_compiler:$ac_header_preproc in | |
9980 | yes:no ) | |
9981 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9982 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
9983 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
9984 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} | |
9985 | ( | |
9986 | cat <<\_ASBOX | |
9987 | ## ------------------------------------ ## | |
9988 | ## Report this to bug-autoconf@gnu.org. ## | |
9989 | ## ------------------------------------ ## | |
9990 | _ASBOX | |
9991 | ) | | |
9992 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 9993 | ;; |
c0d27fcc MR |
9994 | no:yes ) |
9995 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 | |
9996 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
9997 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
9998 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 9999 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 10000 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
10001 | ( |
10002 | cat <<\_ASBOX | |
793fa0d7 DL |
10003 | ## ------------------------------------ ## |
10004 | ## Report this to bug-autoconf@gnu.org. ## | |
10005 | ## ------------------------------------ ## | |
19650fd6 AS |
10006 | _ASBOX |
10007 | ) | | |
10008 | sed "s/^/$as_me: WARNING: /" >&2 | |
10009 | ;; | |
c0d27fcc MR |
10010 | esac |
10011 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
10012 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
10013 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
10014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10015 | else | |
10016 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 10017 | fi |
c0d27fcc | 10018 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
98418dba | 10019 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
c0d27fcc MR |
10020 | |
10021 | fi | |
98418dba CW |
10022 | if test $ac_cv_header_gif_lib_h = yes; then |
10023 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
10024 | # Earlier versions can crash Emacs. | |
c0d27fcc | 10025 | echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 |
98418dba CW |
10026 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
10027 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 10028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 10029 | else |
503d2be0 | 10030 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 10031 | LIBS="-lungif $LIBS" |
503d2be0 | 10032 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 10033 | #line $LINENO "configure" |
19650fd6 AS |
10034 | /* confdefs.h. */ |
10035 | _ACEOF | |
10036 | cat confdefs.h >>conftest.$ac_ext | |
10037 | cat >>conftest.$ac_ext <<_ACEOF | |
10038 | /* end confdefs.h. */ | |
73b77ee5 | 10039 | |
98418dba CW |
10040 | /* Override any gcc2 internal prototype to avoid an error. */ |
10041 | #ifdef __cplusplus | |
10042 | extern "C" | |
10043 | #endif | |
10044 | /* We use char because int might match the return type of a gcc2 | |
10045 | builtin and then its argument prototype would still apply. */ | |
10046 | char EGifPutExtensionLast (); | |
503d2be0 AS |
10047 | int |
10048 | main () | |
10049 | { | |
98418dba | 10050 | EGifPutExtensionLast (); |
503d2be0 AS |
10051 | ; |
10052 | return 0; | |
10053 | } | |
10054 | _ACEOF | |
10055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10057 | (eval $ac_link) 2>&5 |
10058 | ac_status=$? | |
c0d27fcc | 10059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10060 | (exit $ac_status); } && |
793fa0d7 | 10061 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 10062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10063 | (eval $ac_try) 2>&5 |
10064 | ac_status=$? | |
c0d27fcc | 10065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10066 | (exit $ac_status); }; }; then |
10067 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
10068 | else | |
10069 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10070 | sed 's/^/| /' conftest.$ac_ext >&5 |
10071 | ||
98418dba CW |
10072 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
10073 | fi | |
10074 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10075 | LIBS=$ac_check_lib_save_LIBS | |
10076 | fi | |
c0d27fcc | 10077 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
98418dba CW |
10078 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
10079 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
10080 | HAVE_GIF=yes | |
10081 | fi | |
10082 | ||
10083 | fi | |
10084 | ||
c0d27fcc | 10085 | |
98418dba CW |
10086 | fi |
10087 | ||
10088 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 10089 | |
c0d27fcc | 10090 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10091 | #define HAVE_GIF 1 |
c0d27fcc | 10092 | _ACEOF |
98418dba CW |
10093 | |
10094 | fi | |
10095 | fi | |
10096 | ||
c0d27fcc MR |
10097 | ### Use Mac OS X Carbon API to implement GUI. |
10098 | HAVE_CARBON=no | |
10099 | if test "${with_carbon}" != "no"; then | |
10100 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
10101 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
10102 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
10103 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
10104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10105 | fi | |
10106 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 | |
10107 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 | |
10108 | else | |
10109 | # Is the header compilable? | |
10110 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 | |
10111 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 | |
10112 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 10113 | #line $LINENO "configure" |
19650fd6 AS |
10114 | /* confdefs.h. */ |
10115 | _ACEOF | |
10116 | cat confdefs.h >>conftest.$ac_ext | |
10117 | cat >>conftest.$ac_ext <<_ACEOF | |
10118 | /* end confdefs.h. */ | |
c0d27fcc MR |
10119 | $ac_includes_default |
10120 | #include <Carbon/Carbon.h> | |
10121 | _ACEOF | |
10122 | rm -f conftest.$ac_objext | |
10123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10124 | (eval $ac_compile) 2>&5 | |
10125 | ac_status=$? | |
10126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10127 | (exit $ac_status); } && | |
793fa0d7 | 10128 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
10129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10130 | (eval $ac_try) 2>&5 | |
10131 | ac_status=$? | |
10132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10133 | (exit $ac_status); }; }; then | |
10134 | ac_header_compiler=yes | |
10135 | else | |
10136 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10137 | sed 's/^/| /' conftest.$ac_ext >&5 |
10138 | ||
c0d27fcc MR |
10139 | ac_header_compiler=no |
10140 | fi | |
10141 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10142 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10143 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10144 | ||
10145 | # Is the header present? | |
10146 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 | |
10147 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 | |
10148 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 10149 | #line $LINENO "configure" |
19650fd6 AS |
10150 | /* confdefs.h. */ |
10151 | _ACEOF | |
10152 | cat confdefs.h >>conftest.$ac_ext | |
10153 | cat >>conftest.$ac_ext <<_ACEOF | |
10154 | /* end confdefs.h. */ | |
e0f712ba AC |
10155 | #include <Carbon/Carbon.h> |
10156 | _ACEOF | |
c0d27fcc | 10157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
e0f712ba AC |
10158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10159 | ac_status=$? | |
6bae0ccf | 10160 | grep -v '^ *+' conftest.er1 >conftest.err |
e0f712ba AC |
10161 | rm -f conftest.er1 |
10162 | cat conftest.err >&5 | |
c0d27fcc | 10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e0f712ba AC |
10164 | (exit $ac_status); } >/dev/null; then |
10165 | if test -s conftest.err; then | |
10166 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10167 | else | |
10168 | ac_cpp_err= | |
10169 | fi | |
10170 | else | |
10171 | ac_cpp_err=yes | |
10172 | fi | |
10173 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 10174 | ac_header_preproc=yes |
e0f712ba AC |
10175 | else |
10176 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10177 | sed 's/^/| /' conftest.$ac_ext >&5 |
10178 | ||
c0d27fcc | 10179 | ac_header_preproc=no |
e0f712ba AC |
10180 | fi |
10181 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
10182 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10183 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10184 | ||
10185 | # So? What about this header? | |
10186 | case $ac_header_compiler:$ac_header_preproc in | |
10187 | yes:no ) | |
10188 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10189 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
10190 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
10191 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} | |
10192 | ( | |
10193 | cat <<\_ASBOX | |
10194 | ## ------------------------------------ ## | |
10195 | ## Report this to bug-autoconf@gnu.org. ## | |
10196 | ## ------------------------------------ ## | |
10197 | _ASBOX | |
10198 | ) | | |
10199 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 10200 | ;; |
c0d27fcc MR |
10201 | no:yes ) |
10202 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 | |
10203 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
10204 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
10205 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 10206 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 10207 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
10208 | ( |
10209 | cat <<\_ASBOX | |
793fa0d7 DL |
10210 | ## ------------------------------------ ## |
10211 | ## Report this to bug-autoconf@gnu.org. ## | |
10212 | ## ------------------------------------ ## | |
19650fd6 AS |
10213 | _ASBOX |
10214 | ) | | |
10215 | sed "s/^/$as_me: WARNING: /" >&2 | |
10216 | ;; | |
c0d27fcc MR |
10217 | esac |
10218 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
10219 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
10220 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
10221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10222 | else | |
10223 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
e0f712ba | 10224 | fi |
c0d27fcc | 10225 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
e0f712ba | 10226 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
c0d27fcc MR |
10227 | |
10228 | fi | |
e0f712ba AC |
10229 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
10230 | HAVE_CARBON=yes | |
10231 | fi | |
10232 | ||
c0d27fcc | 10233 | |
e0f712ba AC |
10234 | fi |
10235 | ||
10236 | if test "${HAVE_CARBON}" = "yes"; then | |
e3ba1015 | 10237 | |
c0d27fcc | 10238 | cat >>confdefs.h <<\_ACEOF |
e0f712ba | 10239 | #define HAVE_CARBON 1 |
c0d27fcc | 10240 | _ACEOF |
e0f712ba | 10241 | |
6a3a24fa JD |
10242 | window_system=mac |
10243 | ## Specify the install directory | |
10244 | carbon_appdir= | |
10245 | if test "${carbon_appdir_x}" != ""; then | |
10246 | case ${carbon_appdir_x} in | |
10247 | y | ye | yes) carbon_appdir=/Applications ;; | |
10248 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
10249 | esac | |
10250 | fi | |
8f417b3b AS |
10251 | # We also have mouse menus. |
10252 | HAVE_MENUS=yes | |
e0f712ba AC |
10253 | fi |
10254 | ||
98418dba CW |
10255 | ### Use session management (-lSM -lICE) if available |
10256 | HAVE_X_SM=no | |
10257 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc MR |
10258 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
10259 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
98418dba CW |
10260 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
10261 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
10262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
10263 | fi |
10264 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
10265 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 | |
503d2be0 | 10266 | else |
c0d27fcc MR |
10267 | # Is the header compilable? |
10268 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
10269 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 | |
10270 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 10271 | #line $LINENO "configure" |
19650fd6 AS |
10272 | /* confdefs.h. */ |
10273 | _ACEOF | |
10274 | cat confdefs.h >>conftest.$ac_ext | |
10275 | cat >>conftest.$ac_ext <<_ACEOF | |
10276 | /* end confdefs.h. */ | |
c0d27fcc MR |
10277 | $ac_includes_default |
10278 | #include <X11/SM/SMlib.h> | |
10279 | _ACEOF | |
10280 | rm -f conftest.$ac_objext | |
10281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10282 | (eval $ac_compile) 2>&5 | |
10283 | ac_status=$? | |
10284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10285 | (exit $ac_status); } && | |
793fa0d7 | 10286 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
10287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10288 | (eval $ac_try) 2>&5 | |
10289 | ac_status=$? | |
10290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10291 | (exit $ac_status); }; }; then | |
10292 | ac_header_compiler=yes | |
10293 | else | |
10294 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10295 | sed 's/^/| /' conftest.$ac_ext >&5 |
10296 | ||
c0d27fcc MR |
10297 | ac_header_compiler=no |
10298 | fi | |
10299 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10300 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10301 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10302 | ||
10303 | # Is the header present? | |
10304 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
10305 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 | |
10306 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 10307 | #line $LINENO "configure" |
19650fd6 AS |
10308 | /* confdefs.h. */ |
10309 | _ACEOF | |
10310 | cat confdefs.h >>conftest.$ac_ext | |
10311 | cat >>conftest.$ac_ext <<_ACEOF | |
10312 | /* end confdefs.h. */ | |
98418dba CW |
10313 | #include <X11/SM/SMlib.h> |
10314 | _ACEOF | |
c0d27fcc | 10315 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
10316 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10317 | ac_status=$? | |
6bae0ccf | 10318 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
10319 | rm -f conftest.er1 |
10320 | cat conftest.err >&5 | |
c0d27fcc | 10321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10322 | (exit $ac_status); } >/dev/null; then |
10323 | if test -s conftest.err; then | |
10324 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10325 | else | |
10326 | ac_cpp_err= | |
10327 | fi | |
10328 | else | |
10329 | ac_cpp_err=yes | |
503d2be0 | 10330 | fi |
98418dba | 10331 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 10332 | ac_header_preproc=yes |
98418dba CW |
10333 | else |
10334 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10335 | sed 's/^/| /' conftest.$ac_ext >&5 |
10336 | ||
c0d27fcc | 10337 | ac_header_preproc=no |
98418dba CW |
10338 | fi |
10339 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
10340 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10341 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10342 | ||
10343 | # So? What about this header? | |
10344 | case $ac_header_compiler:$ac_header_preproc in | |
10345 | yes:no ) | |
10346 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10347 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
10348 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
10349 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} | |
10350 | ( | |
10351 | cat <<\_ASBOX | |
10352 | ## ------------------------------------ ## | |
10353 | ## Report this to bug-autoconf@gnu.org. ## | |
10354 | ## ------------------------------------ ## | |
10355 | _ASBOX | |
10356 | ) | | |
10357 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 10358 | ;; |
c0d27fcc MR |
10359 | no:yes ) |
10360 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 | |
10361 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
10362 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
10363 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 10364 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 10365 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
10366 | ( |
10367 | cat <<\_ASBOX | |
793fa0d7 DL |
10368 | ## ------------------------------------ ## |
10369 | ## Report this to bug-autoconf@gnu.org. ## | |
10370 | ## ------------------------------------ ## | |
19650fd6 AS |
10371 | _ASBOX |
10372 | ) | | |
10373 | sed "s/^/$as_me: WARNING: /" >&2 | |
10374 | ;; | |
c0d27fcc MR |
10375 | esac |
10376 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
10377 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
10378 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
10379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10380 | else | |
10381 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 10382 | fi |
c0d27fcc | 10383 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
98418dba | 10384 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
c0d27fcc MR |
10385 | |
10386 | fi | |
98418dba | 10387 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
c0d27fcc | 10388 | echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
98418dba CW |
10389 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
10390 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | |
503d2be0 | 10391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 10392 | else |
503d2be0 | 10393 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 10394 | LIBS="-lSM $LIBS" |
503d2be0 | 10395 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 10396 | #line $LINENO "configure" |
19650fd6 AS |
10397 | /* confdefs.h. */ |
10398 | _ACEOF | |
10399 | cat confdefs.h >>conftest.$ac_ext | |
10400 | cat >>conftest.$ac_ext <<_ACEOF | |
10401 | /* end confdefs.h. */ | |
503d2be0 | 10402 | |
73b77ee5 | 10403 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10404 | #ifdef __cplusplus |
10405 | extern "C" | |
10406 | #endif | |
73b77ee5 | 10407 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 10408 | builtin and then its argument prototype would still apply. */ |
98418dba | 10409 | char SmcOpenConnection (); |
503d2be0 AS |
10410 | int |
10411 | main () | |
10412 | { | |
98418dba | 10413 | SmcOpenConnection (); |
503d2be0 AS |
10414 | ; |
10415 | return 0; | |
10416 | } | |
10417 | _ACEOF | |
10418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10420 | (eval $ac_link) 2>&5 |
10421 | ac_status=$? | |
c0d27fcc | 10422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10423 | (exit $ac_status); } && |
793fa0d7 | 10424 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 10425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10426 | (eval $ac_try) 2>&5 |
10427 | ac_status=$? | |
c0d27fcc | 10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10429 | (exit $ac_status); }; }; then |
98418dba | 10430 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
10431 | else |
10432 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10433 | sed 's/^/| /' conftest.$ac_ext >&5 |
10434 | ||
98418dba | 10435 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 AS |
10436 | fi |
10437 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10438 | LIBS=$ac_check_lib_save_LIBS | |
10439 | fi | |
c0d27fcc | 10440 | echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
98418dba CW |
10441 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
10442 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | |
10443 | HAVE_X_SM=yes | |
10444 | else | |
10445 | -lICE | |
73b77ee5 GM |
10446 | fi |
10447 | ||
73b77ee5 | 10448 | fi |
73b77ee5 | 10449 | |
c0d27fcc MR |
10450 | |
10451 | ||
98418dba | 10452 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 10453 | |
c0d27fcc | 10454 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10455 | #define HAVE_X_SM 1 |
c0d27fcc | 10456 | _ACEOF |
73b77ee5 | 10457 | |
98418dba CW |
10458 | case "$LIBS" in |
10459 | *-lSM*) ;; | |
10460 | *) LIBS="-lSM -lICE $LIBS" ;; | |
10461 | esac | |
73b77ee5 | 10462 | fi |
98418dba | 10463 | fi |
73b77ee5 | 10464 | |
98418dba | 10465 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
c0d27fcc | 10466 | echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
98418dba CW |
10467 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
10468 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
10469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10470 | else | |
10471 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 10472 | #line $LINENO "configure" |
19650fd6 AS |
10473 | /* confdefs.h. */ |
10474 | _ACEOF | |
10475 | cat confdefs.h >>conftest.$ac_ext | |
10476 | cat >>conftest.$ac_ext <<_ACEOF | |
10477 | /* end confdefs.h. */ | |
98418dba | 10478 | #include <netdb.h> |
503d2be0 AS |
10479 | int |
10480 | main () | |
10481 | { | |
98418dba | 10482 | return h_errno; |
503d2be0 AS |
10483 | ; |
10484 | return 0; | |
10485 | } | |
10486 | _ACEOF | |
10487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10489 | (eval $ac_link) 2>&5 |
10490 | ac_status=$? | |
c0d27fcc | 10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10492 | (exit $ac_status); } && |
793fa0d7 | 10493 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 10494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10495 | (eval $ac_try) 2>&5 |
10496 | ac_status=$? | |
c0d27fcc | 10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10498 | (exit $ac_status); }; }; then |
98418dba | 10499 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 10500 | else |
503d2be0 | 10501 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10502 | sed 's/^/| /' conftest.$ac_ext >&5 |
10503 | ||
98418dba | 10504 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 10505 | fi |
503d2be0 | 10506 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10507 | fi |
c0d27fcc | 10508 | echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
98418dba CW |
10509 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
10510 | if test $emacs_cv_netdb_declares_h_errno = yes; then | |
b936fae4 | 10511 | |
c0d27fcc | 10512 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10513 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 10514 | _ACEOF |
73b77ee5 | 10515 | |
98418dba CW |
10516 | fi |
10517 | ||
10518 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
10519 | # for constant arguments. Useless! | |
c0d27fcc | 10520 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
98418dba CW |
10521 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
10522 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
10523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10524 | else | |
10525 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 10526 | #line $LINENO "configure" |
19650fd6 AS |
10527 | /* confdefs.h. */ |
10528 | _ACEOF | |
10529 | cat confdefs.h >>conftest.$ac_ext | |
10530 | cat >>conftest.$ac_ext <<_ACEOF | |
10531 | /* end confdefs.h. */ | |
98418dba | 10532 | #include <alloca.h> |
503d2be0 AS |
10533 | int |
10534 | main () | |
10535 | { | |
98418dba | 10536 | char *p = (char *) alloca (2 * sizeof (int)); |
503d2be0 AS |
10537 | ; |
10538 | return 0; | |
10539 | } | |
10540 | _ACEOF | |
10541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10543 | (eval $ac_link) 2>&5 |
10544 | ac_status=$? | |
c0d27fcc | 10545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10546 | (exit $ac_status); } && |
793fa0d7 | 10547 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 10548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10549 | (eval $ac_try) 2>&5 |
10550 | ac_status=$? | |
c0d27fcc | 10551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10552 | (exit $ac_status); }; }; then |
98418dba | 10553 | ac_cv_working_alloca_h=yes |
73b77ee5 | 10554 | else |
503d2be0 | 10555 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10556 | sed 's/^/| /' conftest.$ac_ext >&5 |
10557 | ||
98418dba | 10558 | ac_cv_working_alloca_h=no |
73b77ee5 | 10559 | fi |
503d2be0 | 10560 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10561 | fi |
c0d27fcc | 10562 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
98418dba CW |
10563 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
10564 | if test $ac_cv_working_alloca_h = yes; then | |
73b77ee5 | 10565 | |
c0d27fcc | 10566 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10567 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 10568 | _ACEOF |
98418dba CW |
10569 | |
10570 | fi | |
10571 | ||
c0d27fcc | 10572 | echo "$as_me:$LINENO: checking for alloca" >&5 |
98418dba CW |
10573 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
10574 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
10575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10576 | else | |
503d2be0 | 10577 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 10578 | #line $LINENO "configure" |
19650fd6 AS |
10579 | /* confdefs.h. */ |
10580 | _ACEOF | |
10581 | cat confdefs.h >>conftest.$ac_ext | |
10582 | cat >>conftest.$ac_ext <<_ACEOF | |
10583 | /* end confdefs.h. */ | |
98418dba CW |
10584 | #ifdef __GNUC__ |
10585 | # define alloca __builtin_alloca | |
10586 | #else | |
10587 | # ifdef _MSC_VER | |
10588 | # include <malloc.h> | |
10589 | # define alloca _alloca | |
10590 | # else | |
10591 | # if HAVE_ALLOCA_H | |
10592 | # include <alloca.h> | |
10593 | # else | |
10594 | # ifdef _AIX | |
10595 | #pragma alloca | |
10596 | # else | |
10597 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
10598 | char *alloca (); | |
10599 | # endif | |
10600 | # endif | |
10601 | # endif | |
10602 | # endif | |
10603 | #endif | |
10604 | ||
503d2be0 AS |
10605 | int |
10606 | main () | |
10607 | { | |
98418dba | 10608 | char *p = (char *) alloca (1); |
503d2be0 AS |
10609 | ; |
10610 | return 0; | |
10611 | } | |
10612 | _ACEOF | |
10613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10615 | (eval $ac_link) 2>&5 |
10616 | ac_status=$? | |
c0d27fcc | 10617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10618 | (exit $ac_status); } && |
793fa0d7 | 10619 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 10620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10621 | (eval $ac_try) 2>&5 |
10622 | ac_status=$? | |
c0d27fcc | 10623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10624 | (exit $ac_status); }; }; then |
98418dba | 10625 | ac_cv_func_alloca_works=yes |
ac95a621 | 10626 | else |
503d2be0 | 10627 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10628 | sed 's/^/| /' conftest.$ac_ext >&5 |
10629 | ||
98418dba | 10630 | ac_cv_func_alloca_works=no |
ac95a621 | 10631 | fi |
503d2be0 | 10632 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10633 | fi |
c0d27fcc | 10634 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
98418dba | 10635 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
ac95a621 | 10636 | |
98418dba CW |
10637 | if test $ac_cv_func_alloca_works = yes; then |
10638 | ||
c0d27fcc | 10639 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10640 | #define HAVE_ALLOCA 1 |
c0d27fcc | 10641 | _ACEOF |
98418dba CW |
10642 | |
10643 | else | |
10644 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
10645 | # that cause trouble. Some versions do not even contain alloca or | |
10646 | # contain a buggy version. If you still want to use their alloca, | |
10647 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
10648 | ||
10649 | ALLOCA=alloca.$ac_objext | |
10650 | ||
c0d27fcc | 10651 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10652 | #define C_ALLOCA 1 |
c0d27fcc | 10653 | _ACEOF |
98418dba | 10654 | |
c0d27fcc MR |
10655 | |
10656 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
98418dba CW |
10657 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
10658 | if test "${ac_cv_os_cray+set}" = set; then | |
10659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10660 | else | |
10661 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 10662 | #line $LINENO "configure" |
19650fd6 AS |
10663 | /* confdefs.h. */ |
10664 | _ACEOF | |
10665 | cat confdefs.h >>conftest.$ac_ext | |
10666 | cat >>conftest.$ac_ext <<_ACEOF | |
10667 | /* end confdefs.h. */ | |
98418dba CW |
10668 | #if defined(CRAY) && ! defined(CRAY2) |
10669 | webecray | |
10670 | #else | |
10671 | wenotbecray | |
10672 | #endif | |
10673 | ||
10674 | _ACEOF | |
10675 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 10676 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
10677 | ac_cv_os_cray=yes |
10678 | else | |
10679 | ac_cv_os_cray=no | |
10680 | fi | |
10681 | rm -f conftest* | |
ac95a621 | 10682 | |
98418dba | 10683 | fi |
c0d27fcc | 10684 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
98418dba CW |
10685 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
10686 | if test $ac_cv_os_cray = yes; then | |
10687 | for ac_func in _getb67 GETB67 getb67; do | |
10688 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 10689 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
10690 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10691 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 10693 | else |
503d2be0 | 10694 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 10695 | #line $LINENO "configure" |
19650fd6 AS |
10696 | /* confdefs.h. */ |
10697 | _ACEOF | |
10698 | cat confdefs.h >>conftest.$ac_ext | |
10699 | cat >>conftest.$ac_ext <<_ACEOF | |
10700 | /* end confdefs.h. */ | |
73b77ee5 | 10701 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
10702 | which can conflict with char $ac_func (); below. |
10703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10704 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
10705 | #ifdef __STDC__ |
10706 | # include <limits.h> | |
10707 | #else | |
10708 | # include <assert.h> | |
10709 | #endif | |
73b77ee5 | 10710 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10711 | #ifdef __cplusplus |
10712 | extern "C" | |
19650fd6 | 10713 | { |
503d2be0 | 10714 | #endif |
73b77ee5 | 10715 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10716 | builtin and then its argument prototype would still apply. */ |
10717 | char $ac_func (); | |
73b77ee5 GM |
10718 | /* The GNU C library defines this for functions which it implements |
10719 | to always fail with ENOSYS. Some functions are actually named | |
10720 | something starting with __ and the normal name is an alias. */ | |
10721 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10722 | choke me | |
10723 | #else | |
19650fd6 AS |
10724 | char (*f) () = $ac_func; |
10725 | #endif | |
10726 | #ifdef __cplusplus | |
10727 | } | |
73b77ee5 GM |
10728 | #endif |
10729 | ||
19650fd6 AS |
10730 | int |
10731 | main () | |
10732 | { | |
10733 | return f != $ac_func; | |
503d2be0 AS |
10734 | ; |
10735 | return 0; | |
10736 | } | |
10737 | _ACEOF | |
10738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10740 | (eval $ac_link) 2>&5 |
10741 | ac_status=$? | |
c0d27fcc | 10742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10743 | (exit $ac_status); } && |
793fa0d7 | 10744 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 10745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10746 | (eval $ac_try) 2>&5 |
10747 | ac_status=$? | |
c0d27fcc | 10748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10749 | (exit $ac_status); }; }; then |
10750 | eval "$as_ac_var=yes" | |
10751 | else | |
10752 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10753 | sed 's/^/| /' conftest.$ac_ext >&5 |
10754 | ||
503d2be0 AS |
10755 | eval "$as_ac_var=no" |
10756 | fi | |
10757 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10758 | fi | |
c0d27fcc | 10759 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
10760 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10761 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
73b77ee5 | 10762 | |
c0d27fcc | 10763 | cat >>confdefs.h <<_ACEOF |
98418dba | 10764 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 10765 | _ACEOF |
98418dba CW |
10766 | |
10767 | break | |
73b77ee5 | 10768 | fi |
73b77ee5 | 10769 | |
98418dba | 10770 | done |
73b77ee5 GM |
10771 | fi |
10772 | ||
c0d27fcc | 10773 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
98418dba CW |
10774 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
10775 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
503d2be0 | 10776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
10777 | else |
10778 | if test "$cross_compiling" = yes; then | |
10779 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 10780 | else |
503d2be0 | 10781 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 10782 | #line $LINENO "configure" |
19650fd6 AS |
10783 | /* confdefs.h. */ |
10784 | _ACEOF | |
10785 | cat confdefs.h >>conftest.$ac_ext | |
10786 | cat >>conftest.$ac_ext <<_ACEOF | |
10787 | /* end confdefs.h. */ | |
503d2be0 | 10788 | int |
98418dba | 10789 | find_stack_direction () |
503d2be0 | 10790 | { |
98418dba CW |
10791 | static char *addr = 0; |
10792 | auto char dummy; | |
10793 | if (addr == 0) | |
10794 | { | |
10795 | addr = &dummy; | |
10796 | return find_stack_direction (); | |
10797 | } | |
73b77ee5 | 10798 | else |
98418dba CW |
10799 | return (&dummy > addr) ? 1 : -1; |
10800 | } | |
ba4481b5 | 10801 | |
503d2be0 AS |
10802 | int |
10803 | main () | |
10804 | { | |
98418dba | 10805 | exit (find_stack_direction () < 0); |
503d2be0 AS |
10806 | } |
10807 | _ACEOF | |
98418dba | 10808 | rm -f conftest$ac_exeext |
c0d27fcc | 10809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10810 | (eval $ac_link) 2>&5 |
10811 | ac_status=$? | |
c0d27fcc | 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10813 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 10814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10815 | (eval $ac_try) 2>&5 |
10816 | ac_status=$? | |
c0d27fcc | 10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10818 | (exit $ac_status); }; }; then |
98418dba | 10819 | ac_cv_c_stack_direction=1 |
ba4481b5 | 10820 | else |
98418dba CW |
10821 | echo "$as_me: program exited with status $ac_status" >&5 |
10822 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10823 | sed 's/^/| /' conftest.$ac_ext >&5 |
10824 | ||
c0d27fcc | 10825 | ( exit $ac_status ) |
98418dba | 10826 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 10827 | fi |
6bae0ccf | 10828 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 10829 | fi |
98418dba | 10830 | fi |
c0d27fcc | 10831 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
98418dba CW |
10832 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
10833 | ||
c0d27fcc | 10834 | cat >>confdefs.h <<_ACEOF |
98418dba | 10835 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
10836 | _ACEOF |
10837 | ||
ba4481b5 | 10838 | |
ba4481b5 DL |
10839 | fi |
10840 | ||
c0d27fcc | 10841 | |
98418dba CW |
10842 | # fmod, logb, and frexp are found in -lm on most systems. |
10843 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
10844 | ||
c0d27fcc | 10845 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
98418dba CW |
10846 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
10847 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
503d2be0 | 10848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10849 | else |
98418dba CW |
10850 | ac_check_lib_save_LIBS=$LIBS |
10851 | LIBS="-lm $LIBS" | |
10852 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 10853 | #line $LINENO "configure" |
19650fd6 AS |
10854 | /* confdefs.h. */ |
10855 | _ACEOF | |
10856 | cat confdefs.h >>conftest.$ac_ext | |
10857 | cat >>conftest.$ac_ext <<_ACEOF | |
10858 | /* end confdefs.h. */ | |
ba4481b5 | 10859 | |
98418dba CW |
10860 | /* Override any gcc2 internal prototype to avoid an error. */ |
10861 | #ifdef __cplusplus | |
10862 | extern "C" | |
10863 | #endif | |
10864 | /* We use char because int might match the return type of a gcc2 | |
10865 | builtin and then its argument prototype would still apply. */ | |
10866 | char sqrt (); | |
503d2be0 AS |
10867 | int |
10868 | main () | |
10869 | { | |
98418dba | 10870 | sqrt (); |
503d2be0 AS |
10871 | ; |
10872 | return 0; | |
10873 | } | |
10874 | _ACEOF | |
10875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10877 | (eval $ac_link) 2>&5 |
10878 | ac_status=$? | |
c0d27fcc | 10879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10880 | (exit $ac_status); } && |
793fa0d7 | 10881 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 10882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10883 | (eval $ac_try) 2>&5 |
10884 | ac_status=$? | |
c0d27fcc | 10885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10886 | (exit $ac_status); }; }; then |
98418dba | 10887 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 10888 | else |
503d2be0 | 10889 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10890 | sed 's/^/| /' conftest.$ac_ext >&5 |
10891 | ||
98418dba | 10892 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 10893 | fi |
503d2be0 | 10894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10895 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 10896 | fi |
c0d27fcc | 10897 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
98418dba CW |
10898 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
10899 | if test $ac_cv_lib_m_sqrt = yes; then | |
c0d27fcc | 10900 | cat >>confdefs.h <<_ACEOF |
98418dba | 10901 | #define HAVE_LIBM 1 |
c0d27fcc | 10902 | _ACEOF |
98418dba CW |
10903 | |
10904 | LIBS="-lm $LIBS" | |
ba4481b5 | 10905 | |
ba4481b5 DL |
10906 | fi |
10907 | ||
c0d27fcc | 10908 | |
55597d70 DL |
10909 | # Check for mail-locking functions in a "mail" library. Probably this should |
10910 | # have the same check as for liblockfile below. | |
98418dba | 10911 | |
c0d27fcc | 10912 | echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
98418dba CW |
10913 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
10914 | if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
503d2be0 | 10915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10916 | else |
98418dba CW |
10917 | ac_check_lib_save_LIBS=$LIBS |
10918 | LIBS="-lmail $LIBS" | |
10919 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 10920 | #line $LINENO "configure" |
19650fd6 AS |
10921 | /* confdefs.h. */ |
10922 | _ACEOF | |
10923 | cat confdefs.h >>conftest.$ac_ext | |
10924 | cat >>conftest.$ac_ext <<_ACEOF | |
10925 | /* end confdefs.h. */ | |
98418dba CW |
10926 | |
10927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10928 | #ifdef __cplusplus | |
10929 | extern "C" | |
10930 | #endif | |
10931 | /* We use char because int might match the return type of a gcc2 | |
10932 | builtin and then its argument prototype would still apply. */ | |
10933 | char maillock (); | |
503d2be0 AS |
10934 | int |
10935 | main () | |
10936 | { | |
98418dba | 10937 | maillock (); |
503d2be0 AS |
10938 | ; |
10939 | return 0; | |
10940 | } | |
10941 | _ACEOF | |
10942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
10944 | (eval $ac_link) 2>&5 |
10945 | ac_status=$? | |
c0d27fcc | 10946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10947 | (exit $ac_status); } && |
793fa0d7 | 10948 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 10949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10950 | (eval $ac_try) 2>&5 |
10951 | ac_status=$? | |
c0d27fcc | 10952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10953 | (exit $ac_status); }; }; then |
98418dba | 10954 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 10955 | else |
503d2be0 | 10956 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10957 | sed 's/^/| /' conftest.$ac_ext >&5 |
10958 | ||
98418dba | 10959 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 10960 | fi |
503d2be0 | 10961 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 10962 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 10963 | fi |
c0d27fcc | 10964 | echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
98418dba CW |
10965 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
10966 | if test $ac_cv_lib_mail_maillock = yes; then | |
c0d27fcc | 10967 | cat >>confdefs.h <<_ACEOF |
98418dba | 10968 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 10969 | _ACEOF |
ba4481b5 | 10970 | |
98418dba | 10971 | LIBS="-lmail $LIBS" |
ba4481b5 | 10972 | |
98418dba | 10973 | fi |
ba4481b5 | 10974 | |
c0d27fcc MR |
10975 | |
10976 | echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | |
98418dba CW |
10977 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
10978 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
503d2be0 | 10979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10980 | else |
503d2be0 | 10981 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 10982 | LIBS="-llockfile $LIBS" |
503d2be0 | 10983 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 10984 | #line $LINENO "configure" |
19650fd6 AS |
10985 | /* confdefs.h. */ |
10986 | _ACEOF | |
10987 | cat confdefs.h >>conftest.$ac_ext | |
10988 | cat >>conftest.$ac_ext <<_ACEOF | |
10989 | /* end confdefs.h. */ | |
503d2be0 | 10990 | |
ba4481b5 | 10991 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10992 | #ifdef __cplusplus |
10993 | extern "C" | |
10994 | #endif | |
ba4481b5 | 10995 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 10996 | builtin and then its argument prototype would still apply. */ |
98418dba | 10997 | char maillock (); |
503d2be0 AS |
10998 | int |
10999 | main () | |
11000 | { | |
98418dba | 11001 | maillock (); |
503d2be0 AS |
11002 | ; |
11003 | return 0; | |
11004 | } | |
11005 | _ACEOF | |
11006 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
11008 | (eval $ac_link) 2>&5 |
11009 | ac_status=$? | |
c0d27fcc | 11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11011 | (exit $ac_status); } && |
793fa0d7 | 11012 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 11013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11014 | (eval $ac_try) 2>&5 |
11015 | ac_status=$? | |
c0d27fcc | 11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11017 | (exit $ac_status); }; }; then |
98418dba | 11018 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
11019 | else |
11020 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11021 | sed 's/^/| /' conftest.$ac_ext >&5 |
11022 | ||
98418dba CW |
11023 | ac_cv_lib_lockfile_maillock=no |
11024 | fi | |
11025 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11026 | LIBS=$ac_check_lib_save_LIBS | |
11027 | fi | |
c0d27fcc | 11028 | echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
98418dba CW |
11029 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
11030 | if test $ac_cv_lib_lockfile_maillock = yes; then | |
c0d27fcc | 11031 | cat >>confdefs.h <<_ACEOF |
98418dba | 11032 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 11033 | _ACEOF |
98418dba CW |
11034 | |
11035 | LIBS="-llockfile $LIBS" | |
11036 | ||
11037 | fi | |
11038 | ||
11039 | # If we have the shared liblockfile, assume we must use it for mail | |
11040 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
11041 | # (no liblockfile.a installed), ensure that we don't need to. | |
11042 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
11043 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
11044 | set dummy liblockfile.so; ac_word=$2 | |
c0d27fcc | 11045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
98418dba CW |
11046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
11047 | if test "${ac_cv_prog_liblockfile+set}" = set; then | |
11048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11049 | else | |
11050 | if test -n "$liblockfile"; then | |
11051 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
11052 | else | |
c0d27fcc | 11053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
11054 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
11055 | for as_dir in $as_dummy | |
c0d27fcc MR |
11056 | do |
11057 | IFS=$as_save_IFS | |
11058 | test -z "$as_dir" && as_dir=. | |
11059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11061 | ac_cv_prog_liblockfile="yes" | |
11062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11063 | break 2 | |
11064 | fi | |
11065 | done | |
98418dba CW |
11066 | done |
11067 | ||
11068 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 11069 | fi |
503d2be0 | 11070 | fi |
98418dba CW |
11071 | liblockfile=$ac_cv_prog_liblockfile |
11072 | if test -n "$liblockfile"; then | |
c0d27fcc | 11073 | echo "$as_me:$LINENO: result: $liblockfile" >&5 |
98418dba CW |
11074 | echo "${ECHO_T}$liblockfile" >&6 |
11075 | else | |
c0d27fcc | 11076 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba | 11077 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
11078 | fi |
11079 | ||
98418dba | 11080 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 11081 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
11082 | This probably means that movemail could lose mail. |
11083 | There may be a \`development' package to install containing liblockfile." >&5 | |
11084 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
11085 | This probably means that movemail could lose mail. | |
11086 | There may be a \`development' package to install containing liblockfile." >&2;} | |
11087 | { (exit 1); exit 1; }; } | |
98418dba | 11088 | else : |
55597d70 | 11089 | fi |
98418dba | 11090 | fi |
503d2be0 | 11091 | |
98418dba CW |
11092 | for ac_func in touchlock |
11093 | do | |
11094 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 11095 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
11096 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11097 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 11098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 11099 | else |
98418dba | 11100 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 11101 | #line $LINENO "configure" |
19650fd6 AS |
11102 | /* confdefs.h. */ |
11103 | _ACEOF | |
11104 | cat confdefs.h >>conftest.$ac_ext | |
11105 | cat >>conftest.$ac_ext <<_ACEOF | |
11106 | /* end confdefs.h. */ | |
98418dba | 11107 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
11108 | which can conflict with char $ac_func (); below. |
11109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11110 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
11111 | #ifdef __STDC__ |
11112 | # include <limits.h> | |
11113 | #else | |
11114 | # include <assert.h> | |
11115 | #endif | |
457b792c | 11116 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11117 | #ifdef __cplusplus |
11118 | extern "C" | |
19650fd6 | 11119 | { |
503d2be0 | 11120 | #endif |
457b792c | 11121 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11122 | builtin and then its argument prototype would still apply. */ |
98418dba | 11123 | char $ac_func (); |
98418dba CW |
11124 | /* The GNU C library defines this for functions which it implements |
11125 | to always fail with ENOSYS. Some functions are actually named | |
11126 | something starting with __ and the normal name is an alias. */ | |
11127 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11128 | choke me | |
11129 | #else | |
19650fd6 AS |
11130 | char (*f) () = $ac_func; |
11131 | #endif | |
11132 | #ifdef __cplusplus | |
11133 | } | |
cd958eb3 MB |
11134 | #endif |
11135 | ||
19650fd6 AS |
11136 | int |
11137 | main () | |
11138 | { | |
11139 | return f != $ac_func; | |
503d2be0 AS |
11140 | ; |
11141 | return 0; | |
11142 | } | |
11143 | _ACEOF | |
11144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
11146 | (eval $ac_link) 2>&5 |
11147 | ac_status=$? | |
c0d27fcc | 11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11149 | (exit $ac_status); } && |
793fa0d7 | 11150 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 11151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11152 | (eval $ac_try) 2>&5 |
11153 | ac_status=$? | |
c0d27fcc | 11154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11155 | (exit $ac_status); }; }; then |
98418dba | 11156 | eval "$as_ac_var=yes" |
503d2be0 AS |
11157 | else |
11158 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11159 | sed 's/^/| /' conftest.$ac_ext >&5 |
11160 | ||
98418dba | 11161 | eval "$as_ac_var=no" |
503d2be0 AS |
11162 | fi |
11163 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 11164 | fi |
c0d27fcc | 11165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
11166 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11167 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 11168 | cat >>confdefs.h <<_ACEOF |
98418dba | 11169 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 11170 | _ACEOF |
457b792c | 11171 | |
457b792c | 11172 | fi |
98418dba | 11173 | done |
457b792c | 11174 | |
c0d27fcc | 11175 | |
98418dba CW |
11176 | for ac_header in maillock.h |
11177 | do | |
11178 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
11179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11180 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
11181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 11183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
11184 | fi |
11185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ba4481b5 | 11187 | else |
c0d27fcc MR |
11188 | # Is the header compilable? |
11189 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11190 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11191 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 11192 | #line $LINENO "configure" |
19650fd6 AS |
11193 | /* confdefs.h. */ |
11194 | _ACEOF | |
11195 | cat confdefs.h >>conftest.$ac_ext | |
11196 | cat >>conftest.$ac_ext <<_ACEOF | |
11197 | /* end confdefs.h. */ | |
c0d27fcc MR |
11198 | $ac_includes_default |
11199 | #include <$ac_header> | |
11200 | _ACEOF | |
11201 | rm -f conftest.$ac_objext | |
11202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11203 | (eval $ac_compile) 2>&5 | |
11204 | ac_status=$? | |
11205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11206 | (exit $ac_status); } && | |
793fa0d7 | 11207 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
11208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11209 | (eval $ac_try) 2>&5 | |
11210 | ac_status=$? | |
11211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11212 | (exit $ac_status); }; }; then | |
11213 | ac_header_compiler=yes | |
11214 | else | |
11215 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11216 | sed 's/^/| /' conftest.$ac_ext >&5 |
11217 | ||
c0d27fcc MR |
11218 | ac_header_compiler=no |
11219 | fi | |
11220 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11221 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11222 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11223 | ||
11224 | # Is the header present? | |
11225 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11226 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11227 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 11228 | #line $LINENO "configure" |
19650fd6 AS |
11229 | /* confdefs.h. */ |
11230 | _ACEOF | |
11231 | cat confdefs.h >>conftest.$ac_ext | |
11232 | cat >>conftest.$ac_ext <<_ACEOF | |
11233 | /* end confdefs.h. */ | |
98418dba | 11234 | #include <$ac_header> |
503d2be0 | 11235 | _ACEOF |
c0d27fcc | 11236 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 11237 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 11238 | ac_status=$? |
6bae0ccf | 11239 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11240 | rm -f conftest.er1 |
11241 | cat conftest.err >&5 | |
c0d27fcc | 11242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11243 | (exit $ac_status); } >/dev/null; then |
11244 | if test -s conftest.err; then | |
11245 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11246 | else | |
11247 | ac_cpp_err= | |
11248 | fi | |
503d2be0 | 11249 | else |
98418dba | 11250 | ac_cpp_err=yes |
503d2be0 | 11251 | fi |
98418dba | 11252 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 11253 | ac_header_preproc=yes |
98418dba CW |
11254 | else |
11255 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11256 | sed 's/^/| /' conftest.$ac_ext >&5 |
11257 | ||
c0d27fcc | 11258 | ac_header_preproc=no |
503d2be0 | 11259 | fi |
98418dba | 11260 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
11261 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11262 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11263 | ||
11264 | # So? What about this header? | |
11265 | case $ac_header_compiler:$ac_header_preproc in | |
11266 | yes:no ) | |
11267 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11268 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
11269 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11270 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11271 | ( | |
11272 | cat <<\_ASBOX | |
11273 | ## ------------------------------------ ## | |
11274 | ## Report this to bug-autoconf@gnu.org. ## | |
11275 | ## ------------------------------------ ## | |
11276 | _ASBOX | |
11277 | ) | | |
11278 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 11279 | ;; |
c0d27fcc MR |
11280 | no:yes ) |
11281 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11282 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
11283 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11284 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 11285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11286 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
11287 | ( |
11288 | cat <<\_ASBOX | |
793fa0d7 DL |
11289 | ## ------------------------------------ ## |
11290 | ## Report this to bug-autoconf@gnu.org. ## | |
11291 | ## ------------------------------------ ## | |
19650fd6 AS |
11292 | _ASBOX |
11293 | ) | | |
11294 | sed "s/^/$as_me: WARNING: /" >&2 | |
11295 | ;; | |
c0d27fcc MR |
11296 | esac |
11297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11301 | else | |
793fa0d7 | 11302 | eval "$as_ac_Header=$ac_header_preproc" |
ba4481b5 | 11303 | fi |
c0d27fcc | 11304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 11305 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
11306 | |
11307 | fi | |
98418dba | 11308 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 11309 | cat >>confdefs.h <<_ACEOF |
98418dba | 11310 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 11311 | _ACEOF |
48d4b120 | 11312 | |
ba4481b5 | 11313 | fi |
c0d27fcc | 11314 | |
98418dba CW |
11315 | done |
11316 | ||
c0d27fcc MR |
11317 | |
11318 | ||
11319 | ||
11320 | ||
11321 | ||
11322 | ||
11323 | ||
11324 | ||
11325 | ||
11326 | ||
11327 | ||
11328 | ||
11329 | ||
11330 | ||
11331 | ||
11332 | ||
11333 | ||
11334 | ||
11335 | ||
11336 | ||
11337 | ||
11338 | ||
11339 | ||
11340 | ||
11341 | ||
11342 | ||
11343 | ||
11344 | ||
11345 | ||
11346 | ||
11347 | ||
11348 | ||
11349 | ||
11350 | ||
11351 | ||
11352 | ||
11353 | ||
11354 | ||
11355 | ||
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | ||
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
22044edf DL |
11372 | |
11373 | ||
c0d27fcc | 11374 | |
b0e44248 RB |
11375 | |
11376 | ||
973a76b1 DL |
11377 | |
11378 | ||
11379 | ||
cd958eb3 | 11380 | |
25ca0bca | 11381 | |
28127e47 | 11382 | |
c0d27fcc MR |
11383 | |
11384 | ||
98418dba CW |
11385 | for ac_func in gethostname getdomainname dup2 \ |
11386 | rename closedir mkdir rmdir sysinfo \ | |
11387 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
11388 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
973a76b1 | 11389 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
98418dba CW |
11390 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
11391 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
b0e44248 | 11392 | gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ |
28127e47 | 11393 | memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign |
98418dba CW |
11394 | do |
11395 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 11396 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
11397 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11398 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 11399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11400 | else |
503d2be0 | 11401 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 11402 | #line $LINENO "configure" |
19650fd6 AS |
11403 | /* confdefs.h. */ |
11404 | _ACEOF | |
11405 | cat confdefs.h >>conftest.$ac_ext | |
11406 | cat >>conftest.$ac_ext <<_ACEOF | |
11407 | /* end confdefs.h. */ | |
98418dba | 11408 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
11409 | which can conflict with char $ac_func (); below. |
11410 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11411 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
11412 | #ifdef __STDC__ |
11413 | # include <limits.h> | |
11414 | #else | |
11415 | # include <assert.h> | |
11416 | #endif | |
ba4481b5 | 11417 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11418 | #ifdef __cplusplus |
11419 | extern "C" | |
19650fd6 | 11420 | { |
503d2be0 | 11421 | #endif |
ba4481b5 | 11422 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11423 | builtin and then its argument prototype would still apply. */ |
98418dba | 11424 | char $ac_func (); |
98418dba CW |
11425 | /* The GNU C library defines this for functions which it implements |
11426 | to always fail with ENOSYS. Some functions are actually named | |
11427 | something starting with __ and the normal name is an alias. */ | |
11428 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11429 | choke me | |
11430 | #else | |
19650fd6 AS |
11431 | char (*f) () = $ac_func; |
11432 | #endif | |
11433 | #ifdef __cplusplus | |
11434 | } | |
98418dba CW |
11435 | #endif |
11436 | ||
19650fd6 AS |
11437 | int |
11438 | main () | |
11439 | { | |
11440 | return f != $ac_func; | |
503d2be0 AS |
11441 | ; |
11442 | return 0; | |
11443 | } | |
11444 | _ACEOF | |
11445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
11447 | (eval $ac_link) 2>&5 |
11448 | ac_status=$? | |
c0d27fcc | 11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11450 | (exit $ac_status); } && |
793fa0d7 | 11451 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 11452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11453 | (eval $ac_try) 2>&5 |
11454 | ac_status=$? | |
c0d27fcc | 11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11456 | (exit $ac_status); }; }; then |
98418dba | 11457 | eval "$as_ac_var=yes" |
503d2be0 AS |
11458 | else |
11459 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11460 | sed 's/^/| /' conftest.$ac_ext >&5 |
11461 | ||
98418dba | 11462 | eval "$as_ac_var=no" |
503d2be0 AS |
11463 | fi |
11464 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 11465 | fi |
c0d27fcc | 11466 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
11467 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11468 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 11469 | cat >>confdefs.h <<_ACEOF |
98418dba | 11470 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 11471 | _ACEOF |
ba4481b5 | 11472 | |
ba4481b5 | 11473 | fi |
98418dba | 11474 | done |
ba4481b5 | 11475 | |
c0d27fcc MR |
11476 | |
11477 | ||
98418dba CW |
11478 | for ac_header in sys/un.h |
11479 | do | |
11480 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
11481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11482 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
11483 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11486 | fi |
11487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11488 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 11489 | else |
c0d27fcc MR |
11490 | # Is the header compilable? |
11491 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11492 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11493 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 11494 | #line $LINENO "configure" |
19650fd6 AS |
11495 | /* confdefs.h. */ |
11496 | _ACEOF | |
11497 | cat confdefs.h >>conftest.$ac_ext | |
11498 | cat >>conftest.$ac_ext <<_ACEOF | |
11499 | /* end confdefs.h. */ | |
c0d27fcc MR |
11500 | $ac_includes_default |
11501 | #include <$ac_header> | |
11502 | _ACEOF | |
11503 | rm -f conftest.$ac_objext | |
11504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11505 | (eval $ac_compile) 2>&5 | |
11506 | ac_status=$? | |
11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11508 | (exit $ac_status); } && | |
793fa0d7 | 11509 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
11510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11511 | (eval $ac_try) 2>&5 | |
11512 | ac_status=$? | |
11513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11514 | (exit $ac_status); }; }; then | |
11515 | ac_header_compiler=yes | |
11516 | else | |
11517 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11518 | sed 's/^/| /' conftest.$ac_ext >&5 |
11519 | ||
c0d27fcc MR |
11520 | ac_header_compiler=no |
11521 | fi | |
11522 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11523 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11524 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11525 | ||
11526 | # Is the header present? | |
11527 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11528 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11529 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 11530 | #line $LINENO "configure" |
19650fd6 AS |
11531 | /* confdefs.h. */ |
11532 | _ACEOF | |
11533 | cat confdefs.h >>conftest.$ac_ext | |
11534 | cat >>conftest.$ac_ext <<_ACEOF | |
11535 | /* end confdefs.h. */ | |
98418dba | 11536 | #include <$ac_header> |
503d2be0 | 11537 | _ACEOF |
c0d27fcc | 11538 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11539 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11540 | ac_status=$? | |
6bae0ccf | 11541 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
11542 | rm -f conftest.er1 |
11543 | cat conftest.err >&5 | |
c0d27fcc | 11544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11545 | (exit $ac_status); } >/dev/null; then |
11546 | if test -s conftest.err; then | |
11547 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11548 | else | |
11549 | ac_cpp_err= | |
11550 | fi | |
11551 | else | |
11552 | ac_cpp_err=yes | |
11553 | fi | |
11554 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11555 | ac_header_preproc=yes |
ba4481b5 | 11556 | else |
503d2be0 | 11557 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11558 | sed 's/^/| /' conftest.$ac_ext >&5 |
11559 | ||
c0d27fcc | 11560 | ac_header_preproc=no |
ba4481b5 | 11561 | fi |
503d2be0 | 11562 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
11563 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11564 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11565 | ||
11566 | # So? What about this header? | |
11567 | case $ac_header_compiler:$ac_header_preproc in | |
11568 | yes:no ) | |
11569 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11570 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
11571 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11572 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11573 | ( | |
11574 | cat <<\_ASBOX | |
11575 | ## ------------------------------------ ## | |
11576 | ## Report this to bug-autoconf@gnu.org. ## | |
11577 | ## ------------------------------------ ## | |
11578 | _ASBOX | |
11579 | ) | | |
11580 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 11581 | ;; |
c0d27fcc MR |
11582 | no:yes ) |
11583 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11584 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
11585 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11586 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 11587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11588 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
11589 | ( |
11590 | cat <<\_ASBOX | |
793fa0d7 DL |
11591 | ## ------------------------------------ ## |
11592 | ## Report this to bug-autoconf@gnu.org. ## | |
11593 | ## ------------------------------------ ## | |
19650fd6 AS |
11594 | _ASBOX |
11595 | ) | | |
11596 | sed "s/^/$as_me: WARNING: /" >&2 | |
11597 | ;; | |
c0d27fcc MR |
11598 | esac |
11599 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11600 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11601 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11603 | else | |
793fa0d7 | 11604 | eval "$as_ac_Header=$ac_header_preproc" |
ba4481b5 | 11605 | fi |
c0d27fcc | 11606 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
925c2f3f | 11607 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
11608 | |
11609 | fi | |
925c2f3f | 11610 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 11611 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 11612 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 11613 | _ACEOF |
503d2be0 | 11614 | |
925c2f3f | 11615 | fi |
c0d27fcc | 11616 | |
925c2f3f EZ |
11617 | done |
11618 | ||
c0d27fcc MR |
11619 | |
11620 | ||
11621 | ||
793fa0d7 | 11622 | for ac_header in sys/time.h unistd.h |
925c2f3f EZ |
11623 | do |
11624 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
11625 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11626 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
11627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11630 | fi |
11631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11632 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
925c2f3f | 11633 | else |
c0d27fcc MR |
11634 | # Is the header compilable? |
11635 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11636 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11637 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 11638 | #line $LINENO "configure" |
19650fd6 AS |
11639 | /* confdefs.h. */ |
11640 | _ACEOF | |
11641 | cat confdefs.h >>conftest.$ac_ext | |
11642 | cat >>conftest.$ac_ext <<_ACEOF | |
11643 | /* end confdefs.h. */ | |
c0d27fcc MR |
11644 | $ac_includes_default |
11645 | #include <$ac_header> | |
11646 | _ACEOF | |
11647 | rm -f conftest.$ac_objext | |
11648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11649 | (eval $ac_compile) 2>&5 | |
11650 | ac_status=$? | |
11651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11652 | (exit $ac_status); } && | |
793fa0d7 | 11653 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
11654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11655 | (eval $ac_try) 2>&5 | |
11656 | ac_status=$? | |
11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11658 | (exit $ac_status); }; }; then | |
11659 | ac_header_compiler=yes | |
11660 | else | |
11661 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11662 | sed 's/^/| /' conftest.$ac_ext >&5 |
11663 | ||
c0d27fcc MR |
11664 | ac_header_compiler=no |
11665 | fi | |
11666 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11667 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11668 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11669 | ||
11670 | # Is the header present? | |
11671 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11673 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 11674 | #line $LINENO "configure" |
19650fd6 AS |
11675 | /* confdefs.h. */ |
11676 | _ACEOF | |
11677 | cat confdefs.h >>conftest.$ac_ext | |
11678 | cat >>conftest.$ac_ext <<_ACEOF | |
11679 | /* end confdefs.h. */ | |
98418dba | 11680 | #include <$ac_header> |
503d2be0 | 11681 | _ACEOF |
c0d27fcc | 11682 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11683 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11684 | ac_status=$? | |
6bae0ccf | 11685 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
11686 | rm -f conftest.er1 |
11687 | cat conftest.err >&5 | |
c0d27fcc | 11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11689 | (exit $ac_status); } >/dev/null; then |
11690 | if test -s conftest.err; then | |
11691 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11692 | else | |
11693 | ac_cpp_err= | |
11694 | fi | |
11695 | else | |
11696 | ac_cpp_err=yes | |
11697 | fi | |
11698 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11699 | ac_header_preproc=yes |
98418dba CW |
11700 | else |
11701 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11702 | sed 's/^/| /' conftest.$ac_ext >&5 |
11703 | ||
c0d27fcc | 11704 | ac_header_preproc=no |
98418dba CW |
11705 | fi |
11706 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11707 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11708 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11709 | ||
11710 | # So? What about this header? | |
11711 | case $ac_header_compiler:$ac_header_preproc in | |
11712 | yes:no ) | |
11713 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11714 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
11715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11716 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11717 | ( | |
11718 | cat <<\_ASBOX | |
11719 | ## ------------------------------------ ## | |
11720 | ## Report this to bug-autoconf@gnu.org. ## | |
11721 | ## ------------------------------------ ## | |
11722 | _ASBOX | |
11723 | ) | | |
11724 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 11725 | ;; |
c0d27fcc MR |
11726 | no:yes ) |
11727 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11728 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
11729 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11730 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 11731 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11732 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
11733 | ( |
11734 | cat <<\_ASBOX | |
793fa0d7 DL |
11735 | ## ------------------------------------ ## |
11736 | ## Report this to bug-autoconf@gnu.org. ## | |
11737 | ## ------------------------------------ ## | |
19650fd6 AS |
11738 | _ASBOX |
11739 | ) | | |
11740 | sed "s/^/$as_me: WARNING: /" >&2 | |
11741 | ;; | |
c0d27fcc MR |
11742 | esac |
11743 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11745 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11747 | else | |
793fa0d7 | 11748 | eval "$as_ac_Header=$ac_header_preproc" |
ffe36136 | 11749 | fi |
c0d27fcc | 11750 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 11751 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
11752 | |
11753 | fi | |
98418dba | 11754 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 11755 | cat >>confdefs.h <<_ACEOF |
98418dba | 11756 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 11757 | _ACEOF |
98418dba CW |
11758 | |
11759 | fi | |
c0d27fcc | 11760 | |
98418dba CW |
11761 | done |
11762 | ||
c0d27fcc | 11763 | |
98418dba CW |
11764 | for ac_func in alarm |
11765 | do | |
11766 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 11767 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
11768 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11769 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 11770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11771 | else |
98418dba | 11772 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 11773 | #line $LINENO "configure" |
19650fd6 AS |
11774 | /* confdefs.h. */ |
11775 | _ACEOF | |
11776 | cat confdefs.h >>conftest.$ac_ext | |
11777 | cat >>conftest.$ac_ext <<_ACEOF | |
11778 | /* end confdefs.h. */ | |
98418dba | 11779 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
11780 | which can conflict with char $ac_func (); below. |
11781 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11782 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
11783 | #ifdef __STDC__ |
11784 | # include <limits.h> | |
11785 | #else | |
11786 | # include <assert.h> | |
11787 | #endif | |
ba4481b5 | 11788 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11789 | #ifdef __cplusplus |
11790 | extern "C" | |
19650fd6 | 11791 | { |
503d2be0 | 11792 | #endif |
ba4481b5 | 11793 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11794 | builtin and then its argument prototype would still apply. */ |
98418dba | 11795 | char $ac_func (); |
98418dba CW |
11796 | /* The GNU C library defines this for functions which it implements |
11797 | to always fail with ENOSYS. Some functions are actually named | |
11798 | something starting with __ and the normal name is an alias. */ | |
11799 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11800 | choke me | |
11801 | #else | |
19650fd6 AS |
11802 | char (*f) () = $ac_func; |
11803 | #endif | |
11804 | #ifdef __cplusplus | |
11805 | } | |
98418dba CW |
11806 | #endif |
11807 | ||
19650fd6 AS |
11808 | int |
11809 | main () | |
11810 | { | |
11811 | return f != $ac_func; | |
503d2be0 AS |
11812 | ; |
11813 | return 0; | |
11814 | } | |
11815 | _ACEOF | |
11816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
11818 | (eval $ac_link) 2>&5 |
11819 | ac_status=$? | |
c0d27fcc | 11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11821 | (exit $ac_status); } && |
793fa0d7 | 11822 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 11823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11824 | (eval $ac_try) 2>&5 |
11825 | ac_status=$? | |
c0d27fcc | 11826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11827 | (exit $ac_status); }; }; then |
98418dba | 11828 | eval "$as_ac_var=yes" |
503d2be0 AS |
11829 | else |
11830 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11831 | sed 's/^/| /' conftest.$ac_ext >&5 |
11832 | ||
98418dba | 11833 | eval "$as_ac_var=no" |
503d2be0 AS |
11834 | fi |
11835 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
ffe36136 | 11836 | fi |
c0d27fcc | 11837 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
11838 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11839 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 11840 | cat >>confdefs.h <<_ACEOF |
98418dba | 11841 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 11842 | _ACEOF |
ffe36136 | 11843 | |
ba4481b5 | 11844 | fi |
98418dba | 11845 | done |
ba4481b5 | 11846 | |
c0d27fcc | 11847 | echo "$as_me:$LINENO: checking for working mktime" >&5 |
98418dba CW |
11848 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
11849 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
11850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11851 | else | |
11852 | if test "$cross_compiling" = yes; then | |
11853 | ac_cv_func_working_mktime=no | |
11854 | else | |
11855 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 11856 | #line $LINENO "configure" |
19650fd6 AS |
11857 | /* confdefs.h. */ |
11858 | _ACEOF | |
11859 | cat confdefs.h >>conftest.$ac_ext | |
11860 | cat >>conftest.$ac_ext <<_ACEOF | |
11861 | /* end confdefs.h. */ | |
98418dba CW |
11862 | /* Test program from Paul Eggert and Tony Leneis. */ |
11863 | #if TIME_WITH_SYS_TIME | |
11864 | # include <sys/time.h> | |
11865 | # include <time.h> | |
11866 | #else | |
11867 | # if HAVE_SYS_TIME_H | |
11868 | # include <sys/time.h> | |
11869 | # else | |
11870 | # include <time.h> | |
11871 | # endif | |
11872 | #endif | |
ba4481b5 | 11873 | |
98418dba CW |
11874 | #if HAVE_UNISTD_H |
11875 | # include <unistd.h> | |
11876 | #endif | |
ba4481b5 | 11877 | |
98418dba CW |
11878 | #if !HAVE_ALARM |
11879 | # define alarm(X) /* empty */ | |
11880 | #endif | |
df645f7c | 11881 | |
98418dba CW |
11882 | /* Work around redefinition to rpl_putenv by other config tests. */ |
11883 | #undef putenv | |
df645f7c | 11884 | |
98418dba | 11885 | static time_t time_t_max; |
df645f7c | 11886 | |
98418dba | 11887 | /* Values we'll use to set the TZ environment variable. */ |
793fa0d7 DL |
11888 | static const char *const tz_strings[] = { |
11889 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
98418dba CW |
11890 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
11891 | }; | |
11892 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 11893 | |
98418dba CW |
11894 | /* Fail if mktime fails to convert a date in the spring-forward gap. |
11895 | Based on a problem report from Andreas Jaeger. */ | |
11896 | static void | |
11897 | spring_forward_gap () | |
11898 | { | |
11899 | /* glibc (up to about 1998-10-07) failed this test. */ | |
11900 | struct tm tm; | |
11901 | ||
11902 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
11903 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
11904 | on systems that don't support the Olson extension, or don't have the | |
11905 | full zoneinfo tables installed. */ | |
11906 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
11907 | ||
11908 | tm.tm_year = 98; | |
11909 | tm.tm_mon = 3; | |
11910 | tm.tm_mday = 5; | |
11911 | tm.tm_hour = 2; | |
11912 | tm.tm_min = 0; | |
11913 | tm.tm_sec = 0; | |
11914 | tm.tm_isdst = -1; | |
11915 | if (mktime (&tm) == (time_t)-1) | |
11916 | exit (1); | |
11917 | } | |
11918 | ||
11919 | static void | |
793fa0d7 | 11920 | mktime_test (now) |
98418dba CW |
11921 | time_t now; |
11922 | { | |
11923 | struct tm *lt; | |
11924 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
11925 | exit (1); | |
793fa0d7 DL |
11926 | now = time_t_max - now; |
11927 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
11928 | exit (1); | |
98418dba CW |
11929 | } |
11930 | ||
11931 | static void | |
11932 | irix_6_4_bug () | |
11933 | { | |
11934 | /* Based on code from Ariel Faigon. */ | |
11935 | struct tm tm; | |
11936 | tm.tm_year = 96; | |
11937 | tm.tm_mon = 3; | |
11938 | tm.tm_mday = 0; | |
11939 | tm.tm_hour = 0; | |
11940 | tm.tm_min = 0; | |
11941 | tm.tm_sec = 0; | |
11942 | tm.tm_isdst = -1; | |
11943 | mktime (&tm); | |
11944 | if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
11945 | exit (1); | |
11946 | } | |
11947 | ||
11948 | static void | |
11949 | bigtime_test (j) | |
11950 | int j; | |
11951 | { | |
11952 | struct tm tm; | |
11953 | time_t now; | |
11954 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
11955 | now = mktime (&tm); | |
11956 | if (now != (time_t) -1) | |
11957 | { | |
11958 | struct tm *lt = localtime (&now); | |
11959 | if (! (lt | |
11960 | && lt->tm_year == tm.tm_year | |
11961 | && lt->tm_mon == tm.tm_mon | |
11962 | && lt->tm_mday == tm.tm_mday | |
11963 | && lt->tm_hour == tm.tm_hour | |
11964 | && lt->tm_min == tm.tm_min | |
11965 | && lt->tm_sec == tm.tm_sec | |
11966 | && lt->tm_yday == tm.tm_yday | |
11967 | && lt->tm_wday == tm.tm_wday | |
11968 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
11969 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
11970 | exit (1); | |
11971 | } | |
11972 | } | |
11973 | ||
11974 | int | |
11975 | main () | |
11976 | { | |
11977 | time_t t, delta; | |
11978 | int i, j; | |
11979 | ||
11980 | /* This test makes some buggy mktime implementations loop. | |
11981 | Give up after 60 seconds; a mktime slower than that | |
11982 | isn't worth using anyway. */ | |
11983 | alarm (60); | |
11984 | ||
11985 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
11986 | continue; | |
11987 | time_t_max--; | |
11988 | delta = time_t_max / 997; /* a suitable prime number */ | |
11989 | for (i = 0; i < N_STRINGS; i++) | |
11990 | { | |
11991 | if (tz_strings[i]) | |
11992 | putenv (tz_strings[i]); | |
503d2be0 | 11993 | |
98418dba CW |
11994 | for (t = 0; t <= time_t_max - delta; t += delta) |
11995 | mktime_test (t); | |
793fa0d7 DL |
11996 | mktime_test ((time_t) 60 * 60); |
11997 | mktime_test ((time_t) 60 * 60 * 24); | |
98418dba CW |
11998 | |
11999 | for (j = 1; 0 < j; j *= 2) | |
793fa0d7 | 12000 | bigtime_test (j); |
98418dba CW |
12001 | bigtime_test (j - 1); |
12002 | } | |
12003 | irix_6_4_bug (); | |
12004 | spring_forward_gap (); | |
12005 | exit (0); | |
503d2be0 AS |
12006 | } |
12007 | _ACEOF | |
98418dba | 12008 | rm -f conftest$ac_exeext |
c0d27fcc | 12009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12010 | (eval $ac_link) 2>&5 |
12011 | ac_status=$? | |
c0d27fcc | 12012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 12013 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 12014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12015 | (eval $ac_try) 2>&5 |
12016 | ac_status=$? | |
c0d27fcc | 12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12018 | (exit $ac_status); }; }; then |
98418dba | 12019 | ac_cv_func_working_mktime=yes |
503d2be0 | 12020 | else |
98418dba CW |
12021 | echo "$as_me: program exited with status $ac_status" >&5 |
12022 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12023 | sed 's/^/| /' conftest.$ac_ext >&5 |
12024 | ||
c0d27fcc | 12025 | ( exit $ac_status ) |
98418dba | 12026 | ac_cv_func_working_mktime=no |
503d2be0 | 12027 | fi |
6bae0ccf | 12028 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 12029 | fi |
ba4481b5 | 12030 | fi |
c0d27fcc | 12031 | echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
98418dba CW |
12032 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
12033 | if test $ac_cv_func_working_mktime = no; then | |
12034 | LIBOBJS="$LIBOBJS mktime.$ac_objext" | |
ba4481b5 DL |
12035 | fi |
12036 | ||
98418dba | 12037 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 12038 | |
c0d27fcc | 12039 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12040 | #define BROKEN_MKTIME 1 |
c0d27fcc | 12041 | _ACEOF |
ba4481b5 | 12042 | |
ba4481b5 | 12043 | fi |
503d2be0 | 12044 | |
98418dba CW |
12045 | ac_have_func=no # yes means we've found a way to get the load average. |
12046 | ||
6bae0ccf DL |
12047 | # Make sure getloadavg.c is where it belongs, at configure-time. |
12048 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
12049 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
12050 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
12051 | { (exit 1); exit 1; }; } | |
12052 | ||
98418dba CW |
12053 | ac_save_LIBS=$LIBS |
12054 | ||
12055 | # Check for getloadavg, but be sure not to touch the cache variable. | |
c0d27fcc | 12056 | (echo "$as_me:$LINENO: checking for getloadavg" >&5 |
98418dba CW |
12057 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
12058 | if test "${ac_cv_func_getloadavg+set}" = set; then | |
503d2be0 | 12059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12060 | else |
503d2be0 | 12061 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 12062 | #line $LINENO "configure" |
19650fd6 AS |
12063 | /* confdefs.h. */ |
12064 | _ACEOF | |
12065 | cat confdefs.h >>conftest.$ac_ext | |
12066 | cat >>conftest.$ac_ext <<_ACEOF | |
12067 | /* end confdefs.h. */ | |
98418dba | 12068 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12069 | which can conflict with char getloadavg (); below. |
12070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12071 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
12072 | #ifdef __STDC__ |
12073 | # include <limits.h> | |
12074 | #else | |
12075 | # include <assert.h> | |
12076 | #endif | |
ba4481b5 | 12077 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12078 | #ifdef __cplusplus |
12079 | extern "C" | |
19650fd6 | 12080 | { |
503d2be0 | 12081 | #endif |
ba4481b5 | 12082 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12083 | builtin and then its argument prototype would still apply. */ |
98418dba | 12084 | char getloadavg (); |
98418dba CW |
12085 | /* The GNU C library defines this for functions which it implements |
12086 | to always fail with ENOSYS. Some functions are actually named | |
12087 | something starting with __ and the normal name is an alias. */ | |
12088 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
12089 | choke me | |
12090 | #else | |
19650fd6 AS |
12091 | char (*f) () = getloadavg; |
12092 | #endif | |
12093 | #ifdef __cplusplus | |
12094 | } | |
cd958eb3 MB |
12095 | #endif |
12096 | ||
19650fd6 AS |
12097 | int |
12098 | main () | |
12099 | { | |
12100 | return f != getloadavg; | |
503d2be0 AS |
12101 | ; |
12102 | return 0; | |
12103 | } | |
12104 | _ACEOF | |
12105 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12107 | (eval $ac_link) 2>&5 |
12108 | ac_status=$? | |
c0d27fcc | 12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12110 | (exit $ac_status); } && |
793fa0d7 | 12111 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 12112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12113 | (eval $ac_try) 2>&5 |
12114 | ac_status=$? | |
c0d27fcc | 12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12116 | (exit $ac_status); }; }; then |
98418dba | 12117 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
12118 | else |
12119 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12120 | sed 's/^/| /' conftest.$ac_ext >&5 |
12121 | ||
98418dba | 12122 | ac_cv_func_getloadavg=no |
503d2be0 AS |
12123 | fi |
12124 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 12125 | fi |
c0d27fcc | 12126 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
98418dba CW |
12127 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
12128 | if test $ac_cv_func_getloadavg = yes; then | |
12129 | exit 0 | |
12130 | else | |
12131 | exit 1 | |
ba4481b5 | 12132 | fi |
98418dba | 12133 | ) && ac_have_func=yes |
ba4481b5 | 12134 | |
98418dba | 12135 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 12136 | |
98418dba CW |
12137 | for ac_func in pstat_getdynamic |
12138 | do | |
12139 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12140 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
12141 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12142 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 12143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12144 | else |
503d2be0 | 12145 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 12146 | #line $LINENO "configure" |
19650fd6 AS |
12147 | /* confdefs.h. */ |
12148 | _ACEOF | |
12149 | cat confdefs.h >>conftest.$ac_ext | |
12150 | cat >>conftest.$ac_ext <<_ACEOF | |
12151 | /* end confdefs.h. */ | |
98418dba | 12152 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12153 | which can conflict with char $ac_func (); below. |
12154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12155 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
12156 | #ifdef __STDC__ |
12157 | # include <limits.h> | |
12158 | #else | |
12159 | # include <assert.h> | |
12160 | #endif | |
ba4481b5 | 12161 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12162 | #ifdef __cplusplus |
12163 | extern "C" | |
19650fd6 | 12164 | { |
503d2be0 | 12165 | #endif |
ba4481b5 | 12166 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12167 | builtin and then its argument prototype would still apply. */ |
98418dba | 12168 | char $ac_func (); |
98418dba CW |
12169 | /* The GNU C library defines this for functions which it implements |
12170 | to always fail with ENOSYS. Some functions are actually named | |
12171 | something starting with __ and the normal name is an alias. */ | |
12172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12173 | choke me | |
12174 | #else | |
19650fd6 AS |
12175 | char (*f) () = $ac_func; |
12176 | #endif | |
12177 | #ifdef __cplusplus | |
12178 | } | |
98418dba CW |
12179 | #endif |
12180 | ||
19650fd6 AS |
12181 | int |
12182 | main () | |
12183 | { | |
12184 | return f != $ac_func; | |
98418dba CW |
12185 | ; |
12186 | return 0; | |
12187 | } | |
f21fadcc | 12188 | _ACEOF |
98418dba | 12189 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 12190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 12191 | (eval $ac_link) 2>&5 |
f21fadcc | 12192 | ac_status=$? |
c0d27fcc | 12193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 12194 | (exit $ac_status); } && |
793fa0d7 | 12195 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 12196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
12197 | (eval $ac_try) 2>&5 |
12198 | ac_status=$? | |
c0d27fcc | 12199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12200 | (exit $ac_status); }; }; then |
12201 | eval "$as_ac_var=yes" | |
f21fadcc JD |
12202 | else |
12203 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12204 | sed 's/^/| /' conftest.$ac_ext >&5 |
12205 | ||
98418dba | 12206 | eval "$as_ac_var=no" |
f21fadcc | 12207 | fi |
98418dba | 12208 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f21fadcc | 12209 | fi |
c0d27fcc | 12210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
12211 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12212 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 12213 | cat >>confdefs.h <<_ACEOF |
98418dba | 12214 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 12215 | _ACEOF |
98418dba CW |
12216 | |
12217 | fi | |
12218 | done | |
12219 | ||
c0d27fcc | 12220 | |
98418dba CW |
12221 | # Solaris has libkstat which does not require root. |
12222 | ||
c0d27fcc | 12223 | echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
98418dba CW |
12224 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
12225 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
f21fadcc JD |
12226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12227 | else | |
12228 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 12229 | LIBS="-lkstat $LIBS" |
f21fadcc | 12230 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 12231 | #line $LINENO "configure" |
19650fd6 AS |
12232 | /* confdefs.h. */ |
12233 | _ACEOF | |
12234 | cat confdefs.h >>conftest.$ac_ext | |
12235 | cat >>conftest.$ac_ext <<_ACEOF | |
12236 | /* end confdefs.h. */ | |
f21fadcc JD |
12237 | |
12238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12239 | #ifdef __cplusplus | |
12240 | extern "C" | |
12241 | #endif | |
12242 | /* We use char because int might match the return type of a gcc2 | |
12243 | builtin and then its argument prototype would still apply. */ | |
98418dba | 12244 | char kstat_open (); |
f21fadcc JD |
12245 | int |
12246 | main () | |
12247 | { | |
98418dba | 12248 | kstat_open (); |
f21fadcc JD |
12249 | ; |
12250 | return 0; | |
12251 | } | |
12252 | _ACEOF | |
12253 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f21fadcc JD |
12255 | (eval $ac_link) 2>&5 |
12256 | ac_status=$? | |
c0d27fcc | 12257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 12258 | (exit $ac_status); } && |
793fa0d7 | 12259 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 12260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f21fadcc JD |
12261 | (eval $ac_try) 2>&5 |
12262 | ac_status=$? | |
c0d27fcc | 12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 12264 | (exit $ac_status); }; }; then |
98418dba | 12265 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
12266 | else |
12267 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12268 | sed 's/^/| /' conftest.$ac_ext >&5 |
12269 | ||
98418dba | 12270 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc JD |
12271 | fi |
12272 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12273 | LIBS=$ac_check_lib_save_LIBS | |
12274 | fi | |
c0d27fcc | 12275 | echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
98418dba CW |
12276 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
12277 | if test $ac_cv_lib_kstat_kstat_open = yes; then | |
c0d27fcc | 12278 | cat >>confdefs.h <<_ACEOF |
98418dba | 12279 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 12280 | _ACEOF |
f21fadcc | 12281 | |
98418dba | 12282 | LIBS="-lkstat $LIBS" |
f21fadcc | 12283 | |
f21fadcc JD |
12284 | fi |
12285 | ||
98418dba CW |
12286 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
12287 | ||
12288 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
12289 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
12290 | # to get the right answer into the cache. | |
12291 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
12292 | if test $ac_have_func = no; then | |
c0d27fcc | 12293 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
98418dba CW |
12294 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
12295 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
503d2be0 | 12296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12297 | else |
98418dba CW |
12298 | ac_check_lib_save_LIBS=$LIBS |
12299 | LIBS="-lelf $LIBS" | |
12300 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 12301 | #line $LINENO "configure" |
19650fd6 AS |
12302 | /* confdefs.h. */ |
12303 | _ACEOF | |
12304 | cat confdefs.h >>conftest.$ac_ext | |
12305 | cat >>conftest.$ac_ext <<_ACEOF | |
12306 | /* end confdefs.h. */ | |
98418dba CW |
12307 | |
12308 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12309 | #ifdef __cplusplus | |
12310 | extern "C" | |
12311 | #endif | |
12312 | /* We use char because int might match the return type of a gcc2 | |
12313 | builtin and then its argument prototype would still apply. */ | |
12314 | char elf_begin (); | |
503d2be0 AS |
12315 | int |
12316 | main () | |
12317 | { | |
98418dba | 12318 | elf_begin (); |
503d2be0 AS |
12319 | ; |
12320 | return 0; | |
12321 | } | |
12322 | _ACEOF | |
12323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12325 | (eval $ac_link) 2>&5 |
12326 | ac_status=$? | |
c0d27fcc | 12327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12328 | (exit $ac_status); } && |
793fa0d7 | 12329 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 12330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12331 | (eval $ac_try) 2>&5 |
12332 | ac_status=$? | |
c0d27fcc | 12333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12334 | (exit $ac_status); }; }; then |
98418dba | 12335 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 12336 | else |
503d2be0 | 12337 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12338 | sed 's/^/| /' conftest.$ac_ext >&5 |
12339 | ||
98418dba | 12340 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 12341 | fi |
503d2be0 | 12342 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 12343 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12344 | fi |
c0d27fcc | 12345 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
98418dba CW |
12346 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
12347 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
12348 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
12349 | fi |
12350 | ||
98418dba CW |
12351 | fi |
12352 | if test $ac_have_func = no; then | |
c0d27fcc | 12353 | echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
98418dba CW |
12354 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
12355 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
503d2be0 | 12356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12357 | else |
98418dba CW |
12358 | ac_check_lib_save_LIBS=$LIBS |
12359 | LIBS="-lkvm $LIBS" | |
12360 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 12361 | #line $LINENO "configure" |
19650fd6 AS |
12362 | /* confdefs.h. */ |
12363 | _ACEOF | |
12364 | cat confdefs.h >>conftest.$ac_ext | |
12365 | cat >>conftest.$ac_ext <<_ACEOF | |
12366 | /* end confdefs.h. */ | |
98418dba CW |
12367 | |
12368 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12369 | #ifdef __cplusplus | |
12370 | extern "C" | |
12371 | #endif | |
12372 | /* We use char because int might match the return type of a gcc2 | |
12373 | builtin and then its argument prototype would still apply. */ | |
12374 | char kvm_open (); | |
503d2be0 AS |
12375 | int |
12376 | main () | |
12377 | { | |
98418dba | 12378 | kvm_open (); |
503d2be0 AS |
12379 | ; |
12380 | return 0; | |
12381 | } | |
12382 | _ACEOF | |
12383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12385 | (eval $ac_link) 2>&5 |
12386 | ac_status=$? | |
c0d27fcc | 12387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12388 | (exit $ac_status); } && |
793fa0d7 | 12389 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 12390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12391 | (eval $ac_try) 2>&5 |
12392 | ac_status=$? | |
c0d27fcc | 12393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12394 | (exit $ac_status); }; }; then |
98418dba | 12395 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
12396 | else |
12397 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12398 | sed 's/^/| /' conftest.$ac_ext >&5 |
12399 | ||
98418dba | 12400 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 AS |
12401 | fi |
12402 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12403 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 12404 | fi |
c0d27fcc | 12405 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
98418dba CW |
12406 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
12407 | if test $ac_cv_lib_kvm_kvm_open = yes; then | |
12408 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
12409 | fi |
12410 | ||
98418dba | 12411 | # Check for the 4.4BSD definition of getloadavg. |
c0d27fcc | 12412 | echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
98418dba CW |
12413 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
12414 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
503d2be0 | 12415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12416 | else |
98418dba CW |
12417 | ac_check_lib_save_LIBS=$LIBS |
12418 | LIBS="-lutil $LIBS" | |
12419 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 12420 | #line $LINENO "configure" |
19650fd6 AS |
12421 | /* confdefs.h. */ |
12422 | _ACEOF | |
12423 | cat confdefs.h >>conftest.$ac_ext | |
12424 | cat >>conftest.$ac_ext <<_ACEOF | |
12425 | /* end confdefs.h. */ | |
98418dba CW |
12426 | |
12427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12428 | #ifdef __cplusplus | |
12429 | extern "C" | |
12430 | #endif | |
12431 | /* We use char because int might match the return type of a gcc2 | |
12432 | builtin and then its argument prototype would still apply. */ | |
12433 | char getloadavg (); | |
503d2be0 AS |
12434 | int |
12435 | main () | |
12436 | { | |
98418dba | 12437 | getloadavg (); |
503d2be0 AS |
12438 | ; |
12439 | return 0; | |
12440 | } | |
12441 | _ACEOF | |
12442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12444 | (eval $ac_link) 2>&5 |
12445 | ac_status=$? | |
c0d27fcc | 12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12447 | (exit $ac_status); } && |
793fa0d7 | 12448 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 12449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12450 | (eval $ac_try) 2>&5 |
12451 | ac_status=$? | |
c0d27fcc | 12452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12453 | (exit $ac_status); }; }; then |
98418dba | 12454 | ac_cv_lib_util_getloadavg=yes |
ba4481b5 | 12455 | else |
503d2be0 | 12456 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12457 | sed 's/^/| /' conftest.$ac_ext >&5 |
12458 | ||
98418dba | 12459 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 12460 | fi |
503d2be0 | 12461 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12462 | LIBS=$ac_check_lib_save_LIBS |
12463 | fi | |
c0d27fcc | 12464 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
98418dba CW |
12465 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
12466 | if test $ac_cv_lib_util_getloadavg = yes; then | |
12467 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 12468 | fi |
503d2be0 | 12469 | |
98418dba | 12470 | fi |
ba4481b5 | 12471 | |
98418dba CW |
12472 | if test $ac_have_func = no; then |
12473 | # There is a commonly available library for RS/6000 AIX. | |
12474 | # Since it is not a standard part of AIX, it might be installed locally. | |
12475 | ac_getloadavg_LIBS=$LIBS | |
12476 | LIBS="-L/usr/local/lib $LIBS" | |
c0d27fcc | 12477 | echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
98418dba CW |
12478 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
12479 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
503d2be0 | 12480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12481 | else |
98418dba CW |
12482 | ac_check_lib_save_LIBS=$LIBS |
12483 | LIBS="-lgetloadavg $LIBS" | |
12484 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 12485 | #line $LINENO "configure" |
19650fd6 AS |
12486 | /* confdefs.h. */ |
12487 | _ACEOF | |
12488 | cat confdefs.h >>conftest.$ac_ext | |
12489 | cat >>conftest.$ac_ext <<_ACEOF | |
12490 | /* end confdefs.h. */ | |
ba4481b5 | 12491 | |
98418dba CW |
12492 | /* Override any gcc2 internal prototype to avoid an error. */ |
12493 | #ifdef __cplusplus | |
12494 | extern "C" | |
12495 | #endif | |
12496 | /* We use char because int might match the return type of a gcc2 | |
12497 | builtin and then its argument prototype would still apply. */ | |
12498 | char getloadavg (); | |
98418dba CW |
12499 | int |
12500 | main () | |
12501 | { | |
12502 | getloadavg (); | |
12503 | ; | |
12504 | return 0; | |
12505 | } | |
503d2be0 | 12506 | _ACEOF |
98418dba | 12507 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 12508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
12509 | (eval $ac_link) 2>&5 |
12510 | ac_status=$? | |
c0d27fcc | 12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 12512 | (exit $ac_status); } && |
793fa0d7 | 12513 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 12514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
12515 | (eval $ac_try) 2>&5 |
12516 | ac_status=$? | |
c0d27fcc | 12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12518 | (exit $ac_status); }; }; then |
12519 | ac_cv_lib_getloadavg_getloadavg=yes | |
ba4481b5 | 12520 | else |
98418dba | 12521 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12522 | sed 's/^/| /' conftest.$ac_ext >&5 |
12523 | ||
98418dba CW |
12524 | ac_cv_lib_getloadavg_getloadavg=no |
12525 | fi | |
12526 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12527 | LIBS=$ac_check_lib_save_LIBS | |
12528 | fi | |
c0d27fcc | 12529 | echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
98418dba CW |
12530 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
12531 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
12532 | LIBS="-lgetloadavg $LIBS" | |
12533 | else | |
12534 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 12535 | fi |
ba4481b5 DL |
12536 | |
12537 | fi | |
98418dba CW |
12538 | |
12539 | # Make sure it is really in the library, if we think we found it, | |
12540 | # otherwise set up the replacement function. | |
12541 | ||
12542 | for ac_func in getloadavg | |
12543 | do | |
12544 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12545 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
12546 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12547 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 12549 | else |
503d2be0 | 12550 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 12551 | #line $LINENO "configure" |
19650fd6 AS |
12552 | /* confdefs.h. */ |
12553 | _ACEOF | |
12554 | cat confdefs.h >>conftest.$ac_ext | |
12555 | cat >>conftest.$ac_ext <<_ACEOF | |
12556 | /* end confdefs.h. */ | |
ba4481b5 | 12557 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12558 | which can conflict with char $ac_func (); below. |
12559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12560 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
12561 | #ifdef __STDC__ |
12562 | # include <limits.h> | |
12563 | #else | |
12564 | # include <assert.h> | |
12565 | #endif | |
ba4481b5 | 12566 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12567 | #ifdef __cplusplus |
12568 | extern "C" | |
19650fd6 | 12569 | { |
503d2be0 | 12570 | #endif |
ba4481b5 | 12571 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
12572 | builtin and then its argument prototype would still apply. */ |
12573 | char $ac_func (); | |
ba4481b5 DL |
12574 | /* The GNU C library defines this for functions which it implements |
12575 | to always fail with ENOSYS. Some functions are actually named | |
12576 | something starting with __ and the normal name is an alias. */ | |
12577 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12578 | choke me | |
12579 | #else | |
19650fd6 AS |
12580 | char (*f) () = $ac_func; |
12581 | #endif | |
12582 | #ifdef __cplusplus | |
12583 | } | |
cd958eb3 MB |
12584 | #endif |
12585 | ||
19650fd6 AS |
12586 | int |
12587 | main () | |
12588 | { | |
12589 | return f != $ac_func; | |
503d2be0 AS |
12590 | ; |
12591 | return 0; | |
12592 | } | |
12593 | _ACEOF | |
12594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12596 | (eval $ac_link) 2>&5 |
12597 | ac_status=$? | |
c0d27fcc | 12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12599 | (exit $ac_status); } && |
793fa0d7 | 12600 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 12601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12602 | (eval $ac_try) 2>&5 |
12603 | ac_status=$? | |
c0d27fcc | 12604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12605 | (exit $ac_status); }; }; then |
12606 | eval "$as_ac_var=yes" | |
12607 | else | |
12608 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12609 | sed 's/^/| /' conftest.$ac_ext >&5 |
12610 | ||
503d2be0 AS |
12611 | eval "$as_ac_var=no" |
12612 | fi | |
12613 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12614 | fi | |
c0d27fcc | 12615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
12616 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12617 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 12618 | cat >>confdefs.h <<_ACEOF |
98418dba | 12619 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 12620 | _ACEOF |
503d2be0 | 12621 | |
98418dba CW |
12622 | else |
12623 | LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
ba4481b5 | 12624 | |
c0d27fcc | 12625 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12626 | #define C_GETLOADAVG 1 |
c0d27fcc | 12627 | _ACEOF |
ba4481b5 | 12628 | |
98418dba CW |
12629 | # Figure out what our getloadavg.c needs. |
12630 | ac_have_func=no | |
c0d27fcc MR |
12631 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
12632 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
98418dba CW |
12633 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
12634 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
503d2be0 | 12635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
12636 | fi |
12637 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
12638 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
ba4481b5 | 12639 | else |
c0d27fcc MR |
12640 | # Is the header compilable? |
12641 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
12642 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
12643 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 12644 | #line $LINENO "configure" |
19650fd6 AS |
12645 | /* confdefs.h. */ |
12646 | _ACEOF | |
12647 | cat confdefs.h >>conftest.$ac_ext | |
12648 | cat >>conftest.$ac_ext <<_ACEOF | |
12649 | /* end confdefs.h. */ | |
c0d27fcc MR |
12650 | $ac_includes_default |
12651 | #include <sys/dg_sys_info.h> | |
12652 | _ACEOF | |
12653 | rm -f conftest.$ac_objext | |
12654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12655 | (eval $ac_compile) 2>&5 | |
12656 | ac_status=$? | |
12657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12658 | (exit $ac_status); } && | |
793fa0d7 | 12659 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
12660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12661 | (eval $ac_try) 2>&5 | |
12662 | ac_status=$? | |
12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12664 | (exit $ac_status); }; }; then | |
12665 | ac_header_compiler=yes | |
12666 | else | |
12667 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12668 | sed 's/^/| /' conftest.$ac_ext >&5 |
12669 | ||
c0d27fcc MR |
12670 | ac_header_compiler=no |
12671 | fi | |
12672 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12673 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12674 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12675 | ||
12676 | # Is the header present? | |
12677 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
12678 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
12679 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 12680 | #line $LINENO "configure" |
19650fd6 AS |
12681 | /* confdefs.h. */ |
12682 | _ACEOF | |
12683 | cat confdefs.h >>conftest.$ac_ext | |
12684 | cat >>conftest.$ac_ext <<_ACEOF | |
12685 | /* end confdefs.h. */ | |
98418dba CW |
12686 | #include <sys/dg_sys_info.h> |
12687 | _ACEOF | |
c0d27fcc | 12688 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
12689 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12690 | ac_status=$? | |
6bae0ccf | 12691 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12692 | rm -f conftest.er1 |
12693 | cat conftest.err >&5 | |
c0d27fcc | 12694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12695 | (exit $ac_status); } >/dev/null; then |
12696 | if test -s conftest.err; then | |
12697 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12698 | else | |
12699 | ac_cpp_err= | |
12700 | fi | |
12701 | else | |
12702 | ac_cpp_err=yes | |
ba4481b5 | 12703 | fi |
98418dba | 12704 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 12705 | ac_header_preproc=yes |
98418dba CW |
12706 | else |
12707 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12708 | sed 's/^/| /' conftest.$ac_ext >&5 |
12709 | ||
c0d27fcc | 12710 | ac_header_preproc=no |
ba4481b5 | 12711 | fi |
98418dba | 12712 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
12713 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12714 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12715 | ||
12716 | # So? What about this header? | |
12717 | case $ac_header_compiler:$ac_header_preproc in | |
12718 | yes:no ) | |
12719 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12720 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
12721 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
12722 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} | |
12723 | ( | |
12724 | cat <<\_ASBOX | |
12725 | ## ------------------------------------ ## | |
12726 | ## Report this to bug-autoconf@gnu.org. ## | |
12727 | ## ------------------------------------ ## | |
12728 | _ASBOX | |
12729 | ) | | |
12730 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 12731 | ;; |
c0d27fcc MR |
12732 | no:yes ) |
12733 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
12734 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
12735 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
12736 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 12737 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 12738 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
12739 | ( |
12740 | cat <<\_ASBOX | |
793fa0d7 DL |
12741 | ## ------------------------------------ ## |
12742 | ## Report this to bug-autoconf@gnu.org. ## | |
12743 | ## ------------------------------------ ## | |
19650fd6 AS |
12744 | _ASBOX |
12745 | ) | | |
12746 | sed "s/^/$as_me: WARNING: /" >&2 | |
12747 | ;; | |
c0d27fcc MR |
12748 | esac |
12749 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
12750 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
12751 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
12752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12753 | else | |
12754 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 12755 | fi |
c0d27fcc | 12756 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
98418dba | 12757 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
c0d27fcc MR |
12758 | |
12759 | fi | |
98418dba CW |
12760 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
12761 | ac_have_func=yes | |
ba4481b5 | 12762 | |
c0d27fcc | 12763 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12764 | #define DGUX 1 |
c0d27fcc MR |
12765 | _ACEOF |
12766 | ||
503d2be0 | 12767 | |
c0d27fcc | 12768 | echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
98418dba CW |
12769 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
12770 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
503d2be0 | 12771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12772 | else |
503d2be0 | 12773 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 12774 | LIBS="-ldgc $LIBS" |
503d2be0 | 12775 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 12776 | #line $LINENO "configure" |
19650fd6 AS |
12777 | /* confdefs.h. */ |
12778 | _ACEOF | |
12779 | cat confdefs.h >>conftest.$ac_ext | |
12780 | cat >>conftest.$ac_ext <<_ACEOF | |
12781 | /* end confdefs.h. */ | |
503d2be0 | 12782 | |
ba4481b5 | 12783 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12784 | #ifdef __cplusplus |
12785 | extern "C" | |
12786 | #endif | |
ba4481b5 | 12787 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12788 | builtin and then its argument prototype would still apply. */ |
98418dba | 12789 | char dg_sys_info (); |
503d2be0 AS |
12790 | int |
12791 | main () | |
12792 | { | |
98418dba | 12793 | dg_sys_info (); |
503d2be0 AS |
12794 | ; |
12795 | return 0; | |
12796 | } | |
12797 | _ACEOF | |
12798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12800 | (eval $ac_link) 2>&5 |
12801 | ac_status=$? | |
c0d27fcc | 12802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12803 | (exit $ac_status); } && |
793fa0d7 | 12804 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 12805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12806 | (eval $ac_try) 2>&5 |
12807 | ac_status=$? | |
c0d27fcc | 12808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12809 | (exit $ac_status); }; }; then |
98418dba | 12810 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
12811 | else |
12812 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12813 | sed 's/^/| /' conftest.$ac_ext >&5 |
12814 | ||
98418dba | 12815 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 AS |
12816 | fi |
12817 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12818 | LIBS=$ac_check_lib_save_LIBS | |
12819 | fi | |
c0d27fcc | 12820 | echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
98418dba CW |
12821 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
12822 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
c0d27fcc | 12823 | cat >>confdefs.h <<_ACEOF |
98418dba | 12824 | #define HAVE_LIBDGC 1 |
c0d27fcc | 12825 | _ACEOF |
ba4481b5 | 12826 | |
98418dba | 12827 | LIBS="-ldgc $LIBS" |
ba4481b5 | 12828 | |
ba4481b5 DL |
12829 | fi |
12830 | ||
98418dba | 12831 | fi |
503d2be0 | 12832 | |
c0d27fcc MR |
12833 | |
12834 | ||
12835 | if test "${ac_cv_header_locale_h+set}" = set; then | |
12836 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
98418dba CW |
12837 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
12838 | if test "${ac_cv_header_locale_h+set}" = set; then | |
503d2be0 | 12839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
12840 | fi |
12841 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
12842 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
503d2be0 | 12843 | else |
c0d27fcc MR |
12844 | # Is the header compilable? |
12845 | echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
12846 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
12847 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 12848 | #line $LINENO "configure" |
19650fd6 AS |
12849 | /* confdefs.h. */ |
12850 | _ACEOF | |
12851 | cat confdefs.h >>conftest.$ac_ext | |
12852 | cat >>conftest.$ac_ext <<_ACEOF | |
12853 | /* end confdefs.h. */ | |
c0d27fcc MR |
12854 | $ac_includes_default |
12855 | #include <locale.h> | |
12856 | _ACEOF | |
12857 | rm -f conftest.$ac_objext | |
12858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12859 | (eval $ac_compile) 2>&5 | |
12860 | ac_status=$? | |
12861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12862 | (exit $ac_status); } && | |
793fa0d7 | 12863 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
12864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12865 | (eval $ac_try) 2>&5 | |
12866 | ac_status=$? | |
12867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12868 | (exit $ac_status); }; }; then | |
12869 | ac_header_compiler=yes | |
12870 | else | |
12871 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12872 | sed 's/^/| /' conftest.$ac_ext >&5 |
12873 | ||
c0d27fcc MR |
12874 | ac_header_compiler=no |
12875 | fi | |
12876 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12877 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12878 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12879 | ||
12880 | # Is the header present? | |
12881 | echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
12882 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
12883 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 12884 | #line $LINENO "configure" |
19650fd6 AS |
12885 | /* confdefs.h. */ |
12886 | _ACEOF | |
12887 | cat confdefs.h >>conftest.$ac_ext | |
12888 | cat >>conftest.$ac_ext <<_ACEOF | |
12889 | /* end confdefs.h. */ | |
98418dba | 12890 | #include <locale.h> |
503d2be0 | 12891 | _ACEOF |
c0d27fcc | 12892 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 12893 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 12894 | ac_status=$? |
6bae0ccf | 12895 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12896 | rm -f conftest.er1 |
12897 | cat conftest.err >&5 | |
c0d27fcc | 12898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12899 | (exit $ac_status); } >/dev/null; then |
12900 | if test -s conftest.err; then | |
12901 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12902 | else | |
12903 | ac_cpp_err= | |
12904 | fi | |
503d2be0 | 12905 | else |
98418dba | 12906 | ac_cpp_err=yes |
503d2be0 | 12907 | fi |
98418dba | 12908 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 12909 | ac_header_preproc=yes |
98418dba CW |
12910 | else |
12911 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12912 | sed 's/^/| /' conftest.$ac_ext >&5 |
12913 | ||
c0d27fcc | 12914 | ac_header_preproc=no |
ba4481b5 | 12915 | fi |
98418dba | 12916 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
12917 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12918 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12919 | ||
12920 | # So? What about this header? | |
12921 | case $ac_header_compiler:$ac_header_preproc in | |
12922 | yes:no ) | |
12923 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12924 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
12925 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
12926 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} | |
12927 | ( | |
12928 | cat <<\_ASBOX | |
12929 | ## ------------------------------------ ## | |
12930 | ## Report this to bug-autoconf@gnu.org. ## | |
12931 | ## ------------------------------------ ## | |
12932 | _ASBOX | |
12933 | ) | | |
12934 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 12935 | ;; |
c0d27fcc MR |
12936 | no:yes ) |
12937 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 | |
12938 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
12939 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
12940 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 12941 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 12942 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
12943 | ( |
12944 | cat <<\_ASBOX | |
793fa0d7 DL |
12945 | ## ------------------------------------ ## |
12946 | ## Report this to bug-autoconf@gnu.org. ## | |
12947 | ## ------------------------------------ ## | |
19650fd6 AS |
12948 | _ASBOX |
12949 | ) | | |
12950 | sed "s/^/$as_me: WARNING: /" >&2 | |
12951 | ;; | |
c0d27fcc MR |
12952 | esac |
12953 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
12954 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
12955 | if test "${ac_cv_header_locale_h+set}" = set; then | |
12956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12957 | else | |
12958 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 12959 | fi |
c0d27fcc | 12960 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
98418dba CW |
12961 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
12962 | ||
c0d27fcc MR |
12963 | fi |
12964 | ||
12965 | ||
12966 | ||
98418dba | 12967 | for ac_func in setlocale |
ba4481b5 | 12968 | do |
503d2be0 | 12969 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 12970 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
12971 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12972 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 12974 | else |
503d2be0 | 12975 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 12976 | #line $LINENO "configure" |
19650fd6 AS |
12977 | /* confdefs.h. */ |
12978 | _ACEOF | |
12979 | cat confdefs.h >>conftest.$ac_ext | |
12980 | cat >>conftest.$ac_ext <<_ACEOF | |
12981 | /* end confdefs.h. */ | |
ba4481b5 | 12982 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12983 | which can conflict with char $ac_func (); below. |
12984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12985 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
12986 | #ifdef __STDC__ |
12987 | # include <limits.h> | |
12988 | #else | |
12989 | # include <assert.h> | |
12990 | #endif | |
ba4481b5 | 12991 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12992 | #ifdef __cplusplus |
12993 | extern "C" | |
19650fd6 | 12994 | { |
503d2be0 | 12995 | #endif |
ba4481b5 | 12996 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
12997 | builtin and then its argument prototype would still apply. */ |
12998 | char $ac_func (); | |
ba4481b5 DL |
12999 | /* The GNU C library defines this for functions which it implements |
13000 | to always fail with ENOSYS. Some functions are actually named | |
13001 | something starting with __ and the normal name is an alias. */ | |
13002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13003 | choke me | |
13004 | #else | |
19650fd6 AS |
13005 | char (*f) () = $ac_func; |
13006 | #endif | |
13007 | #ifdef __cplusplus | |
13008 | } | |
ba4481b5 DL |
13009 | #endif |
13010 | ||
19650fd6 AS |
13011 | int |
13012 | main () | |
13013 | { | |
13014 | return f != $ac_func; | |
503d2be0 AS |
13015 | ; |
13016 | return 0; | |
13017 | } | |
13018 | _ACEOF | |
13019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
13021 | (eval $ac_link) 2>&5 |
13022 | ac_status=$? | |
c0d27fcc | 13023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13024 | (exit $ac_status); } && |
793fa0d7 | 13025 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 13026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13027 | (eval $ac_try) 2>&5 |
13028 | ac_status=$? | |
c0d27fcc | 13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13030 | (exit $ac_status); }; }; then |
13031 | eval "$as_ac_var=yes" | |
13032 | else | |
13033 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13034 | sed 's/^/| /' conftest.$ac_ext >&5 |
13035 | ||
503d2be0 AS |
13036 | eval "$as_ac_var=no" |
13037 | fi | |
13038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13039 | fi | |
c0d27fcc | 13040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
13041 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13042 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13043 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 13044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13045 | _ACEOF |
ba4481b5 | 13046 | |
ba4481b5 DL |
13047 | fi |
13048 | done | |
13049 | ||
c0d27fcc | 13050 | |
98418dba CW |
13051 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
13052 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
13053 | # Irix 4.0.5F has the header but not the library. | |
13054 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
13055 | ac_have_func=yes | |
13056 | ||
c0d27fcc | 13057 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13058 | #define SVR4 1 |
c0d27fcc | 13059 | _ACEOF |
98418dba CW |
13060 | |
13061 | fi | |
13062 | ||
13063 | if test $ac_have_func = no; then | |
c0d27fcc MR |
13064 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
13065 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
98418dba CW |
13066 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
13067 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
503d2be0 | 13068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
13069 | fi |
13070 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
13071 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
98418dba | 13072 | else |
c0d27fcc MR |
13073 | # Is the header compilable? |
13074 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
13075 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
13076 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13077 | #line $LINENO "configure" |
19650fd6 AS |
13078 | /* confdefs.h. */ |
13079 | _ACEOF | |
13080 | cat confdefs.h >>conftest.$ac_ext | |
13081 | cat >>conftest.$ac_ext <<_ACEOF | |
13082 | /* end confdefs.h. */ | |
c0d27fcc MR |
13083 | $ac_includes_default |
13084 | #include <inq_stats/cpustats.h> | |
13085 | _ACEOF | |
13086 | rm -f conftest.$ac_objext | |
13087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13088 | (eval $ac_compile) 2>&5 | |
13089 | ac_status=$? | |
13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13091 | (exit $ac_status); } && | |
793fa0d7 | 13092 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
13093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13094 | (eval $ac_try) 2>&5 | |
13095 | ac_status=$? | |
13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13097 | (exit $ac_status); }; }; then | |
13098 | ac_header_compiler=yes | |
13099 | else | |
13100 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13101 | sed 's/^/| /' conftest.$ac_ext >&5 |
13102 | ||
c0d27fcc MR |
13103 | ac_header_compiler=no |
13104 | fi | |
13105 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13106 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13107 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13108 | ||
13109 | # Is the header present? | |
13110 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
13111 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
13112 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13113 | #line $LINENO "configure" |
19650fd6 AS |
13114 | /* confdefs.h. */ |
13115 | _ACEOF | |
13116 | cat confdefs.h >>conftest.$ac_ext | |
13117 | cat >>conftest.$ac_ext <<_ACEOF | |
13118 | /* end confdefs.h. */ | |
98418dba | 13119 | #include <inq_stats/cpustats.h> |
503d2be0 | 13120 | _ACEOF |
c0d27fcc | 13121 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13122 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13123 | ac_status=$? | |
6bae0ccf | 13124 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13125 | rm -f conftest.er1 |
13126 | cat conftest.err >&5 | |
c0d27fcc | 13127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13128 | (exit $ac_status); } >/dev/null; then |
13129 | if test -s conftest.err; then | |
13130 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13131 | else | |
13132 | ac_cpp_err= | |
13133 | fi | |
13134 | else | |
13135 | ac_cpp_err=yes | |
13136 | fi | |
13137 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13138 | ac_header_preproc=yes |
503d2be0 AS |
13139 | else |
13140 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13141 | sed 's/^/| /' conftest.$ac_ext >&5 |
13142 | ||
c0d27fcc | 13143 | ac_header_preproc=no |
ba4481b5 | 13144 | fi |
503d2be0 | 13145 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13146 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13147 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13148 | ||
13149 | # So? What about this header? | |
13150 | case $ac_header_compiler:$ac_header_preproc in | |
13151 | yes:no ) | |
13152 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13153 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
13154 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
13155 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} | |
13156 | ( | |
13157 | cat <<\_ASBOX | |
13158 | ## ------------------------------------ ## | |
13159 | ## Report this to bug-autoconf@gnu.org. ## | |
13160 | ## ------------------------------------ ## | |
13161 | _ASBOX | |
13162 | ) | | |
13163 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 13164 | ;; |
c0d27fcc MR |
13165 | no:yes ) |
13166 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 | |
13167 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
13168 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
13169 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 13170 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13171 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
13172 | ( |
13173 | cat <<\_ASBOX | |
793fa0d7 DL |
13174 | ## ------------------------------------ ## |
13175 | ## Report this to bug-autoconf@gnu.org. ## | |
13176 | ## ------------------------------------ ## | |
19650fd6 AS |
13177 | _ASBOX |
13178 | ) | | |
13179 | sed "s/^/$as_me: WARNING: /" >&2 | |
13180 | ;; | |
c0d27fcc MR |
13181 | esac |
13182 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
13183 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
13184 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
13185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13186 | else | |
13187 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 13188 | fi |
c0d27fcc | 13189 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
98418dba | 13190 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
c0d27fcc MR |
13191 | |
13192 | fi | |
98418dba CW |
13193 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
13194 | ac_have_func=yes | |
ba4481b5 | 13195 | |
c0d27fcc | 13196 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13197 | #define UMAX 1 |
c0d27fcc | 13198 | _ACEOF |
98418dba | 13199 | |
c0d27fcc MR |
13200 | |
13201 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 13202 | #define UMAX4_3 1 |
c0d27fcc | 13203 | _ACEOF |
98418dba CW |
13204 | |
13205 | fi | |
13206 | ||
c0d27fcc | 13207 | |
98418dba CW |
13208 | fi |
13209 | ||
13210 | if test $ac_have_func = no; then | |
c0d27fcc MR |
13211 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
13212 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
98418dba CW |
13213 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
13214 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
503d2be0 | 13215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
13216 | fi |
13217 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
13218 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
503d2be0 | 13219 | else |
c0d27fcc MR |
13220 | # Is the header compilable? |
13221 | echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
13222 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
13223 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13224 | #line $LINENO "configure" |
19650fd6 AS |
13225 | /* confdefs.h. */ |
13226 | _ACEOF | |
13227 | cat confdefs.h >>conftest.$ac_ext | |
13228 | cat >>conftest.$ac_ext <<_ACEOF | |
13229 | /* end confdefs.h. */ | |
c0d27fcc MR |
13230 | $ac_includes_default |
13231 | #include <sys/cpustats.h> | |
13232 | _ACEOF | |
13233 | rm -f conftest.$ac_objext | |
13234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13235 | (eval $ac_compile) 2>&5 | |
13236 | ac_status=$? | |
13237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13238 | (exit $ac_status); } && | |
793fa0d7 | 13239 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
13240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13241 | (eval $ac_try) 2>&5 | |
13242 | ac_status=$? | |
13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13244 | (exit $ac_status); }; }; then | |
13245 | ac_header_compiler=yes | |
13246 | else | |
13247 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13248 | sed 's/^/| /' conftest.$ac_ext >&5 |
13249 | ||
c0d27fcc MR |
13250 | ac_header_compiler=no |
13251 | fi | |
13252 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13253 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13254 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13255 | ||
13256 | # Is the header present? | |
13257 | echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
13258 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
13259 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13260 | #line $LINENO "configure" |
19650fd6 AS |
13261 | /* confdefs.h. */ |
13262 | _ACEOF | |
13263 | cat confdefs.h >>conftest.$ac_ext | |
13264 | cat >>conftest.$ac_ext <<_ACEOF | |
13265 | /* end confdefs.h. */ | |
98418dba CW |
13266 | #include <sys/cpustats.h> |
13267 | _ACEOF | |
c0d27fcc | 13268 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
13269 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13270 | ac_status=$? | |
6bae0ccf | 13271 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13272 | rm -f conftest.er1 |
13273 | cat conftest.err >&5 | |
c0d27fcc | 13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
13275 | (exit $ac_status); } >/dev/null; then |
13276 | if test -s conftest.err; then | |
13277 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13278 | else | |
13279 | ac_cpp_err= | |
13280 | fi | |
13281 | else | |
13282 | ac_cpp_err=yes | |
503d2be0 | 13283 | fi |
98418dba | 13284 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 13285 | ac_header_preproc=yes |
98418dba CW |
13286 | else |
13287 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13288 | sed 's/^/| /' conftest.$ac_ext >&5 |
13289 | ||
c0d27fcc | 13290 | ac_header_preproc=no |
98418dba CW |
13291 | fi |
13292 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
13293 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13294 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13295 | ||
13296 | # So? What about this header? | |
13297 | case $ac_header_compiler:$ac_header_preproc in | |
13298 | yes:no ) | |
13299 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13300 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
13301 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
13302 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} | |
13303 | ( | |
13304 | cat <<\_ASBOX | |
13305 | ## ------------------------------------ ## | |
13306 | ## Report this to bug-autoconf@gnu.org. ## | |
13307 | ## ------------------------------------ ## | |
13308 | _ASBOX | |
13309 | ) | | |
13310 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 13311 | ;; |
c0d27fcc MR |
13312 | no:yes ) |
13313 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 | |
13314 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
13315 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
13316 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 13317 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13318 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
13319 | ( |
13320 | cat <<\_ASBOX | |
793fa0d7 DL |
13321 | ## ------------------------------------ ## |
13322 | ## Report this to bug-autoconf@gnu.org. ## | |
13323 | ## ------------------------------------ ## | |
19650fd6 AS |
13324 | _ASBOX |
13325 | ) | | |
13326 | sed "s/^/$as_me: WARNING: /" >&2 | |
13327 | ;; | |
c0d27fcc MR |
13328 | esac |
13329 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
13330 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
13331 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
13332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13333 | else | |
13334 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 13335 | fi |
c0d27fcc | 13336 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
98418dba | 13337 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
c0d27fcc MR |
13338 | |
13339 | fi | |
98418dba | 13340 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 13341 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 13342 | #define UMAX 1 |
c0d27fcc | 13343 | _ACEOF |
ba4481b5 | 13344 | |
98418dba CW |
13345 | fi |
13346 | ||
c0d27fcc | 13347 | |
98418dba CW |
13348 | fi |
13349 | ||
13350 | if test $ac_have_func = no; then | |
13351 | ||
13352 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
13353 | do |
13354 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13355 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13356 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2c9dccc9 PJ |
13357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13358 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13360 | fi |
13361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13362 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 13363 | else |
c0d27fcc MR |
13364 | # Is the header compilable? |
13365 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13366 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13367 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13368 | #line $LINENO "configure" |
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 | |
13379 | (eval $ac_compile) 2>&5 | |
13380 | ac_status=$? | |
13381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13382 | (exit $ac_status); } && | |
793fa0d7 | 13383 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
13384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13385 | (eval $ac_try) 2>&5 | |
13386 | ac_status=$? | |
13387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13388 | (exit $ac_status); }; }; then | |
13389 | ac_header_compiler=yes | |
13390 | else | |
13391 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13392 | sed 's/^/| /' conftest.$ac_ext >&5 |
13393 | ||
c0d27fcc MR |
13394 | ac_header_compiler=no |
13395 | fi | |
13396 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13397 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13398 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13399 | ||
13400 | # Is the header present? | |
13401 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13402 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13403 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13404 | #line $LINENO "configure" |
19650fd6 AS |
13405 | /* confdefs.h. */ |
13406 | _ACEOF | |
13407 | cat confdefs.h >>conftest.$ac_ext | |
13408 | cat >>conftest.$ac_ext <<_ACEOF | |
13409 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
13410 | #include <$ac_header> |
13411 | _ACEOF | |
c0d27fcc | 13412 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2c9dccc9 PJ |
13413 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13414 | ac_status=$? | |
6bae0ccf | 13415 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
13416 | rm -f conftest.er1 |
13417 | cat conftest.err >&5 | |
c0d27fcc | 13418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2c9dccc9 PJ |
13419 | (exit $ac_status); } >/dev/null; then |
13420 | if test -s conftest.err; then | |
13421 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13422 | else | |
13423 | ac_cpp_err= | |
13424 | fi | |
13425 | else | |
13426 | ac_cpp_err=yes | |
13427 | fi | |
13428 | if test -z "$ac_cpp_err"; then | |
c0d27fcc MR |
13429 | ac_header_preproc=yes |
13430 | else | |
13431 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13432 | sed 's/^/| /' conftest.$ac_ext >&5 |
13433 | ||
c0d27fcc MR |
13434 | ac_header_preproc=no |
13435 | fi | |
13436 | rm -f conftest.err conftest.$ac_ext | |
13437 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13438 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13439 | ||
13440 | # So? What about this header? | |
13441 | case $ac_header_compiler:$ac_header_preproc in | |
13442 | yes:no ) | |
13443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13444 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
13445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13446 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13447 | ( | |
13448 | cat <<\_ASBOX | |
13449 | ## ------------------------------------ ## | |
13450 | ## Report this to bug-autoconf@gnu.org. ## | |
13451 | ## ------------------------------------ ## | |
13452 | _ASBOX | |
13453 | ) | | |
13454 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 13455 | ;; |
c0d27fcc MR |
13456 | no:yes ) |
13457 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13458 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
13459 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13460 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 13461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13462 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
13463 | ( |
13464 | cat <<\_ASBOX | |
793fa0d7 DL |
13465 | ## ------------------------------------ ## |
13466 | ## Report this to bug-autoconf@gnu.org. ## | |
13467 | ## ------------------------------------ ## | |
19650fd6 AS |
13468 | _ASBOX |
13469 | ) | | |
13470 | sed "s/^/$as_me: WARNING: /" >&2 | |
13471 | ;; | |
c0d27fcc MR |
13472 | esac |
13473 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13474 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13475 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13477 | else | |
793fa0d7 | 13478 | eval "$as_ac_Header=$ac_header_preproc" |
c0d27fcc MR |
13479 | fi |
13480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13481 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13482 | ||
13483 | fi | |
13484 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13485 | cat >>confdefs.h <<_ACEOF | |
13486 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13487 | _ACEOF | |
13488 | ||
13489 | fi | |
13490 | ||
13491 | done | |
13492 | ||
13493 | fi | |
13494 | ||
13495 | ||
13496 | for ac_header in nlist.h | |
13497 | do | |
13498 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13500 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13501 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13502 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13504 | fi | |
13505 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13506 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13507 | else | |
13508 | # Is the header compilable? | |
13509 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13510 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13511 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13512 | #line $LINENO "configure" |
19650fd6 AS |
13513 | /* confdefs.h. */ |
13514 | _ACEOF | |
13515 | cat confdefs.h >>conftest.$ac_ext | |
13516 | cat >>conftest.$ac_ext <<_ACEOF | |
13517 | /* end confdefs.h. */ | |
c0d27fcc MR |
13518 | $ac_includes_default |
13519 | #include <$ac_header> | |
13520 | _ACEOF | |
13521 | rm -f conftest.$ac_objext | |
13522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13523 | (eval $ac_compile) 2>&5 | |
13524 | ac_status=$? | |
13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13526 | (exit $ac_status); } && | |
793fa0d7 | 13527 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
13528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13529 | (eval $ac_try) 2>&5 | |
13530 | ac_status=$? | |
13531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13532 | (exit $ac_status); }; }; then | |
13533 | ac_header_compiler=yes | |
2c9dccc9 PJ |
13534 | else |
13535 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13536 | sed 's/^/| /' conftest.$ac_ext >&5 |
13537 | ||
c0d27fcc | 13538 | ac_header_compiler=no |
98418dba | 13539 | fi |
c0d27fcc MR |
13540 | rm -f conftest.$ac_objext conftest.$ac_ext |
13541 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13542 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 13543 | |
c0d27fcc MR |
13544 | # Is the header present? |
13545 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13546 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13547 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13548 | #line $LINENO "configure" |
19650fd6 AS |
13549 | /* confdefs.h. */ |
13550 | _ACEOF | |
13551 | cat confdefs.h >>conftest.$ac_ext | |
13552 | cat >>conftest.$ac_ext <<_ACEOF | |
13553 | /* end confdefs.h. */ | |
503d2be0 AS |
13554 | #include <$ac_header> |
13555 | _ACEOF | |
c0d27fcc | 13556 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13557 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13558 | ac_status=$? | |
6bae0ccf | 13559 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13560 | rm -f conftest.er1 |
13561 | cat conftest.err >&5 | |
c0d27fcc | 13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13563 | (exit $ac_status); } >/dev/null; then |
13564 | if test -s conftest.err; then | |
13565 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13566 | else | |
13567 | ac_cpp_err= | |
13568 | fi | |
13569 | else | |
13570 | ac_cpp_err=yes | |
13571 | fi | |
13572 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13573 | ac_header_preproc=yes |
503d2be0 AS |
13574 | else |
13575 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13576 | sed 's/^/| /' conftest.$ac_ext >&5 |
13577 | ||
c0d27fcc | 13578 | ac_header_preproc=no |
b5de8dc0 | 13579 | fi |
503d2be0 | 13580 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13581 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13582 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13583 | ||
13584 | # So? What about this header? | |
13585 | case $ac_header_compiler:$ac_header_preproc in | |
13586 | yes:no ) | |
13587 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13588 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
13589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13590 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13591 | ( | |
13592 | cat <<\_ASBOX | |
13593 | ## ------------------------------------ ## | |
13594 | ## Report this to bug-autoconf@gnu.org. ## | |
13595 | ## ------------------------------------ ## | |
13596 | _ASBOX | |
13597 | ) | | |
13598 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 13599 | ;; |
c0d27fcc MR |
13600 | no:yes ) |
13601 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13602 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
13603 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13604 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 13605 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13606 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
13607 | ( |
13608 | cat <<\_ASBOX | |
793fa0d7 DL |
13609 | ## ------------------------------------ ## |
13610 | ## Report this to bug-autoconf@gnu.org. ## | |
13611 | ## ------------------------------------ ## | |
19650fd6 AS |
13612 | _ASBOX |
13613 | ) | | |
13614 | sed "s/^/$as_me: WARNING: /" >&2 | |
13615 | ;; | |
c0d27fcc MR |
13616 | esac |
13617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13621 | else | |
793fa0d7 | 13622 | eval "$as_ac_Header=$ac_header_preproc" |
b5de8dc0 | 13623 | fi |
c0d27fcc | 13624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 13625 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13626 | |
13627 | fi | |
98418dba | 13628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13629 | cat >>confdefs.h <<_ACEOF |
98418dba | 13630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc MR |
13631 | _ACEOF |
13632 | echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
98418dba CW |
13633 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
13634 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
503d2be0 | 13635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 13636 | else |
503d2be0 | 13637 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 13638 | #line $LINENO "configure" |
19650fd6 AS |
13639 | /* confdefs.h. */ |
13640 | _ACEOF | |
13641 | cat confdefs.h >>conftest.$ac_ext | |
13642 | cat >>conftest.$ac_ext <<_ACEOF | |
13643 | /* end confdefs.h. */ | |
98418dba | 13644 | #include <nlist.h> |
b5de8dc0 | 13645 | |
503d2be0 AS |
13646 | int |
13647 | main () | |
13648 | { | |
98418dba CW |
13649 | static struct nlist ac_aggr; |
13650 | if (ac_aggr.n_un.n_name) | |
13651 | return 0; | |
503d2be0 AS |
13652 | ; |
13653 | return 0; | |
13654 | } | |
13655 | _ACEOF | |
98418dba | 13656 | rm -f conftest.$ac_objext |
c0d27fcc | 13657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
98418dba | 13658 | (eval $ac_compile) 2>&5 |
503d2be0 | 13659 | ac_status=$? |
c0d27fcc | 13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13661 | (exit $ac_status); } && |
793fa0d7 | 13662 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 13663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13664 | (eval $ac_try) 2>&5 |
13665 | ac_status=$? | |
c0d27fcc | 13666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13667 | (exit $ac_status); }; }; then |
98418dba | 13668 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
13669 | else |
13670 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13671 | sed 's/^/| /' conftest.$ac_ext >&5 |
13672 | ||
6bae0ccf | 13673 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 13674 | #line $LINENO "configure" |
19650fd6 AS |
13675 | /* confdefs.h. */ |
13676 | _ACEOF | |
13677 | cat confdefs.h >>conftest.$ac_ext | |
13678 | cat >>conftest.$ac_ext <<_ACEOF | |
13679 | /* end confdefs.h. */ | |
6bae0ccf DL |
13680 | #include <nlist.h> |
13681 | ||
13682 | int | |
13683 | main () | |
13684 | { | |
13685 | static struct nlist ac_aggr; | |
13686 | if (sizeof ac_aggr.n_un.n_name) | |
13687 | return 0; | |
13688 | ; | |
13689 | return 0; | |
13690 | } | |
13691 | _ACEOF | |
13692 | rm -f conftest.$ac_objext | |
13693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13694 | (eval $ac_compile) 2>&5 | |
13695 | ac_status=$? | |
13696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13697 | (exit $ac_status); } && | |
793fa0d7 | 13698 | { ac_try='test -s conftest.$ac_objext' |
6bae0ccf DL |
13699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13700 | (eval $ac_try) 2>&5 | |
13701 | ac_status=$? | |
13702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13703 | (exit $ac_status); }; }; then | |
13704 | ac_cv_member_struct_nlist_n_un_n_name=yes | |
13705 | else | |
13706 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13707 | sed 's/^/| /' conftest.$ac_ext >&5 |
13708 | ||
98418dba | 13709 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 13710 | fi |
98418dba | 13711 | rm -f conftest.$ac_objext conftest.$ac_ext |
b5de8dc0 | 13712 | fi |
6bae0ccf DL |
13713 | rm -f conftest.$ac_objext conftest.$ac_ext |
13714 | fi | |
c0d27fcc | 13715 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
98418dba CW |
13716 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
13717 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
b5de8dc0 | 13718 | |
c0d27fcc | 13719 | cat >>confdefs.h <<_ACEOF |
98418dba | 13720 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 13721 | _ACEOF |
b5de8dc0 | 13722 | |
c0d27fcc MR |
13723 | |
13724 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 13725 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 13726 | _ACEOF |
b5de8dc0 | 13727 | |
98418dba | 13728 | fi |
b5de8dc0 | 13729 | |
c0d27fcc | 13730 | |
98418dba | 13731 | fi |
c0d27fcc | 13732 | |
98418dba | 13733 | done |
b5de8dc0 | 13734 | |
98418dba CW |
13735 | fi |
13736 | done | |
b5de8dc0 | 13737 | |
c0d27fcc | 13738 | |
98418dba | 13739 | # Some definitions of getloadavg require that the program be installed setgid. |
c0d27fcc | 13740 | echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
98418dba CW |
13741 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
13742 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
13743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13744 | else | |
13745 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13746 | #line $LINENO "configure" |
19650fd6 AS |
13747 | /* confdefs.h. */ |
13748 | _ACEOF | |
13749 | cat confdefs.h >>conftest.$ac_ext | |
13750 | cat >>conftest.$ac_ext <<_ACEOF | |
13751 | /* end confdefs.h. */ | |
6bae0ccf | 13752 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
13753 | #ifdef LDAV_PRIVILEGED |
13754 | Yowza Am I SETGID yet | |
13755 | #endif | |
13756 | _ACEOF | |
13757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13758 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
13759 | ac_cv_func_getloadavg_setgid=yes |
13760 | else | |
13761 | ac_cv_func_getloadavg_setgid=no | |
13762 | fi | |
13763 | rm -f conftest* | |
b5de8dc0 | 13764 | |
98418dba | 13765 | fi |
c0d27fcc | 13766 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
98418dba CW |
13767 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
13768 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
13769 | NEED_SETGID=true | |
b5de8dc0 | 13770 | |
c0d27fcc | 13771 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13772 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 13773 | _ACEOF |
98418dba | 13774 | |
b5de8dc0 | 13775 | else |
98418dba | 13776 | NEED_SETGID=false |
b5de8dc0 | 13777 | fi |
98418dba CW |
13778 | |
13779 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
c0d27fcc | 13780 | echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
98418dba CW |
13781 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
13782 | if test "${ac_cv_group_kmem+set}" = set; then | |
13783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13784 | else | |
13785 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
13786 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
13787 | # If we got an error (system does not support symlinks), try without -L. | |
13788 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
13789 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
793fa0d7 | 13790 | | sed -ne 's/[ ][ ]*/ /g; |
98418dba CW |
13791 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
13792 | / /s/.* //;p;'` | |
13793 | ||
b5de8dc0 | 13794 | fi |
c0d27fcc | 13795 | echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
98418dba CW |
13796 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
13797 | KMEM_GROUP=$ac_cv_group_kmem | |
b5de8dc0 | 13798 | fi |
98418dba CW |
13799 | if test "x$ac_save_LIBS" = x; then |
13800 | GETLOADAVG_LIBS=$LIBS | |
13801 | else | |
13802 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 13803 | fi |
98418dba | 13804 | LIBS=$ac_save_LIBS |
b5de8dc0 | 13805 | |
c0d27fcc MR |
13806 | |
13807 | ||
13808 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
b936fae4 AS |
13809 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
13810 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
503d2be0 | 13811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 13812 | else |
b936fae4 AS |
13813 | while :; do |
13814 | ac_cv_sys_largefile_source=no | |
503d2be0 | 13815 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 13816 | #line $LINENO "configure" |
19650fd6 AS |
13817 | /* confdefs.h. */ |
13818 | _ACEOF | |
13819 | cat confdefs.h >>conftest.$ac_ext | |
13820 | cat >>conftest.$ac_ext <<_ACEOF | |
13821 | /* end confdefs.h. */ | |
b936fae4 | 13822 | #include <stdio.h> |
503d2be0 AS |
13823 | int |
13824 | main () | |
13825 | { | |
b936fae4 AS |
13826 | return !fseeko; |
13827 | ; | |
13828 | return 0; | |
13829 | } | |
13830 | _ACEOF | |
13831 | rm -f conftest.$ac_objext | |
c0d27fcc | 13832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
b936fae4 AS |
13833 | (eval $ac_compile) 2>&5 |
13834 | ac_status=$? | |
c0d27fcc | 13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 13836 | (exit $ac_status); } && |
793fa0d7 | 13837 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 13838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
13839 | (eval $ac_try) 2>&5 |
13840 | ac_status=$? | |
c0d27fcc | 13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
13842 | (exit $ac_status); }; }; then |
13843 | break | |
13844 | else | |
13845 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13846 | sed 's/^/| /' conftest.$ac_ext >&5 |
13847 | ||
b936fae4 AS |
13848 | fi |
13849 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13850 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13851 | #line $LINENO "configure" |
19650fd6 AS |
13852 | /* confdefs.h. */ |
13853 | _ACEOF | |
13854 | cat confdefs.h >>conftest.$ac_ext | |
13855 | cat >>conftest.$ac_ext <<_ACEOF | |
13856 | /* end confdefs.h. */ | |
b936fae4 AS |
13857 | #define _LARGEFILE_SOURCE 1 |
13858 | #include <stdio.h> | |
b936fae4 AS |
13859 | int |
13860 | main () | |
13861 | { | |
13862 | return !fseeko; | |
13863 | ; | |
13864 | return 0; | |
13865 | } | |
13866 | _ACEOF | |
13867 | rm -f conftest.$ac_objext | |
c0d27fcc | 13868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
b936fae4 AS |
13869 | (eval $ac_compile) 2>&5 |
13870 | ac_status=$? | |
c0d27fcc | 13871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 13872 | (exit $ac_status); } && |
793fa0d7 | 13873 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 13874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
13875 | (eval $ac_try) 2>&5 |
13876 | ac_status=$? | |
c0d27fcc | 13877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
13878 | (exit $ac_status); }; }; then |
13879 | ac_cv_sys_largefile_source=1; break | |
13880 | else | |
13881 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13882 | sed 's/^/| /' conftest.$ac_ext >&5 |
13883 | ||
b936fae4 AS |
13884 | fi |
13885 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13886 | break | |
13887 | done | |
13888 | fi | |
c0d27fcc | 13889 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
b936fae4 AS |
13890 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
13891 | if test "$ac_cv_sys_largefile_source" != no; then | |
13892 | ||
c0d27fcc | 13893 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 13894 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 13895 | _ACEOF |
b936fae4 AS |
13896 | |
13897 | fi | |
13898 | rm -f conftest* | |
4c343001 | 13899 | |
b936fae4 AS |
13900 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
13901 | # in glibc 2.1.3, but that breaks too many other things. | |
13902 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
c0d27fcc | 13903 | echo "$as_me:$LINENO: checking for fseeko" >&5 |
b936fae4 AS |
13904 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
13905 | if test "${ac_cv_func_fseeko+set}" = set; then | |
13906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13907 | else | |
13908 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13909 | #line $LINENO "configure" |
19650fd6 AS |
13910 | /* confdefs.h. */ |
13911 | _ACEOF | |
13912 | cat confdefs.h >>conftest.$ac_ext | |
13913 | cat >>conftest.$ac_ext <<_ACEOF | |
13914 | /* end confdefs.h. */ | |
b936fae4 | 13915 | #include <stdio.h> |
b936fae4 AS |
13916 | int |
13917 | main () | |
13918 | { | |
13919 | return fseeko && fseeko (stdin, 0, 0); | |
503d2be0 AS |
13920 | ; |
13921 | return 0; | |
13922 | } | |
13923 | _ACEOF | |
13924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
13926 | (eval $ac_link) 2>&5 |
13927 | ac_status=$? | |
c0d27fcc | 13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13929 | (exit $ac_status); } && |
793fa0d7 | 13930 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 13931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13932 | (eval $ac_try) 2>&5 |
13933 | ac_status=$? | |
c0d27fcc | 13934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13935 | (exit $ac_status); }; }; then |
b936fae4 | 13936 | ac_cv_func_fseeko=yes |
503d2be0 AS |
13937 | else |
13938 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13939 | sed 's/^/| /' conftest.$ac_ext >&5 |
13940 | ||
b936fae4 | 13941 | ac_cv_func_fseeko=no |
503d2be0 AS |
13942 | fi |
13943 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13944 | fi | |
c0d27fcc | 13945 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
b936fae4 AS |
13946 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
13947 | if test $ac_cv_func_fseeko = yes; then | |
13948 | ||
c0d27fcc | 13949 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 13950 | #define HAVE_FSEEKO 1 |
c0d27fcc | 13951 | _ACEOF |
b936fae4 | 13952 | |
4c343001 DL |
13953 | fi |
13954 | ||
c0d27fcc | 13955 | |
cd958eb3 MB |
13956 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
13957 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | |
13958 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | |
13959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13960 | else | |
13961 | # Use it with a single arg. | |
13962 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 13963 | #line $LINENO "configure" |
19650fd6 AS |
13964 | /* confdefs.h. */ |
13965 | _ACEOF | |
13966 | cat confdefs.h >>conftest.$ac_ext | |
13967 | cat >>conftest.$ac_ext <<_ACEOF | |
13968 | /* end confdefs.h. */ | |
cd958eb3 MB |
13969 | $ac_includes_default |
13970 | int | |
13971 | main () | |
13972 | { | |
13973 | getpgrp (0); | |
13974 | ; | |
13975 | return 0; | |
13976 | } | |
13977 | _ACEOF | |
13978 | rm -f conftest.$ac_objext | |
13979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13980 | (eval $ac_compile) 2>&5 | |
13981 | ac_status=$? | |
13982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13983 | (exit $ac_status); } && | |
793fa0d7 | 13984 | { ac_try='test -s conftest.$ac_objext' |
cd958eb3 MB |
13985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13986 | (eval $ac_try) 2>&5 | |
13987 | ac_status=$? | |
13988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13989 | (exit $ac_status); }; }; then | |
13990 | ac_cv_func_getpgrp_void=no | |
13991 | else | |
13992 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13993 | sed 's/^/| /' conftest.$ac_ext >&5 |
13994 | ||
cd958eb3 MB |
13995 | ac_cv_func_getpgrp_void=yes |
13996 | fi | |
13997 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13998 | ||
13999 | fi | |
14000 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
14001 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | |
14002 | if test $ac_cv_func_getpgrp_void = yes; then | |
14003 | ||
14004 | cat >>confdefs.h <<\_ACEOF | |
14005 | #define GETPGRP_VOID 1 | |
14006 | _ACEOF | |
14007 | ||
14008 | fi | |
14009 | ||
14010 | ||
973a76b1 DL |
14011 | |
14012 | for ac_func in strftime | |
14013 | do | |
14014 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14015 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14016 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14017 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14019 | else | |
14020 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 14021 | #line $LINENO "configure" |
19650fd6 AS |
14022 | /* confdefs.h. */ |
14023 | _ACEOF | |
14024 | cat confdefs.h >>conftest.$ac_ext | |
14025 | cat >>conftest.$ac_ext <<_ACEOF | |
14026 | /* end confdefs.h. */ | |
973a76b1 | 14027 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14028 | which can conflict with char $ac_func (); below. |
14029 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14030 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
14031 | #ifdef __STDC__ |
14032 | # include <limits.h> | |
14033 | #else | |
14034 | # include <assert.h> | |
14035 | #endif | |
973a76b1 DL |
14036 | /* Override any gcc2 internal prototype to avoid an error. */ |
14037 | #ifdef __cplusplus | |
14038 | extern "C" | |
19650fd6 | 14039 | { |
973a76b1 DL |
14040 | #endif |
14041 | /* We use char because int might match the return type of a gcc2 | |
14042 | builtin and then its argument prototype would still apply. */ | |
14043 | char $ac_func (); | |
14044 | /* The GNU C library defines this for functions which it implements | |
14045 | to always fail with ENOSYS. Some functions are actually named | |
14046 | something starting with __ and the normal name is an alias. */ | |
14047 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14048 | choke me | |
14049 | #else | |
19650fd6 AS |
14050 | char (*f) () = $ac_func; |
14051 | #endif | |
14052 | #ifdef __cplusplus | |
14053 | } | |
973a76b1 DL |
14054 | #endif |
14055 | ||
19650fd6 AS |
14056 | int |
14057 | main () | |
14058 | { | |
14059 | return f != $ac_func; | |
973a76b1 DL |
14060 | ; |
14061 | return 0; | |
14062 | } | |
14063 | _ACEOF | |
14064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14066 | (eval $ac_link) 2>&5 | |
14067 | ac_status=$? | |
14068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14069 | (exit $ac_status); } && | |
793fa0d7 | 14070 | { ac_try='test -s conftest$ac_exeext' |
973a76b1 DL |
14071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14072 | (eval $ac_try) 2>&5 | |
14073 | ac_status=$? | |
14074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14075 | (exit $ac_status); }; }; then | |
14076 | eval "$as_ac_var=yes" | |
14077 | else | |
14078 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14079 | sed 's/^/| /' conftest.$ac_ext >&5 |
14080 | ||
973a76b1 DL |
14081 | eval "$as_ac_var=no" |
14082 | fi | |
14083 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14084 | fi | |
14085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14086 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14087 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14088 | cat >>confdefs.h <<_ACEOF | |
14089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14090 | _ACEOF | |
14091 | ||
14092 | else | |
14093 | # strftime is in -lintl on SCO UNIX. | |
14094 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | |
14095 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | |
14096 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | |
14097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14098 | else | |
14099 | ac_check_lib_save_LIBS=$LIBS | |
14100 | LIBS="-lintl $LIBS" | |
14101 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 14102 | #line $LINENO "configure" |
19650fd6 AS |
14103 | /* confdefs.h. */ |
14104 | _ACEOF | |
14105 | cat confdefs.h >>conftest.$ac_ext | |
14106 | cat >>conftest.$ac_ext <<_ACEOF | |
14107 | /* end confdefs.h. */ | |
973a76b1 DL |
14108 | |
14109 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14110 | #ifdef __cplusplus | |
14111 | extern "C" | |
14112 | #endif | |
14113 | /* We use char because int might match the return type of a gcc2 | |
14114 | builtin and then its argument prototype would still apply. */ | |
14115 | char strftime (); | |
14116 | int | |
14117 | main () | |
14118 | { | |
14119 | strftime (); | |
14120 | ; | |
14121 | return 0; | |
14122 | } | |
14123 | _ACEOF | |
14124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14126 | (eval $ac_link) 2>&5 | |
14127 | ac_status=$? | |
14128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14129 | (exit $ac_status); } && | |
793fa0d7 | 14130 | { ac_try='test -s conftest$ac_exeext' |
973a76b1 DL |
14131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14132 | (eval $ac_try) 2>&5 | |
14133 | ac_status=$? | |
14134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14135 | (exit $ac_status); }; }; then | |
14136 | ac_cv_lib_intl_strftime=yes | |
14137 | else | |
14138 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14139 | sed 's/^/| /' conftest.$ac_ext >&5 |
14140 | ||
973a76b1 DL |
14141 | ac_cv_lib_intl_strftime=no |
14142 | fi | |
14143 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14144 | LIBS=$ac_check_lib_save_LIBS | |
14145 | fi | |
14146 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | |
14147 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | |
14148 | if test $ac_cv_lib_intl_strftime = yes; then | |
14149 | cat >>confdefs.h <<\_ACEOF | |
14150 | #define HAVE_STRFTIME 1 | |
14151 | _ACEOF | |
14152 | ||
14153 | LIBS="-lintl $LIBS" | |
14154 | fi | |
14155 | ||
14156 | fi | |
14157 | done | |
14158 | ||
14159 | ||
b936fae4 AS |
14160 | # UNIX98 PTYs. |
14161 | ||
14162 | for ac_func in grantpt | |
503d2be0 AS |
14163 | do |
14164 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14165 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
14166 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14167 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 14169 | else |
503d2be0 | 14170 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 14171 | #line $LINENO "configure" |
19650fd6 AS |
14172 | /* confdefs.h. */ |
14173 | _ACEOF | |
14174 | cat confdefs.h >>conftest.$ac_ext | |
14175 | cat >>conftest.$ac_ext <<_ACEOF | |
14176 | /* end confdefs.h. */ | |
503d2be0 | 14177 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14178 | which can conflict with char $ac_func (); below. |
14179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14180 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
14181 | #ifdef __STDC__ |
14182 | # include <limits.h> | |
14183 | #else | |
14184 | # include <assert.h> | |
14185 | #endif | |
4c343001 | 14186 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14187 | #ifdef __cplusplus |
14188 | extern "C" | |
19650fd6 | 14189 | { |
503d2be0 | 14190 | #endif |
4c343001 | 14191 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14192 | builtin and then its argument prototype would still apply. */ |
14193 | char $ac_func (); | |
503d2be0 AS |
14194 | /* The GNU C library defines this for functions which it implements |
14195 | to always fail with ENOSYS. Some functions are actually named | |
14196 | something starting with __ and the normal name is an alias. */ | |
14197 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14198 | choke me | |
14199 | #else | |
19650fd6 AS |
14200 | char (*f) () = $ac_func; |
14201 | #endif | |
14202 | #ifdef __cplusplus | |
14203 | } | |
503d2be0 | 14204 | #endif |
4c343001 | 14205 | |
19650fd6 AS |
14206 | int |
14207 | main () | |
14208 | { | |
14209 | return f != $ac_func; | |
503d2be0 AS |
14210 | ; |
14211 | return 0; | |
14212 | } | |
14213 | _ACEOF | |
14214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14216 | (eval $ac_link) 2>&5 |
14217 | ac_status=$? | |
c0d27fcc | 14218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14219 | (exit $ac_status); } && |
793fa0d7 | 14220 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14222 | (eval $ac_try) 2>&5 |
14223 | ac_status=$? | |
c0d27fcc | 14224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14225 | (exit $ac_status); }; }; then |
14226 | eval "$as_ac_var=yes" | |
14227 | else | |
14228 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14229 | sed 's/^/| /' conftest.$ac_ext >&5 |
14230 | ||
503d2be0 AS |
14231 | eval "$as_ac_var=no" |
14232 | fi | |
14233 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14234 | fi | |
c0d27fcc | 14235 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
14236 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14237 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14238 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14239 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14240 | _ACEOF |
4c343001 DL |
14241 | |
14242 | fi | |
503d2be0 AS |
14243 | done |
14244 | ||
c0d27fcc | 14245 | |
b936fae4 | 14246 | # PTY-related GNU extensions. |
4c343001 | 14247 | |
b936fae4 AS |
14248 | for ac_func in getpt |
14249 | do | |
14250 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14251 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
b936fae4 AS |
14252 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14253 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 14254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 14255 | else |
b936fae4 | 14256 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 14257 | #line $LINENO "configure" |
19650fd6 AS |
14258 | /* confdefs.h. */ |
14259 | _ACEOF | |
14260 | cat confdefs.h >>conftest.$ac_ext | |
14261 | cat >>conftest.$ac_ext <<_ACEOF | |
14262 | /* end confdefs.h. */ | |
087121cc | 14263 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14264 | which can conflict with char $ac_func (); below. |
14265 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14266 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
14267 | #ifdef __STDC__ |
14268 | # include <limits.h> | |
14269 | #else | |
14270 | # include <assert.h> | |
14271 | #endif | |
087121cc | 14272 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14273 | #ifdef __cplusplus |
14274 | extern "C" | |
19650fd6 | 14275 | { |
503d2be0 | 14276 | #endif |
087121cc | 14277 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14278 | builtin and then its argument prototype would still apply. */ |
14279 | char $ac_func (); | |
087121cc GM |
14280 | /* The GNU C library defines this for functions which it implements |
14281 | to always fail with ENOSYS. Some functions are actually named | |
14282 | something starting with __ and the normal name is an alias. */ | |
14283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14284 | choke me | |
14285 | #else | |
19650fd6 AS |
14286 | char (*f) () = $ac_func; |
14287 | #endif | |
14288 | #ifdef __cplusplus | |
14289 | } | |
087121cc GM |
14290 | #endif |
14291 | ||
19650fd6 AS |
14292 | int |
14293 | main () | |
14294 | { | |
14295 | return f != $ac_func; | |
503d2be0 AS |
14296 | ; |
14297 | return 0; | |
14298 | } | |
14299 | _ACEOF | |
14300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14302 | (eval $ac_link) 2>&5 |
14303 | ac_status=$? | |
c0d27fcc | 14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14305 | (exit $ac_status); } && |
793fa0d7 | 14306 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14308 | (eval $ac_try) 2>&5 |
14309 | ac_status=$? | |
c0d27fcc | 14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14311 | (exit $ac_status); }; }; then |
14312 | eval "$as_ac_var=yes" | |
14313 | else | |
14314 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14315 | sed 's/^/| /' conftest.$ac_ext >&5 |
14316 | ||
503d2be0 AS |
14317 | eval "$as_ac_var=no" |
14318 | fi | |
14319 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14320 | fi | |
c0d27fcc | 14321 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
14322 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14323 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14324 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14325 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14326 | _ACEOF |
087121cc | 14327 | |
087121cc GM |
14328 | fi |
14329 | done | |
14330 | ||
c0d27fcc | 14331 | |
ba4481b5 DL |
14332 | # Check this now, so that we will NOT find the above functions in ncurses. |
14333 | # That is because we have not set up to link ncurses in lib-src. | |
14334 | # It's better to believe a function is not available | |
14335 | # than to expect to find it in ncurses. | |
503d2be0 | 14336 | |
c0d27fcc | 14337 | echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
503d2be0 AS |
14338 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
14339 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
14340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 14341 | else |
503d2be0 | 14342 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 14343 | LIBS="-lncurses $LIBS" |
503d2be0 | 14344 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 14345 | #line $LINENO "configure" |
19650fd6 AS |
14346 | /* confdefs.h. */ |
14347 | _ACEOF | |
14348 | cat confdefs.h >>conftest.$ac_ext | |
14349 | cat >>conftest.$ac_ext <<_ACEOF | |
14350 | /* end confdefs.h. */ | |
503d2be0 | 14351 | |
ba4481b5 | 14352 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14353 | #ifdef __cplusplus |
14354 | extern "C" | |
14355 | #endif | |
ba4481b5 | 14356 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14357 | builtin and then its argument prototype would still apply. */ |
14358 | char tparm (); | |
14359 | int | |
14360 | main () | |
14361 | { | |
14362 | tparm (); | |
14363 | ; | |
14364 | return 0; | |
14365 | } | |
14366 | _ACEOF | |
14367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14369 | (eval $ac_link) 2>&5 |
14370 | ac_status=$? | |
c0d27fcc | 14371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14372 | (exit $ac_status); } && |
793fa0d7 | 14373 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14375 | (eval $ac_try) 2>&5 |
14376 | ac_status=$? | |
c0d27fcc | 14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14378 | (exit $ac_status); }; }; then |
14379 | ac_cv_lib_ncurses_tparm=yes | |
14380 | else | |
14381 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14382 | sed 's/^/| /' conftest.$ac_ext >&5 |
14383 | ||
503d2be0 AS |
14384 | ac_cv_lib_ncurses_tparm=no |
14385 | fi | |
14386 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14387 | LIBS=$ac_check_lib_save_LIBS | |
14388 | fi | |
c0d27fcc | 14389 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
503d2be0 AS |
14390 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
14391 | if test $ac_cv_lib_ncurses_tparm = yes; then | |
c0d27fcc | 14392 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14393 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 14394 | _ACEOF |
ba4481b5 DL |
14395 | |
14396 | LIBS="-lncurses $LIBS" | |
14397 | ||
ba4481b5 DL |
14398 | fi |
14399 | ||
c0d27fcc | 14400 | |
84e70f78 KR |
14401 | # Do we need the Hesiod library to provide the support routines? |
14402 | if test "$with_hesiod" = yes ; then | |
14403 | # Don't set $LIBS here -- see comments above. | |
14404 | resolv=no | |
c0d27fcc | 14405 | echo "$as_me:$LINENO: checking for res_send" >&5 |
84e70f78 KR |
14406 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
14407 | if test "${ac_cv_func_res_send+set}" = set; then | |
14408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14409 | else | |
14410 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 14411 | #line $LINENO "configure" |
19650fd6 AS |
14412 | /* confdefs.h. */ |
14413 | _ACEOF | |
14414 | cat confdefs.h >>conftest.$ac_ext | |
14415 | cat >>conftest.$ac_ext <<_ACEOF | |
14416 | /* end confdefs.h. */ | |
84e70f78 | 14417 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14418 | which can conflict with char res_send (); below. |
14419 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14420 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
14421 | #ifdef __STDC__ |
14422 | # include <limits.h> | |
14423 | #else | |
14424 | # include <assert.h> | |
14425 | #endif | |
84e70f78 KR |
14426 | /* Override any gcc2 internal prototype to avoid an error. */ |
14427 | #ifdef __cplusplus | |
14428 | extern "C" | |
19650fd6 | 14429 | { |
84e70f78 KR |
14430 | #endif |
14431 | /* We use char because int might match the return type of a gcc2 | |
14432 | builtin and then its argument prototype would still apply. */ | |
14433 | char res_send (); | |
84e70f78 KR |
14434 | /* The GNU C library defines this for functions which it implements |
14435 | to always fail with ENOSYS. Some functions are actually named | |
14436 | something starting with __ and the normal name is an alias. */ | |
14437 | #if defined (__stub_res_send) || defined (__stub___res_send) | |
14438 | choke me | |
14439 | #else | |
19650fd6 AS |
14440 | char (*f) () = res_send; |
14441 | #endif | |
14442 | #ifdef __cplusplus | |
14443 | } | |
cd958eb3 MB |
14444 | #endif |
14445 | ||
19650fd6 AS |
14446 | int |
14447 | main () | |
14448 | { | |
14449 | return f != res_send; | |
84e70f78 KR |
14450 | ; |
14451 | return 0; | |
14452 | } | |
14453 | _ACEOF | |
14454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14456 | (eval $ac_link) 2>&5 |
14457 | ac_status=$? | |
c0d27fcc | 14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 14459 | (exit $ac_status); } && |
793fa0d7 | 14460 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14462 | (eval $ac_try) 2>&5 |
14463 | ac_status=$? | |
c0d27fcc | 14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14465 | (exit $ac_status); }; }; then |
14466 | ac_cv_func_res_send=yes | |
14467 | else | |
14468 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14469 | sed 's/^/| /' conftest.$ac_ext >&5 |
14470 | ||
84e70f78 KR |
14471 | ac_cv_func_res_send=no |
14472 | fi | |
14473 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14474 | fi | |
c0d27fcc | 14475 | echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
84e70f78 KR |
14476 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
14477 | if test $ac_cv_func_res_send = yes; then | |
14478 | : | |
14479 | else | |
c0d27fcc | 14480 | echo "$as_me:$LINENO: checking for __res_send" >&5 |
84e70f78 KR |
14481 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
14482 | if test "${ac_cv_func___res_send+set}" = set; then | |
14483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14484 | else | |
14485 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 14486 | #line $LINENO "configure" |
19650fd6 AS |
14487 | /* confdefs.h. */ |
14488 | _ACEOF | |
14489 | cat confdefs.h >>conftest.$ac_ext | |
14490 | cat >>conftest.$ac_ext <<_ACEOF | |
14491 | /* end confdefs.h. */ | |
84e70f78 | 14492 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14493 | which can conflict with char __res_send (); below. |
14494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14495 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
14496 | #ifdef __STDC__ |
14497 | # include <limits.h> | |
14498 | #else | |
14499 | # include <assert.h> | |
14500 | #endif | |
84e70f78 KR |
14501 | /* Override any gcc2 internal prototype to avoid an error. */ |
14502 | #ifdef __cplusplus | |
14503 | extern "C" | |
19650fd6 | 14504 | { |
84e70f78 KR |
14505 | #endif |
14506 | /* We use char because int might match the return type of a gcc2 | |
14507 | builtin and then its argument prototype would still apply. */ | |
14508 | char __res_send (); | |
84e70f78 KR |
14509 | /* The GNU C library defines this for functions which it implements |
14510 | to always fail with ENOSYS. Some functions are actually named | |
14511 | something starting with __ and the normal name is an alias. */ | |
14512 | #if defined (__stub___res_send) || defined (__stub_____res_send) | |
14513 | choke me | |
14514 | #else | |
19650fd6 AS |
14515 | char (*f) () = __res_send; |
14516 | #endif | |
14517 | #ifdef __cplusplus | |
14518 | } | |
84e70f78 KR |
14519 | #endif |
14520 | ||
19650fd6 AS |
14521 | int |
14522 | main () | |
14523 | { | |
14524 | return f != __res_send; | |
84e70f78 KR |
14525 | ; |
14526 | return 0; | |
14527 | } | |
14528 | _ACEOF | |
14529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14531 | (eval $ac_link) 2>&5 |
14532 | ac_status=$? | |
c0d27fcc | 14533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 14534 | (exit $ac_status); } && |
793fa0d7 | 14535 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14537 | (eval $ac_try) 2>&5 |
14538 | ac_status=$? | |
c0d27fcc | 14539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14540 | (exit $ac_status); }; }; then |
14541 | ac_cv_func___res_send=yes | |
14542 | else | |
14543 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14544 | sed 's/^/| /' conftest.$ac_ext >&5 |
14545 | ||
84e70f78 KR |
14546 | ac_cv_func___res_send=no |
14547 | fi | |
14548 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14549 | fi | |
c0d27fcc | 14550 | echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
84e70f78 KR |
14551 | echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
14552 | if test $ac_cv_func___res_send = yes; then | |
14553 | : | |
14554 | else | |
c0d27fcc | 14555 | echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
84e70f78 KR |
14556 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
14557 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then | |
14558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14559 | else | |
14560 | ac_check_lib_save_LIBS=$LIBS | |
14561 | LIBS="-lresolv $LIBS" | |
14562 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 14563 | #line $LINENO "configure" |
19650fd6 AS |
14564 | /* confdefs.h. */ |
14565 | _ACEOF | |
14566 | cat confdefs.h >>conftest.$ac_ext | |
14567 | cat >>conftest.$ac_ext <<_ACEOF | |
14568 | /* end confdefs.h. */ | |
84e70f78 KR |
14569 | |
14570 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14571 | #ifdef __cplusplus | |
14572 | extern "C" | |
14573 | #endif | |
14574 | /* We use char because int might match the return type of a gcc2 | |
14575 | builtin and then its argument prototype would still apply. */ | |
14576 | char res_send (); | |
14577 | int | |
14578 | main () | |
14579 | { | |
14580 | res_send (); | |
14581 | ; | |
14582 | return 0; | |
14583 | } | |
14584 | _ACEOF | |
14585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14587 | (eval $ac_link) 2>&5 |
14588 | ac_status=$? | |
c0d27fcc | 14589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 14590 | (exit $ac_status); } && |
793fa0d7 | 14591 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14593 | (eval $ac_try) 2>&5 |
14594 | ac_status=$? | |
c0d27fcc | 14595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14596 | (exit $ac_status); }; }; then |
14597 | ac_cv_lib_resolv_res_send=yes | |
14598 | else | |
14599 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14600 | sed 's/^/| /' conftest.$ac_ext >&5 |
14601 | ||
84e70f78 KR |
14602 | ac_cv_lib_resolv_res_send=no |
14603 | fi | |
14604 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14605 | LIBS=$ac_check_lib_save_LIBS | |
14606 | fi | |
c0d27fcc | 14607 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
84e70f78 KR |
14608 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
14609 | if test $ac_cv_lib_resolv_res_send = yes; then | |
14610 | resolv=yes | |
14611 | else | |
c0d27fcc | 14612 | echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
84e70f78 KR |
14613 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
14614 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then | |
14615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14616 | else | |
14617 | ac_check_lib_save_LIBS=$LIBS | |
14618 | LIBS="-lresolv $LIBS" | |
14619 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 14620 | #line $LINENO "configure" |
19650fd6 AS |
14621 | /* confdefs.h. */ |
14622 | _ACEOF | |
14623 | cat confdefs.h >>conftest.$ac_ext | |
14624 | cat >>conftest.$ac_ext <<_ACEOF | |
14625 | /* end confdefs.h. */ | |
84e70f78 KR |
14626 | |
14627 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14628 | #ifdef __cplusplus | |
14629 | extern "C" | |
14630 | #endif | |
14631 | /* We use char because int might match the return type of a gcc2 | |
14632 | builtin and then its argument prototype would still apply. */ | |
14633 | char __res_send (); | |
14634 | int | |
14635 | main () | |
14636 | { | |
14637 | __res_send (); | |
14638 | ; | |
14639 | return 0; | |
14640 | } | |
14641 | _ACEOF | |
14642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14644 | (eval $ac_link) 2>&5 |
14645 | ac_status=$? | |
c0d27fcc | 14646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 14647 | (exit $ac_status); } && |
793fa0d7 | 14648 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14650 | (eval $ac_try) 2>&5 |
14651 | ac_status=$? | |
c0d27fcc | 14652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14653 | (exit $ac_status); }; }; then |
14654 | ac_cv_lib_resolv___res_send=yes | |
14655 | else | |
14656 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14657 | sed 's/^/| /' conftest.$ac_ext >&5 |
14658 | ||
84e70f78 KR |
14659 | ac_cv_lib_resolv___res_send=no |
14660 | fi | |
14661 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14662 | LIBS=$ac_check_lib_save_LIBS | |
14663 | fi | |
c0d27fcc | 14664 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
84e70f78 KR |
14665 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
14666 | if test $ac_cv_lib_resolv___res_send = yes; then | |
14667 | resolv=yes | |
14668 | fi | |
14669 | ||
14670 | fi | |
14671 | ||
14672 | fi | |
14673 | ||
14674 | fi | |
14675 | ||
14676 | if test "$resolv" = yes ; then | |
14677 | RESOLVLIB=-lresolv | |
b936fae4 | 14678 | |
c0d27fcc | 14679 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 14680 | #define HAVE_LIBRESOLV 1 |
c0d27fcc | 14681 | _ACEOF |
84e70f78 KR |
14682 | |
14683 | else | |
14684 | RESOLVLIB= | |
14685 | fi | |
c0d27fcc | 14686 | echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
84e70f78 KR |
14687 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
14688 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then | |
14689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14690 | else | |
14691 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 14692 | #line $LINENO "configure" |
19650fd6 AS |
14693 | /* confdefs.h. */ |
14694 | _ACEOF | |
14695 | cat confdefs.h >>conftest.$ac_ext | |
14696 | cat >>conftest.$ac_ext <<_ACEOF | |
14697 | /* end confdefs.h. */ | |
84e70f78 | 14698 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14699 | which can conflict with char hes_getmailhost (); below. |
14700 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14701 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
14702 | #ifdef __STDC__ |
14703 | # include <limits.h> | |
14704 | #else | |
14705 | # include <assert.h> | |
14706 | #endif | |
84e70f78 KR |
14707 | /* Override any gcc2 internal prototype to avoid an error. */ |
14708 | #ifdef __cplusplus | |
14709 | extern "C" | |
19650fd6 | 14710 | { |
84e70f78 KR |
14711 | #endif |
14712 | /* We use char because int might match the return type of a gcc2 | |
14713 | builtin and then its argument prototype would still apply. */ | |
14714 | char hes_getmailhost (); | |
84e70f78 KR |
14715 | /* The GNU C library defines this for functions which it implements |
14716 | to always fail with ENOSYS. Some functions are actually named | |
14717 | something starting with __ and the normal name is an alias. */ | |
14718 | #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) | |
14719 | choke me | |
14720 | #else | |
19650fd6 AS |
14721 | char (*f) () = hes_getmailhost; |
14722 | #endif | |
14723 | #ifdef __cplusplus | |
14724 | } | |
cd958eb3 MB |
14725 | #endif |
14726 | ||
19650fd6 AS |
14727 | int |
14728 | main () | |
14729 | { | |
14730 | return f != hes_getmailhost; | |
84e70f78 KR |
14731 | ; |
14732 | return 0; | |
14733 | } | |
14734 | _ACEOF | |
14735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14737 | (eval $ac_link) 2>&5 |
14738 | ac_status=$? | |
c0d27fcc | 14739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 14740 | (exit $ac_status); } && |
793fa0d7 | 14741 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14743 | (eval $ac_try) 2>&5 |
14744 | ac_status=$? | |
c0d27fcc | 14745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14746 | (exit $ac_status); }; }; then |
14747 | ac_cv_func_hes_getmailhost=yes | |
14748 | else | |
14749 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14750 | sed 's/^/| /' conftest.$ac_ext >&5 |
14751 | ||
84e70f78 KR |
14752 | ac_cv_func_hes_getmailhost=no |
14753 | fi | |
14754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14755 | fi | |
c0d27fcc | 14756 | echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
84e70f78 KR |
14757 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
14758 | if test $ac_cv_func_hes_getmailhost = yes; then | |
14759 | : | |
14760 | else | |
c0d27fcc | 14761 | echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
84e70f78 KR |
14762 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
14763 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | |
14764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14765 | else | |
14766 | ac_check_lib_save_LIBS=$LIBS | |
14767 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
14768 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 14769 | #line $LINENO "configure" |
19650fd6 AS |
14770 | /* confdefs.h. */ |
14771 | _ACEOF | |
14772 | cat confdefs.h >>conftest.$ac_ext | |
14773 | cat >>conftest.$ac_ext <<_ACEOF | |
14774 | /* end confdefs.h. */ | |
84e70f78 KR |
14775 | |
14776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14777 | #ifdef __cplusplus | |
14778 | extern "C" | |
14779 | #endif | |
14780 | /* We use char because int might match the return type of a gcc2 | |
14781 | builtin and then its argument prototype would still apply. */ | |
14782 | char hes_getmailhost (); | |
14783 | int | |
14784 | main () | |
14785 | { | |
14786 | hes_getmailhost (); | |
14787 | ; | |
14788 | return 0; | |
14789 | } | |
14790 | _ACEOF | |
14791 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
84e70f78 KR |
14793 | (eval $ac_link) 2>&5 |
14794 | ac_status=$? | |
c0d27fcc | 14795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 14796 | (exit $ac_status); } && |
793fa0d7 | 14797 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
14799 | (eval $ac_try) 2>&5 |
14800 | ac_status=$? | |
c0d27fcc | 14801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
14802 | (exit $ac_status); }; }; then |
14803 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
14804 | else | |
14805 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14806 | sed 's/^/| /' conftest.$ac_ext >&5 |
14807 | ||
84e70f78 KR |
14808 | ac_cv_lib_hesiod_hes_getmailhost=no |
14809 | fi | |
14810 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14811 | LIBS=$ac_check_lib_save_LIBS | |
14812 | fi | |
c0d27fcc | 14813 | echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
84e70f78 KR |
14814 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
14815 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | |
b936fae4 | 14816 | |
c0d27fcc | 14817 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 14818 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 14819 | _ACEOF |
84e70f78 KR |
14820 | |
14821 | else | |
14822 | : | |
14823 | fi | |
14824 | ||
14825 | fi | |
14826 | ||
14827 | fi | |
14828 | ||
a21616bd KR |
14829 | # These tell us which Kerberos-related libraries to use. |
14830 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 14831 | |
c0d27fcc | 14832 | echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
503d2be0 AS |
14833 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
14834 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
14835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14836 | else |
503d2be0 | 14837 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14838 | LIBS="-lcom_err $LIBS" |
503d2be0 | 14839 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 14840 | #line $LINENO "configure" |
19650fd6 AS |
14841 | /* confdefs.h. */ |
14842 | _ACEOF | |
14843 | cat confdefs.h >>conftest.$ac_ext | |
14844 | cat >>conftest.$ac_ext <<_ACEOF | |
14845 | /* end confdefs.h. */ | |
503d2be0 | 14846 | |
a21616bd | 14847 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14848 | #ifdef __cplusplus |
14849 | extern "C" | |
14850 | #endif | |
a21616bd | 14851 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14852 | builtin and then its argument prototype would still apply. */ |
14853 | char com_err (); | |
14854 | int | |
14855 | main () | |
14856 | { | |
14857 | com_err (); | |
14858 | ; | |
14859 | return 0; | |
14860 | } | |
14861 | _ACEOF | |
14862 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14864 | (eval $ac_link) 2>&5 |
14865 | ac_status=$? | |
c0d27fcc | 14866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14867 | (exit $ac_status); } && |
793fa0d7 | 14868 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14870 | (eval $ac_try) 2>&5 |
14871 | ac_status=$? | |
c0d27fcc | 14872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14873 | (exit $ac_status); }; }; then |
14874 | ac_cv_lib_com_err_com_err=yes | |
14875 | else | |
14876 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14877 | sed 's/^/| /' conftest.$ac_ext >&5 |
14878 | ||
503d2be0 AS |
14879 | ac_cv_lib_com_err_com_err=no |
14880 | fi | |
14881 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14882 | LIBS=$ac_check_lib_save_LIBS | |
14883 | fi | |
c0d27fcc | 14884 | echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
503d2be0 AS |
14885 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
14886 | if test $ac_cv_lib_com_err_com_err = yes; then | |
c0d27fcc | 14887 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14888 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 14889 | _ACEOF |
a21616bd KR |
14890 | |
14891 | LIBS="-lcom_err $LIBS" | |
14892 | ||
a21616bd KR |
14893 | fi |
14894 | ||
c0d27fcc MR |
14895 | |
14896 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
503d2be0 AS |
14897 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
14898 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
14899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14900 | else |
503d2be0 | 14901 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14902 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 14903 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 14904 | #line $LINENO "configure" |
19650fd6 AS |
14905 | /* confdefs.h. */ |
14906 | _ACEOF | |
14907 | cat confdefs.h >>conftest.$ac_ext | |
14908 | cat >>conftest.$ac_ext <<_ACEOF | |
14909 | /* end confdefs.h. */ | |
503d2be0 | 14910 | |
a21616bd | 14911 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14912 | #ifdef __cplusplus |
14913 | extern "C" | |
14914 | #endif | |
a21616bd | 14915 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14916 | builtin and then its argument prototype would still apply. */ |
14917 | char mit_des_cbc_encrypt (); | |
14918 | int | |
14919 | main () | |
14920 | { | |
14921 | mit_des_cbc_encrypt (); | |
14922 | ; | |
14923 | return 0; | |
14924 | } | |
14925 | _ACEOF | |
14926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14928 | (eval $ac_link) 2>&5 |
14929 | ac_status=$? | |
c0d27fcc | 14930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14931 | (exit $ac_status); } && |
793fa0d7 | 14932 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14934 | (eval $ac_try) 2>&5 |
14935 | ac_status=$? | |
c0d27fcc | 14936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14937 | (exit $ac_status); }; }; then |
14938 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
14939 | else | |
14940 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14941 | sed 's/^/| /' conftest.$ac_ext >&5 |
14942 | ||
503d2be0 AS |
14943 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
14944 | fi | |
14945 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14946 | LIBS=$ac_check_lib_save_LIBS | |
14947 | fi | |
c0d27fcc | 14948 | echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
14949 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
14950 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 14951 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 14952 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 14953 | _ACEOF |
a21616bd KR |
14954 | |
14955 | LIBS="-lk5crypto $LIBS" | |
14956 | ||
a21616bd KR |
14957 | fi |
14958 | ||
c0d27fcc MR |
14959 | |
14960 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
503d2be0 AS |
14961 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
14962 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
14963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 14964 | else |
503d2be0 | 14965 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 14966 | LIBS="-lcrypto $LIBS" |
503d2be0 | 14967 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 14968 | #line $LINENO "configure" |
19650fd6 AS |
14969 | /* confdefs.h. */ |
14970 | _ACEOF | |
14971 | cat confdefs.h >>conftest.$ac_ext | |
14972 | cat >>conftest.$ac_ext <<_ACEOF | |
14973 | /* end confdefs.h. */ | |
503d2be0 | 14974 | |
a21616bd | 14975 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14976 | #ifdef __cplusplus |
14977 | extern "C" | |
14978 | #endif | |
a21616bd | 14979 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14980 | builtin and then its argument prototype would still apply. */ |
14981 | char mit_des_cbc_encrypt (); | |
14982 | int | |
14983 | main () | |
14984 | { | |
14985 | mit_des_cbc_encrypt (); | |
14986 | ; | |
14987 | return 0; | |
14988 | } | |
14989 | _ACEOF | |
14990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14992 | (eval $ac_link) 2>&5 |
14993 | ac_status=$? | |
c0d27fcc | 14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14995 | (exit $ac_status); } && |
793fa0d7 | 14996 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 14997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14998 | (eval $ac_try) 2>&5 |
14999 | ac_status=$? | |
c0d27fcc | 15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15001 | (exit $ac_status); }; }; then |
15002 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
15003 | else | |
15004 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15005 | sed 's/^/| /' conftest.$ac_ext >&5 |
15006 | ||
503d2be0 AS |
15007 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
15008 | fi | |
15009 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15010 | LIBS=$ac_check_lib_save_LIBS | |
15011 | fi | |
c0d27fcc | 15012 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
15013 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
15014 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 15015 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15016 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 15017 | _ACEOF |
a21616bd KR |
15018 | |
15019 | LIBS="-lcrypto $LIBS" | |
15020 | ||
a21616bd KR |
15021 | fi |
15022 | ||
c0d27fcc MR |
15023 | |
15024 | echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | |
503d2be0 AS |
15025 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
15026 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
15027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 15028 | else |
503d2be0 | 15029 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 15030 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 15031 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 15032 | #line $LINENO "configure" |
19650fd6 AS |
15033 | /* confdefs.h. */ |
15034 | _ACEOF | |
15035 | cat confdefs.h >>conftest.$ac_ext | |
15036 | cat >>conftest.$ac_ext <<_ACEOF | |
15037 | /* end confdefs.h. */ | |
a21616bd | 15038 | |
503d2be0 AS |
15039 | /* Override any gcc2 internal prototype to avoid an error. */ |
15040 | #ifdef __cplusplus | |
15041 | extern "C" | |
15042 | #endif | |
15043 | /* We use char because int might match the return type of a gcc2 | |
15044 | builtin and then its argument prototype would still apply. */ | |
15045 | char krb5_init_context (); | |
15046 | int | |
15047 | main () | |
15048 | { | |
15049 | krb5_init_context (); | |
15050 | ; | |
15051 | return 0; | |
15052 | } | |
15053 | _ACEOF | |
15054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
15056 | (eval $ac_link) 2>&5 |
15057 | ac_status=$? | |
c0d27fcc | 15058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15059 | (exit $ac_status); } && |
793fa0d7 | 15060 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 15061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15062 | (eval $ac_try) 2>&5 |
15063 | ac_status=$? | |
c0d27fcc | 15064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15065 | (exit $ac_status); }; }; then |
15066 | ac_cv_lib_krb5_krb5_init_context=yes | |
15067 | else | |
15068 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15069 | sed 's/^/| /' conftest.$ac_ext >&5 |
15070 | ||
503d2be0 AS |
15071 | ac_cv_lib_krb5_krb5_init_context=no |
15072 | fi | |
15073 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15074 | LIBS=$ac_check_lib_save_LIBS | |
15075 | fi | |
c0d27fcc | 15076 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
503d2be0 AS |
15077 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
15078 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
c0d27fcc | 15079 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15080 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 15081 | _ACEOF |
a21616bd KR |
15082 | |
15083 | LIBS="-lkrb5 $LIBS" | |
15084 | ||
a21616bd KR |
15085 | fi |
15086 | ||
15087 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 15088 | |
c0d27fcc | 15089 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
503d2be0 AS |
15090 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
15091 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
15092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 15093 | else |
503d2be0 | 15094 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 15095 | LIBS="-ldes425 $LIBS" |
503d2be0 | 15096 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 15097 | #line $LINENO "configure" |
19650fd6 AS |
15098 | /* confdefs.h. */ |
15099 | _ACEOF | |
15100 | cat confdefs.h >>conftest.$ac_ext | |
15101 | cat >>conftest.$ac_ext <<_ACEOF | |
15102 | /* end confdefs.h. */ | |
503d2be0 | 15103 | |
a21616bd | 15104 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
15105 | #ifdef __cplusplus |
15106 | extern "C" | |
15107 | #endif | |
a21616bd | 15108 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
15109 | builtin and then its argument prototype would still apply. */ |
15110 | char des_cbc_encrypt (); | |
15111 | int | |
15112 | main () | |
15113 | { | |
15114 | des_cbc_encrypt (); | |
15115 | ; | |
15116 | return 0; | |
15117 | } | |
15118 | _ACEOF | |
15119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
15121 | (eval $ac_link) 2>&5 |
15122 | ac_status=$? | |
c0d27fcc | 15123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15124 | (exit $ac_status); } && |
793fa0d7 | 15125 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 15126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15127 | (eval $ac_try) 2>&5 |
15128 | ac_status=$? | |
c0d27fcc | 15129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15130 | (exit $ac_status); }; }; then |
15131 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
15132 | else | |
15133 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15134 | sed 's/^/| /' conftest.$ac_ext >&5 |
15135 | ||
503d2be0 AS |
15136 | ac_cv_lib_des425_des_cbc_encrypt=no |
15137 | fi | |
15138 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15139 | LIBS=$ac_check_lib_save_LIBS | |
15140 | fi | |
c0d27fcc | 15141 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
503d2be0 AS |
15142 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
15143 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
c0d27fcc | 15144 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15145 | #define HAVE_LIBDES425 1 |
c0d27fcc | 15146 | _ACEOF |
a21616bd KR |
15147 | |
15148 | LIBS="-ldes425 $LIBS" | |
15149 | ||
15150 | else | |
503d2be0 | 15151 | |
c0d27fcc | 15152 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
503d2be0 AS |
15153 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
15154 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
15155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 15156 | else |
503d2be0 | 15157 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 15158 | LIBS="-ldes $LIBS" |
503d2be0 | 15159 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 15160 | #line $LINENO "configure" |
19650fd6 AS |
15161 | /* confdefs.h. */ |
15162 | _ACEOF | |
15163 | cat confdefs.h >>conftest.$ac_ext | |
15164 | cat >>conftest.$ac_ext <<_ACEOF | |
15165 | /* end confdefs.h. */ | |
503d2be0 | 15166 | |
a21616bd | 15167 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
15168 | #ifdef __cplusplus |
15169 | extern "C" | |
15170 | #endif | |
a21616bd | 15171 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
15172 | builtin and then its argument prototype would still apply. */ |
15173 | char des_cbc_encrypt (); | |
15174 | int | |
15175 | main () | |
15176 | { | |
15177 | des_cbc_encrypt (); | |
15178 | ; | |
15179 | return 0; | |
15180 | } | |
15181 | _ACEOF | |
15182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
15184 | (eval $ac_link) 2>&5 |
15185 | ac_status=$? | |
c0d27fcc | 15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15187 | (exit $ac_status); } && |
793fa0d7 | 15188 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 15189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15190 | (eval $ac_try) 2>&5 |
15191 | ac_status=$? | |
c0d27fcc | 15192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15193 | (exit $ac_status); }; }; then |
15194 | ac_cv_lib_des_des_cbc_encrypt=yes | |
15195 | else | |
15196 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15197 | sed 's/^/| /' conftest.$ac_ext >&5 |
15198 | ||
503d2be0 AS |
15199 | ac_cv_lib_des_des_cbc_encrypt=no |
15200 | fi | |
15201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15202 | LIBS=$ac_check_lib_save_LIBS | |
15203 | fi | |
c0d27fcc | 15204 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
503d2be0 AS |
15205 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
15206 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
c0d27fcc | 15207 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15208 | #define HAVE_LIBDES 1 |
c0d27fcc | 15209 | _ACEOF |
a21616bd KR |
15210 | |
15211 | LIBS="-ldes $LIBS" | |
15212 | ||
a21616bd KR |
15213 | fi |
15214 | ||
15215 | fi | |
15216 | ||
c0d27fcc MR |
15217 | |
15218 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | |
503d2be0 AS |
15219 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
15220 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
15221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 15222 | else |
503d2be0 | 15223 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 15224 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 15225 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 15226 | #line $LINENO "configure" |
19650fd6 AS |
15227 | /* confdefs.h. */ |
15228 | _ACEOF | |
15229 | cat confdefs.h >>conftest.$ac_ext | |
15230 | cat >>conftest.$ac_ext <<_ACEOF | |
15231 | /* end confdefs.h. */ | |
503d2be0 | 15232 | |
a21616bd | 15233 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
15234 | #ifdef __cplusplus |
15235 | extern "C" | |
15236 | #endif | |
a21616bd | 15237 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
15238 | builtin and then its argument prototype would still apply. */ |
15239 | char krb_get_cred (); | |
15240 | int | |
15241 | main () | |
15242 | { | |
15243 | krb_get_cred (); | |
15244 | ; | |
15245 | return 0; | |
15246 | } | |
15247 | _ACEOF | |
15248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
15250 | (eval $ac_link) 2>&5 |
15251 | ac_status=$? | |
c0d27fcc | 15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15253 | (exit $ac_status); } && |
793fa0d7 | 15254 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 15255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15256 | (eval $ac_try) 2>&5 |
15257 | ac_status=$? | |
c0d27fcc | 15258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15259 | (exit $ac_status); }; }; then |
15260 | ac_cv_lib_krb4_krb_get_cred=yes | |
15261 | else | |
15262 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15263 | sed 's/^/| /' conftest.$ac_ext >&5 |
15264 | ||
503d2be0 AS |
15265 | ac_cv_lib_krb4_krb_get_cred=no |
15266 | fi | |
15267 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15268 | LIBS=$ac_check_lib_save_LIBS | |
15269 | fi | |
c0d27fcc | 15270 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
503d2be0 AS |
15271 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
15272 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
c0d27fcc | 15273 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15274 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 15275 | _ACEOF |
a21616bd KR |
15276 | |
15277 | LIBS="-lkrb4 $LIBS" | |
15278 | ||
15279 | else | |
503d2be0 | 15280 | |
c0d27fcc | 15281 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
503d2be0 AS |
15282 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
15283 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
15284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 15285 | else |
503d2be0 | 15286 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 15287 | LIBS="-lkrb $LIBS" |
503d2be0 | 15288 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 15289 | #line $LINENO "configure" |
19650fd6 AS |
15290 | /* confdefs.h. */ |
15291 | _ACEOF | |
15292 | cat confdefs.h >>conftest.$ac_ext | |
15293 | cat >>conftest.$ac_ext <<_ACEOF | |
15294 | /* end confdefs.h. */ | |
503d2be0 | 15295 | |
a21616bd | 15296 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
15297 | #ifdef __cplusplus |
15298 | extern "C" | |
15299 | #endif | |
a21616bd | 15300 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
15301 | builtin and then its argument prototype would still apply. */ |
15302 | char krb_get_cred (); | |
15303 | int | |
15304 | main () | |
15305 | { | |
15306 | krb_get_cred (); | |
15307 | ; | |
15308 | return 0; | |
15309 | } | |
15310 | _ACEOF | |
15311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
15313 | (eval $ac_link) 2>&5 |
15314 | ac_status=$? | |
c0d27fcc | 15315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15316 | (exit $ac_status); } && |
793fa0d7 | 15317 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 15318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15319 | (eval $ac_try) 2>&5 |
15320 | ac_status=$? | |
c0d27fcc | 15321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15322 | (exit $ac_status); }; }; then |
15323 | ac_cv_lib_krb_krb_get_cred=yes | |
15324 | else | |
15325 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15326 | sed 's/^/| /' conftest.$ac_ext >&5 |
15327 | ||
503d2be0 AS |
15328 | ac_cv_lib_krb_krb_get_cred=no |
15329 | fi | |
15330 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15331 | LIBS=$ac_check_lib_save_LIBS | |
15332 | fi | |
c0d27fcc | 15333 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
503d2be0 AS |
15334 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
15335 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
c0d27fcc | 15336 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15337 | #define HAVE_LIBKRB 1 |
c0d27fcc | 15338 | _ACEOF |
a21616bd KR |
15339 | |
15340 | LIBS="-lkrb $LIBS" | |
15341 | ||
a21616bd KR |
15342 | fi |
15343 | ||
15344 | fi | |
15345 | ||
15346 | fi | |
15347 | ||
15348 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
15349 | |
15350 | for ac_header in krb5.h | |
a21616bd | 15351 | do |
503d2be0 | 15352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15358 | fi |
15359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15361 | else |
c0d27fcc MR |
15362 | # Is the header compilable? |
15363 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15364 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15365 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15366 | #line $LINENO "configure" |
19650fd6 AS |
15367 | /* confdefs.h. */ |
15368 | _ACEOF | |
15369 | cat confdefs.h >>conftest.$ac_ext | |
15370 | cat >>conftest.$ac_ext <<_ACEOF | |
15371 | /* end confdefs.h. */ | |
c0d27fcc MR |
15372 | $ac_includes_default |
15373 | #include <$ac_header> | |
15374 | _ACEOF | |
15375 | rm -f conftest.$ac_objext | |
15376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15377 | (eval $ac_compile) 2>&5 | |
15378 | ac_status=$? | |
15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15380 | (exit $ac_status); } && | |
793fa0d7 | 15381 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
15382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15383 | (eval $ac_try) 2>&5 | |
15384 | ac_status=$? | |
15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15386 | (exit $ac_status); }; }; then | |
15387 | ac_header_compiler=yes | |
15388 | else | |
15389 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15390 | sed 's/^/| /' conftest.$ac_ext >&5 |
15391 | ||
c0d27fcc MR |
15392 | ac_header_compiler=no |
15393 | fi | |
15394 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15395 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15396 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15397 | ||
15398 | # Is the header present? | |
15399 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15400 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15401 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15402 | #line $LINENO "configure" |
19650fd6 AS |
15403 | /* confdefs.h. */ |
15404 | _ACEOF | |
15405 | cat confdefs.h >>conftest.$ac_ext | |
15406 | cat >>conftest.$ac_ext <<_ACEOF | |
15407 | /* end confdefs.h. */ | |
503d2be0 AS |
15408 | #include <$ac_header> |
15409 | _ACEOF | |
c0d27fcc | 15410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15412 | ac_status=$? | |
6bae0ccf | 15413 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15414 | rm -f conftest.er1 |
15415 | cat conftest.err >&5 | |
c0d27fcc | 15416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15417 | (exit $ac_status); } >/dev/null; then |
15418 | if test -s conftest.err; then | |
15419 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15420 | else | |
15421 | ac_cpp_err= | |
15422 | fi | |
15423 | else | |
15424 | ac_cpp_err=yes | |
15425 | fi | |
15426 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15427 | ac_header_preproc=yes |
503d2be0 AS |
15428 | else |
15429 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15430 | sed 's/^/| /' conftest.$ac_ext >&5 |
15431 | ||
c0d27fcc | 15432 | ac_header_preproc=no |
a21616bd | 15433 | fi |
503d2be0 | 15434 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15435 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15436 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15437 | ||
15438 | # So? What about this header? | |
15439 | case $ac_header_compiler:$ac_header_preproc in | |
15440 | yes:no ) | |
15441 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15442 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
15443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15445 | ( | |
15446 | cat <<\_ASBOX | |
15447 | ## ------------------------------------ ## | |
15448 | ## Report this to bug-autoconf@gnu.org. ## | |
15449 | ## ------------------------------------ ## | |
15450 | _ASBOX | |
15451 | ) | | |
15452 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 15453 | ;; |
c0d27fcc MR |
15454 | no:yes ) |
15455 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15456 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
15457 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15458 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 15459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15460 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
15461 | ( |
15462 | cat <<\_ASBOX | |
793fa0d7 DL |
15463 | ## ------------------------------------ ## |
15464 | ## Report this to bug-autoconf@gnu.org. ## | |
15465 | ## ------------------------------------ ## | |
19650fd6 AS |
15466 | _ASBOX |
15467 | ) | | |
15468 | sed "s/^/$as_me: WARNING: /" >&2 | |
15469 | ;; | |
c0d27fcc MR |
15470 | esac |
15471 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15475 | else | |
793fa0d7 | 15476 | eval "$as_ac_Header=$ac_header_preproc" |
a21616bd | 15477 | fi |
c0d27fcc | 15478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15479 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15480 | |
15481 | fi | |
503d2be0 | 15482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15483 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15484 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15485 | _ACEOF |
503d2be0 | 15486 | |
a21616bd | 15487 | fi |
c0d27fcc | 15488 | |
a21616bd KR |
15489 | done |
15490 | ||
15491 | else | |
503d2be0 AS |
15492 | |
15493 | for ac_header in des.h | |
a21616bd | 15494 | do |
503d2be0 | 15495 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15501 | fi |
15502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15503 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15504 | else |
c0d27fcc MR |
15505 | # Is the header compilable? |
15506 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15507 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15508 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15509 | #line $LINENO "configure" |
19650fd6 AS |
15510 | /* confdefs.h. */ |
15511 | _ACEOF | |
15512 | cat confdefs.h >>conftest.$ac_ext | |
15513 | cat >>conftest.$ac_ext <<_ACEOF | |
15514 | /* end confdefs.h. */ | |
c0d27fcc MR |
15515 | $ac_includes_default |
15516 | #include <$ac_header> | |
15517 | _ACEOF | |
15518 | rm -f conftest.$ac_objext | |
15519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15520 | (eval $ac_compile) 2>&5 | |
15521 | ac_status=$? | |
15522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15523 | (exit $ac_status); } && | |
793fa0d7 | 15524 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
15525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15526 | (eval $ac_try) 2>&5 | |
15527 | ac_status=$? | |
15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15529 | (exit $ac_status); }; }; then | |
15530 | ac_header_compiler=yes | |
15531 | else | |
15532 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15533 | sed 's/^/| /' conftest.$ac_ext >&5 |
15534 | ||
c0d27fcc MR |
15535 | ac_header_compiler=no |
15536 | fi | |
15537 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15538 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15539 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15540 | ||
15541 | # Is the header present? | |
15542 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15543 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15544 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15545 | #line $LINENO "configure" |
19650fd6 AS |
15546 | /* confdefs.h. */ |
15547 | _ACEOF | |
15548 | cat confdefs.h >>conftest.$ac_ext | |
15549 | cat >>conftest.$ac_ext <<_ACEOF | |
15550 | /* end confdefs.h. */ | |
503d2be0 AS |
15551 | #include <$ac_header> |
15552 | _ACEOF | |
c0d27fcc | 15553 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15554 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15555 | ac_status=$? | |
6bae0ccf | 15556 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15557 | rm -f conftest.er1 |
15558 | cat conftest.err >&5 | |
c0d27fcc | 15559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15560 | (exit $ac_status); } >/dev/null; then |
15561 | if test -s conftest.err; then | |
15562 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15563 | else | |
15564 | ac_cpp_err= | |
15565 | fi | |
15566 | else | |
15567 | ac_cpp_err=yes | |
15568 | fi | |
15569 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15570 | ac_header_preproc=yes |
503d2be0 AS |
15571 | else |
15572 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15573 | sed 's/^/| /' conftest.$ac_ext >&5 |
15574 | ||
c0d27fcc | 15575 | ac_header_preproc=no |
a21616bd | 15576 | fi |
503d2be0 | 15577 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15578 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15579 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15580 | ||
15581 | # So? What about this header? | |
15582 | case $ac_header_compiler:$ac_header_preproc in | |
15583 | yes:no ) | |
15584 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15585 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
15586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15587 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15588 | ( | |
15589 | cat <<\_ASBOX | |
15590 | ## ------------------------------------ ## | |
15591 | ## Report this to bug-autoconf@gnu.org. ## | |
15592 | ## ------------------------------------ ## | |
15593 | _ASBOX | |
15594 | ) | | |
15595 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 15596 | ;; |
c0d27fcc MR |
15597 | no:yes ) |
15598 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15599 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
15600 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15601 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 15602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15603 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
15604 | ( |
15605 | cat <<\_ASBOX | |
793fa0d7 DL |
15606 | ## ------------------------------------ ## |
15607 | ## Report this to bug-autoconf@gnu.org. ## | |
15608 | ## ------------------------------------ ## | |
19650fd6 AS |
15609 | _ASBOX |
15610 | ) | | |
15611 | sed "s/^/$as_me: WARNING: /" >&2 | |
15612 | ;; | |
c0d27fcc MR |
15613 | esac |
15614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15618 | else | |
793fa0d7 | 15619 | eval "$as_ac_Header=$ac_header_preproc" |
a21616bd | 15620 | fi |
c0d27fcc | 15621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15623 | |
15624 | fi | |
503d2be0 | 15625 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15626 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15627 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15628 | _ACEOF |
503d2be0 | 15629 | |
a21616bd | 15630 | else |
503d2be0 AS |
15631 | |
15632 | for ac_header in kerberosIV/des.h | |
a21616bd | 15633 | do |
503d2be0 | 15634 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15636 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15637 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15638 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15640 | fi |
15641 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15642 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15643 | else |
c0d27fcc MR |
15644 | # Is the header compilable? |
15645 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15646 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15647 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15648 | #line $LINENO "configure" |
19650fd6 AS |
15649 | /* confdefs.h. */ |
15650 | _ACEOF | |
15651 | cat confdefs.h >>conftest.$ac_ext | |
15652 | cat >>conftest.$ac_ext <<_ACEOF | |
15653 | /* end confdefs.h. */ | |
c0d27fcc MR |
15654 | $ac_includes_default |
15655 | #include <$ac_header> | |
15656 | _ACEOF | |
15657 | rm -f conftest.$ac_objext | |
15658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15659 | (eval $ac_compile) 2>&5 | |
15660 | ac_status=$? | |
15661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15662 | (exit $ac_status); } && | |
793fa0d7 | 15663 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
15664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15665 | (eval $ac_try) 2>&5 | |
15666 | ac_status=$? | |
15667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15668 | (exit $ac_status); }; }; then | |
15669 | ac_header_compiler=yes | |
15670 | else | |
15671 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15672 | sed 's/^/| /' conftest.$ac_ext >&5 |
15673 | ||
c0d27fcc MR |
15674 | ac_header_compiler=no |
15675 | fi | |
15676 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15677 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15678 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15679 | ||
15680 | # Is the header present? | |
15681 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15682 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15683 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15684 | #line $LINENO "configure" |
19650fd6 AS |
15685 | /* confdefs.h. */ |
15686 | _ACEOF | |
15687 | cat confdefs.h >>conftest.$ac_ext | |
15688 | cat >>conftest.$ac_ext <<_ACEOF | |
15689 | /* end confdefs.h. */ | |
503d2be0 AS |
15690 | #include <$ac_header> |
15691 | _ACEOF | |
c0d27fcc | 15692 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15693 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15694 | ac_status=$? | |
6bae0ccf | 15695 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15696 | rm -f conftest.er1 |
15697 | cat conftest.err >&5 | |
c0d27fcc | 15698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15699 | (exit $ac_status); } >/dev/null; then |
15700 | if test -s conftest.err; then | |
15701 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15702 | else | |
15703 | ac_cpp_err= | |
15704 | fi | |
15705 | else | |
15706 | ac_cpp_err=yes | |
15707 | fi | |
15708 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15709 | ac_header_preproc=yes |
503d2be0 AS |
15710 | else |
15711 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15712 | sed 's/^/| /' conftest.$ac_ext >&5 |
15713 | ||
c0d27fcc | 15714 | ac_header_preproc=no |
a21616bd | 15715 | fi |
503d2be0 | 15716 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15717 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15718 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15719 | ||
15720 | # So? What about this header? | |
15721 | case $ac_header_compiler:$ac_header_preproc in | |
15722 | yes:no ) | |
15723 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15724 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
15725 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15726 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15727 | ( | |
15728 | cat <<\_ASBOX | |
15729 | ## ------------------------------------ ## | |
15730 | ## Report this to bug-autoconf@gnu.org. ## | |
15731 | ## ------------------------------------ ## | |
15732 | _ASBOX | |
15733 | ) | | |
15734 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 15735 | ;; |
c0d27fcc MR |
15736 | no:yes ) |
15737 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15738 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
15739 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15740 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 15741 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15742 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
15743 | ( |
15744 | cat <<\_ASBOX | |
793fa0d7 DL |
15745 | ## ------------------------------------ ## |
15746 | ## Report this to bug-autoconf@gnu.org. ## | |
15747 | ## ------------------------------------ ## | |
19650fd6 AS |
15748 | _ASBOX |
15749 | ) | | |
15750 | sed "s/^/$as_me: WARNING: /" >&2 | |
15751 | ;; | |
c0d27fcc MR |
15752 | esac |
15753 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15755 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15757 | else | |
793fa0d7 | 15758 | eval "$as_ac_Header=$ac_header_preproc" |
a21616bd | 15759 | fi |
c0d27fcc | 15760 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15761 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15762 | |
15763 | fi | |
503d2be0 | 15764 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15765 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15766 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15767 | _ACEOF |
503d2be0 | 15768 | |
a21616bd | 15769 | else |
503d2be0 AS |
15770 | |
15771 | for ac_header in kerberos/des.h | |
a21616bd | 15772 | do |
503d2be0 | 15773 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
15774 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15775 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
15776 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15779 | fi |
15780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15781 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15782 | else |
c0d27fcc MR |
15783 | # Is the header compilable? |
15784 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15785 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15786 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15787 | #line $LINENO "configure" |
19650fd6 AS |
15788 | /* confdefs.h. */ |
15789 | _ACEOF | |
15790 | cat confdefs.h >>conftest.$ac_ext | |
15791 | cat >>conftest.$ac_ext <<_ACEOF | |
15792 | /* end confdefs.h. */ | |
c0d27fcc MR |
15793 | $ac_includes_default |
15794 | #include <$ac_header> | |
15795 | _ACEOF | |
15796 | rm -f conftest.$ac_objext | |
15797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15798 | (eval $ac_compile) 2>&5 | |
15799 | ac_status=$? | |
15800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15801 | (exit $ac_status); } && | |
793fa0d7 | 15802 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
15803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15804 | (eval $ac_try) 2>&5 | |
15805 | ac_status=$? | |
15806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15807 | (exit $ac_status); }; }; then | |
15808 | ac_header_compiler=yes | |
15809 | else | |
15810 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15811 | sed 's/^/| /' conftest.$ac_ext >&5 |
15812 | ||
c0d27fcc MR |
15813 | ac_header_compiler=no |
15814 | fi | |
15815 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15816 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15817 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15818 | ||
15819 | # Is the header present? | |
15820 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15821 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15822 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15823 | #line $LINENO "configure" |
19650fd6 AS |
15824 | /* confdefs.h. */ |
15825 | _ACEOF | |
15826 | cat confdefs.h >>conftest.$ac_ext | |
15827 | cat >>conftest.$ac_ext <<_ACEOF | |
15828 | /* end confdefs.h. */ | |
503d2be0 AS |
15829 | #include <$ac_header> |
15830 | _ACEOF | |
c0d27fcc | 15831 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15832 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15833 | ac_status=$? | |
6bae0ccf | 15834 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15835 | rm -f conftest.er1 |
15836 | cat conftest.err >&5 | |
c0d27fcc | 15837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15838 | (exit $ac_status); } >/dev/null; then |
15839 | if test -s conftest.err; then | |
15840 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15841 | else | |
15842 | ac_cpp_err= | |
15843 | fi | |
15844 | else | |
15845 | ac_cpp_err=yes | |
15846 | fi | |
15847 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15848 | ac_header_preproc=yes |
503d2be0 AS |
15849 | else |
15850 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15851 | sed 's/^/| /' conftest.$ac_ext >&5 |
15852 | ||
c0d27fcc | 15853 | ac_header_preproc=no |
a21616bd | 15854 | fi |
503d2be0 | 15855 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15856 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15857 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15858 | ||
15859 | # So? What about this header? | |
15860 | case $ac_header_compiler:$ac_header_preproc in | |
15861 | yes:no ) | |
15862 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15863 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
15864 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15865 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15866 | ( | |
15867 | cat <<\_ASBOX | |
15868 | ## ------------------------------------ ## | |
15869 | ## Report this to bug-autoconf@gnu.org. ## | |
15870 | ## ------------------------------------ ## | |
15871 | _ASBOX | |
15872 | ) | | |
15873 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 15874 | ;; |
c0d27fcc MR |
15875 | no:yes ) |
15876 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15877 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
15878 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15879 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 15880 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15881 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
15882 | ( |
15883 | cat <<\_ASBOX | |
793fa0d7 DL |
15884 | ## ------------------------------------ ## |
15885 | ## Report this to bug-autoconf@gnu.org. ## | |
15886 | ## ------------------------------------ ## | |
19650fd6 AS |
15887 | _ASBOX |
15888 | ) | | |
15889 | sed "s/^/$as_me: WARNING: /" >&2 | |
15890 | ;; | |
c0d27fcc MR |
15891 | esac |
15892 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15893 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15894 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15896 | else | |
793fa0d7 | 15897 | eval "$as_ac_Header=$ac_header_preproc" |
a21616bd | 15898 | fi |
c0d27fcc | 15899 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15900 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15901 | |
15902 | fi | |
503d2be0 | 15903 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15904 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15905 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15906 | _ACEOF |
a21616bd KR |
15907 | |
15908 | fi | |
c0d27fcc | 15909 | |
a21616bd KR |
15910 | done |
15911 | ||
98418dba | 15912 | fi |
c0d27fcc | 15913 | |
925c2f3f EZ |
15914 | done |
15915 | ||
98418dba | 15916 | fi |
c0d27fcc | 15917 | |
925c2f3f | 15918 | done |
98418dba | 15919 | |
c0d27fcc | 15920 | |
925c2f3f EZ |
15921 | for ac_header in krb.h |
15922 | do | |
15923 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
15924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15925 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
15926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15929 | fi |
15930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15931 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15932 | else | |
15933 | # Is the header compilable? | |
15934 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15935 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15936 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15937 | #line $LINENO "configure" |
19650fd6 AS |
15938 | /* confdefs.h. */ |
15939 | _ACEOF | |
15940 | cat confdefs.h >>conftest.$ac_ext | |
15941 | cat >>conftest.$ac_ext <<_ACEOF | |
15942 | /* end confdefs.h. */ | |
c0d27fcc MR |
15943 | $ac_includes_default |
15944 | #include <$ac_header> | |
15945 | _ACEOF | |
15946 | rm -f conftest.$ac_objext | |
15947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15948 | (eval $ac_compile) 2>&5 | |
15949 | ac_status=$? | |
15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15951 | (exit $ac_status); } && | |
793fa0d7 | 15952 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
15953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15954 | (eval $ac_try) 2>&5 | |
15955 | ac_status=$? | |
15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15957 | (exit $ac_status); }; }; then | |
15958 | ac_header_compiler=yes | |
925c2f3f | 15959 | else |
c0d27fcc | 15960 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15961 | sed 's/^/| /' conftest.$ac_ext >&5 |
15962 | ||
c0d27fcc MR |
15963 | ac_header_compiler=no |
15964 | fi | |
15965 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15966 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15967 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15968 | ||
15969 | # Is the header present? | |
15970 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15971 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15972 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 15973 | #line $LINENO "configure" |
19650fd6 AS |
15974 | /* confdefs.h. */ |
15975 | _ACEOF | |
15976 | cat confdefs.h >>conftest.$ac_ext | |
15977 | cat >>conftest.$ac_ext <<_ACEOF | |
15978 | /* end confdefs.h. */ | |
503d2be0 AS |
15979 | #include <$ac_header> |
15980 | _ACEOF | |
c0d27fcc | 15981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15983 | ac_status=$? | |
6bae0ccf | 15984 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15985 | rm -f conftest.er1 |
15986 | cat conftest.err >&5 | |
c0d27fcc | 15987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15988 | (exit $ac_status); } >/dev/null; then |
15989 | if test -s conftest.err; then | |
15990 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15991 | else | |
15992 | ac_cpp_err= | |
15993 | fi | |
15994 | else | |
15995 | ac_cpp_err=yes | |
15996 | fi | |
15997 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15998 | ac_header_preproc=yes |
503d2be0 AS |
15999 | else |
16000 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16001 | sed 's/^/| /' conftest.$ac_ext >&5 |
16002 | ||
c0d27fcc | 16003 | ac_header_preproc=no |
a21616bd | 16004 | fi |
503d2be0 | 16005 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
16006 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16007 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16008 | ||
16009 | # So? What about this header? | |
16010 | case $ac_header_compiler:$ac_header_preproc in | |
16011 | yes:no ) | |
16012 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16013 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
16014 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16015 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16016 | ( | |
16017 | cat <<\_ASBOX | |
16018 | ## ------------------------------------ ## | |
16019 | ## Report this to bug-autoconf@gnu.org. ## | |
16020 | ## ------------------------------------ ## | |
16021 | _ASBOX | |
16022 | ) | | |
16023 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 16024 | ;; |
c0d27fcc MR |
16025 | no:yes ) |
16026 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16027 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
16028 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16029 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 16030 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16031 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
16032 | ( |
16033 | cat <<\_ASBOX | |
793fa0d7 DL |
16034 | ## ------------------------------------ ## |
16035 | ## Report this to bug-autoconf@gnu.org. ## | |
16036 | ## ------------------------------------ ## | |
19650fd6 AS |
16037 | _ASBOX |
16038 | ) | | |
16039 | sed "s/^/$as_me: WARNING: /" >&2 | |
16040 | ;; | |
c0d27fcc MR |
16041 | esac |
16042 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16043 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16046 | else | |
793fa0d7 | 16047 | eval "$as_ac_Header=$ac_header_preproc" |
a21616bd | 16048 | fi |
c0d27fcc | 16049 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 16050 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
16051 | |
16052 | fi | |
503d2be0 | 16053 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16054 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16055 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16056 | _ACEOF |
503d2be0 | 16057 | |
a21616bd | 16058 | else |
503d2be0 AS |
16059 | |
16060 | for ac_header in kerberosIV/krb.h | |
a21616bd | 16061 | do |
503d2be0 | 16062 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
16063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
16065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
16066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
16068 | fi |
16069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16070 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 16071 | else |
c0d27fcc MR |
16072 | # Is the header compilable? |
16073 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16074 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16075 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 16076 | #line $LINENO "configure" |
19650fd6 AS |
16077 | /* confdefs.h. */ |
16078 | _ACEOF | |
16079 | cat confdefs.h >>conftest.$ac_ext | |
16080 | cat >>conftest.$ac_ext <<_ACEOF | |
16081 | /* end confdefs.h. */ | |
c0d27fcc MR |
16082 | $ac_includes_default |
16083 | #include <$ac_header> | |
16084 | _ACEOF | |
16085 | rm -f conftest.$ac_objext | |
16086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16087 | (eval $ac_compile) 2>&5 | |
16088 | ac_status=$? | |
16089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16090 | (exit $ac_status); } && | |
793fa0d7 | 16091 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
16092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16093 | (eval $ac_try) 2>&5 | |
16094 | ac_status=$? | |
16095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16096 | (exit $ac_status); }; }; then | |
16097 | ac_header_compiler=yes | |
16098 | else | |
16099 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16100 | sed 's/^/| /' conftest.$ac_ext >&5 |
16101 | ||
c0d27fcc MR |
16102 | ac_header_compiler=no |
16103 | fi | |
16104 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16105 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16106 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16107 | ||
16108 | # Is the header present? | |
16109 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16110 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16111 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 16112 | #line $LINENO "configure" |
19650fd6 AS |
16113 | /* confdefs.h. */ |
16114 | _ACEOF | |
16115 | cat confdefs.h >>conftest.$ac_ext | |
16116 | cat >>conftest.$ac_ext <<_ACEOF | |
16117 | /* end confdefs.h. */ | |
503d2be0 AS |
16118 | #include <$ac_header> |
16119 | _ACEOF | |
c0d27fcc | 16120 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
16121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16122 | ac_status=$? | |
6bae0ccf | 16123 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16124 | rm -f conftest.er1 |
16125 | cat conftest.err >&5 | |
c0d27fcc | 16126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16127 | (exit $ac_status); } >/dev/null; then |
16128 | if test -s conftest.err; then | |
16129 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16130 | else | |
16131 | ac_cpp_err= | |
16132 | fi | |
16133 | else | |
16134 | ac_cpp_err=yes | |
16135 | fi | |
16136 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 16137 | ac_header_preproc=yes |
503d2be0 AS |
16138 | else |
16139 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16140 | sed 's/^/| /' conftest.$ac_ext >&5 |
16141 | ||
c0d27fcc | 16142 | ac_header_preproc=no |
a21616bd | 16143 | fi |
503d2be0 | 16144 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
16145 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16146 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16147 | ||
16148 | # So? What about this header? | |
16149 | case $ac_header_compiler:$ac_header_preproc in | |
16150 | yes:no ) | |
16151 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16152 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
16153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16154 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16155 | ( | |
16156 | cat <<\_ASBOX | |
16157 | ## ------------------------------------ ## | |
16158 | ## Report this to bug-autoconf@gnu.org. ## | |
16159 | ## ------------------------------------ ## | |
16160 | _ASBOX | |
16161 | ) | | |
16162 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 16163 | ;; |
c0d27fcc MR |
16164 | no:yes ) |
16165 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16166 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
16167 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16168 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 16169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16170 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
16171 | ( |
16172 | cat <<\_ASBOX | |
793fa0d7 DL |
16173 | ## ------------------------------------ ## |
16174 | ## Report this to bug-autoconf@gnu.org. ## | |
16175 | ## ------------------------------------ ## | |
19650fd6 AS |
16176 | _ASBOX |
16177 | ) | | |
16178 | sed "s/^/$as_me: WARNING: /" >&2 | |
16179 | ;; | |
c0d27fcc MR |
16180 | esac |
16181 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16182 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16185 | else | |
793fa0d7 | 16186 | eval "$as_ac_Header=$ac_header_preproc" |
a21616bd | 16187 | fi |
c0d27fcc | 16188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 16189 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
16190 | |
16191 | fi | |
503d2be0 | 16192 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16193 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16194 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16195 | _ACEOF |
503d2be0 | 16196 | |
a21616bd | 16197 | else |
503d2be0 AS |
16198 | |
16199 | for ac_header in kerberos/krb.h | |
a21616bd | 16200 | do |
503d2be0 | 16201 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
16202 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16203 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
16204 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
16205 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
16207 | fi |
16208 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16209 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 16210 | else |
c0d27fcc MR |
16211 | # Is the header compilable? |
16212 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16213 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16214 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 16215 | #line $LINENO "configure" |
19650fd6 AS |
16216 | /* confdefs.h. */ |
16217 | _ACEOF | |
16218 | cat confdefs.h >>conftest.$ac_ext | |
16219 | cat >>conftest.$ac_ext <<_ACEOF | |
16220 | /* end confdefs.h. */ | |
c0d27fcc MR |
16221 | $ac_includes_default |
16222 | #include <$ac_header> | |
16223 | _ACEOF | |
16224 | rm -f conftest.$ac_objext | |
16225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16226 | (eval $ac_compile) 2>&5 | |
16227 | ac_status=$? | |
16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16229 | (exit $ac_status); } && | |
793fa0d7 | 16230 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
16231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16232 | (eval $ac_try) 2>&5 | |
16233 | ac_status=$? | |
16234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16235 | (exit $ac_status); }; }; then | |
16236 | ac_header_compiler=yes | |
16237 | else | |
16238 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16239 | sed 's/^/| /' conftest.$ac_ext >&5 |
16240 | ||
c0d27fcc MR |
16241 | ac_header_compiler=no |
16242 | fi | |
16243 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16244 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16245 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16246 | ||
16247 | # Is the header present? | |
16248 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16249 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16250 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 16251 | #line $LINENO "configure" |
19650fd6 AS |
16252 | /* confdefs.h. */ |
16253 | _ACEOF | |
16254 | cat confdefs.h >>conftest.$ac_ext | |
16255 | cat >>conftest.$ac_ext <<_ACEOF | |
16256 | /* end confdefs.h. */ | |
503d2be0 AS |
16257 | #include <$ac_header> |
16258 | _ACEOF | |
c0d27fcc | 16259 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
16260 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16261 | ac_status=$? | |
6bae0ccf | 16262 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16263 | rm -f conftest.er1 |
16264 | cat conftest.err >&5 | |
c0d27fcc | 16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16266 | (exit $ac_status); } >/dev/null; then |
16267 | if test -s conftest.err; then | |
16268 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16269 | else | |
16270 | ac_cpp_err= | |
16271 | fi | |
16272 | else | |
16273 | ac_cpp_err=yes | |
16274 | fi | |
16275 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 16276 | ac_header_preproc=yes |
503d2be0 AS |
16277 | else |
16278 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16279 | sed 's/^/| /' conftest.$ac_ext >&5 |
16280 | ||
c0d27fcc | 16281 | ac_header_preproc=no |
a21616bd | 16282 | fi |
503d2be0 | 16283 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
16284 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16285 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16286 | ||
16287 | # So? What about this header? | |
16288 | case $ac_header_compiler:$ac_header_preproc in | |
16289 | yes:no ) | |
16290 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16291 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
16292 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16293 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16294 | ( | |
16295 | cat <<\_ASBOX | |
16296 | ## ------------------------------------ ## | |
16297 | ## Report this to bug-autoconf@gnu.org. ## | |
16298 | ## ------------------------------------ ## | |
16299 | _ASBOX | |
16300 | ) | | |
16301 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 16302 | ;; |
c0d27fcc MR |
16303 | no:yes ) |
16304 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16305 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
16306 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16307 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 16308 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16309 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
16310 | ( |
16311 | cat <<\_ASBOX | |
793fa0d7 DL |
16312 | ## ------------------------------------ ## |
16313 | ## Report this to bug-autoconf@gnu.org. ## | |
16314 | ## ------------------------------------ ## | |
19650fd6 AS |
16315 | _ASBOX |
16316 | ) | | |
16317 | sed "s/^/$as_me: WARNING: /" >&2 | |
16318 | ;; | |
c0d27fcc MR |
16319 | esac |
16320 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16321 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16322 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16324 | else | |
793fa0d7 | 16325 | eval "$as_ac_Header=$ac_header_preproc" |
a21616bd | 16326 | fi |
c0d27fcc | 16327 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 16328 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
16329 | |
16330 | fi | |
503d2be0 | 16331 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16332 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16333 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16334 | _ACEOF |
503d2be0 | 16335 | |
a21616bd | 16336 | fi |
c0d27fcc | 16337 | |
a21616bd KR |
16338 | done |
16339 | ||
16340 | fi | |
c0d27fcc | 16341 | |
a21616bd KR |
16342 | done |
16343 | ||
16344 | fi | |
c0d27fcc | 16345 | |
a21616bd KR |
16346 | done |
16347 | ||
16348 | fi | |
503d2be0 AS |
16349 | |
16350 | for ac_header in com_err.h | |
a21616bd | 16351 | do |
503d2be0 | 16352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
16353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
16355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
16356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
16358 | fi |
16359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 16361 | else |
c0d27fcc MR |
16362 | # Is the header compilable? |
16363 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16364 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16365 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 16366 | #line $LINENO "configure" |
19650fd6 AS |
16367 | /* confdefs.h. */ |
16368 | _ACEOF | |
16369 | cat confdefs.h >>conftest.$ac_ext | |
16370 | cat >>conftest.$ac_ext <<_ACEOF | |
16371 | /* end confdefs.h. */ | |
c0d27fcc MR |
16372 | $ac_includes_default |
16373 | #include <$ac_header> | |
16374 | _ACEOF | |
16375 | rm -f conftest.$ac_objext | |
16376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16377 | (eval $ac_compile) 2>&5 | |
16378 | ac_status=$? | |
16379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16380 | (exit $ac_status); } && | |
793fa0d7 | 16381 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
16382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16383 | (eval $ac_try) 2>&5 | |
16384 | ac_status=$? | |
16385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16386 | (exit $ac_status); }; }; then | |
16387 | ac_header_compiler=yes | |
16388 | else | |
16389 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16390 | sed 's/^/| /' conftest.$ac_ext >&5 |
16391 | ||
c0d27fcc MR |
16392 | ac_header_compiler=no |
16393 | fi | |
16394 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16395 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16396 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16397 | ||
16398 | # Is the header present? | |
16399 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16400 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16401 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 16402 | #line $LINENO "configure" |
19650fd6 AS |
16403 | /* confdefs.h. */ |
16404 | _ACEOF | |
16405 | cat confdefs.h >>conftest.$ac_ext | |
16406 | cat >>conftest.$ac_ext <<_ACEOF | |
16407 | /* end confdefs.h. */ | |
503d2be0 AS |
16408 | #include <$ac_header> |
16409 | _ACEOF | |
c0d27fcc | 16410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
16411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16412 | ac_status=$? | |
6bae0ccf | 16413 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16414 | rm -f conftest.er1 |
16415 | cat conftest.err >&5 | |
c0d27fcc | 16416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16417 | (exit $ac_status); } >/dev/null; then |
16418 | if test -s conftest.err; then | |
16419 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16420 | else | |
16421 | ac_cpp_err= | |
16422 | fi | |
16423 | else | |
16424 | ac_cpp_err=yes | |
16425 | fi | |
16426 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 16427 | ac_header_preproc=yes |
503d2be0 AS |
16428 | else |
16429 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16430 | sed 's/^/| /' conftest.$ac_ext >&5 |
16431 | ||
c0d27fcc | 16432 | ac_header_preproc=no |
a21616bd | 16433 | fi |
503d2be0 | 16434 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
16435 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16436 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16437 | ||
16438 | # So? What about this header? | |
16439 | case $ac_header_compiler:$ac_header_preproc in | |
16440 | yes:no ) | |
16441 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16442 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
16443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16445 | ( | |
16446 | cat <<\_ASBOX | |
16447 | ## ------------------------------------ ## | |
16448 | ## Report this to bug-autoconf@gnu.org. ## | |
16449 | ## ------------------------------------ ## | |
16450 | _ASBOX | |
16451 | ) | | |
16452 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 16453 | ;; |
c0d27fcc MR |
16454 | no:yes ) |
16455 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16456 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
16457 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16458 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 16459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16460 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
16461 | ( |
16462 | cat <<\_ASBOX | |
793fa0d7 DL |
16463 | ## ------------------------------------ ## |
16464 | ## Report this to bug-autoconf@gnu.org. ## | |
16465 | ## ------------------------------------ ## | |
19650fd6 AS |
16466 | _ASBOX |
16467 | ) | | |
16468 | sed "s/^/$as_me: WARNING: /" >&2 | |
16469 | ;; | |
c0d27fcc MR |
16470 | esac |
16471 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16475 | else | |
793fa0d7 | 16476 | eval "$as_ac_Header=$ac_header_preproc" |
a21616bd | 16477 | fi |
c0d27fcc | 16478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 16479 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
16480 | |
16481 | fi | |
503d2be0 | 16482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16483 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16484 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16485 | _ACEOF |
503d2be0 | 16486 | |
a21616bd | 16487 | fi |
c0d27fcc | 16488 | |
a21616bd KR |
16489 | done |
16490 | ||
16491 | fi | |
16492 | ||
ba4481b5 DL |
16493 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
16494 | # to return localized messages. | |
503d2be0 | 16495 | |
c0d27fcc | 16496 | echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
503d2be0 AS |
16497 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
16498 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
16499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 16500 | else |
503d2be0 | 16501 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 16502 | LIBS="-lintl $LIBS" |
503d2be0 | 16503 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 16504 | #line $LINENO "configure" |
19650fd6 AS |
16505 | /* confdefs.h. */ |
16506 | _ACEOF | |
16507 | cat confdefs.h >>conftest.$ac_ext | |
16508 | cat >>conftest.$ac_ext <<_ACEOF | |
16509 | /* end confdefs.h. */ | |
503d2be0 | 16510 | |
ba4481b5 | 16511 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16512 | #ifdef __cplusplus |
16513 | extern "C" | |
16514 | #endif | |
ba4481b5 | 16515 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16516 | builtin and then its argument prototype would still apply. */ |
16517 | char dgettext (); | |
16518 | int | |
16519 | main () | |
16520 | { | |
16521 | dgettext (); | |
16522 | ; | |
16523 | return 0; | |
16524 | } | |
16525 | _ACEOF | |
16526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
16528 | (eval $ac_link) 2>&5 |
16529 | ac_status=$? | |
c0d27fcc | 16530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16531 | (exit $ac_status); } && |
793fa0d7 | 16532 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 16533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16534 | (eval $ac_try) 2>&5 |
16535 | ac_status=$? | |
c0d27fcc | 16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16537 | (exit $ac_status); }; }; then |
16538 | ac_cv_lib_intl_dgettext=yes | |
16539 | else | |
16540 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16541 | sed 's/^/| /' conftest.$ac_ext >&5 |
16542 | ||
503d2be0 AS |
16543 | ac_cv_lib_intl_dgettext=no |
16544 | fi | |
16545 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16546 | LIBS=$ac_check_lib_save_LIBS | |
16547 | fi | |
c0d27fcc | 16548 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
503d2be0 AS |
16549 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
16550 | if test $ac_cv_lib_intl_dgettext = yes; then | |
c0d27fcc | 16551 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16552 | #define HAVE_LIBINTL 1 |
c0d27fcc | 16553 | _ACEOF |
ba4481b5 DL |
16554 | |
16555 | LIBS="-lintl $LIBS" | |
16556 | ||
ba4481b5 DL |
16557 | fi |
16558 | ||
c0d27fcc MR |
16559 | |
16560 | echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | |
503d2be0 AS |
16561 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
16562 | if test "${emacs_cv_localtime_cache+set}" = set; then | |
16563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
16564 | else |
16565 | if test x$ac_cv_func_tzset = xyes; then | |
16566 | if test "$cross_compiling" = yes; then | |
16567 | # If we have tzset, assume the worst when cross-compiling. | |
16568 | emacs_cv_localtime_cache=yes | |
16569 | else | |
503d2be0 | 16570 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 16571 | #line $LINENO "configure" |
19650fd6 AS |
16572 | /* confdefs.h. */ |
16573 | _ACEOF | |
16574 | cat confdefs.h >>conftest.$ac_ext | |
16575 | cat >>conftest.$ac_ext <<_ACEOF | |
16576 | /* end confdefs.h. */ | |
ba4481b5 | 16577 | #include <time.h> |
ba4481b5 DL |
16578 | extern char **environ; |
16579 | unset_TZ () | |
16580 | { | |
16581 | char **from, **to; | |
16582 | for (to = from = environ; (*to = *from); from++) | |
16583 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
16584 | to++; | |
16585 | } | |
16586 | char TZ_GMT0[] = "TZ=GMT0"; | |
16587 | char TZ_PST8[] = "TZ=PST8"; | |
16588 | main() | |
16589 | { | |
16590 | time_t now = time ((time_t *) 0); | |
16591 | int hour_GMT0, hour_unset; | |
16592 | if (putenv (TZ_GMT0) != 0) | |
16593 | exit (1); | |
16594 | hour_GMT0 = localtime (&now)->tm_hour; | |
16595 | unset_TZ (); | |
16596 | hour_unset = localtime (&now)->tm_hour; | |
16597 | if (putenv (TZ_PST8) != 0) | |
16598 | exit (1); | |
16599 | if (localtime (&now)->tm_hour == hour_GMT0) | |
16600 | exit (1); | |
16601 | unset_TZ (); | |
16602 | if (localtime (&now)->tm_hour != hour_unset) | |
16603 | exit (1); | |
16604 | exit (0); | |
16605 | } | |
503d2be0 AS |
16606 | _ACEOF |
16607 | rm -f conftest$ac_exeext | |
c0d27fcc | 16608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
16609 | (eval $ac_link) 2>&5 |
16610 | ac_status=$? | |
c0d27fcc | 16611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16612 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 16613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16614 | (eval $ac_try) 2>&5 |
16615 | ac_status=$? | |
c0d27fcc | 16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16617 | (exit $ac_status); }; }; then |
ba4481b5 DL |
16618 | emacs_cv_localtime_cache=no |
16619 | else | |
503d2be0 AS |
16620 | echo "$as_me: program exited with status $ac_status" >&5 |
16621 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16622 | sed 's/^/| /' conftest.$ac_ext >&5 |
16623 | ||
c0d27fcc | 16624 | ( exit $ac_status ) |
503d2be0 | 16625 | emacs_cv_localtime_cache=yes |
ba4481b5 | 16626 | fi |
6bae0ccf | 16627 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 16628 | fi |
ba4481b5 DL |
16629 | else |
16630 | # If we lack tzset, report that localtime does not cache TZ, | |
16631 | # since we can't invalidate the cache if we don't have tzset. | |
16632 | emacs_cv_localtime_cache=no | |
16633 | fi | |
16634 | fi | |
c0d27fcc | 16635 | echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
503d2be0 | 16636 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
ba4481b5 | 16637 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 16638 | |
c0d27fcc | 16639 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 16640 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 16641 | _ACEOF |
ba4481b5 DL |
16642 | |
16643 | fi | |
16644 | ||
16645 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
16646 | |
16647 | for ac_func in gettimeofday | |
48d4b120 | 16648 | do |
503d2be0 | 16649 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 16650 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
16651 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16652 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 16654 | else |
503d2be0 | 16655 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 16656 | #line $LINENO "configure" |
19650fd6 AS |
16657 | /* confdefs.h. */ |
16658 | _ACEOF | |
16659 | cat confdefs.h >>conftest.$ac_ext | |
16660 | cat >>conftest.$ac_ext <<_ACEOF | |
16661 | /* end confdefs.h. */ | |
48d4b120 | 16662 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16663 | which can conflict with char $ac_func (); below. |
16664 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16665 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
16666 | #ifdef __STDC__ |
16667 | # include <limits.h> | |
16668 | #else | |
16669 | # include <assert.h> | |
16670 | #endif | |
48d4b120 | 16671 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16672 | #ifdef __cplusplus |
16673 | extern "C" | |
19650fd6 | 16674 | { |
503d2be0 | 16675 | #endif |
48d4b120 | 16676 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16677 | builtin and then its argument prototype would still apply. */ |
16678 | char $ac_func (); | |
48d4b120 DL |
16679 | /* The GNU C library defines this for functions which it implements |
16680 | to always fail with ENOSYS. Some functions are actually named | |
16681 | something starting with __ and the normal name is an alias. */ | |
16682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16683 | choke me | |
16684 | #else | |
19650fd6 AS |
16685 | char (*f) () = $ac_func; |
16686 | #endif | |
16687 | #ifdef __cplusplus | |
16688 | } | |
cd958eb3 MB |
16689 | #endif |
16690 | ||
19650fd6 AS |
16691 | int |
16692 | main () | |
16693 | { | |
16694 | return f != $ac_func; | |
503d2be0 AS |
16695 | ; |
16696 | return 0; | |
16697 | } | |
16698 | _ACEOF | |
16699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
16701 | (eval $ac_link) 2>&5 |
16702 | ac_status=$? | |
c0d27fcc | 16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16704 | (exit $ac_status); } && |
793fa0d7 | 16705 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 16706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16707 | (eval $ac_try) 2>&5 |
16708 | ac_status=$? | |
c0d27fcc | 16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16710 | (exit $ac_status); }; }; then |
16711 | eval "$as_ac_var=yes" | |
16712 | else | |
16713 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16714 | sed 's/^/| /' conftest.$ac_ext >&5 |
16715 | ||
503d2be0 AS |
16716 | eval "$as_ac_var=no" |
16717 | fi | |
16718 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16719 | fi | |
c0d27fcc | 16720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16721 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16722 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16723 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16724 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16725 | _ACEOF |
48d4b120 | 16726 | |
48d4b120 DL |
16727 | fi |
16728 | done | |
16729 | ||
b936fae4 | 16730 | if test $ac_cv_func_gettimeofday = yes; then |
c0d27fcc | 16731 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
503d2be0 AS |
16732 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
16733 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
16734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 16735 | else |
503d2be0 | 16736 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 16737 | #line $LINENO "configure" |
19650fd6 AS |
16738 | /* confdefs.h. */ |
16739 | _ACEOF | |
16740 | cat confdefs.h >>conftest.$ac_ext | |
16741 | cat >>conftest.$ac_ext <<_ACEOF | |
16742 | /* end confdefs.h. */ | |
ba4481b5 | 16743 | |
a3f08d9e DL |
16744 | #ifdef TIME_WITH_SYS_TIME |
16745 | #include <sys/time.h> | |
16746 | #include <time.h> | |
16747 | #else | |
16748 | #ifdef HAVE_SYS_TIME_H | |
16749 | #include <sys/time.h> | |
16750 | #else | |
16751 | #include <time.h> | |
16752 | #endif | |
16753 | #endif | |
503d2be0 AS |
16754 | int |
16755 | main () | |
16756 | { | |
a3f08d9e | 16757 | struct timeval time; |
b936fae4 | 16758 | gettimeofday (&time, 0); |
503d2be0 AS |
16759 | ; |
16760 | return 0; | |
16761 | } | |
16762 | _ACEOF | |
16763 | rm -f conftest.$ac_objext | |
c0d27fcc | 16764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
16765 | (eval $ac_compile) 2>&5 |
16766 | ac_status=$? | |
c0d27fcc | 16767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16768 | (exit $ac_status); } && |
793fa0d7 | 16769 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 16770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16771 | (eval $ac_try) 2>&5 |
16772 | ac_status=$? | |
c0d27fcc | 16773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16774 | (exit $ac_status); }; }; then |
ba4481b5 DL |
16775 | emacs_cv_gettimeofday_two_arguments=yes |
16776 | else | |
503d2be0 | 16777 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
16778 | sed 's/^/| /' conftest.$ac_ext >&5 |
16779 | ||
503d2be0 | 16780 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 16781 | fi |
503d2be0 | 16782 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 16783 | fi |
c0d27fcc | 16784 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
503d2be0 | 16785 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
b936fae4 AS |
16786 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
16787 | ||
c0d27fcc | 16788 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 16789 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 16790 | _ACEOF |
ba4481b5 | 16791 | |
b936fae4 | 16792 | fi |
ba4481b5 DL |
16793 | fi |
16794 | fi | |
16795 | ||
973a76b1 DL |
16796 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. |
16797 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 | |
16798 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 | |
16799 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
16800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16801 | else | |
16802 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 16803 | #line $LINENO "configure" |
19650fd6 AS |
16804 | /* confdefs.h. */ |
16805 | _ACEOF | |
16806 | cat confdefs.h >>conftest.$ac_ext | |
16807 | cat >>conftest.$ac_ext <<_ACEOF | |
16808 | /* end confdefs.h. */ | |
973a76b1 DL |
16809 | #include <sys/types.h> |
16810 | #include <$ac_cv_struct_tm> | |
16811 | ||
16812 | ||
16813 | int | |
16814 | main () | |
16815 | { | |
16816 | static struct tm ac_aggr; | |
16817 | if (ac_aggr.tm_zone) | |
16818 | return 0; | |
16819 | ; | |
16820 | return 0; | |
16821 | } | |
16822 | _ACEOF | |
16823 | rm -f conftest.$ac_objext | |
16824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16825 | (eval $ac_compile) 2>&5 | |
16826 | ac_status=$? | |
16827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16828 | (exit $ac_status); } && | |
793fa0d7 | 16829 | { ac_try='test -s conftest.$ac_objext' |
973a76b1 DL |
16830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16831 | (eval $ac_try) 2>&5 | |
16832 | ac_status=$? | |
16833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16834 | (exit $ac_status); }; }; then | |
16835 | ac_cv_member_struct_tm_tm_zone=yes | |
16836 | else | |
16837 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16838 | sed 's/^/| /' conftest.$ac_ext >&5 |
16839 | ||
973a76b1 | 16840 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 16841 | #line $LINENO "configure" |
19650fd6 AS |
16842 | /* confdefs.h. */ |
16843 | _ACEOF | |
16844 | cat confdefs.h >>conftest.$ac_ext | |
16845 | cat >>conftest.$ac_ext <<_ACEOF | |
16846 | /* end confdefs.h. */ | |
973a76b1 DL |
16847 | #include <sys/types.h> |
16848 | #include <$ac_cv_struct_tm> | |
16849 | ||
16850 | ||
16851 | int | |
16852 | main () | |
16853 | { | |
16854 | static struct tm ac_aggr; | |
16855 | if (sizeof ac_aggr.tm_zone) | |
16856 | return 0; | |
16857 | ; | |
16858 | return 0; | |
16859 | } | |
16860 | _ACEOF | |
16861 | rm -f conftest.$ac_objext | |
16862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16863 | (eval $ac_compile) 2>&5 | |
16864 | ac_status=$? | |
16865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16866 | (exit $ac_status); } && | |
793fa0d7 | 16867 | { ac_try='test -s conftest.$ac_objext' |
973a76b1 DL |
16868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16869 | (eval $ac_try) 2>&5 | |
16870 | ac_status=$? | |
16871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16872 | (exit $ac_status); }; }; then | |
16873 | ac_cv_member_struct_tm_tm_zone=yes | |
16874 | else | |
16875 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16876 | sed 's/^/| /' conftest.$ac_ext >&5 |
16877 | ||
973a76b1 DL |
16878 | ac_cv_member_struct_tm_tm_zone=no |
16879 | fi | |
16880 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16881 | fi | |
16882 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16883 | fi | |
16884 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
16885 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 | |
16886 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
16887 | ||
16888 | cat >>confdefs.h <<_ACEOF | |
16889 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
16890 | _ACEOF | |
16891 | ||
16892 | ||
16893 | fi | |
16894 | ||
16895 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
16896 | ||
16897 | cat >>confdefs.h <<\_ACEOF | |
16898 | #define HAVE_TM_ZONE 1 | |
16899 | _ACEOF | |
16900 | ||
16901 | else | |
16902 | echo "$as_me:$LINENO: checking for tzname" >&5 | |
16903 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
16904 | if test "${ac_cv_var_tzname+set}" = set; then | |
16905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16906 | else | |
16907 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 16908 | #line $LINENO "configure" |
19650fd6 AS |
16909 | /* confdefs.h. */ |
16910 | _ACEOF | |
16911 | cat confdefs.h >>conftest.$ac_ext | |
16912 | cat >>conftest.$ac_ext <<_ACEOF | |
16913 | /* end confdefs.h. */ | |
973a76b1 DL |
16914 | #include <time.h> |
16915 | #ifndef tzname /* For SGI. */ | |
16916 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
16917 | #endif | |
16918 | ||
16919 | int | |
16920 | main () | |
16921 | { | |
16922 | atoi(*tzname); | |
16923 | ; | |
16924 | return 0; | |
16925 | } | |
16926 | _ACEOF | |
16927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16929 | (eval $ac_link) 2>&5 | |
16930 | ac_status=$? | |
16931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16932 | (exit $ac_status); } && | |
793fa0d7 | 16933 | { ac_try='test -s conftest$ac_exeext' |
973a76b1 DL |
16934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16935 | (eval $ac_try) 2>&5 | |
16936 | ac_status=$? | |
16937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16938 | (exit $ac_status); }; }; then | |
16939 | ac_cv_var_tzname=yes | |
16940 | else | |
16941 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16942 | sed 's/^/| /' conftest.$ac_ext >&5 |
16943 | ||
973a76b1 DL |
16944 | ac_cv_var_tzname=no |
16945 | fi | |
16946 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16947 | fi | |
16948 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
16949 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
16950 | if test $ac_cv_var_tzname = yes; then | |
16951 | ||
16952 | cat >>confdefs.h <<\_ACEOF | |
16953 | #define HAVE_TZNAME 1 | |
16954 | _ACEOF | |
16955 | ||
16956 | fi | |
16957 | fi | |
16958 | ||
16959 | ||
48d4b120 | 16960 | if test "$ac_cv_func_gettimeofday" = yes; then |
c0d27fcc | 16961 | echo "$as_me:$LINENO: checking for struct timezone" >&5 |
503d2be0 AS |
16962 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
16963 | if test "${emacs_cv_struct_timezone+set}" = set; then | |
16964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 16965 | else |
503d2be0 | 16966 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 16967 | #line $LINENO "configure" |
19650fd6 AS |
16968 | /* confdefs.h. */ |
16969 | _ACEOF | |
16970 | cat confdefs.h >>conftest.$ac_ext | |
16971 | cat >>conftest.$ac_ext <<_ACEOF | |
16972 | /* end confdefs.h. */ | |
48d4b120 | 16973 | #include <sys/time.h> |
503d2be0 AS |
16974 | int |
16975 | main () | |
16976 | { | |
48d4b120 | 16977 | struct timezone tz; |
503d2be0 AS |
16978 | ; |
16979 | return 0; | |
16980 | } | |
16981 | _ACEOF | |
16982 | rm -f conftest.$ac_objext | |
c0d27fcc | 16983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
16984 | (eval $ac_compile) 2>&5 |
16985 | ac_status=$? | |
c0d27fcc | 16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16987 | (exit $ac_status); } && |
793fa0d7 | 16988 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 16989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16990 | (eval $ac_try) 2>&5 |
16991 | ac_status=$? | |
c0d27fcc | 16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16993 | (exit $ac_status); }; }; then |
48d4b120 DL |
16994 | if test "$cross_compiling" = yes; then |
16995 | emacs_cv_struct_timezone=yes | |
16996 | else | |
503d2be0 | 16997 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 16998 | #line $LINENO "configure" |
19650fd6 AS |
16999 | /* confdefs.h. */ |
17000 | _ACEOF | |
17001 | cat confdefs.h >>conftest.$ac_ext | |
17002 | cat >>conftest.$ac_ext <<_ACEOF | |
17003 | /* end confdefs.h. */ | |
48d4b120 DL |
17004 | |
17005 | #ifdef TIME_WITH_SYS_TIME | |
17006 | #include <sys/time.h> | |
17007 | #include <time.h> | |
17008 | #else | |
17009 | #ifdef HAVE_SYS_TIME_H | |
17010 | #include <sys/time.h> | |
17011 | #else | |
17012 | #include <time.h> | |
17013 | #endif | |
17014 | #endif | |
17015 | main () { | |
17016 | struct timeval time; | |
17017 | struct timezone dummy; | |
17018 | exit (gettimeofday (&time, &dummy)); | |
17019 | } | |
503d2be0 AS |
17020 | _ACEOF |
17021 | rm -f conftest$ac_exeext | |
c0d27fcc | 17022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
17023 | (eval $ac_link) 2>&5 |
17024 | ac_status=$? | |
c0d27fcc | 17025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17026 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 17027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17028 | (eval $ac_try) 2>&5 |
17029 | ac_status=$? | |
c0d27fcc | 17030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17031 | (exit $ac_status); }; }; then |
48d4b120 DL |
17032 | emacs_cv_struct_timezone=yes |
17033 | else | |
503d2be0 AS |
17034 | echo "$as_me: program exited with status $ac_status" >&5 |
17035 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17036 | sed 's/^/| /' conftest.$ac_ext >&5 |
17037 | ||
c0d27fcc | 17038 | ( exit $ac_status ) |
503d2be0 | 17039 | emacs_cv_struct_timezone=no |
48d4b120 | 17040 | fi |
6bae0ccf | 17041 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 17042 | fi |
48d4b120 | 17043 | else |
503d2be0 | 17044 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17045 | sed 's/^/| /' conftest.$ac_ext >&5 |
17046 | ||
503d2be0 | 17047 | emacs_cv_struct_timezone=no |
48d4b120 | 17048 | fi |
503d2be0 | 17049 | rm -f conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 17050 | fi |
c0d27fcc | 17051 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 |
503d2be0 | 17052 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
48d4b120 DL |
17053 | fi |
17054 | ||
ba4481b5 | 17055 | ok_so_far=yes |
c0d27fcc | 17056 | echo "$as_me:$LINENO: checking for socket" >&5 |
503d2be0 AS |
17057 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
17058 | if test "${ac_cv_func_socket+set}" = set; then | |
17059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 17060 | else |
503d2be0 | 17061 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 17062 | #line $LINENO "configure" |
19650fd6 AS |
17063 | /* confdefs.h. */ |
17064 | _ACEOF | |
17065 | cat confdefs.h >>conftest.$ac_ext | |
17066 | cat >>conftest.$ac_ext <<_ACEOF | |
17067 | /* end confdefs.h. */ | |
ba4481b5 | 17068 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17069 | which can conflict with char socket (); below. |
17070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17071 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
17072 | #ifdef __STDC__ |
17073 | # include <limits.h> | |
17074 | #else | |
17075 | # include <assert.h> | |
17076 | #endif | |
ba4481b5 | 17077 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17078 | #ifdef __cplusplus |
17079 | extern "C" | |
19650fd6 | 17080 | { |
503d2be0 | 17081 | #endif |
ba4481b5 | 17082 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17083 | builtin and then its argument prototype would still apply. */ |
17084 | char socket (); | |
ba4481b5 DL |
17085 | /* The GNU C library defines this for functions which it implements |
17086 | to always fail with ENOSYS. Some functions are actually named | |
17087 | something starting with __ and the normal name is an alias. */ | |
17088 | #if defined (__stub_socket) || defined (__stub___socket) | |
17089 | choke me | |
17090 | #else | |
19650fd6 AS |
17091 | char (*f) () = socket; |
17092 | #endif | |
17093 | #ifdef __cplusplus | |
17094 | } | |
cd958eb3 MB |
17095 | #endif |
17096 | ||
19650fd6 AS |
17097 | int |
17098 | main () | |
17099 | { | |
17100 | return f != socket; | |
503d2be0 AS |
17101 | ; |
17102 | return 0; | |
17103 | } | |
17104 | _ACEOF | |
17105 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
17107 | (eval $ac_link) 2>&5 |
17108 | ac_status=$? | |
c0d27fcc | 17109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17110 | (exit $ac_status); } && |
793fa0d7 | 17111 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 17112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17113 | (eval $ac_try) 2>&5 |
17114 | ac_status=$? | |
c0d27fcc | 17115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17116 | (exit $ac_status); }; }; then |
17117 | ac_cv_func_socket=yes | |
17118 | else | |
17119 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17120 | sed 's/^/| /' conftest.$ac_ext >&5 |
17121 | ||
503d2be0 AS |
17122 | ac_cv_func_socket=no |
17123 | fi | |
17124 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17125 | fi | |
c0d27fcc | 17126 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
503d2be0 AS |
17127 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
17128 | if test $ac_cv_func_socket = yes; then | |
ba4481b5 DL |
17129 | : |
17130 | else | |
503d2be0 | 17131 | ok_so_far=no |
ba4481b5 DL |
17132 | fi |
17133 | ||
17134 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
17135 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
17136 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
503d2be0 AS |
17137 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
17138 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
17139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17140 | fi |
17141 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
17142 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 | |
98418dba | 17143 | else |
c0d27fcc MR |
17144 | # Is the header compilable? |
17145 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
17146 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 | |
17147 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 17148 | #line $LINENO "configure" |
19650fd6 AS |
17149 | /* confdefs.h. */ |
17150 | _ACEOF | |
17151 | cat confdefs.h >>conftest.$ac_ext | |
17152 | cat >>conftest.$ac_ext <<_ACEOF | |
17153 | /* end confdefs.h. */ | |
c0d27fcc MR |
17154 | $ac_includes_default |
17155 | #include <netinet/in.h> | |
17156 | _ACEOF | |
17157 | rm -f conftest.$ac_objext | |
17158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17159 | (eval $ac_compile) 2>&5 | |
17160 | ac_status=$? | |
17161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17162 | (exit $ac_status); } && | |
793fa0d7 | 17163 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
17164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17165 | (eval $ac_try) 2>&5 | |
17166 | ac_status=$? | |
17167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17168 | (exit $ac_status); }; }; then | |
17169 | ac_header_compiler=yes | |
17170 | else | |
17171 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17172 | sed 's/^/| /' conftest.$ac_ext >&5 |
17173 | ||
c0d27fcc MR |
17174 | ac_header_compiler=no |
17175 | fi | |
17176 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17177 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17178 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17179 | ||
17180 | # Is the header present? | |
17181 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
17182 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 | |
17183 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 17184 | #line $LINENO "configure" |
19650fd6 AS |
17185 | /* confdefs.h. */ |
17186 | _ACEOF | |
17187 | cat confdefs.h >>conftest.$ac_ext | |
17188 | cat >>conftest.$ac_ext <<_ACEOF | |
17189 | /* end confdefs.h. */ | |
ba4481b5 | 17190 | #include <netinet/in.h> |
503d2be0 | 17191 | _ACEOF |
c0d27fcc | 17192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
17193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17194 | ac_status=$? | |
6bae0ccf | 17195 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17196 | rm -f conftest.er1 |
17197 | cat conftest.err >&5 | |
c0d27fcc | 17198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17199 | (exit $ac_status); } >/dev/null; then |
17200 | if test -s conftest.err; then | |
17201 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17202 | else | |
17203 | ac_cpp_err= | |
17204 | fi | |
17205 | else | |
17206 | ac_cpp_err=yes | |
17207 | fi | |
17208 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 17209 | ac_header_preproc=yes |
ba4481b5 | 17210 | else |
503d2be0 | 17211 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17212 | sed 's/^/| /' conftest.$ac_ext >&5 |
17213 | ||
c0d27fcc | 17214 | ac_header_preproc=no |
ba4481b5 | 17215 | fi |
503d2be0 | 17216 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
17217 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17218 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17219 | ||
17220 | # So? What about this header? | |
17221 | case $ac_header_compiler:$ac_header_preproc in | |
17222 | yes:no ) | |
17223 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17224 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
17225 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
17226 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} | |
17227 | ( | |
17228 | cat <<\_ASBOX | |
17229 | ## ------------------------------------ ## | |
17230 | ## Report this to bug-autoconf@gnu.org. ## | |
17231 | ## ------------------------------------ ## | |
17232 | _ASBOX | |
17233 | ) | | |
17234 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 17235 | ;; |
c0d27fcc MR |
17236 | no:yes ) |
17237 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 | |
17238 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
17239 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
17240 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 17241 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17242 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
17243 | ( |
17244 | cat <<\_ASBOX | |
793fa0d7 DL |
17245 | ## ------------------------------------ ## |
17246 | ## Report this to bug-autoconf@gnu.org. ## | |
17247 | ## ------------------------------------ ## | |
19650fd6 AS |
17248 | _ASBOX |
17249 | ) | | |
17250 | sed "s/^/$as_me: WARNING: /" >&2 | |
17251 | ;; | |
c0d27fcc MR |
17252 | esac |
17253 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
17254 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 | |
17255 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
17256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17257 | else | |
17258 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 17259 | fi |
c0d27fcc | 17260 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
503d2be0 | 17261 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
c0d27fcc MR |
17262 | |
17263 | fi | |
503d2be0 | 17264 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
17265 | : |
17266 | else | |
503d2be0 | 17267 | ok_so_far=no |
ba4481b5 DL |
17268 | fi |
17269 | ||
c0d27fcc | 17270 | |
ba4481b5 DL |
17271 | fi |
17272 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
17273 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
17274 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
503d2be0 AS |
17275 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
17276 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
17277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17278 | fi |
17279 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
17280 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 | |
98418dba | 17281 | else |
c0d27fcc MR |
17282 | # Is the header compilable? |
17283 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
17284 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 | |
17285 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 17286 | #line $LINENO "configure" |
19650fd6 AS |
17287 | /* confdefs.h. */ |
17288 | _ACEOF | |
17289 | cat confdefs.h >>conftest.$ac_ext | |
17290 | cat >>conftest.$ac_ext <<_ACEOF | |
17291 | /* end confdefs.h. */ | |
c0d27fcc MR |
17292 | $ac_includes_default |
17293 | #include <arpa/inet.h> | |
17294 | _ACEOF | |
17295 | rm -f conftest.$ac_objext | |
17296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17297 | (eval $ac_compile) 2>&5 | |
17298 | ac_status=$? | |
17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17300 | (exit $ac_status); } && | |
793fa0d7 | 17301 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
17302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17303 | (eval $ac_try) 2>&5 | |
17304 | ac_status=$? | |
17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17306 | (exit $ac_status); }; }; then | |
17307 | ac_header_compiler=yes | |
17308 | else | |
17309 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17310 | sed 's/^/| /' conftest.$ac_ext >&5 |
17311 | ||
c0d27fcc MR |
17312 | ac_header_compiler=no |
17313 | fi | |
17314 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17315 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17316 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17317 | ||
17318 | # Is the header present? | |
17319 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
17320 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 | |
17321 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 17322 | #line $LINENO "configure" |
19650fd6 AS |
17323 | /* confdefs.h. */ |
17324 | _ACEOF | |
17325 | cat confdefs.h >>conftest.$ac_ext | |
17326 | cat >>conftest.$ac_ext <<_ACEOF | |
17327 | /* end confdefs.h. */ | |
ba4481b5 | 17328 | #include <arpa/inet.h> |
503d2be0 | 17329 | _ACEOF |
c0d27fcc | 17330 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
17331 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17332 | ac_status=$? | |
6bae0ccf | 17333 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17334 | rm -f conftest.er1 |
17335 | cat conftest.err >&5 | |
c0d27fcc | 17336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17337 | (exit $ac_status); } >/dev/null; then |
17338 | if test -s conftest.err; then | |
17339 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17340 | else | |
17341 | ac_cpp_err= | |
17342 | fi | |
17343 | else | |
17344 | ac_cpp_err=yes | |
17345 | fi | |
17346 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 17347 | ac_header_preproc=yes |
ba4481b5 | 17348 | else |
503d2be0 | 17349 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17350 | sed 's/^/| /' conftest.$ac_ext >&5 |
17351 | ||
c0d27fcc | 17352 | ac_header_preproc=no |
ba4481b5 | 17353 | fi |
503d2be0 | 17354 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
17355 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17356 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17357 | ||
17358 | # So? What about this header? | |
17359 | case $ac_header_compiler:$ac_header_preproc in | |
17360 | yes:no ) | |
17361 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17362 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
17363 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
17364 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} | |
17365 | ( | |
17366 | cat <<\_ASBOX | |
17367 | ## ------------------------------------ ## | |
17368 | ## Report this to bug-autoconf@gnu.org. ## | |
17369 | ## ------------------------------------ ## | |
17370 | _ASBOX | |
17371 | ) | | |
17372 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 17373 | ;; |
c0d27fcc MR |
17374 | no:yes ) |
17375 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 | |
17376 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
17377 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
17378 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 17379 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17380 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
17381 | ( |
17382 | cat <<\_ASBOX | |
793fa0d7 DL |
17383 | ## ------------------------------------ ## |
17384 | ## Report this to bug-autoconf@gnu.org. ## | |
17385 | ## ------------------------------------ ## | |
19650fd6 AS |
17386 | _ASBOX |
17387 | ) | | |
17388 | sed "s/^/$as_me: WARNING: /" >&2 | |
17389 | ;; | |
c0d27fcc MR |
17390 | esac |
17391 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
17392 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 | |
17393 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
17394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17395 | else | |
17396 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 17397 | fi |
c0d27fcc | 17398 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
503d2be0 | 17399 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
c0d27fcc MR |
17400 | |
17401 | fi | |
503d2be0 | 17402 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
17403 | : |
17404 | else | |
503d2be0 | 17405 | ok_so_far=no |
ba4481b5 DL |
17406 | fi |
17407 | ||
c0d27fcc | 17408 | |
ba4481b5 DL |
17409 | fi |
17410 | if test $ok_so_far = yes; then | |
b936fae4 | 17411 | |
c0d27fcc | 17412 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 17413 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 17414 | _ACEOF |
ba4481b5 DL |
17415 | |
17416 | fi | |
17417 | ||
17418 | if test -f /usr/lpp/X11/bin/smt.exp; then | |
b936fae4 | 17419 | |
c0d27fcc | 17420 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 17421 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 17422 | _ACEOF |
ba4481b5 DL |
17423 | |
17424 | fi | |
17425 | ||
c0d27fcc | 17426 | echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
503d2be0 | 17427 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
3d9fec71 | 17428 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
c0d27fcc | 17429 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 17430 | echo "${ECHO_T}yes" >&6 |
b936fae4 | 17431 | |
c0d27fcc | 17432 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 17433 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 17434 | _ACEOF |
3d9fec71 DL |
17435 | |
17436 | else | |
c0d27fcc | 17437 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 17438 | echo "${ECHO_T}no" >&6 |
3d9fec71 DL |
17439 | fi |
17440 | ||
c0d27fcc | 17441 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
503d2be0 AS |
17442 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
17443 | if test "${ac_cv_type_pid_t+set}" = set; then | |
17444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 17445 | else |
503d2be0 | 17446 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 17447 | #line $LINENO "configure" |
19650fd6 AS |
17448 | /* confdefs.h. */ |
17449 | _ACEOF | |
17450 | cat confdefs.h >>conftest.$ac_ext | |
17451 | cat >>conftest.$ac_ext <<_ACEOF | |
17452 | /* end confdefs.h. */ | |
503d2be0 AS |
17453 | $ac_includes_default |
17454 | int | |
17455 | main () | |
17456 | { | |
17457 | if ((pid_t *) 0) | |
17458 | return 0; | |
17459 | if (sizeof (pid_t)) | |
17460 | return 0; | |
17461 | ; | |
17462 | return 0; | |
17463 | } | |
17464 | _ACEOF | |
17465 | rm -f conftest.$ac_objext | |
c0d27fcc | 17466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
17467 | (eval $ac_compile) 2>&5 |
17468 | ac_status=$? | |
c0d27fcc | 17469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17470 | (exit $ac_status); } && |
793fa0d7 | 17471 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 17472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17473 | (eval $ac_try) 2>&5 |
17474 | ac_status=$? | |
c0d27fcc | 17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17476 | (exit $ac_status); }; }; then |
647847ea DL |
17477 | ac_cv_type_pid_t=yes |
17478 | else | |
503d2be0 | 17479 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17480 | sed 's/^/| /' conftest.$ac_ext >&5 |
17481 | ||
503d2be0 | 17482 | ac_cv_type_pid_t=no |
647847ea | 17483 | fi |
503d2be0 | 17484 | rm -f conftest.$ac_objext conftest.$ac_ext |
647847ea | 17485 | fi |
c0d27fcc | 17486 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
503d2be0 AS |
17487 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
17488 | if test $ac_cv_type_pid_t = yes; then | |
17489 | : | |
17490 | else | |
17491 | ||
c0d27fcc | 17492 | cat >>confdefs.h <<_ACEOF |
647847ea | 17493 | #define pid_t int |
c0d27fcc | 17494 | _ACEOF |
647847ea DL |
17495 | |
17496 | fi | |
17497 | ||
c0d27fcc MR |
17498 | |
17499 | ||
503d2be0 AS |
17500 | for ac_header in unistd.h vfork.h |
17501 | do | |
17502 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
17503 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17504 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
17505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17506 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
17508 | fi |
17509 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17510 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 17511 | else |
c0d27fcc MR |
17512 | # Is the header compilable? |
17513 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17514 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17515 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 17516 | #line $LINENO "configure" |
19650fd6 AS |
17517 | /* confdefs.h. */ |
17518 | _ACEOF | |
17519 | cat confdefs.h >>conftest.$ac_ext | |
17520 | cat >>conftest.$ac_ext <<_ACEOF | |
17521 | /* end confdefs.h. */ | |
c0d27fcc MR |
17522 | $ac_includes_default |
17523 | #include <$ac_header> | |
17524 | _ACEOF | |
17525 | rm -f conftest.$ac_objext | |
17526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17527 | (eval $ac_compile) 2>&5 | |
17528 | ac_status=$? | |
17529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17530 | (exit $ac_status); } && | |
793fa0d7 | 17531 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc MR |
17532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17533 | (eval $ac_try) 2>&5 | |
17534 | ac_status=$? | |
17535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17536 | (exit $ac_status); }; }; then | |
17537 | ac_header_compiler=yes | |
17538 | else | |
17539 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17540 | sed 's/^/| /' conftest.$ac_ext >&5 |
17541 | ||
c0d27fcc MR |
17542 | ac_header_compiler=no |
17543 | fi | |
17544 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17545 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17546 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17547 | ||
17548 | # Is the header present? | |
17549 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17550 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17551 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 17552 | #line $LINENO "configure" |
19650fd6 AS |
17553 | /* confdefs.h. */ |
17554 | _ACEOF | |
17555 | cat confdefs.h >>conftest.$ac_ext | |
17556 | cat >>conftest.$ac_ext <<_ACEOF | |
17557 | /* end confdefs.h. */ | |
503d2be0 AS |
17558 | #include <$ac_header> |
17559 | _ACEOF | |
c0d27fcc | 17560 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
17561 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17562 | ac_status=$? | |
6bae0ccf | 17563 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17564 | rm -f conftest.er1 |
17565 | cat conftest.err >&5 | |
c0d27fcc | 17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17567 | (exit $ac_status); } >/dev/null; then |
17568 | if test -s conftest.err; then | |
17569 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17570 | else | |
17571 | ac_cpp_err= | |
17572 | fi | |
647847ea | 17573 | else |
503d2be0 AS |
17574 | ac_cpp_err=yes |
17575 | fi | |
17576 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 17577 | ac_header_preproc=yes |
647847ea | 17578 | else |
503d2be0 | 17579 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17580 | sed 's/^/| /' conftest.$ac_ext >&5 |
17581 | ||
c0d27fcc | 17582 | ac_header_preproc=no |
647847ea | 17583 | fi |
503d2be0 | 17584 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
17585 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17586 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17587 | ||
17588 | # So? What about this header? | |
17589 | case $ac_header_compiler:$ac_header_preproc in | |
17590 | yes:no ) | |
17591 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17592 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
793fa0d7 DL |
17593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17594 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17595 | ( | |
17596 | cat <<\_ASBOX | |
17597 | ## ------------------------------------ ## | |
17598 | ## Report this to bug-autoconf@gnu.org. ## | |
17599 | ## ------------------------------------ ## | |
17600 | _ASBOX | |
17601 | ) | | |
17602 | sed "s/^/$as_me: WARNING: /" >&2 | |
19650fd6 | 17603 | ;; |
c0d27fcc MR |
17604 | no:yes ) |
17605 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17606 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
793fa0d7 DL |
17607 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17608 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
c0d27fcc | 17609 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17610 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19650fd6 AS |
17611 | ( |
17612 | cat <<\_ASBOX | |
793fa0d7 DL |
17613 | ## ------------------------------------ ## |
17614 | ## Report this to bug-autoconf@gnu.org. ## | |
17615 | ## ------------------------------------ ## | |
19650fd6 AS |
17616 | _ASBOX |
17617 | ) | | |
17618 | sed "s/^/$as_me: WARNING: /" >&2 | |
17619 | ;; | |
c0d27fcc MR |
17620 | esac |
17621 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17623 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17625 | else | |
793fa0d7 | 17626 | eval "$as_ac_Header=$ac_header_preproc" |
647847ea | 17627 | fi |
c0d27fcc | 17628 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 17629 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
17630 | |
17631 | fi | |
503d2be0 | 17632 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 17633 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17634 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 17635 | _ACEOF |
647847ea | 17636 | |
73b77ee5 | 17637 | fi |
c0d27fcc | 17638 | |
503d2be0 | 17639 | done |
73b77ee5 | 17640 | |
c0d27fcc MR |
17641 | |
17642 | ||
503d2be0 AS |
17643 | for ac_func in fork vfork |
17644 | do | |
17645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 17646 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
17647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
17648 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 17650 | else |
503d2be0 | 17651 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 17652 | #line $LINENO "configure" |
19650fd6 AS |
17653 | /* confdefs.h. */ |
17654 | _ACEOF | |
17655 | cat confdefs.h >>conftest.$ac_ext | |
17656 | cat >>conftest.$ac_ext <<_ACEOF | |
17657 | /* end confdefs.h. */ | |
fa0b693c | 17658 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17659 | which can conflict with char $ac_func (); below. |
17660 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17661 | <limits.h> exists even on freestanding compilers. */ | |
19650fd6 AS |
17662 | #ifdef __STDC__ |
17663 | # include <limits.h> | |
17664 | #else | |
17665 | # include <assert.h> | |
17666 | #endif | |
fa0b693c | 17667 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17668 | #ifdef __cplusplus |
17669 | extern "C" | |
19650fd6 | 17670 | { |
503d2be0 | 17671 | #endif |
fa0b693c | 17672 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17673 | builtin and then its argument prototype would still apply. */ |
17674 | char $ac_func (); | |
fa0b693c GM |
17675 | /* The GNU C library defines this for functions which it implements |
17676 | to always fail with ENOSYS. Some functions are actually named | |
17677 | something starting with __ and the normal name is an alias. */ | |
503d2be0 | 17678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
fa0b693c GM |
17679 | choke me |
17680 | #else | |
19650fd6 AS |
17681 | char (*f) () = $ac_func; |
17682 | #endif | |
17683 | #ifdef __cplusplus | |
17684 | } | |
fa0b693c GM |
17685 | #endif |
17686 | ||
19650fd6 AS |
17687 | int |
17688 | main () | |
17689 | { | |
17690 | return f != $ac_func; | |
503d2be0 AS |
17691 | ; |
17692 | return 0; | |
17693 | } | |
17694 | _ACEOF | |
17695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
17697 | (eval $ac_link) 2>&5 |
17698 | ac_status=$? | |
c0d27fcc | 17699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17700 | (exit $ac_status); } && |
793fa0d7 | 17701 | { ac_try='test -s conftest$ac_exeext' |
c0d27fcc | 17702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17703 | (eval $ac_try) 2>&5 |
17704 | ac_status=$? | |
c0d27fcc | 17705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17706 | (exit $ac_status); }; }; then |
17707 | eval "$as_ac_var=yes" | |
17708 | else | |
17709 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17710 | sed 's/^/| /' conftest.$ac_ext >&5 |
17711 | ||
503d2be0 AS |
17712 | eval "$as_ac_var=no" |
17713 | fi | |
17714 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17715 | fi | |
c0d27fcc | 17716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
17717 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
17718 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 17719 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17720 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 17721 | _ACEOF |
503d2be0 | 17722 | |
fa0b693c | 17723 | fi |
503d2be0 | 17724 | done |
fa0b693c | 17725 | |
503d2be0 | 17726 | if test "x$ac_cv_func_fork" = xyes; then |
c0d27fcc | 17727 | echo "$as_me:$LINENO: checking for working fork" >&5 |
503d2be0 AS |
17728 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
17729 | if test "${ac_cv_func_fork_works+set}" = set; then | |
17730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 17731 | else |
503d2be0 AS |
17732 | if test "$cross_compiling" = yes; then |
17733 | ac_cv_func_fork_works=cross | |
17734 | else | |
17735 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 17736 | /* By Ruediger Kuhlmann. */ |
503d2be0 AS |
17737 | #include <sys/types.h> |
17738 | #if HAVE_UNISTD_H | |
17739 | # include <unistd.h> | |
17740 | #endif | |
17741 | /* Some systems only have a dummy stub for fork() */ | |
17742 | int main () | |
17743 | { | |
793fa0d7 DL |
17744 | if (fork() < 0) |
17745 | exit (1); | |
17746 | exit (0); | |
503d2be0 AS |
17747 | } |
17748 | _ACEOF | |
17749 | rm -f conftest$ac_exeext | |
c0d27fcc | 17750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
17751 | (eval $ac_link) 2>&5 |
17752 | ac_status=$? | |
c0d27fcc | 17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 17755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17756 | (eval $ac_try) 2>&5 |
17757 | ac_status=$? | |
c0d27fcc | 17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17759 | (exit $ac_status); }; }; then |
17760 | ac_cv_func_fork_works=yes | |
17761 | else | |
17762 | echo "$as_me: program exited with status $ac_status" >&5 | |
17763 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17764 | sed 's/^/| /' conftest.$ac_ext >&5 |
17765 | ||
c0d27fcc | 17766 | ( exit $ac_status ) |
503d2be0 AS |
17767 | ac_cv_func_fork_works=no |
17768 | fi | |
6bae0ccf | 17769 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
17770 | fi |
17771 | fi | |
c0d27fcc | 17772 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
503d2be0 AS |
17773 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
17774 | ||
6bae0ccf DL |
17775 | else |
17776 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
17777 | fi |
17778 | if test "x$ac_cv_func_fork_works" = xcross; then | |
17779 | case $host in | |
17780 | *-*-amigaos* | *-*-msdosdjgpp*) | |
17781 | # Override, as these systems have only a dummy fork() stub | |
17782 | ac_cv_func_fork_works=no | |
17783 | ;; | |
17784 | *) | |
17785 | ac_cv_func_fork_works=yes | |
17786 | ;; | |
17787 | esac | |
c0d27fcc MR |
17788 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
17789 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 17790 | fi |
73b77ee5 | 17791 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 17792 | if test "x$ac_cv_func_vfork" = xyes; then |
c0d27fcc | 17793 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
503d2be0 AS |
17794 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
17795 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
17796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17797 | else | |
17798 | if test "$cross_compiling" = yes; then | |
17799 | ac_cv_func_vfork_works=cross | |
fa0b693c | 17800 | else |
503d2be0 | 17801 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 17802 | #line $LINENO "configure" |
19650fd6 AS |
17803 | /* confdefs.h. */ |
17804 | _ACEOF | |
17805 | cat confdefs.h >>conftest.$ac_ext | |
17806 | cat >>conftest.$ac_ext <<_ACEOF | |
17807 | /* end confdefs.h. */ | |
73b77ee5 GM |
17808 | /* Thanks to Paul Eggert for this test. */ |
17809 | #include <stdio.h> | |
19650fd6 | 17810 | #include <stdlib.h> |
fa0b693c | 17811 | #include <sys/types.h> |
73b77ee5 | 17812 | #include <sys/stat.h> |
19650fd6 | 17813 | #include <sys/wait.h> |
503d2be0 AS |
17814 | #if HAVE_UNISTD_H |
17815 | # include <unistd.h> | |
73b77ee5 | 17816 | #endif |
503d2be0 AS |
17817 | #if HAVE_VFORK_H |
17818 | # include <vfork.h> | |
73b77ee5 GM |
17819 | #endif |
17820 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
17821 | argument registers are propagated back to the parent. The compiler |
17822 | is told about this with #include <vfork.h>, but some compilers | |
17823 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
17824 | static variable whose address is put into a register that is | |
17825 | clobbered by the vfork. */ | |
19650fd6 | 17826 | static void |
fa0b693c | 17827 | #ifdef __cplusplus |
73b77ee5 | 17828 | sparc_address_test (int arg) |
503d2be0 | 17829 | # else |
73b77ee5 | 17830 | sparc_address_test (arg) int arg; |
fa0b693c | 17831 | #endif |
fa0b693c | 17832 | { |
73b77ee5 GM |
17833 | static pid_t child; |
17834 | if (!child) { | |
17835 | child = vfork (); | |
17836 | if (child < 0) { | |
17837 | perror ("vfork"); | |
17838 | _exit(2); | |
17839 | } | |
17840 | if (!child) { | |
17841 | arg = getpid(); | |
17842 | write(-1, "", 0); | |
17843 | _exit (arg); | |
17844 | } | |
17845 | } | |
17846 | } | |
503d2be0 AS |
17847 | |
17848 | int | |
17849 | main () | |
17850 | { | |
73b77ee5 GM |
17851 | pid_t parent = getpid (); |
17852 | pid_t child; | |
fa0b693c | 17853 | |
19650fd6 | 17854 | sparc_address_test (0); |
fa0b693c | 17855 | |
73b77ee5 | 17856 | child = vfork (); |
fa0b693c | 17857 | |
73b77ee5 | 17858 | if (child == 0) { |
503d2be0 AS |
17859 | /* Here is another test for sparc vfork register problems. This |
17860 | test uses lots of local variables, at least as many local | |
17861 | variables as main has allocated so far including compiler | |
17862 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
17863 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
17864 | reuse the register of parent for one of the local variables, | |
17865 | since it will think that parent can't possibly be used any more | |
17866 | in this routine. Assigning to the local variable will thus | |
17867 | munge parent in the parent process. */ | |
73b77ee5 GM |
17868 | pid_t |
17869 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
17870 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
17871 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
17872 | use the same hardware register for all 8 local variables. */ | |
17873 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
17874 | || p != p5 || p != p6 || p != p7) | |
17875 | _exit(1); | |
fa0b693c | 17876 | |
503d2be0 AS |
17877 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
17878 | from child file descriptors. If the child closes a descriptor | |
17879 | before it execs or exits, this munges the parent's descriptor | |
17880 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
17881 | _exit(close(fileno(stdout)) != 0); |
17882 | } else { | |
17883 | int status; | |
17884 | struct stat st; | |
17885 | ||
17886 | while (wait(&status) != child) | |
17887 | ; | |
17888 | exit( | |
17889 | /* Was there some problem with vforking? */ | |
17890 | child < 0 | |
17891 | ||
17892 | /* Did the child fail? (This shouldn't happen.) */ | |
17893 | || status | |
17894 | ||
17895 | /* Did the vfork/compiler bug occur? */ | |
17896 | || parent != getpid() | |
fa0b693c | 17897 | |
73b77ee5 GM |
17898 | /* Did the file descriptor bug occur? */ |
17899 | || fstat(fileno(stdout), &st) != 0 | |
17900 | ); | |
17901 | } | |
17902 | } | |
503d2be0 AS |
17903 | _ACEOF |
17904 | rm -f conftest$ac_exeext | |
c0d27fcc | 17905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
17906 | (eval $ac_link) 2>&5 |
17907 | ac_status=$? | |
c0d27fcc | 17908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17909 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 17910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17911 | (eval $ac_try) 2>&5 |
17912 | ac_status=$? | |
c0d27fcc | 17913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17914 | (exit $ac_status); }; }; then |
73b77ee5 | 17915 | ac_cv_func_vfork_works=yes |
fa0b693c | 17916 | else |
503d2be0 AS |
17917 | echo "$as_me: program exited with status $ac_status" >&5 |
17918 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17919 | sed 's/^/| /' conftest.$ac_ext >&5 |
17920 | ||
c0d27fcc | 17921 | ( exit $ac_status ) |
503d2be0 AS |
17922 | ac_cv_func_vfork_works=no |
17923 | fi | |
6bae0ccf | 17924 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 17925 | fi |
fa0b693c | 17926 | fi |
c0d27fcc | 17927 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
503d2be0 | 17928 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
fa0b693c | 17929 | |
503d2be0 AS |
17930 | fi; |
17931 | if test "x$ac_cv_func_fork_works" = xcross; then | |
17932 | ac_cv_func_vfork_works=ac_cv_func_vfork | |
c0d27fcc MR |
17933 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
17934 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
17935 | fi |
17936 | ||
503d2be0 AS |
17937 | if test "x$ac_cv_func_vfork_works" = xyes; then |
17938 | ||
c0d27fcc | 17939 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 17940 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 17941 | _ACEOF |
503d2be0 AS |
17942 | |
17943 | else | |
17944 | ||
c0d27fcc | 17945 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 17946 | #define vfork fork |
c0d27fcc | 17947 | _ACEOF |
fa0b693c GM |
17948 | |
17949 | fi | |
503d2be0 AS |
17950 | if test "x$ac_cv_func_fork_works" = xyes; then |
17951 | ||
c0d27fcc | 17952 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 17953 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 17954 | _ACEOF |
fa0b693c | 17955 | |
503d2be0 | 17956 | fi |
647847ea | 17957 | |
c0d27fcc | 17958 | |
6a3a24fa JD |
17959 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
17960 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
17961 | if test "${emacs_cv_langinfo_codeset+set}" = set; then | |
17962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17963 | else | |
17964 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 17965 | #line $LINENO "configure" |
19650fd6 AS |
17966 | /* confdefs.h. */ |
17967 | _ACEOF | |
17968 | cat confdefs.h >>conftest.$ac_ext | |
17969 | cat >>conftest.$ac_ext <<_ACEOF | |
17970 | /* end confdefs.h. */ | |
6a3a24fa JD |
17971 | #include <langinfo.h> |
17972 | int | |
17973 | main () | |
17974 | { | |
17975 | char* cs = nl_langinfo(CODESET); | |
17976 | ; | |
17977 | return 0; | |
17978 | } | |
17979 | _ACEOF | |
17980 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17982 | (eval $ac_link) 2>&5 | |
17983 | ac_status=$? | |
17984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17985 | (exit $ac_status); } && | |
793fa0d7 | 17986 | { ac_try='test -s conftest$ac_exeext' |
6a3a24fa JD |
17987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17988 | (eval $ac_try) 2>&5 | |
17989 | ac_status=$? | |
17990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17991 | (exit $ac_status); }; }; then | |
17992 | emacs_cv_langinfo_codeset=yes | |
17993 | else | |
17994 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17995 | sed 's/^/| /' conftest.$ac_ext >&5 |
17996 | ||
6a3a24fa JD |
17997 | emacs_cv_langinfo_codeset=no |
17998 | fi | |
17999 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18000 | ||
18001 | fi | |
18002 | echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 | |
18003 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6 | |
18004 | if test $emacs_cv_langinfo_codeset = yes; then | |
18005 | ||
18006 | cat >>confdefs.h <<\_ACEOF | |
18007 | #define HAVE_LANGINFO_CODESET 1 | |
18008 | _ACEOF | |
18009 | ||
18010 | fi | |
18011 | ||
c0d27fcc | 18012 | echo "$as_me:$LINENO: checking for size_t" >&5 |
503d2be0 AS |
18013 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
18014 | if test "${ac_cv_type_size_t+set}" = set; then | |
18015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 18016 | else |
503d2be0 | 18017 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 18018 | #line $LINENO "configure" |
19650fd6 AS |
18019 | /* confdefs.h. */ |
18020 | _ACEOF | |
18021 | cat confdefs.h >>conftest.$ac_ext | |
18022 | cat >>conftest.$ac_ext <<_ACEOF | |
18023 | /* end confdefs.h. */ | |
503d2be0 AS |
18024 | $ac_includes_default |
18025 | int | |
18026 | main () | |
18027 | { | |
18028 | if ((size_t *) 0) | |
18029 | return 0; | |
18030 | if (sizeof (size_t)) | |
18031 | return 0; | |
18032 | ; | |
18033 | return 0; | |
18034 | } | |
18035 | _ACEOF | |
18036 | rm -f conftest.$ac_objext | |
c0d27fcc | 18037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
18038 | (eval $ac_compile) 2>&5 |
18039 | ac_status=$? | |
c0d27fcc | 18040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 18041 | (exit $ac_status); } && |
793fa0d7 | 18042 | { ac_try='test -s conftest.$ac_objext' |
c0d27fcc | 18043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
18044 | (eval $ac_try) 2>&5 |
18045 | ac_status=$? | |
c0d27fcc | 18046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 18047 | (exit $ac_status); }; }; then |
8730a8da DL |
18048 | ac_cv_type_size_t=yes |
18049 | else | |
503d2be0 | 18050 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
18051 | sed 's/^/| /' conftest.$ac_ext >&5 |
18052 | ||
503d2be0 | 18053 | ac_cv_type_size_t=no |
8730a8da | 18054 | fi |
503d2be0 | 18055 | rm -f conftest.$ac_objext conftest.$ac_ext |
8730a8da | 18056 | fi |
c0d27fcc | 18057 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
503d2be0 AS |
18058 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
18059 | if test $ac_cv_type_size_t = yes; then | |
503d2be0 | 18060 | |
c0d27fcc MR |
18061 | cat >>confdefs.h <<_ACEOF |
18062 | #define HAVE_SIZE_T 1 | |
18063 | _ACEOF | |
18064 | ||
8730a8da DL |
18065 | |
18066 | fi | |
18067 | ||
c0d27fcc | 18068 | |
973a76b1 DL |
18069 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
18070 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
18071 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
18072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18073 | else | |
18074 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 18075 | #line $LINENO "configure" |
19650fd6 AS |
18076 | /* confdefs.h. */ |
18077 | _ACEOF | |
18078 | cat confdefs.h >>conftest.$ac_ext | |
18079 | cat >>conftest.$ac_ext <<_ACEOF | |
18080 | /* end confdefs.h. */ | |
973a76b1 DL |
18081 | $ac_includes_default |
18082 | # include <wchar.h> | |
18083 | int | |
18084 | main () | |
18085 | { | |
18086 | mbstate_t x; return sizeof x; | |
18087 | ; | |
18088 | return 0; | |
18089 | } | |
18090 | _ACEOF | |
18091 | rm -f conftest.$ac_objext | |
18092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18093 | (eval $ac_compile) 2>&5 | |
18094 | ac_status=$? | |
18095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18096 | (exit $ac_status); } && | |
793fa0d7 | 18097 | { ac_try='test -s conftest.$ac_objext' |
973a76b1 DL |
18098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18099 | (eval $ac_try) 2>&5 | |
18100 | ac_status=$? | |
18101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18102 | (exit $ac_status); }; }; then | |
18103 | ac_cv_type_mbstate_t=yes | |
18104 | else | |
18105 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18106 | sed 's/^/| /' conftest.$ac_ext >&5 |
18107 | ||
973a76b1 DL |
18108 | ac_cv_type_mbstate_t=no |
18109 | fi | |
18110 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18111 | fi | |
18112 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
18113 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
18114 | if test $ac_cv_type_mbstate_t = yes; then | |
18115 | ||
18116 | cat >>confdefs.h <<\_ACEOF | |
18117 | #define HAVE_MBSTATE_T 1 | |
18118 | _ACEOF | |
18119 | ||
18120 | else | |
18121 | ||
18122 | cat >>confdefs.h <<\_ACEOF | |
18123 | #define mbstate_t int | |
18124 | _ACEOF | |
18125 | ||
18126 | fi | |
18127 | ||
22044edf DL |
18128 | echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
18129 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6 | |
18130 | if test "${emacs_cv_c_restrict+set}" = set; then | |
18131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18132 | else | |
18133 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 18134 | #line $LINENO "configure" |
19650fd6 AS |
18135 | /* confdefs.h. */ |
18136 | _ACEOF | |
18137 | cat confdefs.h >>conftest.$ac_ext | |
18138 | cat >>conftest.$ac_ext <<_ACEOF | |
18139 | /* end confdefs.h. */ | |
22044edf DL |
18140 | void fred (int *restrict x); |
18141 | int | |
18142 | main () | |
18143 | { | |
b936fae4 | 18144 | |
22044edf DL |
18145 | ; |
18146 | return 0; | |
18147 | } | |
c0d27fcc | 18148 | _ACEOF |
22044edf DL |
18149 | rm -f conftest.$ac_objext |
18150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18151 | (eval $ac_compile) 2>&5 | |
18152 | ac_status=$? | |
18153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18154 | (exit $ac_status); } && | |
793fa0d7 | 18155 | { ac_try='test -s conftest.$ac_objext' |
22044edf DL |
18156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18157 | (eval $ac_try) 2>&5 | |
18158 | ac_status=$? | |
18159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18160 | (exit $ac_status); }; }; then | |
18161 | emacs_cv_c_restrict=yes | |
18162 | else | |
18163 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18164 | sed 's/^/| /' conftest.$ac_ext >&5 |
18165 | ||
22044edf | 18166 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 18167 | #line $LINENO "configure" |
19650fd6 AS |
18168 | /* confdefs.h. */ |
18169 | _ACEOF | |
18170 | cat confdefs.h >>conftest.$ac_ext | |
18171 | cat >>conftest.$ac_ext <<_ACEOF | |
18172 | /* end confdefs.h. */ | |
22044edf DL |
18173 | void fred (int *__restrict x); |
18174 | int | |
18175 | main () | |
18176 | { | |
c0d27fcc | 18177 | |
22044edf DL |
18178 | ; |
18179 | return 0; | |
18180 | } | |
c0d27fcc | 18181 | _ACEOF |
22044edf DL |
18182 | rm -f conftest.$ac_objext |
18183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18184 | (eval $ac_compile) 2>&5 | |
18185 | ac_status=$? | |
18186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18187 | (exit $ac_status); } && | |
793fa0d7 | 18188 | { ac_try='test -s conftest.$ac_objext' |
22044edf DL |
18189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18190 | (eval $ac_try) 2>&5 | |
18191 | ac_status=$? | |
18192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18193 | (exit $ac_status); }; }; then | |
18194 | emacs_cv_c_restrict=__restrict | |
18195 | else | |
18196 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18197 | sed 's/^/| /' conftest.$ac_ext >&5 |
18198 | ||
22044edf | 18199 | emacs_cv_c_restrict=no |
ba4481b5 | 18200 | fi |
22044edf | 18201 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 18202 | fi |
22044edf | 18203 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 18204 | fi |
22044edf DL |
18205 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
18206 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6 | |
18207 | case "$emacs_cv_c_restrict" in | |
18208 | yes) emacs_restrict=restrict;; | |
18209 | no) emacs_restrict="";; | |
18210 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
18211 | esac | |
18212 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 18213 | |
22044edf DL |
18214 | cat >>confdefs.h <<_ACEOF |
18215 | #define __restrict $emacs_restrict | |
c0d27fcc | 18216 | _ACEOF |
ba4481b5 DL |
18217 | |
18218 | fi | |
ba4481b5 | 18219 | |
22044edf DL |
18220 | echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
18221 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6 | |
18222 | if test "${emacs_cv_c_restrict_arr+set}" = set; then | |
18223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18224 | else | |
18225 | cat >conftest.$ac_ext <<_ACEOF | |
793fa0d7 | 18226 | #line $LINENO "configure" |
19650fd6 AS |
18227 | /* confdefs.h. */ |
18228 | _ACEOF | |
18229 | cat confdefs.h >>conftest.$ac_ext | |
18230 | cat >>conftest.$ac_ext <<_ACEOF | |
18231 | /* end confdefs.h. */ | |
22044edf DL |
18232 | void fred (int x[__restrict]); |
18233 | int | |
18234 | main () | |
18235 | { | |
b936fae4 | 18236 | |
22044edf DL |
18237 | ; |
18238 | return 0; | |
18239 | } | |
c0d27fcc | 18240 | _ACEOF |
22044edf DL |
18241 | rm -f conftest.$ac_objext |
18242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18243 | (eval $ac_compile) 2>&5 | |
18244 | ac_status=$? | |
18245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18246 | (exit $ac_status); } && | |
793fa0d7 | 18247 | { ac_try='test -s conftest.$ac_objext' |
22044edf DL |
18248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18249 | (eval $ac_try) 2>&5 | |
18250 | ac_status=$? | |
18251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18252 | (exit $ac_status); }; }; then | |
18253 | emacs_cv_c_restrict_arr=yes | |
18254 | else | |
18255 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18256 | sed 's/^/| /' conftest.$ac_ext >&5 |
18257 | ||
22044edf | 18258 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 18259 | fi |
22044edf DL |
18260 | rm -f conftest.$ac_objext conftest.$ac_ext |
18261 | fi | |
18262 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 | |
18263 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6 | |
18264 | if test "$emacs_cv_c_restrict_arr" = yes; then | |
b936fae4 | 18265 | |
c0d27fcc | 18266 | cat >>confdefs.h <<\_ACEOF |
22044edf | 18267 | #define __restrict_arr __restrict |
c0d27fcc | 18268 | _ACEOF |
ba4481b5 | 18269 | |
ba4481b5 DL |
18270 | fi |
18271 | ||
c0d27fcc | 18272 | |
c0d27fcc | 18273 | |
22044edf DL |
18274 | # Set up the CFLAGS for real compilation, so we can substitute it. |
18275 | CFLAGS="$REAL_CFLAGS" | |
18276 | CPPFLAGS="$REAL_CPPFLAGS" | |
18277 | ||
18278 | #### Find out which version of Emacs this is. | |
18279 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
18280 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
18281 | if test x"${version}" = x; then | |
18282 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
18283 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
18284 | { (exit 1); exit 1; }; } | |
18285 | fi | |
18286 | ||
18287 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
18288 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
18289 | ||
18290 | ||
18291 | ||
18292 | ||
18293 | ||
18294 | ||
18295 | ||
18296 | ||
18297 | ||
18298 | ||
18299 | ||
18300 | ||
18301 | ||
18302 | ||
18303 | ||
18304 | ||
18305 | ||
18306 | ||
18307 | ||
18308 | ||
18309 | ||
18310 | ||
18311 | ||
18312 | ||
18313 | ||
18314 | ||
18315 | ||
18316 | ||
18317 | ||
18318 | ||
18319 | ||
18320 | ||
6a3a24fa | 18321 | |
22044edf DL |
18322 | |
18323 | ||
18324 | cat >>confdefs.h <<_ACEOF | |
18325 | #define EMACS_CONFIGURATION "${canonical}" | |
18326 | _ACEOF | |
18327 | ||
18328 | ||
18329 | cat >>confdefs.h <<_ACEOF | |
18330 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
18331 | _ACEOF | |
18332 | ||
18333 | ||
18334 | cat >>confdefs.h <<_ACEOF | |
18335 | #define config_machfile "${machfile}" | |
18336 | _ACEOF | |
18337 | ||
18338 | ||
18339 | cat >>confdefs.h <<_ACEOF | |
18340 | #define config_opsysfile "${opsysfile}" | |
18341 | _ACEOF | |
18342 | ||
18343 | ||
18344 | cat >>confdefs.h <<_ACEOF | |
18345 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
18346 | _ACEOF | |
18347 | ||
18348 | ||
18349 | cat >>confdefs.h <<_ACEOF | |
18350 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
18351 | _ACEOF | |
18352 | ||
18353 | ||
18354 | cat >>confdefs.h <<_ACEOF | |
18355 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
18356 | _ACEOF | |
18357 | ||
18358 | ||
18359 | cat >>confdefs.h <<_ACEOF | |
18360 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
18361 | _ACEOF | |
18362 | ||
18363 | ||
18364 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
18365 | ||
18366 | cat >>confdefs.h <<\_ACEOF | |
18367 | #define HAVE_X_WINDOWS 1 | |
18368 | _ACEOF | |
18369 | ||
18370 | fi | |
18371 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
18372 | ||
18373 | cat >>confdefs.h <<\_ACEOF | |
18374 | #define USE_X_TOOLKIT 1 | |
18375 | _ACEOF | |
18376 | ||
18377 | fi | |
18378 | if test "${HAVE_X11}" = "yes" ; then | |
18379 | ||
18380 | cat >>confdefs.h <<\_ACEOF | |
18381 | #define HAVE_X11 1 | |
18382 | _ACEOF | |
18383 | ||
18384 | fi | |
18385 | if test "${HAVE_XFREE386}" = "yes" ; then | |
18386 | ||
18387 | cat >>confdefs.h <<\_ACEOF | |
18388 | #define HAVE_XFREE386 1 | |
18389 | _ACEOF | |
18390 | ||
18391 | fi | |
18392 | if test "${HAVE_MENUS}" = "yes" ; then | |
18393 | ||
18394 | cat >>confdefs.h <<\_ACEOF | |
18395 | #define HAVE_MENUS 1 | |
18396 | _ACEOF | |
18397 | ||
18398 | fi | |
18399 | if test "${GNU_MALLOC}" = "yes" ; then | |
18400 | ||
18401 | cat >>confdefs.h <<\_ACEOF | |
18402 | #define GNU_MALLOC 1 | |
18403 | _ACEOF | |
18404 | ||
18405 | fi | |
18406 | if test "${REL_ALLOC}" = "yes" ; then | |
18407 | ||
18408 | cat >>confdefs.h <<\_ACEOF | |
18409 | #define REL_ALLOC 1 | |
18410 | _ACEOF | |
18411 | ||
18412 | fi | |
18413 | ||
18414 | ||
18415 | ||
c0d27fcc MR |
18416 | |
18417 | ||
ba4481b5 | 18418 | #### Report on what we decided to do. |
488dd4c4 JD |
18419 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
18420 | #### It makes printing result more understandable as using GTK sets | |
18421 | #### toolkit_scroll_bars to yes by default. | |
18422 | if test "${HAVE_GTK}" = "yes"; then | |
18423 | USE_X_TOOLKIT=GTK | |
18424 | fi | |
18425 | ||
ba4481b5 DL |
18426 | echo " |
18427 | Configured for \`${canonical}'. | |
18428 | ||
18429 | Where should the build process find the source code? ${srcdir} | |
18430 | What operating system and machine description files should Emacs use? | |
18431 | \`${opsysfile}' and \`${machfile}' | |
18432 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
18433 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 18434 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 18435 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 18436 | What window system should Emacs use? ${window_system} |
8e967cf7 | 18437 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
18438 | |
18439 | if test -n "${x_includes}"; then | |
18440 | echo " Where do we find X Windows header files? ${x_includes}" | |
18441 | else | |
18442 | echo " Where do we find X Windows header files? Standard dirs" | |
18443 | fi | |
18444 | if test -n "${x_libraries}"; then | |
18445 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
18446 | else | |
18447 | echo " Where do we find X Windows libraries? Standard dirs" | |
18448 | fi | |
18449 | ||
18450 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
18451 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
18452 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
18453 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
18454 | echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
18455 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
18456 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
18457 | echo | |
18458 | ||
18459 | # Remove any trailing slashes in these variables. | |
18460 | test "${prefix}" != NONE && | |
18461 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
18462 | test "${exec_prefix}" != NONE && | |
18463 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
18464 | ||
d0e9bfd2 GM |
18465 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
18466 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
18467 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
18468 | ## C preprocessor. | |
18469 | ||
503d2be0 | 18470 | cat >conftest.$ac_ext <<_ACEOF |
793fa0d7 | 18471 | #line $LINENO "configure" |
19650fd6 AS |
18472 | /* confdefs.h. */ |
18473 | _ACEOF | |
18474 | cat confdefs.h >>conftest.$ac_ext | |
18475 | cat >>conftest.$ac_ext <<_ACEOF | |
18476 | /* end confdefs.h. */ | |
d0e9bfd2 | 18477 | yes..yes |
503d2be0 | 18478 | _ACEOF |
d0e9bfd2 | 18479 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 18480 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
18481 | CPP_NEED_TRADITIONAL=no |
18482 | else | |
d0e9bfd2 GM |
18483 | CPP_NEED_TRADITIONAL=yes |
18484 | fi | |
18485 | rm -f conftest* | |
18486 | ||
c0d27fcc | 18487 | |
6bae0ccf DL |
18488 | 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" |
18489 | ac_config_commands="$ac_config_commands default" | |
503d2be0 | 18490 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
18491 | # This file is a shell script that caches the results of configure |
18492 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
18493 | # scripts and configure runs, see configure's option --config-cache. |
18494 | # It is not useful on other systems. If it contains results you don't | |
18495 | # want to keep, you may remove or edit it. | |
ba4481b5 | 18496 | # |
503d2be0 AS |
18497 | # config.status only pays attention to the cache file if you give it |
18498 | # the --recheck option to rerun configure. | |
ba4481b5 | 18499 | # |
6bae0ccf | 18500 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
18501 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
18502 | # following values. | |
18503 | ||
18504 | _ACEOF | |
18505 | ||
ba4481b5 DL |
18506 | # The following way of writing the cache mishandles newlines in values, |
18507 | # but we know of no workaround that is simple, portable, and efficient. | |
18508 | # So, don't put newlines in cache variables' values. | |
18509 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18510 | # and sets the high bit in the cache file unless we assign to the vars. | |
503d2be0 AS |
18511 | { |
18512 | (set) 2>&1 | | |
18513 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18514 | *ac_space=\ *) | |
18515 | # `set' does not quote correctly, so add quotes (double-quote | |
18516 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18517 | sed -n \ | |
793fa0d7 DL |
18518 | "s/'/'\\\\''/g; |
18519 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
503d2be0 AS |
18520 | ;; |
18521 | *) | |
18522 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18523 | sed -n \ | |
793fa0d7 | 18524 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
503d2be0 AS |
18525 | ;; |
18526 | esac; | |
18527 | } | | |
18528 | sed ' | |
18529 | t clear | |
18530 | : clear | |
18531 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18532 | t end | |
18533 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18534 | : end' >>confcache | |
19650fd6 | 18535 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
ba4481b5 | 18536 | if test -w $cache_file; then |
503d2be0 AS |
18537 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
18538 | cat confcache >$cache_file | |
ba4481b5 DL |
18539 | else |
18540 | echo "not updating unwritable cache $cache_file" | |
18541 | fi | |
18542 | fi | |
18543 | rm -f confcache | |
18544 | ||
ba4481b5 DL |
18545 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18546 | # Let make expand exec_prefix. | |
18547 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18548 | ||
503d2be0 AS |
18549 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18550 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18551 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18552 | # (actually we leave an empty line to preserve line numbers). | |
ba4481b5 | 18553 | if test "x$srcdir" = x.; then |
793fa0d7 | 18554 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
503d2be0 AS |
18555 | s/:*\$(srcdir):*/:/; |
18556 | s/:*\${srcdir}:*/:/; | |
18557 | s/:*@srcdir@:*/:/; | |
793fa0d7 | 18558 | s/^\([^=]*=[ ]*\):*/\1/; |
503d2be0 | 18559 | s/:*$//; |
793fa0d7 | 18560 | s/^[^=]*=[ ]*$//; |
503d2be0 | 18561 | }' |
ba4481b5 DL |
18562 | fi |
18563 | ||
ba4481b5 DL |
18564 | DEFS=-DHAVE_CONFIG_H |
18565 | ||
6bae0ccf DL |
18566 | ac_libobjs= |
18567 | ac_ltlibobjs= | |
18568 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18569 | # 1. Remove the extension, and $U if already installed. | |
18570 | ac_i=`echo "$ac_i" | | |
793fa0d7 | 18571 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
6bae0ccf DL |
18572 | # 2. Add them. |
18573 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
18574 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
18575 | done | |
18576 | LIBOBJS=$ac_libobjs | |
18577 | ||
18578 | LTLIBOBJS=$ac_ltlibobjs | |
18579 | ||
18580 | ||
c0d27fcc | 18581 | |
ba4481b5 | 18582 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
18583 | ac_clean_files_save=$ac_clean_files |
18584 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 18585 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
18586 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
18587 | cat >$CONFIG_STATUS <<_ACEOF | |
18588 | #! $SHELL | |
c0d27fcc | 18589 | # Generated by $as_me. |
ba4481b5 | 18590 | # Run this file to recreate the current configuration. |
ba4481b5 | 18591 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 18592 | # configure, is in config.log if it exists. |
ba4481b5 | 18593 | |
503d2be0 | 18594 | debug=false |
19650fd6 AS |
18595 | ac_cs_recheck=false |
18596 | ac_cs_silent=false | |
503d2be0 | 18597 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
18598 | _ACEOF |
18599 | ||
18600 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
18601 | ## --------------------- ## |
18602 | ## M4sh Initialization. ## | |
18603 | ## --------------------- ## | |
18604 | ||
503d2be0 AS |
18605 | # Be Bourne compatible |
18606 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18607 | emulate sh | |
18608 | NULLCMD=: | |
6bae0ccf DL |
18609 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18610 | # is contrary to our usage. Disable this feature. | |
18611 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
18612 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
18613 | set -o posix | |
18614 | fi | |
18615 | ||
c0d27fcc | 18616 | # Support unset when possible. |
793fa0d7 | 18617 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
c0d27fcc MR |
18618 | as_unset=unset |
18619 | else | |
18620 | as_unset=false | |
18621 | fi | |
18622 | ||
6bae0ccf DL |
18623 | |
18624 | # Work around bugs in pre-3.0 UWIN ksh. | |
18625 | $as_unset ENV MAIL MAILPATH | |
18626 | PS1='$ ' | |
18627 | PS2='> ' | |
18628 | PS4='+ ' | |
18629 | ||
18630 | # NLS nuisances. | |
19650fd6 AS |
18631 | for as_var in \ |
18632 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
18633 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
18634 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 18635 | do |
793fa0d7 | 18636 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
18637 | eval $as_var=C; export $as_var |
18638 | else | |
18639 | $as_unset $as_var | |
18640 | fi | |
18641 | done | |
18642 | ||
18643 | # Required to use basename. | |
18644 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
18645 | as_expr=expr | |
18646 | else | |
18647 | as_expr=false | |
18648 | fi | |
18649 | ||
18650 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
18651 | as_basename=basename | |
18652 | else | |
18653 | as_basename=false | |
18654 | fi | |
c0d27fcc MR |
18655 | |
18656 | ||
503d2be0 | 18657 | # Name of the executable. |
6bae0ccf | 18658 | as_me=`$as_basename "$0" || |
c0d27fcc MR |
18659 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18660 | X"$0" : 'X\(//\)$' \| \ | |
18661 | X"$0" : 'X\(/\)$' \| \ | |
18662 | . : '\(.\)' 2>/dev/null || | |
18663 | echo X/"$0" | | |
18664 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
18665 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
18666 | /^X\/\(\/\).*/{ s//\1/; q; } | |
18667 | s/.*/./; q'` | |
18668 | ||
6bae0ccf | 18669 | |
c0d27fcc MR |
18670 | # PATH needs CR, and LINENO needs CR and PATH. |
18671 | # Avoid depending upon Character Ranges. | |
18672 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18673 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18674 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18675 | as_cr_digits='0123456789' | |
18676 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18677 | ||
18678 | # The user is always right. | |
18679 | if test "${PATH_SEPARATOR+set}" != set; then | |
19650fd6 AS |
18680 | echo "#! /bin/sh" >conf$$.sh |
18681 | echo "exit 0" >>conf$$.sh | |
18682 | chmod +x conf$$.sh | |
18683 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
c0d27fcc MR |
18684 | PATH_SEPARATOR=';' |
18685 | else | |
18686 | PATH_SEPARATOR=: | |
18687 | fi | |
19650fd6 | 18688 | rm -f conf$$.sh |
c0d27fcc MR |
18689 | fi |
18690 | ||
18691 | ||
18692 | as_lineno_1=$LINENO | |
18693 | as_lineno_2=$LINENO | |
18694 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
18695 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
18696 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
18697 | # Find who we are. Look in the path if we contain no path at all | |
18698 | # relative or not. | |
18699 | case $0 in | |
18700 | *[\\/]* ) as_myself=$0 ;; | |
18701 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18702 | for as_dir in $PATH | |
18703 | do | |
18704 | IFS=$as_save_IFS | |
18705 | test -z "$as_dir" && as_dir=. | |
18706 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18707 | done | |
18708 | ||
18709 | ;; | |
18710 | esac | |
18711 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18712 | # in which case we are not to be found in the path. | |
18713 | if test "x$as_myself" = x; then | |
18714 | as_myself=$0 | |
18715 | fi | |
18716 | if test ! -f "$as_myself"; then | |
18717 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
18718 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
18719 | { (exit 1); exit 1; }; } | |
18720 | fi | |
18721 | case $CONFIG_SHELL in | |
18722 | '') | |
18723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18724 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
18725 | do | |
18726 | IFS=$as_save_IFS | |
18727 | test -z "$as_dir" && as_dir=. | |
18728 | for as_base in sh bash ksh sh5; do | |
18729 | case $as_dir in | |
18730 | /*) | |
18731 | if ("$as_dir/$as_base" -c ' | |
18732 | as_lineno_1=$LINENO | |
18733 | as_lineno_2=$LINENO | |
18734 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
18735 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
18736 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6bae0ccf DL |
18737 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
18738 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
c0d27fcc MR |
18739 | CONFIG_SHELL=$as_dir/$as_base |
18740 | export CONFIG_SHELL | |
18741 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
18742 | fi;; | |
18743 | esac | |
18744 | done | |
18745 | done | |
18746 | ;; | |
18747 | esac | |
18748 | ||
18749 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
18750 | # uniformly replaced by the line number. The first 'sed' inserts a | |
18751 | # line-number line before each line; the second 'sed' does the real | |
18752 | # work. The second script uses 'N' to pair each line-number line | |
18753 | # with the numbered line, and appends trailing '-' during | |
18754 | # substitution so that $LINENO is not a special case at line end. | |
18755 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
18756 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
18757 | sed '=' <$as_myself | | |
18758 | sed ' | |
18759 | N | |
18760 | s,$,-, | |
18761 | : loop | |
18762 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
18763 | t loop | |
18764 | s,-$,, | |
18765 | s,^['$as_cr_digits']*\n,, | |
18766 | ' >$as_me.lineno && | |
18767 | chmod +x $as_me.lineno || | |
18768 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
18769 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
18770 | { (exit 1); exit 1; }; } | |
18771 | ||
18772 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18773 | # (the dirname of $[0] is not the place where we might find the | |
18774 | # original and so on. Autoconf is especially sensible to this). | |
18775 | . ./$as_me.lineno | |
18776 | # Exit status is that of the last command. | |
18777 | exit | |
18778 | } | |
18779 | ||
18780 | ||
18781 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
18782 | *c*,-n*) ECHO_N= ECHO_C=' | |
18783 | ' ECHO_T=' ' ;; | |
18784 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
18785 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
18786 | esac | |
503d2be0 AS |
18787 | |
18788 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
18789 | as_expr=expr | |
18790 | else | |
18791 | as_expr=false | |
18792 | fi | |
18793 | ||
18794 | rm -f conf$$ conf$$.exe conf$$.file | |
18795 | echo >conf$$.file | |
18796 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18797 | # We could just check for DJGPP; but this test a) works b) is more generic | |
18798 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
18799 | if test -f conf$$.exe; then | |
18800 | # Don't use ln at all; we don't have any links | |
18801 | as_ln_s='cp -p' | |
18802 | else | |
18803 | as_ln_s='ln -s' | |
18804 | fi | |
18805 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18806 | as_ln_s=ln | |
18807 | else | |
18808 | as_ln_s='cp -p' | |
18809 | fi | |
18810 | rm -f conf$$ conf$$.exe conf$$.file | |
18811 | ||
6bae0ccf DL |
18812 | if mkdir -p . 2>/dev/null; then |
18813 | as_mkdir_p=: | |
18814 | else | |
18815 | as_mkdir_p=false | |
18816 | fi | |
18817 | ||
503d2be0 AS |
18818 | as_executable_p="test -f" |
18819 | ||
c0d27fcc MR |
18820 | # Sed expression to map a string onto a valid CPP name. |
18821 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
18822 | ||
18823 | # Sed expression to map a string onto a valid variable name. | |
18824 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
503d2be0 | 18825 | |
503d2be0 AS |
18826 | |
18827 | # IFS | |
18828 | # We need space, tab and new line, in precisely that order. | |
18829 | as_nl=' | |
18830 | ' | |
18831 | IFS=" $as_nl" | |
18832 | ||
18833 | # CDPATH. | |
6bae0ccf | 18834 | $as_unset CDPATH |
503d2be0 AS |
18835 | |
18836 | exec 6>&1 | |
18837 | ||
c0d27fcc MR |
18838 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
18839 | # report actual input values of CONFIG_FILES etc. instead of their | |
18840 | # values after options handling. Logging --version etc. is OK. | |
18841 | exec 5>>config.log | |
18842 | { | |
18843 | echo | |
18844 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18845 | ## Running $as_me. ## | |
18846 | _ASBOX | |
18847 | } >&5 | |
18848 | cat >&5 <<_CSEOF | |
18849 | ||
18850 | This file was extended by $as_me, which was | |
793fa0d7 | 18851 | generated by GNU Autoconf 2.57. Invocation command line was |
c0d27fcc MR |
18852 | |
18853 | CONFIG_FILES = $CONFIG_FILES | |
18854 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18855 | CONFIG_LINKS = $CONFIG_LINKS | |
18856 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18857 | $ $0 $@ | |
18858 | ||
18859 | _CSEOF | |
18860 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
18861 | echo >&5 | |
503d2be0 AS |
18862 | _ACEOF |
18863 | ||
18864 | # Files that config.status was made for. | |
18865 | if test -n "$ac_config_files"; then | |
18866 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
18867 | fi | |
18868 | ||
18869 | if test -n "$ac_config_headers"; then | |
18870 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
18871 | fi | |
18872 | ||
18873 | if test -n "$ac_config_links"; then | |
18874 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
18875 | fi | |
18876 | ||
18877 | if test -n "$ac_config_commands"; then | |
18878 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
18879 | fi | |
18880 | ||
c0d27fcc | 18881 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
18882 | |
18883 | ac_cs_usage="\ | |
18884 | \`$as_me' instantiates files from templates according to the | |
18885 | current configuration. | |
18886 | ||
18887 | Usage: $0 [OPTIONS] [FILE]... | |
18888 | ||
18889 | -h, --help print this help, then exit | |
18890 | -V, --version print version number, then exit | |
19650fd6 | 18891 | -q, --quiet do not print progress messages |
503d2be0 AS |
18892 | -d, --debug don't remove temporary files |
18893 | --recheck update $as_me by reconfiguring in the same conditions | |
18894 | --file=FILE[:TEMPLATE] | |
793fa0d7 | 18895 | instantiate the configuration file FILE |
503d2be0 | 18896 | --header=FILE[:TEMPLATE] |
793fa0d7 | 18897 | instantiate the configuration header FILE |
503d2be0 AS |
18898 | |
18899 | Configuration files: | |
18900 | $config_files | |
18901 | ||
18902 | Configuration headers: | |
18903 | $config_headers | |
18904 | ||
18905 | Configuration commands: | |
18906 | $config_commands | |
18907 | ||
18908 | Report bugs to <bug-autoconf@gnu.org>." | |
c0d27fcc | 18909 | _ACEOF |
503d2be0 | 18910 | |
c0d27fcc | 18911 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
18912 | ac_cs_version="\\ |
18913 | config.status | |
793fa0d7 | 18914 | configured by $0, generated by GNU Autoconf 2.57, |
503d2be0 AS |
18915 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
18916 | ||
793fa0d7 DL |
18917 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
18918 | Free Software Foundation, Inc. | |
503d2be0 AS |
18919 | This config.status script is free software; the Free Software Foundation |
18920 | gives unlimited permission to copy, distribute and modify it." | |
18921 | srcdir=$srcdir | |
18922 | INSTALL="$INSTALL" | |
c0d27fcc | 18923 | _ACEOF |
503d2be0 | 18924 | |
c0d27fcc | 18925 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
18926 | # If no file are specified by the user, then we need to provide default |
18927 | # value. By we need to know if files were specified by the user. | |
18928 | ac_need_defaults=: | |
18929 | while test $# != 0 | |
ba4481b5 | 18930 | do |
503d2be0 AS |
18931 | case $1 in |
18932 | --*=*) | |
18933 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
18934 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6bae0ccf DL |
18935 | ac_shift=: |
18936 | ;; | |
18937 | -*) | |
18938 | ac_option=$1 | |
18939 | ac_optarg=$2 | |
18940 | ac_shift=shift | |
503d2be0 | 18941 | ;; |
503d2be0 AS |
18942 | *) # This is not an option, so the user has probably given explicit |
18943 | # arguments. | |
6bae0ccf | 18944 | ac_option=$1 |
503d2be0 AS |
18945 | ac_need_defaults=false;; |
18946 | esac | |
18947 | ||
6bae0ccf | 18948 | case $ac_option in |
503d2be0 | 18949 | # Handling of the options. |
c0d27fcc | 18950 | _ACEOF |
f57bd967 | 18951 | cat >>$CONFIG_STATUS <<\_ACEOF |
19650fd6 AS |
18952 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18953 | ac_cs_recheck=: ;; | |
503d2be0 AS |
18954 | --version | --vers* | -V ) |
18955 | echo "$ac_cs_version"; exit 0 ;; | |
18956 | --he | --h) | |
18957 | # Conflict between --help and --header | |
c0d27fcc | 18958 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
503d2be0 AS |
18959 | Try \`$0 --help' for more information." >&5 |
18960 | echo "$as_me: error: ambiguous option: $1 | |
18961 | Try \`$0 --help' for more information." >&2;} | |
18962 | { (exit 1); exit 1; }; };; | |
18963 | --help | --hel | -h ) | |
18964 | echo "$ac_cs_usage"; exit 0 ;; | |
18965 | --debug | --d* | -d ) | |
18966 | debug=: ;; | |
18967 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
18968 | $ac_shift |
18969 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
18970 | ac_need_defaults=false;; |
18971 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
18972 | $ac_shift |
18973 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 18974 | ac_need_defaults=false;; |
19650fd6 AS |
18975 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18976 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18977 | ac_cs_silent=: ;; | |
503d2be0 AS |
18978 | |
18979 | # This is an error. | |
c0d27fcc | 18980 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
503d2be0 AS |
18981 | Try \`$0 --help' for more information." >&5 |
18982 | echo "$as_me: error: unrecognized option: $1 | |
18983 | Try \`$0 --help' for more information." >&2;} | |
18984 | { (exit 1); exit 1; }; } ;; | |
18985 | ||
18986 | *) ac_config_targets="$ac_config_targets $1" ;; | |
18987 | ||
ba4481b5 | 18988 | esac |
503d2be0 | 18989 | shift |
ba4481b5 DL |
18990 | done |
18991 | ||
19650fd6 AS |
18992 | ac_configure_extra_args= |
18993 | ||
18994 | if $ac_cs_silent; then | |
18995 | exec 6>/dev/null | |
18996 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18997 | fi | |
18998 | ||
18999 | _ACEOF | |
19000 | cat >>$CONFIG_STATUS <<_ACEOF | |
19001 | if \$ac_cs_recheck; then | |
19002 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
19003 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19004 | fi | |
19005 | ||
503d2be0 | 19006 | _ACEOF |
ba4481b5 | 19007 | |
c0d27fcc | 19008 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
19009 | # |
19010 | # INIT-COMMANDS section. | |
19011 | # | |
ba4481b5 | 19012 | |
503d2be0 AS |
19013 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
19014 | ||
c0d27fcc MR |
19015 | _ACEOF |
19016 | ||
503d2be0 | 19017 | |
c0d27fcc MR |
19018 | |
19019 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
19020 | for ac_config_target in $ac_config_targets |
19021 | do | |
19022 | case "$ac_config_target" in | |
19023 | # Handling of arguments. | |
19024 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19025 | "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
19026 | "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
19027 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
19028 | "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
19029 | "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
19030 | "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
23b24859 | 19031 | "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
981626b7 | 19032 | "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
503d2be0 AS |
19033 | "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
19034 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
19035 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
c0d27fcc | 19036 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
19037 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
19038 | { (exit 1); exit 1; }; };; | |
19039 | esac | |
ba4481b5 | 19040 | done |
503d2be0 AS |
19041 | |
19042 | # If the user did not use the arguments to specify the items to instantiate, | |
19043 | # then the envvar interface is used. Set only those that are not. | |
19044 | # We use the long form for the default assignment because of an extremely | |
19045 | # bizarre bug on SunOS 4.1.3. | |
19046 | if $ac_need_defaults; then | |
19047 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19048 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
19049 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 19050 | fi |
503d2be0 | 19051 | |
19650fd6 AS |
19052 | # Have a temporary directory for convenience. Make it in the build tree |
19053 | # simply because there is no reason to put it here, and in addition, | |
19054 | # creating and moving files from /tmp can sometimes cause problems. | |
503d2be0 AS |
19055 | # Create a temporary directory, and hook for its removal unless debugging. |
19056 | $debug || | |
19057 | { | |
19058 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
19059 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
19060 | } | |
19061 | ||
19062 | # Create a (secure) tmp directory for tmp files. | |
19650fd6 | 19063 | |
503d2be0 | 19064 | { |
19650fd6 | 19065 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
503d2be0 AS |
19066 | test -n "$tmp" && test -d "$tmp" |
19067 | } || | |
19068 | { | |
19650fd6 | 19069 | tmp=./confstat$$-$RANDOM |
503d2be0 AS |
19070 | (umask 077 && mkdir $tmp) |
19071 | } || | |
19072 | { | |
19650fd6 | 19073 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
19074 | { (exit 1); exit 1; } |
19075 | } | |
19076 | ||
c0d27fcc | 19077 | _ACEOF |
503d2be0 | 19078 | |
c0d27fcc | 19079 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
19080 | |
19081 | # | |
19082 | # CONFIG_FILES section. | |
19083 | # | |
19084 | ||
19085 | # No need to generate the scripts if there are no CONFIG_FILES. | |
19086 | # This happens for instance when ./config.status config.h | |
19087 | if test -n "\$CONFIG_FILES"; then | |
19088 | # Protect against being on the right side of a sed subst in config.status. | |
19089 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
19090 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
19091 | s,@SHELL@,$SHELL,;t t | |
c0d27fcc MR |
19092 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
19093 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
19094 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
19095 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
19096 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
19097 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
503d2be0 AS |
19098 | s,@exec_prefix@,$exec_prefix,;t t |
19099 | s,@prefix@,$prefix,;t t | |
19100 | s,@program_transform_name@,$program_transform_name,;t t | |
19101 | s,@bindir@,$bindir,;t t | |
19102 | s,@sbindir@,$sbindir,;t t | |
19103 | s,@libexecdir@,$libexecdir,;t t | |
19104 | s,@datadir@,$datadir,;t t | |
19105 | s,@sysconfdir@,$sysconfdir,;t t | |
19106 | s,@sharedstatedir@,$sharedstatedir,;t t | |
19107 | s,@localstatedir@,$localstatedir,;t t | |
19108 | s,@libdir@,$libdir,;t t | |
19109 | s,@includedir@,$includedir,;t t | |
19110 | s,@oldincludedir@,$oldincludedir,;t t | |
19111 | s,@infodir@,$infodir,;t t | |
19112 | s,@mandir@,$mandir,;t t | |
503d2be0 AS |
19113 | s,@build_alias@,$build_alias,;t t |
19114 | s,@host_alias@,$host_alias,;t t | |
19115 | s,@target_alias@,$target_alias,;t t | |
c0d27fcc | 19116 | s,@DEFS@,$DEFS,;t t |
503d2be0 AS |
19117 | s,@ECHO_C@,$ECHO_C,;t t |
19118 | s,@ECHO_N@,$ECHO_N,;t t | |
19119 | s,@ECHO_T@,$ECHO_T,;t t | |
503d2be0 | 19120 | s,@LIBS@,$LIBS,;t t |
19650fd6 | 19121 | s,@MAINT@,$MAINT,;t t |
503d2be0 AS |
19122 | s,@build@,$build,;t t |
19123 | s,@build_cpu@,$build_cpu,;t t | |
19124 | s,@build_vendor@,$build_vendor,;t t | |
19125 | s,@build_os@,$build_os,;t t | |
19126 | s,@host@,$host,;t t | |
19127 | s,@host_cpu@,$host_cpu,;t t | |
19128 | s,@host_vendor@,$host_vendor,;t t | |
19129 | s,@host_os@,$host_os,;t t | |
19130 | s,@CC@,$CC,;t t | |
19131 | s,@CFLAGS@,$CFLAGS,;t t | |
19132 | s,@LDFLAGS@,$LDFLAGS,;t t | |
19133 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
19134 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
19135 | s,@EXEEXT@,$EXEEXT,;t t | |
19136 | s,@OBJEXT@,$OBJEXT,;t t | |
19137 | s,@LN_S@,$LN_S,;t t | |
19138 | s,@CPP@,$CPP,;t t | |
19139 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
19140 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
19141 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
503d2be0 AS |
19142 | s,@RANLIB@,$RANLIB,;t t |
19143 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9e71690e | 19144 | s,@INSTALL_INFO@,$INSTALL_INFO,;t t |
6bae0ccf | 19145 | s,@EGREP@,$EGREP,;t t |
503d2be0 AS |
19146 | s,@LIBSOUND@,$LIBSOUND,;t t |
19147 | s,@SET_MAKE@,$SET_MAKE,;t t | |
488dd4c4 JD |
19148 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
19149 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
19150 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
503d2be0 AS |
19151 | s,@ALLOCA@,$ALLOCA,;t t |
19152 | s,@liblockfile@,$liblockfile,;t t | |
19153 | s,@LIBOBJS@,$LIBOBJS,;t t | |
19154 | s,@NEED_SETGID@,$NEED_SETGID,;t t | |
19155 | s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
19156 | s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
19157 | s,@version@,$version,;t t | |
19158 | s,@configuration@,$configuration,;t t | |
19159 | s,@canonical@,$canonical,;t t | |
19160 | s,@srcdir@,$srcdir,;t t | |
19161 | s,@lispdir@,$lispdir,;t t | |
19162 | s,@locallisppath@,$locallisppath,;t t | |
19163 | s,@lisppath@,$lisppath,;t t | |
19164 | s,@x_default_search_path@,$x_default_search_path,;t t | |
19165 | s,@etcdir@,$etcdir,;t t | |
19166 | s,@archlibdir@,$archlibdir,;t t | |
19167 | s,@docdir@,$docdir,;t t | |
19168 | s,@bitmapdir@,$bitmapdir,;t t | |
98418dba CW |
19169 | s,@gamedir@,$gamedir,;t t |
19170 | s,@gameuser@,$gameuser,;t t | |
503d2be0 AS |
19171 | s,@c_switch_system@,$c_switch_system,;t t |
19172 | s,@c_switch_machine@,$c_switch_machine,;t t | |
19173 | s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
19174 | s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
19175 | s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
19176 | s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
19177 | s,@machfile@,$machfile,;t t | |
19178 | s,@opsysfile@,$opsysfile,;t t | |
6a3a24fa | 19179 | s,@carbon_appdir@,$carbon_appdir,;t t |
6bae0ccf | 19180 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
503d2be0 AS |
19181 | CEOF |
19182 | ||
c0d27fcc | 19183 | _ACEOF |
ba4481b5 | 19184 | |
c0d27fcc | 19185 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
19186 | # Split the substitutions into bite-sized pieces for seds with |
19187 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
19188 | ac_max_sed_lines=48 | |
19189 | ac_sed_frag=1 # Number of current file. | |
19190 | ac_beg=1 # First line for current file. | |
19191 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
19192 | ac_more_lines=: | |
19193 | ac_sed_cmds= | |
19194 | while $ac_more_lines; do | |
19195 | if test $ac_beg -gt 1; then | |
19196 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
19197 | else | |
19198 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
19199 | fi | |
19200 | if test ! -s $tmp/subs.frag; then | |
19201 | ac_more_lines=false | |
19202 | else | |
19203 | # The purpose of the label and of the branching condition is to | |
19204 | # speed up the sed processing (if there are no `@' at all, there | |
19205 | # is no need to browse any of the substitutions). | |
19206 | # These are the two extra sed commands mentioned above. | |
19207 | (echo ':t | |
19208 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
19209 | if test -z "$ac_sed_cmds"; then | |
793fa0d7 | 19210 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 | 19211 | else |
793fa0d7 | 19212 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 AS |
19213 | fi |
19214 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
19215 | ac_beg=$ac_end | |
19216 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
19217 | fi | |
19218 | done | |
19219 | if test -z "$ac_sed_cmds"; then | |
19220 | ac_sed_cmds=cat | |
19221 | fi | |
19222 | fi # test -n "$CONFIG_FILES" | |
ba4481b5 | 19223 | |
c0d27fcc MR |
19224 | _ACEOF |
19225 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 | 19226 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
ba4481b5 | 19227 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
19228 | case $ac_file in |
19229 | - | *:- | *:-:* ) # input from stdin | |
793fa0d7 DL |
19230 | cat >$tmp/stdin |
19231 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
19232 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 19233 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
793fa0d7 | 19234 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 19235 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
19236 | esac |
19237 | ||
503d2be0 | 19238 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
c0d27fcc MR |
19239 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
19240 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
793fa0d7 DL |
19241 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19242 | X"$ac_file" : 'X\(//\)$' \| \ | |
19243 | X"$ac_file" : 'X\(/\)' \| \ | |
19244 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
19245 | echo X"$ac_file" | |
19246 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
19247 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
19248 | /^X\(\/\/\)$/{ s//\1/; q; } | |
19249 | /^X\(\/\).*/{ s//\1/; q; } | |
19250 | s/.*/./; q'` | |
6bae0ccf DL |
19251 | { if $as_mkdir_p; then |
19252 | mkdir -p "$ac_dir" | |
19253 | else | |
19254 | as_dir="$ac_dir" | |
19255 | as_dirs= | |
19256 | while test ! -d "$as_dir"; do | |
19257 | as_dirs="$as_dir $as_dirs" | |
19258 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
19259 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
793fa0d7 DL |
19260 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
19261 | X"$as_dir" : 'X\(//\)$' \| \ | |
19262 | X"$as_dir" : 'X\(/\)' \| \ | |
19263 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
19264 | echo X"$as_dir" | |
19265 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
19266 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
19267 | /^X\(\/\/\)$/{ s//\1/; q; } | |
19268 | /^X\(\/\).*/{ s//\1/; q; } | |
19269 | s/.*/./; q'` | |
19270 | done | |
19271 | test ! -n "$as_dirs" || mkdir $as_dirs | |
19272 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
19273 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
19274 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 19275 | |
c0d27fcc | 19276 | ac_builddir=. |
98418dba | 19277 | |
c0d27fcc MR |
19278 | if test "$ac_dir" != .; then |
19279 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
19280 | # A "../" for each directory in $ac_dir_suffix. | |
19281 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
19282 | else | |
19283 | ac_dir_suffix= ac_top_builddir= | |
19284 | fi | |
19285 | ||
19286 | case $srcdir in | |
19287 | .) # No --srcdir option. We are building in place. | |
19288 | ac_srcdir=. | |
19289 | if test -z "$ac_top_builddir"; then | |
19290 | ac_top_srcdir=. | |
19291 | else | |
19292 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
19293 | fi ;; | |
19294 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
19295 | ac_srcdir=$srcdir$ac_dir_suffix; | |
19296 | ac_top_srcdir=$srcdir ;; | |
ba4481b5 | 19297 | *) # Relative path. |
c0d27fcc MR |
19298 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
19299 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
19300 | esac | |
19301 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
19302 | # absolute. | |
19303 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
6bae0ccf | 19304 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
c0d27fcc MR |
19305 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
19306 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
19307 | ||
ba4481b5 | 19308 | |
503d2be0 AS |
19309 | case $INSTALL in |
19310 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
c0d27fcc | 19311 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
ba4481b5 DL |
19312 | esac |
19313 | ||
503d2be0 | 19314 | if test x"$ac_file" != x-; then |
c0d27fcc | 19315 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
19316 | echo "$as_me: creating $ac_file" >&6;} |
19317 | rm -f "$ac_file" | |
19318 | fi | |
19319 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19320 | # use $as_me), people would be surprised to read: | |
c0d27fcc MR |
19321 | # /* config.h. Generated by config.status. */ |
19322 | if test x"$ac_file" = x-; then | |
19323 | configure_input= | |
19324 | else | |
19325 | configure_input="$ac_file. " | |
19326 | fi | |
19327 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
793fa0d7 | 19328 | sed 's,.*/,,'` by configure." |
503d2be0 AS |
19329 | |
19330 | # First look for the input files in the build tree, otherwise in the | |
19331 | # src tree. | |
19332 | ac_file_inputs=`IFS=: | |
19333 | for f in $ac_file_in; do | |
19334 | case $f in | |
19335 | -) echo $tmp/stdin ;; | |
19336 | [\\/$]*) | |
793fa0d7 DL |
19337 | # Absolute (can't be DOS-style, as IFS=:) |
19338 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
19339 | echo "$as_me: error: cannot find input file: $f" >&2;} |
19340 | { (exit 1); exit 1; }; } | |
793fa0d7 | 19341 | echo $f;; |
503d2be0 | 19342 | *) # Relative |
793fa0d7 DL |
19343 | if test -f "$f"; then |
19344 | # Build tree | |
19345 | echo $f | |
19346 | elif test -f "$srcdir/$f"; then | |
19347 | # Source tree | |
19348 | echo $srcdir/$f | |
19349 | else | |
19350 | # /dev/null tree | |
19351 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
19352 | echo "$as_me: error: cannot find input file: $f" >&2;} |
19353 | { (exit 1); exit 1; }; } | |
793fa0d7 | 19354 | fi;; |
503d2be0 AS |
19355 | esac |
19356 | done` || { (exit 1); exit 1; } | |
c0d27fcc MR |
19357 | _ACEOF |
19358 | cat >>$CONFIG_STATUS <<_ACEOF | |
503d2be0 AS |
19359 | sed "$ac_vpsub |
19360 | $extrasub | |
c0d27fcc MR |
19361 | _ACEOF |
19362 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
19363 | :t |
19364 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
19365 | s,@configure_input@,$configure_input,;t t | |
19366 | s,@srcdir@,$ac_srcdir,;t t | |
c0d27fcc | 19367 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
503d2be0 | 19368 | s,@top_srcdir@,$ac_top_srcdir,;t t |
c0d27fcc MR |
19369 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
19370 | s,@builddir@,$ac_builddir,;t t | |
19371 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
19372 | s,@top_builddir@,$ac_top_builddir,;t t | |
19373 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
503d2be0 AS |
19374 | s,@INSTALL@,$ac_INSTALL,;t t |
19375 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
19376 | rm -f $tmp/stdin | |
19377 | if test x"$ac_file" != x-; then | |
19378 | mv $tmp/out $ac_file | |
19379 | else | |
19380 | cat $tmp/out | |
19381 | rm -f $tmp/out | |
19382 | fi | |
19383 | ||
19384 | done | |
c0d27fcc MR |
19385 | _ACEOF |
19386 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ba4481b5 | 19387 | |
503d2be0 AS |
19388 | # |
19389 | # CONFIG_HEADER section. | |
19390 | # | |
ba4481b5 DL |
19391 | |
19392 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
19393 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
19394 | # | |
19395 | # ac_d sets the value in "#define NAME VALUE" lines. | |
793fa0d7 DL |
19396 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
19397 | ac_dB='[ ].*$,\1#\2' | |
503d2be0 AS |
19398 | ac_dC=' ' |
19399 | ac_dD=',;t' | |
19400 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
793fa0d7 | 19401 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
503d2be0 | 19402 | ac_uB='$,\1#\2define\3' |
ba4481b5 | 19403 | ac_uC=' ' |
503d2be0 | 19404 | ac_uD=',;t' |
ba4481b5 | 19405 | |
503d2be0 | 19406 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
ba4481b5 | 19407 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
19408 | case $ac_file in |
19409 | - | *:- | *:-:* ) # input from stdin | |
793fa0d7 DL |
19410 | cat >$tmp/stdin |
19411 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
19412 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 19413 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
793fa0d7 | 19414 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 19415 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
19416 | esac |
19417 | ||
c0d27fcc | 19418 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
19419 | echo "$as_me: creating $ac_file" >&6;} |
19420 | ||
19421 | # First look for the input files in the build tree, otherwise in the | |
19422 | # src tree. | |
19423 | ac_file_inputs=`IFS=: | |
19424 | for f in $ac_file_in; do | |
19425 | case $f in | |
19426 | -) echo $tmp/stdin ;; | |
19427 | [\\/$]*) | |
793fa0d7 DL |
19428 | # Absolute (can't be DOS-style, as IFS=:) |
19429 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
19430 | echo "$as_me: error: cannot find input file: $f" >&2;} |
19431 | { (exit 1); exit 1; }; } | |
793fa0d7 | 19432 | echo $f;; |
503d2be0 | 19433 | *) # Relative |
793fa0d7 DL |
19434 | if test -f "$f"; then |
19435 | # Build tree | |
19436 | echo $f | |
19437 | elif test -f "$srcdir/$f"; then | |
19438 | # Source tree | |
19439 | echo $srcdir/$f | |
19440 | else | |
19441 | # /dev/null tree | |
19442 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
19443 | echo "$as_me: error: cannot find input file: $f" >&2;} |
19444 | { (exit 1); exit 1; }; } | |
793fa0d7 | 19445 | fi;; |
503d2be0 AS |
19446 | esac |
19447 | done` || { (exit 1); exit 1; } | |
19448 | # Remove the trailing spaces. | |
793fa0d7 | 19449 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
503d2be0 | 19450 | |
c0d27fcc | 19451 | _ACEOF |
503d2be0 AS |
19452 | |
19453 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
19454 | # `conftest.undefs', that substitutes the proper values into | |
19455 | # config.h.in to produce config.h. The first handles `#define' | |
19456 | # templates, and the second `#undef' templates. | |
19457 | # And first: Protect against being on the right side of a sed subst in | |
19458 | # config.status. Protect against being in an unquoted here document | |
19459 | # in config.status. | |
19460 | rm -f conftest.defines conftest.undefs | |
19461 | # Using a here document instead of a string reduces the quoting nightmare. | |
19462 | # Putting comments in sed scripts is not portable. | |
19463 | # | |
19464 | # `end' is used to avoid that the second main sed command (meant for | |
19465 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
19466 | # See the Autoconf documentation for `clear'. | |
c0d27fcc | 19467 | cat >confdef2sed.sed <<\_ACEOF |
503d2be0 AS |
19468 | s/[\\&,]/\\&/g |
19469 | s,[\\$`],\\&,g | |
19470 | t clear | |
19471 | : clear | |
793fa0d7 | 19472 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
503d2be0 | 19473 | t end |
793fa0d7 | 19474 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
503d2be0 | 19475 | : end |
c0d27fcc | 19476 | _ACEOF |
503d2be0 AS |
19477 | # If some macros were called several times there might be several times |
19478 | # the same #defines, which is useless. Nevertheless, we may not want to | |
19479 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
19480 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
19481 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
19482 | rm -f confdef2sed.sed | |
ba4481b5 DL |
19483 | |
19484 | # This sed command replaces #undef with comments. This is necessary, for | |
19485 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
19486 | # on some systems where configure will not decide to define it. | |
c0d27fcc | 19487 | cat >>conftest.undefs <<\_ACEOF |
793fa0d7 | 19488 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
c0d27fcc | 19489 | _ACEOF |
ba4481b5 | 19490 | |
503d2be0 AS |
19491 | # Break up conftest.defines because some shells have a limit on the size |
19492 | # of here documents, and old seds have small limits too (100 cmds). | |
19493 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
793fa0d7 | 19494 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
503d2be0 AS |
19495 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
19496 | echo ' :' >>$CONFIG_STATUS | |
19497 | rm -f conftest.tail | |
19498 | while grep . conftest.defines >/dev/null | |
19499 | do | |
19500 | # Write a limited-size here document to $tmp/defines.sed. | |
19501 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
19502 | # Speed up: don't consider the non `#define' lines. | |
793fa0d7 | 19503 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
503d2be0 AS |
19504 | # Work around the forget-to-reset-the-flag bug. |
19505 | echo 't clr' >>$CONFIG_STATUS | |
19506 | echo ': clr' >>$CONFIG_STATUS | |
19507 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
19508 | echo 'CEOF | |
19509 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
19510 | rm -f $tmp/in | |
19511 | mv $tmp/out $tmp/in | |
19512 | ' >>$CONFIG_STATUS | |
19513 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
19514 | rm -f conftest.defines | |
19515 | mv conftest.tail conftest.defines | |
19516 | done | |
19517 | rm -f conftest.defines | |
6bae0ccf | 19518 | echo ' fi # grep' >>$CONFIG_STATUS |
503d2be0 | 19519 | echo >>$CONFIG_STATUS |
ba4481b5 | 19520 | |
503d2be0 AS |
19521 | # Break up conftest.undefs because some shells have a limit on the size |
19522 | # of here documents, and old seds have small limits too (100 cmds). | |
19523 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
ba4481b5 | 19524 | rm -f conftest.tail |
503d2be0 | 19525 | while grep . conftest.undefs >/dev/null |
ba4481b5 | 19526 | do |
503d2be0 AS |
19527 | # Write a limited-size here document to $tmp/undefs.sed. |
19528 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
19529 | # Speed up: don't consider the non `#undef' | |
793fa0d7 | 19530 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
503d2be0 AS |
19531 | # Work around the forget-to-reset-the-flag bug. |
19532 | echo 't clr' >>$CONFIG_STATUS | |
19533 | echo ': clr' >>$CONFIG_STATUS | |
19534 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
ba4481b5 | 19535 | echo 'CEOF |
503d2be0 AS |
19536 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
19537 | rm -f $tmp/in | |
19538 | mv $tmp/out $tmp/in | |
19539 | ' >>$CONFIG_STATUS | |
19540 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
19541 | rm -f conftest.undefs | |
19542 | mv conftest.tail conftest.undefs | |
ba4481b5 | 19543 | done |
503d2be0 AS |
19544 | rm -f conftest.undefs |
19545 | ||
c0d27fcc | 19546 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
19547 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19548 | # use $as_me), people would be surprised to read: | |
c0d27fcc | 19549 | # /* config.h. Generated by config.status. */ |
503d2be0 | 19550 | if test x"$ac_file" = x-; then |
c0d27fcc | 19551 | echo "/* Generated by configure. */" >$tmp/config.h |
ba4481b5 | 19552 | else |
c0d27fcc | 19553 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
503d2be0 AS |
19554 | fi |
19555 | cat $tmp/in >>$tmp/config.h | |
19556 | rm -f $tmp/in | |
19557 | if test x"$ac_file" != x-; then | |
19650fd6 | 19558 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
c0d27fcc | 19559 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
19560 | echo "$as_me: $ac_file is unchanged" >&6;} |
19561 | else | |
c0d27fcc MR |
19562 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
19563 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
793fa0d7 DL |
19564 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19565 | X"$ac_file" : 'X\(//\)$' \| \ | |
19566 | X"$ac_file" : 'X\(/\)' \| \ | |
19567 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
19568 | echo X"$ac_file" | |
19569 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
19570 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
19571 | /^X\(\/\/\)$/{ s//\1/; q; } | |
19572 | /^X\(\/\).*/{ s//\1/; q; } | |
19573 | s/.*/./; q'` | |
6bae0ccf DL |
19574 | { if $as_mkdir_p; then |
19575 | mkdir -p "$ac_dir" | |
19576 | else | |
19577 | as_dir="$ac_dir" | |
19578 | as_dirs= | |
19579 | while test ! -d "$as_dir"; do | |
19580 | as_dirs="$as_dir $as_dirs" | |
19581 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
19582 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
793fa0d7 DL |
19583 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
19584 | X"$as_dir" : 'X\(//\)$' \| \ | |
19585 | X"$as_dir" : 'X\(/\)' \| \ | |
19586 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
19587 | echo X"$as_dir" | |
19588 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
19589 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
19590 | /^X\(\/\/\)$/{ s//\1/; q; } | |
19591 | /^X\(\/\).*/{ s//\1/; q; } | |
19592 | s/.*/./; q'` | |
19593 | done | |
19594 | test ! -n "$as_dirs" || mkdir $as_dirs | |
19595 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
19596 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
19597 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 19598 | |
503d2be0 AS |
19599 | rm -f $ac_file |
19600 | mv $tmp/config.h $ac_file | |
ba4481b5 | 19601 | fi |
503d2be0 AS |
19602 | else |
19603 | cat $tmp/config.h | |
19604 | rm -f $tmp/config.h | |
ba4481b5 | 19605 | fi |
503d2be0 | 19606 | done |
c0d27fcc MR |
19607 | _ACEOF |
19608 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
19609 | |
19610 | # | |
19611 | # CONFIG_COMMANDS section. | |
19612 | # | |
19613 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
19614 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
19615 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c0d27fcc MR |
19616 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
19617 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
793fa0d7 DL |
19618 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
19619 | X"$ac_dest" : 'X\(//\)$' \| \ | |
19620 | X"$ac_dest" : 'X\(/\)' \| \ | |
19621 | . : '\(.\)' 2>/dev/null || | |
c0d27fcc MR |
19622 | echo X"$ac_dest" | |
19623 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
19624 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
19625 | /^X\(\/\/\)$/{ s//\1/; q; } | |
19626 | /^X\(\/\).*/{ s//\1/; q; } | |
19627 | s/.*/./; q'` | |
19628 | ac_builddir=. | |
19629 | ||
19630 | if test "$ac_dir" != .; then | |
19631 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
19632 | # A "../" for each directory in $ac_dir_suffix. | |
19633 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
19634 | else | |
19635 | ac_dir_suffix= ac_top_builddir= | |
19636 | fi | |
19637 | ||
19638 | case $srcdir in | |
19639 | .) # No --srcdir option. We are building in place. | |
19640 | ac_srcdir=. | |
19641 | if test -z "$ac_top_builddir"; then | |
19642 | ac_top_srcdir=. | |
19643 | else | |
19644 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
19645 | fi ;; | |
19646 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
19647 | ac_srcdir=$srcdir$ac_dir_suffix; | |
19648 | ac_top_srcdir=$srcdir ;; | |
19649 | *) # Relative path. | |
19650 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
19651 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
19652 | esac | |
19653 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
19654 | # absolute. | |
19655 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
6bae0ccf | 19656 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
c0d27fcc MR |
19657 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
19658 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
ba4481b5 | 19659 | |
c0d27fcc MR |
19660 | |
19661 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
19662 | echo "$as_me: executing $ac_dest commands" >&6;} | |
503d2be0 AS |
19663 | case $ac_dest in |
19664 | default ) | |
ba4481b5 DL |
19665 | |
19666 | ### Make the necessary directories, if they don't exist. | |
19667 | for dir in etc lisp ; do | |
19668 | test -d ${dir} || mkdir ${dir} | |
19669 | done | |
19670 | ||
19671 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
19672 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
19673 | # This must be done after src/config.h is built, since we rely on that file. | |
19674 | ||
19675 | # Now get this: Some word that is part of the ${srcdir} directory name | |
19676 | # or the ${configuration} value might, just might, happen to be an | |
19677 | # identifier like `sun4' or `i386' or something, and be predefined by | |
19678 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
19679 | # string. Needless to say consequent macro substitutions are less | |
19680 | # than conducive to the makefile finding the correct directory. | |
19681 | undefs="`echo $top_srcdir $configuration $canonical | | |
19682 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
19683 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
19684 | `" | |
19685 | ||
19686 | echo creating src/epaths.h | |
4aa6b955 | 19687 | ${MAKE-make} epaths-force |
ba4481b5 | 19688 | |
1c203d4c DL |
19689 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
19690 | # `..' to `. .' unless invoked with -traditional | |
19691 | ||
d0e9bfd2 | 19692 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
19693 | CPPFLAGS="$CPPFLAGS -traditional" |
19694 | fi | |
19695 | ||
ba4481b5 DL |
19696 | echo creating lib-src/Makefile |
19697 | ( cd lib-src | |
19698 | rm -f junk.c junk1.c junk2.c | |
19699 | sed -e '/start of cpp stuff/q' \ | |
19700 | < Makefile.c > junk1.c | |
19701 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 19702 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 19703 | < Makefile.c > junk.c |
503d2be0 | 19704 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
19705 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
19706 | cat junk1.c junk2.c > Makefile.new | |
19707 | rm -f junk.c junk1.c junk2.c | |
19708 | chmod 444 Makefile.new | |
19709 | mv -f Makefile.new Makefile | |
19710 | ) | |
19711 | ||
19712 | echo creating src/Makefile | |
19713 | ( cd src | |
19714 | rm -f junk.c junk1.c junk2.c | |
19715 | sed -e '/start of cpp stuff/q' \ | |
19716 | < Makefile.c > junk1.c | |
19717 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 19718 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 19719 | < Makefile.c > junk.c |
503d2be0 | 19720 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
19721 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
19722 | cat junk1.c junk2.c > Makefile.new | |
19723 | rm -f junk.c junk1.c junk2.c | |
19724 | chmod 444 Makefile.new | |
19725 | mv -f Makefile.new Makefile | |
19726 | ) | |
19727 | ||
503d2be0 | 19728 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 19729 | echo creating src/.gdbinit |
503d2be0 | 19730 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
19731 | fi |
19732 | ||
19733 | # This is how we know whether to re-run configure in certain cases. | |
19734 | touch src/config.stamp | |
19735 | ||
503d2be0 AS |
19736 | ;; |
19737 | esac | |
19738 | done | |
c0d27fcc | 19739 | _ACEOF |
503d2be0 | 19740 | |
c0d27fcc | 19741 | cat >>$CONFIG_STATUS <<\_ACEOF |
ba4481b5 | 19742 | |
503d2be0 | 19743 | { (exit 0); exit 0; } |
c0d27fcc | 19744 | _ACEOF |
ba4481b5 | 19745 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
19746 | ac_clean_files=$ac_clean_files_save |
19747 | ||
c0d27fcc | 19748 | |
503d2be0 AS |
19749 | # configure is writing to config.log, and then calls config.status. |
19750 | # config.status does its own redirection, appending to config.log. | |
19751 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19752 | # by configure, so config.status won't be able to write to it; its | |
19753 | # output is simply discarded. So we exec the FD to /dev/null, | |
19754 | # effectively closing config.log, so it can be properly (re)opened and | |
19755 | # appended to by config.status. When coming back to configure, we | |
19756 | # need to make the FD available again. | |
19757 | if test "$no_create" != yes; then | |
19758 | ac_cs_success=: | |
19650fd6 AS |
19759 | ac_config_status_args= |
19760 | test "$silent" = yes && | |
19761 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 19762 | exec 5>/dev/null |
19650fd6 | 19763 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
19764 | exec 5>>config.log |
19765 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19766 | # would make configure fail if this is the last instruction. | |
19767 | $ac_cs_success || { (exit 1); exit 1; } | |
19768 | fi | |
f5f47add | 19769 | |
c0d27fcc | 19770 |