02d2ff88701487751fe1578e1d54d3df17befd06
[bpt/emacs.git] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.3.50'
553 PACKAGE_STRING='emacs 24.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 WINDOW_SYSTEM_OBJ
608 LD_SWITCH_SYSTEM_TEMACS
609 LIBGNU_LTLIBDEPS
610 LIBGNU_LIBDEPS
611 gltests_WITNESS
612 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
613 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
614 gl_GNULIB_ENABLED_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
623 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
624 gl_GNULIB_ENABLED_pathmax_FALSE
625 gl_GNULIB_ENABLED_pathmax_TRUE
626 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
627 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
639 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
640 LTLIBINTL
641 LIBINTL
642 LIB_EACCESS
643 WINDOWS_64_BIT_OFF_T
644 HAVE_UNISTD_H
645 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
646 NEXT_UNISTD_H
647 LIB_TIMER_TIME
648 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
649 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
650 TIME_H_DEFINES_STRUCT_TIMESPEC
651 NEXT_AS_FIRST_DIRECTIVE_TIME_H
652 NEXT_TIME_H
653 WINDOWS_64_BIT_ST_SIZE
654 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
655 NEXT_SYS_STAT_H
656 NEXT_AS_FIRST_DIRECTIVE_STRING_H
657 NEXT_STRING_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
659 NEXT_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
661 NEXT_STDIO_H
662 REPLACE_VSPRINTF
663 REPLACE_VSNPRINTF
664 REPLACE_VPRINTF
665 REPLACE_VFPRINTF
666 REPLACE_VDPRINTF
667 REPLACE_VASPRINTF
668 REPLACE_TMPFILE
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
671 REPLACE_SPRINTF
672 REPLACE_SNPRINTF
673 REPLACE_RENAMEAT
674 REPLACE_RENAME
675 REPLACE_REMOVE
676 REPLACE_PRINTF
677 REPLACE_POPEN
678 REPLACE_PERROR
679 REPLACE_OBSTACK_PRINTF
680 REPLACE_GETLINE
681 REPLACE_GETDELIM
682 REPLACE_FTELLO
683 REPLACE_FTELL
684 REPLACE_FSEEKO
685 REPLACE_FSEEK
686 REPLACE_FREOPEN
687 REPLACE_FPURGE
688 REPLACE_FPRINTF
689 REPLACE_FOPEN
690 REPLACE_FFLUSH
691 REPLACE_FDOPEN
692 REPLACE_FCLOSE
693 REPLACE_DPRINTF
694 HAVE_VDPRINTF
695 HAVE_VASPRINTF
696 HAVE_RENAMEAT
697 HAVE_POPEN
698 HAVE_PCLOSE
699 HAVE_FTELLO
700 HAVE_FSEEKO
701 HAVE_DPRINTF
702 HAVE_DECL_VSNPRINTF
703 HAVE_DECL_SNPRINTF
704 HAVE_DECL_OBSTACK_PRINTF
705 HAVE_DECL_GETLINE
706 HAVE_DECL_GETDELIM
707 HAVE_DECL_FTELLO
708 HAVE_DECL_FSEEKO
709 HAVE_DECL_FPURGE
710 GNULIB_VSPRINTF_POSIX
711 GNULIB_VSNPRINTF
712 GNULIB_VPRINTF_POSIX
713 GNULIB_VPRINTF
714 GNULIB_VFPRINTF_POSIX
715 GNULIB_VFPRINTF
716 GNULIB_VDPRINTF
717 GNULIB_VSCANF
718 GNULIB_VFSCANF
719 GNULIB_VASPRINTF
720 GNULIB_TMPFILE
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
723 GNULIB_SPRINTF_POSIX
724 GNULIB_SNPRINTF
725 GNULIB_SCANF
726 GNULIB_RENAMEAT
727 GNULIB_RENAME
728 GNULIB_REMOVE
729 GNULIB_PUTS
730 GNULIB_PUTCHAR
731 GNULIB_PUTC
732 GNULIB_PRINTF_POSIX
733 GNULIB_PRINTF
734 GNULIB_POPEN
735 GNULIB_PERROR
736 GNULIB_PCLOSE
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
739 GNULIB_GETLINE
740 GNULIB_GETDELIM
741 GNULIB_GETCHAR
742 GNULIB_GETC
743 GNULIB_FWRITE
744 GNULIB_FTELLO
745 GNULIB_FTELL
746 GNULIB_FSEEKO
747 GNULIB_FSEEK
748 GNULIB_FSCANF
749 GNULIB_FREOPEN
750 GNULIB_FREAD
751 GNULIB_FPUTS
752 GNULIB_FPUTC
753 GNULIB_FPURGE
754 GNULIB_FPRINTF_POSIX
755 GNULIB_FPRINTF
756 GNULIB_FOPEN
757 GNULIB_FGETS
758 GNULIB_FGETC
759 GNULIB_FFLUSH
760 GNULIB_FDOPEN
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
764 NEXT_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
767 STDDEF_H
768 HAVE_WCHAR_T
769 REPLACE_NULL
770 HAVE__BOOL
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
773 STDBOOL_H
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
776 STDARG_H
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
778 NEXT_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
781 STDALIGN_H
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
783 NEXT_SIGNAL_H
784 LIB_PTHREAD_SIGMASK
785 REPLACE_RAISE
786 REPLACE_PTHREAD_SIGMASK
787 HAVE_SIGHANDLER_T
788 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
789 HAVE_STRUCT_SIGACTION_SA_SIGACTION
790 HAVE_SIGACTION
791 HAVE_SIGINFO_T
792 HAVE_SIGSET_T
793 HAVE_RAISE
794 HAVE_PTHREAD_SIGMASK
795 HAVE_POSIX_SIGNALBLOCKING
796 GNULIB_SIGACTION
797 GNULIB_SIGPROCMASK
798 GNULIB_SIGNAL_H_SIGPIPE
799 GNULIB_RAISE
800 GNULIB_PTHREAD_SIGMASK
801 HAVE_SYS_SELECT_H
802 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
803 NEXT_SYS_SELECT_H
804 REPLACE_SELECT
805 REPLACE_PSELECT
806 HAVE_PSELECT
807 GNULIB_SELECT
808 GNULIB_PSELECT
809 REPLACE_TIMEGM
810 REPLACE_NANOSLEEP
811 REPLACE_MKTIME
812 REPLACE_LOCALTIME_R
813 HAVE_TIMEGM
814 HAVE_STRPTIME
815 HAVE_NANOSLEEP
816 HAVE_DECL_LOCALTIME_R
817 GNULIB_TIME_R
818 GNULIB_TIMEGM
819 GNULIB_STRPTIME
820 GNULIB_NANOSLEEP
821 GNULIB_MKTIME
822 UNDEFINE_STRTOK_R
823 REPLACE_STRTOK_R
824 REPLACE_STRSIGNAL
825 REPLACE_STRNLEN
826 REPLACE_STRNDUP
827 REPLACE_STRNCAT
828 REPLACE_STRERROR_R
829 REPLACE_STRERROR
830 REPLACE_STRCHRNUL
831 REPLACE_STRCASESTR
832 REPLACE_STRSTR
833 REPLACE_STRDUP
834 REPLACE_STPNCPY
835 REPLACE_MEMMEM
836 REPLACE_MEMCHR
837 HAVE_STRVERSCMP
838 HAVE_DECL_STRSIGNAL
839 HAVE_DECL_STRERROR_R
840 HAVE_DECL_STRTOK_R
841 HAVE_STRCASESTR
842 HAVE_STRSEP
843 HAVE_STRPBRK
844 HAVE_DECL_STRNLEN
845 HAVE_DECL_STRNDUP
846 HAVE_DECL_STRDUP
847 HAVE_STRCHRNUL
848 HAVE_STPNCPY
849 HAVE_STPCPY
850 HAVE_RAWMEMCHR
851 HAVE_DECL_MEMRCHR
852 HAVE_MEMPCPY
853 HAVE_DECL_MEMMEM
854 HAVE_MEMCHR
855 HAVE_FFSLL
856 HAVE_FFSL
857 HAVE_MBSLEN
858 GNULIB_STRVERSCMP
859 GNULIB_STRSIGNAL
860 GNULIB_STRERROR_R
861 GNULIB_STRERROR
862 GNULIB_MBSTOK_R
863 GNULIB_MBSSEP
864 GNULIB_MBSSPN
865 GNULIB_MBSPBRK
866 GNULIB_MBSCSPN
867 GNULIB_MBSCASESTR
868 GNULIB_MBSPCASECMP
869 GNULIB_MBSNCASECMP
870 GNULIB_MBSCASECMP
871 GNULIB_MBSSTR
872 GNULIB_MBSRCHR
873 GNULIB_MBSCHR
874 GNULIB_MBSNLEN
875 GNULIB_MBSLEN
876 GNULIB_STRTOK_R
877 GNULIB_STRCASESTR
878 GNULIB_STRSTR
879 GNULIB_STRSEP
880 GNULIB_STRPBRK
881 GNULIB_STRNLEN
882 GNULIB_STRNDUP
883 GNULIB_STRNCAT
884 GNULIB_STRDUP
885 GNULIB_STRCHRNUL
886 GNULIB_STPNCPY
887 GNULIB_STPCPY
888 GNULIB_RAWMEMCHR
889 GNULIB_MEMRCHR
890 GNULIB_MEMPCPY
891 GNULIB_MEMMEM
892 GNULIB_MEMCHR
893 GNULIB_FFSLL
894 GNULIB_FFSL
895 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
896 NEXT_INTTYPES_H
897 UINT64_MAX_EQ_ULONG_MAX
898 UINT32_MAX_LT_UINTMAX_MAX
899 PRIPTR_PREFIX
900 PRI_MACROS_BROKEN
901 INT64_MAX_EQ_LONG_MAX
902 INT32_MAX_LT_INTMAX_MAX
903 REPLACE_STRTOIMAX
904 HAVE_DECL_STRTOUMAX
905 HAVE_DECL_STRTOIMAX
906 HAVE_DECL_IMAXDIV
907 HAVE_DECL_IMAXABS
908 GNULIB_STRTOUMAX
909 GNULIB_STRTOIMAX
910 GNULIB_IMAXDIV
911 GNULIB_IMAXABS
912 GL_GENERATE_STDINT_H_FALSE
913 GL_GENERATE_STDINT_H_TRUE
914 STDINT_H
915 WINT_T_SUFFIX
916 WCHAR_T_SUFFIX
917 SIG_ATOMIC_T_SUFFIX
918 SIZE_T_SUFFIX
919 PTRDIFF_T_SUFFIX
920 HAVE_SIGNED_WINT_T
921 HAVE_SIGNED_WCHAR_T
922 HAVE_SIGNED_SIG_ATOMIC_T
923 BITSIZEOF_WINT_T
924 BITSIZEOF_WCHAR_T
925 BITSIZEOF_SIG_ATOMIC_T
926 BITSIZEOF_SIZE_T
927 BITSIZEOF_PTRDIFF_T
928 APPLE_UNIVERSAL_BUILD
929 HAVE_SYS_BITYPES_H
930 HAVE_SYS_INTTYPES_H
931 HAVE_STDINT_H
932 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
933 NEXT_STDINT_H
934 HAVE_SYS_TYPES_H
935 HAVE_INTTYPES_H
936 HAVE_WCHAR_H
937 HAVE_UNSIGNED_LONG_LONG_INT
938 HAVE_LONG_LONG_INT
939 HAVE_WINSOCK2_H
940 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
941 NEXT_SYS_TIME_H
942 REPLACE_STRUCT_TIMEVAL
943 REPLACE_GETTIMEOFDAY
944 HAVE_SYS_TIME_H
945 HAVE_STRUCT_TIMEVAL
946 HAVE_GETTIMEOFDAY
947 GNULIB_GETTIMEOFDAY
948 GNULIB_GL_UNISTD_H_GETOPT
949 GETOPT_H
950 HAVE_GETOPT_H
951 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
952 NEXT_GETOPT_H
953 GETLOADAVG_LIBS
954 REPLACE_WCTOMB
955 REPLACE_UNSETENV
956 REPLACE_STRTOD
957 REPLACE_SETENV
958 REPLACE_REALPATH
959 REPLACE_REALLOC
960 REPLACE_RANDOM_R
961 REPLACE_PUTENV
962 REPLACE_PTSNAME_R
963 REPLACE_PTSNAME
964 REPLACE_MKSTEMP
965 REPLACE_MBTOWC
966 REPLACE_MALLOC
967 REPLACE_CANONICALIZE_FILE_NAME
968 REPLACE_CALLOC
969 HAVE_DECL_UNSETENV
970 HAVE_UNLOCKPT
971 HAVE_SYS_LOADAVG_H
972 HAVE_STRUCT_RANDOM_DATA
973 HAVE_STRTOULL
974 HAVE_STRTOLL
975 HAVE_STRTOD
976 HAVE_DECL_SETENV
977 HAVE_SETENV
978 HAVE_SECURE_GETENV
979 HAVE_RPMATCH
980 HAVE_REALPATH
981 HAVE_RANDOM_R
982 HAVE_RANDOM_H
983 HAVE_RANDOM
984 HAVE_PTSNAME_R
985 HAVE_PTSNAME
986 HAVE_POSIX_OPENPT
987 HAVE_MKSTEMPS
988 HAVE_MKSTEMP
989 HAVE_MKOSTEMPS
990 HAVE_MKOSTEMP
991 HAVE_MKDTEMP
992 HAVE_GRANTPT
993 HAVE_GETSUBOPT
994 HAVE_DECL_GETLOADAVG
995 HAVE_CANONICALIZE_FILE_NAME
996 HAVE_ATOLL
997 HAVE__EXIT
998 GNULIB_WCTOMB
999 GNULIB_UNSETENV
1000 GNULIB_UNLOCKPT
1001 GNULIB_SYSTEM_POSIX
1002 GNULIB_STRTOULL
1003 GNULIB_STRTOLL
1004 GNULIB_STRTOD
1005 GNULIB_SETENV
1006 GNULIB_SECURE_GETENV
1007 GNULIB_RPMATCH
1008 GNULIB_REALPATH
1009 GNULIB_REALLOC_POSIX
1010 GNULIB_RANDOM_R
1011 GNULIB_RANDOM
1012 GNULIB_PUTENV
1013 GNULIB_PTSNAME_R
1014 GNULIB_PTSNAME
1015 GNULIB_POSIX_OPENPT
1016 GNULIB_MKSTEMPS
1017 GNULIB_MKSTEMP
1018 GNULIB_MKOSTEMPS
1019 GNULIB_MKOSTEMP
1020 GNULIB_MKDTEMP
1021 GNULIB_MBTOWC
1022 GNULIB_MALLOC_POSIX
1023 GNULIB_GRANTPT
1024 GNULIB_GETSUBOPT
1025 GNULIB_GETLOADAVG
1026 GNULIB_CANONICALIZE_FILE_NAME
1027 GNULIB_CALLOC_POSIX
1028 GNULIB_ATOLL
1029 GNULIB__EXIT
1030 REPLACE_UTIMENSAT
1031 REPLACE_STAT
1032 REPLACE_MKNOD
1033 REPLACE_MKFIFO
1034 REPLACE_MKDIR
1035 REPLACE_LSTAT
1036 REPLACE_FUTIMENS
1037 REPLACE_FSTATAT
1038 REPLACE_FSTAT
1039 HAVE_UTIMENSAT
1040 HAVE_MKNODAT
1041 HAVE_MKNOD
1042 HAVE_MKFIFOAT
1043 HAVE_MKFIFO
1044 HAVE_MKDIRAT
1045 HAVE_LSTAT
1046 HAVE_LCHMOD
1047 HAVE_FUTIMENS
1048 HAVE_FSTATAT
1049 HAVE_FCHMODAT
1050 GNULIB_UTIMENSAT
1051 GNULIB_STAT
1052 GNULIB_MKNODAT
1053 GNULIB_MKNOD
1054 GNULIB_MKFIFOAT
1055 GNULIB_MKFIFO
1056 GNULIB_MKDIRAT
1057 GNULIB_LSTAT
1058 GNULIB_LCHMOD
1059 GNULIB_FUTIMENS
1060 GNULIB_FSTATAT
1061 GNULIB_FSTAT
1062 GNULIB_FCHMODAT
1063 LIB_FDATASYNC
1064 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1065 NEXT_FCNTL_H
1066 REPLACE_OPENAT
1067 REPLACE_OPEN
1068 REPLACE_FCNTL
1069 HAVE_OPENAT
1070 HAVE_FCNTL
1071 GNULIB_OPENAT
1072 GNULIB_OPEN
1073 GNULIB_NONBLOCKING
1074 GNULIB_FCNTL
1075 GL_GENERATE_EXECINFO_H_FALSE
1076 GL_GENERATE_EXECINFO_H_TRUE
1077 LIB_EXECINFO
1078 EXECINFO_H
1079 HAVE_DIRENT_H
1080 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1081 NEXT_DIRENT_H
1082 PRAGMA_COLUMNS
1083 PRAGMA_SYSTEM_HEADER
1084 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1085 INCLUDE_NEXT
1086 REPLACE_FDOPENDIR
1087 REPLACE_DIRFD
1088 REPLACE_CLOSEDIR
1089 REPLACE_OPENDIR
1090 HAVE_ALPHASORT
1091 HAVE_SCANDIR
1092 HAVE_FDOPENDIR
1093 HAVE_DECL_FDOPENDIR
1094 HAVE_DECL_DIRFD
1095 HAVE_CLOSEDIR
1096 HAVE_REWINDDIR
1097 HAVE_READDIR
1098 HAVE_OPENDIR
1099 GNULIB_ALPHASORT
1100 GNULIB_SCANDIR
1101 GNULIB_FDOPENDIR
1102 GNULIB_DIRFD
1103 GNULIB_CLOSEDIR
1104 GNULIB_REWINDDIR
1105 GNULIB_READDIR
1106 GNULIB_OPENDIR
1107 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1108 UNISTD_H_HAVE_WINSOCK2_H
1109 REPLACE_WRITE
1110 REPLACE_USLEEP
1111 REPLACE_UNLINKAT
1112 REPLACE_UNLINK
1113 REPLACE_TTYNAME_R
1114 REPLACE_SYMLINK
1115 REPLACE_SLEEP
1116 REPLACE_RMDIR
1117 REPLACE_READLINK
1118 REPLACE_READ
1119 REPLACE_PWRITE
1120 REPLACE_PREAD
1121 REPLACE_LSEEK
1122 REPLACE_LINKAT
1123 REPLACE_LINK
1124 REPLACE_LCHOWN
1125 REPLACE_ISATTY
1126 REPLACE_GETPAGESIZE
1127 REPLACE_GETGROUPS
1128 REPLACE_GETLOGIN_R
1129 REPLACE_GETDOMAINNAME
1130 REPLACE_GETCWD
1131 REPLACE_FTRUNCATE
1132 REPLACE_FCHOWNAT
1133 REPLACE_DUP2
1134 REPLACE_DUP
1135 REPLACE_CLOSE
1136 REPLACE_CHOWN
1137 HAVE_SYS_PARAM_H
1138 HAVE_OS_H
1139 HAVE_DECL_TTYNAME_R
1140 HAVE_DECL_SETHOSTNAME
1141 HAVE_DECL_GETUSERSHELL
1142 HAVE_DECL_GETPAGESIZE
1143 HAVE_DECL_GETLOGIN_R
1144 HAVE_DECL_GETDOMAINNAME
1145 HAVE_DECL_FDATASYNC
1146 HAVE_DECL_FCHDIR
1147 HAVE_DECL_ENVIRON
1148 HAVE_USLEEP
1149 HAVE_UNLINKAT
1150 HAVE_SYMLINKAT
1151 HAVE_SYMLINK
1152 HAVE_SLEEP
1153 HAVE_SETHOSTNAME
1154 HAVE_READLINKAT
1155 HAVE_READLINK
1156 HAVE_PWRITE
1157 HAVE_PREAD
1158 HAVE_PIPE2
1159 HAVE_PIPE
1160 HAVE_LINKAT
1161 HAVE_LINK
1162 HAVE_LCHOWN
1163 HAVE_GROUP_MEMBER
1164 HAVE_GETPAGESIZE
1165 HAVE_GETLOGIN
1166 HAVE_GETHOSTNAME
1167 HAVE_GETGROUPS
1168 HAVE_GETDTABLESIZE
1169 HAVE_FTRUNCATE
1170 HAVE_FSYNC
1171 HAVE_FDATASYNC
1172 HAVE_FCHOWNAT
1173 HAVE_FCHDIR
1174 HAVE_FACCESSAT
1175 HAVE_EUIDACCESS
1176 HAVE_DUP3
1177 HAVE_DUP2
1178 HAVE_CHOWN
1179 GNULIB_WRITE
1180 GNULIB_USLEEP
1181 GNULIB_UNLINKAT
1182 GNULIB_UNLINK
1183 GNULIB_UNISTD_H_SIGPIPE
1184 GNULIB_UNISTD_H_NONBLOCKING
1185 GNULIB_TTYNAME_R
1186 GNULIB_SYMLINKAT
1187 GNULIB_SYMLINK
1188 GNULIB_SLEEP
1189 GNULIB_SETHOSTNAME
1190 GNULIB_RMDIR
1191 GNULIB_READLINKAT
1192 GNULIB_READLINK
1193 GNULIB_READ
1194 GNULIB_PWRITE
1195 GNULIB_PREAD
1196 GNULIB_PIPE2
1197 GNULIB_PIPE
1198 GNULIB_LSEEK
1199 GNULIB_LINKAT
1200 GNULIB_LINK
1201 GNULIB_LCHOWN
1202 GNULIB_ISATTY
1203 GNULIB_GROUP_MEMBER
1204 GNULIB_GETUSERSHELL
1205 GNULIB_GETPAGESIZE
1206 GNULIB_GETLOGIN_R
1207 GNULIB_GETLOGIN
1208 GNULIB_GETHOSTNAME
1209 GNULIB_GETGROUPS
1210 GNULIB_GETDTABLESIZE
1211 GNULIB_GETDOMAINNAME
1212 GNULIB_GETCWD
1213 GNULIB_FTRUNCATE
1214 GNULIB_FSYNC
1215 GNULIB_FDATASYNC
1216 GNULIB_FCHOWNAT
1217 GNULIB_FCHDIR
1218 GNULIB_FACCESSAT
1219 GNULIB_EUIDACCESS
1220 GNULIB_ENVIRON
1221 GNULIB_DUP3
1222 GNULIB_DUP2
1223 GNULIB_DUP
1224 GNULIB_CLOSE
1225 GNULIB_CHOWN
1226 GNULIB_CHDIR
1227 LIB_CLOCK_GETTIME
1228 GL_GENERATE_ALLOCA_H_FALSE
1229 GL_GENERATE_ALLOCA_H_TRUE
1230 ALLOCA_H
1231 ALLOCA
1232 GL_COND_LIBTOOL_FALSE
1233 GL_COND_LIBTOOL_TRUE
1234 POST_ALLOC_OBJ
1235 PRE_ALLOC_OBJ
1236 CYGWIN_OBJ
1237 RALLOC_OBJ
1238 OLDXMENU_DEPS
1239 LIBX_OTHER
1240 LIBXMENU
1241 OLDXMENU
1242 OLDXMENU_TARGET
1243 LIBXT_OTHER
1244 TOOLKIT_LIBW
1245 WIDGET_OBJ
1246 XOBJ
1247 XMENU_OBJ
1248 FONT_OBJ
1249 OTHER_FILES
1250 GNU_OBJC_CFLAGS
1251 ns_appsrc
1252 ns_appresdir
1253 ns_appbindir
1254 ns_appdir
1255 X_TOOLKIT_TYPE
1256 GNUSTEP_CFLAGS
1257 C_SWITCH_X_SITE
1258 LD_SWITCH_X_SITE
1259 gameuser
1260 gamedir
1261 bitmapdir
1262 archlibdir
1263 etcdir
1264 x_default_search_path
1265 lisppath
1266 locallisppath
1267 standardlisppath
1268 leimdir
1269 lispdir
1270 srcdir
1271 canonical
1272 configuration
1273 version
1274 copyright
1275 KRB4LIB
1276 DESLIB
1277 KRB5LIB
1278 CRYPTOLIB
1279 COM_ERRLIB
1280 LIBRESOLV
1281 LIBHESIOD
1282 TERMCAP_OBJ
1283 LIBS_TERMCAP
1284 BLESSMAIL_TARGET
1285 LIBS_MAIL
1286 liblockfile
1287 LIBXML2_LIBS
1288 LIBXML2_CFLAGS
1289 XINERAMA_LIBS
1290 XINERAMA_CFLAGS
1291 XRANDR_LIBS
1292 XRANDR_CFLAGS
1293 LIBXSM
1294 LIBGPM
1295 LIBGIF
1296 LIBTIFF
1297 LIBPNG
1298 LIBJPEG
1299 LIBXPM
1300 M17N_FLT_LIBS
1301 M17N_FLT_CFLAGS
1302 LIBOTF_LIBS
1303 LIBOTF_CFLAGS
1304 FREETYPE_LIBS
1305 FREETYPE_CFLAGS
1306 XFT_LIBS
1307 XFT_CFLAGS
1308 FONTCONFIG_LIBS
1309 FONTCONFIG_CFLAGS
1310 LIBXMU
1311 LIBXTR6
1312 LIBACL_LIBS
1313 LIBGNUTLS_LIBS
1314 LIBGNUTLS_CFLAGS
1315 LIBSELINUX_LIBS
1316 SETTINGS_LIBS
1317 SETTINGS_CFLAGS
1318 GOBJECT_LIBS
1319 GOBJECT_CFLAGS
1320 GCONF_LIBS
1321 GCONF_CFLAGS
1322 GSETTINGS_LIBS
1323 GSETTINGS_CFLAGS
1324 DBUS_OBJ
1325 DBUS_LIBS
1326 DBUS_CFLAGS
1327 GTK_OBJ
1328 GTK_LIBS
1329 GTK_CFLAGS
1330 IMAGEMAGICK_LIBS
1331 IMAGEMAGICK_CFLAGS
1332 RSVG_LIBS
1333 RSVG_CFLAGS
1334 LIB_PTHREAD
1335 VMLIMIT_OBJ
1336 GMALLOC_OBJ
1337 HAVE_XSERVER
1338 W32_RES_LINK
1339 W32_RES
1340 W32_LIBS
1341 W32_OBJ
1342 WINDRES
1343 NS_OBJC_OBJ
1344 NS_OBJ
1345 ns_self_contained
1346 INSTALL_ARCH_INDEP_EXTRA
1347 LIBS_GNUSTEP
1348 LD_SWITCH_X_SITE_RPATH
1349 XMKMF
1350 DEPFLAGS
1351 MKDEPDIR
1352 CFLAGS_SOUND
1353 ALSA_LIBS
1354 ALSA_CFLAGS
1355 LIBSOUND
1356 PKG_CONFIG
1357 LIB_MATH
1358 LIBS_SYSTEM
1359 C_SWITCH_SYSTEM
1360 UNEXEC_OBJ
1361 C_SWITCH_MACHINE
1362 LD_SWITCH_SYSTEM
1363 CANNOT_DUMP
1364 INFO_OPTS
1365 INFO_EXT
1366 HAVE_MAKEINFO
1367 PAXCTL
1368 GZIP_PROG
1369 INSTALL_INFO
1370 LN_S_FILEONLY
1371 GNULIB_WARN_CFLAGS
1372 WARN_CFLAGS
1373 WERROR_CFLAGS
1374 RANLIB
1375 ARFLAGS
1376 AR
1377 EGREP
1378 GREP
1379 CPP
1380 am__fastdepCC_FALSE
1381 am__fastdepCC_TRUE
1382 CCDEPMODE
1383 AMDEPBACKSLASH
1384 AMDEP_FALSE
1385 AMDEP_TRUE
1386 am__quote
1387 am__include
1388 DEPDIR
1389 OBJEXT
1390 EXEEXT
1391 ac_ct_CC
1392 CPPFLAGS
1393 LDFLAGS
1394 CFLAGS
1395 CC
1396 host_os
1397 host_vendor
1398 host_cpu
1399 host
1400 build_os
1401 build_vendor
1402 build_cpu
1403 build
1404 PROFILING_CFLAGS
1405 GZIP_INFO
1406 cache_file
1407 am__untar
1408 am__tar
1409 AMTAR
1410 am__leading_dot
1411 SET_MAKE
1412 AWK
1413 mkdir_p
1414 MKDIR_P
1415 INSTALL_STRIP_PROGRAM
1416 STRIP
1417 install_sh
1418 MAKEINFO
1419 AUTOHEADER
1420 AUTOMAKE
1421 AUTOCONF
1422 ACLOCAL
1423 VERSION
1424 PACKAGE
1425 CYGPATH_W
1426 am__isrc
1427 INSTALL_DATA
1428 INSTALL_SCRIPT
1429 INSTALL_PROGRAM
1430 target_alias
1431 host_alias
1432 build_alias
1433 LIBS
1434 ECHO_T
1435 ECHO_N
1436 ECHO_C
1437 DEFS
1438 mandir
1439 localedir
1440 libdir
1441 psdir
1442 pdfdir
1443 dvidir
1444 htmldir
1445 infodir
1446 docdir
1447 oldincludedir
1448 includedir
1449 localstatedir
1450 sharedstatedir
1451 sysconfdir
1452 datadir
1453 datarootdir
1454 libexecdir
1455 sbindir
1456 bindir
1457 program_transform_name
1458 prefix
1459 exec_prefix
1460 PACKAGE_URL
1461 PACKAGE_BUGREPORT
1462 PACKAGE_STRING
1463 PACKAGE_VERSION
1464 PACKAGE_TARNAME
1465 PACKAGE_NAME
1466 PATH_SEPARATOR
1467 SHELL'
1468 ac_subst_files='deps_frag
1469 lisp_frag'
1470 ac_user_opts='
1471 enable_option_checking
1472 with_all
1473 with_pop
1474 with_kerberos
1475 with_kerberos5
1476 with_hesiod
1477 with_mmdf
1478 with_mail_unlink
1479 with_mailhost
1480 with_sound
1481 with_x_toolkit
1482 with_wide_int
1483 with_xpm
1484 with_jpeg
1485 with_tiff
1486 with_gif
1487 with_png
1488 with_rsvg
1489 with_xml2
1490 with_imagemagick
1491 with_xft
1492 with_libotf
1493 with_m17n_flt
1494 with_toolkit_scroll_bars
1495 with_xaw3d
1496 with_xim
1497 with_ns
1498 with_w32
1499 with_gpm
1500 with_dbus
1501 with_gconf
1502 with_gsettings
1503 with_selinux
1504 with_acl
1505 with_gnutls
1506 with_inotify
1507 with_makeinfo
1508 with_compress_info
1509 with_pkg_config_prog
1510 with_gameuser
1511 with_gnustep_conf
1512 enable_ns_self_contained
1513 enable_locallisppath
1514 enable_checking
1515 enable_check_lisp_object_type
1516 enable_profiling
1517 enable_autodepend
1518 enable_gtk_deprecation_warnings
1519 enable_dependency_tracking
1520 enable_largefile
1521 enable_gcc_warnings
1522 enable_link_time_optimization
1523 with_x
1524 '
1525 ac_precious_vars='build_alias
1526 host_alias
1527 target_alias
1528 CC
1529 CFLAGS
1530 LDFLAGS
1531 LIBS
1532 CPPFLAGS
1533 CPP
1534 XMKMF'
1535
1536
1537 # Initialize some variables set by options.
1538 ac_init_help=
1539 ac_init_version=false
1540 ac_unrecognized_opts=
1541 ac_unrecognized_sep=
1542 # The variables have the same names as the options, with
1543 # dashes changed to underlines.
1544 cache_file=/dev/null
1545 exec_prefix=NONE
1546 no_create=
1547 no_recursion=
1548 prefix=NONE
1549 program_prefix=NONE
1550 program_suffix=NONE
1551 program_transform_name=s,x,x,
1552 silent=
1553 site=
1554 srcdir=
1555 verbose=
1556 x_includes=NONE
1557 x_libraries=NONE
1558
1559 # Installation directory options.
1560 # These are left unexpanded so users can "make install exec_prefix=/foo"
1561 # and all the variables that are supposed to be based on exec_prefix
1562 # by default will actually change.
1563 # Use braces instead of parens because sh, perl, etc. also accept them.
1564 # (The list follows the same order as the GNU Coding Standards.)
1565 bindir='${exec_prefix}/bin'
1566 sbindir='${exec_prefix}/sbin'
1567 libexecdir='${exec_prefix}/libexec'
1568 datarootdir='${prefix}/share'
1569 datadir='${datarootdir}'
1570 sysconfdir='${prefix}/etc'
1571 sharedstatedir='${prefix}/com'
1572 localstatedir='${prefix}/var'
1573 includedir='${prefix}/include'
1574 oldincludedir='/usr/include'
1575 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1576 infodir='${datarootdir}/info'
1577 htmldir='${docdir}'
1578 dvidir='${docdir}'
1579 pdfdir='${docdir}'
1580 psdir='${docdir}'
1581 libdir='${exec_prefix}/lib'
1582 localedir='${datarootdir}/locale'
1583 mandir='${datarootdir}/man'
1584
1585 ac_prev=
1586 ac_dashdash=
1587 for ac_option
1588 do
1589 # If the previous option needs an argument, assign it.
1590 if test -n "$ac_prev"; then
1591 eval $ac_prev=\$ac_option
1592 ac_prev=
1593 continue
1594 fi
1595
1596 case $ac_option in
1597 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1598 *) ac_optarg=yes ;;
1599 esac
1600
1601 # Accept the important Cygnus configure options, so we can diagnose typos.
1602
1603 case $ac_dashdash$ac_option in
1604 --)
1605 ac_dashdash=yes ;;
1606
1607 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1608 ac_prev=bindir ;;
1609 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1610 bindir=$ac_optarg ;;
1611
1612 -build | --build | --buil | --bui | --bu)
1613 ac_prev=build_alias ;;
1614 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1615 build_alias=$ac_optarg ;;
1616
1617 -cache-file | --cache-file | --cache-fil | --cache-fi \
1618 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1619 ac_prev=cache_file ;;
1620 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1621 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1622 cache_file=$ac_optarg ;;
1623
1624 --config-cache | -C)
1625 cache_file=config.cache ;;
1626
1627 -datadir | --datadir | --datadi | --datad)
1628 ac_prev=datadir ;;
1629 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1630 datadir=$ac_optarg ;;
1631
1632 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1633 | --dataroo | --dataro | --datar)
1634 ac_prev=datarootdir ;;
1635 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1636 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1637 datarootdir=$ac_optarg ;;
1638
1639 -disable-* | --disable-*)
1640 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1641 # Reject names that are not valid shell variable names.
1642 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1643 as_fn_error "invalid feature name: $ac_useropt"
1644 ac_useropt_orig=$ac_useropt
1645 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1646 case $ac_user_opts in
1647 *"
1648 "enable_$ac_useropt"
1649 "*) ;;
1650 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1651 ac_unrecognized_sep=', ';;
1652 esac
1653 eval enable_$ac_useropt=no ;;
1654
1655 -docdir | --docdir | --docdi | --doc | --do)
1656 ac_prev=docdir ;;
1657 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1658 docdir=$ac_optarg ;;
1659
1660 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1661 ac_prev=dvidir ;;
1662 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1663 dvidir=$ac_optarg ;;
1664
1665 -enable-* | --enable-*)
1666 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1667 # Reject names that are not valid shell variable names.
1668 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1669 as_fn_error "invalid feature name: $ac_useropt"
1670 ac_useropt_orig=$ac_useropt
1671 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1672 case $ac_user_opts in
1673 *"
1674 "enable_$ac_useropt"
1675 "*) ;;
1676 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1677 ac_unrecognized_sep=', ';;
1678 esac
1679 eval enable_$ac_useropt=\$ac_optarg ;;
1680
1681 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1682 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1683 | --exec | --exe | --ex)
1684 ac_prev=exec_prefix ;;
1685 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1686 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1687 | --exec=* | --exe=* | --ex=*)
1688 exec_prefix=$ac_optarg ;;
1689
1690 -gas | --gas | --ga | --g)
1691 # Obsolete; use --with-gas.
1692 with_gas=yes ;;
1693
1694 -help | --help | --hel | --he | -h)
1695 ac_init_help=long ;;
1696 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1697 ac_init_help=recursive ;;
1698 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1699 ac_init_help=short ;;
1700
1701 -host | --host | --hos | --ho)
1702 ac_prev=host_alias ;;
1703 -host=* | --host=* | --hos=* | --ho=*)
1704 host_alias=$ac_optarg ;;
1705
1706 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1707 ac_prev=htmldir ;;
1708 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1709 | --ht=*)
1710 htmldir=$ac_optarg ;;
1711
1712 -includedir | --includedir | --includedi | --included | --include \
1713 | --includ | --inclu | --incl | --inc)
1714 ac_prev=includedir ;;
1715 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1716 | --includ=* | --inclu=* | --incl=* | --inc=*)
1717 includedir=$ac_optarg ;;
1718
1719 -infodir | --infodir | --infodi | --infod | --info | --inf)
1720 ac_prev=infodir ;;
1721 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1722 infodir=$ac_optarg ;;
1723
1724 -libdir | --libdir | --libdi | --libd)
1725 ac_prev=libdir ;;
1726 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1727 libdir=$ac_optarg ;;
1728
1729 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1730 | --libexe | --libex | --libe)
1731 ac_prev=libexecdir ;;
1732 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1733 | --libexe=* | --libex=* | --libe=*)
1734 libexecdir=$ac_optarg ;;
1735
1736 -localedir | --localedir | --localedi | --localed | --locale)
1737 ac_prev=localedir ;;
1738 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1739 localedir=$ac_optarg ;;
1740
1741 -localstatedir | --localstatedir | --localstatedi | --localstated \
1742 | --localstate | --localstat | --localsta | --localst | --locals)
1743 ac_prev=localstatedir ;;
1744 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1745 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1746 localstatedir=$ac_optarg ;;
1747
1748 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1749 ac_prev=mandir ;;
1750 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1751 mandir=$ac_optarg ;;
1752
1753 -nfp | --nfp | --nf)
1754 # Obsolete; use --without-fp.
1755 with_fp=no ;;
1756
1757 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1758 | --no-cr | --no-c | -n)
1759 no_create=yes ;;
1760
1761 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1762 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1763 no_recursion=yes ;;
1764
1765 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1766 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1767 | --oldin | --oldi | --old | --ol | --o)
1768 ac_prev=oldincludedir ;;
1769 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1770 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1771 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1772 oldincludedir=$ac_optarg ;;
1773
1774 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1775 ac_prev=prefix ;;
1776 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1777 prefix=$ac_optarg ;;
1778
1779 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1780 | --program-pre | --program-pr | --program-p)
1781 ac_prev=program_prefix ;;
1782 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1783 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1784 program_prefix=$ac_optarg ;;
1785
1786 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1787 | --program-suf | --program-su | --program-s)
1788 ac_prev=program_suffix ;;
1789 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1790 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1791 program_suffix=$ac_optarg ;;
1792
1793 -program-transform-name | --program-transform-name \
1794 | --program-transform-nam | --program-transform-na \
1795 | --program-transform-n | --program-transform- \
1796 | --program-transform | --program-transfor \
1797 | --program-transfo | --program-transf \
1798 | --program-trans | --program-tran \
1799 | --progr-tra | --program-tr | --program-t)
1800 ac_prev=program_transform_name ;;
1801 -program-transform-name=* | --program-transform-name=* \
1802 | --program-transform-nam=* | --program-transform-na=* \
1803 | --program-transform-n=* | --program-transform-=* \
1804 | --program-transform=* | --program-transfor=* \
1805 | --program-transfo=* | --program-transf=* \
1806 | --program-trans=* | --program-tran=* \
1807 | --progr-tra=* | --program-tr=* | --program-t=*)
1808 program_transform_name=$ac_optarg ;;
1809
1810 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1811 ac_prev=pdfdir ;;
1812 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1813 pdfdir=$ac_optarg ;;
1814
1815 -psdir | --psdir | --psdi | --psd | --ps)
1816 ac_prev=psdir ;;
1817 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1818 psdir=$ac_optarg ;;
1819
1820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1821 | -silent | --silent | --silen | --sile | --sil)
1822 silent=yes ;;
1823
1824 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1825 ac_prev=sbindir ;;
1826 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1827 | --sbi=* | --sb=*)
1828 sbindir=$ac_optarg ;;
1829
1830 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1831 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1832 | --sharedst | --shareds | --shared | --share | --shar \
1833 | --sha | --sh)
1834 ac_prev=sharedstatedir ;;
1835 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1836 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1837 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1838 | --sha=* | --sh=*)
1839 sharedstatedir=$ac_optarg ;;
1840
1841 -site | --site | --sit)
1842 ac_prev=site ;;
1843 -site=* | --site=* | --sit=*)
1844 site=$ac_optarg ;;
1845
1846 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1847 ac_prev=srcdir ;;
1848 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1849 srcdir=$ac_optarg ;;
1850
1851 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1852 | --syscon | --sysco | --sysc | --sys | --sy)
1853 ac_prev=sysconfdir ;;
1854 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1855 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1856 sysconfdir=$ac_optarg ;;
1857
1858 -target | --target | --targe | --targ | --tar | --ta | --t)
1859 ac_prev=target_alias ;;
1860 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1861 target_alias=$ac_optarg ;;
1862
1863 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1864 verbose=yes ;;
1865
1866 -version | --version | --versio | --versi | --vers | -V)
1867 ac_init_version=: ;;
1868
1869 -with-* | --with-*)
1870 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1871 # Reject names that are not valid shell variable names.
1872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1873 as_fn_error "invalid package name: $ac_useropt"
1874 ac_useropt_orig=$ac_useropt
1875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1876 case $ac_user_opts in
1877 *"
1878 "with_$ac_useropt"
1879 "*) ;;
1880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1881 ac_unrecognized_sep=', ';;
1882 esac
1883 eval with_$ac_useropt=\$ac_optarg ;;
1884
1885 -without-* | --without-*)
1886 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1887 # Reject names that are not valid shell variable names.
1888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1889 as_fn_error "invalid package name: $ac_useropt"
1890 ac_useropt_orig=$ac_useropt
1891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1892 case $ac_user_opts in
1893 *"
1894 "with_$ac_useropt"
1895 "*) ;;
1896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1897 ac_unrecognized_sep=', ';;
1898 esac
1899 eval with_$ac_useropt=no ;;
1900
1901 --x)
1902 # Obsolete; use --with-x.
1903 with_x=yes ;;
1904
1905 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1906 | --x-incl | --x-inc | --x-in | --x-i)
1907 ac_prev=x_includes ;;
1908 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1909 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1910 x_includes=$ac_optarg ;;
1911
1912 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1913 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1914 ac_prev=x_libraries ;;
1915 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1916 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1917 x_libraries=$ac_optarg ;;
1918
1919 -*) as_fn_error "unrecognized option: \`$ac_option'
1920 Try \`$0 --help' for more information."
1921 ;;
1922
1923 *=*)
1924 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1925 # Reject names that are not valid shell variable names.
1926 case $ac_envvar in #(
1927 '' | [0-9]* | *[!_$as_cr_alnum]* )
1928 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1929 esac
1930 eval $ac_envvar=\$ac_optarg
1931 export $ac_envvar ;;
1932
1933 *)
1934 # FIXME: should be removed in autoconf 3.0.
1935 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1936 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1937 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1938 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1939 ;;
1940
1941 esac
1942 done
1943
1944 if test -n "$ac_prev"; then
1945 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1946 as_fn_error "missing argument to $ac_option"
1947 fi
1948
1949 if test -n "$ac_unrecognized_opts"; then
1950 case $enable_option_checking in
1951 no) ;;
1952 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1953 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1954 esac
1955 fi
1956
1957 # Check all directory arguments for consistency.
1958 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1959 datadir sysconfdir sharedstatedir localstatedir includedir \
1960 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1961 libdir localedir mandir
1962 do
1963 eval ac_val=\$$ac_var
1964 # Remove trailing slashes.
1965 case $ac_val in
1966 */ )
1967 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1968 eval $ac_var=\$ac_val;;
1969 esac
1970 # Be sure to have absolute directory names.
1971 case $ac_val in
1972 [\\/$]* | ?:[\\/]* ) continue;;
1973 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1974 esac
1975 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1976 done
1977
1978 # There might be people who depend on the old broken behavior: `$host'
1979 # used to hold the argument of --host etc.
1980 # FIXME: To remove some day.
1981 build=$build_alias
1982 host=$host_alias
1983 target=$target_alias
1984
1985 # FIXME: To remove some day.
1986 if test "x$host_alias" != x; then
1987 if test "x$build_alias" = x; then
1988 cross_compiling=maybe
1989 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1990 If a cross compiler is detected then cross compile mode will be used." >&2
1991 elif test "x$build_alias" != "x$host_alias"; then
1992 cross_compiling=yes
1993 fi
1994 fi
1995
1996 ac_tool_prefix=
1997 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1998
1999 test "$silent" = yes && exec 6>/dev/null
2000
2001
2002 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2003 ac_ls_di=`ls -di .` &&
2004 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2005 as_fn_error "working directory cannot be determined"
2006 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2007 as_fn_error "pwd does not report name of working directory"
2008
2009
2010 # Find the source files, if location was not specified.
2011 if test -z "$srcdir"; then
2012 ac_srcdir_defaulted=yes
2013 # Try the directory containing this script, then the parent directory.
2014 ac_confdir=`$as_dirname -- "$as_myself" ||
2015 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2016 X"$as_myself" : 'X\(//\)[^/]' \| \
2017 X"$as_myself" : 'X\(//\)$' \| \
2018 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2019 $as_echo X"$as_myself" |
2020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2021 s//\1/
2022 q
2023 }
2024 /^X\(\/\/\)[^/].*/{
2025 s//\1/
2026 q
2027 }
2028 /^X\(\/\/\)$/{
2029 s//\1/
2030 q
2031 }
2032 /^X\(\/\).*/{
2033 s//\1/
2034 q
2035 }
2036 s/.*/./; q'`
2037 srcdir=$ac_confdir
2038 if test ! -r "$srcdir/$ac_unique_file"; then
2039 srcdir=..
2040 fi
2041 else
2042 ac_srcdir_defaulted=no
2043 fi
2044 if test ! -r "$srcdir/$ac_unique_file"; then
2045 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2046 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2047 fi
2048 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2049 ac_abs_confdir=`(
2050 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2051 pwd)`
2052 # When building in place, set srcdir=.
2053 if test "$ac_abs_confdir" = "$ac_pwd"; then
2054 srcdir=.
2055 fi
2056 # Remove unnecessary trailing slashes from srcdir.
2057 # Double slashes in file names in object file debugging info
2058 # mess up M-x gdb in Emacs.
2059 case $srcdir in
2060 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2061 esac
2062 for ac_var in $ac_precious_vars; do
2063 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2064 eval ac_env_${ac_var}_value=\$${ac_var}
2065 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2066 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2067 done
2068
2069 #
2070 # Report the --help message.
2071 #
2072 if test "$ac_init_help" = "long"; then
2073 # Omit some internal or obsolete options to make the list less imposing.
2074 # This message is too long to be a string in the A/UX 3.1 sh.
2075 cat <<_ACEOF
2076 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2077
2078 Usage: $0 [OPTION]... [VAR=VALUE]...
2079
2080 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2081 VAR=VALUE. See below for descriptions of some of the useful variables.
2082
2083 Defaults for the options are specified in brackets.
2084
2085 Configuration:
2086 -h, --help display this help and exit
2087 --help=short display options specific to this package
2088 --help=recursive display the short help of all the included packages
2089 -V, --version display version information and exit
2090 -q, --quiet, --silent do not print \`checking...' messages
2091 --cache-file=FILE cache test results in FILE [disabled]
2092 -C, --config-cache alias for \`--cache-file=config.cache'
2093 -n, --no-create do not create output files
2094 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2095
2096 Installation directories:
2097 --prefix=PREFIX install architecture-independent files in PREFIX
2098 [$ac_default_prefix]
2099 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2100 [PREFIX]
2101
2102 By default, \`make install' will install all the files in
2103 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2104 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2105 for instance \`--prefix=\$HOME'.
2106
2107 For better control, use the options below.
2108
2109 Fine tuning of the installation directories:
2110 --bindir=DIR user executables [EPREFIX/bin]
2111 --sbindir=DIR system admin executables [EPREFIX/sbin]
2112 --libexecdir=DIR program executables [EPREFIX/libexec]
2113 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2114 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2115 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2116 --libdir=DIR object code libraries [EPREFIX/lib]
2117 --includedir=DIR C header files [PREFIX/include]
2118 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2119 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2120 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2121 --infodir=DIR info documentation [DATAROOTDIR/info]
2122 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2123 --mandir=DIR man documentation [DATAROOTDIR/man]
2124 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2125 --htmldir=DIR html documentation [DOCDIR]
2126 --dvidir=DIR dvi documentation [DOCDIR]
2127 --pdfdir=DIR pdf documentation [DOCDIR]
2128 --psdir=DIR ps documentation [DOCDIR]
2129 _ACEOF
2130
2131 cat <<\_ACEOF
2132
2133 Program names:
2134 --program-prefix=PREFIX prepend PREFIX to installed program names
2135 --program-suffix=SUFFIX append SUFFIX to installed program names
2136 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2137
2138 X features:
2139 --x-includes=DIR X include files are in DIR
2140 --x-libraries=DIR X library files are in DIR
2141
2142 System types:
2143 --build=BUILD configure for building on BUILD [guessed]
2144 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2145 _ACEOF
2146 fi
2147
2148 if test -n "$ac_init_help"; then
2149 case $ac_init_help in
2150 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2151 esac
2152 cat <<\_ACEOF
2153
2154 Optional Features:
2155 --disable-option-checking ignore unrecognized --enable/--with options
2156 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2157 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2158 --disable-ns-self-contained
2159 disable self contained build under NeXTstep
2160 --enable-locallisppath=PATH
2161 directories Emacs should search for lisp files
2162 specific to this site
2163 --enable-checking[=LIST]
2164 enable expensive run-time checks. With LIST, enable
2165 only specific categories of checks. Categories are:
2166 all,yes,no. Flags are: stringbytes, stringoverrun,
2167 stringfreelist, xmallocoverrun, conslist, glyphs
2168 --enable-check-lisp-object-type
2169 enable compile time checks for the Lisp_Object data
2170 type. This is useful for development for catching
2171 certain types of bugs.
2172 --enable-profiling build emacs with low-level, gprof profiling support.
2173 Mainly useful for debugging Emacs itself. May not
2174 work on all platforms. Stops profiler.el working.
2175 --enable-autodepend automatically generate dependencies to .h-files.
2176 Requires GNU Make and Gcc. Enabled if GNU Make and
2177 Gcc is found
2178 --enable-gtk-deprecation-warnings
2179 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2180 --disable-dependency-tracking speeds up one-time build
2181 --enable-dependency-tracking do not reject slow dependency extractors
2182 --disable-largefile omit support for large files
2183 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2184 intended for developers, and may generate false
2185 alarms when used with older or non-GNU development
2186 tools.
2187 --enable-link-time-optimization
2188 build emacs with link-time optimization. This is
2189 supported only for GCC since 4.5.0.
2190
2191 Optional Packages:
2192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2194 --without-all omit almost all features and build small executable
2195 with minimal dependencies
2196 --without-pop don't support POP mail retrieval with movemail
2197 --with-kerberos support Kerberos-authenticated POP
2198 --with-kerberos5 support Kerberos version 5 authenticated POP
2199 --with-hesiod support Hesiod to get the POP server host
2200 --with-mmdf support MMDF mailboxes
2201 --with-mail-unlink unlink, rather than empty, mail spool after reading
2202 --with-mailhost=HOSTNAME
2203 string giving default POP mail host
2204 --without-sound don't compile with sound support
2205 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2206 gtk3, lucid or athena, motif, no)
2207 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2208 --without-xpm don't compile with XPM image support
2209 --without-jpeg don't compile with JPEG image support
2210 --without-tiff don't compile with TIFF image support
2211 --without-gif don't compile with GIF image support
2212 --without-png don't compile with PNG image support
2213 --without-rsvg don't compile with SVG image support
2214 --without-xml2 don't compile with XML parsing support
2215 --without-imagemagick don't compile with ImageMagick image support
2216 --without-xft don't use XFT for anti aliased fonts
2217 --without-libotf don't use libotf for OpenType font support
2218 --without-m17n-flt don't use m17n-flt for text shaping
2219 --without-toolkit-scroll-bars
2220 don't use Motif or Xaw3d scroll bars
2221 --without-xaw3d don't use Xaw3d
2222 --without-xim don't use X11 XIM
2223 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2224 --with-w32 use native MS Windows GUI
2225 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2226 console
2227 --without-dbus don't compile with D-Bus support
2228 --without-gconf don't compile with GConf support
2229 --without-gsettings don't compile with GSettings support
2230 --without-selinux don't compile with SELinux support
2231 --without-acl don't compile with ACL support
2232 --without-gnutls don't use -lgnutls for SSL/TLS support
2233 --without-inotify don't compile with inotify (file-watch) support
2234 --without-makeinfo don't require makeinfo for building manuals
2235 --without-compress-info don't compress the installed Info pages
2236 --with-pkg-config-prog=FILENAME
2237 file name of pkg-config for finding GTK and librsvg
2238 --with-gameuser=USER user for shared game score files
2239 --with-gnustep-conf=FILENAME
2240 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2241 or /etc/GNUstep/GNUstep.conf
2242 --with-x use the X Window System
2243
2244 Some influential environment variables:
2245 CC C compiler command
2246 CFLAGS C compiler flags
2247 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2248 nonstandard directory <lib dir>
2249 LIBS libraries to pass to the linker, e.g. -l<library>
2250 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2251 you have headers in a nonstandard directory <include dir>
2252 CPP C preprocessor
2253 XMKMF Path to xmkmf, Makefile generator for X Window System
2254
2255 Use these variables to override the choices made by `configure' or to help
2256 it to find libraries and programs with nonstandard names/locations.
2257
2258 Report bugs to the package provider.
2259 _ACEOF
2260 ac_status=$?
2261 fi
2262
2263 if test "$ac_init_help" = "recursive"; then
2264 # If there are subdirs, report their specific --help.
2265 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2266 test -d "$ac_dir" ||
2267 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2268 continue
2269 ac_builddir=.
2270
2271 case "$ac_dir" in
2272 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2273 *)
2274 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2275 # A ".." for each directory in $ac_dir_suffix.
2276 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2277 case $ac_top_builddir_sub in
2278 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2279 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2280 esac ;;
2281 esac
2282 ac_abs_top_builddir=$ac_pwd
2283 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2284 # for backward compatibility:
2285 ac_top_builddir=$ac_top_build_prefix
2286
2287 case $srcdir in
2288 .) # We are building in place.
2289 ac_srcdir=.
2290 ac_top_srcdir=$ac_top_builddir_sub
2291 ac_abs_top_srcdir=$ac_pwd ;;
2292 [\\/]* | ?:[\\/]* ) # Absolute name.
2293 ac_srcdir=$srcdir$ac_dir_suffix;
2294 ac_top_srcdir=$srcdir
2295 ac_abs_top_srcdir=$srcdir ;;
2296 *) # Relative name.
2297 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2298 ac_top_srcdir=$ac_top_build_prefix$srcdir
2299 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2300 esac
2301 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2302
2303 cd "$ac_dir" || { ac_status=$?; continue; }
2304 # Check for guested configure.
2305 if test -f "$ac_srcdir/configure.gnu"; then
2306 echo &&
2307 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2308 elif test -f "$ac_srcdir/configure"; then
2309 echo &&
2310 $SHELL "$ac_srcdir/configure" --help=recursive
2311 else
2312 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2313 fi || ac_status=$?
2314 cd "$ac_pwd" || { ac_status=$?; break; }
2315 done
2316 fi
2317
2318 test -n "$ac_init_help" && exit $ac_status
2319 if $ac_init_version; then
2320 cat <<\_ACEOF
2321 emacs configure 24.3.50
2322 generated by GNU Autoconf 2.65
2323
2324 Copyright (C) 2009 Free Software Foundation, Inc.
2325 This configure script is free software; the Free Software Foundation
2326 gives unlimited permission to copy, distribute and modify it.
2327 _ACEOF
2328 exit
2329 fi
2330
2331 ## ------------------------ ##
2332 ## Autoconf initialization. ##
2333 ## ------------------------ ##
2334
2335 # ac_fn_c_try_compile LINENO
2336 # --------------------------
2337 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2338 ac_fn_c_try_compile ()
2339 {
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 rm -f conftest.$ac_objext
2342 if { { ac_try="$ac_compile"
2343 case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2346 esac
2347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348 $as_echo "$ac_try_echo"; } >&5
2349 (eval "$ac_compile") 2>conftest.err
2350 ac_status=$?
2351 if test -s conftest.err; then
2352 grep -v '^ *+' conftest.err >conftest.er1
2353 cat conftest.er1 >&5
2354 mv -f conftest.er1 conftest.err
2355 fi
2356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2357 test $ac_status = 0; } && {
2358 test -z "$ac_c_werror_flag" ||
2359 test ! -s conftest.err
2360 } && test -s conftest.$ac_objext; then :
2361 ac_retval=0
2362 else
2363 $as_echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 ac_retval=1
2367 fi
2368 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 as_fn_set_status $ac_retval
2370
2371 } # ac_fn_c_try_compile
2372
2373 # ac_fn_c_try_cpp LINENO
2374 # ----------------------
2375 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2376 ac_fn_c_try_cpp ()
2377 {
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 if { { ac_try="$ac_cpp conftest.$ac_ext"
2380 case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383 esac
2384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385 $as_echo "$ac_try_echo"; } >&5
2386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2387 ac_status=$?
2388 if test -s conftest.err; then
2389 grep -v '^ *+' conftest.err >conftest.er1
2390 cat conftest.er1 >&5
2391 mv -f conftest.er1 conftest.err
2392 fi
2393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2394 test $ac_status = 0; } >/dev/null && {
2395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2396 test ! -s conftest.err
2397 }; then :
2398 ac_retval=0
2399 else
2400 $as_echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_retval=1
2404 fi
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406 as_fn_set_status $ac_retval
2407
2408 } # ac_fn_c_try_cpp
2409
2410 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2411 # -------------------------------------------------------
2412 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2413 # the include files in INCLUDES and setting the cache variable VAR
2414 # accordingly.
2415 ac_fn_c_check_header_mongrel ()
2416 {
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420 $as_echo_n "checking for $2... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2423 fi
2424 eval ac_res=\$$3
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2426 $as_echo "$ac_res" >&6; }
2427 else
2428 # Is the header compilable?
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2430 $as_echo_n "checking $2 usability... " >&6; }
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2433 $4
2434 #include <$2>
2435 _ACEOF
2436 if ac_fn_c_try_compile "$LINENO"; then :
2437 ac_header_compiler=yes
2438 else
2439 ac_header_compiler=no
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2443 $as_echo "$ac_header_compiler" >&6; }
2444
2445 # Is the header present?
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2447 $as_echo_n "checking $2 presence... " >&6; }
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2450 #include <$2>
2451 _ACEOF
2452 if ac_fn_c_try_cpp "$LINENO"; then :
2453 ac_header_preproc=yes
2454 else
2455 ac_header_preproc=no
2456 fi
2457 rm -f conftest.err conftest.$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2459 $as_echo "$ac_header_preproc" >&6; }
2460
2461 # So? What about this header?
2462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2463 yes:no: )
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2465 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2467 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2468 ;;
2469 no:yes:* )
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2471 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2473 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2475 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2477 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2479 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2480 ;;
2481 esac
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 eval "$3=\$ac_header_compiler"
2488 fi
2489 eval ac_res=\$$3
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 fi
2493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494
2495 } # ac_fn_c_check_header_mongrel
2496
2497 # ac_fn_c_try_run LINENO
2498 # ----------------------
2499 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2500 # that executables *can* be run.
2501 ac_fn_c_try_run ()
2502 {
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 if { { ac_try="$ac_link"
2505 case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510 $as_echo "$ac_try_echo"; } >&5
2511 (eval "$ac_link") 2>&5
2512 ac_status=$?
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2515 { { case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521 (eval "$ac_try") 2>&5
2522 ac_status=$?
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; }; }; then :
2525 ac_retval=0
2526 else
2527 $as_echo "$as_me: program exited with status $ac_status" >&5
2528 $as_echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 ac_retval=$ac_status
2532 fi
2533 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 as_fn_set_status $ac_retval
2536
2537 } # ac_fn_c_try_run
2538
2539 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2540 # -------------------------------------------------------
2541 # Tests whether HEADER exists and can be compiled using the include files in
2542 # INCLUDES, setting the cache variable VAR accordingly.
2543 ac_fn_c_check_header_compile ()
2544 {
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2553 $4
2554 #include <$2>
2555 _ACEOF
2556 if ac_fn_c_try_compile "$LINENO"; then :
2557 eval "$3=yes"
2558 else
2559 eval "$3=no"
2560 fi
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 fi
2563 eval ac_res=\$$3
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565 $as_echo "$ac_res" >&6; }
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567
2568 } # ac_fn_c_check_header_compile
2569
2570 # ac_fn_c_try_link LINENO
2571 # -----------------------
2572 # Try to link conftest.$ac_ext, and return whether this succeeded.
2573 ac_fn_c_try_link ()
2574 {
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 rm -f conftest.$ac_objext conftest$ac_exeext
2577 if { { ac_try="$ac_link"
2578 case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2581 esac
2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584 (eval "$ac_link") 2>conftest.err
2585 ac_status=$?
2586 if test -s conftest.err; then
2587 grep -v '^ *+' conftest.err >conftest.er1
2588 cat conftest.er1 >&5
2589 mv -f conftest.er1 conftest.err
2590 fi
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; } && {
2593 test -z "$ac_c_werror_flag" ||
2594 test ! -s conftest.err
2595 } && test -s conftest$ac_exeext && {
2596 test "$cross_compiling" = yes ||
2597 $as_test_x conftest$ac_exeext
2598 }; then :
2599 ac_retval=0
2600 else
2601 $as_echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 ac_retval=1
2605 fi
2606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2608 # interfere with the next link command; also delete a directory that is
2609 # left behind by Apple's compiler. We do this before executing the actions.
2610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612 as_fn_set_status $ac_retval
2613
2614 } # ac_fn_c_try_link
2615
2616 # ac_fn_c_check_decl LINENO SYMBOL VAR
2617 # ------------------------------------
2618 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2619 ac_fn_c_check_decl ()
2620 {
2621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2623 $as_echo_n "checking whether $2 is declared... " >&6; }
2624 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2629 $4
2630 int
2631 main ()
2632 {
2633 #ifndef $2
2634 (void) $2;
2635 #endif
2636
2637 ;
2638 return 0;
2639 }
2640 _ACEOF
2641 if ac_fn_c_try_compile "$LINENO"; then :
2642 eval "$3=yes"
2643 else
2644 eval "$3=no"
2645 fi
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 fi
2648 eval ac_res=\$$3
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652
2653 } # ac_fn_c_check_decl
2654
2655 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2656 # ----------------------------------------------
2657 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2658 ac_fn_c_check_header_preproc ()
2659 {
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662 $as_echo_n "checking for $2... " >&6; }
2663 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2668 #include <$2>
2669 _ACEOF
2670 if ac_fn_c_try_cpp "$LINENO"; then :
2671 eval "$3=yes"
2672 else
2673 eval "$3=no"
2674 fi
2675 rm -f conftest.err conftest.$ac_ext
2676 fi
2677 eval ac_res=\$$3
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2681
2682 } # ac_fn_c_check_header_preproc
2683
2684 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2685 # ----------------------------------------------------
2686 # Tries to find if the field MEMBER exists in type AGGR, after including
2687 # INCLUDES, setting cache variable VAR accordingly.
2688 ac_fn_c_check_member ()
2689 {
2690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2692 $as_echo_n "checking for $2.$3... " >&6; }
2693 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h. */
2698 $5
2699 int
2700 main ()
2701 {
2702 static $2 ac_aggr;
2703 if (ac_aggr.$3)
2704 return 0;
2705 ;
2706 return 0;
2707 }
2708 _ACEOF
2709 if ac_fn_c_try_compile "$LINENO"; then :
2710 eval "$4=yes"
2711 else
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 $5
2715 int
2716 main ()
2717 {
2718 static $2 ac_aggr;
2719 if (sizeof ac_aggr.$3)
2720 return 0;
2721 ;
2722 return 0;
2723 }
2724 _ACEOF
2725 if ac_fn_c_try_compile "$LINENO"; then :
2726 eval "$4=yes"
2727 else
2728 eval "$4=no"
2729 fi
2730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 fi
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 fi
2734 eval ac_res=\$$4
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2736 $as_echo "$ac_res" >&6; }
2737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2738
2739 } # ac_fn_c_check_member
2740
2741 # ac_fn_c_check_func LINENO FUNC VAR
2742 # ----------------------------------
2743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2744 ac_fn_c_check_func ()
2745 {
2746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2748 $as_echo_n "checking for $2... " >&6; }
2749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2754 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2756 #define $2 innocuous_$2
2757
2758 /* System header to define __stub macros and hopefully few prototypes,
2759 which can conflict with char $2 (); below.
2760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2761 <limits.h> exists even on freestanding compilers. */
2762
2763 #ifdef __STDC__
2764 # include <limits.h>
2765 #else
2766 # include <assert.h>
2767 #endif
2768
2769 #undef $2
2770
2771 /* Override any GCC internal prototype to avoid an error.
2772 Use char because int might match the return type of a GCC
2773 builtin and then its argument prototype would still apply. */
2774 #ifdef __cplusplus
2775 extern "C"
2776 #endif
2777 char $2 ();
2778 /* The GNU C library defines this for functions which it implements
2779 to always fail with ENOSYS. Some functions are actually named
2780 something starting with __ and the normal name is an alias. */
2781 #if defined __stub_$2 || defined __stub___$2
2782 choke me
2783 #endif
2784
2785 int
2786 main ()
2787 {
2788 return $2 ();
2789 ;
2790 return 0;
2791 }
2792 _ACEOF
2793 if ac_fn_c_try_link "$LINENO"; then :
2794 eval "$3=yes"
2795 else
2796 eval "$3=no"
2797 fi
2798 rm -f core conftest.err conftest.$ac_objext \
2799 conftest$ac_exeext conftest.$ac_ext
2800 fi
2801 eval ac_res=\$$3
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 $as_echo "$ac_res" >&6; }
2804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2805
2806 } # ac_fn_c_check_func
2807
2808 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2809 # -------------------------------------------
2810 # Tests whether TYPE exists after having included INCLUDES, setting cache
2811 # variable VAR accordingly.
2812 ac_fn_c_check_type ()
2813 {
2814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2816 $as_echo_n "checking for $2... " >&6; }
2817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 eval "$3=no"
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2823 $4
2824 int
2825 main ()
2826 {
2827 if (sizeof ($2))
2828 return 0;
2829 ;
2830 return 0;
2831 }
2832 _ACEOF
2833 if ac_fn_c_try_compile "$LINENO"; then :
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2836 $4
2837 int
2838 main ()
2839 {
2840 if (sizeof (($2)))
2841 return 0;
2842 ;
2843 return 0;
2844 }
2845 _ACEOF
2846 if ac_fn_c_try_compile "$LINENO"; then :
2847
2848 else
2849 eval "$3=yes"
2850 fi
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 fi
2853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854 fi
2855 eval ac_res=\$$3
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2857 $as_echo "$ac_res" >&6; }
2858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2859
2860 } # ac_fn_c_check_type
2861
2862 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2863 # --------------------------------------------
2864 # Tries to find the compile-time value of EXPR in a program that includes
2865 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2866 # computed
2867 ac_fn_c_compute_int ()
2868 {
2869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870 if test "$cross_compiling" = yes; then
2871 # Depending upon the size, compute the lo and hi bounds.
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2874 $4
2875 int
2876 main ()
2877 {
2878 static int test_array [1 - 2 * !(($2) >= 0)];
2879 test_array [0] = 0
2880
2881 ;
2882 return 0;
2883 }
2884 _ACEOF
2885 if ac_fn_c_try_compile "$LINENO"; then :
2886 ac_lo=0 ac_mid=0
2887 while :; do
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2890 $4
2891 int
2892 main ()
2893 {
2894 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2895 test_array [0] = 0
2896
2897 ;
2898 return 0;
2899 }
2900 _ACEOF
2901 if ac_fn_c_try_compile "$LINENO"; then :
2902 ac_hi=$ac_mid; break
2903 else
2904 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2905 if test $ac_lo -le $ac_mid; then
2906 ac_lo= ac_hi=
2907 break
2908 fi
2909 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2910 fi
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 done
2913 else
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915 /* end confdefs.h. */
2916 $4
2917 int
2918 main ()
2919 {
2920 static int test_array [1 - 2 * !(($2) < 0)];
2921 test_array [0] = 0
2922
2923 ;
2924 return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_c_try_compile "$LINENO"; then :
2928 ac_hi=-1 ac_mid=-1
2929 while :; do
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2932 $4
2933 int
2934 main ()
2935 {
2936 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2937 test_array [0] = 0
2938
2939 ;
2940 return 0;
2941 }
2942 _ACEOF
2943 if ac_fn_c_try_compile "$LINENO"; then :
2944 ac_lo=$ac_mid; break
2945 else
2946 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2947 if test $ac_mid -le $ac_hi; then
2948 ac_lo= ac_hi=
2949 break
2950 fi
2951 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2952 fi
2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 done
2955 else
2956 ac_lo= ac_hi=
2957 fi
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959 fi
2960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961 # Binary search between lo and hi bounds.
2962 while test "x$ac_lo" != "x$ac_hi"; do
2963 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h. */
2966 $4
2967 int
2968 main ()
2969 {
2970 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2971 test_array [0] = 0
2972
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 if ac_fn_c_try_compile "$LINENO"; then :
2978 ac_hi=$ac_mid
2979 else
2980 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2981 fi
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 done
2984 case $ac_lo in #((
2985 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2986 '') ac_retval=1 ;;
2987 esac
2988 else
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990 /* end confdefs.h. */
2991 $4
2992 static long int longval () { return $2; }
2993 static unsigned long int ulongval () { return $2; }
2994 #include <stdio.h>
2995 #include <stdlib.h>
2996 int
2997 main ()
2998 {
2999
3000 FILE *f = fopen ("conftest.val", "w");
3001 if (! f)
3002 return 1;
3003 if (($2) < 0)
3004 {
3005 long int i = longval ();
3006 if (i != ($2))
3007 return 1;
3008 fprintf (f, "%ld", i);
3009 }
3010 else
3011 {
3012 unsigned long int i = ulongval ();
3013 if (i != ($2))
3014 return 1;
3015 fprintf (f, "%lu", i);
3016 }
3017 /* Do not output a trailing newline, as this causes \r\n confusion
3018 on some platforms. */
3019 return ferror (f) || fclose (f) != 0;
3020
3021 ;
3022 return 0;
3023 }
3024 _ACEOF
3025 if ac_fn_c_try_run "$LINENO"; then :
3026 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3027 else
3028 ac_retval=1
3029 fi
3030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3031 conftest.$ac_objext conftest.beam conftest.$ac_ext
3032 rm -f conftest.val
3033
3034 fi
3035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3036 as_fn_set_status $ac_retval
3037
3038 } # ac_fn_c_compute_int
3039 cat >config.log <<_ACEOF
3040 This file contains any messages produced by compilers while
3041 running configure, to aid debugging if configure makes a mistake.
3042
3043 It was created by emacs $as_me 24.3.50, which was
3044 generated by GNU Autoconf 2.65. Invocation command line was
3045
3046 $ $0 $@
3047
3048 _ACEOF
3049 exec 5>>config.log
3050 {
3051 cat <<_ASUNAME
3052 ## --------- ##
3053 ## Platform. ##
3054 ## --------- ##
3055
3056 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3057 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3058 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3059 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3060 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3061
3062 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3063 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3064
3065 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3066 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3067 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3068 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3069 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3070 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3071 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3072
3073 _ASUNAME
3074
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 $as_echo "PATH: $as_dir"
3081 done
3082 IFS=$as_save_IFS
3083
3084 } >&5
3085
3086 cat >&5 <<_ACEOF
3087
3088
3089 ## ----------- ##
3090 ## Core tests. ##
3091 ## ----------- ##
3092
3093 _ACEOF
3094
3095
3096 # Keep a trace of the command line.
3097 # Strip out --no-create and --no-recursion so they do not pile up.
3098 # Strip out --silent because we don't want to record it for future runs.
3099 # Also quote any args containing shell meta-characters.
3100 # Make two passes to allow for proper duplicate-argument suppression.
3101 ac_configure_args=
3102 ac_configure_args0=
3103 ac_configure_args1=
3104 ac_must_keep_next=false
3105 for ac_pass in 1 2
3106 do
3107 for ac_arg
3108 do
3109 case $ac_arg in
3110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3112 | -silent | --silent | --silen | --sile | --sil)
3113 continue ;;
3114 *\'*)
3115 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3116 esac
3117 case $ac_pass in
3118 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3119 2)
3120 as_fn_append ac_configure_args1 " '$ac_arg'"
3121 if test $ac_must_keep_next = true; then
3122 ac_must_keep_next=false # Got value, back to normal.
3123 else
3124 case $ac_arg in
3125 *=* | --config-cache | -C | -disable-* | --disable-* \
3126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3128 | -with-* | --with-* | -without-* | --without-* | --x)
3129 case "$ac_configure_args0 " in
3130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3131 esac
3132 ;;
3133 -* ) ac_must_keep_next=true ;;
3134 esac
3135 fi
3136 as_fn_append ac_configure_args " '$ac_arg'"
3137 ;;
3138 esac
3139 done
3140 done
3141 { ac_configure_args0=; unset ac_configure_args0;}
3142 { ac_configure_args1=; unset ac_configure_args1;}
3143
3144 # When interrupted or exit'd, cleanup temporary files, and complete
3145 # config.log. We remove comments because anyway the quotes in there
3146 # would cause problems or look ugly.
3147 # WARNING: Use '\'' to represent an apostrophe within the trap.
3148 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3149 trap 'exit_status=$?
3150 # Save into config.log some information that might help in debugging.
3151 {
3152 echo
3153
3154 cat <<\_ASBOX
3155 ## ---------------- ##
3156 ## Cache variables. ##
3157 ## ---------------- ##
3158 _ASBOX
3159 echo
3160 # The following way of writing the cache mishandles newlines in values,
3161 (
3162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3163 eval ac_val=\$$ac_var
3164 case $ac_val in #(
3165 *${as_nl}*)
3166 case $ac_var in #(
3167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3169 esac
3170 case $ac_var in #(
3171 _ | IFS | as_nl) ;; #(
3172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3173 *) { eval $ac_var=; unset $ac_var;} ;;
3174 esac ;;
3175 esac
3176 done
3177 (set) 2>&1 |
3178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3179 *${as_nl}ac_space=\ *)
3180 sed -n \
3181 "s/'\''/'\''\\\\'\'''\''/g;
3182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3183 ;; #(
3184 *)
3185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3186 ;;
3187 esac |
3188 sort
3189 )
3190 echo
3191
3192 cat <<\_ASBOX
3193 ## ----------------- ##
3194 ## Output variables. ##
3195 ## ----------------- ##
3196 _ASBOX
3197 echo
3198 for ac_var in $ac_subst_vars
3199 do
3200 eval ac_val=\$$ac_var
3201 case $ac_val in
3202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3203 esac
3204 $as_echo "$ac_var='\''$ac_val'\''"
3205 done | sort
3206 echo
3207
3208 if test -n "$ac_subst_files"; then
3209 cat <<\_ASBOX
3210 ## ------------------- ##
3211 ## File substitutions. ##
3212 ## ------------------- ##
3213 _ASBOX
3214 echo
3215 for ac_var in $ac_subst_files
3216 do
3217 eval ac_val=\$$ac_var
3218 case $ac_val in
3219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3220 esac
3221 $as_echo "$ac_var='\''$ac_val'\''"
3222 done | sort
3223 echo
3224 fi
3225
3226 if test -s confdefs.h; then
3227 cat <<\_ASBOX
3228 ## ----------- ##
3229 ## confdefs.h. ##
3230 ## ----------- ##
3231 _ASBOX
3232 echo
3233 cat confdefs.h
3234 echo
3235 fi
3236 test "$ac_signal" != 0 &&
3237 $as_echo "$as_me: caught signal $ac_signal"
3238 $as_echo "$as_me: exit $exit_status"
3239 } >&5
3240 rm -f core *.core core.conftest.* &&
3241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3242 exit $exit_status
3243 ' 0
3244 for ac_signal in 1 2 13 15; do
3245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3246 done
3247 ac_signal=0
3248
3249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3250 rm -f -r conftest* confdefs.h
3251
3252 $as_echo "/* confdefs.h */" > confdefs.h
3253
3254 # Predefined preprocessor variables.
3255
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_NAME "$PACKAGE_NAME"
3258 _ACEOF
3259
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3262 _ACEOF
3263
3264 cat >>confdefs.h <<_ACEOF
3265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3266 _ACEOF
3267
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE_STRING "$PACKAGE_STRING"
3270 _ACEOF
3271
3272 cat >>confdefs.h <<_ACEOF
3273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3274 _ACEOF
3275
3276 cat >>confdefs.h <<_ACEOF
3277 #define PACKAGE_URL "$PACKAGE_URL"
3278 _ACEOF
3279
3280
3281 # Let the site file select an alternate cache file if it wants to.
3282 # Prefer an explicitly selected file to automatically selected ones.
3283 ac_site_file1=NONE
3284 ac_site_file2=NONE
3285 if test -n "$CONFIG_SITE"; then
3286 ac_site_file1=$CONFIG_SITE
3287 elif test "x$prefix" != xNONE; then
3288 ac_site_file1=$prefix/share/config.site
3289 ac_site_file2=$prefix/etc/config.site
3290 else
3291 ac_site_file1=$ac_default_prefix/share/config.site
3292 ac_site_file2=$ac_default_prefix/etc/config.site
3293 fi
3294 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3295 do
3296 test "x$ac_site_file" = xNONE && continue
3297 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3300 sed 's/^/| /' "$ac_site_file" >&5
3301 . "$ac_site_file"
3302 fi
3303 done
3304
3305 if test -r "$cache_file"; then
3306 # Some versions of bash will fail to source /dev/null (special files
3307 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3308 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3310 $as_echo "$as_me: loading cache $cache_file" >&6;}
3311 case $cache_file in
3312 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3313 *) . "./$cache_file";;
3314 esac
3315 fi
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3318 $as_echo "$as_me: creating cache $cache_file" >&6;}
3319 >$cache_file
3320 fi
3321
3322 as_fn_append ac_header_list " linux/version.h"
3323 as_fn_append ac_header_list " sys/systeminfo.h"
3324 as_fn_append ac_header_list " coff.h"
3325 as_fn_append ac_header_list " pty.h"
3326 as_fn_append ac_header_list " sys/resource.h"
3327 as_fn_append ac_header_list " sys/utsname.h"
3328 as_fn_append ac_header_list " pwd.h"
3329 as_fn_append ac_header_list " utmp.h"
3330 as_fn_append ac_header_list " util.h"
3331 as_fn_append ac_header_list " sys/socket.h"
3332 as_fn_append ac_header_list " stdlib.h"
3333 as_fn_append ac_header_list " unistd.h"
3334 as_fn_append ac_header_list " sys/param.h"
3335 as_fn_append ac_header_list " pthread.h"
3336 as_fn_append ac_header_list " malloc/malloc.h"
3337 as_fn_append ac_header_list " maillock.h"
3338 as_fn_append ac_header_list " sys/un.h"
3339 as_fn_append ac_func_list " tzset"
3340 as_fn_append ac_func_list " readlinkat"
3341 as_fn_append ac_header_list " dirent.h"
3342 as_fn_append ac_header_list " execinfo.h"
3343 as_fn_append ac_func_list " faccessat"
3344 as_fn_append ac_func_list " fdopendir"
3345 as_fn_append ac_header_list " stdio_ext.h"
3346 as_fn_append ac_func_list " __fpending"
3347 as_fn_append ac_func_list " fstatat"
3348 as_fn_append ac_func_list " fsync"
3349 gl_getopt_required=GNU
3350 as_fn_append ac_header_list " getopt.h"
3351 as_fn_append ac_func_list " gettimeofday"
3352 as_fn_append ac_func_list " nanotime"
3353 as_fn_append ac_header_list " sys/time.h"
3354 as_fn_append ac_header_list " wchar.h"
3355 as_fn_append ac_header_list " stdint.h"
3356 as_fn_append ac_header_list " inttypes.h"
3357 as_fn_append ac_func_list " lstat"
3358 as_fn_append ac_header_list " sys/select.h"
3359 as_fn_append ac_func_list " pselect"
3360 as_fn_append ac_func_list " pthread_sigmask"
3361 as_fn_append ac_func_list " readlink"
3362 as_fn_append ac_func_list " strtoimax"
3363 as_fn_append ac_func_list " strtoumax"
3364 as_fn_append ac_func_list " symlink"
3365 as_fn_append ac_header_list " sys/stat.h"
3366 as_fn_append ac_func_list " localtime_r"
3367 as_fn_append ac_header_list " utime.h"
3368 as_fn_append ac_func_list " futimes"
3369 as_fn_append ac_func_list " futimesat"
3370 as_fn_append ac_func_list " futimens"
3371 as_fn_append ac_func_list " utimensat"
3372 as_fn_append ac_func_list " lutimes"
3373 # Check that the precious variables saved in the cache have kept the same
3374 # value.
3375 ac_cache_corrupted=false
3376 for ac_var in $ac_precious_vars; do
3377 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3378 eval ac_new_set=\$ac_env_${ac_var}_set
3379 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3380 eval ac_new_val=\$ac_env_${ac_var}_value
3381 case $ac_old_set,$ac_new_set in
3382 set,)
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3385 ac_cache_corrupted=: ;;
3386 ,set)
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3389 ac_cache_corrupted=: ;;
3390 ,);;
3391 *)
3392 if test "x$ac_old_val" != "x$ac_new_val"; then
3393 # differences in whitespace do not lead to failure.
3394 ac_old_val_w=`echo x $ac_old_val`
3395 ac_new_val_w=`echo x $ac_new_val`
3396 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3399 ac_cache_corrupted=:
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3403 eval $ac_var=\$ac_old_val
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3406 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3408 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3409 fi;;
3410 esac
3411 # Pass precious variables to config.status.
3412 if test "$ac_new_set" = set; then
3413 case $ac_new_val in
3414 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3415 *) ac_arg=$ac_var=$ac_new_val ;;
3416 esac
3417 case " $ac_configure_args " in
3418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3419 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3420 esac
3421 fi
3422 done
3423 if $ac_cache_corrupted; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3428 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3429 fi
3430 ## -------------------- ##
3431 ## Main body of script. ##
3432 ## -------------------- ##
3433
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439
3440
3441
3442 emacs_config_options="$@"
3443 ## Add some environment variables, if they were passed via the environment
3444 ## rather than on the command-line.
3445 for var in CFLAGS CPPFLAGS LDFLAGS; do
3446 case "$emacs_config_options" in
3447 *$var=*) continue ;;
3448 esac
3449 eval val="\$${var}"
3450 test x"$val" = x && continue
3451 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3452 done
3453
3454 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3455
3456
3457 ac_aux_dir=
3458 for ac_dir in build-aux "$srcdir"/build-aux; do
3459 for ac_t in install-sh install.sh shtool; do
3460 if test -f "$ac_dir/$ac_t"; then
3461 ac_aux_dir=$ac_dir
3462 ac_install_sh="$ac_aux_dir/$ac_t -c"
3463 break 2
3464 fi
3465 done
3466 done
3467 if test -z "$ac_aux_dir"; then
3468 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3469 fi
3470
3471 # These three variables are undocumented and unsupported,
3472 # and are intended to be withdrawn in a future Autoconf release.
3473 # They can cause serious problems if a builder's source tree is in a directory
3474 # whose full name contains unusual characters.
3475 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3476 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3477 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3478
3479
3480 am__api_version='1.11'
3481
3482 # Find a good install program. We prefer a C program (faster),
3483 # so one script is as good as another. But avoid the broken or
3484 # incompatible versions:
3485 # SysV /etc/install, /usr/sbin/install
3486 # SunOS /usr/etc/install
3487 # IRIX /sbin/install
3488 # AIX /bin/install
3489 # AmigaOS /C/install, which installs bootblocks on floppy discs
3490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3493 # OS/2's system install, which has a completely different semantic
3494 # ./install, which can be erroneously created by make from ./install.sh.
3495 # Reject install programs that cannot install multiple files.
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3497 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3498 if test -z "$INSTALL"; then
3499 if test "${ac_cv_path_install+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 # Account for people who put trailing slashes in PATH elements.
3508 case $as_dir/ in #((
3509 ./ | .// | /[cC]/* | \
3510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3511 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3512 /usr/ucb/* ) ;;
3513 *)
3514 # OSF1 and SCO ODT 3.0 have their own names for install.
3515 # Don't use installbsd from OSF since it installs stuff as root
3516 # by default.
3517 for ac_prog in ginstall scoinst install; do
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3520 if test $ac_prog = install &&
3521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3522 # AIX install. It has an incompatible calling convention.
3523 :
3524 elif test $ac_prog = install &&
3525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3526 # program-specific install script used by HP pwplus--don't use.
3527 :
3528 else
3529 rm -rf conftest.one conftest.two conftest.dir
3530 echo one > conftest.one
3531 echo two > conftest.two
3532 mkdir conftest.dir
3533 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3534 test -s conftest.one && test -s conftest.two &&
3535 test -s conftest.dir/conftest.one &&
3536 test -s conftest.dir/conftest.two
3537 then
3538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3539 break 3
3540 fi
3541 fi
3542 fi
3543 done
3544 done
3545 ;;
3546 esac
3547
3548 done
3549 IFS=$as_save_IFS
3550
3551 rm -rf conftest.one conftest.two conftest.dir
3552
3553 fi
3554 if test "${ac_cv_path_install+set}" = set; then
3555 INSTALL=$ac_cv_path_install
3556 else
3557 # As a last resort, use the slow shell script. Don't cache a
3558 # value for INSTALL within a source directory, because that will
3559 # break other packages using the cache if that directory is
3560 # removed, or if the value is a relative name.
3561 INSTALL=$ac_install_sh
3562 fi
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3565 $as_echo "$INSTALL" >&6; }
3566
3567 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3568 # It thinks the first close brace ends the variable substitution.
3569 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3570
3571 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3572
3573 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3574
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3576 $as_echo_n "checking whether build environment is sane... " >&6; }
3577 # Just in case
3578 sleep 1
3579 echo timestamp > conftest.file
3580 # Reject unsafe characters in $srcdir or the absolute working directory
3581 # name. Accept space and tab only in the latter.
3582 am_lf='
3583 '
3584 case `pwd` in
3585 *[\\\"\#\$\&\'\`$am_lf]*)
3586 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3587 esac
3588 case $srcdir in
3589 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3590 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3591 esac
3592
3593 # Do `set' in a subshell so we don't clobber the current shell's
3594 # arguments. Must try -L first in case configure is actually a
3595 # symlink; some systems play weird games with the mod time of symlinks
3596 # (eg FreeBSD returns the mod time of the symlink's containing
3597 # directory).
3598 if (
3599 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3600 if test "$*" = "X"; then
3601 # -L didn't work.
3602 set X `ls -t "$srcdir/configure" conftest.file`
3603 fi
3604 rm -f conftest.file
3605 if test "$*" != "X $srcdir/configure conftest.file" \
3606 && test "$*" != "X conftest.file $srcdir/configure"; then
3607
3608 # If neither matched, then we have a broken ls. This can happen
3609 # if, for instance, CONFIG_SHELL is bash and it inherits a
3610 # broken ls alias from the environment. This has actually
3611 # happened. Such a system could not be considered "sane".
3612 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3613 alias in your environment" "$LINENO" 5
3614 fi
3615
3616 test "$2" = conftest.file
3617 )
3618 then
3619 # Ok.
3620 :
3621 else
3622 as_fn_error "newly created file is older than distributed files!
3623 Check your system clock" "$LINENO" 5
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3627 test "$program_prefix" != NONE &&
3628 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3629 # Use a double $ so make ignores it.
3630 test "$program_suffix" != NONE &&
3631 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3632 # Double any \ or $.
3633 # By default was `s,x,x', remove it if useless.
3634 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3635 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3636
3637 # expand $ac_aux_dir to an absolute path
3638 am_aux_dir=`cd $ac_aux_dir && pwd`
3639
3640 if test x"${MISSING+set}" != xset; then
3641 case $am_aux_dir in
3642 *\ * | *\ *)
3643 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3644 *)
3645 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3646 esac
3647 fi
3648 # Use eval to expand $SHELL
3649 if eval "$MISSING --run true"; then
3650 am_missing_run="$MISSING --run "
3651 else
3652 am_missing_run=
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3654 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3655 fi
3656
3657 if test x"${install_sh}" != xset; then
3658 case $am_aux_dir in
3659 *\ * | *\ *)
3660 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3661 *)
3662 install_sh="\${SHELL} $am_aux_dir/install-sh"
3663 esac
3664 fi
3665
3666 # Installed binaries are usually stripped using `strip' when the user
3667 # run `make install-strip'. However `strip' might not be the right
3668 # tool to use in cross-compilation environments, therefore Automake
3669 # will honor the `STRIP' environment variable to overrule this program.
3670 if test "$cross_compiling" != no; then
3671 if test -n "$ac_tool_prefix"; then
3672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3673 set dummy ${ac_tool_prefix}strip; ac_word=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if test "${ac_cv_prog_STRIP+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 if test -n "$STRIP"; then
3680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3681 else
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 break 2
3692 fi
3693 done
3694 done
3695 IFS=$as_save_IFS
3696
3697 fi
3698 fi
3699 STRIP=$ac_cv_prog_STRIP
3700 if test -n "$STRIP"; then
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3702 $as_echo "$STRIP" >&6; }
3703 else
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3706 fi
3707
3708
3709 fi
3710 if test -z "$ac_cv_prog_STRIP"; then
3711 ac_ct_STRIP=$STRIP
3712 # Extract the first word of "strip", so it can be a program name with args.
3713 set dummy strip; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 if test -n "$ac_ct_STRIP"; then
3720 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729 ac_cv_prog_ac_ct_STRIP="strip"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733 done
3734 done
3735 IFS=$as_save_IFS
3736
3737 fi
3738 fi
3739 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3740 if test -n "$ac_ct_STRIP"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3742 $as_echo "$ac_ct_STRIP" >&6; }
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3746 fi
3747
3748 if test "x$ac_ct_STRIP" = x; then
3749 STRIP=":"
3750 else
3751 case $cross_compiling:$ac_tool_warned in
3752 yes:)
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3755 ac_tool_warned=yes ;;
3756 esac
3757 STRIP=$ac_ct_STRIP
3758 fi
3759 else
3760 STRIP="$ac_cv_prog_STRIP"
3761 fi
3762
3763 fi
3764 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3765
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3767 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3768 if test -z "$MKDIR_P"; then
3769 if test "${ac_cv_path_mkdir+set}" = set; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3774 do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_prog in mkdir gmkdir; do
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3780 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3781 'mkdir (GNU coreutils) '* | \
3782 'mkdir (coreutils) '* | \
3783 'mkdir (fileutils) '4.1*)
3784 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3785 break 3;;
3786 esac
3787 done
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi
3793
3794 test -d ./--version && rmdir ./--version
3795 if test "${ac_cv_path_mkdir+set}" = set; then
3796 MKDIR_P="$ac_cv_path_mkdir -p"
3797 else
3798 # As a last resort, use the slow shell script. Don't cache a
3799 # value for MKDIR_P within a source directory, because that will
3800 # break other packages using the cache if that directory is
3801 # removed, or if the value is a relative name.
3802 MKDIR_P="$ac_install_sh -d"
3803 fi
3804 fi
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3806 $as_echo "$MKDIR_P" >&6; }
3807
3808 mkdir_p="$MKDIR_P"
3809 case $mkdir_p in
3810 [\\/$]* | ?:[\\/]*) ;;
3811 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3812 esac
3813
3814 for ac_prog in gawk mawk nawk awk
3815 do
3816 # Extract the first word of "$ac_prog", so it can be a program name with args.
3817 set dummy $ac_prog; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if test "${ac_cv_prog_AWK+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 if test -n "$AWK"; then
3824 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3833 ac_cv_prog_AWK="$ac_prog"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
3836 fi
3837 done
3838 done
3839 IFS=$as_save_IFS
3840
3841 fi
3842 fi
3843 AWK=$ac_cv_prog_AWK
3844 if test -n "$AWK"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3846 $as_echo "$AWK" >&6; }
3847 else
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3850 fi
3851
3852
3853 test -n "$AWK" && break
3854 done
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3857 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3858 set x ${MAKE-make}
3859 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3860 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 cat >conftest.make <<\_ACEOF
3864 SHELL = /bin/sh
3865 all:
3866 @echo '@@@%%%=$(MAKE)=@@@%%%'
3867 _ACEOF
3868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3870 *@@@%%%=?*=@@@%%%*)
3871 eval ac_cv_prog_make_${ac_make}_set=yes;;
3872 *)
3873 eval ac_cv_prog_make_${ac_make}_set=no;;
3874 esac
3875 rm -f conftest.make
3876 fi
3877 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879 $as_echo "yes" >&6; }
3880 SET_MAKE=
3881 else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3884 SET_MAKE="MAKE=${MAKE-make}"
3885 fi
3886
3887 rm -rf .tst 2>/dev/null
3888 mkdir .tst 2>/dev/null
3889 if test -d .tst; then
3890 am__leading_dot=.
3891 else
3892 am__leading_dot=_
3893 fi
3894 rmdir .tst 2>/dev/null
3895
3896 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3897 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3898 # is not polluted with repeated "-I."
3899 am__isrc=' -I$(srcdir)'
3900 # test to see if srcdir already configured
3901 if test -f $srcdir/config.status; then
3902 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3903 fi
3904 fi
3905
3906 # test whether we have cygpath
3907 if test -z "$CYGPATH_W"; then
3908 if (cygpath --version) >/dev/null 2>/dev/null; then
3909 CYGPATH_W='cygpath -w'
3910 else
3911 CYGPATH_W=echo
3912 fi
3913 fi
3914
3915
3916 # Define the identity of the package.
3917 PACKAGE='emacs'
3918 VERSION='24.3.50'
3919
3920
3921 cat >>confdefs.h <<_ACEOF
3922 #define PACKAGE "$PACKAGE"
3923 _ACEOF
3924
3925
3926 cat >>confdefs.h <<_ACEOF
3927 #define VERSION "$VERSION"
3928 _ACEOF
3929
3930 # Some tools Automake needs.
3931
3932 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3933
3934
3935 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3936
3937
3938 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3939
3940
3941 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3942
3943
3944 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3945
3946 # We need awk for the "check" target. The system "awk" is bad on
3947 # some platforms.
3948 # Always define AMTAR for backward compatibility.
3949
3950 AMTAR=${AMTAR-"${am_missing_run}tar"}
3951
3952 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3953
3954
3955
3956
3957
3958
3959
3960
3961 lispdir='${datadir}/emacs/${version}/lisp'
3962 leimdir='${datadir}/emacs/${version}/leim'
3963 standardlisppath='${lispdir}:${leimdir}'
3964 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3965 '${datadir}/emacs/site-lisp'
3966 lisppath='${locallisppath}:${standardlisppath}'
3967 etcdir='${datadir}/emacs/${version}/etc'
3968 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3969 docdir='${datadir}/emacs/${version}/etc'
3970 gamedir='${localstatedir}/games/emacs'
3971
3972
3973 # Check whether --with-all was given.
3974 if test "${with_all+set}" = set; then :
3975 withval=$with_all; with_features=$withval
3976 else
3977 with_features=yes
3978 fi
3979
3980
3981
3982
3983
3984 # Check whether --with-pop was given.
3985 if test "${with_pop+set}" = set; then :
3986 withval=$with_pop;
3987 else
3988 with_pop=$with_features
3989 fi
3990
3991 if test "$with_pop" = yes; then
3992 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3993
3994 fi
3995
3996
3997 # Check whether --with-kerberos was given.
3998 if test "${with_kerberos+set}" = set; then :
3999 withval=$with_kerberos;
4000 else
4001 with_kerberos=no
4002 fi
4003
4004 if test "$with_kerberos" != no; then
4005 $as_echo "#define KERBEROS 1" >>confdefs.h
4006
4007 fi
4008
4009
4010 # Check whether --with-kerberos5 was given.
4011 if test "${with_kerberos5+set}" = set; then :
4012 withval=$with_kerberos5;
4013 else
4014 with_kerberos5=no
4015 fi
4016
4017 if test "${with_kerberos5}" != no; then
4018 if test "${with_kerberos}" = no; then
4019 with_kerberos=yes
4020 $as_echo "#define KERBEROS 1" >>confdefs.h
4021
4022 fi
4023
4024 $as_echo "#define KERBEROS5 1" >>confdefs.h
4025
4026 fi
4027
4028
4029 # Check whether --with-hesiod was given.
4030 if test "${with_hesiod+set}" = set; then :
4031 withval=$with_hesiod;
4032 else
4033 with_hesiod=no
4034 fi
4035
4036 if test "$with_hesiod" != no; then
4037
4038 $as_echo "#define HESIOD 1" >>confdefs.h
4039
4040 fi
4041
4042
4043 # Check whether --with-mmdf was given.
4044 if test "${with_mmdf+set}" = set; then :
4045 withval=$with_mmdf;
4046 else
4047 with_mmdf=no
4048 fi
4049
4050 if test "$with_mmdf" != no; then
4051
4052 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4053
4054 fi
4055
4056
4057 # Check whether --with-mail-unlink was given.
4058 if test "${with_mail_unlink+set}" = set; then :
4059 withval=$with_mail_unlink;
4060 else
4061 with_mail_unlink=no
4062 fi
4063
4064 if test "$with_mail_unlink" != no; then
4065
4066 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4067
4068 fi
4069
4070
4071 # Check whether --with-mailhost was given.
4072 if test "${with_mailhost+set}" = set; then :
4073 withval=$with_mailhost;
4074 cat >>confdefs.h <<_ACEOF
4075 #define MAILHOST "$withval"
4076 _ACEOF
4077
4078 fi
4079
4080
4081
4082 # Check whether --with-sound was given.
4083 if test "${with_sound+set}" = set; then :
4084 withval=$with_sound;
4085 else
4086 with_sound=$with_features
4087 fi
4088
4089
4090
4091 # Check whether --with-x-toolkit was given.
4092 if test "${with_x_toolkit+set}" = set; then :
4093 withval=$with_x_toolkit; case "${withval}" in
4094 y | ye | yes ) val=gtk ;;
4095 n | no ) val=no ;;
4096 l | lu | luc | luci | lucid ) val=lucid ;;
4097 a | at | ath | athe | athen | athena ) val=athena ;;
4098 m | mo | mot | moti | motif ) val=motif ;;
4099 g | gt | gtk ) val=gtk ;;
4100 gtk2 ) val=gtk2 ;;
4101 gtk3 ) val=gtk3 ;;
4102 * )
4103 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4104 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4105 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4106 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4107 ;;
4108 esac
4109 with_x_toolkit=$val
4110
4111 fi
4112
4113
4114
4115 # Check whether --with-wide-int was given.
4116 if test "${with_wide_int+set}" = set; then :
4117 withval=$with_wide_int;
4118 else
4119 with_wide_int=no
4120 fi
4121
4122 if test "$with_wide_int" = yes; then
4123
4124 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4125
4126 fi
4127
4128
4129 # Check whether --with-xpm was given.
4130 if test "${with_xpm+set}" = set; then :
4131 withval=$with_xpm;
4132 else
4133 with_xpm=$with_features
4134 fi
4135
4136
4137 # Check whether --with-jpeg was given.
4138 if test "${with_jpeg+set}" = set; then :
4139 withval=$with_jpeg;
4140 else
4141 with_jpeg=$with_features
4142 fi
4143
4144
4145 # Check whether --with-tiff was given.
4146 if test "${with_tiff+set}" = set; then :
4147 withval=$with_tiff;
4148 else
4149 with_tiff=$with_features
4150 fi
4151
4152
4153 # Check whether --with-gif was given.
4154 if test "${with_gif+set}" = set; then :
4155 withval=$with_gif;
4156 else
4157 with_gif=$with_features
4158 fi
4159
4160
4161 # Check whether --with-png was given.
4162 if test "${with_png+set}" = set; then :
4163 withval=$with_png;
4164 else
4165 with_png=$with_features
4166 fi
4167
4168
4169 # Check whether --with-rsvg was given.
4170 if test "${with_rsvg+set}" = set; then :
4171 withval=$with_rsvg;
4172 else
4173 with_rsvg=$with_features
4174 fi
4175
4176
4177 # Check whether --with-xml2 was given.
4178 if test "${with_xml2+set}" = set; then :
4179 withval=$with_xml2;
4180 else
4181 with_xml2=$with_features
4182 fi
4183
4184
4185 # Check whether --with-imagemagick was given.
4186 if test "${with_imagemagick+set}" = set; then :
4187 withval=$with_imagemagick;
4188 else
4189 with_imagemagick=$with_features
4190 fi
4191
4192
4193
4194 # Check whether --with-xft was given.
4195 if test "${with_xft+set}" = set; then :
4196 withval=$with_xft;
4197 else
4198 with_xft=$with_features
4199 fi
4200
4201
4202 # Check whether --with-libotf was given.
4203 if test "${with_libotf+set}" = set; then :
4204 withval=$with_libotf;
4205 else
4206 with_libotf=$with_features
4207 fi
4208
4209
4210 # Check whether --with-m17n-flt was given.
4211 if test "${with_m17n_flt+set}" = set; then :
4212 withval=$with_m17n_flt;
4213 else
4214 with_m17n_flt=$with_features
4215 fi
4216
4217
4218
4219 # Check whether --with-toolkit-scroll-bars was given.
4220 if test "${with_toolkit_scroll_bars+set}" = set; then :
4221 withval=$with_toolkit_scroll_bars;
4222 else
4223 with_toolkit_scroll_bars=$with_features
4224 fi
4225
4226
4227 # Check whether --with-xaw3d was given.
4228 if test "${with_xaw3d+set}" = set; then :
4229 withval=$with_xaw3d;
4230 else
4231 with_xaw3d=$with_features
4232 fi
4233
4234
4235 # Check whether --with-xim was given.
4236 if test "${with_xim+set}" = set; then :
4237 withval=$with_xim;
4238 else
4239 with_xim=$with_features
4240 fi
4241
4242
4243 # Check whether --with-ns was given.
4244 if test "${with_ns+set}" = set; then :
4245 withval=$with_ns;
4246 else
4247 with_ns=no
4248 fi
4249
4250
4251 # Check whether --with-w32 was given.
4252 if test "${with_w32+set}" = set; then :
4253 withval=$with_w32;
4254 else
4255 with_w32=no
4256 fi
4257
4258
4259
4260 # Check whether --with-gpm was given.
4261 if test "${with_gpm+set}" = set; then :
4262 withval=$with_gpm;
4263 else
4264 with_gpm=$with_features
4265 fi
4266
4267
4268 # Check whether --with-dbus was given.
4269 if test "${with_dbus+set}" = set; then :
4270 withval=$with_dbus;
4271 else
4272 with_dbus=$with_features
4273 fi
4274
4275
4276 # Check whether --with-gconf was given.
4277 if test "${with_gconf+set}" = set; then :
4278 withval=$with_gconf;
4279 else
4280 with_gconf=$with_features
4281 fi
4282
4283
4284 # Check whether --with-gsettings was given.
4285 if test "${with_gsettings+set}" = set; then :
4286 withval=$with_gsettings;
4287 else
4288 with_gsettings=$with_features
4289 fi
4290
4291
4292 # Check whether --with-selinux was given.
4293 if test "${with_selinux+set}" = set; then :
4294 withval=$with_selinux;
4295 else
4296 with_selinux=$with_features
4297 fi
4298
4299
4300 # Check whether --with-acl was given.
4301 if test "${with_acl+set}" = set; then :
4302 withval=$with_acl;
4303 else
4304 with_acl=$with_features
4305 fi
4306
4307
4308 # Check whether --with-gnutls was given.
4309 if test "${with_gnutls+set}" = set; then :
4310 withval=$with_gnutls;
4311 else
4312 with_gnutls=$with_features
4313 fi
4314
4315
4316 # Check whether --with-inotify was given.
4317 if test "${with_inotify+set}" = set; then :
4318 withval=$with_inotify;
4319 else
4320 with_inotify=$with_features
4321 fi
4322
4323
4324 ## For the times when you want to build Emacs but don't have
4325 ## a suitable makeinfo, and can live without the manuals.
4326
4327 # Check whether --with-makeinfo was given.
4328 if test "${with_makeinfo+set}" = set; then :
4329 withval=$with_makeinfo;
4330 else
4331 with_makeinfo=$with_features
4332 fi
4333
4334
4335 ## Makefile.in needs the cache file name.
4336
4337
4338 ## This is an option because I do not know if all info/man support
4339 ## compressed files, nor how to test if they do so.
4340
4341 # Check whether --with-compress-info was given.
4342 if test "${with_compress_info+set}" = set; then :
4343 withval=$with_compress_info;
4344 else
4345 with_compress_info=$with_features
4346 fi
4347
4348 if test $with_compress_info = yes; then
4349 GZIP_INFO=yes
4350 else
4351 GZIP_INFO=
4352 fi
4353
4354
4355
4356 # Check whether --with-pkg-config-prog was given.
4357 if test "${with_pkg_config_prog+set}" = set; then :
4358 withval=$with_pkg_config_prog;
4359 fi
4360
4361 if test "X${with_pkg_config_prog}" != X; then
4362 if test "${with_pkg_config_prog}" != yes; then
4363 PKG_CONFIG="${with_pkg_config_prog}"
4364 fi
4365 fi
4366
4367
4368 # Check whether --with-gameuser was given.
4369 if test "${with_gameuser+set}" = set; then :
4370 withval=$with_gameuser;
4371 fi
4372
4373 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4374 && gameuser="${with_gameuser}"
4375 test "X$gameuser" = X && gameuser=games
4376
4377
4378 # Check whether --with-gnustep-conf was given.
4379 if test "${with_gnustep_conf+set}" = set; then :
4380 withval=$with_gnustep_conf;
4381 fi
4382
4383 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4384 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4385 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4386 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4387
4388 # Check whether --enable-ns-self-contained was given.
4389 if test "${enable_ns_self_contained+set}" = set; then :
4390 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4391 else
4392 EN_NS_SELF_CONTAINED=yes
4393 fi
4394
4395
4396 # Check whether --enable-locallisppath was given.
4397 if test "${enable_locallisppath+set}" = set; then :
4398 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4399 locallisppath=
4400 elif test "${enableval}" != "yes"; then
4401 locallisppath=${enableval}
4402 fi
4403 fi
4404
4405
4406 # Check whether --enable-checking was given.
4407 if test "${enable_checking+set}" = set; then :
4408 enableval=$enable_checking; ac_checking_flags="${enableval}"
4409 fi
4410
4411 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4412 for check in $ac_checking_flags
4413 do
4414 case $check in
4415 # these set all the flags to specific states
4416 yes) ac_enable_checking=1 ;;
4417 no) ac_enable_checking= ;
4418 ac_gc_check_stringbytes= ;
4419 ac_gc_check_string_overrun= ;
4420 ac_gc_check_string_free_list= ;
4421 ac_xmalloc_overrun= ;
4422 ac_gc_check_cons_list= ;
4423 ac_glyphs_debug= ;;
4424 all) ac_enable_checking=1 ;
4425 ac_gc_check_stringbytes=1 ;
4426 ac_gc_check_string_overrun=1 ;
4427 ac_gc_check_string_free_list=1 ;
4428 ac_xmalloc_overrun=1 ;
4429 ac_gc_check_cons_list=1 ;
4430 ac_glyphs_debug=1 ;;
4431 # these enable particular checks
4432 stringbytes) ac_gc_check_stringbytes=1 ;;
4433 stringoverrun) ac_gc_check_string_overrun=1 ;;
4434 stringfreelist) ac_gc_check_string_free_list=1 ;;
4435 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4436 conslist) ac_gc_check_cons_list=1 ;;
4437 glyphs) ac_glyphs_debug=1 ;;
4438 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4439 esac
4440 done
4441 IFS="$ac_save_IFS"
4442
4443 if test x$ac_enable_checking != x ; then
4444
4445 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4446
4447 fi
4448 if test x$ac_gc_check_stringbytes != x ; then
4449
4450 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4451
4452 fi
4453 if test x$ac_gc_check_string_overrun != x ; then
4454
4455 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4456
4457 fi
4458 if test x$ac_gc_check_string_free_list != x ; then
4459
4460 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4461
4462 fi
4463 if test x$ac_xmalloc_overrun != x ; then
4464
4465 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4466
4467 fi
4468 if test x$ac_gc_check_cons_list != x ; then
4469
4470 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4471
4472 fi
4473 if test x$ac_glyphs_debug != x ; then
4474
4475 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4476
4477 fi
4478
4479 # Check whether --enable-check-lisp-object-type was given.
4480 if test "${enable_check_lisp_object_type+set}" = set; then :
4481 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4482
4483 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4484
4485 fi
4486 fi
4487
4488
4489
4490 # Check whether --enable-profiling was given.
4491 if test "${enable_profiling+set}" = set; then :
4492 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4493 fi
4494
4495 if test x$ac_enable_profiling != x ; then
4496 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4497 else
4498 PROFILING_CFLAGS=
4499 fi
4500
4501
4502 # Check whether --enable-autodepend was given.
4503 if test "${enable_autodepend+set}" = set; then :
4504 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4505 else
4506 ac_enable_autodepend=yes
4507 fi
4508
4509
4510 # Check whether --enable-gtk-deprecation-warnings was given.
4511 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4512 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4513 fi
4514
4515
4516 #### Make srcdir absolute, if it isn't already. It's important to
4517 #### avoid running the file name through pwd unnecessarily, since pwd can
4518 #### give you automounter prefixes, which can go away. We do all this
4519 #### so Emacs can find its files when run uninstalled.
4520 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4521 unset CDPATH
4522 case "${srcdir}" in
4523 /* ) ;;
4524 . )
4525 ## We may be able to use the $PWD environment variable to make this
4526 ## absolute. But sometimes PWD is inaccurate.
4527 ## Note: we used to use $PWD at the end instead of `pwd`,
4528 ## but that tested only for a well-formed and valid PWD,
4529 ## it did not object when PWD was well-formed and valid but just wrong.
4530 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4531 then
4532 srcdir="$PWD"
4533 else
4534 srcdir=`(cd "$srcdir"; pwd)`
4535 fi
4536 ;;
4537 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4538 esac
4539
4540 ### Canonicalize the configuration name.
4541
4542 # Make sure we can run config.sub.
4543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4544 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4545
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4547 $as_echo_n "checking build system type... " >&6; }
4548 if test "${ac_cv_build+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 ac_build_alias=$build_alias
4552 test "x$ac_build_alias" = x &&
4553 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4554 test "x$ac_build_alias" = x &&
4555 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4557 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4558
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4561 $as_echo "$ac_cv_build" >&6; }
4562 case $ac_cv_build in
4563 *-*-*) ;;
4564 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4565 esac
4566 build=$ac_cv_build
4567 ac_save_IFS=$IFS; IFS='-'
4568 set x $ac_cv_build
4569 shift
4570 build_cpu=$1
4571 build_vendor=$2
4572 shift; shift
4573 # Remember, the first character of IFS is used to create $*,
4574 # except with old shells:
4575 build_os=$*
4576 IFS=$ac_save_IFS
4577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4578
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4581 $as_echo_n "checking host system type... " >&6; }
4582 if test "${ac_cv_host+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test "x$host_alias" = x; then
4586 ac_cv_host=$ac_cv_build
4587 else
4588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4589 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4590 fi
4591
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4594 $as_echo "$ac_cv_host" >&6; }
4595 case $ac_cv_host in
4596 *-*-*) ;;
4597 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4598 esac
4599 host=$ac_cv_host
4600 ac_save_IFS=$IFS; IFS='-'
4601 set x $ac_cv_host
4602 shift
4603 host_cpu=$1
4604 host_vendor=$2
4605 shift; shift
4606 # Remember, the first character of IFS is used to create $*,
4607 # except with old shells:
4608 host_os=$*
4609 IFS=$ac_save_IFS
4610 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4611
4612
4613 canonical=$host
4614 configuration=${host_alias-${build_alias-$host}}
4615
4616
4617
4618 ### If you add support for a new configuration, add code to this
4619 ### switch statement to recognize your configuration name and select
4620 ### the appropriate operating system file.
4621
4622 ### You would hope that you could choose an s/*.h
4623 ### file based on the operating system portion. However, it turns out
4624 ### that each s/*.h file is pretty manufacturer-specific.
4625 ### So we basically have to have a special case for each
4626 ### configuration name.
4627 ###
4628 ### As far as handling version numbers on operating systems is
4629 ### concerned, make sure things will fail in a fixable way. If
4630 ### /etc/MACHINES doesn't say anything about version numbers, be
4631 ### prepared to handle anything reasonably. If version numbers
4632 ### matter, be sure /etc/MACHINES says something about it.
4633
4634 opsys='' unported=no
4635 case "${canonical}" in
4636
4637 ## GNU/Linux and similar ports
4638 *-*-linux* )
4639 opsys=gnu-linux
4640 ;;
4641
4642 ## FreeBSD ports
4643 *-*-freebsd* )
4644 opsys=freebsd
4645 ;;
4646
4647 ## DragonFly ports
4648 *-*-dragonfly* )
4649 opsys=dragonfly
4650 ;;
4651
4652 ## FreeBSD kernel + glibc based userland
4653 *-*-kfreebsd*gnu* )
4654 opsys=gnu-kfreebsd
4655 ;;
4656
4657 ## NetBSD ports
4658 *-*-netbsd* )
4659 opsys=netbsd
4660 ;;
4661
4662 ## OpenBSD ports
4663 *-*-openbsd* )
4664 opsys=openbsd
4665 ;;
4666
4667 ## Apple Darwin / Mac OS X
4668 *-apple-darwin* )
4669 case "${canonical}" in
4670 i[3456]86-* ) ;;
4671 powerpc-* ) ;;
4672 x86_64-* ) ;;
4673 * ) unported=yes ;;
4674 esac
4675 opsys=darwin
4676 ## Use fink packages if available.
4677 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4678 ## if test -d /sw/include && test -d /sw/lib; then
4679 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4680 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4681 ## fi
4682 ;;
4683
4684 ## Cygwin ports
4685 *-*-cygwin )
4686 opsys=cygwin
4687 ;;
4688
4689 ## HP 9000 series 700 and 800, running HP/UX
4690 hppa*-hp-hpux10.2* )
4691 opsys=hpux10-20
4692 ;;
4693 hppa*-hp-hpux1[1-9]* )
4694 opsys=hpux11
4695 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4696 ;;
4697
4698 ## IBM machines
4699 rs6000-ibm-aix4.[23]* )
4700 opsys=aix4-2
4701 ;;
4702 powerpc-ibm-aix4.[23]* )
4703 opsys=aix4-2
4704 ;;
4705 rs6000-ibm-aix[56]* )
4706 opsys=aix4-2
4707 ;;
4708 powerpc-ibm-aix[56]* )
4709 opsys=aix4-2
4710 ;;
4711
4712 ## Silicon Graphics machines
4713 ## Iris 4D
4714 mips-sgi-irix6.5 )
4715 opsys=irix6-5
4716 # Without defining _LANGUAGE_C, things get masked out in the headers
4717 # so that, for instance, grepping for `free' in stdlib.h fails and
4718 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4719 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4720 ;;
4721
4722 ## Suns
4723 *-sun-solaris* \
4724 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4725 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4726 case "${canonical}" in
4727 i[3456]86-*-* ) ;;
4728 amd64-*-*|x86_64-*-*) ;;
4729 sparc* ) ;;
4730 * ) unported=yes ;;
4731 esac
4732 case "${canonical}" in
4733 *-sunos5.6* | *-solaris2.6* )
4734 opsys=sol2-6
4735 RANLIB="ar -ts"
4736 ;;
4737 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4738 opsys=sol2-6
4739 emacs_check_sunpro_c=yes
4740 ;;
4741 *-sunos5* | *-solaris* )
4742 opsys=sol2-10
4743 emacs_check_sunpro_c=yes
4744 ;;
4745 esac
4746 ## Watch out for a compiler that we know will not work.
4747 case "${canonical}" in
4748 *-solaris* | *-sunos5* )
4749 if [ "x$CC" = x/usr/ucb/cc ]; then
4750 ## /usr/ucb/cc doesn't work;
4751 ## we should find some other compiler that does work.
4752 unset CC
4753 fi
4754 ;;
4755 *) ;;
4756 esac
4757 ;;
4758
4759 ## Intel 386 machines where we don't care about the manufacturer.
4760 i[3456]86-*-* )
4761 case "${canonical}" in
4762 *-darwin* ) opsys=darwin ;;
4763 *-sysv4.2uw* ) opsys=unixware ;;
4764 *-sysv5uw* ) opsys=unixware ;;
4765 *-sysv5OpenUNIX* ) opsys=unixware ;;
4766 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4767 esac
4768 ;;
4769
4770 * )
4771 unported=yes
4772 ;;
4773 esac
4774
4775 ### If the code above didn't choose an operating system, just choose
4776 ### an operating system based on the configuration name. You really
4777 ### only want to use this when you have no idea what the right
4778 ### operating system is; if you know what operating systems a machine
4779 ### runs, it's cleaner to make it explicit in the case statement
4780 ### above.
4781 if test x"${opsys}" = x; then
4782 case "${canonical}" in
4783 *-gnu* ) opsys=gnu ;;
4784 * )
4785 unported=yes
4786 ;;
4787 esac
4788 fi
4789
4790
4791
4792 if test $unported = yes; then
4793 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4794 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4795 fi
4796
4797
4798 #### Choose a compiler.
4799
4800 ac_ext=c
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805 if test -n "$ac_tool_prefix"; then
4806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if test "${ac_cv_prog_CC+set}" = set; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 if test -n "$CC"; then
4814 ac_cv_prog_CC="$CC" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 fi
4832 fi
4833 CC=$ac_cv_prog_CC
4834 if test -n "$CC"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4836 $as_echo "$CC" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4840 fi
4841
4842
4843 fi
4844 if test -z "$ac_cv_prog_CC"; then
4845 ac_ct_CC=$CC
4846 # Extract the first word of "gcc", so it can be a program name with args.
4847 set dummy gcc; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test -n "$ac_ct_CC"; then
4854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_ac_ct_CC="gcc"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867 done
4868 done
4869 IFS=$as_save_IFS
4870
4871 fi
4872 fi
4873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4874 if test -n "$ac_ct_CC"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4876 $as_echo "$ac_ct_CC" >&6; }
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 fi
4881
4882 if test "x$ac_ct_CC" = x; then
4883 CC=""
4884 else
4885 case $cross_compiling:$ac_tool_warned in
4886 yes:)
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889 ac_tool_warned=yes ;;
4890 esac
4891 CC=$ac_ct_CC
4892 fi
4893 else
4894 CC="$ac_cv_prog_CC"
4895 fi
4896
4897 if test -z "$CC"; then
4898 if test -n "$ac_tool_prefix"; then
4899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4900 set dummy ${ac_tool_prefix}cc; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_CC+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$CC"; then
4907 ac_cv_prog_CC="$CC" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_CC="${ac_tool_prefix}cc"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920 done
4921 done
4922 IFS=$as_save_IFS
4923
4924 fi
4925 fi
4926 CC=$ac_cv_prog_CC
4927 if test -n "$CC"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4929 $as_echo "$CC" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4933 fi
4934
4935
4936 fi
4937 fi
4938 if test -z "$CC"; then
4939 # Extract the first word of "cc", so it can be a program name with args.
4940 set dummy cc; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if test "${ac_cv_prog_CC+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$CC"; then
4947 ac_cv_prog_CC="$CC" # Let the user override the test.
4948 else
4949 ac_prog_rejected=no
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4958 ac_prog_rejected=yes
4959 continue
4960 fi
4961 ac_cv_prog_CC="cc"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4964 fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969 if test $ac_prog_rejected = yes; then
4970 # We found a bogon in the path, so make sure we never use it.
4971 set dummy $ac_cv_prog_CC
4972 shift
4973 if test $# != 0; then
4974 # We chose a different compiler from the bogus one.
4975 # However, it has the same basename, so the bogon will be chosen
4976 # first if we set CC to just the basename; use the full file name.
4977 shift
4978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4979 fi
4980 fi
4981 fi
4982 fi
4983 CC=$ac_cv_prog_CC
4984 if test -n "$CC"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4986 $as_echo "$CC" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993 fi
4994 if test -z "$CC"; then
4995 if test -n "$ac_tool_prefix"; then
4996 for ac_prog in cl.exe
4997 do
4998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if test "${ac_cv_prog_CC+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$CC"; then
5006 ac_cv_prog_CC="$CC" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 CC=$ac_cv_prog_CC
5026 if test -n "$CC"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5028 $as_echo "$CC" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 fi
5033
5034
5035 test -n "$CC" && break
5036 done
5037 fi
5038 if test -z "$CC"; then
5039 ac_ct_CC=$CC
5040 for ac_prog in cl.exe
5041 do
5042 # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$ac_ct_CC"; then
5050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_CC="$ac_prog"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5070 if test -n "$ac_ct_CC"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5072 $as_echo "$ac_ct_CC" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078
5079 test -n "$ac_ct_CC" && break
5080 done
5081
5082 if test "x$ac_ct_CC" = x; then
5083 CC=""
5084 else
5085 case $cross_compiling:$ac_tool_warned in
5086 yes:)
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned=yes ;;
5090 esac
5091 CC=$ac_ct_CC
5092 fi
5093 fi
5094
5095 fi
5096
5097
5098 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 as_fn_error "no acceptable C compiler found in \$PATH
5101 See \`config.log' for more details." "$LINENO" 5; }
5102
5103 # Provide some information about the compiler.
5104 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5105 set X $ac_compile
5106 ac_compiler=$2
5107 for ac_option in --version -v -V -qversion; do
5108 { { ac_try="$ac_compiler $ac_option >&5"
5109 case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112 esac
5113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5114 $as_echo "$ac_try_echo"; } >&5
5115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5116 ac_status=$?
5117 if test -s conftest.err; then
5118 sed '10a\
5119 ... rest of stderr output deleted ...
5120 10q' conftest.err >conftest.er1
5121 cat conftest.er1 >&5
5122 fi
5123 rm -f conftest.er1 conftest.err
5124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }
5126 done
5127
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130
5131 int
5132 main ()
5133 {
5134
5135 ;
5136 return 0;
5137 }
5138 _ACEOF
5139 ac_clean_files_save=$ac_clean_files
5140 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5141 # Try to create an executable without -o first, disregard a.out.
5142 # It will help us diagnose broken compilers, and finding out an intuition
5143 # of exeext.
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5145 $as_echo_n "checking whether the C compiler works... " >&6; }
5146 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5147
5148 # The possible output files:
5149 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5150
5151 ac_rmfiles=
5152 for ac_file in $ac_files
5153 do
5154 case $ac_file in
5155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5157 esac
5158 done
5159 rm -f $ac_rmfiles
5160
5161 if { { ac_try="$ac_link_default"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_link_default") 2>&5
5169 ac_status=$?
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }; then :
5172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5175 # so that the user can short-circuit this test for compilers unknown to
5176 # Autoconf.
5177 for ac_file in $ac_files ''
5178 do
5179 test -f "$ac_file" || continue
5180 case $ac_file in
5181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5182 ;;
5183 [ab].out )
5184 # We found the default executable, but exeext='' is most
5185 # certainly right.
5186 break;;
5187 *.* )
5188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5189 then :; else
5190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5191 fi
5192 # We set ac_cv_exeext here because the later test for it is not
5193 # safe: cross compilers may not add the suffix if given an `-o'
5194 # argument, so we may need to know it at that point already.
5195 # Even if this section looks crufty: it has the advantage of
5196 # actually working.
5197 break;;
5198 * )
5199 break;;
5200 esac
5201 done
5202 test "$ac_cv_exeext" = no && ac_cv_exeext=
5203
5204 else
5205 ac_file=''
5206 fi
5207 if test -z "$ac_file"; then :
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 $as_echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215 { as_fn_set_status 77
5216 as_fn_error "C compiler cannot create executables
5217 See \`config.log' for more details." "$LINENO" 5; }; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220 $as_echo "yes" >&6; }
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5223 $as_echo_n "checking for C compiler default output file name... " >&6; }
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5225 $as_echo "$ac_file" >&6; }
5226 ac_exeext=$ac_cv_exeext
5227
5228 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5229 ac_clean_files=$ac_clean_files_save
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5231 $as_echo_n "checking for suffix of executables... " >&6; }
5232 if { { ac_try="$ac_link"
5233 case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236 esac
5237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5238 $as_echo "$ac_try_echo"; } >&5
5239 (eval "$ac_link") 2>&5
5240 ac_status=$?
5241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5242 test $ac_status = 0; }; then :
5243 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5244 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5245 # work properly (i.e., refer to `conftest.exe'), while it won't with
5246 # `rm'.
5247 for ac_file in conftest.exe conftest conftest.*; do
5248 test -f "$ac_file" || continue
5249 case $ac_file in
5250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5252 break;;
5253 * ) break;;
5254 esac
5255 done
5256 else
5257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5259 as_fn_error "cannot compute suffix of executables: cannot compile and link
5260 See \`config.log' for more details." "$LINENO" 5; }
5261 fi
5262 rm -f conftest conftest$ac_cv_exeext
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5264 $as_echo "$ac_cv_exeext" >&6; }
5265
5266 rm -f conftest.$ac_ext
5267 EXEEXT=$ac_cv_exeext
5268 ac_exeext=$EXEEXT
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 #include <stdio.h>
5272 int
5273 main ()
5274 {
5275 FILE *f = fopen ("conftest.out", "w");
5276 return ferror (f) || fclose (f) != 0;
5277
5278 ;
5279 return 0;
5280 }
5281 _ACEOF
5282 ac_clean_files="$ac_clean_files conftest.out"
5283 # Check that the compiler produces executables we can run. If not, either
5284 # the compiler is broken, or we cross compile.
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5286 $as_echo_n "checking whether we are cross compiling... " >&6; }
5287 if test "$cross_compiling" != yes; then
5288 { { ac_try="$ac_link"
5289 case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5294 $as_echo "$ac_try_echo"; } >&5
5295 (eval "$ac_link") 2>&5
5296 ac_status=$?
5297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298 test $ac_status = 0; }
5299 if { ac_try='./conftest$ac_cv_exeext'
5300 { { case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303 esac
5304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5305 $as_echo "$ac_try_echo"; } >&5
5306 (eval "$ac_try") 2>&5
5307 ac_status=$?
5308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5309 test $ac_status = 0; }; }; then
5310 cross_compiling=no
5311 else
5312 if test "$cross_compiling" = maybe; then
5313 cross_compiling=yes
5314 else
5315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5317 as_fn_error "cannot run C compiled programs.
5318 If you meant to cross compile, use \`--host'.
5319 See \`config.log' for more details." "$LINENO" 5; }
5320 fi
5321 fi
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5324 $as_echo "$cross_compiling" >&6; }
5325
5326 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5327 ac_clean_files=$ac_clean_files_save
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5329 $as_echo_n "checking for suffix of object files... " >&6; }
5330 if test "${ac_cv_objext+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335
5336 int
5337 main ()
5338 {
5339
5340 ;
5341 return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.o conftest.obj
5345 if { { ac_try="$ac_compile"
5346 case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349 esac
5350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5351 $as_echo "$ac_try_echo"; } >&5
5352 (eval "$ac_compile") 2>&5
5353 ac_status=$?
5354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5355 test $ac_status = 0; }; then :
5356 for ac_file in conftest.o conftest.obj conftest.*; do
5357 test -f "$ac_file" || continue;
5358 case $ac_file in
5359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5360 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5361 break;;
5362 esac
5363 done
5364 else
5365 $as_echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5370 as_fn_error "cannot compute suffix of object files: cannot compile
5371 See \`config.log' for more details." "$LINENO" 5; }
5372 fi
5373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5376 $as_echo "$ac_cv_objext" >&6; }
5377 OBJEXT=$ac_cv_objext
5378 ac_objext=$OBJEXT
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5380 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5381 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386
5387 int
5388 main ()
5389 {
5390 #ifndef __GNUC__
5391 choke me
5392 #endif
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399 ac_compiler_gnu=yes
5400 else
5401 ac_compiler_gnu=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5405
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5408 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5409 if test $ac_compiler_gnu = yes; then
5410 GCC=yes
5411 else
5412 GCC=
5413 fi
5414 ac_test_CFLAGS=${CFLAGS+set}
5415 ac_save_CFLAGS=$CFLAGS
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5417 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5418 if test "${ac_cv_prog_cc_g+set}" = set; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 ac_save_c_werror_flag=$ac_c_werror_flag
5422 ac_c_werror_flag=yes
5423 ac_cv_prog_cc_g=no
5424 CFLAGS="-g"
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427
5428 int
5429 main ()
5430 {
5431
5432 ;
5433 return 0;
5434 }
5435 _ACEOF
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 ac_cv_prog_cc_g=yes
5438 else
5439 CFLAGS=""
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442
5443 int
5444 main ()
5445 {
5446
5447 ;
5448 return 0;
5449 }
5450 _ACEOF
5451 if ac_fn_c_try_compile "$LINENO"; then :
5452
5453 else
5454 ac_c_werror_flag=$ac_save_c_werror_flag
5455 CFLAGS="-g"
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458
5459 int
5460 main ()
5461 {
5462
5463 ;
5464 return 0;
5465 }
5466 _ACEOF
5467 if ac_fn_c_try_compile "$LINENO"; then :
5468 ac_cv_prog_cc_g=yes
5469 fi
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 ac_c_werror_flag=$ac_save_c_werror_flag
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5478 $as_echo "$ac_cv_prog_cc_g" >&6; }
5479 if test "$ac_test_CFLAGS" = set; then
5480 CFLAGS=$ac_save_CFLAGS
5481 elif test $ac_cv_prog_cc_g = yes; then
5482 if test "$GCC" = yes; then
5483 CFLAGS="-g -O2"
5484 else
5485 CFLAGS="-g"
5486 fi
5487 else
5488 if test "$GCC" = yes; then
5489 CFLAGS="-O2"
5490 else
5491 CFLAGS=
5492 fi
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5495 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5496 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 ac_cv_prog_cc_c89=no
5500 ac_save_CC=$CC
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #include <stdarg.h>
5504 #include <stdio.h>
5505 #include <sys/types.h>
5506 #include <sys/stat.h>
5507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5508 struct buf { int x; };
5509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5510 static char *e (p, i)
5511 char **p;
5512 int i;
5513 {
5514 return p[i];
5515 }
5516 static char *f (char * (*g) (char **, int), char **p, ...)
5517 {
5518 char *s;
5519 va_list v;
5520 va_start (v,p);
5521 s = g (p, va_arg (v,int));
5522 va_end (v);
5523 return s;
5524 }
5525
5526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5527 function prototypes and stuff, but not '\xHH' hex character constants.
5528 These don't provoke an error unfortunately, instead are silently treated
5529 as 'x'. The following induces an error, until -std is added to get
5530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5531 array size at least. It's necessary to write '\x00'==0 to get something
5532 that's true only with -std. */
5533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5534
5535 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5536 inside strings and character constants. */
5537 #define FOO(x) 'x'
5538 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5539
5540 int test (int i, double x);
5541 struct s1 {int (*f) (int a);};
5542 struct s2 {int (*f) (double a);};
5543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5544 int argc;
5545 char **argv;
5546 int
5547 main ()
5548 {
5549 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5550 ;
5551 return 0;
5552 }
5553 _ACEOF
5554 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5555 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5556 do
5557 CC="$ac_save_CC $ac_arg"
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 ac_cv_prog_cc_c89=$ac_arg
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext
5562 test "x$ac_cv_prog_cc_c89" != "xno" && break
5563 done
5564 rm -f conftest.$ac_ext
5565 CC=$ac_save_CC
5566
5567 fi
5568 # AC_CACHE_VAL
5569 case "x$ac_cv_prog_cc_c89" in
5570 x)
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5572 $as_echo "none needed" >&6; } ;;
5573 xno)
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5575 $as_echo "unsupported" >&6; } ;;
5576 *)
5577 CC="$CC $ac_cv_prog_cc_c89"
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5579 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5580 esac
5581 if test "x$ac_cv_prog_cc_c89" != xno; then :
5582
5583 fi
5584
5585 ac_ext=c
5586 ac_cpp='$CPP $CPPFLAGS'
5587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590 DEPDIR="${am__leading_dot}deps"
5591
5592 ac_config_commands="$ac_config_commands depfiles"
5593
5594
5595 am_make=${MAKE-make}
5596 cat > confinc << 'END'
5597 am__doit:
5598 @echo this is the am__doit target
5599 .PHONY: am__doit
5600 END
5601 # If we don't find an include directive, just comment out the code.
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5603 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5604 am__include="#"
5605 am__quote=
5606 _am_result=none
5607 # First try GNU make style include.
5608 echo "include confinc" > confmf
5609 # Ignore all kinds of additional output from `make'.
5610 case `$am_make -s -f confmf 2> /dev/null` in #(
5611 *the\ am__doit\ target*)
5612 am__include=include
5613 am__quote=
5614 _am_result=GNU
5615 ;;
5616 esac
5617 # Now try BSD make style include.
5618 if test "$am__include" = "#"; then
5619 echo '.include "confinc"' > confmf
5620 case `$am_make -s -f confmf 2> /dev/null` in #(
5621 *the\ am__doit\ target*)
5622 am__include=.include
5623 am__quote="\""
5624 _am_result=BSD
5625 ;;
5626 esac
5627 fi
5628
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5631 $as_echo "$_am_result" >&6; }
5632 rm -f confinc confmf
5633
5634 # Check whether --enable-dependency-tracking was given.
5635 if test "${enable_dependency_tracking+set}" = set; then :
5636 enableval=$enable_dependency_tracking;
5637 fi
5638
5639 if test "x$enable_dependency_tracking" != xno; then
5640 am_depcomp="$ac_aux_dir/depcomp"
5641 AMDEPBACKSLASH='\'
5642 fi
5643 if test "x$enable_dependency_tracking" != xno; then
5644 AMDEP_TRUE=
5645 AMDEP_FALSE='#'
5646 else
5647 AMDEP_TRUE='#'
5648 AMDEP_FALSE=
5649 fi
5650
5651
5652
5653 depcc="$CC" am_compiler_list=
5654
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5656 $as_echo_n "checking dependency style of $depcc... " >&6; }
5657 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5661 # We make a subdir and do the tests there. Otherwise we can end up
5662 # making bogus files that we don't know about and never remove. For
5663 # instance it was reported that on HP-UX the gcc test will end up
5664 # making a dummy file named `D' -- because `-MD' means `put the output
5665 # in D'.
5666 mkdir conftest.dir
5667 # Copy depcomp to subdir because otherwise we won't find it if we're
5668 # using a relative directory.
5669 cp "$am_depcomp" conftest.dir
5670 cd conftest.dir
5671 # We will build objects and dependencies in a subdirectory because
5672 # it helps to detect inapplicable dependency modes. For instance
5673 # both Tru64's cc and ICC support -MD to output dependencies as a
5674 # side effect of compilation, but ICC will put the dependencies in
5675 # the current directory while Tru64 will put them in the object
5676 # directory.
5677 mkdir sub
5678
5679 am_cv_CC_dependencies_compiler_type=none
5680 if test "$am_compiler_list" = ""; then
5681 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5682 fi
5683 am__universal=false
5684 case " $depcc " in #(
5685 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5686 esac
5687
5688 for depmode in $am_compiler_list; do
5689 # Setup a source with many dependencies, because some compilers
5690 # like to wrap large dependency lists on column 80 (with \), and
5691 # we should not choose a depcomp mode which is confused by this.
5692 #
5693 # We need to recreate these files for each test, as the compiler may
5694 # overwrite some of them when testing with obscure command lines.
5695 # This happens at least with the AIX C compiler.
5696 : > sub/conftest.c
5697 for i in 1 2 3 4 5 6; do
5698 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5699 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5700 # Solaris 8's {/usr,}/bin/sh.
5701 touch sub/conftst$i.h
5702 done
5703 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5704
5705 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5706 # mode. It turns out that the SunPro C++ compiler does not properly
5707 # handle `-M -o', and we need to detect this. Also, some Intel
5708 # versions had trouble with output in subdirs
5709 am__obj=sub/conftest.${OBJEXT-o}
5710 am__minus_obj="-o $am__obj"
5711 case $depmode in
5712 gcc)
5713 # This depmode causes a compiler race in universal mode.
5714 test "$am__universal" = false || continue
5715 ;;
5716 nosideeffect)
5717 # after this tag, mechanisms are not by side-effect, so they'll
5718 # only be used when explicitly requested
5719 if test "x$enable_dependency_tracking" = xyes; then
5720 continue
5721 else
5722 break
5723 fi
5724 ;;
5725 msvisualcpp | msvcmsys)
5726 # This compiler won't grok `-c -o', but also, the minuso test has
5727 # not run yet. These depmodes are late enough in the game, and
5728 # so weak that their functioning should not be impacted.
5729 am__obj=conftest.${OBJEXT-o}
5730 am__minus_obj=
5731 ;;
5732 none) break ;;
5733 esac
5734 if depmode=$depmode \
5735 source=sub/conftest.c object=$am__obj \
5736 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5737 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5738 >/dev/null 2>conftest.err &&
5739 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5740 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5741 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5743 # icc doesn't choke on unknown options, it will just issue warnings
5744 # or remarks (even with -Werror). So we grep stderr for any message
5745 # that says an option was ignored or not supported.
5746 # When given -MP, icc 7.0 and 7.1 complain thusly:
5747 # icc: Command line warning: ignoring option '-M'; no argument required
5748 # The diagnosis changed in icc 8.0:
5749 # icc: Command line remark: option '-MP' not supported
5750 if (grep 'ignoring option' conftest.err ||
5751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5752 am_cv_CC_dependencies_compiler_type=$depmode
5753 break
5754 fi
5755 fi
5756 done
5757
5758 cd ..
5759 rm -rf conftest.dir
5760 else
5761 am_cv_CC_dependencies_compiler_type=none
5762 fi
5763
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5766 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5768
5769 if
5770 test "x$enable_dependency_tracking" != xno \
5771 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5772 am__fastdepCC_TRUE=
5773 am__fastdepCC_FALSE='#'
5774 else
5775 am__fastdepCC_TRUE='#'
5776 am__fastdepCC_FALSE=
5777 fi
5778
5779
5780 if test "x$CC" != xcc; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5782 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5785 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5786 fi
5787 set dummy $CC; ac_cc=`$as_echo "$2" |
5788 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5789 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794
5795 int
5796 main ()
5797 {
5798
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 # Make sure it works both with $CC and with simple cc.
5804 # We do the test twice because some compilers refuse to overwrite an
5805 # existing .o file with -o, though they will create one.
5806 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5807 rm -f conftest2.*
5808 if { { case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5813 $as_echo "$ac_try_echo"; } >&5
5814 (eval "$ac_try") 2>&5
5815 ac_status=$?
5816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5817 test $ac_status = 0; } &&
5818 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821 esac
5822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5823 $as_echo "$ac_try_echo"; } >&5
5824 (eval "$ac_try") 2>&5
5825 ac_status=$?
5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827 test $ac_status = 0; };
5828 then
5829 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5830 if test "x$CC" != xcc; then
5831 # Test first that cc exists at all.
5832 if { ac_try='cc -c conftest.$ac_ext >&5'
5833 { { case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836 esac
5837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5838 $as_echo "$ac_try_echo"; } >&5
5839 (eval "$ac_try") 2>&5
5840 ac_status=$?
5841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5842 test $ac_status = 0; }; }; then
5843 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5844 rm -f conftest2.*
5845 if { { case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848 esac
5849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5850 $as_echo "$ac_try_echo"; } >&5
5851 (eval "$ac_try") 2>&5
5852 ac_status=$?
5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854 test $ac_status = 0; } &&
5855 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858 esac
5859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5860 $as_echo "$ac_try_echo"; } >&5
5861 (eval "$ac_try") 2>&5
5862 ac_status=$?
5863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5864 test $ac_status = 0; };
5865 then
5866 # cc works too.
5867 :
5868 else
5869 # cc exists but doesn't like -o.
5870 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5871 fi
5872 fi
5873 fi
5874 else
5875 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5876 fi
5877 rm -f core conftest*
5878
5879 fi
5880 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5882 $as_echo "yes" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886
5887 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5888
5889 fi
5890
5891 # FIXME: we rely on the cache variable name because
5892 # there is no other way.
5893 set dummy $CC
5894 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5895 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5896 if test "$am_t" != yes; then
5897 # Losing compiler, so override with the script.
5898 # FIXME: It is wrong to rewrite CC.
5899 # But if we don't then we get into trouble of one sort or another.
5900 # A longer-term fix would be to have automake use am__CC in this case,
5901 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5902 CC="$am_aux_dir/compile $CC"
5903 fi
5904
5905
5906
5907 if test x$GCC = xyes; then
5908 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5909 else
5910 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5911 fi
5912
5913 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5914 # as we don't use them.
5915
5916 # Avoid gnulib's threadlib module, as we do threads our own way.
5917
5918
5919 # Initialize gnulib right after choosing the compiler.
5920
5921 ac_ext=c
5922 ac_cpp='$CPP $CPPFLAGS'
5923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5927 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5928 # On Suns, sometimes $CPP names a directory.
5929 if test -n "$CPP" && test -d "$CPP"; then
5930 CPP=
5931 fi
5932 if test -z "$CPP"; then
5933 if test "${ac_cv_prog_CPP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 # Double quotes because CPP needs to be expanded
5937 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5938 do
5939 ac_preproc_ok=false
5940 for ac_c_preproc_warn_flag in '' yes
5941 do
5942 # Use a header file that comes with gcc, so configuring glibc
5943 # with a fresh cross-compiler works.
5944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945 # <limits.h> exists even on freestanding compilers.
5946 # On the NeXT, cc -E runs the code through the compiler's parser,
5947 # not just through cpp. "Syntax error" is here to catch this case.
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 #ifdef __STDC__
5951 # include <limits.h>
5952 #else
5953 # include <assert.h>
5954 #endif
5955 Syntax error
5956 _ACEOF
5957 if ac_fn_c_try_cpp "$LINENO"; then :
5958
5959 else
5960 # Broken: fails on valid input.
5961 continue
5962 fi
5963 rm -f conftest.err conftest.$ac_ext
5964
5965 # OK, works on sane cases. Now check whether nonexistent headers
5966 # can be detected and how.
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 #include <ac_nonexistent.h>
5970 _ACEOF
5971 if ac_fn_c_try_cpp "$LINENO"; then :
5972 # Broken: success on invalid input.
5973 continue
5974 else
5975 # Passes both tests.
5976 ac_preproc_ok=:
5977 break
5978 fi
5979 rm -f conftest.err conftest.$ac_ext
5980
5981 done
5982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5983 rm -f conftest.err conftest.$ac_ext
5984 if $ac_preproc_ok; then :
5985 break
5986 fi
5987
5988 done
5989 ac_cv_prog_CPP=$CPP
5990
5991 fi
5992 CPP=$ac_cv_prog_CPP
5993 else
5994 ac_cv_prog_CPP=$CPP
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5997 $as_echo "$CPP" >&6; }
5998 ac_preproc_ok=false
5999 for ac_c_preproc_warn_flag in '' yes
6000 do
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #ifdef __STDC__
6010 # include <limits.h>
6011 #else
6012 # include <assert.h>
6013 #endif
6014 Syntax error
6015 _ACEOF
6016 if ac_fn_c_try_cpp "$LINENO"; then :
6017
6018 else
6019 # Broken: fails on valid input.
6020 continue
6021 fi
6022 rm -f conftest.err conftest.$ac_ext
6023
6024 # OK, works on sane cases. Now check whether nonexistent headers
6025 # can be detected and how.
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 #include <ac_nonexistent.h>
6029 _ACEOF
6030 if ac_fn_c_try_cpp "$LINENO"; then :
6031 # Broken: success on invalid input.
6032 continue
6033 else
6034 # Passes both tests.
6035 ac_preproc_ok=:
6036 break
6037 fi
6038 rm -f conftest.err conftest.$ac_ext
6039
6040 done
6041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6042 rm -f conftest.err conftest.$ac_ext
6043 if $ac_preproc_ok; then :
6044
6045 else
6046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6048 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6049 See \`config.log' for more details." "$LINENO" 5; }
6050 fi
6051
6052 ac_ext=c
6053 ac_cpp='$CPP $CPPFLAGS'
6054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6057
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6060 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6061 if test "${ac_cv_path_GREP+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if test -z "$GREP"; then
6065 ac_path_GREP_found=false
6066 # Loop through the user's path and test for each of PROGNAME-LIST
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6069 do
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_prog in grep ggrep; do
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6075 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6076 # Check for GNU ac_path_GREP and select it if it is found.
6077 # Check for GNU $ac_path_GREP
6078 case `"$ac_path_GREP" --version 2>&1` in
6079 *GNU*)
6080 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6081 *)
6082 ac_count=0
6083 $as_echo_n 0123456789 >"conftest.in"
6084 while :
6085 do
6086 cat "conftest.in" "conftest.in" >"conftest.tmp"
6087 mv "conftest.tmp" "conftest.in"
6088 cp "conftest.in" "conftest.nl"
6089 $as_echo 'GREP' >> "conftest.nl"
6090 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6092 as_fn_arith $ac_count + 1 && ac_count=$as_val
6093 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6094 # Best one so far, save it but keep looking for a better one
6095 ac_cv_path_GREP="$ac_path_GREP"
6096 ac_path_GREP_max=$ac_count
6097 fi
6098 # 10*(2^10) chars as input seems more than enough
6099 test $ac_count -gt 10 && break
6100 done
6101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6102 esac
6103
6104 $ac_path_GREP_found && break 3
6105 done
6106 done
6107 done
6108 IFS=$as_save_IFS
6109 if test -z "$ac_cv_path_GREP"; then
6110 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6111 fi
6112 else
6113 ac_cv_path_GREP=$GREP
6114 fi
6115
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6118 $as_echo "$ac_cv_path_GREP" >&6; }
6119 GREP="$ac_cv_path_GREP"
6120
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6123 $as_echo_n "checking for egrep... " >&6; }
6124 if test "${ac_cv_path_EGREP+set}" = set; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6128 then ac_cv_path_EGREP="$GREP -E"
6129 else
6130 if test -z "$EGREP"; then
6131 ac_path_EGREP_found=false
6132 # Loop through the user's path and test for each of PROGNAME-LIST
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6135 do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_prog in egrep; do
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6141 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6142 # Check for GNU ac_path_EGREP and select it if it is found.
6143 # Check for GNU $ac_path_EGREP
6144 case `"$ac_path_EGREP" --version 2>&1` in
6145 *GNU*)
6146 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6147 *)
6148 ac_count=0
6149 $as_echo_n 0123456789 >"conftest.in"
6150 while :
6151 do
6152 cat "conftest.in" "conftest.in" >"conftest.tmp"
6153 mv "conftest.tmp" "conftest.in"
6154 cp "conftest.in" "conftest.nl"
6155 $as_echo 'EGREP' >> "conftest.nl"
6156 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6158 as_fn_arith $ac_count + 1 && ac_count=$as_val
6159 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6160 # Best one so far, save it but keep looking for a better one
6161 ac_cv_path_EGREP="$ac_path_EGREP"
6162 ac_path_EGREP_max=$ac_count
6163 fi
6164 # 10*(2^10) chars as input seems more than enough
6165 test $ac_count -gt 10 && break
6166 done
6167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6168 esac
6169
6170 $ac_path_EGREP_found && break 3
6171 done
6172 done
6173 done
6174 IFS=$as_save_IFS
6175 if test -z "$ac_cv_path_EGREP"; then
6176 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6177 fi
6178 else
6179 ac_cv_path_EGREP=$EGREP
6180 fi
6181
6182 fi
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6185 $as_echo "$ac_cv_path_EGREP" >&6; }
6186 EGREP="$ac_cv_path_EGREP"
6187
6188
6189
6190
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6192 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6193 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199
6200 #ifdef __ACK__
6201 Amsterdam
6202 #endif
6203
6204 _ACEOF
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6207 gl_cv_c_amsterdam_compiler=yes
6208 else
6209 gl_cv_c_amsterdam_compiler=no
6210 fi
6211 rm -f conftest*
6212
6213
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6216 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6217 if test -z "$AR"; then
6218 if test $gl_cv_c_amsterdam_compiler = yes; then
6219 AR='cc -c.a'
6220 if test -z "$ARFLAGS"; then
6221 ARFLAGS='-o'
6222 fi
6223 else
6224 if test -n "$ac_tool_prefix"; then
6225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6226 set dummy ${ac_tool_prefix}ar; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if test "${ac_cv_prog_AR+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if test -n "$AR"; then
6233 ac_cv_prog_AR="$AR" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_prog_AR="${ac_tool_prefix}ar"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 AR=$ac_cv_prog_AR
6253 if test -n "$AR"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6255 $as_echo "$AR" >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261
6262 fi
6263 if test -z "$ac_cv_prog_AR"; then
6264 ac_ct_AR=$AR
6265 # Extract the first word of "ar", so it can be a program name with args.
6266 set dummy ar; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 if test -n "$ac_ct_AR"; then
6273 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_ac_ct_AR="ar"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6285 fi
6286 done
6287 done
6288 IFS=$as_save_IFS
6289
6290 fi
6291 fi
6292 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6293 if test -n "$ac_ct_AR"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6295 $as_echo "$ac_ct_AR" >&6; }
6296 else
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299 fi
6300
6301 if test "x$ac_ct_AR" = x; then
6302 AR="ar"
6303 else
6304 case $cross_compiling:$ac_tool_warned in
6305 yes:)
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6308 ac_tool_warned=yes ;;
6309 esac
6310 AR=$ac_ct_AR
6311 fi
6312 else
6313 AR="$ac_cv_prog_AR"
6314 fi
6315
6316 if test -z "$ARFLAGS"; then
6317 ARFLAGS='cru'
6318 fi
6319 fi
6320 else
6321 if test -z "$ARFLAGS"; then
6322 ARFLAGS='cru'
6323 fi
6324 fi
6325
6326
6327 if test -z "$RANLIB"; then
6328 if test $gl_cv_c_amsterdam_compiler = yes; then
6329 RANLIB=':'
6330 else
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 if test -n "$RANLIB"; then
6340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 RANLIB=$ac_cv_prog_RANLIB
6360 if test -n "$RANLIB"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6362 $as_echo "$RANLIB" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_RANLIB"; then
6371 ac_ct_RANLIB=$RANLIB
6372 # Extract the first word of "ranlib", so it can be a program name with args.
6373 set dummy ranlib; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 if test -n "$ac_ct_RANLIB"; then
6380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_ac_ct_RANLIB="ranlib"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6400 if test -n "$ac_ct_RANLIB"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6402 $as_echo "$ac_ct_RANLIB" >&6; }
6403 else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408 if test "x$ac_ct_RANLIB" = x; then
6409 RANLIB=":"
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417 RANLIB=$ac_ct_RANLIB
6418 fi
6419 else
6420 RANLIB="$ac_cv_prog_RANLIB"
6421 fi
6422
6423 fi
6424 fi
6425
6426
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6428 $as_echo_n "checking for ANSI C header files... " >&6; }
6429 if test "${ac_cv_header_stdc+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <stdlib.h>
6435 #include <stdarg.h>
6436 #include <string.h>
6437 #include <float.h>
6438
6439 int
6440 main ()
6441 {
6442
6443 ;
6444 return 0;
6445 }
6446 _ACEOF
6447 if ac_fn_c_try_compile "$LINENO"; then :
6448 ac_cv_header_stdc=yes
6449 else
6450 ac_cv_header_stdc=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453
6454 if test $ac_cv_header_stdc = yes; then
6455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 #include <string.h>
6459
6460 _ACEOF
6461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462 $EGREP "memchr" >/dev/null 2>&1; then :
6463
6464 else
6465 ac_cv_header_stdc=no
6466 fi
6467 rm -f conftest*
6468
6469 fi
6470
6471 if test $ac_cv_header_stdc = yes; then
6472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475 #include <stdlib.h>
6476
6477 _ACEOF
6478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6479 $EGREP "free" >/dev/null 2>&1; then :
6480
6481 else
6482 ac_cv_header_stdc=no
6483 fi
6484 rm -f conftest*
6485
6486 fi
6487
6488 if test $ac_cv_header_stdc = yes; then
6489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6490 if test "$cross_compiling" = yes; then :
6491 :
6492 else
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 #include <ctype.h>
6496 #include <stdlib.h>
6497 #if ((' ' & 0x0FF) == 0x020)
6498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6500 #else
6501 # define ISLOWER(c) \
6502 (('a' <= (c) && (c) <= 'i') \
6503 || ('j' <= (c) && (c) <= 'r') \
6504 || ('s' <= (c) && (c) <= 'z'))
6505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6506 #endif
6507
6508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6509 int
6510 main ()
6511 {
6512 int i;
6513 for (i = 0; i < 256; i++)
6514 if (XOR (islower (i), ISLOWER (i))
6515 || toupper (i) != TOUPPER (i))
6516 return 2;
6517 return 0;
6518 }
6519 _ACEOF
6520 if ac_fn_c_try_run "$LINENO"; then :
6521
6522 else
6523 ac_cv_header_stdc=no
6524 fi
6525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6526 conftest.$ac_objext conftest.beam conftest.$ac_ext
6527 fi
6528
6529 fi
6530 fi
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6532 $as_echo "$ac_cv_header_stdc" >&6; }
6533 if test $ac_cv_header_stdc = yes; then
6534
6535 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6536
6537 fi
6538
6539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6541 inttypes.h stdint.h unistd.h
6542 do :
6543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6545 "
6546 eval as_val=\$$as_ac_Header
6547 if test "x$as_val" = x""yes; then :
6548 cat >>confdefs.h <<_ACEOF
6549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6550 _ACEOF
6551
6552 fi
6553
6554 done
6555
6556
6557
6558 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6559 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6560 MINIX=yes
6561 else
6562 MINIX=
6563 fi
6564
6565
6566 if test "$MINIX" = yes; then
6567
6568 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6569
6570
6571 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6572
6573
6574 $as_echo "#define _MINIX 1" >>confdefs.h
6575
6576
6577 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6578
6579 fi
6580
6581
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6583 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6584 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589
6590 # define __EXTENSIONS__ 1
6591 $ac_includes_default
6592 int
6593 main ()
6594 {
6595
6596 ;
6597 return 0;
6598 }
6599 _ACEOF
6600 if ac_fn_c_try_compile "$LINENO"; then :
6601 ac_cv_safe_to_define___extensions__=yes
6602 else
6603 ac_cv_safe_to_define___extensions__=no
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 fi
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6608 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6609 test $ac_cv_safe_to_define___extensions__ = yes &&
6610 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6611
6612 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6613
6614 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6615
6616 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6617
6618 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6619
6620 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6621
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6623 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6624 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 ac_cv_should_define__xopen_source=no
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630
6631 #include <wchar.h>
6632 mbstate_t x;
6633 int
6634 main ()
6635 {
6636
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 if ac_fn_c_try_compile "$LINENO"; then :
6642
6643 else
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646
6647 #define _XOPEN_SOURCE 500
6648 #include <wchar.h>
6649 mbstate_t x;
6650 int
6651 main ()
6652 {
6653
6654 ;
6655 return 0;
6656 }
6657 _ACEOF
6658 if ac_fn_c_try_compile "$LINENO"; then :
6659 ac_cv_should_define__xopen_source=yes
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6666 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6667 test $ac_cv_should_define__xopen_source = yes &&
6668 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6669
6670
6671
6672
6673
6674
6675
6676
6677 # Check whether --enable-largefile was given.
6678 if test "${enable_largefile+set}" = set; then :
6679 enableval=$enable_largefile;
6680 fi
6681
6682 if test "$enable_largefile" != no; then
6683
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6685 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6686 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 ac_cv_sys_largefile_CC=no
6690 if test "$GCC" != yes; then
6691 ac_save_CC=$CC
6692 while :; do
6693 # IRIX 6.2 and later do not support large files by default,
6694 # so use the C compiler's -n32 option if that helps.
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <sys/types.h>
6698 /* Check that off_t can represent 2**63 - 1 correctly.
6699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6700 since some C++ compilers masquerading as C compilers
6701 incorrectly reject 9223372036854775807. */
6702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6704 && LARGE_OFF_T % 2147483647 == 1)
6705 ? 1 : -1];
6706 int
6707 main ()
6708 {
6709
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 break
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext
6718 CC="$CC -n32"
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 ac_cv_sys_largefile_CC=' -n32'; break
6721 fi
6722 rm -f core conftest.err conftest.$ac_objext
6723 break
6724 done
6725 CC=$ac_save_CC
6726 rm -f conftest.$ac_ext
6727 fi
6728 fi
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6730 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6731 if test "$ac_cv_sys_largefile_CC" != no; then
6732 CC=$CC$ac_cv_sys_largefile_CC
6733 fi
6734
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6736 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6737 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 while :; do
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <sys/types.h>
6744 /* Check that off_t can represent 2**63 - 1 correctly.
6745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6746 since some C++ compilers masquerading as C compilers
6747 incorrectly reject 9223372036854775807. */
6748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6750 && LARGE_OFF_T % 2147483647 == 1)
6751 ? 1 : -1];
6752 int
6753 main ()
6754 {
6755
6756 ;
6757 return 0;
6758 }
6759 _ACEOF
6760 if ac_fn_c_try_compile "$LINENO"; then :
6761 ac_cv_sys_file_offset_bits=no; break
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 #define _FILE_OFFSET_BITS 64
6767 #include <sys/types.h>
6768 /* Check that off_t can represent 2**63 - 1 correctly.
6769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6770 since some C++ compilers masquerading as C compilers
6771 incorrectly reject 9223372036854775807. */
6772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6774 && LARGE_OFF_T % 2147483647 == 1)
6775 ? 1 : -1];
6776 int
6777 main ()
6778 {
6779
6780 ;
6781 return 0;
6782 }
6783 _ACEOF
6784 if ac_fn_c_try_compile "$LINENO"; then :
6785 ac_cv_sys_file_offset_bits=64; break
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 ac_cv_sys_file_offset_bits=unknown
6789 break
6790 done
6791 fi
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6793 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6794 case $ac_cv_sys_file_offset_bits in #(
6795 no | unknown) ;;
6796 *)
6797 cat >>confdefs.h <<_ACEOF
6798 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6799 _ACEOF
6800 ;;
6801 esac
6802 rm -rf conftest*
6803 if test $ac_cv_sys_file_offset_bits = unknown; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6805 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6806 if test "${ac_cv_sys_large_files+set}" = set; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 while :; do
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6813 /* Check that off_t can represent 2**63 - 1 correctly.
6814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6815 since some C++ compilers masquerading as C compilers
6816 incorrectly reject 9223372036854775807. */
6817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6819 && LARGE_OFF_T % 2147483647 == 1)
6820 ? 1 : -1];
6821 int
6822 main ()
6823 {
6824
6825 ;
6826 return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830 ac_cv_sys_large_files=no; break
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #define _LARGE_FILES 1
6836 #include <sys/types.h>
6837 /* Check that off_t can represent 2**63 - 1 correctly.
6838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6839 since some C++ compilers masquerading as C compilers
6840 incorrectly reject 9223372036854775807. */
6841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6843 && LARGE_OFF_T % 2147483647 == 1)
6844 ? 1 : -1];
6845 int
6846 main ()
6847 {
6848
6849 ;
6850 return 0;
6851 }
6852 _ACEOF
6853 if ac_fn_c_try_compile "$LINENO"; then :
6854 ac_cv_sys_large_files=1; break
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 ac_cv_sys_large_files=unknown
6858 break
6859 done
6860 fi
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6862 $as_echo "$ac_cv_sys_large_files" >&6; }
6863 case $ac_cv_sys_large_files in #(
6864 no | unknown) ;;
6865 *)
6866 cat >>confdefs.h <<_ACEOF
6867 #define _LARGE_FILES $ac_cv_sys_large_files
6868 _ACEOF
6869 ;;
6870 esac
6871 rm -rf conftest*
6872 fi
6873
6874
6875 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6876
6877 fi
6878
6879 case $ac_cv_prog_cc_stdc in #(
6880 no) :
6881 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6882 *) :
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6884 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6885 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 ac_cv_prog_cc_c99=no
6889 ac_save_CC=$CC
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 #include <stdarg.h>
6893 #include <stdbool.h>
6894 #include <stdlib.h>
6895 #include <wchar.h>
6896 #include <stdio.h>
6897
6898 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6899 #define debug(...) fprintf (stderr, __VA_ARGS__)
6900 #define showlist(...) puts (#__VA_ARGS__)
6901 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6902 static void
6903 test_varargs_macros (void)
6904 {
6905 int x = 1234;
6906 int y = 5678;
6907 debug ("Flag");
6908 debug ("X = %d\n", x);
6909 showlist (The first, second, and third items.);
6910 report (x>y, "x is %d but y is %d", x, y);
6911 }
6912
6913 // Check long long types.
6914 #define BIG64 18446744073709551615ull
6915 #define BIG32 4294967295ul
6916 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6917 #if !BIG_OK
6918 your preprocessor is broken;
6919 #endif
6920 #if BIG_OK
6921 #else
6922 your preprocessor is broken;
6923 #endif
6924 static long long int bignum = -9223372036854775807LL;
6925 static unsigned long long int ubignum = BIG64;
6926
6927 struct incomplete_array
6928 {
6929 int datasize;
6930 double data[];
6931 };
6932
6933 struct named_init {
6934 int number;
6935 const wchar_t *name;
6936 double average;
6937 };
6938
6939 typedef const char *ccp;
6940
6941 static inline int
6942 test_restrict (ccp restrict text)
6943 {
6944 // See if C++-style comments work.
6945 // Iterate through items via the restricted pointer.
6946 // Also check for declarations in for loops.
6947 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6948 continue;
6949 return 0;
6950 }
6951
6952 // Check varargs and va_copy.
6953 static void
6954 test_varargs (const char *format, ...)
6955 {
6956 va_list args;
6957 va_start (args, format);
6958 va_list args_copy;
6959 va_copy (args_copy, args);
6960
6961 const char *str;
6962 int number;
6963 float fnumber;
6964
6965 while (*format)
6966 {
6967 switch (*format++)
6968 {
6969 case 's': // string
6970 str = va_arg (args_copy, const char *);
6971 break;
6972 case 'd': // int
6973 number = va_arg (args_copy, int);
6974 break;
6975 case 'f': // float
6976 fnumber = va_arg (args_copy, double);
6977 break;
6978 default:
6979 break;
6980 }
6981 }
6982 va_end (args_copy);
6983 va_end (args);
6984 }
6985
6986 int
6987 main ()
6988 {
6989
6990 // Check bool.
6991 _Bool success = false;
6992
6993 // Check restrict.
6994 if (test_restrict ("String literal") == 0)
6995 success = true;
6996 char *restrict newvar = "Another string";
6997
6998 // Check varargs.
6999 test_varargs ("s, d' f .", "string", 65, 34.234);
7000 test_varargs_macros ();
7001
7002 // Check flexible array members.
7003 struct incomplete_array *ia =
7004 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7005 ia->datasize = 10;
7006 for (int i = 0; i < ia->datasize; ++i)
7007 ia->data[i] = i * 1.234;
7008
7009 // Check named initializers.
7010 struct named_init ni = {
7011 .number = 34,
7012 .name = L"Test wide string",
7013 .average = 543.34343,
7014 };
7015
7016 ni.number = 58;
7017
7018 int dynamic_array[ni.number];
7019 dynamic_array[ni.number - 1] = 543;
7020
7021 // work around unused variable warnings
7022 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7023 || dynamic_array[ni.number - 1] != 543);
7024
7025 ;
7026 return 0;
7027 }
7028 _ACEOF
7029 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7030 do
7031 CC="$ac_save_CC $ac_arg"
7032 if ac_fn_c_try_compile "$LINENO"; then :
7033 ac_cv_prog_cc_c99=$ac_arg
7034 fi
7035 rm -f core conftest.err conftest.$ac_objext
7036 test "x$ac_cv_prog_cc_c99" != "xno" && break
7037 done
7038 rm -f conftest.$ac_ext
7039 CC=$ac_save_CC
7040
7041 fi
7042 # AC_CACHE_VAL
7043 case "x$ac_cv_prog_cc_c99" in
7044 x)
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7046 $as_echo "none needed" >&6; } ;;
7047 xno)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7049 $as_echo "unsupported" >&6; } ;;
7050 *)
7051 CC="$CC $ac_cv_prog_cc_c99"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7053 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7054 esac
7055 if test "x$ac_cv_prog_cc_c99" != xno; then :
7056 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7057 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7059 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7060 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 ac_cv_prog_cc_c89=no
7064 ac_save_CC=$CC
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067 #include <stdarg.h>
7068 #include <stdio.h>
7069 #include <sys/types.h>
7070 #include <sys/stat.h>
7071 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7072 struct buf { int x; };
7073 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7074 static char *e (p, i)
7075 char **p;
7076 int i;
7077 {
7078 return p[i];
7079 }
7080 static char *f (char * (*g) (char **, int), char **p, ...)
7081 {
7082 char *s;
7083 va_list v;
7084 va_start (v,p);
7085 s = g (p, va_arg (v,int));
7086 va_end (v);
7087 return s;
7088 }
7089
7090 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7091 function prototypes and stuff, but not '\xHH' hex character constants.
7092 These don't provoke an error unfortunately, instead are silently treated
7093 as 'x'. The following induces an error, until -std is added to get
7094 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7095 array size at least. It's necessary to write '\x00'==0 to get something
7096 that's true only with -std. */
7097 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7098
7099 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7100 inside strings and character constants. */
7101 #define FOO(x) 'x'
7102 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7103
7104 int test (int i, double x);
7105 struct s1 {int (*f) (int a);};
7106 struct s2 {int (*f) (double a);};
7107 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7108 int argc;
7109 char **argv;
7110 int
7111 main ()
7112 {
7113 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7114 ;
7115 return 0;
7116 }
7117 _ACEOF
7118 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7119 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7120 do
7121 CC="$ac_save_CC $ac_arg"
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123 ac_cv_prog_cc_c89=$ac_arg
7124 fi
7125 rm -f core conftest.err conftest.$ac_objext
7126 test "x$ac_cv_prog_cc_c89" != "xno" && break
7127 done
7128 rm -f conftest.$ac_ext
7129 CC=$ac_save_CC
7130
7131 fi
7132 # AC_CACHE_VAL
7133 case "x$ac_cv_prog_cc_c89" in
7134 x)
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7136 $as_echo "none needed" >&6; } ;;
7137 xno)
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7139 $as_echo "unsupported" >&6; } ;;
7140 *)
7141 CC="$CC $ac_cv_prog_cc_c89"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7143 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7144 esac
7145 if test "x$ac_cv_prog_cc_c89" != xno; then :
7146 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7147 else
7148 ac_cv_prog_cc_stdc=no
7149 fi
7150
7151 fi
7152 ;;
7153 esac
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7155 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7156 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 fi
7159
7160 case $ac_cv_prog_cc_stdc in #(
7161 no) :
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7163 $as_echo "unsupported" >&6; } ;; #(
7164 '') :
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7166 $as_echo "none needed" >&6; } ;; #(
7167 *) :
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7169 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7170 esac
7171
7172
7173
7174 # Code from module alloca-opt:
7175 # Code from module allocator:
7176 # Code from module at-internal:
7177 # Code from module c-ctype:
7178 # Code from module c-strcase:
7179 # Code from module careadlinkat:
7180 # Code from module clock-time:
7181 # Code from module close-stream:
7182 # Code from module crypto/md5:
7183 # Code from module crypto/sha1:
7184 # Code from module crypto/sha256:
7185 # Code from module crypto/sha512:
7186 # Code from module dirent:
7187 # Code from module dosname:
7188 # Code from module dtoastr:
7189 # Code from module dtotimespec:
7190 # Code from module dup2:
7191 # Code from module environ:
7192 # Code from module euidaccess:
7193 # Code from module execinfo:
7194 # Code from module extensions:
7195
7196 # Code from module extern-inline:
7197 # Code from module faccessat:
7198 # Code from module fcntl-h:
7199 # Code from module fdatasync:
7200 # Code from module fdopendir:
7201 # Code from module filemode:
7202 # Code from module fpending:
7203 # Code from module fstatat:
7204 # Code from module fsync:
7205 # Code from module getgroups:
7206 # Code from module getloadavg:
7207 # Code from module getopt-gnu:
7208 # Code from module getopt-posix:
7209 # Code from module gettext-h:
7210 # Code from module gettime:
7211 # Code from module gettimeofday:
7212 # Code from module group-member:
7213 # Code from module ignore-value:
7214 # Code from module include_next:
7215 # Code from module intprops:
7216 # Code from module inttypes-incomplete:
7217 # Code from module largefile:
7218
7219 # Code from module lstat:
7220 # Code from module manywarnings:
7221 # Code from module memrchr:
7222 # Code from module mktime:
7223 # Code from module multiarch:
7224 # Code from module nocrash:
7225 # Code from module openat-h:
7226 # Code from module pathmax:
7227 # Code from module pselect:
7228 # Code from module pthread_sigmask:
7229 # Code from module putenv:
7230 # Code from module readlink:
7231 # Code from module readlinkat:
7232 # Code from module root-uid:
7233 # Code from module sig2str:
7234 # Code from module signal-h:
7235 # Code from module snippet/_Noreturn:
7236 # Code from module snippet/arg-nonnull:
7237 # Code from module snippet/c++defs:
7238 # Code from module snippet/warn-on-use:
7239 # Code from module socklen:
7240 # Code from module ssize_t:
7241 # Code from module stat:
7242 # Code from module stat-time:
7243 # Code from module stdalign:
7244 # Code from module stdarg:
7245
7246
7247
7248 # Code from module stdbool:
7249 # Code from module stddef:
7250 # Code from module stdint:
7251 # Code from module stdio:
7252 # Code from module stdlib:
7253 # Code from module strftime:
7254 # Code from module string:
7255 # Code from module strtoimax:
7256 # Code from module strtoll:
7257 # Code from module strtoull:
7258 # Code from module strtoumax:
7259 # Code from module symlink:
7260 # Code from module sys_select:
7261 # Code from module sys_stat:
7262 # Code from module sys_time:
7263 # Code from module time:
7264 # Code from module time_r:
7265 # Code from module timer-time:
7266 # Code from module timespec:
7267 # Code from module timespec-add:
7268 # Code from module timespec-sub:
7269 # Code from module u64:
7270 # Code from module unistd:
7271 # Code from module unsetenv:
7272 # Code from module utimens:
7273 # Code from module verify:
7274 # Code from module warnings:
7275 # Code from module xalloc-oversized:
7276
7277
7278 if test "$ac_test_CFLAGS" != set; then
7279 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7280 # if -g3 works and the user does not specify CFLAGS.
7281 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7282 case $CFLAGS in
7283 '-g')
7284 emacs_g3_CFLAGS='-g3';;
7285 '-g -O2')
7286 emacs_g3_CFLAGS='-g3 -O2';;
7287 *)
7288 emacs_g3_CFLAGS='';;
7289 esac
7290 if test -n "$emacs_g3_CFLAGS"; then
7291 emacs_save_CFLAGS=$CFLAGS
7292 CFLAGS=$emacs_g3_CFLAGS
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7294 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7295 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300
7301 int
7302 main ()
7303 {
7304
7305 ;
7306 return 0;
7307 }
7308 _ACEOF
7309 if ac_fn_c_try_link "$LINENO"; then :
7310 emacs_cv_prog_cc_g3=yes
7311 else
7312 emacs_cv_prog_cc_g3=no
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 fi
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7318 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7319 if test $emacs_cv_prog_cc_g3 != yes; then
7320 CFLAGS=$emacs_save_CFLAGS
7321 fi
7322 fi
7323
7324 case $CFLAGS in
7325 *-O*) ;;
7326 *)
7327 # No optimization flag was inferred for this non-GCC compiler.
7328 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7329 emacs_save_CFLAGS=$CFLAGS
7330 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7331 CFLAGS=${CFLAGS}-O
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7333 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7334 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339
7340 int
7341 main ()
7342 {
7343
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 if ac_fn_c_try_link "$LINENO"; then :
7349 emacs_cv_prog_cc_o=yes
7350 else
7351 emacs_cv_prog_cc_o=no
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext \
7354 conftest$ac_exeext conftest.$ac_ext
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7357 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7358 if test $emacs_cv_prog_cc_o != yes; then
7359 CFLAGS=$emacs_save_CFLAGS
7360 fi ;;
7361 esac
7362 fi
7363
7364 # Check whether --enable-gcc-warnings was given.
7365 if test "${enable_gcc_warnings+set}" = set; then :
7366 enableval=$enable_gcc_warnings; case $enableval in
7367 yes|no) ;;
7368 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7369 esac
7370 gl_gcc_warnings=$enableval
7371 else
7372 gl_gcc_warnings=no
7373
7374 fi
7375
7376
7377 # Check whether --enable-link-time-optimization was given.
7378 if test "${enable_link_time_optimization+set}" = set; then :
7379 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7381 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7382 ac_lto_supported=no
7383 if test x$GCC = xyes; then
7384 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7385 if test x$CPUS != x; then
7386 LTO="-flto=$CPUS"
7387 else
7388 LTO="-flto"
7389 fi
7390 old_CFLAGS=$CFLAGS
7391 CFLAGS="$CFLAGS $LTO"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394
7395 int
7396 main ()
7397 {
7398
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_compile "$LINENO"; then :
7404 ac_lto_supported=yes
7405 else
7406 ac_lto_supported=no
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 CFLAGS="$old_CFLAGS"
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7412 $as_echo "$ac_lto_supported" >&6; }
7413 if test "$ac_lto_supported" = "yes"; then
7414 CFLAGS="$CFLAGS $LTO"
7415 fi
7416 fi
7417 fi
7418
7419
7420 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7421 # ------------------------------------------------
7422 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7423 # Otherwise, run RUN-IF-NOT-FOUND.
7424
7425
7426 # When compiling with GCC, prefer -isystem to -I when including system
7427 # include files, to avoid generating useless diagnostics for the files.
7428 if test "$gl_gcc_warnings" != yes; then
7429 isystem='-I'
7430 else
7431 isystem='-isystem '
7432
7433 # This, $nw, is the list of warnings we disable.
7434 nw=
7435
7436 case $with_x_toolkit in
7437 lucid | athena | motif)
7438 # Old toolkits mishandle 'const'.
7439 nw="$nw -Wwrite-strings"
7440 ;;
7441 *)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7443 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7444 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447
7448 gl_save_compiler_FLAGS="$CFLAGS"
7449 as_fn_append CFLAGS " -Werror"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452
7453 int
7454 main ()
7455 {
7456
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 gl_cv_warn_c__Werror=yes
7463 else
7464 gl_cv_warn_c__Werror=no
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 CFLAGS="$gl_save_compiler_FLAGS"
7468
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7471 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7472 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7473 as_fn_append WERROR_CFLAGS " -Werror"
7474 fi
7475
7476
7477 ;;
7478 esac
7479
7480
7481 nw="$nw -Waggregate-return" # anachronistic
7482 nw="$nw -Wlong-long" # C90 is anachronistic
7483 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7484 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7485 nw="$nw -Wtraditional" # Warns on #elif which we use often
7486 nw="$nw -Wcast-qual" # Too many warnings for now
7487 nw="$nw -Wconversion" # Too many warnings for now
7488 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7489 nw="$nw -Wsign-conversion" # Too many warnings for now
7490 nw="$nw -Woverlength-strings" # Not a problem these days
7491 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7492 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7493 nw="$nw -Wpadded" # Our structs are not padded
7494 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7495 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7496 nw="$nw -Wformat-nonliteral" # we do this a lot
7497 nw="$nw -Wvla" # warnings in gettext.h
7498 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7499 nw="$nw -Wswitch-enum" # Too many warnings for now
7500 nw="$nw -Wswitch-default" # Too many warnings for now
7501 nw="$nw -Wfloat-equal" # warns about high-quality code
7502 nw="$nw -Winline" # OK to ignore 'inline'
7503 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7504 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7505 # signed overflow has undefined behavior
7506 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7507 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7508
7509 # Emacs doesn't care about shadowing; see
7510 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7511 nw="$nw -Wshadow"
7512
7513 # Emacs's use of alloca inhibits protecting the stack.
7514 nw="$nw -Wstack-protector"
7515
7516 # The following line should be removable at some point.
7517 nw="$nw -Wsuggest-attribute=pure"
7518
7519
7520
7521 if test -n "$GCC"; then
7522
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7524 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7525 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528
7529 gl_save_CFLAGS="$CFLAGS"
7530 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533
7534 int
7535 main ()
7536 {
7537
7538 ;
7539 return 0;
7540 }
7541 _ACEOF
7542 if ac_fn_c_try_compile "$LINENO"; then :
7543 gl_cv_cc_nomfi_supported=yes
7544 else
7545 gl_cv_cc_nomfi_supported=no
7546 fi
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 CFLAGS="$gl_save_CFLAGS"
7549 fi
7550
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7552 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7553
7554 if test "$gl_cv_cc_nomfi_supported" = yes; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7556 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7557 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560
7561 gl_save_CFLAGS="$CFLAGS"
7562 CFLAGS="$CFLAGS -W -Werror"
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7565 void f (void)
7566 {
7567 typedef struct { int a; int b; } s_t;
7568 s_t s1 = { 0, };
7569 }
7570
7571 int
7572 main ()
7573 {
7574
7575 ;
7576 return 0;
7577 }
7578 _ACEOF
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580 gl_cv_cc_nomfi_needed=no
7581 else
7582 gl_cv_cc_nomfi_needed=yes
7583 fi
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 CFLAGS="$gl_save_CFLAGS"
7586
7587 fi
7588
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7590 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7591 fi
7592
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7594 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7595 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598
7599 gl_save_CFLAGS="$CFLAGS"
7600 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603
7604 int
7605 main ()
7606 {
7607
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 gl_cv_cc_uninitialized_supported=yes
7614 else
7615 gl_cv_cc_uninitialized_supported=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 CFLAGS="$gl_save_CFLAGS"
7619 fi
7620
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7622 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7623
7624 fi
7625
7626 # List all gcc warning categories.
7627 gl_manywarn_set=
7628 for gl_manywarn_item in \
7629 -W \
7630 -Wabi \
7631 -Waddress \
7632 -Wall \
7633 -Warray-bounds \
7634 -Wattributes \
7635 -Wbad-function-cast \
7636 -Wbuiltin-macro-redefined \
7637 -Wcast-align \
7638 -Wchar-subscripts \
7639 -Wclobbered \
7640 -Wcomment \
7641 -Wcomments \
7642 -Wcoverage-mismatch \
7643 -Wcpp \
7644 -Wdeprecated \
7645 -Wdeprecated-declarations \
7646 -Wdisabled-optimization \
7647 -Wdiv-by-zero \
7648 -Wdouble-promotion \
7649 -Wempty-body \
7650 -Wendif-labels \
7651 -Wenum-compare \
7652 -Wextra \
7653 -Wformat-contains-nul \
7654 -Wformat-extra-args \
7655 -Wformat-nonliteral \
7656 -Wformat-security \
7657 -Wformat-y2k \
7658 -Wformat-zero-length \
7659 -Wformat=2 \
7660 -Wfree-nonheap-object \
7661 -Wignored-qualifiers \
7662 -Wimplicit \
7663 -Wimplicit-function-declaration \
7664 -Wimplicit-int \
7665 -Winit-self \
7666 -Winline \
7667 -Wint-to-pointer-cast \
7668 -Winvalid-memory-model \
7669 -Winvalid-pch \
7670 -Wjump-misses-init \
7671 -Wlogical-op \
7672 -Wmain \
7673 -Wmaybe-uninitialized \
7674 -Wmissing-braces \
7675 -Wmissing-declarations \
7676 -Wmissing-field-initializers \
7677 -Wmissing-format-attribute \
7678 -Wmissing-include-dirs \
7679 -Wmissing-noreturn \
7680 -Wmissing-parameter-type \
7681 -Wmissing-prototypes \
7682 -Wmudflap \
7683 -Wmultichar \
7684 -Wnarrowing \
7685 -Wnested-externs \
7686 -Wnonnull \
7687 -Wnormalized=nfc \
7688 -Wold-style-declaration \
7689 -Wold-style-definition \
7690 -Woverflow \
7691 -Woverlength-strings \
7692 -Woverride-init \
7693 -Wpacked \
7694 -Wpacked-bitfield-compat \
7695 -Wparentheses \
7696 -Wpointer-arith \
7697 -Wpointer-sign \
7698 -Wpointer-to-int-cast \
7699 -Wpragmas \
7700 -Wreturn-type \
7701 -Wsequence-point \
7702 -Wshadow \
7703 -Wsizeof-pointer-memaccess \
7704 -Wstack-protector \
7705 -Wstrict-aliasing \
7706 -Wstrict-overflow \
7707 -Wstrict-prototypes \
7708 -Wsuggest-attribute=const \
7709 -Wsuggest-attribute=format \
7710 -Wsuggest-attribute=noreturn \
7711 -Wsuggest-attribute=pure \
7712 -Wswitch \
7713 -Wswitch-default \
7714 -Wsync-nand \
7715 -Wsystem-headers \
7716 -Wtrampolines \
7717 -Wtrigraphs \
7718 -Wtype-limits \
7719 -Wuninitialized \
7720 -Wunknown-pragmas \
7721 -Wunreachable-code \
7722 -Wunsafe-loop-optimizations \
7723 -Wunused \
7724 -Wunused-but-set-parameter \
7725 -Wunused-but-set-variable \
7726 -Wunused-function \
7727 -Wunused-label \
7728 -Wunused-local-typedefs \
7729 -Wunused-macros \
7730 -Wunused-parameter \
7731 -Wunused-result \
7732 -Wunused-value \
7733 -Wunused-variable \
7734 -Wvarargs \
7735 -Wvariadic-macros \
7736 -Wvector-operation-performance \
7737 -Wvla \
7738 -Wvolatile-register-var \
7739 -Wwrite-strings \
7740 \
7741 ; do
7742 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7743 done
7744
7745 # Disable specific options as needed.
7746 if test "$gl_cv_cc_nomfi_needed" = yes; then
7747 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7748 fi
7749
7750 if test "$gl_cv_cc_uninitialized_supported" = no; then
7751 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7752 fi
7753
7754 ws=$gl_manywarn_set
7755
7756
7757 gl_warn_set=
7758 set x $ws; shift
7759 for gl_warn_item
7760 do
7761 case " $nw " in
7762 *" $gl_warn_item "*)
7763 ;;
7764 *)
7765 gl_warn_set="$gl_warn_set $gl_warn_item"
7766 ;;
7767 esac
7768 done
7769 ws=$gl_warn_set
7770
7771 for w in $ws; do
7772 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7774 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7775 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778
7779 gl_save_compiler_FLAGS="$CFLAGS"
7780 as_fn_append CFLAGS " $w"
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783
7784 int
7785 main ()
7786 {
7787
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 eval "$as_gl_Warn=yes"
7794 else
7795 eval "$as_gl_Warn=no"
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 CFLAGS="$gl_save_compiler_FLAGS"
7799
7800 fi
7801 eval ac_res=\$$as_gl_Warn
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7803 $as_echo "$ac_res" >&6; }
7804 eval as_val=\$$as_gl_Warn
7805 if test "x$as_val" = x""yes; then :
7806 as_fn_append WARN_CFLAGS " $w"
7807 fi
7808
7809
7810 done
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7812 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7813 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816
7817 gl_save_compiler_FLAGS="$CFLAGS"
7818 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821
7822 int
7823 main ()
7824 {
7825
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 gl_cv_warn_c__Wno_missing_field_initializers=yes
7832 else
7833 gl_cv_warn_c__Wno_missing_field_initializers=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 CFLAGS="$gl_save_compiler_FLAGS"
7837
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7840 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7841 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7842 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7843 fi
7844
7845 # We need this one
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7847 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7848 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851
7852 gl_save_compiler_FLAGS="$CFLAGS"
7853 as_fn_append CFLAGS " -Wno-sign-compare"
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856
7857 int
7858 main ()
7859 {
7860
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_compile "$LINENO"; then :
7866 gl_cv_warn_c__Wno_sign_compare=yes
7867 else
7868 gl_cv_warn_c__Wno_sign_compare=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 CFLAGS="$gl_save_compiler_FLAGS"
7872
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7875 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7876 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7877 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7878 fi
7879
7880 # Too many warnings for now
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7882 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7883 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886
7887 gl_save_compiler_FLAGS="$CFLAGS"
7888 as_fn_append CFLAGS " -Wno-type-limits"
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891
7892 int
7893 main ()
7894 {
7895
7896 ;
7897 return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 gl_cv_warn_c__Wno_type_limits=yes
7902 else
7903 gl_cv_warn_c__Wno_type_limits=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 CFLAGS="$gl_save_compiler_FLAGS"
7907
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7910 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7911 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7912 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7913 fi
7914
7915 # Too many warnings for now
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7917 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7918 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921
7922 gl_save_compiler_FLAGS="$CFLAGS"
7923 as_fn_append CFLAGS " -Wno-switch"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926
7927 int
7928 main ()
7929 {
7930
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_compile "$LINENO"; then :
7936 gl_cv_warn_c__Wno_switch=yes
7937 else
7938 gl_cv_warn_c__Wno_switch=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 CFLAGS="$gl_save_compiler_FLAGS"
7942
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7945 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7946 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7947 as_fn_append WARN_CFLAGS " -Wno-switch"
7948 fi
7949
7950 # Too many warnings for now
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7952 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7953 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956
7957 gl_save_compiler_FLAGS="$CFLAGS"
7958 as_fn_append CFLAGS " -Wno-unused-parameter"
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961
7962 int
7963 main ()
7964 {
7965
7966 ;
7967 return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_compile "$LINENO"; then :
7971 gl_cv_warn_c__Wno_unused_parameter=yes
7972 else
7973 gl_cv_warn_c__Wno_unused_parameter=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 CFLAGS="$gl_save_compiler_FLAGS"
7977
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7980 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7981 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7982 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7983 fi
7984
7985 # Too many warnings for now
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7987 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7988 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991
7992 gl_save_compiler_FLAGS="$CFLAGS"
7993 as_fn_append CFLAGS " -Wno-format-nonliteral"
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996
7997 int
7998 main ()
7999 {
8000
8001 ;
8002 return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 gl_cv_warn_c__Wno_format_nonliteral=yes
8007 else
8008 gl_cv_warn_c__Wno_format_nonliteral=no
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 CFLAGS="$gl_save_compiler_FLAGS"
8012
8013 fi
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8015 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8016 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8017 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8018 fi
8019
8020
8021
8022 # In spite of excluding -Wlogical-op above, it is enabled, as of
8023 # gcc 4.5.0 20090517.
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8025 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8026 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029
8030 gl_save_compiler_FLAGS="$CFLAGS"
8031 as_fn_append CFLAGS " -Wno-logical-op"
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8034
8035 int
8036 main ()
8037 {
8038
8039 ;
8040 return 0;
8041 }
8042 _ACEOF
8043 if ac_fn_c_try_compile "$LINENO"; then :
8044 gl_cv_warn_c__Wno_logical_op=yes
8045 else
8046 gl_cv_warn_c__Wno_logical_op=no
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 CFLAGS="$gl_save_compiler_FLAGS"
8050
8051 fi
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8053 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8054 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8055 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8056 fi
8057
8058
8059
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8061 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8062 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065
8066 gl_save_compiler_FLAGS="$CFLAGS"
8067 as_fn_append CFLAGS " -fdiagnostics-show-option"
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070
8071 int
8072 main ()
8073 {
8074
8075 ;
8076 return 0;
8077 }
8078 _ACEOF
8079 if ac_fn_c_try_compile "$LINENO"; then :
8080 gl_cv_warn_c__fdiagnostics_show_option=yes
8081 else
8082 gl_cv_warn_c__fdiagnostics_show_option=no
8083 fi
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085 CFLAGS="$gl_save_compiler_FLAGS"
8086
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8089 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8090 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8091 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8092 fi
8093
8094
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8096 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8097 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100
8101 gl_save_compiler_FLAGS="$CFLAGS"
8102 as_fn_append CFLAGS " -funit-at-a-time"
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105
8106 int
8107 main ()
8108 {
8109
8110 ;
8111 return 0;
8112 }
8113 _ACEOF
8114 if ac_fn_c_try_compile "$LINENO"; then :
8115 gl_cv_warn_c__funit_at_a_time=yes
8116 else
8117 gl_cv_warn_c__funit_at_a_time=no
8118 fi
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 CFLAGS="$gl_save_compiler_FLAGS"
8121
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8124 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8125 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8126 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8127 fi
8128
8129
8130
8131
8132 $as_echo "#define lint 1" >>confdefs.h
8133
8134
8135
8136 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8137
8138
8139 # We use a slightly smaller set of warning options for lib/.
8140 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8141 nw=
8142 nw="$nw -Wunused-macros"
8143
8144
8145 gl_warn_set=
8146 set x $WARN_CFLAGS; shift
8147 for gl_warn_item
8148 do
8149 case " $nw " in
8150 *" $gl_warn_item "*)
8151 ;;
8152 *)
8153 gl_warn_set="$gl_warn_set $gl_warn_item"
8154 ;;
8155 esac
8156 done
8157 GNULIB_WARN_CFLAGS=$gl_warn_set
8158
8159
8160 fi
8161
8162
8163
8164
8165
8166
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8168 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8169 rm -f conf$$ conf$$.file
8170
8171 LN_S_FILEONLY='cp -p'
8172
8173 if (echo >conf$$.file) 2>/dev/null; then
8174 if ln -s conf$$.file conf$$ 2>/dev/null; then
8175 LN_S_FILEONLY='ln -s'
8176 elif ln conf$$.file conf$$ 2>/dev/null; then
8177 LN_S_FILEONLY=ln
8178 fi
8179 fi
8180
8181 rm -f conf$$ conf$$.file
8182
8183 if test "$LN_S_FILEONLY" = "ln -s"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8185 $as_echo "yes" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8188 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8189 fi
8190
8191
8192
8193
8194 # Extract the first word of "install-info", so it can be a program name with args.
8195 set dummy install-info; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 case $INSTALL_INFO in
8202 [\\/]* | ?:[\\/]*)
8203 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8204 ;;
8205 *)
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8208 do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217 done
8218 done
8219 IFS=$as_save_IFS
8220
8221 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8222 ;;
8223 esac
8224 fi
8225 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8226 if test -n "$INSTALL_INFO"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8228 $as_echo "$INSTALL_INFO" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8232 fi
8233
8234
8235 # Extract the first word of "gzip", so it can be a program name with args.
8236 set dummy gzip; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 case $GZIP_PROG in
8243 [\\/]* | ?:[\\/]*)
8244 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8245 ;;
8246 *)
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8257 fi
8258 done
8259 done
8260 IFS=$as_save_IFS
8261
8262 ;;
8263 esac
8264 fi
8265 GZIP_PROG=$ac_cv_path_GZIP_PROG
8266 if test -n "$GZIP_PROG"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8268 $as_echo "$GZIP_PROG" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8272 fi
8273
8274
8275
8276 if test $opsys = gnu-linux; then
8277 # Extract the first word of "paxctl", so it can be a program name with args.
8278 set dummy paxctl; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 case $PAXCTL in
8285 [\\/]* | ?:[\\/]*)
8286 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8287 ;;
8288 *)
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8291 do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8296 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300 done
8301 done
8302 IFS=$as_save_IFS
8303
8304 ;;
8305 esac
8306 fi
8307 PAXCTL=$ac_cv_path_PAXCTL
8308 if test -n "$PAXCTL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8310 $as_echo "$PAXCTL" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316
8317 if test "X$PAXCTL" != X; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8319 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322
8323 int
8324 main ()
8325 {
8326
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 if ac_fn_c_try_link "$LINENO"; then :
8332 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8333 $as_echo "yes" >&6; }
8334 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }; PAXCTL=""; fi
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 fi
8340 fi
8341
8342 ## Need makeinfo >= 4.7 (?) to build the manuals.
8343 # Extract the first word of "makeinfo", so it can be a program name with args.
8344 set dummy makeinfo; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 case $MAKEINFO in
8351 [\\/]* | ?:[\\/]*)
8352 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8353 ;;
8354 *)
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366 done
8367 done
8368 IFS=$as_save_IFS
8369
8370 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8371 ;;
8372 esac
8373 fi
8374 MAKEINFO=$ac_cv_path_MAKEINFO
8375 if test -n "$MAKEINFO"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8377 $as_echo "$MAKEINFO" >&6; }
8378 else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381 fi
8382
8383
8384 if test "$MAKEINFO" != "no"; then
8385 case `
8386 $MAKEINFO --version 2> /dev/null |
8387 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8388 ` in
8389 '') MAKEINFO=no;;
8390 esac
8391 fi
8392
8393 ## Makeinfo is unusual. For a released Emacs, the manuals are
8394 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8395 ## therefore in the category of "special tools" not normally required, which
8396 ## configure does not have to check for (eg autoconf itself).
8397 ## In a Bazaar checkout on the other hand, the manuals are not included.
8398 ## So makeinfo is a requirement to build from Bazaar, and configure
8399 ## should test for it as it does for any other build requirement.
8400 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8401 ## with pre-built manuals, from a Bazaar checkout.
8402 HAVE_MAKEINFO=yes
8403
8404 if test "$MAKEINFO" = "no"; then
8405 MAKEINFO=makeinfo
8406 if test "x${with_makeinfo}" = "xno"; then
8407 HAVE_MAKEINFO=no
8408 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8409 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8410 source tree does not seem to have pre-built manuals in the \`info' directory.
8411 Either install a suitable version of makeinfo, or re-run configure
8412 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8413 fi
8414 fi
8415
8416
8417 INFO_EXT=.info
8418 INFO_OPTS=--no-split
8419
8420
8421
8422
8423 if test x$GCC = xyes; then
8424 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8425 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8426 else
8427 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8428 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8429 fi
8430
8431
8432 late_LDFLAGS=$LDFLAGS
8433 if test x$GCC = xyes; then
8434 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8435 else
8436 LDFLAGS="$LDFLAGS -znocombreloc"
8437 fi
8438
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8440 $as_echo_n "checking for -znocombreloc... " >&6; }
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443
8444 int
8445 main ()
8446 {
8447
8448 ;
8449 return 0;
8450 }
8451 _ACEOF
8452 if ac_fn_c_try_link "$LINENO"; then :
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8454 $as_echo "yes" >&6; }
8455 else
8456 LDFLAGS=$late_LDFLAGS
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
8462
8463
8464 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8465 case "$opsys" in
8466 your-opsys-here) CANNOT_DUMP=yes ;;
8467 esac
8468
8469 test "$CANNOT_DUMP" = "yes" && \
8470
8471 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8472
8473
8474
8475
8476
8477 UNEXEC_OBJ=unexelf.o
8478 case "$opsys" in
8479 # MSDOS uses unexcoff.o
8480 # MSWindows uses unexw32.o
8481 aix4-2)
8482 UNEXEC_OBJ=unexaix.o
8483 ;;
8484 cygwin)
8485 UNEXEC_OBJ=unexcw.o
8486 ;;
8487 darwin)
8488 UNEXEC_OBJ=unexmacosx.o
8489 ;;
8490 hpux10-20 | hpux11)
8491 UNEXEC_OBJ=unexhp9k800.o
8492 ;;
8493 sol2-10)
8494 # Use the Solaris dldump() function, called from unexsol.c, to dump
8495 # emacs, instead of the generic ELF dump code found in unexelf.c.
8496 # The resulting binary has a complete symbol table, and is better
8497 # for debugging and other observability tools (debuggers, pstack, etc).
8498 #
8499 # If you encounter a problem using dldump(), please consider sending
8500 # a message to the OpenSolaris tools-linking mailing list:
8501 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8502 #
8503 # It is likely that dldump() works with older Solaris too, but this has
8504 # not been tested, so for now this change is for Solaris 10 or newer.
8505 UNEXEC_OBJ=unexsol.o
8506 ;;
8507 esac
8508
8509 LD_SWITCH_SYSTEM=
8510 case "$opsys" in
8511 freebsd|dragonfly)
8512 ## Let `ld' find image libs and similar things in /usr/local/lib.
8513 ## The system compiler, GCC, has apparently been modified to not
8514 ## look there, contrary to what a stock GCC would do.
8515 ### It's not our place to do this. See bug#10313#17.
8516 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8517 :
8518 ;;
8519
8520 gnu-linux)
8521 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8522 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8523 ;;
8524
8525 netbsd)
8526 ### It's not our place to do this. See bug#10313#17.
8527 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8528 :
8529 ;;
8530
8531 openbsd)
8532 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8533 ## otherwise Emacs dumps core on elf systems.
8534 LD_SWITCH_SYSTEM="-Z"
8535 ;;
8536 esac
8537
8538
8539 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8540
8541 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8542 ## which has not been defined yet. When this was handled with cpp,
8543 ## it was expanded to null when configure sourced the s/*.h file.
8544 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8545 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8546 ## (or somesuch), but because it is supposed to go at the _front_
8547 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8548 ## Compare with the gnu-linux case below, which added to the end
8549 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8550 ## LD_SWITCH_SYSTEM_TEMACS.
8551 case "$opsys" in
8552 netbsd|openbsd)
8553 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8554 esac
8555
8556
8557 C_SWITCH_MACHINE=
8558 case $canonical in
8559 alpha*)
8560 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8561 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8562
8563 fi
8564
8565 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8566 ## With ELF, make sure that all common symbols get allocated to in the
8567 ## data section. Otherwise, the dump of temacs may miss variables in
8568 ## the shared library that have been initialized. For example, with
8569 ## GNU libc, __malloc_initialized would normally be resolved to the
8570 ## shared library's .bss section, which is fatal.
8571 if test "x$GCC" = "xyes"; then
8572 C_SWITCH_MACHINE="-fno-common"
8573 else
8574 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8575 fi
8576 else
8577 UNEXEC_OBJ=unexalpha.o
8578 fi
8579 ;;
8580 esac
8581
8582
8583
8584
8585 C_SWITCH_SYSTEM=
8586 ## Some programs in src produce warnings saying certain subprograms
8587 ## are too complex and need a MAXMEM value greater than 2000 for
8588 ## additional optimization. --nils@exp-math.uni-essen.de
8589 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8590 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8591 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8592 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8593
8594
8595
8596 LIBS_SYSTEM=
8597 case "$opsys" in
8598 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8599 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8600
8601 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
8602
8603 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8604
8605 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8606
8607 ## Motif needs -lgen.
8608 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8609 esac
8610
8611
8612
8613 ### Make sure subsequent tests use flags consistent with the build flags.
8614
8615 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8616 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8617 else
8618 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8619 fi
8620
8621 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8622
8623 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8624
8625
8626
8627 LIB_MATH=-lm
8628 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8629
8630 case $opsys in
8631 cygwin )
8632 LIB_MATH=
8633 ;;
8634 darwin )
8635 ## Adding -lm confuses the dynamic linker, so omit it.
8636 LIB_MATH=
8637 ;;
8638 freebsd | dragonfly )
8639 SYSTEM_TYPE=berkeley-unix
8640 ;;
8641 gnu-linux | gnu-kfreebsd )
8642 ;;
8643 hpux10-20 | hpux11 )
8644 ;;
8645 netbsd | openbsd )
8646 SYSTEM_TYPE=berkeley-unix
8647 ;;
8648
8649 sol2* | unixware )
8650 SYSTEM_TYPE=usg-unix-v
8651 ;;
8652
8653 esac
8654
8655
8656
8657 cat >>confdefs.h <<_ACEOF
8658 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8659 _ACEOF
8660
8661
8662
8663 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8664 pre_PKG_CONFIG_LIBS=$LIBS
8665
8666 # Extract the first word of "pkg-config", so it can be a program name with args.
8667 set dummy pkg-config; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 case $PKG_CONFIG in
8674 [\\/]* | ?:[\\/]*)
8675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8676 ;;
8677 *)
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 break 2
8688 fi
8689 done
8690 done
8691 IFS=$as_save_IFS
8692
8693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8694 ;;
8695 esac
8696 fi
8697 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8698 if test -n "$PKG_CONFIG"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8700 $as_echo "$PKG_CONFIG" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8704 fi
8705
8706
8707
8708
8709
8710
8711 if test "${with_sound}" != "no"; then
8712 # Sound support for GNU/Linux and the free BSDs.
8713 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8714 do :
8715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8716 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8717 eval as_val=\$$as_ac_Header
8718 if test "x$as_val" = x""yes; then :
8719 cat >>confdefs.h <<_ACEOF
8720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8721 _ACEOF
8722 have_sound_header=yes
8723 fi
8724
8725 done
8726
8727 # Emulation library used on NetBSD.
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8729 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8730 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-lossaudio $LIBS"
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737
8738 /* Override any GCC internal prototype to avoid an error.
8739 Use char because int might match the return type of a GCC
8740 builtin and then its argument prototype would still apply. */
8741 #ifdef __cplusplus
8742 extern "C"
8743 #endif
8744 char _oss_ioctl ();
8745 int
8746 main ()
8747 {
8748 return _oss_ioctl ();
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 if ac_fn_c_try_link "$LINENO"; then :
8754 ac_cv_lib_ossaudio__oss_ioctl=yes
8755 else
8756 ac_cv_lib_ossaudio__oss_ioctl=no
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 LIBS=$ac_check_lib_save_LIBS
8761 fi
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8763 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8764 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8765 LIBSOUND=-lossaudio
8766 else
8767 LIBSOUND=
8768 fi
8769
8770
8771
8772 ALSA_REQUIRED=1.0.0
8773 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8774
8775 succeeded=no
8776
8777 if test "$PKG_CONFIG" = "no" ; then
8778 HAVE_ALSA=no
8779 else
8780 PKG_CONFIG_MIN_VERSION=0.9.0
8781 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8783 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8784
8785 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8786 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8787 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8788 edit_cflags="
8789 s,///*,/,g
8790 s/^/ /
8791 s/ -I/ $isystem/g
8792 s/^ //
8793 "
8794 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8795 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8797 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8798 succeeded=yes
8799 else
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8802 ALSA_CFLAGS=""
8803 ALSA_LIBS=""
8804 ## If we have a custom action on failure, don't print errors, but
8805 ## do set a variable so people can do so. Do it in a subshell
8806 ## to capture any diagnostics in invoking pkg-config.
8807 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8808
8809 fi
8810
8811
8812
8813 else
8814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8816 fi
8817 fi
8818
8819 if test $succeeded = yes; then
8820 HAVE_ALSA=yes
8821 else
8822 HAVE_ALSA=no
8823 fi
8824
8825 if test $HAVE_ALSA = yes; then
8826 SAVE_CFLAGS="$CFLAGS"
8827 SAVE_LIBS="$LIBS"
8828 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8829 LIBS="$ALSA_LIBS $LIBS"
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <asoundlib.h>
8833 int
8834 main ()
8835 {
8836 snd_lib_error_set_handler (0);
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_c_try_compile "$LINENO"; then :
8842 emacs_alsa_normal=yes
8843 else
8844 emacs_alsa_normal=no
8845 fi
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 if test "$emacs_alsa_normal" != yes; then
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850 #include <alsa/asoundlib.h>
8851 int
8852 main ()
8853 {
8854 snd_lib_error_set_handler (0);
8855 ;
8856 return 0;
8857 }
8858 _ACEOF
8859 if ac_fn_c_try_compile "$LINENO"; then :
8860 emacs_alsa_subdir=yes
8861 else
8862 emacs_alsa_subdir=no
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 if test "$emacs_alsa_subdir" != yes; then
8866 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8867 fi
8868 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8869 fi
8870
8871 CFLAGS="$SAVE_CFLAGS"
8872 LIBS="$SAVE_LIBS"
8873 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8874 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8875
8876 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8877
8878 fi
8879
8880 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8881 case "$opsys" in
8882 gnu-linux|freebsd|netbsd)
8883
8884 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8885
8886 ;;
8887 esac
8888 fi
8889
8890
8891 fi
8892
8893
8894
8895
8896 for ac_header in $ac_header_list
8897 do :
8898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8900 "
8901 eval as_val=\$$as_ac_Header
8902 if test "x$as_val" = x""yes; then :
8903 cat >>confdefs.h <<_ACEOF
8904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8905 _ACEOF
8906
8907 fi
8908
8909 done
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8932 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 #include <sys/personality.h>
8936 int
8937 main ()
8938 {
8939 personality (PER_LINUX32)
8940 ;
8941 return 0;
8942 }
8943 _ACEOF
8944 if ac_fn_c_try_compile "$LINENO"; then :
8945 emacs_cv_personality_linux32=yes
8946 else
8947 emacs_cv_personality_linux32=no
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8951 $as_echo "$emacs_cv_personality_linux32" >&6; }
8952
8953 if test $emacs_cv_personality_linux32 = yes; then
8954
8955 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8956
8957 fi
8958
8959 for ac_header in term.h
8960 do :
8961 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8962 if test "x$ac_cv_header_term_h" = x""yes; then :
8963 cat >>confdefs.h <<_ACEOF
8964 #define HAVE_TERM_H 1
8965 _ACEOF
8966
8967 fi
8968
8969 done
8970
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8972 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8973 if test "${ac_cv_header_time+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 #include <sys/types.h>
8979 #include <sys/time.h>
8980 #include <time.h>
8981
8982 int
8983 main ()
8984 {
8985 if ((struct tm *) 0)
8986 return 0;
8987 ;
8988 return 0;
8989 }
8990 _ACEOF
8991 if ac_fn_c_try_compile "$LINENO"; then :
8992 ac_cv_header_time=yes
8993 else
8994 ac_cv_header_time=no
8995 fi
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 fi
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8999 $as_echo "$ac_cv_header_time" >&6; }
9000 if test $ac_cv_header_time = yes; then
9001
9002 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9003
9004 fi
9005
9006 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9007
9008 "
9009 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9010 ac_have_decl=1
9011 else
9012 ac_have_decl=0
9013 fi
9014
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9017 _ACEOF
9018
9019 if test $ac_cv_have_decl_sys_siglist != yes; then
9020 # For Tru64, at least:
9021 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9022
9023 "
9024 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9025 ac_have_decl=1
9026 else
9027 ac_have_decl=0
9028 fi
9029
9030 cat >>confdefs.h <<_ACEOF
9031 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9032 _ACEOF
9033
9034 if test $ac_cv_have_decl___sys_siglist = yes; then
9035
9036 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9037
9038 fi
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9041 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9042 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 #include <sys/types.h>
9048 #include <sys/wait.h>
9049 #ifndef WEXITSTATUS
9050 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9051 #endif
9052 #ifndef WIFEXITED
9053 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9054 #endif
9055
9056 int
9057 main ()
9058 {
9059 int s;
9060 wait (&s);
9061 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9062 ;
9063 return 0;
9064 }
9065 _ACEOF
9066 if ac_fn_c_try_compile "$LINENO"; then :
9067 ac_cv_header_sys_wait_h=yes
9068 else
9069 ac_cv_header_sys_wait_h=no
9070 fi
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9074 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9075 if test $ac_cv_header_sys_wait_h = yes; then
9076
9077 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9078
9079 fi
9080
9081
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9083 $as_echo_n "checking for speed_t... " >&6; }
9084 if test "${emacs_cv_speed_t+set}" = set; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 #include <termios.h>
9090 int
9091 main ()
9092 {
9093 speed_t x = 1;
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_c_try_compile "$LINENO"; then :
9099 emacs_cv_speed_t=yes
9100 else
9101 emacs_cv_speed_t=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9106 $as_echo "$emacs_cv_speed_t" >&6; }
9107 if test $emacs_cv_speed_t = yes; then
9108
9109 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9110
9111 fi
9112
9113
9114
9115
9116 for ac_header in net/if.h
9117 do :
9118 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9119 #if HAVE_SYS_SOCKET_H
9120 #include <sys/socket.h>
9121 #endif
9122 "
9123 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9124 cat >>confdefs.h <<_ACEOF
9125 #define HAVE_NET_IF_H 1
9126 _ACEOF
9127
9128 fi
9129
9130 done
9131
9132 for ac_header in ifaddrs.h
9133 do :
9134 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9135 #if HAVE_SYS_SOCKET_H
9136 #include <sys/socket.h>
9137 #endif
9138 "
9139 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9140 cat >>confdefs.h <<_ACEOF
9141 #define HAVE_IFADDRS_H 1
9142 _ACEOF
9143
9144 fi
9145
9146 done
9147
9148 for ac_header in net/if_dl.h
9149 do :
9150 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9151 #if HAVE_SYS_SOCKET_H
9152 #include <sys/socket.h>
9153 #endif
9154 "
9155 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9156 cat >>confdefs.h <<_ACEOF
9157 #define HAVE_NET_IF_DL_H 1
9158 _ACEOF
9159
9160 fi
9161
9162 done
9163
9164
9165 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9166 #if HAVE_SYS_SOCKET_H
9167 #include <sys/socket.h>
9168 #endif
9169 #if HAVE_NET_IF_H
9170 #include <net/if.h>
9171 #endif
9172 "
9173 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9174
9175 cat >>confdefs.h <<_ACEOF
9176 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9177 _ACEOF
9178
9179
9180 fi
9181 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9182 #if HAVE_SYS_SOCKET_H
9183 #include <sys/socket.h>
9184 #endif
9185 #if HAVE_NET_IF_H
9186 #include <net/if.h>
9187 #endif
9188 "
9189 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9190
9191 cat >>confdefs.h <<_ACEOF
9192 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9193 _ACEOF
9194
9195
9196 fi
9197 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9198 #if HAVE_SYS_SOCKET_H
9199 #include <sys/socket.h>
9200 #endif
9201 #if HAVE_NET_IF_H
9202 #include <net/if.h>
9203 #endif
9204 "
9205 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9206
9207 cat >>confdefs.h <<_ACEOF
9208 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9209 _ACEOF
9210
9211
9212 fi
9213 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9214 #if HAVE_SYS_SOCKET_H
9215 #include <sys/socket.h>
9216 #endif
9217 #if HAVE_NET_IF_H
9218 #include <net/if.h>
9219 #endif
9220 "
9221 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9222
9223 cat >>confdefs.h <<_ACEOF
9224 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9225 _ACEOF
9226
9227
9228 fi
9229 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9230 #if HAVE_SYS_SOCKET_H
9231 #include <sys/socket.h>
9232 #endif
9233 #if HAVE_NET_IF_H
9234 #include <net/if.h>
9235 #endif
9236 "
9237 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9238
9239 cat >>confdefs.h <<_ACEOF
9240 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9241 _ACEOF
9242
9243
9244 fi
9245 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9246 #if HAVE_SYS_SOCKET_H
9247 #include <sys/socket.h>
9248 #endif
9249 #if HAVE_NET_IF_H
9250 #include <net/if.h>
9251 #endif
9252 "
9253 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9254
9255 cat >>confdefs.h <<_ACEOF
9256 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9257 _ACEOF
9258
9259
9260 fi
9261
9262
9263
9264
9265 DEPFLAGS=
9266 MKDEPDIR=":"
9267 deps_frag=deps.mk
9268 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9270 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9271 HAVE_GNU_MAKE=no
9272 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9273 if test "x$testval" != x; then
9274 HAVE_GNU_MAKE=yes
9275 else
9276 ac_enable_autodepend=no
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9279 $as_echo "$HAVE_GNU_MAKE" >&6; }
9280 if test $HAVE_GNU_MAKE = yes; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9282 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9283 SAVE_CFLAGS="$CFLAGS"
9284 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287
9288 int
9289 main ()
9290 {
9291
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 if ac_fn_c_try_compile "$LINENO"; then :
9297
9298 else
9299 ac_enable_autodepend=no
9300 fi
9301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 CFLAGS="$SAVE_CFLAGS"
9303 test -f deps.d || ac_enable_autodepend=no
9304 rm -rf deps.d
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9306 $as_echo "$ac_enable_autodepend" >&6; }
9307 fi
9308 if test $ac_enable_autodepend = yes; then
9309 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9310 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9311 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9312 deps_frag=autodeps.mk
9313 fi
9314 fi
9315 deps_frag=$srcdir/src/$deps_frag
9316
9317
9318
9319
9320
9321 lisp_frag=$srcdir/src/lisp.mk
9322
9323
9324
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9326 $as_echo_n "checking for long file names... " >&6; }
9327 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 ac_cv_sys_long_file_names=yes
9331 # Test for long file names in all the places we know might matter:
9332 # . the current directory, where building will happen
9333 # $prefix/lib where we will be installing things
9334 # $exec_prefix/lib likewise
9335 # $TMPDIR if set, where it might want to write temporary files
9336 # /tmp where it might want to write temporary files
9337 # /var/tmp likewise
9338 # /usr/tmp likewise
9339 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9340 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9341 # in the usual case where exec_prefix is '${prefix}'.
9342 case $ac_dir in #(
9343 . | /* | ?:[\\/]*) ;; #(
9344 *) continue;;
9345 esac
9346 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9347 ac_xdir=$ac_dir/cf$$
9348 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9349 ac_tf1=$ac_xdir/conftest9012345
9350 ac_tf2=$ac_xdir/conftest9012346
9351 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9352 ac_cv_sys_long_file_names=no
9353 rm -f -r "$ac_xdir" 2>/dev/null
9354 test $ac_cv_sys_long_file_names = no && break
9355 done
9356 fi
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9358 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9359 if test $ac_cv_sys_long_file_names = yes; then
9360
9361 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9362
9363 fi
9364
9365
9366 #### Choose a window system.
9367
9368 ## We leave window_system equal to none if
9369 ## we end up building without one. Any new window system should
9370 ## set window_system to an appropriate value and add objects to
9371 ## window-system-specific substs.
9372
9373 window_system=none
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9375 $as_echo_n "checking for X... " >&6; }
9376
9377
9378 # Check whether --with-x was given.
9379 if test "${with_x+set}" = set; then :
9380 withval=$with_x;
9381 fi
9382
9383 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9384 if test "x$with_x" = xno; then
9385 # The user explicitly disabled X.
9386 have_x=disabled
9387 else
9388 case $x_includes,$x_libraries in #(
9389 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9390 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 # One or both of the vars are not set, and there is no cached value.
9394 ac_x_includes=no ac_x_libraries=no
9395 rm -f -r conftest.dir
9396 if mkdir conftest.dir; then
9397 cd conftest.dir
9398 cat >Imakefile <<'_ACEOF'
9399 incroot:
9400 @echo incroot='${INCROOT}'
9401 usrlibdir:
9402 @echo usrlibdir='${USRLIBDIR}'
9403 libdir:
9404 @echo libdir='${LIBDIR}'
9405 _ACEOF
9406 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9407 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9408 for ac_var in incroot usrlibdir libdir; do
9409 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9410 done
9411 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9412 for ac_extension in a so sl dylib la dll; do
9413 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9414 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9415 ac_im_usrlibdir=$ac_im_libdir; break
9416 fi
9417 done
9418 # Screen out bogus values from the imake configuration. They are
9419 # bogus both because they are the default anyway, and because
9420 # using them would break gcc on systems where it needs fixed includes.
9421 case $ac_im_incroot in
9422 /usr/include) ac_x_includes= ;;
9423 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9424 esac
9425 case $ac_im_usrlibdir in
9426 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9427 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9428 esac
9429 fi
9430 cd ..
9431 rm -f -r conftest.dir
9432 fi
9433
9434 # Standard set of common directories for X headers.
9435 # Check X11 before X11Rn because it is often a symlink to the current release.
9436 ac_x_header_dirs='
9437 /usr/X11/include
9438 /usr/X11R7/include
9439 /usr/X11R6/include
9440 /usr/X11R5/include
9441 /usr/X11R4/include
9442
9443 /usr/include/X11
9444 /usr/include/X11R7
9445 /usr/include/X11R6
9446 /usr/include/X11R5
9447 /usr/include/X11R4
9448
9449 /usr/local/X11/include
9450 /usr/local/X11R7/include
9451 /usr/local/X11R6/include
9452 /usr/local/X11R5/include
9453 /usr/local/X11R4/include
9454
9455 /usr/local/include/X11
9456 /usr/local/include/X11R7
9457 /usr/local/include/X11R6
9458 /usr/local/include/X11R5
9459 /usr/local/include/X11R4
9460
9461 /usr/X386/include
9462 /usr/x386/include
9463 /usr/XFree86/include/X11
9464
9465 /usr/include
9466 /usr/local/include
9467 /usr/unsupported/include
9468 /usr/athena/include
9469 /usr/local/x11r5/include
9470 /usr/lpp/Xamples/include
9471
9472 /usr/openwin/include
9473 /usr/openwin/share/include'
9474
9475 if test "$ac_x_includes" = no; then
9476 # Guess where to find include files, by looking for Xlib.h.
9477 # First, try using that file with no special directory specified.
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 #include <X11/Xlib.h>
9481 _ACEOF
9482 if ac_fn_c_try_cpp "$LINENO"; then :
9483 # We can compile using X headers with no special include directory.
9484 ac_x_includes=
9485 else
9486 for ac_dir in $ac_x_header_dirs; do
9487 if test -r "$ac_dir/X11/Xlib.h"; then
9488 ac_x_includes=$ac_dir
9489 break
9490 fi
9491 done
9492 fi
9493 rm -f conftest.err conftest.$ac_ext
9494 fi # $ac_x_includes = no
9495
9496 if test "$ac_x_libraries" = no; then
9497 # Check for the libraries.
9498 # See if we find them without any special options.
9499 # Don't add to $LIBS permanently.
9500 ac_save_LIBS=$LIBS
9501 LIBS="-lX11 $LIBS"
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 #include <X11/Xlib.h>
9505 int
9506 main ()
9507 {
9508 XrmInitialize ()
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514 LIBS=$ac_save_LIBS
9515 # We can link X programs with no special library path.
9516 ac_x_libraries=
9517 else
9518 LIBS=$ac_save_LIBS
9519 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9520 do
9521 # Don't even attempt the hair of trying to link an X program!
9522 for ac_extension in a so sl dylib la dll; do
9523 if test -r "$ac_dir/libX11.$ac_extension"; then
9524 ac_x_libraries=$ac_dir
9525 break 2
9526 fi
9527 done
9528 done
9529 fi
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 fi # $ac_x_libraries = no
9533
9534 case $ac_x_includes,$ac_x_libraries in #(
9535 no,* | *,no | *\'*)
9536 # Didn't find X, or a directory has "'" in its name.
9537 ac_cv_have_x="have_x=no";; #(
9538 *)
9539 # Record where we found X for the cache.
9540 ac_cv_have_x="have_x=yes\
9541 ac_x_includes='$ac_x_includes'\
9542 ac_x_libraries='$ac_x_libraries'"
9543 esac
9544 fi
9545 ;; #(
9546 *) have_x=yes;;
9547 esac
9548 eval "$ac_cv_have_x"
9549 fi # $with_x != no
9550
9551 if test "$have_x" != yes; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9553 $as_echo "$have_x" >&6; }
9554 no_x=yes
9555 else
9556 # If each of the values was on the command line, it overrides each guess.
9557 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9558 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9559 # Update the cache value to reflect the command line values.
9560 ac_cv_have_x="have_x=yes\
9561 ac_x_includes='$x_includes'\
9562 ac_x_libraries='$x_libraries'"
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9564 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9565 fi
9566
9567 if test "$no_x" != yes; then
9568 window_system=x11
9569 fi
9570
9571 LD_SWITCH_X_SITE_RPATH=
9572 if test "${x_libraries}" != NONE; then
9573 if test -n "${x_libraries}"; then
9574 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9575 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9576 fi
9577 x_default_search_path=""
9578 x_search_path=${x_libraries}
9579 if test -z "${x_search_path}"; then
9580 x_search_path=/usr/lib
9581 fi
9582 for x_library in `echo ${x_search_path}: | \
9583 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9584 x_search_path="\
9585 ${x_library}/X11/%L/%T/%N%C%S:\
9586 ${x_library}/X11/%l/%T/%N%C%S:\
9587 ${x_library}/X11/%T/%N%C%S:\
9588 ${x_library}/X11/%L/%T/%N%S:\
9589 ${x_library}/X11/%l/%T/%N%S:\
9590 ${x_library}/X11/%T/%N%S"
9591 if test x"${x_default_search_path}" = x; then
9592 x_default_search_path=${x_search_path}
9593 else
9594 x_default_search_path="${x_search_path}:${x_default_search_path}"
9595 fi
9596 done
9597 fi
9598
9599
9600 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9601 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9602 fi
9603
9604 if test x"${x_includes}" = x; then
9605 bitmapdir=/usr/include/X11/bitmaps
9606 else
9607 # accumulate include directories that have X11 bitmap subdirectories
9608 bmd_acc="dummyval"
9609 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9610 if test -d "${bmd}/X11/bitmaps"; then
9611 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9612 fi
9613 if test -d "${bmd}/bitmaps"; then
9614 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9615 fi
9616 done
9617 if test ${bmd_acc} != "dummyval"; then
9618 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9619 fi
9620 fi
9621
9622 HAVE_NS=no
9623 NS_IMPL_COCOA=no
9624 NS_IMPL_GNUSTEP=no
9625 tmp_CPPFLAGS="$CPPFLAGS"
9626 tmp_CFLAGS="$CFLAGS"
9627 CPPFLAGS="$CPPFLAGS -x objective-c"
9628 CFLAGS="$CFLAGS -x objective-c"
9629 GNU_OBJC_CFLAGS=
9630 LIBS_GNUSTEP=
9631 if test "${with_ns}" != no; then
9632 if test "${opsys}" = darwin; then
9633 NS_IMPL_COCOA=yes
9634 ns_appdir=`pwd`/nextstep/Emacs.app
9635 ns_appbindir=${ns_appdir}/Contents/MacOS
9636 ns_appresdir=${ns_appdir}/Contents/Resources
9637 ns_appsrc=Cocoa/Emacs.base
9638 elif test -f $GNUSTEP_CONFIG_FILE; then
9639 NS_IMPL_GNUSTEP=yes
9640 ns_appdir=`pwd`/nextstep/Emacs.app
9641 ns_appbindir=${ns_appdir}
9642 ns_appresdir=${ns_appdir}/Resources
9643 ns_appsrc=GNUstep/Emacs.base
9644 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9645 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9646 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9647 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9648 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9649 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9650 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9651 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9652 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9653 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9654 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9655 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9657 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9658 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 #include <GNUstepBase/GSConfig.h>
9664 int
9665 main ()
9666 {
9667 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9668 1;
9669 #else
9670 fail;
9671 #endif
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"; then :
9677 emacs_cv_objc_exceptions=yes
9678 else
9679 emacs_cv_objc_exceptions=no
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9684 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9685 if test $emacs_cv_objc_exceptions = yes; then
9686
9687 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9688
9689 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9690 fi
9691 fi
9692
9693 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9694
9695 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9696 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9697 HAVE_NS=yes
9698 else
9699 as_fn_error "\`--with-ns' was specified, but the include
9700 files are missing or cannot be compiled." "$LINENO" 5
9701 fi
9702
9703
9704
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 #include <AppKit/AppKit.h>
9708 int
9709 main ()
9710 {
9711
9712 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9713 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9714 ; /* OK */
9715 #else
9716 #error "OSX 10.4 or newer required"
9717 #endif
9718 #endif
9719
9720 ;
9721 return 0;
9722 }
9723 _ACEOF
9724 if ac_fn_c_try_compile "$LINENO"; then :
9725 ns_osx_have_104=yes
9726 else
9727 ns_osx_have_104=no
9728 fi
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732 #include <Foundation/NSObjCRuntime.h>
9733 int
9734 main ()
9735 {
9736 NSInteger i;
9737 ;
9738 return 0;
9739 }
9740 _ACEOF
9741 if ac_fn_c_try_compile "$LINENO"; then :
9742 ns_have_nsinteger=yes
9743 else
9744 ns_have_nsinteger=no
9745 fi
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 if test $ns_osx_have_104 = no; then
9748 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9749 fi
9750 if test $ns_have_nsinteger = yes; then
9751
9752 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9753
9754 fi
9755 fi
9756
9757
9758
9759 INSTALL_ARCH_INDEP_EXTRA=install-etc
9760 ns_self_contained=no
9761 NS_OBJ=
9762 NS_OBJC_OBJ=
9763 if test "${HAVE_NS}" = yes; then
9764 if test "$with_toolkit_scroll_bars" = "no"; then
9765 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9766 fi
9767
9768 window_system=nextstep
9769 # set up packaging dirs
9770 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9771 ns_self_contained=yes
9772 prefix=${ns_appresdir}
9773 exec_prefix=${ns_appbindir}
9774 libexecdir="\${ns_appbindir}/libexec"
9775 archlibdir="\${ns_appbindir}/libexec"
9776 docdir="\${ns_appresdir}/etc"
9777 etcdir="\${ns_appresdir}/etc"
9778 infodir="\${ns_appresdir}/info"
9779 mandir="\${ns_appresdir}/man"
9780 lispdir="\${ns_appresdir}/lisp"
9781 leimdir="\${ns_appresdir}/leim"
9782 INSTALL_ARCH_INDEP_EXTRA=
9783 fi
9784 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9785 fi
9786 CFLAGS="$tmp_CFLAGS"
9787 CPPFLAGS="$tmp_CPPFLAGS"
9788
9789
9790
9791
9792
9793 HAVE_W32=no
9794 W32_OBJ=
9795 W32_LIBS=
9796 W32_RES=
9797 W32_RES_LINK=
9798 if test "${with_w32}" != no; then
9799 if test "${opsys}" != "cygwin"; then
9800 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9801 fi
9802 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9803 if test "x$ac_cv_header_windows_h" = x""yes; then :
9804 HAVE_W32=yes
9805 else
9806 as_fn_error "\`--with-w32' was specified, but windows.h
9807 cannot be found." "$LINENO" 5
9808 fi
9809
9810
9811
9812 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9813
9814 if test -n "$ac_tool_prefix"; then
9815 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9816 set dummy ${ac_tool_prefix}windres; ac_word=$2
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 $as_echo_n "checking for $ac_word... " >&6; }
9819 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 if test -n "$WINDRES"; then
9823 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9824 else
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9827 do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9835 fi
9836 done
9837 done
9838 IFS=$as_save_IFS
9839
9840 fi
9841 fi
9842 WINDRES=$ac_cv_prog_WINDRES
9843 if test -n "$WINDRES"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9845 $as_echo "$WINDRES" >&6; }
9846 else
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9849 fi
9850
9851
9852 fi
9853 if test -z "$ac_cv_prog_WINDRES"; then
9854 ac_ct_WINDRES=$WINDRES
9855 # Extract the first word of "windres", so it can be a program name with args.
9856 set dummy windres; ac_word=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9860 $as_echo_n "(cached) " >&6
9861 else
9862 if test -n "$ac_ct_WINDRES"; then
9863 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9864 else
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9867 do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872 ac_cv_prog_ac_ct_WINDRES="windres"
9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 break 2
9875 fi
9876 done
9877 done
9878 IFS=$as_save_IFS
9879
9880 fi
9881 fi
9882 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9883 if test -n "$ac_ct_WINDRES"; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9885 $as_echo "$ac_ct_WINDRES" >&6; }
9886 else
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888 $as_echo "no" >&6; }
9889 fi
9890
9891 if test "x$ac_ct_WINDRES" = x; then
9892 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9893 else
9894 case $cross_compiling:$ac_tool_warned in
9895 yes:)
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9898 ac_tool_warned=yes ;;
9899 esac
9900 WINDRES=$ac_ct_WINDRES
9901 fi
9902 else
9903 WINDRES="$ac_cv_prog_WINDRES"
9904 fi
9905
9906 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9907 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9908 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9909 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9910 W32_RES="emacs.res"
9911 # Tell the linker that emacs.res is an object (which we compile from
9912 # the rc file), not a linker script.
9913 W32_RES_LINK="-Wl,emacs.res"
9914 fi
9915
9916
9917
9918
9919
9920 if test "${HAVE_W32}" = "yes"; then
9921 window_system=w32
9922 with_xft=no
9923 fi
9924
9925 ## $window_system is now set to the window system we will
9926 ## ultimately use.
9927
9928 term_header=
9929 HAVE_X_WINDOWS=no
9930 HAVE_X11=no
9931 USE_X_TOOLKIT=none
9932
9933 case "${window_system}" in
9934 x11 )
9935 HAVE_X_WINDOWS=yes
9936 HAVE_X11=yes
9937 term_header=xterm.h
9938 case "${with_x_toolkit}" in
9939 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9940 motif ) USE_X_TOOLKIT=MOTIF ;;
9941 gtk ) with_gtk=yes
9942 term_header=gtkutil.h
9943 USE_X_TOOLKIT=none ;;
9944 gtk2 ) with_gtk2=yes
9945 term_header=gtkutil.h
9946 USE_X_TOOLKIT=none ;;
9947 gtk3 ) with_gtk3=yes
9948 term_header=gtkutil.h
9949 USE_X_TOOLKIT=none ;;
9950 no ) USE_X_TOOLKIT=none ;;
9951 * ) USE_X_TOOLKIT=maybe ;;
9952 esac
9953 ;;
9954 nextstep )
9955 term_header=nsterm.h
9956 ;;
9957 w32 )
9958 term_header=w32term.h
9959 ;;
9960 esac
9961
9962 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9963 # Extract the first word of "X", so it can be a program name with args.
9964 set dummy X; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 if test -n "$HAVE_XSERVER"; then
9971 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9975 do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_HAVE_XSERVER="true"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
9984 done
9985 done
9986 IFS=$as_save_IFS
9987
9988 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9989 fi
9990 fi
9991 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9992 if test -n "$HAVE_XSERVER"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9994 $as_echo "$HAVE_XSERVER" >&6; }
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
9998 fi
9999
10000
10001 if test "$HAVE_XSERVER" = true ||
10002 test -n "$DISPLAY" ||
10003 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10004 as_fn_error "You seem to be running X, but no X development libraries
10005 were found. You should install the relevant development files for X
10006 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10007 sure you have development files for image handling, i.e.
10008 tiff, gif, jpeg, png and xpm.
10009 If you are sure you want Emacs compiled without X window support, pass
10010 --without-x
10011 to configure." "$LINENO" 5
10012 fi
10013 fi
10014
10015 ### If we're using X11, we should use the X menu package.
10016 HAVE_MENUS=no
10017 case ${HAVE_X11} in
10018 yes ) HAVE_MENUS=yes ;;
10019 esac
10020
10021 # Does the opsystem file prohibit the use of the GNU malloc?
10022 # Assume not, until told otherwise.
10023 GNU_MALLOC=yes
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10026 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10027 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 #include <malloc.h>
10033 static void hook (void) {}
10034 int
10035 main ()
10036 {
10037 malloc_set_state (malloc_get_state ());
10038 __after_morecore_hook = hook;
10039 __malloc_initialize_hook = hook;
10040 ;
10041 return 0;
10042 }
10043 _ACEOF
10044 if ac_fn_c_try_link "$LINENO"; then :
10045 emacs_cv_var_doug_lea_malloc=yes
10046 else
10047 emacs_cv_var_doug_lea_malloc=no
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051 fi
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10053 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10054 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10055
10056
10057 system_malloc=no
10058 case "$opsys" in
10059 ## darwin ld insists on the use of malloc routines in the System framework.
10060 darwin|sol2-10) system_malloc=yes ;;
10061 esac
10062
10063 if test "${system_malloc}" = "yes"; then
10064
10065 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10066
10067 GNU_MALLOC=no
10068 GNU_MALLOC_reason="
10069 (The GNU allocators don't work with this system configuration.)"
10070 GMALLOC_OBJ=
10071 VMLIMIT_OBJ=
10072 else
10073 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10074 VMLIMIT_OBJ=vm-limit.o
10075
10076 for ac_header in sys/vlimit.h
10077 do :
10078 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10079 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_SYS_VLIMIT_H 1
10082 _ACEOF
10083
10084 fi
10085
10086 done
10087
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10089 $as_echo_n "checking for data_start... " >&6; }
10090 if test "${emacs_cv_data_start+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095 extern char data_start[]; char ch;
10096 int
10097 main ()
10098 {
10099 return data_start < &ch;
10100 ;
10101 return 0;
10102 }
10103 _ACEOF
10104 if ac_fn_c_try_link "$LINENO"; then :
10105 emacs_cv_data_start=yes
10106 else
10107 emacs_cv_data_start=no
10108 fi
10109 rm -f core conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10111 fi
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10113 $as_echo "$emacs_cv_data_start" >&6; }
10114 if test $emacs_cv_data_start = yes; then
10115
10116 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10117
10118 fi
10119 fi
10120
10121
10122
10123 if test "$doug_lea_malloc" = "yes" ; then
10124 if test "$GNU_MALLOC" = yes ; then
10125 GNU_MALLOC_reason="
10126 (Using Doug Lea's new malloc from the GNU C Library.)"
10127 fi
10128
10129 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10130
10131
10132 ## Use mmap directly for allocating larger buffers.
10133 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10134 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10135 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10136 case "$opsys" in
10137 gnu*) REL_ALLOC=no ;;
10138 esac
10139 fi
10140
10141 if test x"${REL_ALLOC}" = x; then
10142 REL_ALLOC=${GNU_MALLOC}
10143 fi
10144
10145 use_mmap_for_buffers=no
10146 case "$opsys" in
10147 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10148 esac
10149
10150
10151
10152
10153
10154
10155
10156
10157 for ac_func in getpagesize
10158 do :
10159 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10160 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10161 cat >>confdefs.h <<_ACEOF
10162 #define HAVE_GETPAGESIZE 1
10163 _ACEOF
10164
10165 fi
10166 done
10167
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10169 $as_echo_n "checking for working mmap... " >&6; }
10170 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 if test "$cross_compiling" = yes; then :
10174 ac_cv_func_mmap_fixed_mapped=no
10175 else
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 $ac_includes_default
10179 /* malloc might have been renamed as rpl_malloc. */
10180 #undef malloc
10181
10182 /* Thanks to Mike Haertel and Jim Avera for this test.
10183 Here is a matrix of mmap possibilities:
10184 mmap private not fixed
10185 mmap private fixed at somewhere currently unmapped
10186 mmap private fixed at somewhere already mapped
10187 mmap shared not fixed
10188 mmap shared fixed at somewhere currently unmapped
10189 mmap shared fixed at somewhere already mapped
10190 For private mappings, we should verify that changes cannot be read()
10191 back from the file, nor mmap's back from the file at a different
10192 address. (There have been systems where private was not correctly
10193 implemented like the infamous i386 svr4.0, and systems where the
10194 VM page cache was not coherent with the file system buffer cache
10195 like early versions of FreeBSD and possibly contemporary NetBSD.)
10196 For shared mappings, we should conversely verify that changes get
10197 propagated back to all the places they're supposed to be.
10198
10199 Grep wants private fixed already mapped.
10200 The main things grep needs to know about mmap are:
10201 * does it exist and is it safe to write into the mmap'd area
10202 * how to use it (BSD variants) */
10203
10204 #include <fcntl.h>
10205 #include <sys/mman.h>
10206
10207 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10208 char *malloc ();
10209 #endif
10210
10211 /* This mess was copied from the GNU getpagesize.h. */
10212 #ifndef HAVE_GETPAGESIZE
10213 # ifdef _SC_PAGESIZE
10214 # define getpagesize() sysconf(_SC_PAGESIZE)
10215 # else /* no _SC_PAGESIZE */
10216 # ifdef HAVE_SYS_PARAM_H
10217 # include <sys/param.h>
10218 # ifdef EXEC_PAGESIZE
10219 # define getpagesize() EXEC_PAGESIZE
10220 # else /* no EXEC_PAGESIZE */
10221 # ifdef NBPG
10222 # define getpagesize() NBPG * CLSIZE
10223 # ifndef CLSIZE
10224 # define CLSIZE 1
10225 # endif /* no CLSIZE */
10226 # else /* no NBPG */
10227 # ifdef NBPC
10228 # define getpagesize() NBPC
10229 # else /* no NBPC */
10230 # ifdef PAGESIZE
10231 # define getpagesize() PAGESIZE
10232 # endif /* PAGESIZE */
10233 # endif /* no NBPC */
10234 # endif /* no NBPG */
10235 # endif /* no EXEC_PAGESIZE */
10236 # else /* no HAVE_SYS_PARAM_H */
10237 # define getpagesize() 8192 /* punt totally */
10238 # endif /* no HAVE_SYS_PARAM_H */
10239 # endif /* no _SC_PAGESIZE */
10240
10241 #endif /* no HAVE_GETPAGESIZE */
10242
10243 int
10244 main ()
10245 {
10246 char *data, *data2, *data3;
10247 const char *cdata2;
10248 int i, pagesize;
10249 int fd, fd2;
10250
10251 pagesize = getpagesize ();
10252
10253 /* First, make a file with some known garbage in it. */
10254 data = (char *) malloc (pagesize);
10255 if (!data)
10256 return 1;
10257 for (i = 0; i < pagesize; ++i)
10258 *(data + i) = rand ();
10259 umask (0);
10260 fd = creat ("conftest.mmap", 0600);
10261 if (fd < 0)
10262 return 2;
10263 if (write (fd, data, pagesize) != pagesize)
10264 return 3;
10265 close (fd);
10266
10267 /* Next, check that the tail of a page is zero-filled. File must have
10268 non-zero length, otherwise we risk SIGBUS for entire page. */
10269 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10270 if (fd2 < 0)
10271 return 4;
10272 cdata2 = "";
10273 if (write (fd2, cdata2, 1) != 1)
10274 return 5;
10275 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10276 if (data2 == MAP_FAILED)
10277 return 6;
10278 for (i = 0; i < pagesize; ++i)
10279 if (*(data2 + i))
10280 return 7;
10281 close (fd2);
10282 if (munmap (data2, pagesize))
10283 return 8;
10284
10285 /* Next, try to mmap the file at a fixed address which already has
10286 something else allocated at it. If we can, also make sure that
10287 we see the same garbage. */
10288 fd = open ("conftest.mmap", O_RDWR);
10289 if (fd < 0)
10290 return 9;
10291 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10292 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10293 return 10;
10294 for (i = 0; i < pagesize; ++i)
10295 if (*(data + i) != *(data2 + i))
10296 return 11;
10297
10298 /* Finally, make sure that changes to the mapped area do not
10299 percolate back to the file as seen by read(). (This is a bug on
10300 some variants of i386 svr4.0.) */
10301 for (i = 0; i < pagesize; ++i)
10302 *(data2 + i) = *(data2 + i) + 1;
10303 data3 = (char *) malloc (pagesize);
10304 if (!data3)
10305 return 12;
10306 if (read (fd, data3, pagesize) != pagesize)
10307 return 13;
10308 for (i = 0; i < pagesize; ++i)
10309 if (*(data + i) != *(data3 + i))
10310 return 14;
10311 close (fd);
10312 return 0;
10313 }
10314 _ACEOF
10315 if ac_fn_c_try_run "$LINENO"; then :
10316 ac_cv_func_mmap_fixed_mapped=yes
10317 else
10318 ac_cv_func_mmap_fixed_mapped=no
10319 fi
10320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10321 conftest.$ac_objext conftest.beam conftest.$ac_ext
10322 fi
10323
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10326 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10327 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10328
10329 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10330
10331 fi
10332 rm -f conftest.mmap conftest.txt
10333
10334 if test $use_mmap_for_buffers = yes; then
10335
10336 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10337
10338 REL_ALLOC=no
10339 fi
10340
10341 LIBS="$LIBS_SYSTEM $LIBS"
10342
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10344 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10345 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 ac_check_lib_save_LIBS=$LIBS
10349 LIBS="-ldnet $LIBS"
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352
10353 /* Override any GCC internal prototype to avoid an error.
10354 Use char because int might match the return type of a GCC
10355 builtin and then its argument prototype would still apply. */
10356 #ifdef __cplusplus
10357 extern "C"
10358 #endif
10359 char dnet_ntoa ();
10360 int
10361 main ()
10362 {
10363 return dnet_ntoa ();
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 ac_cv_lib_dnet_dnet_ntoa=yes
10370 else
10371 ac_cv_lib_dnet_dnet_ntoa=no
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 LIBS=$ac_check_lib_save_LIBS
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10378 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10379 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10380 cat >>confdefs.h <<_ACEOF
10381 #define HAVE_LIBDNET 1
10382 _ACEOF
10383
10384 LIBS="-ldnet $LIBS"
10385
10386 fi
10387
10388
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10390 $as_echo_n "checking for main in -lXbsd... " >&6; }
10391 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 ac_check_lib_save_LIBS=$LIBS
10395 LIBS="-lXbsd $LIBS"
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398
10399
10400 int
10401 main ()
10402 {
10403 return main ();
10404 ;
10405 return 0;
10406 }
10407 _ACEOF
10408 if ac_fn_c_try_link "$LINENO"; then :
10409 ac_cv_lib_Xbsd_main=yes
10410 else
10411 ac_cv_lib_Xbsd_main=no
10412 fi
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_lib_save_LIBS
10416 fi
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10418 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10419 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10420 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10421 fi
10422
10423
10424 LIB_PTHREAD=
10425
10426
10427
10428 if test "$ac_cv_header_pthread_h"; then
10429 if test "$GMALLOC_OBJ" = gmalloc.o; then
10430 emacs_pthread_function=pthread_atfork
10431 else
10432 emacs_pthread_function=pthread_self
10433 fi
10434 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10436 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10437 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 ac_check_lib_save_LIBS=$LIBS
10441 LIBS="-lpthread $LIBS"
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10444
10445 /* Override any GCC internal prototype to avoid an error.
10446 Use char because int might match the return type of a GCC
10447 builtin and then its argument prototype would still apply. */
10448 #ifdef __cplusplus
10449 extern "C"
10450 #endif
10451 char $emacs_pthread_function ();
10452 int
10453 main ()
10454 {
10455 return $emacs_pthread_function ();
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 if ac_fn_c_try_link "$LINENO"; then :
10461 eval "$as_ac_Lib=yes"
10462 else
10463 eval "$as_ac_Lib=no"
10464 fi
10465 rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 LIBS=$ac_check_lib_save_LIBS
10468 fi
10469 eval ac_res=\$$as_ac_Lib
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10471 $as_echo "$ac_res" >&6; }
10472 eval as_val=\$$as_ac_Lib
10473 if test "x$as_val" = x""yes; then :
10474 HAVE_PTHREAD=yes
10475 fi
10476
10477 fi
10478 if test "$HAVE_PTHREAD" = yes; then
10479 case "${canonical}" in
10480 *-hpux*) ;;
10481 *) LIB_PTHREAD="-lpthread"
10482 LIBS="$LIB_PTHREAD $LIBS" ;;
10483 esac
10484
10485 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10486
10487 fi
10488
10489
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10491 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10492 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10494 else
10495 ac_check_lib_save_LIBS=$LIBS
10496 LIBS="-lpthreads $LIBS"
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10499
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char cma_open ();
10507 int
10508 main ()
10509 {
10510 return cma_open ();
10511 ;
10512 return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516 ac_cv_lib_pthreads_cma_open=yes
10517 else
10518 ac_cv_lib_pthreads_cma_open=no
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10522 LIBS=$ac_check_lib_save_LIBS
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10525 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10526 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10527 cat >>confdefs.h <<_ACEOF
10528 #define HAVE_LIBPTHREADS 1
10529 _ACEOF
10530
10531 LIBS="-lpthreads $LIBS"
10532
10533 fi
10534
10535
10536 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10537 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10538 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10539 ## added to LIBS in configure would never contain the pthreads part,
10540 ## but the value used in Makefiles might. FIXME?
10541 ##
10542 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10543 ## be harmless on older versions of X where it happens to exist.
10544 test "$opsys" = "aix4-2" && \
10545 test $ac_cv_lib_pthreads_cma_open = yes && \
10546 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10547
10548
10549 case ${host_os} in
10550 aix*)
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10552 $as_echo_n "checking for -bbigtoc option... " >&6; }
10553 if test "${gdb_cv_bigtoc+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556
10557 case $GCC in
10558 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10559 *) gdb_cv_bigtoc=-bbigtoc ;;
10560 esac
10561
10562 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565
10566 int
10567 main ()
10568 {
10569 int i;
10570 ;
10571 return 0;
10572 }
10573 _ACEOF
10574 if ac_fn_c_try_link "$LINENO"; then :
10575
10576 else
10577 gdb_cv_bigtoc=
10578 fi
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581
10582 fi
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10584 $as_echo "$gdb_cv_bigtoc" >&6; }
10585 ;;
10586 esac
10587
10588 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10589 # used for the tests that follow. We set them back to REAL_CFLAGS and
10590 # REAL_CPPFLAGS later on.
10591
10592 REAL_CFLAGS="$CFLAGS"
10593 REAL_CPPFLAGS="$CPPFLAGS"
10594
10595 if test "${HAVE_X11}" = "yes"; then
10596 DEFS="$C_SWITCH_X_SITE $DEFS"
10597 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10598 LIBS="-lX11 $LIBS"
10599 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10600 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10601
10602 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10603 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10604 # but it's more convenient here to set LD_RUN_PATH since this
10605 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10606 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10607 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10608 export LD_RUN_PATH
10609 fi
10610
10611 if test "${opsys}" = "gnu-linux"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10613 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10616
10617 int
10618 main ()
10619 {
10620 XOpenDisplay ("foo");
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 xgnu_linux_first_failure=no
10627 else
10628 xgnu_linux_first_failure=yes
10629 fi
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 if test "${xgnu_linux_first_failure}" = "yes"; then
10633 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10634 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10635 OLD_CPPFLAGS="$CPPFLAGS"
10636 OLD_LIBS="$LIBS"
10637 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10638 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10639 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10640 LIBS="$LIBS -b i486-linuxaout"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643
10644 int
10645 main ()
10646 {
10647 XOpenDisplay ("foo");
10648 ;
10649 return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_c_try_link "$LINENO"; then :
10653 xgnu_linux_second_failure=no
10654 else
10655 xgnu_linux_second_failure=yes
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext \
10658 conftest$ac_exeext conftest.$ac_ext
10659 if test "${xgnu_linux_second_failure}" = "yes"; then
10660 # If we get the same failure with -b, there is no use adding -b.
10661 # So take it out. This plays safe.
10662 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10663 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10664 CPPFLAGS="$OLD_CPPFLAGS"
10665 LIBS="$OLD_LIBS"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10670 $as_echo "yes" >&6; }
10671 fi
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10675 fi
10676 fi
10677
10678 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10679 # header files included from there.
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10681 $as_echo_n "checking for Xkb... " >&6; }
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 #include <X11/Xlib.h>
10685 #include <X11/XKBlib.h>
10686 int
10687 main ()
10688 {
10689 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10690 ;
10691 return 0;
10692 }
10693 _ACEOF
10694 if ac_fn_c_try_link "$LINENO"; then :
10695 emacs_xkb=yes
10696 else
10697 emacs_xkb=no
10698 fi
10699 rm -f core conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10702 $as_echo "$emacs_xkb" >&6; }
10703 if test $emacs_xkb = yes; then
10704
10705 $as_echo "#define HAVE_XKB 1" >>confdefs.h
10706
10707 fi
10708
10709 for ac_func in XrmSetDatabase XScreenResourceString \
10710 XScreenNumberOfScreen
10711 do :
10712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10714 eval as_val=\$$as_ac_var
10715 if test "x$as_val" = x""yes; then :
10716 cat >>confdefs.h <<_ACEOF
10717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10718 _ACEOF
10719
10720 fi
10721 done
10722
10723 fi
10724
10725 if test "${window_system}" = "x11"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10727 $as_echo_n "checking X11 version 6... " >&6; }
10728 if test "${emacs_cv_x11_version_6+set}" = set; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 #include <X11/Xlib.h>
10734 int
10735 main ()
10736 {
10737 #if XlibSpecificationRelease < 6
10738 fail;
10739 #endif
10740
10741 ;
10742 return 0;
10743 }
10744 _ACEOF
10745 if ac_fn_c_try_link "$LINENO"; then :
10746 emacs_cv_x11_version_6=yes
10747 else
10748 emacs_cv_x11_version_6=no
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752 fi
10753
10754 if test $emacs_cv_x11_version_6 = yes; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10756 $as_echo "6 or newer" >&6; }
10757
10758 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10759
10760
10761 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10762
10763 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10764 ## XIM support.
10765 case "$opsys" in
10766 sol2-*) : ;;
10767 *)
10768 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10769
10770 ;;
10771 esac
10772 else
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10774 $as_echo "before 6" >&6; }
10775 fi
10776 fi
10777
10778
10779 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10780 HAVE_RSVG=no
10781 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10782 if test "${with_rsvg}" != "no"; then
10783 RSVG_REQUIRED=2.11.0
10784 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10785
10786
10787 succeeded=no
10788
10789 if test "$PKG_CONFIG" = "no" ; then
10790 :
10791 else
10792 PKG_CONFIG_MIN_VERSION=0.9.0
10793 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10795 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10796
10797 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10798 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10799 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10800 edit_cflags="
10801 s,///*,/,g
10802 s/^/ /
10803 s/ -I/ $isystem/g
10804 s/^ //
10805 "
10806 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10807 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10809 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10810 succeeded=yes
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814 RSVG_CFLAGS=""
10815 RSVG_LIBS=""
10816 ## If we have a custom action on failure, don't print errors, but
10817 ## do set a variable so people can do so. Do it in a subshell
10818 ## to capture any diagnostics in invoking pkg-config.
10819 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10820
10821 fi
10822
10823
10824
10825 else
10826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10828 fi
10829 fi
10830
10831 if test $succeeded = yes; then
10832 HAVE_RSVG=yes
10833 else
10834 :
10835 fi
10836
10837
10838
10839
10840 if test $HAVE_RSVG = yes; then
10841
10842 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10843
10844 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10845 LIBS="$RSVG_LIBS $LIBS"
10846 fi
10847 fi
10848 fi
10849
10850 HAVE_IMAGEMAGICK=no
10851 if test "${HAVE_X11}" = "yes"; then
10852 if test "${with_imagemagick}" != "no"; then
10853 ## 6.2.8 is the earliest version known to work, but earlier versions
10854 ## might work - let us know if you find one.
10855 ## 6.0.7 does not work. See bug#7955.
10856 ## 6.8.2 makes Emacs crash; see Bug#13867.
10857 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
10858
10859 succeeded=no
10860
10861 if test "$PKG_CONFIG" = "no" ; then
10862 :
10863 else
10864 PKG_CONFIG_MIN_VERSION=0.9.0
10865 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10867 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10868
10869 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10870 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10871 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10872 edit_cflags="
10873 s,///*,/,g
10874 s/^/ /
10875 s/ -I/ $isystem/g
10876 s/^ //
10877 "
10878 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10879 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10881 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10882 succeeded=yes
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10886 IMAGEMAGICK_CFLAGS=""
10887 IMAGEMAGICK_LIBS=""
10888 ## If we have a custom action on failure, don't print errors, but
10889 ## do set a variable so people can do so. Do it in a subshell
10890 ## to capture any diagnostics in invoking pkg-config.
10891 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10892
10893 fi
10894
10895
10896
10897 else
10898 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10899 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10900 fi
10901 fi
10902
10903 if test $succeeded = yes; then
10904 HAVE_IMAGEMAGICK=yes
10905 else
10906 :
10907 fi
10908
10909
10910
10911
10912 if test $HAVE_IMAGEMAGICK = yes; then
10913
10914 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10915
10916 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10917 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10918 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10919 do :
10920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10922 eval as_val=\$$as_ac_var
10923 if test "x$as_val" = x""yes; then :
10924 cat >>confdefs.h <<_ACEOF
10925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 _ACEOF
10927
10928 fi
10929 done
10930
10931 fi
10932 fi
10933 fi
10934
10935
10936 HAVE_GTK=no
10937 GTK_OBJ=
10938 check_gtk2=no
10939 gtk3_pkg_errors=
10940 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10941 GLIB_REQUIRED=2.28
10942 GTK_REQUIRED=3.0
10943 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10944
10945
10946 succeeded=no
10947
10948 if test "$PKG_CONFIG" = "no" ; then
10949 pkg_check_gtk=no
10950 else
10951 PKG_CONFIG_MIN_VERSION=0.9.0
10952 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10954 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10955
10956 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10957 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10958 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10959 edit_cflags="
10960 s,///*,/,g
10961 s/^/ /
10962 s/ -I/ $isystem/g
10963 s/^ //
10964 "
10965 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10966 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10968 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10969 succeeded=yes
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10973 GTK_CFLAGS=""
10974 GTK_LIBS=""
10975 ## If we have a custom action on failure, don't print errors, but
10976 ## do set a variable so people can do so. Do it in a subshell
10977 ## to capture any diagnostics in invoking pkg-config.
10978 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10979
10980 fi
10981
10982
10983
10984 else
10985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10987 fi
10988 fi
10989
10990 if test $succeeded = yes; then
10991 pkg_check_gtk=yes
10992 else
10993 pkg_check_gtk=no
10994 fi
10995
10996 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10997 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10998 fi
10999 if test "$pkg_check_gtk" = "yes"; then
11000
11001 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11002
11003 GTK_OBJ=emacsgtkfixed.o
11004 term_header=gtkutil.h
11005 USE_GTK_TOOLKIT="GTK3"
11006 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11007 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11008 fi
11009 else
11010 check_gtk2=yes
11011 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11012 fi
11013 fi
11014
11015 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11016 GLIB_REQUIRED=2.10
11017 GTK_REQUIRED=2.10
11018 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11019
11020
11021 succeeded=no
11022
11023 if test "$PKG_CONFIG" = "no" ; then
11024 pkg_check_gtk=no
11025 else
11026 PKG_CONFIG_MIN_VERSION=0.9.0
11027 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11029 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11030
11031 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11032 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11033 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11034 edit_cflags="
11035 s,///*,/,g
11036 s/^/ /
11037 s/ -I/ $isystem/g
11038 s/^ //
11039 "
11040 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11041 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11043 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11044 succeeded=yes
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048 GTK_CFLAGS=""
11049 GTK_LIBS=""
11050 ## If we have a custom action on failure, don't print errors, but
11051 ## do set a variable so people can do so. Do it in a subshell
11052 ## to capture any diagnostics in invoking pkg-config.
11053 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11054
11055 fi
11056
11057
11058
11059 else
11060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11062 fi
11063 fi
11064
11065 if test $succeeded = yes; then
11066 pkg_check_gtk=yes
11067 else
11068 pkg_check_gtk=no
11069 fi
11070
11071 if test "$pkg_check_gtk" = "no" &&
11072 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11073 then
11074 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11075 fi
11076 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11077 fi
11078
11079 if test x"$pkg_check_gtk" = xyes; then
11080
11081
11082
11083 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11084 CFLAGS="$CFLAGS $GTK_CFLAGS"
11085 LIBS="$GTK_LIBS $LIBS"
11086 GTK_COMPILES=no
11087 for ac_func in gtk_main
11088 do :
11089 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11090 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11091 cat >>confdefs.h <<_ACEOF
11092 #define HAVE_GTK_MAIN 1
11093 _ACEOF
11094 GTK_COMPILES=yes
11095 fi
11096 done
11097
11098 if test "${GTK_COMPILES}" != "yes"; then
11099 if test "$USE_X_TOOLKIT" != "maybe"; then
11100 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11101 fi
11102 else
11103 HAVE_GTK=yes
11104
11105 $as_echo "#define USE_GTK 1" >>confdefs.h
11106
11107 GTK_OBJ="gtkutil.o $GTK_OBJ"
11108 USE_X_TOOLKIT=none
11109 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11110 :
11111 else
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11113 closing open displays. This is no problem if you just use
11114 one display, but if you use more than one and close one of them
11115 Emacs may crash." >&5
11116 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11117 closing open displays. This is no problem if you just use
11118 one display, but if you use more than one and close one of them
11119 Emacs may crash." >&2;}
11120 sleep 3
11121 fi
11122 fi
11123
11124 fi
11125
11126
11127
11128 if test "${HAVE_GTK}" = "yes"; then
11129
11130 if test "$with_toolkit_scroll_bars" != no; then
11131 with_toolkit_scroll_bars=yes
11132 fi
11133
11134 HAVE_GTK_FILE_SELECTION=no
11135 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11136 #include <gtk/gtk.h>
11137 "
11138 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11139 HAVE_GTK_FILE_SELECTION=yes
11140 else
11141 HAVE_GTK_FILE_SELECTION=no
11142 fi
11143
11144 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11145 for ac_func in gtk_file_selection_new
11146 do :
11147 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11148 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11149 cat >>confdefs.h <<_ACEOF
11150 #define HAVE_GTK_FILE_SELECTION_NEW 1
11151 _ACEOF
11152
11153 fi
11154 done
11155
11156 fi
11157
11158 HAVE_GTK_HANDLE_BOX=no
11159 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11160 #include <gtk/gtk.h>
11161 "
11162 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11163 HAVE_GTK_HANDLE_BOX=yes
11164 else
11165 HAVE_GTK_HANDLE_BOX=no
11166 fi
11167
11168 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11169 for ac_func in gtk_handle_box_new
11170 do :
11171 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11172 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11173 cat >>confdefs.h <<_ACEOF
11174 #define HAVE_GTK_HANDLE_BOX_NEW 1
11175 _ACEOF
11176
11177 fi
11178 done
11179
11180 fi
11181
11182 HAVE_GTK_TEAROFF_MENU_ITEM=no
11183 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11184 #include <gtk/gtk.h>
11185 "
11186 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11187 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11188 else
11189 HAVE_GTK_TEAROFF_MENU_ITEM=no
11190 fi
11191
11192 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11193 for ac_func in gtk_tearoff_menu_item_new
11194 do :
11195 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11196 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11197 cat >>confdefs.h <<_ACEOF
11198 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11199 _ACEOF
11200
11201 fi
11202 done
11203
11204 fi
11205
11206 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11207 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11208 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11209 gtk_orientable_set_orientation \
11210 gtk_window_set_has_resize_grip
11211 do :
11212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11214 eval as_val=\$$as_ac_var
11215 if test "x$as_val" = x""yes; then :
11216 cat >>confdefs.h <<_ACEOF
11217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11218 _ACEOF
11219
11220 fi
11221 done
11222
11223
11224 term_header=gtkutil.h
11225 fi
11226
11227 HAVE_DBUS=no
11228 DBUS_OBJ=
11229 if test "${with_dbus}" = "yes"; then
11230
11231 succeeded=no
11232
11233 if test "$PKG_CONFIG" = "no" ; then
11234 HAVE_DBUS=no
11235 else
11236 PKG_CONFIG_MIN_VERSION=0.9.0
11237 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11239 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11240
11241 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11242 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11243 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11244 edit_cflags="
11245 s,///*,/,g
11246 s/^/ /
11247 s/ -I/ $isystem/g
11248 s/^ //
11249 "
11250 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11251 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11253 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11254 succeeded=yes
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 DBUS_CFLAGS=""
11259 DBUS_LIBS=""
11260 ## If we have a custom action on failure, don't print errors, but
11261 ## do set a variable so people can do so. Do it in a subshell
11262 ## to capture any diagnostics in invoking pkg-config.
11263 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11264
11265 fi
11266
11267
11268
11269 else
11270 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11271 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11272 fi
11273 fi
11274
11275 if test $succeeded = yes; then
11276 HAVE_DBUS=yes
11277 else
11278 HAVE_DBUS=no
11279 fi
11280
11281 if test "$HAVE_DBUS" = yes; then
11282 LIBS="$LIBS $DBUS_LIBS"
11283
11284 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11285
11286 for ac_func in dbus_watch_get_unix_fd \
11287 dbus_type_is_valid \
11288 dbus_validate_bus_name \
11289 dbus_validate_path \
11290 dbus_validate_interface \
11291 dbus_validate_member
11292 do :
11293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11294 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11295 eval as_val=\$$as_ac_var
11296 if test "x$as_val" = x""yes; then :
11297 cat >>confdefs.h <<_ACEOF
11298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11299 _ACEOF
11300
11301 fi
11302 done
11303
11304 DBUS_OBJ=dbusbind.o
11305 fi
11306 fi
11307
11308
11309 HAVE_GSETTINGS=no
11310 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11311
11312 succeeded=no
11313
11314 if test "$PKG_CONFIG" = "no" ; then
11315 HAVE_GSETTINGS=no
11316 else
11317 PKG_CONFIG_MIN_VERSION=0.9.0
11318 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11320 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11321
11322 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11323 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11324 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11325 edit_cflags="
11326 s,///*,/,g
11327 s/^/ /
11328 s/ -I/ $isystem/g
11329 s/^ //
11330 "
11331 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11332 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11334 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11335 succeeded=yes
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11339 GSETTINGS_CFLAGS=""
11340 GSETTINGS_LIBS=""
11341 ## If we have a custom action on failure, don't print errors, but
11342 ## do set a variable so people can do so. Do it in a subshell
11343 ## to capture any diagnostics in invoking pkg-config.
11344 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11345
11346 fi
11347
11348
11349
11350 else
11351 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11352 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11353 fi
11354 fi
11355
11356 if test $succeeded = yes; then
11357 HAVE_GSETTINGS=yes
11358 else
11359 HAVE_GSETTINGS=no
11360 fi
11361
11362 if test "$HAVE_GSETTINGS" = "yes"; then
11363
11364 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11365
11366 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11367 SETTINGS_LIBS="$GSETTINGS_LIBS"
11368 fi
11369 fi
11370
11371 HAVE_GCONF=no
11372 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11373
11374 succeeded=no
11375
11376 if test "$PKG_CONFIG" = "no" ; then
11377 HAVE_GCONF=no
11378 else
11379 PKG_CONFIG_MIN_VERSION=0.9.0
11380 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11382 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11383
11384 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11385 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11386 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11387 edit_cflags="
11388 s,///*,/,g
11389 s/^/ /
11390 s/ -I/ $isystem/g
11391 s/^ //
11392 "
11393 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11394 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11396 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11397 succeeded=yes
11398 else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11401 GCONF_CFLAGS=""
11402 GCONF_LIBS=""
11403 ## If we have a custom action on failure, don't print errors, but
11404 ## do set a variable so people can do so. Do it in a subshell
11405 ## to capture any diagnostics in invoking pkg-config.
11406 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11407
11408 fi
11409
11410
11411
11412 else
11413 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11414 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11415 fi
11416 fi
11417
11418 if test $succeeded = yes; then
11419 HAVE_GCONF=yes
11420 else
11421 HAVE_GCONF=no
11422 fi
11423
11424 if test "$HAVE_GCONF" = yes; then
11425
11426 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11427
11428 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11429 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11430 fi
11431 fi
11432
11433 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11434
11435 succeeded=no
11436
11437 if test "$PKG_CONFIG" = "no" ; then
11438 HAVE_GOBJECT=no
11439 else
11440 PKG_CONFIG_MIN_VERSION=0.9.0
11441 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11443 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11444
11445 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11446 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11447 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11448 edit_cflags="
11449 s,///*,/,g
11450 s/^/ /
11451 s/ -I/ $isystem/g
11452 s/^ //
11453 "
11454 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11455 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11457 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11458 succeeded=yes
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11462 GOBJECT_CFLAGS=""
11463 GOBJECT_LIBS=""
11464 ## If we have a custom action on failure, don't print errors, but
11465 ## do set a variable so people can do so. Do it in a subshell
11466 ## to capture any diagnostics in invoking pkg-config.
11467 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11468
11469 fi
11470
11471
11472
11473 else
11474 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11475 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11476 fi
11477 fi
11478
11479 if test $succeeded = yes; then
11480 HAVE_GOBJECT=yes
11481 else
11482 HAVE_GOBJECT=no
11483 fi
11484
11485 if test "$HAVE_GOBJECT" = "yes"; then
11486 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11487 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11488 fi
11489 SAVE_CFLAGS="$CFLAGS"
11490 SAVE_LIBS="$LIBS"
11491 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11492 LIBS="$SETTINGS_LIBS $LIBS"
11493 for ac_func in g_type_init
11494 do :
11495 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11496 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11497 cat >>confdefs.h <<_ACEOF
11498 #define HAVE_G_TYPE_INIT 1
11499 _ACEOF
11500
11501 fi
11502 done
11503
11504 CFLAGS="$SAVE_CFLAGS"
11505 LIBS="$SAVE_LIBS"
11506 fi
11507
11508
11509
11510
11511 HAVE_LIBSELINUX=no
11512 LIBSELINUX_LIBS=
11513 if test "${with_selinux}" = "yes"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11515 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11516 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-lselinux $LIBS"
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11523
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char lgetfilecon ();
11531 int
11532 main ()
11533 {
11534 return lgetfilecon ();
11535 ;
11536 return 0;
11537 }
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11540 ac_cv_lib_selinux_lgetfilecon=yes
11541 else
11542 ac_cv_lib_selinux_lgetfilecon=no
11543 fi
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext
11546 LIBS=$ac_check_lib_save_LIBS
11547 fi
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11549 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11550 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11551 HAVE_LIBSELINUX=yes
11552 else
11553 HAVE_LIBSELINUX=no
11554 fi
11555
11556 if test "$HAVE_LIBSELINUX" = yes; then
11557
11558 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11559
11560 LIBSELINUX_LIBS=-lselinux
11561 fi
11562 fi
11563
11564
11565 HAVE_GNUTLS=no
11566 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11567 if test "${with_gnutls}" = "yes" ; then
11568
11569 succeeded=no
11570
11571 if test "$PKG_CONFIG" = "no" ; then
11572 HAVE_GNUTLS=no
11573 else
11574 PKG_CONFIG_MIN_VERSION=0.9.0
11575 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11577 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11578
11579 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11580 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11581 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11582 edit_cflags="
11583 s,///*,/,g
11584 s/^/ /
11585 s/ -I/ $isystem/g
11586 s/^ //
11587 "
11588 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11589 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11591 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11592 succeeded=yes
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 LIBGNUTLS_CFLAGS=""
11597 LIBGNUTLS_LIBS=""
11598 ## If we have a custom action on failure, don't print errors, but
11599 ## do set a variable so people can do so. Do it in a subshell
11600 ## to capture any diagnostics in invoking pkg-config.
11601 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11602
11603 fi
11604
11605
11606
11607 else
11608 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11609 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11610 fi
11611 fi
11612
11613 if test $succeeded = yes; then
11614 HAVE_GNUTLS=yes
11615 else
11616 HAVE_GNUTLS=no
11617 fi
11618
11619 if test "${HAVE_GNUTLS}" = "yes"; then
11620
11621 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11622
11623 fi
11624
11625 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11626 LIBS="$LIBGNUTLS_LIBS $LIBS"
11627 for ac_func in gnutls_certificate_set_verify_function
11628 do :
11629 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11630 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11631 cat >>confdefs.h <<_ACEOF
11632 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11633 _ACEOF
11634 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11635 fi
11636 done
11637
11638
11639 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11640
11641 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11642
11643 fi
11644 fi
11645
11646
11647
11648
11649 if test "${with_inotify}" = "yes"; then
11650 for ac_header in sys/inotify.h
11651 do :
11652 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11653 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11654 cat >>confdefs.h <<_ACEOF
11655 #define HAVE_SYS_INOTIFY_H 1
11656 _ACEOF
11657
11658 fi
11659
11660 done
11661
11662 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11663 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11664 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11665
11666 fi
11667
11668 fi
11669 fi
11670 if test "$ac_cv_func_inotify_init1" = yes; then
11671
11672 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11673
11674 fi
11675
11676 HAVE_POSIX_ACL=no
11677 LIBACL_LIBS=
11678 if test "${with_acl}" = "yes"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11680 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11681 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 ac_check_lib_save_LIBS=$LIBS
11685 LIBS="-lacl $LIBS"
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11688
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11692 #ifdef __cplusplus
11693 extern "C"
11694 #endif
11695 char acl_set_file ();
11696 int
11697 main ()
11698 {
11699 return acl_set_file ();
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 if ac_fn_c_try_link "$LINENO"; then :
11705 ac_cv_lib_acl_acl_set_file=yes
11706 else
11707 ac_cv_lib_acl_acl_set_file=no
11708 fi
11709 rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711 LIBS=$ac_check_lib_save_LIBS
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11714 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11715 if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then :
11716 HAVE_POSIX_ACL=yes
11717 else
11718 HAVE_POSIX_ACL=no
11719 fi
11720
11721 if test "$HAVE_POSIX_ACL" = yes; then
11722
11723 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11724
11725 LIBACL_LIBS=-lacl
11726 else
11727 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11728 if test "x$ac_cv_func_acl_set_file" = x""yes; then :
11729 HAVE_POSIX_ACL=yes
11730 else
11731 HAVE_POSIX_ACL=no
11732 fi
11733
11734 if test "$HAVE_POSIX_ACL" = yes; then
11735
11736 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11737
11738 fi
11739 fi
11740 fi
11741
11742
11743 HAVE_XAW3D=no
11744 LUCID_LIBW=
11745 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11746 if test "$with_xaw3d" != no; then
11747 if test "${emacs_cv_xaw3d+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752
11753 #include <X11/Intrinsic.h>
11754 #include <X11/Xaw3d/Simple.h>
11755 int
11756 main ()
11757 {
11758
11759 ;
11760 return 0;
11761 }
11762 _ACEOF
11763 if ac_fn_c_try_link "$LINENO"; then :
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11765 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11766 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 ac_check_lib_save_LIBS=$LIBS
11770 LIBS="-lXaw3d $LIBS"
11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h. */
11773
11774 /* Override any GCC internal prototype to avoid an error.
11775 Use char because int might match the return type of a GCC
11776 builtin and then its argument prototype would still apply. */
11777 #ifdef __cplusplus
11778 extern "C"
11779 #endif
11780 char XawScrollbarSetThumb ();
11781 int
11782 main ()
11783 {
11784 return XawScrollbarSetThumb ();
11785 ;
11786 return 0;
11787 }
11788 _ACEOF
11789 if ac_fn_c_try_link "$LINENO"; then :
11790 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11791 else
11792 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11793 fi
11794 rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_lib_save_LIBS
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11799 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11800 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11801 emacs_cv_xaw3d=yes
11802 else
11803 emacs_cv_xaw3d=no
11804 fi
11805
11806 else
11807 emacs_cv_xaw3d=no
11808 fi
11809 rm -f core conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
11811 fi
11812
11813 else
11814 emacs_cv_xaw3d=no
11815 fi
11816 if test $emacs_cv_xaw3d = yes; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11818 $as_echo_n "checking for xaw3d... " >&6; }
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11820 $as_echo "yes; using Lucid toolkit" >&6; }
11821 USE_X_TOOLKIT=LUCID
11822 HAVE_XAW3D=yes
11823 LUCID_LIBW=-lXaw3d
11824
11825 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11826
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11829 $as_echo_n "checking for xaw3d... " >&6; }
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831 $as_echo "no" >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11833 $as_echo_n "checking for libXaw... " >&6; }
11834 if test "${emacs_cv_xaw+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11839
11840 #include <X11/Intrinsic.h>
11841 #include <X11/Xaw/Simple.h>
11842 int
11843 main ()
11844 {
11845
11846 ;
11847 return 0;
11848 }
11849 _ACEOF
11850 if ac_fn_c_try_link "$LINENO"; then :
11851 emacs_cv_xaw=yes
11852 else
11853 emacs_cv_xaw=no
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 fi
11858
11859 if test $emacs_cv_xaw = yes; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11861 $as_echo "yes; using Lucid toolkit" >&6; }
11862 USE_X_TOOLKIT=LUCID
11863 LUCID_LIBW=-lXaw
11864 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11865 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11866 else
11867 as_fn_error "No X toolkit could be found.
11868 If you are sure you want Emacs compiled without an X toolkit, pass
11869 --with-x-toolkit=no
11870 to configure. Otherwise, install the development libraries for the toolkit
11871 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11872 fi
11873 fi
11874 fi
11875
11876 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11877
11878 LIBXTR6=
11879 if test "${USE_X_TOOLKIT}" != "none"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11881 $as_echo_n "checking X11 toolkit version... " >&6; }
11882 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11887 #include <X11/Intrinsic.h>
11888 int
11889 main ()
11890 {
11891 #if XtSpecificationRelease < 6
11892 fail;
11893 #endif
11894
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 emacs_cv_x11_toolkit_version_6=yes
11901 else
11902 emacs_cv_x11_toolkit_version_6=no
11903 fi
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 fi
11907
11908 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11909 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11911 $as_echo "6 or newer" >&6; }
11912
11913 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11914
11915 LIBXTR6="-lSM -lICE"
11916 case "$opsys" in
11917 ## Use libw.a along with X11R6 Xt.
11918 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11919 esac
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11922 $as_echo "before 6" >&6; }
11923 fi
11924
11925 OLDLIBS="$LIBS"
11926 if test x$HAVE_X11XTR6 = xyes; then
11927 LIBS="-lXt -lSM -lICE $LIBS"
11928 else
11929 LIBS="-lXt $LIBS"
11930 fi
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11932 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11933 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-lXmu $LIBS"
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 char XmuConvertStandardSelection ();
11948 int
11949 main ()
11950 {
11951 return XmuConvertStandardSelection ();
11952 ;
11953 return 0;
11954 }
11955 _ACEOF
11956 if ac_fn_c_try_link "$LINENO"; then :
11957 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11958 else
11959 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11960 fi
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11966 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11967 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11968 cat >>confdefs.h <<_ACEOF
11969 #define HAVE_LIBXMU 1
11970 _ACEOF
11971
11972 LIBS="-lXmu $LIBS"
11973
11974 fi
11975
11976 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11977 fi
11978
11979
11980 LIBXMU=-lXmu
11981 case $opsys in
11982 ## These systems don't supply Xmu.
11983 hpux* | aix4-2 )
11984 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11985 ;;
11986 esac
11987
11988
11989 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11990 if test "${HAVE_X11}" = "yes"; then
11991 if test "${USE_X_TOOLKIT}" != "none"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11993 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11994 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 ac_check_lib_save_LIBS=$LIBS
11998 LIBS="-lXext $LIBS"
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12001
12002 /* Override any GCC internal prototype to avoid an error.
12003 Use char because int might match the return type of a GCC
12004 builtin and then its argument prototype would still apply. */
12005 #ifdef __cplusplus
12006 extern "C"
12007 #endif
12008 char XShapeQueryExtension ();
12009 int
12010 main ()
12011 {
12012 return XShapeQueryExtension ();
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 if ac_fn_c_try_link "$LINENO"; then :
12018 ac_cv_lib_Xext_XShapeQueryExtension=yes
12019 else
12020 ac_cv_lib_Xext_XShapeQueryExtension=no
12021 fi
12022 rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12024 LIBS=$ac_check_lib_save_LIBS
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12027 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12028 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12029 cat >>confdefs.h <<_ACEOF
12030 #define HAVE_LIBXEXT 1
12031 _ACEOF
12032
12033 LIBS="-lXext $LIBS"
12034
12035 fi
12036
12037 fi
12038 fi
12039
12040 LIBXP=
12041 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12042 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12043 if test -d /usr/include/openmotif; then
12044 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12045 emacs_cv_openmotif=yes
12046 case "$canonical" in
12047 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12048 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12049 ;;
12050 *)
12051 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12052 esac
12053 else
12054 emacs_cv_openmotif=no
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12057 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12058 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12063 #include <Xm/Xm.h>
12064 int
12065 main ()
12066 {
12067 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12068 int x = 5;
12069 #else
12070 Motif version prior to 2.1.
12071 #endif
12072 ;
12073 return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077 emacs_cv_motif_version_2_1=yes
12078 else
12079 emacs_cv_motif_version_2_1=no
12080 fi
12081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12084 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12085 if test $emacs_cv_motif_version_2_1 = yes; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12087 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12088 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 ac_check_lib_save_LIBS=$LIBS
12092 LIBS="-lXp $LIBS"
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095
12096 /* Override any GCC internal prototype to avoid an error.
12097 Use char because int might match the return type of a GCC
12098 builtin and then its argument prototype would still apply. */
12099 #ifdef __cplusplus
12100 extern "C"
12101 #endif
12102 char XpCreateContext ();
12103 int
12104 main ()
12105 {
12106 return XpCreateContext ();
12107 ;
12108 return 0;
12109 }
12110 _ACEOF
12111 if ac_fn_c_try_link "$LINENO"; then :
12112 ac_cv_lib_Xp_XpCreateContext=yes
12113 else
12114 ac_cv_lib_Xp_XpCreateContext=no
12115 fi
12116 rm -f core conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 LIBS=$ac_check_lib_save_LIBS
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12121 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12122 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12123 LIBXP=-lXp
12124 fi
12125
12126 if test x$emacs_cv_openmotif = xyes; then
12127 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12128 fi
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12131 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12132 if test "${emacs_cv_lesstif+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 # We put this in CFLAGS temporarily to precede other -I options
12136 # that might be in CFLAGS temporarily.
12137 # We put this in CPPFLAGS where it precedes the other -I options.
12138 OLD_CPPFLAGS=$CPPFLAGS
12139 OLD_CFLAGS=$CFLAGS
12140 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12141 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12145 int
12146 main ()
12147 {
12148 int x = 5;
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 if ac_fn_c_try_compile "$LINENO"; then :
12154 emacs_cv_lesstif=yes
12155 else
12156 emacs_cv_lesstif=no
12157 fi
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12161 $as_echo "$emacs_cv_lesstif" >&6; }
12162 if test $emacs_cv_lesstif = yes; then
12163 # Make sure this -I option remains in CPPFLAGS after it is set
12164 # back to REAL_CPPFLAGS.
12165 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12166 # have those other -I options anyway. Ultimately, having this
12167 # directory ultimately in CPPFLAGS will be enough.
12168 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12169 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12170 else
12171 CFLAGS=$OLD_CFLAGS
12172 CPPFLAGS=$OLD_CPPFLAGS
12173 fi
12174 fi
12175 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12176 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12177
12178 else
12179 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12180 fi
12181
12182
12183 fi
12184
12185
12186 USE_TOOLKIT_SCROLL_BARS=no
12187 if test "${with_toolkit_scroll_bars}" != "no"; then
12188 if test "${USE_X_TOOLKIT}" != "none"; then
12189 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12190 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12191
12192 HAVE_XAW3D=no
12193 USE_TOOLKIT_SCROLL_BARS=yes
12194 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12195 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12196
12197 USE_TOOLKIT_SCROLL_BARS=yes
12198 fi
12199 elif test "${HAVE_GTK}" = "yes"; then
12200 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12201
12202 USE_TOOLKIT_SCROLL_BARS=yes
12203 elif test "${HAVE_NS}" = "yes"; then
12204 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12205
12206 USE_TOOLKIT_SCROLL_BARS=yes
12207 elif test "${HAVE_W32}" = "yes"; then
12208 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12209
12210 USE_TOOLKIT_SCROLL_BARS=yes
12211 fi
12212 fi
12213
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216
12217 #include <X11/Xlib.h>
12218 #include <X11/Xresource.h>
12219 int
12220 main ()
12221 {
12222 XIMProc callback;
12223 ;
12224 return 0;
12225 }
12226 _ACEOF
12227 if ac_fn_c_try_compile "$LINENO"; then :
12228 HAVE_XIM=yes
12229
12230 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12231
12232 else
12233 HAVE_XIM=no
12234 fi
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236
12237
12238 if test "${with_xim}" != "no"; then
12239
12240 $as_echo "#define USE_XIM 1" >>confdefs.h
12241
12242 fi
12243
12244
12245 if test "${HAVE_XIM}" != "no"; then
12246 late_CFLAGS=$CFLAGS
12247 if test "$GCC" = yes; then
12248 CFLAGS="$CFLAGS --pedantic-errors"
12249 fi
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252
12253 #include <X11/Xlib.h>
12254 #include <X11/Xresource.h>
12255 int
12256 main ()
12257 {
12258 Display *display;
12259 XrmDatabase db;
12260 char *res_name;
12261 char *res_class;
12262 XIMProc callback;
12263 XPointer *client_data;
12264 #ifndef __GNUC__
12265 /* If we're not using GCC, it's probably not XFree86, and this is
12266 probably right, but we can't use something like --pedantic-errors. */
12267 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12268 char*, XIMProc, XPointer*);
12269 #endif
12270 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12271 client_data);
12272 ;
12273 return 0;
12274 }
12275 _ACEOF
12276 if ac_fn_c_try_compile "$LINENO"; then :
12277 emacs_cv_arg6_star=yes
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 if test "$emacs_cv_arg6_star" = yes; then
12281 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12282
12283 else
12284 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12285
12286 fi
12287 CFLAGS=$late_CFLAGS
12288 fi
12289
12290 ### Start of font-backend (under any platform) section.
12291 # (nothing here yet -- this is a placeholder)
12292 ### End of font-backend (under any platform) section.
12293
12294 ### Start of font-backend (under X11) section.
12295 if test "${HAVE_X11}" = "yes"; then
12296
12297 succeeded=no
12298
12299 if test "$PKG_CONFIG" = "no" ; then
12300 HAVE_FC=no
12301 else
12302 PKG_CONFIG_MIN_VERSION=0.9.0
12303 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12305 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12306
12307 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12308 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12309 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12310 edit_cflags="
12311 s,///*,/,g
12312 s/^/ /
12313 s/ -I/ $isystem/g
12314 s/^ //
12315 "
12316 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12317 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12319 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12320 succeeded=yes
12321 else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324 FONTCONFIG_CFLAGS=""
12325 FONTCONFIG_LIBS=""
12326 ## If we have a custom action on failure, don't print errors, but
12327 ## do set a variable so people can do so. Do it in a subshell
12328 ## to capture any diagnostics in invoking pkg-config.
12329 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12330
12331 fi
12332
12333
12334
12335 else
12336 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12337 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12338 fi
12339 fi
12340
12341 if test $succeeded = yes; then
12342 HAVE_FC=yes
12343 else
12344 HAVE_FC=no
12345 fi
12346
12347
12348 ## Use -lXft if available, unless `--with-xft=no'.
12349 HAVE_XFT=maybe
12350 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12351 with_xft="no";
12352 fi
12353 if test "x${with_xft}" != "xno"; then
12354
12355
12356 succeeded=no
12357
12358 if test "$PKG_CONFIG" = "no" ; then
12359 HAVE_XFT=no
12360 else
12361 PKG_CONFIG_MIN_VERSION=0.9.0
12362 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12364 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12365
12366 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12367 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12368 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12369 edit_cflags="
12370 s,///*,/,g
12371 s/^/ /
12372 s/ -I/ $isystem/g
12373 s/^ //
12374 "
12375 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12376 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12378 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12379 succeeded=yes
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12383 XFT_CFLAGS=""
12384 XFT_LIBS=""
12385 ## If we have a custom action on failure, don't print errors, but
12386 ## do set a variable so people can do so. Do it in a subshell
12387 ## to capture any diagnostics in invoking pkg-config.
12388 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12389
12390 fi
12391
12392
12393
12394 else
12395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12397 fi
12398 fi
12399
12400 if test $succeeded = yes; then
12401 :
12402 else
12403 HAVE_XFT=no
12404 fi
12405
12406 ## Because xftfont.c uses XRenderQueryExtension, we also
12407 ## need to link to -lXrender.
12408 HAVE_XRENDER=no
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12410 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12411 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-lXrender $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char XRenderQueryExtension ();
12426 int
12427 main ()
12428 {
12429 return XRenderQueryExtension ();
12430 ;
12431 return 0;
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"; then :
12435 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12436 else
12437 ac_cv_lib_Xrender_XRenderQueryExtension=no
12438 fi
12439 rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12444 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12445 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12446 HAVE_XRENDER=yes
12447 fi
12448
12449 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12450 OLD_CPPFLAGS="$CPPFLAGS"
12451 OLD_CFLAGS="$CFLAGS"
12452 OLD_LIBS="$LIBS"
12453 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12454 CFLAGS="$CFLAGS $XFT_CFLAGS"
12455 XFT_LIBS="-lXrender $XFT_LIBS"
12456 LIBS="$XFT_LIBS $LIBS"
12457 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12458 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12460 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12461 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-lXft $XFT_LIBS $LIBS"
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12468
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12472 #ifdef __cplusplus
12473 extern "C"
12474 #endif
12475 char XftFontOpen ();
12476 int
12477 main ()
12478 {
12479 return XftFontOpen ();
12480 ;
12481 return 0;
12482 }
12483 _ACEOF
12484 if ac_fn_c_try_link "$LINENO"; then :
12485 ac_cv_lib_Xft_XftFontOpen=yes
12486 else
12487 ac_cv_lib_Xft_XftFontOpen=no
12488 fi
12489 rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 LIBS=$ac_check_lib_save_LIBS
12492 fi
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12494 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12495 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12496 HAVE_XFT=yes
12497 fi
12498
12499 fi
12500
12501
12502
12503 if test "${HAVE_XFT}" = "yes"; then
12504
12505 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12506
12507
12508 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12509 else
12510 CPPFLAGS="$OLD_CPPFLAGS"
12511 CFLAGS="$OLD_CFLAGS"
12512 LIBS="$OLD_LIBS"
12513 fi # "${HAVE_XFT}" = "yes"
12514 fi # "$HAVE_XFT" != no
12515 fi # "x${with_xft}" != "xno"
12516
12517 ## We used to allow building with FreeType and without Xft.
12518 ## However, the ftx font backend driver is not in good shape.
12519 if test "$HAVE_XFT" != "yes"; then
12520 HAVE_XFT=no
12521 HAVE_FREETYPE=no
12522 else
12523
12524 succeeded=no
12525
12526 if test "$PKG_CONFIG" = "no" ; then
12527 HAVE_FREETYPE=no
12528 else
12529 PKG_CONFIG_MIN_VERSION=0.9.0
12530 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12532 $as_echo_n "checking for freetype2... " >&6; }
12533
12534 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12535 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12536 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12537 edit_cflags="
12538 s,///*,/,g
12539 s/^/ /
12540 s/ -I/ $isystem/g
12541 s/^ //
12542 "
12543 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12544 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12546 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12547 succeeded=yes
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551 FREETYPE_CFLAGS=""
12552 FREETYPE_LIBS=""
12553 ## If we have a custom action on failure, don't print errors, but
12554 ## do set a variable so people can do so. Do it in a subshell
12555 ## to capture any diagnostics in invoking pkg-config.
12556 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12557
12558 fi
12559
12560
12561
12562 else
12563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12565 fi
12566 fi
12567
12568 if test $succeeded = yes; then
12569 HAVE_FREETYPE=yes
12570 else
12571 HAVE_FREETYPE=no
12572 fi
12573
12574
12575 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12576 fi
12577
12578 HAVE_LIBOTF=no
12579 if test "${HAVE_FREETYPE}" = "yes"; then
12580
12581 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12582
12583 if test "${with_libotf}" != "no"; then
12584
12585 succeeded=no
12586
12587 if test "$PKG_CONFIG" = "no" ; then
12588 HAVE_LIBOTF=no
12589 else
12590 PKG_CONFIG_MIN_VERSION=0.9.0
12591 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12593 $as_echo_n "checking for libotf... " >&6; }
12594
12595 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12596 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12597 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12598 edit_cflags="
12599 s,///*,/,g
12600 s/^/ /
12601 s/ -I/ $isystem/g
12602 s/^ //
12603 "
12604 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12605 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12607 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12608 succeeded=yes
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612 LIBOTF_CFLAGS=""
12613 LIBOTF_LIBS=""
12614 ## If we have a custom action on failure, don't print errors, but
12615 ## do set a variable so people can do so. Do it in a subshell
12616 ## to capture any diagnostics in invoking pkg-config.
12617 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12618
12619 fi
12620
12621
12622
12623 else
12624 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12625 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12626 fi
12627 fi
12628
12629 if test $succeeded = yes; then
12630 HAVE_LIBOTF=yes
12631 else
12632 HAVE_LIBOTF=no
12633 fi
12634
12635 if test "$HAVE_LIBOTF" = "yes"; then
12636
12637 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12638
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12640 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12641 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 ac_check_lib_save_LIBS=$LIBS
12645 LIBS="-lotf $LIBS"
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12652 #ifdef __cplusplus
12653 extern "C"
12654 #endif
12655 char OTF_get_variation_glyphs ();
12656 int
12657 main ()
12658 {
12659 return OTF_get_variation_glyphs ();
12660 ;
12661 return 0;
12662 }
12663 _ACEOF
12664 if ac_fn_c_try_link "$LINENO"; then :
12665 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12666 else
12667 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12668 fi
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 LIBS=$ac_check_lib_save_LIBS
12672 fi
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12674 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12675 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12676 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12677 else
12678 HAVE_OTF_GET_VARIATION_GLYPHS=no
12679 fi
12680
12681 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12682
12683 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12684
12685 fi
12686 fi
12687 fi
12688 fi
12689
12690 HAVE_M17N_FLT=no
12691 if test "${HAVE_LIBOTF}" = yes; then
12692 if test "${with_m17n_flt}" != "no"; then
12693
12694 succeeded=no
12695
12696 if test "$PKG_CONFIG" = "no" ; then
12697 HAVE_M17N_FLT=no
12698 else
12699 PKG_CONFIG_MIN_VERSION=0.9.0
12700 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12702 $as_echo_n "checking for m17n-flt... " >&6; }
12703
12704 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12705 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12706 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12707 edit_cflags="
12708 s,///*,/,g
12709 s/^/ /
12710 s/ -I/ $isystem/g
12711 s/^ //
12712 "
12713 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12714 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12716 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12717 succeeded=yes
12718 else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12721 M17N_FLT_CFLAGS=""
12722 M17N_FLT_LIBS=""
12723 ## If we have a custom action on failure, don't print errors, but
12724 ## do set a variable so people can do so. Do it in a subshell
12725 ## to capture any diagnostics in invoking pkg-config.
12726 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12727
12728 fi
12729
12730
12731
12732 else
12733 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12734 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12735 fi
12736 fi
12737
12738 if test $succeeded = yes; then
12739 HAVE_M17N_FLT=yes
12740 else
12741 HAVE_M17N_FLT=no
12742 fi
12743
12744 if test "$HAVE_M17N_FLT" = "yes"; then
12745
12746 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12747
12748 fi
12749 fi
12750 fi
12751 else
12752 HAVE_XFT=no
12753 HAVE_FREETYPE=no
12754 HAVE_LIBOTF=no
12755 HAVE_M17N_FLT=no
12756 fi
12757
12758 ### End of font-backend (under X11) section.
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769 ### Use -lXpm if available, unless `--with-xpm=no'.
12770 HAVE_XPM=no
12771 LIBXPM=
12772
12773 if test "${HAVE_W32}" = "yes"; then
12774 if test "${with_xpm}" != "no"; then
12775 SAVE_CPPFLAGS="$CPPFLAGS"
12776 SAVE_LDFLAGS="$LDFLAGS"
12777 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12778 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12779 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12780 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12782 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12783 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 ac_check_lib_save_LIBS=$LIBS
12787 LIBS="-lXpm $LIBS"
12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12790
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12794 #ifdef __cplusplus
12795 extern "C"
12796 #endif
12797 char XpmReadFileToImage ();
12798 int
12799 main ()
12800 {
12801 return XpmReadFileToImage ();
12802 ;
12803 return 0;
12804 }
12805 _ACEOF
12806 if ac_fn_c_try_link "$LINENO"; then :
12807 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12808 else
12809 ac_cv_lib_Xpm_XpmReadFileToImage=no
12810 fi
12811 rm -f core conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12816 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12817 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12818 HAVE_XPM=yes
12819 fi
12820
12821 fi
12822
12823
12824 if test "${HAVE_XPM}" = "yes"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12826 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829 #include "X11/xpm.h"
12830 #ifndef XpmReturnAllocPixels
12831 no_return_alloc_pixels
12832 #endif
12833
12834 _ACEOF
12835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12836 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12837 HAVE_XPM=no
12838 else
12839 HAVE_XPM=yes
12840 fi
12841 rm -f conftest*
12842
12843
12844 if test "${HAVE_XPM}" = "yes"; then
12845 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12847 $as_echo "yes" >&6; }
12848 else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851 CPPFLAGS="$SAVE_CPPFLAGS"
12852 LDFLAGS="$SAVE_LDFLAGS"
12853 fi
12854 fi
12855 fi
12856
12857 if test "${HAVE_XPM}" = "yes"; then
12858
12859 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12860
12861 LIBXPM=-lXpm
12862 fi
12863 fi
12864
12865 if test "${HAVE_X11}" = "yes"; then
12866 if test "${with_xpm}" != "no"; then
12867 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12868 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12870 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12871 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 ac_check_lib_save_LIBS=$LIBS
12875 LIBS="-lXpm -lX11 $LIBS"
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char XpmReadFileToPixmap ();
12886 int
12887 main ()
12888 {
12889 return XpmReadFileToPixmap ();
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_link "$LINENO"; then :
12895 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12896 else
12897 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12898 fi
12899 rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_lib_save_LIBS
12902 fi
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12904 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12905 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12906 HAVE_XPM=yes
12907 fi
12908
12909 fi
12910
12911
12912 if test "${HAVE_XPM}" = "yes"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12914 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 #include "X11/xpm.h"
12918 #ifndef XpmReturnAllocPixels
12919 no_return_alloc_pixels
12920 #endif
12921
12922 _ACEOF
12923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12924 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12925 HAVE_XPM=no
12926 else
12927 HAVE_XPM=yes
12928 fi
12929 rm -f conftest*
12930
12931
12932 if test "${HAVE_XPM}" = "yes"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12934 $as_echo "yes" >&6; }
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12938 fi
12939 fi
12940 fi
12941
12942 if test "${HAVE_XPM}" = "yes"; then
12943
12944 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12945
12946 LIBXPM=-lXpm
12947 fi
12948 fi
12949
12950
12951
12952 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12953 HAVE_JPEG=no
12954 LIBJPEG=
12955 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12956 if test "${with_jpeg}" != "no"; then
12957 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12958 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12960 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12961 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 ac_check_lib_save_LIBS=$LIBS
12965 LIBS="-ljpeg $LIBS"
12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12968
12969 /* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12972 #ifdef __cplusplus
12973 extern "C"
12974 #endif
12975 char jpeg_destroy_compress ();
12976 int
12977 main ()
12978 {
12979 return jpeg_destroy_compress ();
12980 ;
12981 return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_link "$LINENO"; then :
12985 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12986 else
12987 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext \
12990 conftest$ac_exeext conftest.$ac_ext
12991 LIBS=$ac_check_lib_save_LIBS
12992 fi
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12994 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12995 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12996 HAVE_JPEG=yes
12997 fi
12998
12999 fi
13000
13001
13002 fi
13003
13004 if test "${HAVE_JPEG}" = "yes"; then
13005 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13006
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 #include <jpeglib.h>
13010 version=JPEG_LIB_VERSION
13011
13012 _ACEOF
13013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13014 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13015 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13016
13017 else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13019 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13020 HAVE_JPEG=no
13021 fi
13022 rm -f conftest*
13023
13024 fi
13025 if test "${HAVE_JPEG}" = "yes"; then
13026 LIBJPEG=-ljpeg
13027 fi
13028 fi
13029
13030
13031 ### Use -lpng if available, unless `--with-png=no'.
13032 HAVE_PNG=no
13033 LIBPNG=
13034 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13035 if test "${with_png}" != "no"; then
13036 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13037 # in /usr/include/libpng.
13038 for ac_header in png.h libpng/png.h
13039 do :
13040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13042 eval as_val=\$$as_ac_Header
13043 if test "x$as_val" = x""yes; then :
13044 cat >>confdefs.h <<_ACEOF
13045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13046 _ACEOF
13047 break
13048 fi
13049
13050 done
13051
13052 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13054 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13055 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 ac_check_lib_save_LIBS=$LIBS
13059 LIBS="-lpng -lz -lm $LIBS"
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062
13063 /* Override any GCC internal prototype to avoid an error.
13064 Use char because int might match the return type of a GCC
13065 builtin and then its argument prototype would still apply. */
13066 #ifdef __cplusplus
13067 extern "C"
13068 #endif
13069 char png_get_channels ();
13070 int
13071 main ()
13072 {
13073 return png_get_channels ();
13074 ;
13075 return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_link "$LINENO"; then :
13079 ac_cv_lib_png_png_get_channels=yes
13080 else
13081 ac_cv_lib_png_png_get_channels=no
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085 LIBS=$ac_check_lib_save_LIBS
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13088 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13089 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13090 HAVE_PNG=yes
13091 fi
13092
13093 fi
13094 fi
13095
13096 if test "${HAVE_PNG}" = "yes"; then
13097
13098 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13099
13100 LIBPNG="-lpng -lz -lm"
13101
13102 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13103 # include <libpng/png.h>
13104 #else
13105 # include <png.h>
13106 #endif
13107
13108 "
13109 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13110
13111 else
13112
13113 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13114
13115 fi
13116
13117 fi
13118 fi
13119
13120
13121 ### Use -ltiff if available, unless `--with-tiff=no'.
13122 HAVE_TIFF=no
13123 LIBTIFF=
13124 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13125 if test "${with_tiff}" != "no"; then
13126 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13127 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13128 tifflibs="-lz -lm"
13129 # At least one tiff package requires the jpeg library.
13130 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13132 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13133 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 ac_check_lib_save_LIBS=$LIBS
13137 LIBS="-ltiff $tifflibs $LIBS"
13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13140
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13144 #ifdef __cplusplus
13145 extern "C"
13146 #endif
13147 char TIFFGetVersion ();
13148 int
13149 main ()
13150 {
13151 return TIFFGetVersion ();
13152 ;
13153 return 0;
13154 }
13155 _ACEOF
13156 if ac_fn_c_try_link "$LINENO"; then :
13157 ac_cv_lib_tiff_TIFFGetVersion=yes
13158 else
13159 ac_cv_lib_tiff_TIFFGetVersion=no
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13163 LIBS=$ac_check_lib_save_LIBS
13164 fi
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13166 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13167 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13168 HAVE_TIFF=yes
13169 fi
13170
13171 fi
13172
13173
13174 fi
13175
13176 if test "${HAVE_TIFF}" = "yes"; then
13177
13178 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13179
13180 LIBTIFF=-ltiff
13181 fi
13182 fi
13183
13184
13185 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13186 HAVE_GIF=no
13187 LIBGIF=
13188 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13189 || test "${HAVE_W32}" = "yes"; then
13190 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13191 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13192 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13193 # Earlier versions can crash Emacs.
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13195 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13196 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-lgif $LIBS"
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203
13204 /* Override any GCC internal prototype to avoid an error.
13205 Use char because int might match the return type of a GCC
13206 builtin and then its argument prototype would still apply. */
13207 #ifdef __cplusplus
13208 extern "C"
13209 #endif
13210 char EGifPutExtensionLast ();
13211 int
13212 main ()
13213 {
13214 return EGifPutExtensionLast ();
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 if ac_fn_c_try_link "$LINENO"; then :
13220 ac_cv_lib_gif_EGifPutExtensionLast=yes
13221 else
13222 ac_cv_lib_gif_EGifPutExtensionLast=no
13223 fi
13224 rm -f core conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13226 LIBS=$ac_check_lib_save_LIBS
13227 fi
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13229 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13230 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13231 HAVE_GIF=yes
13232 else
13233 HAVE_GIF=maybe
13234 fi
13235
13236 fi
13237
13238
13239
13240 if test "$HAVE_GIF" = yes; then
13241 LIBGIF=-lgif
13242 elif test "$HAVE_GIF" = maybe; then
13243 # If gif_lib.h but no libgif, try libungif.
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13245 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13246 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lungif $LIBS"
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13253
13254 /* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
13257 #ifdef __cplusplus
13258 extern "C"
13259 #endif
13260 char EGifPutExtensionLast ();
13261 int
13262 main ()
13263 {
13264 return EGifPutExtensionLast ();
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13271 else
13272 ac_cv_lib_ungif_EGifPutExtensionLast=no
13273 fi
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13279 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13280 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13281 HAVE_GIF=yes
13282 else
13283 HAVE_GIF=no
13284 fi
13285
13286 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13287 fi
13288
13289 if test "${HAVE_GIF}" = "yes"; then
13290
13291 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13292
13293 fi
13294 fi
13295
13296
13297 if test "${HAVE_X11}" = "yes"; then
13298 MISSING=""
13299 WITH_NO=""
13300 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13301 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13302 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13303 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13304 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13305 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13306 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13307 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13308 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13309 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13310
13311 if test "X${MISSING}" != X; then
13312 as_fn_error "The following required libraries were not found:
13313 $MISSING
13314 Maybe some development libraries/packages are missing?
13315 If you don't want to link with them give
13316 $WITH_NO
13317 as options to configure" "$LINENO" 5
13318 fi
13319 fi
13320
13321 ### Use -lgpm if available, unless `--with-gpm=no'.
13322 HAVE_GPM=no
13323 LIBGPM=
13324 if test "${with_gpm}" != "no"; then
13325 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13326 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13328 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13329 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
13331 else
13332 ac_check_lib_save_LIBS=$LIBS
13333 LIBS="-lgpm $LIBS"
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336
13337 /* Override any GCC internal prototype to avoid an error.
13338 Use char because int might match the return type of a GCC
13339 builtin and then its argument prototype would still apply. */
13340 #ifdef __cplusplus
13341 extern "C"
13342 #endif
13343 char Gpm_Open ();
13344 int
13345 main ()
13346 {
13347 return Gpm_Open ();
13348 ;
13349 return 0;
13350 }
13351 _ACEOF
13352 if ac_fn_c_try_link "$LINENO"; then :
13353 ac_cv_lib_gpm_Gpm_Open=yes
13354 else
13355 ac_cv_lib_gpm_Gpm_Open=no
13356 fi
13357 rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359 LIBS=$ac_check_lib_save_LIBS
13360 fi
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13362 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13363 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13364 HAVE_GPM=yes
13365 fi
13366
13367 fi
13368
13369
13370
13371 if test "${HAVE_GPM}" = "yes"; then
13372
13373 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13374
13375 LIBGPM=-lgpm
13376 fi
13377 fi
13378
13379
13380
13381
13382
13383
13384 GNUSTEP_CFLAGS=
13385 ### Use NeXTstep API to implement GUI.
13386 if test "${HAVE_NS}" = "yes"; then
13387
13388 $as_echo "#define HAVE_NS 1" >>confdefs.h
13389
13390 if test "${NS_IMPL_COCOA}" = "yes"; then
13391
13392 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13393
13394 fi
13395 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13396
13397 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13398
13399 # See also .m.o rule in Makefile.in */
13400 # FIXME: are all these flags really needed? Document here why. */
13401 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13402 ## Extra CFLAGS applied to src/*.m files.
13403 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13404 fi
13405 # We also have mouse menus.
13406 HAVE_MENUS=yes
13407 OTHER_FILES=ns-app
13408 fi
13409
13410 if test "${HAVE_W32}" = "yes"; then
13411 HAVE_MENUS=yes
13412 fi
13413
13414 ### Use session management (-lSM -lICE) if available
13415 HAVE_X_SM=no
13416 LIBXSM=
13417 if test "${HAVE_X11}" = "yes"; then
13418 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13419 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13421 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13422 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-lSM -lICE $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char SmcOpenConnection ();
13437 int
13438 main ()
13439 {
13440 return SmcOpenConnection ();
13441 ;
13442 return 0;
13443 }
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_lib_SM_SmcOpenConnection=yes
13447 else
13448 ac_cv_lib_SM_SmcOpenConnection=no
13449 fi
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13455 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13456 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13457 HAVE_X_SM=yes
13458 fi
13459
13460 fi
13461
13462
13463
13464 if test "${HAVE_X_SM}" = "yes"; then
13465
13466 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13467
13468 LIBXSM="-lSM -lICE"
13469 case "$LIBS" in
13470 *-lSM*) ;;
13471 *) LIBS="$LIBXSM $LIBS" ;;
13472 esac
13473 fi
13474 fi
13475
13476
13477 ### Use XRandr (-lXrandr) if available
13478 HAVE_XRANDR=no
13479 if test "${HAVE_X11}" = "yes"; then
13480 XRANDR_REQUIRED=1.2.2
13481 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
13482
13483 succeeded=no
13484
13485 if test "$PKG_CONFIG" = "no" ; then
13486 HAVE_XRANDR=no
13487 else
13488 PKG_CONFIG_MIN_VERSION=0.9.0
13489 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
13491 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
13492
13493 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
13494 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
13495 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
13496 edit_cflags="
13497 s,///*,/,g
13498 s/^/ /
13499 s/ -I/ $isystem/g
13500 s/^ //
13501 "
13502 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
13503 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
13505 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
13506 succeeded=yes
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13510 XRANDR_CFLAGS=""
13511 XRANDR_LIBS=""
13512 ## If we have a custom action on failure, don't print errors, but
13513 ## do set a variable so people can do so. Do it in a subshell
13514 ## to capture any diagnostics in invoking pkg-config.
13515 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
13516
13517 fi
13518
13519
13520
13521 else
13522 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13523 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13524 fi
13525 fi
13526
13527 if test $succeeded = yes; then
13528 HAVE_XRANDR=yes
13529 else
13530 HAVE_XRANDR=no
13531 fi
13532
13533 if test $HAVE_XRANDR = no; then
13534 # Test old way in case pkg-config doesn't have it (older machines).
13535 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
13536 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
13538 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
13539 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 ac_check_lib_save_LIBS=$LIBS
13543 LIBS="-lXrandr $LIBS"
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546
13547 /* Override any GCC internal prototype to avoid an error.
13548 Use char because int might match the return type of a GCC
13549 builtin and then its argument prototype would still apply. */
13550 #ifdef __cplusplus
13551 extern "C"
13552 #endif
13553 char XRRQueryExtension ();
13554 int
13555 main ()
13556 {
13557 return XRRQueryExtension ();
13558 ;
13559 return 0;
13560 }
13561 _ACEOF
13562 if ac_fn_c_try_link "$LINENO"; then :
13563 ac_cv_lib_Xrandr_XRRQueryExtension=yes
13564 else
13565 ac_cv_lib_Xrandr_XRRQueryExtension=no
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 LIBS=$ac_check_lib_save_LIBS
13570 fi
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
13572 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
13573 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
13574 HAVE_XRANDR=yes
13575 fi
13576
13577 fi
13578
13579
13580 if test $HAVE_XRANDR = yes; then
13581 XRANDR_LIBS=-lXrandr
13582
13583 fi
13584 fi
13585 if test $HAVE_XRANDR = yes; then
13586 SAVE_CFLAGS="$CFLAGS"
13587 SAVE_LIBS="$LIBS"
13588 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
13589 LIBS="$XRANDR_LIBS $LIBS"
13590 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
13591 do :
13592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13593 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13594 eval as_val=\$$as_ac_var
13595 if test "x$as_val" = x""yes; then :
13596 cat >>confdefs.h <<_ACEOF
13597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13598 _ACEOF
13599
13600 fi
13601 done
13602
13603 CFLAGS="$SAVE_CFLAGS"
13604 LIBS="$SAVE_LIBS"
13605
13606
13607 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
13608
13609 fi
13610 fi
13611
13612 ### Use Xinerama (-lXinerama) if available
13613 HAVE_XINERAMA=no
13614 if test "${HAVE_X11}" = "yes"; then
13615 XINERAMA_REQUIRED=1.0.2
13616 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
13617
13618 succeeded=no
13619
13620 if test "$PKG_CONFIG" = "no" ; then
13621 HAVE_XINERAMA=no
13622 else
13623 PKG_CONFIG_MIN_VERSION=0.9.0
13624 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
13626 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
13627
13628 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
13629 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
13630 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
13631 edit_cflags="
13632 s,///*,/,g
13633 s/^/ /
13634 s/ -I/ $isystem/g
13635 s/^ //
13636 "
13637 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
13638 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
13640 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
13641 succeeded=yes
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13645 XINERAMA_CFLAGS=""
13646 XINERAMA_LIBS=""
13647 ## If we have a custom action on failure, don't print errors, but
13648 ## do set a variable so people can do so. Do it in a subshell
13649 ## to capture any diagnostics in invoking pkg-config.
13650 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
13651
13652 fi
13653
13654
13655
13656 else
13657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13659 fi
13660 fi
13661
13662 if test $succeeded = yes; then
13663 HAVE_XINERAMA=yes
13664 else
13665 HAVE_XINERAMA=no
13666 fi
13667
13668 if test $HAVE_XINERAMA = no; then
13669 # Test old way in case pkg-config doesn't have it (older machines).
13670 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
13671 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
13673 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
13674 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 ac_check_lib_save_LIBS=$LIBS
13678 LIBS="-lXinerama $LIBS"
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681
13682 /* Override any GCC internal prototype to avoid an error.
13683 Use char because int might match the return type of a GCC
13684 builtin and then its argument prototype would still apply. */
13685 #ifdef __cplusplus
13686 extern "C"
13687 #endif
13688 char XineramaQueryExtension ();
13689 int
13690 main ()
13691 {
13692 return XineramaQueryExtension ();
13693 ;
13694 return 0;
13695 }
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"; then :
13698 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
13699 else
13700 ac_cv_lib_Xinerama_XineramaQueryExtension=no
13701 fi
13702 rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704 LIBS=$ac_check_lib_save_LIBS
13705 fi
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
13707 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
13708 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
13709 HAVE_XINERAMA=yes
13710 fi
13711
13712 fi
13713
13714
13715 if test $HAVE_XINERAMA = yes; then
13716 XINERAMA_LIBS=-lXinerama
13717
13718 fi
13719 fi
13720 if test $HAVE_XINERAMA = yes; then
13721
13722 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
13723
13724 fi
13725 fi
13726
13727
13728 ### Use libxml (-lxml2) if available
13729 HAVE_LIBXML2=no
13730 if test "${with_xml2}" != "no"; then
13731 ### I'm not sure what the version number should be, so I just guessed.
13732
13733 succeeded=no
13734
13735 if test "$PKG_CONFIG" = "no" ; then
13736 HAVE_LIBXML2=no
13737 else
13738 PKG_CONFIG_MIN_VERSION=0.9.0
13739 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13741 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13742
13743 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13744 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13745 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13746 edit_cflags="
13747 s,///*,/,g
13748 s/^/ /
13749 s/ -I/ $isystem/g
13750 s/^ //
13751 "
13752 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13753 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13755 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13756 succeeded=yes
13757 else
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13760 LIBXML2_CFLAGS=""
13761 LIBXML2_LIBS=""
13762 ## If we have a custom action on failure, don't print errors, but
13763 ## do set a variable so people can do so. Do it in a subshell
13764 ## to capture any diagnostics in invoking pkg-config.
13765 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13766
13767 fi
13768
13769
13770
13771 else
13772 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13773 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13774 fi
13775 fi
13776
13777 if test $succeeded = yes; then
13778 HAVE_LIBXML2=yes
13779 else
13780 HAVE_LIBXML2=no
13781 fi
13782
13783 if test "${HAVE_LIBXML2}" = "yes"; then
13784 LIBS="$LIBXML2_LIBS $LIBS"
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13786 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13787 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 ac_check_lib_save_LIBS=$LIBS
13791 LIBS="-lxml2 $LIBS"
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13798 #ifdef __cplusplus
13799 extern "C"
13800 #endif
13801 char htmlReadMemory ();
13802 int
13803 main ()
13804 {
13805 return htmlReadMemory ();
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 if ac_fn_c_try_link "$LINENO"; then :
13811 ac_cv_lib_xml2_htmlReadMemory=yes
13812 else
13813 ac_cv_lib_xml2_htmlReadMemory=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13820 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13821 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13822 HAVE_LIBXML2=yes
13823 else
13824 HAVE_LIBXML2=no
13825 fi
13826
13827 if test "${HAVE_LIBXML2}" = "yes"; then
13828
13829 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13830
13831 else
13832 LIBXML2_LIBS=""
13833 LIBXML2_CFLAGS=""
13834 fi
13835 fi
13836 fi
13837
13838
13839
13840 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13842 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13843 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848 #include <netdb.h>
13849 int
13850 main ()
13851 {
13852 return h_errno;
13853 ;
13854 return 0;
13855 }
13856 _ACEOF
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 emacs_cv_netdb_declares_h_errno=yes
13859 else
13860 emacs_cv_netdb_declares_h_errno=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 fi
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13866 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13867 if test $emacs_cv_netdb_declares_h_errno = yes; then
13868
13869 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13870
13871 fi
13872
13873 # sqrt and other floating-point functions such as fmod and frexp
13874 # are found in -lm on most systems.
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13876 $as_echo_n "checking for sqrt in -lm... " >&6; }
13877 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 ac_check_lib_save_LIBS=$LIBS
13881 LIBS="-lm $LIBS"
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884
13885 /* Override any GCC internal prototype to avoid an error.
13886 Use char because int might match the return type of a GCC
13887 builtin and then its argument prototype would still apply. */
13888 #ifdef __cplusplus
13889 extern "C"
13890 #endif
13891 char sqrt ();
13892 int
13893 main ()
13894 {
13895 return sqrt ();
13896 ;
13897 return 0;
13898 }
13899 _ACEOF
13900 if ac_fn_c_try_link "$LINENO"; then :
13901 ac_cv_lib_m_sqrt=yes
13902 else
13903 ac_cv_lib_m_sqrt=no
13904 fi
13905 rm -f core conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
13907 LIBS=$ac_check_lib_save_LIBS
13908 fi
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13910 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13911 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13912 cat >>confdefs.h <<_ACEOF
13913 #define HAVE_LIBM 1
13914 _ACEOF
13915
13916 LIBS="-lm $LIBS"
13917
13918 fi
13919
13920
13921 # Check for mail-locking functions in a "mail" library. Probably this should
13922 # have the same check as for liblockfile below.
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13924 $as_echo_n "checking for maillock in -lmail... " >&6; }
13925 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928 ac_check_lib_save_LIBS=$LIBS
13929 LIBS="-lmail $LIBS"
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932
13933 /* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13936 #ifdef __cplusplus
13937 extern "C"
13938 #endif
13939 char maillock ();
13940 int
13941 main ()
13942 {
13943 return maillock ();
13944 ;
13945 return 0;
13946 }
13947 _ACEOF
13948 if ac_fn_c_try_link "$LINENO"; then :
13949 ac_cv_lib_mail_maillock=yes
13950 else
13951 ac_cv_lib_mail_maillock=no
13952 fi
13953 rm -f core conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13956 fi
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13958 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13959 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13960 have_mail=yes
13961 else
13962 have_mail=no
13963 fi
13964
13965 if test $have_mail = yes; then
13966 LIBS_MAIL=-lmail
13967 LIBS="$LIBS_MAIL $LIBS"
13968
13969 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13970
13971 else
13972 LIBS_MAIL=
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13975 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13976 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 ac_check_lib_save_LIBS=$LIBS
13980 LIBS="-llockfile $LIBS"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13983
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 char maillock ();
13991 int
13992 main ()
13993 {
13994 return maillock ();
13995 ;
13996 return 0;
13997 }
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 ac_cv_lib_lockfile_maillock=yes
14001 else
14002 ac_cv_lib_lockfile_maillock=no
14003 fi
14004 rm -f core conftest.err conftest.$ac_objext \
14005 conftest$ac_exeext conftest.$ac_ext
14006 LIBS=$ac_check_lib_save_LIBS
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14009 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14010 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14011 have_lockfile=yes
14012 else
14013 have_lockfile=no
14014 fi
14015
14016 if test $have_lockfile = yes; then
14017 LIBS_MAIL=-llockfile
14018 LIBS="$LIBS_MAIL $LIBS"
14019
14020 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14021
14022 else
14023 # If we have the shared liblockfile, assume we must use it for mail
14024 # locking (e.g. Debian). If we couldn't link against liblockfile
14025 # (no liblockfile.a installed), ensure that we don't need to.
14026 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14027 set dummy liblockfile.so; ac_word=$2
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14029 $as_echo_n "checking for $ac_word... " >&6; }
14030 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 if test -n "$liblockfile"; then
14034 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14035 else
14036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14038 for as_dir in $as_dummy
14039 do
14040 IFS=$as_save_IFS
14041 test -z "$as_dir" && as_dir=.
14042 for ac_exec_ext in '' $ac_executable_extensions; do
14043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14044 ac_cv_prog_liblockfile="yes"
14045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14046 break 2
14047 fi
14048 done
14049 done
14050 IFS=$as_save_IFS
14051
14052 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14053 fi
14054 fi
14055 liblockfile=$ac_cv_prog_liblockfile
14056 if test -n "$liblockfile"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14058 $as_echo "$liblockfile" >&6; }
14059 else
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14062 fi
14063
14064
14065 if test $ac_cv_prog_liblockfile = yes; then
14066 as_fn_error "Shared liblockfile found but can't link against it.
14067 This probably means that movemail could lose mail.
14068 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14069 fi
14070 fi
14071
14072
14073
14074
14075
14076 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14077 ## interlock access to the mail spool. The alternative is a lock file named
14078 ## /usr/spool/mail/$USER.lock.
14079 mail_lock=no
14080 case "$opsys" in
14081 aix4-2) mail_lock="lockf" ;;
14082
14083 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14084
14085 ## On GNU/Linux systems, both methods are used by various mail programs.
14086 ## I assume most people are using newer mailers that have heard of flock.
14087 ## Change this if you need to.
14088 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14089 ## configure gets the right answers, and that means *NOT* using flock.
14090 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14091 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14092 ## Debian maintainer hasn't provided a clean fix for Emacs.
14093 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14094 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14095 ## correct logic. -- fx
14096 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14097 ## liblockfile is a Free Software replacement for libmail, used on
14098 ## Debian systems and elsewhere. -rfr.
14099 gnu-*)
14100 mail_lock="flock"
14101 if test $have_mail = yes || test $have_lockfile = yes; then
14102 test $ac_cv_header_maillock_h = yes && mail_lock=no
14103 fi
14104 ;;
14105 esac
14106
14107 BLESSMAIL_TARGET=
14108 case "$mail_lock" in
14109 flock)
14110 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14111 ;;
14112
14113 lockf)
14114 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14115 ;;
14116
14117 *) BLESSMAIL_TARGET="need-blessmail" ;;
14118 esac
14119
14120
14121
14122 for ac_func in gethostname \
14123 getrusage get_current_dir_name \
14124 lrand48 \
14125 select getpagesize setlocale \
14126 utimes getrlimit setrlimit shutdown getaddrinfo \
14127 strsignal setitimer \
14128 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14129 gai_strerror mkstemp getline getdelim sync \
14130 difftime posix_memalign \
14131 getpwent endpwent getgrent endgrent \
14132 touchlock \
14133 cfmakeraw cfsetspeed copysign __executable_start
14134 do :
14135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14136 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14137 eval as_val=\$$as_ac_var
14138 if test "x$as_val" = x""yes; then :
14139 cat >>confdefs.h <<_ACEOF
14140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14141 _ACEOF
14142
14143 fi
14144 done
14145
14146
14147 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14148 ## has a broken `rint' in some library versions including math library
14149 ## version number A.09.05.
14150 ## You can fix the math library by installing patch number PHSS_4630.
14151 ## But we can fix it more reliably for Emacs by just not using rint.
14152 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14153 case $opsys in
14154 hpux*) : ;;
14155 *) for ac_func in random rint
14156 do :
14157 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14159 eval as_val=\$$as_ac_var
14160 if test "x$as_val" = x""yes; then :
14161 cat >>confdefs.h <<_ACEOF
14162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14163 _ACEOF
14164
14165 fi
14166 done
14167 ;;
14168 esac
14169
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14171 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14172 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14177
14178 int
14179 main ()
14180 {
14181 __builtin_unwind_init ();
14182 ;
14183 return 0;
14184 }
14185 _ACEOF
14186 if ac_fn_c_try_link "$LINENO"; then :
14187 emacs_cv_func___builtin_unwind_init=yes
14188 else
14189 emacs_cv_func___builtin_unwind_init=no
14190 fi
14191 rm -f core conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193 fi
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14195 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14196 if test $emacs_cv_func___builtin_unwind_init = yes; then
14197
14198 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14199
14200 fi
14201
14202
14203
14204
14205
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14207 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14208 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14209 $as_echo_n "(cached) " >&6
14210 else
14211 while :; do
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214 #include <sys/types.h> /* for off_t */
14215 #include <stdio.h>
14216 int
14217 main ()
14218 {
14219 int (*fp) (FILE *, off_t, int) = fseeko;
14220 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14221 ;
14222 return 0;
14223 }
14224 _ACEOF
14225 if ac_fn_c_try_link "$LINENO"; then :
14226 ac_cv_sys_largefile_source=no; break
14227 fi
14228 rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14232 #define _LARGEFILE_SOURCE 1
14233 #include <sys/types.h> /* for off_t */
14234 #include <stdio.h>
14235 int
14236 main ()
14237 {
14238 int (*fp) (FILE *, off_t, int) = fseeko;
14239 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14240 ;
14241 return 0;
14242 }
14243 _ACEOF
14244 if ac_fn_c_try_link "$LINENO"; then :
14245 ac_cv_sys_largefile_source=1; break
14246 fi
14247 rm -f core conftest.err conftest.$ac_objext \
14248 conftest$ac_exeext conftest.$ac_ext
14249 ac_cv_sys_largefile_source=unknown
14250 break
14251 done
14252 fi
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14254 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14255 case $ac_cv_sys_largefile_source in #(
14256 no | unknown) ;;
14257 *)
14258 cat >>confdefs.h <<_ACEOF
14259 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14260 _ACEOF
14261 ;;
14262 esac
14263 rm -rf conftest*
14264
14265 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14266 # in glibc 2.1.3, but that breaks too many other things.
14267 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14268 if test $ac_cv_sys_largefile_source != unknown; then
14269
14270 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14271
14272 fi
14273
14274
14275 # UNIX98 PTYs.
14276 for ac_func in grantpt
14277 do :
14278 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14279 if test "x$ac_cv_func_grantpt" = x""yes; then :
14280 cat >>confdefs.h <<_ACEOF
14281 #define HAVE_GRANTPT 1
14282 _ACEOF
14283
14284 fi
14285 done
14286
14287
14288 # PTY-related GNU extensions.
14289 for ac_func in getpt posix_openpt
14290 do :
14291 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14292 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14293 eval as_val=\$$as_ac_var
14294 if test "x$as_val" = x""yes; then :
14295 cat >>confdefs.h <<_ACEOF
14296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14297 _ACEOF
14298
14299 fi
14300 done
14301
14302
14303 # Check this now, so that we will NOT find the above functions in ncurses.
14304 # That is because we have not set up to link ncurses in lib-src.
14305 # It's better to believe a function is not available
14306 # than to expect to find it in ncurses.
14307 # Also we need tputs and friends to be able to build at all.
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14309 $as_echo_n "checking for library containing tputs... " >&6; }
14310 # Run a test program that contains a call to tputs, a call that is
14311 # never executed. This tests whether a pre-'main' dynamic linker
14312 # works with the library. It's too much trouble to actually call
14313 # tputs in the test program, due to portability hassles. When
14314 # cross-compiling, assume the test program will run if it links.
14315
14316 # Maybe curses should be tried earlier?
14317 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14318 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14319 OLIBS=$LIBS
14320 if test -z "$tputs_library"; then
14321 LIBS_TERMCAP=
14322 msg='none required'
14323 else
14324 LIBS_TERMCAP=-l$tputs_library
14325 msg=$LIBS_TERMCAP
14326 LIBS="$LIBS_TERMCAP $LIBS"
14327 fi
14328 if test "$cross_compiling" = yes; then :
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331
14332 extern void tputs (const char *, int, int (*)(int));
14333 int main (int argc, char **argv)
14334 {
14335 if (argc == 10000)
14336 tputs (argv[0], 0, 0);
14337 return 0;
14338 }
14339
14340 _ACEOF
14341 if ac_fn_c_try_link "$LINENO"; then :
14342
14343 else
14344 msg=no
14345 fi
14346 rm -f core conftest.err conftest.$ac_objext \
14347 conftest$ac_exeext conftest.$ac_ext
14348 else
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351
14352 extern void tputs (const char *, int, int (*)(int));
14353 int main (int argc, char **argv)
14354 {
14355 if (argc == 10000)
14356 tputs (argv[0], 0, 0);
14357 return 0;
14358 }
14359
14360 _ACEOF
14361 if ac_fn_c_try_run "$LINENO"; then :
14362
14363 else
14364 msg=no
14365 fi
14366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14367 conftest.$ac_objext conftest.beam conftest.$ac_ext
14368 fi
14369
14370 LIBS=$OLIBS
14371 if test "X$msg" != Xno; then
14372 break
14373 fi
14374 done
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14376 $as_echo "$msg" >&6; }
14377 if test "X$msg" = Xno; then
14378 as_fn_error "The required function \`tputs' was not found in any library.
14379 The following libraries were tried (in order):
14380 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14381 Please try installing whichever of these libraries is most appropriate
14382 for your system, together with its header files.
14383 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14384 fi
14385
14386 ## Use termcap instead of terminfo?
14387 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14388 TERMINFO=yes
14389 ## FIXME? In the cases below where we unconditionally set
14390 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14391 ## if that was found above to have tputs.
14392 ## Should we use the gnu* logic everywhere?
14393 case "$opsys" in
14394 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14395 ## The ncurses library has been moved out of the System framework in
14396 ## Mac OS X 10.2. So if configure detects it, set the command-line
14397 ## option to use it.
14398 darwin) LIBS_TERMCAP="-lncurses" ;;
14399
14400 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14401
14402 freebsd)
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14404 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14405 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 #include <osreldate.h>
14411 int
14412 main ()
14413 {
14414 #if __FreeBSD_version < 400000
14415 fail;
14416 #endif
14417
14418 ;
14419 return 0;
14420 }
14421 _ACEOF
14422 if ac_fn_c_try_link "$LINENO"; then :
14423 emacs_cv_freebsd_terminfo=yes
14424 else
14425 emacs_cv_freebsd_terminfo=no
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14429 fi
14430
14431
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14433 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14434
14435 if test $emacs_cv_freebsd_terminfo = yes; then
14436 LIBS_TERMCAP="-lncurses"
14437 else
14438 TERMINFO=no
14439 LIBS_TERMCAP="-ltermcap"
14440 fi
14441 ;;
14442
14443 netbsd)
14444 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14445 TERMINFO=no
14446 LIBS_TERMCAP="-ltermcap"
14447 fi
14448 ;;
14449
14450 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
14451
14452 ## hpux: Make sure we get select from libc rather than from libcurses
14453 ## because libcurses on HPUX 10.10 has a broken version of select.
14454 ## We used to use -lc -lcurses, but this may be cleaner.
14455 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14456 # set that way, now it uses the default). Isn't this a contradiction?
14457 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14458
14459 esac
14460
14461 TERMCAP_OBJ=tparam.o
14462 if test $TERMINFO = yes; then
14463
14464 $as_echo "#define TERMINFO 1" >>confdefs.h
14465
14466 TERMCAP_OBJ=terminfo.o
14467 fi
14468
14469
14470
14471
14472 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14473 # On Darwin, res_init appears not to be useful: see bug#562 and
14474 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14475 resolv=no
14476
14477 if test $opsys != darwin; then
14478
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 #include <netinet/in.h>
14482 #include <arpa/nameser.h>
14483 #include <resolv.h>
14484 int
14485 main ()
14486 {
14487 return res_init();
14488 ;
14489 return 0;
14490 }
14491 _ACEOF
14492 if ac_fn_c_try_link "$LINENO"; then :
14493 have_res_init=yes
14494 else
14495 have_res_init=no
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext \
14498 conftest$ac_exeext conftest.$ac_ext
14499 if test "$have_res_init" = no; then
14500 OLIBS="$LIBS"
14501 LIBS="$LIBS -lresolv"
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14503 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14506 #include <netinet/in.h>
14507 #include <arpa/nameser.h>
14508 #include <resolv.h>
14509 int
14510 main ()
14511 {
14512 return res_init();
14513 ;
14514 return 0;
14515 }
14516 _ACEOF
14517 if ac_fn_c_try_link "$LINENO"; then :
14518 have_res_init=yes
14519 else
14520 have_res_init=no
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14525 $as_echo "$have_res_init" >&6; }
14526 if test "$have_res_init" = yes ; then
14527 resolv=yes
14528 fi
14529 LIBS="$OLIBS"
14530 fi
14531
14532 if test "$have_res_init" = yes; then
14533
14534 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14535
14536 fi
14537 fi
14538 # Do we need the Hesiod library to provide the support routines?
14539 LIBHESIOD=
14540 if test "$with_hesiod" != no ; then
14541 # Don't set $LIBS here -- see comments above. FIXME which comments?
14542 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14543 if test "x$ac_cv_func_res_send" = x""yes; then :
14544
14545 else
14546 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14547 if test "x$ac_cv_func___res_send" = x""yes; then :
14548
14549 else
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14551 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14552 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 ac_check_lib_save_LIBS=$LIBS
14556 LIBS="-lresolv $LIBS"
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14563 #ifdef __cplusplus
14564 extern "C"
14565 #endif
14566 char res_send ();
14567 int
14568 main ()
14569 {
14570 return res_send ();
14571 ;
14572 return 0;
14573 }
14574 _ACEOF
14575 if ac_fn_c_try_link "$LINENO"; then :
14576 ac_cv_lib_resolv_res_send=yes
14577 else
14578 ac_cv_lib_resolv_res_send=no
14579 fi
14580 rm -f core conftest.err conftest.$ac_objext \
14581 conftest$ac_exeext conftest.$ac_ext
14582 LIBS=$ac_check_lib_save_LIBS
14583 fi
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14585 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14586 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14587 resolv=yes
14588 else
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14590 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14591 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 ac_check_lib_save_LIBS=$LIBS
14595 LIBS="-lresolv $LIBS"
14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14598
14599 /* Override any GCC internal prototype to avoid an error.
14600 Use char because int might match the return type of a GCC
14601 builtin and then its argument prototype would still apply. */
14602 #ifdef __cplusplus
14603 extern "C"
14604 #endif
14605 char __res_send ();
14606 int
14607 main ()
14608 {
14609 return __res_send ();
14610 ;
14611 return 0;
14612 }
14613 _ACEOF
14614 if ac_fn_c_try_link "$LINENO"; then :
14615 ac_cv_lib_resolv___res_send=yes
14616 else
14617 ac_cv_lib_resolv___res_send=no
14618 fi
14619 rm -f core conftest.err conftest.$ac_objext \
14620 conftest$ac_exeext conftest.$ac_ext
14621 LIBS=$ac_check_lib_save_LIBS
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14624 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14625 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14626 resolv=yes
14627 fi
14628
14629 fi
14630
14631 fi
14632
14633 fi
14634
14635 if test "$resolv" = yes ; then
14636 RESOLVLIB=-lresolv
14637 else
14638 RESOLVLIB=
14639 fi
14640 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14641 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14642
14643 else
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14645 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14646 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14647 $as_echo_n "(cached) " >&6
14648 else
14649 ac_check_lib_save_LIBS=$LIBS
14650 LIBS="-lhesiod $RESOLVLIB $LIBS"
14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14653
14654 /* Override any GCC internal prototype to avoid an error.
14655 Use char because int might match the return type of a GCC
14656 builtin and then its argument prototype would still apply. */
14657 #ifdef __cplusplus
14658 extern "C"
14659 #endif
14660 char hes_getmailhost ();
14661 int
14662 main ()
14663 {
14664 return hes_getmailhost ();
14665 ;
14666 return 0;
14667 }
14668 _ACEOF
14669 if ac_fn_c_try_link "$LINENO"; then :
14670 ac_cv_lib_hesiod_hes_getmailhost=yes
14671 else
14672 ac_cv_lib_hesiod_hes_getmailhost=no
14673 fi
14674 rm -f core conftest.err conftest.$ac_objext \
14675 conftest$ac_exeext conftest.$ac_ext
14676 LIBS=$ac_check_lib_save_LIBS
14677 fi
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14679 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14680 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14681 hesiod=yes
14682 else
14683 :
14684 fi
14685
14686 fi
14687
14688
14689 if test x"$hesiod" = xyes; then
14690
14691 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14692
14693 LIBHESIOD=-lhesiod
14694 fi
14695 fi
14696
14697
14698 # Do we need libresolv (due to res_init or Hesiod)?
14699 if test "$resolv" = yes && test $opsys != darwin; then
14700
14701 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14702
14703 LIBRESOLV=-lresolv
14704 else
14705 LIBRESOLV=
14706 fi
14707
14708
14709 # These tell us which Kerberos-related libraries to use.
14710 COM_ERRLIB=
14711 CRYPTOLIB=
14712 KRB5LIB=
14713 DESLIB=
14714 KRB4LIB=
14715
14716 if test "${with_kerberos}" != no; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14718 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14719 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14720 $as_echo_n "(cached) " >&6
14721 else
14722 ac_check_lib_save_LIBS=$LIBS
14723 LIBS="-lcom_err $LIBS"
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14726
14727 /* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14730 #ifdef __cplusplus
14731 extern "C"
14732 #endif
14733 char com_err ();
14734 int
14735 main ()
14736 {
14737 return com_err ();
14738 ;
14739 return 0;
14740 }
14741 _ACEOF
14742 if ac_fn_c_try_link "$LINENO"; then :
14743 ac_cv_lib_com_err_com_err=yes
14744 else
14745 ac_cv_lib_com_err_com_err=no
14746 fi
14747 rm -f core conftest.err conftest.$ac_objext \
14748 conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14752 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14753 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14754 have_com_err=yes
14755 else
14756 have_com_err=no
14757 fi
14758
14759 if test $have_com_err = yes; then
14760 COM_ERRLIB=-lcom_err
14761 LIBS="$COM_ERRLIB $LIBS"
14762
14763 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14764
14765 fi
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14767 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14768 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 ac_check_lib_save_LIBS=$LIBS
14772 LIBS="-lcrypto $LIBS"
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775
14776 /* Override any GCC internal prototype to avoid an error.
14777 Use char because int might match the return type of a GCC
14778 builtin and then its argument prototype would still apply. */
14779 #ifdef __cplusplus
14780 extern "C"
14781 #endif
14782 char mit_des_cbc_encrypt ();
14783 int
14784 main ()
14785 {
14786 return mit_des_cbc_encrypt ();
14787 ;
14788 return 0;
14789 }
14790 _ACEOF
14791 if ac_fn_c_try_link "$LINENO"; then :
14792 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14793 else
14794 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14795 fi
14796 rm -f core conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext conftest.$ac_ext
14798 LIBS=$ac_check_lib_save_LIBS
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14801 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14802 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14803 have_crypto=yes
14804 else
14805 have_crypto=no
14806 fi
14807
14808 if test $have_crypto = yes; then
14809 CRYPTOLIB=-lcrypto
14810 LIBS="$CRYPTOLIB $LIBS"
14811
14812 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14813
14814 fi
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14816 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14817 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14818 $as_echo_n "(cached) " >&6
14819 else
14820 ac_check_lib_save_LIBS=$LIBS
14821 LIBS="-lk5crypto $LIBS"
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824
14825 /* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14828 #ifdef __cplusplus
14829 extern "C"
14830 #endif
14831 char mit_des_cbc_encrypt ();
14832 int
14833 main ()
14834 {
14835 return mit_des_cbc_encrypt ();
14836 ;
14837 return 0;
14838 }
14839 _ACEOF
14840 if ac_fn_c_try_link "$LINENO"; then :
14841 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14842 else
14843 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14844 fi
14845 rm -f core conftest.err conftest.$ac_objext \
14846 conftest$ac_exeext conftest.$ac_ext
14847 LIBS=$ac_check_lib_save_LIBS
14848 fi
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14850 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14851 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14852 have_k5crypto=yes
14853 else
14854 have_k5crypto=no
14855 fi
14856
14857 if test $have_k5crypto = yes; then
14858 CRYPTOLIB=-lk5crypto
14859 LIBS="$CRYPTOLIB $LIBS"
14860
14861 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14862
14863 fi
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14865 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14866 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14868 else
14869 ac_check_lib_save_LIBS=$LIBS
14870 LIBS="-lkrb5 $LIBS"
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873
14874 /* Override any GCC internal prototype to avoid an error.
14875 Use char because int might match the return type of a GCC
14876 builtin and then its argument prototype would still apply. */
14877 #ifdef __cplusplus
14878 extern "C"
14879 #endif
14880 char krb5_init_context ();
14881 int
14882 main ()
14883 {
14884 return krb5_init_context ();
14885 ;
14886 return 0;
14887 }
14888 _ACEOF
14889 if ac_fn_c_try_link "$LINENO"; then :
14890 ac_cv_lib_krb5_krb5_init_context=yes
14891 else
14892 ac_cv_lib_krb5_krb5_init_context=no
14893 fi
14894 rm -f core conftest.err conftest.$ac_objext \
14895 conftest$ac_exeext conftest.$ac_ext
14896 LIBS=$ac_check_lib_save_LIBS
14897 fi
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14899 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14900 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14901 have_krb5=yes
14902 else
14903 have_krb5=no
14904 fi
14905
14906 if test $have_krb5=yes; then
14907 KRB5LIB=-lkrb5
14908 LIBS="$KRB5LIB $LIBS"
14909
14910 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14911
14912 fi
14913 if test "${with_kerberos5}" = no; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14915 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14916 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14917 $as_echo_n "(cached) " >&6
14918 else
14919 ac_check_lib_save_LIBS=$LIBS
14920 LIBS="-ldes425 $LIBS"
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14923
14924 /* Override any GCC internal prototype to avoid an error.
14925 Use char because int might match the return type of a GCC
14926 builtin and then its argument prototype would still apply. */
14927 #ifdef __cplusplus
14928 extern "C"
14929 #endif
14930 char des_cbc_encrypt ();
14931 int
14932 main ()
14933 {
14934 return des_cbc_encrypt ();
14935 ;
14936 return 0;
14937 }
14938 _ACEOF
14939 if ac_fn_c_try_link "$LINENO"; then :
14940 ac_cv_lib_des425_des_cbc_encrypt=yes
14941 else
14942 ac_cv_lib_des425_des_cbc_encrypt=no
14943 fi
14944 rm -f core conftest.err conftest.$ac_objext \
14945 conftest$ac_exeext conftest.$ac_ext
14946 LIBS=$ac_check_lib_save_LIBS
14947 fi
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14949 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14950 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14951 have_des425=yes
14952 else
14953 have_des425=no
14954 fi
14955
14956 if test $have_des425 = yes; then
14957 DESLIB=-ldes425
14958 LIBS="$DESLIB $LIBS"
14959
14960 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14961
14962 else
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14964 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14965 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968 ac_check_lib_save_LIBS=$LIBS
14969 LIBS="-ldes $LIBS"
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14972
14973 /* Override any GCC internal prototype to avoid an error.
14974 Use char because int might match the return type of a GCC
14975 builtin and then its argument prototype would still apply. */
14976 #ifdef __cplusplus
14977 extern "C"
14978 #endif
14979 char des_cbc_encrypt ();
14980 int
14981 main ()
14982 {
14983 return des_cbc_encrypt ();
14984 ;
14985 return 0;
14986 }
14987 _ACEOF
14988 if ac_fn_c_try_link "$LINENO"; then :
14989 ac_cv_lib_des_des_cbc_encrypt=yes
14990 else
14991 ac_cv_lib_des_des_cbc_encrypt=no
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_check_lib_save_LIBS
14996 fi
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14998 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14999 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15000 have_des=yes
15001 else
15002 have_des=no
15003 fi
15004
15005 if test $have_des = yes; then
15006 DESLIB=-ldes
15007 LIBS="$DESLIB $LIBS"
15008
15009 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15010
15011 fi
15012 fi
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15014 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15015 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15016 $as_echo_n "(cached) " >&6
15017 else
15018 ac_check_lib_save_LIBS=$LIBS
15019 LIBS="-lkrb4 $LIBS"
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022
15023 /* Override any GCC internal prototype to avoid an error.
15024 Use char because int might match the return type of a GCC
15025 builtin and then its argument prototype would still apply. */
15026 #ifdef __cplusplus
15027 extern "C"
15028 #endif
15029 char krb_get_cred ();
15030 int
15031 main ()
15032 {
15033 return krb_get_cred ();
15034 ;
15035 return 0;
15036 }
15037 _ACEOF
15038 if ac_fn_c_try_link "$LINENO"; then :
15039 ac_cv_lib_krb4_krb_get_cred=yes
15040 else
15041 ac_cv_lib_krb4_krb_get_cred=no
15042 fi
15043 rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15045 LIBS=$ac_check_lib_save_LIBS
15046 fi
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15048 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15049 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15050 have_krb4=yes
15051 else
15052 have_krb4=no
15053 fi
15054
15055 if test $have_krb4 = yes; then
15056 KRB4LIB=-lkrb4
15057 LIBS="$KRB4LIB $LIBS"
15058
15059 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15060
15061 else
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15063 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15064 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15065 $as_echo_n "(cached) " >&6
15066 else
15067 ac_check_lib_save_LIBS=$LIBS
15068 LIBS="-lkrb $LIBS"
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071
15072 /* Override any GCC internal prototype to avoid an error.
15073 Use char because int might match the return type of a GCC
15074 builtin and then its argument prototype would still apply. */
15075 #ifdef __cplusplus
15076 extern "C"
15077 #endif
15078 char krb_get_cred ();
15079 int
15080 main ()
15081 {
15082 return krb_get_cred ();
15083 ;
15084 return 0;
15085 }
15086 _ACEOF
15087 if ac_fn_c_try_link "$LINENO"; then :
15088 ac_cv_lib_krb_krb_get_cred=yes
15089 else
15090 ac_cv_lib_krb_krb_get_cred=no
15091 fi
15092 rm -f core conftest.err conftest.$ac_objext \
15093 conftest$ac_exeext conftest.$ac_ext
15094 LIBS=$ac_check_lib_save_LIBS
15095 fi
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15097 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15098 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15099 have_krb=yes
15100 else
15101 have_krb=no
15102 fi
15103
15104 if test $have_krb = yes; then
15105 KRB4LIB=-lkrb
15106 LIBS="$KRB4LIB $LIBS"
15107
15108 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15109
15110 fi
15111 fi
15112 fi
15113
15114 if test "${with_kerberos5}" != no; then
15115 for ac_header in krb5.h
15116 do :
15117 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15118 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_KRB5_H 1
15121 _ACEOF
15122 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15123 "
15124 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15125
15126 cat >>confdefs.h <<_ACEOF
15127 #define HAVE_KRB5_ERROR_TEXT 1
15128 _ACEOF
15129
15130
15131 fi
15132 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15133 "
15134 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15135
15136 cat >>confdefs.h <<_ACEOF
15137 #define HAVE_KRB5_ERROR_E_TEXT 1
15138 _ACEOF
15139
15140
15141 fi
15142
15143 fi
15144
15145 done
15146
15147 else
15148 for ac_header in des.h
15149 do :
15150 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15151 if test "x$ac_cv_header_des_h" = x""yes; then :
15152 cat >>confdefs.h <<_ACEOF
15153 #define HAVE_DES_H 1
15154 _ACEOF
15155
15156 else
15157 for ac_header in kerberosIV/des.h
15158 do :
15159 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15160 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_KERBEROSIV_DES_H 1
15163 _ACEOF
15164
15165 else
15166 for ac_header in kerberos/des.h
15167 do :
15168 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15169 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15170 cat >>confdefs.h <<_ACEOF
15171 #define HAVE_KERBEROS_DES_H 1
15172 _ACEOF
15173
15174 fi
15175
15176 done
15177
15178 fi
15179
15180 done
15181
15182 fi
15183
15184 done
15185
15186 for ac_header in krb.h
15187 do :
15188 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15189 if test "x$ac_cv_header_krb_h" = x""yes; then :
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_KRB_H 1
15192 _ACEOF
15193
15194 else
15195 for ac_header in kerberosIV/krb.h
15196 do :
15197 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15198 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15199 cat >>confdefs.h <<_ACEOF
15200 #define HAVE_KERBEROSIV_KRB_H 1
15201 _ACEOF
15202
15203 else
15204 for ac_header in kerberos/krb.h
15205 do :
15206 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15207 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15208 cat >>confdefs.h <<_ACEOF
15209 #define HAVE_KERBEROS_KRB_H 1
15210 _ACEOF
15211
15212 fi
15213
15214 done
15215
15216 fi
15217
15218 done
15219
15220 fi
15221
15222 done
15223
15224 fi
15225 for ac_header in com_err.h
15226 do :
15227 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15228 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15229 cat >>confdefs.h <<_ACEOF
15230 #define HAVE_COM_ERR_H 1
15231 _ACEOF
15232
15233 fi
15234
15235 done
15236
15237 fi
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248 for ac_func in $ac_func_list
15249 do :
15250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15251 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15252 eval as_val=\$$as_ac_var
15253 if test "x$as_val" = x""yes; then :
15254 cat >>confdefs.h <<_ACEOF
15255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15256 _ACEOF
15257
15258 fi
15259 done
15260
15261
15262
15263
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15265 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15266 if test "${emacs_cv_localtime_cache+set}" = set; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269 if test x$ac_cv_func_tzset = xyes; then
15270 if test "$cross_compiling" = yes; then :
15271 # If we have tzset, assume the worst when cross-compiling.
15272 emacs_cv_localtime_cache=yes
15273 else
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 #include <time.h>
15277 char TZ_GMT0[] = "TZ=GMT0";
15278 char TZ_PST8[] = "TZ=PST8";
15279 main()
15280 {
15281 time_t now = time ((time_t *) 0);
15282 int hour_GMT0, hour_unset;
15283 if (putenv (TZ_GMT0) != 0)
15284 exit (1);
15285 hour_GMT0 = localtime (&now)->tm_hour;
15286 unsetenv("TZ");
15287 hour_unset = localtime (&now)->tm_hour;
15288 if (putenv (TZ_PST8) != 0)
15289 exit (1);
15290 if (localtime (&now)->tm_hour == hour_GMT0)
15291 exit (1);
15292 unsetenv("TZ");
15293 if (localtime (&now)->tm_hour != hour_unset)
15294 exit (1);
15295 exit (0);
15296 }
15297 _ACEOF
15298 if ac_fn_c_try_run "$LINENO"; then :
15299 emacs_cv_localtime_cache=no
15300 else
15301 emacs_cv_localtime_cache=yes
15302 fi
15303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15304 conftest.$ac_objext conftest.beam conftest.$ac_ext
15305 fi
15306
15307 else
15308 # If we lack tzset, report that localtime does not cache TZ,
15309 # since we can't invalidate the cache if we don't have tzset.
15310 emacs_cv_localtime_cache=no
15311 fi
15312 fi
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15314 $as_echo "$emacs_cv_localtime_cache" >&6; }
15315 if test $emacs_cv_localtime_cache = yes; then
15316
15317 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15318
15319 fi
15320
15321 ok_so_far=yes
15322 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15323 if test "x$ac_cv_func_socket" = x""yes; then :
15324
15325 else
15326 ok_so_far=no
15327 fi
15328
15329 if test $ok_so_far = yes; then
15330 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15331 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15332
15333 else
15334 ok_so_far=no
15335 fi
15336
15337
15338 fi
15339 if test $ok_so_far = yes; then
15340 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15341 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15342
15343 else
15344 ok_so_far=no
15345 fi
15346
15347
15348 fi
15349 if test $ok_so_far = yes; then
15350
15351 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15352
15353 fi
15354
15355 if test -f /usr/lpp/X11/bin/smt.exp; then
15356
15357 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15358
15359 fi
15360
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15362 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15363 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15365 $as_echo "yes" >&6; }
15366
15367 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15368
15369 else
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15371 $as_echo "no" >&6; }
15372 fi
15373
15374 case $canonical in
15375 *-solaris2.4 | *-solaris2.4.*)
15376 : ${ac_cv_func_vfork_works=no};;
15377 esac
15378
15379 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15380 if test "x$ac_cv_type_pid_t" = x""yes; then :
15381
15382 else
15383
15384 cat >>confdefs.h <<_ACEOF
15385 #define pid_t int
15386 _ACEOF
15387
15388 fi
15389
15390 for ac_header in vfork.h
15391 do :
15392 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15393 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15394 cat >>confdefs.h <<_ACEOF
15395 #define HAVE_VFORK_H 1
15396 _ACEOF
15397
15398 fi
15399
15400 done
15401
15402 for ac_func in fork vfork
15403 do :
15404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15406 eval as_val=\$$as_ac_var
15407 if test "x$as_val" = x""yes; then :
15408 cat >>confdefs.h <<_ACEOF
15409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15410 _ACEOF
15411
15412 fi
15413 done
15414
15415 if test "x$ac_cv_func_fork" = xyes; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15417 $as_echo_n "checking for working fork... " >&6; }
15418 if test "${ac_cv_func_fork_works+set}" = set; then :
15419 $as_echo_n "(cached) " >&6
15420 else
15421 if test "$cross_compiling" = yes; then :
15422 ac_cv_func_fork_works=cross
15423 else
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 int
15428 main ()
15429 {
15430
15431 /* By Ruediger Kuhlmann. */
15432 return fork () < 0;
15433
15434 ;
15435 return 0;
15436 }
15437 _ACEOF
15438 if ac_fn_c_try_run "$LINENO"; then :
15439 ac_cv_func_fork_works=yes
15440 else
15441 ac_cv_func_fork_works=no
15442 fi
15443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15444 conftest.$ac_objext conftest.beam conftest.$ac_ext
15445 fi
15446
15447 fi
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15449 $as_echo "$ac_cv_func_fork_works" >&6; }
15450
15451 else
15452 ac_cv_func_fork_works=$ac_cv_func_fork
15453 fi
15454 if test "x$ac_cv_func_fork_works" = xcross; then
15455 case $host in
15456 *-*-amigaos* | *-*-msdosdjgpp*)
15457 # Override, as these systems have only a dummy fork() stub
15458 ac_cv_func_fork_works=no
15459 ;;
15460 *)
15461 ac_cv_func_fork_works=yes
15462 ;;
15463 esac
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15465 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15466 fi
15467 ac_cv_func_vfork_works=$ac_cv_func_vfork
15468 if test "x$ac_cv_func_vfork" = xyes; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15470 $as_echo_n "checking for working vfork... " >&6; }
15471 if test "${ac_cv_func_vfork_works+set}" = set; then :
15472 $as_echo_n "(cached) " >&6
15473 else
15474 if test "$cross_compiling" = yes; then :
15475 ac_cv_func_vfork_works=cross
15476 else
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479 /* Thanks to Paul Eggert for this test. */
15480 $ac_includes_default
15481 #include <sys/wait.h>
15482 #ifdef HAVE_VFORK_H
15483 # include <vfork.h>
15484 #endif
15485 /* On some sparc systems, changes by the child to local and incoming
15486 argument registers are propagated back to the parent. The compiler
15487 is told about this with #include <vfork.h>, but some compilers
15488 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15489 static variable whose address is put into a register that is
15490 clobbered by the vfork. */
15491 static void
15492 #ifdef __cplusplus
15493 sparc_address_test (int arg)
15494 # else
15495 sparc_address_test (arg) int arg;
15496 #endif
15497 {
15498 static pid_t child;
15499 if (!child) {
15500 child = vfork ();
15501 if (child < 0) {
15502 perror ("vfork");
15503 _exit(2);
15504 }
15505 if (!child) {
15506 arg = getpid();
15507 write(-1, "", 0);
15508 _exit (arg);
15509 }
15510 }
15511 }
15512
15513 int
15514 main ()
15515 {
15516 pid_t parent = getpid ();
15517 pid_t child;
15518
15519 sparc_address_test (0);
15520
15521 child = vfork ();
15522
15523 if (child == 0) {
15524 /* Here is another test for sparc vfork register problems. This
15525 test uses lots of local variables, at least as many local
15526 variables as main has allocated so far including compiler
15527 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15528 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15529 reuse the register of parent for one of the local variables,
15530 since it will think that parent can't possibly be used any more
15531 in this routine. Assigning to the local variable will thus
15532 munge parent in the parent process. */
15533 pid_t
15534 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15535 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15536 /* Convince the compiler that p..p7 are live; otherwise, it might
15537 use the same hardware register for all 8 local variables. */
15538 if (p != p1 || p != p2 || p != p3 || p != p4
15539 || p != p5 || p != p6 || p != p7)
15540 _exit(1);
15541
15542 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15543 from child file descriptors. If the child closes a descriptor
15544 before it execs or exits, this munges the parent's descriptor
15545 as well. Test for this by closing stdout in the child. */
15546 _exit(close(fileno(stdout)) != 0);
15547 } else {
15548 int status;
15549 struct stat st;
15550
15551 while (wait(&status) != child)
15552 ;
15553 return (
15554 /* Was there some problem with vforking? */
15555 child < 0
15556
15557 /* Did the child fail? (This shouldn't happen.) */
15558 || status
15559
15560 /* Did the vfork/compiler bug occur? */
15561 || parent != getpid()
15562
15563 /* Did the file descriptor bug occur? */
15564 || fstat(fileno(stdout), &st) != 0
15565 );
15566 }
15567 }
15568 _ACEOF
15569 if ac_fn_c_try_run "$LINENO"; then :
15570 ac_cv_func_vfork_works=yes
15571 else
15572 ac_cv_func_vfork_works=no
15573 fi
15574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15575 conftest.$ac_objext conftest.beam conftest.$ac_ext
15576 fi
15577
15578 fi
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15580 $as_echo "$ac_cv_func_vfork_works" >&6; }
15581
15582 fi;
15583 if test "x$ac_cv_func_fork_works" = xcross; then
15584 ac_cv_func_vfork_works=$ac_cv_func_vfork
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15586 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15587 fi
15588
15589 if test "x$ac_cv_func_vfork_works" = xyes; then
15590
15591 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15592
15593 else
15594
15595 $as_echo "#define vfork fork" >>confdefs.h
15596
15597 fi
15598 if test "x$ac_cv_func_fork_works" = xyes; then
15599
15600 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15601
15602 fi
15603
15604
15605 for ac_func in snprintf
15606 do :
15607 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15608 if test "x$ac_cv_func_snprintf" = x""yes; then :
15609 cat >>confdefs.h <<_ACEOF
15610 #define HAVE_SNPRINTF 1
15611 _ACEOF
15612
15613 fi
15614 done
15615
15616
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15618 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15619 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15620 $as_echo_n "(cached) " >&6
15621 else
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 #include <langinfo.h>
15625 int
15626 main ()
15627 {
15628 char* cs = nl_langinfo(CODESET);
15629 ;
15630 return 0;
15631 }
15632 _ACEOF
15633 if ac_fn_c_try_link "$LINENO"; then :
15634 emacs_cv_langinfo_codeset=yes
15635 else
15636 emacs_cv_langinfo_codeset=no
15637 fi
15638 rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15640
15641 fi
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15643 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15644 if test $emacs_cv_langinfo_codeset = yes; then
15645
15646 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15647
15648 fi
15649
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15651 $as_echo_n "checking for mbstate_t... " >&6; }
15652 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15653 $as_echo_n "(cached) " >&6
15654 else
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657 $ac_includes_default
15658 # include <wchar.h>
15659 int
15660 main ()
15661 {
15662 mbstate_t x; return sizeof x;
15663 ;
15664 return 0;
15665 }
15666 _ACEOF
15667 if ac_fn_c_try_compile "$LINENO"; then :
15668 ac_cv_type_mbstate_t=yes
15669 else
15670 ac_cv_type_mbstate_t=no
15671 fi
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673 fi
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15675 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15676 if test $ac_cv_type_mbstate_t = yes; then
15677
15678 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15679
15680 else
15681
15682 $as_echo "#define mbstate_t int" >>confdefs.h
15683
15684 fi
15685
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15687 $as_echo_n "checking for C restricted array declarations... " >&6; }
15688 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15689 $as_echo_n "(cached) " >&6
15690 else
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 void fred (int x[__restrict]);
15694 int
15695 main ()
15696 {
15697
15698 ;
15699 return 0;
15700 }
15701 _ACEOF
15702 if ac_fn_c_try_compile "$LINENO"; then :
15703 emacs_cv_c_restrict_arr=yes
15704 else
15705 emacs_cv_c_restrict_arr=no
15706 fi
15707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15708 fi
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15710 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15711 if test "$emacs_cv_c_restrict_arr" = yes; then
15712
15713 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15714
15715 fi
15716
15717
15718
15719 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15720
15721
15722
15723 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15724
15725
15726 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15727
15728 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15729
15730
15731
15732 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15733
15734
15735
15736
15737
15738 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15739
15740
15741
15742 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15743
15744
15745
15746 $as_echo "#define subprocesses 1" >>confdefs.h
15747
15748
15749
15750 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15751
15752
15753
15754
15755 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15756
15757
15758
15759
15760
15761 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15762
15763
15764
15765 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15766
15767
15768
15769 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15770
15771
15772
15773
15774
15775 case $opsys in
15776 aix4-2)
15777 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15778 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15779
15780 fi
15781 ;;
15782
15783 hpux*)
15784 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15785
15786 ;;
15787 esac
15788
15789
15790 case $opsys in
15791 irix6-5 | sol2* | unixware )
15792
15793 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15794
15795 ;;
15796 esac
15797
15798 emacs_broken_SIGIO=no
15799
15800 case $opsys in
15801 hpux* | irix6-5 | openbsd | sol2* | unixware )
15802 emacs_broken_SIGIO=yes
15803 ;;
15804
15805 aix4-2)
15806
15807 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15808
15809 ;;
15810
15811 freebsd)
15812
15813 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15814
15815 ;;
15816 esac
15817
15818 case $opsys in
15819 gnu-* | sol2-10 )
15820
15821 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15822
15823 ;;
15824 esac
15825
15826 case $opsys in
15827 darwin | dragonfly | freebsd | netbsd | openbsd )
15828
15829 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15830
15831 ;;
15832 esac
15833
15834 case $opsys in
15835 netbsd | openbsd) sound_device="/dev/audio" ;;
15836 *) sound_device="/dev/dsp" ;;
15837 esac
15838
15839
15840 cat >>confdefs.h <<_ACEOF
15841 #define DEFAULT_SOUND_DEVICE "$sound_device"
15842 _ACEOF
15843
15844
15845
15846 case $opsys in
15847 darwin | gnu-linux | gnu-kfreebsd )
15848
15849 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15850
15851 ;;
15852 esac
15853
15854
15855 case $opsys in
15856 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15857
15858 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15859
15860 ;;
15861 esac
15862
15863
15864
15865
15866
15867
15868
15869
15870 case $opsys in
15871 aix4-2 )
15872 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15873
15874 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15875
15876 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15877
15878 ;;
15879
15880 cygwin )
15881 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15882
15883 $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
15884
15885 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15886
15887 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15888
15889 ;;
15890
15891 darwin )
15892 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15893
15894 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15895
15896 $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h
15897
15898 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15899
15900 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15901
15902 ;;
15903
15904 gnu | openbsd )
15905 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15906
15907 ;;
15908
15909 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
15910 if test "x$ac_cv_func_grantpt" = xyes; then
15911
15912 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15913
15914 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15915
15916 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15917
15918 if test "x$ac_cv_func_posix_openpt" = xyes; then
15919 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15920
15921 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15922
15923 elif test "x$ac_cv_func_getpt" = xyes; then
15924 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15925
15926 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15927
15928 else
15929 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15930
15931 fi
15932 else
15933 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15934
15935 fi
15936 ;;
15937
15938 hpux*)
15939 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15940
15941 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15942
15943 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15944
15945 ;;
15946
15947 irix6-5 )
15948 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15949
15950 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15951
15952 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
15953
15954 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15955
15956 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15957
15958 ;;
15959
15960 sol2* )
15961 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15962
15963 ;;
15964
15965 unixware )
15966 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15967
15968 ;;
15969 esac
15970
15971
15972 case $opsys in
15973 sol2* | unixware )
15974 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15975
15976 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15977
15978
15979 $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h
15980
15981 ;;
15982 esac
15983
15984
15985
15986
15987 case $opsys in
15988 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
15989 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15990
15991 ;;
15992
15993 gnu-linux | gnu-kfreebsd )
15994
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15996 $as_echo_n "checking for signals via characters... " >&6; }
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
15999
16000 #include <linux/version.h>
16001 #if LINUX_VERSION_CODE < 0x20400
16002 # error "Linux version too old"
16003 #endif
16004
16005 int
16006 main ()
16007 {
16008
16009 ;
16010 return 0;
16011 }
16012 _ACEOF
16013 if ac_fn_c_try_cpp "$LINENO"; then :
16014 emacs_signals_via_chars=yes
16015 else
16016 emacs_signals_via_chars=no
16017 fi
16018 rm -f conftest.err conftest.$ac_ext
16019
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16021 $as_echo "$emacs_signals_via_chars" >&6; }
16022 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16023
16024 ;;
16025 esac
16026
16027
16028
16029
16030 case $opsys in
16031 aix*)
16032 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16033
16034 ;;
16035 hpux*)
16036 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16037
16038 ;;
16039 irix6-5)
16040 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16041
16042 ;;
16043 esac
16044
16045
16046
16047
16048 case $opsys in
16049 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16050 ;;
16051
16052 gnu | dragonfly | freebsd | netbsd | openbsd )
16053
16054 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16055
16056 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16057
16058 ;;
16059
16060 gnu-linux | gnu-kfreebsd )
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063
16064 #ifndef __ia64__
16065 # error "not ia64"
16066 #endif
16067
16068 int
16069 main ()
16070 {
16071
16072 ;
16073 return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_cpp "$LINENO"; then :
16077
16078 $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h
16079
16080 fi
16081 rm -f conftest.err conftest.$ac_ext
16082 ;;
16083
16084 hpux*)
16085
16086 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16087
16088 ;;
16089 esac
16090
16091
16092
16093
16094
16095 case $opsys in
16096 gnu-linux | gnu-kfreebsd )
16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098 /* end confdefs.h. */
16099
16100 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16101 || defined __alpha__ || defined __mips__ || defined __s390__ \
16102 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16103 || defined __ia64__ || defined __sh__
16104 /* ok */
16105 #else
16106 # error "setjmp not known to work on this arch"
16107 #endif
16108
16109 int
16110 main ()
16111 {
16112
16113 ;
16114 return 0;
16115 }
16116 _ACEOF
16117 if ac_fn_c_try_cpp "$LINENO"; then :
16118 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16119
16120 fi
16121 rm -f conftest.err conftest.$ac_ext
16122 ;;
16123 esac
16124
16125
16126 if test x$GCC = xyes; then
16127 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16128
16129 else
16130 case $opsys in
16131 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
16132 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16133
16134 ;;
16135 esac
16136 fi
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16138 $as_echo_n "checking for _setjmp... " >&6; }
16139 if test "${emacs_cv_func__setjmp+set}" = set; then :
16140 $as_echo_n "(cached) " >&6
16141 else
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 #include <setjmp.h>
16145
16146 int
16147 main ()
16148 {
16149 jmp_buf j;
16150 if (! _setjmp (j))
16151 _longjmp (j, 1);
16152 ;
16153 return 0;
16154 }
16155 _ACEOF
16156 if ac_fn_c_try_link "$LINENO"; then :
16157 emacs_cv_func__setjmp=yes
16158 else
16159 emacs_cv_func__setjmp=no
16160 fi
16161 rm -f core conftest.err conftest.$ac_objext \
16162 conftest$ac_exeext conftest.$ac_ext
16163 fi
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16165 $as_echo "$emacs_cv_func__setjmp" >&6; }
16166 if test $emacs_cv_func__setjmp = yes; then
16167
16168 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16169
16170 else
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16172 $as_echo_n "checking for sigsetjmp... " >&6; }
16173 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16174 $as_echo_n "(cached) " >&6
16175 else
16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16178 #include <setjmp.h>
16179
16180 int
16181 main ()
16182 {
16183 sigjmp_buf j;
16184 if (! sigsetjmp (j, 1))
16185 siglongjmp (j, 1);
16186 ;
16187 return 0;
16188 }
16189 _ACEOF
16190 if ac_fn_c_try_link "$LINENO"; then :
16191 emacs_cv_func_sigsetjmp=yes
16192 else
16193 emacs_cv_func_sigsetjmp=no
16194 fi
16195 rm -f core conftest.err conftest.$ac_objext \
16196 conftest$ac_exeext conftest.$ac_ext
16197 fi
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16199 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16200 if test $emacs_cv_func_sigsetjmp = yes; then
16201
16202 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16203
16204 fi
16205 fi
16206
16207 case $opsys in
16208 sol2* | unixware )
16209
16210 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16211
16212 ;;
16213 esac
16214
16215
16216 case $opsys in
16217 hpux* | sol2* )
16218
16219 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16220
16221 ;;
16222 esac
16223
16224
16225
16226
16227
16228
16229
16230
16231 case $opsys in
16232 aix4-2)
16233 $as_echo "#define USG /**/" >>confdefs.h
16234
16235 $as_echo "#define USG5 /**/" >>confdefs.h
16236
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16239
16240 #ifndef _AIX
16241 # error "_AIX not defined"
16242 #endif
16243
16244 int
16245 main ()
16246 {
16247
16248 ;
16249 return 0;
16250 }
16251 _ACEOF
16252 if ac_fn_c_try_cpp "$LINENO"; then :
16253
16254 else
16255
16256 $as_echo "#define _AIX /**/" >>confdefs.h
16257
16258 fi
16259 rm -f conftest.err conftest.$ac_ext
16260 ;;
16261
16262 cygwin)
16263
16264 $as_echo "#define CYGWIN 1" >>confdefs.h
16265
16266 ;;
16267
16268 darwin)
16269
16270 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16271
16272 ;;
16273
16274 gnu-linux | gnu-kfreebsd )
16275 $as_echo "#define USG /**/" >>confdefs.h
16276
16277
16278 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16279
16280 ;;
16281
16282 hpux*)
16283 $as_echo "#define USG /**/" >>confdefs.h
16284
16285 $as_echo "#define USG5 /**/" >>confdefs.h
16286
16287
16288 $as_echo "#define HPUX /**/" >>confdefs.h
16289
16290 ;;
16291
16292 irix6-5)
16293 $as_echo "#define USG /**/" >>confdefs.h
16294
16295 $as_echo "#define USG5 /**/" >>confdefs.h
16296
16297 $as_echo "#define USG5_4 /**/" >>confdefs.h
16298
16299
16300 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16301
16302 ;;
16303
16304 sol2*)
16305 $as_echo "#define USG /**/" >>confdefs.h
16306
16307 $as_echo "#define USG5 /**/" >>confdefs.h
16308
16309 $as_echo "#define USG5_4 /**/" >>confdefs.h
16310
16311
16312 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16313
16314 ;;
16315
16316 unixware)
16317 $as_echo "#define USG /**/" >>confdefs.h
16318
16319 $as_echo "#define USG5 /**/" >>confdefs.h
16320
16321 $as_echo "#define USG5_4 /**/" >>confdefs.h
16322
16323 ;;
16324 esac
16325
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16327 $as_echo_n "checking for usable FIONREAD... " >&6; }
16328 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16329 $as_echo_n "(cached) " >&6
16330 else
16331 case $opsys in
16332 aix4-2)
16333 emacs_cv_usable_FIONREAD=no
16334 ;;
16335
16336 *)
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 #include <sys/types.h>
16340 #include <sys/ioctl.h>
16341 #ifdef USG5_4
16342 # include <sys/filio.h>
16343 #endif
16344
16345 int
16346 main ()
16347 {
16348 int foo = ioctl (0, FIONREAD, &foo);
16349 ;
16350 return 0;
16351 }
16352 _ACEOF
16353 if ac_fn_c_try_compile "$LINENO"; then :
16354 emacs_cv_usable_FIONREAD=yes
16355 else
16356 emacs_cv_usable_FIONREAD=no
16357 fi
16358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16359 ;;
16360 esac
16361 fi
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16363 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16364 if test $emacs_cv_usable_FIONREAD = yes; then
16365
16366 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16367
16368
16369 if test $emacs_broken_SIGIO = no; then
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16371 $as_echo_n "checking for usable SIGIO... " >&6; }
16372 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16373 $as_echo_n "(cached) " >&6
16374 else
16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16377 #include <fcntl.h>
16378 #include <signal.h>
16379
16380 int
16381 main ()
16382 {
16383 int foo = SIGIO | F_SETFL | FASYNC;
16384 ;
16385 return 0;
16386 }
16387 _ACEOF
16388 if ac_fn_c_try_compile "$LINENO"; then :
16389 emacs_cv_usable_SIGIO=yes
16390 else
16391 emacs_cv_usable_SIGIO=no
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16396 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16397 if test $emacs_cv_usable_SIGIO = yes; then
16398
16399 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16400
16401 fi
16402 fi
16403 fi
16404
16405
16406 case $opsys in
16407 cygwin)
16408
16409 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16410
16411 ;;
16412
16413 hpux11)
16414
16415 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16416
16417 ;;
16418
16419 irix6-5)
16420
16421 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16422
16423 ;;
16424
16425 sol2-10)
16426
16427 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16428
16429 ;;
16430 esac
16431
16432 # Set up the CFLAGS for real compilation, so we can substitute it.
16433 CFLAGS="$REAL_CFLAGS"
16434 CPPFLAGS="$REAL_CPPFLAGS"
16435
16436 ## Hack to detect a buggy GCC version.
16437 if test "x$GCC" = xyes \
16438 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16439 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16440 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16441 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16442 fi
16443
16444 version=$PACKAGE_VERSION
16445
16446 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
16447
16448 cat >>confdefs.h <<_ACEOF
16449 #define COPYRIGHT "$copyright"
16450 _ACEOF
16451
16452
16453
16454 ### Specify what sort of things we'll be editing into Makefile and config.h.
16455 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16456
16457
16458 ## Unused?
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16482 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16483 ## end of LIBX_BASE, but nothing ever set it.
16484
16485
16486
16487
16488 ## Used in lwlib/Makefile.in.
16489
16490
16491
16492
16493
16494
16495
16496
16497 if test -n "${term_header}"; then
16498
16499 cat >>confdefs.h <<_ACEOF
16500 #define TERM_HEADER "${term_header}"
16501 _ACEOF
16502
16503 fi
16504
16505
16506 cat >>confdefs.h <<_ACEOF
16507 #define EMACS_CONFIGURATION "${canonical}"
16508 _ACEOF
16509
16510 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16511
16512 cat >>confdefs.h <<_ACEOF
16513 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16514 _ACEOF
16515
16516
16517
16518 XMENU_OBJ=
16519 XOBJ=
16520 FONT_OBJ=
16521 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16522
16523 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16524
16525 XMENU_OBJ=xmenu.o
16526 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16527 FONT_OBJ=xfont.o
16528 if test "$HAVE_XFT" = "yes"; then
16529 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16530 elif test "$HAVE_FREETYPE" = "yes"; then
16531 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16532 fi
16533
16534 fi
16535
16536
16537
16538
16539 WIDGET_OBJ=
16540 MOTIF_LIBW=
16541 if test "${USE_X_TOOLKIT}" != "none" ; then
16542 WIDGET_OBJ=widget.o
16543
16544 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16545
16546 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16547
16548 $as_echo "#define USE_LUCID 1" >>confdefs.h
16549
16550 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16551
16552 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16553
16554 MOTIF_LIBW=-lXm
16555 case "$opsys" in
16556 gnu-linux)
16557 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16558 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16559 ;;
16560
16561 unixware)
16562 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16563 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16564 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16565 ;;
16566
16567 aix4-2)
16568 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16569 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16570 ;;
16571 esac
16572 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16573 fi
16574 fi
16575
16576
16577 TOOLKIT_LIBW=
16578 case "$USE_X_TOOLKIT" in
16579 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16580 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16581 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16582 esac
16583
16584
16585 if test "$USE_X_TOOLKIT" = "none"; then
16586 LIBXT_OTHER="\$(LIBXSM)"
16587 OLDXMENU_TARGET="really-oldXMenu"
16588 else
16589 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16590 OLDXMENU_TARGET="really-lwlib"
16591 fi
16592
16593
16594 ## The X Menu stuff is present in the X10 distribution, but missing
16595 ## from X11. If we have X10, just use the installed library;
16596 ## otherwise, use our own copy.
16597 if test "${HAVE_X11}" = "yes" ; then
16598
16599 $as_echo "#define HAVE_X11 1" >>confdefs.h
16600
16601
16602 if test "$USE_X_TOOLKIT" = "none"; then
16603 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16604 else
16605 OLDXMENU="\${lwlibdir}/liblw.a"
16606 fi
16607 LIBXMENU="\$(OLDXMENU)"
16608 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16609 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16610 else
16611 ## For a syntactically valid Makefile; not actually used for anything.
16612 ## See comments in src/Makefile.in.
16613 OLDXMENU=nothing
16614 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16615 if test "${HAVE_X_WINDOWS}" = "yes"; then
16616 LIBXMENU="-lXMenu"
16617 else
16618 LIBXMENU=
16619 fi
16620 LIBX_OTHER=
16621 OLDXMENU_DEPS=
16622 fi
16623
16624 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16625 OLDXMENU_TARGET=
16626 OLDXMENU=nothing
16627 LIBXMENU=
16628 OLDXMENU_DEPS=
16629 fi
16630
16631
16632
16633
16634
16635
16636
16637 if test "${HAVE_MENUS}" = "yes" ; then
16638
16639 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16640
16641 fi
16642
16643 if test "${GNU_MALLOC}" = "yes" ; then
16644
16645 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16646
16647 fi
16648
16649 RALLOC_OBJ=
16650 if test "${REL_ALLOC}" = "yes" ; then
16651
16652 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16653
16654
16655 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16656 fi
16657
16658
16659 if test "$opsys" = "cygwin"; then
16660 CYGWIN_OBJ="sheap.o cygw32.o"
16661 ## Cygwin differs because of its unexec().
16662 PRE_ALLOC_OBJ=
16663 POST_ALLOC_OBJ=lastfile.o
16664 else
16665 CYGWIN_OBJ=
16666 PRE_ALLOC_OBJ=lastfile.o
16667 POST_ALLOC_OBJ=
16668 fi
16669
16670
16671
16672
16673 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16674 # it temporarily reverts them to their pre-pkg-config values,
16675 # because gnulib needs to work with both src (which uses the
16676 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16677 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16678 # and it therefore needs to run in an environment where LIBS does not
16679 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16680 # for some package unrelated to lib-src.
16681 SAVE_CFLAGS=$CFLAGS
16682 SAVE_LIBS=$LIBS
16683 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16684 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696 LIBC_FATAL_STDERR_=1
16697 export LIBC_FATAL_STDERR_
16698
16699 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16700 # for constant arguments. Useless!
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16702 $as_echo_n "checking for working alloca.h... " >&6; }
16703 if test "${ac_cv_working_alloca_h+set}" = set; then :
16704 $as_echo_n "(cached) " >&6
16705 else
16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16708 #include <alloca.h>
16709 int
16710 main ()
16711 {
16712 char *p = (char *) alloca (2 * sizeof (int));
16713 if (p) return 0;
16714 ;
16715 return 0;
16716 }
16717 _ACEOF
16718 if ac_fn_c_try_link "$LINENO"; then :
16719 ac_cv_working_alloca_h=yes
16720 else
16721 ac_cv_working_alloca_h=no
16722 fi
16723 rm -f core conftest.err conftest.$ac_objext \
16724 conftest$ac_exeext conftest.$ac_ext
16725 fi
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16727 $as_echo "$ac_cv_working_alloca_h" >&6; }
16728 if test $ac_cv_working_alloca_h = yes; then
16729
16730 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16731
16732 fi
16733
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16735 $as_echo_n "checking for alloca... " >&6; }
16736 if test "${ac_cv_func_alloca_works+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16741 #ifdef __GNUC__
16742 # define alloca __builtin_alloca
16743 #else
16744 # ifdef _MSC_VER
16745 # include <malloc.h>
16746 # define alloca _alloca
16747 # else
16748 # ifdef HAVE_ALLOCA_H
16749 # include <alloca.h>
16750 # else
16751 # ifdef _AIX
16752 #pragma alloca
16753 # else
16754 # ifndef alloca /* predefined by HP cc +Olibcalls */
16755 char *alloca ();
16756 # endif
16757 # endif
16758 # endif
16759 # endif
16760 #endif
16761
16762 int
16763 main ()
16764 {
16765 char *p = (char *) alloca (1);
16766 if (p) return 0;
16767 ;
16768 return 0;
16769 }
16770 _ACEOF
16771 if ac_fn_c_try_link "$LINENO"; then :
16772 ac_cv_func_alloca_works=yes
16773 else
16774 ac_cv_func_alloca_works=no
16775 fi
16776 rm -f core conftest.err conftest.$ac_objext \
16777 conftest$ac_exeext conftest.$ac_ext
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16780 $as_echo "$ac_cv_func_alloca_works" >&6; }
16781
16782 if test $ac_cv_func_alloca_works = yes; then
16783
16784 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16785
16786 else
16787 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16788 # that cause trouble. Some versions do not even contain alloca or
16789 # contain a buggy version. If you still want to use their alloca,
16790 # use ar to extract alloca.o from them instead of compiling alloca.c.
16791
16792
16793
16794
16795
16796 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16797
16798 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16799
16800
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16802 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16803 if test "${ac_cv_os_cray+set}" = set; then :
16804 $as_echo_n "(cached) " >&6
16805 else
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16808 #if defined CRAY && ! defined CRAY2
16809 webecray
16810 #else
16811 wenotbecray
16812 #endif
16813
16814 _ACEOF
16815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16816 $EGREP "webecray" >/dev/null 2>&1; then :
16817 ac_cv_os_cray=yes
16818 else
16819 ac_cv_os_cray=no
16820 fi
16821 rm -f conftest*
16822
16823 fi
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16825 $as_echo "$ac_cv_os_cray" >&6; }
16826 if test $ac_cv_os_cray = yes; then
16827 for ac_func in _getb67 GETB67 getb67; do
16828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16830 eval as_val=\$$as_ac_var
16831 if test "x$as_val" = x""yes; then :
16832
16833 cat >>confdefs.h <<_ACEOF
16834 #define CRAY_STACKSEG_END $ac_func
16835 _ACEOF
16836
16837 break
16838 fi
16839
16840 done
16841 fi
16842
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16844 $as_echo_n "checking stack direction for C alloca... " >&6; }
16845 if test "${ac_cv_c_stack_direction+set}" = set; then :
16846 $as_echo_n "(cached) " >&6
16847 else
16848 if test "$cross_compiling" = yes; then :
16849 ac_cv_c_stack_direction=0
16850 else
16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852 /* end confdefs.h. */
16853 $ac_includes_default
16854 int
16855 find_stack_direction (int *addr, int depth)
16856 {
16857 int dir, dummy = 0;
16858 if (! addr)
16859 addr = &dummy;
16860 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16861 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16862 return dir + dummy;
16863 }
16864
16865 int
16866 main (int argc, char **argv)
16867 {
16868 return find_stack_direction (0, argc + !argv + 20) < 0;
16869 }
16870 _ACEOF
16871 if ac_fn_c_try_run "$LINENO"; then :
16872 ac_cv_c_stack_direction=1
16873 else
16874 ac_cv_c_stack_direction=-1
16875 fi
16876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16877 conftest.$ac_objext conftest.beam conftest.$ac_ext
16878 fi
16879
16880 fi
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16882 $as_echo "$ac_cv_c_stack_direction" >&6; }
16883 cat >>confdefs.h <<_ACEOF
16884 #define STACK_DIRECTION $ac_cv_c_stack_direction
16885 _ACEOF
16886
16887
16888 fi
16889
16890
16891
16892
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16894 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16895 if test "${ac_cv_c_bigendian+set}" = set; then :
16896 $as_echo_n "(cached) " >&6
16897 else
16898 ac_cv_c_bigendian=unknown
16899 # See if we're dealing with a universal compiler.
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16902 #ifndef __APPLE_CC__
16903 not a universal capable compiler
16904 #endif
16905 typedef int dummy;
16906
16907 _ACEOF
16908 if ac_fn_c_try_compile "$LINENO"; then :
16909
16910 # Check for potential -arch flags. It is not universal unless
16911 # there are at least two -arch flags with different values.
16912 ac_arch=
16913 ac_prev=
16914 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16915 if test -n "$ac_prev"; then
16916 case $ac_word in
16917 i?86 | x86_64 | ppc | ppc64)
16918 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16919 ac_arch=$ac_word
16920 else
16921 ac_cv_c_bigendian=universal
16922 break
16923 fi
16924 ;;
16925 esac
16926 ac_prev=
16927 elif test "x$ac_word" = "x-arch"; then
16928 ac_prev=arch
16929 fi
16930 done
16931 fi
16932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 if test $ac_cv_c_bigendian = unknown; then
16934 # See if sys/param.h defines the BYTE_ORDER macro.
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16937 #include <sys/types.h>
16938 #include <sys/param.h>
16939
16940 int
16941 main ()
16942 {
16943 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16944 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16945 && LITTLE_ENDIAN)
16946 bogus endian macros
16947 #endif
16948
16949 ;
16950 return 0;
16951 }
16952 _ACEOF
16953 if ac_fn_c_try_compile "$LINENO"; then :
16954 # It does; now see whether it defined to BIG_ENDIAN or not.
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 #include <sys/types.h>
16958 #include <sys/param.h>
16959
16960 int
16961 main ()
16962 {
16963 #if BYTE_ORDER != BIG_ENDIAN
16964 not big endian
16965 #endif
16966
16967 ;
16968 return 0;
16969 }
16970 _ACEOF
16971 if ac_fn_c_try_compile "$LINENO"; then :
16972 ac_cv_c_bigendian=yes
16973 else
16974 ac_cv_c_bigendian=no
16975 fi
16976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979 fi
16980 if test $ac_cv_c_bigendian = unknown; then
16981 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16984 #include <limits.h>
16985
16986 int
16987 main ()
16988 {
16989 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16990 bogus endian macros
16991 #endif
16992
16993 ;
16994 return 0;
16995 }
16996 _ACEOF
16997 if ac_fn_c_try_compile "$LINENO"; then :
16998 # It does; now see whether it defined to _BIG_ENDIAN or not.
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17001 #include <limits.h>
17002
17003 int
17004 main ()
17005 {
17006 #ifndef _BIG_ENDIAN
17007 not big endian
17008 #endif
17009
17010 ;
17011 return 0;
17012 }
17013 _ACEOF
17014 if ac_fn_c_try_compile "$LINENO"; then :
17015 ac_cv_c_bigendian=yes
17016 else
17017 ac_cv_c_bigendian=no
17018 fi
17019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17020 fi
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022 fi
17023 if test $ac_cv_c_bigendian = unknown; then
17024 # Compile a test program.
17025 if test "$cross_compiling" = yes; then :
17026 # Try to guess by grepping values from an object file.
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 short int ascii_mm[] =
17030 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17031 short int ascii_ii[] =
17032 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17033 int use_ascii (int i) {
17034 return ascii_mm[i] + ascii_ii[i];
17035 }
17036 short int ebcdic_ii[] =
17037 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17038 short int ebcdic_mm[] =
17039 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17040 int use_ebcdic (int i) {
17041 return ebcdic_mm[i] + ebcdic_ii[i];
17042 }
17043 extern int foo;
17044
17045 int
17046 main ()
17047 {
17048 return use_ascii (foo) == use_ebcdic (foo);
17049 ;
17050 return 0;
17051 }
17052 _ACEOF
17053 if ac_fn_c_try_compile "$LINENO"; then :
17054 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17055 ac_cv_c_bigendian=yes
17056 fi
17057 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17058 if test "$ac_cv_c_bigendian" = unknown; then
17059 ac_cv_c_bigendian=no
17060 else
17061 # finding both strings is unlikely to happen, but who knows?
17062 ac_cv_c_bigendian=unknown
17063 fi
17064 fi
17065 fi
17066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17067 else
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17070 $ac_includes_default
17071 int
17072 main ()
17073 {
17074
17075 /* Are we little or big endian? From Harbison&Steele. */
17076 union
17077 {
17078 long int l;
17079 char c[sizeof (long int)];
17080 } u;
17081 u.l = 1;
17082 return u.c[sizeof (long int) - 1] == 1;
17083
17084 ;
17085 return 0;
17086 }
17087 _ACEOF
17088 if ac_fn_c_try_run "$LINENO"; then :
17089 ac_cv_c_bigendian=no
17090 else
17091 ac_cv_c_bigendian=yes
17092 fi
17093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17094 conftest.$ac_objext conftest.beam conftest.$ac_ext
17095 fi
17096
17097 fi
17098 fi
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17100 $as_echo "$ac_cv_c_bigendian" >&6; }
17101 case $ac_cv_c_bigendian in #(
17102 yes)
17103 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17104 ;; #(
17105 no)
17106 ;; #(
17107 universal)
17108
17109 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17110
17111 ;; #(
17112 *)
17113 as_fn_error "unknown endianness
17114 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17115 esac
17116
17117
17118
17119 GNULIB_CHDIR=0;
17120 GNULIB_CHOWN=0;
17121 GNULIB_CLOSE=0;
17122 GNULIB_DUP=0;
17123 GNULIB_DUP2=0;
17124 GNULIB_DUP3=0;
17125 GNULIB_ENVIRON=0;
17126 GNULIB_EUIDACCESS=0;
17127 GNULIB_FACCESSAT=0;
17128 GNULIB_FCHDIR=0;
17129 GNULIB_FCHOWNAT=0;
17130 GNULIB_FDATASYNC=0;
17131 GNULIB_FSYNC=0;
17132 GNULIB_FTRUNCATE=0;
17133 GNULIB_GETCWD=0;
17134 GNULIB_GETDOMAINNAME=0;
17135 GNULIB_GETDTABLESIZE=0;
17136 GNULIB_GETGROUPS=0;
17137 GNULIB_GETHOSTNAME=0;
17138 GNULIB_GETLOGIN=0;
17139 GNULIB_GETLOGIN_R=0;
17140 GNULIB_GETPAGESIZE=0;
17141 GNULIB_GETUSERSHELL=0;
17142 GNULIB_GROUP_MEMBER=0;
17143 GNULIB_ISATTY=0;
17144 GNULIB_LCHOWN=0;
17145 GNULIB_LINK=0;
17146 GNULIB_LINKAT=0;
17147 GNULIB_LSEEK=0;
17148 GNULIB_PIPE=0;
17149 GNULIB_PIPE2=0;
17150 GNULIB_PREAD=0;
17151 GNULIB_PWRITE=0;
17152 GNULIB_READ=0;
17153 GNULIB_READLINK=0;
17154 GNULIB_READLINKAT=0;
17155 GNULIB_RMDIR=0;
17156 GNULIB_SETHOSTNAME=0;
17157 GNULIB_SLEEP=0;
17158 GNULIB_SYMLINK=0;
17159 GNULIB_SYMLINKAT=0;
17160 GNULIB_TTYNAME_R=0;
17161 GNULIB_UNISTD_H_NONBLOCKING=0;
17162 GNULIB_UNISTD_H_SIGPIPE=0;
17163 GNULIB_UNLINK=0;
17164 GNULIB_UNLINKAT=0;
17165 GNULIB_USLEEP=0;
17166 GNULIB_WRITE=0;
17167 HAVE_CHOWN=1;
17168 HAVE_DUP2=1;
17169 HAVE_DUP3=1;
17170 HAVE_EUIDACCESS=1;
17171 HAVE_FACCESSAT=1;
17172 HAVE_FCHDIR=1;
17173 HAVE_FCHOWNAT=1;
17174 HAVE_FDATASYNC=1;
17175 HAVE_FSYNC=1;
17176 HAVE_FTRUNCATE=1;
17177 HAVE_GETDTABLESIZE=1;
17178 HAVE_GETGROUPS=1;
17179 HAVE_GETHOSTNAME=1;
17180 HAVE_GETLOGIN=1;
17181 HAVE_GETPAGESIZE=1;
17182 HAVE_GROUP_MEMBER=1;
17183 HAVE_LCHOWN=1;
17184 HAVE_LINK=1;
17185 HAVE_LINKAT=1;
17186 HAVE_PIPE=1;
17187 HAVE_PIPE2=1;
17188 HAVE_PREAD=1;
17189 HAVE_PWRITE=1;
17190 HAVE_READLINK=1;
17191 HAVE_READLINKAT=1;
17192 HAVE_SETHOSTNAME=1;
17193 HAVE_SLEEP=1;
17194 HAVE_SYMLINK=1;
17195 HAVE_SYMLINKAT=1;
17196 HAVE_UNLINKAT=1;
17197 HAVE_USLEEP=1;
17198 HAVE_DECL_ENVIRON=1;
17199 HAVE_DECL_FCHDIR=1;
17200 HAVE_DECL_FDATASYNC=1;
17201 HAVE_DECL_GETDOMAINNAME=1;
17202 HAVE_DECL_GETLOGIN_R=1;
17203 HAVE_DECL_GETPAGESIZE=1;
17204 HAVE_DECL_GETUSERSHELL=1;
17205 HAVE_DECL_SETHOSTNAME=1;
17206 HAVE_DECL_TTYNAME_R=1;
17207 HAVE_OS_H=0;
17208 HAVE_SYS_PARAM_H=0;
17209 REPLACE_CHOWN=0;
17210 REPLACE_CLOSE=0;
17211 REPLACE_DUP=0;
17212 REPLACE_DUP2=0;
17213 REPLACE_FCHOWNAT=0;
17214 REPLACE_FTRUNCATE=0;
17215 REPLACE_GETCWD=0;
17216 REPLACE_GETDOMAINNAME=0;
17217 REPLACE_GETLOGIN_R=0;
17218 REPLACE_GETGROUPS=0;
17219 REPLACE_GETPAGESIZE=0;
17220 REPLACE_ISATTY=0;
17221 REPLACE_LCHOWN=0;
17222 REPLACE_LINK=0;
17223 REPLACE_LINKAT=0;
17224 REPLACE_LSEEK=0;
17225 REPLACE_PREAD=0;
17226 REPLACE_PWRITE=0;
17227 REPLACE_READ=0;
17228 REPLACE_READLINK=0;
17229 REPLACE_RMDIR=0;
17230 REPLACE_SLEEP=0;
17231 REPLACE_SYMLINK=0;
17232 REPLACE_TTYNAME_R=0;
17233 REPLACE_UNLINK=0;
17234 REPLACE_UNLINKAT=0;
17235 REPLACE_USLEEP=0;
17236 REPLACE_WRITE=0;
17237 UNISTD_H_HAVE_WINSOCK2_H=0;
17238 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17239
17240
17241
17242 GNULIB_OPENDIR=0;
17243 GNULIB_READDIR=0;
17244 GNULIB_REWINDDIR=0;
17245 GNULIB_CLOSEDIR=0;
17246 GNULIB_DIRFD=0;
17247 GNULIB_FDOPENDIR=0;
17248 GNULIB_SCANDIR=0;
17249 GNULIB_ALPHASORT=0;
17250 HAVE_OPENDIR=1;
17251 HAVE_READDIR=1;
17252 HAVE_REWINDDIR=1;
17253 HAVE_CLOSEDIR=1;
17254 HAVE_DECL_DIRFD=1;
17255 HAVE_DECL_FDOPENDIR=1;
17256 HAVE_FDOPENDIR=1;
17257 HAVE_SCANDIR=1;
17258 HAVE_ALPHASORT=1;
17259 REPLACE_OPENDIR=0;
17260 REPLACE_CLOSEDIR=0;
17261 REPLACE_DIRFD=0;
17262 REPLACE_FDOPENDIR=0;
17263
17264
17265
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17267 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17268 if test "${gl_cv_have_include_next+set}" = set; then :
17269 $as_echo_n "(cached) " >&6
17270 else
17271 rm -rf conftestd1a conftestd1b conftestd2
17272 mkdir conftestd1a conftestd1b conftestd2
17273 cat <<EOF > conftestd1a/conftest.h
17274 #define DEFINED_IN_CONFTESTD1
17275 #include_next <conftest.h>
17276 #ifdef DEFINED_IN_CONFTESTD2
17277 int foo;
17278 #else
17279 #error "include_next doesn't work"
17280 #endif
17281 EOF
17282 cat <<EOF > conftestd1b/conftest.h
17283 #define DEFINED_IN_CONFTESTD1
17284 #include <stdio.h>
17285 #include_next <conftest.h>
17286 #ifdef DEFINED_IN_CONFTESTD2
17287 int foo;
17288 #else
17289 #error "include_next doesn't work"
17290 #endif
17291 EOF
17292 cat <<EOF > conftestd2/conftest.h
17293 #ifndef DEFINED_IN_CONFTESTD1
17294 #error "include_next test doesn't work"
17295 #endif
17296 #define DEFINED_IN_CONFTESTD2
17297 EOF
17298 gl_save_CPPFLAGS="$CPPFLAGS"
17299 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 #include <conftest.h>
17303 _ACEOF
17304 if ac_fn_c_try_compile "$LINENO"; then :
17305 gl_cv_have_include_next=yes
17306 else
17307 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310 #include <conftest.h>
17311 _ACEOF
17312 if ac_fn_c_try_compile "$LINENO"; then :
17313 gl_cv_have_include_next=buggy
17314 else
17315 gl_cv_have_include_next=no
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318
17319 fi
17320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17321 CPPFLAGS="$gl_save_CPPFLAGS"
17322 rm -rf conftestd1a conftestd1b conftestd2
17323
17324 fi
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17326 $as_echo "$gl_cv_have_include_next" >&6; }
17327 PRAGMA_SYSTEM_HEADER=
17328 if test $gl_cv_have_include_next = yes; then
17329 INCLUDE_NEXT=include_next
17330 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17331 if test -n "$GCC"; then
17332 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17333 fi
17334 else
17335 if test $gl_cv_have_include_next = buggy; then
17336 INCLUDE_NEXT=include
17337 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17338 else
17339 INCLUDE_NEXT=include
17340 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17341 fi
17342 fi
17343
17344
17345
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17347 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17348 if test "${gl_cv_pragma_columns+set}" = set; then :
17349 $as_echo_n "(cached) " >&6
17350 else
17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h. */
17353
17354 #ifdef __TANDEM
17355 choke me
17356 #endif
17357
17358 _ACEOF
17359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17360 $EGREP "choke me" >/dev/null 2>&1; then :
17361 gl_cv_pragma_columns=yes
17362 else
17363 gl_cv_pragma_columns=no
17364 fi
17365 rm -f conftest*
17366
17367
17368 fi
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17370 $as_echo "$gl_cv_pragma_columns" >&6; }
17371 if test $gl_cv_pragma_columns = yes; then
17372 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17373 else
17374 PRAGMA_COLUMNS=
17375 fi
17376
17377
17378
17379
17380
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17382 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17383 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17384 $as_echo_n "(cached) " >&6
17385 else
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17388 /* On HP-UX before 11.23, strtold returns a struct instead of
17389 long double. Reject implementations like that, by requiring
17390 compatibility with the C99 prototype. */
17391 #include <stdlib.h>
17392 static long double (*p) (char const *, char **) = strtold;
17393 static long double
17394 test (char const *nptr, char **endptr)
17395 {
17396 long double r;
17397 r = strtold (nptr, endptr);
17398 return r;
17399 }
17400 int
17401 main ()
17402 {
17403 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17404 ;
17405 return 0;
17406 }
17407 _ACEOF
17408 if ac_fn_c_try_link "$LINENO"; then :
17409 gl_cv_func_c99_strtold=yes
17410 else
17411 gl_cv_func_c99_strtold=no
17412 fi
17413 rm -f core conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17415 fi
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17417 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17418 if test $gl_cv_func_c99_strtold = yes; then
17419
17420 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17421
17422 fi
17423
17424
17425
17426
17427
17428
17429
17430
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17432 $as_echo_n "checking if environ is properly declared... " >&6; }
17433 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436
17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17439 #if HAVE_UNISTD_H
17440 #include <unistd.h>
17441 #endif
17442 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17443 #include <stdlib.h>
17444
17445 extern struct { int foo; } environ;
17446 int
17447 main ()
17448 {
17449 environ.foo = 1;
17450 ;
17451 return 0;
17452 }
17453 _ACEOF
17454 if ac_fn_c_try_compile "$LINENO"; then :
17455 gt_cv_var_environ_declaration=no
17456 else
17457 gt_cv_var_environ_declaration=yes
17458 fi
17459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17460 fi
17461
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17463 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17464 if test $gt_cv_var_environ_declaration = yes; then
17465
17466 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17467
17468 fi
17469
17470
17471 if test $gt_cv_var_environ_declaration != yes; then
17472 HAVE_DECL_ENVIRON=0
17473 fi
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483 GNULIB_FCNTL=0;
17484 GNULIB_NONBLOCKING=0;
17485 GNULIB_OPEN=0;
17486 GNULIB_OPENAT=0;
17487 HAVE_FCNTL=1;
17488 HAVE_OPENAT=1;
17489 REPLACE_FCNTL=0;
17490 REPLACE_OPEN=0;
17491 REPLACE_OPENAT=0;
17492
17493
17494 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17495 if test "x$ac_cv_type_mode_t" = x""yes; then :
17496
17497 else
17498
17499 cat >>confdefs.h <<_ACEOF
17500 #define mode_t int
17501 _ACEOF
17502
17503 fi
17504
17505 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
17506 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
17507 ac_have_decl=1
17508 else
17509 ac_have_decl=0
17510 fi
17511
17512 cat >>confdefs.h <<_ACEOF
17513 #define HAVE_DECL_FDATASYNC $ac_have_decl
17514 _ACEOF
17515
17516
17517
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17519 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17520 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17521 $as_echo_n "(cached) " >&6
17522 else
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17525
17526 #include <sys/types.h>
17527 #include <sys/stat.h>
17528 int
17529 main ()
17530 {
17531 struct stat s; s.st_dm_mode;
17532 ;
17533 return 0;
17534 }
17535 _ACEOF
17536 if ac_fn_c_try_compile "$LINENO"; then :
17537 ac_cv_struct_st_dm_mode=yes
17538 else
17539 ac_cv_struct_st_dm_mode=no
17540 fi
17541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17542 fi
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17544 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17545
17546 if test $ac_cv_struct_st_dm_mode = yes; then
17547
17548 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17549
17550 fi
17551
17552
17553 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17554 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17555 ac_have_decl=1
17556 else
17557 ac_have_decl=0
17558 fi
17559
17560 cat >>confdefs.h <<_ACEOF
17561 #define HAVE_DECL_STRMODE $ac_have_decl
17562 _ACEOF
17563
17564
17565
17566
17567
17568
17569 GNULIB_FCHMODAT=0;
17570 GNULIB_FSTAT=0;
17571 GNULIB_FSTATAT=0;
17572 GNULIB_FUTIMENS=0;
17573 GNULIB_LCHMOD=0;
17574 GNULIB_LSTAT=0;
17575 GNULIB_MKDIRAT=0;
17576 GNULIB_MKFIFO=0;
17577 GNULIB_MKFIFOAT=0;
17578 GNULIB_MKNOD=0;
17579 GNULIB_MKNODAT=0;
17580 GNULIB_STAT=0;
17581 GNULIB_UTIMENSAT=0;
17582 HAVE_FCHMODAT=1;
17583 HAVE_FSTATAT=1;
17584 HAVE_FUTIMENS=1;
17585 HAVE_LCHMOD=1;
17586 HAVE_LSTAT=1;
17587 HAVE_MKDIRAT=1;
17588 HAVE_MKFIFO=1;
17589 HAVE_MKFIFOAT=1;
17590 HAVE_MKNOD=1;
17591 HAVE_MKNODAT=1;
17592 HAVE_UTIMENSAT=1;
17593 REPLACE_FSTAT=0;
17594 REPLACE_FSTATAT=0;
17595 REPLACE_FUTIMENS=0;
17596 REPLACE_LSTAT=0;
17597 REPLACE_MKDIR=0;
17598 REPLACE_MKFIFO=0;
17599 REPLACE_MKNOD=0;
17600 REPLACE_STAT=0;
17601 REPLACE_UTIMENSAT=0;
17602
17603
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17605 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17606 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17609 rm -f conftest.sym conftest.file
17610 echo >conftest.file
17611 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17612 if test "$cross_compiling" = yes; then :
17613 case "$host_os" in
17614 # Guess yes on glibc systems.
17615 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17616 # If we don't know, assume the worst.
17617 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17618 esac
17619
17620 else
17621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17622 /* end confdefs.h. */
17623 $ac_includes_default
17624 int
17625 main ()
17626 {
17627 struct stat sbuf;
17628 /* Linux will dereference the symlink and fail, as required by
17629 POSIX. That is better in the sense that it means we will not
17630 have to compile and use the lstat wrapper. */
17631 return lstat ("conftest.sym/", &sbuf) == 0;
17632
17633 ;
17634 return 0;
17635 }
17636 _ACEOF
17637 if ac_fn_c_try_run "$LINENO"; then :
17638 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17639 else
17640 gl_cv_func_lstat_dereferences_slashed_symlink=no
17641 fi
17642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17643 conftest.$ac_objext conftest.beam conftest.$ac_ext
17644 fi
17645
17646 else
17647 # If the 'ln -s' command failed, then we probably don't even
17648 # have an lstat function.
17649 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17650 fi
17651 rm -f conftest.sym conftest.file
17652
17653 fi
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17655 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17656 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17657 *yes)
17658
17659 cat >>confdefs.h <<_ACEOF
17660 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17661 _ACEOF
17662
17663 ;;
17664 esac
17665
17666
17667
17668
17669
17670
17671 GNULIB__EXIT=0;
17672 GNULIB_ATOLL=0;
17673 GNULIB_CALLOC_POSIX=0;
17674 GNULIB_CANONICALIZE_FILE_NAME=0;
17675 GNULIB_GETLOADAVG=0;
17676 GNULIB_GETSUBOPT=0;
17677 GNULIB_GRANTPT=0;
17678 GNULIB_MALLOC_POSIX=0;
17679 GNULIB_MBTOWC=0;
17680 GNULIB_MKDTEMP=0;
17681 GNULIB_MKOSTEMP=0;
17682 GNULIB_MKOSTEMPS=0;
17683 GNULIB_MKSTEMP=0;
17684 GNULIB_MKSTEMPS=0;
17685 GNULIB_POSIX_OPENPT=0;
17686 GNULIB_PTSNAME=0;
17687 GNULIB_PTSNAME_R=0;
17688 GNULIB_PUTENV=0;
17689 GNULIB_RANDOM=0;
17690 GNULIB_RANDOM_R=0;
17691 GNULIB_REALLOC_POSIX=0;
17692 GNULIB_REALPATH=0;
17693 GNULIB_RPMATCH=0;
17694 GNULIB_SECURE_GETENV=0;
17695 GNULIB_SETENV=0;
17696 GNULIB_STRTOD=0;
17697 GNULIB_STRTOLL=0;
17698 GNULIB_STRTOULL=0;
17699 GNULIB_SYSTEM_POSIX=0;
17700 GNULIB_UNLOCKPT=0;
17701 GNULIB_UNSETENV=0;
17702 GNULIB_WCTOMB=0;
17703 HAVE__EXIT=1;
17704 HAVE_ATOLL=1;
17705 HAVE_CANONICALIZE_FILE_NAME=1;
17706 HAVE_DECL_GETLOADAVG=1;
17707 HAVE_GETSUBOPT=1;
17708 HAVE_GRANTPT=1;
17709 HAVE_MKDTEMP=1;
17710 HAVE_MKOSTEMP=1;
17711 HAVE_MKOSTEMPS=1;
17712 HAVE_MKSTEMP=1;
17713 HAVE_MKSTEMPS=1;
17714 HAVE_POSIX_OPENPT=1;
17715 HAVE_PTSNAME=1;
17716 HAVE_PTSNAME_R=1;
17717 HAVE_RANDOM=1;
17718 HAVE_RANDOM_H=1;
17719 HAVE_RANDOM_R=1;
17720 HAVE_REALPATH=1;
17721 HAVE_RPMATCH=1;
17722 HAVE_SECURE_GETENV=1;
17723 HAVE_SETENV=1;
17724 HAVE_DECL_SETENV=1;
17725 HAVE_STRTOD=1;
17726 HAVE_STRTOLL=1;
17727 HAVE_STRTOULL=1;
17728 HAVE_STRUCT_RANDOM_DATA=1;
17729 HAVE_SYS_LOADAVG_H=0;
17730 HAVE_UNLOCKPT=1;
17731 HAVE_DECL_UNSETENV=1;
17732 REPLACE_CALLOC=0;
17733 REPLACE_CANONICALIZE_FILE_NAME=0;
17734 REPLACE_MALLOC=0;
17735 REPLACE_MBTOWC=0;
17736 REPLACE_MKSTEMP=0;
17737 REPLACE_PTSNAME=0;
17738 REPLACE_PTSNAME_R=0;
17739 REPLACE_PUTENV=0;
17740 REPLACE_RANDOM_R=0;
17741 REPLACE_REALLOC=0;
17742 REPLACE_REALPATH=0;
17743 REPLACE_SETENV=0;
17744 REPLACE_STRTOD=0;
17745 REPLACE_UNSETENV=0;
17746 REPLACE_WCTOMB=0;
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763 if test $gl_cv_have_include_next = yes; then
17764 gl_cv_next_getopt_h='<'getopt.h'>'
17765 else
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17767 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17768 if test "${gl_cv_next_getopt_h+set}" = set; then :
17769 $as_echo_n "(cached) " >&6
17770 else
17771
17772 if test $ac_cv_header_getopt_h = yes; then
17773
17774
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17777 #include <getopt.h>
17778
17779 _ACEOF
17780 case "$host_os" in
17781 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17782 *) gl_absname_cpp="$ac_cpp" ;;
17783 esac
17784
17785 case "$host_os" in
17786 mingw*)
17787 gl_dirsep_regex='[/\\]'
17788 ;;
17789 *)
17790 gl_dirsep_regex='\/'
17791 ;;
17792 esac
17793 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17794
17795 gl_header_literal_regex=`echo 'getopt.h' \
17796 | sed -e "$gl_make_literal_regex_sed"`
17797 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17798 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17799 s|^/[^/]|//&|
17800 p
17801 q
17802 }'
17803 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17804 sed -n "$gl_absolute_header_sed"`'"'
17805 else
17806 gl_cv_next_getopt_h='<'getopt.h'>'
17807 fi
17808
17809
17810 fi
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17812 $as_echo "$gl_cv_next_getopt_h" >&6; }
17813 fi
17814 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17815
17816 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17818 gl_next_as_first_directive='<'getopt.h'>'
17819 else
17820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17821 gl_next_as_first_directive=$gl_cv_next_getopt_h
17822 fi
17823 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17824
17825
17826
17827
17828 if test $ac_cv_header_getopt_h = yes; then
17829 HAVE_GETOPT_H=1
17830 else
17831 HAVE_GETOPT_H=0
17832 fi
17833
17834
17835 gl_replace_getopt=
17836
17837 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17838 for ac_header in getopt.h
17839 do :
17840 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17841 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE_GETOPT_H 1
17844 _ACEOF
17845
17846 else
17847 gl_replace_getopt=yes
17848 fi
17849
17850 done
17851
17852 fi
17853
17854 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17855 for ac_func in getopt_long_only
17856 do :
17857 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17858 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17859 cat >>confdefs.h <<_ACEOF
17860 #define HAVE_GETOPT_LONG_ONLY 1
17861 _ACEOF
17862
17863 else
17864 gl_replace_getopt=yes
17865 fi
17866 done
17867
17868 fi
17869
17870 if test -z "$gl_replace_getopt"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17872 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17873 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17874 $as_echo_n "(cached) " >&6
17875 else
17876
17877 if test $cross_compiling = no; then
17878 if test "$cross_compiling" = yes; then :
17879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17881 as_fn_error "cannot run test program while cross compiling
17882 See \`config.log' for more details." "$LINENO" 5; }
17883 else
17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17886
17887 #include <unistd.h>
17888 #include <stdlib.h>
17889 #include <string.h>
17890
17891 int
17892 main ()
17893 {
17894 static char program[] = "program";
17895 static char a[] = "-a";
17896 static char foo[] = "foo";
17897 static char bar[] = "bar";
17898 char *argv[] = { program, a, foo, bar, NULL };
17899 int c;
17900
17901 c = getopt (4, argv, "ab");
17902 if (!(c == 'a'))
17903 return 1;
17904 c = getopt (4, argv, "ab");
17905 if (!(c == -1))
17906 return 2;
17907 if (!(optind == 2))
17908 return 3;
17909 return 0;
17910 }
17911
17912 _ACEOF
17913 if ac_fn_c_try_run "$LINENO"; then :
17914 gl_cv_func_getopt_posix=maybe
17915 else
17916 gl_cv_func_getopt_posix=no
17917 fi
17918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17919 conftest.$ac_objext conftest.beam conftest.$ac_ext
17920 fi
17921
17922 if test $gl_cv_func_getopt_posix = maybe; then
17923 if test "$cross_compiling" = yes; then :
17924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17926 as_fn_error "cannot run test program while cross compiling
17927 See \`config.log' for more details." "$LINENO" 5; }
17928 else
17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17931
17932 #include <unistd.h>
17933 #include <stdlib.h>
17934 #include <string.h>
17935
17936 int
17937 main ()
17938 {
17939 static char program[] = "program";
17940 static char donald[] = "donald";
17941 static char p[] = "-p";
17942 static char billy[] = "billy";
17943 static char duck[] = "duck";
17944 static char a[] = "-a";
17945 static char bar[] = "bar";
17946 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17947 int c;
17948
17949 c = getopt (7, argv, "+abp:q:");
17950 if (!(c == -1))
17951 return 4;
17952 if (!(strcmp (argv[0], "program") == 0))
17953 return 5;
17954 if (!(strcmp (argv[1], "donald") == 0))
17955 return 6;
17956 if (!(strcmp (argv[2], "-p") == 0))
17957 return 7;
17958 if (!(strcmp (argv[3], "billy") == 0))
17959 return 8;
17960 if (!(strcmp (argv[4], "duck") == 0))
17961 return 9;
17962 if (!(strcmp (argv[5], "-a") == 0))
17963 return 10;
17964 if (!(strcmp (argv[6], "bar") == 0))
17965 return 11;
17966 if (!(optind == 1))
17967 return 12;
17968 return 0;
17969 }
17970
17971 _ACEOF
17972 if ac_fn_c_try_run "$LINENO"; then :
17973 gl_cv_func_getopt_posix=maybe
17974 else
17975 gl_cv_func_getopt_posix=no
17976 fi
17977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17978 conftest.$ac_objext conftest.beam conftest.$ac_ext
17979 fi
17980
17981 fi
17982 if test $gl_cv_func_getopt_posix = maybe; then
17983 if test "$cross_compiling" = yes; then :
17984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17986 as_fn_error "cannot run test program while cross compiling
17987 See \`config.log' for more details." "$LINENO" 5; }
17988 else
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17991
17992 #include <unistd.h>
17993 #include <stdlib.h>
17994 #include <string.h>
17995
17996 int
17997 main ()
17998 {
17999 static char program[] = "program";
18000 static char ab[] = "-ab";
18001 char *argv[3] = { program, ab, NULL };
18002 if (getopt (2, argv, "ab:") != 'a')
18003 return 13;
18004 if (getopt (2, argv, "ab:") != '?')
18005 return 14;
18006 if (optopt != 'b')
18007 return 15;
18008 if (optind != 2)
18009 return 16;
18010 return 0;
18011 }
18012
18013 _ACEOF
18014 if ac_fn_c_try_run "$LINENO"; then :
18015 gl_cv_func_getopt_posix=yes
18016 else
18017 gl_cv_func_getopt_posix=no
18018 fi
18019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18020 conftest.$ac_objext conftest.beam conftest.$ac_ext
18021 fi
18022
18023 fi
18024 else
18025 case "$host_os" in
18026 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
18027 *) gl_cv_func_getopt_posix="guessing yes";;
18028 esac
18029 fi
18030
18031 fi
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
18033 $as_echo "$gl_cv_func_getopt_posix" >&6; }
18034 case "$gl_cv_func_getopt_posix" in
18035 *no) gl_replace_getopt=yes ;;
18036 esac
18037 fi
18038
18039 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
18041 $as_echo_n "checking for working GNU getopt function... " >&6; }
18042 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
18043 $as_echo_n "(cached) " >&6
18044 else
18045 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
18046 # optstring is necessary for programs like m4 that have POSIX-mandated
18047 # semantics for supporting options interspersed with files.
18048 # Also, since getopt_long is a GNU extension, we require optind=0.
18049 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
18050 # so take care to revert to the correct (non-)export state.
18051 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
18052 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
18053 xx) gl_had_POSIXLY_CORRECT=exported ;;
18054 x) gl_had_POSIXLY_CORRECT=yes ;;
18055 *) gl_had_POSIXLY_CORRECT= ;;
18056 esac
18057 POSIXLY_CORRECT=1
18058 export POSIXLY_CORRECT
18059 if test "$cross_compiling" = yes; then :
18060 gl_cv_func_getopt_gnu="guessing no"
18061
18062 else
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065 #include <getopt.h>
18066 #include <stddef.h>
18067 #include <string.h>
18068
18069 #include <stdlib.h>
18070 #if defined __MACH__ && defined __APPLE__
18071 /* Avoid a crash on Mac OS X. */
18072 #include <mach/mach.h>
18073 #include <mach/mach_error.h>
18074 #include <mach/thread_status.h>
18075 #include <mach/exception.h>
18076 #include <mach/task.h>
18077 #include <pthread.h>
18078 /* The exception port on which our thread listens. */
18079 static mach_port_t our_exception_port;
18080 /* The main function of the thread listening for exceptions of type
18081 EXC_BAD_ACCESS. */
18082 static void *
18083 mach_exception_thread (void *arg)
18084 {
18085 /* Buffer for a message to be received. */
18086 struct {
18087 mach_msg_header_t head;
18088 mach_msg_body_t msgh_body;
18089 char data[1024];
18090 } msg;
18091 mach_msg_return_t retval;
18092 /* Wait for a message on the exception port. */
18093 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
18094 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
18095 if (retval != MACH_MSG_SUCCESS)
18096 abort ();
18097 exit (1);
18098 }
18099 static void
18100 nocrash_init (void)
18101 {
18102 mach_port_t self = mach_task_self ();
18103 /* Allocate a port on which the thread shall listen for exceptions. */
18104 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
18105 == KERN_SUCCESS) {
18106 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
18107 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
18108 MACH_MSG_TYPE_MAKE_SEND)
18109 == KERN_SUCCESS) {
18110 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
18111 for us. */
18112 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
18113 /* Create the thread listening on the exception port. */
18114 pthread_attr_t attr;
18115 pthread_t thread;
18116 if (pthread_attr_init (&attr) == 0
18117 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
18118 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
18119 pthread_attr_destroy (&attr);
18120 /* Replace the exception port info for these exceptions with our own.
18121 Note that we replace the exception port for the entire task, not only
18122 for a particular thread. This has the effect that when our exception
18123 port gets the message, the thread specific exception port has already
18124 been asked, and we don't need to bother about it.
18125 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
18126 task_set_exception_ports (self, mask, our_exception_port,
18127 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
18128 }
18129 }
18130 }
18131 }
18132 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18133 /* Avoid a crash on native Windows. */
18134 #define WIN32_LEAN_AND_MEAN
18135 #include <windows.h>
18136 #include <winerror.h>
18137 static LONG WINAPI
18138 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
18139 {
18140 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
18141 {
18142 case EXCEPTION_ACCESS_VIOLATION:
18143 case EXCEPTION_IN_PAGE_ERROR:
18144 case EXCEPTION_STACK_OVERFLOW:
18145 case EXCEPTION_GUARD_PAGE:
18146 case EXCEPTION_PRIV_INSTRUCTION:
18147 case EXCEPTION_ILLEGAL_INSTRUCTION:
18148 case EXCEPTION_DATATYPE_MISALIGNMENT:
18149 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
18150 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
18151 exit (1);
18152 }
18153 return EXCEPTION_CONTINUE_SEARCH;
18154 }
18155 static void
18156 nocrash_init (void)
18157 {
18158 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
18159 }
18160 #else
18161 /* Avoid a crash on POSIX systems. */
18162 #include <signal.h>
18163 /* A POSIX signal handler. */
18164 static void
18165 exception_handler (int sig)
18166 {
18167 exit (1);
18168 }
18169 static void
18170 nocrash_init (void)
18171 {
18172 #ifdef SIGSEGV
18173 signal (SIGSEGV, exception_handler);
18174 #endif
18175 #ifdef SIGBUS
18176 signal (SIGBUS, exception_handler);
18177 #endif
18178 }
18179 #endif
18180
18181
18182 int
18183 main ()
18184 {
18185
18186 int result = 0;
18187
18188 nocrash_init();
18189
18190 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
18191 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
18192 OSF/1 5.1, Solaris 10. */
18193 {
18194 static char conftest[] = "conftest";
18195 static char plus[] = "-+";
18196 char *argv[3] = { conftest, plus, NULL };
18197 opterr = 0;
18198 if (getopt (2, argv, "+a") != '?')
18199 result |= 1;
18200 }
18201 /* This code succeeds on glibc 2.8, mingw,
18202 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
18203 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
18204 {
18205 static char program[] = "program";
18206 static char p[] = "-p";
18207 static char foo[] = "foo";
18208 static char bar[] = "bar";
18209 char *argv[] = { program, p, foo, bar, NULL };
18210
18211 optind = 1;
18212 if (getopt (4, argv, "p::") != 'p')
18213 result |= 2;
18214 else if (optarg != NULL)
18215 result |= 4;
18216 else if (getopt (4, argv, "p::") != -1)
18217 result |= 6;
18218 else if (optind != 2)
18219 result |= 8;
18220 }
18221 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
18222 {
18223 static char program[] = "program";
18224 static char foo[] = "foo";
18225 static char p[] = "-p";
18226 char *argv[] = { program, foo, p, NULL };
18227 optind = 0;
18228 if (getopt (3, argv, "-p") != 1)
18229 result |= 16;
18230 else if (getopt (3, argv, "-p") != 'p')
18231 result |= 16;
18232 }
18233 /* This code fails on glibc 2.11. */
18234 {
18235 static char program[] = "program";
18236 static char b[] = "-b";
18237 static char a[] = "-a";
18238 char *argv[] = { program, b, a, NULL };
18239 optind = opterr = 0;
18240 if (getopt (3, argv, "+:a:b") != 'b')
18241 result |= 32;
18242 else if (getopt (3, argv, "+:a:b") != ':')
18243 result |= 32;
18244 }
18245 /* This code dumps core on glibc 2.14. */
18246 {
18247 static char program[] = "program";
18248 static char w[] = "-W";
18249 static char dummy[] = "dummy";
18250 char *argv[] = { program, w, dummy, NULL };
18251 optind = opterr = 1;
18252 if (getopt (3, argv, "W;") != 'W')
18253 result |= 64;
18254 }
18255 return result;
18256
18257 ;
18258 return 0;
18259 }
18260 _ACEOF
18261 if ac_fn_c_try_run "$LINENO"; then :
18262 gl_cv_func_getopt_gnu=yes
18263 else
18264 gl_cv_func_getopt_gnu=no
18265 fi
18266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18267 conftest.$ac_objext conftest.beam conftest.$ac_ext
18268 fi
18269
18270 case $gl_had_POSIXLY_CORRECT in
18271 exported) ;;
18272 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
18273 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
18274 esac
18275
18276 fi
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
18278 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
18279 if test "$gl_cv_func_getopt_gnu" != yes; then
18280 gl_replace_getopt=yes
18281 else
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18283 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18284 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18285 $as_echo_n "(cached) " >&6
18286 else
18287 if test "$cross_compiling" = yes; then :
18288 case "$host_os" in
18289 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
18290 *) gl_cv_func_getopt_long_gnu="guessing yes";;
18291 esac
18292
18293 else
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296 #include <getopt.h>
18297 #include <stddef.h>
18298 #include <string.h>
18299
18300 int
18301 main ()
18302 {
18303 static const struct option long_options[] =
18304 {
18305 { "xtremely-",no_argument, NULL, 1003 },
18306 { "xtra", no_argument, NULL, 1001 },
18307 { "xtreme", no_argument, NULL, 1002 },
18308 { "xtremely", no_argument, NULL, 1003 },
18309 { NULL, 0, NULL, 0 }
18310 };
18311 /* This code fails on OpenBSD 5.0. */
18312 {
18313 static char program[] = "program";
18314 static char xtremel[] = "--xtremel";
18315 char *argv[] = { program, xtremel, NULL };
18316 int option_index;
18317 optind = 1; opterr = 0;
18318 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18319 return 1;
18320 }
18321 return 0;
18322
18323 ;
18324 return 0;
18325 }
18326 _ACEOF
18327 if ac_fn_c_try_run "$LINENO"; then :
18328 gl_cv_func_getopt_long_gnu=yes
18329 else
18330 gl_cv_func_getopt_long_gnu=no
18331 fi
18332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18333 conftest.$ac_objext conftest.beam conftest.$ac_ext
18334 fi
18335
18336
18337 fi
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18339 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18340 case "$gl_cv_func_getopt_long_gnu" in
18341 *yes) ;;
18342 *) gl_replace_getopt=yes ;;
18343 esac
18344 fi
18345 fi
18346
18347
18348
18349
18350
18351
18352 REPLACE_GETOPT=0
18353 if test -n "$gl_replace_getopt"; then
18354 REPLACE_GETOPT=1
18355 fi
18356
18357 if test $REPLACE_GETOPT = 1; then
18358
18359 GETOPT_H=getopt.h
18360
18361 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18362
18363
18364
18365 fi
18366
18367 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18368 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
18369 ac_have_decl=1
18370 else
18371 ac_have_decl=0
18372 fi
18373
18374 cat >>confdefs.h <<_ACEOF
18375 #define HAVE_DECL_GETENV $ac_have_decl
18376 _ACEOF
18377
18378 :
18379
18380
18381
18382
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18384 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18385 if test "${ac_cv_c_restrict+set}" = set; then :
18386 $as_echo_n "(cached) " >&6
18387 else
18388 ac_cv_c_restrict=no
18389 # The order here caters to the fact that C++ does not require restrict.
18390 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h. */
18393 typedef int * int_ptr;
18394 int foo (int_ptr $ac_kw ip) {
18395 return ip[0];
18396 }
18397 int
18398 main ()
18399 {
18400 int s[1];
18401 int * $ac_kw t = s;
18402 t[0] = 0;
18403 return foo(t)
18404 ;
18405 return 0;
18406 }
18407 _ACEOF
18408 if ac_fn_c_try_compile "$LINENO"; then :
18409 ac_cv_c_restrict=$ac_kw
18410 fi
18411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18412 test "$ac_cv_c_restrict" != no && break
18413 done
18414
18415 fi
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18417 $as_echo "$ac_cv_c_restrict" >&6; }
18418
18419 case $ac_cv_c_restrict in
18420 restrict) ;;
18421 no) $as_echo "#define restrict /**/" >>confdefs.h
18422 ;;
18423 *) cat >>confdefs.h <<_ACEOF
18424 #define restrict $ac_cv_c_restrict
18425 _ACEOF
18426 ;;
18427 esac
18428
18429
18430 GNULIB_GETTIMEOFDAY=0;
18431 HAVE_GETTIMEOFDAY=1;
18432 HAVE_STRUCT_TIMEVAL=1;
18433 HAVE_SYS_TIME_H=1;
18434 REPLACE_GETTIMEOFDAY=0;
18435 REPLACE_STRUCT_TIMEVAL=0;
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452 if test $gl_cv_have_include_next = yes; then
18453 gl_cv_next_sys_time_h='<'sys/time.h'>'
18454 else
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18456 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18457 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18458 $as_echo_n "(cached) " >&6
18459 else
18460
18461 if test $ac_cv_header_sys_time_h = yes; then
18462
18463
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466 #include <sys/time.h>
18467
18468 _ACEOF
18469 case "$host_os" in
18470 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18471 *) gl_absname_cpp="$ac_cpp" ;;
18472 esac
18473
18474 case "$host_os" in
18475 mingw*)
18476 gl_dirsep_regex='[/\\]'
18477 ;;
18478 *)
18479 gl_dirsep_regex='\/'
18480 ;;
18481 esac
18482 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18483
18484 gl_header_literal_regex=`echo 'sys/time.h' \
18485 | sed -e "$gl_make_literal_regex_sed"`
18486 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18487 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18488 s|^/[^/]|//&|
18489 p
18490 q
18491 }'
18492 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18493 sed -n "$gl_absolute_header_sed"`'"'
18494 else
18495 gl_cv_next_sys_time_h='<'sys/time.h'>'
18496 fi
18497
18498
18499 fi
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18501 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18502 fi
18503 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
18504
18505 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18506 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18507 gl_next_as_first_directive='<'sys/time.h'>'
18508 else
18509 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18510 gl_next_as_first_directive=$gl_cv_next_sys_time_h
18511 fi
18512 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
18513
18514
18515
18516
18517
18518 if test $ac_cv_header_sys_time_h != yes; then
18519 HAVE_SYS_TIME_H=0
18520 fi
18521
18522
18523
18524
18525
18526 if test $ac_cv_header_sys_socket_h != yes; then
18527 for ac_header in winsock2.h
18528 do :
18529 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18530 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18531 cat >>confdefs.h <<_ACEOF
18532 #define HAVE_WINSOCK2_H 1
18533 _ACEOF
18534
18535 fi
18536
18537 done
18538
18539 fi
18540 if test "$ac_cv_header_winsock2_h" = yes; then
18541 HAVE_WINSOCK2_H=1
18542 UNISTD_H_HAVE_WINSOCK2_H=1
18543 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18544 else
18545 HAVE_WINSOCK2_H=0
18546 fi
18547
18548
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18550 $as_echo_n "checking for struct timeval... " >&6; }
18551 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18552 $as_echo_n "(cached) " >&6
18553 else
18554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18555 /* end confdefs.h. */
18556 #if HAVE_SYS_TIME_H
18557 #include <sys/time.h>
18558 #endif
18559 #include <time.h>
18560 #if HAVE_WINSOCK2_H
18561 # include <winsock2.h>
18562 #endif
18563
18564 int
18565 main ()
18566 {
18567 static struct timeval x; x.tv_sec = x.tv_usec;
18568 ;
18569 return 0;
18570 }
18571 _ACEOF
18572 if ac_fn_c_try_compile "$LINENO"; then :
18573 gl_cv_sys_struct_timeval=yes
18574 else
18575 gl_cv_sys_struct_timeval=no
18576 fi
18577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578
18579 fi
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18581 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18582 if test $gl_cv_sys_struct_timeval != yes; then
18583 HAVE_STRUCT_TIMEVAL=0
18584 else
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18586 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18587 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18588 $as_echo_n "(cached) " >&6
18589 else
18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18591 /* end confdefs.h. */
18592 #if HAVE_SYS_TIME_H
18593 #include <sys/time.h>
18594 #endif
18595 #include <time.h>
18596 #if HAVE_WINSOCK2_H
18597 # include <winsock2.h>
18598 #endif
18599
18600 int
18601 main ()
18602 {
18603 static struct timeval x;
18604 typedef int verify_tv_sec_type[
18605 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18606 ];
18607
18608 ;
18609 return 0;
18610 }
18611 _ACEOF
18612 if ac_fn_c_try_compile "$LINENO"; then :
18613 gl_cv_sys_struct_timeval_tv_sec=yes
18614 else
18615 gl_cv_sys_struct_timeval_tv_sec=no
18616 fi
18617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18618
18619 fi
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18621 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18622 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18623 REPLACE_STRUCT_TIMEVAL=1
18624 fi
18625 fi
18626
18627
18628
18629
18630
18631
18632
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18634 $as_echo_n "checking for unsigned long long int... " >&6; }
18635 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18636 $as_echo_n "(cached) " >&6
18637 else
18638 ac_cv_type_unsigned_long_long_int=yes
18639 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18641 /* end confdefs.h. */
18642
18643 /* For now, do not test the preprocessor; as of 2007 there are too many
18644 implementations with broken preprocessors. Perhaps this can
18645 be revisited in 2012. In the meantime, code should not expect
18646 #if to work with literals wider than 32 bits. */
18647 /* Test literals. */
18648 long long int ll = 9223372036854775807ll;
18649 long long int nll = -9223372036854775807LL;
18650 unsigned long long int ull = 18446744073709551615ULL;
18651 /* Test constant expressions. */
18652 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18653 ? 1 : -1)];
18654 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18655 ? 1 : -1)];
18656 int i = 63;
18657 int
18658 main ()
18659 {
18660 /* Test availability of runtime routines for shift and division. */
18661 long long int llmax = 9223372036854775807ll;
18662 unsigned long long int ullmax = 18446744073709551615ull;
18663 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18664 | (llmax / ll) | (llmax % ll)
18665 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18666 | (ullmax / ull) | (ullmax % ull));
18667 ;
18668 return 0;
18669 }
18670
18671 _ACEOF
18672 if ac_fn_c_try_link "$LINENO"; then :
18673
18674 else
18675 ac_cv_type_unsigned_long_long_int=no
18676 fi
18677 rm -f core conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
18679 fi
18680 fi
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18682 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18683 if test $ac_cv_type_unsigned_long_long_int = yes; then
18684
18685 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18686
18687 fi
18688
18689
18690
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18692 $as_echo_n "checking for long long int... " >&6; }
18693 if test "${ac_cv_type_long_long_int+set}" = set; then :
18694 $as_echo_n "(cached) " >&6
18695 else
18696 ac_cv_type_long_long_int=yes
18697 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18698 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18699 if test $ac_cv_type_long_long_int = yes; then
18700 if test "$cross_compiling" = yes; then :
18701 :
18702 else
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18705 #include <limits.h>
18706 #ifndef LLONG_MAX
18707 # define HALF \
18708 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18709 # define LLONG_MAX (HALF - 1 + HALF)
18710 #endif
18711 int
18712 main ()
18713 {
18714 long long int n = 1;
18715 int i;
18716 for (i = 0; ; i++)
18717 {
18718 long long int m = n << i;
18719 if (m >> i != n)
18720 return 1;
18721 if (LLONG_MAX / 2 < m)
18722 break;
18723 }
18724 return 0;
18725 ;
18726 return 0;
18727 }
18728 _ACEOF
18729 if ac_fn_c_try_run "$LINENO"; then :
18730
18731 else
18732 ac_cv_type_long_long_int=no
18733 fi
18734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18735 conftest.$ac_objext conftest.beam conftest.$ac_ext
18736 fi
18737
18738 fi
18739 fi
18740 fi
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18742 $as_echo "$ac_cv_type_long_long_int" >&6; }
18743 if test $ac_cv_type_long_long_int = yes; then
18744
18745 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18746
18747 fi
18748
18749
18750
18751
18752
18753
18754 gl_cv_c_multiarch=no
18755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18756 /* end confdefs.h. */
18757 #ifndef __APPLE_CC__
18758 not a universal capable compiler
18759 #endif
18760 typedef int dummy;
18761
18762 _ACEOF
18763 if ac_fn_c_try_compile "$LINENO"; then :
18764
18765 arch=
18766 prev=
18767 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18768 if test -n "$prev"; then
18769 case $word in
18770 i?86 | x86_64 | ppc | ppc64)
18771 if test -z "$arch" || test "$arch" = "$word"; then
18772 arch="$word"
18773 else
18774 gl_cv_c_multiarch=yes
18775 fi
18776 ;;
18777 esac
18778 prev=
18779 else
18780 if test "x$word" = "x-arch"; then
18781 prev=arch
18782 fi
18783 fi
18784 done
18785
18786 fi
18787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18788 if test $gl_cv_c_multiarch = yes; then
18789 APPLE_UNIVERSAL_BUILD=1
18790 else
18791 APPLE_UNIVERSAL_BUILD=0
18792 fi
18793
18794
18795
18796
18797
18798 if test $ac_cv_type_long_long_int = yes; then
18799 HAVE_LONG_LONG_INT=1
18800 else
18801 HAVE_LONG_LONG_INT=0
18802 fi
18803
18804
18805 if test $ac_cv_type_unsigned_long_long_int = yes; then
18806 HAVE_UNSIGNED_LONG_LONG_INT=1
18807 else
18808 HAVE_UNSIGNED_LONG_LONG_INT=0
18809 fi
18810
18811
18812
18813 if test $ac_cv_header_wchar_h = yes; then
18814 HAVE_WCHAR_H=1
18815 else
18816 HAVE_WCHAR_H=0
18817 fi
18818
18819
18820 if test $ac_cv_header_inttypes_h = yes; then
18821 HAVE_INTTYPES_H=1
18822 else
18823 HAVE_INTTYPES_H=0
18824 fi
18825
18826
18827 if test $ac_cv_header_sys_types_h = yes; then
18828 HAVE_SYS_TYPES_H=1
18829 else
18830 HAVE_SYS_TYPES_H=0
18831 fi
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843 if test $gl_cv_have_include_next = yes; then
18844 gl_cv_next_stdint_h='<'stdint.h'>'
18845 else
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18847 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18848 if test "${gl_cv_next_stdint_h+set}" = set; then :
18849 $as_echo_n "(cached) " >&6
18850 else
18851
18852 if test $ac_cv_header_stdint_h = yes; then
18853
18854
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857 #include <stdint.h>
18858
18859 _ACEOF
18860 case "$host_os" in
18861 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18862 *) gl_absname_cpp="$ac_cpp" ;;
18863 esac
18864
18865 case "$host_os" in
18866 mingw*)
18867 gl_dirsep_regex='[/\\]'
18868 ;;
18869 *)
18870 gl_dirsep_regex='\/'
18871 ;;
18872 esac
18873 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18874
18875 gl_header_literal_regex=`echo 'stdint.h' \
18876 | sed -e "$gl_make_literal_regex_sed"`
18877 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18878 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18879 s|^/[^/]|//&|
18880 p
18881 q
18882 }'
18883 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18884 sed -n "$gl_absolute_header_sed"`'"'
18885 else
18886 gl_cv_next_stdint_h='<'stdint.h'>'
18887 fi
18888
18889
18890 fi
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18892 $as_echo "$gl_cv_next_stdint_h" >&6; }
18893 fi
18894 NEXT_STDINT_H=$gl_cv_next_stdint_h
18895
18896 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18897 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18898 gl_next_as_first_directive='<'stdint.h'>'
18899 else
18900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18901 gl_next_as_first_directive=$gl_cv_next_stdint_h
18902 fi
18903 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18904
18905
18906
18907
18908 if test $ac_cv_header_stdint_h = yes; then
18909 HAVE_STDINT_H=1
18910 else
18911 HAVE_STDINT_H=0
18912 fi
18913
18914
18915 if test $ac_cv_header_stdint_h = yes; then
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18917 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18918 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18919 $as_echo_n "(cached) " >&6
18920 else
18921 gl_cv_header_working_stdint_h=no
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18924
18925
18926 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18927 #include <stdint.h>
18928 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18929 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18930 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18931 #endif
18932
18933
18934 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18935 included before <wchar.h>. */
18936 #include <stddef.h>
18937 #include <signal.h>
18938 #if HAVE_WCHAR_H
18939 # include <stdio.h>
18940 # include <time.h>
18941 # include <wchar.h>
18942 #endif
18943
18944
18945 #ifdef INT8_MAX
18946 int8_t a1 = INT8_MAX;
18947 int8_t a1min = INT8_MIN;
18948 #endif
18949 #ifdef INT16_MAX
18950 int16_t a2 = INT16_MAX;
18951 int16_t a2min = INT16_MIN;
18952 #endif
18953 #ifdef INT32_MAX
18954 int32_t a3 = INT32_MAX;
18955 int32_t a3min = INT32_MIN;
18956 #endif
18957 #ifdef INT64_MAX
18958 int64_t a4 = INT64_MAX;
18959 int64_t a4min = INT64_MIN;
18960 #endif
18961 #ifdef UINT8_MAX
18962 uint8_t b1 = UINT8_MAX;
18963 #else
18964 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18965 #endif
18966 #ifdef UINT16_MAX
18967 uint16_t b2 = UINT16_MAX;
18968 #endif
18969 #ifdef UINT32_MAX
18970 uint32_t b3 = UINT32_MAX;
18971 #endif
18972 #ifdef UINT64_MAX
18973 uint64_t b4 = UINT64_MAX;
18974 #endif
18975 int_least8_t c1 = INT8_C (0x7f);
18976 int_least8_t c1max = INT_LEAST8_MAX;
18977 int_least8_t c1min = INT_LEAST8_MIN;
18978 int_least16_t c2 = INT16_C (0x7fff);
18979 int_least16_t c2max = INT_LEAST16_MAX;
18980 int_least16_t c2min = INT_LEAST16_MIN;
18981 int_least32_t c3 = INT32_C (0x7fffffff);
18982 int_least32_t c3max = INT_LEAST32_MAX;
18983 int_least32_t c3min = INT_LEAST32_MIN;
18984 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18985 int_least64_t c4max = INT_LEAST64_MAX;
18986 int_least64_t c4min = INT_LEAST64_MIN;
18987 uint_least8_t d1 = UINT8_C (0xff);
18988 uint_least8_t d1max = UINT_LEAST8_MAX;
18989 uint_least16_t d2 = UINT16_C (0xffff);
18990 uint_least16_t d2max = UINT_LEAST16_MAX;
18991 uint_least32_t d3 = UINT32_C (0xffffffff);
18992 uint_least32_t d3max = UINT_LEAST32_MAX;
18993 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18994 uint_least64_t d4max = UINT_LEAST64_MAX;
18995 int_fast8_t e1 = INT_FAST8_MAX;
18996 int_fast8_t e1min = INT_FAST8_MIN;
18997 int_fast16_t e2 = INT_FAST16_MAX;
18998 int_fast16_t e2min = INT_FAST16_MIN;
18999 int_fast32_t e3 = INT_FAST32_MAX;
19000 int_fast32_t e3min = INT_FAST32_MIN;
19001 int_fast64_t e4 = INT_FAST64_MAX;
19002 int_fast64_t e4min = INT_FAST64_MIN;
19003 uint_fast8_t f1 = UINT_FAST8_MAX;
19004 uint_fast16_t f2 = UINT_FAST16_MAX;
19005 uint_fast32_t f3 = UINT_FAST32_MAX;
19006 uint_fast64_t f4 = UINT_FAST64_MAX;
19007 #ifdef INTPTR_MAX
19008 intptr_t g = INTPTR_MAX;
19009 intptr_t gmin = INTPTR_MIN;
19010 #endif
19011 #ifdef UINTPTR_MAX
19012 uintptr_t h = UINTPTR_MAX;
19013 #endif
19014 intmax_t i = INTMAX_MAX;
19015 uintmax_t j = UINTMAX_MAX;
19016
19017 #include <limits.h> /* for CHAR_BIT */
19018 #define TYPE_MINIMUM(t) \
19019 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19020 #define TYPE_MAXIMUM(t) \
19021 ((t) ((t) 0 < (t) -1 \
19022 ? (t) -1 \
19023 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19024 struct s {
19025 int check_PTRDIFF:
19026 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19027 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19028 ? 1 : -1;
19029 /* Detect bug in FreeBSD 6.0 / ia64. */
19030 int check_SIG_ATOMIC:
19031 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19032 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19033 ? 1 : -1;
19034 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19035 int check_WCHAR:
19036 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19037 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19038 ? 1 : -1;
19039 /* Detect bug in mingw. */
19040 int check_WINT:
19041 WINT_MIN == TYPE_MINIMUM (wint_t)
19042 && WINT_MAX == TYPE_MAXIMUM (wint_t)
19043 ? 1 : -1;
19044
19045 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
19046 int check_UINT8_C:
19047 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19048 int check_UINT16_C:
19049 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19050
19051 /* Detect bugs in OpenBSD 3.9 stdint.h. */
19052 #ifdef UINT8_MAX
19053 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19054 #endif
19055 #ifdef UINT16_MAX
19056 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19057 #endif
19058 #ifdef UINT32_MAX
19059 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19060 #endif
19061 #ifdef UINT64_MAX
19062 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19063 #endif
19064 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19065 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19066 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19067 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19068 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19069 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19070 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19071 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19072 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19073 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19074 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
19075 };
19076
19077 int
19078 main ()
19079 {
19080
19081 ;
19082 return 0;
19083 }
19084 _ACEOF
19085 if ac_fn_c_try_compile "$LINENO"; then :
19086 if test "$cross_compiling" = yes; then :
19087 gl_cv_header_working_stdint_h=yes
19088
19089 else
19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h. */
19092
19093
19094 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19095 #include <stdint.h>
19096
19097
19098 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19099 included before <wchar.h>. */
19100 #include <stddef.h>
19101 #include <signal.h>
19102 #if HAVE_WCHAR_H
19103 # include <stdio.h>
19104 # include <time.h>
19105 # include <wchar.h>
19106 #endif
19107
19108
19109 #include <stdio.h>
19110 #include <string.h>
19111 #define MVAL(macro) MVAL1(macro)
19112 #define MVAL1(expression) #expression
19113 static const char *macro_values[] =
19114 {
19115 #ifdef INT8_MAX
19116 MVAL (INT8_MAX),
19117 #endif
19118 #ifdef INT16_MAX
19119 MVAL (INT16_MAX),
19120 #endif
19121 #ifdef INT32_MAX
19122 MVAL (INT32_MAX),
19123 #endif
19124 #ifdef INT64_MAX
19125 MVAL (INT64_MAX),
19126 #endif
19127 #ifdef UINT8_MAX
19128 MVAL (UINT8_MAX),
19129 #endif
19130 #ifdef UINT16_MAX
19131 MVAL (UINT16_MAX),
19132 #endif
19133 #ifdef UINT32_MAX
19134 MVAL (UINT32_MAX),
19135 #endif
19136 #ifdef UINT64_MAX
19137 MVAL (UINT64_MAX),
19138 #endif
19139 NULL
19140 };
19141
19142 int
19143 main ()
19144 {
19145
19146 const char **mv;
19147 for (mv = macro_values; *mv != NULL; mv++)
19148 {
19149 const char *value = *mv;
19150 /* Test whether it looks like a cast expression. */
19151 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
19152 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
19153 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19154 || strncmp (value, "((int)"/*)*/, 6) == 0
19155 || strncmp (value, "((signed short)"/*)*/, 15) == 0
19156 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19157 return mv - macro_values + 1;
19158 }
19159 return 0;
19160
19161 ;
19162 return 0;
19163 }
19164 _ACEOF
19165 if ac_fn_c_try_run "$LINENO"; then :
19166 gl_cv_header_working_stdint_h=yes
19167 fi
19168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19169 conftest.$ac_objext conftest.beam conftest.$ac_ext
19170 fi
19171
19172
19173 fi
19174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19175
19176 fi
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19178 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19179 fi
19180 if test "$gl_cv_header_working_stdint_h" = yes; then
19181 STDINT_H=
19182 else
19183 for ac_header in sys/inttypes.h sys/bitypes.h
19184 do :
19185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19186 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19187 eval as_val=\$$as_ac_Header
19188 if test "x$as_val" = x""yes; then :
19189 cat >>confdefs.h <<_ACEOF
19190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19191 _ACEOF
19192
19193 fi
19194
19195 done
19196
19197 if test $ac_cv_header_sys_inttypes_h = yes; then
19198 HAVE_SYS_INTTYPES_H=1
19199 else
19200 HAVE_SYS_INTTYPES_H=0
19201 fi
19202
19203 if test $ac_cv_header_sys_bitypes_h = yes; then
19204 HAVE_SYS_BITYPES_H=1
19205 else
19206 HAVE_SYS_BITYPES_H=0
19207 fi
19208
19209
19210
19211
19212 if test $APPLE_UNIVERSAL_BUILD = 0; then
19213
19214
19215 for gltype in ptrdiff_t size_t ; do
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19217 $as_echo_n "checking for bit size of $gltype... " >&6; }
19218 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19219 $as_echo_n "(cached) " >&6
19220 else
19221 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19222 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19223 included before <wchar.h>. */
19224 #include <stddef.h>
19225 #include <signal.h>
19226 #if HAVE_WCHAR_H
19227 # include <stdio.h>
19228 # include <time.h>
19229 # include <wchar.h>
19230 #endif
19231
19232 #include <limits.h>"; then :
19233
19234 else
19235 result=unknown
19236 fi
19237
19238 eval gl_cv_bitsizeof_${gltype}=\$result
19239
19240 fi
19241 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19243 $as_echo "$ac_res" >&6; }
19244 eval result=\$gl_cv_bitsizeof_${gltype}
19245 if test $result = unknown; then
19246 result=0
19247 fi
19248 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19249 cat >>confdefs.h <<_ACEOF
19250 #define BITSIZEOF_${GLTYPE} $result
19251 _ACEOF
19252
19253 eval BITSIZEOF_${GLTYPE}=\$result
19254 done
19255
19256
19257 fi
19258
19259
19260 for gltype in sig_atomic_t wchar_t wint_t ; do
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19262 $as_echo_n "checking for bit size of $gltype... " >&6; }
19263 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19264 $as_echo_n "(cached) " >&6
19265 else
19266 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19267 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19268 included before <wchar.h>. */
19269 #include <stddef.h>
19270 #include <signal.h>
19271 #if HAVE_WCHAR_H
19272 # include <stdio.h>
19273 # include <time.h>
19274 # include <wchar.h>
19275 #endif
19276
19277 #include <limits.h>"; then :
19278
19279 else
19280 result=unknown
19281 fi
19282
19283 eval gl_cv_bitsizeof_${gltype}=\$result
19284
19285 fi
19286 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19288 $as_echo "$ac_res" >&6; }
19289 eval result=\$gl_cv_bitsizeof_${gltype}
19290 if test $result = unknown; then
19291 result=0
19292 fi
19293 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19294 cat >>confdefs.h <<_ACEOF
19295 #define BITSIZEOF_${GLTYPE} $result
19296 _ACEOF
19297
19298 eval BITSIZEOF_${GLTYPE}=\$result
19299 done
19300
19301
19302
19303
19304 for gltype in sig_atomic_t wchar_t wint_t ; do
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19306 $as_echo_n "checking whether $gltype is signed... " >&6; }
19307 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19308 $as_echo_n "(cached) " >&6
19309 else
19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h. */
19312
19313 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19314 included before <wchar.h>. */
19315 #include <stddef.h>
19316 #include <signal.h>
19317 #if HAVE_WCHAR_H
19318 # include <stdio.h>
19319 # include <time.h>
19320 # include <wchar.h>
19321 #endif
19322
19323 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19324 int
19325 main ()
19326 {
19327
19328 ;
19329 return 0;
19330 }
19331 _ACEOF
19332 if ac_fn_c_try_compile "$LINENO"; then :
19333 result=yes
19334 else
19335 result=no
19336 fi
19337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338 eval gl_cv_type_${gltype}_signed=\$result
19339
19340 fi
19341 eval ac_res=\$gl_cv_type_${gltype}_signed
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19343 $as_echo "$ac_res" >&6; }
19344 eval result=\$gl_cv_type_${gltype}_signed
19345 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19346 if test "$result" = yes; then
19347 cat >>confdefs.h <<_ACEOF
19348 #define HAVE_SIGNED_${GLTYPE} 1
19349 _ACEOF
19350
19351 eval HAVE_SIGNED_${GLTYPE}=1
19352 else
19353 eval HAVE_SIGNED_${GLTYPE}=0
19354 fi
19355 done
19356
19357
19358 gl_cv_type_ptrdiff_t_signed=yes
19359 gl_cv_type_size_t_signed=no
19360 if test $APPLE_UNIVERSAL_BUILD = 0; then
19361
19362
19363 for gltype in ptrdiff_t size_t ; do
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19365 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19366 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19367 $as_echo_n "(cached) " >&6
19368 else
19369 eval gl_cv_type_${gltype}_suffix=no
19370 eval result=\$gl_cv_type_${gltype}_signed
19371 if test "$result" = yes; then
19372 glsufu=
19373 else
19374 glsufu=u
19375 fi
19376 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19377 case $glsuf in
19378 '') gltype1='int';;
19379 l) gltype1='long int';;
19380 ll) gltype1='long long int';;
19381 i64) gltype1='__int64';;
19382 u) gltype1='unsigned int';;
19383 ul) gltype1='unsigned long int';;
19384 ull) gltype1='unsigned long long int';;
19385 ui64)gltype1='unsigned __int64';;
19386 esac
19387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19389
19390 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19391 included before <wchar.h>. */
19392 #include <stddef.h>
19393 #include <signal.h>
19394 #if HAVE_WCHAR_H
19395 # include <stdio.h>
19396 # include <time.h>
19397 # include <wchar.h>
19398 #endif
19399
19400 extern $gltype foo;
19401 extern $gltype1 foo;
19402 int
19403 main ()
19404 {
19405
19406 ;
19407 return 0;
19408 }
19409 _ACEOF
19410 if ac_fn_c_try_compile "$LINENO"; then :
19411 eval gl_cv_type_${gltype}_suffix=\$glsuf
19412 fi
19413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 eval result=\$gl_cv_type_${gltype}_suffix
19415 test "$result" != no && break
19416 done
19417 fi
19418 eval ac_res=\$gl_cv_type_${gltype}_suffix
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19420 $as_echo "$ac_res" >&6; }
19421 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19422 eval result=\$gl_cv_type_${gltype}_suffix
19423 test "$result" = no && result=
19424 eval ${GLTYPE}_SUFFIX=\$result
19425 cat >>confdefs.h <<_ACEOF
19426 #define ${GLTYPE}_SUFFIX $result
19427 _ACEOF
19428
19429 done
19430
19431
19432 fi
19433
19434
19435 for gltype in sig_atomic_t wchar_t wint_t ; do
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19437 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19438 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19439 $as_echo_n "(cached) " >&6
19440 else
19441 eval gl_cv_type_${gltype}_suffix=no
19442 eval result=\$gl_cv_type_${gltype}_signed
19443 if test "$result" = yes; then
19444 glsufu=
19445 else
19446 glsufu=u
19447 fi
19448 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19449 case $glsuf in
19450 '') gltype1='int';;
19451 l) gltype1='long int';;
19452 ll) gltype1='long long int';;
19453 i64) gltype1='__int64';;
19454 u) gltype1='unsigned int';;
19455 ul) gltype1='unsigned long int';;
19456 ull) gltype1='unsigned long long int';;
19457 ui64)gltype1='unsigned __int64';;
19458 esac
19459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19460 /* end confdefs.h. */
19461
19462 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19463 included before <wchar.h>. */
19464 #include <stddef.h>
19465 #include <signal.h>
19466 #if HAVE_WCHAR_H
19467 # include <stdio.h>
19468 # include <time.h>
19469 # include <wchar.h>
19470 #endif
19471
19472 extern $gltype foo;
19473 extern $gltype1 foo;
19474 int
19475 main ()
19476 {
19477
19478 ;
19479 return 0;
19480 }
19481 _ACEOF
19482 if ac_fn_c_try_compile "$LINENO"; then :
19483 eval gl_cv_type_${gltype}_suffix=\$glsuf
19484 fi
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486 eval result=\$gl_cv_type_${gltype}_suffix
19487 test "$result" != no && break
19488 done
19489 fi
19490 eval ac_res=\$gl_cv_type_${gltype}_suffix
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19492 $as_echo "$ac_res" >&6; }
19493 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19494 eval result=\$gl_cv_type_${gltype}_suffix
19495 test "$result" = no && result=
19496 eval ${GLTYPE}_SUFFIX=\$result
19497 cat >>confdefs.h <<_ACEOF
19498 #define ${GLTYPE}_SUFFIX $result
19499 _ACEOF
19500
19501 done
19502
19503
19504
19505 if test $BITSIZEOF_WINT_T -lt 32; then
19506 BITSIZEOF_WINT_T=32
19507 fi
19508
19509 STDINT_H=stdint.h
19510 fi
19511
19512 if test -n "$STDINT_H"; then
19513 GL_GENERATE_STDINT_H_TRUE=
19514 GL_GENERATE_STDINT_H_FALSE='#'
19515 else
19516 GL_GENERATE_STDINT_H_TRUE='#'
19517 GL_GENERATE_STDINT_H_FALSE=
19518 fi
19519
19520
19521
19522
19523
19524 GNULIB_IMAXABS=0;
19525 GNULIB_IMAXDIV=0;
19526 GNULIB_STRTOIMAX=0;
19527 GNULIB_STRTOUMAX=0;
19528 HAVE_DECL_IMAXABS=1;
19529 HAVE_DECL_IMAXDIV=1;
19530 HAVE_DECL_STRTOIMAX=1;
19531 HAVE_DECL_STRTOUMAX=1;
19532 REPLACE_STRTOIMAX=0;
19533 INT32_MAX_LT_INTMAX_MAX=1;
19534 INT64_MAX_EQ_LONG_MAX='defined _LP64';
19535 PRI_MACROS_BROKEN=0;
19536 PRIPTR_PREFIX=__PRIPTR_PREFIX;
19537 UINT32_MAX_LT_UINTMAX_MAX=1;
19538 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554 if test $gl_cv_have_include_next = yes; then
19555 gl_cv_next_inttypes_h='<'inttypes.h'>'
19556 else
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19558 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19559 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19560 $as_echo_n "(cached) " >&6
19561 else
19562
19563 if test $ac_cv_header_inttypes_h = yes; then
19564
19565
19566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19567 /* end confdefs.h. */
19568 #include <inttypes.h>
19569
19570 _ACEOF
19571 case "$host_os" in
19572 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19573 *) gl_absname_cpp="$ac_cpp" ;;
19574 esac
19575
19576 case "$host_os" in
19577 mingw*)
19578 gl_dirsep_regex='[/\\]'
19579 ;;
19580 *)
19581 gl_dirsep_regex='\/'
19582 ;;
19583 esac
19584 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19585
19586 gl_header_literal_regex=`echo 'inttypes.h' \
19587 | sed -e "$gl_make_literal_regex_sed"`
19588 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19589 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19590 s|^/[^/]|//&|
19591 p
19592 q
19593 }'
19594 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19595 sed -n "$gl_absolute_header_sed"`'"'
19596 else
19597 gl_cv_next_inttypes_h='<'inttypes.h'>'
19598 fi
19599
19600
19601 fi
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19603 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19604 fi
19605 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19606
19607 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19609 gl_next_as_first_directive='<'inttypes.h'>'
19610 else
19611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19612 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19613 fi
19614 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626 case "$host_os" in
19627 mingw*)
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19629 $as_echo_n "checking for 64-bit off_t... " >&6; }
19630 if test "${gl_cv_type_off_t_64+set}" = set; then :
19631 $as_echo_n "(cached) " >&6
19632 else
19633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19634 /* end confdefs.h. */
19635 #include <sys/types.h>
19636 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19637
19638 int
19639 main ()
19640 {
19641
19642 ;
19643 return 0;
19644 }
19645 _ACEOF
19646 if ac_fn_c_try_compile "$LINENO"; then :
19647 gl_cv_type_off_t_64=yes
19648 else
19649 gl_cv_type_off_t_64=no
19650 fi
19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19652
19653 fi
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19655 $as_echo "$gl_cv_type_off_t_64" >&6; }
19656 if test $gl_cv_type_off_t_64 = no; then
19657 WINDOWS_64_BIT_OFF_T=1
19658 else
19659 WINDOWS_64_BIT_OFF_T=0
19660 fi
19661 WINDOWS_64_BIT_ST_SIZE=1
19662 ;;
19663 *)
19664 WINDOWS_64_BIT_OFF_T=0
19665 WINDOWS_64_BIT_ST_SIZE=0
19666 ;;
19667 esac
19668
19669
19670
19671
19672 GNULIB_FFSL=0;
19673 GNULIB_FFSLL=0;
19674 GNULIB_MEMCHR=0;
19675 GNULIB_MEMMEM=0;
19676 GNULIB_MEMPCPY=0;
19677 GNULIB_MEMRCHR=0;
19678 GNULIB_RAWMEMCHR=0;
19679 GNULIB_STPCPY=0;
19680 GNULIB_STPNCPY=0;
19681 GNULIB_STRCHRNUL=0;
19682 GNULIB_STRDUP=0;
19683 GNULIB_STRNCAT=0;
19684 GNULIB_STRNDUP=0;
19685 GNULIB_STRNLEN=0;
19686 GNULIB_STRPBRK=0;
19687 GNULIB_STRSEP=0;
19688 GNULIB_STRSTR=0;
19689 GNULIB_STRCASESTR=0;
19690 GNULIB_STRTOK_R=0;
19691 GNULIB_MBSLEN=0;
19692 GNULIB_MBSNLEN=0;
19693 GNULIB_MBSCHR=0;
19694 GNULIB_MBSRCHR=0;
19695 GNULIB_MBSSTR=0;
19696 GNULIB_MBSCASECMP=0;
19697 GNULIB_MBSNCASECMP=0;
19698 GNULIB_MBSPCASECMP=0;
19699 GNULIB_MBSCASESTR=0;
19700 GNULIB_MBSCSPN=0;
19701 GNULIB_MBSPBRK=0;
19702 GNULIB_MBSSPN=0;
19703 GNULIB_MBSSEP=0;
19704 GNULIB_MBSTOK_R=0;
19705 GNULIB_STRERROR=0;
19706 GNULIB_STRERROR_R=0;
19707 GNULIB_STRSIGNAL=0;
19708 GNULIB_STRVERSCMP=0;
19709 HAVE_MBSLEN=0;
19710 HAVE_FFSL=1;
19711 HAVE_FFSLL=1;
19712 HAVE_MEMCHR=1;
19713 HAVE_DECL_MEMMEM=1;
19714 HAVE_MEMPCPY=1;
19715 HAVE_DECL_MEMRCHR=1;
19716 HAVE_RAWMEMCHR=1;
19717 HAVE_STPCPY=1;
19718 HAVE_STPNCPY=1;
19719 HAVE_STRCHRNUL=1;
19720 HAVE_DECL_STRDUP=1;
19721 HAVE_DECL_STRNDUP=1;
19722 HAVE_DECL_STRNLEN=1;
19723 HAVE_STRPBRK=1;
19724 HAVE_STRSEP=1;
19725 HAVE_STRCASESTR=1;
19726 HAVE_DECL_STRTOK_R=1;
19727 HAVE_DECL_STRERROR_R=1;
19728 HAVE_DECL_STRSIGNAL=1;
19729 HAVE_STRVERSCMP=1;
19730 REPLACE_MEMCHR=0;
19731 REPLACE_MEMMEM=0;
19732 REPLACE_STPNCPY=0;
19733 REPLACE_STRDUP=0;
19734 REPLACE_STRSTR=0;
19735 REPLACE_STRCASESTR=0;
19736 REPLACE_STRCHRNUL=0;
19737 REPLACE_STRERROR=0;
19738 REPLACE_STRERROR_R=0;
19739 REPLACE_STRNCAT=0;
19740 REPLACE_STRNDUP=0;
19741 REPLACE_STRNLEN=0;
19742 REPLACE_STRSIGNAL=0;
19743 REPLACE_STRTOK_R=0;
19744 UNDEFINE_STRTOK_R=0;
19745
19746 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
19747 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
19748 ac_have_decl=1
19749 else
19750 ac_have_decl=0
19751 fi
19752
19753 cat >>confdefs.h <<_ACEOF
19754 #define HAVE_DECL_MEMRCHR $ac_have_decl
19755 _ACEOF
19756
19757
19758 GNULIB_MKTIME=0;
19759 GNULIB_NANOSLEEP=0;
19760 GNULIB_STRPTIME=0;
19761 GNULIB_TIMEGM=0;
19762 GNULIB_TIME_R=0;
19763 HAVE_DECL_LOCALTIME_R=1;
19764 HAVE_NANOSLEEP=1;
19765 HAVE_STRPTIME=1;
19766 HAVE_TIMEGM=1;
19767 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19768 REPLACE_MKTIME=GNULIB_PORTCHECK;
19769 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19770 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19771
19772 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
19773 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
19774 ac_have_decl=1
19775 else
19776 ac_have_decl=0
19777 fi
19778
19779 cat >>confdefs.h <<_ACEOF
19780 #define HAVE_DECL_ALARM $ac_have_decl
19781 _ACEOF
19782
19783
19784 GNULIB_PSELECT=0;
19785 GNULIB_SELECT=0;
19786 HAVE_PSELECT=1;
19787 REPLACE_PSELECT=0;
19788 REPLACE_SELECT=0;
19789
19790
19791
19792
19793
19794
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19796 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19797 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19798 $as_echo_n "(cached) " >&6
19799 else
19800
19801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h. */
19803 #include <sys/select.h>
19804 int
19805 main ()
19806 {
19807 struct timeval b;
19808 ;
19809 return 0;
19810 }
19811 _ACEOF
19812 if ac_fn_c_try_compile "$LINENO"; then :
19813 gl_cv_header_sys_select_h_selfcontained=yes
19814 else
19815 gl_cv_header_sys_select_h_selfcontained=no
19816 fi
19817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19818 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19820 /* end confdefs.h. */
19821 #include <sys/select.h>
19822 int
19823 main ()
19824 {
19825 int memset; int bzero;
19826 ;
19827 return 0;
19828 }
19829
19830 _ACEOF
19831 if ac_fn_c_try_compile "$LINENO"; then :
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19834 #include <sys/select.h>
19835 int
19836 main ()
19837 {
19838
19839 #undef memset
19840 #define memset nonexistent_memset
19841 extern
19842 #ifdef __cplusplus
19843 "C"
19844 #endif
19845 void *memset (void *, int, unsigned long);
19846 #undef bzero
19847 #define bzero nonexistent_bzero
19848 extern
19849 #ifdef __cplusplus
19850 "C"
19851 #endif
19852 void bzero (void *, unsigned long);
19853 fd_set fds;
19854 FD_ZERO (&fds);
19855
19856 ;
19857 return 0;
19858 }
19859
19860 _ACEOF
19861 if ac_fn_c_try_link "$LINENO"; then :
19862
19863 else
19864 gl_cv_header_sys_select_h_selfcontained=no
19865 fi
19866 rm -f core conftest.err conftest.$ac_objext \
19867 conftest$ac_exeext conftest.$ac_ext
19868
19869 fi
19870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871 fi
19872
19873 fi
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19875 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885 if test $gl_cv_have_include_next = yes; then
19886 gl_cv_next_sys_select_h='<'sys/select.h'>'
19887 else
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19889 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19890 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19891 $as_echo_n "(cached) " >&6
19892 else
19893
19894 if test $ac_cv_header_sys_select_h = yes; then
19895
19896
19897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h. */
19899 #include <sys/select.h>
19900
19901 _ACEOF
19902 case "$host_os" in
19903 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19904 *) gl_absname_cpp="$ac_cpp" ;;
19905 esac
19906
19907 case "$host_os" in
19908 mingw*)
19909 gl_dirsep_regex='[/\\]'
19910 ;;
19911 *)
19912 gl_dirsep_regex='\/'
19913 ;;
19914 esac
19915 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19916
19917 gl_header_literal_regex=`echo 'sys/select.h' \
19918 | sed -e "$gl_make_literal_regex_sed"`
19919 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19920 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19921 s|^/[^/]|//&|
19922 p
19923 q
19924 }'
19925 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19926 sed -n "$gl_absolute_header_sed"`'"'
19927 else
19928 gl_cv_next_sys_select_h='<'sys/select.h'>'
19929 fi
19930
19931
19932 fi
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19934 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19935 fi
19936 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19937
19938 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19940 gl_next_as_first_directive='<'sys/select.h'>'
19941 else
19942 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19943 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19944 fi
19945 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19946
19947
19948
19949
19950 if test $ac_cv_header_sys_select_h = yes; then
19951 HAVE_SYS_SELECT_H=1
19952 else
19953 HAVE_SYS_SELECT_H=0
19954 fi
19955
19956
19957
19958
19959
19960 if test $ac_cv_header_sys_socket_h != yes; then
19961 for ac_header in winsock2.h
19962 do :
19963 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19964 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19965 cat >>confdefs.h <<_ACEOF
19966 #define HAVE_WINSOCK2_H 1
19967 _ACEOF
19968
19969 fi
19970
19971 done
19972
19973 fi
19974 if test "$ac_cv_header_winsock2_h" = yes; then
19975 HAVE_WINSOCK2_H=1
19976 UNISTD_H_HAVE_WINSOCK2_H=1
19977 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19978 else
19979 HAVE_WINSOCK2_H=0
19980 fi
19981
19982
19983
19984
19985
19986
19987
19988
19989 GNULIB_PTHREAD_SIGMASK=0;
19990 GNULIB_RAISE=0;
19991 GNULIB_SIGNAL_H_SIGPIPE=0;
19992 GNULIB_SIGPROCMASK=0;
19993 GNULIB_SIGACTION=0;
19994 HAVE_POSIX_SIGNALBLOCKING=1;
19995 HAVE_PTHREAD_SIGMASK=1;
19996 HAVE_RAISE=1;
19997 HAVE_SIGSET_T=1;
19998 HAVE_SIGINFO_T=1;
19999 HAVE_SIGACTION=1;
20000 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
20001
20002 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
20003
20004 HAVE_SIGHANDLER_T=1;
20005 REPLACE_PTHREAD_SIGMASK=0;
20006 REPLACE_RAISE=0;
20007
20008
20009
20010
20011
20012
20013
20014 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20015 #include <signal.h>
20016 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
20017 #include <sys/types.h>
20018
20019 "
20020 if test "x$ac_cv_type_sigset_t" = x""yes; then :
20021
20022 cat >>confdefs.h <<_ACEOF
20023 #define HAVE_SIGSET_T 1
20024 _ACEOF
20025
20026 gl_cv_type_sigset_t=yes
20027 else
20028 gl_cv_type_sigset_t=no
20029 fi
20030
20031 if test $gl_cv_type_sigset_t != yes; then
20032 HAVE_SIGSET_T=0
20033 fi
20034
20035
20036
20037 if test $ac_cv_header_sys_socket_h = no; then
20038 for ac_header in ws2tcpip.h
20039 do :
20040 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
20041 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
20042 cat >>confdefs.h <<_ACEOF
20043 #define HAVE_WS2TCPIP_H 1
20044 _ACEOF
20045
20046 fi
20047
20048 done
20049
20050 fi
20051
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20053 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20054 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20055 $as_echo_n "(cached) " >&6
20056 else
20057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h. */
20059
20060 #include <stdbool.h>
20061 #ifndef bool
20062 "error: bool is not defined"
20063 #endif
20064 #ifndef false
20065 "error: false is not defined"
20066 #endif
20067 #if false
20068 "error: false is not 0"
20069 #endif
20070 #ifndef true
20071 "error: true is not defined"
20072 #endif
20073 #if true != 1
20074 "error: true is not 1"
20075 #endif
20076 #ifndef __bool_true_false_are_defined
20077 "error: __bool_true_false_are_defined is not defined"
20078 #endif
20079
20080 struct s { _Bool s: 1; _Bool t; } s;
20081
20082 char a[true == 1 ? 1 : -1];
20083 char b[false == 0 ? 1 : -1];
20084 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20085 char d[(bool) 0.5 == true ? 1 : -1];
20086 /* See body of main program for 'e'. */
20087 char f[(_Bool) 0.0 == false ? 1 : -1];
20088 char g[true];
20089 char h[sizeof (_Bool)];
20090 char i[sizeof s.t];
20091 enum { j = false, k = true, l = false * true, m = true * 256 };
20092 /* The following fails for
20093 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20094 _Bool n[m];
20095 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20096 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20097 /* Catch a bug in an HP-UX C compiler. See
20098 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20099 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20100 */
20101 _Bool q = true;
20102 _Bool *pq = &q;
20103
20104 int
20105 main ()
20106 {
20107
20108 bool e = &s;
20109 *pq |= q;
20110 *pq |= ! q;
20111 /* Refer to every declared value, to avoid compiler optimizations. */
20112 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20113 + !m + !n + !o + !p + !q + !pq);
20114
20115 ;
20116 return 0;
20117 }
20118 _ACEOF
20119 if ac_fn_c_try_compile "$LINENO"; then :
20120 ac_cv_header_stdbool_h=yes
20121 else
20122 ac_cv_header_stdbool_h=no
20123 fi
20124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20125 fi
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20127 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20128 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20129 if test "x$ac_cv_type__Bool" = x""yes; then :
20130
20131 cat >>confdefs.h <<_ACEOF
20132 #define HAVE__BOOL 1
20133 _ACEOF
20134
20135
20136 fi
20137
20138
20139
20140 REPLACE_NULL=0;
20141 HAVE_WCHAR_T=1;
20142
20143
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20145 $as_echo_n "checking for wchar_t... " >&6; }
20146 if test "${gt_cv_c_wchar_t+set}" = set; then :
20147 $as_echo_n "(cached) " >&6
20148 else
20149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20150 /* end confdefs.h. */
20151 #include <stddef.h>
20152 wchar_t foo = (wchar_t)'\0';
20153 int
20154 main ()
20155 {
20156
20157 ;
20158 return 0;
20159 }
20160 _ACEOF
20161 if ac_fn_c_try_compile "$LINENO"; then :
20162 gt_cv_c_wchar_t=yes
20163 else
20164 gt_cv_c_wchar_t=no
20165 fi
20166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167 fi
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20169 $as_echo "$gt_cv_c_wchar_t" >&6; }
20170 if test $gt_cv_c_wchar_t = yes; then
20171
20172 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20173
20174 fi
20175
20176
20177 GNULIB_DPRINTF=0;
20178 GNULIB_FCLOSE=0;
20179 GNULIB_FDOPEN=0;
20180 GNULIB_FFLUSH=0;
20181 GNULIB_FGETC=0;
20182 GNULIB_FGETS=0;
20183 GNULIB_FOPEN=0;
20184 GNULIB_FPRINTF=0;
20185 GNULIB_FPRINTF_POSIX=0;
20186 GNULIB_FPURGE=0;
20187 GNULIB_FPUTC=0;
20188 GNULIB_FPUTS=0;
20189 GNULIB_FREAD=0;
20190 GNULIB_FREOPEN=0;
20191 GNULIB_FSCANF=0;
20192 GNULIB_FSEEK=0;
20193 GNULIB_FSEEKO=0;
20194 GNULIB_FTELL=0;
20195 GNULIB_FTELLO=0;
20196 GNULIB_FWRITE=0;
20197 GNULIB_GETC=0;
20198 GNULIB_GETCHAR=0;
20199 GNULIB_GETDELIM=0;
20200 GNULIB_GETLINE=0;
20201 GNULIB_OBSTACK_PRINTF=0;
20202 GNULIB_OBSTACK_PRINTF_POSIX=0;
20203 GNULIB_PCLOSE=0;
20204 GNULIB_PERROR=0;
20205 GNULIB_POPEN=0;
20206 GNULIB_PRINTF=0;
20207 GNULIB_PRINTF_POSIX=0;
20208 GNULIB_PUTC=0;
20209 GNULIB_PUTCHAR=0;
20210 GNULIB_PUTS=0;
20211 GNULIB_REMOVE=0;
20212 GNULIB_RENAME=0;
20213 GNULIB_RENAMEAT=0;
20214 GNULIB_SCANF=0;
20215 GNULIB_SNPRINTF=0;
20216 GNULIB_SPRINTF_POSIX=0;
20217 GNULIB_STDIO_H_NONBLOCKING=0;
20218 GNULIB_STDIO_H_SIGPIPE=0;
20219 GNULIB_TMPFILE=0;
20220 GNULIB_VASPRINTF=0;
20221 GNULIB_VFSCANF=0;
20222 GNULIB_VSCANF=0;
20223 GNULIB_VDPRINTF=0;
20224 GNULIB_VFPRINTF=0;
20225 GNULIB_VFPRINTF_POSIX=0;
20226 GNULIB_VPRINTF=0;
20227 GNULIB_VPRINTF_POSIX=0;
20228 GNULIB_VSNPRINTF=0;
20229 GNULIB_VSPRINTF_POSIX=0;
20230 HAVE_DECL_FPURGE=1;
20231 HAVE_DECL_FSEEKO=1;
20232 HAVE_DECL_FTELLO=1;
20233 HAVE_DECL_GETDELIM=1;
20234 HAVE_DECL_GETLINE=1;
20235 HAVE_DECL_OBSTACK_PRINTF=1;
20236 HAVE_DECL_SNPRINTF=1;
20237 HAVE_DECL_VSNPRINTF=1;
20238 HAVE_DPRINTF=1;
20239 HAVE_FSEEKO=1;
20240 HAVE_FTELLO=1;
20241 HAVE_PCLOSE=1;
20242 HAVE_POPEN=1;
20243 HAVE_RENAMEAT=1;
20244 HAVE_VASPRINTF=1;
20245 HAVE_VDPRINTF=1;
20246 REPLACE_DPRINTF=0;
20247 REPLACE_FCLOSE=0;
20248 REPLACE_FDOPEN=0;
20249 REPLACE_FFLUSH=0;
20250 REPLACE_FOPEN=0;
20251 REPLACE_FPRINTF=0;
20252 REPLACE_FPURGE=0;
20253 REPLACE_FREOPEN=0;
20254 REPLACE_FSEEK=0;
20255 REPLACE_FSEEKO=0;
20256 REPLACE_FTELL=0;
20257 REPLACE_FTELLO=0;
20258 REPLACE_GETDELIM=0;
20259 REPLACE_GETLINE=0;
20260 REPLACE_OBSTACK_PRINTF=0;
20261 REPLACE_PERROR=0;
20262 REPLACE_POPEN=0;
20263 REPLACE_PRINTF=0;
20264 REPLACE_REMOVE=0;
20265 REPLACE_RENAME=0;
20266 REPLACE_RENAMEAT=0;
20267 REPLACE_SNPRINTF=0;
20268 REPLACE_SPRINTF=0;
20269 REPLACE_STDIO_READ_FUNCS=0;
20270 REPLACE_STDIO_WRITE_FUNCS=0;
20271 REPLACE_TMPFILE=0;
20272 REPLACE_VASPRINTF=0;
20273 REPLACE_VDPRINTF=0;
20274 REPLACE_VFPRINTF=0;
20275 REPLACE_VPRINTF=0;
20276 REPLACE_VSNPRINTF=0;
20277 REPLACE_VSPRINTF=0;
20278
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20280 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20281 if test "${ac_cv_struct_tm+set}" = set; then :
20282 $as_echo_n "(cached) " >&6
20283 else
20284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20285 /* end confdefs.h. */
20286 #include <sys/types.h>
20287 #include <time.h>
20288
20289 int
20290 main ()
20291 {
20292 struct tm tm;
20293 int *p = &tm.tm_sec;
20294 return !p;
20295 ;
20296 return 0;
20297 }
20298 _ACEOF
20299 if ac_fn_c_try_compile "$LINENO"; then :
20300 ac_cv_struct_tm=time.h
20301 else
20302 ac_cv_struct_tm=sys/time.h
20303 fi
20304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20305 fi
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20307 $as_echo "$ac_cv_struct_tm" >&6; }
20308 if test $ac_cv_struct_tm = sys/time.h; then
20309
20310 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20311
20312 fi
20313
20314 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20315 #include <$ac_cv_struct_tm>
20316
20317 "
20318 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20319
20320 cat >>confdefs.h <<_ACEOF
20321 #define HAVE_STRUCT_TM_TM_ZONE 1
20322 _ACEOF
20323
20324
20325 fi
20326
20327 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20328
20329 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20330
20331 else
20332 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20333 "
20334 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
20335 ac_have_decl=1
20336 else
20337 ac_have_decl=0
20338 fi
20339
20340 cat >>confdefs.h <<_ACEOF
20341 #define HAVE_DECL_TZNAME $ac_have_decl
20342 _ACEOF
20343
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20345 $as_echo_n "checking for tzname... " >&6; }
20346 if test "${ac_cv_var_tzname+set}" = set; then :
20347 $as_echo_n "(cached) " >&6
20348 else
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351 #include <time.h>
20352 #if !HAVE_DECL_TZNAME
20353 extern char *tzname[];
20354 #endif
20355
20356 int
20357 main ()
20358 {
20359 return tzname[0][0];
20360 ;
20361 return 0;
20362 }
20363 _ACEOF
20364 if ac_fn_c_try_link "$LINENO"; then :
20365 ac_cv_var_tzname=yes
20366 else
20367 ac_cv_var_tzname=no
20368 fi
20369 rm -f core conftest.err conftest.$ac_objext \
20370 conftest$ac_exeext conftest.$ac_ext
20371 fi
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20373 $as_echo "$ac_cv_var_tzname" >&6; }
20374 if test $ac_cv_var_tzname = yes; then
20375
20376 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20377
20378 fi
20379 fi
20380
20381
20382 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20383 "
20384 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
20385
20386 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20387
20388 fi
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402 if test $gl_cv_have_include_next = yes; then
20403 gl_cv_next_string_h='<'string.h'>'
20404 else
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20406 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20407 if test "${gl_cv_next_string_h+set}" = set; then :
20408 $as_echo_n "(cached) " >&6
20409 else
20410
20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h. */
20413 #include <string.h>
20414
20415 _ACEOF
20416 case "$host_os" in
20417 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20418 *) gl_absname_cpp="$ac_cpp" ;;
20419 esac
20420
20421 case "$host_os" in
20422 mingw*)
20423 gl_dirsep_regex='[/\\]'
20424 ;;
20425 *)
20426 gl_dirsep_regex='\/'
20427 ;;
20428 esac
20429 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20430
20431 gl_header_literal_regex=`echo 'string.h' \
20432 | sed -e "$gl_make_literal_regex_sed"`
20433 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20434 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20435 s|^/[^/]|//&|
20436 p
20437 q
20438 }'
20439 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20440 sed -n "$gl_absolute_header_sed"`'"'
20441
20442
20443 fi
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20445 $as_echo "$gl_cv_next_string_h" >&6; }
20446 fi
20447 NEXT_STRING_H=$gl_cv_next_string_h
20448
20449 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20450 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20451 gl_next_as_first_directive='<'string.h'>'
20452 else
20453 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20454 gl_next_as_first_directive=$gl_cv_next_string_h
20455 fi
20456 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20467 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
20468 ac_have_decl=1
20469 else
20470 ac_have_decl=0
20471 fi
20472
20473 cat >>confdefs.h <<_ACEOF
20474 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20475 _ACEOF
20476
20477
20478
20479 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20480 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
20481 ac_have_decl=1
20482 else
20483 ac_have_decl=0
20484 fi
20485
20486 cat >>confdefs.h <<_ACEOF
20487 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20488 _ACEOF
20489
20490
20491
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20493 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20494 if test "${ac_cv_header_stat_broken+set}" = set; then :
20495 $as_echo_n "(cached) " >&6
20496 else
20497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20499 #include <sys/types.h>
20500 #include <sys/stat.h>
20501
20502 #if defined S_ISBLK && defined S_IFDIR
20503 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20504 #endif
20505
20506 #if defined S_ISBLK && defined S_IFCHR
20507 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20508 #endif
20509
20510 #if defined S_ISLNK && defined S_IFREG
20511 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20512 #endif
20513
20514 #if defined S_ISSOCK && defined S_IFREG
20515 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20516 #endif
20517
20518 _ACEOF
20519 if ac_fn_c_try_compile "$LINENO"; then :
20520 ac_cv_header_stat_broken=no
20521 else
20522 ac_cv_header_stat_broken=yes
20523 fi
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20527 $as_echo "$ac_cv_header_stat_broken" >&6; }
20528 if test $ac_cv_header_stat_broken = yes; then
20529
20530 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20531
20532 fi
20533
20534
20535
20536
20537
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20539 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20540 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20541 $as_echo_n "(cached) " >&6
20542 else
20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20545 #include <time.h>
20546
20547 int
20548 main ()
20549 {
20550 static struct timespec x; x.tv_sec = x.tv_nsec;
20551 ;
20552 return 0;
20553 }
20554 _ACEOF
20555 if ac_fn_c_try_compile "$LINENO"; then :
20556 gl_cv_sys_struct_timespec_in_time_h=yes
20557 else
20558 gl_cv_sys_struct_timespec_in_time_h=no
20559 fi
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561 fi
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20563 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20564
20565 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20566 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20567 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20568 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20569 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20570 else
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20572 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20573 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20574 $as_echo_n "(cached) " >&6
20575 else
20576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h. */
20578 #include <sys/time.h>
20579
20580 int
20581 main ()
20582 {
20583 static struct timespec x; x.tv_sec = x.tv_nsec;
20584 ;
20585 return 0;
20586 }
20587 _ACEOF
20588 if ac_fn_c_try_compile "$LINENO"; then :
20589 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20590 else
20591 gl_cv_sys_struct_timespec_in_sys_time_h=no
20592 fi
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 fi
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20596 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20597 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20598 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20599 else
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20601 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20602 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20603 $as_echo_n "(cached) " >&6
20604 else
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20607 #include <pthread.h>
20608
20609 int
20610 main ()
20611 {
20612 static struct timespec x; x.tv_sec = x.tv_nsec;
20613 ;
20614 return 0;
20615 }
20616 _ACEOF
20617 if ac_fn_c_try_compile "$LINENO"; then :
20618 gl_cv_sys_struct_timespec_in_pthread_h=yes
20619 else
20620 gl_cv_sys_struct_timespec_in_pthread_h=no
20621 fi
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 fi
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20625 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20626 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20627 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20628 fi
20629 fi
20630 fi
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646 if test $gl_cv_have_include_next = yes; then
20647 gl_cv_next_time_h='<'time.h'>'
20648 else
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20650 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20651 if test "${gl_cv_next_time_h+set}" = set; then :
20652 $as_echo_n "(cached) " >&6
20653 else
20654
20655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20656 /* end confdefs.h. */
20657 #include <time.h>
20658
20659 _ACEOF
20660 case "$host_os" in
20661 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20662 *) gl_absname_cpp="$ac_cpp" ;;
20663 esac
20664
20665 case "$host_os" in
20666 mingw*)
20667 gl_dirsep_regex='[/\\]'
20668 ;;
20669 *)
20670 gl_dirsep_regex='\/'
20671 ;;
20672 esac
20673 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20674
20675 gl_header_literal_regex=`echo 'time.h' \
20676 | sed -e "$gl_make_literal_regex_sed"`
20677 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20678 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20679 s|^/[^/]|//&|
20680 p
20681 q
20682 }'
20683 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20684 sed -n "$gl_absolute_header_sed"`'"'
20685
20686
20687 fi
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20689 $as_echo "$gl_cv_next_time_h" >&6; }
20690 fi
20691 NEXT_TIME_H=$gl_cv_next_time_h
20692
20693 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20694 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20695 gl_next_as_first_directive='<'time.h'>'
20696 else
20697 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20698 gl_next_as_first_directive=$gl_cv_next_time_h
20699 fi
20700 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20716 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
20717 ac_have_decl=1
20718 else
20719 ac_have_decl=0
20720 fi
20721
20722 cat >>confdefs.h <<_ACEOF
20723 #define HAVE_DECL_UNSETENV $ac_have_decl
20724 _ACEOF
20725
20726
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20728 $as_echo_n "checking whether the utimes function works... " >&6; }
20729 if test "${gl_cv_func_working_utimes+set}" = set; then :
20730 $as_echo_n "(cached) " >&6
20731 else
20732
20733 if test "$cross_compiling" = yes; then :
20734 gl_cv_func_working_utimes=no
20735 else
20736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20737 /* end confdefs.h. */
20738
20739 #include <sys/types.h>
20740 #include <sys/stat.h>
20741 #include <fcntl.h>
20742 #include <sys/time.h>
20743 #include <time.h>
20744 #include <unistd.h>
20745 #include <stdlib.h>
20746 #include <stdio.h>
20747 #include <utime.h>
20748
20749 static int
20750 inorder (time_t a, time_t b, time_t c)
20751 {
20752 return a <= b && b <= c;
20753 }
20754
20755 int
20756 main ()
20757 {
20758 int result = 0;
20759 char const *file = "conftest.utimes";
20760 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20761
20762 /* Test whether utimes() essentially works. */
20763 {
20764 struct stat sbuf;
20765 FILE *f = fopen (file, "w");
20766 if (f == NULL)
20767 result |= 1;
20768 else if (fclose (f) != 0)
20769 result |= 1;
20770 else if (utimes (file, timeval) != 0)
20771 result |= 2;
20772 else if (lstat (file, &sbuf) != 0)
20773 result |= 1;
20774 else if (!(sbuf.st_atime == timeval[0].tv_sec
20775 && sbuf.st_mtime == timeval[1].tv_sec))
20776 result |= 4;
20777 if (unlink (file) != 0)
20778 result |= 1;
20779 }
20780
20781 /* Test whether utimes() with a NULL argument sets the file's timestamp
20782 to the current time. Use 'fstat' as well as 'time' to
20783 determine the "current" time, to accommodate NFS file systems
20784 if there is a time skew between the host and the NFS server. */
20785 {
20786 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20787 if (fd < 0)
20788 result |= 1;
20789 else
20790 {
20791 time_t t0, t2;
20792 struct stat st0, st1, st2;
20793 if (time (&t0) == (time_t) -1)
20794 result |= 1;
20795 else if (fstat (fd, &st0) != 0)
20796 result |= 1;
20797 else if (utimes (file, timeval) != 0)
20798 result |= 2;
20799 else if (utimes (file, NULL) != 0)
20800 result |= 8;
20801 else if (fstat (fd, &st1) != 0)
20802 result |= 1;
20803 else if (write (fd, "\n", 1) != 1)
20804 result |= 1;
20805 else if (fstat (fd, &st2) != 0)
20806 result |= 1;
20807 else if (time (&t2) == (time_t) -1)
20808 result |= 1;
20809 else
20810 {
20811 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20812 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20813 if (! (st1.st_atime == st1.st_mtime))
20814 result |= 16;
20815 if (! (m_ok_POSIX || m_ok_NFS))
20816 result |= 32;
20817 }
20818 if (close (fd) != 0)
20819 result |= 1;
20820 }
20821 if (unlink (file) != 0)
20822 result |= 1;
20823 }
20824
20825 /* Test whether utimes() with a NULL argument works on read-only files. */
20826 {
20827 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20828 if (fd < 0)
20829 result |= 1;
20830 else if (close (fd) != 0)
20831 result |= 1;
20832 else if (utimes (file, NULL) != 0)
20833 result |= 64;
20834 if (unlink (file) != 0)
20835 result |= 1;
20836 }
20837
20838 return result;
20839 }
20840
20841 _ACEOF
20842 if ac_fn_c_try_run "$LINENO"; then :
20843 gl_cv_func_working_utimes=yes
20844 else
20845 gl_cv_func_working_utimes=no
20846 fi
20847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20848 conftest.$ac_objext conftest.beam conftest.$ac_ext
20849 fi
20850
20851 fi
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20853 $as_echo "$gl_cv_func_working_utimes" >&6; }
20854
20855 if test $gl_cv_func_working_utimes = yes; then
20856
20857 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20858
20859 fi
20860
20861
20862
20863
20864
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20866 $as_echo_n "checking for struct utimbuf... " >&6; }
20867 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20868 $as_echo_n "(cached) " >&6
20869 else
20870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20872 #if HAVE_SYS_TIME_H
20873 #include <sys/time.h>
20874 #endif
20875 #include <time.h>
20876 #ifdef HAVE_UTIME_H
20877 #include <utime.h>
20878 #endif
20879
20880 int
20881 main ()
20882 {
20883 static struct utimbuf x; x.actime = x.modtime;
20884 ;
20885 return 0;
20886 }
20887 _ACEOF
20888 if ac_fn_c_try_compile "$LINENO"; then :
20889 gl_cv_sys_struct_utimbuf=yes
20890 else
20891 gl_cv_sys_struct_utimbuf=no
20892 fi
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 fi
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20896 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20897
20898 if test $gl_cv_sys_struct_utimbuf = yes; then
20899
20900 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20901
20902 fi
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20915 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20916 if test "${ac_cv_type_getgroups+set}" = set; then :
20917 $as_echo_n "(cached) " >&6
20918 else
20919 if test "$cross_compiling" = yes; then :
20920 ac_cv_type_getgroups=cross
20921 else
20922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20923 /* end confdefs.h. */
20924 /* Thanks to Mike Rendell for this test. */
20925 $ac_includes_default
20926 #define NGID 256
20927 #undef MAX
20928 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20929
20930 int
20931 main ()
20932 {
20933 gid_t gidset[NGID];
20934 int i, n;
20935 union { gid_t gval; long int lval; } val;
20936
20937 val.lval = -1;
20938 for (i = 0; i < NGID; i++)
20939 gidset[i] = val.gval;
20940 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20941 gidset);
20942 /* Exit non-zero if getgroups seems to require an array of ints. This
20943 happens when gid_t is short int but getgroups modifies an array
20944 of ints. */
20945 return n > 0 && gidset[n] != val.gval;
20946 }
20947 _ACEOF
20948 if ac_fn_c_try_run "$LINENO"; then :
20949 ac_cv_type_getgroups=gid_t
20950 else
20951 ac_cv_type_getgroups=int
20952 fi
20953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20954 conftest.$ac_objext conftest.beam conftest.$ac_ext
20955 fi
20956
20957 if test $ac_cv_type_getgroups = cross; then
20958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20960 #include <unistd.h>
20961
20962 _ACEOF
20963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20964 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20965 ac_cv_type_getgroups=gid_t
20966 else
20967 ac_cv_type_getgroups=int
20968 fi
20969 rm -f conftest*
20970
20971 fi
20972 fi
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20974 $as_echo "$ac_cv_type_getgroups" >&6; }
20975
20976 cat >>confdefs.h <<_ACEOF
20977 #define GETGROUPS_T $ac_cv_type_getgroups
20978 _ACEOF
20979
20980
20981
20982
20983 if false; then
20984 GL_COND_LIBTOOL_TRUE=
20985 GL_COND_LIBTOOL_FALSE='#'
20986 else
20987 GL_COND_LIBTOOL_TRUE='#'
20988 GL_COND_LIBTOOL_FALSE=
20989 fi
20990
20991 gl_cond_libtool=false
20992 gl_libdeps=
20993 gl_ltlibdeps=
20994 gl_m4_base='m4'
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004 gl_source_base='lib'
21005
21006
21007 if test $ac_cv_func_alloca_works = no; then
21008 :
21009 fi
21010
21011 # Define an additional variable used in the Makefile substitution.
21012 if test $ac_cv_working_alloca_h = yes; then
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21014 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21015 if test "${gl_cv_rpl_alloca+set}" = set; then :
21016 $as_echo_n "(cached) " >&6
21017 else
21018
21019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21020 /* end confdefs.h. */
21021
21022 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21023 Need own alloca
21024 #endif
21025
21026 _ACEOF
21027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21028 $EGREP "Need own alloca" >/dev/null 2>&1; then :
21029 gl_cv_rpl_alloca=yes
21030 else
21031 gl_cv_rpl_alloca=no
21032 fi
21033 rm -f conftest*
21034
21035
21036 fi
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21038 $as_echo "$gl_cv_rpl_alloca" >&6; }
21039 if test $gl_cv_rpl_alloca = yes; then
21040
21041 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21042
21043 ALLOCA_H=alloca.h
21044 else
21045 ALLOCA_H=
21046 fi
21047 else
21048 ALLOCA_H=alloca.h
21049 fi
21050
21051 if test -n "$ALLOCA_H"; then
21052 GL_GENERATE_ALLOCA_H_TRUE=
21053 GL_GENERATE_ALLOCA_H_FALSE='#'
21054 else
21055 GL_GENERATE_ALLOCA_H_TRUE='#'
21056 GL_GENERATE_ALLOCA_H_FALSE=
21057 fi
21058
21059
21060
21061
21062
21063
21064 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
21065 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21066
21067 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
21068 # programs in the package would end up linked with that potentially-shared
21069 # library, inducing unnecessary run-time overhead.
21070 LIB_CLOCK_GETTIME=
21071
21072 gl_saved_libs=$LIBS
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21074 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21075 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21076 $as_echo_n "(cached) " >&6
21077 else
21078 ac_func_search_save_LIBS=$LIBS
21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21081
21082 /* Override any GCC internal prototype to avoid an error.
21083 Use char because int might match the return type of a GCC
21084 builtin and then its argument prototype would still apply. */
21085 #ifdef __cplusplus
21086 extern "C"
21087 #endif
21088 char clock_gettime ();
21089 int
21090 main ()
21091 {
21092 return clock_gettime ();
21093 ;
21094 return 0;
21095 }
21096 _ACEOF
21097 for ac_lib in '' rt posix4; do
21098 if test -z "$ac_lib"; then
21099 ac_res="none required"
21100 else
21101 ac_res=-l$ac_lib
21102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21103 fi
21104 if ac_fn_c_try_link "$LINENO"; then :
21105 ac_cv_search_clock_gettime=$ac_res
21106 fi
21107 rm -f core conftest.err conftest.$ac_objext \
21108 conftest$ac_exeext
21109 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21110 break
21111 fi
21112 done
21113 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21114
21115 else
21116 ac_cv_search_clock_gettime=no
21117 fi
21118 rm conftest.$ac_ext
21119 LIBS=$ac_func_search_save_LIBS
21120 fi
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21122 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21123 ac_res=$ac_cv_search_clock_gettime
21124 if test "$ac_res" != no; then :
21125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21126 test "$ac_cv_search_clock_gettime" = "none required" ||
21127 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
21128 fi
21129
21130 for ac_func in clock_gettime clock_settime
21131 do :
21132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21133 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21134 eval as_val=\$$as_ac_var
21135 if test "x$as_val" = x""yes; then :
21136 cat >>confdefs.h <<_ACEOF
21137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21138 _ACEOF
21139
21140 fi
21141 done
21142
21143 LIBS=$gl_saved_libs
21144
21145
21146 :
21147
21148
21149
21150 cat >>confdefs.h <<_ACEOF
21151 #define GNULIB_CLOSE_STREAM 1
21152 _ACEOF
21153
21154
21155
21156
21157 :
21158
21159
21160
21161 :
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181 if test $gl_cv_have_include_next = yes; then
21182 gl_cv_next_dirent_h='<'dirent.h'>'
21183 else
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
21185 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
21186 if test "${gl_cv_next_dirent_h+set}" = set; then :
21187 $as_echo_n "(cached) " >&6
21188 else
21189
21190 if test $ac_cv_header_dirent_h = yes; then
21191
21192
21193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h. */
21195 #include <dirent.h>
21196
21197 _ACEOF
21198 case "$host_os" in
21199 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21200 *) gl_absname_cpp="$ac_cpp" ;;
21201 esac
21202
21203 case "$host_os" in
21204 mingw*)
21205 gl_dirsep_regex='[/\\]'
21206 ;;
21207 *)
21208 gl_dirsep_regex='\/'
21209 ;;
21210 esac
21211 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21212
21213 gl_header_literal_regex=`echo 'dirent.h' \
21214 | sed -e "$gl_make_literal_regex_sed"`
21215 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21216 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21217 s|^/[^/]|//&|
21218 p
21219 q
21220 }'
21221 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21222 sed -n "$gl_absolute_header_sed"`'"'
21223 else
21224 gl_cv_next_dirent_h='<'dirent.h'>'
21225 fi
21226
21227
21228 fi
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
21230 $as_echo "$gl_cv_next_dirent_h" >&6; }
21231 fi
21232 NEXT_DIRENT_H=$gl_cv_next_dirent_h
21233
21234 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21236 gl_next_as_first_directive='<'dirent.h'>'
21237 else
21238 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21239 gl_next_as_first_directive=$gl_cv_next_dirent_h
21240 fi
21241 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
21242
21243
21244
21245
21246 if test $ac_cv_header_dirent_h = yes; then
21247 HAVE_DIRENT_H=1
21248 else
21249 HAVE_DIRENT_H=0
21250 fi
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
21262
21263
21264 if test $HAVE_DUP2 = 1; then
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
21266 $as_echo_n "checking whether dup2 works... " >&6; }
21267 if test "${gl_cv_func_dup2_works+set}" = set; then :
21268 $as_echo_n "(cached) " >&6
21269 else
21270 if test "$cross_compiling" = yes; then :
21271 case "$host_os" in
21272 mingw*) # on this platform, dup2 always returns 0 for success
21273 gl_cv_func_dup2_works="guessing no" ;;
21274 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
21275 gl_cv_func_dup2_works="guessing no" ;;
21276 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
21277 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
21278 gl_cv_func_dup2_works="guessing no" ;;
21279 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
21280 gl_cv_func_dup2_works="guessing no" ;;
21281 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
21282 gl_cv_func_dup2_works="guessing no" ;;
21283 *) gl_cv_func_dup2_works="guessing yes" ;;
21284 esac
21285 else
21286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21287 /* end confdefs.h. */
21288
21289 #include <unistd.h>
21290 #include <fcntl.h>
21291 #include <errno.h>
21292 int
21293 main ()
21294 {
21295 int result = 0;
21296 #ifdef FD_CLOEXEC
21297 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
21298 result |= 1;
21299 #endif
21300 if (dup2 (1, 1) == 0)
21301 result |= 2;
21302 #ifdef FD_CLOEXEC
21303 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
21304 result |= 4;
21305 #endif
21306 close (0);
21307 if (dup2 (0, 0) != -1)
21308 result |= 8;
21309 /* Many gnulib modules require POSIX conformance of EBADF. */
21310 if (dup2 (2, 1000000) == -1 && errno != EBADF)
21311 result |= 16;
21312 /* Flush out a cygwin core dump. */
21313 if (dup2 (2, -1) != -1 || errno != EBADF)
21314 result |= 32;
21315 return result;
21316
21317 ;
21318 return 0;
21319 }
21320
21321 _ACEOF
21322 if ac_fn_c_try_run "$LINENO"; then :
21323 gl_cv_func_dup2_works=yes
21324 else
21325 gl_cv_func_dup2_works=no
21326 fi
21327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21328 conftest.$ac_objext conftest.beam conftest.$ac_ext
21329 fi
21330
21331
21332 fi
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21334 $as_echo "$gl_cv_func_dup2_works" >&6; }
21335 case "$gl_cv_func_dup2_works" in
21336 *yes) ;;
21337 *)
21338 REPLACE_DUP2=1
21339 ;;
21340 esac
21341 fi
21342
21343
21344 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
21345
21346
21347
21348
21349
21350
21351
21352
21353 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
21354
21355
21356 fi
21357
21358
21359
21360
21361
21362 GNULIB_DUP2=1
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374 GNULIB_ENVIRON=1
21375
21376
21377
21378
21379
21380
21381
21382
21383 LIB_EXECINFO=''
21384 EXECINFO_H='execinfo.h'
21385
21386 if test $ac_cv_header_execinfo_h = yes; then
21387 gl_saved_libs=$LIBS
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
21389 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
21390 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21391 $as_echo_n "(cached) " >&6
21392 else
21393 ac_func_search_save_LIBS=$LIBS
21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21396
21397 /* Override any GCC internal prototype to avoid an error.
21398 Use char because int might match the return type of a GCC
21399 builtin and then its argument prototype would still apply. */
21400 #ifdef __cplusplus
21401 extern "C"
21402 #endif
21403 char backtrace_symbols_fd ();
21404 int
21405 main ()
21406 {
21407 return backtrace_symbols_fd ();
21408 ;
21409 return 0;
21410 }
21411 _ACEOF
21412 for ac_lib in '' execinfo; do
21413 if test -z "$ac_lib"; then
21414 ac_res="none required"
21415 else
21416 ac_res=-l$ac_lib
21417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21418 fi
21419 if ac_fn_c_try_link "$LINENO"; then :
21420 ac_cv_search_backtrace_symbols_fd=$ac_res
21421 fi
21422 rm -f core conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext
21424 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21425 break
21426 fi
21427 done
21428 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21429
21430 else
21431 ac_cv_search_backtrace_symbols_fd=no
21432 fi
21433 rm conftest.$ac_ext
21434 LIBS=$ac_func_search_save_LIBS
21435 fi
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21437 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21438 ac_res=$ac_cv_search_backtrace_symbols_fd
21439 if test "$ac_res" != no; then :
21440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21441 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21442 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
21443 fi
21444
21445 LIBS=$gl_saved_libs
21446 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
21447 fi
21448
21449 if test -n "$EXECINFO_H"; then
21450
21451
21452
21453
21454
21455
21456
21457
21458 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
21459
21460 fi
21461
21462
21463
21464 if test -n "$EXECINFO_H"; then
21465 GL_GENERATE_EXECINFO_H_TRUE=
21466 GL_GENERATE_EXECINFO_H_FALSE='#'
21467 else
21468 GL_GENERATE_EXECINFO_H_TRUE='#'
21469 GL_GENERATE_EXECINFO_H_FALSE=
21470 fi
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480 if test $ac_cv_func_faccessat = no; then
21481 HAVE_FACCESSAT=0
21482 fi
21483
21484 if test $HAVE_FACCESSAT = 0; then
21485
21486
21487
21488
21489
21490
21491
21492
21493 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
21494
21495
21496 for ac_func in access
21497 do :
21498 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
21499 if test "x$ac_cv_func_access" = x""yes; then :
21500 cat >>confdefs.h <<_ACEOF
21501 #define HAVE_ACCESS 1
21502 _ACEOF
21503
21504 fi
21505 done
21506
21507
21508 fi
21509
21510
21511 cat >>confdefs.h <<_ACEOF
21512 #define GNULIB_FACCESSAT 1
21513 _ACEOF
21514
21515
21516
21517
21518
21519
21520
21521 GNULIB_FACCESSAT=1
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538 if test $gl_cv_have_include_next = yes; then
21539 gl_cv_next_fcntl_h='<'fcntl.h'>'
21540 else
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21542 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21543 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21544 $as_echo_n "(cached) " >&6
21545 else
21546
21547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21548 /* end confdefs.h. */
21549 #include <fcntl.h>
21550
21551 _ACEOF
21552 case "$host_os" in
21553 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21554 *) gl_absname_cpp="$ac_cpp" ;;
21555 esac
21556
21557 case "$host_os" in
21558 mingw*)
21559 gl_dirsep_regex='[/\\]'
21560 ;;
21561 *)
21562 gl_dirsep_regex='\/'
21563 ;;
21564 esac
21565 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21566
21567 gl_header_literal_regex=`echo 'fcntl.h' \
21568 | sed -e "$gl_make_literal_regex_sed"`
21569 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21570 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21571 s|^/[^/]|//&|
21572 p
21573 q
21574 }'
21575 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21576 sed -n "$gl_absolute_header_sed"`'"'
21577
21578
21579 fi
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21581 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21582 fi
21583 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21584
21585 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21587 gl_next_as_first_directive='<'fcntl.h'>'
21588 else
21589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21590 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21591 fi
21592 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608 LIB_FDATASYNC=
21609
21610
21611 if test $ac_cv_have_decl_fdatasync = no; then
21612 HAVE_DECL_FDATASYNC=0
21613 for ac_func in fdatasync
21614 do :
21615 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
21616 if test "x$ac_cv_func_fdatasync" = x""yes; then :
21617 cat >>confdefs.h <<_ACEOF
21618 #define HAVE_FDATASYNC 1
21619 _ACEOF
21620
21621 fi
21622 done
21623
21624 if test $ac_cv_func_fdatasync = no; then
21625 HAVE_FDATASYNC=0
21626 fi
21627 else
21628 gl_saved_libs=$LIBS
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21630 $as_echo_n "checking for library containing fdatasync... " >&6; }
21631 if test "${ac_cv_search_fdatasync+set}" = set; then :
21632 $as_echo_n "(cached) " >&6
21633 else
21634 ac_func_search_save_LIBS=$LIBS
21635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21636 /* end confdefs.h. */
21637
21638 /* Override any GCC internal prototype to avoid an error.
21639 Use char because int might match the return type of a GCC
21640 builtin and then its argument prototype would still apply. */
21641 #ifdef __cplusplus
21642 extern "C"
21643 #endif
21644 char fdatasync ();
21645 int
21646 main ()
21647 {
21648 return fdatasync ();
21649 ;
21650 return 0;
21651 }
21652 _ACEOF
21653 for ac_lib in '' rt posix4; do
21654 if test -z "$ac_lib"; then
21655 ac_res="none required"
21656 else
21657 ac_res=-l$ac_lib
21658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21659 fi
21660 if ac_fn_c_try_link "$LINENO"; then :
21661 ac_cv_search_fdatasync=$ac_res
21662 fi
21663 rm -f core conftest.err conftest.$ac_objext \
21664 conftest$ac_exeext
21665 if test "${ac_cv_search_fdatasync+set}" = set; then :
21666 break
21667 fi
21668 done
21669 if test "${ac_cv_search_fdatasync+set}" = set; then :
21670
21671 else
21672 ac_cv_search_fdatasync=no
21673 fi
21674 rm conftest.$ac_ext
21675 LIBS=$ac_func_search_save_LIBS
21676 fi
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21678 $as_echo "$ac_cv_search_fdatasync" >&6; }
21679 ac_res=$ac_cv_search_fdatasync
21680 if test "$ac_res" != no; then :
21681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21682 test "$ac_cv_search_fdatasync" = "none required" ||
21683 LIB_FDATASYNC=$ac_cv_search_fdatasync
21684 fi
21685
21686 LIBS=$gl_saved_libs
21687 fi
21688
21689 if test $HAVE_FDATASYNC = 0; then
21690
21691
21692
21693
21694
21695
21696
21697
21698 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
21699
21700 fi
21701
21702
21703
21704
21705
21706 GNULIB_FDATASYNC=1
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21718 #include <dirent.h>
21719
21720 "
21721 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
21722 ac_have_decl=1
21723 else
21724 ac_have_decl=0
21725 fi
21726
21727 cat >>confdefs.h <<_ACEOF
21728 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21729 _ACEOF
21730 if test $ac_have_decl = 1; then :
21731
21732 else
21733 HAVE_DECL_FDOPENDIR=0
21734 fi
21735
21736
21737 if test $ac_cv_func_fdopendir = no; then
21738 HAVE_FDOPENDIR=0
21739 else
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21741 $as_echo_n "checking whether fdopendir works... " >&6; }
21742 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21743 $as_echo_n "(cached) " >&6
21744 else
21745 if test "$cross_compiling" = yes; then :
21746 case "$host_os" in
21747 # Guess yes on glibc systems.
21748 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
21749 # If we don't know, assume the worst.
21750 *) gl_cv_func_fdopendir_works="guessing no" ;;
21751 esac
21752
21753 else
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756
21757 #include <dirent.h>
21758 #include <fcntl.h>
21759 #include <unistd.h>
21760 #if !HAVE_DECL_FDOPENDIR
21761 extern
21762 # ifdef __cplusplus
21763 "C"
21764 # endif
21765 DIR *fdopendir (int);
21766 #endif
21767
21768 int
21769 main ()
21770 {
21771 int result = 0;
21772 int fd = open ("conftest.c", O_RDONLY);
21773 if (fd < 0) result |= 1;
21774 if (fdopendir (fd)) result |= 2;
21775 if (close (fd)) result |= 4;
21776 return result;
21777 ;
21778 return 0;
21779 }
21780 _ACEOF
21781 if ac_fn_c_try_run "$LINENO"; then :
21782 gl_cv_func_fdopendir_works=yes
21783 else
21784 gl_cv_func_fdopendir_works=no
21785 fi
21786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21787 conftest.$ac_objext conftest.beam conftest.$ac_ext
21788 fi
21789
21790 fi
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21792 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21793 case "$gl_cv_func_fdopendir_works" in
21794 *yes) ;;
21795 *)
21796 REPLACE_FDOPENDIR=1
21797 ;;
21798 esac
21799 fi
21800
21801 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
21802
21803
21804
21805
21806
21807
21808
21809
21810 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
21811
21812 fi
21813
21814
21815
21816
21817
21818 GNULIB_FDOPENDIR=1
21819
21820
21821
21822
21823
21824
21825
21826 cat >>confdefs.h <<_ACEOF
21827 #define GNULIB_FDOPENDIR 1
21828 _ACEOF
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838 fp_headers='
21839 # include <stdio.h>
21840 # if HAVE_STDIO_EXT_H
21841 # include <stdio_ext.h>
21842 # endif
21843 '
21844 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21845 "
21846 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
21847 ac_have_decl=1
21848 else
21849 ac_have_decl=0
21850 fi
21851
21852 cat >>confdefs.h <<_ACEOF
21853 #define HAVE_DECL___FPENDING $ac_have_decl
21854 _ACEOF
21855
21856
21857 if test $ac_cv_func___fpending = no; then
21858
21859
21860
21861
21862
21863
21864
21865
21866 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21867
21868
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21870 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21871 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21872 $as_echo_n "(cached) " >&6
21873 else
21874
21875 for ac_expr in \
21876 \
21877 '# glibc2' \
21878 'fp->_IO_write_ptr - fp->_IO_write_base' \
21879 \
21880 '# traditional Unix' \
21881 'fp->_ptr - fp->_base' \
21882 \
21883 '# BSD' \
21884 'fp->_p - fp->_bf._base' \
21885 \
21886 '# SCO, Unixware' \
21887 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21888 \
21889 '# QNX' \
21890 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21891 \
21892 '# old glibc?' \
21893 'fp->__bufp - fp->__buffer' \
21894 \
21895 '# old glibc iostream?' \
21896 'fp->_pptr - fp->_pbase' \
21897 \
21898 '# emx+gcc' \
21899 'fp->_ptr - fp->_buffer' \
21900 \
21901 '# Minix' \
21902 'fp->_ptr - fp->_buf' \
21903 \
21904 '# Plan9' \
21905 'fp->wp - fp->buf' \
21906 \
21907 '# VMS' \
21908 '(*fp)->_ptr - (*fp)->_base' \
21909 \
21910 '# e.g., DGUX R4.11; the info is not available' \
21911 1 \
21912 ; do
21913
21914 # Skip each embedded comment.
21915 case "$ac_expr" in '#'*) continue;; esac
21916
21917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h. */
21919 #include <stdio.h>
21920 int
21921 main ()
21922 {
21923 FILE *fp = stdin; (void) ($ac_expr);
21924 ;
21925 return 0;
21926 }
21927 _ACEOF
21928 if ac_fn_c_try_compile "$LINENO"; then :
21929 fp_done=yes
21930
21931 fi
21932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 test "$fp_done" = yes && break
21934 done
21935
21936 ac_cv_sys_pending_output_n_bytes=$ac_expr
21937
21938
21939 fi
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21941 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21942
21943 cat >>confdefs.h <<_ACEOF
21944 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21945 _ACEOF
21946
21947
21948 fi
21949
21950
21951
21952
21953
21954
21955 if test $ac_cv_func_fstatat = no; then
21956 HAVE_FSTATAT=0
21957 else
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21959 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21960 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21961 $as_echo_n "(cached) " >&6
21962 else
21963 if test "$cross_compiling" = yes; then :
21964 case "$host_os" in
21965 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
21966 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
21967 esac
21968
21969 else
21970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21971 /* end confdefs.h. */
21972
21973 #include <fcntl.h>
21974 #include <sys/stat.h>
21975 int
21976 main (void)
21977 {
21978 struct stat a;
21979 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21980 }
21981
21982 _ACEOF
21983 if ac_fn_c_try_run "$LINENO"; then :
21984 gl_cv_func_fstatat_zero_flag=yes
21985 else
21986 gl_cv_func_fstatat_zero_flag=no
21987 fi
21988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21989 conftest.$ac_objext conftest.beam conftest.$ac_ext
21990 fi
21991
21992
21993 fi
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21995 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21996
21997 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21998 *yes+*yes) ;;
21999 *) REPLACE_FSTATAT=1
22000 case $gl_cv_func_fstatat_zero_flag in
22001 *yes)
22002
22003 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
22004
22005 ;;
22006 esac
22007 ;;
22008 esac
22009 fi
22010
22011 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
22012
22013
22014
22015
22016
22017
22018
22019
22020 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
22021
22022 fi
22023
22024
22025
22026
22027
22028 GNULIB_FSTATAT=1
22029
22030
22031
22032
22033
22034
22035
22036
22037 if test $ac_cv_func_fsync = no; then
22038 HAVE_FSYNC=0
22039 fi
22040
22041 if test $HAVE_FSYNC = 0; then
22042
22043
22044
22045
22046
22047
22048
22049
22050 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
22051
22052 :
22053 fi
22054
22055
22056
22057
22058
22059 GNULIB_FSYNC=1
22060
22061
22062
22063
22064
22065
22066
22067 # Persuade glibc <stdlib.h> to declare getloadavg().
22068
22069
22070 gl_save_LIBS=$LIBS
22071
22072 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
22073 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
22074 HAVE_GETLOADAVG=1
22075 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
22076 if test "x$ac_cv_func_getloadavg" = x""yes; then :
22077
22078 else
22079 gl_func_getloadavg_done=no
22080
22081 # Some systems with -lutil have (and need) -lkvm as well, some do not.
22082 # On Solaris, -lkvm requires nlist from -lelf, so check that first
22083 # to get the right answer into the cache.
22084 # For kstat on solaris, we need to test for libelf and libkvm to force the
22085 # definition of SVR4 below.
22086 if test $gl_func_getloadavg_done = no; then
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
22088 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
22089 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
22090 $as_echo_n "(cached) " >&6
22091 else
22092 ac_check_lib_save_LIBS=$LIBS
22093 LIBS="-lelf $LIBS"
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h. */
22096
22097 /* Override any GCC internal prototype to avoid an error.
22098 Use char because int might match the return type of a GCC
22099 builtin and then its argument prototype would still apply. */
22100 #ifdef __cplusplus
22101 extern "C"
22102 #endif
22103 char elf_begin ();
22104 int
22105 main ()
22106 {
22107 return elf_begin ();
22108 ;
22109 return 0;
22110 }
22111 _ACEOF
22112 if ac_fn_c_try_link "$LINENO"; then :
22113 ac_cv_lib_elf_elf_begin=yes
22114 else
22115 ac_cv_lib_elf_elf_begin=no
22116 fi
22117 rm -f core conftest.err conftest.$ac_objext \
22118 conftest$ac_exeext conftest.$ac_ext
22119 LIBS=$ac_check_lib_save_LIBS
22120 fi
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
22122 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
22123 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
22124 LIBS="-lelf $LIBS"
22125 fi
22126
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
22128 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
22129 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
22130 $as_echo_n "(cached) " >&6
22131 else
22132 ac_check_lib_save_LIBS=$LIBS
22133 LIBS="-lkvm $LIBS"
22134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22135 /* end confdefs.h. */
22136
22137 /* Override any GCC internal prototype to avoid an error.
22138 Use char because int might match the return type of a GCC
22139 builtin and then its argument prototype would still apply. */
22140 #ifdef __cplusplus
22141 extern "C"
22142 #endif
22143 char kvm_open ();
22144 int
22145 main ()
22146 {
22147 return kvm_open ();
22148 ;
22149 return 0;
22150 }
22151 _ACEOF
22152 if ac_fn_c_try_link "$LINENO"; then :
22153 ac_cv_lib_kvm_kvm_open=yes
22154 else
22155 ac_cv_lib_kvm_kvm_open=no
22156 fi
22157 rm -f core conftest.err conftest.$ac_objext \
22158 conftest$ac_exeext conftest.$ac_ext
22159 LIBS=$ac_check_lib_save_LIBS
22160 fi
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
22162 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
22163 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
22164 LIBS="-lkvm $LIBS"
22165 fi
22166
22167 # Check for the 4.4BSD definition of getloadavg.
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
22169 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
22170 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22172 else
22173 ac_check_lib_save_LIBS=$LIBS
22174 LIBS="-lutil $LIBS"
22175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h. */
22177
22178 /* Override any GCC internal prototype to avoid an error.
22179 Use char because int might match the return type of a GCC
22180 builtin and then its argument prototype would still apply. */
22181 #ifdef __cplusplus
22182 extern "C"
22183 #endif
22184 char getloadavg ();
22185 int
22186 main ()
22187 {
22188 return getloadavg ();
22189 ;
22190 return 0;
22191 }
22192 _ACEOF
22193 if ac_fn_c_try_link "$LINENO"; then :
22194 ac_cv_lib_util_getloadavg=yes
22195 else
22196 ac_cv_lib_util_getloadavg=no
22197 fi
22198 rm -f core conftest.err conftest.$ac_objext \
22199 conftest$ac_exeext conftest.$ac_ext
22200 LIBS=$ac_check_lib_save_LIBS
22201 fi
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
22203 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
22204 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
22205 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
22206 fi
22207
22208 fi
22209
22210 if test $gl_func_getloadavg_done = no; then
22211 # There is a commonly available library for RS/6000 AIX.
22212 # Since it is not a standard part of AIX, it might be installed locally.
22213 gl_getloadavg_LIBS=$LIBS
22214 LIBS="-L/usr/local/lib $LIBS"
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
22216 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
22217 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22219 else
22220 ac_check_lib_save_LIBS=$LIBS
22221 LIBS="-lgetloadavg $LIBS"
22222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22224
22225 /* Override any GCC internal prototype to avoid an error.
22226 Use char because int might match the return type of a GCC
22227 builtin and then its argument prototype would still apply. */
22228 #ifdef __cplusplus
22229 extern "C"
22230 #endif
22231 char getloadavg ();
22232 int
22233 main ()
22234 {
22235 return getloadavg ();
22236 ;
22237 return 0;
22238 }
22239 _ACEOF
22240 if ac_fn_c_try_link "$LINENO"; then :
22241 ac_cv_lib_getloadavg_getloadavg=yes
22242 else
22243 ac_cv_lib_getloadavg_getloadavg=no
22244 fi
22245 rm -f core conftest.err conftest.$ac_objext \
22246 conftest$ac_exeext conftest.$ac_ext
22247 LIBS=$ac_check_lib_save_LIBS
22248 fi
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
22250 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
22251 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
22252 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
22253 else
22254 LIBS=$gl_getloadavg_LIBS
22255 fi
22256
22257 fi
22258
22259 # Set up the replacement function if necessary.
22260 if test $gl_func_getloadavg_done = no; then
22261 HAVE_GETLOADAVG=0
22262
22263 # Solaris has libkstat which does not require root.
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
22265 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
22266 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22268 else
22269 ac_check_lib_save_LIBS=$LIBS
22270 LIBS="-lkstat $LIBS"
22271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22272 /* end confdefs.h. */
22273
22274 /* Override any GCC internal prototype to avoid an error.
22275 Use char because int might match the return type of a GCC
22276 builtin and then its argument prototype would still apply. */
22277 #ifdef __cplusplus
22278 extern "C"
22279 #endif
22280 char kstat_open ();
22281 int
22282 main ()
22283 {
22284 return kstat_open ();
22285 ;
22286 return 0;
22287 }
22288 _ACEOF
22289 if ac_fn_c_try_link "$LINENO"; then :
22290 ac_cv_lib_kstat_kstat_open=yes
22291 else
22292 ac_cv_lib_kstat_kstat_open=no
22293 fi
22294 rm -f core conftest.err conftest.$ac_objext \
22295 conftest$ac_exeext conftest.$ac_ext
22296 LIBS=$ac_check_lib_save_LIBS
22297 fi
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
22299 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
22300 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
22301 cat >>confdefs.h <<_ACEOF
22302 #define HAVE_LIBKSTAT 1
22303 _ACEOF
22304
22305 LIBS="-lkstat $LIBS"
22306
22307 fi
22308
22309 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
22310
22311 # AIX has libperfstat which does not require root
22312 if test $gl_func_getloadavg_done = no; then
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
22314 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
22315 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
22316 $as_echo_n "(cached) " >&6
22317 else
22318 ac_check_lib_save_LIBS=$LIBS
22319 LIBS="-lperfstat $LIBS"
22320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h. */
22322
22323 /* Override any GCC internal prototype to avoid an error.
22324 Use char because int might match the return type of a GCC
22325 builtin and then its argument prototype would still apply. */
22326 #ifdef __cplusplus
22327 extern "C"
22328 #endif
22329 char perfstat_cpu_total ();
22330 int
22331 main ()
22332 {
22333 return perfstat_cpu_total ();
22334 ;
22335 return 0;
22336 }
22337 _ACEOF
22338 if ac_fn_c_try_link "$LINENO"; then :
22339 ac_cv_lib_perfstat_perfstat_cpu_total=yes
22340 else
22341 ac_cv_lib_perfstat_perfstat_cpu_total=no
22342 fi
22343 rm -f core conftest.err conftest.$ac_objext \
22344 conftest$ac_exeext conftest.$ac_ext
22345 LIBS=$ac_check_lib_save_LIBS
22346 fi
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
22348 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
22349 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
22350 cat >>confdefs.h <<_ACEOF
22351 #define HAVE_LIBPERFSTAT 1
22352 _ACEOF
22353
22354 LIBS="-lperfstat $LIBS"
22355
22356 fi
22357
22358 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
22359 fi
22360
22361 if test $gl_func_getloadavg_done = no; then
22362 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
22363 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
22364 gl_func_getloadavg_done=yes
22365
22366 $as_echo "#define DGUX 1" >>confdefs.h
22367
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
22369 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
22370 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
22371 $as_echo_n "(cached) " >&6
22372 else
22373 ac_check_lib_save_LIBS=$LIBS
22374 LIBS="-ldgc $LIBS"
22375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22376 /* end confdefs.h. */
22377
22378 /* Override any GCC internal prototype to avoid an error.
22379 Use char because int might match the return type of a GCC
22380 builtin and then its argument prototype would still apply. */
22381 #ifdef __cplusplus
22382 extern "C"
22383 #endif
22384 char dg_sys_info ();
22385 int
22386 main ()
22387 {
22388 return dg_sys_info ();
22389 ;
22390 return 0;
22391 }
22392 _ACEOF
22393 if ac_fn_c_try_link "$LINENO"; then :
22394 ac_cv_lib_dgc_dg_sys_info=yes
22395 else
22396 ac_cv_lib_dgc_dg_sys_info=no
22397 fi
22398 rm -f core conftest.err conftest.$ac_objext \
22399 conftest$ac_exeext conftest.$ac_ext
22400 LIBS=$ac_check_lib_save_LIBS
22401 fi
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
22403 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
22404 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
22405 cat >>confdefs.h <<_ACEOF
22406 #define HAVE_LIBDGC 1
22407 _ACEOF
22408
22409 LIBS="-ldgc $LIBS"
22410
22411 fi
22412
22413 fi
22414
22415
22416 fi
22417 fi
22418 fi
22419
22420
22421 if test "x$gl_save_LIBS" = x; then
22422 GETLOADAVG_LIBS=$LIBS
22423 else
22424 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
22425 fi
22426 LIBS=$gl_save_LIBS
22427
22428
22429 # Test whether the system declares getloadavg. Solaris has the function
22430 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
22431 for ac_header in sys/loadavg.h
22432 do :
22433 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
22434 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
22435 cat >>confdefs.h <<_ACEOF
22436 #define HAVE_SYS_LOADAVG_H 1
22437 _ACEOF
22438
22439 fi
22440
22441 done
22442
22443 if test $ac_cv_header_sys_loadavg_h = yes; then
22444 HAVE_SYS_LOADAVG_H=1
22445 else
22446 HAVE_SYS_LOADAVG_H=0
22447 fi
22448 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
22449 # include <sys/loadavg.h>
22450 #endif
22451 #include <stdlib.h>
22452 "
22453 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
22454
22455 else
22456 HAVE_DECL_GETLOADAVG=0
22457 fi
22458
22459
22460 if test $HAVE_GETLOADAVG = 0; then
22461
22462
22463
22464
22465
22466
22467
22468
22469 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
22470
22471
22472 # Figure out what our getloadavg.c needs.
22473
22474
22475
22476 # On HPUX9, an unprivileged user can get load averages this way.
22477 if test $gl_func_getloadavg_done = no; then
22478 for ac_func in pstat_getdynamic
22479 do :
22480 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
22481 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
22482 cat >>confdefs.h <<_ACEOF
22483 #define HAVE_PSTAT_GETDYNAMIC 1
22484 _ACEOF
22485 gl_func_getloadavg_done=yes
22486 fi
22487 done
22488
22489 fi
22490
22491 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
22492 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
22493 # Irix 4.0.5F has the header but not the library.
22494 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
22495 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
22496 gl_func_getloadavg_done=yes
22497
22498 $as_echo "#define SVR4 1" >>confdefs.h
22499
22500 fi
22501
22502 if test $gl_func_getloadavg_done = no; then
22503 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
22504 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
22505 gl_func_getloadavg_done=yes
22506
22507 $as_echo "#define UMAX 1" >>confdefs.h
22508
22509
22510 $as_echo "#define UMAX4_3 1" >>confdefs.h
22511
22512 fi
22513
22514
22515 fi
22516
22517 if test $gl_func_getloadavg_done = no; then
22518 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
22519 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
22520 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
22521
22522 fi
22523
22524
22525 fi
22526
22527 if test $gl_func_getloadavg_done = no; then
22528 for ac_header in mach/mach.h
22529 do :
22530 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
22531 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
22532 cat >>confdefs.h <<_ACEOF
22533 #define HAVE_MACH_MACH_H 1
22534 _ACEOF
22535
22536 fi
22537
22538 done
22539
22540 fi
22541
22542 for ac_header in nlist.h
22543 do :
22544 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
22545 if test "x$ac_cv_header_nlist_h" = x""yes; then :
22546 cat >>confdefs.h <<_ACEOF
22547 #define HAVE_NLIST_H 1
22548 _ACEOF
22549 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
22550 "
22551 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
22552
22553 cat >>confdefs.h <<_ACEOF
22554 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22555 _ACEOF
22556
22557
22558 fi
22559
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22562 #include <nlist.h>
22563 int
22564 main ()
22565 {
22566 struct nlist x;
22567 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
22568 x.n_un.n_name = "";
22569 #else
22570 x.n_name = "";
22571 #endif
22572 ;
22573 return 0;
22574 }
22575 _ACEOF
22576 if ac_fn_c_try_link "$LINENO"; then :
22577
22578 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22579
22580 fi
22581 rm -f core conftest.err conftest.$ac_objext \
22582 conftest$ac_exeext conftest.$ac_ext
22583
22584 fi
22585
22586 done
22587
22588 fi
22589
22590
22591
22592
22593
22594 GNULIB_GETLOADAVG=1
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605 if test $REPLACE_GETOPT = 1; then
22606
22607
22608
22609
22610
22611
22612
22613
22614 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22625
22626
22627
22628
22629 GNULIB_GL_UNISTD_H_GETOPT=1
22630 fi
22631
22632
22633
22634
22635
22636
22637
22638 REPLACE_GETOPT=0
22639 if test -n "$gl_replace_getopt"; then
22640 REPLACE_GETOPT=1
22641 fi
22642
22643 if test $REPLACE_GETOPT = 1; then
22644
22645 GETOPT_H=getopt.h
22646
22647 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22648
22649
22650
22651 fi
22652
22653 if test $REPLACE_GETOPT = 1; then
22654
22655
22656
22657
22658
22659
22660
22661
22662 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22673
22674
22675
22676
22677 GNULIB_GL_UNISTD_H_GETOPT=1
22678 fi
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691 gl_gettimeofday_timezone=void
22692 if test $ac_cv_func_gettimeofday != yes; then
22693 HAVE_GETTIMEOFDAY=0
22694 else
22695
22696
22697
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22699 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22700 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22701 $as_echo_n "(cached) " >&6
22702 else
22703 if test "$cross_compiling" = yes; then :
22704 # When cross-compiling:
22705 case "$host_os" in
22706 # Guess all is fine on glibc systems.
22707 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22708 # If we don't know, assume the worst.
22709 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22710 esac
22711
22712 else
22713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h. */
22715 #include <string.h>
22716 #include <sys/time.h>
22717 #include <time.h>
22718 #include <stdlib.h>
22719
22720 int
22721 main ()
22722 {
22723
22724 time_t t = 0;
22725 struct tm *lt;
22726 struct tm saved_lt;
22727 struct timeval tv;
22728 lt = localtime (&t);
22729 saved_lt = *lt;
22730 gettimeofday (&tv, NULL);
22731 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22732
22733 ;
22734 return 0;
22735 }
22736 _ACEOF
22737 if ac_fn_c_try_run "$LINENO"; then :
22738 gl_cv_func_gettimeofday_clobber=no
22739 else
22740 gl_cv_func_gettimeofday_clobber=yes
22741 fi
22742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22743 conftest.$ac_objext conftest.beam conftest.$ac_ext
22744 fi
22745
22746 fi
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22748 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22749
22750 case "$gl_cv_func_gettimeofday_clobber" in
22751 *yes)
22752 REPLACE_GETTIMEOFDAY=1
22753
22754
22755 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22756
22757
22758 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22759
22760
22761
22762 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22763
22764 ;;
22765 esac
22766
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22768 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22769 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22770 $as_echo_n "(cached) " >&6
22771 else
22772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22773 /* end confdefs.h. */
22774 #include <sys/time.h>
22775 struct timeval c;
22776 int gettimeofday (struct timeval *restrict, void *restrict);
22777
22778 int
22779 main ()
22780 {
22781 /* glibc uses struct timezone * rather than the POSIX void *
22782 if _GNU_SOURCE is defined. However, since the only portable
22783 use of gettimeofday uses NULL as the second parameter, and
22784 since the glibc definition is actually more typesafe, it is
22785 not worth wrapping this to get a compliant signature. */
22786 int (*f) (struct timeval *restrict, void *restrict)
22787 = gettimeofday;
22788 int x = f (&c, 0);
22789 return !(x | c.tv_sec | c.tv_usec);
22790
22791 ;
22792 return 0;
22793 }
22794 _ACEOF
22795 if ac_fn_c_try_compile "$LINENO"; then :
22796 gl_cv_func_gettimeofday_posix_signature=yes
22797 else
22798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22799 /* end confdefs.h. */
22800 #include <sys/time.h>
22801 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22802
22803 int
22804 main ()
22805 {
22806
22807 ;
22808 return 0;
22809 }
22810 _ACEOF
22811 if ac_fn_c_try_compile "$LINENO"; then :
22812 gl_cv_func_gettimeofday_posix_signature=almost
22813 else
22814 gl_cv_func_gettimeofday_posix_signature=no
22815 fi
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 fi
22818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22819 fi
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22821 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22822 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22823 gl_gettimeofday_timezone='struct timezone'
22824 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22825 REPLACE_GETTIMEOFDAY=1
22826 fi
22827 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22828 REPLACE_GETTIMEOFDAY=1
22829 fi
22830
22831 fi
22832
22833 cat >>confdefs.h <<_ACEOF
22834 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22835 _ACEOF
22836
22837
22838 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22839
22840
22841
22842
22843
22844
22845
22846
22847 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22848
22849
22850 for ac_header in sys/timeb.h
22851 do :
22852 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22853 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
22854 cat >>confdefs.h <<_ACEOF
22855 #define HAVE_SYS_TIMEB_H 1
22856 _ACEOF
22857
22858 fi
22859
22860 done
22861
22862 for ac_func in _ftime
22863 do :
22864 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22865 if test "x$ac_cv_func__ftime" = x""yes; then :
22866 cat >>confdefs.h <<_ACEOF
22867 #define HAVE__FTIME 1
22868 _ACEOF
22869
22870 fi
22871 done
22872
22873
22874 fi
22875
22876
22877
22878
22879
22880 GNULIB_GETTIMEOFDAY=1
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891 if test $ac_cv_func_lstat = yes; then
22892
22893 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22894 *no)
22895 REPLACE_LSTAT=1
22896 ;;
22897 esac
22898 else
22899 HAVE_LSTAT=0
22900 fi
22901
22902 if test $REPLACE_LSTAT = 1; then
22903
22904
22905
22906
22907
22908
22909
22910
22911 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22912
22913 :
22914 fi
22915
22916
22917
22918
22919
22920 GNULIB_LSTAT=1
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931 if test $ac_cv_have_decl_memrchr = no; then
22932 HAVE_DECL_MEMRCHR=0
22933 fi
22934
22935 for ac_func in memrchr
22936 do :
22937 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
22938 if test "x$ac_cv_func_memrchr" = x""yes; then :
22939 cat >>confdefs.h <<_ACEOF
22940 #define HAVE_MEMRCHR 1
22941 _ACEOF
22942
22943 fi
22944 done
22945
22946
22947 if test $ac_cv_func_memrchr = no; then
22948
22949
22950
22951
22952
22953
22954
22955
22956 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
22957
22958 :
22959 fi
22960
22961
22962
22963
22964
22965 GNULIB_MEMRCHR=1
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977 if test $APPLE_UNIVERSAL_BUILD = 1; then
22978 # A universal build on Apple Mac OS X platforms.
22979 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22980 # But we need a configuration result that is valid in both modes.
22981 gl_cv_func_working_mktime=no
22982 fi
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22984 $as_echo_n "checking for working mktime... " >&6; }
22985 if test "${gl_cv_func_working_mktime+set}" = set; then :
22986 $as_echo_n "(cached) " >&6
22987 else
22988 if test "$cross_compiling" = yes; then :
22989 gl_cv_func_working_mktime=no
22990 else
22991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22992 /* end confdefs.h. */
22993 /* Test program from Paul Eggert and Tony Leneis. */
22994 #include <limits.h>
22995 #include <stdlib.h>
22996 #include <time.h>
22997
22998 #ifdef HAVE_UNISTD_H
22999 # include <unistd.h>
23000 #endif
23001
23002 #if HAVE_DECL_ALARM
23003 # include <signal.h>
23004 #endif
23005
23006 /* Work around redefinition to rpl_putenv by other config tests. */
23007 #undef putenv
23008
23009 static time_t time_t_max;
23010 static time_t time_t_min;
23011
23012 /* Values we'll use to set the TZ environment variable. */
23013 static char *tz_strings[] = {
23014 (char *) 0, "TZ=GMT0", "TZ=JST-9",
23015 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
23016 };
23017 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
23018
23019 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
23020 Based on a problem report from Andreas Jaeger. */
23021 static int
23022 spring_forward_gap ()
23023 {
23024 /* glibc (up to about 1998-10-07) failed this test. */
23025 struct tm tm;
23026
23027 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23028 instead of "TZ=America/Vancouver" in order to detect the bug even
23029 on systems that don't support the Olson extension, or don't have the
23030 full zoneinfo tables installed. */
23031 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23032
23033 tm.tm_year = 98;
23034 tm.tm_mon = 3;
23035 tm.tm_mday = 5;
23036 tm.tm_hour = 2;
23037 tm.tm_min = 0;
23038 tm.tm_sec = 0;
23039 tm.tm_isdst = -1;
23040 return mktime (&tm) != (time_t) -1;
23041 }
23042
23043 static int
23044 mktime_test1 (time_t now)
23045 {
23046 struct tm *lt;
23047 return ! (lt = localtime (&now)) || mktime (lt) == now;
23048 }
23049
23050 static int
23051 mktime_test (time_t now)
23052 {
23053 return (mktime_test1 (now)
23054 && mktime_test1 ((time_t) (time_t_max - now))
23055 && mktime_test1 ((time_t) (time_t_min + now)));
23056 }
23057
23058 static int
23059 irix_6_4_bug ()
23060 {
23061 /* Based on code from Ariel Faigon. */
23062 struct tm tm;
23063 tm.tm_year = 96;
23064 tm.tm_mon = 3;
23065 tm.tm_mday = 0;
23066 tm.tm_hour = 0;
23067 tm.tm_min = 0;
23068 tm.tm_sec = 0;
23069 tm.tm_isdst = -1;
23070 mktime (&tm);
23071 return tm.tm_mon == 2 && tm.tm_mday == 31;
23072 }
23073
23074 static int
23075 bigtime_test (int j)
23076 {
23077 struct tm tm;
23078 time_t now;
23079 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
23080 now = mktime (&tm);
23081 if (now != (time_t) -1)
23082 {
23083 struct tm *lt = localtime (&now);
23084 if (! (lt
23085 && lt->tm_year == tm.tm_year
23086 && lt->tm_mon == tm.tm_mon
23087 && lt->tm_mday == tm.tm_mday
23088 && lt->tm_hour == tm.tm_hour
23089 && lt->tm_min == tm.tm_min
23090 && lt->tm_sec == tm.tm_sec
23091 && lt->tm_yday == tm.tm_yday
23092 && lt->tm_wday == tm.tm_wday
23093 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
23094 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
23095 return 0;
23096 }
23097 return 1;
23098 }
23099
23100 static int
23101 year_2050_test ()
23102 {
23103 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
23104 ignoring leap seconds. */
23105 unsigned long int answer = 2527315200UL;
23106
23107 struct tm tm;
23108 time_t t;
23109 tm.tm_year = 2050 - 1900;
23110 tm.tm_mon = 2 - 1;
23111 tm.tm_mday = 1;
23112 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
23113 tm.tm_isdst = -1;
23114
23115 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23116 instead of "TZ=America/Vancouver" in order to detect the bug even
23117 on systems that don't support the Olson extension, or don't have the
23118 full zoneinfo tables installed. */
23119 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23120
23121 t = mktime (&tm);
23122
23123 /* Check that the result is either a failure, or close enough
23124 to the correct answer that we can assume the discrepancy is
23125 due to leap seconds. */
23126 return (t == (time_t) -1
23127 || (0 < t && answer - 120 <= t && t <= answer + 120));
23128 }
23129
23130 int
23131 main ()
23132 {
23133 int result = 0;
23134 time_t t, delta;
23135 int i, j;
23136 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
23137 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
23138
23139 #if HAVE_DECL_ALARM
23140 /* This test makes some buggy mktime implementations loop.
23141 Give up after 60 seconds; a mktime slower than that
23142 isn't worth using anyway. */
23143 signal (SIGALRM, SIG_DFL);
23144 alarm (60);
23145 #endif
23146
23147 time_t_max = (! time_t_signed
23148 ? (time_t) -1
23149 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
23150 * 2 + 1));
23151 time_t_min = (! time_t_signed
23152 ? (time_t) 0
23153 : time_t_signed_magnitude
23154 ? ~ (time_t) 0
23155 : ~ time_t_max);
23156
23157 delta = time_t_max / 997; /* a suitable prime number */
23158 for (i = 0; i < N_STRINGS; i++)
23159 {
23160 if (tz_strings[i])
23161 putenv (tz_strings[i]);
23162
23163 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
23164 if (! mktime_test (t))
23165 result |= 1;
23166 if ((result & 2) == 0
23167 && ! (mktime_test ((time_t) 1)
23168 && mktime_test ((time_t) (60 * 60))
23169 && mktime_test ((time_t) (60 * 60 * 24))))
23170 result |= 2;
23171
23172 for (j = 1; (result & 4) == 0; j <<= 1)
23173 {
23174 if (! bigtime_test (j))
23175 result |= 4;
23176 if (INT_MAX / 2 < j)
23177 break;
23178 }
23179 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
23180 result |= 8;
23181 }
23182 if (! irix_6_4_bug ())
23183 result |= 16;
23184 if (! spring_forward_gap ())
23185 result |= 32;
23186 if (! year_2050_test ())
23187 result |= 64;
23188 return result;
23189 }
23190 _ACEOF
23191 if ac_fn_c_try_run "$LINENO"; then :
23192 gl_cv_func_working_mktime=yes
23193 else
23194 gl_cv_func_working_mktime=no
23195 fi
23196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23197 conftest.$ac_objext conftest.beam conftest.$ac_ext
23198 fi
23199
23200
23201 fi
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
23203 $as_echo "$gl_cv_func_working_mktime" >&6; }
23204
23205 if test $gl_cv_func_working_mktime = no; then
23206 REPLACE_MKTIME=1
23207 else
23208 REPLACE_MKTIME=0
23209 fi
23210
23211 if test $REPLACE_MKTIME = 1; then
23212
23213
23214
23215
23216
23217
23218
23219
23220 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
23221
23222 :
23223 fi
23224
23225
23226
23227
23228
23229 GNULIB_MKTIME=1
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241 if test $ac_cv_func_pselect = yes; then
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
23243 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
23244 if test "${gl_cv_sig_pselect+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23246 else
23247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248 /* end confdefs.h. */
23249 #include <sys/select.h>
23250
23251 int
23252 main ()
23253 {
23254 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
23255 struct timespec const *restrict,
23256 sigset_t const *restrict) = pselect;
23257 return !p;
23258 ;
23259 return 0;
23260 }
23261 _ACEOF
23262 if ac_fn_c_try_link "$LINENO"; then :
23263 gl_cv_sig_pselect=yes
23264 else
23265 gl_cv_sig_pselect=no
23266 fi
23267 rm -f core conftest.err conftest.$ac_objext \
23268 conftest$ac_exeext conftest.$ac_ext
23269 fi
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
23271 $as_echo "$gl_cv_sig_pselect" >&6; }
23272
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
23274 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
23275 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
23276 $as_echo_n "(cached) " >&6
23277 else
23278
23279 if test "$cross_compiling" = yes; then :
23280
23281 case "$host_os" in
23282 # Guess yes on glibc systems.
23283 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
23284 # If we don't know, assume the worst.
23285 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
23286 esac
23287
23288 else
23289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290 /* end confdefs.h. */
23291
23292 #include <sys/types.h>
23293 #include <sys/time.h>
23294 #if HAVE_SYS_SELECT_H
23295 # include <sys/select.h>
23296 #endif
23297 #include <unistd.h>
23298 #include <errno.h>
23299
23300 int
23301 main ()
23302 {
23303
23304 fd_set set;
23305 dup2(0, 16);
23306 FD_ZERO(&set);
23307 FD_SET(16, &set);
23308 close(16);
23309 struct timespec timeout;
23310 timeout.tv_sec = 0;
23311 timeout.tv_nsec = 5000;
23312 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
23313
23314 ;
23315 return 0;
23316 }
23317 _ACEOF
23318 if ac_fn_c_try_run "$LINENO"; then :
23319 gl_cv_func_pselect_detects_ebadf=yes
23320 else
23321 gl_cv_func_pselect_detects_ebadf=no
23322 fi
23323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23324 conftest.$ac_objext conftest.beam conftest.$ac_ext
23325 fi
23326
23327
23328 fi
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
23330 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
23331 case $gl_cv_func_pselect_detects_ebadf in
23332 *yes) ;;
23333 *) REPLACE_PSELECT=1 ;;
23334 esac
23335 fi
23336
23337 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
23338 REPLACE_PSELECT=1
23339 fi
23340
23341 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
23342
23343
23344
23345
23346
23347
23348
23349
23350 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
23351
23352 fi
23353
23354
23355
23356
23357
23358 GNULIB_PSELECT=1
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368 LIB_PTHREAD_SIGMASK=
23369
23370
23371
23372
23373 if test "$gl_threads_api" = posix; then
23374 if test $ac_cv_func_pthread_sigmask = yes; then
23375 :
23376 else
23377 if test -n "$LIBMULTITHREAD"; then
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
23379 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
23380 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
23381 $as_echo_n "(cached) " >&6
23382 else
23383 gl_save_LIBS="$LIBS"
23384 LIBS="$LIBS $LIBMULTITHREAD"
23385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23386 /* end confdefs.h. */
23387 #include <pthread.h>
23388 #include <signal.h>
23389
23390 int
23391 main ()
23392 {
23393 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
23394 ;
23395 return 0;
23396 }
23397
23398 _ACEOF
23399 if ac_fn_c_try_link "$LINENO"; then :
23400 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
23401 else
23402 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
23403 fi
23404 rm -f core conftest.err conftest.$ac_objext \
23405 conftest$ac_exeext conftest.$ac_ext
23406 LIBS="$gl_save_LIBS"
23407
23408 fi
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
23410 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
23411 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
23412 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
23413 else
23414 HAVE_PTHREAD_SIGMASK=0
23415 fi
23416 else
23417 HAVE_PTHREAD_SIGMASK=0
23418 fi
23419 fi
23420 else
23421 if test $ac_cv_func_pthread_sigmask = yes; then
23422 REPLACE_PTHREAD_SIGMASK=1
23423 else
23424 HAVE_PTHREAD_SIGMASK=0
23425 fi
23426 fi
23427
23428
23429
23430
23431 if test $HAVE_PTHREAD_SIGMASK = 1; then
23432
23433
23434 if test -z "$LIB_PTHREAD_SIGMASK"; then
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
23436 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
23437 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
23438 $as_echo_n "(cached) " >&6
23439 else
23440
23441 if test "$cross_compiling" = yes; then :
23442
23443 case "$host_os" in
23444 freebsd* | hpux* | solaris | solaris2.[2-9]*)
23445 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
23446 *)
23447 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
23448 esac
23449
23450 else
23451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h. */
23453
23454 #include <pthread.h>
23455 #include <signal.h>
23456 #include <stddef.h>
23457 int main ()
23458 {
23459 sigset_t set;
23460 sigemptyset (&set);
23461 return pthread_sigmask (1729, &set, NULL) != 0;
23462 }
23463 _ACEOF
23464 if ac_fn_c_try_run "$LINENO"; then :
23465 gl_cv_func_pthread_sigmask_in_libc_works=no
23466 else
23467 gl_cv_func_pthread_sigmask_in_libc_works=yes
23468 fi
23469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23470 conftest.$ac_objext conftest.beam conftest.$ac_ext
23471 fi
23472
23473
23474 fi
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
23476 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
23477 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
23478 *no)
23479 REPLACE_PTHREAD_SIGMASK=1
23480
23481 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
23482
23483 ;;
23484 esac
23485 fi
23486
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
23488 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
23489 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
23490 $as_echo_n "(cached) " >&6
23491 else
23492
23493 gl_save_LIBS="$LIBS"
23494 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
23495 if test "$cross_compiling" = yes; then :
23496 case "$host_os" in
23497 cygwin*)
23498 gl_cv_func_pthread_sigmask_return_works="guessing no";;
23499 *)
23500 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
23501 esac
23502
23503 else
23504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23505 /* end confdefs.h. */
23506
23507 #include <pthread.h>
23508 #include <signal.h>
23509 #include <stddef.h>
23510 int main ()
23511 {
23512 sigset_t set;
23513 sigemptyset (&set);
23514 if (pthread_sigmask (1729, &set, NULL) == -1)
23515 return 1;
23516 return 0;
23517 }
23518 _ACEOF
23519 if ac_fn_c_try_run "$LINENO"; then :
23520 gl_cv_func_pthread_sigmask_return_works=yes
23521 else
23522 gl_cv_func_pthread_sigmask_return_works=no
23523 fi
23524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23525 conftest.$ac_objext conftest.beam conftest.$ac_ext
23526 fi
23527
23528 LIBS="$gl_save_LIBS"
23529
23530 fi
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
23532 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
23533 case "$gl_cv_func_pthread_sigmask_return_works" in
23534 *no)
23535 REPLACE_PTHREAD_SIGMASK=1
23536
23537 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
23538
23539 ;;
23540 esac
23541
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
23543 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
23544 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
23545 $as_echo_n "(cached) " >&6
23546 else
23547
23548 case "$host_os" in
23549 irix*)
23550 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
23551 *)
23552 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
23553 esac
23554 gl_save_LIBS="$LIBS"
23555 LIBS="$LIBS $LIBMULTITHREAD"
23556 if test "$cross_compiling" = yes; then :
23557 :
23558 else
23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23561
23562 #include <pthread.h>
23563 #include <signal.h>
23564 #include <stdio.h>
23565 #include <stdlib.h>
23566 #include <unistd.h>
23567 static volatile int sigint_occurred;
23568 static void
23569 sigint_handler (int sig)
23570 {
23571 sigint_occurred++;
23572 }
23573 int main ()
23574 {
23575 sigset_t set;
23576 int pid = getpid ();
23577 char command[80];
23578 signal (SIGINT, sigint_handler);
23579 sigemptyset (&set);
23580 sigaddset (&set, SIGINT);
23581 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
23582 return 1;
23583 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
23584 if (!(system (command) == 0))
23585 return 2;
23586 sleep (2);
23587 if (!(sigint_occurred == 0))
23588 return 3;
23589 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
23590 return 4;
23591 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
23592 return 5;
23593 return 0;
23594 }
23595 _ACEOF
23596 if ac_fn_c_try_run "$LINENO"; then :
23597 :
23598 else
23599 gl_cv_func_pthread_sigmask_unblock_works=no
23600 fi
23601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23602 conftest.$ac_objext conftest.beam conftest.$ac_ext
23603 fi
23604
23605 LIBS="$gl_save_LIBS"
23606
23607 fi
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
23609 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
23610 case "$gl_cv_func_pthread_sigmask_unblock_works" in
23611 *no)
23612 REPLACE_PTHREAD_SIGMASK=1
23613
23614 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
23615
23616 ;;
23617 esac
23618 fi
23619
23620 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
23621
23622
23623
23624
23625
23626
23627
23628
23629 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23630
23631
23632 if test $HAVE_PTHREAD_SIGMASK = 1; then
23633
23634 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23635
23636 fi
23637
23638 fi
23639
23640
23641
23642
23643
23644 GNULIB_PTHREAD_SIGMASK=1
23645
23646
23647
23648
23649
23650
23651
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23653 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23654 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23655 $as_echo_n "(cached) " >&6
23656 else
23657 if test "$cross_compiling" = yes; then :
23658 case "$host_os" in
23659 # Guess yes on glibc systems.
23660 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
23661 # If we don't know, assume the worst.
23662 *) gl_cv_func_svid_putenv="guessing no" ;;
23663 esac
23664
23665 else
23666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23667 /* end confdefs.h. */
23668 $ac_includes_default
23669 int
23670 main ()
23671 {
23672
23673 /* Put it in env. */
23674 if (putenv ("CONFTEST_putenv=val"))
23675 return 1;
23676
23677 /* Try to remove it. */
23678 if (putenv ("CONFTEST_putenv"))
23679 return 2;
23680
23681 /* Make sure it was deleted. */
23682 if (getenv ("CONFTEST_putenv") != 0)
23683 return 3;
23684
23685 return 0;
23686
23687 ;
23688 return 0;
23689 }
23690 _ACEOF
23691 if ac_fn_c_try_run "$LINENO"; then :
23692 gl_cv_func_svid_putenv=yes
23693 else
23694 gl_cv_func_svid_putenv=no
23695 fi
23696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23697 conftest.$ac_objext conftest.beam conftest.$ac_ext
23698 fi
23699
23700
23701 fi
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23703 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23704 case "$gl_cv_func_svid_putenv" in
23705 *yes) ;;
23706 *)
23707 REPLACE_PUTENV=1
23708 ;;
23709 esac
23710
23711 if test $REPLACE_PUTENV = 1; then
23712
23713
23714
23715
23716
23717
23718
23719
23720 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
23721
23722
23723 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
23724 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
23725 ac_have_decl=1
23726 else
23727 ac_have_decl=0
23728 fi
23729
23730 cat >>confdefs.h <<_ACEOF
23731 #define HAVE_DECL__PUTENV $ac_have_decl
23732 _ACEOF
23733
23734
23735 fi
23736
23737
23738
23739
23740
23741 GNULIB_PUTENV=1
23742
23743
23744
23745
23746
23747
23748
23749
23750 if test $ac_cv_func_readlink = no; then
23751 HAVE_READLINK=0
23752 else
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23754 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23755 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23756 $as_echo_n "(cached) " >&6
23757 else
23758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23759 /* end confdefs.h. */
23760 #include <unistd.h>
23761 /* Cause compilation failure if original declaration has wrong type. */
23762 ssize_t readlink (const char *, char *, size_t);
23763 int
23764 main ()
23765 {
23766
23767 ;
23768 return 0;
23769 }
23770 _ACEOF
23771 if ac_fn_c_try_compile "$LINENO"; then :
23772 gl_cv_decl_readlink_works=yes
23773 else
23774 gl_cv_decl_readlink_works=no
23775 fi
23776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23777 fi
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23779 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23781 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23782 if test "${gl_cv_func_readlink_works+set}" = set; then :
23783 $as_echo_n "(cached) " >&6
23784 else
23785 # We have readlink, so assume ln -s works.
23786 ln -s conftest.no-such conftest.link
23787 ln -s conftest.link conftest.lnk2
23788 if test "$cross_compiling" = yes; then :
23789 case "$host_os" in
23790 # Guess yes on glibc systems.
23791 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
23792 # If we don't know, assume the worst.
23793 *) gl_cv_func_readlink_works="guessing no" ;;
23794 esac
23795
23796 else
23797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23798 /* end confdefs.h. */
23799 #include <unistd.h>
23800
23801 int
23802 main ()
23803 {
23804 char buf[20];
23805 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23806 ;
23807 return 0;
23808 }
23809 _ACEOF
23810 if ac_fn_c_try_run "$LINENO"; then :
23811 gl_cv_func_readlink_works=yes
23812 else
23813 gl_cv_func_readlink_works=no
23814 fi
23815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23816 conftest.$ac_objext conftest.beam conftest.$ac_ext
23817 fi
23818
23819 rm -f conftest.link conftest.lnk2
23820 fi
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23822 $as_echo "$gl_cv_func_readlink_works" >&6; }
23823 case "$gl_cv_func_readlink_works" in
23824 *yes)
23825 if test "$gl_cv_decl_readlink_works" != yes; then
23826 REPLACE_READLINK=1
23827 fi
23828 ;;
23829 *)
23830
23831 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23832
23833 REPLACE_READLINK=1
23834 ;;
23835 esac
23836 fi
23837
23838 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23839
23840
23841
23842
23843
23844
23845
23846
23847 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
23848
23849
23850 :
23851
23852 fi
23853
23854
23855
23856
23857
23858 GNULIB_READLINK=1
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868 if test $ac_cv_func_readlinkat = no; then
23869 HAVE_READLINKAT=0
23870 fi
23871
23872 if test $HAVE_READLINKAT = 0; then
23873
23874
23875
23876
23877
23878
23879
23880
23881 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
23882
23883 fi
23884
23885
23886
23887
23888
23889 GNULIB_READLINKAT=1
23890
23891
23892
23893
23894
23895
23896 for ac_func in sig2str
23897 do :
23898 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
23899 if test "x$ac_cv_func_sig2str" = x""yes; then :
23900 cat >>confdefs.h <<_ACEOF
23901 #define HAVE_SIG2STR 1
23902 _ACEOF
23903
23904 fi
23905 done
23906
23907
23908 if test $ac_cv_func_sig2str = no; then
23909
23910
23911
23912
23913
23914
23915
23916
23917 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
23918
23919
23920 :
23921
23922 fi
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934 if test $gl_cv_have_include_next = yes; then
23935 gl_cv_next_signal_h='<'signal.h'>'
23936 else
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23938 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23939 if test "${gl_cv_next_signal_h+set}" = set; then :
23940 $as_echo_n "(cached) " >&6
23941 else
23942
23943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23944 /* end confdefs.h. */
23945 #include <signal.h>
23946
23947 _ACEOF
23948 case "$host_os" in
23949 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23950 *) gl_absname_cpp="$ac_cpp" ;;
23951 esac
23952
23953 case "$host_os" in
23954 mingw*)
23955 gl_dirsep_regex='[/\\]'
23956 ;;
23957 *)
23958 gl_dirsep_regex='\/'
23959 ;;
23960 esac
23961 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23962
23963 gl_header_literal_regex=`echo 'signal.h' \
23964 | sed -e "$gl_make_literal_regex_sed"`
23965 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23966 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23967 s|^/[^/]|//&|
23968 p
23969 q
23970 }'
23971 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23972 sed -n "$gl_absolute_header_sed"`'"'
23973
23974
23975 fi
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23977 $as_echo "$gl_cv_next_signal_h" >&6; }
23978 fi
23979 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23980
23981 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23983 gl_next_as_first_directive='<'signal.h'>'
23984 else
23985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23986 gl_next_as_first_directive=$gl_cv_next_signal_h
23987 fi
23988 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23989
23990
23991
23992
23993
23994 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23995 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23996 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23997 #include <signal.h>
23998
23999 "
24000 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
24001
24002 else
24003 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
24004 fi
24005
24006
24007
24008
24009
24010
24011
24012 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
24013 #include <signal.h>
24014
24015 "
24016 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
24017
24018 else
24019 HAVE_SIGHANDLER_T=0
24020 fi
24021
24022
24023
24024
24025 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
24026 /* <sys/types.h> is not needed according to POSIX, but the
24027 <sys/socket.h> in i386-unknown-freebsd4.10 and
24028 powerpc-apple-darwin5.5 required it. */
24029 #include <sys/types.h>
24030 #if HAVE_SYS_SOCKET_H
24031 # include <sys/socket.h>
24032 #elif HAVE_WS2TCPIP_H
24033 # include <ws2tcpip.h>
24034 #endif
24035
24036 "
24037 if test "x$ac_cv_type_socklen_t" = x""yes; then :
24038
24039 else
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
24041 $as_echo_n "checking for socklen_t equivalent... " >&6; }
24042 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
24043 $as_echo_n "(cached) " >&6
24044 else
24045 # Systems have either "struct sockaddr *" or
24046 # "void *" as the second argument to getpeername
24047 gl_cv_socklen_t_equiv=
24048 for arg2 in "struct sockaddr" void; do
24049 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
24050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24051 /* end confdefs.h. */
24052 #include <sys/types.h>
24053 #include <sys/socket.h>
24054
24055 int getpeername (int, $arg2 *, $t *);
24056 int
24057 main ()
24058 {
24059 $t len;
24060 getpeername (0, 0, &len);
24061 ;
24062 return 0;
24063 }
24064 _ACEOF
24065 if ac_fn_c_try_compile "$LINENO"; then :
24066 gl_cv_socklen_t_equiv="$t"
24067 fi
24068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069 test "$gl_cv_socklen_t_equiv" != "" && break
24070 done
24071 test "$gl_cv_socklen_t_equiv" != "" && break
24072 done
24073
24074 fi
24075
24076 if test "$gl_cv_socklen_t_equiv" = ""; then
24077 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
24078 fi
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
24080 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
24081
24082 cat >>confdefs.h <<_ACEOF
24083 #define socklen_t $gl_cv_socklen_t_equiv
24084 _ACEOF
24085
24086 fi
24087
24088
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
24090 $as_echo_n "checking for ssize_t... " >&6; }
24091 if test "${gt_cv_ssize_t+set}" = set; then :
24092 $as_echo_n "(cached) " >&6
24093 else
24094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24095 /* end confdefs.h. */
24096 #include <sys/types.h>
24097 int
24098 main ()
24099 {
24100 int x = sizeof (ssize_t *) + sizeof (ssize_t);
24101 return !x;
24102 ;
24103 return 0;
24104 }
24105 _ACEOF
24106 if ac_fn_c_try_compile "$LINENO"; then :
24107 gt_cv_ssize_t=yes
24108 else
24109 gt_cv_ssize_t=no
24110 fi
24111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112 fi
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
24114 $as_echo "$gt_cv_ssize_t" >&6; }
24115 if test $gt_cv_ssize_t = no; then
24116
24117 $as_echo "#define ssize_t int" >>confdefs.h
24118
24119 fi
24120
24121
24122
24123
24124
24125 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
24126 #include <sys/stat.h>
24127 "
24128 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
24129
24130 cat >>confdefs.h <<_ACEOF
24131 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
24132 _ACEOF
24133
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
24135 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
24136 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24138 else
24139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24140 /* end confdefs.h. */
24141
24142 #include <sys/types.h>
24143 #include <sys/stat.h>
24144 #if HAVE_SYS_TIME_H
24145 # include <sys/time.h>
24146 #endif
24147 #include <time.h>
24148 struct timespec ts;
24149 struct stat st;
24150
24151 int
24152 main ()
24153 {
24154
24155 st.st_atim = ts;
24156
24157 ;
24158 return 0;
24159 }
24160 _ACEOF
24161 if ac_fn_c_try_compile "$LINENO"; then :
24162 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
24163 else
24164 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
24165 fi
24166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24167 fi
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
24169 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
24170 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
24171
24172 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
24173
24174 fi
24175 else
24176 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
24177 #include <sys/stat.h>
24178 "
24179 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
24180
24181 cat >>confdefs.h <<_ACEOF
24182 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
24183 _ACEOF
24184
24185
24186 else
24187 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
24188 #include <sys/stat.h>
24189 "
24190 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
24191
24192 cat >>confdefs.h <<_ACEOF
24193 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
24194 _ACEOF
24195
24196
24197 else
24198 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
24199 #include <sys/stat.h>
24200 "
24201 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
24202
24203 cat >>confdefs.h <<_ACEOF
24204 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
24205 _ACEOF
24206
24207
24208 fi
24209
24210 fi
24211
24212 fi
24213
24214 fi
24215
24216
24217
24218
24219
24220 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
24221 #include <sys/stat.h>
24222 "
24223 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
24224
24225 cat >>confdefs.h <<_ACEOF
24226 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
24227 _ACEOF
24228
24229
24230 else
24231 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
24232 #include <sys/stat.h>
24233 "
24234 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
24235
24236 cat >>confdefs.h <<_ACEOF
24237 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
24238 _ACEOF
24239
24240
24241 else
24242 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
24243 #include <sys/stat.h>
24244 "
24245 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
24246
24247 cat >>confdefs.h <<_ACEOF
24248 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
24249 _ACEOF
24250
24251
24252 fi
24253
24254 fi
24255
24256 fi
24257
24258
24259
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
24261 $as_echo_n "checking for working stdalign.h... " >&6; }
24262 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
24263 $as_echo_n "(cached) " >&6
24264 else
24265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24266 /* end confdefs.h. */
24267 #include <stdalign.h>
24268 #include <stddef.h>
24269
24270 /* Test that alignof yields a result consistent with offsetof.
24271 This catches GCC bug 52023
24272 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
24273 #ifdef __cplusplus
24274 template <class t> struct alignof_helper { char a; t b; };
24275 # define ao(type) offsetof (alignof_helper<type>, b)
24276 #else
24277 # define ao(type) offsetof (struct { char a; type b; }, b)
24278 #endif
24279 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
24280 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
24281 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
24282
24283 /* Test _Alignas only on platforms where gnulib can help. */
24284 #if \
24285 (__GNUC__ || __IBMC__ || __IBMCPP__ \
24286 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
24287 struct alignas_test { char c; char alignas (8) alignas_8; };
24288 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
24289 ? 1 : -1];
24290 #endif
24291
24292 int
24293 main ()
24294 {
24295
24296 ;
24297 return 0;
24298 }
24299 _ACEOF
24300 if ac_fn_c_try_compile "$LINENO"; then :
24301 gl_cv_header_working_stdalign_h=yes
24302 else
24303 gl_cv_header_working_stdalign_h=no
24304 fi
24305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24306 fi
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
24308 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
24309
24310 if test $gl_cv_header_working_stdalign_h = yes; then
24311 STDALIGN_H=''
24312 else
24313 STDALIGN_H='stdalign.h'
24314 fi
24315
24316
24317 if test -n "$STDALIGN_H"; then
24318 GL_GENERATE_STDALIGN_H_TRUE=
24319 GL_GENERATE_STDALIGN_H_FALSE='#'
24320 else
24321 GL_GENERATE_STDALIGN_H_TRUE='#'
24322 GL_GENERATE_STDALIGN_H_FALSE=
24323 fi
24324
24325
24326
24327 STDARG_H=''
24328 NEXT_STDARG_H='<stdarg.h>'
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
24330 $as_echo_n "checking for va_copy... " >&6; }
24331 if test "${gl_cv_func_va_copy+set}" = set; then :
24332 $as_echo_n "(cached) " >&6
24333 else
24334
24335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24336 /* end confdefs.h. */
24337 #include <stdarg.h>
24338 int
24339 main ()
24340 {
24341
24342 #ifndef va_copy
24343 void (*func) (va_list, va_list) = va_copy;
24344 #endif
24345
24346 ;
24347 return 0;
24348 }
24349 _ACEOF
24350 if ac_fn_c_try_compile "$LINENO"; then :
24351 gl_cv_func_va_copy=yes
24352 else
24353 gl_cv_func_va_copy=no
24354 fi
24355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24356 fi
24357
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
24359 $as_echo "$gl_cv_func_va_copy" >&6; }
24360 if test $gl_cv_func_va_copy = no; then
24361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24362 /* end confdefs.h. */
24363 #if defined _AIX && !defined __GNUC__
24364 AIX vaccine
24365 #endif
24366
24367 _ACEOF
24368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24369 $EGREP "vaccine" >/dev/null 2>&1; then :
24370 gl_aixcc=yes
24371 else
24372 gl_aixcc=no
24373 fi
24374 rm -f conftest*
24375
24376 if test $gl_aixcc = yes; then
24377 STDARG_H=stdarg.h
24378
24379
24380
24381
24382
24383
24384
24385
24386 if test $gl_cv_have_include_next = yes; then
24387 gl_cv_next_stdarg_h='<'stdarg.h'>'
24388 else
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
24390 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
24391 if test "${gl_cv_next_stdarg_h+set}" = set; then :
24392 $as_echo_n "(cached) " >&6
24393 else
24394
24395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24396 /* end confdefs.h. */
24397 #include <stdarg.h>
24398
24399 _ACEOF
24400 case "$host_os" in
24401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24402 *) gl_absname_cpp="$ac_cpp" ;;
24403 esac
24404
24405 case "$host_os" in
24406 mingw*)
24407 gl_dirsep_regex='[/\\]'
24408 ;;
24409 *)
24410 gl_dirsep_regex='\/'
24411 ;;
24412 esac
24413 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24414
24415 gl_header_literal_regex=`echo 'stdarg.h' \
24416 | sed -e "$gl_make_literal_regex_sed"`
24417 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24418 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24419 s|^/[^/]|//&|
24420 p
24421 q
24422 }'
24423 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24424 sed -n "$gl_absolute_header_sed"`'"'
24425
24426
24427 fi
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
24429 $as_echo "$gl_cv_next_stdarg_h" >&6; }
24430 fi
24431 NEXT_STDARG_H=$gl_cv_next_stdarg_h
24432
24433 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24434 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24435 gl_next_as_first_directive='<'stdarg.h'>'
24436 else
24437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24438 gl_next_as_first_directive=$gl_cv_next_stdarg_h
24439 fi
24440 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
24441
24442
24443
24444
24445 if test "$gl_cv_next_stdarg_h" = '""'; then
24446 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
24447 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
24448 fi
24449 else
24450
24451 saved_as_echo_n="$as_echo_n"
24452 as_echo_n=':'
24453 if test "${gl_cv_func___va_copy+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24455 else
24456
24457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24458 /* end confdefs.h. */
24459 #include <stdarg.h>
24460 int
24461 main ()
24462 {
24463
24464 #ifndef __va_copy
24465 error, bail out
24466 #endif
24467
24468 ;
24469 return 0;
24470 }
24471 _ACEOF
24472 if ac_fn_c_try_compile "$LINENO"; then :
24473 gl_cv_func___va_copy=yes
24474 else
24475 gl_cv_func___va_copy=no
24476 fi
24477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24478 fi
24479
24480 as_echo_n="$saved_as_echo_n"
24481
24482 if test $gl_cv_func___va_copy = yes; then
24483
24484 $as_echo "#define va_copy __va_copy" >>confdefs.h
24485
24486 else
24487
24488
24489 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
24490
24491 fi
24492 fi
24493 fi
24494
24495 if test -n "$STDARG_H"; then
24496 GL_GENERATE_STDARG_H_TRUE=
24497 GL_GENERATE_STDARG_H_FALSE='#'
24498 else
24499 GL_GENERATE_STDARG_H_TRUE='#'
24500 GL_GENERATE_STDARG_H_FALSE=
24501 fi
24502
24503
24504
24505
24506
24507
24508 # Define two additional variables used in the Makefile substitution.
24509
24510 if test "$ac_cv_header_stdbool_h" = yes; then
24511 STDBOOL_H=''
24512 else
24513 STDBOOL_H='stdbool.h'
24514 fi
24515
24516 if test -n "$STDBOOL_H"; then
24517 GL_GENERATE_STDBOOL_H_TRUE=
24518 GL_GENERATE_STDBOOL_H_FALSE='#'
24519 else
24520 GL_GENERATE_STDBOOL_H_TRUE='#'
24521 GL_GENERATE_STDBOOL_H_FALSE=
24522 fi
24523
24524
24525 if test "$ac_cv_type__Bool" = yes; then
24526 HAVE__BOOL=1
24527 else
24528 HAVE__BOOL=0
24529 fi
24530
24531
24532
24533
24534
24535 STDDEF_H=
24536 if test $gt_cv_c_wchar_t = no; then
24537 HAVE_WCHAR_T=0
24538 STDDEF_H=stddef.h
24539 fi
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24541 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24542 if test "${gl_cv_decl_null_works+set}" = set; then :
24543 $as_echo_n "(cached) " >&6
24544 else
24545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24546 /* end confdefs.h. */
24547 #include <stddef.h>
24548 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24549
24550 int
24551 main ()
24552 {
24553
24554 ;
24555 return 0;
24556 }
24557 _ACEOF
24558 if ac_fn_c_try_compile "$LINENO"; then :
24559 gl_cv_decl_null_works=yes
24560 else
24561 gl_cv_decl_null_works=no
24562 fi
24563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24564 fi
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24566 $as_echo "$gl_cv_decl_null_works" >&6; }
24567 if test $gl_cv_decl_null_works = no; then
24568 REPLACE_NULL=1
24569 STDDEF_H=stddef.h
24570 fi
24571
24572 if test -n "$STDDEF_H"; then
24573 GL_GENERATE_STDDEF_H_TRUE=
24574 GL_GENERATE_STDDEF_H_FALSE='#'
24575 else
24576 GL_GENERATE_STDDEF_H_TRUE='#'
24577 GL_GENERATE_STDDEF_H_FALSE=
24578 fi
24579
24580 if test -n "$STDDEF_H"; then
24581
24582
24583
24584
24585
24586
24587
24588
24589 if test $gl_cv_have_include_next = yes; then
24590 gl_cv_next_stddef_h='<'stddef.h'>'
24591 else
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24593 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24594 if test "${gl_cv_next_stddef_h+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24596 else
24597
24598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24599 /* end confdefs.h. */
24600 #include <stddef.h>
24601
24602 _ACEOF
24603 case "$host_os" in
24604 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24605 *) gl_absname_cpp="$ac_cpp" ;;
24606 esac
24607
24608 case "$host_os" in
24609 mingw*)
24610 gl_dirsep_regex='[/\\]'
24611 ;;
24612 *)
24613 gl_dirsep_regex='\/'
24614 ;;
24615 esac
24616 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24617
24618 gl_header_literal_regex=`echo 'stddef.h' \
24619 | sed -e "$gl_make_literal_regex_sed"`
24620 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24621 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24622 s|^/[^/]|//&|
24623 p
24624 q
24625 }'
24626 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24627 sed -n "$gl_absolute_header_sed"`'"'
24628
24629
24630 fi
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24632 $as_echo "$gl_cv_next_stddef_h" >&6; }
24633 fi
24634 NEXT_STDDEF_H=$gl_cv_next_stddef_h
24635
24636 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24638 gl_next_as_first_directive='<'stddef.h'>'
24639 else
24640 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24641 gl_next_as_first_directive=$gl_cv_next_stddef_h
24642 fi
24643 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24644
24645
24646
24647
24648 fi
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661 if test $gl_cv_have_include_next = yes; then
24662 gl_cv_next_stdio_h='<'stdio.h'>'
24663 else
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24665 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24666 if test "${gl_cv_next_stdio_h+set}" = set; then :
24667 $as_echo_n "(cached) " >&6
24668 else
24669
24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h. */
24672 #include <stdio.h>
24673
24674 _ACEOF
24675 case "$host_os" in
24676 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24677 *) gl_absname_cpp="$ac_cpp" ;;
24678 esac
24679
24680 case "$host_os" in
24681 mingw*)
24682 gl_dirsep_regex='[/\\]'
24683 ;;
24684 *)
24685 gl_dirsep_regex='\/'
24686 ;;
24687 esac
24688 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24689
24690 gl_header_literal_regex=`echo 'stdio.h' \
24691 | sed -e "$gl_make_literal_regex_sed"`
24692 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24693 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24694 s|^/[^/]|//&|
24695 p
24696 q
24697 }'
24698 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24699 sed -n "$gl_absolute_header_sed"`'"'
24700
24701
24702 fi
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24704 $as_echo "$gl_cv_next_stdio_h" >&6; }
24705 fi
24706 NEXT_STDIO_H=$gl_cv_next_stdio_h
24707
24708 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24710 gl_next_as_first_directive='<'stdio.h'>'
24711 else
24712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24713 gl_next_as_first_directive=$gl_cv_next_stdio_h
24714 fi
24715 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24716
24717
24718
24719
24720
24721 GNULIB_FSCANF=1
24722
24723
24724 cat >>confdefs.h <<_ACEOF
24725 #define GNULIB_FSCANF 1
24726 _ACEOF
24727
24728
24729 GNULIB_SCANF=1
24730
24731
24732 cat >>confdefs.h <<_ACEOF
24733 #define GNULIB_SCANF 1
24734 _ACEOF
24735
24736
24737 GNULIB_FGETC=1
24738 GNULIB_GETC=1
24739 GNULIB_GETCHAR=1
24740 GNULIB_FGETS=1
24741 GNULIB_FREAD=1
24742
24743
24744 GNULIB_FPRINTF=1
24745 GNULIB_PRINTF=1
24746 GNULIB_VFPRINTF=1
24747 GNULIB_VPRINTF=1
24748 GNULIB_FPUTC=1
24749 GNULIB_PUTC=1
24750 GNULIB_PUTCHAR=1
24751 GNULIB_FPUTS=1
24752 GNULIB_PUTS=1
24753 GNULIB_FWRITE=1
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769 if test $gl_cv_have_include_next = yes; then
24770 gl_cv_next_stdlib_h='<'stdlib.h'>'
24771 else
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24773 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24774 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24775 $as_echo_n "(cached) " >&6
24776 else
24777
24778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24779 /* end confdefs.h. */
24780 #include <stdlib.h>
24781
24782 _ACEOF
24783 case "$host_os" in
24784 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24785 *) gl_absname_cpp="$ac_cpp" ;;
24786 esac
24787
24788 case "$host_os" in
24789 mingw*)
24790 gl_dirsep_regex='[/\\]'
24791 ;;
24792 *)
24793 gl_dirsep_regex='\/'
24794 ;;
24795 esac
24796 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24797
24798 gl_header_literal_regex=`echo 'stdlib.h' \
24799 | sed -e "$gl_make_literal_regex_sed"`
24800 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24801 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24802 s|^/[^/]|//&|
24803 p
24804 q
24805 }'
24806 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24807 sed -n "$gl_absolute_header_sed"`'"'
24808
24809
24810 fi
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24812 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24813 fi
24814 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24815
24816 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24818 gl_next_as_first_directive='<'stdlib.h'>'
24819 else
24820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24821 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24822 fi
24823 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24834
24835
24836
24837
24838
24839
24840
24841 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853 if test "$ac_cv_have_decl_strtoimax" != yes; then
24854 HAVE_DECL_STRTOIMAX=0
24855 fi
24856
24857 if test $ac_cv_func_strtoimax = yes; then
24858 HAVE_STRTOIMAX=1
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24860 $as_echo_n "checking whether strtoimax works... " >&6; }
24861 if test "${gl_cv_func_strtoimax+set}" = set; then :
24862 $as_echo_n "(cached) " >&6
24863 else
24864 if test "$cross_compiling" = yes; then :
24865 case "$host_os" in
24866 # Guess no on AIX 5.
24867 aix5*) gl_cv_func_strtoimax="guessing no" ;;
24868 # Guess yes otherwise.
24869 *) gl_cv_func_strtoimax="guessing yes" ;;
24870 esac
24871
24872 else
24873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24874 /* end confdefs.h. */
24875
24876 #include <errno.h>
24877 #include <string.h>
24878 #include <inttypes.h>
24879 int main ()
24880 {
24881 if (sizeof (intmax_t) > sizeof (int))
24882 {
24883 const char *s = "4294967295";
24884 char *p;
24885 intmax_t res;
24886 errno = 0;
24887 res = strtoimax (s, &p, 10);
24888 if (p != s + strlen (s))
24889 return 1;
24890 if (errno != 0)
24891 return 2;
24892 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24893 return 3;
24894 }
24895 else
24896 {
24897 const char *s = "2147483647";
24898 char *p;
24899 intmax_t res;
24900 errno = 0;
24901 res = strtoimax (s, &p, 10);
24902 if (p != s + strlen (s))
24903 return 1;
24904 if (errno != 0)
24905 return 2;
24906 if (res != 2147483647)
24907 return 3;
24908 }
24909 return 0;
24910 }
24911
24912 _ACEOF
24913 if ac_fn_c_try_run "$LINENO"; then :
24914 gl_cv_func_strtoimax=yes
24915 else
24916 gl_cv_func_strtoimax=no
24917 fi
24918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24919 conftest.$ac_objext conftest.beam conftest.$ac_ext
24920 fi
24921
24922
24923 fi
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24925 $as_echo "$gl_cv_func_strtoimax" >&6; }
24926 case "$gl_cv_func_strtoimax" in
24927 *no) REPLACE_STRTOIMAX=1 ;;
24928 esac
24929 else
24930 HAVE_STRTOIMAX=0
24931 fi
24932
24933 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24934
24935
24936
24937
24938
24939
24940
24941
24942 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
24943
24944
24945 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24946 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
24947 ac_have_decl=1
24948 else
24949 ac_have_decl=0
24950 fi
24951
24952 cat >>confdefs.h <<_ACEOF
24953 #define HAVE_DECL_STRTOLL $ac_have_decl
24954 _ACEOF
24955
24956
24957
24958 fi
24959
24960
24961
24962
24963
24964 GNULIB_STRTOIMAX=1
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974 if test "$ac_cv_have_decl_strtoumax" != yes; then
24975 HAVE_DECL_STRTOUMAX=0
24976 fi
24977
24978 if test $ac_cv_func_strtoumax = no; then
24979
24980
24981
24982
24983
24984
24985
24986
24987 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
24988
24989
24990 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24991 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
24992 ac_have_decl=1
24993 else
24994 ac_have_decl=0
24995 fi
24996
24997 cat >>confdefs.h <<_ACEOF
24998 #define HAVE_DECL_STRTOULL $ac_have_decl
24999 _ACEOF
25000
25001
25002
25003 fi
25004
25005
25006
25007
25008
25009 GNULIB_STRTOUMAX=1
25010
25011
25012
25013
25014
25015
25016
25017 if test $ac_cv_func_symlink = no; then
25018 HAVE_SYMLINK=0
25019 else
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
25021 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
25022 if test "${gl_cv_func_symlink_works+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25024 else
25025 if test "$cross_compiling" = yes; then :
25026 case "$host_os" in
25027 # Guess yes on glibc systems.
25028 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
25029 # If we don't know, assume the worst.
25030 *) gl_cv_func_symlink_works="guessing no" ;;
25031 esac
25032
25033 else
25034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25035 /* end confdefs.h. */
25036 #include <unistd.h>
25037
25038 int
25039 main ()
25040 {
25041 int result = 0;
25042 if (!symlink ("a", "conftest.link/"))
25043 result |= 1;
25044 if (symlink ("conftest.f", "conftest.lnk2"))
25045 result |= 2;
25046 else if (!symlink ("a", "conftest.lnk2/"))
25047 result |= 4;
25048 return result;
25049
25050 ;
25051 return 0;
25052 }
25053 _ACEOF
25054 if ac_fn_c_try_run "$LINENO"; then :
25055 gl_cv_func_symlink_works=yes
25056 else
25057 gl_cv_func_symlink_works=no
25058 fi
25059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25060 conftest.$ac_objext conftest.beam conftest.$ac_ext
25061 fi
25062
25063 rm -f conftest.f conftest.link conftest.lnk2
25064 fi
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
25066 $as_echo "$gl_cv_func_symlink_works" >&6; }
25067 case "$gl_cv_func_symlink_works" in
25068 *yes) ;;
25069 *)
25070 REPLACE_SYMLINK=1
25071 ;;
25072 esac
25073 fi
25074
25075 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
25076
25077
25078
25079
25080
25081
25082
25083
25084 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
25085
25086 fi
25087
25088
25089
25090
25091
25092 GNULIB_SYMLINK=1
25093
25094
25095
25096
25097
25098
25099
25100
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
25102 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
25103 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25105 else
25106
25107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25108 /* end confdefs.h. */
25109 #include <sys/select.h>
25110 int
25111 main ()
25112 {
25113 struct timeval b;
25114 ;
25115 return 0;
25116 }
25117 _ACEOF
25118 if ac_fn_c_try_compile "$LINENO"; then :
25119 gl_cv_header_sys_select_h_selfcontained=yes
25120 else
25121 gl_cv_header_sys_select_h_selfcontained=no
25122 fi
25123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25124 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
25125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25126 /* end confdefs.h. */
25127 #include <sys/select.h>
25128 int
25129 main ()
25130 {
25131 int memset; int bzero;
25132 ;
25133 return 0;
25134 }
25135
25136 _ACEOF
25137 if ac_fn_c_try_compile "$LINENO"; then :
25138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25139 /* end confdefs.h. */
25140 #include <sys/select.h>
25141 int
25142 main ()
25143 {
25144
25145 #undef memset
25146 #define memset nonexistent_memset
25147 extern
25148 #ifdef __cplusplus
25149 "C"
25150 #endif
25151 void *memset (void *, int, unsigned long);
25152 #undef bzero
25153 #define bzero nonexistent_bzero
25154 extern
25155 #ifdef __cplusplus
25156 "C"
25157 #endif
25158 void bzero (void *, unsigned long);
25159 fd_set fds;
25160 FD_ZERO (&fds);
25161
25162 ;
25163 return 0;
25164 }
25165
25166 _ACEOF
25167 if ac_fn_c_try_link "$LINENO"; then :
25168
25169 else
25170 gl_cv_header_sys_select_h_selfcontained=no
25171 fi
25172 rm -f core conftest.err conftest.$ac_objext \
25173 conftest$ac_exeext conftest.$ac_ext
25174
25175 fi
25176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 fi
25178
25179 fi
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
25181 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191 if test $gl_cv_have_include_next = yes; then
25192 gl_cv_next_sys_select_h='<'sys/select.h'>'
25193 else
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
25195 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
25196 if test "${gl_cv_next_sys_select_h+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25198 else
25199
25200 if test $ac_cv_header_sys_select_h = yes; then
25201
25202
25203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h. */
25205 #include <sys/select.h>
25206
25207 _ACEOF
25208 case "$host_os" in
25209 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25210 *) gl_absname_cpp="$ac_cpp" ;;
25211 esac
25212
25213 case "$host_os" in
25214 mingw*)
25215 gl_dirsep_regex='[/\\]'
25216 ;;
25217 *)
25218 gl_dirsep_regex='\/'
25219 ;;
25220 esac
25221 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25222
25223 gl_header_literal_regex=`echo 'sys/select.h' \
25224 | sed -e "$gl_make_literal_regex_sed"`
25225 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25226 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25227 s|^/[^/]|//&|
25228 p
25229 q
25230 }'
25231 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25232 sed -n "$gl_absolute_header_sed"`'"'
25233 else
25234 gl_cv_next_sys_select_h='<'sys/select.h'>'
25235 fi
25236
25237
25238 fi
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
25240 $as_echo "$gl_cv_next_sys_select_h" >&6; }
25241 fi
25242 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
25243
25244 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25246 gl_next_as_first_directive='<'sys/select.h'>'
25247 else
25248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25249 gl_next_as_first_directive=$gl_cv_next_sys_select_h
25250 fi
25251 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
25252
25253
25254
25255
25256 if test $ac_cv_header_sys_select_h = yes; then
25257 HAVE_SYS_SELECT_H=1
25258 else
25259 HAVE_SYS_SELECT_H=0
25260 fi
25261
25262
25263
25264
25265
25266 if test $ac_cv_header_sys_socket_h != yes; then
25267 for ac_header in winsock2.h
25268 do :
25269 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25270 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
25271 cat >>confdefs.h <<_ACEOF
25272 #define HAVE_WINSOCK2_H 1
25273 _ACEOF
25274
25275 fi
25276
25277 done
25278
25279 fi
25280 if test "$ac_cv_header_winsock2_h" = yes; then
25281 HAVE_WINSOCK2_H=1
25282 UNISTD_H_HAVE_WINSOCK2_H=1
25283 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25284 else
25285 HAVE_WINSOCK2_H=0
25286 fi
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307 if test $gl_cv_have_include_next = yes; then
25308 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25309 else
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
25311 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
25312 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
25313 $as_echo_n "(cached) " >&6
25314 else
25315
25316 if test $ac_cv_header_sys_stat_h = yes; then
25317
25318
25319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25320 /* end confdefs.h. */
25321 #include <sys/stat.h>
25322
25323 _ACEOF
25324 case "$host_os" in
25325 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25326 *) gl_absname_cpp="$ac_cpp" ;;
25327 esac
25328
25329 case "$host_os" in
25330 mingw*)
25331 gl_dirsep_regex='[/\\]'
25332 ;;
25333 *)
25334 gl_dirsep_regex='\/'
25335 ;;
25336 esac
25337 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25338
25339 gl_header_literal_regex=`echo 'sys/stat.h' \
25340 | sed -e "$gl_make_literal_regex_sed"`
25341 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25342 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25343 s|^/[^/]|//&|
25344 p
25345 q
25346 }'
25347 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25348 sed -n "$gl_absolute_header_sed"`'"'
25349 else
25350 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25351 fi
25352
25353
25354 fi
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25356 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25357 fi
25358 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
25359
25360 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25361 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25362 gl_next_as_first_directive='<'sys/stat.h'>'
25363 else
25364 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25365 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
25366 fi
25367 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25380
25381 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25382
25383 fi
25384
25385 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25386 #include <sys/stat.h>
25387 "
25388 if test "x$ac_cv_type_nlink_t" = x""yes; then :
25389
25390 else
25391
25392 $as_echo "#define nlink_t int" >>confdefs.h
25393
25394 fi
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
25414 "
25415 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
25416 ac_have_decl=1
25417 else
25418 ac_have_decl=0
25419 fi
25420
25421 cat >>confdefs.h <<_ACEOF
25422 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
25423 _ACEOF
25424
25425 if test $ac_cv_have_decl_localtime_r = no; then
25426 HAVE_DECL_LOCALTIME_R=0
25427 fi
25428
25429
25430 if test $ac_cv_func_localtime_r = yes; then
25431 HAVE_LOCALTIME_R=1
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
25433 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
25434 if test "${gl_cv_time_r_posix+set}" = set; then :
25435 $as_echo_n "(cached) " >&6
25436 else
25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25438 /* end confdefs.h. */
25439 #include <time.h>
25440 int
25441 main ()
25442 {
25443 /* We don't need to append 'restrict's to the argument types,
25444 even though the POSIX signature has the 'restrict's,
25445 since C99 says they can't affect type compatibility. */
25446 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
25447 if (ptr) return 0;
25448 /* Check the return type is a pointer.
25449 On HP-UX 10 it is 'int'. */
25450 *localtime_r (0, 0);
25451 ;
25452 return 0;
25453 }
25454
25455 _ACEOF
25456 if ac_fn_c_try_compile "$LINENO"; then :
25457 gl_cv_time_r_posix=yes
25458 else
25459 gl_cv_time_r_posix=no
25460 fi
25461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25462
25463 fi
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
25465 $as_echo "$gl_cv_time_r_posix" >&6; }
25466 if test $gl_cv_time_r_posix = yes; then
25467 REPLACE_LOCALTIME_R=0
25468 else
25469 REPLACE_LOCALTIME_R=1
25470 fi
25471 else
25472 HAVE_LOCALTIME_R=0
25473 fi
25474
25475 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
25476
25477
25478
25479
25480
25481
25482
25483
25484 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
25485
25486
25487 :
25488
25489 fi
25490
25491
25492
25493
25494
25495 GNULIB_TIME_R=1
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506 LIB_TIMER_TIME=
25507
25508 gl_saved_libs=$LIBS
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
25510 $as_echo_n "checking for library containing timer_settime... " >&6; }
25511 if test "${ac_cv_search_timer_settime+set}" = set; then :
25512 $as_echo_n "(cached) " >&6
25513 else
25514 ac_func_search_save_LIBS=$LIBS
25515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25516 /* end confdefs.h. */
25517
25518 /* Override any GCC internal prototype to avoid an error.
25519 Use char because int might match the return type of a GCC
25520 builtin and then its argument prototype would still apply. */
25521 #ifdef __cplusplus
25522 extern "C"
25523 #endif
25524 char timer_settime ();
25525 int
25526 main ()
25527 {
25528 return timer_settime ();
25529 ;
25530 return 0;
25531 }
25532 _ACEOF
25533 for ac_lib in '' rt posix4; do
25534 if test -z "$ac_lib"; then
25535 ac_res="none required"
25536 else
25537 ac_res=-l$ac_lib
25538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25539 fi
25540 if ac_fn_c_try_link "$LINENO"; then :
25541 ac_cv_search_timer_settime=$ac_res
25542 fi
25543 rm -f core conftest.err conftest.$ac_objext \
25544 conftest$ac_exeext
25545 if test "${ac_cv_search_timer_settime+set}" = set; then :
25546 break
25547 fi
25548 done
25549 if test "${ac_cv_search_timer_settime+set}" = set; then :
25550
25551 else
25552 ac_cv_search_timer_settime=no
25553 fi
25554 rm conftest.$ac_ext
25555 LIBS=$ac_func_search_save_LIBS
25556 fi
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
25558 $as_echo "$ac_cv_search_timer_settime" >&6; }
25559 ac_res=$ac_cv_search_timer_settime
25560 if test "$ac_res" != no; then :
25561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25562 test "$ac_cv_search_timer_settime" = "none required" ||
25563 LIB_TIMER_TIME=$ac_cv_search_timer_settime
25564 fi
25565
25566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25567 /* end confdefs.h. */
25568
25569 #include <features.h>
25570 #ifdef __GNU_LIBRARY__
25571 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
25572 && !defined __UCLIBC__
25573 Thread emulation available
25574 #endif
25575 #endif
25576
25577 _ACEOF
25578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25579 $EGREP "Thread" >/dev/null 2>&1; then :
25580 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
25581 fi
25582 rm -f conftest*
25583
25584 for ac_func in timer_settime
25585 do :
25586 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
25587 if test "x$ac_cv_func_timer_settime" = x""yes; then :
25588 cat >>confdefs.h <<_ACEOF
25589 #define HAVE_TIMER_SETTIME 1
25590 _ACEOF
25591
25592 fi
25593 done
25594
25595 LIBS=$gl_saved_libs
25596
25597 :
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610 if test $gl_cv_have_include_next = yes; then
25611 gl_cv_next_unistd_h='<'unistd.h'>'
25612 else
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25614 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25615 if test "${gl_cv_next_unistd_h+set}" = set; then :
25616 $as_echo_n "(cached) " >&6
25617 else
25618
25619 if test $ac_cv_header_unistd_h = yes; then
25620
25621
25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h. */
25624 #include <unistd.h>
25625
25626 _ACEOF
25627 case "$host_os" in
25628 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25629 *) gl_absname_cpp="$ac_cpp" ;;
25630 esac
25631
25632 case "$host_os" in
25633 mingw*)
25634 gl_dirsep_regex='[/\\]'
25635 ;;
25636 *)
25637 gl_dirsep_regex='\/'
25638 ;;
25639 esac
25640 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25641
25642 gl_header_literal_regex=`echo 'unistd.h' \
25643 | sed -e "$gl_make_literal_regex_sed"`
25644 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25645 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25646 s|^/[^/]|//&|
25647 p
25648 q
25649 }'
25650 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25651 sed -n "$gl_absolute_header_sed"`'"'
25652 else
25653 gl_cv_next_unistd_h='<'unistd.h'>'
25654 fi
25655
25656
25657 fi
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25659 $as_echo "$gl_cv_next_unistd_h" >&6; }
25660 fi
25661 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25662
25663 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25664 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25665 gl_next_as_first_directive='<'unistd.h'>'
25666 else
25667 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25668 gl_next_as_first_directive=$gl_cv_next_unistd_h
25669 fi
25670 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25671
25672
25673
25674
25675 if test $ac_cv_header_unistd_h = yes; then
25676 HAVE_UNISTD_H=1
25677 else
25678 HAVE_UNISTD_H=0
25679 fi
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691 if test $ac_cv_have_decl_unsetenv = no; then
25692 HAVE_DECL_UNSETENV=0
25693 fi
25694 for ac_func in unsetenv
25695 do :
25696 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25697 if test "x$ac_cv_func_unsetenv" = x""yes; then :
25698 cat >>confdefs.h <<_ACEOF
25699 #define HAVE_UNSETENV 1
25700 _ACEOF
25701
25702 fi
25703 done
25704
25705 if test $ac_cv_func_unsetenv = no; then
25706 HAVE_UNSETENV=0
25707 else
25708 HAVE_UNSETENV=1
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25710 $as_echo_n "checking for unsetenv() return type... " >&6; }
25711 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25712 $as_echo_n "(cached) " >&6
25713 else
25714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25715 /* end confdefs.h. */
25716
25717 #undef _BSD
25718 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25719 #include <stdlib.h>
25720 extern
25721 #ifdef __cplusplus
25722 "C"
25723 #endif
25724 int unsetenv (const char *name);
25725
25726 int
25727 main ()
25728 {
25729
25730 ;
25731 return 0;
25732 }
25733 _ACEOF
25734 if ac_fn_c_try_compile "$LINENO"; then :
25735 gt_cv_func_unsetenv_ret='int'
25736 else
25737 gt_cv_func_unsetenv_ret='void'
25738 fi
25739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25740 fi
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25742 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25743 if test $gt_cv_func_unsetenv_ret = 'void'; then
25744
25745 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25746
25747 REPLACE_UNSETENV=1
25748 fi
25749
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25751 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25752 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25753 $as_echo_n "(cached) " >&6
25754 else
25755 if test "$cross_compiling" = yes; then :
25756 case "$host_os" in
25757 # Guess yes on glibc systems.
25758 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25759 # If we don't know, assume the worst.
25760 *) gl_cv_func_unsetenv_works="guessing no" ;;
25761 esac
25762
25763 else
25764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25765 /* end confdefs.h. */
25766
25767 #include <stdlib.h>
25768 #include <errno.h>
25769 extern char **environ;
25770
25771 int
25772 main ()
25773 {
25774
25775 char entry1[] = "a=1";
25776 char entry2[] = "b=2";
25777 char *env[] = { entry1, entry2, NULL };
25778 if (putenv ((char *) "a=1")) return 1;
25779 if (putenv (entry2)) return 2;
25780 entry2[0] = 'a';
25781 unsetenv ("a");
25782 if (getenv ("a")) return 3;
25783 if (!unsetenv ("") || errno != EINVAL) return 4;
25784 entry2[0] = 'b';
25785 environ = env;
25786 if (!getenv ("a")) return 5;
25787 entry2[0] = 'a';
25788 unsetenv ("a");
25789 if (getenv ("a")) return 6;
25790
25791 ;
25792 return 0;
25793 }
25794 _ACEOF
25795 if ac_fn_c_try_run "$LINENO"; then :
25796 gl_cv_func_unsetenv_works=yes
25797 else
25798 gl_cv_func_unsetenv_works=no
25799 fi
25800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25801 conftest.$ac_objext conftest.beam conftest.$ac_ext
25802 fi
25803
25804 fi
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25806 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25807 case "$gl_cv_func_unsetenv_works" in
25808 *yes) ;;
25809 *)
25810 REPLACE_UNSETENV=1
25811 ;;
25812 esac
25813 fi
25814
25815 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25816
25817
25818
25819
25820
25821
25822
25823
25824 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25825
25826
25827
25828
25829
25830 fi
25831
25832
25833
25834
25835
25836 GNULIB_UNSETENV=1
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25850 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25851 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25852 $as_echo_n "(cached) " >&6
25853 else
25854 touch conftest.file
25855 if test "$cross_compiling" = yes; then :
25856 case "$host_os" in
25857 # Guess yes on glibc systems.
25858 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
25859 # If we don't know, assume the worst.
25860 *) gl_cv_func_futimesat_works="guessing no" ;;
25861 esac
25862
25863 else
25864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25865 /* end confdefs.h. */
25866
25867 #include <stddef.h>
25868 #include <sys/times.h>
25869 #include <fcntl.h>
25870
25871 int
25872 main ()
25873 {
25874 int fd = open ("conftest.file", O_RDWR);
25875 if (fd < 0) return 1;
25876 if (futimesat (fd, NULL, NULL)) return 2;
25877
25878 ;
25879 return 0;
25880 }
25881 _ACEOF
25882 if ac_fn_c_try_run "$LINENO"; then :
25883 gl_cv_func_futimesat_works=yes
25884 else
25885 gl_cv_func_futimesat_works=no
25886 fi
25887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25888 conftest.$ac_objext conftest.beam conftest.$ac_ext
25889 fi
25890
25891 rm -f conftest.file
25892 fi
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25894 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25895 case "$gl_cv_func_futimesat_works" in
25896 *yes) ;;
25897 *)
25898
25899 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25900
25901 ;;
25902 esac
25903 fi
25904
25905 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
25906 gl_gnulib_enabled_dosname=false
25907 gl_gnulib_enabled_euidaccess=false
25908 gl_gnulib_enabled_getgroups=false
25909 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
25910 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
25911 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
25912 gl_gnulib_enabled_pathmax=false
25913 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
25914 gl_gnulib_enabled_stat=false
25915 gl_gnulib_enabled_strtoll=false
25916 gl_gnulib_enabled_strtoull=false
25917 gl_gnulib_enabled_verify=false
25918 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
25919 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
25920 {
25921 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25922
25923
25924
25925
25926
25927
25928
25929
25930 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
25931
25932 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
25933 fi
25934 }
25935 func_gl_gnulib_m4code_dosname ()
25936 {
25937 if ! $gl_gnulib_enabled_dosname; then
25938 gl_gnulib_enabled_dosname=true
25939 fi
25940 }
25941 func_gl_gnulib_m4code_euidaccess ()
25942 {
25943 if ! $gl_gnulib_enabled_euidaccess; then
25944
25945
25946
25947
25948
25949 for ac_func in euidaccess
25950 do :
25951 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25952 if test "x$ac_cv_func_euidaccess" = x""yes; then :
25953 cat >>confdefs.h <<_ACEOF
25954 #define HAVE_EUIDACCESS 1
25955 _ACEOF
25956
25957 fi
25958 done
25959
25960 if test $ac_cv_func_euidaccess = no; then
25961 HAVE_EUIDACCESS=0
25962 fi
25963
25964 if test $HAVE_EUIDACCESS = 0; then
25965
25966
25967
25968
25969
25970
25971
25972
25973 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
25974
25975
25976
25977 for ac_header in libgen.h
25978 do :
25979 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25980 if test "x$ac_cv_header_libgen_h" = x""yes; then :
25981 cat >>confdefs.h <<_ACEOF
25982 #define HAVE_LIBGEN_H 1
25983 _ACEOF
25984
25985 fi
25986
25987 done
25988
25989
25990 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25991 if test "x$ac_cv_func_getgroups" = x""yes; then :
25992
25993 fi
25994
25995
25996 # If we don't yet have getgroups, see if it's in -lbsd.
25997 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25998 ac_save_LIBS=$LIBS
25999 if test $ac_cv_func_getgroups = no; then
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
26001 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
26002 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
26003 $as_echo_n "(cached) " >&6
26004 else
26005 ac_check_lib_save_LIBS=$LIBS
26006 LIBS="-lbsd $LIBS"
26007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26008 /* end confdefs.h. */
26009
26010 /* Override any GCC internal prototype to avoid an error.
26011 Use char because int might match the return type of a GCC
26012 builtin and then its argument prototype would still apply. */
26013 #ifdef __cplusplus
26014 extern "C"
26015 #endif
26016 char getgroups ();
26017 int
26018 main ()
26019 {
26020 return getgroups ();
26021 ;
26022 return 0;
26023 }
26024 _ACEOF
26025 if ac_fn_c_try_link "$LINENO"; then :
26026 ac_cv_lib_bsd_getgroups=yes
26027 else
26028 ac_cv_lib_bsd_getgroups=no
26029 fi
26030 rm -f core conftest.err conftest.$ac_objext \
26031 conftest$ac_exeext conftest.$ac_ext
26032 LIBS=$ac_check_lib_save_LIBS
26033 fi
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
26035 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
26036 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
26037 GETGROUPS_LIB=-lbsd
26038 fi
26039
26040 fi
26041
26042 # Run the program to test the functionality of the system-supplied
26043 # getgroups function only if there is such a function.
26044 if test $ac_cv_func_getgroups = yes; then
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
26046 $as_echo_n "checking for working getgroups... " >&6; }
26047 if test "${ac_cv_func_getgroups_works+set}" = set; then :
26048 $as_echo_n "(cached) " >&6
26049 else
26050 if test "$cross_compiling" = yes; then :
26051 case "$host_os" in # ((
26052 # Guess yes on glibc systems.
26053 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
26054 # If we don't know, assume the worst.
26055 *) ac_cv_func_getgroups_works="guessing no" ;;
26056 esac
26057
26058 else
26059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26060 /* end confdefs.h. */
26061 $ac_includes_default
26062 int
26063 main ()
26064 {
26065 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26066 return getgroups (0, 0) == -1;
26067 ;
26068 return 0;
26069 }
26070
26071 _ACEOF
26072 if ac_fn_c_try_run "$LINENO"; then :
26073 ac_cv_func_getgroups_works=yes
26074 else
26075 ac_cv_func_getgroups_works=no
26076 fi
26077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26078 conftest.$ac_objext conftest.beam conftest.$ac_ext
26079 fi
26080
26081
26082 fi
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
26084 $as_echo "$ac_cv_func_getgroups_works" >&6; }
26085 else
26086 ac_cv_func_getgroups_works=no
26087 fi
26088 case "$ac_cv_func_getgroups_works" in
26089 *yes)
26090
26091 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
26092
26093 ;;
26094 esac
26095 LIBS=$ac_save_LIBS
26096
26097
26098 # Solaris 9 and 10 need -lgen to get the eaccess function.
26099 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
26100 # programs in the package would end up linked with that potentially-shared
26101 # library, inducing unnecessary run-time overhead.
26102 LIB_EACCESS=
26103
26104 gl_saved_libs=$LIBS
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
26106 $as_echo_n "checking for library containing eaccess... " >&6; }
26107 if test "${ac_cv_search_eaccess+set}" = set; then :
26108 $as_echo_n "(cached) " >&6
26109 else
26110 ac_func_search_save_LIBS=$LIBS
26111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26112 /* end confdefs.h. */
26113
26114 /* Override any GCC internal prototype to avoid an error.
26115 Use char because int might match the return type of a GCC
26116 builtin and then its argument prototype would still apply. */
26117 #ifdef __cplusplus
26118 extern "C"
26119 #endif
26120 char eaccess ();
26121 int
26122 main ()
26123 {
26124 return eaccess ();
26125 ;
26126 return 0;
26127 }
26128 _ACEOF
26129 for ac_lib in '' gen; do
26130 if test -z "$ac_lib"; then
26131 ac_res="none required"
26132 else
26133 ac_res=-l$ac_lib
26134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26135 fi
26136 if ac_fn_c_try_link "$LINENO"; then :
26137 ac_cv_search_eaccess=$ac_res
26138 fi
26139 rm -f core conftest.err conftest.$ac_objext \
26140 conftest$ac_exeext
26141 if test "${ac_cv_search_eaccess+set}" = set; then :
26142 break
26143 fi
26144 done
26145 if test "${ac_cv_search_eaccess+set}" = set; then :
26146
26147 else
26148 ac_cv_search_eaccess=no
26149 fi
26150 rm conftest.$ac_ext
26151 LIBS=$ac_func_search_save_LIBS
26152 fi
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
26154 $as_echo "$ac_cv_search_eaccess" >&6; }
26155 ac_res=$ac_cv_search_eaccess
26156 if test "$ac_res" != no; then :
26157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26158 test "$ac_cv_search_eaccess" = "none required" ||
26159 LIB_EACCESS=$ac_cv_search_eaccess
26160 fi
26161
26162 for ac_func in eaccess
26163 do :
26164 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
26165 if test "x$ac_cv_func_eaccess" = x""yes; then :
26166 cat >>confdefs.h <<_ACEOF
26167 #define HAVE_EACCESS 1
26168 _ACEOF
26169
26170 fi
26171 done
26172
26173 LIBS=$gl_saved_libs
26174
26175 fi
26176
26177
26178
26179
26180
26181 GNULIB_EUIDACCESS=1
26182
26183
26184
26185
26186
26187 gl_gnulib_enabled_euidaccess=true
26188 if test $HAVE_EUIDACCESS = 0; then
26189 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
26190 fi
26191 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
26192 if test $HAVE_EUIDACCESS = 0; then
26193 func_gl_gnulib_m4code_stat
26194 fi
26195 fi
26196 }
26197 func_gl_gnulib_m4code_getgroups ()
26198 {
26199 if ! $gl_gnulib_enabled_getgroups; then
26200
26201
26202
26203
26204
26205 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
26206 if test "x$ac_cv_func_getgroups" = x""yes; then :
26207
26208 fi
26209
26210
26211 # If we don't yet have getgroups, see if it's in -lbsd.
26212 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26213 ac_save_LIBS=$LIBS
26214 if test $ac_cv_func_getgroups = no; then
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
26216 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
26217 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
26218 $as_echo_n "(cached) " >&6
26219 else
26220 ac_check_lib_save_LIBS=$LIBS
26221 LIBS="-lbsd $LIBS"
26222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26223 /* end confdefs.h. */
26224
26225 /* Override any GCC internal prototype to avoid an error.
26226 Use char because int might match the return type of a GCC
26227 builtin and then its argument prototype would still apply. */
26228 #ifdef __cplusplus
26229 extern "C"
26230 #endif
26231 char getgroups ();
26232 int
26233 main ()
26234 {
26235 return getgroups ();
26236 ;
26237 return 0;
26238 }
26239 _ACEOF
26240 if ac_fn_c_try_link "$LINENO"; then :
26241 ac_cv_lib_bsd_getgroups=yes
26242 else
26243 ac_cv_lib_bsd_getgroups=no
26244 fi
26245 rm -f core conftest.err conftest.$ac_objext \
26246 conftest$ac_exeext conftest.$ac_ext
26247 LIBS=$ac_check_lib_save_LIBS
26248 fi
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
26250 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
26251 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
26252 GETGROUPS_LIB=-lbsd
26253 fi
26254
26255 fi
26256
26257 # Run the program to test the functionality of the system-supplied
26258 # getgroups function only if there is such a function.
26259 if test $ac_cv_func_getgroups = yes; then
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
26261 $as_echo_n "checking for working getgroups... " >&6; }
26262 if test "${ac_cv_func_getgroups_works+set}" = set; then :
26263 $as_echo_n "(cached) " >&6
26264 else
26265 if test "$cross_compiling" = yes; then :
26266 case "$host_os" in # ((
26267 # Guess yes on glibc systems.
26268 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
26269 # If we don't know, assume the worst.
26270 *) ac_cv_func_getgroups_works="guessing no" ;;
26271 esac
26272
26273 else
26274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26275 /* end confdefs.h. */
26276 $ac_includes_default
26277 int
26278 main ()
26279 {
26280 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26281 return getgroups (0, 0) == -1;
26282 ;
26283 return 0;
26284 }
26285
26286 _ACEOF
26287 if ac_fn_c_try_run "$LINENO"; then :
26288 ac_cv_func_getgroups_works=yes
26289 else
26290 ac_cv_func_getgroups_works=no
26291 fi
26292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26293 conftest.$ac_objext conftest.beam conftest.$ac_ext
26294 fi
26295
26296
26297 fi
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
26299 $as_echo "$ac_cv_func_getgroups_works" >&6; }
26300 else
26301 ac_cv_func_getgroups_works=no
26302 fi
26303 case "$ac_cv_func_getgroups_works" in
26304 *yes)
26305
26306 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
26307
26308 ;;
26309 esac
26310 LIBS=$ac_save_LIBS
26311
26312 if test $ac_cv_func_getgroups != yes; then
26313 HAVE_GETGROUPS=0
26314 else
26315 if test "$ac_cv_type_getgroups" != gid_t \
26316 || { case "$ac_cv_func_getgroups_works" in
26317 *yes) false;;
26318 *) true;;
26319 esac
26320 }; then
26321 REPLACE_GETGROUPS=1
26322
26323 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
26324
26325 else
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
26327 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
26328 if test "${gl_cv_func_getgroups_works+set}" = set; then :
26329 $as_echo_n "(cached) " >&6
26330 else
26331 if test "$cross_compiling" = yes; then :
26332 case "$host_os" in
26333 # Guess yes on glibc systems.
26334 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
26335 # If we don't know, assume the worst.
26336 *) gl_cv_func_getgroups_works="guessing no" ;;
26337 esac
26338
26339 else
26340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26341 /* end confdefs.h. */
26342 $ac_includes_default
26343 int
26344 main ()
26345 {
26346 int size = getgroups (0, 0);
26347 gid_t *list = malloc (size * sizeof *list);
26348 return getgroups (-1, list) != -1;
26349 ;
26350 return 0;
26351 }
26352 _ACEOF
26353 if ac_fn_c_try_run "$LINENO"; then :
26354 gl_cv_func_getgroups_works=yes
26355 else
26356 gl_cv_func_getgroups_works=no
26357 fi
26358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26359 conftest.$ac_objext conftest.beam conftest.$ac_ext
26360 fi
26361
26362 fi
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
26364 $as_echo "$gl_cv_func_getgroups_works" >&6; }
26365 case "$gl_cv_func_getgroups_works" in
26366 *yes) ;;
26367 *) REPLACE_GETGROUPS=1 ;;
26368 esac
26369 fi
26370 fi
26371 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
26372
26373 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
26374
26375
26376
26377
26378
26379
26380
26381
26382 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
26383
26384 fi
26385
26386
26387
26388
26389
26390 GNULIB_GETGROUPS=1
26391
26392
26393
26394
26395
26396 gl_gnulib_enabled_getgroups=true
26397 fi
26398 }
26399 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
26400 {
26401 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26402
26403
26404 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
26405 fi
26406 }
26407 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
26408 {
26409 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26410
26411
26412
26413
26414
26415 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
26416 if test "x$ac_cv_func_group_member" = x""yes; then :
26417
26418 else
26419
26420 HAVE_GROUP_MEMBER=0
26421
26422 fi
26423
26424
26425 if test $HAVE_GROUP_MEMBER = 0; then
26426
26427
26428
26429
26430
26431
26432
26433
26434 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
26435
26436
26437
26438
26439 fi
26440
26441
26442
26443
26444
26445 GNULIB_GROUP_MEMBER=1
26446
26447
26448
26449
26450
26451 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
26452 if test $HAVE_GROUP_MEMBER = 0; then
26453 func_gl_gnulib_m4code_getgroups
26454 fi
26455 if test $HAVE_GROUP_MEMBER = 0; then
26456 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
26457 fi
26458 fi
26459 }
26460 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
26461 {
26462 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26463 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
26464 fi
26465 }
26466 func_gl_gnulib_m4code_pathmax ()
26467 {
26468 if ! $gl_gnulib_enabled_pathmax; then
26469
26470
26471
26472 gl_gnulib_enabled_pathmax=true
26473 fi
26474 }
26475 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
26476 {
26477 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26478 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
26479 fi
26480 }
26481 func_gl_gnulib_m4code_stat ()
26482 {
26483 if ! $gl_gnulib_enabled_stat; then
26484
26485
26486
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
26488 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
26489 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
26490 $as_echo_n "(cached) " >&6
26491 else
26492 if test "$cross_compiling" = yes; then :
26493 case $host_os in
26494 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
26495 *) gl_cv_func_stat_dir_slash="guessing yes";;
26496 esac
26497 else
26498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26499 /* end confdefs.h. */
26500 #include <sys/stat.h>
26501
26502 int
26503 main ()
26504 {
26505 struct stat st; return stat (".", &st) != stat ("./", &st);
26506 ;
26507 return 0;
26508 }
26509 _ACEOF
26510 if ac_fn_c_try_run "$LINENO"; then :
26511 gl_cv_func_stat_dir_slash=yes
26512 else
26513 gl_cv_func_stat_dir_slash=no
26514 fi
26515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26516 conftest.$ac_objext conftest.beam conftest.$ac_ext
26517 fi
26518
26519 fi
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
26521 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26523 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26524 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
26525 $as_echo_n "(cached) " >&6
26526 else
26527 touch conftest.tmp
26528 # Assume that if we have lstat, we can also check symlinks.
26529 if test $ac_cv_func_lstat = yes; then
26530 ln -s conftest.tmp conftest.lnk
26531 fi
26532 if test "$cross_compiling" = yes; then :
26533 case "$host_os" in
26534 # Guess yes on glibc systems.
26535 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
26536 # If we don't know, assume the worst.
26537 *) gl_cv_func_stat_file_slash="guessing no" ;;
26538 esac
26539
26540 else
26541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26542 /* end confdefs.h. */
26543 #include <sys/stat.h>
26544
26545 int
26546 main ()
26547 {
26548 int result = 0;
26549 struct stat st;
26550 if (!stat ("conftest.tmp/", &st))
26551 result |= 1;
26552 #if HAVE_LSTAT
26553 if (!stat ("conftest.lnk/", &st))
26554 result |= 2;
26555 #endif
26556 return result;
26557
26558 ;
26559 return 0;
26560 }
26561 _ACEOF
26562 if ac_fn_c_try_run "$LINENO"; then :
26563 gl_cv_func_stat_file_slash=yes
26564 else
26565 gl_cv_func_stat_file_slash=no
26566 fi
26567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26568 conftest.$ac_objext conftest.beam conftest.$ac_ext
26569 fi
26570
26571 rm -f conftest.tmp conftest.lnk
26572 fi
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26574 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26575 case $gl_cv_func_stat_dir_slash in
26576 *no) REPLACE_STAT=1
26577
26578 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
26579 ;;
26580 esac
26581 case $gl_cv_func_stat_file_slash in
26582 *no) REPLACE_STAT=1
26583
26584 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26585 ;;
26586 esac
26587
26588 if test $REPLACE_STAT = 1; then
26589
26590
26591
26592
26593
26594
26595
26596
26597 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
26598
26599 :
26600 fi
26601
26602
26603
26604
26605
26606 GNULIB_STAT=1
26607
26608
26609
26610
26611
26612 gl_gnulib_enabled_stat=true
26613 if test $REPLACE_STAT = 1; then
26614 func_gl_gnulib_m4code_dosname
26615 fi
26616 if test $REPLACE_STAT = 1; then
26617 func_gl_gnulib_m4code_pathmax
26618 fi
26619 if test $REPLACE_STAT = 1; then
26620 func_gl_gnulib_m4code_verify
26621 fi
26622 fi
26623 }
26624 func_gl_gnulib_m4code_strtoll ()
26625 {
26626 if ! $gl_gnulib_enabled_strtoll; then
26627
26628
26629
26630 if test "$ac_cv_type_long_long_int" = yes; then
26631 for ac_func in strtoll
26632 do :
26633 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
26634 if test "x$ac_cv_func_strtoll" = x""yes; then :
26635 cat >>confdefs.h <<_ACEOF
26636 #define HAVE_STRTOLL 1
26637 _ACEOF
26638
26639 fi
26640 done
26641
26642 if test $ac_cv_func_strtoll = no; then
26643 HAVE_STRTOLL=0
26644 fi
26645 fi
26646
26647 if test $HAVE_STRTOLL = 0; then
26648
26649
26650
26651
26652
26653
26654
26655
26656 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
26657
26658
26659 :
26660
26661 fi
26662
26663
26664
26665
26666
26667 GNULIB_STRTOLL=1
26668
26669
26670
26671
26672
26673 gl_gnulib_enabled_strtoll=true
26674 fi
26675 }
26676 func_gl_gnulib_m4code_strtoull ()
26677 {
26678 if ! $gl_gnulib_enabled_strtoull; then
26679
26680
26681
26682 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26683 for ac_func in strtoull
26684 do :
26685 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
26686 if test "x$ac_cv_func_strtoull" = x""yes; then :
26687 cat >>confdefs.h <<_ACEOF
26688 #define HAVE_STRTOULL 1
26689 _ACEOF
26690
26691 fi
26692 done
26693
26694 if test $ac_cv_func_strtoull = no; then
26695 HAVE_STRTOULL=0
26696 fi
26697 fi
26698
26699 if test $HAVE_STRTOULL = 0; then
26700
26701
26702
26703
26704
26705
26706
26707
26708 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
26709
26710
26711 :
26712
26713 fi
26714
26715
26716
26717
26718
26719 GNULIB_STRTOULL=1
26720
26721
26722
26723
26724
26725 gl_gnulib_enabled_strtoull=true
26726 fi
26727 }
26728 func_gl_gnulib_m4code_verify ()
26729 {
26730 if ! $gl_gnulib_enabled_verify; then
26731 gl_gnulib_enabled_verify=true
26732 fi
26733 }
26734 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
26735 {
26736 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26737 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
26738 fi
26739 }
26740 if test $HAVE_FACCESSAT = 0; then
26741 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26742 fi
26743 if test $HAVE_FACCESSAT = 0; then
26744 func_gl_gnulib_m4code_dosname
26745 fi
26746 if test $HAVE_FACCESSAT = 0; then
26747 func_gl_gnulib_m4code_euidaccess
26748 fi
26749 if test $HAVE_FACCESSAT = 0; then
26750 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26751 fi
26752 if test $HAVE_FDOPENDIR = 0; then
26753 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26754 fi
26755 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26756 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26757 fi
26758 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26759 func_gl_gnulib_m4code_dosname
26760 fi
26761 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26762 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26763 fi
26764 if test $REPLACE_GETOPT = 1; then
26765 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26766 fi
26767 if test $REPLACE_LSTAT = 1; then
26768 func_gl_gnulib_m4code_dosname
26769 fi
26770 if test $REPLACE_LSTAT = 1; then
26771 func_gl_gnulib_m4code_stat
26772 fi
26773 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26774 func_gl_gnulib_m4code_stat
26775 fi
26776 if test $HAVE_READLINKAT = 0; then
26777 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26778 fi
26779 if test $HAVE_READLINKAT = 0; then
26780 func_gl_gnulib_m4code_dosname
26781 fi
26782 if test $HAVE_READLINKAT = 0; then
26783 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26784 fi
26785 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26786 func_gl_gnulib_m4code_strtoll
26787 fi
26788 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26789 func_gl_gnulib_m4code_verify
26790 fi
26791 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
26792 func_gl_gnulib_m4code_strtoull
26793 fi
26794 if test $ac_cv_func_strtoumax = no; then
26795 func_gl_gnulib_m4code_verify
26796 fi
26797
26798 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26799 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
26800 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
26801 else
26802 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
26803 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
26804 fi
26805
26806 if $gl_gnulib_enabled_dosname; then
26807 gl_GNULIB_ENABLED_dosname_TRUE=
26808 gl_GNULIB_ENABLED_dosname_FALSE='#'
26809 else
26810 gl_GNULIB_ENABLED_dosname_TRUE='#'
26811 gl_GNULIB_ENABLED_dosname_FALSE=
26812 fi
26813
26814 if $gl_gnulib_enabled_euidaccess; then
26815 gl_GNULIB_ENABLED_euidaccess_TRUE=
26816 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
26817 else
26818 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
26819 gl_GNULIB_ENABLED_euidaccess_FALSE=
26820 fi
26821
26822 if $gl_gnulib_enabled_getgroups; then
26823 gl_GNULIB_ENABLED_getgroups_TRUE=
26824 gl_GNULIB_ENABLED_getgroups_FALSE='#'
26825 else
26826 gl_GNULIB_ENABLED_getgroups_TRUE='#'
26827 gl_GNULIB_ENABLED_getgroups_FALSE=
26828 fi
26829
26830 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26831 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
26832 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
26833 else
26834 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
26835 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
26836 fi
26837
26838 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26839 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
26840 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
26841 else
26842 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
26843 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
26844 fi
26845
26846 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26847 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
26848 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
26849 else
26850 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
26851 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
26852 fi
26853
26854 if $gl_gnulib_enabled_pathmax; then
26855 gl_GNULIB_ENABLED_pathmax_TRUE=
26856 gl_GNULIB_ENABLED_pathmax_FALSE='#'
26857 else
26858 gl_GNULIB_ENABLED_pathmax_TRUE='#'
26859 gl_GNULIB_ENABLED_pathmax_FALSE=
26860 fi
26861
26862 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26863 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
26864 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
26865 else
26866 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
26867 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
26868 fi
26869
26870 if $gl_gnulib_enabled_stat; then
26871 gl_GNULIB_ENABLED_stat_TRUE=
26872 gl_GNULIB_ENABLED_stat_FALSE='#'
26873 else
26874 gl_GNULIB_ENABLED_stat_TRUE='#'
26875 gl_GNULIB_ENABLED_stat_FALSE=
26876 fi
26877
26878 if $gl_gnulib_enabled_strtoll; then
26879 gl_GNULIB_ENABLED_strtoll_TRUE=
26880 gl_GNULIB_ENABLED_strtoll_FALSE='#'
26881 else
26882 gl_GNULIB_ENABLED_strtoll_TRUE='#'
26883 gl_GNULIB_ENABLED_strtoll_FALSE=
26884 fi
26885
26886 if $gl_gnulib_enabled_strtoull; then
26887 gl_GNULIB_ENABLED_strtoull_TRUE=
26888 gl_GNULIB_ENABLED_strtoull_FALSE='#'
26889 else
26890 gl_GNULIB_ENABLED_strtoull_TRUE='#'
26891 gl_GNULIB_ENABLED_strtoull_FALSE=
26892 fi
26893
26894 if $gl_gnulib_enabled_verify; then
26895 gl_GNULIB_ENABLED_verify_TRUE=
26896 gl_GNULIB_ENABLED_verify_FALSE='#'
26897 else
26898 gl_GNULIB_ENABLED_verify_TRUE='#'
26899 gl_GNULIB_ENABLED_verify_FALSE=
26900 fi
26901
26902 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26903 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
26904 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
26905 else
26906 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
26907 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
26908 fi
26909
26910 # End of code from modules
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920 gltests_libdeps=
26921 gltests_ltlibdeps=
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931 gl_source_base='tests'
26932 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
26933
26934 gl_module_indicator_condition=$gltests_WITNESS
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945 LIBGNU_LIBDEPS="$gl_libdeps"
26946
26947 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
26948
26949
26950 CFLAGS=$SAVE_CFLAGS
26951 LIBS=$SAVE_LIBS
26952
26953 case "$opsys" in
26954 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26955
26956 darwin)
26957 ## The -headerpad option tells ld (see man page) to leave room at the
26958 ## end of the header for adding load commands. Needed for dumping.
26959 ## 0x690 is the total size of 30 segment load commands (at 56
26960 ## each); under Cocoa 31 commands are required.
26961 if test "$HAVE_NS" = "yes"; then
26962 libs_nsgui="-framework AppKit"
26963 headerpad_extra=6C8
26964 else
26965 libs_nsgui=
26966 headerpad_extra=690
26967 fi
26968 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26969
26970 ## This is here because src/Makefile.in did some extra fiddling around
26971 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
26972 ## LD_SWITCH_SYSTEM_TEMACS instead,
26973 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26974 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
26975 ;;
26976
26977 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26978 ## find X at run-time.
26979 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26980 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26981 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26982 ## had different values in configure (in ac_link) and src/Makefile.in.
26983 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26984 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26985
26986 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26987 esac
26988
26989 if test x$ac_enable_profiling != x ; then
26990 case $opsys in
26991 *freebsd | gnu-linux) ;;
26992 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
26993 esac
26994 fi
26995
26996
26997
26998 ## Common for all window systems
26999 if test "$window_system" != "none"; then
27000
27001 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
27002
27003 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
27004 fi
27005
27006
27007
27008
27009
27010 #### Report on what we decided to do.
27011 #### Report GTK as a toolkit, even if it doesn't use Xt.
27012 #### It makes printing result more understandable as using GTK sets
27013 #### toolkit_scroll_bars to yes by default.
27014 if test "${HAVE_GTK}" = "yes"; then
27015 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
27016 fi
27017
27018 echo "
27019 Configured for \`${canonical}'.
27020
27021 Where should the build process find the source code? ${srcdir}
27022 What compiler should emacs be built with? ${CC} ${CFLAGS}
27023 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
27024 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
27025 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
27026 What window system should Emacs use? ${window_system}
27027 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
27028
27029 if test -n "${x_includes}"; then
27030 echo " Where do we find X Windows header files? ${x_includes}"
27031 else
27032 echo " Where do we find X Windows header files? Standard dirs"
27033 fi
27034 if test -n "${x_libraries}"; then
27035 echo " Where do we find X Windows libraries? ${x_libraries}"
27036 else
27037 echo " Where do we find X Windows libraries? Standard dirs"
27038 fi
27039
27040 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
27041 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
27042 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
27043 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
27044 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
27045 echo " Does Emacs use -lpng? ${HAVE_PNG}"
27046 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
27047 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
27048
27049 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
27050 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
27051 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
27052 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
27053 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
27054 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
27055 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
27056
27057 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
27058 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
27059 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
27060 echo " Does Emacs use -lxft? ${HAVE_XFT}"
27061
27062 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
27063 echo
27064
27065 if test -n "${EMACSDATA}"; then
27066 echo " Environment variable EMACSDATA set to: $EMACSDATA"
27067 fi
27068 if test -n "${EMACSDOC}"; then
27069 echo " Environment variable EMACSDOC set to: $EMACSDOC"
27070 fi
27071
27072 echo
27073
27074 if test "$HAVE_NS" = "yes"; then
27075 echo
27076 echo "You must run \"${MAKE-make} install\" in order to test the built application.
27077 The installed application will go to nextstep/Emacs.app and can be
27078 run or moved from there."
27079 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
27080 echo "The application will be fully self-contained."
27081 else
27082 echo "The lisp resources for the application will be installed under ${prefix}.
27083 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
27084 to run if these resources are not installed."
27085 fi
27086 echo
27087 fi
27088
27089 if test "${opsys}" = "cygwin"; then
27090 case `uname -r` in
27091 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
27092 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
27093 echo
27094 ;;
27095 esac
27096 fi
27097
27098 # Remove any trailing slashes in these variables.
27099 test "${prefix}" != NONE &&
27100 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
27101 test "${exec_prefix}" != NONE &&
27102 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
27103
27104 if test "$HAVE_NS" = "yes"; then
27105 if test "$NS_IMPL_GNUSTEP" = yes; then
27106 ac_config_files="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in"
27107
27108 else
27109 ac_config_files="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in"
27110
27111 fi
27112 fi
27113
27114 SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile"
27115
27116 ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile"
27117
27118
27119 opt_makefile=test/automated/Makefile
27120
27121 if test -f "$srcdir/$opt_makefile.in"; then
27122 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
27123 ac_config_files="$ac_config_files test/automated/Makefile"
27124
27125 fi
27126
27127
27128 opt_makefile=admin/unidata/Makefile
27129
27130 if test -f "$srcdir/$opt_makefile.in"; then
27131 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
27132 ac_config_files="$ac_config_files admin/unidata/Makefile"
27133
27134 fi
27135
27136
27137 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
27138
27139
27140
27141 ac_config_commands="$ac_config_commands mkdirs"
27142
27143
27144 ac_config_commands="$ac_config_commands epaths"
27145
27146
27147 ac_config_commands="$ac_config_commands gdbinit"
27148
27149
27150 cat >confcache <<\_ACEOF
27151 # This file is a shell script that caches the results of configure
27152 # tests run on this system so they can be shared between configure
27153 # scripts and configure runs, see configure's option --config-cache.
27154 # It is not useful on other systems. If it contains results you don't
27155 # want to keep, you may remove or edit it.
27156 #
27157 # config.status only pays attention to the cache file if you give it
27158 # the --recheck option to rerun configure.
27159 #
27160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27162 # following values.
27163
27164 _ACEOF
27165
27166 # The following way of writing the cache mishandles newlines in values,
27167 # but we know of no workaround that is simple, portable, and efficient.
27168 # So, we kill variables containing newlines.
27169 # Ultrix sh set writes to stderr and can't be redirected directly,
27170 # and sets the high bit in the cache file unless we assign to the vars.
27171 (
27172 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27173 eval ac_val=\$$ac_var
27174 case $ac_val in #(
27175 *${as_nl}*)
27176 case $ac_var in #(
27177 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27179 esac
27180 case $ac_var in #(
27181 _ | IFS | as_nl) ;; #(
27182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27183 *) { eval $ac_var=; unset $ac_var;} ;;
27184 esac ;;
27185 esac
27186 done
27187
27188 (set) 2>&1 |
27189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27190 *${as_nl}ac_space=\ *)
27191 # `set' does not quote correctly, so add quotes: double-quote
27192 # substitution turns \\\\ into \\, and sed turns \\ into \.
27193 sed -n \
27194 "s/'/'\\\\''/g;
27195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27196 ;; #(
27197 *)
27198 # `set' quotes correctly as required by POSIX, so do not add quotes.
27199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27200 ;;
27201 esac |
27202 sort
27203 ) |
27204 sed '
27205 /^ac_cv_env_/b end
27206 t clear
27207 :clear
27208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27209 t end
27210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27211 :end' >>confcache
27212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27213 if test -w "$cache_file"; then
27214 test "x$cache_file" != "x/dev/null" &&
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27216 $as_echo "$as_me: updating cache $cache_file" >&6;}
27217 cat confcache >$cache_file
27218 else
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27220 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27221 fi
27222 fi
27223 rm -f confcache
27224
27225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27226 # Let make expand exec_prefix.
27227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27228
27229 DEFS=-DHAVE_CONFIG_H
27230
27231 ac_libobjs=
27232 ac_ltlibobjs=
27233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27234 # 1. Remove the extension, and $U if already installed.
27235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27236 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27238 # will be set to the directory where LIBOBJS objects are built.
27239 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27240 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27241 done
27242 LIBOBJS=$ac_libobjs
27243
27244 LTLIBOBJS=$ac_ltlibobjs
27245
27246
27247 if test -n "$EXEEXT"; then
27248 am__EXEEXT_TRUE=
27249 am__EXEEXT_FALSE='#'
27250 else
27251 am__EXEEXT_TRUE='#'
27252 am__EXEEXT_FALSE=
27253 fi
27254
27255 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27256 as_fn_error "conditional \"AMDEP\" was never defined.
27257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27258 fi
27259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27260 as_fn_error "conditional \"am__fastdepCC\" was never defined.
27261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27262 fi
27263 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27264 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
27265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27266 fi
27267 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27268 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27270 fi
27271
27272 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
27273 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
27274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27275 fi
27276 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27277 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
27278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27279 fi
27280 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27281 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27283 fi
27284 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
27285 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
27286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27287 fi
27288 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27289 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27291 fi
27292 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27293 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27295 fi
27296 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
27297 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
27298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27299 fi
27300 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
27301 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
27302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27303 fi
27304 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
27305 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
27306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27307 fi
27308 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
27309 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
27310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27311 fi
27312 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
27313 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
27314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27315 fi
27316 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
27317 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
27318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27319 fi
27320 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
27321 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
27322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27323 fi
27324 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
27325 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
27326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27327 fi
27328 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
27329 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
27330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27331 fi
27332 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
27333 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
27334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27335 fi
27336 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
27337 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
27338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27339 fi
27340 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
27341 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
27342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27343 fi
27344 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
27345 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
27346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27347 fi
27348 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
27349 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
27350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27351 fi
27352
27353 gl_libobjs=
27354 gl_ltlibobjs=
27355 if test -n "$gl_LIBOBJS"; then
27356 # Remove the extension.
27357 sed_drop_objext='s/\.o$//;s/\.obj$//'
27358 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27359 gl_libobjs="$gl_libobjs $i.$ac_objext"
27360 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27361 done
27362 fi
27363 gl_LIBOBJS=$gl_libobjs
27364
27365 gl_LTLIBOBJS=$gl_ltlibobjs
27366
27367
27368
27369 gltests_libobjs=
27370 gltests_ltlibobjs=
27371 if test -n "$gltests_LIBOBJS"; then
27372 # Remove the extension.
27373 sed_drop_objext='s/\.o$//;s/\.obj$//'
27374 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27375 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27376 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27377 done
27378 fi
27379 gltests_LIBOBJS=$gltests_libobjs
27380
27381 gltests_LTLIBOBJS=$gltests_ltlibobjs
27382
27383
27384
27385 : ${CONFIG_STATUS=./config.status}
27386 ac_write_fail=0
27387 ac_clean_files_save=$ac_clean_files
27388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27390 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27391 as_write_fail=0
27392 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27393 #! $SHELL
27394 # Generated by $as_me.
27395 # Run this file to recreate the current configuration.
27396 # Compiler output produced by configure, useful for debugging
27397 # configure, is in config.log if it exists.
27398
27399 debug=false
27400 ac_cs_recheck=false
27401 ac_cs_silent=false
27402
27403 SHELL=\${CONFIG_SHELL-$SHELL}
27404 export SHELL
27405 _ASEOF
27406 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27407 ## -------------------- ##
27408 ## M4sh Initialization. ##
27409 ## -------------------- ##
27410
27411 # Be more Bourne compatible
27412 DUALCASE=1; export DUALCASE # for MKS sh
27413 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27414 emulate sh
27415 NULLCMD=:
27416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27417 # is contrary to our usage. Disable this feature.
27418 alias -g '${1+"$@"}'='"$@"'
27419 setopt NO_GLOB_SUBST
27420 else
27421 case `(set -o) 2>/dev/null` in #(
27422 *posix*) :
27423 set -o posix ;; #(
27424 *) :
27425 ;;
27426 esac
27427 fi
27428
27429
27430 as_nl='
27431 '
27432 export as_nl
27433 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27434 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27435 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27437 # Prefer a ksh shell builtin over an external printf program on Solaris,
27438 # but without wasting forks for bash or zsh.
27439 if test -z "$BASH_VERSION$ZSH_VERSION" \
27440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27441 as_echo='print -r --'
27442 as_echo_n='print -rn --'
27443 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27444 as_echo='printf %s\n'
27445 as_echo_n='printf %s'
27446 else
27447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27448 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27449 as_echo_n='/usr/ucb/echo -n'
27450 else
27451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27452 as_echo_n_body='eval
27453 arg=$1;
27454 case $arg in #(
27455 *"$as_nl"*)
27456 expr "X$arg" : "X\\(.*\\)$as_nl";
27457 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27458 esac;
27459 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27460 '
27461 export as_echo_n_body
27462 as_echo_n='sh -c $as_echo_n_body as_echo'
27463 fi
27464 export as_echo_body
27465 as_echo='sh -c $as_echo_body as_echo'
27466 fi
27467
27468 # The user is always right.
27469 if test "${PATH_SEPARATOR+set}" != set; then
27470 PATH_SEPARATOR=:
27471 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27472 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27473 PATH_SEPARATOR=';'
27474 }
27475 fi
27476
27477
27478 # IFS
27479 # We need space, tab and new line, in precisely that order. Quoting is
27480 # there to prevent editors from complaining about space-tab.
27481 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27482 # splitting by setting IFS to empty value.)
27483 IFS=" "" $as_nl"
27484
27485 # Find who we are. Look in the path if we contain no directory separator.
27486 case $0 in #((
27487 *[\\/]* ) as_myself=$0 ;;
27488 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27489 for as_dir in $PATH
27490 do
27491 IFS=$as_save_IFS
27492 test -z "$as_dir" && as_dir=.
27493 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27494 done
27495 IFS=$as_save_IFS
27496
27497 ;;
27498 esac
27499 # We did not find ourselves, most probably we were run as `sh COMMAND'
27500 # in which case we are not to be found in the path.
27501 if test "x$as_myself" = x; then
27502 as_myself=$0
27503 fi
27504 if test ! -f "$as_myself"; then
27505 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27506 exit 1
27507 fi
27508
27509 # Unset variables that we do not need and which cause bugs (e.g. in
27510 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27511 # suppresses any "Segmentation fault" message there. '((' could
27512 # trigger a bug in pdksh 5.2.14.
27513 for as_var in BASH_ENV ENV MAIL MAILPATH
27514 do eval test x\${$as_var+set} = xset \
27515 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27516 done
27517 PS1='$ '
27518 PS2='> '
27519 PS4='+ '
27520
27521 # NLS nuisances.
27522 LC_ALL=C
27523 export LC_ALL
27524 LANGUAGE=C
27525 export LANGUAGE
27526
27527 # CDPATH.
27528 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27529
27530
27531 # as_fn_error ERROR [LINENO LOG_FD]
27532 # ---------------------------------
27533 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27534 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27535 # script with status $?, using 1 if that was 0.
27536 as_fn_error ()
27537 {
27538 as_status=$?; test $as_status -eq 0 && as_status=1
27539 if test "$3"; then
27540 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27541 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27542 fi
27543 $as_echo "$as_me: error: $1" >&2
27544 as_fn_exit $as_status
27545 } # as_fn_error
27546
27547
27548 # as_fn_set_status STATUS
27549 # -----------------------
27550 # Set $? to STATUS, without forking.
27551 as_fn_set_status ()
27552 {
27553 return $1
27554 } # as_fn_set_status
27555
27556 # as_fn_exit STATUS
27557 # -----------------
27558 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27559 as_fn_exit ()
27560 {
27561 set +e
27562 as_fn_set_status $1
27563 exit $1
27564 } # as_fn_exit
27565
27566 # as_fn_unset VAR
27567 # ---------------
27568 # Portably unset VAR.
27569 as_fn_unset ()
27570 {
27571 { eval $1=; unset $1;}
27572 }
27573 as_unset=as_fn_unset
27574 # as_fn_append VAR VALUE
27575 # ----------------------
27576 # Append the text in VALUE to the end of the definition contained in VAR. Take
27577 # advantage of any shell optimizations that allow amortized linear growth over
27578 # repeated appends, instead of the typical quadratic growth present in naive
27579 # implementations.
27580 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27581 eval 'as_fn_append ()
27582 {
27583 eval $1+=\$2
27584 }'
27585 else
27586 as_fn_append ()
27587 {
27588 eval $1=\$$1\$2
27589 }
27590 fi # as_fn_append
27591
27592 # as_fn_arith ARG...
27593 # ------------------
27594 # Perform arithmetic evaluation on the ARGs, and store the result in the
27595 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27596 # must be portable across $(()) and expr.
27597 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27598 eval 'as_fn_arith ()
27599 {
27600 as_val=$(( $* ))
27601 }'
27602 else
27603 as_fn_arith ()
27604 {
27605 as_val=`expr "$@" || test $? -eq 1`
27606 }
27607 fi # as_fn_arith
27608
27609
27610 if expr a : '\(a\)' >/dev/null 2>&1 &&
27611 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27612 as_expr=expr
27613 else
27614 as_expr=false
27615 fi
27616
27617 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27618 as_basename=basename
27619 else
27620 as_basename=false
27621 fi
27622
27623 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27624 as_dirname=dirname
27625 else
27626 as_dirname=false
27627 fi
27628
27629 as_me=`$as_basename -- "$0" ||
27630 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27631 X"$0" : 'X\(//\)$' \| \
27632 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27633 $as_echo X/"$0" |
27634 sed '/^.*\/\([^/][^/]*\)\/*$/{
27635 s//\1/
27636 q
27637 }
27638 /^X\/\(\/\/\)$/{
27639 s//\1/
27640 q
27641 }
27642 /^X\/\(\/\).*/{
27643 s//\1/
27644 q
27645 }
27646 s/.*/./; q'`
27647
27648 # Avoid depending upon Character Ranges.
27649 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27650 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27651 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27652 as_cr_digits='0123456789'
27653 as_cr_alnum=$as_cr_Letters$as_cr_digits
27654
27655 ECHO_C= ECHO_N= ECHO_T=
27656 case `echo -n x` in #(((((
27657 -n*)
27658 case `echo 'xy\c'` in
27659 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27660 xy) ECHO_C='\c';;
27661 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27662 ECHO_T=' ';;
27663 esac;;
27664 *)
27665 ECHO_N='-n';;
27666 esac
27667
27668 rm -f conf$$ conf$$.exe conf$$.file
27669 if test -d conf$$.dir; then
27670 rm -f conf$$.dir/conf$$.file
27671 else
27672 rm -f conf$$.dir
27673 mkdir conf$$.dir 2>/dev/null
27674 fi
27675 if (echo >conf$$.file) 2>/dev/null; then
27676 if ln -s conf$$.file conf$$ 2>/dev/null; then
27677 as_ln_s='ln -s'
27678 # ... but there are two gotchas:
27679 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27680 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27681 # In both cases, we have to default to `cp -p'.
27682 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27683 as_ln_s='cp -p'
27684 elif ln conf$$.file conf$$ 2>/dev/null; then
27685 as_ln_s=ln
27686 else
27687 as_ln_s='cp -p'
27688 fi
27689 else
27690 as_ln_s='cp -p'
27691 fi
27692 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27693 rmdir conf$$.dir 2>/dev/null
27694
27695
27696 # as_fn_mkdir_p
27697 # -------------
27698 # Create "$as_dir" as a directory, including parents if necessary.
27699 as_fn_mkdir_p ()
27700 {
27701
27702 case $as_dir in #(
27703 -*) as_dir=./$as_dir;;
27704 esac
27705 test -d "$as_dir" || eval $as_mkdir_p || {
27706 as_dirs=
27707 while :; do
27708 case $as_dir in #(
27709 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27710 *) as_qdir=$as_dir;;
27711 esac
27712 as_dirs="'$as_qdir' $as_dirs"
27713 as_dir=`$as_dirname -- "$as_dir" ||
27714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27715 X"$as_dir" : 'X\(//\)[^/]' \| \
27716 X"$as_dir" : 'X\(//\)$' \| \
27717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27718 $as_echo X"$as_dir" |
27719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27720 s//\1/
27721 q
27722 }
27723 /^X\(\/\/\)[^/].*/{
27724 s//\1/
27725 q
27726 }
27727 /^X\(\/\/\)$/{
27728 s//\1/
27729 q
27730 }
27731 /^X\(\/\).*/{
27732 s//\1/
27733 q
27734 }
27735 s/.*/./; q'`
27736 test -d "$as_dir" && break
27737 done
27738 test -z "$as_dirs" || eval "mkdir $as_dirs"
27739 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27740
27741
27742 } # as_fn_mkdir_p
27743 if mkdir -p . 2>/dev/null; then
27744 as_mkdir_p='mkdir -p "$as_dir"'
27745 else
27746 test -d ./-p && rmdir ./-p
27747 as_mkdir_p=false
27748 fi
27749
27750 if test -x / >/dev/null 2>&1; then
27751 as_test_x='test -x'
27752 else
27753 if ls -dL / >/dev/null 2>&1; then
27754 as_ls_L_option=L
27755 else
27756 as_ls_L_option=
27757 fi
27758 as_test_x='
27759 eval sh -c '\''
27760 if test -d "$1"; then
27761 test -d "$1/.";
27762 else
27763 case $1 in #(
27764 -*)set "./$1";;
27765 esac;
27766 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27767 ???[sx]*):;;*)false;;esac;fi
27768 '\'' sh
27769 '
27770 fi
27771 as_executable_p=$as_test_x
27772
27773 # Sed expression to map a string onto a valid CPP name.
27774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27775
27776 # Sed expression to map a string onto a valid variable name.
27777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27778
27779
27780 exec 6>&1
27781 ## ----------------------------------- ##
27782 ## Main body of $CONFIG_STATUS script. ##
27783 ## ----------------------------------- ##
27784 _ASEOF
27785 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27786
27787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27788 # Save the log message, to keep $0 and so on meaningful, and to
27789 # report actual input values of CONFIG_FILES etc. instead of their
27790 # values after options handling.
27791 ac_log="
27792 This file was extended by emacs $as_me 24.3.50, which was
27793 generated by GNU Autoconf 2.65. Invocation command line was
27794
27795 CONFIG_FILES = $CONFIG_FILES
27796 CONFIG_HEADERS = $CONFIG_HEADERS
27797 CONFIG_LINKS = $CONFIG_LINKS
27798 CONFIG_COMMANDS = $CONFIG_COMMANDS
27799 $ $0 $@
27800
27801 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27802 "
27803
27804 _ACEOF
27805
27806 case $ac_config_files in *"
27807 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27808 esac
27809
27810 case $ac_config_headers in *"
27811 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27812 esac
27813
27814
27815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27816 # Files that config.status was made for.
27817 config_files="$ac_config_files"
27818 config_headers="$ac_config_headers"
27819 config_commands="$ac_config_commands"
27820
27821 _ACEOF
27822
27823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27824 ac_cs_usage="\
27825 \`$as_me' instantiates files and other configuration actions
27826 from templates according to the current configuration. Unless the files
27827 and actions are specified as TAGs, all are instantiated by default.
27828
27829 Usage: $0 [OPTION]... [TAG]...
27830
27831 -h, --help print this help, then exit
27832 -V, --version print version number and configuration settings, then exit
27833 --config print configuration, then exit
27834 -q, --quiet, --silent
27835 do not print progress messages
27836 -d, --debug don't remove temporary files
27837 --recheck update $as_me by reconfiguring in the same conditions
27838 --file=FILE[:TEMPLATE]
27839 instantiate the configuration file FILE
27840 --header=FILE[:TEMPLATE]
27841 instantiate the configuration header FILE
27842
27843 Configuration files:
27844 $config_files
27845
27846 Configuration headers:
27847 $config_headers
27848
27849 Configuration commands:
27850 $config_commands
27851
27852 Report bugs to the package provider."
27853
27854 _ACEOF
27855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27856 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27857 ac_cs_version="\\
27858 emacs config.status 24.3.50
27859 configured by $0, generated by GNU Autoconf 2.65,
27860 with options \\"\$ac_cs_config\\"
27861
27862 Copyright (C) 2009 Free Software Foundation, Inc.
27863 This config.status script is free software; the Free Software Foundation
27864 gives unlimited permission to copy, distribute and modify it."
27865
27866 ac_pwd='$ac_pwd'
27867 srcdir='$srcdir'
27868 INSTALL='$INSTALL'
27869 MKDIR_P='$MKDIR_P'
27870 AWK='$AWK'
27871 test -n "\$AWK" || AWK=awk
27872 _ACEOF
27873
27874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27875 # The default lists apply if the user does not specify any file.
27876 ac_need_defaults=:
27877 while test $# != 0
27878 do
27879 case $1 in
27880 --*=*)
27881 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27882 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27883 ac_shift=:
27884 ;;
27885 *)
27886 ac_option=$1
27887 ac_optarg=$2
27888 ac_shift=shift
27889 ;;
27890 esac
27891
27892 case $ac_option in
27893 # Handling of the options.
27894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27895 ac_cs_recheck=: ;;
27896 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27897 $as_echo "$ac_cs_version"; exit ;;
27898 --config | --confi | --conf | --con | --co | --c )
27899 $as_echo "$ac_cs_config"; exit ;;
27900 --debug | --debu | --deb | --de | --d | -d )
27901 debug=: ;;
27902 --file | --fil | --fi | --f )
27903 $ac_shift
27904 case $ac_optarg in
27905 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27906 esac
27907 as_fn_append CONFIG_FILES " '$ac_optarg'"
27908 ac_need_defaults=false;;
27909 --header | --heade | --head | --hea )
27910 $ac_shift
27911 case $ac_optarg in
27912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27913 esac
27914 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27915 ac_need_defaults=false;;
27916 --he | --h)
27917 # Conflict between --help and --header
27918 as_fn_error "ambiguous option: \`$1'
27919 Try \`$0 --help' for more information.";;
27920 --help | --hel | -h )
27921 $as_echo "$ac_cs_usage"; exit ;;
27922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27924 ac_cs_silent=: ;;
27925
27926 # This is an error.
27927 -*) as_fn_error "unrecognized option: \`$1'
27928 Try \`$0 --help' for more information." ;;
27929
27930 *) as_fn_append ac_config_targets " $1"
27931 ac_need_defaults=false ;;
27932
27933 esac
27934 shift
27935 done
27936
27937 ac_configure_extra_args=
27938
27939 if $ac_cs_silent; then
27940 exec 6>/dev/null
27941 ac_configure_extra_args="$ac_configure_extra_args --silent"
27942 fi
27943
27944 _ACEOF
27945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27946 if \$ac_cs_recheck; then
27947 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27948 shift
27949 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27950 CONFIG_SHELL='$SHELL'
27951 export CONFIG_SHELL
27952 exec "\$@"
27953 fi
27954
27955 _ACEOF
27956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27957 exec 5>>config.log
27958 {
27959 echo
27960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27961 ## Running $as_me. ##
27962 _ASBOX
27963 $as_echo "$ac_log"
27964 } >&5
27965
27966 _ACEOF
27967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27968 #
27969 # INIT-COMMANDS
27970 #
27971 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27972 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27973
27974 _ACEOF
27975
27976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27977
27978 # Handling of arguments.
27979 for ac_config_target in $ac_config_targets
27980 do
27981 case $ac_config_target in
27982 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27983 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27984 "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;;
27985 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27986 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27987 "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;;
27988 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27989 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27990 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27991 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27992 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27993 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27994 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27995 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27996 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27997 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27998 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27999 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
28000 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
28001 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
28002 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
28003 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
28004 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
28005 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
28006
28007 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28008 esac
28009 done
28010
28011
28012 # If the user did not use the arguments to specify the items to instantiate,
28013 # then the envvar interface is used. Set only those that are not.
28014 # We use the long form for the default assignment because of an extremely
28015 # bizarre bug on SunOS 4.1.3.
28016 if $ac_need_defaults; then
28017 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28018 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28019 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28020 fi
28021
28022 # Have a temporary directory for convenience. Make it in the build tree
28023 # simply because there is no reason against having it here, and in addition,
28024 # creating and moving files from /tmp can sometimes cause problems.
28025 # Hook for its removal unless debugging.
28026 # Note that there is a small window in which the directory will not be cleaned:
28027 # after its creation but before its name has been assigned to `$tmp'.
28028 $debug ||
28029 {
28030 tmp=
28031 trap 'exit_status=$?
28032 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28033 ' 0
28034 trap 'as_fn_exit 1' 1 2 13 15
28035 }
28036 # Create a (secure) tmp directory for tmp files.
28037
28038 {
28039 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28040 test -n "$tmp" && test -d "$tmp"
28041 } ||
28042 {
28043 tmp=./conf$$-$RANDOM
28044 (umask 077 && mkdir "$tmp")
28045 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28046
28047 # Set up the scripts for CONFIG_FILES section.
28048 # No need to generate them if there are no CONFIG_FILES.
28049 # This happens for instance with `./config.status config.h'.
28050 if test -n "$CONFIG_FILES"; then
28051
28052 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28053 ac_cs_awk_getline=:
28054 ac_cs_awk_pipe_init=
28055 ac_cs_awk_read_file='
28056 while ((getline aline < (F[key])) > 0)
28057 print(aline)
28058 close(F[key])'
28059 ac_cs_awk_pipe_fini=
28060 else
28061 ac_cs_awk_getline=false
28062 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28063 ac_cs_awk_read_file='
28064 print "|#_!!_#|"
28065 print "cat " F[key] " &&"
28066 '$ac_cs_awk_pipe_init
28067 # The final `:' finishes the AND list.
28068 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28069 fi
28070 ac_cr=`echo X | tr X '\015'`
28071 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28072 # But we know of no other shell where ac_cr would be empty at this
28073 # point, so we can use a bashism as a fallback.
28074 if test "x$ac_cr" = x; then
28075 eval ac_cr=\$\'\\r\'
28076 fi
28077 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28078 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28079 ac_cs_awk_cr='\r'
28080 else
28081 ac_cs_awk_cr=$ac_cr
28082 fi
28083
28084 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28085 _ACEOF
28086
28087 # Create commands to substitute file output variables.
28088 {
28089 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28090 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28091 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28092 echo "_ACAWK" &&
28093 echo "_ACEOF"
28094 } >conf$$files.sh &&
28095 . ./conf$$files.sh ||
28096 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28097 rm -f conf$$files.sh
28098
28099 {
28100 echo "cat >conf$$subs.awk <<_ACEOF" &&
28101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28102 echo "_ACEOF"
28103 } >conf$$subs.sh ||
28104 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28105 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28106 ac_delim='%!_!# '
28107 for ac_last_try in false false false false false :; do
28108 . ./conf$$subs.sh ||
28109 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28110
28111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28112 if test $ac_delim_n = $ac_delim_num; then
28113 break
28114 elif $ac_last_try; then
28115 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28116 else
28117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28118 fi
28119 done
28120 rm -f conf$$subs.sh
28121
28122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28123 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28124 _ACEOF
28125 sed -n '
28126 h
28127 s/^/S["/; s/!.*/"]=/
28128 p
28129 g
28130 s/^[^!]*!//
28131 :repl
28132 t repl
28133 s/'"$ac_delim"'$//
28134 t delim
28135 :nl
28136 h
28137 s/\(.\{148\}\)..*/\1/
28138 t more1
28139 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28140 p
28141 n
28142 b repl
28143 :more1
28144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28145 p
28146 g
28147 s/.\{148\}//
28148 t nl
28149 :delim
28150 h
28151 s/\(.\{148\}\)..*/\1/
28152 t more2
28153 s/["\\]/\\&/g; s/^/"/; s/$/"/
28154 p
28155 b
28156 :more2
28157 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28158 p
28159 g
28160 s/.\{148\}//
28161 t delim
28162 ' <conf$$subs.awk | sed '
28163 /^[^""]/{
28164 N
28165 s/\n//
28166 }
28167 ' >>$CONFIG_STATUS || ac_write_fail=1
28168 rm -f conf$$subs.awk
28169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28170 _ACAWK
28171 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28172 for (key in S) S_is_set[key] = 1
28173 FS = "\a"
28174 \$ac_cs_awk_pipe_init
28175 }
28176 {
28177 line = $ 0
28178 nfields = split(line, field, "@")
28179 substed = 0
28180 len = length(field[1])
28181 for (i = 2; i < nfields; i++) {
28182 key = field[i]
28183 keylen = length(key)
28184 if (S_is_set[key]) {
28185 value = S[key]
28186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28187 len += length(value) + length(field[++i])
28188 substed = 1
28189 } else
28190 len += 1 + keylen
28191 }
28192 if (nfields == 3 && !substed) {
28193 key = field[2]
28194 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28195 \$ac_cs_awk_read_file
28196 next
28197 }
28198 }
28199 print line
28200 }
28201 \$ac_cs_awk_pipe_fini
28202 _ACAWK
28203 _ACEOF
28204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28205 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28207 else
28208 cat
28209 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28210 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28211 _ACEOF
28212
28213 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28214 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28215 # trailing colons and then remove the whole line if VPATH becomes empty
28216 # (actually we leave an empty line to preserve line numbers).
28217 if test "x$srcdir" = x.; then
28218 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28219 s/:*\$(srcdir):*/:/
28220 s/:*\${srcdir}:*/:/
28221 s/:*@srcdir@:*/:/
28222 s/^\([^=]*=[ ]*\):*/\1/
28223 s/:*$//
28224 s/^[^=]*=[ ]*$//
28225 }'
28226 fi
28227
28228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28229 fi # test -n "$CONFIG_FILES"
28230
28231 # Set up the scripts for CONFIG_HEADERS section.
28232 # No need to generate them if there are no CONFIG_HEADERS.
28233 # This happens for instance with `./config.status Makefile'.
28234 if test -n "$CONFIG_HEADERS"; then
28235 cat >"$tmp/defines.awk" <<\_ACAWK ||
28236 BEGIN {
28237 _ACEOF
28238
28239 # Transform confdefs.h into an awk script `defines.awk', embedded as
28240 # here-document in config.status, that substitutes the proper values into
28241 # config.h.in to produce config.h.
28242
28243 # Create a delimiter string that does not exist in confdefs.h, to ease
28244 # handling of long lines.
28245 ac_delim='%!_!# '
28246 for ac_last_try in false false :; do
28247 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28248 if test -z "$ac_t"; then
28249 break
28250 elif $ac_last_try; then
28251 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28252 else
28253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28254 fi
28255 done
28256
28257 # For the awk script, D is an array of macro values keyed by name,
28258 # likewise P contains macro parameters if any. Preserve backslash
28259 # newline sequences.
28260
28261 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28262 sed -n '
28263 s/.\{148\}/&'"$ac_delim"'/g
28264 t rset
28265 :rset
28266 s/^[ ]*#[ ]*define[ ][ ]*/ /
28267 t def
28268 d
28269 :def
28270 s/\\$//
28271 t bsnl
28272 s/["\\]/\\&/g
28273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28274 D["\1"]=" \3"/p
28275 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28276 d
28277 :bsnl
28278 s/["\\]/\\&/g
28279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28280 D["\1"]=" \3\\\\\\n"\\/p
28281 t cont
28282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28283 t cont
28284 d
28285 :cont
28286 n
28287 s/.\{148\}/&'"$ac_delim"'/g
28288 t clear
28289 :clear
28290 s/\\$//
28291 t bsnlc
28292 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28293 d
28294 :bsnlc
28295 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28296 b cont
28297 ' <confdefs.h | sed '
28298 s/'"$ac_delim"'/"\\\
28299 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28300
28301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28302 for (key in D) D_is_set[key] = 1
28303 FS = "\a"
28304 }
28305 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28306 line = \$ 0
28307 split(line, arg, " ")
28308 if (arg[1] == "#") {
28309 defundef = arg[2]
28310 mac1 = arg[3]
28311 } else {
28312 defundef = substr(arg[1], 2)
28313 mac1 = arg[2]
28314 }
28315 split(mac1, mac2, "(") #)
28316 macro = mac2[1]
28317 prefix = substr(line, 1, index(line, defundef) - 1)
28318 if (D_is_set[macro]) {
28319 # Preserve the white space surrounding the "#".
28320 print prefix "define", macro P[macro] D[macro]
28321 next
28322 } else {
28323 # Replace #undef with comments. This is necessary, for example,
28324 # in the case of _POSIX_SOURCE, which is predefined and required
28325 # on some systems where configure will not decide to define it.
28326 if (defundef == "undef") {
28327 print "/*", prefix defundef, macro, "*/"
28328 next
28329 }
28330 }
28331 }
28332 { print }
28333 _ACAWK
28334 _ACEOF
28335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28336 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28337 fi # test -n "$CONFIG_HEADERS"
28338
28339
28340 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28341 shift
28342 for ac_tag
28343 do
28344 case $ac_tag in
28345 :[FHLC]) ac_mode=$ac_tag; continue;;
28346 esac
28347 case $ac_mode$ac_tag in
28348 :[FHL]*:*);;
28349 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28350 :[FH]-) ac_tag=-:-;;
28351 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28352 esac
28353 ac_save_IFS=$IFS
28354 IFS=:
28355 set x $ac_tag
28356 IFS=$ac_save_IFS
28357 shift
28358 ac_file=$1
28359 shift
28360
28361 case $ac_mode in
28362 :L) ac_source=$1;;
28363 :[FH])
28364 ac_file_inputs=
28365 for ac_f
28366 do
28367 case $ac_f in
28368 -) ac_f="$tmp/stdin";;
28369 *) # Look for the file first in the build tree, then in the source tree
28370 # (if the path is not absolute). The absolute path cannot be DOS-style,
28371 # because $ac_f cannot contain `:'.
28372 test -f "$ac_f" ||
28373 case $ac_f in
28374 [\\/$]*) false;;
28375 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28376 esac ||
28377 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28378 esac
28379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28380 as_fn_append ac_file_inputs " '$ac_f'"
28381 done
28382
28383 # Let's still pretend it is `configure' which instantiates (i.e., don't
28384 # use $as_me), people would be surprised to read:
28385 # /* config.h. Generated by config.status. */
28386 configure_input='Generated from '`
28387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28388 `' by configure.'
28389 if test x"$ac_file" != x-; then
28390 configure_input="$ac_file. $configure_input"
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28392 $as_echo "$as_me: creating $ac_file" >&6;}
28393 fi
28394 # Neutralize special characters interpreted by sed in replacement strings.
28395 case $configure_input in #(
28396 *\&* | *\|* | *\\* )
28397 ac_sed_conf_input=`$as_echo "$configure_input" |
28398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28399 *) ac_sed_conf_input=$configure_input;;
28400 esac
28401
28402 case $ac_tag in
28403 *:-:* | *:-) cat >"$tmp/stdin" \
28404 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28405 esac
28406 ;;
28407 esac
28408
28409 ac_dir=`$as_dirname -- "$ac_file" ||
28410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28411 X"$ac_file" : 'X\(//\)[^/]' \| \
28412 X"$ac_file" : 'X\(//\)$' \| \
28413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28414 $as_echo X"$ac_file" |
28415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28416 s//\1/
28417 q
28418 }
28419 /^X\(\/\/\)[^/].*/{
28420 s//\1/
28421 q
28422 }
28423 /^X\(\/\/\)$/{
28424 s//\1/
28425 q
28426 }
28427 /^X\(\/\).*/{
28428 s//\1/
28429 q
28430 }
28431 s/.*/./; q'`
28432 as_dir="$ac_dir"; as_fn_mkdir_p
28433 ac_builddir=.
28434
28435 case "$ac_dir" in
28436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28437 *)
28438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28439 # A ".." for each directory in $ac_dir_suffix.
28440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28441 case $ac_top_builddir_sub in
28442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28444 esac ;;
28445 esac
28446 ac_abs_top_builddir=$ac_pwd
28447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28448 # for backward compatibility:
28449 ac_top_builddir=$ac_top_build_prefix
28450
28451 case $srcdir in
28452 .) # We are building in place.
28453 ac_srcdir=.
28454 ac_top_srcdir=$ac_top_builddir_sub
28455 ac_abs_top_srcdir=$ac_pwd ;;
28456 [\\/]* | ?:[\\/]* ) # Absolute name.
28457 ac_srcdir=$srcdir$ac_dir_suffix;
28458 ac_top_srcdir=$srcdir
28459 ac_abs_top_srcdir=$srcdir ;;
28460 *) # Relative name.
28461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28462 ac_top_srcdir=$ac_top_build_prefix$srcdir
28463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28464 esac
28465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28466
28467
28468 case $ac_mode in
28469 :F)
28470 #
28471 # CONFIG_FILE
28472 #
28473
28474 case $INSTALL in
28475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28477 esac
28478 ac_MKDIR_P=$MKDIR_P
28479 case $MKDIR_P in
28480 [\\/$]* | ?:[\\/]* ) ;;
28481 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28482 esac
28483 _ACEOF
28484
28485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28486 # If the template does not know about datarootdir, expand it.
28487 # FIXME: This hack should be removed a few years after 2.60.
28488 ac_datarootdir_hack=; ac_datarootdir_seen=
28489 ac_sed_dataroot='
28490 /datarootdir/ {
28491 p
28492 q
28493 }
28494 /@datadir@/p
28495 /@docdir@/p
28496 /@infodir@/p
28497 /@localedir@/p
28498 /@mandir@/p'
28499 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28500 *datarootdir*) ac_datarootdir_seen=yes;;
28501 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28503 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28504 _ACEOF
28505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28506 ac_datarootdir_hack='
28507 s&@datadir@&$datadir&g
28508 s&@docdir@&$docdir&g
28509 s&@infodir@&$infodir&g
28510 s&@localedir@&$localedir&g
28511 s&@mandir@&$mandir&g
28512 s&\\\${datarootdir}&$datarootdir&g' ;;
28513 esac
28514 _ACEOF
28515
28516 # Neutralize VPATH when `$srcdir' = `.'.
28517 # Shell code in configure.ac might set extrasub.
28518 # FIXME: do we really want to maintain this feature?
28519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28520 ac_sed_extra="$ac_vpsub
28521 $extrasub
28522 _ACEOF
28523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28524 :t
28525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28526 s|@configure_input@|$ac_sed_conf_input|;t t
28527 s&@top_builddir@&$ac_top_builddir_sub&;t t
28528 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28529 s&@srcdir@&$ac_srcdir&;t t
28530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28531 s&@top_srcdir@&$ac_top_srcdir&;t t
28532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28533 s&@builddir@&$ac_builddir&;t t
28534 s&@abs_builddir@&$ac_abs_builddir&;t t
28535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28536 s&@INSTALL@&$ac_INSTALL&;t t
28537 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28538 $ac_datarootdir_hack
28539 "
28540 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28541 if $ac_cs_awk_getline; then
28542 $AWK -f "$tmp/subs.awk"
28543 else
28544 $AWK -f "$tmp/subs.awk" | $SHELL
28545 fi >$tmp/out \
28546 || as_fn_error "could not create $ac_file" "$LINENO" 5
28547
28548 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28549 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28552 which seems to be undefined. Please make sure it is defined." >&5
28553 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28554 which seems to be undefined. Please make sure it is defined." >&2;}
28555
28556 rm -f "$tmp/stdin"
28557 case $ac_file in
28558 -) cat "$tmp/out" && rm -f "$tmp/out";;
28559 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28560 esac \
28561 || as_fn_error "could not create $ac_file" "$LINENO" 5
28562 ;;
28563 :H)
28564 #
28565 # CONFIG_HEADER
28566 #
28567 if test x"$ac_file" != x-; then
28568 {
28569 $as_echo "/* $configure_input */" \
28570 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28571 } >"$tmp/config.h" \
28572 || as_fn_error "could not create $ac_file" "$LINENO" 5
28573 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28575 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28576 else
28577 rm -f "$ac_file"
28578 mv "$tmp/config.h" "$ac_file" \
28579 || as_fn_error "could not create $ac_file" "$LINENO" 5
28580 fi
28581 else
28582 $as_echo "/* $configure_input */" \
28583 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28584 || as_fn_error "could not create -" "$LINENO" 5
28585 fi
28586 # Compute "$ac_file"'s index in $config_headers.
28587 _am_arg="$ac_file"
28588 _am_stamp_count=1
28589 for _am_header in $config_headers :; do
28590 case $_am_header in
28591 $_am_arg | $_am_arg:* )
28592 break ;;
28593 * )
28594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28595 esac
28596 done
28597 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28598 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28599 X"$_am_arg" : 'X\(//\)[^/]' \| \
28600 X"$_am_arg" : 'X\(//\)$' \| \
28601 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28602 $as_echo X"$_am_arg" |
28603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28604 s//\1/
28605 q
28606 }
28607 /^X\(\/\/\)[^/].*/{
28608 s//\1/
28609 q
28610 }
28611 /^X\(\/\/\)$/{
28612 s//\1/
28613 q
28614 }
28615 /^X\(\/\).*/{
28616 s//\1/
28617 q
28618 }
28619 s/.*/./; q'`/stamp-h$_am_stamp_count
28620 ;;
28621
28622 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28623 $as_echo "$as_me: executing $ac_file commands" >&6;}
28624 ;;
28625 esac
28626
28627
28628 case $ac_file$ac_mode in
28629 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28630 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28631 # are listed without --file. Let's play safe and only enable the eval
28632 # if we detect the quoting.
28633 case $CONFIG_FILES in
28634 *\'*) eval set x "$CONFIG_FILES" ;;
28635 *) set x $CONFIG_FILES ;;
28636 esac
28637 shift
28638 for mf
28639 do
28640 # Strip MF so we end up with the name of the file.
28641 mf=`echo "$mf" | sed -e 's/:.*$//'`
28642 # Check whether this is an Automake generated Makefile or not.
28643 # We used to match only the files named `Makefile.in', but
28644 # some people rename them; so instead we look at the file content.
28645 # Grep'ing the first line is not enough: some people post-process
28646 # each Makefile.in and add a new line on top of each file to say so.
28647 # Grep'ing the whole file is not good either: AIX grep has a line
28648 # limit of 2048, but all sed's we know have understand at least 4000.
28649 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28650 dirpart=`$as_dirname -- "$mf" ||
28651 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28652 X"$mf" : 'X\(//\)[^/]' \| \
28653 X"$mf" : 'X\(//\)$' \| \
28654 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28655 $as_echo X"$mf" |
28656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28657 s//\1/
28658 q
28659 }
28660 /^X\(\/\/\)[^/].*/{
28661 s//\1/
28662 q
28663 }
28664 /^X\(\/\/\)$/{
28665 s//\1/
28666 q
28667 }
28668 /^X\(\/\).*/{
28669 s//\1/
28670 q
28671 }
28672 s/.*/./; q'`
28673 else
28674 continue
28675 fi
28676 # Extract the definition of DEPDIR, am__include, and am__quote
28677 # from the Makefile without running `make'.
28678 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28679 test -z "$DEPDIR" && continue
28680 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28681 test -z "am__include" && continue
28682 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28683 # When using ansi2knr, U may be empty or an underscore; expand it
28684 U=`sed -n 's/^U = //p' < "$mf"`
28685 # Find all dependency output files, they are included files with
28686 # $(DEPDIR) in their names. We invoke sed twice because it is the
28687 # simplest approach to changing $(DEPDIR) to its actual value in the
28688 # expansion.
28689 for file in `sed -n "
28690 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28691 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28692 # Make sure the directory exists.
28693 test -f "$dirpart/$file" && continue
28694 fdir=`$as_dirname -- "$file" ||
28695 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28696 X"$file" : 'X\(//\)[^/]' \| \
28697 X"$file" : 'X\(//\)$' \| \
28698 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28699 $as_echo X"$file" |
28700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28701 s//\1/
28702 q
28703 }
28704 /^X\(\/\/\)[^/].*/{
28705 s//\1/
28706 q
28707 }
28708 /^X\(\/\/\)$/{
28709 s//\1/
28710 q
28711 }
28712 /^X\(\/\).*/{
28713 s//\1/
28714 q
28715 }
28716 s/.*/./; q'`
28717 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28718 # echo "creating $dirpart/$file"
28719 echo '# dummy' > "$dirpart/$file"
28720 done
28721 done
28722 }
28723 ;;
28724 "mkdirs":C)
28725 for dir in etc lisp ; do
28726 test -d ${dir} || mkdir ${dir}
28727 done
28728 ;;
28729 "epaths":C)
28730 echo creating src/epaths.h
28731 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
28732 ;;
28733 "gdbinit":C)
28734 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
28735 echo creating src/.gdbinit
28736 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
28737 fi
28738 ;;
28739
28740 esac
28741 done # for ac_tag
28742
28743
28744 as_fn_exit 0
28745 _ACEOF
28746 ac_clean_files=$ac_clean_files_save
28747
28748 test $ac_write_fail = 0 ||
28749 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28750
28751
28752 # configure is writing to config.log, and then calls config.status.
28753 # config.status does its own redirection, appending to config.log.
28754 # Unfortunately, on DOS this fails, as config.log is still kept open
28755 # by configure, so config.status won't be able to write to it; its
28756 # output is simply discarded. So we exec the FD to /dev/null,
28757 # effectively closing config.log, so it can be properly (re)opened and
28758 # appended to by config.status. When coming back to configure, we
28759 # need to make the FD available again.
28760 if test "$no_create" != yes; then
28761 ac_cs_success=:
28762 ac_config_status_args=
28763 test "$silent" = yes &&
28764 ac_config_status_args="$ac_config_status_args --quiet"
28765 exec 5>/dev/null
28766 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28767 exec 5>>config.log
28768 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28769 # would make configure fail if this is the last instruction.
28770 $ac_cs_success || as_fn_exit $?
28771 fi
28772 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28774 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28775 fi
28776