]> code.delx.au - gnu-emacs/blob - autogen/configure
Update ps-mode.el from upstream
[gnu-emacs] / 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 LIB_GCC
609 LD_FIRSTFLAG
610 LD_SWITCH_SYSTEM_TEMACS
611 LIBGNU_LTLIBDEPS
612 LIBGNU_LIBDEPS
613 gltests_WITNESS
614 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
616 gl_GNULIB_ENABLED_verify_FALSE
617 gl_GNULIB_ENABLED_verify_TRUE
618 gl_GNULIB_ENABLED_strtoull_FALSE
619 gl_GNULIB_ENABLED_strtoull_TRUE
620 gl_GNULIB_ENABLED_strtoll_FALSE
621 gl_GNULIB_ENABLED_strtoll_TRUE
622 gl_GNULIB_ENABLED_stat_FALSE
623 gl_GNULIB_ENABLED_stat_TRUE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
626 gl_GNULIB_ENABLED_pathmax_FALSE
627 gl_GNULIB_ENABLED_pathmax_TRUE
628 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
629 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
630 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
631 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
632 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
633 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
634 gl_GNULIB_ENABLED_getgroups_FALSE
635 gl_GNULIB_ENABLED_getgroups_TRUE
636 gl_GNULIB_ENABLED_euidaccess_FALSE
637 gl_GNULIB_ENABLED_euidaccess_TRUE
638 gl_GNULIB_ENABLED_dosname_FALSE
639 gl_GNULIB_ENABLED_dosname_TRUE
640 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
641 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
642 LTLIBINTL
643 LIBINTL
644 LIB_EACCESS
645 WINDOWS_64_BIT_OFF_T
646 HAVE_UNISTD_H
647 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
648 NEXT_UNISTD_H
649 LIB_TIMER_TIME
650 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
651 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
652 TIME_H_DEFINES_STRUCT_TIMESPEC
653 NEXT_AS_FIRST_DIRECTIVE_TIME_H
654 NEXT_TIME_H
655 WINDOWS_64_BIT_ST_SIZE
656 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
657 NEXT_SYS_STAT_H
658 NEXT_AS_FIRST_DIRECTIVE_STRING_H
659 NEXT_STRING_H
660 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
661 NEXT_STDLIB_H
662 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
663 NEXT_STDIO_H
664 REPLACE_VSPRINTF
665 REPLACE_VSNPRINTF
666 REPLACE_VPRINTF
667 REPLACE_VFPRINTF
668 REPLACE_VDPRINTF
669 REPLACE_VASPRINTF
670 REPLACE_TMPFILE
671 REPLACE_STDIO_WRITE_FUNCS
672 REPLACE_STDIO_READ_FUNCS
673 REPLACE_SPRINTF
674 REPLACE_SNPRINTF
675 REPLACE_RENAMEAT
676 REPLACE_RENAME
677 REPLACE_REMOVE
678 REPLACE_PRINTF
679 REPLACE_POPEN
680 REPLACE_PERROR
681 REPLACE_OBSTACK_PRINTF
682 REPLACE_GETLINE
683 REPLACE_GETDELIM
684 REPLACE_FTELLO
685 REPLACE_FTELL
686 REPLACE_FSEEKO
687 REPLACE_FSEEK
688 REPLACE_FREOPEN
689 REPLACE_FPURGE
690 REPLACE_FPRINTF
691 REPLACE_FOPEN
692 REPLACE_FFLUSH
693 REPLACE_FDOPEN
694 REPLACE_FCLOSE
695 REPLACE_DPRINTF
696 HAVE_VDPRINTF
697 HAVE_VASPRINTF
698 HAVE_RENAMEAT
699 HAVE_POPEN
700 HAVE_PCLOSE
701 HAVE_FTELLO
702 HAVE_FSEEKO
703 HAVE_DPRINTF
704 HAVE_DECL_VSNPRINTF
705 HAVE_DECL_SNPRINTF
706 HAVE_DECL_OBSTACK_PRINTF
707 HAVE_DECL_GETLINE
708 HAVE_DECL_GETDELIM
709 HAVE_DECL_FTELLO
710 HAVE_DECL_FSEEKO
711 HAVE_DECL_FPURGE
712 GNULIB_VSPRINTF_POSIX
713 GNULIB_VSNPRINTF
714 GNULIB_VPRINTF_POSIX
715 GNULIB_VPRINTF
716 GNULIB_VFPRINTF_POSIX
717 GNULIB_VFPRINTF
718 GNULIB_VDPRINTF
719 GNULIB_VSCANF
720 GNULIB_VFSCANF
721 GNULIB_VASPRINTF
722 GNULIB_TMPFILE
723 GNULIB_STDIO_H_SIGPIPE
724 GNULIB_STDIO_H_NONBLOCKING
725 GNULIB_SPRINTF_POSIX
726 GNULIB_SNPRINTF
727 GNULIB_SCANF
728 GNULIB_RENAMEAT
729 GNULIB_RENAME
730 GNULIB_REMOVE
731 GNULIB_PUTS
732 GNULIB_PUTCHAR
733 GNULIB_PUTC
734 GNULIB_PRINTF_POSIX
735 GNULIB_PRINTF
736 GNULIB_POPEN
737 GNULIB_PERROR
738 GNULIB_PCLOSE
739 GNULIB_OBSTACK_PRINTF_POSIX
740 GNULIB_OBSTACK_PRINTF
741 GNULIB_GETLINE
742 GNULIB_GETDELIM
743 GNULIB_GETCHAR
744 GNULIB_GETC
745 GNULIB_FWRITE
746 GNULIB_FTELLO
747 GNULIB_FTELL
748 GNULIB_FSEEKO
749 GNULIB_FSEEK
750 GNULIB_FSCANF
751 GNULIB_FREOPEN
752 GNULIB_FREAD
753 GNULIB_FPUTS
754 GNULIB_FPUTC
755 GNULIB_FPURGE
756 GNULIB_FPRINTF_POSIX
757 GNULIB_FPRINTF
758 GNULIB_FOPEN
759 GNULIB_FGETS
760 GNULIB_FGETC
761 GNULIB_FFLUSH
762 GNULIB_FDOPEN
763 GNULIB_FCLOSE
764 GNULIB_DPRINTF
765 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
766 NEXT_STDDEF_H
767 GL_GENERATE_STDDEF_H_FALSE
768 GL_GENERATE_STDDEF_H_TRUE
769 STDDEF_H
770 HAVE_WCHAR_T
771 REPLACE_NULL
772 HAVE__BOOL
773 GL_GENERATE_STDBOOL_H_FALSE
774 GL_GENERATE_STDBOOL_H_TRUE
775 STDBOOL_H
776 GL_GENERATE_STDARG_H_FALSE
777 GL_GENERATE_STDARG_H_TRUE
778 STDARG_H
779 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
780 NEXT_STDARG_H
781 GL_GENERATE_STDALIGN_H_FALSE
782 GL_GENERATE_STDALIGN_H_TRUE
783 STDALIGN_H
784 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
785 NEXT_SIGNAL_H
786 LIB_PTHREAD_SIGMASK
787 REPLACE_RAISE
788 REPLACE_PTHREAD_SIGMASK
789 HAVE_SIGHANDLER_T
790 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
791 HAVE_STRUCT_SIGACTION_SA_SIGACTION
792 HAVE_SIGACTION
793 HAVE_SIGINFO_T
794 HAVE_SIGSET_T
795 HAVE_RAISE
796 HAVE_PTHREAD_SIGMASK
797 HAVE_POSIX_SIGNALBLOCKING
798 GNULIB_SIGACTION
799 GNULIB_SIGPROCMASK
800 GNULIB_SIGNAL_H_SIGPIPE
801 GNULIB_RAISE
802 GNULIB_PTHREAD_SIGMASK
803 HAVE_SYS_SELECT_H
804 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
805 NEXT_SYS_SELECT_H
806 REPLACE_SELECT
807 REPLACE_PSELECT
808 HAVE_PSELECT
809 GNULIB_SELECT
810 GNULIB_PSELECT
811 REPLACE_TIMEGM
812 REPLACE_NANOSLEEP
813 REPLACE_MKTIME
814 REPLACE_LOCALTIME_R
815 HAVE_TIMEGM
816 HAVE_STRPTIME
817 HAVE_NANOSLEEP
818 HAVE_DECL_LOCALTIME_R
819 GNULIB_TIME_R
820 GNULIB_TIMEGM
821 GNULIB_STRPTIME
822 GNULIB_NANOSLEEP
823 GNULIB_MKTIME
824 UNDEFINE_STRTOK_R
825 REPLACE_STRTOK_R
826 REPLACE_STRSIGNAL
827 REPLACE_STRNLEN
828 REPLACE_STRNDUP
829 REPLACE_STRNCAT
830 REPLACE_STRERROR_R
831 REPLACE_STRERROR
832 REPLACE_STRCHRNUL
833 REPLACE_STRCASESTR
834 REPLACE_STRSTR
835 REPLACE_STRDUP
836 REPLACE_STPNCPY
837 REPLACE_MEMMEM
838 REPLACE_MEMCHR
839 HAVE_STRVERSCMP
840 HAVE_DECL_STRSIGNAL
841 HAVE_DECL_STRERROR_R
842 HAVE_DECL_STRTOK_R
843 HAVE_STRCASESTR
844 HAVE_STRSEP
845 HAVE_STRPBRK
846 HAVE_DECL_STRNLEN
847 HAVE_DECL_STRNDUP
848 HAVE_DECL_STRDUP
849 HAVE_STRCHRNUL
850 HAVE_STPNCPY
851 HAVE_STPCPY
852 HAVE_RAWMEMCHR
853 HAVE_DECL_MEMRCHR
854 HAVE_MEMPCPY
855 HAVE_DECL_MEMMEM
856 HAVE_MEMCHR
857 HAVE_FFSLL
858 HAVE_FFSL
859 HAVE_MBSLEN
860 GNULIB_STRVERSCMP
861 GNULIB_STRSIGNAL
862 GNULIB_STRERROR_R
863 GNULIB_STRERROR
864 GNULIB_MBSTOK_R
865 GNULIB_MBSSEP
866 GNULIB_MBSSPN
867 GNULIB_MBSPBRK
868 GNULIB_MBSCSPN
869 GNULIB_MBSCASESTR
870 GNULIB_MBSPCASECMP
871 GNULIB_MBSNCASECMP
872 GNULIB_MBSCASECMP
873 GNULIB_MBSSTR
874 GNULIB_MBSRCHR
875 GNULIB_MBSCHR
876 GNULIB_MBSNLEN
877 GNULIB_MBSLEN
878 GNULIB_STRTOK_R
879 GNULIB_STRCASESTR
880 GNULIB_STRSTR
881 GNULIB_STRSEP
882 GNULIB_STRPBRK
883 GNULIB_STRNLEN
884 GNULIB_STRNDUP
885 GNULIB_STRNCAT
886 GNULIB_STRDUP
887 GNULIB_STRCHRNUL
888 GNULIB_STPNCPY
889 GNULIB_STPCPY
890 GNULIB_RAWMEMCHR
891 GNULIB_MEMRCHR
892 GNULIB_MEMPCPY
893 GNULIB_MEMMEM
894 GNULIB_MEMCHR
895 GNULIB_FFSLL
896 GNULIB_FFSL
897 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
898 NEXT_INTTYPES_H
899 UINT64_MAX_EQ_ULONG_MAX
900 UINT32_MAX_LT_UINTMAX_MAX
901 PRIPTR_PREFIX
902 PRI_MACROS_BROKEN
903 INT64_MAX_EQ_LONG_MAX
904 INT32_MAX_LT_INTMAX_MAX
905 REPLACE_STRTOIMAX
906 HAVE_DECL_STRTOUMAX
907 HAVE_DECL_STRTOIMAX
908 HAVE_DECL_IMAXDIV
909 HAVE_DECL_IMAXABS
910 GNULIB_STRTOUMAX
911 GNULIB_STRTOIMAX
912 GNULIB_IMAXDIV
913 GNULIB_IMAXABS
914 GL_GENERATE_STDINT_H_FALSE
915 GL_GENERATE_STDINT_H_TRUE
916 STDINT_H
917 WINT_T_SUFFIX
918 WCHAR_T_SUFFIX
919 SIG_ATOMIC_T_SUFFIX
920 SIZE_T_SUFFIX
921 PTRDIFF_T_SUFFIX
922 HAVE_SIGNED_WINT_T
923 HAVE_SIGNED_WCHAR_T
924 HAVE_SIGNED_SIG_ATOMIC_T
925 BITSIZEOF_WINT_T
926 BITSIZEOF_WCHAR_T
927 BITSIZEOF_SIG_ATOMIC_T
928 BITSIZEOF_SIZE_T
929 BITSIZEOF_PTRDIFF_T
930 APPLE_UNIVERSAL_BUILD
931 HAVE_SYS_BITYPES_H
932 HAVE_SYS_INTTYPES_H
933 HAVE_STDINT_H
934 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
935 NEXT_STDINT_H
936 HAVE_SYS_TYPES_H
937 HAVE_INTTYPES_H
938 HAVE_WCHAR_H
939 HAVE_UNSIGNED_LONG_LONG_INT
940 HAVE_LONG_LONG_INT
941 HAVE_WINSOCK2_H
942 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
943 NEXT_SYS_TIME_H
944 REPLACE_STRUCT_TIMEVAL
945 REPLACE_GETTIMEOFDAY
946 HAVE_SYS_TIME_H
947 HAVE_STRUCT_TIMEVAL
948 HAVE_GETTIMEOFDAY
949 GNULIB_GETTIMEOFDAY
950 GNULIB_GL_UNISTD_H_GETOPT
951 GETOPT_H
952 HAVE_GETOPT_H
953 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
954 NEXT_GETOPT_H
955 GETLOADAVG_LIBS
956 REPLACE_WCTOMB
957 REPLACE_UNSETENV
958 REPLACE_STRTOD
959 REPLACE_SETENV
960 REPLACE_REALPATH
961 REPLACE_REALLOC
962 REPLACE_RANDOM_R
963 REPLACE_PUTENV
964 REPLACE_PTSNAME_R
965 REPLACE_PTSNAME
966 REPLACE_MKSTEMP
967 REPLACE_MBTOWC
968 REPLACE_MALLOC
969 REPLACE_CANONICALIZE_FILE_NAME
970 REPLACE_CALLOC
971 HAVE_DECL_UNSETENV
972 HAVE_UNLOCKPT
973 HAVE_SYS_LOADAVG_H
974 HAVE_STRUCT_RANDOM_DATA
975 HAVE_STRTOULL
976 HAVE_STRTOLL
977 HAVE_STRTOD
978 HAVE_DECL_SETENV
979 HAVE_SETENV
980 HAVE_SECURE_GETENV
981 HAVE_RPMATCH
982 HAVE_REALPATH
983 HAVE_RANDOM_R
984 HAVE_RANDOM_H
985 HAVE_RANDOM
986 HAVE_PTSNAME_R
987 HAVE_PTSNAME
988 HAVE_POSIX_OPENPT
989 HAVE_MKSTEMPS
990 HAVE_MKSTEMP
991 HAVE_MKOSTEMPS
992 HAVE_MKOSTEMP
993 HAVE_MKDTEMP
994 HAVE_GRANTPT
995 HAVE_GETSUBOPT
996 HAVE_DECL_GETLOADAVG
997 HAVE_CANONICALIZE_FILE_NAME
998 HAVE_ATOLL
999 HAVE__EXIT
1000 GNULIB_WCTOMB
1001 GNULIB_UNSETENV
1002 GNULIB_UNLOCKPT
1003 GNULIB_SYSTEM_POSIX
1004 GNULIB_STRTOULL
1005 GNULIB_STRTOLL
1006 GNULIB_STRTOD
1007 GNULIB_SETENV
1008 GNULIB_SECURE_GETENV
1009 GNULIB_RPMATCH
1010 GNULIB_REALPATH
1011 GNULIB_REALLOC_POSIX
1012 GNULIB_RANDOM_R
1013 GNULIB_RANDOM
1014 GNULIB_PUTENV
1015 GNULIB_PTSNAME_R
1016 GNULIB_PTSNAME
1017 GNULIB_POSIX_OPENPT
1018 GNULIB_MKSTEMPS
1019 GNULIB_MKSTEMP
1020 GNULIB_MKOSTEMPS
1021 GNULIB_MKOSTEMP
1022 GNULIB_MKDTEMP
1023 GNULIB_MBTOWC
1024 GNULIB_MALLOC_POSIX
1025 GNULIB_GRANTPT
1026 GNULIB_GETSUBOPT
1027 GNULIB_GETLOADAVG
1028 GNULIB_CANONICALIZE_FILE_NAME
1029 GNULIB_CALLOC_POSIX
1030 GNULIB_ATOLL
1031 GNULIB__EXIT
1032 REPLACE_UTIMENSAT
1033 REPLACE_STAT
1034 REPLACE_MKNOD
1035 REPLACE_MKFIFO
1036 REPLACE_MKDIR
1037 REPLACE_LSTAT
1038 REPLACE_FUTIMENS
1039 REPLACE_FSTATAT
1040 REPLACE_FSTAT
1041 HAVE_UTIMENSAT
1042 HAVE_MKNODAT
1043 HAVE_MKNOD
1044 HAVE_MKFIFOAT
1045 HAVE_MKFIFO
1046 HAVE_MKDIRAT
1047 HAVE_LSTAT
1048 HAVE_LCHMOD
1049 HAVE_FUTIMENS
1050 HAVE_FSTATAT
1051 HAVE_FCHMODAT
1052 GNULIB_UTIMENSAT
1053 GNULIB_STAT
1054 GNULIB_MKNODAT
1055 GNULIB_MKNOD
1056 GNULIB_MKFIFOAT
1057 GNULIB_MKFIFO
1058 GNULIB_MKDIRAT
1059 GNULIB_LSTAT
1060 GNULIB_LCHMOD
1061 GNULIB_FUTIMENS
1062 GNULIB_FSTATAT
1063 GNULIB_FSTAT
1064 GNULIB_FCHMODAT
1065 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1066 NEXT_FCNTL_H
1067 REPLACE_OPENAT
1068 REPLACE_OPEN
1069 REPLACE_FCNTL
1070 HAVE_OPENAT
1071 HAVE_FCNTL
1072 GNULIB_OPENAT
1073 GNULIB_OPEN
1074 GNULIB_NONBLOCKING
1075 GNULIB_FCNTL
1076 GL_GENERATE_EXECINFO_H_FALSE
1077 GL_GENERATE_EXECINFO_H_TRUE
1078 LIB_EXECINFO
1079 EXECINFO_H
1080 HAVE_DIRENT_H
1081 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1082 NEXT_DIRENT_H
1083 PRAGMA_COLUMNS
1084 PRAGMA_SYSTEM_HEADER
1085 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1086 INCLUDE_NEXT
1087 REPLACE_FDOPENDIR
1088 REPLACE_DIRFD
1089 REPLACE_CLOSEDIR
1090 REPLACE_OPENDIR
1091 HAVE_ALPHASORT
1092 HAVE_SCANDIR
1093 HAVE_FDOPENDIR
1094 HAVE_DECL_FDOPENDIR
1095 HAVE_DECL_DIRFD
1096 HAVE_CLOSEDIR
1097 HAVE_REWINDDIR
1098 HAVE_READDIR
1099 HAVE_OPENDIR
1100 GNULIB_ALPHASORT
1101 GNULIB_SCANDIR
1102 GNULIB_FDOPENDIR
1103 GNULIB_DIRFD
1104 GNULIB_CLOSEDIR
1105 GNULIB_REWINDDIR
1106 GNULIB_READDIR
1107 GNULIB_OPENDIR
1108 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1109 UNISTD_H_HAVE_WINSOCK2_H
1110 REPLACE_WRITE
1111 REPLACE_USLEEP
1112 REPLACE_UNLINKAT
1113 REPLACE_UNLINK
1114 REPLACE_TTYNAME_R
1115 REPLACE_SYMLINK
1116 REPLACE_SLEEP
1117 REPLACE_RMDIR
1118 REPLACE_READLINK
1119 REPLACE_READ
1120 REPLACE_PWRITE
1121 REPLACE_PREAD
1122 REPLACE_LSEEK
1123 REPLACE_LINKAT
1124 REPLACE_LINK
1125 REPLACE_LCHOWN
1126 REPLACE_ISATTY
1127 REPLACE_GETPAGESIZE
1128 REPLACE_GETGROUPS
1129 REPLACE_GETLOGIN_R
1130 REPLACE_GETDOMAINNAME
1131 REPLACE_GETCWD
1132 REPLACE_FTRUNCATE
1133 REPLACE_FCHOWNAT
1134 REPLACE_DUP2
1135 REPLACE_DUP
1136 REPLACE_CLOSE
1137 REPLACE_CHOWN
1138 HAVE_SYS_PARAM_H
1139 HAVE_OS_H
1140 HAVE_DECL_TTYNAME_R
1141 HAVE_DECL_SETHOSTNAME
1142 HAVE_DECL_GETUSERSHELL
1143 HAVE_DECL_GETPAGESIZE
1144 HAVE_DECL_GETLOGIN_R
1145 HAVE_DECL_GETDOMAINNAME
1146 HAVE_DECL_FDATASYNC
1147 HAVE_DECL_FCHDIR
1148 HAVE_DECL_ENVIRON
1149 HAVE_USLEEP
1150 HAVE_UNLINKAT
1151 HAVE_SYMLINKAT
1152 HAVE_SYMLINK
1153 HAVE_SLEEP
1154 HAVE_SETHOSTNAME
1155 HAVE_READLINKAT
1156 HAVE_READLINK
1157 HAVE_PWRITE
1158 HAVE_PREAD
1159 HAVE_PIPE2
1160 HAVE_PIPE
1161 HAVE_LINKAT
1162 HAVE_LINK
1163 HAVE_LCHOWN
1164 HAVE_GROUP_MEMBER
1165 HAVE_GETPAGESIZE
1166 HAVE_GETLOGIN
1167 HAVE_GETHOSTNAME
1168 HAVE_GETGROUPS
1169 HAVE_GETDTABLESIZE
1170 HAVE_FTRUNCATE
1171 HAVE_FSYNC
1172 HAVE_FDATASYNC
1173 HAVE_FCHOWNAT
1174 HAVE_FCHDIR
1175 HAVE_FACCESSAT
1176 HAVE_EUIDACCESS
1177 HAVE_DUP3
1178 HAVE_DUP2
1179 HAVE_CHOWN
1180 GNULIB_WRITE
1181 GNULIB_USLEEP
1182 GNULIB_UNLINKAT
1183 GNULIB_UNLINK
1184 GNULIB_UNISTD_H_SIGPIPE
1185 GNULIB_UNISTD_H_NONBLOCKING
1186 GNULIB_TTYNAME_R
1187 GNULIB_SYMLINKAT
1188 GNULIB_SYMLINK
1189 GNULIB_SLEEP
1190 GNULIB_SETHOSTNAME
1191 GNULIB_RMDIR
1192 GNULIB_READLINKAT
1193 GNULIB_READLINK
1194 GNULIB_READ
1195 GNULIB_PWRITE
1196 GNULIB_PREAD
1197 GNULIB_PIPE2
1198 GNULIB_PIPE
1199 GNULIB_LSEEK
1200 GNULIB_LINKAT
1201 GNULIB_LINK
1202 GNULIB_LCHOWN
1203 GNULIB_ISATTY
1204 GNULIB_GROUP_MEMBER
1205 GNULIB_GETUSERSHELL
1206 GNULIB_GETPAGESIZE
1207 GNULIB_GETLOGIN_R
1208 GNULIB_GETLOGIN
1209 GNULIB_GETHOSTNAME
1210 GNULIB_GETGROUPS
1211 GNULIB_GETDTABLESIZE
1212 GNULIB_GETDOMAINNAME
1213 GNULIB_GETCWD
1214 GNULIB_FTRUNCATE
1215 GNULIB_FSYNC
1216 GNULIB_FDATASYNC
1217 GNULIB_FCHOWNAT
1218 GNULIB_FCHDIR
1219 GNULIB_FACCESSAT
1220 GNULIB_EUIDACCESS
1221 GNULIB_ENVIRON
1222 GNULIB_DUP3
1223 GNULIB_DUP2
1224 GNULIB_DUP
1225 GNULIB_CLOSE
1226 GNULIB_CHOWN
1227 GNULIB_CHDIR
1228 LIB_CLOCK_GETTIME
1229 GL_GENERATE_ALLOCA_H_FALSE
1230 GL_GENERATE_ALLOCA_H_TRUE
1231 ALLOCA_H
1232 ALLOCA
1233 GL_COND_LIBTOOL_FALSE
1234 GL_COND_LIBTOOL_TRUE
1235 POST_ALLOC_OBJ
1236 PRE_ALLOC_OBJ
1237 CYGWIN_OBJ
1238 RALLOC_OBJ
1239 OLDXMENU_DEPS
1240 LIBX_OTHER
1241 LIBXMENU
1242 OLDXMENU
1243 OLDXMENU_TARGET
1244 LIBXT_OTHER
1245 TOOLKIT_LIBW
1246 WIDGET_OBJ
1247 XOBJ
1248 XMENU_OBJ
1249 FONT_OBJ
1250 OTHER_FILES
1251 GNU_OBJC_CFLAGS
1252 ns_appsrc
1253 ns_appresdir
1254 ns_appbindir
1255 ns_appdir
1256 X_TOOLKIT_TYPE
1257 GNUSTEP_CFLAGS
1258 C_SWITCH_X_SITE
1259 LD_SWITCH_X_SITE
1260 gameuser
1261 gamedir
1262 bitmapdir
1263 archlibdir
1264 etcdir
1265 x_default_search_path
1266 lisppath
1267 locallisppath
1268 standardlisppath
1269 leimdir
1270 lispdir
1271 srcdir
1272 canonical
1273 configuration
1274 version
1275 copyright
1276 KRB4LIB
1277 DESLIB
1278 KRB5LIB
1279 CRYPTOLIB
1280 COM_ERRLIB
1281 LIBRESOLV
1282 LIBHESIOD
1283 TERMCAP_OBJ
1284 LIBS_TERMCAP
1285 BLESSMAIL_TARGET
1286 LIBS_MAIL
1287 liblockfile
1288 LIBXML2_LIBS
1289 LIBXML2_CFLAGS
1290 LIBXSM
1291 LIBGPM
1292 LIBGIF
1293 LIBTIFF
1294 LIBPNG
1295 LIBJPEG
1296 LIBXPM
1297 M17N_FLT_LIBS
1298 M17N_FLT_CFLAGS
1299 LIBOTF_LIBS
1300 LIBOTF_CFLAGS
1301 FREETYPE_LIBS
1302 FREETYPE_CFLAGS
1303 XFT_LIBS
1304 XFT_CFLAGS
1305 FONTCONFIG_LIBS
1306 FONTCONFIG_CFLAGS
1307 LIBXMU
1308 LIBXTR6
1309 LIBACL_LIBS
1310 LIBGNUTLS_LIBS
1311 LIBGNUTLS_CFLAGS
1312 LIBSELINUX_LIBS
1313 SETTINGS_LIBS
1314 SETTINGS_CFLAGS
1315 GOBJECT_LIBS
1316 GOBJECT_CFLAGS
1317 GCONF_LIBS
1318 GCONF_CFLAGS
1319 GSETTINGS_LIBS
1320 GSETTINGS_CFLAGS
1321 DBUS_OBJ
1322 DBUS_LIBS
1323 DBUS_CFLAGS
1324 GTK_OBJ
1325 GTK_LIBS
1326 GTK_CFLAGS
1327 IMAGEMAGICK_LIBS
1328 IMAGEMAGICK_CFLAGS
1329 RSVG_LIBS
1330 RSVG_CFLAGS
1331 LIB_PTHREAD
1332 VMLIMIT_OBJ
1333 GMALLOC_OBJ
1334 HAVE_XSERVER
1335 W32_RES_LINK
1336 W32_RES
1337 W32_LIBS
1338 W32_OBJ
1339 WINDRES
1340 LIB_STANDARD
1341 NS_OBJC_OBJ
1342 NS_OBJ
1343 ns_self_contained
1344 INSTALL_ARCH_INDEP_EXTRA
1345 LIBS_GNUSTEP
1346 LD_SWITCH_X_SITE_RPATH
1347 XMKMF
1348 DEPFLAGS
1349 MKDEPDIR
1350 CFLAGS_SOUND
1351 ALSA_LIBS
1352 ALSA_CFLAGS
1353 LIBSOUND
1354 PKG_CONFIG
1355 CRT_DIR
1356 START_FILES
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
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_crt_dir
1511 with_gameuser
1512 with_gnustep_conf
1513 enable_ns_self_contained
1514 enable_locallisppath
1515 enable_checking
1516 enable_check_lisp_object_type
1517 enable_profiling
1518 enable_autodepend
1519 enable_gtk_deprecation_warnings
1520 enable_dependency_tracking
1521 enable_largefile
1522 enable_gcc_warnings
1523 enable_link_time_optimization
1524 with_x
1525 '
1526 ac_precious_vars='build_alias
1527 host_alias
1528 target_alias
1529 CC
1530 CFLAGS
1531 LDFLAGS
1532 LIBS
1533 CPPFLAGS
1534 CPP
1535 XMKMF'
1536
1537
1538 # Initialize some variables set by options.
1539 ac_init_help=
1540 ac_init_version=false
1541 ac_unrecognized_opts=
1542 ac_unrecognized_sep=
1543 # The variables have the same names as the options, with
1544 # dashes changed to underlines.
1545 cache_file=/dev/null
1546 exec_prefix=NONE
1547 no_create=
1548 no_recursion=
1549 prefix=NONE
1550 program_prefix=NONE
1551 program_suffix=NONE
1552 program_transform_name=s,x,x,
1553 silent=
1554 site=
1555 srcdir=
1556 verbose=
1557 x_includes=NONE
1558 x_libraries=NONE
1559
1560 # Installation directory options.
1561 # These are left unexpanded so users can "make install exec_prefix=/foo"
1562 # and all the variables that are supposed to be based on exec_prefix
1563 # by default will actually change.
1564 # Use braces instead of parens because sh, perl, etc. also accept them.
1565 # (The list follows the same order as the GNU Coding Standards.)
1566 bindir='${exec_prefix}/bin'
1567 sbindir='${exec_prefix}/sbin'
1568 libexecdir='${exec_prefix}/libexec'
1569 datarootdir='${prefix}/share'
1570 datadir='${datarootdir}'
1571 sysconfdir='${prefix}/etc'
1572 sharedstatedir='${prefix}/com'
1573 localstatedir='${prefix}/var'
1574 includedir='${prefix}/include'
1575 oldincludedir='/usr/include'
1576 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1577 infodir='${datarootdir}/info'
1578 htmldir='${docdir}'
1579 dvidir='${docdir}'
1580 pdfdir='${docdir}'
1581 psdir='${docdir}'
1582 libdir='${exec_prefix}/lib'
1583 localedir='${datarootdir}/locale'
1584 mandir='${datarootdir}/man'
1585
1586 ac_prev=
1587 ac_dashdash=
1588 for ac_option
1589 do
1590 # If the previous option needs an argument, assign it.
1591 if test -n "$ac_prev"; then
1592 eval $ac_prev=\$ac_option
1593 ac_prev=
1594 continue
1595 fi
1596
1597 case $ac_option in
1598 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1599 *) ac_optarg=yes ;;
1600 esac
1601
1602 # Accept the important Cygnus configure options, so we can diagnose typos.
1603
1604 case $ac_dashdash$ac_option in
1605 --)
1606 ac_dashdash=yes ;;
1607
1608 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1609 ac_prev=bindir ;;
1610 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1611 bindir=$ac_optarg ;;
1612
1613 -build | --build | --buil | --bui | --bu)
1614 ac_prev=build_alias ;;
1615 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1616 build_alias=$ac_optarg ;;
1617
1618 -cache-file | --cache-file | --cache-fil | --cache-fi \
1619 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1620 ac_prev=cache_file ;;
1621 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1622 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1623 cache_file=$ac_optarg ;;
1624
1625 --config-cache | -C)
1626 cache_file=config.cache ;;
1627
1628 -datadir | --datadir | --datadi | --datad)
1629 ac_prev=datadir ;;
1630 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1631 datadir=$ac_optarg ;;
1632
1633 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1634 | --dataroo | --dataro | --datar)
1635 ac_prev=datarootdir ;;
1636 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1637 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1638 datarootdir=$ac_optarg ;;
1639
1640 -disable-* | --disable-*)
1641 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1642 # Reject names that are not valid shell variable names.
1643 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1644 as_fn_error "invalid feature name: $ac_useropt"
1645 ac_useropt_orig=$ac_useropt
1646 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1647 case $ac_user_opts in
1648 *"
1649 "enable_$ac_useropt"
1650 "*) ;;
1651 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1652 ac_unrecognized_sep=', ';;
1653 esac
1654 eval enable_$ac_useropt=no ;;
1655
1656 -docdir | --docdir | --docdi | --doc | --do)
1657 ac_prev=docdir ;;
1658 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1659 docdir=$ac_optarg ;;
1660
1661 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1662 ac_prev=dvidir ;;
1663 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1664 dvidir=$ac_optarg ;;
1665
1666 -enable-* | --enable-*)
1667 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1668 # Reject names that are not valid shell variable names.
1669 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1670 as_fn_error "invalid feature name: $ac_useropt"
1671 ac_useropt_orig=$ac_useropt
1672 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1673 case $ac_user_opts in
1674 *"
1675 "enable_$ac_useropt"
1676 "*) ;;
1677 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1678 ac_unrecognized_sep=', ';;
1679 esac
1680 eval enable_$ac_useropt=\$ac_optarg ;;
1681
1682 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1683 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1684 | --exec | --exe | --ex)
1685 ac_prev=exec_prefix ;;
1686 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1687 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1688 | --exec=* | --exe=* | --ex=*)
1689 exec_prefix=$ac_optarg ;;
1690
1691 -gas | --gas | --ga | --g)
1692 # Obsolete; use --with-gas.
1693 with_gas=yes ;;
1694
1695 -help | --help | --hel | --he | -h)
1696 ac_init_help=long ;;
1697 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1698 ac_init_help=recursive ;;
1699 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1700 ac_init_help=short ;;
1701
1702 -host | --host | --hos | --ho)
1703 ac_prev=host_alias ;;
1704 -host=* | --host=* | --hos=* | --ho=*)
1705 host_alias=$ac_optarg ;;
1706
1707 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1708 ac_prev=htmldir ;;
1709 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1710 | --ht=*)
1711 htmldir=$ac_optarg ;;
1712
1713 -includedir | --includedir | --includedi | --included | --include \
1714 | --includ | --inclu | --incl | --inc)
1715 ac_prev=includedir ;;
1716 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1717 | --includ=* | --inclu=* | --incl=* | --inc=*)
1718 includedir=$ac_optarg ;;
1719
1720 -infodir | --infodir | --infodi | --infod | --info | --inf)
1721 ac_prev=infodir ;;
1722 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1723 infodir=$ac_optarg ;;
1724
1725 -libdir | --libdir | --libdi | --libd)
1726 ac_prev=libdir ;;
1727 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1728 libdir=$ac_optarg ;;
1729
1730 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1731 | --libexe | --libex | --libe)
1732 ac_prev=libexecdir ;;
1733 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1734 | --libexe=* | --libex=* | --libe=*)
1735 libexecdir=$ac_optarg ;;
1736
1737 -localedir | --localedir | --localedi | --localed | --locale)
1738 ac_prev=localedir ;;
1739 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1740 localedir=$ac_optarg ;;
1741
1742 -localstatedir | --localstatedir | --localstatedi | --localstated \
1743 | --localstate | --localstat | --localsta | --localst | --locals)
1744 ac_prev=localstatedir ;;
1745 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1746 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1747 localstatedir=$ac_optarg ;;
1748
1749 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1750 ac_prev=mandir ;;
1751 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1752 mandir=$ac_optarg ;;
1753
1754 -nfp | --nfp | --nf)
1755 # Obsolete; use --without-fp.
1756 with_fp=no ;;
1757
1758 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1759 | --no-cr | --no-c | -n)
1760 no_create=yes ;;
1761
1762 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1763 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1764 no_recursion=yes ;;
1765
1766 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1767 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1768 | --oldin | --oldi | --old | --ol | --o)
1769 ac_prev=oldincludedir ;;
1770 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1771 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1772 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1773 oldincludedir=$ac_optarg ;;
1774
1775 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1776 ac_prev=prefix ;;
1777 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1778 prefix=$ac_optarg ;;
1779
1780 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1781 | --program-pre | --program-pr | --program-p)
1782 ac_prev=program_prefix ;;
1783 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1784 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1785 program_prefix=$ac_optarg ;;
1786
1787 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1788 | --program-suf | --program-su | --program-s)
1789 ac_prev=program_suffix ;;
1790 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1791 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1792 program_suffix=$ac_optarg ;;
1793
1794 -program-transform-name | --program-transform-name \
1795 | --program-transform-nam | --program-transform-na \
1796 | --program-transform-n | --program-transform- \
1797 | --program-transform | --program-transfor \
1798 | --program-transfo | --program-transf \
1799 | --program-trans | --program-tran \
1800 | --progr-tra | --program-tr | --program-t)
1801 ac_prev=program_transform_name ;;
1802 -program-transform-name=* | --program-transform-name=* \
1803 | --program-transform-nam=* | --program-transform-na=* \
1804 | --program-transform-n=* | --program-transform-=* \
1805 | --program-transform=* | --program-transfor=* \
1806 | --program-transfo=* | --program-transf=* \
1807 | --program-trans=* | --program-tran=* \
1808 | --progr-tra=* | --program-tr=* | --program-t=*)
1809 program_transform_name=$ac_optarg ;;
1810
1811 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1812 ac_prev=pdfdir ;;
1813 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1814 pdfdir=$ac_optarg ;;
1815
1816 -psdir | --psdir | --psdi | --psd | --ps)
1817 ac_prev=psdir ;;
1818 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1819 psdir=$ac_optarg ;;
1820
1821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1822 | -silent | --silent | --silen | --sile | --sil)
1823 silent=yes ;;
1824
1825 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1826 ac_prev=sbindir ;;
1827 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1828 | --sbi=* | --sb=*)
1829 sbindir=$ac_optarg ;;
1830
1831 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1832 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1833 | --sharedst | --shareds | --shared | --share | --shar \
1834 | --sha | --sh)
1835 ac_prev=sharedstatedir ;;
1836 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1837 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1838 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1839 | --sha=* | --sh=*)
1840 sharedstatedir=$ac_optarg ;;
1841
1842 -site | --site | --sit)
1843 ac_prev=site ;;
1844 -site=* | --site=* | --sit=*)
1845 site=$ac_optarg ;;
1846
1847 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1848 ac_prev=srcdir ;;
1849 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1850 srcdir=$ac_optarg ;;
1851
1852 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1853 | --syscon | --sysco | --sysc | --sys | --sy)
1854 ac_prev=sysconfdir ;;
1855 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1856 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1857 sysconfdir=$ac_optarg ;;
1858
1859 -target | --target | --targe | --targ | --tar | --ta | --t)
1860 ac_prev=target_alias ;;
1861 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1862 target_alias=$ac_optarg ;;
1863
1864 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1865 verbose=yes ;;
1866
1867 -version | --version | --versio | --versi | --vers | -V)
1868 ac_init_version=: ;;
1869
1870 -with-* | --with-*)
1871 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1872 # Reject names that are not valid shell variable names.
1873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1874 as_fn_error "invalid package name: $ac_useropt"
1875 ac_useropt_orig=$ac_useropt
1876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1877 case $ac_user_opts in
1878 *"
1879 "with_$ac_useropt"
1880 "*) ;;
1881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1882 ac_unrecognized_sep=', ';;
1883 esac
1884 eval with_$ac_useropt=\$ac_optarg ;;
1885
1886 -without-* | --without-*)
1887 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1888 # Reject names that are not valid shell variable names.
1889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1890 as_fn_error "invalid package name: $ac_useropt"
1891 ac_useropt_orig=$ac_useropt
1892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1893 case $ac_user_opts in
1894 *"
1895 "with_$ac_useropt"
1896 "*) ;;
1897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1898 ac_unrecognized_sep=', ';;
1899 esac
1900 eval with_$ac_useropt=no ;;
1901
1902 --x)
1903 # Obsolete; use --with-x.
1904 with_x=yes ;;
1905
1906 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1907 | --x-incl | --x-inc | --x-in | --x-i)
1908 ac_prev=x_includes ;;
1909 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1910 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1911 x_includes=$ac_optarg ;;
1912
1913 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1914 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1915 ac_prev=x_libraries ;;
1916 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1917 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1918 x_libraries=$ac_optarg ;;
1919
1920 -*) as_fn_error "unrecognized option: \`$ac_option'
1921 Try \`$0 --help' for more information."
1922 ;;
1923
1924 *=*)
1925 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1926 # Reject names that are not valid shell variable names.
1927 case $ac_envvar in #(
1928 '' | [0-9]* | *[!_$as_cr_alnum]* )
1929 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1930 esac
1931 eval $ac_envvar=\$ac_optarg
1932 export $ac_envvar ;;
1933
1934 *)
1935 # FIXME: should be removed in autoconf 3.0.
1936 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1937 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1938 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1939 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1940 ;;
1941
1942 esac
1943 done
1944
1945 if test -n "$ac_prev"; then
1946 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1947 as_fn_error "missing argument to $ac_option"
1948 fi
1949
1950 if test -n "$ac_unrecognized_opts"; then
1951 case $enable_option_checking in
1952 no) ;;
1953 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1954 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1955 esac
1956 fi
1957
1958 # Check all directory arguments for consistency.
1959 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1960 datadir sysconfdir sharedstatedir localstatedir includedir \
1961 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1962 libdir localedir mandir
1963 do
1964 eval ac_val=\$$ac_var
1965 # Remove trailing slashes.
1966 case $ac_val in
1967 */ )
1968 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1969 eval $ac_var=\$ac_val;;
1970 esac
1971 # Be sure to have absolute directory names.
1972 case $ac_val in
1973 [\\/$]* | ?:[\\/]* ) continue;;
1974 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1975 esac
1976 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1977 done
1978
1979 # There might be people who depend on the old broken behavior: `$host'
1980 # used to hold the argument of --host etc.
1981 # FIXME: To remove some day.
1982 build=$build_alias
1983 host=$host_alias
1984 target=$target_alias
1985
1986 # FIXME: To remove some day.
1987 if test "x$host_alias" != x; then
1988 if test "x$build_alias" = x; then
1989 cross_compiling=maybe
1990 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1991 If a cross compiler is detected then cross compile mode will be used." >&2
1992 elif test "x$build_alias" != "x$host_alias"; then
1993 cross_compiling=yes
1994 fi
1995 fi
1996
1997 ac_tool_prefix=
1998 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1999
2000 test "$silent" = yes && exec 6>/dev/null
2001
2002
2003 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2004 ac_ls_di=`ls -di .` &&
2005 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2006 as_fn_error "working directory cannot be determined"
2007 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2008 as_fn_error "pwd does not report name of working directory"
2009
2010
2011 # Find the source files, if location was not specified.
2012 if test -z "$srcdir"; then
2013 ac_srcdir_defaulted=yes
2014 # Try the directory containing this script, then the parent directory.
2015 ac_confdir=`$as_dirname -- "$as_myself" ||
2016 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2017 X"$as_myself" : 'X\(//\)[^/]' \| \
2018 X"$as_myself" : 'X\(//\)$' \| \
2019 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2020 $as_echo X"$as_myself" |
2021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2022 s//\1/
2023 q
2024 }
2025 /^X\(\/\/\)[^/].*/{
2026 s//\1/
2027 q
2028 }
2029 /^X\(\/\/\)$/{
2030 s//\1/
2031 q
2032 }
2033 /^X\(\/\).*/{
2034 s//\1/
2035 q
2036 }
2037 s/.*/./; q'`
2038 srcdir=$ac_confdir
2039 if test ! -r "$srcdir/$ac_unique_file"; then
2040 srcdir=..
2041 fi
2042 else
2043 ac_srcdir_defaulted=no
2044 fi
2045 if test ! -r "$srcdir/$ac_unique_file"; then
2046 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2047 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2048 fi
2049 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2050 ac_abs_confdir=`(
2051 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2052 pwd)`
2053 # When building in place, set srcdir=.
2054 if test "$ac_abs_confdir" = "$ac_pwd"; then
2055 srcdir=.
2056 fi
2057 # Remove unnecessary trailing slashes from srcdir.
2058 # Double slashes in file names in object file debugging info
2059 # mess up M-x gdb in Emacs.
2060 case $srcdir in
2061 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2062 esac
2063 for ac_var in $ac_precious_vars; do
2064 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2065 eval ac_env_${ac_var}_value=\$${ac_var}
2066 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2067 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2068 done
2069
2070 #
2071 # Report the --help message.
2072 #
2073 if test "$ac_init_help" = "long"; then
2074 # Omit some internal or obsolete options to make the list less imposing.
2075 # This message is too long to be a string in the A/UX 3.1 sh.
2076 cat <<_ACEOF
2077 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2078
2079 Usage: $0 [OPTION]... [VAR=VALUE]...
2080
2081 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2082 VAR=VALUE. See below for descriptions of some of the useful variables.
2083
2084 Defaults for the options are specified in brackets.
2085
2086 Configuration:
2087 -h, --help display this help and exit
2088 --help=short display options specific to this package
2089 --help=recursive display the short help of all the included packages
2090 -V, --version display version information and exit
2091 -q, --quiet, --silent do not print \`checking...' messages
2092 --cache-file=FILE cache test results in FILE [disabled]
2093 -C, --config-cache alias for \`--cache-file=config.cache'
2094 -n, --no-create do not create output files
2095 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2096
2097 Installation directories:
2098 --prefix=PREFIX install architecture-independent files in PREFIX
2099 [$ac_default_prefix]
2100 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2101 [PREFIX]
2102
2103 By default, \`make install' will install all the files in
2104 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2105 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2106 for instance \`--prefix=\$HOME'.
2107
2108 For better control, use the options below.
2109
2110 Fine tuning of the installation directories:
2111 --bindir=DIR user executables [EPREFIX/bin]
2112 --sbindir=DIR system admin executables [EPREFIX/sbin]
2113 --libexecdir=DIR program executables [EPREFIX/libexec]
2114 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2115 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2116 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2117 --libdir=DIR object code libraries [EPREFIX/lib]
2118 --includedir=DIR C header files [PREFIX/include]
2119 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2120 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2121 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2122 --infodir=DIR info documentation [DATAROOTDIR/info]
2123 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2124 --mandir=DIR man documentation [DATAROOTDIR/man]
2125 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2126 --htmldir=DIR html documentation [DOCDIR]
2127 --dvidir=DIR dvi documentation [DOCDIR]
2128 --pdfdir=DIR pdf documentation [DOCDIR]
2129 --psdir=DIR ps documentation [DOCDIR]
2130 _ACEOF
2131
2132 cat <<\_ACEOF
2133
2134 Program names:
2135 --program-prefix=PREFIX prepend PREFIX to installed program names
2136 --program-suffix=SUFFIX append SUFFIX to installed program names
2137 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2138
2139 X features:
2140 --x-includes=DIR X include files are in DIR
2141 --x-libraries=DIR X library files are in DIR
2142
2143 System types:
2144 --build=BUILD configure for building on BUILD [guessed]
2145 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2146 _ACEOF
2147 fi
2148
2149 if test -n "$ac_init_help"; then
2150 case $ac_init_help in
2151 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2152 esac
2153 cat <<\_ACEOF
2154
2155 Optional Features:
2156 --disable-option-checking ignore unrecognized --enable/--with options
2157 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2158 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2159 --disable-ns-self-contained
2160 disable self contained build under NeXTstep
2161 --enable-locallisppath=PATH
2162 directories Emacs should search for lisp files
2163 specific to this site
2164 --enable-checking[=LIST]
2165 enable expensive run-time checks. With LIST, enable
2166 only specific categories of checks. Categories are:
2167 all,yes,no. Flags are: stringbytes, stringoverrun,
2168 stringfreelist, xmallocoverrun, conslist, glyphs
2169 --enable-check-lisp-object-type
2170 enable compile time checks for the Lisp_Object data
2171 type. This is useful for development for catching
2172 certain types of bugs.
2173 --enable-profiling build emacs with low-level, gprof profiling support.
2174 Mainly useful for debugging Emacs itself. May not
2175 work on all platforms. Stops profiler.el working.
2176 --enable-autodepend automatically generate dependencies to .h-files.
2177 Requires GNU Make and Gcc. Enabled if GNU Make and
2178 Gcc is found
2179 --enable-gtk-deprecation-warnings
2180 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2181 --disable-dependency-tracking speeds up one-time build
2182 --enable-dependency-tracking do not reject slow dependency extractors
2183 --disable-largefile omit support for large files
2184 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2185 intended for developers, and may generate false
2186 alarms when used with older or non-GNU development
2187 tools.
2188 --enable-link-time-optimization
2189 build emacs with link-time optimization. This is
2190 supported only for GCC since 4.5.0.
2191
2192 Optional Packages:
2193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2195 --without-all omit almost all features and build small executable
2196 with minimal dependencies
2197 --without-pop don't support POP mail retrieval with movemail
2198 --with-kerberos support Kerberos-authenticated POP
2199 --with-kerberos5 support Kerberos version 5 authenticated POP
2200 --with-hesiod support Hesiod to get the POP server host
2201 --with-mmdf support MMDF mailboxes
2202 --with-mail-unlink unlink, rather than empty, mail spool after reading
2203 --with-mailhost=HOSTNAME
2204 string giving default POP mail host
2205 --without-sound don't compile with sound support
2206 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2207 gtk3, lucid or athena, motif, no)
2208 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2209 --without-xpm don't compile with XPM image support
2210 --without-jpeg don't compile with JPEG image support
2211 --without-tiff don't compile with TIFF image support
2212 --without-gif don't compile with GIF image support
2213 --without-png don't compile with PNG image support
2214 --without-rsvg don't compile with SVG image support
2215 --without-xml2 don't compile with XML parsing support
2216 --without-imagemagick don't compile with ImageMagick image support
2217 --without-xft don't use XFT for anti aliased fonts
2218 --without-libotf don't use libotf for OpenType font support
2219 --without-m17n-flt don't use m17n-flt for text shaping
2220 --without-toolkit-scroll-bars
2221 don't use Motif or Xaw3d scroll bars
2222 --without-xaw3d don't use Xaw3d
2223 --without-xim don't use X11 XIM
2224 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2225 --with-w32 use native MS Windows GUI
2226 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2227 console
2228 --without-dbus don't compile with D-Bus support
2229 --without-gconf don't compile with GConf support
2230 --without-gsettings don't compile with GSettings support
2231 --without-selinux don't compile with SELinux support
2232 --without-acl don't compile with ACL support
2233 --without-gnutls don't use -lgnutls for SSL/TLS support
2234 --without-inotify don't compile with inotify (file-watch) support
2235 --without-makeinfo don't require makeinfo for building manuals
2236 --without-compress-info don't compress the installed Info pages
2237 --with-pkg-config-prog=FILENAME
2238 file name of pkg-config for finding GTK and librsvg
2239 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2240 /usr/lib, or /usr/lib64 on some platforms.
2241 --with-gameuser=USER user for shared game score files
2242 --with-gnustep-conf=FILENAME
2243 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2244 or /etc/GNUstep/GNUstep.conf
2245 --with-x use the X Window System
2246
2247 Some influential environment variables:
2248 CC C compiler command
2249 CFLAGS C compiler flags
2250 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2251 nonstandard directory <lib dir>
2252 LIBS libraries to pass to the linker, e.g. -l<library>
2253 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2254 you have headers in a nonstandard directory <include dir>
2255 CPP C preprocessor
2256 XMKMF Path to xmkmf, Makefile generator for X Window System
2257
2258 Use these variables to override the choices made by `configure' or to help
2259 it to find libraries and programs with nonstandard names/locations.
2260
2261 Report bugs to the package provider.
2262 _ACEOF
2263 ac_status=$?
2264 fi
2265
2266 if test "$ac_init_help" = "recursive"; then
2267 # If there are subdirs, report their specific --help.
2268 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2269 test -d "$ac_dir" ||
2270 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2271 continue
2272 ac_builddir=.
2273
2274 case "$ac_dir" in
2275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2276 *)
2277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2278 # A ".." for each directory in $ac_dir_suffix.
2279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2280 case $ac_top_builddir_sub in
2281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2283 esac ;;
2284 esac
2285 ac_abs_top_builddir=$ac_pwd
2286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2287 # for backward compatibility:
2288 ac_top_builddir=$ac_top_build_prefix
2289
2290 case $srcdir in
2291 .) # We are building in place.
2292 ac_srcdir=.
2293 ac_top_srcdir=$ac_top_builddir_sub
2294 ac_abs_top_srcdir=$ac_pwd ;;
2295 [\\/]* | ?:[\\/]* ) # Absolute name.
2296 ac_srcdir=$srcdir$ac_dir_suffix;
2297 ac_top_srcdir=$srcdir
2298 ac_abs_top_srcdir=$srcdir ;;
2299 *) # Relative name.
2300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2301 ac_top_srcdir=$ac_top_build_prefix$srcdir
2302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2303 esac
2304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2305
2306 cd "$ac_dir" || { ac_status=$?; continue; }
2307 # Check for guested configure.
2308 if test -f "$ac_srcdir/configure.gnu"; then
2309 echo &&
2310 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2311 elif test -f "$ac_srcdir/configure"; then
2312 echo &&
2313 $SHELL "$ac_srcdir/configure" --help=recursive
2314 else
2315 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2316 fi || ac_status=$?
2317 cd "$ac_pwd" || { ac_status=$?; break; }
2318 done
2319 fi
2320
2321 test -n "$ac_init_help" && exit $ac_status
2322 if $ac_init_version; then
2323 cat <<\_ACEOF
2324 emacs configure 24.3.50
2325 generated by GNU Autoconf 2.65
2326
2327 Copyright (C) 2009 Free Software Foundation, Inc.
2328 This configure script is free software; the Free Software Foundation
2329 gives unlimited permission to copy, distribute and modify it.
2330 _ACEOF
2331 exit
2332 fi
2333
2334 ## ------------------------ ##
2335 ## Autoconf initialization. ##
2336 ## ------------------------ ##
2337
2338 # ac_fn_c_try_compile LINENO
2339 # --------------------------
2340 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2341 ac_fn_c_try_compile ()
2342 {
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 rm -f conftest.$ac_objext
2345 if { { ac_try="$ac_compile"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_compile") 2>conftest.err
2353 ac_status=$?
2354 if test -s conftest.err; then
2355 grep -v '^ *+' conftest.err >conftest.er1
2356 cat conftest.er1 >&5
2357 mv -f conftest.er1 conftest.err
2358 fi
2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360 test $ac_status = 0; } && {
2361 test -z "$ac_c_werror_flag" ||
2362 test ! -s conftest.err
2363 } && test -s conftest.$ac_objext; then :
2364 ac_retval=0
2365 else
2366 $as_echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_retval=1
2370 fi
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 as_fn_set_status $ac_retval
2373
2374 } # ac_fn_c_try_compile
2375
2376 # ac_fn_c_try_cpp LINENO
2377 # ----------------------
2378 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2379 ac_fn_c_try_cpp ()
2380 {
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 if { { ac_try="$ac_cpp conftest.$ac_ext"
2383 case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2390 ac_status=$?
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2395 fi
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } >/dev/null && {
2398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 }; then :
2401 ac_retval=0
2402 else
2403 $as_echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_retval=1
2407 fi
2408 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2409 as_fn_set_status $ac_retval
2410
2411 } # ac_fn_c_try_cpp
2412
2413 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2414 # -------------------------------------------------------
2415 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2416 # the include files in INCLUDES and setting the cache variable VAR
2417 # accordingly.
2418 ac_fn_c_check_header_mongrel ()
2419 {
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2423 $as_echo_n "checking for $2... " >&6; }
2424 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2425 $as_echo_n "(cached) " >&6
2426 fi
2427 eval ac_res=\$$3
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 else
2431 # Is the header compilable?
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2433 $as_echo_n "checking $2 usability... " >&6; }
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2436 $4
2437 #include <$2>
2438 _ACEOF
2439 if ac_fn_c_try_compile "$LINENO"; then :
2440 ac_header_compiler=yes
2441 else
2442 ac_header_compiler=no
2443 fi
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2446 $as_echo "$ac_header_compiler" >&6; }
2447
2448 # Is the header present?
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2450 $as_echo_n "checking $2 presence... " >&6; }
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2453 #include <$2>
2454 _ACEOF
2455 if ac_fn_c_try_cpp "$LINENO"; then :
2456 ac_header_preproc=yes
2457 else
2458 ac_header_preproc=no
2459 fi
2460 rm -f conftest.err conftest.$ac_ext
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2462 $as_echo "$ac_header_preproc" >&6; }
2463
2464 # So? What about this header?
2465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2466 yes:no: )
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2468 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2470 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2471 ;;
2472 no:yes:* )
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2474 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2476 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2478 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2480 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2482 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2483 ;;
2484 esac
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2486 $as_echo_n "checking for $2... " >&6; }
2487 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 eval "$3=\$ac_header_compiler"
2491 fi
2492 eval ac_res=\$$3
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494 $as_echo "$ac_res" >&6; }
2495 fi
2496 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2497
2498 } # ac_fn_c_check_header_mongrel
2499
2500 # ac_fn_c_try_run LINENO
2501 # ----------------------
2502 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2503 # that executables *can* be run.
2504 ac_fn_c_try_run ()
2505 {
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 if { { ac_try="$ac_link"
2508 case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511 esac
2512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2513 $as_echo "$ac_try_echo"; } >&5
2514 (eval "$ac_link") 2>&5
2515 ac_status=$?
2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2518 { { case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521 esac
2522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523 $as_echo "$ac_try_echo"; } >&5
2524 (eval "$ac_try") 2>&5
2525 ac_status=$?
2526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2527 test $ac_status = 0; }; }; then :
2528 ac_retval=0
2529 else
2530 $as_echo "$as_me: program exited with status $ac_status" >&5
2531 $as_echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 ac_retval=$ac_status
2535 fi
2536 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 as_fn_set_status $ac_retval
2539
2540 } # ac_fn_c_try_run
2541
2542 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2543 # -------------------------------------------------------
2544 # Tests whether HEADER exists and can be compiled using the include files in
2545 # INCLUDES, setting the cache variable VAR accordingly.
2546 ac_fn_c_check_header_compile ()
2547 {
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $4
2557 #include <$2>
2558 _ACEOF
2559 if ac_fn_c_try_compile "$LINENO"; then :
2560 eval "$3=yes"
2561 else
2562 eval "$3=no"
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 fi
2566 eval ac_res=\$$3
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568 $as_echo "$ac_res" >&6; }
2569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2570
2571 } # ac_fn_c_check_header_compile
2572
2573 # ac_fn_c_try_link LINENO
2574 # -----------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_c_try_link ()
2577 {
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { { ac_try="$ac_link"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2588 ac_status=$?
2589 if test -s conftest.err; then
2590 grep -v '^ *+' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 mv -f conftest.er1 conftest.err
2593 fi
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_c_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest$ac_exeext && {
2599 test "$cross_compiling" = yes ||
2600 $as_test_x conftest$ac_exeext
2601 }; then :
2602 ac_retval=0
2603 else
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 ac_retval=1
2608 fi
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615 as_fn_set_status $ac_retval
2616
2617 } # ac_fn_c_try_link
2618
2619 # ac_fn_c_check_decl LINENO SYMBOL VAR
2620 # ------------------------------------
2621 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2622 ac_fn_c_check_decl ()
2623 {
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2626 $as_echo_n "checking whether $2 is declared... " >&6; }
2627 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2632 $4
2633 int
2634 main ()
2635 {
2636 #ifndef $2
2637 (void) $2;
2638 #endif
2639
2640 ;
2641 return 0;
2642 }
2643 _ACEOF
2644 if ac_fn_c_try_compile "$LINENO"; then :
2645 eval "$3=yes"
2646 else
2647 eval "$3=no"
2648 fi
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 fi
2651 eval ac_res=\$$3
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2653 $as_echo "$ac_res" >&6; }
2654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2655
2656 } # ac_fn_c_check_decl
2657
2658 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2659 # ----------------------------------------------
2660 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2661 ac_fn_c_check_header_preproc ()
2662 {
2663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2665 $as_echo_n "checking for $2... " >&6; }
2666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2671 #include <$2>
2672 _ACEOF
2673 if ac_fn_c_try_cpp "$LINENO"; then :
2674 eval "$3=yes"
2675 else
2676 eval "$3=no"
2677 fi
2678 rm -f conftest.err conftest.$ac_ext
2679 fi
2680 eval ac_res=\$$3
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2682 $as_echo "$ac_res" >&6; }
2683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2684
2685 } # ac_fn_c_check_header_preproc
2686
2687 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2688 # ----------------------------------------------------
2689 # Tries to find if the field MEMBER exists in type AGGR, after including
2690 # INCLUDES, setting cache variable VAR accordingly.
2691 ac_fn_c_check_member ()
2692 {
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2695 $as_echo_n "checking for $2.$3... " >&6; }
2696 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2701 $5
2702 int
2703 main ()
2704 {
2705 static $2 ac_aggr;
2706 if (ac_aggr.$3)
2707 return 0;
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 if ac_fn_c_try_compile "$LINENO"; then :
2713 eval "$4=yes"
2714 else
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h. */
2717 $5
2718 int
2719 main ()
2720 {
2721 static $2 ac_aggr;
2722 if (sizeof ac_aggr.$3)
2723 return 0;
2724 ;
2725 return 0;
2726 }
2727 _ACEOF
2728 if ac_fn_c_try_compile "$LINENO"; then :
2729 eval "$4=yes"
2730 else
2731 eval "$4=no"
2732 fi
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 fi
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 fi
2737 eval ac_res=\$$4
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2739 $as_echo "$ac_res" >&6; }
2740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2741
2742 } # ac_fn_c_check_member
2743
2744 # ac_fn_c_check_func LINENO FUNC VAR
2745 # ----------------------------------
2746 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2747 ac_fn_c_check_func ()
2748 {
2749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2751 $as_echo_n "checking for $2... " >&6; }
2752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h. */
2757 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2759 #define $2 innocuous_$2
2760
2761 /* System header to define __stub macros and hopefully few prototypes,
2762 which can conflict with char $2 (); below.
2763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2764 <limits.h> exists even on freestanding compilers. */
2765
2766 #ifdef __STDC__
2767 # include <limits.h>
2768 #else
2769 # include <assert.h>
2770 #endif
2771
2772 #undef $2
2773
2774 /* Override any GCC internal prototype to avoid an error.
2775 Use char because int might match the return type of a GCC
2776 builtin and then its argument prototype would still apply. */
2777 #ifdef __cplusplus
2778 extern "C"
2779 #endif
2780 char $2 ();
2781 /* The GNU C library defines this for functions which it implements
2782 to always fail with ENOSYS. Some functions are actually named
2783 something starting with __ and the normal name is an alias. */
2784 #if defined __stub_$2 || defined __stub___$2
2785 choke me
2786 #endif
2787
2788 int
2789 main ()
2790 {
2791 return $2 ();
2792 ;
2793 return 0;
2794 }
2795 _ACEOF
2796 if ac_fn_c_try_link "$LINENO"; then :
2797 eval "$3=yes"
2798 else
2799 eval "$3=no"
2800 fi
2801 rm -f core conftest.err conftest.$ac_objext \
2802 conftest$ac_exeext conftest.$ac_ext
2803 fi
2804 eval ac_res=\$$3
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2806 $as_echo "$ac_res" >&6; }
2807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2808
2809 } # ac_fn_c_check_func
2810
2811 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2812 # -------------------------------------------
2813 # Tests whether TYPE exists after having included INCLUDES, setting cache
2814 # variable VAR accordingly.
2815 ac_fn_c_check_type ()
2816 {
2817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2819 $as_echo_n "checking for $2... " >&6; }
2820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 eval "$3=no"
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2826 $4
2827 int
2828 main ()
2829 {
2830 if (sizeof ($2))
2831 return 0;
2832 ;
2833 return 0;
2834 }
2835 _ACEOF
2836 if ac_fn_c_try_compile "$LINENO"; then :
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2839 $4
2840 int
2841 main ()
2842 {
2843 if (sizeof (($2)))
2844 return 0;
2845 ;
2846 return 0;
2847 }
2848 _ACEOF
2849 if ac_fn_c_try_compile "$LINENO"; then :
2850
2851 else
2852 eval "$3=yes"
2853 fi
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 fi
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857 fi
2858 eval ac_res=\$$3
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2860 $as_echo "$ac_res" >&6; }
2861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2862
2863 } # ac_fn_c_check_type
2864
2865 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2866 # --------------------------------------------
2867 # Tries to find the compile-time value of EXPR in a program that includes
2868 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2869 # computed
2870 ac_fn_c_compute_int ()
2871 {
2872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2873 if test "$cross_compiling" = yes; then
2874 # Depending upon the size, compute the lo and hi bounds.
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877 $4
2878 int
2879 main ()
2880 {
2881 static int test_array [1 - 2 * !(($2) >= 0)];
2882 test_array [0] = 0
2883
2884 ;
2885 return 0;
2886 }
2887 _ACEOF
2888 if ac_fn_c_try_compile "$LINENO"; then :
2889 ac_lo=0 ac_mid=0
2890 while :; do
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2893 $4
2894 int
2895 main ()
2896 {
2897 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2898 test_array [0] = 0
2899
2900 ;
2901 return 0;
2902 }
2903 _ACEOF
2904 if ac_fn_c_try_compile "$LINENO"; then :
2905 ac_hi=$ac_mid; break
2906 else
2907 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2908 if test $ac_lo -le $ac_mid; then
2909 ac_lo= ac_hi=
2910 break
2911 fi
2912 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2913 fi
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 done
2916 else
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2919 $4
2920 int
2921 main ()
2922 {
2923 static int test_array [1 - 2 * !(($2) < 0)];
2924 test_array [0] = 0
2925
2926 ;
2927 return 0;
2928 }
2929 _ACEOF
2930 if ac_fn_c_try_compile "$LINENO"; then :
2931 ac_hi=-1 ac_mid=-1
2932 while :; do
2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2934 /* end confdefs.h. */
2935 $4
2936 int
2937 main ()
2938 {
2939 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2940 test_array [0] = 0
2941
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 if ac_fn_c_try_compile "$LINENO"; then :
2947 ac_lo=$ac_mid; break
2948 else
2949 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2950 if test $ac_mid -le $ac_hi; then
2951 ac_lo= ac_hi=
2952 break
2953 fi
2954 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2955 fi
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 done
2958 else
2959 ac_lo= ac_hi=
2960 fi
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962 fi
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 # Binary search between lo and hi bounds.
2965 while test "x$ac_lo" != "x$ac_hi"; do
2966 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2969 $4
2970 int
2971 main ()
2972 {
2973 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2974 test_array [0] = 0
2975
2976 ;
2977 return 0;
2978 }
2979 _ACEOF
2980 if ac_fn_c_try_compile "$LINENO"; then :
2981 ac_hi=$ac_mid
2982 else
2983 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2984 fi
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 done
2987 case $ac_lo in #((
2988 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2989 '') ac_retval=1 ;;
2990 esac
2991 else
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2994 $4
2995 static long int longval () { return $2; }
2996 static unsigned long int ulongval () { return $2; }
2997 #include <stdio.h>
2998 #include <stdlib.h>
2999 int
3000 main ()
3001 {
3002
3003 FILE *f = fopen ("conftest.val", "w");
3004 if (! f)
3005 return 1;
3006 if (($2) < 0)
3007 {
3008 long int i = longval ();
3009 if (i != ($2))
3010 return 1;
3011 fprintf (f, "%ld", i);
3012 }
3013 else
3014 {
3015 unsigned long int i = ulongval ();
3016 if (i != ($2))
3017 return 1;
3018 fprintf (f, "%lu", i);
3019 }
3020 /* Do not output a trailing newline, as this causes \r\n confusion
3021 on some platforms. */
3022 return ferror (f) || fclose (f) != 0;
3023
3024 ;
3025 return 0;
3026 }
3027 _ACEOF
3028 if ac_fn_c_try_run "$LINENO"; then :
3029 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3030 else
3031 ac_retval=1
3032 fi
3033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3034 conftest.$ac_objext conftest.beam conftest.$ac_ext
3035 rm -f conftest.val
3036
3037 fi
3038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3039 as_fn_set_status $ac_retval
3040
3041 } # ac_fn_c_compute_int
3042 cat >config.log <<_ACEOF
3043 This file contains any messages produced by compilers while
3044 running configure, to aid debugging if configure makes a mistake.
3045
3046 It was created by emacs $as_me 24.3.50, which was
3047 generated by GNU Autoconf 2.65. Invocation command line was
3048
3049 $ $0 $@
3050
3051 _ACEOF
3052 exec 5>>config.log
3053 {
3054 cat <<_ASUNAME
3055 ## --------- ##
3056 ## Platform. ##
3057 ## --------- ##
3058
3059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3064
3065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3066 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3067
3068 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3069 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3071 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3072 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3073 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3074 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3075
3076 _ASUNAME
3077
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 $as_echo "PATH: $as_dir"
3084 done
3085 IFS=$as_save_IFS
3086
3087 } >&5
3088
3089 cat >&5 <<_ACEOF
3090
3091
3092 ## ----------- ##
3093 ## Core tests. ##
3094 ## ----------- ##
3095
3096 _ACEOF
3097
3098
3099 # Keep a trace of the command line.
3100 # Strip out --no-create and --no-recursion so they do not pile up.
3101 # Strip out --silent because we don't want to record it for future runs.
3102 # Also quote any args containing shell meta-characters.
3103 # Make two passes to allow for proper duplicate-argument suppression.
3104 ac_configure_args=
3105 ac_configure_args0=
3106 ac_configure_args1=
3107 ac_must_keep_next=false
3108 for ac_pass in 1 2
3109 do
3110 for ac_arg
3111 do
3112 case $ac_arg in
3113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3115 | -silent | --silent | --silen | --sile | --sil)
3116 continue ;;
3117 *\'*)
3118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3119 esac
3120 case $ac_pass in
3121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3122 2)
3123 as_fn_append ac_configure_args1 " '$ac_arg'"
3124 if test $ac_must_keep_next = true; then
3125 ac_must_keep_next=false # Got value, back to normal.
3126 else
3127 case $ac_arg in
3128 *=* | --config-cache | -C | -disable-* | --disable-* \
3129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3131 | -with-* | --with-* | -without-* | --without-* | --x)
3132 case "$ac_configure_args0 " in
3133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3134 esac
3135 ;;
3136 -* ) ac_must_keep_next=true ;;
3137 esac
3138 fi
3139 as_fn_append ac_configure_args " '$ac_arg'"
3140 ;;
3141 esac
3142 done
3143 done
3144 { ac_configure_args0=; unset ac_configure_args0;}
3145 { ac_configure_args1=; unset ac_configure_args1;}
3146
3147 # When interrupted or exit'd, cleanup temporary files, and complete
3148 # config.log. We remove comments because anyway the quotes in there
3149 # would cause problems or look ugly.
3150 # WARNING: Use '\'' to represent an apostrophe within the trap.
3151 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3152 trap 'exit_status=$?
3153 # Save into config.log some information that might help in debugging.
3154 {
3155 echo
3156
3157 cat <<\_ASBOX
3158 ## ---------------- ##
3159 ## Cache variables. ##
3160 ## ---------------- ##
3161 _ASBOX
3162 echo
3163 # The following way of writing the cache mishandles newlines in values,
3164 (
3165 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3166 eval ac_val=\$$ac_var
3167 case $ac_val in #(
3168 *${as_nl}*)
3169 case $ac_var in #(
3170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3172 esac
3173 case $ac_var in #(
3174 _ | IFS | as_nl) ;; #(
3175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3176 *) { eval $ac_var=; unset $ac_var;} ;;
3177 esac ;;
3178 esac
3179 done
3180 (set) 2>&1 |
3181 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3182 *${as_nl}ac_space=\ *)
3183 sed -n \
3184 "s/'\''/'\''\\\\'\'''\''/g;
3185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3186 ;; #(
3187 *)
3188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3189 ;;
3190 esac |
3191 sort
3192 )
3193 echo
3194
3195 cat <<\_ASBOX
3196 ## ----------------- ##
3197 ## Output variables. ##
3198 ## ----------------- ##
3199 _ASBOX
3200 echo
3201 for ac_var in $ac_subst_vars
3202 do
3203 eval ac_val=\$$ac_var
3204 case $ac_val in
3205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3206 esac
3207 $as_echo "$ac_var='\''$ac_val'\''"
3208 done | sort
3209 echo
3210
3211 if test -n "$ac_subst_files"; then
3212 cat <<\_ASBOX
3213 ## ------------------- ##
3214 ## File substitutions. ##
3215 ## ------------------- ##
3216 _ASBOX
3217 echo
3218 for ac_var in $ac_subst_files
3219 do
3220 eval ac_val=\$$ac_var
3221 case $ac_val in
3222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3223 esac
3224 $as_echo "$ac_var='\''$ac_val'\''"
3225 done | sort
3226 echo
3227 fi
3228
3229 if test -s confdefs.h; then
3230 cat <<\_ASBOX
3231 ## ----------- ##
3232 ## confdefs.h. ##
3233 ## ----------- ##
3234 _ASBOX
3235 echo
3236 cat confdefs.h
3237 echo
3238 fi
3239 test "$ac_signal" != 0 &&
3240 $as_echo "$as_me: caught signal $ac_signal"
3241 $as_echo "$as_me: exit $exit_status"
3242 } >&5
3243 rm -f core *.core core.conftest.* &&
3244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3245 exit $exit_status
3246 ' 0
3247 for ac_signal in 1 2 13 15; do
3248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3249 done
3250 ac_signal=0
3251
3252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3253 rm -f -r conftest* confdefs.h
3254
3255 $as_echo "/* confdefs.h */" > confdefs.h
3256
3257 # Predefined preprocessor variables.
3258
3259 cat >>confdefs.h <<_ACEOF
3260 #define PACKAGE_NAME "$PACKAGE_NAME"
3261 _ACEOF
3262
3263 cat >>confdefs.h <<_ACEOF
3264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3265 _ACEOF
3266
3267 cat >>confdefs.h <<_ACEOF
3268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3269 _ACEOF
3270
3271 cat >>confdefs.h <<_ACEOF
3272 #define PACKAGE_STRING "$PACKAGE_STRING"
3273 _ACEOF
3274
3275 cat >>confdefs.h <<_ACEOF
3276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3277 _ACEOF
3278
3279 cat >>confdefs.h <<_ACEOF
3280 #define PACKAGE_URL "$PACKAGE_URL"
3281 _ACEOF
3282
3283
3284 # Let the site file select an alternate cache file if it wants to.
3285 # Prefer an explicitly selected file to automatically selected ones.
3286 ac_site_file1=NONE
3287 ac_site_file2=NONE
3288 if test -n "$CONFIG_SITE"; then
3289 ac_site_file1=$CONFIG_SITE
3290 elif test "x$prefix" != xNONE; then
3291 ac_site_file1=$prefix/share/config.site
3292 ac_site_file2=$prefix/etc/config.site
3293 else
3294 ac_site_file1=$ac_default_prefix/share/config.site
3295 ac_site_file2=$ac_default_prefix/etc/config.site
3296 fi
3297 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3298 do
3299 test "x$ac_site_file" = xNONE && continue
3300 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3302 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3303 sed 's/^/| /' "$ac_site_file" >&5
3304 . "$ac_site_file"
3305 fi
3306 done
3307
3308 if test -r "$cache_file"; then
3309 # Some versions of bash will fail to source /dev/null (special files
3310 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3311 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3313 $as_echo "$as_me: loading cache $cache_file" >&6;}
3314 case $cache_file in
3315 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3316 *) . "./$cache_file";;
3317 esac
3318 fi
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3321 $as_echo "$as_me: creating cache $cache_file" >&6;}
3322 >$cache_file
3323 fi
3324
3325 as_fn_append ac_header_list " linux/version.h"
3326 as_fn_append ac_header_list " sys/systeminfo.h"
3327 as_fn_append ac_header_list " coff.h"
3328 as_fn_append ac_header_list " pty.h"
3329 as_fn_append ac_header_list " sys/vlimit.h"
3330 as_fn_append ac_header_list " sys/resource.h"
3331 as_fn_append ac_header_list " sys/utsname.h"
3332 as_fn_append ac_header_list " pwd.h"
3333 as_fn_append ac_header_list " utmp.h"
3334 as_fn_append ac_header_list " util.h"
3335 as_fn_append ac_header_list " sys/socket.h"
3336 as_fn_append ac_header_list " stdlib.h"
3337 as_fn_append ac_header_list " unistd.h"
3338 as_fn_append ac_header_list " sys/param.h"
3339 as_fn_append ac_header_list " pthread.h"
3340 as_fn_append ac_header_list " malloc/malloc.h"
3341 as_fn_append ac_header_list " maillock.h"
3342 as_fn_append ac_header_list " sys/un.h"
3343 as_fn_append ac_func_list " tzset"
3344 as_fn_append ac_func_list " readlinkat"
3345 as_fn_append ac_header_list " dirent.h"
3346 as_fn_append ac_header_list " execinfo.h"
3347 as_fn_append ac_func_list " faccessat"
3348 as_fn_append ac_func_list " fdopendir"
3349 as_fn_append ac_header_list " stdio_ext.h"
3350 as_fn_append ac_func_list " __fpending"
3351 as_fn_append ac_func_list " fstatat"
3352 gl_getopt_required=GNU
3353 as_fn_append ac_header_list " getopt.h"
3354 as_fn_append ac_func_list " gettimeofday"
3355 as_fn_append ac_func_list " nanotime"
3356 as_fn_append ac_header_list " sys/time.h"
3357 as_fn_append ac_header_list " wchar.h"
3358 as_fn_append ac_header_list " stdint.h"
3359 as_fn_append ac_header_list " inttypes.h"
3360 as_fn_append ac_func_list " lstat"
3361 as_fn_append ac_func_list " alarm"
3362 as_fn_append ac_header_list " sys/select.h"
3363 as_fn_append ac_func_list " pselect"
3364 as_fn_append ac_func_list " pthread_sigmask"
3365 as_fn_append ac_func_list " readlink"
3366 as_fn_append ac_func_list " strtoimax"
3367 as_fn_append ac_func_list " strtoumax"
3368 as_fn_append ac_func_list " symlink"
3369 as_fn_append ac_header_list " sys/stat.h"
3370 as_fn_append ac_func_list " localtime_r"
3371 as_fn_append ac_header_list " utime.h"
3372 as_fn_append ac_func_list " futimes"
3373 as_fn_append ac_func_list " futimesat"
3374 as_fn_append ac_func_list " futimens"
3375 as_fn_append ac_func_list " utimensat"
3376 as_fn_append ac_func_list " lutimes"
3377 # Check that the precious variables saved in the cache have kept the same
3378 # value.
3379 ac_cache_corrupted=false
3380 for ac_var in $ac_precious_vars; do
3381 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3382 eval ac_new_set=\$ac_env_${ac_var}_set
3383 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3384 eval ac_new_val=\$ac_env_${ac_var}_value
3385 case $ac_old_set,$ac_new_set in
3386 set,)
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3388 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3389 ac_cache_corrupted=: ;;
3390 ,set)
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3392 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3393 ac_cache_corrupted=: ;;
3394 ,);;
3395 *)
3396 if test "x$ac_old_val" != "x$ac_new_val"; then
3397 # differences in whitespace do not lead to failure.
3398 ac_old_val_w=`echo x $ac_old_val`
3399 ac_new_val_w=`echo x $ac_new_val`
3400 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3402 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3403 ac_cache_corrupted=:
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3406 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3407 eval $ac_var=\$ac_old_val
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3410 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3412 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3413 fi;;
3414 esac
3415 # Pass precious variables to config.status.
3416 if test "$ac_new_set" = set; then
3417 case $ac_new_val in
3418 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3419 *) ac_arg=$ac_var=$ac_new_val ;;
3420 esac
3421 case " $ac_configure_args " in
3422 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3423 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3424 esac
3425 fi
3426 done
3427 if $ac_cache_corrupted; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3431 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3432 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3433 fi
3434 ## -------------------- ##
3435 ## Main body of script. ##
3436 ## -------------------- ##
3437
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444
3445
3446 emacs_config_options="$@"
3447 ## Add some environment variables, if they were passed via the environment
3448 ## rather than on the command-line.
3449 for var in CFLAGS CPPFLAGS LDFLAGS; do
3450 case "$emacs_config_options" in
3451 *$var=*) continue ;;
3452 esac
3453 eval val="\$${var}"
3454 test x"$val" = x && continue
3455 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3456 done
3457
3458 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3459
3460
3461 ac_aux_dir=
3462 for ac_dir in build-aux "$srcdir"/build-aux; do
3463 for ac_t in install-sh install.sh shtool; do
3464 if test -f "$ac_dir/$ac_t"; then
3465 ac_aux_dir=$ac_dir
3466 ac_install_sh="$ac_aux_dir/$ac_t -c"
3467 break 2
3468 fi
3469 done
3470 done
3471 if test -z "$ac_aux_dir"; then
3472 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3473 fi
3474
3475 # These three variables are undocumented and unsupported,
3476 # and are intended to be withdrawn in a future Autoconf release.
3477 # They can cause serious problems if a builder's source tree is in a directory
3478 # whose full name contains unusual characters.
3479 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3480 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3481 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3482
3483
3484 am__api_version='1.11'
3485
3486 # Find a good install program. We prefer a C program (faster),
3487 # so one script is as good as another. But avoid the broken or
3488 # incompatible versions:
3489 # SysV /etc/install, /usr/sbin/install
3490 # SunOS /usr/etc/install
3491 # IRIX /sbin/install
3492 # AIX /bin/install
3493 # AmigaOS /C/install, which installs bootblocks on floppy discs
3494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497 # OS/2's system install, which has a completely different semantic
3498 # ./install, which can be erroneously created by make from ./install.sh.
3499 # Reject install programs that cannot install multiple files.
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3502 if test -z "$INSTALL"; then
3503 if test "${ac_cv_path_install+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 # Account for people who put trailing slashes in PATH elements.
3512 case $as_dir/ in #((
3513 ./ | .// | /[cC]/* | \
3514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3516 /usr/ucb/* ) ;;
3517 *)
3518 # OSF1 and SCO ODT 3.0 have their own names for install.
3519 # Don't use installbsd from OSF since it installs stuff as root
3520 # by default.
3521 for ac_prog in ginstall scoinst install; do
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3524 if test $ac_prog = install &&
3525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3526 # AIX install. It has an incompatible calling convention.
3527 :
3528 elif test $ac_prog = install &&
3529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530 # program-specific install script used by HP pwplus--don't use.
3531 :
3532 else
3533 rm -rf conftest.one conftest.two conftest.dir
3534 echo one > conftest.one
3535 echo two > conftest.two
3536 mkdir conftest.dir
3537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3538 test -s conftest.one && test -s conftest.two &&
3539 test -s conftest.dir/conftest.one &&
3540 test -s conftest.dir/conftest.two
3541 then
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543 break 3
3544 fi
3545 fi
3546 fi
3547 done
3548 done
3549 ;;
3550 esac
3551
3552 done
3553 IFS=$as_save_IFS
3554
3555 rm -rf conftest.one conftest.two conftest.dir
3556
3557 fi
3558 if test "${ac_cv_path_install+set}" = set; then
3559 INSTALL=$ac_cv_path_install
3560 else
3561 # As a last resort, use the slow shell script. Don't cache a
3562 # value for INSTALL within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the value is a relative name.
3565 INSTALL=$ac_install_sh
3566 fi
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3569 $as_echo "$INSTALL" >&6; }
3570
3571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572 # It thinks the first close brace ends the variable substitution.
3573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3574
3575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3576
3577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3580 $as_echo_n "checking whether build environment is sane... " >&6; }
3581 # Just in case
3582 sleep 1
3583 echo timestamp > conftest.file
3584 # Reject unsafe characters in $srcdir or the absolute working directory
3585 # name. Accept space and tab only in the latter.
3586 am_lf='
3587 '
3588 case `pwd` in
3589 *[\\\"\#\$\&\'\`$am_lf]*)
3590 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3591 esac
3592 case $srcdir in
3593 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3594 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3595 esac
3596
3597 # Do `set' in a subshell so we don't clobber the current shell's
3598 # arguments. Must try -L first in case configure is actually a
3599 # symlink; some systems play weird games with the mod time of symlinks
3600 # (eg FreeBSD returns the mod time of the symlink's containing
3601 # directory).
3602 if (
3603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3604 if test "$*" = "X"; then
3605 # -L didn't work.
3606 set X `ls -t "$srcdir/configure" conftest.file`
3607 fi
3608 rm -f conftest.file
3609 if test "$*" != "X $srcdir/configure conftest.file" \
3610 && test "$*" != "X conftest.file $srcdir/configure"; then
3611
3612 # If neither matched, then we have a broken ls. This can happen
3613 # if, for instance, CONFIG_SHELL is bash and it inherits a
3614 # broken ls alias from the environment. This has actually
3615 # happened. Such a system could not be considered "sane".
3616 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3617 alias in your environment" "$LINENO" 5
3618 fi
3619
3620 test "$2" = conftest.file
3621 )
3622 then
3623 # Ok.
3624 :
3625 else
3626 as_fn_error "newly created file is older than distributed files!
3627 Check your system clock" "$LINENO" 5
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630 $as_echo "yes" >&6; }
3631 test "$program_prefix" != NONE &&
3632 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3633 # Use a double $ so make ignores it.
3634 test "$program_suffix" != NONE &&
3635 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3636 # Double any \ or $.
3637 # By default was `s,x,x', remove it if useless.
3638 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3639 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3640
3641 # expand $ac_aux_dir to an absolute path
3642 am_aux_dir=`cd $ac_aux_dir && pwd`
3643
3644 if test x"${MISSING+set}" != xset; then
3645 case $am_aux_dir in
3646 *\ * | *\ *)
3647 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3648 *)
3649 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3650 esac
3651 fi
3652 # Use eval to expand $SHELL
3653 if eval "$MISSING --run true"; then
3654 am_missing_run="$MISSING --run "
3655 else
3656 am_missing_run=
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3658 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3659 fi
3660
3661 if test x"${install_sh}" != xset; then
3662 case $am_aux_dir in
3663 *\ * | *\ *)
3664 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3665 *)
3666 install_sh="\${SHELL} $am_aux_dir/install-sh"
3667 esac
3668 fi
3669
3670 # Installed binaries are usually stripped using `strip' when the user
3671 # run `make install-strip'. However `strip' might not be the right
3672 # tool to use in cross-compilation environments, therefore Automake
3673 # will honor the `STRIP' environment variable to overrule this program.
3674 if test "$cross_compiling" != no; then
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}strip; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_STRIP+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -n "$STRIP"; then
3684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697 done
3698 done
3699 IFS=$as_save_IFS
3700
3701 fi
3702 fi
3703 STRIP=$ac_cv_prog_STRIP
3704 if test -n "$STRIP"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3706 $as_echo "$STRIP" >&6; }
3707 else
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 fi
3711
3712
3713 fi
3714 if test -z "$ac_cv_prog_STRIP"; then
3715 ac_ct_STRIP=$STRIP
3716 # Extract the first word of "strip", so it can be a program name with args.
3717 set dummy strip; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 if test -n "$ac_ct_STRIP"; then
3724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_ac_ct_STRIP="strip"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737 done
3738 done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3744 if test -n "$ac_ct_STRIP"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3746 $as_echo "$ac_ct_STRIP" >&6; }
3747 else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752 if test "x$ac_ct_STRIP" = x; then
3753 STRIP=":"
3754 else
3755 case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3760 esac
3761 STRIP=$ac_ct_STRIP
3762 fi
3763 else
3764 STRIP="$ac_cv_prog_STRIP"
3765 fi
3766
3767 fi
3768 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3771 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3772 if test -z "$MKDIR_P"; then
3773 if test "${ac_cv_path_mkdir+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3778 do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in mkdir gmkdir; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3784 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3785 'mkdir (GNU coreutils) '* | \
3786 'mkdir (coreutils) '* | \
3787 'mkdir (fileutils) '4.1*)
3788 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3789 break 3;;
3790 esac
3791 done
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797
3798 test -d ./--version && rmdir ./--version
3799 if test "${ac_cv_path_mkdir+set}" = set; then
3800 MKDIR_P="$ac_cv_path_mkdir -p"
3801 else
3802 # As a last resort, use the slow shell script. Don't cache a
3803 # value for MKDIR_P within a source directory, because that will
3804 # break other packages using the cache if that directory is
3805 # removed, or if the value is a relative name.
3806 MKDIR_P="$ac_install_sh -d"
3807 fi
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3810 $as_echo "$MKDIR_P" >&6; }
3811
3812 mkdir_p="$MKDIR_P"
3813 case $mkdir_p in
3814 [\\/$]* | ?:[\\/]*) ;;
3815 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3816 esac
3817
3818 for ac_prog in gawk mawk nawk awk
3819 do
3820 # Extract the first word of "$ac_prog", so it can be a program name with args.
3821 set dummy $ac_prog; ac_word=$2
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if test "${ac_cv_prog_AWK+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 if test -n "$AWK"; then
3828 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3837 ac_cv_prog_AWK="$ac_prog"
3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841 done
3842 done
3843 IFS=$as_save_IFS
3844
3845 fi
3846 fi
3847 AWK=$ac_cv_prog_AWK
3848 if test -n "$AWK"; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3850 $as_echo "$AWK" >&6; }
3851 else
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 $as_echo "no" >&6; }
3854 fi
3855
3856
3857 test -n "$AWK" && break
3858 done
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3861 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3862 set x ${MAKE-make}
3863 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3864 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 cat >conftest.make <<\_ACEOF
3868 SHELL = /bin/sh
3869 all:
3870 @echo '@@@%%%=$(MAKE)=@@@%%%'
3871 _ACEOF
3872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3874 *@@@%%%=?*=@@@%%%*)
3875 eval ac_cv_prog_make_${ac_make}_set=yes;;
3876 *)
3877 eval ac_cv_prog_make_${ac_make}_set=no;;
3878 esac
3879 rm -f conftest.make
3880 fi
3881 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3883 $as_echo "yes" >&6; }
3884 SET_MAKE=
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 SET_MAKE="MAKE=${MAKE-make}"
3889 fi
3890
3891 rm -rf .tst 2>/dev/null
3892 mkdir .tst 2>/dev/null
3893 if test -d .tst; then
3894 am__leading_dot=.
3895 else
3896 am__leading_dot=_
3897 fi
3898 rmdir .tst 2>/dev/null
3899
3900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3901 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3902 # is not polluted with repeated "-I."
3903 am__isrc=' -I$(srcdir)'
3904 # test to see if srcdir already configured
3905 if test -f $srcdir/config.status; then
3906 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3907 fi
3908 fi
3909
3910 # test whether we have cygpath
3911 if test -z "$CYGPATH_W"; then
3912 if (cygpath --version) >/dev/null 2>/dev/null; then
3913 CYGPATH_W='cygpath -w'
3914 else
3915 CYGPATH_W=echo
3916 fi
3917 fi
3918
3919
3920 # Define the identity of the package.
3921 PACKAGE='emacs'
3922 VERSION='24.3.50'
3923
3924
3925 cat >>confdefs.h <<_ACEOF
3926 #define PACKAGE "$PACKAGE"
3927 _ACEOF
3928
3929
3930 cat >>confdefs.h <<_ACEOF
3931 #define VERSION "$VERSION"
3932 _ACEOF
3933
3934 # Some tools Automake needs.
3935
3936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3937
3938
3939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3940
3941
3942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3943
3944
3945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3946
3947
3948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3949
3950 # We need awk for the "check" target. The system "awk" is bad on
3951 # some platforms.
3952 # Always define AMTAR for backward compatibility.
3953
3954 AMTAR=${AMTAR-"${am_missing_run}tar"}
3955
3956 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3957
3958
3959
3960
3961
3962
3963
3964
3965 lispdir='${datadir}/emacs/${version}/lisp'
3966 leimdir='${datadir}/emacs/${version}/leim'
3967 standardlisppath='${lispdir}:${leimdir}'
3968 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3969 '${datadir}/emacs/site-lisp'
3970 lisppath='${locallisppath}:${standardlisppath}'
3971 etcdir='${datadir}/emacs/${version}/etc'
3972 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3973 docdir='${datadir}/emacs/${version}/etc'
3974 gamedir='${localstatedir}/games/emacs'
3975
3976
3977 # Check whether --with-all was given.
3978 if test "${with_all+set}" = set; then :
3979 withval=$with_all; with_features=$withval
3980 else
3981 with_features=yes
3982 fi
3983
3984
3985
3986
3987
3988 # Check whether --with-pop was given.
3989 if test "${with_pop+set}" = set; then :
3990 withval=$with_pop;
3991 else
3992 with_pop=$with_features
3993 fi
3994
3995 if test "$with_pop" = yes; then
3996 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3997
3998 fi
3999
4000
4001 # Check whether --with-kerberos was given.
4002 if test "${with_kerberos+set}" = set; then :
4003 withval=$with_kerberos;
4004 else
4005 with_kerberos=no
4006 fi
4007
4008 if test "$with_kerberos" != no; then
4009 $as_echo "#define KERBEROS 1" >>confdefs.h
4010
4011 fi
4012
4013
4014 # Check whether --with-kerberos5 was given.
4015 if test "${with_kerberos5+set}" = set; then :
4016 withval=$with_kerberos5;
4017 else
4018 with_kerberos5=no
4019 fi
4020
4021 if test "${with_kerberos5}" != no; then
4022 if test "${with_kerberos}" = no; then
4023 with_kerberos=yes
4024 $as_echo "#define KERBEROS 1" >>confdefs.h
4025
4026 fi
4027
4028 $as_echo "#define KERBEROS5 1" >>confdefs.h
4029
4030 fi
4031
4032
4033 # Check whether --with-hesiod was given.
4034 if test "${with_hesiod+set}" = set; then :
4035 withval=$with_hesiod;
4036 else
4037 with_hesiod=no
4038 fi
4039
4040 if test "$with_hesiod" != no; then
4041
4042 $as_echo "#define HESIOD 1" >>confdefs.h
4043
4044 fi
4045
4046
4047 # Check whether --with-mmdf was given.
4048 if test "${with_mmdf+set}" = set; then :
4049 withval=$with_mmdf;
4050 else
4051 with_mmdf=no
4052 fi
4053
4054 if test "$with_mmdf" != no; then
4055
4056 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4057
4058 fi
4059
4060
4061 # Check whether --with-mail-unlink was given.
4062 if test "${with_mail_unlink+set}" = set; then :
4063 withval=$with_mail_unlink;
4064 else
4065 with_mail_unlink=no
4066 fi
4067
4068 if test "$with_mail_unlink" != no; then
4069
4070 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4071
4072 fi
4073
4074
4075 # Check whether --with-mailhost was given.
4076 if test "${with_mailhost+set}" = set; then :
4077 withval=$with_mailhost;
4078 cat >>confdefs.h <<_ACEOF
4079 #define MAILHOST "$withval"
4080 _ACEOF
4081
4082 fi
4083
4084
4085
4086 # Check whether --with-sound was given.
4087 if test "${with_sound+set}" = set; then :
4088 withval=$with_sound;
4089 else
4090 with_sound=$with_features
4091 fi
4092
4093
4094
4095 # Check whether --with-x-toolkit was given.
4096 if test "${with_x_toolkit+set}" = set; then :
4097 withval=$with_x_toolkit; case "${withval}" in
4098 y | ye | yes ) val=gtk ;;
4099 n | no ) val=no ;;
4100 l | lu | luc | luci | lucid ) val=lucid ;;
4101 a | at | ath | athe | athen | athena ) val=athena ;;
4102 m | mo | mot | moti | motif ) val=motif ;;
4103 g | gt | gtk ) val=gtk ;;
4104 gtk2 ) val=gtk2 ;;
4105 gtk3 ) val=gtk3 ;;
4106 * )
4107 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4108 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4109 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4110 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4111 ;;
4112 esac
4113 with_x_toolkit=$val
4114
4115 fi
4116
4117
4118
4119 # Check whether --with-wide-int was given.
4120 if test "${with_wide_int+set}" = set; then :
4121 withval=$with_wide_int;
4122 else
4123 with_wide_int=no
4124 fi
4125
4126 if test "$with_wide_int" = yes; then
4127
4128 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4129
4130 fi
4131
4132
4133 # Check whether --with-xpm was given.
4134 if test "${with_xpm+set}" = set; then :
4135 withval=$with_xpm;
4136 else
4137 with_xpm=$with_features
4138 fi
4139
4140
4141 # Check whether --with-jpeg was given.
4142 if test "${with_jpeg+set}" = set; then :
4143 withval=$with_jpeg;
4144 else
4145 with_jpeg=$with_features
4146 fi
4147
4148
4149 # Check whether --with-tiff was given.
4150 if test "${with_tiff+set}" = set; then :
4151 withval=$with_tiff;
4152 else
4153 with_tiff=$with_features
4154 fi
4155
4156
4157 # Check whether --with-gif was given.
4158 if test "${with_gif+set}" = set; then :
4159 withval=$with_gif;
4160 else
4161 with_gif=$with_features
4162 fi
4163
4164
4165 # Check whether --with-png was given.
4166 if test "${with_png+set}" = set; then :
4167 withval=$with_png;
4168 else
4169 with_png=$with_features
4170 fi
4171
4172
4173 # Check whether --with-rsvg was given.
4174 if test "${with_rsvg+set}" = set; then :
4175 withval=$with_rsvg;
4176 else
4177 with_rsvg=$with_features
4178 fi
4179
4180
4181 # Check whether --with-xml2 was given.
4182 if test "${with_xml2+set}" = set; then :
4183 withval=$with_xml2;
4184 else
4185 with_xml2=$with_features
4186 fi
4187
4188
4189 # Check whether --with-imagemagick was given.
4190 if test "${with_imagemagick+set}" = set; then :
4191 withval=$with_imagemagick;
4192 else
4193 with_imagemagick=$with_features
4194 fi
4195
4196
4197
4198 # Check whether --with-xft was given.
4199 if test "${with_xft+set}" = set; then :
4200 withval=$with_xft;
4201 else
4202 with_xft=$with_features
4203 fi
4204
4205
4206 # Check whether --with-libotf was given.
4207 if test "${with_libotf+set}" = set; then :
4208 withval=$with_libotf;
4209 else
4210 with_libotf=$with_features
4211 fi
4212
4213
4214 # Check whether --with-m17n-flt was given.
4215 if test "${with_m17n_flt+set}" = set; then :
4216 withval=$with_m17n_flt;
4217 else
4218 with_m17n_flt=$with_features
4219 fi
4220
4221
4222
4223 # Check whether --with-toolkit-scroll-bars was given.
4224 if test "${with_toolkit_scroll_bars+set}" = set; then :
4225 withval=$with_toolkit_scroll_bars;
4226 else
4227 with_toolkit_scroll_bars=$with_features
4228 fi
4229
4230
4231 # Check whether --with-xaw3d was given.
4232 if test "${with_xaw3d+set}" = set; then :
4233 withval=$with_xaw3d;
4234 else
4235 with_xaw3d=$with_features
4236 fi
4237
4238
4239 # Check whether --with-xim was given.
4240 if test "${with_xim+set}" = set; then :
4241 withval=$with_xim;
4242 else
4243 with_xim=$with_features
4244 fi
4245
4246
4247 # Check whether --with-ns was given.
4248 if test "${with_ns+set}" = set; then :
4249 withval=$with_ns;
4250 else
4251 with_ns=no
4252 fi
4253
4254
4255 # Check whether --with-w32 was given.
4256 if test "${with_w32+set}" = set; then :
4257 withval=$with_w32;
4258 else
4259 with_w32=no
4260 fi
4261
4262
4263
4264 # Check whether --with-gpm was given.
4265 if test "${with_gpm+set}" = set; then :
4266 withval=$with_gpm;
4267 else
4268 with_gpm=$with_features
4269 fi
4270
4271
4272 # Check whether --with-dbus was given.
4273 if test "${with_dbus+set}" = set; then :
4274 withval=$with_dbus;
4275 else
4276 with_dbus=$with_features
4277 fi
4278
4279
4280 # Check whether --with-gconf was given.
4281 if test "${with_gconf+set}" = set; then :
4282 withval=$with_gconf;
4283 else
4284 with_gconf=$with_features
4285 fi
4286
4287
4288 # Check whether --with-gsettings was given.
4289 if test "${with_gsettings+set}" = set; then :
4290 withval=$with_gsettings;
4291 else
4292 with_gsettings=$with_features
4293 fi
4294
4295
4296 # Check whether --with-selinux was given.
4297 if test "${with_selinux+set}" = set; then :
4298 withval=$with_selinux;
4299 else
4300 with_selinux=$with_features
4301 fi
4302
4303
4304 # Check whether --with-acl was given.
4305 if test "${with_acl+set}" = set; then :
4306 withval=$with_acl;
4307 else
4308 with_acl=$with_features
4309 fi
4310
4311
4312 # Check whether --with-gnutls was given.
4313 if test "${with_gnutls+set}" = set; then :
4314 withval=$with_gnutls;
4315 else
4316 with_gnutls=$with_features
4317 fi
4318
4319
4320 # Check whether --with-inotify was given.
4321 if test "${with_inotify+set}" = set; then :
4322 withval=$with_inotify;
4323 else
4324 with_inotify=$with_features
4325 fi
4326
4327
4328 ## For the times when you want to build Emacs but don't have
4329 ## a suitable makeinfo, and can live without the manuals.
4330
4331 # Check whether --with-makeinfo was given.
4332 if test "${with_makeinfo+set}" = set; then :
4333 withval=$with_makeinfo;
4334 else
4335 with_makeinfo=$with_features
4336 fi
4337
4338
4339 ## Makefile.in needs the cache file name.
4340
4341
4342 ## This is an option because I do not know if all info/man support
4343 ## compressed files, nor how to test if they do so.
4344
4345 # Check whether --with-compress-info was given.
4346 if test "${with_compress_info+set}" = set; then :
4347 withval=$with_compress_info;
4348 else
4349 with_compress_info=$with_features
4350 fi
4351
4352 if test $with_compress_info = yes; then
4353 GZIP_INFO=yes
4354 else
4355 GZIP_INFO=
4356 fi
4357
4358
4359
4360 # Check whether --with-pkg-config-prog was given.
4361 if test "${with_pkg_config_prog+set}" = set; then :
4362 withval=$with_pkg_config_prog;
4363 fi
4364
4365 if test "X${with_pkg_config_prog}" != X; then
4366 if test "${with_pkg_config_prog}" != yes; then
4367 PKG_CONFIG="${with_pkg_config_prog}"
4368 fi
4369 fi
4370
4371 CRT_DIR=
4372
4373 # Check whether --with-crt-dir was given.
4374 if test "${with_crt_dir+set}" = set; then :
4375 withval=$with_crt_dir;
4376 fi
4377
4378 CRT_DIR="${with_crt_dir}"
4379
4380
4381 # Check whether --with-gameuser was given.
4382 if test "${with_gameuser+set}" = set; then :
4383 withval=$with_gameuser;
4384 fi
4385
4386 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4387 && gameuser="${with_gameuser}"
4388 test "X$gameuser" = X && gameuser=games
4389
4390
4391 # Check whether --with-gnustep-conf was given.
4392 if test "${with_gnustep_conf+set}" = set; then :
4393 withval=$with_gnustep_conf;
4394 fi
4395
4396 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4397 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4398 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4399 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4400
4401 # Check whether --enable-ns-self-contained was given.
4402 if test "${enable_ns_self_contained+set}" = set; then :
4403 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4404 else
4405 EN_NS_SELF_CONTAINED=yes
4406 fi
4407
4408
4409 # Check whether --enable-locallisppath was given.
4410 if test "${enable_locallisppath+set}" = set; then :
4411 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4412 locallisppath=
4413 elif test "${enableval}" != "yes"; then
4414 locallisppath=${enableval}
4415 fi
4416 fi
4417
4418
4419 # Check whether --enable-checking was given.
4420 if test "${enable_checking+set}" = set; then :
4421 enableval=$enable_checking; ac_checking_flags="${enableval}"
4422 fi
4423
4424 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4425 for check in $ac_checking_flags
4426 do
4427 case $check in
4428 # these set all the flags to specific states
4429 yes) ac_enable_checking=1 ;;
4430 no) ac_enable_checking= ;
4431 ac_gc_check_stringbytes= ;
4432 ac_gc_check_string_overrun= ;
4433 ac_gc_check_string_free_list= ;
4434 ac_xmalloc_overrun= ;
4435 ac_gc_check_cons_list= ;
4436 ac_glyphs_debug= ;;
4437 all) ac_enable_checking=1 ;
4438 ac_gc_check_stringbytes=1 ;
4439 ac_gc_check_string_overrun=1 ;
4440 ac_gc_check_string_free_list=1 ;
4441 ac_xmalloc_overrun=1 ;
4442 ac_gc_check_cons_list=1 ;
4443 ac_glyphs_debug=1 ;;
4444 # these enable particular checks
4445 stringbytes) ac_gc_check_stringbytes=1 ;;
4446 stringoverrun) ac_gc_check_string_overrun=1 ;;
4447 stringfreelist) ac_gc_check_string_free_list=1 ;;
4448 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4449 conslist) ac_gc_check_cons_list=1 ;;
4450 glyphs) ac_glyphs_debug=1 ;;
4451 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4452 esac
4453 done
4454 IFS="$ac_save_IFS"
4455
4456 if test x$ac_enable_checking != x ; then
4457
4458 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4459
4460 fi
4461 if test x$ac_gc_check_stringbytes != x ; then
4462
4463 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4464
4465 fi
4466 if test x$ac_gc_check_string_overrun != x ; then
4467
4468 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4469
4470 fi
4471 if test x$ac_gc_check_string_free_list != x ; then
4472
4473 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4474
4475 fi
4476 if test x$ac_xmalloc_overrun != x ; then
4477
4478 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4479
4480 fi
4481 if test x$ac_gc_check_cons_list != x ; then
4482
4483 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4484
4485 fi
4486 if test x$ac_glyphs_debug != x ; then
4487
4488 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4489
4490 fi
4491
4492 # Check whether --enable-check-lisp-object-type was given.
4493 if test "${enable_check_lisp_object_type+set}" = set; then :
4494 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4495
4496 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4497
4498 fi
4499 fi
4500
4501
4502
4503 # Check whether --enable-profiling was given.
4504 if test "${enable_profiling+set}" = set; then :
4505 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4506 fi
4507
4508 if test x$ac_enable_profiling != x ; then
4509 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4510 else
4511 PROFILING_CFLAGS=
4512 fi
4513
4514
4515 # Check whether --enable-autodepend was given.
4516 if test "${enable_autodepend+set}" = set; then :
4517 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4518 else
4519 ac_enable_autodepend=yes
4520 fi
4521
4522
4523 # Check whether --enable-gtk-deprecation-warnings was given.
4524 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4525 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4526 fi
4527
4528
4529 #### Make srcdir absolute, if it isn't already. It's important to
4530 #### avoid running the file name through pwd unnecessarily, since pwd can
4531 #### give you automounter prefixes, which can go away. We do all this
4532 #### so Emacs can find its files when run uninstalled.
4533 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4534 unset CDPATH
4535 case "${srcdir}" in
4536 /* ) ;;
4537 . )
4538 ## We may be able to use the $PWD environment variable to make this
4539 ## absolute. But sometimes PWD is inaccurate.
4540 ## Note: we used to use $PWD at the end instead of `pwd`,
4541 ## but that tested only for a well-formed and valid PWD,
4542 ## it did not object when PWD was well-formed and valid but just wrong.
4543 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4544 then
4545 srcdir="$PWD"
4546 else
4547 srcdir=`(cd "$srcdir"; pwd)`
4548 fi
4549 ;;
4550 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4551 esac
4552
4553 ### Canonicalize the configuration name.
4554
4555 # Make sure we can run config.sub.
4556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4557 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4560 $as_echo_n "checking build system type... " >&6; }
4561 if test "${ac_cv_build+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 ac_build_alias=$build_alias
4565 test "x$ac_build_alias" = x &&
4566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4567 test "x$ac_build_alias" = x &&
4568 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4570 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4571
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4574 $as_echo "$ac_cv_build" >&6; }
4575 case $ac_cv_build in
4576 *-*-*) ;;
4577 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4578 esac
4579 build=$ac_cv_build
4580 ac_save_IFS=$IFS; IFS='-'
4581 set x $ac_cv_build
4582 shift
4583 build_cpu=$1
4584 build_vendor=$2
4585 shift; shift
4586 # Remember, the first character of IFS is used to create $*,
4587 # except with old shells:
4588 build_os=$*
4589 IFS=$ac_save_IFS
4590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4591
4592
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4594 $as_echo_n "checking host system type... " >&6; }
4595 if test "${ac_cv_host+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test "x$host_alias" = x; then
4599 ac_cv_host=$ac_cv_build
4600 else
4601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4602 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4603 fi
4604
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4607 $as_echo "$ac_cv_host" >&6; }
4608 case $ac_cv_host in
4609 *-*-*) ;;
4610 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4611 esac
4612 host=$ac_cv_host
4613 ac_save_IFS=$IFS; IFS='-'
4614 set x $ac_cv_host
4615 shift
4616 host_cpu=$1
4617 host_vendor=$2
4618 shift; shift
4619 # Remember, the first character of IFS is used to create $*,
4620 # except with old shells:
4621 host_os=$*
4622 IFS=$ac_save_IFS
4623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4624
4625
4626 canonical=$host
4627 configuration=${host_alias-${build_alias-$host}}
4628
4629
4630
4631 ### If you add support for a new configuration, add code to this
4632 ### switch statement to recognize your configuration name and select
4633 ### the appropriate operating system file.
4634
4635 ### You would hope that you could choose an s/*.h
4636 ### file based on the operating system portion. However, it turns out
4637 ### that each s/*.h file is pretty manufacturer-specific.
4638 ### So we basically have to have a special case for each
4639 ### configuration name.
4640 ###
4641 ### As far as handling version numbers on operating systems is
4642 ### concerned, make sure things will fail in a fixable way. If
4643 ### /etc/MACHINES doesn't say anything about version numbers, be
4644 ### prepared to handle anything reasonably. If version numbers
4645 ### matter, be sure /etc/MACHINES says something about it.
4646
4647 opsys='' unported=no
4648 case "${canonical}" in
4649
4650 ## GNU/Linux and similar ports
4651 *-*-linux* )
4652 opsys=gnu-linux
4653 ;;
4654
4655 ## FreeBSD ports
4656 *-*-freebsd* )
4657 opsys=freebsd
4658 ;;
4659
4660 ## FreeBSD kernel + glibc based userland
4661 *-*-kfreebsd*gnu* )
4662 opsys=gnu-kfreebsd
4663 ;;
4664
4665 ## NetBSD ports
4666 *-*-netbsd* )
4667 opsys=netbsd
4668 ;;
4669
4670 ## OpenBSD ports
4671 *-*-openbsd* )
4672 opsys=openbsd
4673 ;;
4674
4675 ## Apple Darwin / Mac OS X
4676 *-apple-darwin* )
4677 case "${canonical}" in
4678 i[3456]86-* ) ;;
4679 powerpc-* ) ;;
4680 x86_64-* ) ;;
4681 * ) unported=yes ;;
4682 esac
4683 opsys=darwin
4684 ## Use fink packages if available.
4685 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4686 ## if test -d /sw/include && test -d /sw/lib; then
4687 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4688 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4689 ## fi
4690 ;;
4691
4692 ## HP 9000 series 700 and 800, running HP/UX
4693 hppa*-hp-hpux10.2* )
4694 opsys=hpux10-20
4695 ;;
4696 hppa*-hp-hpux1[1-9]* )
4697 opsys=hpux11
4698 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4699 ;;
4700
4701 ## IBM machines
4702 rs6000-ibm-aix4.[23]* )
4703 opsys=aix4-2
4704 ;;
4705 powerpc-ibm-aix4.[23]* )
4706 opsys=aix4-2
4707 ;;
4708 rs6000-ibm-aix[56]* )
4709 opsys=aix4-2
4710 ;;
4711 powerpc-ibm-aix[56]* )
4712 opsys=aix4-2
4713 ;;
4714
4715 ## Silicon Graphics machines
4716 ## Iris 4D
4717 mips-sgi-irix6.5 )
4718 opsys=irix6-5
4719 # Without defining _LANGUAGE_C, things get masked out in the headers
4720 # so that, for instance, grepping for `free' in stdlib.h fails and
4721 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4722 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4723 ;;
4724
4725 ## Suns
4726 *-sun-solaris* \
4727 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4728 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4729 case "${canonical}" in
4730 i[3456]86-*-* ) ;;
4731 amd64-*-*|x86_64-*-*) ;;
4732 sparc* ) ;;
4733 * ) unported=yes ;;
4734 esac
4735 case "${canonical}" in
4736 *-sunos5.6* | *-solaris2.6* )
4737 opsys=sol2-6
4738 RANLIB="ar -ts"
4739 ;;
4740 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4741 opsys=sol2-6
4742 emacs_check_sunpro_c=yes
4743 ;;
4744 *-sunos5* | *-solaris* )
4745 opsys=sol2-10
4746 emacs_check_sunpro_c=yes
4747 ;;
4748 esac
4749 ## Watch out for a compiler that we know will not work.
4750 case "${canonical}" in
4751 *-solaris* | *-sunos5* )
4752 if [ "x$CC" = x/usr/ucb/cc ]; then
4753 ## /usr/ucb/cc doesn't work;
4754 ## we should find some other compiler that does work.
4755 unset CC
4756 fi
4757 ;;
4758 *) ;;
4759 esac
4760 ;;
4761
4762 ## Intel 386 machines where we don't care about the manufacturer.
4763 i[3456]86-*-* )
4764 case "${canonical}" in
4765 *-cygwin ) opsys=cygwin ;;
4766 *-darwin* ) opsys=darwin ;;
4767 *-sysv4.2uw* ) opsys=unixware ;;
4768 *-sysv5uw* ) opsys=unixware ;;
4769 *-sysv5OpenUNIX* ) opsys=unixware ;;
4770 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4771 esac
4772 ;;
4773
4774 * )
4775 unported=yes
4776 ;;
4777 esac
4778
4779 ### If the code above didn't choose an operating system, just choose
4780 ### an operating system based on the configuration name. You really
4781 ### only want to use this when you have no idea what the right
4782 ### operating system is; if you know what operating systems a machine
4783 ### runs, it's cleaner to make it explicit in the case statement
4784 ### above.
4785 if test x"${opsys}" = x; then
4786 case "${canonical}" in
4787 *-gnu* ) opsys=gnu ;;
4788 * )
4789 unported=yes
4790 ;;
4791 esac
4792 fi
4793
4794
4795
4796 if test $unported = yes; then
4797 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4798 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4799 fi
4800
4801
4802 #### Choose a compiler.
4803
4804 ac_ext=c
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$CC"; then
4818 ac_cv_prog_CC="$CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845
4846
4847 fi
4848 if test -z "$ac_cv_prog_CC"; then
4849 ac_ct_CC=$CC
4850 # Extract the first word of "gcc", so it can be a program name with args.
4851 set dummy gcc; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -n "$ac_ct_CC"; then
4858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_ac_ct_CC="gcc"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4878 if test -n "$ac_ct_CC"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4880 $as_echo "$ac_ct_CC" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884 fi
4885
4886 if test "x$ac_ct_CC" = x; then
4887 CC=""
4888 else
4889 case $cross_compiling:$ac_tool_warned in
4890 yes:)
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893 ac_tool_warned=yes ;;
4894 esac
4895 CC=$ac_ct_CC
4896 fi
4897 else
4898 CC="$ac_cv_prog_CC"
4899 fi
4900
4901 if test -z "$CC"; then
4902 if test -n "$ac_tool_prefix"; then
4903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4904 set dummy ${ac_tool_prefix}cc; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_CC+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$CC"; then
4911 ac_cv_prog_CC="$CC" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_CC="${ac_tool_prefix}cc"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 CC=$ac_cv_prog_CC
4931 if test -n "$CC"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4933 $as_echo "$CC" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 fi
4938
4939
4940 fi
4941 fi
4942 if test -z "$CC"; then
4943 # Extract the first word of "cc", so it can be a program name with args.
4944 set dummy cc; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if test "${ac_cv_prog_CC+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$CC"; then
4951 ac_cv_prog_CC="$CC" # Let the user override the test.
4952 else
4953 ac_prog_rejected=no
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4962 ac_prog_rejected=yes
4963 continue
4964 fi
4965 ac_cv_prog_CC="cc"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4968 fi
4969 done
4970 done
4971 IFS=$as_save_IFS
4972
4973 if test $ac_prog_rejected = yes; then
4974 # We found a bogon in the path, so make sure we never use it.
4975 set dummy $ac_cv_prog_CC
4976 shift
4977 if test $# != 0; then
4978 # We chose a different compiler from the bogus one.
4979 # However, it has the same basename, so the bogon will be chosen
4980 # first if we set CC to just the basename; use the full file name.
4981 shift
4982 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4983 fi
4984 fi
4985 fi
4986 fi
4987 CC=$ac_cv_prog_CC
4988 if test -n "$CC"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4990 $as_echo "$CC" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 fi
4995
4996
4997 fi
4998 if test -z "$CC"; then
4999 if test -n "$ac_tool_prefix"; then
5000 for ac_prog in cl.exe
5001 do
5002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_CC+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$CC"; then
5010 ac_cv_prog_CC="$CC" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 CC=$ac_cv_prog_CC
5030 if test -n "$CC"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5032 $as_echo "$CC" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039 test -n "$CC" && break
5040 done
5041 fi
5042 if test -z "$CC"; then
5043 ac_ct_CC=$CC
5044 for ac_prog in cl.exe
5045 do
5046 # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$ac_ct_CC"; then
5054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_ac_ct_CC="$ac_prog"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5074 if test -n "$ac_ct_CC"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5076 $as_echo "$ac_ct_CC" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083 test -n "$ac_ct_CC" && break
5084 done
5085
5086 if test "x$ac_ct_CC" = x; then
5087 CC=""
5088 else
5089 case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095 CC=$ac_ct_CC
5096 fi
5097 fi
5098
5099 fi
5100
5101
5102 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5104 as_fn_error "no acceptable C compiler found in \$PATH
5105 See \`config.log' for more details." "$LINENO" 5; }
5106
5107 # Provide some information about the compiler.
5108 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5109 set X $ac_compile
5110 ac_compiler=$2
5111 for ac_option in --version -v -V -qversion; do
5112 { { ac_try="$ac_compiler $ac_option >&5"
5113 case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5118 $as_echo "$ac_try_echo"; } >&5
5119 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5120 ac_status=$?
5121 if test -s conftest.err; then
5122 sed '10a\
5123 ... rest of stderr output deleted ...
5124 10q' conftest.err >conftest.er1
5125 cat conftest.er1 >&5
5126 fi
5127 rm -f conftest.er1 conftest.err
5128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; }
5130 done
5131
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134
5135 int
5136 main ()
5137 {
5138
5139 ;
5140 return 0;
5141 }
5142 _ACEOF
5143 ac_clean_files_save=$ac_clean_files
5144 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5145 # Try to create an executable without -o first, disregard a.out.
5146 # It will help us diagnose broken compilers, and finding out an intuition
5147 # of exeext.
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5149 $as_echo_n "checking whether the C compiler works... " >&6; }
5150 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5151
5152 # The possible output files:
5153 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5154
5155 ac_rmfiles=
5156 for ac_file in $ac_files
5157 do
5158 case $ac_file in
5159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5161 esac
5162 done
5163 rm -f $ac_rmfiles
5164
5165 if { { ac_try="$ac_link_default"
5166 case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169 esac
5170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5171 $as_echo "$ac_try_echo"; } >&5
5172 (eval "$ac_link_default") 2>&5
5173 ac_status=$?
5174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5175 test $ac_status = 0; }; then :
5176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5179 # so that the user can short-circuit this test for compilers unknown to
5180 # Autoconf.
5181 for ac_file in $ac_files ''
5182 do
5183 test -f "$ac_file" || continue
5184 case $ac_file in
5185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5186 ;;
5187 [ab].out )
5188 # We found the default executable, but exeext='' is most
5189 # certainly right.
5190 break;;
5191 *.* )
5192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5193 then :; else
5194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5195 fi
5196 # We set ac_cv_exeext here because the later test for it is not
5197 # safe: cross compilers may not add the suffix if given an `-o'
5198 # argument, so we may need to know it at that point already.
5199 # Even if this section looks crufty: it has the advantage of
5200 # actually working.
5201 break;;
5202 * )
5203 break;;
5204 esac
5205 done
5206 test "$ac_cv_exeext" = no && ac_cv_exeext=
5207
5208 else
5209 ac_file=''
5210 fi
5211 if test -z "$ac_file"; then :
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5216
5217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5219 { as_fn_set_status 77
5220 as_fn_error "C compiler cannot create executables
5221 See \`config.log' for more details." "$LINENO" 5; }; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5224 $as_echo "yes" >&6; }
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5227 $as_echo_n "checking for C compiler default output file name... " >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5229 $as_echo "$ac_file" >&6; }
5230 ac_exeext=$ac_cv_exeext
5231
5232 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5233 ac_clean_files=$ac_clean_files_save
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5235 $as_echo_n "checking for suffix of executables... " >&6; }
5236 if { { ac_try="$ac_link"
5237 case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5242 $as_echo "$ac_try_echo"; } >&5
5243 (eval "$ac_link") 2>&5
5244 ac_status=$?
5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5246 test $ac_status = 0; }; then :
5247 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5248 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5249 # work properly (i.e., refer to `conftest.exe'), while it won't with
5250 # `rm'.
5251 for ac_file in conftest.exe conftest conftest.*; do
5252 test -f "$ac_file" || continue
5253 case $ac_file in
5254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5255 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5256 break;;
5257 * ) break;;
5258 esac
5259 done
5260 else
5261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5263 as_fn_error "cannot compute suffix of executables: cannot compile and link
5264 See \`config.log' for more details." "$LINENO" 5; }
5265 fi
5266 rm -f conftest conftest$ac_cv_exeext
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5268 $as_echo "$ac_cv_exeext" >&6; }
5269
5270 rm -f conftest.$ac_ext
5271 EXEEXT=$ac_cv_exeext
5272 ac_exeext=$EXEEXT
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 #include <stdio.h>
5276 int
5277 main ()
5278 {
5279 FILE *f = fopen ("conftest.out", "w");
5280 return ferror (f) || fclose (f) != 0;
5281
5282 ;
5283 return 0;
5284 }
5285 _ACEOF
5286 ac_clean_files="$ac_clean_files conftest.out"
5287 # Check that the compiler produces executables we can run. If not, either
5288 # the compiler is broken, or we cross compile.
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5290 $as_echo_n "checking whether we are cross compiling... " >&6; }
5291 if test "$cross_compiling" != yes; then
5292 { { ac_try="$ac_link"
5293 case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296 esac
5297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5298 $as_echo "$ac_try_echo"; } >&5
5299 (eval "$ac_link") 2>&5
5300 ac_status=$?
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }
5303 if { ac_try='./conftest$ac_cv_exeext'
5304 { { case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307 esac
5308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5309 $as_echo "$ac_try_echo"; } >&5
5310 (eval "$ac_try") 2>&5
5311 ac_status=$?
5312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5313 test $ac_status = 0; }; }; then
5314 cross_compiling=no
5315 else
5316 if test "$cross_compiling" = maybe; then
5317 cross_compiling=yes
5318 else
5319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5321 as_fn_error "cannot run C compiled programs.
5322 If you meant to cross compile, use \`--host'.
5323 See \`config.log' for more details." "$LINENO" 5; }
5324 fi
5325 fi
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5328 $as_echo "$cross_compiling" >&6; }
5329
5330 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5331 ac_clean_files=$ac_clean_files_save
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5333 $as_echo_n "checking for suffix of object files... " >&6; }
5334 if test "${ac_cv_objext+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339
5340 int
5341 main ()
5342 {
5343
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 rm -f conftest.o conftest.obj
5349 if { { ac_try="$ac_compile"
5350 case "(($ac_try" in
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5353 esac
5354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5355 $as_echo "$ac_try_echo"; } >&5
5356 (eval "$ac_compile") 2>&5
5357 ac_status=$?
5358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5359 test $ac_status = 0; }; then :
5360 for ac_file in conftest.o conftest.obj conftest.*; do
5361 test -f "$ac_file" || continue;
5362 case $ac_file in
5363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5364 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5365 break;;
5366 esac
5367 done
5368 else
5369 $as_echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5374 as_fn_error "cannot compute suffix of object files: cannot compile
5375 See \`config.log' for more details." "$LINENO" 5; }
5376 fi
5377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5380 $as_echo "$ac_cv_objext" >&6; }
5381 OBJEXT=$ac_cv_objext
5382 ac_objext=$OBJEXT
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5384 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5385 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390
5391 int
5392 main ()
5393 {
5394 #ifndef __GNUC__
5395 choke me
5396 #endif
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_compiler_gnu=yes
5404 else
5405 ac_compiler_gnu=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5409
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5412 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5413 if test $ac_compiler_gnu = yes; then
5414 GCC=yes
5415 else
5416 GCC=
5417 fi
5418 ac_test_CFLAGS=${CFLAGS+set}
5419 ac_save_CFLAGS=$CFLAGS
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5421 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5422 if test "${ac_cv_prog_cc_g+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 ac_save_c_werror_flag=$ac_c_werror_flag
5426 ac_c_werror_flag=yes
5427 ac_cv_prog_cc_g=no
5428 CFLAGS="-g"
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431
5432 int
5433 main ()
5434 {
5435
5436 ;
5437 return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441 ac_cv_prog_cc_g=yes
5442 else
5443 CFLAGS=""
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446
5447 int
5448 main ()
5449 {
5450
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456
5457 else
5458 ac_c_werror_flag=$ac_save_c_werror_flag
5459 CFLAGS="-g"
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462
5463 int
5464 main ()
5465 {
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_compile "$LINENO"; then :
5472 ac_cv_prog_cc_g=yes
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 ac_c_werror_flag=$ac_save_c_werror_flag
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5482 $as_echo "$ac_cv_prog_cc_g" >&6; }
5483 if test "$ac_test_CFLAGS" = set; then
5484 CFLAGS=$ac_save_CFLAGS
5485 elif test $ac_cv_prog_cc_g = yes; then
5486 if test "$GCC" = yes; then
5487 CFLAGS="-g -O2"
5488 else
5489 CFLAGS="-g"
5490 fi
5491 else
5492 if test "$GCC" = yes; then
5493 CFLAGS="-O2"
5494 else
5495 CFLAGS=
5496 fi
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5499 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5500 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 ac_cv_prog_cc_c89=no
5504 ac_save_CC=$CC
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #include <stdarg.h>
5508 #include <stdio.h>
5509 #include <sys/types.h>
5510 #include <sys/stat.h>
5511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5512 struct buf { int x; };
5513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5514 static char *e (p, i)
5515 char **p;
5516 int i;
5517 {
5518 return p[i];
5519 }
5520 static char *f (char * (*g) (char **, int), char **p, ...)
5521 {
5522 char *s;
5523 va_list v;
5524 va_start (v,p);
5525 s = g (p, va_arg (v,int));
5526 va_end (v);
5527 return s;
5528 }
5529
5530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5531 function prototypes and stuff, but not '\xHH' hex character constants.
5532 These don't provoke an error unfortunately, instead are silently treated
5533 as 'x'. The following induces an error, until -std is added to get
5534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5535 array size at least. It's necessary to write '\x00'==0 to get something
5536 that's true only with -std. */
5537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5538
5539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5540 inside strings and character constants. */
5541 #define FOO(x) 'x'
5542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5543
5544 int test (int i, double x);
5545 struct s1 {int (*f) (int a);};
5546 struct s2 {int (*f) (double a);};
5547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5548 int argc;
5549 char **argv;
5550 int
5551 main ()
5552 {
5553 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5559 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5560 do
5561 CC="$ac_save_CC $ac_arg"
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 ac_cv_prog_cc_c89=$ac_arg
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext
5566 test "x$ac_cv_prog_cc_c89" != "xno" && break
5567 done
5568 rm -f conftest.$ac_ext
5569 CC=$ac_save_CC
5570
5571 fi
5572 # AC_CACHE_VAL
5573 case "x$ac_cv_prog_cc_c89" in
5574 x)
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5576 $as_echo "none needed" >&6; } ;;
5577 xno)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5579 $as_echo "unsupported" >&6; } ;;
5580 *)
5581 CC="$CC $ac_cv_prog_cc_c89"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5583 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5584 esac
5585 if test "x$ac_cv_prog_cc_c89" != xno; then :
5586
5587 fi
5588
5589 ac_ext=c
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594 DEPDIR="${am__leading_dot}deps"
5595
5596 ac_config_commands="$ac_config_commands depfiles"
5597
5598
5599 am_make=${MAKE-make}
5600 cat > confinc << 'END'
5601 am__doit:
5602 @echo this is the am__doit target
5603 .PHONY: am__doit
5604 END
5605 # If we don't find an include directive, just comment out the code.
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5607 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5608 am__include="#"
5609 am__quote=
5610 _am_result=none
5611 # First try GNU make style include.
5612 echo "include confinc" > confmf
5613 # Ignore all kinds of additional output from `make'.
5614 case `$am_make -s -f confmf 2> /dev/null` in #(
5615 *the\ am__doit\ target*)
5616 am__include=include
5617 am__quote=
5618 _am_result=GNU
5619 ;;
5620 esac
5621 # Now try BSD make style include.
5622 if test "$am__include" = "#"; then
5623 echo '.include "confinc"' > confmf
5624 case `$am_make -s -f confmf 2> /dev/null` in #(
5625 *the\ am__doit\ target*)
5626 am__include=.include
5627 am__quote="\""
5628 _am_result=BSD
5629 ;;
5630 esac
5631 fi
5632
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5635 $as_echo "$_am_result" >&6; }
5636 rm -f confinc confmf
5637
5638 # Check whether --enable-dependency-tracking was given.
5639 if test "${enable_dependency_tracking+set}" = set; then :
5640 enableval=$enable_dependency_tracking;
5641 fi
5642
5643 if test "x$enable_dependency_tracking" != xno; then
5644 am_depcomp="$ac_aux_dir/depcomp"
5645 AMDEPBACKSLASH='\'
5646 fi
5647 if test "x$enable_dependency_tracking" != xno; then
5648 AMDEP_TRUE=
5649 AMDEP_FALSE='#'
5650 else
5651 AMDEP_TRUE='#'
5652 AMDEP_FALSE=
5653 fi
5654
5655
5656
5657 depcc="$CC" am_compiler_list=
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5660 $as_echo_n "checking dependency style of $depcc... " >&6; }
5661 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5665 # We make a subdir and do the tests there. Otherwise we can end up
5666 # making bogus files that we don't know about and never remove. For
5667 # instance it was reported that on HP-UX the gcc test will end up
5668 # making a dummy file named `D' -- because `-MD' means `put the output
5669 # in D'.
5670 mkdir conftest.dir
5671 # Copy depcomp to subdir because otherwise we won't find it if we're
5672 # using a relative directory.
5673 cp "$am_depcomp" conftest.dir
5674 cd conftest.dir
5675 # We will build objects and dependencies in a subdirectory because
5676 # it helps to detect inapplicable dependency modes. For instance
5677 # both Tru64's cc and ICC support -MD to output dependencies as a
5678 # side effect of compilation, but ICC will put the dependencies in
5679 # the current directory while Tru64 will put them in the object
5680 # directory.
5681 mkdir sub
5682
5683 am_cv_CC_dependencies_compiler_type=none
5684 if test "$am_compiler_list" = ""; then
5685 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5686 fi
5687 am__universal=false
5688 case " $depcc " in #(
5689 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5690 esac
5691
5692 for depmode in $am_compiler_list; do
5693 # Setup a source with many dependencies, because some compilers
5694 # like to wrap large dependency lists on column 80 (with \), and
5695 # we should not choose a depcomp mode which is confused by this.
5696 #
5697 # We need to recreate these files for each test, as the compiler may
5698 # overwrite some of them when testing with obscure command lines.
5699 # This happens at least with the AIX C compiler.
5700 : > sub/conftest.c
5701 for i in 1 2 3 4 5 6; do
5702 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5703 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5704 # Solaris 8's {/usr,}/bin/sh.
5705 touch sub/conftst$i.h
5706 done
5707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5708
5709 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5710 # mode. It turns out that the SunPro C++ compiler does not properly
5711 # handle `-M -o', and we need to detect this. Also, some Intel
5712 # versions had trouble with output in subdirs
5713 am__obj=sub/conftest.${OBJEXT-o}
5714 am__minus_obj="-o $am__obj"
5715 case $depmode in
5716 gcc)
5717 # This depmode causes a compiler race in universal mode.
5718 test "$am__universal" = false || continue
5719 ;;
5720 nosideeffect)
5721 # after this tag, mechanisms are not by side-effect, so they'll
5722 # only be used when explicitly requested
5723 if test "x$enable_dependency_tracking" = xyes; then
5724 continue
5725 else
5726 break
5727 fi
5728 ;;
5729 msvisualcpp | msvcmsys)
5730 # This compiler won't grok `-c -o', but also, the minuso test has
5731 # not run yet. These depmodes are late enough in the game, and
5732 # so weak that their functioning should not be impacted.
5733 am__obj=conftest.${OBJEXT-o}
5734 am__minus_obj=
5735 ;;
5736 none) break ;;
5737 esac
5738 if depmode=$depmode \
5739 source=sub/conftest.c object=$am__obj \
5740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5741 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5742 >/dev/null 2>conftest.err &&
5743 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5744 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5745 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5746 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5747 # icc doesn't choke on unknown options, it will just issue warnings
5748 # or remarks (even with -Werror). So we grep stderr for any message
5749 # that says an option was ignored or not supported.
5750 # When given -MP, icc 7.0 and 7.1 complain thusly:
5751 # icc: Command line warning: ignoring option '-M'; no argument required
5752 # The diagnosis changed in icc 8.0:
5753 # icc: Command line remark: option '-MP' not supported
5754 if (grep 'ignoring option' conftest.err ||
5755 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5756 am_cv_CC_dependencies_compiler_type=$depmode
5757 break
5758 fi
5759 fi
5760 done
5761
5762 cd ..
5763 rm -rf conftest.dir
5764 else
5765 am_cv_CC_dependencies_compiler_type=none
5766 fi
5767
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5770 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5771 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5772
5773 if
5774 test "x$enable_dependency_tracking" != xno \
5775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5776 am__fastdepCC_TRUE=
5777 am__fastdepCC_FALSE='#'
5778 else
5779 am__fastdepCC_TRUE='#'
5780 am__fastdepCC_FALSE=
5781 fi
5782
5783
5784 if test "x$CC" != xcc; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5786 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5789 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5790 fi
5791 set dummy $CC; ac_cc=`$as_echo "$2" |
5792 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5793 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798
5799 int
5800 main ()
5801 {
5802
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 # Make sure it works both with $CC and with simple cc.
5808 # We do the test twice because some compilers refuse to overwrite an
5809 # existing .o file with -o, though they will create one.
5810 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5811 rm -f conftest2.*
5812 if { { case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5817 $as_echo "$ac_try_echo"; } >&5
5818 (eval "$ac_try") 2>&5
5819 ac_status=$?
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; } &&
5822 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5827 $as_echo "$ac_try_echo"; } >&5
5828 (eval "$ac_try") 2>&5
5829 ac_status=$?
5830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5831 test $ac_status = 0; };
5832 then
5833 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5834 if test "x$CC" != xcc; then
5835 # Test first that cc exists at all.
5836 if { ac_try='cc -c conftest.$ac_ext >&5'
5837 { { case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840 esac
5841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5842 $as_echo "$ac_try_echo"; } >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5846 test $ac_status = 0; }; }; then
5847 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5848 rm -f conftest2.*
5849 if { { case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5854 $as_echo "$ac_try_echo"; } >&5
5855 (eval "$ac_try") 2>&5
5856 ac_status=$?
5857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5858 test $ac_status = 0; } &&
5859 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5864 $as_echo "$ac_try_echo"; } >&5
5865 (eval "$ac_try") 2>&5
5866 ac_status=$?
5867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868 test $ac_status = 0; };
5869 then
5870 # cc works too.
5871 :
5872 else
5873 # cc exists but doesn't like -o.
5874 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5875 fi
5876 fi
5877 fi
5878 else
5879 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5880 fi
5881 rm -f core conftest*
5882
5883 fi
5884 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5886 $as_echo "yes" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890
5891 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5892
5893 fi
5894
5895 # FIXME: we rely on the cache variable name because
5896 # there is no other way.
5897 set dummy $CC
5898 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5899 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5900 if test "$am_t" != yes; then
5901 # Losing compiler, so override with the script.
5902 # FIXME: It is wrong to rewrite CC.
5903 # But if we don't then we get into trouble of one sort or another.
5904 # A longer-term fix would be to have automake use am__CC in this case,
5905 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5906 CC="$am_aux_dir/compile $CC"
5907 fi
5908
5909
5910
5911 if test x$GCC = xyes; then
5912 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5913 else
5914 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5915 fi
5916
5917 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5918
5919 # Avoid gnulib's threadlib module, as we do threads our own way.
5920
5921
5922 # Initialize gnulib right after choosing the compiler.
5923
5924 ac_ext=c
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5930 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5931 # On Suns, sometimes $CPP names a directory.
5932 if test -n "$CPP" && test -d "$CPP"; then
5933 CPP=
5934 fi
5935 if test -z "$CPP"; then
5936 if test "${ac_cv_prog_CPP+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 # Double quotes because CPP needs to be expanded
5940 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5941 do
5942 ac_preproc_ok=false
5943 for ac_c_preproc_warn_flag in '' yes
5944 do
5945 # Use a header file that comes with gcc, so configuring glibc
5946 # with a fresh cross-compiler works.
5947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5948 # <limits.h> exists even on freestanding compilers.
5949 # On the NeXT, cc -E runs the code through the compiler's parser,
5950 # not just through cpp. "Syntax error" is here to catch this case.
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #ifdef __STDC__
5954 # include <limits.h>
5955 #else
5956 # include <assert.h>
5957 #endif
5958 Syntax error
5959 _ACEOF
5960 if ac_fn_c_try_cpp "$LINENO"; then :
5961
5962 else
5963 # Broken: fails on valid input.
5964 continue
5965 fi
5966 rm -f conftest.err conftest.$ac_ext
5967
5968 # OK, works on sane cases. Now check whether nonexistent headers
5969 # can be detected and how.
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 #include <ac_nonexistent.h>
5973 _ACEOF
5974 if ac_fn_c_try_cpp "$LINENO"; then :
5975 # Broken: success on invalid input.
5976 continue
5977 else
5978 # Passes both tests.
5979 ac_preproc_ok=:
5980 break
5981 fi
5982 rm -f conftest.err conftest.$ac_ext
5983
5984 done
5985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986 rm -f conftest.err conftest.$ac_ext
5987 if $ac_preproc_ok; then :
5988 break
5989 fi
5990
5991 done
5992 ac_cv_prog_CPP=$CPP
5993
5994 fi
5995 CPP=$ac_cv_prog_CPP
5996 else
5997 ac_cv_prog_CPP=$CPP
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6000 $as_echo "$CPP" >&6; }
6001 ac_preproc_ok=false
6002 for ac_c_preproc_warn_flag in '' yes
6003 do
6004 # Use a header file that comes with gcc, so configuring glibc
6005 # with a fresh cross-compiler works.
6006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6007 # <limits.h> exists even on freestanding compilers.
6008 # On the NeXT, cc -E runs the code through the compiler's parser,
6009 # not just through cpp. "Syntax error" is here to catch this case.
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #ifdef __STDC__
6013 # include <limits.h>
6014 #else
6015 # include <assert.h>
6016 #endif
6017 Syntax error
6018 _ACEOF
6019 if ac_fn_c_try_cpp "$LINENO"; then :
6020
6021 else
6022 # Broken: fails on valid input.
6023 continue
6024 fi
6025 rm -f conftest.err conftest.$ac_ext
6026
6027 # OK, works on sane cases. Now check whether nonexistent headers
6028 # can be detected and how.
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <ac_nonexistent.h>
6032 _ACEOF
6033 if ac_fn_c_try_cpp "$LINENO"; then :
6034 # Broken: success on invalid input.
6035 continue
6036 else
6037 # Passes both tests.
6038 ac_preproc_ok=:
6039 break
6040 fi
6041 rm -f conftest.err conftest.$ac_ext
6042
6043 done
6044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6045 rm -f conftest.err conftest.$ac_ext
6046 if $ac_preproc_ok; then :
6047
6048 else
6049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6051 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6052 See \`config.log' for more details." "$LINENO" 5; }
6053 fi
6054
6055 ac_ext=c
6056 ac_cpp='$CPP $CPPFLAGS'
6057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060
6061
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6063 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6064 if test "${ac_cv_path_GREP+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -z "$GREP"; then
6068 ac_path_GREP_found=false
6069 # Loop through the user's path and test for each of PROGNAME-LIST
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6072 do
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_prog in grep ggrep; do
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6078 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6079 # Check for GNU ac_path_GREP and select it if it is found.
6080 # Check for GNU $ac_path_GREP
6081 case `"$ac_path_GREP" --version 2>&1` in
6082 *GNU*)
6083 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6084 *)
6085 ac_count=0
6086 $as_echo_n 0123456789 >"conftest.in"
6087 while :
6088 do
6089 cat "conftest.in" "conftest.in" >"conftest.tmp"
6090 mv "conftest.tmp" "conftest.in"
6091 cp "conftest.in" "conftest.nl"
6092 $as_echo 'GREP' >> "conftest.nl"
6093 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6095 as_fn_arith $ac_count + 1 && ac_count=$as_val
6096 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6097 # Best one so far, save it but keep looking for a better one
6098 ac_cv_path_GREP="$ac_path_GREP"
6099 ac_path_GREP_max=$ac_count
6100 fi
6101 # 10*(2^10) chars as input seems more than enough
6102 test $ac_count -gt 10 && break
6103 done
6104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6105 esac
6106
6107 $ac_path_GREP_found && break 3
6108 done
6109 done
6110 done
6111 IFS=$as_save_IFS
6112 if test -z "$ac_cv_path_GREP"; then
6113 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6114 fi
6115 else
6116 ac_cv_path_GREP=$GREP
6117 fi
6118
6119 fi
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6121 $as_echo "$ac_cv_path_GREP" >&6; }
6122 GREP="$ac_cv_path_GREP"
6123
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6126 $as_echo_n "checking for egrep... " >&6; }
6127 if test "${ac_cv_path_EGREP+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6131 then ac_cv_path_EGREP="$GREP -E"
6132 else
6133 if test -z "$EGREP"; then
6134 ac_path_EGREP_found=false
6135 # Loop through the user's path and test for each of PROGNAME-LIST
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6138 do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_prog in egrep; do
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6144 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6145 # Check for GNU ac_path_EGREP and select it if it is found.
6146 # Check for GNU $ac_path_EGREP
6147 case `"$ac_path_EGREP" --version 2>&1` in
6148 *GNU*)
6149 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6150 *)
6151 ac_count=0
6152 $as_echo_n 0123456789 >"conftest.in"
6153 while :
6154 do
6155 cat "conftest.in" "conftest.in" >"conftest.tmp"
6156 mv "conftest.tmp" "conftest.in"
6157 cp "conftest.in" "conftest.nl"
6158 $as_echo 'EGREP' >> "conftest.nl"
6159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6161 as_fn_arith $ac_count + 1 && ac_count=$as_val
6162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6163 # Best one so far, save it but keep looking for a better one
6164 ac_cv_path_EGREP="$ac_path_EGREP"
6165 ac_path_EGREP_max=$ac_count
6166 fi
6167 # 10*(2^10) chars as input seems more than enough
6168 test $ac_count -gt 10 && break
6169 done
6170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6171 esac
6172
6173 $ac_path_EGREP_found && break 3
6174 done
6175 done
6176 done
6177 IFS=$as_save_IFS
6178 if test -z "$ac_cv_path_EGREP"; then
6179 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6180 fi
6181 else
6182 ac_cv_path_EGREP=$EGREP
6183 fi
6184
6185 fi
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6188 $as_echo "$ac_cv_path_EGREP" >&6; }
6189 EGREP="$ac_cv_path_EGREP"
6190
6191
6192
6193
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6195 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6196 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202
6203 #ifdef __ACK__
6204 Amsterdam
6205 #endif
6206
6207 _ACEOF
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6210 gl_cv_c_amsterdam_compiler=yes
6211 else
6212 gl_cv_c_amsterdam_compiler=no
6213 fi
6214 rm -f conftest*
6215
6216
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6219 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6220 if test -z "$AR"; then
6221 if test $gl_cv_c_amsterdam_compiler = yes; then
6222 AR='cc -c.a'
6223 if test -z "$ARFLAGS"; then
6224 ARFLAGS='-o'
6225 fi
6226 else
6227 if test -n "$ac_tool_prefix"; then
6228 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6229 set dummy ${ac_tool_prefix}ar; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if test "${ac_cv_prog_AR+set}" = set; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 if test -n "$AR"; then
6236 ac_cv_prog_AR="$AR" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_AR="${ac_tool_prefix}ar"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 AR=$ac_cv_prog_AR
6256 if test -n "$AR"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6258 $as_echo "$AR" >&6; }
6259 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263
6264
6265 fi
6266 if test -z "$ac_cv_prog_AR"; then
6267 ac_ct_AR=$AR
6268 # Extract the first word of "ar", so it can be a program name with args.
6269 set dummy ar; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 if test -n "$ac_ct_AR"; then
6276 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_prog_ac_ct_AR="ar"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289 done
6290 done
6291 IFS=$as_save_IFS
6292
6293 fi
6294 fi
6295 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6296 if test -n "$ac_ct_AR"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6298 $as_echo "$ac_ct_AR" >&6; }
6299 else
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6302 fi
6303
6304 if test "x$ac_ct_AR" = x; then
6305 AR="ar"
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308 yes:)
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311 ac_tool_warned=yes ;;
6312 esac
6313 AR=$ac_ct_AR
6314 fi
6315 else
6316 AR="$ac_cv_prog_AR"
6317 fi
6318
6319 if test -z "$ARFLAGS"; then
6320 ARFLAGS='cru'
6321 fi
6322 fi
6323 else
6324 if test -z "$ARFLAGS"; then
6325 ARFLAGS='cru'
6326 fi
6327 fi
6328
6329
6330 if test -z "$RANLIB"; then
6331 if test $gl_cv_c_amsterdam_compiler = yes; then
6332 RANLIB=':'
6333 else
6334 if test -n "$ac_tool_prefix"; then
6335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if test -n "$RANLIB"; then
6343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356 done
6357 done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 RANLIB=$ac_cv_prog_RANLIB
6363 if test -n "$RANLIB"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6365 $as_echo "$RANLIB" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371
6372 fi
6373 if test -z "$ac_cv_prog_RANLIB"; then
6374 ac_ct_RANLIB=$RANLIB
6375 # Extract the first word of "ranlib", so it can be a program name with args.
6376 set dummy ranlib; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 if test -n "$ac_ct_RANLIB"; then
6383 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6384 else
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_prog_ac_ct_RANLIB="ranlib"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6403 if test -n "$ac_ct_RANLIB"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6405 $as_echo "$ac_ct_RANLIB" >&6; }
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410
6411 if test "x$ac_ct_RANLIB" = x; then
6412 RANLIB=":"
6413 else
6414 case $cross_compiling:$ac_tool_warned in
6415 yes:)
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6418 ac_tool_warned=yes ;;
6419 esac
6420 RANLIB=$ac_ct_RANLIB
6421 fi
6422 else
6423 RANLIB="$ac_cv_prog_RANLIB"
6424 fi
6425
6426 fi
6427 fi
6428
6429
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6431 $as_echo_n "checking for ANSI C header files... " >&6; }
6432 if test "${ac_cv_header_stdc+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 #include <stdlib.h>
6438 #include <stdarg.h>
6439 #include <string.h>
6440 #include <float.h>
6441
6442 int
6443 main ()
6444 {
6445
6446 ;
6447 return 0;
6448 }
6449 _ACEOF
6450 if ac_fn_c_try_compile "$LINENO"; then :
6451 ac_cv_header_stdc=yes
6452 else
6453 ac_cv_header_stdc=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456
6457 if test $ac_cv_header_stdc = yes; then
6458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 #include <string.h>
6462
6463 _ACEOF
6464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6465 $EGREP "memchr" >/dev/null 2>&1; then :
6466
6467 else
6468 ac_cv_header_stdc=no
6469 fi
6470 rm -f conftest*
6471
6472 fi
6473
6474 if test $ac_cv_header_stdc = yes; then
6475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 #include <stdlib.h>
6479
6480 _ACEOF
6481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6482 $EGREP "free" >/dev/null 2>&1; then :
6483
6484 else
6485 ac_cv_header_stdc=no
6486 fi
6487 rm -f conftest*
6488
6489 fi
6490
6491 if test $ac_cv_header_stdc = yes; then
6492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6493 if test "$cross_compiling" = yes; then :
6494 :
6495 else
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 #include <ctype.h>
6499 #include <stdlib.h>
6500 #if ((' ' & 0x0FF) == 0x020)
6501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6503 #else
6504 # define ISLOWER(c) \
6505 (('a' <= (c) && (c) <= 'i') \
6506 || ('j' <= (c) && (c) <= 'r') \
6507 || ('s' <= (c) && (c) <= 'z'))
6508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6509 #endif
6510
6511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6512 int
6513 main ()
6514 {
6515 int i;
6516 for (i = 0; i < 256; i++)
6517 if (XOR (islower (i), ISLOWER (i))
6518 || toupper (i) != TOUPPER (i))
6519 return 2;
6520 return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_run "$LINENO"; then :
6524
6525 else
6526 ac_cv_header_stdc=no
6527 fi
6528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6529 conftest.$ac_objext conftest.beam conftest.$ac_ext
6530 fi
6531
6532 fi
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6535 $as_echo "$ac_cv_header_stdc" >&6; }
6536 if test $ac_cv_header_stdc = yes; then
6537
6538 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6539
6540 fi
6541
6542 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6544 inttypes.h stdint.h unistd.h
6545 do :
6546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6547 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6548 "
6549 eval as_val=\$$as_ac_Header
6550 if test "x$as_val" = x""yes; then :
6551 cat >>confdefs.h <<_ACEOF
6552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553 _ACEOF
6554
6555 fi
6556
6557 done
6558
6559
6560
6561 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6562 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6563 MINIX=yes
6564 else
6565 MINIX=
6566 fi
6567
6568
6569 if test "$MINIX" = yes; then
6570
6571 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6572
6573
6574 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6575
6576
6577 $as_echo "#define _MINIX 1" >>confdefs.h
6578
6579
6580 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6581
6582 fi
6583
6584
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6586 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6587 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592
6593 # define __EXTENSIONS__ 1
6594 $ac_includes_default
6595 int
6596 main ()
6597 {
6598
6599 ;
6600 return 0;
6601 }
6602 _ACEOF
6603 if ac_fn_c_try_compile "$LINENO"; then :
6604 ac_cv_safe_to_define___extensions__=yes
6605 else
6606 ac_cv_safe_to_define___extensions__=no
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6611 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6612 test $ac_cv_safe_to_define___extensions__ = yes &&
6613 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6614
6615 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6616
6617 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6618
6619 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6620
6621 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6622
6623 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6626 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6627 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 ac_cv_should_define__xopen_source=no
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633
6634 #include <wchar.h>
6635 mbstate_t x;
6636 int
6637 main ()
6638 {
6639
6640 ;
6641 return 0;
6642 }
6643 _ACEOF
6644 if ac_fn_c_try_compile "$LINENO"; then :
6645
6646 else
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649
6650 #define _XOPEN_SOURCE 500
6651 #include <wchar.h>
6652 mbstate_t x;
6653 int
6654 main ()
6655 {
6656
6657 ;
6658 return 0;
6659 }
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 ac_cv_should_define__xopen_source=yes
6663 fi
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 fi
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6669 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6670 test $ac_cv_should_define__xopen_source = yes &&
6671 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6672
6673
6674
6675
6676
6677
6678
6679
6680 # Check whether --enable-largefile was given.
6681 if test "${enable_largefile+set}" = set; then :
6682 enableval=$enable_largefile;
6683 fi
6684
6685 if test "$enable_largefile" != no; then
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6688 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6689 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 ac_cv_sys_largefile_CC=no
6693 if test "$GCC" != yes; then
6694 ac_save_CC=$CC
6695 while :; do
6696 # IRIX 6.2 and later do not support large files by default,
6697 # so use the C compiler's -n32 option if that helps.
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 #include <sys/types.h>
6701 /* Check that off_t can represent 2**63 - 1 correctly.
6702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6703 since some C++ compilers masquerading as C compilers
6704 incorrectly reject 9223372036854775807. */
6705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6707 && LARGE_OFF_T % 2147483647 == 1)
6708 ? 1 : -1];
6709 int
6710 main ()
6711 {
6712
6713 ;
6714 return 0;
6715 }
6716 _ACEOF
6717 if ac_fn_c_try_compile "$LINENO"; then :
6718 break
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext
6721 CC="$CC -n32"
6722 if ac_fn_c_try_compile "$LINENO"; then :
6723 ac_cv_sys_largefile_CC=' -n32'; break
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext
6726 break
6727 done
6728 CC=$ac_save_CC
6729 rm -f conftest.$ac_ext
6730 fi
6731 fi
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6733 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6734 if test "$ac_cv_sys_largefile_CC" != no; then
6735 CC=$CC$ac_cv_sys_largefile_CC
6736 fi
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6739 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6740 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 while :; do
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 #include <sys/types.h>
6747 /* Check that off_t can represent 2**63 - 1 correctly.
6748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6749 since some C++ compilers masquerading as C compilers
6750 incorrectly reject 9223372036854775807. */
6751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6753 && LARGE_OFF_T % 2147483647 == 1)
6754 ? 1 : -1];
6755 int
6756 main ()
6757 {
6758
6759 ;
6760 return 0;
6761 }
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 ac_cv_sys_file_offset_bits=no; break
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 #define _FILE_OFFSET_BITS 64
6770 #include <sys/types.h>
6771 /* Check that off_t can represent 2**63 - 1 correctly.
6772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6773 since some C++ compilers masquerading as C compilers
6774 incorrectly reject 9223372036854775807. */
6775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6777 && LARGE_OFF_T % 2147483647 == 1)
6778 ? 1 : -1];
6779 int
6780 main ()
6781 {
6782
6783 ;
6784 return 0;
6785 }
6786 _ACEOF
6787 if ac_fn_c_try_compile "$LINENO"; then :
6788 ac_cv_sys_file_offset_bits=64; break
6789 fi
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 ac_cv_sys_file_offset_bits=unknown
6792 break
6793 done
6794 fi
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6796 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6797 case $ac_cv_sys_file_offset_bits in #(
6798 no | unknown) ;;
6799 *)
6800 cat >>confdefs.h <<_ACEOF
6801 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6802 _ACEOF
6803 ;;
6804 esac
6805 rm -rf conftest*
6806 if test $ac_cv_sys_file_offset_bits = unknown; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6808 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6809 if test "${ac_cv_sys_large_files+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 while :; do
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 #include <sys/types.h>
6816 /* Check that off_t can represent 2**63 - 1 correctly.
6817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6818 since some C++ compilers masquerading as C compilers
6819 incorrectly reject 9223372036854775807. */
6820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6822 && LARGE_OFF_T % 2147483647 == 1)
6823 ? 1 : -1];
6824 int
6825 main ()
6826 {
6827
6828 ;
6829 return 0;
6830 }
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 ac_cv_sys_large_files=no; break
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #define _LARGE_FILES 1
6839 #include <sys/types.h>
6840 /* Check that off_t can represent 2**63 - 1 correctly.
6841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6842 since some C++ compilers masquerading as C compilers
6843 incorrectly reject 9223372036854775807. */
6844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6846 && LARGE_OFF_T % 2147483647 == 1)
6847 ? 1 : -1];
6848 int
6849 main ()
6850 {
6851
6852 ;
6853 return 0;
6854 }
6855 _ACEOF
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 ac_cv_sys_large_files=1; break
6858 fi
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 ac_cv_sys_large_files=unknown
6861 break
6862 done
6863 fi
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6865 $as_echo "$ac_cv_sys_large_files" >&6; }
6866 case $ac_cv_sys_large_files in #(
6867 no | unknown) ;;
6868 *)
6869 cat >>confdefs.h <<_ACEOF
6870 #define _LARGE_FILES $ac_cv_sys_large_files
6871 _ACEOF
6872 ;;
6873 esac
6874 rm -rf conftest*
6875 fi
6876
6877
6878 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6879
6880 fi
6881
6882 case $ac_cv_prog_cc_stdc in #(
6883 no) :
6884 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6885 *) :
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6887 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6888 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 ac_cv_prog_cc_c99=no
6892 ac_save_CC=$CC
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 #include <stdarg.h>
6896 #include <stdbool.h>
6897 #include <stdlib.h>
6898 #include <wchar.h>
6899 #include <stdio.h>
6900
6901 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6902 #define debug(...) fprintf (stderr, __VA_ARGS__)
6903 #define showlist(...) puts (#__VA_ARGS__)
6904 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6905 static void
6906 test_varargs_macros (void)
6907 {
6908 int x = 1234;
6909 int y = 5678;
6910 debug ("Flag");
6911 debug ("X = %d\n", x);
6912 showlist (The first, second, and third items.);
6913 report (x>y, "x is %d but y is %d", x, y);
6914 }
6915
6916 // Check long long types.
6917 #define BIG64 18446744073709551615ull
6918 #define BIG32 4294967295ul
6919 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6920 #if !BIG_OK
6921 your preprocessor is broken;
6922 #endif
6923 #if BIG_OK
6924 #else
6925 your preprocessor is broken;
6926 #endif
6927 static long long int bignum = -9223372036854775807LL;
6928 static unsigned long long int ubignum = BIG64;
6929
6930 struct incomplete_array
6931 {
6932 int datasize;
6933 double data[];
6934 };
6935
6936 struct named_init {
6937 int number;
6938 const wchar_t *name;
6939 double average;
6940 };
6941
6942 typedef const char *ccp;
6943
6944 static inline int
6945 test_restrict (ccp restrict text)
6946 {
6947 // See if C++-style comments work.
6948 // Iterate through items via the restricted pointer.
6949 // Also check for declarations in for loops.
6950 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6951 continue;
6952 return 0;
6953 }
6954
6955 // Check varargs and va_copy.
6956 static void
6957 test_varargs (const char *format, ...)
6958 {
6959 va_list args;
6960 va_start (args, format);
6961 va_list args_copy;
6962 va_copy (args_copy, args);
6963
6964 const char *str;
6965 int number;
6966 float fnumber;
6967
6968 while (*format)
6969 {
6970 switch (*format++)
6971 {
6972 case 's': // string
6973 str = va_arg (args_copy, const char *);
6974 break;
6975 case 'd': // int
6976 number = va_arg (args_copy, int);
6977 break;
6978 case 'f': // float
6979 fnumber = va_arg (args_copy, double);
6980 break;
6981 default:
6982 break;
6983 }
6984 }
6985 va_end (args_copy);
6986 va_end (args);
6987 }
6988
6989 int
6990 main ()
6991 {
6992
6993 // Check bool.
6994 _Bool success = false;
6995
6996 // Check restrict.
6997 if (test_restrict ("String literal") == 0)
6998 success = true;
6999 char *restrict newvar = "Another string";
7000
7001 // Check varargs.
7002 test_varargs ("s, d' f .", "string", 65, 34.234);
7003 test_varargs_macros ();
7004
7005 // Check flexible array members.
7006 struct incomplete_array *ia =
7007 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7008 ia->datasize = 10;
7009 for (int i = 0; i < ia->datasize; ++i)
7010 ia->data[i] = i * 1.234;
7011
7012 // Check named initializers.
7013 struct named_init ni = {
7014 .number = 34,
7015 .name = L"Test wide string",
7016 .average = 543.34343,
7017 };
7018
7019 ni.number = 58;
7020
7021 int dynamic_array[ni.number];
7022 dynamic_array[ni.number - 1] = 543;
7023
7024 // work around unused variable warnings
7025 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7026 || dynamic_array[ni.number - 1] != 543);
7027
7028 ;
7029 return 0;
7030 }
7031 _ACEOF
7032 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7033 do
7034 CC="$ac_save_CC $ac_arg"
7035 if ac_fn_c_try_compile "$LINENO"; then :
7036 ac_cv_prog_cc_c99=$ac_arg
7037 fi
7038 rm -f core conftest.err conftest.$ac_objext
7039 test "x$ac_cv_prog_cc_c99" != "xno" && break
7040 done
7041 rm -f conftest.$ac_ext
7042 CC=$ac_save_CC
7043
7044 fi
7045 # AC_CACHE_VAL
7046 case "x$ac_cv_prog_cc_c99" in
7047 x)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7049 $as_echo "none needed" >&6; } ;;
7050 xno)
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7052 $as_echo "unsupported" >&6; } ;;
7053 *)
7054 CC="$CC $ac_cv_prog_cc_c99"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7056 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7057 esac
7058 if test "x$ac_cv_prog_cc_c99" != xno; then :
7059 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7062 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7063 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 ac_cv_prog_cc_c89=no
7067 ac_save_CC=$CC
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 #include <stdarg.h>
7071 #include <stdio.h>
7072 #include <sys/types.h>
7073 #include <sys/stat.h>
7074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7075 struct buf { int x; };
7076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7077 static char *e (p, i)
7078 char **p;
7079 int i;
7080 {
7081 return p[i];
7082 }
7083 static char *f (char * (*g) (char **, int), char **p, ...)
7084 {
7085 char *s;
7086 va_list v;
7087 va_start (v,p);
7088 s = g (p, va_arg (v,int));
7089 va_end (v);
7090 return s;
7091 }
7092
7093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7094 function prototypes and stuff, but not '\xHH' hex character constants.
7095 These don't provoke an error unfortunately, instead are silently treated
7096 as 'x'. The following induces an error, until -std is added to get
7097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7098 array size at least. It's necessary to write '\x00'==0 to get something
7099 that's true only with -std. */
7100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7101
7102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7103 inside strings and character constants. */
7104 #define FOO(x) 'x'
7105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7106
7107 int test (int i, double x);
7108 struct s1 {int (*f) (int a);};
7109 struct s2 {int (*f) (double a);};
7110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7111 int argc;
7112 char **argv;
7113 int
7114 main ()
7115 {
7116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7123 do
7124 CC="$ac_save_CC $ac_arg"
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 ac_cv_prog_cc_c89=$ac_arg
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext
7129 test "x$ac_cv_prog_cc_c89" != "xno" && break
7130 done
7131 rm -f conftest.$ac_ext
7132 CC=$ac_save_CC
7133
7134 fi
7135 # AC_CACHE_VAL
7136 case "x$ac_cv_prog_cc_c89" in
7137 x)
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7139 $as_echo "none needed" >&6; } ;;
7140 xno)
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7142 $as_echo "unsupported" >&6; } ;;
7143 *)
7144 CC="$CC $ac_cv_prog_cc_c89"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7147 esac
7148 if test "x$ac_cv_prog_cc_c89" != xno; then :
7149 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7150 else
7151 ac_cv_prog_cc_stdc=no
7152 fi
7153
7154 fi
7155 ;;
7156 esac
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7158 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7159 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7161 fi
7162
7163 case $ac_cv_prog_cc_stdc in #(
7164 no) :
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7166 $as_echo "unsupported" >&6; } ;; #(
7167 '') :
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7169 $as_echo "none needed" >&6; } ;; #(
7170 *) :
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7172 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7173 esac
7174
7175
7176
7177 # Code from module alloca-opt:
7178 # Code from module allocator:
7179 # Code from module at-internal:
7180 # Code from module c-ctype:
7181 # Code from module c-strcase:
7182 # Code from module careadlinkat:
7183 # Code from module clock-time:
7184 # Code from module close-stream:
7185 # Code from module crypto/md5:
7186 # Code from module crypto/sha1:
7187 # Code from module crypto/sha256:
7188 # Code from module crypto/sha512:
7189 # Code from module dirent:
7190 # Code from module dosname:
7191 # Code from module dtoastr:
7192 # Code from module dtotimespec:
7193 # Code from module dup2:
7194 # Code from module environ:
7195 # Code from module euidaccess:
7196 # Code from module execinfo:
7197 # Code from module extensions:
7198
7199 # Code from module extern-inline:
7200 # Code from module faccessat:
7201 # Code from module fcntl-h:
7202 # Code from module fdopendir:
7203 # Code from module filemode:
7204 # Code from module fpending:
7205 # Code from module fstatat:
7206 # Code from module getgroups:
7207 # Code from module getloadavg:
7208 # Code from module getopt-gnu:
7209 # Code from module getopt-posix:
7210 # Code from module gettext-h:
7211 # Code from module gettime:
7212 # Code from module gettimeofday:
7213 # Code from module group-member:
7214 # Code from module ignore-value:
7215 # Code from module include_next:
7216 # Code from module intprops:
7217 # Code from module inttypes-incomplete:
7218 # Code from module largefile:
7219
7220 # Code from module lstat:
7221 # Code from module manywarnings:
7222 # Code from module memrchr:
7223 # Code from module mktime:
7224 # Code from module multiarch:
7225 # Code from module nocrash:
7226 # Code from module openat-h:
7227 # Code from module pathmax:
7228 # Code from module pselect:
7229 # Code from module pthread_sigmask:
7230 # Code from module putenv:
7231 # Code from module readlink:
7232 # Code from module readlinkat:
7233 # Code from module root-uid:
7234 # Code from module sig2str:
7235 # Code from module signal-h:
7236 # Code from module snippet/_Noreturn:
7237 # Code from module snippet/arg-nonnull:
7238 # Code from module snippet/c++defs:
7239 # Code from module snippet/warn-on-use:
7240 # Code from module socklen:
7241 # Code from module ssize_t:
7242 # Code from module stat:
7243 # Code from module stat-time:
7244 # Code from module stdalign:
7245 # Code from module stdarg:
7246
7247
7248
7249 # Code from module stdbool:
7250 # Code from module stddef:
7251 # Code from module stdint:
7252 # Code from module stdio:
7253 # Code from module stdlib:
7254 # Code from module strftime:
7255 # Code from module string:
7256 # Code from module strtoimax:
7257 # Code from module strtoll:
7258 # Code from module strtoull:
7259 # Code from module strtoumax:
7260 # Code from module symlink:
7261 # Code from module sys_select:
7262 # Code from module sys_stat:
7263 # Code from module sys_time:
7264 # Code from module time:
7265 # Code from module time_r:
7266 # Code from module timer-time:
7267 # Code from module timespec:
7268 # Code from module timespec-add:
7269 # Code from module timespec-sub:
7270 # Code from module u64:
7271 # Code from module unistd:
7272 # Code from module unsetenv:
7273 # Code from module utimens:
7274 # Code from module verify:
7275 # Code from module warnings:
7276 # Code from module xalloc-oversized:
7277
7278
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 if test "$ac_test_CFLAGS" != set; then
7283 case $CFLAGS in
7284 '-g')
7285 emacs_g3_CFLAGS='-g3';;
7286 '-g -O2')
7287 emacs_g3_CFLAGS='-g3 -O2';;
7288 *)
7289 emacs_g3_CFLAGS='';;
7290 esac
7291 if test -n "$emacs_g3_CFLAGS"; then
7292 emacs_save_CFLAGS=$CFLAGS
7293 CFLAGS=$emacs_g3_CFLAGS
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7295 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7296 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301
7302 int
7303 main ()
7304 {
7305
7306 ;
7307 return 0;
7308 }
7309 _ACEOF
7310 if ac_fn_c_try_link "$LINENO"; then :
7311 emacs_cv_prog_cc_g3=yes
7312 else
7313 emacs_cv_prog_cc_g3=no
7314 fi
7315 rm -f core conftest.err conftest.$ac_objext \
7316 conftest$ac_exeext conftest.$ac_ext
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7319 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7320 if test $emacs_cv_prog_cc_g3 = yes; then
7321 CFLAGS=$emacs_g3_CFLAGS
7322 else
7323 CFLAGS=$emacs_save_CFLAGS
7324 fi
7325 fi
7326 fi
7327
7328 # Check whether --enable-gcc-warnings was given.
7329 if test "${enable_gcc_warnings+set}" = set; then :
7330 enableval=$enable_gcc_warnings; case $enableval in
7331 yes|no) ;;
7332 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7333 esac
7334 gl_gcc_warnings=$enableval
7335 else
7336 gl_gcc_warnings=no
7337
7338 fi
7339
7340
7341 # Check whether --enable-link-time-optimization was given.
7342 if test "${enable_link_time_optimization+set}" = set; then :
7343 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7345 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7346 ac_lto_supported=no
7347 if test x$GCC = xyes; then
7348 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7349 if test x$CPUS != x; then
7350 LTO="-flto=$CPUS"
7351 else
7352 LTO="-flto"
7353 fi
7354 old_CFLAGS=$CFLAGS
7355 CFLAGS="$CFLAGS $LTO"
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358
7359 int
7360 main ()
7361 {
7362
7363 ;
7364 return 0;
7365 }
7366 _ACEOF
7367 if ac_fn_c_try_compile "$LINENO"; then :
7368 ac_lto_supported=yes
7369 else
7370 ac_lto_supported=no
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 CFLAGS="$old_CFLAGS"
7374 fi
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7376 $as_echo "$ac_lto_supported" >&6; }
7377 if test "$ac_lto_supported" = "yes"; then
7378 CFLAGS="$CFLAGS $LTO"
7379 fi
7380 fi
7381 fi
7382
7383
7384 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7385 # ------------------------------------------------
7386 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7387 # Otherwise, run RUN-IF-NOT-FOUND.
7388
7389
7390 # When compiling with GCC, prefer -isystem to -I when including system
7391 # include files, to avoid generating useless diagnostics for the files.
7392 if test "$gl_gcc_warnings" != yes; then
7393 isystem='-I'
7394 else
7395 isystem='-isystem '
7396
7397 # This, $nw, is the list of warnings we disable.
7398 nw=
7399
7400 case $with_x_toolkit in
7401 lucid | athena | motif)
7402 # Old toolkits mishandle 'const'.
7403 nw="$nw -Wwrite-strings"
7404 ;;
7405 *)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7407 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7408 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411
7412 gl_save_compiler_FLAGS="$CFLAGS"
7413 as_fn_append CFLAGS " -Werror"
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416
7417 int
7418 main ()
7419 {
7420
7421 ;
7422 return 0;
7423 }
7424 _ACEOF
7425 if ac_fn_c_try_compile "$LINENO"; then :
7426 gl_cv_warn_c__Werror=yes
7427 else
7428 gl_cv_warn_c__Werror=no
7429 fi
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 CFLAGS="$gl_save_compiler_FLAGS"
7432
7433 fi
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7435 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7436 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7437 as_fn_append WERROR_CFLAGS " -Werror"
7438 fi
7439
7440
7441 ;;
7442 esac
7443
7444
7445 nw="$nw -Waggregate-return" # anachronistic
7446 nw="$nw -Wlong-long" # C90 is anachronistic
7447 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7448 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7449 nw="$nw -Wtraditional" # Warns on #elif which we use often
7450 nw="$nw -Wcast-qual" # Too many warnings for now
7451 nw="$nw -Wconversion" # Too many warnings for now
7452 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7453 nw="$nw -Wsign-conversion" # Too many warnings for now
7454 nw="$nw -Woverlength-strings" # Not a problem these days
7455 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7456 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7457 nw="$nw -Wpadded" # Our structs are not padded
7458 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7459 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7460 nw="$nw -Wformat-nonliteral" # we do this a lot
7461 nw="$nw -Wvla" # warnings in gettext.h
7462 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7463 nw="$nw -Wswitch-enum" # Too many warnings for now
7464 nw="$nw -Wswitch-default" # Too many warnings for now
7465 nw="$nw -Wfloat-equal" # warns about high-quality code
7466 nw="$nw -Winline" # OK to ignore 'inline'
7467 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7468 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7469 # signed overflow has undefined behavior
7470 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7471 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7472
7473 # Emacs doesn't care about shadowing; see
7474 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7475 nw="$nw -Wshadow"
7476
7477 # Emacs's use of alloca inhibits protecting the stack.
7478 nw="$nw -Wstack-protector"
7479
7480 # The following line should be removable at some point.
7481 nw="$nw -Wsuggest-attribute=pure"
7482
7483
7484
7485 if test -n "$GCC"; then
7486
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7488 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7489 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492
7493 gl_save_CFLAGS="$CFLAGS"
7494 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497
7498 int
7499 main ()
7500 {
7501
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507 gl_cv_cc_nomfi_supported=yes
7508 else
7509 gl_cv_cc_nomfi_supported=no
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 CFLAGS="$gl_save_CFLAGS"
7513 fi
7514
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7516 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7517
7518 if test "$gl_cv_cc_nomfi_supported" = yes; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7520 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7521 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524
7525 gl_save_CFLAGS="$CFLAGS"
7526 CFLAGS="$CFLAGS -W -Werror"
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 void f (void)
7530 {
7531 typedef struct { int a; int b; } s_t;
7532 s_t s1 = { 0, };
7533 }
7534
7535 int
7536 main ()
7537 {
7538
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 if ac_fn_c_try_compile "$LINENO"; then :
7544 gl_cv_cc_nomfi_needed=no
7545 else
7546 gl_cv_cc_nomfi_needed=yes
7547 fi
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 CFLAGS="$gl_save_CFLAGS"
7550
7551 fi
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7554 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7555 fi
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7558 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7559 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562
7563 gl_save_CFLAGS="$CFLAGS"
7564 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567
7568 int
7569 main ()
7570 {
7571
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 gl_cv_cc_uninitialized_supported=yes
7578 else
7579 gl_cv_cc_uninitialized_supported=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 CFLAGS="$gl_save_CFLAGS"
7583 fi
7584
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7586 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7587
7588 fi
7589
7590 # List all gcc warning categories.
7591 gl_manywarn_set=
7592 for gl_manywarn_item in \
7593 -W \
7594 -Wabi \
7595 -Waddress \
7596 -Wall \
7597 -Warray-bounds \
7598 -Wattributes \
7599 -Wbad-function-cast \
7600 -Wbuiltin-macro-redefined \
7601 -Wcast-align \
7602 -Wchar-subscripts \
7603 -Wclobbered \
7604 -Wcomment \
7605 -Wcomments \
7606 -Wcoverage-mismatch \
7607 -Wcpp \
7608 -Wdeprecated \
7609 -Wdeprecated-declarations \
7610 -Wdisabled-optimization \
7611 -Wdiv-by-zero \
7612 -Wdouble-promotion \
7613 -Wempty-body \
7614 -Wendif-labels \
7615 -Wenum-compare \
7616 -Wextra \
7617 -Wformat-contains-nul \
7618 -Wformat-extra-args \
7619 -Wformat-nonliteral \
7620 -Wformat-security \
7621 -Wformat-y2k \
7622 -Wformat-zero-length \
7623 -Wformat=2 \
7624 -Wfree-nonheap-object \
7625 -Wignored-qualifiers \
7626 -Wimplicit \
7627 -Wimplicit-function-declaration \
7628 -Wimplicit-int \
7629 -Winit-self \
7630 -Winline \
7631 -Wint-to-pointer-cast \
7632 -Winvalid-memory-model \
7633 -Winvalid-pch \
7634 -Wjump-misses-init \
7635 -Wlogical-op \
7636 -Wmain \
7637 -Wmaybe-uninitialized \
7638 -Wmissing-braces \
7639 -Wmissing-declarations \
7640 -Wmissing-field-initializers \
7641 -Wmissing-format-attribute \
7642 -Wmissing-include-dirs \
7643 -Wmissing-noreturn \
7644 -Wmissing-parameter-type \
7645 -Wmissing-prototypes \
7646 -Wmudflap \
7647 -Wmultichar \
7648 -Wnarrowing \
7649 -Wnested-externs \
7650 -Wnonnull \
7651 -Wnormalized=nfc \
7652 -Wold-style-declaration \
7653 -Wold-style-definition \
7654 -Woverflow \
7655 -Woverlength-strings \
7656 -Woverride-init \
7657 -Wpacked \
7658 -Wpacked-bitfield-compat \
7659 -Wparentheses \
7660 -Wpointer-arith \
7661 -Wpointer-sign \
7662 -Wpointer-to-int-cast \
7663 -Wpragmas \
7664 -Wreturn-type \
7665 -Wsequence-point \
7666 -Wshadow \
7667 -Wsizeof-pointer-memaccess \
7668 -Wstack-protector \
7669 -Wstrict-aliasing \
7670 -Wstrict-overflow \
7671 -Wstrict-prototypes \
7672 -Wsuggest-attribute=const \
7673 -Wsuggest-attribute=format \
7674 -Wsuggest-attribute=noreturn \
7675 -Wsuggest-attribute=pure \
7676 -Wswitch \
7677 -Wswitch-default \
7678 -Wsync-nand \
7679 -Wsystem-headers \
7680 -Wtrampolines \
7681 -Wtrigraphs \
7682 -Wtype-limits \
7683 -Wuninitialized \
7684 -Wunknown-pragmas \
7685 -Wunreachable-code \
7686 -Wunsafe-loop-optimizations \
7687 -Wunused \
7688 -Wunused-but-set-parameter \
7689 -Wunused-but-set-variable \
7690 -Wunused-function \
7691 -Wunused-label \
7692 -Wunused-local-typedefs \
7693 -Wunused-macros \
7694 -Wunused-parameter \
7695 -Wunused-result \
7696 -Wunused-value \
7697 -Wunused-variable \
7698 -Wvarargs \
7699 -Wvariadic-macros \
7700 -Wvector-operation-performance \
7701 -Wvla \
7702 -Wvolatile-register-var \
7703 -Wwrite-strings \
7704 \
7705 ; do
7706 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7707 done
7708
7709 # Disable specific options as needed.
7710 if test "$gl_cv_cc_nomfi_needed" = yes; then
7711 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7712 fi
7713
7714 if test "$gl_cv_cc_uninitialized_supported" = no; then
7715 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7716 fi
7717
7718 ws=$gl_manywarn_set
7719
7720
7721 gl_warn_set=
7722 set x $ws; shift
7723 for gl_warn_item
7724 do
7725 case " $nw " in
7726 *" $gl_warn_item "*)
7727 ;;
7728 *)
7729 gl_warn_set="$gl_warn_set $gl_warn_item"
7730 ;;
7731 esac
7732 done
7733 ws=$gl_warn_set
7734
7735 for w in $ws; do
7736 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7738 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7739 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742
7743 gl_save_compiler_FLAGS="$CFLAGS"
7744 as_fn_append CFLAGS " $w"
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747
7748 int
7749 main ()
7750 {
7751
7752 ;
7753 return 0;
7754 }
7755 _ACEOF
7756 if ac_fn_c_try_compile "$LINENO"; then :
7757 eval "$as_gl_Warn=yes"
7758 else
7759 eval "$as_gl_Warn=no"
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 CFLAGS="$gl_save_compiler_FLAGS"
7763
7764 fi
7765 eval ac_res=\$$as_gl_Warn
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7767 $as_echo "$ac_res" >&6; }
7768 eval as_val=\$$as_gl_Warn
7769 if test "x$as_val" = x""yes; then :
7770 as_fn_append WARN_CFLAGS " $w"
7771 fi
7772
7773
7774 done
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7776 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7777 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780
7781 gl_save_compiler_FLAGS="$CFLAGS"
7782 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785
7786 int
7787 main ()
7788 {
7789
7790 ;
7791 return 0;
7792 }
7793 _ACEOF
7794 if ac_fn_c_try_compile "$LINENO"; then :
7795 gl_cv_warn_c__Wno_missing_field_initializers=yes
7796 else
7797 gl_cv_warn_c__Wno_missing_field_initializers=no
7798 fi
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 CFLAGS="$gl_save_compiler_FLAGS"
7801
7802 fi
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7804 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7805 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7806 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7807 fi
7808
7809 # We need this one
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7811 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7812 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815
7816 gl_save_compiler_FLAGS="$CFLAGS"
7817 as_fn_append CFLAGS " -Wno-sign-compare"
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820
7821 int
7822 main ()
7823 {
7824
7825 ;
7826 return 0;
7827 }
7828 _ACEOF
7829 if ac_fn_c_try_compile "$LINENO"; then :
7830 gl_cv_warn_c__Wno_sign_compare=yes
7831 else
7832 gl_cv_warn_c__Wno_sign_compare=no
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 CFLAGS="$gl_save_compiler_FLAGS"
7836
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7839 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7840 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7841 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7842 fi
7843
7844 # Too many warnings for now
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7846 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7847 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850
7851 gl_save_compiler_FLAGS="$CFLAGS"
7852 as_fn_append CFLAGS " -Wno-type-limits"
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855
7856 int
7857 main ()
7858 {
7859
7860 ;
7861 return 0;
7862 }
7863 _ACEOF
7864 if ac_fn_c_try_compile "$LINENO"; then :
7865 gl_cv_warn_c__Wno_type_limits=yes
7866 else
7867 gl_cv_warn_c__Wno_type_limits=no
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870 CFLAGS="$gl_save_compiler_FLAGS"
7871
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7874 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7875 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7876 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7877 fi
7878
7879 # Too many warnings for now
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7881 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7882 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885
7886 gl_save_compiler_FLAGS="$CFLAGS"
7887 as_fn_append CFLAGS " -Wno-switch"
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890
7891 int
7892 main ()
7893 {
7894
7895 ;
7896 return 0;
7897 }
7898 _ACEOF
7899 if ac_fn_c_try_compile "$LINENO"; then :
7900 gl_cv_warn_c__Wno_switch=yes
7901 else
7902 gl_cv_warn_c__Wno_switch=no
7903 fi
7904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905 CFLAGS="$gl_save_compiler_FLAGS"
7906
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7909 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7910 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7911 as_fn_append WARN_CFLAGS " -Wno-switch"
7912 fi
7913
7914 # Too many warnings for now
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7916 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7917 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920
7921 gl_save_compiler_FLAGS="$CFLAGS"
7922 as_fn_append CFLAGS " -Wno-unused-parameter"
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925
7926 int
7927 main ()
7928 {
7929
7930 ;
7931 return 0;
7932 }
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935 gl_cv_warn_c__Wno_unused_parameter=yes
7936 else
7937 gl_cv_warn_c__Wno_unused_parameter=no
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 CFLAGS="$gl_save_compiler_FLAGS"
7941
7942 fi
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7944 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7945 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7946 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7947 fi
7948
7949 # Too many warnings for now
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7951 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7952 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955
7956 gl_save_compiler_FLAGS="$CFLAGS"
7957 as_fn_append CFLAGS " -Wno-format-nonliteral"
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7960
7961 int
7962 main ()
7963 {
7964
7965 ;
7966 return 0;
7967 }
7968 _ACEOF
7969 if ac_fn_c_try_compile "$LINENO"; then :
7970 gl_cv_warn_c__Wno_format_nonliteral=yes
7971 else
7972 gl_cv_warn_c__Wno_format_nonliteral=no
7973 fi
7974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975 CFLAGS="$gl_save_compiler_FLAGS"
7976
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7979 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7980 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7981 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7982 fi
7983
7984
7985
7986 # In spite of excluding -Wlogical-op above, it is enabled, as of
7987 # gcc 4.5.0 20090517.
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7989 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7990 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993
7994 gl_save_compiler_FLAGS="$CFLAGS"
7995 as_fn_append CFLAGS " -Wno-logical-op"
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7998
7999 int
8000 main ()
8001 {
8002
8003 ;
8004 return 0;
8005 }
8006 _ACEOF
8007 if ac_fn_c_try_compile "$LINENO"; then :
8008 gl_cv_warn_c__Wno_logical_op=yes
8009 else
8010 gl_cv_warn_c__Wno_logical_op=no
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 CFLAGS="$gl_save_compiler_FLAGS"
8014
8015 fi
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8017 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8018 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8019 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8020 fi
8021
8022
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8025 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8026 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029
8030 gl_save_compiler_FLAGS="$CFLAGS"
8031 as_fn_append CFLAGS " -fdiagnostics-show-option"
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__fdiagnostics_show_option=yes
8045 else
8046 gl_cv_warn_c__fdiagnostics_show_option=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__fdiagnostics_show_option" >&5
8053 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8054 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8055 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8056 fi
8057
8058
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8060 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8061 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064
8065 gl_save_compiler_FLAGS="$CFLAGS"
8066 as_fn_append CFLAGS " -funit-at-a-time"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069
8070 int
8071 main ()
8072 {
8073
8074 ;
8075 return 0;
8076 }
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079 gl_cv_warn_c__funit_at_a_time=yes
8080 else
8081 gl_cv_warn_c__funit_at_a_time=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 CFLAGS="$gl_save_compiler_FLAGS"
8085
8086 fi
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8088 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8089 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8090 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8091 fi
8092
8093
8094
8095
8096 $as_echo "#define lint 1" >>confdefs.h
8097
8098
8099
8100 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8101
8102
8103 # We use a slightly smaller set of warning options for lib/.
8104 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8105 nw=
8106 nw="$nw -Wunused-macros"
8107
8108
8109 gl_warn_set=
8110 set x $WARN_CFLAGS; shift
8111 for gl_warn_item
8112 do
8113 case " $nw " in
8114 *" $gl_warn_item "*)
8115 ;;
8116 *)
8117 gl_warn_set="$gl_warn_set $gl_warn_item"
8118 ;;
8119 esac
8120 done
8121 GNULIB_WARN_CFLAGS=$gl_warn_set
8122
8123
8124 fi
8125
8126
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8129 $as_echo_n "checking whether ln -s works... " >&6; }
8130 LN_S=$as_ln_s
8131 if test "$LN_S" = "ln -s"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8133 $as_echo "yes" >&6; }
8134 else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8136 $as_echo "no, using $LN_S" >&6; }
8137 fi
8138
8139
8140 # Extract the first word of "install-info", so it can be a program name with args.
8141 set dummy install-info; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 case $INSTALL_INFO in
8148 [\\/]* | ?:[\\/]*)
8149 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8150 ;;
8151 *)
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8154 do
8155 IFS=$as_save_IFS
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 break 2
8162 fi
8163 done
8164 done
8165 IFS=$as_save_IFS
8166
8167 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8168 ;;
8169 esac
8170 fi
8171 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8172 if test -n "$INSTALL_INFO"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8174 $as_echo "$INSTALL_INFO" >&6; }
8175 else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8178 fi
8179
8180
8181 # Extract the first word of "gzip", so it can be a program name with args.
8182 set dummy gzip; ac_word=$2
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8184 $as_echo_n "checking for $ac_word... " >&6; }
8185 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 case $GZIP_PROG in
8189 [\\/]* | ?:[\\/]*)
8190 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8191 ;;
8192 *)
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8200 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 break 2
8203 fi
8204 done
8205 done
8206 IFS=$as_save_IFS
8207
8208 ;;
8209 esac
8210 fi
8211 GZIP_PROG=$ac_cv_path_GZIP_PROG
8212 if test -n "$GZIP_PROG"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8214 $as_echo "$GZIP_PROG" >&6; }
8215 else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8218 fi
8219
8220
8221
8222 if test $opsys = gnu-linux; then
8223 # Extract the first word of "paxctl", so it can be a program name with args.
8224 set dummy paxctl; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 case $PAXCTL in
8231 [\\/]* | ?:[\\/]*)
8232 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8233 ;;
8234 *)
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8237 do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 break 2
8245 fi
8246 done
8247 done
8248 IFS=$as_save_IFS
8249
8250 ;;
8251 esac
8252 fi
8253 PAXCTL=$ac_cv_path_PAXCTL
8254 if test -n "$PAXCTL"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8256 $as_echo "$PAXCTL" >&6; }
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8260 fi
8261
8262
8263 if test "X$PAXCTL" != X; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8265 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268
8269 int
8270 main ()
8271 {
8272
8273 ;
8274 return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_link "$LINENO"; then :
8278 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8279 $as_echo "yes" >&6; }
8280 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }; PAXCTL=""; fi
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext \
8284 conftest$ac_exeext conftest.$ac_ext
8285 fi
8286 fi
8287
8288 ## Need makeinfo >= 4.7 (?) to build the manuals.
8289 # Extract the first word of "makeinfo", so it can be a program name with args.
8290 set dummy makeinfo; ac_word=$2
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292 $as_echo_n "checking for $ac_word... " >&6; }
8293 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 case $MAKEINFO in
8297 [\\/]* | ?:[\\/]*)
8298 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8299 ;;
8300 *)
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8317 ;;
8318 esac
8319 fi
8320 MAKEINFO=$ac_cv_path_MAKEINFO
8321 if test -n "$MAKEINFO"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8323 $as_echo "$MAKEINFO" >&6; }
8324 else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329
8330 if test "$MAKEINFO" != "no"; then
8331 case `
8332 $MAKEINFO --version 2> /dev/null |
8333 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8334 ` in
8335 '') MAKEINFO=no;;
8336 esac
8337 fi
8338
8339 ## Makeinfo is unusual. For a released Emacs, the manuals are
8340 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8341 ## therefore in the category of "special tools" not normally required, which
8342 ## configure does not have to check for (eg autoconf itself).
8343 ## In a Bazaar checkout on the other hand, the manuals are not included.
8344 ## So makeinfo is a requirement to build from Bazaar, and configure
8345 ## should test for it as it does for any other build requirement.
8346 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8347 ## with pre-built manuals, from a Bazaar checkout.
8348 HAVE_MAKEINFO=yes
8349
8350 if test "$MAKEINFO" = "no"; then
8351 MAKEINFO=makeinfo
8352 if test "x${with_makeinfo}" = "xno"; then
8353 HAVE_MAKEINFO=no
8354 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8355 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8356 source tree does not seem to have pre-built manuals in the \`info' directory.
8357 Either install a suitable version of makeinfo, or re-run configure
8358 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8359 fi
8360 fi
8361
8362
8363 INFO_EXT=.info
8364 INFO_OPTS=--no-split
8365
8366
8367
8368
8369 if test x$GCC = xyes; then
8370 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8371 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8372 else
8373 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8374 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8375 fi
8376
8377
8378 late_LDFLAGS=$LDFLAGS
8379 if test x$GCC = xyes; then
8380 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8381 else
8382 LDFLAGS="$LDFLAGS -znocombreloc"
8383 fi
8384
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8386 $as_echo_n "checking for -znocombreloc... " >&6; }
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389
8390 int
8391 main ()
8392 {
8393
8394 ;
8395 return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_link "$LINENO"; then :
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8400 $as_echo "yes" >&6; }
8401 else
8402 LDFLAGS=$late_LDFLAGS
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext conftest.$ac_ext
8408
8409
8410 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8411 case "$opsys" in
8412 your-opsys-here) CANNOT_DUMP=yes ;;
8413 esac
8414
8415 test "$CANNOT_DUMP" = "yes" && \
8416
8417 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8418
8419
8420
8421
8422
8423 UNEXEC_OBJ=unexelf.o
8424 case "$opsys" in
8425 # MSDOS uses unexcoff.o
8426 # MSWindows uses unexw32.o
8427 aix4-2)
8428 UNEXEC_OBJ=unexaix.o
8429 ;;
8430 cygwin)
8431 UNEXEC_OBJ=unexcw.o
8432 ;;
8433 darwin)
8434 UNEXEC_OBJ=unexmacosx.o
8435 ;;
8436 hpux10-20 | hpux11)
8437 UNEXEC_OBJ=unexhp9k800.o
8438 ;;
8439 sol2-10)
8440 # Use the Solaris dldump() function, called from unexsol.c, to dump
8441 # emacs, instead of the generic ELF dump code found in unexelf.c.
8442 # The resulting binary has a complete symbol table, and is better
8443 # for debugging and other observability tools (debuggers, pstack, etc).
8444 #
8445 # If you encounter a problem using dldump(), please consider sending
8446 # a message to the OpenSolaris tools-linking mailing list:
8447 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8448 #
8449 # It is likely that dldump() works with older Solaris too, but this has
8450 # not been tested, so for now this change is for Solaris 10 or newer.
8451 UNEXEC_OBJ=unexsol.o
8452 ;;
8453 esac
8454
8455 LD_SWITCH_SYSTEM=
8456 case "$opsys" in
8457 freebsd)
8458 ## Let `ld' find image libs and similar things in /usr/local/lib.
8459 ## The system compiler, GCC, has apparently been modified to not
8460 ## look there, contrary to what a stock GCC would do.
8461 ### It's not our place to do this. See bug#10313#17.
8462 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8463 :
8464 ;;
8465
8466 gnu-linux)
8467 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8468 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8469 ;;
8470
8471 netbsd)
8472 ### It's not our place to do this. See bug#10313#17.
8473 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8474 :
8475 ;;
8476
8477 openbsd)
8478 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8479 ## otherwise Emacs dumps core on elf systems.
8480 LD_SWITCH_SYSTEM="-Z"
8481 ;;
8482 esac
8483
8484
8485 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8486
8487 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8488 ## which has not been defined yet. When this was handled with cpp,
8489 ## it was expanded to null when configure sourced the s/*.h file.
8490 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8491 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8492 ## (or somesuch), but because it is supposed to go at the _front_
8493 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8494 ## Compare with the gnu-linux case below, which added to the end
8495 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8496 ## LD_SWITCH_SYSTEM_TEMACS.
8497 case "$opsys" in
8498 netbsd|openbsd)
8499 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8500 esac
8501
8502
8503 C_SWITCH_MACHINE=
8504 case $canonical in
8505 alpha*)
8506 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8507 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8508
8509 fi
8510
8511 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8512 ## With ELF, make sure that all common symbols get allocated to in the
8513 ## data section. Otherwise, the dump of temacs may miss variables in
8514 ## the shared library that have been initialized. For example, with
8515 ## GNU libc, __malloc_initialized would normally be resolved to the
8516 ## shared library's .bss section, which is fatal.
8517 if test "x$GCC" = "xyes"; then
8518 C_SWITCH_MACHINE="-fno-common"
8519 else
8520 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8521 fi
8522 else
8523 UNEXEC_OBJ=unexalpha.o
8524 fi
8525 ;;
8526 esac
8527
8528
8529
8530
8531 C_SWITCH_SYSTEM=
8532 ## Some programs in src produce warnings saying certain subprograms
8533 ## are too complex and need a MAXMEM value greater than 2000 for
8534 ## additional optimization. --nils@exp-math.uni-essen.de
8535 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8536 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8537 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8538 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8539
8540
8541
8542 LIBS_SYSTEM=
8543 case "$opsys" in
8544 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8545 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8546
8547 freebsd) LIBS_SYSTEM="-lutil" ;;
8548
8549 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8550
8551 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8552
8553 ## Motif needs -lgen.
8554 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8555 esac
8556
8557
8558
8559 ### Make sure subsequent tests use flags consistent with the build flags.
8560
8561 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8562 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8563 else
8564 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8565 fi
8566
8567 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8568
8569 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8570
8571
8572
8573 LIB_MATH=-lm
8574 LIB_STANDARD=
8575 START_FILES=
8576 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8577
8578 case $opsys in
8579 cygwin )
8580 LIB_MATH=
8581 START_FILES='pre-crt0.o'
8582 ;;
8583 darwin )
8584 ## Adding -lm confuses the dynamic linker, so omit it.
8585 LIB_MATH=
8586 START_FILES='pre-crt0.o'
8587 ;;
8588 freebsd )
8589 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8590 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8591 SYSTEM_TYPE=berkeley-unix
8592 ;;
8593 gnu-linux | gnu-kfreebsd )
8594 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8595 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8596 ;;
8597 hpux10-20 | hpux11 )
8598 LIB_STANDARD=-lc
8599 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8600 ;;
8601 netbsd | openbsd )
8602 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8603 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8604 SYSTEM_TYPE=berkeley-unix
8605 ;;
8606
8607 sol2* | unixware )
8608 SYSTEM_TYPE=usg-unix-v
8609 ;;
8610
8611 esac
8612
8613
8614
8615
8616 cat >>confdefs.h <<_ACEOF
8617 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8618 _ACEOF
8619
8620
8621 crt_files=
8622
8623 for file in x $LIB_STANDARD $START_FILES; do
8624 case "$file" in
8625 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8626 esac
8627 done
8628
8629 if test "x$crt_files" != x; then
8630
8631 ## If user specified a crt-dir, use that unconditionally.
8632 crt_gcc=no
8633
8634 if test "X$CRT_DIR" = "X"; then
8635
8636 CRT_DIR=/usr/lib # default
8637
8638 case "$canonical" in
8639 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8640 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8641 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8642 ## For anything else (eg /usr/lib32), it is up the user to specify
8643 ## the location (bug#5655).
8644 ## Test for crtn.o, not just the directory, because sometimes the
8645 ## directory exists but does not have the relevant files (bug#1287).
8646 ## FIXME better to test for binary compatibility somehow.
8647 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8648 ;;
8649
8650 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8651 esac
8652
8653 case "$opsys" in
8654 hpux10-20) CRT_DIR=/lib ;;
8655 esac
8656
8657 test "x${GCC}" = xyes && crt_gcc=yes
8658
8659 fi # CRT_DIR = ""
8660
8661 crt_missing=
8662
8663 for file in $crt_files; do
8664
8665 ## If we're using gcc, try to determine it automatically by asking
8666 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8667 ## system-dependent default from above.]
8668 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8669
8670 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8671 case "$crt_file" in
8672 */*)
8673 CRT_DIR=`$as_dirname -- "$crt_file" ||
8674 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8675 X"$crt_file" : 'X\(//\)[^/]' \| \
8676 X"$crt_file" : 'X\(//\)$' \| \
8677 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8678 $as_echo X"$crt_file" |
8679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8680 s//\1/
8681 q
8682 }
8683 /^X\(\/\/\)[^/].*/{
8684 s//\1/
8685 q
8686 }
8687 /^X\(\/\/\)$/{
8688 s//\1/
8689 q
8690 }
8691 /^X\(\/\).*/{
8692 s//\1/
8693 q
8694 }
8695 s/.*/./; q'`
8696 ;;
8697 esac
8698 fi
8699
8700 crt_gcc=no
8701
8702 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8703 done # $crt_files
8704
8705 test "x$crt_missing" = x || \
8706 as_fn_error "Required file(s) not found:$crt_missing
8707 Try using the --with-crt-dir option." "$LINENO" 5
8708
8709 fi # crt_files != ""
8710
8711
8712
8713 case $opsys in
8714 netbsd | openbsd )
8715 if test -f $CRT_DIR/crti.o; then
8716
8717 test -f $CRT_DIR/crtn.o || \
8718 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8719
8720 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8721 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8722 fi
8723 ;;
8724 esac
8725
8726
8727 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8728 pre_PKG_CONFIG_LIBS=$LIBS
8729
8730 # Extract the first word of "pkg-config", so it can be a program name with args.
8731 set dummy pkg-config; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 case $PKG_CONFIG in
8738 [\\/]* | ?:[\\/]*)
8739 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8740 ;;
8741 *)
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8744 do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8752 fi
8753 done
8754 done
8755 IFS=$as_save_IFS
8756
8757 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8758 ;;
8759 esac
8760 fi
8761 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8762 if test -n "$PKG_CONFIG"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8764 $as_echo "$PKG_CONFIG" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8768 fi
8769
8770
8771
8772
8773
8774
8775 if test "${with_sound}" != "no"; then
8776 # Sound support for GNU/Linux and the free BSDs.
8777 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8778 do :
8779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8780 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8781 eval as_val=\$$as_ac_Header
8782 if test "x$as_val" = x""yes; then :
8783 cat >>confdefs.h <<_ACEOF
8784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8785 _ACEOF
8786 have_sound_header=yes
8787 fi
8788
8789 done
8790
8791 # Emulation library used on NetBSD.
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8793 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8794 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 ac_check_lib_save_LIBS=$LIBS
8798 LIBS="-lossaudio $LIBS"
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801
8802 /* Override any GCC internal prototype to avoid an error.
8803 Use char because int might match the return type of a GCC
8804 builtin and then its argument prototype would still apply. */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 char _oss_ioctl ();
8809 int
8810 main ()
8811 {
8812 return _oss_ioctl ();
8813 ;
8814 return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818 ac_cv_lib_ossaudio__oss_ioctl=yes
8819 else
8820 ac_cv_lib_ossaudio__oss_ioctl=no
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8827 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8828 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8829 LIBSOUND=-lossaudio
8830 else
8831 LIBSOUND=
8832 fi
8833
8834
8835
8836 ALSA_REQUIRED=1.0.0
8837 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8838
8839 succeeded=no
8840
8841 if test "$PKG_CONFIG" = "no" ; then
8842 HAVE_ALSA=no
8843 else
8844 PKG_CONFIG_MIN_VERSION=0.9.0
8845 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8847 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8848
8849 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8850 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8851 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8852 edit_cflags="
8853 s,///*,/,g
8854 s/^/ /
8855 s/ -I/ $isystem/g
8856 s/^ //
8857 "
8858 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8859 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8861 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8862 succeeded=yes
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 ALSA_CFLAGS=""
8867 ALSA_LIBS=""
8868 ## If we have a custom action on failure, don't print errors, but
8869 ## do set a variable so people can do so. Do it in a subshell
8870 ## to capture any diagnostics in invoking pkg-config.
8871 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8872
8873 fi
8874
8875
8876
8877 else
8878 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8879 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8880 fi
8881 fi
8882
8883 if test $succeeded = yes; then
8884 HAVE_ALSA=yes
8885 else
8886 HAVE_ALSA=no
8887 fi
8888
8889 if test $HAVE_ALSA = yes; then
8890 SAVE_CFLAGS="$CFLAGS"
8891 SAVE_LIBS="$LIBS"
8892 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8893 LIBS="$ALSA_LIBS $LIBS"
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 #include <asoundlib.h>
8897 int
8898 main ()
8899 {
8900 snd_lib_error_set_handler (0);
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 if ac_fn_c_try_compile "$LINENO"; then :
8906 emacs_alsa_normal=yes
8907 else
8908 emacs_alsa_normal=no
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 if test "$emacs_alsa_normal" != yes; then
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <alsa/asoundlib.h>
8915 int
8916 main ()
8917 {
8918 snd_lib_error_set_handler (0);
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_compile "$LINENO"; then :
8924 emacs_alsa_subdir=yes
8925 else
8926 emacs_alsa_subdir=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929 if test "$emacs_alsa_subdir" != yes; then
8930 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8931 fi
8932 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8933 fi
8934
8935 CFLAGS="$SAVE_CFLAGS"
8936 LIBS="$SAVE_LIBS"
8937 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8938 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8939
8940 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8941
8942 fi
8943
8944 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8945 case "$opsys" in
8946 gnu-linux|freebsd|netbsd)
8947
8948 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8949
8950 ;;
8951 esac
8952 fi
8953
8954
8955 fi
8956
8957
8958
8959
8960 for ac_header in $ac_header_list
8961 do :
8962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8964 "
8965 eval as_val=\$$as_ac_Header
8966 if test "x$as_val" = x""yes; then :
8967 cat >>confdefs.h <<_ACEOF
8968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969 _ACEOF
8970
8971 fi
8972
8973 done
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8998 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9001 #include <sys/personality.h>
9002 int
9003 main ()
9004 {
9005 personality (PER_LINUX32)
9006 ;
9007 return 0;
9008 }
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"; then :
9011 emacs_cv_personality_linux32=yes
9012 else
9013 emacs_cv_personality_linux32=no
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9017 $as_echo "$emacs_cv_personality_linux32" >&6; }
9018
9019 if test $emacs_cv_personality_linux32 = yes; then
9020
9021 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9022
9023 fi
9024
9025 for ac_header in term.h
9026 do :
9027 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9028 if test "x$ac_cv_header_term_h" = x""yes; then :
9029 cat >>confdefs.h <<_ACEOF
9030 #define HAVE_TERM_H 1
9031 _ACEOF
9032
9033 fi
9034
9035 done
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9038 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9039 if test "${ac_cv_header_time+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 #include <sys/types.h>
9045 #include <sys/time.h>
9046 #include <time.h>
9047
9048 int
9049 main ()
9050 {
9051 if ((struct tm *) 0)
9052 return 0;
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_compile "$LINENO"; then :
9058 ac_cv_header_time=yes
9059 else
9060 ac_cv_header_time=no
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9065 $as_echo "$ac_cv_header_time" >&6; }
9066 if test $ac_cv_header_time = yes; then
9067
9068 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9069
9070 fi
9071
9072 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9073
9074 "
9075 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9076 ac_have_decl=1
9077 else
9078 ac_have_decl=0
9079 fi
9080
9081 cat >>confdefs.h <<_ACEOF
9082 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9083 _ACEOF
9084
9085 if test $ac_cv_have_decl_sys_siglist != yes; then
9086 # For Tru64, at least:
9087 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9088
9089 "
9090 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9091 ac_have_decl=1
9092 else
9093 ac_have_decl=0
9094 fi
9095
9096 cat >>confdefs.h <<_ACEOF
9097 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9098 _ACEOF
9099
9100 if test $ac_cv_have_decl___sys_siglist = yes; then
9101
9102 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9103
9104 fi
9105 fi
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9107 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9108 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 #include <sys/types.h>
9114 #include <sys/wait.h>
9115 #ifndef WEXITSTATUS
9116 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9117 #endif
9118 #ifndef WIFEXITED
9119 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9120 #endif
9121
9122 int
9123 main ()
9124 {
9125 int s;
9126 wait (&s);
9127 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9128 ;
9129 return 0;
9130 }
9131 _ACEOF
9132 if ac_fn_c_try_compile "$LINENO"; then :
9133 ac_cv_header_sys_wait_h=yes
9134 else
9135 ac_cv_header_sys_wait_h=no
9136 fi
9137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9140 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9141 if test $ac_cv_header_sys_wait_h = yes; then
9142
9143 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9144
9145 fi
9146
9147
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9149 $as_echo_n "checking for speed_t... " >&6; }
9150 if test "${emacs_cv_speed_t+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #include <termios.h>
9156 int
9157 main ()
9158 {
9159 speed_t x = 1;
9160 ;
9161 return 0;
9162 }
9163 _ACEOF
9164 if ac_fn_c_try_compile "$LINENO"; then :
9165 emacs_cv_speed_t=yes
9166 else
9167 emacs_cv_speed_t=no
9168 fi
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 fi
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9172 $as_echo "$emacs_cv_speed_t" >&6; }
9173 if test $emacs_cv_speed_t = yes; then
9174
9175 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9176
9177 fi
9178
9179
9180
9181
9182 for ac_header in net/if.h
9183 do :
9184 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9185 #if HAVE_SYS_SOCKET_H
9186 #include <sys/socket.h>
9187 #endif
9188 "
9189 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9190 cat >>confdefs.h <<_ACEOF
9191 #define HAVE_NET_IF_H 1
9192 _ACEOF
9193
9194 fi
9195
9196 done
9197
9198 for ac_header in ifaddrs.h
9199 do :
9200 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9201 #if HAVE_SYS_SOCKET_H
9202 #include <sys/socket.h>
9203 #endif
9204 "
9205 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_IFADDRS_H 1
9208 _ACEOF
9209
9210 fi
9211
9212 done
9213
9214 for ac_header in net/if_dl.h
9215 do :
9216 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9217 #if HAVE_SYS_SOCKET_H
9218 #include <sys/socket.h>
9219 #endif
9220 "
9221 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9222 cat >>confdefs.h <<_ACEOF
9223 #define HAVE_NET_IF_DL_H 1
9224 _ACEOF
9225
9226 fi
9227
9228 done
9229
9230
9231 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9232 #if HAVE_SYS_SOCKET_H
9233 #include <sys/socket.h>
9234 #endif
9235 #if HAVE_NET_IF_H
9236 #include <net/if.h>
9237 #endif
9238 "
9239 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9240
9241 cat >>confdefs.h <<_ACEOF
9242 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9243 _ACEOF
9244
9245
9246 fi
9247 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9248 #if HAVE_SYS_SOCKET_H
9249 #include <sys/socket.h>
9250 #endif
9251 #if HAVE_NET_IF_H
9252 #include <net/if.h>
9253 #endif
9254 "
9255 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9256
9257 cat >>confdefs.h <<_ACEOF
9258 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9259 _ACEOF
9260
9261
9262 fi
9263 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9264 #if HAVE_SYS_SOCKET_H
9265 #include <sys/socket.h>
9266 #endif
9267 #if HAVE_NET_IF_H
9268 #include <net/if.h>
9269 #endif
9270 "
9271 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9272
9273 cat >>confdefs.h <<_ACEOF
9274 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9275 _ACEOF
9276
9277
9278 fi
9279 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9280 #if HAVE_SYS_SOCKET_H
9281 #include <sys/socket.h>
9282 #endif
9283 #if HAVE_NET_IF_H
9284 #include <net/if.h>
9285 #endif
9286 "
9287 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9288
9289 cat >>confdefs.h <<_ACEOF
9290 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9291 _ACEOF
9292
9293
9294 fi
9295 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9296 #if HAVE_SYS_SOCKET_H
9297 #include <sys/socket.h>
9298 #endif
9299 #if HAVE_NET_IF_H
9300 #include <net/if.h>
9301 #endif
9302 "
9303 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9304
9305 cat >>confdefs.h <<_ACEOF
9306 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9307 _ACEOF
9308
9309
9310 fi
9311 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9312 #if HAVE_SYS_SOCKET_H
9313 #include <sys/socket.h>
9314 #endif
9315 #if HAVE_NET_IF_H
9316 #include <net/if.h>
9317 #endif
9318 "
9319 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9320
9321 cat >>confdefs.h <<_ACEOF
9322 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9323 _ACEOF
9324
9325
9326 fi
9327
9328
9329
9330
9331 DEPFLAGS=
9332 MKDEPDIR=":"
9333 deps_frag=deps.mk
9334 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9336 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9337 HAVE_GNU_MAKE=no
9338 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9339 if test "x$testval" != x; then
9340 HAVE_GNU_MAKE=yes
9341 else
9342 ac_enable_autodepend=no
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9345 $as_echo "$HAVE_GNU_MAKE" >&6; }
9346 if test $HAVE_GNU_MAKE = yes; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9348 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9349 SAVE_CFLAGS="$CFLAGS"
9350 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353
9354 int
9355 main ()
9356 {
9357
9358 ;
9359 return 0;
9360 }
9361 _ACEOF
9362 if ac_fn_c_try_compile "$LINENO"; then :
9363
9364 else
9365 ac_enable_autodepend=no
9366 fi
9367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9368 CFLAGS="$SAVE_CFLAGS"
9369 test -f deps.d || ac_enable_autodepend=no
9370 rm -rf deps.d
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9372 $as_echo "$ac_enable_autodepend" >&6; }
9373 fi
9374 if test $ac_enable_autodepend = yes; then
9375 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9376 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9377 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9378 deps_frag=autodeps.mk
9379 fi
9380 fi
9381 deps_frag=$srcdir/src/$deps_frag
9382
9383
9384
9385
9386
9387 lisp_frag=$srcdir/src/lisp.mk
9388
9389
9390
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9392 $as_echo_n "checking for long file names... " >&6; }
9393 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 ac_cv_sys_long_file_names=yes
9397 # Test for long file names in all the places we know might matter:
9398 # . the current directory, where building will happen
9399 # $prefix/lib where we will be installing things
9400 # $exec_prefix/lib likewise
9401 # $TMPDIR if set, where it might want to write temporary files
9402 # /tmp where it might want to write temporary files
9403 # /var/tmp likewise
9404 # /usr/tmp likewise
9405 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9406 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9407 # in the usual case where exec_prefix is '${prefix}'.
9408 case $ac_dir in #(
9409 . | /* | ?:[\\/]*) ;; #(
9410 *) continue;;
9411 esac
9412 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9413 ac_xdir=$ac_dir/cf$$
9414 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9415 ac_tf1=$ac_xdir/conftest9012345
9416 ac_tf2=$ac_xdir/conftest9012346
9417 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9418 ac_cv_sys_long_file_names=no
9419 rm -f -r "$ac_xdir" 2>/dev/null
9420 test $ac_cv_sys_long_file_names = no && break
9421 done
9422 fi
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9424 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9425 if test $ac_cv_sys_long_file_names = yes; then
9426
9427 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9428
9429 fi
9430
9431
9432 #### Choose a window system.
9433
9434 ## We leave window_system equal to none if
9435 ## we end up building without one. Any new window system should
9436 ## set window_system to an appropriate value and add objects to
9437 ## window-system-specific substs.
9438
9439 window_system=none
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9441 $as_echo_n "checking for X... " >&6; }
9442
9443
9444 # Check whether --with-x was given.
9445 if test "${with_x+set}" = set; then :
9446 withval=$with_x;
9447 fi
9448
9449 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9450 if test "x$with_x" = xno; then
9451 # The user explicitly disabled X.
9452 have_x=disabled
9453 else
9454 case $x_includes,$x_libraries in #(
9455 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9456 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 # One or both of the vars are not set, and there is no cached value.
9460 ac_x_includes=no ac_x_libraries=no
9461 rm -f -r conftest.dir
9462 if mkdir conftest.dir; then
9463 cd conftest.dir
9464 cat >Imakefile <<'_ACEOF'
9465 incroot:
9466 @echo incroot='${INCROOT}'
9467 usrlibdir:
9468 @echo usrlibdir='${USRLIBDIR}'
9469 libdir:
9470 @echo libdir='${LIBDIR}'
9471 _ACEOF
9472 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9473 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9474 for ac_var in incroot usrlibdir libdir; do
9475 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9476 done
9477 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9478 for ac_extension in a so sl dylib la dll; do
9479 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9480 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9481 ac_im_usrlibdir=$ac_im_libdir; break
9482 fi
9483 done
9484 # Screen out bogus values from the imake configuration. They are
9485 # bogus both because they are the default anyway, and because
9486 # using them would break gcc on systems where it needs fixed includes.
9487 case $ac_im_incroot in
9488 /usr/include) ac_x_includes= ;;
9489 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9490 esac
9491 case $ac_im_usrlibdir in
9492 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9493 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9494 esac
9495 fi
9496 cd ..
9497 rm -f -r conftest.dir
9498 fi
9499
9500 # Standard set of common directories for X headers.
9501 # Check X11 before X11Rn because it is often a symlink to the current release.
9502 ac_x_header_dirs='
9503 /usr/X11/include
9504 /usr/X11R7/include
9505 /usr/X11R6/include
9506 /usr/X11R5/include
9507 /usr/X11R4/include
9508
9509 /usr/include/X11
9510 /usr/include/X11R7
9511 /usr/include/X11R6
9512 /usr/include/X11R5
9513 /usr/include/X11R4
9514
9515 /usr/local/X11/include
9516 /usr/local/X11R7/include
9517 /usr/local/X11R6/include
9518 /usr/local/X11R5/include
9519 /usr/local/X11R4/include
9520
9521 /usr/local/include/X11
9522 /usr/local/include/X11R7
9523 /usr/local/include/X11R6
9524 /usr/local/include/X11R5
9525 /usr/local/include/X11R4
9526
9527 /usr/X386/include
9528 /usr/x386/include
9529 /usr/XFree86/include/X11
9530
9531 /usr/include
9532 /usr/local/include
9533 /usr/unsupported/include
9534 /usr/athena/include
9535 /usr/local/x11r5/include
9536 /usr/lpp/Xamples/include
9537
9538 /usr/openwin/include
9539 /usr/openwin/share/include'
9540
9541 if test "$ac_x_includes" = no; then
9542 # Guess where to find include files, by looking for Xlib.h.
9543 # First, try using that file with no special directory specified.
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546 #include <X11/Xlib.h>
9547 _ACEOF
9548 if ac_fn_c_try_cpp "$LINENO"; then :
9549 # We can compile using X headers with no special include directory.
9550 ac_x_includes=
9551 else
9552 for ac_dir in $ac_x_header_dirs; do
9553 if test -r "$ac_dir/X11/Xlib.h"; then
9554 ac_x_includes=$ac_dir
9555 break
9556 fi
9557 done
9558 fi
9559 rm -f conftest.err conftest.$ac_ext
9560 fi # $ac_x_includes = no
9561
9562 if test "$ac_x_libraries" = no; then
9563 # Check for the libraries.
9564 # See if we find them without any special options.
9565 # Don't add to $LIBS permanently.
9566 ac_save_LIBS=$LIBS
9567 LIBS="-lX11 $LIBS"
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 #include <X11/Xlib.h>
9571 int
9572 main ()
9573 {
9574 XrmInitialize ()
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 if ac_fn_c_try_link "$LINENO"; then :
9580 LIBS=$ac_save_LIBS
9581 # We can link X programs with no special library path.
9582 ac_x_libraries=
9583 else
9584 LIBS=$ac_save_LIBS
9585 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9586 do
9587 # Don't even attempt the hair of trying to link an X program!
9588 for ac_extension in a so sl dylib la dll; do
9589 if test -r "$ac_dir/libX11.$ac_extension"; then
9590 ac_x_libraries=$ac_dir
9591 break 2
9592 fi
9593 done
9594 done
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9598 fi # $ac_x_libraries = no
9599
9600 case $ac_x_includes,$ac_x_libraries in #(
9601 no,* | *,no | *\'*)
9602 # Didn't find X, or a directory has "'" in its name.
9603 ac_cv_have_x="have_x=no";; #(
9604 *)
9605 # Record where we found X for the cache.
9606 ac_cv_have_x="have_x=yes\
9607 ac_x_includes='$ac_x_includes'\
9608 ac_x_libraries='$ac_x_libraries'"
9609 esac
9610 fi
9611 ;; #(
9612 *) have_x=yes;;
9613 esac
9614 eval "$ac_cv_have_x"
9615 fi # $with_x != no
9616
9617 if test "$have_x" != yes; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9619 $as_echo "$have_x" >&6; }
9620 no_x=yes
9621 else
9622 # If each of the values was on the command line, it overrides each guess.
9623 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9624 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9625 # Update the cache value to reflect the command line values.
9626 ac_cv_have_x="have_x=yes\
9627 ac_x_includes='$x_includes'\
9628 ac_x_libraries='$x_libraries'"
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9630 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9631 fi
9632
9633 if test "$no_x" != yes; then
9634 window_system=x11
9635 fi
9636
9637 LD_SWITCH_X_SITE_RPATH=
9638 if test "${x_libraries}" != NONE; then
9639 if test -n "${x_libraries}"; then
9640 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9641 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9642 fi
9643 x_default_search_path=""
9644 x_search_path=${x_libraries}
9645 if test -z "${x_search_path}"; then
9646 x_search_path=/usr/lib
9647 fi
9648 for x_library in `echo ${x_search_path}: | \
9649 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9650 x_search_path="\
9651 ${x_library}/X11/%L/%T/%N%C%S:\
9652 ${x_library}/X11/%l/%T/%N%C%S:\
9653 ${x_library}/X11/%T/%N%C%S:\
9654 ${x_library}/X11/%L/%T/%N%S:\
9655 ${x_library}/X11/%l/%T/%N%S:\
9656 ${x_library}/X11/%T/%N%S"
9657 if test x"${x_default_search_path}" = x; then
9658 x_default_search_path=${x_search_path}
9659 else
9660 x_default_search_path="${x_search_path}:${x_default_search_path}"
9661 fi
9662 done
9663 fi
9664
9665
9666 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9667 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9668 fi
9669
9670 if test x"${x_includes}" = x; then
9671 bitmapdir=/usr/include/X11/bitmaps
9672 else
9673 # accumulate include directories that have X11 bitmap subdirectories
9674 bmd_acc="dummyval"
9675 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9676 if test -d "${bmd}/X11/bitmaps"; then
9677 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9678 fi
9679 if test -d "${bmd}/bitmaps"; then
9680 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9681 fi
9682 done
9683 if test ${bmd_acc} != "dummyval"; then
9684 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9685 fi
9686 fi
9687
9688 HAVE_NS=no
9689 NS_IMPL_COCOA=no
9690 NS_IMPL_GNUSTEP=no
9691 tmp_CPPFLAGS="$CPPFLAGS"
9692 tmp_CFLAGS="$CFLAGS"
9693 CPPFLAGS="$CPPFLAGS -x objective-c"
9694 CFLAGS="$CFLAGS -x objective-c"
9695 GNU_OBJC_CFLAGS=
9696 LIBS_GNUSTEP=
9697 if test "${with_ns}" != no; then
9698 if test "${opsys}" = darwin; then
9699 NS_IMPL_COCOA=yes
9700 ns_appdir=`pwd`/nextstep/Emacs.app
9701 ns_appbindir=${ns_appdir}/Contents/MacOS
9702 ns_appresdir=${ns_appdir}/Contents/Resources
9703 ns_appsrc=Cocoa/Emacs.base
9704 elif test -f $GNUSTEP_CONFIG_FILE; then
9705 NS_IMPL_GNUSTEP=yes
9706 ns_appdir=`pwd`/nextstep/Emacs.app
9707 ns_appbindir=${ns_appdir}
9708 ns_appresdir=${ns_appdir}/Resources
9709 ns_appsrc=GNUstep/Emacs.base
9710 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9711 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9712 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9713 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9714 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9715 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9716 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9717 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9718 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9719 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9720 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9721 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9722 LIB_STANDARD=
9723 START_FILES=
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9725 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9726 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9731 #include <GNUstepBase/GSConfig.h>
9732 int
9733 main ()
9734 {
9735 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9736 1;
9737 #else
9738 fail;
9739 #endif
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 if ac_fn_c_try_compile "$LINENO"; then :
9745 emacs_cv_objc_exceptions=yes
9746 else
9747 emacs_cv_objc_exceptions=no
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9750 fi
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9752 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9753 if test $emacs_cv_objc_exceptions = yes; then
9754
9755 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9756
9757 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9758 fi
9759 fi
9760
9761 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9762
9763 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9764 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9765 HAVE_NS=yes
9766 else
9767 as_fn_error "\`--with-ns' was specified, but the include
9768 files are missing or cannot be compiled." "$LINENO" 5
9769 fi
9770
9771
9772
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 #include <AppKit/AppKit.h>
9776 int
9777 main ()
9778 {
9779
9780 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9781 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9782 ; /* OK */
9783 #else
9784 #error "OSX 10.4 or newer required"
9785 #endif
9786 #endif
9787
9788 ;
9789 return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_compile "$LINENO"; then :
9793 ns_osx_have_104=yes
9794 else
9795 ns_osx_have_104=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 #include <Foundation/NSObjCRuntime.h>
9801 int
9802 main ()
9803 {
9804 NSInteger i;
9805 ;
9806 return 0;
9807 }
9808 _ACEOF
9809 if ac_fn_c_try_compile "$LINENO"; then :
9810 ns_have_nsinteger=yes
9811 else
9812 ns_have_nsinteger=no
9813 fi
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 if test $ns_osx_have_104 = no; then
9816 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9817 fi
9818 if test $ns_have_nsinteger = yes; then
9819
9820 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9821
9822 fi
9823 fi
9824
9825
9826
9827 INSTALL_ARCH_INDEP_EXTRA=install-etc
9828 ns_self_contained=no
9829 NS_OBJ=
9830 NS_OBJC_OBJ=
9831 if test "${HAVE_NS}" = yes; then
9832 if test "$with_toolkit_scroll_bars" = "no"; then
9833 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9834 fi
9835
9836 window_system=nextstep
9837 # set up packaging dirs
9838 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9839 ns_self_contained=yes
9840 prefix=${ns_appresdir}
9841 exec_prefix=${ns_appbindir}
9842 libexecdir="\${ns_appbindir}/libexec"
9843 archlibdir="\${ns_appbindir}/libexec"
9844 docdir="\${ns_appresdir}/etc"
9845 etcdir="\${ns_appresdir}/etc"
9846 infodir="\${ns_appresdir}/info"
9847 mandir="\${ns_appresdir}/man"
9848 lispdir="\${ns_appresdir}/lisp"
9849 leimdir="\${ns_appresdir}/leim"
9850 INSTALL_ARCH_INDEP_EXTRA=
9851 fi
9852 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9853 fi
9854 CFLAGS="$tmp_CFLAGS"
9855 CPPFLAGS="$tmp_CPPFLAGS"
9856
9857
9858
9859
9860
9861
9862 HAVE_W32=no
9863 W32_OBJ=
9864 W32_LIBS=
9865 W32_RES=
9866 W32_RES_LINK=
9867 if test "${with_w32}" != no; then
9868 if test "${opsys}" != "cygwin"; then
9869 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9870 fi
9871 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9872 if test "x$ac_cv_header_windows_h" = x""yes; then :
9873 HAVE_W32=yes
9874 else
9875 as_fn_error "\`--with-w32' was specified, but windows.h
9876 cannot be found." "$LINENO" 5
9877 fi
9878
9879
9880
9881 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9882
9883 if test -n "$ac_tool_prefix"; then
9884 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9885 set dummy ${ac_tool_prefix}windres; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887 $as_echo_n "checking for $ac_word... " >&6; }
9888 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 if test -n "$WINDRES"; then
9892 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9893 else
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9896 do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9904 fi
9905 done
9906 done
9907 IFS=$as_save_IFS
9908
9909 fi
9910 fi
9911 WINDRES=$ac_cv_prog_WINDRES
9912 if test -n "$WINDRES"; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9914 $as_echo "$WINDRES" >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 $as_echo "no" >&6; }
9918 fi
9919
9920
9921 fi
9922 if test -z "$ac_cv_prog_WINDRES"; then
9923 ac_ct_WINDRES=$WINDRES
9924 # Extract the first word of "windres", so it can be a program name with args.
9925 set dummy windres; ac_word=$2
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 $as_echo_n "checking for $ac_word... " >&6; }
9928 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 if test -n "$ac_ct_WINDRES"; then
9932 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9933 else
9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 for as_dir in $PATH
9936 do
9937 IFS=$as_save_IFS
9938 test -z "$as_dir" && as_dir=.
9939 for ac_exec_ext in '' $ac_executable_extensions; do
9940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9941 ac_cv_prog_ac_ct_WINDRES="windres"
9942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 break 2
9944 fi
9945 done
9946 done
9947 IFS=$as_save_IFS
9948
9949 fi
9950 fi
9951 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9952 if test -n "$ac_ct_WINDRES"; then
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9954 $as_echo "$ac_ct_WINDRES" >&6; }
9955 else
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9957 $as_echo "no" >&6; }
9958 fi
9959
9960 if test "x$ac_ct_WINDRES" = x; then
9961 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9962 else
9963 case $cross_compiling:$ac_tool_warned in
9964 yes:)
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9967 ac_tool_warned=yes ;;
9968 esac
9969 WINDRES=$ac_ct_WINDRES
9970 fi
9971 else
9972 WINDRES="$ac_cv_prog_WINDRES"
9973 fi
9974
9975 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9976 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9977 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9978 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9979 W32_RES="emacs.res"
9980 # Tell the linker that emacs.res is an object (which we compile from
9981 # the rc file), not a linker script.
9982 W32_RES_LINK="-Wl,-bpe-i386 -Wl,emacs.res"
9983 fi
9984
9985
9986
9987
9988
9989 if test "${HAVE_W32}" = "yes"; then
9990 window_system=w32
9991 with_xft=no
9992 fi
9993
9994 ## $window_system is now set to the window system we will
9995 ## ultimately use.
9996
9997 term_header=
9998 HAVE_X_WINDOWS=no
9999 HAVE_X11=no
10000 USE_X_TOOLKIT=none
10001
10002 case "${window_system}" in
10003 x11 )
10004 HAVE_X_WINDOWS=yes
10005 HAVE_X11=yes
10006 term_header=xterm.h
10007 case "${with_x_toolkit}" in
10008 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10009 motif ) USE_X_TOOLKIT=MOTIF ;;
10010 gtk ) with_gtk=yes
10011 term_header=gtkutil.h
10012 USE_X_TOOLKIT=none ;;
10013 gtk2 ) with_gtk2=yes
10014 term_header=gtkutil.h
10015 USE_X_TOOLKIT=none ;;
10016 gtk3 ) with_gtk3=yes
10017 term_header=gtkutil.h
10018 USE_X_TOOLKIT=none ;;
10019 no ) USE_X_TOOLKIT=none ;;
10020 * ) USE_X_TOOLKIT=maybe ;;
10021 esac
10022 ;;
10023 nextstep )
10024 term_header=nsterm.h
10025 ;;
10026 w32 )
10027 term_header=w32term.h
10028 ;;
10029 esac
10030
10031 if test -n "${term_header}"; then
10032
10033 cat >>confdefs.h <<_ACEOF
10034 #define TERM_HEADER "${term_header}"
10035 _ACEOF
10036
10037 fi
10038
10039 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10040 # Extract the first word of "X", so it can be a program name with args.
10041 set dummy X; ac_word=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 if test -n "$HAVE_XSERVER"; then
10048 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10049 else
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10052 do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_prog_HAVE_XSERVER="true"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061 done
10062 done
10063 IFS=$as_save_IFS
10064
10065 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10066 fi
10067 fi
10068 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10069 if test -n "$HAVE_XSERVER"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10071 $as_echo "$HAVE_XSERVER" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10075 fi
10076
10077
10078 if test "$HAVE_XSERVER" = true ||
10079 test -n "$DISPLAY" ||
10080 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10081 as_fn_error "You seem to be running X, but no X development libraries
10082 were found. You should install the relevant development files for X
10083 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10084 sure you have development files for image handling, i.e.
10085 tiff, gif, jpeg, png and xpm.
10086 If you are sure you want Emacs compiled without X window support, pass
10087 --without-x
10088 to configure." "$LINENO" 5
10089 fi
10090 fi
10091
10092 ### If we're using X11, we should use the X menu package.
10093 HAVE_MENUS=no
10094 case ${HAVE_X11} in
10095 yes ) HAVE_MENUS=yes ;;
10096 esac
10097
10098 # Does the opsystem file prohibit the use of the GNU malloc?
10099 # Assume not, until told otherwise.
10100 GNU_MALLOC=yes
10101
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10103 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10104 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 #include <malloc.h>
10110 static void hook (void) {}
10111 int
10112 main ()
10113 {
10114 malloc_set_state (malloc_get_state ());
10115 __after_morecore_hook = hook;
10116 __malloc_initialize_hook = hook;
10117 ;
10118 return 0;
10119 }
10120 _ACEOF
10121 if ac_fn_c_try_link "$LINENO"; then :
10122 emacs_cv_var_doug_lea_malloc=yes
10123 else
10124 emacs_cv_var_doug_lea_malloc=no
10125 fi
10126 rm -f core conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10130 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10131 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10132
10133
10134 system_malloc=no
10135 case "$opsys" in
10136 ## darwin ld insists on the use of malloc routines in the System framework.
10137 darwin|sol2-10) system_malloc=yes ;;
10138 esac
10139
10140 if test "${system_malloc}" = "yes"; then
10141
10142 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10143
10144 GNU_MALLOC=no
10145 GNU_MALLOC_reason="
10146 (The GNU allocators don't work with this system configuration.)"
10147 GMALLOC_OBJ=
10148 VMLIMIT_OBJ=
10149 else
10150 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10151 VMLIMIT_OBJ=vm-limit.o
10152 fi
10153
10154
10155
10156 if test "$doug_lea_malloc" = "yes" ; then
10157 if test "$GNU_MALLOC" = yes ; then
10158 GNU_MALLOC_reason="
10159 (Using Doug Lea's new malloc from the GNU C Library.)"
10160 fi
10161
10162 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10163
10164
10165 ## Use mmap directly for allocating larger buffers.
10166 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10167 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10168 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10169 case "$opsys" in
10170 gnu*) REL_ALLOC=no ;;
10171 esac
10172 fi
10173
10174 if test x"${REL_ALLOC}" = x; then
10175 REL_ALLOC=${GNU_MALLOC}
10176 fi
10177
10178 use_mmap_for_buffers=no
10179 case "$opsys" in
10180 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10181 esac
10182
10183
10184
10185
10186
10187
10188
10189
10190 for ac_func in getpagesize
10191 do :
10192 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10193 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10194 cat >>confdefs.h <<_ACEOF
10195 #define HAVE_GETPAGESIZE 1
10196 _ACEOF
10197
10198 fi
10199 done
10200
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10202 $as_echo_n "checking for working mmap... " >&6; }
10203 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 if test "$cross_compiling" = yes; then :
10207 ac_cv_func_mmap_fixed_mapped=no
10208 else
10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10211 $ac_includes_default
10212 /* malloc might have been renamed as rpl_malloc. */
10213 #undef malloc
10214
10215 /* Thanks to Mike Haertel and Jim Avera for this test.
10216 Here is a matrix of mmap possibilities:
10217 mmap private not fixed
10218 mmap private fixed at somewhere currently unmapped
10219 mmap private fixed at somewhere already mapped
10220 mmap shared not fixed
10221 mmap shared fixed at somewhere currently unmapped
10222 mmap shared fixed at somewhere already mapped
10223 For private mappings, we should verify that changes cannot be read()
10224 back from the file, nor mmap's back from the file at a different
10225 address. (There have been systems where private was not correctly
10226 implemented like the infamous i386 svr4.0, and systems where the
10227 VM page cache was not coherent with the file system buffer cache
10228 like early versions of FreeBSD and possibly contemporary NetBSD.)
10229 For shared mappings, we should conversely verify that changes get
10230 propagated back to all the places they're supposed to be.
10231
10232 Grep wants private fixed already mapped.
10233 The main things grep needs to know about mmap are:
10234 * does it exist and is it safe to write into the mmap'd area
10235 * how to use it (BSD variants) */
10236
10237 #include <fcntl.h>
10238 #include <sys/mman.h>
10239
10240 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10241 char *malloc ();
10242 #endif
10243
10244 /* This mess was copied from the GNU getpagesize.h. */
10245 #ifndef HAVE_GETPAGESIZE
10246 # ifdef _SC_PAGESIZE
10247 # define getpagesize() sysconf(_SC_PAGESIZE)
10248 # else /* no _SC_PAGESIZE */
10249 # ifdef HAVE_SYS_PARAM_H
10250 # include <sys/param.h>
10251 # ifdef EXEC_PAGESIZE
10252 # define getpagesize() EXEC_PAGESIZE
10253 # else /* no EXEC_PAGESIZE */
10254 # ifdef NBPG
10255 # define getpagesize() NBPG * CLSIZE
10256 # ifndef CLSIZE
10257 # define CLSIZE 1
10258 # endif /* no CLSIZE */
10259 # else /* no NBPG */
10260 # ifdef NBPC
10261 # define getpagesize() NBPC
10262 # else /* no NBPC */
10263 # ifdef PAGESIZE
10264 # define getpagesize() PAGESIZE
10265 # endif /* PAGESIZE */
10266 # endif /* no NBPC */
10267 # endif /* no NBPG */
10268 # endif /* no EXEC_PAGESIZE */
10269 # else /* no HAVE_SYS_PARAM_H */
10270 # define getpagesize() 8192 /* punt totally */
10271 # endif /* no HAVE_SYS_PARAM_H */
10272 # endif /* no _SC_PAGESIZE */
10273
10274 #endif /* no HAVE_GETPAGESIZE */
10275
10276 int
10277 main ()
10278 {
10279 char *data, *data2, *data3;
10280 const char *cdata2;
10281 int i, pagesize;
10282 int fd, fd2;
10283
10284 pagesize = getpagesize ();
10285
10286 /* First, make a file with some known garbage in it. */
10287 data = (char *) malloc (pagesize);
10288 if (!data)
10289 return 1;
10290 for (i = 0; i < pagesize; ++i)
10291 *(data + i) = rand ();
10292 umask (0);
10293 fd = creat ("conftest.mmap", 0600);
10294 if (fd < 0)
10295 return 2;
10296 if (write (fd, data, pagesize) != pagesize)
10297 return 3;
10298 close (fd);
10299
10300 /* Next, check that the tail of a page is zero-filled. File must have
10301 non-zero length, otherwise we risk SIGBUS for entire page. */
10302 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10303 if (fd2 < 0)
10304 return 4;
10305 cdata2 = "";
10306 if (write (fd2, cdata2, 1) != 1)
10307 return 5;
10308 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10309 if (data2 == MAP_FAILED)
10310 return 6;
10311 for (i = 0; i < pagesize; ++i)
10312 if (*(data2 + i))
10313 return 7;
10314 close (fd2);
10315 if (munmap (data2, pagesize))
10316 return 8;
10317
10318 /* Next, try to mmap the file at a fixed address which already has
10319 something else allocated at it. If we can, also make sure that
10320 we see the same garbage. */
10321 fd = open ("conftest.mmap", O_RDWR);
10322 if (fd < 0)
10323 return 9;
10324 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10325 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10326 return 10;
10327 for (i = 0; i < pagesize; ++i)
10328 if (*(data + i) != *(data2 + i))
10329 return 11;
10330
10331 /* Finally, make sure that changes to the mapped area do not
10332 percolate back to the file as seen by read(). (This is a bug on
10333 some variants of i386 svr4.0.) */
10334 for (i = 0; i < pagesize; ++i)
10335 *(data2 + i) = *(data2 + i) + 1;
10336 data3 = (char *) malloc (pagesize);
10337 if (!data3)
10338 return 12;
10339 if (read (fd, data3, pagesize) != pagesize)
10340 return 13;
10341 for (i = 0; i < pagesize; ++i)
10342 if (*(data + i) != *(data3 + i))
10343 return 14;
10344 close (fd);
10345 return 0;
10346 }
10347 _ACEOF
10348 if ac_fn_c_try_run "$LINENO"; then :
10349 ac_cv_func_mmap_fixed_mapped=yes
10350 else
10351 ac_cv_func_mmap_fixed_mapped=no
10352 fi
10353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10354 conftest.$ac_objext conftest.beam conftest.$ac_ext
10355 fi
10356
10357 fi
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10359 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10360 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10361
10362 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10363
10364 fi
10365 rm -f conftest.mmap conftest.txt
10366
10367 if test $use_mmap_for_buffers = yes; then
10368
10369 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10370
10371 REL_ALLOC=no
10372 fi
10373
10374 LIBS="$LIBS_SYSTEM $LIBS"
10375
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10377 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10378 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 ac_check_lib_save_LIBS=$LIBS
10382 LIBS="-ldnet $LIBS"
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10385
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 char dnet_ntoa ();
10393 int
10394 main ()
10395 {
10396 return dnet_ntoa ();
10397 ;
10398 return 0;
10399 }
10400 _ACEOF
10401 if ac_fn_c_try_link "$LINENO"; then :
10402 ac_cv_lib_dnet_dnet_ntoa=yes
10403 else
10404 ac_cv_lib_dnet_dnet_ntoa=no
10405 fi
10406 rm -f core conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10408 LIBS=$ac_check_lib_save_LIBS
10409 fi
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10411 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10412 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10413 cat >>confdefs.h <<_ACEOF
10414 #define HAVE_LIBDNET 1
10415 _ACEOF
10416
10417 LIBS="-ldnet $LIBS"
10418
10419 fi
10420
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10423 $as_echo_n "checking for main in -lXbsd... " >&6; }
10424 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lXbsd $LIBS"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431
10432
10433 int
10434 main ()
10435 {
10436 return main ();
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 if ac_fn_c_try_link "$LINENO"; then :
10442 ac_cv_lib_Xbsd_main=yes
10443 else
10444 ac_cv_lib_Xbsd_main=no
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10449 fi
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10451 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10452 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10453 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10454 fi
10455
10456
10457 LIB_PTHREAD=
10458
10459
10460
10461 if test "$ac_cv_header_pthread_h"; then
10462 if test "$GMALLOC_OBJ" = gmalloc.o; then
10463 emacs_pthread_function=pthread_atfork
10464 else
10465 emacs_pthread_function=pthread_self
10466 fi
10467 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10469 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10470 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 ac_check_lib_save_LIBS=$LIBS
10474 LIBS="-lpthread $LIBS"
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477
10478 /* Override any GCC internal prototype to avoid an error.
10479 Use char because int might match the return type of a GCC
10480 builtin and then its argument prototype would still apply. */
10481 #ifdef __cplusplus
10482 extern "C"
10483 #endif
10484 char $emacs_pthread_function ();
10485 int
10486 main ()
10487 {
10488 return $emacs_pthread_function ();
10489 ;
10490 return 0;
10491 }
10492 _ACEOF
10493 if ac_fn_c_try_link "$LINENO"; then :
10494 eval "$as_ac_Lib=yes"
10495 else
10496 eval "$as_ac_Lib=no"
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext conftest.$ac_ext
10500 LIBS=$ac_check_lib_save_LIBS
10501 fi
10502 eval ac_res=\$$as_ac_Lib
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10504 $as_echo "$ac_res" >&6; }
10505 eval as_val=\$$as_ac_Lib
10506 if test "x$as_val" = x""yes; then :
10507 HAVE_PTHREAD=yes
10508 fi
10509
10510 fi
10511 if test "$HAVE_PTHREAD" = yes; then
10512 case "${canonical}" in
10513 *-hpux*) ;;
10514 *) LIB_PTHREAD="-lpthread"
10515 LIBS="$LIB_PTHREAD $LIBS" ;;
10516 esac
10517
10518 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10519
10520 fi
10521
10522
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10524 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10525 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 ac_check_lib_save_LIBS=$LIBS
10529 LIBS="-lpthreads $LIBS"
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char cma_open ();
10540 int
10541 main ()
10542 {
10543 return cma_open ();
10544 ;
10545 return 0;
10546 }
10547 _ACEOF
10548 if ac_fn_c_try_link "$LINENO"; then :
10549 ac_cv_lib_pthreads_cma_open=yes
10550 else
10551 ac_cv_lib_pthreads_cma_open=no
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10556 fi
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10558 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10559 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10560 cat >>confdefs.h <<_ACEOF
10561 #define HAVE_LIBPTHREADS 1
10562 _ACEOF
10563
10564 LIBS="-lpthreads $LIBS"
10565
10566 fi
10567
10568
10569 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10570 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10571 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10572 ## added to LIBS in configure would never contain the pthreads part,
10573 ## but the value used in Makefiles might. FIXME?
10574 ##
10575 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10576 ## be harmless on older versions of X where it happens to exist.
10577 test "$opsys" = "aix4-2" && \
10578 test $ac_cv_lib_pthreads_cma_open = yes && \
10579 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10580
10581
10582 case ${host_os} in
10583 aix*)
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10585 $as_echo_n "checking for -bbigtoc option... " >&6; }
10586 if test "${gdb_cv_bigtoc+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589
10590 case $GCC in
10591 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10592 *) gdb_cv_bigtoc=-bbigtoc ;;
10593 esac
10594
10595 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10598
10599 int
10600 main ()
10601 {
10602 int i;
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 if ac_fn_c_try_link "$LINENO"; then :
10608
10609 else
10610 gdb_cv_bigtoc=
10611 fi
10612 rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
10614
10615 fi
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10617 $as_echo "$gdb_cv_bigtoc" >&6; }
10618 ;;
10619 esac
10620
10621 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10622 # used for the tests that follow. We set them back to REAL_CFLAGS and
10623 # REAL_CPPFLAGS later on.
10624
10625 REAL_CFLAGS="$CFLAGS"
10626 REAL_CPPFLAGS="$CPPFLAGS"
10627
10628 if test "${HAVE_X11}" = "yes"; then
10629 DEFS="$C_SWITCH_X_SITE $DEFS"
10630 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10631 LIBS="-lX11 $LIBS"
10632 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10633 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10634
10635 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10636 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10637 # but it's more convenient here to set LD_RUN_PATH since this
10638 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10639 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10640 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10641 export LD_RUN_PATH
10642 fi
10643
10644 if test "${opsys}" = "gnu-linux"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10646 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649
10650 int
10651 main ()
10652 {
10653 XOpenDisplay ("foo");
10654 ;
10655 return 0;
10656 }
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659 xgnu_linux_first_failure=no
10660 else
10661 xgnu_linux_first_failure=yes
10662 fi
10663 rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 if test "${xgnu_linux_first_failure}" = "yes"; then
10666 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10667 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10668 OLD_CPPFLAGS="$CPPFLAGS"
10669 OLD_LIBS="$LIBS"
10670 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10671 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10672 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10673 LIBS="$LIBS -b i486-linuxaout"
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676
10677 int
10678 main ()
10679 {
10680 XOpenDisplay ("foo");
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 xgnu_linux_second_failure=no
10687 else
10688 xgnu_linux_second_failure=yes
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 if test "${xgnu_linux_second_failure}" = "yes"; then
10693 # If we get the same failure with -b, there is no use adding -b.
10694 # So take it out. This plays safe.
10695 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10696 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10697 CPPFLAGS="$OLD_CPPFLAGS"
10698 LIBS="$OLD_LIBS"
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10703 $as_echo "yes" >&6; }
10704 fi
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10708 fi
10709 fi
10710
10711 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10712 # header files included from there.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10714 $as_echo_n "checking for Xkb... " >&6; }
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717 #include <X11/Xlib.h>
10718 #include <X11/XKBlib.h>
10719 int
10720 main ()
10721 {
10722 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 emacs_xkb=yes
10729 else
10730 emacs_xkb=no
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10735 $as_echo "$emacs_xkb" >&6; }
10736 if test $emacs_xkb = yes; then
10737
10738 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10739
10740 fi
10741
10742 for ac_func in XrmSetDatabase XScreenResourceString \
10743 XScreenNumberOfScreen
10744 do :
10745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10747 eval as_val=\$$as_ac_var
10748 if test "x$as_val" = x""yes; then :
10749 cat >>confdefs.h <<_ACEOF
10750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10751 _ACEOF
10752
10753 fi
10754 done
10755
10756 fi
10757
10758 if test "${window_system}" = "x11"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10760 $as_echo_n "checking X11 version 6... " >&6; }
10761 if test "${emacs_cv_x11_version_6+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
10763 else
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 #include <X11/Xlib.h>
10767 int
10768 main ()
10769 {
10770 #if XlibSpecificationRelease < 6
10771 fail;
10772 #endif
10773
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 emacs_cv_x11_version_6=yes
10780 else
10781 emacs_cv_x11_version_6=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 fi
10786
10787 if test $emacs_cv_x11_version_6 = yes; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10789 $as_echo "6 or newer" >&6; }
10790
10791 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10792
10793
10794 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10795
10796 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10797 ## XIM support.
10798 case "$opsys" in
10799 sol2-*) : ;;
10800 *)
10801 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10802
10803 ;;
10804 esac
10805 else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10807 $as_echo "before 6" >&6; }
10808 fi
10809 fi
10810
10811
10812 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10813 HAVE_RSVG=no
10814 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10815 if test "${with_rsvg}" != "no"; then
10816 RSVG_REQUIRED=2.11.0
10817 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10818
10819
10820 succeeded=no
10821
10822 if test "$PKG_CONFIG" = "no" ; then
10823 :
10824 else
10825 PKG_CONFIG_MIN_VERSION=0.9.0
10826 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10828 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10829
10830 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10831 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10832 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10833 edit_cflags="
10834 s,///*,/,g
10835 s/^/ /
10836 s/ -I/ $isystem/g
10837 s/^ //
10838 "
10839 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10840 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10842 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10843 succeeded=yes
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10847 RSVG_CFLAGS=""
10848 RSVG_LIBS=""
10849 ## If we have a custom action on failure, don't print errors, but
10850 ## do set a variable so people can do so. Do it in a subshell
10851 ## to capture any diagnostics in invoking pkg-config.
10852 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10853
10854 fi
10855
10856
10857
10858 else
10859 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10860 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10861 fi
10862 fi
10863
10864 if test $succeeded = yes; then
10865 HAVE_RSVG=yes
10866 else
10867 :
10868 fi
10869
10870
10871
10872
10873 if test $HAVE_RSVG = yes; then
10874
10875 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10876
10877 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10878 LIBS="$RSVG_LIBS $LIBS"
10879 fi
10880 fi
10881 fi
10882
10883 HAVE_IMAGEMAGICK=no
10884 if test "${HAVE_X11}" = "yes"; then
10885 if test "${with_imagemagick}" != "no"; then
10886 ## 6.2.8 is the earliest version known to work, but earlier versions
10887 ## might work - let us know if you find one.
10888 ## 6.0.7 does not work. See bug#7955.
10889 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10890
10891 succeeded=no
10892
10893 if test "$PKG_CONFIG" = "no" ; then
10894 :
10895 else
10896 PKG_CONFIG_MIN_VERSION=0.9.0
10897 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10899 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10900
10901 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10902 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10903 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10904 edit_cflags="
10905 s,///*,/,g
10906 s/^/ /
10907 s/ -I/ $isystem/g
10908 s/^ //
10909 "
10910 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10911 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10913 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10914 succeeded=yes
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10918 IMAGEMAGICK_CFLAGS=""
10919 IMAGEMAGICK_LIBS=""
10920 ## If we have a custom action on failure, don't print errors, but
10921 ## do set a variable so people can do so. Do it in a subshell
10922 ## to capture any diagnostics in invoking pkg-config.
10923 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10924
10925 fi
10926
10927
10928
10929 else
10930 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10931 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10932 fi
10933 fi
10934
10935 if test $succeeded = yes; then
10936 HAVE_IMAGEMAGICK=yes
10937 else
10938 :
10939 fi
10940
10941
10942
10943
10944 if test $HAVE_IMAGEMAGICK = yes; then
10945
10946 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10947
10948 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10949 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10950 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10951 do :
10952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10954 eval as_val=\$$as_ac_var
10955 if test "x$as_val" = x""yes; then :
10956 cat >>confdefs.h <<_ACEOF
10957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958 _ACEOF
10959
10960 fi
10961 done
10962
10963 fi
10964 fi
10965 fi
10966
10967
10968 HAVE_GTK=no
10969 GTK_OBJ=
10970 check_gtk2=no
10971 gtk3_pkg_errors=
10972 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10973 GLIB_REQUIRED=2.28
10974 GTK_REQUIRED=3.0
10975 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10976
10977
10978 succeeded=no
10979
10980 if test "$PKG_CONFIG" = "no" ; then
10981 pkg_check_gtk=no
10982 else
10983 PKG_CONFIG_MIN_VERSION=0.9.0
10984 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10986 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10987
10988 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10989 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10990 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10991 edit_cflags="
10992 s,///*,/,g
10993 s/^/ /
10994 s/ -I/ $isystem/g
10995 s/^ //
10996 "
10997 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10998 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11000 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11001 succeeded=yes
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 GTK_CFLAGS=""
11006 GTK_LIBS=""
11007 ## If we have a custom action on failure, don't print errors, but
11008 ## do set a variable so people can do so. Do it in a subshell
11009 ## to capture any diagnostics in invoking pkg-config.
11010 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11011
11012 fi
11013
11014
11015
11016 else
11017 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11018 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11019 fi
11020 fi
11021
11022 if test $succeeded = yes; then
11023 pkg_check_gtk=yes
11024 else
11025 pkg_check_gtk=no
11026 fi
11027
11028 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11029 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11030 fi
11031 if test "$pkg_check_gtk" = "yes"; then
11032
11033 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11034
11035 GTK_OBJ=emacsgtkfixed.o
11036 term_header=gtkutil.h
11037 USE_GTK_TOOLKIT="GTK3"
11038 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11039 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11040 fi
11041 else
11042 check_gtk2=yes
11043 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11044 fi
11045 fi
11046
11047 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11048 GLIB_REQUIRED=2.10
11049 GTK_REQUIRED=2.10
11050 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11051
11052
11053 succeeded=no
11054
11055 if test "$PKG_CONFIG" = "no" ; then
11056 pkg_check_gtk=no
11057 else
11058 PKG_CONFIG_MIN_VERSION=0.9.0
11059 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11061 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11062
11063 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11064 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11065 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11066 edit_cflags="
11067 s,///*,/,g
11068 s/^/ /
11069 s/ -I/ $isystem/g
11070 s/^ //
11071 "
11072 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11073 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11075 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11076 succeeded=yes
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11080 GTK_CFLAGS=""
11081 GTK_LIBS=""
11082 ## If we have a custom action on failure, don't print errors, but
11083 ## do set a variable so people can do so. Do it in a subshell
11084 ## to capture any diagnostics in invoking pkg-config.
11085 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11086
11087 fi
11088
11089
11090
11091 else
11092 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11093 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11094 fi
11095 fi
11096
11097 if test $succeeded = yes; then
11098 pkg_check_gtk=yes
11099 else
11100 pkg_check_gtk=no
11101 fi
11102
11103 if test "$pkg_check_gtk" = "no" &&
11104 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11105 then
11106 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11107 fi
11108 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11109 fi
11110
11111 if test x"$pkg_check_gtk" = xyes; then
11112
11113
11114
11115 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11116 CFLAGS="$CFLAGS $GTK_CFLAGS"
11117 LIBS="$GTK_LIBS $LIBS"
11118 GTK_COMPILES=no
11119 for ac_func in gtk_main
11120 do :
11121 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11122 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11123 cat >>confdefs.h <<_ACEOF
11124 #define HAVE_GTK_MAIN 1
11125 _ACEOF
11126 GTK_COMPILES=yes
11127 fi
11128 done
11129
11130 if test "${GTK_COMPILES}" != "yes"; then
11131 if test "$USE_X_TOOLKIT" != "maybe"; then
11132 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11133 fi
11134 else
11135 HAVE_GTK=yes
11136
11137 $as_echo "#define USE_GTK 1" >>confdefs.h
11138
11139 GTK_OBJ="gtkutil.o $GTK_OBJ"
11140 USE_X_TOOLKIT=none
11141 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11142 :
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11145 closing open displays. This is no problem if you just use
11146 one display, but if you use more than one and close one of them
11147 Emacs may crash." >&5
11148 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11149 closing open displays. This is no problem if you just use
11150 one display, but if you use more than one and close one of them
11151 Emacs may crash." >&2;}
11152 sleep 3
11153 fi
11154 fi
11155
11156 fi
11157
11158
11159
11160 if test "${HAVE_GTK}" = "yes"; then
11161
11162 if test "$with_toolkit_scroll_bars" != no; then
11163 with_toolkit_scroll_bars=yes
11164 fi
11165
11166 HAVE_GTK_FILE_SELECTION=no
11167 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11168 #include <gtk/gtk.h>
11169 "
11170 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11171 HAVE_GTK_FILE_SELECTION=yes
11172 else
11173 HAVE_GTK_FILE_SELECTION=no
11174 fi
11175
11176 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11177 for ac_func in gtk_file_selection_new
11178 do :
11179 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11180 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_GTK_FILE_SELECTION_NEW 1
11183 _ACEOF
11184
11185 fi
11186 done
11187
11188 fi
11189
11190 HAVE_GTK_HANDLE_BOX=no
11191 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11192 #include <gtk/gtk.h>
11193 "
11194 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11195 HAVE_GTK_HANDLE_BOX=yes
11196 else
11197 HAVE_GTK_HANDLE_BOX=no
11198 fi
11199
11200 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11201 for ac_func in gtk_handle_box_new
11202 do :
11203 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11204 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11205 cat >>confdefs.h <<_ACEOF
11206 #define HAVE_GTK_HANDLE_BOX_NEW 1
11207 _ACEOF
11208
11209 fi
11210 done
11211
11212 fi
11213
11214 HAVE_GTK_TEAROFF_MENU_ITEM=no
11215 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11216 #include <gtk/gtk.h>
11217 "
11218 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11219 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11220 else
11221 HAVE_GTK_TEAROFF_MENU_ITEM=no
11222 fi
11223
11224 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11225 for ac_func in gtk_tearoff_menu_item_new
11226 do :
11227 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11228 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11229 cat >>confdefs.h <<_ACEOF
11230 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11231 _ACEOF
11232
11233 fi
11234 done
11235
11236 fi
11237
11238 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11239 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11240 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11241 gtk_orientable_set_orientation \
11242 gtk_window_set_has_resize_grip
11243 do :
11244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11245 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11246 eval as_val=\$$as_ac_var
11247 if test "x$as_val" = x""yes; then :
11248 cat >>confdefs.h <<_ACEOF
11249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11250 _ACEOF
11251
11252 fi
11253 done
11254
11255
11256 term_header=gtkutil.h
11257 fi
11258
11259 HAVE_DBUS=no
11260 DBUS_OBJ=
11261 if test "${with_dbus}" = "yes"; then
11262
11263 succeeded=no
11264
11265 if test "$PKG_CONFIG" = "no" ; then
11266 HAVE_DBUS=no
11267 else
11268 PKG_CONFIG_MIN_VERSION=0.9.0
11269 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11271 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11272
11273 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11274 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11275 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11276 edit_cflags="
11277 s,///*,/,g
11278 s/^/ /
11279 s/ -I/ $isystem/g
11280 s/^ //
11281 "
11282 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11283 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11285 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11286 succeeded=yes
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11290 DBUS_CFLAGS=""
11291 DBUS_LIBS=""
11292 ## If we have a custom action on failure, don't print errors, but
11293 ## do set a variable so people can do so. Do it in a subshell
11294 ## to capture any diagnostics in invoking pkg-config.
11295 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11296
11297 fi
11298
11299
11300
11301 else
11302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11304 fi
11305 fi
11306
11307 if test $succeeded = yes; then
11308 HAVE_DBUS=yes
11309 else
11310 HAVE_DBUS=no
11311 fi
11312
11313 if test "$HAVE_DBUS" = yes; then
11314 LIBS="$LIBS $DBUS_LIBS"
11315
11316 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11317
11318 for ac_func in dbus_watch_get_unix_fd \
11319 dbus_type_is_valid \
11320 dbus_validate_bus_name \
11321 dbus_validate_path \
11322 dbus_validate_interface \
11323 dbus_validate_member
11324 do :
11325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11327 eval as_val=\$$as_ac_var
11328 if test "x$as_val" = x""yes; then :
11329 cat >>confdefs.h <<_ACEOF
11330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11331 _ACEOF
11332
11333 fi
11334 done
11335
11336 DBUS_OBJ=dbusbind.o
11337 fi
11338 fi
11339
11340
11341 HAVE_GSETTINGS=no
11342 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11343
11344 succeeded=no
11345
11346 if test "$PKG_CONFIG" = "no" ; then
11347 HAVE_GSETTINGS=no
11348 else
11349 PKG_CONFIG_MIN_VERSION=0.9.0
11350 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11352 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11353
11354 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11355 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11356 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11357 edit_cflags="
11358 s,///*,/,g
11359 s/^/ /
11360 s/ -I/ $isystem/g
11361 s/^ //
11362 "
11363 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11364 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11366 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11367 succeeded=yes
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 GSETTINGS_CFLAGS=""
11372 GSETTINGS_LIBS=""
11373 ## If we have a custom action on failure, don't print errors, but
11374 ## do set a variable so people can do so. Do it in a subshell
11375 ## to capture any diagnostics in invoking pkg-config.
11376 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11377
11378 fi
11379
11380
11381
11382 else
11383 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11384 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11385 fi
11386 fi
11387
11388 if test $succeeded = yes; then
11389 HAVE_GSETTINGS=yes
11390 else
11391 HAVE_GSETTINGS=no
11392 fi
11393
11394 if test "$HAVE_GSETTINGS" = "yes"; then
11395
11396 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11397
11398 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11399 SETTINGS_LIBS="$GSETTINGS_LIBS"
11400 fi
11401 fi
11402
11403 HAVE_GCONF=no
11404 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11405
11406 succeeded=no
11407
11408 if test "$PKG_CONFIG" = "no" ; then
11409 HAVE_GCONF=no
11410 else
11411 PKG_CONFIG_MIN_VERSION=0.9.0
11412 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11414 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11415
11416 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11417 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11418 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11419 edit_cflags="
11420 s,///*,/,g
11421 s/^/ /
11422 s/ -I/ $isystem/g
11423 s/^ //
11424 "
11425 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11426 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11428 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11429 succeeded=yes
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433 GCONF_CFLAGS=""
11434 GCONF_LIBS=""
11435 ## If we have a custom action on failure, don't print errors, but
11436 ## do set a variable so people can do so. Do it in a subshell
11437 ## to capture any diagnostics in invoking pkg-config.
11438 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11439
11440 fi
11441
11442
11443
11444 else
11445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11447 fi
11448 fi
11449
11450 if test $succeeded = yes; then
11451 HAVE_GCONF=yes
11452 else
11453 HAVE_GCONF=no
11454 fi
11455
11456 if test "$HAVE_GCONF" = yes; then
11457
11458 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11459
11460 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11461 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11462 fi
11463 fi
11464
11465 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11466
11467 succeeded=no
11468
11469 if test "$PKG_CONFIG" = "no" ; then
11470 HAVE_GOBJECT=no
11471 else
11472 PKG_CONFIG_MIN_VERSION=0.9.0
11473 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11475 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11476
11477 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11478 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11479 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11480 edit_cflags="
11481 s,///*,/,g
11482 s/^/ /
11483 s/ -I/ $isystem/g
11484 s/^ //
11485 "
11486 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11487 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11489 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11490 succeeded=yes
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11494 GOBJECT_CFLAGS=""
11495 GOBJECT_LIBS=""
11496 ## If we have a custom action on failure, don't print errors, but
11497 ## do set a variable so people can do so. Do it in a subshell
11498 ## to capture any diagnostics in invoking pkg-config.
11499 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11500
11501 fi
11502
11503
11504
11505 else
11506 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11507 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11508 fi
11509 fi
11510
11511 if test $succeeded = yes; then
11512 HAVE_GOBJECT=yes
11513 else
11514 HAVE_GOBJECT=no
11515 fi
11516
11517 if test "$HAVE_GOBJECT" = "yes"; then
11518 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11519 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11520 fi
11521 SAVE_CFLAGS="$CFLAGS"
11522 SAVE_LIBS="$LIBS"
11523 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11524 LIBS="$SETTINGS_LIBS $LIBS"
11525 for ac_func in g_type_init
11526 do :
11527 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11528 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11529 cat >>confdefs.h <<_ACEOF
11530 #define HAVE_G_TYPE_INIT 1
11531 _ACEOF
11532
11533 fi
11534 done
11535
11536 CFLAGS="$SAVE_CFLAGS"
11537 LIBS="$SAVE_LIBS"
11538 fi
11539
11540
11541
11542
11543 HAVE_LIBSELINUX=no
11544 LIBSELINUX_LIBS=
11545 if test "${with_selinux}" = "yes"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11547 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11548 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-lselinux $LIBS"
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11555
11556 /* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11559 #ifdef __cplusplus
11560 extern "C"
11561 #endif
11562 char lgetfilecon ();
11563 int
11564 main ()
11565 {
11566 return lgetfilecon ();
11567 ;
11568 return 0;
11569 }
11570 _ACEOF
11571 if ac_fn_c_try_link "$LINENO"; then :
11572 ac_cv_lib_selinux_lgetfilecon=yes
11573 else
11574 ac_cv_lib_selinux_lgetfilecon=no
11575 fi
11576 rm -f core conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11578 LIBS=$ac_check_lib_save_LIBS
11579 fi
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11581 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11582 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11583 HAVE_LIBSELINUX=yes
11584 else
11585 HAVE_LIBSELINUX=no
11586 fi
11587
11588 if test "$HAVE_LIBSELINUX" = yes; then
11589
11590 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11591
11592 LIBSELINUX_LIBS=-lselinux
11593 fi
11594 fi
11595
11596
11597 HAVE_GNUTLS=no
11598 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11599 if test "${with_gnutls}" = "yes" ; then
11600
11601 succeeded=no
11602
11603 if test "$PKG_CONFIG" = "no" ; then
11604 HAVE_GNUTLS=no
11605 else
11606 PKG_CONFIG_MIN_VERSION=0.9.0
11607 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11609 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11610
11611 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11612 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11613 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11614 edit_cflags="
11615 s,///*,/,g
11616 s/^/ /
11617 s/ -I/ $isystem/g
11618 s/^ //
11619 "
11620 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11621 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11623 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11624 succeeded=yes
11625 else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627 $as_echo "no" >&6; }
11628 LIBGNUTLS_CFLAGS=""
11629 LIBGNUTLS_LIBS=""
11630 ## If we have a custom action on failure, don't print errors, but
11631 ## do set a variable so people can do so. Do it in a subshell
11632 ## to capture any diagnostics in invoking pkg-config.
11633 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11634
11635 fi
11636
11637
11638
11639 else
11640 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11641 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11642 fi
11643 fi
11644
11645 if test $succeeded = yes; then
11646 HAVE_GNUTLS=yes
11647 else
11648 HAVE_GNUTLS=no
11649 fi
11650
11651 if test "${HAVE_GNUTLS}" = "yes"; then
11652
11653 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11654
11655 fi
11656
11657 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11658 LIBS="$LIBGNUTLS_LIBS $LIBS"
11659 for ac_func in gnutls_certificate_set_verify_function
11660 do :
11661 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11662 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11663 cat >>confdefs.h <<_ACEOF
11664 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11665 _ACEOF
11666 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11667 fi
11668 done
11669
11670
11671 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11672
11673 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11674
11675 fi
11676 fi
11677
11678
11679
11680
11681 if test "${with_inotify}" = "yes"; then
11682 for ac_header in sys/inotify.h
11683 do :
11684 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11685 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11686 cat >>confdefs.h <<_ACEOF
11687 #define HAVE_SYS_INOTIFY_H 1
11688 _ACEOF
11689
11690 fi
11691
11692 done
11693
11694 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11695 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11696 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11697
11698 fi
11699
11700 fi
11701 fi
11702 if test "$ac_cv_func_inotify_init1" = yes; then
11703
11704 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11705
11706 fi
11707
11708 HAVE_POSIX_ACL=no
11709 LIBACL_LIBS=
11710 if test "${with_acl}" = "yes"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11712 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11713 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 ac_check_lib_save_LIBS=$LIBS
11717 LIBS="-lacl $LIBS"
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 char acl_set_file ();
11728 int
11729 main ()
11730 {
11731 return acl_set_file ();
11732 ;
11733 return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"; then :
11737 ac_cv_lib_acl_acl_set_file=yes
11738 else
11739 ac_cv_lib_acl_acl_set_file=no
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11746 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11747 if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then :
11748 HAVE_POSIX_ACL=yes
11749 else
11750 HAVE_POSIX_ACL=no
11751 fi
11752
11753 if test "$HAVE_POSIX_ACL" = yes; then
11754
11755 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11756
11757 LIBACL_LIBS=-lacl
11758 else
11759 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11760 if test "x$ac_cv_func_acl_set_file" = x""yes; then :
11761 HAVE_POSIX_ACL=yes
11762 else
11763 HAVE_POSIX_ACL=no
11764 fi
11765
11766 if test "$HAVE_POSIX_ACL" = yes; then
11767
11768 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11769
11770 fi
11771 fi
11772 fi
11773
11774
11775 HAVE_XAW3D=no
11776 LUCID_LIBW=
11777 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11778 if test "$with_xaw3d" != no; then
11779 if test "${emacs_cv_xaw3d+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784
11785 #include <X11/Intrinsic.h>
11786 #include <X11/Xaw3d/Simple.h>
11787 int
11788 main ()
11789 {
11790
11791 ;
11792 return 0;
11793 }
11794 _ACEOF
11795 if ac_fn_c_try_link "$LINENO"; then :
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11797 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11798 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-lXaw3d $LIBS"
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11805
11806 /* Override any GCC internal prototype to avoid an error.
11807 Use char because int might match the return type of a GCC
11808 builtin and then its argument prototype would still apply. */
11809 #ifdef __cplusplus
11810 extern "C"
11811 #endif
11812 char XawScrollbarSetThumb ();
11813 int
11814 main ()
11815 {
11816 return XawScrollbarSetThumb ();
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_c_try_link "$LINENO"; then :
11822 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11823 else
11824 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828 LIBS=$ac_check_lib_save_LIBS
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11831 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11832 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11833 emacs_cv_xaw3d=yes
11834 else
11835 emacs_cv_xaw3d=no
11836 fi
11837
11838 else
11839 emacs_cv_xaw3d=no
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 fi
11844
11845 else
11846 emacs_cv_xaw3d=no
11847 fi
11848 if test $emacs_cv_xaw3d = yes; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11850 $as_echo_n "checking for xaw3d... " >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11852 $as_echo "yes; using Lucid toolkit" >&6; }
11853 USE_X_TOOLKIT=LUCID
11854 HAVE_XAW3D=yes
11855 LUCID_LIBW=-lXaw3d
11856
11857 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11858
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11861 $as_echo_n "checking for xaw3d... " >&6; }
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11865 $as_echo_n "checking for libXaw... " >&6; }
11866 if test "${emacs_cv_xaw+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871
11872 #include <X11/Intrinsic.h>
11873 #include <X11/Xaw/Simple.h>
11874 int
11875 main ()
11876 {
11877
11878 ;
11879 return 0;
11880 }
11881 _ACEOF
11882 if ac_fn_c_try_link "$LINENO"; then :
11883 emacs_cv_xaw=yes
11884 else
11885 emacs_cv_xaw=no
11886 fi
11887 rm -f core conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11889 fi
11890
11891 if test $emacs_cv_xaw = yes; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11893 $as_echo "yes; using Lucid toolkit" >&6; }
11894 USE_X_TOOLKIT=LUCID
11895 LUCID_LIBW=-lXaw
11896 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11897 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11898 else
11899 as_fn_error "No X toolkit could be found.
11900 If you are sure you want Emacs compiled without an X toolkit, pass
11901 --with-x-toolkit=no
11902 to configure. Otherwise, install the development libraries for the toolkit
11903 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11904 fi
11905 fi
11906 fi
11907
11908 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11909
11910 LIBXTR6=
11911 if test "${USE_X_TOOLKIT}" != "none"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11913 $as_echo_n "checking X11 toolkit version... " >&6; }
11914 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 #include <X11/Intrinsic.h>
11920 int
11921 main ()
11922 {
11923 #if XtSpecificationRelease < 6
11924 fail;
11925 #endif
11926
11927 ;
11928 return 0;
11929 }
11930 _ACEOF
11931 if ac_fn_c_try_link "$LINENO"; then :
11932 emacs_cv_x11_toolkit_version_6=yes
11933 else
11934 emacs_cv_x11_toolkit_version_6=no
11935 fi
11936 rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11938 fi
11939
11940 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11941 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11943 $as_echo "6 or newer" >&6; }
11944
11945 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11946
11947 LIBXTR6="-lSM -lICE"
11948 case "$opsys" in
11949 ## Use libw.a along with X11R6 Xt.
11950 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11951 esac
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11954 $as_echo "before 6" >&6; }
11955 fi
11956
11957 OLDLIBS="$LIBS"
11958 if test x$HAVE_X11XTR6 = xyes; then
11959 LIBS="-lXt -lSM -lICE $LIBS"
11960 else
11961 LIBS="-lXt $LIBS"
11962 fi
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11964 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11965 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-lXmu $LIBS"
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972
11973 /* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11976 #ifdef __cplusplus
11977 extern "C"
11978 #endif
11979 char XmuConvertStandardSelection ();
11980 int
11981 main ()
11982 {
11983 return XmuConvertStandardSelection ();
11984 ;
11985 return 0;
11986 }
11987 _ACEOF
11988 if ac_fn_c_try_link "$LINENO"; then :
11989 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11990 else
11991 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11992 fi
11993 rm -f core conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
11995 LIBS=$ac_check_lib_save_LIBS
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11998 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11999 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12000 cat >>confdefs.h <<_ACEOF
12001 #define HAVE_LIBXMU 1
12002 _ACEOF
12003
12004 LIBS="-lXmu $LIBS"
12005
12006 fi
12007
12008 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12009 fi
12010
12011
12012 LIBXMU=-lXmu
12013 case $opsys in
12014 ## These systems don't supply Xmu.
12015 hpux* | aix4-2 )
12016 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12017 ;;
12018 esac
12019
12020
12021 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12022 if test "${HAVE_X11}" = "yes"; then
12023 if test "${USE_X_TOOLKIT}" != "none"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12025 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12026 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-lXext $LIBS"
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12033
12034 /* Override any GCC internal prototype to avoid an error.
12035 Use char because int might match the return type of a GCC
12036 builtin and then its argument prototype would still apply. */
12037 #ifdef __cplusplus
12038 extern "C"
12039 #endif
12040 char XShapeQueryExtension ();
12041 int
12042 main ()
12043 {
12044 return XShapeQueryExtension ();
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12050 ac_cv_lib_Xext_XShapeQueryExtension=yes
12051 else
12052 ac_cv_lib_Xext_XShapeQueryExtension=no
12053 fi
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056 LIBS=$ac_check_lib_save_LIBS
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12059 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12060 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12061 cat >>confdefs.h <<_ACEOF
12062 #define HAVE_LIBXEXT 1
12063 _ACEOF
12064
12065 LIBS="-lXext $LIBS"
12066
12067 fi
12068
12069 fi
12070 fi
12071
12072 LIBXP=
12073 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12074 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12075 if test -d /usr/include/openmotif; then
12076 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12077 emacs_cv_openmotif=yes
12078 case "$canonical" in
12079 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12080 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12081 ;;
12082 *)
12083 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12084 esac
12085 else
12086 emacs_cv_openmotif=no
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12089 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12090 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 #include <Xm/Xm.h>
12096 int
12097 main ()
12098 {
12099 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12100 int x = 5;
12101 #else
12102 Motif version prior to 2.1.
12103 #endif
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 if ac_fn_c_try_compile "$LINENO"; then :
12109 emacs_cv_motif_version_2_1=yes
12110 else
12111 emacs_cv_motif_version_2_1=no
12112 fi
12113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114 fi
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12116 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12117 if test $emacs_cv_motif_version_2_1 = yes; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12119 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12120 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-lXp $LIBS"
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 char XpCreateContext ();
12135 int
12136 main ()
12137 {
12138 return XpCreateContext ();
12139 ;
12140 return 0;
12141 }
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_lib_Xp_XpCreateContext=yes
12145 else
12146 ac_cv_lib_Xp_XpCreateContext=no
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12153 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12154 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12155 LIBXP=-lXp
12156 fi
12157
12158 if test x$emacs_cv_openmotif = xyes; then
12159 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12160 fi
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12163 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12164 if test "${emacs_cv_lesstif+set}" = set; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 # We put this in CFLAGS temporarily to precede other -I options
12168 # that might be in CFLAGS temporarily.
12169 # We put this in CPPFLAGS where it precedes the other -I options.
12170 OLD_CPPFLAGS=$CPPFLAGS
12171 OLD_CFLAGS=$CFLAGS
12172 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12173 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12177 int
12178 main ()
12179 {
12180 int x = 5;
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_c_try_compile "$LINENO"; then :
12186 emacs_cv_lesstif=yes
12187 else
12188 emacs_cv_lesstif=no
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12193 $as_echo "$emacs_cv_lesstif" >&6; }
12194 if test $emacs_cv_lesstif = yes; then
12195 # Make sure this -I option remains in CPPFLAGS after it is set
12196 # back to REAL_CPPFLAGS.
12197 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12198 # have those other -I options anyway. Ultimately, having this
12199 # directory ultimately in CPPFLAGS will be enough.
12200 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12201 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12202 else
12203 CFLAGS=$OLD_CFLAGS
12204 CPPFLAGS=$OLD_CPPFLAGS
12205 fi
12206 fi
12207 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12208 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12209
12210 else
12211 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12212 fi
12213
12214
12215 fi
12216
12217
12218 USE_TOOLKIT_SCROLL_BARS=no
12219 if test "${with_toolkit_scroll_bars}" != "no"; then
12220 if test "${USE_X_TOOLKIT}" != "none"; then
12221 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12222 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12223
12224 HAVE_XAW3D=no
12225 USE_TOOLKIT_SCROLL_BARS=yes
12226 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12227 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12228
12229 USE_TOOLKIT_SCROLL_BARS=yes
12230 fi
12231 elif test "${HAVE_GTK}" = "yes"; then
12232 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12233
12234 USE_TOOLKIT_SCROLL_BARS=yes
12235 elif test "${HAVE_NS}" = "yes"; then
12236 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12237
12238 USE_TOOLKIT_SCROLL_BARS=yes
12239 elif test "${HAVE_W32}" = "yes"; then
12240 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12241
12242 USE_TOOLKIT_SCROLL_BARS=yes
12243 fi
12244 fi
12245
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248
12249 #include <X11/Xlib.h>
12250 #include <X11/Xresource.h>
12251 int
12252 main ()
12253 {
12254 XIMProc callback;
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 if ac_fn_c_try_compile "$LINENO"; then :
12260 HAVE_XIM=yes
12261
12262 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12263
12264 else
12265 HAVE_XIM=no
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268
12269
12270 if test "${with_xim}" != "no"; then
12271
12272 $as_echo "#define USE_XIM 1" >>confdefs.h
12273
12274 fi
12275
12276
12277 if test "${HAVE_XIM}" != "no"; then
12278 late_CFLAGS=$CFLAGS
12279 if test "$GCC" = yes; then
12280 CFLAGS="$CFLAGS --pedantic-errors"
12281 fi
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12284
12285 #include <X11/Xlib.h>
12286 #include <X11/Xresource.h>
12287 int
12288 main ()
12289 {
12290 Display *display;
12291 XrmDatabase db;
12292 char *res_name;
12293 char *res_class;
12294 XIMProc callback;
12295 XPointer *client_data;
12296 #ifndef __GNUC__
12297 /* If we're not using GCC, it's probably not XFree86, and this is
12298 probably right, but we can't use something like --pedantic-errors. */
12299 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12300 char*, XIMProc, XPointer*);
12301 #endif
12302 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12303 client_data);
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_compile "$LINENO"; then :
12309 emacs_cv_arg6_star=yes
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 if test "$emacs_cv_arg6_star" = yes; then
12313 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12314
12315 else
12316 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12317
12318 fi
12319 CFLAGS=$late_CFLAGS
12320 fi
12321
12322 ### Start of font-backend (under any platform) section.
12323 # (nothing here yet -- this is a placeholder)
12324 ### End of font-backend (under any platform) section.
12325
12326 ### Start of font-backend (under X11) section.
12327 if test "${HAVE_X11}" = "yes"; then
12328
12329 succeeded=no
12330
12331 if test "$PKG_CONFIG" = "no" ; then
12332 HAVE_FC=no
12333 else
12334 PKG_CONFIG_MIN_VERSION=0.9.0
12335 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12337 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12338
12339 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12340 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12341 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12342 edit_cflags="
12343 s,///*,/,g
12344 s/^/ /
12345 s/ -I/ $isystem/g
12346 s/^ //
12347 "
12348 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12349 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12351 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12352 succeeded=yes
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 FONTCONFIG_CFLAGS=""
12357 FONTCONFIG_LIBS=""
12358 ## If we have a custom action on failure, don't print errors, but
12359 ## do set a variable so people can do so. Do it in a subshell
12360 ## to capture any diagnostics in invoking pkg-config.
12361 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12362
12363 fi
12364
12365
12366
12367 else
12368 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12369 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12370 fi
12371 fi
12372
12373 if test $succeeded = yes; then
12374 HAVE_FC=yes
12375 else
12376 HAVE_FC=no
12377 fi
12378
12379
12380 ## Use -lXft if available, unless `--with-xft=no'.
12381 HAVE_XFT=maybe
12382 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12383 with_xft="no";
12384 fi
12385 if test "x${with_xft}" != "xno"; then
12386
12387
12388 succeeded=no
12389
12390 if test "$PKG_CONFIG" = "no" ; then
12391 HAVE_XFT=no
12392 else
12393 PKG_CONFIG_MIN_VERSION=0.9.0
12394 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12396 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12397
12398 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12399 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12400 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12401 edit_cflags="
12402 s,///*,/,g
12403 s/^/ /
12404 s/ -I/ $isystem/g
12405 s/^ //
12406 "
12407 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12408 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12410 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12411 succeeded=yes
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415 XFT_CFLAGS=""
12416 XFT_LIBS=""
12417 ## If we have a custom action on failure, don't print errors, but
12418 ## do set a variable so people can do so. Do it in a subshell
12419 ## to capture any diagnostics in invoking pkg-config.
12420 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12421
12422 fi
12423
12424
12425
12426 else
12427 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12428 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12429 fi
12430 fi
12431
12432 if test $succeeded = yes; then
12433 :
12434 else
12435 HAVE_XFT=no
12436 fi
12437
12438 ## Because xftfont.c uses XRenderQueryExtension, we also
12439 ## need to link to -lXrender.
12440 HAVE_XRENDER=no
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12442 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12443 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 ac_check_lib_save_LIBS=$LIBS
12447 LIBS="-lXrender $LIBS"
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12450
12451 /* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 char XRenderQueryExtension ();
12458 int
12459 main ()
12460 {
12461 return XRenderQueryExtension ();
12462 ;
12463 return 0;
12464 }
12465 _ACEOF
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12468 else
12469 ac_cv_lib_Xrender_XRenderQueryExtension=no
12470 fi
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12473 LIBS=$ac_check_lib_save_LIBS
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12476 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12477 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12478 HAVE_XRENDER=yes
12479 fi
12480
12481 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12482 OLD_CPPFLAGS="$CPPFLAGS"
12483 OLD_CFLAGS="$CFLAGS"
12484 OLD_LIBS="$LIBS"
12485 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12486 CFLAGS="$CFLAGS $XFT_CFLAGS"
12487 XFT_LIBS="-lXrender $XFT_LIBS"
12488 LIBS="$XFT_LIBS $LIBS"
12489 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12490 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12492 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12493 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lXft $XFT_LIBS $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char XftFontOpen ();
12508 int
12509 main ()
12510 {
12511 return XftFontOpen ();
12512 ;
12513 return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 ac_cv_lib_Xft_XftFontOpen=yes
12518 else
12519 ac_cv_lib_Xft_XftFontOpen=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12526 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12527 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12528 HAVE_XFT=yes
12529 fi
12530
12531 fi
12532
12533
12534
12535 if test "${HAVE_XFT}" = "yes"; then
12536
12537 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12538
12539
12540 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12541 else
12542 CPPFLAGS="$OLD_CPPFLAGS"
12543 CFLAGS="$OLD_CFLAGS"
12544 LIBS="$OLD_LIBS"
12545 fi # "${HAVE_XFT}" = "yes"
12546 fi # "$HAVE_XFT" != no
12547 fi # "x${with_xft}" != "xno"
12548
12549 ## We used to allow building with FreeType and without Xft.
12550 ## However, the ftx font backend driver is not in good shape.
12551 if test "$HAVE_XFT" != "yes"; then
12552 HAVE_XFT=no
12553 HAVE_FREETYPE=no
12554 else
12555
12556 succeeded=no
12557
12558 if test "$PKG_CONFIG" = "no" ; then
12559 HAVE_FREETYPE=no
12560 else
12561 PKG_CONFIG_MIN_VERSION=0.9.0
12562 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12564 $as_echo_n "checking for freetype2... " >&6; }
12565
12566 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12567 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12568 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12569 edit_cflags="
12570 s,///*,/,g
12571 s/^/ /
12572 s/ -I/ $isystem/g
12573 s/^ //
12574 "
12575 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12576 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12578 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12579 succeeded=yes
12580 else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583 FREETYPE_CFLAGS=""
12584 FREETYPE_LIBS=""
12585 ## If we have a custom action on failure, don't print errors, but
12586 ## do set a variable so people can do so. Do it in a subshell
12587 ## to capture any diagnostics in invoking pkg-config.
12588 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12589
12590 fi
12591
12592
12593
12594 else
12595 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12596 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12597 fi
12598 fi
12599
12600 if test $succeeded = yes; then
12601 HAVE_FREETYPE=yes
12602 else
12603 HAVE_FREETYPE=no
12604 fi
12605
12606
12607 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12608 fi
12609
12610 HAVE_LIBOTF=no
12611 if test "${HAVE_FREETYPE}" = "yes"; then
12612
12613 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12614
12615 if test "${with_libotf}" != "no"; then
12616
12617 succeeded=no
12618
12619 if test "$PKG_CONFIG" = "no" ; then
12620 HAVE_LIBOTF=no
12621 else
12622 PKG_CONFIG_MIN_VERSION=0.9.0
12623 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12625 $as_echo_n "checking for libotf... " >&6; }
12626
12627 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12628 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12629 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12630 edit_cflags="
12631 s,///*,/,g
12632 s/^/ /
12633 s/ -I/ $isystem/g
12634 s/^ //
12635 "
12636 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12637 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12639 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12640 succeeded=yes
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12644 LIBOTF_CFLAGS=""
12645 LIBOTF_LIBS=""
12646 ## If we have a custom action on failure, don't print errors, but
12647 ## do set a variable so people can do so. Do it in a subshell
12648 ## to capture any diagnostics in invoking pkg-config.
12649 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12650
12651 fi
12652
12653
12654
12655 else
12656 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12657 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12658 fi
12659 fi
12660
12661 if test $succeeded = yes; then
12662 HAVE_LIBOTF=yes
12663 else
12664 HAVE_LIBOTF=no
12665 fi
12666
12667 if test "$HAVE_LIBOTF" = "yes"; then
12668
12669 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12670
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12672 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12673 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 ac_check_lib_save_LIBS=$LIBS
12677 LIBS="-lotf $LIBS"
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char OTF_get_variation_glyphs ();
12688 int
12689 main ()
12690 {
12691 return OTF_get_variation_glyphs ();
12692 ;
12693 return 0;
12694 }
12695 _ACEOF
12696 if ac_fn_c_try_link "$LINENO"; then :
12697 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12698 else
12699 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 LIBS=$ac_check_lib_save_LIBS
12704 fi
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12706 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12707 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12708 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12709 else
12710 HAVE_OTF_GET_VARIATION_GLYPHS=no
12711 fi
12712
12713 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12714
12715 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12716
12717 fi
12718 fi
12719 fi
12720 fi
12721
12722 HAVE_M17N_FLT=no
12723 if test "${HAVE_LIBOTF}" = yes; then
12724 if test "${with_m17n_flt}" != "no"; then
12725
12726 succeeded=no
12727
12728 if test "$PKG_CONFIG" = "no" ; then
12729 HAVE_M17N_FLT=no
12730 else
12731 PKG_CONFIG_MIN_VERSION=0.9.0
12732 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12734 $as_echo_n "checking for m17n-flt... " >&6; }
12735
12736 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12737 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12738 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12739 edit_cflags="
12740 s,///*,/,g
12741 s/^/ /
12742 s/ -I/ $isystem/g
12743 s/^ //
12744 "
12745 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12746 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12748 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12749 succeeded=yes
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12753 M17N_FLT_CFLAGS=""
12754 M17N_FLT_LIBS=""
12755 ## If we have a custom action on failure, don't print errors, but
12756 ## do set a variable so people can do so. Do it in a subshell
12757 ## to capture any diagnostics in invoking pkg-config.
12758 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12759
12760 fi
12761
12762
12763
12764 else
12765 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12766 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12767 fi
12768 fi
12769
12770 if test $succeeded = yes; then
12771 HAVE_M17N_FLT=yes
12772 else
12773 HAVE_M17N_FLT=no
12774 fi
12775
12776 if test "$HAVE_M17N_FLT" = "yes"; then
12777
12778 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12779
12780 fi
12781 fi
12782 fi
12783 else
12784 HAVE_XFT=no
12785 HAVE_FREETYPE=no
12786 HAVE_LIBOTF=no
12787 HAVE_M17N_FLT=no
12788 fi
12789
12790 ### End of font-backend (under X11) section.
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801 ### Use -lXpm if available, unless `--with-xpm=no'.
12802 HAVE_XPM=no
12803 LIBXPM=
12804
12805 if test "${HAVE_W32}" = "yes"; then
12806 if test "${with_xpm}" != "no"; then
12807 SAVE_CPPFLAGS="$CPPFLAGS"
12808 SAVE_LDFLAGS="$LDFLAGS"
12809 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12810 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12811 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12812 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12814 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12815 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 ac_check_lib_save_LIBS=$LIBS
12819 LIBS="-lXpm $LIBS"
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12822
12823 /* Override any GCC internal prototype to avoid an error.
12824 Use char because int might match the return type of a GCC
12825 builtin and then its argument prototype would still apply. */
12826 #ifdef __cplusplus
12827 extern "C"
12828 #endif
12829 char XpmReadFileToImage ();
12830 int
12831 main ()
12832 {
12833 return XpmReadFileToImage ();
12834 ;
12835 return 0;
12836 }
12837 _ACEOF
12838 if ac_fn_c_try_link "$LINENO"; then :
12839 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12840 else
12841 ac_cv_lib_Xpm_XpmReadFileToImage=no
12842 fi
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 LIBS=$ac_check_lib_save_LIBS
12846 fi
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12848 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12849 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12850 HAVE_XPM=yes
12851 fi
12852
12853 fi
12854
12855
12856 if test "${HAVE_XPM}" = "yes"; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12858 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861 #include "X11/xpm.h"
12862 #ifndef XpmReturnAllocPixels
12863 no_return_alloc_pixels
12864 #endif
12865
12866 _ACEOF
12867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12868 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12869 HAVE_XPM=no
12870 else
12871 HAVE_XPM=yes
12872 fi
12873 rm -f conftest*
12874
12875
12876 if test "${HAVE_XPM}" = "yes"; then
12877 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879 $as_echo "yes" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 CPPFLAGS="$SAVE_CPPFLAGS"
12884 LDFLAGS="$SAVE_LDFLAGS"
12885 fi
12886 fi
12887 fi
12888
12889 if test "${HAVE_XPM}" = "yes"; then
12890
12891 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12892
12893 LIBXPM=-lXpm
12894 fi
12895 fi
12896
12897 if test "${HAVE_X11}" = "yes"; then
12898 if test "${with_xpm}" != "no"; then
12899 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12900 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12902 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12903 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 ac_check_lib_save_LIBS=$LIBS
12907 LIBS="-lXpm -lX11 $LIBS"
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12910
12911 /* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 char XpmReadFileToPixmap ();
12918 int
12919 main ()
12920 {
12921 return XpmReadFileToPixmap ();
12922 ;
12923 return 0;
12924 }
12925 _ACEOF
12926 if ac_fn_c_try_link "$LINENO"; then :
12927 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12928 else
12929 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12930 fi
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 LIBS=$ac_check_lib_save_LIBS
12934 fi
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12936 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12937 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12938 HAVE_XPM=yes
12939 fi
12940
12941 fi
12942
12943
12944 if test "${HAVE_XPM}" = "yes"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12946 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12949 #include "X11/xpm.h"
12950 #ifndef XpmReturnAllocPixels
12951 no_return_alloc_pixels
12952 #endif
12953
12954 _ACEOF
12955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12956 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12957 HAVE_XPM=no
12958 else
12959 HAVE_XPM=yes
12960 fi
12961 rm -f conftest*
12962
12963
12964 if test "${HAVE_XPM}" = "yes"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12966 $as_echo "yes" >&6; }
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12970 fi
12971 fi
12972 fi
12973
12974 if test "${HAVE_XPM}" = "yes"; then
12975
12976 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12977
12978 LIBXPM=-lXpm
12979 fi
12980 fi
12981
12982
12983
12984 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12985 HAVE_JPEG=no
12986 LIBJPEG=
12987 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12988 if test "${with_jpeg}" != "no"; then
12989 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12990 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12992 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12993 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 ac_check_lib_save_LIBS=$LIBS
12997 LIBS="-ljpeg $LIBS"
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char jpeg_destroy_compress ();
13008 int
13009 main ()
13010 {
13011 return jpeg_destroy_compress ();
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 if ac_fn_c_try_link "$LINENO"; then :
13017 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13018 else
13019 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13020 fi
13021 rm -f core conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
13023 LIBS=$ac_check_lib_save_LIBS
13024 fi
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13026 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13027 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13028 HAVE_JPEG=yes
13029 fi
13030
13031 fi
13032
13033
13034 fi
13035
13036 if test "${HAVE_JPEG}" = "yes"; then
13037 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13038
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041 #include <jpeglib.h>
13042 version=JPEG_LIB_VERSION
13043
13044 _ACEOF
13045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13046 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13047 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13048
13049 else
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13051 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13052 HAVE_JPEG=no
13053 fi
13054 rm -f conftest*
13055
13056 fi
13057 if test "${HAVE_JPEG}" = "yes"; then
13058 LIBJPEG=-ljpeg
13059 fi
13060 fi
13061
13062
13063 ### Use -lpng if available, unless `--with-png=no'.
13064 HAVE_PNG=no
13065 LIBPNG=
13066 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13067 if test "${with_png}" != "no"; then
13068 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13069 # in /usr/include/libpng.
13070 for ac_header in png.h libpng/png.h
13071 do :
13072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13073 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13074 eval as_val=\$$as_ac_Header
13075 if test "x$as_val" = x""yes; then :
13076 cat >>confdefs.h <<_ACEOF
13077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13078 _ACEOF
13079 break
13080 fi
13081
13082 done
13083
13084 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13086 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13087 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lpng -lz -lm $LIBS"
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13098 #ifdef __cplusplus
13099 extern "C"
13100 #endif
13101 char png_get_channels ();
13102 int
13103 main ()
13104 {
13105 return png_get_channels ();
13106 ;
13107 return 0;
13108 }
13109 _ACEOF
13110 if ac_fn_c_try_link "$LINENO"; then :
13111 ac_cv_lib_png_png_get_channels=yes
13112 else
13113 ac_cv_lib_png_png_get_channels=no
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 LIBS=$ac_check_lib_save_LIBS
13118 fi
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13120 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13121 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13122 HAVE_PNG=yes
13123 fi
13124
13125 fi
13126 fi
13127
13128 if test "${HAVE_PNG}" = "yes"; then
13129
13130 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13131
13132 LIBPNG="-lpng -lz -lm"
13133
13134 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13135 # include <libpng/png.h>
13136 #else
13137 # include <png.h>
13138 #endif
13139
13140 "
13141 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13142
13143 else
13144
13145 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13146
13147 fi
13148
13149 fi
13150 fi
13151
13152
13153 ### Use -ltiff if available, unless `--with-tiff=no'.
13154 HAVE_TIFF=no
13155 LIBTIFF=
13156 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13157 if test "${with_tiff}" != "no"; then
13158 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13159 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13160 tifflibs="-lz -lm"
13161 # At least one tiff package requires the jpeg library.
13162 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13164 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13165 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 ac_check_lib_save_LIBS=$LIBS
13169 LIBS="-ltiff $tifflibs $LIBS"
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172
13173 /* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 char TIFFGetVersion ();
13180 int
13181 main ()
13182 {
13183 return TIFFGetVersion ();
13184 ;
13185 return 0;
13186 }
13187 _ACEOF
13188 if ac_fn_c_try_link "$LINENO"; then :
13189 ac_cv_lib_tiff_TIFFGetVersion=yes
13190 else
13191 ac_cv_lib_tiff_TIFFGetVersion=no
13192 fi
13193 rm -f core conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13198 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13199 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13200 HAVE_TIFF=yes
13201 fi
13202
13203 fi
13204
13205
13206 fi
13207
13208 if test "${HAVE_TIFF}" = "yes"; then
13209
13210 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13211
13212 LIBTIFF=-ltiff
13213 fi
13214 fi
13215
13216
13217 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13218 HAVE_GIF=no
13219 LIBGIF=
13220 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13221 || test "${HAVE_W32}" = "yes"; then
13222 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13223 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13224 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13225 # Earlier versions can crash Emacs.
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13227 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13228 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 ac_check_lib_save_LIBS=$LIBS
13232 LIBS="-lgif $LIBS"
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13239 #ifdef __cplusplus
13240 extern "C"
13241 #endif
13242 char EGifPutExtensionLast ();
13243 int
13244 main ()
13245 {
13246 return EGifPutExtensionLast ();
13247 ;
13248 return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 ac_cv_lib_gif_EGifPutExtensionLast=yes
13253 else
13254 ac_cv_lib_gif_EGifPutExtensionLast=no
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258 LIBS=$ac_check_lib_save_LIBS
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13261 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13262 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13263 HAVE_GIF=yes
13264 else
13265 HAVE_GIF=maybe
13266 fi
13267
13268 fi
13269
13270
13271
13272 if test "$HAVE_GIF" = yes; then
13273 LIBGIF=-lgif
13274 elif test "$HAVE_GIF" = maybe; then
13275 # If gif_lib.h but no libgif, try libungif.
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13277 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13278 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 ac_check_lib_save_LIBS=$LIBS
13282 LIBS="-lungif $LIBS"
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285
13286 /* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13289 #ifdef __cplusplus
13290 extern "C"
13291 #endif
13292 char EGifPutExtensionLast ();
13293 int
13294 main ()
13295 {
13296 return EGifPutExtensionLast ();
13297 ;
13298 return 0;
13299 }
13300 _ACEOF
13301 if ac_fn_c_try_link "$LINENO"; then :
13302 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13303 else
13304 ac_cv_lib_ungif_EGifPutExtensionLast=no
13305 fi
13306 rm -f core conftest.err conftest.$ac_objext \
13307 conftest$ac_exeext conftest.$ac_ext
13308 LIBS=$ac_check_lib_save_LIBS
13309 fi
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13311 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13312 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13313 HAVE_GIF=yes
13314 else
13315 HAVE_GIF=no
13316 fi
13317
13318 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13319 fi
13320
13321 if test "${HAVE_GIF}" = "yes"; then
13322
13323 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13324
13325 fi
13326 fi
13327
13328
13329 if test "${HAVE_X11}" = "yes"; then
13330 MISSING=""
13331 WITH_NO=""
13332 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13333 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13334 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13335 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13336 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13337 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13338 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13339 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13340 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13341 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13342
13343 if test "X${MISSING}" != X; then
13344 as_fn_error "The following required libraries were not found:
13345 $MISSING
13346 Maybe some development libraries/packages are missing?
13347 If you don't want to link with them give
13348 $WITH_NO
13349 as options to configure" "$LINENO" 5
13350 fi
13351 fi
13352
13353 ### Use -lgpm if available, unless `--with-gpm=no'.
13354 HAVE_GPM=no
13355 LIBGPM=
13356 if test "${with_gpm}" != "no"; then
13357 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13358 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13360 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13361 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 ac_check_lib_save_LIBS=$LIBS
13365 LIBS="-lgpm $LIBS"
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368
13369 /* Override any GCC internal prototype to avoid an error.
13370 Use char because int might match the return type of a GCC
13371 builtin and then its argument prototype would still apply. */
13372 #ifdef __cplusplus
13373 extern "C"
13374 #endif
13375 char Gpm_Open ();
13376 int
13377 main ()
13378 {
13379 return Gpm_Open ();
13380 ;
13381 return 0;
13382 }
13383 _ACEOF
13384 if ac_fn_c_try_link "$LINENO"; then :
13385 ac_cv_lib_gpm_Gpm_Open=yes
13386 else
13387 ac_cv_lib_gpm_Gpm_Open=no
13388 fi
13389 rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13392 fi
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13394 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13395 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13396 HAVE_GPM=yes
13397 fi
13398
13399 fi
13400
13401
13402
13403 if test "${HAVE_GPM}" = "yes"; then
13404
13405 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13406
13407 LIBGPM=-lgpm
13408 fi
13409 fi
13410
13411
13412
13413
13414
13415
13416 GNUSTEP_CFLAGS=
13417 ### Use NeXTstep API to implement GUI.
13418 if test "${HAVE_NS}" = "yes"; then
13419
13420 $as_echo "#define HAVE_NS 1" >>confdefs.h
13421
13422 if test "${NS_IMPL_COCOA}" = "yes"; then
13423
13424 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13425
13426 fi
13427 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13428
13429 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13430
13431 # See also .m.o rule in Makefile.in */
13432 # FIXME: are all these flags really needed? Document here why. */
13433 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13434 ## Extra CFLAGS applied to src/*.m files.
13435 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"
13436 fi
13437 # We also have mouse menus.
13438 HAVE_MENUS=yes
13439 OTHER_FILES=ns-app
13440 fi
13441
13442 if test "${HAVE_W32}" = "yes"; then
13443 HAVE_MENUS=yes
13444 fi
13445
13446 ### Use session management (-lSM -lICE) if available
13447 HAVE_X_SM=no
13448 LIBXSM=
13449 if test "${HAVE_X11}" = "yes"; then
13450 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13451 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13453 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13454 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 ac_check_lib_save_LIBS=$LIBS
13458 LIBS="-lSM -lICE $LIBS"
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461
13462 /* Override any GCC internal prototype to avoid an error.
13463 Use char because int might match the return type of a GCC
13464 builtin and then its argument prototype would still apply. */
13465 #ifdef __cplusplus
13466 extern "C"
13467 #endif
13468 char SmcOpenConnection ();
13469 int
13470 main ()
13471 {
13472 return SmcOpenConnection ();
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 if ac_fn_c_try_link "$LINENO"; then :
13478 ac_cv_lib_SM_SmcOpenConnection=yes
13479 else
13480 ac_cv_lib_SM_SmcOpenConnection=no
13481 fi
13482 rm -f core conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13485 fi
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13487 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13488 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13489 HAVE_X_SM=yes
13490 fi
13491
13492 fi
13493
13494
13495
13496 if test "${HAVE_X_SM}" = "yes"; then
13497
13498 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13499
13500 LIBXSM="-lSM -lICE"
13501 case "$LIBS" in
13502 *-lSM*) ;;
13503 *) LIBS="$LIBXSM $LIBS" ;;
13504 esac
13505 fi
13506 fi
13507
13508
13509 ### Use libxml (-lxml2) if available
13510 HAVE_LIBXML2=no
13511 if test "${with_xml2}" != "no"; then
13512 ### I'm not sure what the version number should be, so I just guessed.
13513
13514 succeeded=no
13515
13516 if test "$PKG_CONFIG" = "no" ; then
13517 HAVE_LIBXML2=no
13518 else
13519 PKG_CONFIG_MIN_VERSION=0.9.0
13520 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13522 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13523
13524 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13525 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13526 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13527 edit_cflags="
13528 s,///*,/,g
13529 s/^/ /
13530 s/ -I/ $isystem/g
13531 s/^ //
13532 "
13533 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13534 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13536 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13537 succeeded=yes
13538 else
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13540 $as_echo "no" >&6; }
13541 LIBXML2_CFLAGS=""
13542 LIBXML2_LIBS=""
13543 ## If we have a custom action on failure, don't print errors, but
13544 ## do set a variable so people can do so. Do it in a subshell
13545 ## to capture any diagnostics in invoking pkg-config.
13546 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13547
13548 fi
13549
13550
13551
13552 else
13553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13555 fi
13556 fi
13557
13558 if test $succeeded = yes; then
13559 HAVE_LIBXML2=yes
13560 else
13561 HAVE_LIBXML2=no
13562 fi
13563
13564 if test "${HAVE_LIBXML2}" = "yes"; then
13565 LIBS="$LIBXML2_LIBS $LIBS"
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13567 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13568 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 ac_check_lib_save_LIBS=$LIBS
13572 LIBS="-lxml2 $LIBS"
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575
13576 /* Override any GCC internal prototype to avoid an error.
13577 Use char because int might match the return type of a GCC
13578 builtin and then its argument prototype would still apply. */
13579 #ifdef __cplusplus
13580 extern "C"
13581 #endif
13582 char htmlReadMemory ();
13583 int
13584 main ()
13585 {
13586 return htmlReadMemory ();
13587 ;
13588 return 0;
13589 }
13590 _ACEOF
13591 if ac_fn_c_try_link "$LINENO"; then :
13592 ac_cv_lib_xml2_htmlReadMemory=yes
13593 else
13594 ac_cv_lib_xml2_htmlReadMemory=no
13595 fi
13596 rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 LIBS=$ac_check_lib_save_LIBS
13599 fi
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13601 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13602 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13603 HAVE_LIBXML2=yes
13604 else
13605 HAVE_LIBXML2=no
13606 fi
13607
13608 if test "${HAVE_LIBXML2}" = "yes"; then
13609
13610 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13611
13612 else
13613 LIBXML2_LIBS=""
13614 LIBXML2_CFLAGS=""
13615 fi
13616 fi
13617 fi
13618
13619
13620
13621 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13623 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13624 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 #include <netdb.h>
13630 int
13631 main ()
13632 {
13633 return h_errno;
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 if ac_fn_c_try_link "$LINENO"; then :
13639 emacs_cv_netdb_declares_h_errno=yes
13640 else
13641 emacs_cv_netdb_declares_h_errno=no
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 fi
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13647 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13648 if test $emacs_cv_netdb_declares_h_errno = yes; then
13649
13650 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13651
13652 fi
13653
13654 # sqrt and other floating-point functions such as fmod and frexp
13655 # are found in -lm on most systems.
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13657 $as_echo_n "checking for sqrt in -lm... " >&6; }
13658 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 ac_check_lib_save_LIBS=$LIBS
13662 LIBS="-lm $LIBS"
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13665
13666 /* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13669 #ifdef __cplusplus
13670 extern "C"
13671 #endif
13672 char sqrt ();
13673 int
13674 main ()
13675 {
13676 return sqrt ();
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13682 ac_cv_lib_m_sqrt=yes
13683 else
13684 ac_cv_lib_m_sqrt=no
13685 fi
13686 rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 LIBS=$ac_check_lib_save_LIBS
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13691 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13692 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13693 cat >>confdefs.h <<_ACEOF
13694 #define HAVE_LIBM 1
13695 _ACEOF
13696
13697 LIBS="-lm $LIBS"
13698
13699 fi
13700
13701
13702 # Check for mail-locking functions in a "mail" library. Probably this should
13703 # have the same check as for liblockfile below.
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13705 $as_echo_n "checking for maillock in -lmail... " >&6; }
13706 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13707 $as_echo_n "(cached) " >&6
13708 else
13709 ac_check_lib_save_LIBS=$LIBS
13710 LIBS="-lmail $LIBS"
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13713
13714 /* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13717 #ifdef __cplusplus
13718 extern "C"
13719 #endif
13720 char maillock ();
13721 int
13722 main ()
13723 {
13724 return maillock ();
13725 ;
13726 return 0;
13727 }
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"; then :
13730 ac_cv_lib_mail_maillock=yes
13731 else
13732 ac_cv_lib_mail_maillock=no
13733 fi
13734 rm -f core conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext conftest.$ac_ext
13736 LIBS=$ac_check_lib_save_LIBS
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13739 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13740 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13741 have_mail=yes
13742 else
13743 have_mail=no
13744 fi
13745
13746 if test $have_mail = yes; then
13747 LIBS_MAIL=-lmail
13748 LIBS="$LIBS_MAIL $LIBS"
13749
13750 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13751
13752 else
13753 LIBS_MAIL=
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13756 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13757 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 ac_check_lib_save_LIBS=$LIBS
13761 LIBS="-llockfile $LIBS"
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764
13765 /* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13768 #ifdef __cplusplus
13769 extern "C"
13770 #endif
13771 char maillock ();
13772 int
13773 main ()
13774 {
13775 return maillock ();
13776 ;
13777 return 0;
13778 }
13779 _ACEOF
13780 if ac_fn_c_try_link "$LINENO"; then :
13781 ac_cv_lib_lockfile_maillock=yes
13782 else
13783 ac_cv_lib_lockfile_maillock=no
13784 fi
13785 rm -f core conftest.err conftest.$ac_objext \
13786 conftest$ac_exeext conftest.$ac_ext
13787 LIBS=$ac_check_lib_save_LIBS
13788 fi
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13790 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13791 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13792 have_lockfile=yes
13793 else
13794 have_lockfile=no
13795 fi
13796
13797 if test $have_lockfile = yes; then
13798 LIBS_MAIL=-llockfile
13799 LIBS="$LIBS_MAIL $LIBS"
13800
13801 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13802
13803 else
13804 # If we have the shared liblockfile, assume we must use it for mail
13805 # locking (e.g. Debian). If we couldn't link against liblockfile
13806 # (no liblockfile.a installed), ensure that we don't need to.
13807 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13808 set dummy liblockfile.so; ac_word=$2
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810 $as_echo_n "checking for $ac_word... " >&6; }
13811 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13812 $as_echo_n "(cached) " >&6
13813 else
13814 if test -n "$liblockfile"; then
13815 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13816 else
13817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13818 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13819 for as_dir in $as_dummy
13820 do
13821 IFS=$as_save_IFS
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13825 ac_cv_prog_liblockfile="yes"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 break 2
13828 fi
13829 done
13830 done
13831 IFS=$as_save_IFS
13832
13833 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13834 fi
13835 fi
13836 liblockfile=$ac_cv_prog_liblockfile
13837 if test -n "$liblockfile"; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13839 $as_echo "$liblockfile" >&6; }
13840 else
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13843 fi
13844
13845
13846 if test $ac_cv_prog_liblockfile = yes; then
13847 as_fn_error "Shared liblockfile found but can't link against it.
13848 This probably means that movemail could lose mail.
13849 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13850 fi
13851 fi
13852
13853
13854
13855
13856
13857 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13858 ## interlock access to the mail spool. The alternative is a lock file named
13859 ## /usr/spool/mail/$USER.lock.
13860 mail_lock=no
13861 case "$opsys" in
13862 aix4-2) mail_lock="lockf" ;;
13863
13864 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13865
13866 ## On GNU/Linux systems, both methods are used by various mail programs.
13867 ## I assume most people are using newer mailers that have heard of flock.
13868 ## Change this if you need to.
13869 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13870 ## configure gets the right answers, and that means *NOT* using flock.
13871 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13872 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13873 ## Debian maintainer hasn't provided a clean fix for Emacs.
13874 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13875 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13876 ## correct logic. -- fx
13877 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13878 ## liblockfile is a Free Software replacement for libmail, used on
13879 ## Debian systems and elsewhere. -rfr.
13880 gnu-*)
13881 mail_lock="flock"
13882 if test $have_mail = yes || test $have_lockfile = yes; then
13883 test $ac_cv_header_maillock_h = yes && mail_lock=no
13884 fi
13885 ;;
13886 esac
13887
13888 BLESSMAIL_TARGET=
13889 case "$mail_lock" in
13890 flock)
13891 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13892 ;;
13893
13894 lockf)
13895 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13896 ;;
13897
13898 *) BLESSMAIL_TARGET="need-blessmail" ;;
13899 esac
13900
13901
13902
13903 for ac_func in gethostname \
13904 getrusage get_current_dir_name \
13905 lrand48 \
13906 select getpagesize setlocale \
13907 utimes getrlimit setrlimit shutdown getaddrinfo \
13908 strsignal setitimer \
13909 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13910 gai_strerror mkstemp getline getdelim fsync sync \
13911 difftime posix_memalign \
13912 getpwent endpwent getgrent endgrent \
13913 touchlock \
13914 cfmakeraw cfsetspeed copysign __executable_start
13915 do :
13916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13917 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13918 eval as_val=\$$as_ac_var
13919 if test "x$as_val" = x""yes; then :
13920 cat >>confdefs.h <<_ACEOF
13921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13922 _ACEOF
13923
13924 fi
13925 done
13926
13927
13928 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13929 ## has a broken `rint' in some library versions including math library
13930 ## version number A.09.05.
13931 ## You can fix the math library by installing patch number PHSS_4630.
13932 ## But we can fix it more reliably for Emacs by just not using rint.
13933 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13934 case $opsys in
13935 hpux*) : ;;
13936 *) for ac_func in random rint
13937 do :
13938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13939 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13940 eval as_val=\$$as_ac_var
13941 if test "x$as_val" = x""yes; then :
13942 cat >>confdefs.h <<_ACEOF
13943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13944 _ACEOF
13945
13946 fi
13947 done
13948 ;;
13949 esac
13950
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13952 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13953 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13958
13959 int
13960 main ()
13961 {
13962 __builtin_unwind_init ();
13963 ;
13964 return 0;
13965 }
13966 _ACEOF
13967 if ac_fn_c_try_link "$LINENO"; then :
13968 emacs_cv_func___builtin_unwind_init=yes
13969 else
13970 emacs_cv_func___builtin_unwind_init=no
13971 fi
13972 rm -f core conftest.err conftest.$ac_objext \
13973 conftest$ac_exeext conftest.$ac_ext
13974 fi
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13976 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13977 if test $emacs_cv_func___builtin_unwind_init = yes; then
13978
13979 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13980
13981 fi
13982
13983
13984
13985
13986
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13988 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13989 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 while :; do
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 #include <sys/types.h> /* for off_t */
13996 #include <stdio.h>
13997 int
13998 main ()
13999 {
14000 int (*fp) (FILE *, off_t, int) = fseeko;
14001 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14002 ;
14003 return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_c_try_link "$LINENO"; then :
14007 ac_cv_sys_largefile_source=no; break
14008 fi
14009 rm -f core conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14013 #define _LARGEFILE_SOURCE 1
14014 #include <sys/types.h> /* for off_t */
14015 #include <stdio.h>
14016 int
14017 main ()
14018 {
14019 int (*fp) (FILE *, off_t, int) = fseeko;
14020 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14021 ;
14022 return 0;
14023 }
14024 _ACEOF
14025 if ac_fn_c_try_link "$LINENO"; then :
14026 ac_cv_sys_largefile_source=1; break
14027 fi
14028 rm -f core conftest.err conftest.$ac_objext \
14029 conftest$ac_exeext conftest.$ac_ext
14030 ac_cv_sys_largefile_source=unknown
14031 break
14032 done
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14035 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14036 case $ac_cv_sys_largefile_source in #(
14037 no | unknown) ;;
14038 *)
14039 cat >>confdefs.h <<_ACEOF
14040 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14041 _ACEOF
14042 ;;
14043 esac
14044 rm -rf conftest*
14045
14046 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14047 # in glibc 2.1.3, but that breaks too many other things.
14048 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14049 if test $ac_cv_sys_largefile_source != unknown; then
14050
14051 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14052
14053 fi
14054
14055
14056 # UNIX98 PTYs.
14057 for ac_func in grantpt
14058 do :
14059 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14060 if test "x$ac_cv_func_grantpt" = x""yes; then :
14061 cat >>confdefs.h <<_ACEOF
14062 #define HAVE_GRANTPT 1
14063 _ACEOF
14064
14065 fi
14066 done
14067
14068
14069 # PTY-related GNU extensions.
14070 for ac_func in getpt posix_openpt
14071 do :
14072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14074 eval as_val=\$$as_ac_var
14075 if test "x$as_val" = x""yes; then :
14076 cat >>confdefs.h <<_ACEOF
14077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14078 _ACEOF
14079
14080 fi
14081 done
14082
14083
14084 # Check this now, so that we will NOT find the above functions in ncurses.
14085 # That is because we have not set up to link ncurses in lib-src.
14086 # It's better to believe a function is not available
14087 # than to expect to find it in ncurses.
14088 # Also we need tputs and friends to be able to build at all.
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14090 $as_echo_n "checking for library containing tputs... " >&6; }
14091 # Run a test program that contains a call to tputs, a call that is
14092 # never executed. This tests whether a pre-'main' dynamic linker
14093 # works with the library. It's too much trouble to actually call
14094 # tputs in the test program, due to portability hassles. When
14095 # cross-compiling, assume the test program will run if it links.
14096
14097 # Maybe curses should be tried earlier?
14098 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14099 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14100 OLIBS=$LIBS
14101 if test -z "$tputs_library"; then
14102 LIBS_TERMCAP=
14103 msg='none required'
14104 else
14105 LIBS_TERMCAP=-l$tputs_library
14106 msg=$LIBS_TERMCAP
14107 LIBS="$LIBS_TERMCAP $LIBS"
14108 fi
14109 if test "$cross_compiling" = yes; then :
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14112
14113 extern void tputs (const char *, int, int (*)(int));
14114 int main (int argc, char **argv)
14115 {
14116 if (argc == 10000)
14117 tputs (argv[0], 0, 0);
14118 return 0;
14119 }
14120
14121 _ACEOF
14122 if ac_fn_c_try_link "$LINENO"; then :
14123
14124 else
14125 msg=no
14126 fi
14127 rm -f core conftest.err conftest.$ac_objext \
14128 conftest$ac_exeext conftest.$ac_ext
14129 else
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14132
14133 extern void tputs (const char *, int, int (*)(int));
14134 int main (int argc, char **argv)
14135 {
14136 if (argc == 10000)
14137 tputs (argv[0], 0, 0);
14138 return 0;
14139 }
14140
14141 _ACEOF
14142 if ac_fn_c_try_run "$LINENO"; then :
14143
14144 else
14145 msg=no
14146 fi
14147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14148 conftest.$ac_objext conftest.beam conftest.$ac_ext
14149 fi
14150
14151 LIBS=$OLIBS
14152 if test "X$msg" != Xno; then
14153 break
14154 fi
14155 done
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14157 $as_echo "$msg" >&6; }
14158 if test "X$msg" = Xno; then
14159 as_fn_error "The required function \`tputs' was not found in any library.
14160 The following libraries were tried (in order):
14161 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14162 Please try installing whichever of these libraries is most appropriate
14163 for your system, together with its header files.
14164 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14165 fi
14166
14167 ## Use termcap instead of terminfo?
14168 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14169 TERMINFO=yes
14170 ## FIXME? In the cases below where we unconditionally set
14171 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14172 ## if that was found above to have tputs.
14173 ## Should we use the gnu* logic everywhere?
14174 case "$opsys" in
14175 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14176 ## The ncurses library has been moved out of the System framework in
14177 ## Mac OS X 10.2. So if configure detects it, set the command-line
14178 ## option to use it.
14179 darwin) LIBS_TERMCAP="-lncurses" ;;
14180
14181 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14182
14183 freebsd)
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14185 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14186 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 #include <osreldate.h>
14192 int
14193 main ()
14194 {
14195 #if __FreeBSD_version < 400000
14196 fail;
14197 #endif
14198
14199 ;
14200 return 0;
14201 }
14202 _ACEOF
14203 if ac_fn_c_try_link "$LINENO"; then :
14204 emacs_cv_freebsd_terminfo=yes
14205 else
14206 emacs_cv_freebsd_terminfo=no
14207 fi
14208 rm -f core conftest.err conftest.$ac_objext \
14209 conftest$ac_exeext conftest.$ac_ext
14210 fi
14211
14212
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14214 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14215
14216 if test $emacs_cv_freebsd_terminfo = yes; then
14217 LIBS_TERMCAP="-lncurses"
14218 else
14219 TERMINFO=no
14220 LIBS_TERMCAP="-ltermcap"
14221 fi
14222 ;;
14223
14224 netbsd)
14225 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14226 TERMINFO=no
14227 LIBS_TERMCAP="-ltermcap"
14228 fi
14229 ;;
14230
14231 openbsd) LIBS_TERMCAP="-lncurses" ;;
14232
14233 ## hpux: Make sure we get select from libc rather than from libcurses
14234 ## because libcurses on HPUX 10.10 has a broken version of select.
14235 ## We used to use -lc -lcurses, but this may be cleaner.
14236 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14237 # set that way, now it uses the default). Isn't this a contradiction?
14238 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14239
14240 esac
14241
14242 TERMCAP_OBJ=tparam.o
14243 if test $TERMINFO = yes; then
14244
14245 $as_echo "#define TERMINFO 1" >>confdefs.h
14246
14247 TERMCAP_OBJ=terminfo.o
14248 fi
14249
14250
14251
14252
14253 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14254 # On Darwin, res_init appears not to be useful: see bug#562 and
14255 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14256 resolv=no
14257
14258 if test $opsys != darwin; then
14259
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14262 #include <netinet/in.h>
14263 #include <arpa/nameser.h>
14264 #include <resolv.h>
14265 int
14266 main ()
14267 {
14268 return res_init();
14269 ;
14270 return 0;
14271 }
14272 _ACEOF
14273 if ac_fn_c_try_link "$LINENO"; then :
14274 have_res_init=yes
14275 else
14276 have_res_init=no
14277 fi
14278 rm -f core conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
14280 if test "$have_res_init" = no; then
14281 OLIBS="$LIBS"
14282 LIBS="$LIBS -lresolv"
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14284 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287 #include <netinet/in.h>
14288 #include <arpa/nameser.h>
14289 #include <resolv.h>
14290 int
14291 main ()
14292 {
14293 return res_init();
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"; then :
14299 have_res_init=yes
14300 else
14301 have_res_init=no
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14306 $as_echo "$have_res_init" >&6; }
14307 if test "$have_res_init" = yes ; then
14308 resolv=yes
14309 fi
14310 LIBS="$OLIBS"
14311 fi
14312
14313 if test "$have_res_init" = yes; then
14314
14315 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14316
14317 fi
14318 fi
14319 # Do we need the Hesiod library to provide the support routines?
14320 LIBHESIOD=
14321 if test "$with_hesiod" != no ; then
14322 # Don't set $LIBS here -- see comments above. FIXME which comments?
14323 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14324 if test "x$ac_cv_func_res_send" = x""yes; then :
14325
14326 else
14327 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14328 if test "x$ac_cv_func___res_send" = x""yes; then :
14329
14330 else
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14332 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14333 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14334 $as_echo_n "(cached) " >&6
14335 else
14336 ac_check_lib_save_LIBS=$LIBS
14337 LIBS="-lresolv $LIBS"
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340
14341 /* Override any GCC internal prototype to avoid an error.
14342 Use char because int might match the return type of a GCC
14343 builtin and then its argument prototype would still apply. */
14344 #ifdef __cplusplus
14345 extern "C"
14346 #endif
14347 char res_send ();
14348 int
14349 main ()
14350 {
14351 return res_send ();
14352 ;
14353 return 0;
14354 }
14355 _ACEOF
14356 if ac_fn_c_try_link "$LINENO"; then :
14357 ac_cv_lib_resolv_res_send=yes
14358 else
14359 ac_cv_lib_resolv_res_send=no
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 LIBS=$ac_check_lib_save_LIBS
14364 fi
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14366 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14367 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14368 resolv=yes
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14371 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14372 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-lresolv $LIBS"
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14383 #ifdef __cplusplus
14384 extern "C"
14385 #endif
14386 char __res_send ();
14387 int
14388 main ()
14389 {
14390 return __res_send ();
14391 ;
14392 return 0;
14393 }
14394 _ACEOF
14395 if ac_fn_c_try_link "$LINENO"; then :
14396 ac_cv_lib_resolv___res_send=yes
14397 else
14398 ac_cv_lib_resolv___res_send=no
14399 fi
14400 rm -f core conftest.err conftest.$ac_objext \
14401 conftest$ac_exeext conftest.$ac_ext
14402 LIBS=$ac_check_lib_save_LIBS
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14405 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14406 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14407 resolv=yes
14408 fi
14409
14410 fi
14411
14412 fi
14413
14414 fi
14415
14416 if test "$resolv" = yes ; then
14417 RESOLVLIB=-lresolv
14418 else
14419 RESOLVLIB=
14420 fi
14421 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14422 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14423
14424 else
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14426 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14427 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14428 $as_echo_n "(cached) " >&6
14429 else
14430 ac_check_lib_save_LIBS=$LIBS
14431 LIBS="-lhesiod $RESOLVLIB $LIBS"
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14434
14435 /* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply. */
14438 #ifdef __cplusplus
14439 extern "C"
14440 #endif
14441 char hes_getmailhost ();
14442 int
14443 main ()
14444 {
14445 return hes_getmailhost ();
14446 ;
14447 return 0;
14448 }
14449 _ACEOF
14450 if ac_fn_c_try_link "$LINENO"; then :
14451 ac_cv_lib_hesiod_hes_getmailhost=yes
14452 else
14453 ac_cv_lib_hesiod_hes_getmailhost=no
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14457 LIBS=$ac_check_lib_save_LIBS
14458 fi
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14460 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14461 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14462 hesiod=yes
14463 else
14464 :
14465 fi
14466
14467 fi
14468
14469
14470 if test x"$hesiod" = xyes; then
14471
14472 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14473
14474 LIBHESIOD=-lhesiod
14475 fi
14476 fi
14477
14478
14479 # Do we need libresolv (due to res_init or Hesiod)?
14480 if test "$resolv" = yes && test $opsys != darwin; then
14481
14482 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14483
14484 LIBRESOLV=-lresolv
14485 else
14486 LIBRESOLV=
14487 fi
14488
14489
14490 # These tell us which Kerberos-related libraries to use.
14491 COM_ERRLIB=
14492 CRYPTOLIB=
14493 KRB5LIB=
14494 DESLIB=
14495 KRB4LIB=
14496
14497 if test "${with_kerberos}" != no; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14499 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14500 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14502 else
14503 ac_check_lib_save_LIBS=$LIBS
14504 LIBS="-lcom_err $LIBS"
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14507
14508 /* Override any GCC internal prototype to avoid an error.
14509 Use char because int might match the return type of a GCC
14510 builtin and then its argument prototype would still apply. */
14511 #ifdef __cplusplus
14512 extern "C"
14513 #endif
14514 char com_err ();
14515 int
14516 main ()
14517 {
14518 return com_err ();
14519 ;
14520 return 0;
14521 }
14522 _ACEOF
14523 if ac_fn_c_try_link "$LINENO"; then :
14524 ac_cv_lib_com_err_com_err=yes
14525 else
14526 ac_cv_lib_com_err_com_err=no
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext \
14529 conftest$ac_exeext conftest.$ac_ext
14530 LIBS=$ac_check_lib_save_LIBS
14531 fi
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14533 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14534 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14535 have_com_err=yes
14536 else
14537 have_com_err=no
14538 fi
14539
14540 if test $have_com_err = yes; then
14541 COM_ERRLIB=-lcom_err
14542 LIBS="$COM_ERRLIB $LIBS"
14543
14544 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14545
14546 fi
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14548 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14549 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14550 $as_echo_n "(cached) " >&6
14551 else
14552 ac_check_lib_save_LIBS=$LIBS
14553 LIBS="-lcrypto $LIBS"
14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h. */
14556
14557 /* Override any GCC internal prototype to avoid an error.
14558 Use char because int might match the return type of a GCC
14559 builtin and then its argument prototype would still apply. */
14560 #ifdef __cplusplus
14561 extern "C"
14562 #endif
14563 char mit_des_cbc_encrypt ();
14564 int
14565 main ()
14566 {
14567 return mit_des_cbc_encrypt ();
14568 ;
14569 return 0;
14570 }
14571 _ACEOF
14572 if ac_fn_c_try_link "$LINENO"; then :
14573 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14574 else
14575 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14576 fi
14577 rm -f core conftest.err conftest.$ac_objext \
14578 conftest$ac_exeext conftest.$ac_ext
14579 LIBS=$ac_check_lib_save_LIBS
14580 fi
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14582 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14583 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14584 have_crypto=yes
14585 else
14586 have_crypto=no
14587 fi
14588
14589 if test $have_crypto = yes; then
14590 CRYPTOLIB=-lcrypto
14591 LIBS="$CRYPTOLIB $LIBS"
14592
14593 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14594
14595 fi
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14597 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14598 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-lk5crypto $LIBS"
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605
14606 /* Override any GCC internal prototype to avoid an error.
14607 Use char because int might match the return type of a GCC
14608 builtin and then its argument prototype would still apply. */
14609 #ifdef __cplusplus
14610 extern "C"
14611 #endif
14612 char mit_des_cbc_encrypt ();
14613 int
14614 main ()
14615 {
14616 return mit_des_cbc_encrypt ();
14617 ;
14618 return 0;
14619 }
14620 _ACEOF
14621 if ac_fn_c_try_link "$LINENO"; then :
14622 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14623 else
14624 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14625 fi
14626 rm -f core conftest.err conftest.$ac_objext \
14627 conftest$ac_exeext conftest.$ac_ext
14628 LIBS=$ac_check_lib_save_LIBS
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14631 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14632 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14633 have_k5crypto=yes
14634 else
14635 have_k5crypto=no
14636 fi
14637
14638 if test $have_k5crypto = yes; then
14639 CRYPTOLIB=-lk5crypto
14640 LIBS="$CRYPTOLIB $LIBS"
14641
14642 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14643
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14646 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14647 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14648 $as_echo_n "(cached) " >&6
14649 else
14650 ac_check_lib_save_LIBS=$LIBS
14651 LIBS="-lkrb5 $LIBS"
14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14654
14655 /* Override any GCC internal prototype to avoid an error.
14656 Use char because int might match the return type of a GCC
14657 builtin and then its argument prototype would still apply. */
14658 #ifdef __cplusplus
14659 extern "C"
14660 #endif
14661 char krb5_init_context ();
14662 int
14663 main ()
14664 {
14665 return krb5_init_context ();
14666 ;
14667 return 0;
14668 }
14669 _ACEOF
14670 if ac_fn_c_try_link "$LINENO"; then :
14671 ac_cv_lib_krb5_krb5_init_context=yes
14672 else
14673 ac_cv_lib_krb5_krb5_init_context=no
14674 fi
14675 rm -f core conftest.err conftest.$ac_objext \
14676 conftest$ac_exeext conftest.$ac_ext
14677 LIBS=$ac_check_lib_save_LIBS
14678 fi
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14680 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14681 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14682 have_krb5=yes
14683 else
14684 have_krb5=no
14685 fi
14686
14687 if test $have_krb5=yes; then
14688 KRB5LIB=-lkrb5
14689 LIBS="$KRB5LIB $LIBS"
14690
14691 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14692
14693 fi
14694 if test "${with_kerberos5}" = no; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14696 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14697 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 ac_check_lib_save_LIBS=$LIBS
14701 LIBS="-ldes425 $LIBS"
14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703 /* end confdefs.h. */
14704
14705 /* Override any GCC internal prototype to avoid an error.
14706 Use char because int might match the return type of a GCC
14707 builtin and then its argument prototype would still apply. */
14708 #ifdef __cplusplus
14709 extern "C"
14710 #endif
14711 char des_cbc_encrypt ();
14712 int
14713 main ()
14714 {
14715 return des_cbc_encrypt ();
14716 ;
14717 return 0;
14718 }
14719 _ACEOF
14720 if ac_fn_c_try_link "$LINENO"; then :
14721 ac_cv_lib_des425_des_cbc_encrypt=yes
14722 else
14723 ac_cv_lib_des425_des_cbc_encrypt=no
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 LIBS=$ac_check_lib_save_LIBS
14728 fi
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14730 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14731 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14732 have_des425=yes
14733 else
14734 have_des425=no
14735 fi
14736
14737 if test $have_des425 = yes; then
14738 DESLIB=-ldes425
14739 LIBS="$DESLIB $LIBS"
14740
14741 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14742
14743 else
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14745 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14746 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 ac_check_lib_save_LIBS=$LIBS
14750 LIBS="-ldes $LIBS"
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753
14754 /* Override any GCC internal prototype to avoid an error.
14755 Use char because int might match the return type of a GCC
14756 builtin and then its argument prototype would still apply. */
14757 #ifdef __cplusplus
14758 extern "C"
14759 #endif
14760 char des_cbc_encrypt ();
14761 int
14762 main ()
14763 {
14764 return des_cbc_encrypt ();
14765 ;
14766 return 0;
14767 }
14768 _ACEOF
14769 if ac_fn_c_try_link "$LINENO"; then :
14770 ac_cv_lib_des_des_cbc_encrypt=yes
14771 else
14772 ac_cv_lib_des_des_cbc_encrypt=no
14773 fi
14774 rm -f core conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14776 LIBS=$ac_check_lib_save_LIBS
14777 fi
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14779 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14780 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14781 have_des=yes
14782 else
14783 have_des=no
14784 fi
14785
14786 if test $have_des = yes; then
14787 DESLIB=-ldes
14788 LIBS="$DESLIB $LIBS"
14789
14790 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14791
14792 fi
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14795 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14796 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14797 $as_echo_n "(cached) " >&6
14798 else
14799 ac_check_lib_save_LIBS=$LIBS
14800 LIBS="-lkrb4 $LIBS"
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14803
14804 /* Override any GCC internal prototype to avoid an error.
14805 Use char because int might match the return type of a GCC
14806 builtin and then its argument prototype would still apply. */
14807 #ifdef __cplusplus
14808 extern "C"
14809 #endif
14810 char krb_get_cred ();
14811 int
14812 main ()
14813 {
14814 return krb_get_cred ();
14815 ;
14816 return 0;
14817 }
14818 _ACEOF
14819 if ac_fn_c_try_link "$LINENO"; then :
14820 ac_cv_lib_krb4_krb_get_cred=yes
14821 else
14822 ac_cv_lib_krb4_krb_get_cred=no
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14826 LIBS=$ac_check_lib_save_LIBS
14827 fi
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14829 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14830 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14831 have_krb4=yes
14832 else
14833 have_krb4=no
14834 fi
14835
14836 if test $have_krb4 = yes; then
14837 KRB4LIB=-lkrb4
14838 LIBS="$KRB4LIB $LIBS"
14839
14840 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14841
14842 else
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14844 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14845 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 ac_check_lib_save_LIBS=$LIBS
14849 LIBS="-lkrb $LIBS"
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h. */
14852
14853 /* Override any GCC internal prototype to avoid an error.
14854 Use char because int might match the return type of a GCC
14855 builtin and then its argument prototype would still apply. */
14856 #ifdef __cplusplus
14857 extern "C"
14858 #endif
14859 char krb_get_cred ();
14860 int
14861 main ()
14862 {
14863 return krb_get_cred ();
14864 ;
14865 return 0;
14866 }
14867 _ACEOF
14868 if ac_fn_c_try_link "$LINENO"; then :
14869 ac_cv_lib_krb_krb_get_cred=yes
14870 else
14871 ac_cv_lib_krb_krb_get_cred=no
14872 fi
14873 rm -f core conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14875 LIBS=$ac_check_lib_save_LIBS
14876 fi
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14878 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14879 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14880 have_krb=yes
14881 else
14882 have_krb=no
14883 fi
14884
14885 if test $have_krb = yes; then
14886 KRB4LIB=-lkrb
14887 LIBS="$KRB4LIB $LIBS"
14888
14889 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14890
14891 fi
14892 fi
14893 fi
14894
14895 if test "${with_kerberos5}" != no; then
14896 for ac_header in krb5.h
14897 do :
14898 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14899 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14900 cat >>confdefs.h <<_ACEOF
14901 #define HAVE_KRB5_H 1
14902 _ACEOF
14903 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14904 "
14905 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14906
14907 cat >>confdefs.h <<_ACEOF
14908 #define HAVE_KRB5_ERROR_TEXT 1
14909 _ACEOF
14910
14911
14912 fi
14913 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14914 "
14915 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14916
14917 cat >>confdefs.h <<_ACEOF
14918 #define HAVE_KRB5_ERROR_E_TEXT 1
14919 _ACEOF
14920
14921
14922 fi
14923
14924 fi
14925
14926 done
14927
14928 else
14929 for ac_header in des.h
14930 do :
14931 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14932 if test "x$ac_cv_header_des_h" = x""yes; then :
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_DES_H 1
14935 _ACEOF
14936
14937 else
14938 for ac_header in kerberosIV/des.h
14939 do :
14940 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14941 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14942 cat >>confdefs.h <<_ACEOF
14943 #define HAVE_KERBEROSIV_DES_H 1
14944 _ACEOF
14945
14946 else
14947 for ac_header in kerberos/des.h
14948 do :
14949 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14950 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14951 cat >>confdefs.h <<_ACEOF
14952 #define HAVE_KERBEROS_DES_H 1
14953 _ACEOF
14954
14955 fi
14956
14957 done
14958
14959 fi
14960
14961 done
14962
14963 fi
14964
14965 done
14966
14967 for ac_header in krb.h
14968 do :
14969 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14970 if test "x$ac_cv_header_krb_h" = x""yes; then :
14971 cat >>confdefs.h <<_ACEOF
14972 #define HAVE_KRB_H 1
14973 _ACEOF
14974
14975 else
14976 for ac_header in kerberosIV/krb.h
14977 do :
14978 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14979 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14980 cat >>confdefs.h <<_ACEOF
14981 #define HAVE_KERBEROSIV_KRB_H 1
14982 _ACEOF
14983
14984 else
14985 for ac_header in kerberos/krb.h
14986 do :
14987 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14988 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_KERBEROS_KRB_H 1
14991 _ACEOF
14992
14993 fi
14994
14995 done
14996
14997 fi
14998
14999 done
15000
15001 fi
15002
15003 done
15004
15005 fi
15006 for ac_header in com_err.h
15007 do :
15008 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15009 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15010 cat >>confdefs.h <<_ACEOF
15011 #define HAVE_COM_ERR_H 1
15012 _ACEOF
15013
15014 fi
15015
15016 done
15017
15018 fi
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029 for ac_func in $ac_func_list
15030 do :
15031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15032 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15033 eval as_val=\$$as_ac_var
15034 if test "x$as_val" = x""yes; then :
15035 cat >>confdefs.h <<_ACEOF
15036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15037 _ACEOF
15038
15039 fi
15040 done
15041
15042
15043
15044
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15046 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15047 if test "${emacs_cv_localtime_cache+set}" = set; then :
15048 $as_echo_n "(cached) " >&6
15049 else
15050 if test x$ac_cv_func_tzset = xyes; then
15051 if test "$cross_compiling" = yes; then :
15052 # If we have tzset, assume the worst when cross-compiling.
15053 emacs_cv_localtime_cache=yes
15054 else
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #include <time.h>
15058 char TZ_GMT0[] = "TZ=GMT0";
15059 char TZ_PST8[] = "TZ=PST8";
15060 main()
15061 {
15062 time_t now = time ((time_t *) 0);
15063 int hour_GMT0, hour_unset;
15064 if (putenv (TZ_GMT0) != 0)
15065 exit (1);
15066 hour_GMT0 = localtime (&now)->tm_hour;
15067 unsetenv("TZ");
15068 hour_unset = localtime (&now)->tm_hour;
15069 if (putenv (TZ_PST8) != 0)
15070 exit (1);
15071 if (localtime (&now)->tm_hour == hour_GMT0)
15072 exit (1);
15073 unsetenv("TZ");
15074 if (localtime (&now)->tm_hour != hour_unset)
15075 exit (1);
15076 exit (0);
15077 }
15078 _ACEOF
15079 if ac_fn_c_try_run "$LINENO"; then :
15080 emacs_cv_localtime_cache=no
15081 else
15082 emacs_cv_localtime_cache=yes
15083 fi
15084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15085 conftest.$ac_objext conftest.beam conftest.$ac_ext
15086 fi
15087
15088 else
15089 # If we lack tzset, report that localtime does not cache TZ,
15090 # since we can't invalidate the cache if we don't have tzset.
15091 emacs_cv_localtime_cache=no
15092 fi
15093 fi
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15095 $as_echo "$emacs_cv_localtime_cache" >&6; }
15096 if test $emacs_cv_localtime_cache = yes; then
15097
15098 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15099
15100 fi
15101
15102 ok_so_far=yes
15103 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15104 if test "x$ac_cv_func_socket" = x""yes; then :
15105
15106 else
15107 ok_so_far=no
15108 fi
15109
15110 if test $ok_so_far = yes; then
15111 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15112 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15113
15114 else
15115 ok_so_far=no
15116 fi
15117
15118
15119 fi
15120 if test $ok_so_far = yes; then
15121 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15122 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15123
15124 else
15125 ok_so_far=no
15126 fi
15127
15128
15129 fi
15130 if test $ok_so_far = yes; then
15131
15132 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15133
15134 fi
15135
15136 if test -f /usr/lpp/X11/bin/smt.exp; then
15137
15138 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15139
15140 fi
15141
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15143 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15144 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15146 $as_echo "yes" >&6; }
15147
15148 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15149
15150 else
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15152 $as_echo "no" >&6; }
15153 fi
15154
15155 case $canonical in
15156 *-solaris2.4 | *-solaris2.4.*)
15157 : ${ac_cv_func_vfork_works=no};;
15158 esac
15159
15160 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15161 if test "x$ac_cv_type_pid_t" = x""yes; then :
15162
15163 else
15164
15165 cat >>confdefs.h <<_ACEOF
15166 #define pid_t int
15167 _ACEOF
15168
15169 fi
15170
15171 for ac_header in vfork.h
15172 do :
15173 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15174 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15175 cat >>confdefs.h <<_ACEOF
15176 #define HAVE_VFORK_H 1
15177 _ACEOF
15178
15179 fi
15180
15181 done
15182
15183 for ac_func in fork vfork
15184 do :
15185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15187 eval as_val=\$$as_ac_var
15188 if test "x$as_val" = x""yes; then :
15189 cat >>confdefs.h <<_ACEOF
15190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15191 _ACEOF
15192
15193 fi
15194 done
15195
15196 if test "x$ac_cv_func_fork" = xyes; then
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15198 $as_echo_n "checking for working fork... " >&6; }
15199 if test "${ac_cv_func_fork_works+set}" = set; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15202 if test "$cross_compiling" = yes; then :
15203 ac_cv_func_fork_works=cross
15204 else
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207 $ac_includes_default
15208 int
15209 main ()
15210 {
15211
15212 /* By Ruediger Kuhlmann. */
15213 return fork () < 0;
15214
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 if ac_fn_c_try_run "$LINENO"; then :
15220 ac_cv_func_fork_works=yes
15221 else
15222 ac_cv_func_fork_works=no
15223 fi
15224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15225 conftest.$ac_objext conftest.beam conftest.$ac_ext
15226 fi
15227
15228 fi
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15230 $as_echo "$ac_cv_func_fork_works" >&6; }
15231
15232 else
15233 ac_cv_func_fork_works=$ac_cv_func_fork
15234 fi
15235 if test "x$ac_cv_func_fork_works" = xcross; then
15236 case $host in
15237 *-*-amigaos* | *-*-msdosdjgpp*)
15238 # Override, as these systems have only a dummy fork() stub
15239 ac_cv_func_fork_works=no
15240 ;;
15241 *)
15242 ac_cv_func_fork_works=yes
15243 ;;
15244 esac
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15246 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15247 fi
15248 ac_cv_func_vfork_works=$ac_cv_func_vfork
15249 if test "x$ac_cv_func_vfork" = xyes; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15251 $as_echo_n "checking for working vfork... " >&6; }
15252 if test "${ac_cv_func_vfork_works+set}" = set; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 if test "$cross_compiling" = yes; then :
15256 ac_cv_func_vfork_works=cross
15257 else
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15260 /* Thanks to Paul Eggert for this test. */
15261 $ac_includes_default
15262 #include <sys/wait.h>
15263 #ifdef HAVE_VFORK_H
15264 # include <vfork.h>
15265 #endif
15266 /* On some sparc systems, changes by the child to local and incoming
15267 argument registers are propagated back to the parent. The compiler
15268 is told about this with #include <vfork.h>, but some compilers
15269 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15270 static variable whose address is put into a register that is
15271 clobbered by the vfork. */
15272 static void
15273 #ifdef __cplusplus
15274 sparc_address_test (int arg)
15275 # else
15276 sparc_address_test (arg) int arg;
15277 #endif
15278 {
15279 static pid_t child;
15280 if (!child) {
15281 child = vfork ();
15282 if (child < 0) {
15283 perror ("vfork");
15284 _exit(2);
15285 }
15286 if (!child) {
15287 arg = getpid();
15288 write(-1, "", 0);
15289 _exit (arg);
15290 }
15291 }
15292 }
15293
15294 int
15295 main ()
15296 {
15297 pid_t parent = getpid ();
15298 pid_t child;
15299
15300 sparc_address_test (0);
15301
15302 child = vfork ();
15303
15304 if (child == 0) {
15305 /* Here is another test for sparc vfork register problems. This
15306 test uses lots of local variables, at least as many local
15307 variables as main has allocated so far including compiler
15308 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15309 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15310 reuse the register of parent for one of the local variables,
15311 since it will think that parent can't possibly be used any more
15312 in this routine. Assigning to the local variable will thus
15313 munge parent in the parent process. */
15314 pid_t
15315 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15316 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15317 /* Convince the compiler that p..p7 are live; otherwise, it might
15318 use the same hardware register for all 8 local variables. */
15319 if (p != p1 || p != p2 || p != p3 || p != p4
15320 || p != p5 || p != p6 || p != p7)
15321 _exit(1);
15322
15323 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15324 from child file descriptors. If the child closes a descriptor
15325 before it execs or exits, this munges the parent's descriptor
15326 as well. Test for this by closing stdout in the child. */
15327 _exit(close(fileno(stdout)) != 0);
15328 } else {
15329 int status;
15330 struct stat st;
15331
15332 while (wait(&status) != child)
15333 ;
15334 return (
15335 /* Was there some problem with vforking? */
15336 child < 0
15337
15338 /* Did the child fail? (This shouldn't happen.) */
15339 || status
15340
15341 /* Did the vfork/compiler bug occur? */
15342 || parent != getpid()
15343
15344 /* Did the file descriptor bug occur? */
15345 || fstat(fileno(stdout), &st) != 0
15346 );
15347 }
15348 }
15349 _ACEOF
15350 if ac_fn_c_try_run "$LINENO"; then :
15351 ac_cv_func_vfork_works=yes
15352 else
15353 ac_cv_func_vfork_works=no
15354 fi
15355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15356 conftest.$ac_objext conftest.beam conftest.$ac_ext
15357 fi
15358
15359 fi
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15361 $as_echo "$ac_cv_func_vfork_works" >&6; }
15362
15363 fi;
15364 if test "x$ac_cv_func_fork_works" = xcross; then
15365 ac_cv_func_vfork_works=$ac_cv_func_vfork
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15367 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15368 fi
15369
15370 if test "x$ac_cv_func_vfork_works" = xyes; then
15371
15372 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15373
15374 else
15375
15376 $as_echo "#define vfork fork" >>confdefs.h
15377
15378 fi
15379 if test "x$ac_cv_func_fork_works" = xyes; then
15380
15381 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15382
15383 fi
15384
15385
15386 for ac_func in snprintf
15387 do :
15388 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15389 if test "x$ac_cv_func_snprintf" = x""yes; then :
15390 cat >>confdefs.h <<_ACEOF
15391 #define HAVE_SNPRINTF 1
15392 _ACEOF
15393
15394 fi
15395 done
15396
15397
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15399 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15400 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15401 $as_echo_n "(cached) " >&6
15402 else
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15405 #include <langinfo.h>
15406 int
15407 main ()
15408 {
15409 char* cs = nl_langinfo(CODESET);
15410 ;
15411 return 0;
15412 }
15413 _ACEOF
15414 if ac_fn_c_try_link "$LINENO"; then :
15415 emacs_cv_langinfo_codeset=yes
15416 else
15417 emacs_cv_langinfo_codeset=no
15418 fi
15419 rm -f core conftest.err conftest.$ac_objext \
15420 conftest$ac_exeext conftest.$ac_ext
15421
15422 fi
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15424 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15425 if test $emacs_cv_langinfo_codeset = yes; then
15426
15427 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15428
15429 fi
15430
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15432 $as_echo_n "checking for mbstate_t... " >&6; }
15433 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15438 $ac_includes_default
15439 # include <wchar.h>
15440 int
15441 main ()
15442 {
15443 mbstate_t x; return sizeof x;
15444 ;
15445 return 0;
15446 }
15447 _ACEOF
15448 if ac_fn_c_try_compile "$LINENO"; then :
15449 ac_cv_type_mbstate_t=yes
15450 else
15451 ac_cv_type_mbstate_t=no
15452 fi
15453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 fi
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15456 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15457 if test $ac_cv_type_mbstate_t = yes; then
15458
15459 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15460
15461 else
15462
15463 $as_echo "#define mbstate_t int" >>confdefs.h
15464
15465 fi
15466
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15468 $as_echo_n "checking for C restricted array declarations... " >&6; }
15469 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15470 $as_echo_n "(cached) " >&6
15471 else
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15474 void fred (int x[__restrict]);
15475 int
15476 main ()
15477 {
15478
15479 ;
15480 return 0;
15481 }
15482 _ACEOF
15483 if ac_fn_c_try_compile "$LINENO"; then :
15484 emacs_cv_c_restrict_arr=yes
15485 else
15486 emacs_cv_c_restrict_arr=no
15487 fi
15488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 fi
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15491 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15492 if test "$emacs_cv_c_restrict_arr" = yes; then
15493
15494 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15495
15496 fi
15497
15498
15499
15500 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15501
15502
15503
15504 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15505
15506
15507 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15508
15509 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15510
15511
15512
15513 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15514
15515
15516
15517
15518
15519 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15520
15521
15522
15523 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15524
15525
15526
15527 $as_echo "#define subprocesses 1" >>confdefs.h
15528
15529
15530
15531 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15532
15533
15534
15535
15536 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15537
15538
15539
15540
15541
15542 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15543
15544
15545
15546 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15547
15548
15549
15550 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15551
15552
15553
15554
15555
15556 case $opsys in
15557 aix4-2)
15558 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15559 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15560
15561 fi
15562 ;;
15563
15564 hpux*)
15565 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15566
15567 ;;
15568 esac
15569
15570
15571 case $opsys in
15572 irix6-5 | sol2* | unixware )
15573
15574 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15575
15576 ;;
15577 esac
15578
15579 emacs_broken_SIGIO=no
15580
15581 case $opsys in
15582 hpux* | irix6-5 | openbsd | sol2* | unixware )
15583 emacs_broken_SIGIO=yes
15584 ;;
15585
15586 aix4-2)
15587
15588 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15589
15590 ;;
15591
15592 freebsd)
15593
15594 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15595
15596 ;;
15597 esac
15598
15599 case $opsys in
15600 gnu-* | sol2-10 )
15601
15602 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15603
15604 ;;
15605 esac
15606
15607 case $opsys in
15608 darwin | freebsd | netbsd | openbsd )
15609
15610 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15611
15612 ;;
15613 esac
15614
15615 case $opsys in
15616 netbsd | openbsd) sound_device="/dev/audio" ;;
15617 *) sound_device="/dev/dsp" ;;
15618 esac
15619
15620
15621 cat >>confdefs.h <<_ACEOF
15622 #define DEFAULT_SOUND_DEVICE "$sound_device"
15623 _ACEOF
15624
15625
15626
15627 case $opsys in
15628 darwin | gnu-linux | gnu-kfreebsd )
15629
15630 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15631
15632 ;;
15633 esac
15634
15635
15636 case $opsys in
15637 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15638
15639 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15640
15641 ;;
15642 esac
15643
15644
15645
15646
15647
15648
15649
15650
15651 case $opsys in
15652 aix4-2 )
15653 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15654
15655 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15656
15657 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15658
15659 ;;
15660
15661 cygwin )
15662 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15663
15664 $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
15665
15666 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15667
15668 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15669
15670 ;;
15671
15672 darwin )
15673 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15674
15675 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15676
15677 $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
15678
15679 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15680
15681 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15682
15683 ;;
15684
15685 gnu | openbsd )
15686 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15687
15688 ;;
15689
15690 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15691 if test "x$ac_cv_func_grantpt" = xyes; then
15692
15693 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15694
15695 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15696
15697 $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
15698
15699 if test "x$ac_cv_func_posix_openpt" = xyes; then
15700 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15701
15702 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15703
15704 elif test "x$ac_cv_func_getpt" = xyes; then
15705 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15706
15707 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15708
15709 else
15710 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15711
15712 fi
15713 else
15714 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15715
15716 fi
15717 ;;
15718
15719 hpux*)
15720 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15721
15722 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15723
15724 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15725
15726 ;;
15727
15728 irix6-5 )
15729 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15730
15731 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15732
15733 $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
15734
15735 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15736
15737 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15738
15739 ;;
15740
15741 sol2* )
15742 $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
15743
15744 ;;
15745
15746 unixware )
15747 $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
15748
15749 ;;
15750 esac
15751
15752
15753 case $opsys in
15754 sol2* | unixware )
15755 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15756
15757 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15758
15759
15760 $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
15761
15762 ;;
15763 esac
15764
15765
15766
15767
15768 case $opsys in
15769 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin )
15770 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15771
15772 ;;
15773
15774 gnu-linux | gnu-kfreebsd )
15775
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15777 $as_echo_n "checking for signals via characters... " >&6; }
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779 /* end confdefs.h. */
15780
15781 #include <linux/version.h>
15782 #if LINUX_VERSION_CODE < 0x20400
15783 # error "Linux version too old"
15784 #endif
15785
15786 int
15787 main ()
15788 {
15789
15790 ;
15791 return 0;
15792 }
15793 _ACEOF
15794 if ac_fn_c_try_cpp "$LINENO"; then :
15795 emacs_signals_via_chars=yes
15796 else
15797 emacs_signals_via_chars=no
15798 fi
15799 rm -f conftest.err conftest.$ac_ext
15800
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15802 $as_echo "$emacs_signals_via_chars" >&6; }
15803 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15804
15805 ;;
15806 esac
15807
15808
15809
15810
15811
15812 case $opsys in
15813 gnu)
15814 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15815
15816 ;;
15817
15818 aix*)
15819 $as_echo "#define DATA_START 0x20000000" >>confdefs.h
15820
15821 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15822
15823 ;;
15824 hpux*)
15825 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15826
15827 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15828
15829 ;;
15830 irix6-5)
15831 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15832
15833 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15834
15835 ;;
15836 esac
15837
15838
15839
15840
15841 case $opsys in
15842 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15843 ;;
15844
15845 gnu | freebsd | netbsd | openbsd )
15846
15847 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15848
15849 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15850
15851 ;;
15852
15853 gnu-linux | gnu-kfreebsd )
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856
15857 #ifndef __ia64__
15858 # error "not ia64"
15859 #endif
15860
15861 int
15862 main ()
15863 {
15864
15865 ;
15866 return 0;
15867 }
15868 _ACEOF
15869 if ac_fn_c_try_cpp "$LINENO"; then :
15870
15871 $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
15872
15873 fi
15874 rm -f conftest.err conftest.$ac_ext
15875 ;;
15876
15877 hpux*)
15878
15879 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15880
15881 ;;
15882 esac
15883
15884
15885
15886
15887
15888 case $opsys in
15889 gnu-linux | gnu-kfreebsd )
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15892
15893 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15894 || defined __alpha__ || defined __mips__ || defined __s390__ \
15895 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15896 || defined __ia64__ || defined __sh__
15897 /* ok */
15898 #else
15899 # error "setjmp not known to work on this arch"
15900 #endif
15901
15902 int
15903 main ()
15904 {
15905
15906 ;
15907 return 0;
15908 }
15909 _ACEOF
15910 if ac_fn_c_try_cpp "$LINENO"; then :
15911 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15912
15913 fi
15914 rm -f conftest.err conftest.$ac_ext
15915 ;;
15916 esac
15917
15918
15919 if test x$GCC = xyes; then
15920 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15921
15922 else
15923 case $opsys in
15924 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15925 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15926
15927 ;;
15928 esac
15929 fi
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15931 $as_echo_n "checking for _setjmp... " >&6; }
15932 if test "${emacs_cv_func__setjmp+set}" = set; then :
15933 $as_echo_n "(cached) " >&6
15934 else
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937 #include <setjmp.h>
15938
15939 int
15940 main ()
15941 {
15942 jmp_buf j;
15943 if (! _setjmp (j))
15944 _longjmp (j, 1);
15945 ;
15946 return 0;
15947 }
15948 _ACEOF
15949 if ac_fn_c_try_link "$LINENO"; then :
15950 emacs_cv_func__setjmp=yes
15951 else
15952 emacs_cv_func__setjmp=no
15953 fi
15954 rm -f core conftest.err conftest.$ac_objext \
15955 conftest$ac_exeext conftest.$ac_ext
15956 fi
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15958 $as_echo "$emacs_cv_func__setjmp" >&6; }
15959 if test $emacs_cv_func__setjmp = yes; then
15960
15961 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15962
15963 else
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15965 $as_echo_n "checking for sigsetjmp... " >&6; }
15966 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15967 $as_echo_n "(cached) " >&6
15968 else
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15971 #include <setjmp.h>
15972
15973 int
15974 main ()
15975 {
15976 sigjmp_buf j;
15977 if (! sigsetjmp (j, 1))
15978 siglongjmp (j, 1);
15979 ;
15980 return 0;
15981 }
15982 _ACEOF
15983 if ac_fn_c_try_link "$LINENO"; then :
15984 emacs_cv_func_sigsetjmp=yes
15985 else
15986 emacs_cv_func_sigsetjmp=no
15987 fi
15988 rm -f core conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
15990 fi
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15992 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15993 if test $emacs_cv_func_sigsetjmp = yes; then
15994
15995 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15996
15997 fi
15998 fi
15999
16000 case $opsys in
16001 sol2* | unixware )
16002
16003 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16004
16005 ;;
16006 esac
16007
16008
16009 case $opsys in
16010 hpux* | sol2* )
16011
16012 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16013
16014 ;;
16015 esac
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025 case $opsys in
16026 aix4-2)
16027 $as_echo "#define USG /**/" >>confdefs.h
16028
16029 $as_echo "#define USG5 /**/" >>confdefs.h
16030
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033
16034 #ifndef _AIX
16035 # error "_AIX not defined"
16036 #endif
16037
16038 int
16039 main ()
16040 {
16041
16042 ;
16043 return 0;
16044 }
16045 _ACEOF
16046 if ac_fn_c_try_cpp "$LINENO"; then :
16047
16048 else
16049
16050 $as_echo "#define _AIX /**/" >>confdefs.h
16051
16052 fi
16053 rm -f conftest.err conftest.$ac_ext
16054 ;;
16055
16056 cygwin)
16057
16058 $as_echo "#define CYGWIN 1" >>confdefs.h
16059
16060 ;;
16061
16062 darwin)
16063 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
16064
16065
16066 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16067
16068 ;;
16069
16070 freebsd)
16071
16072 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
16073
16074 ;;
16075
16076 gnu | netbsd | openbsd )
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079
16080 #ifndef BSD_SYSTEM
16081 # error "BSD_SYSTEM not defined"
16082 #endif
16083
16084 int
16085 main ()
16086 {
16087
16088 ;
16089 return 0;
16090 }
16091 _ACEOF
16092 if ac_fn_c_try_cpp "$LINENO"; then :
16093
16094 else
16095 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
16096
16097 fi
16098 rm -f conftest.err conftest.$ac_ext
16099 ;;
16100
16101 gnu-linux | gnu-kfreebsd )
16102 $as_echo "#define USG /**/" >>confdefs.h
16103
16104
16105 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16106
16107 ;;
16108
16109 hpux*)
16110 $as_echo "#define USG /**/" >>confdefs.h
16111
16112 $as_echo "#define USG5 /**/" >>confdefs.h
16113
16114
16115 $as_echo "#define HPUX /**/" >>confdefs.h
16116
16117 ;;
16118
16119 irix6-5)
16120 $as_echo "#define USG /**/" >>confdefs.h
16121
16122 $as_echo "#define USG5 /**/" >>confdefs.h
16123
16124 $as_echo "#define USG5_4 /**/" >>confdefs.h
16125
16126
16127 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16128
16129 ;;
16130
16131 sol2*)
16132 $as_echo "#define USG /**/" >>confdefs.h
16133
16134 $as_echo "#define USG5 /**/" >>confdefs.h
16135
16136 $as_echo "#define USG5_4 /**/" >>confdefs.h
16137
16138
16139 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16140
16141 ;;
16142
16143 unixware)
16144 $as_echo "#define USG /**/" >>confdefs.h
16145
16146 $as_echo "#define USG5 /**/" >>confdefs.h
16147
16148 $as_echo "#define USG5_4 /**/" >>confdefs.h
16149
16150 ;;
16151 esac
16152
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16154 $as_echo_n "checking for usable FIONREAD... " >&6; }
16155 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16156 $as_echo_n "(cached) " >&6
16157 else
16158 case $opsys in
16159 aix4-2)
16160 emacs_cv_usable_FIONREAD=no
16161 ;;
16162
16163 *)
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166 #include <sys/types.h>
16167 #include <sys/ioctl.h>
16168 #ifdef USG5_4
16169 # include <sys/filio.h>
16170 #endif
16171
16172 int
16173 main ()
16174 {
16175 int foo = ioctl (0, FIONREAD, &foo);
16176 ;
16177 return 0;
16178 }
16179 _ACEOF
16180 if ac_fn_c_try_compile "$LINENO"; then :
16181 emacs_cv_usable_FIONREAD=yes
16182 else
16183 emacs_cv_usable_FIONREAD=no
16184 fi
16185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16186 ;;
16187 esac
16188 fi
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16190 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16191 if test $emacs_cv_usable_FIONREAD = yes; then
16192
16193 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16194
16195
16196 if test $emacs_broken_SIGIO = no; then
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16198 $as_echo_n "checking for usable SIGIO... " >&6; }
16199 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16200 $as_echo_n "(cached) " >&6
16201 else
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 #include <fcntl.h>
16205 #include <signal.h>
16206
16207 int
16208 main ()
16209 {
16210 int foo = SIGIO | F_SETFL | FASYNC;
16211 ;
16212 return 0;
16213 }
16214 _ACEOF
16215 if ac_fn_c_try_compile "$LINENO"; then :
16216 emacs_cv_usable_SIGIO=yes
16217 else
16218 emacs_cv_usable_SIGIO=no
16219 fi
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221 fi
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16223 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16224 if test $emacs_cv_usable_SIGIO = yes; then
16225
16226 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16227
16228 fi
16229 fi
16230 fi
16231
16232
16233 case $opsys in
16234 cygwin)
16235
16236 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16237
16238 ;;
16239
16240 hpux11)
16241
16242 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16243
16244 ;;
16245
16246 irix6-5)
16247
16248 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16249
16250 ;;
16251
16252 sol2-10)
16253
16254 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16255
16256 ;;
16257 esac
16258
16259 # Set up the CFLAGS for real compilation, so we can substitute it.
16260 CFLAGS="$REAL_CFLAGS"
16261 CPPFLAGS="$REAL_CPPFLAGS"
16262
16263 ## Hack to detect a buggy GCC version.
16264 if test "x$GCC" = xyes \
16265 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16266 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16267 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16268 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16269 fi
16270
16271 version=$PACKAGE_VERSION
16272
16273 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
16274
16275 cat >>confdefs.h <<_ACEOF
16276 #define COPYRIGHT "$copyright"
16277 _ACEOF
16278
16279
16280
16281 ### Specify what sort of things we'll be editing into Makefile and config.h.
16282 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16283
16284
16285 ## Unused?
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16309 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16310 ## end of LIBX_BASE, but nothing ever set it.
16311
16312
16313
16314
16315 ## Used in lwlib/Makefile.in.
16316
16317
16318
16319
16320
16321
16322
16323
16324 if test -n "${term_header}"; then
16325
16326 cat >>confdefs.h <<_ACEOF
16327 #define TERM_HEADER "${term_header}"
16328 _ACEOF
16329
16330 fi
16331
16332
16333 cat >>confdefs.h <<_ACEOF
16334 #define EMACS_CONFIGURATION "${canonical}"
16335 _ACEOF
16336
16337 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16338
16339 cat >>confdefs.h <<_ACEOF
16340 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16341 _ACEOF
16342
16343
16344
16345 XMENU_OBJ=
16346 XOBJ=
16347 FONT_OBJ=
16348 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16349
16350 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16351
16352 XMENU_OBJ=xmenu.o
16353 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16354 FONT_OBJ=xfont.o
16355 if test "$HAVE_XFT" = "yes"; then
16356 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16357 elif test "$HAVE_FREETYPE" = "yes"; then
16358 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16359 fi
16360
16361 fi
16362
16363
16364
16365
16366 WIDGET_OBJ=
16367 MOTIF_LIBW=
16368 if test "${USE_X_TOOLKIT}" != "none" ; then
16369 WIDGET_OBJ=widget.o
16370
16371 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16372
16373 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16374
16375 $as_echo "#define USE_LUCID 1" >>confdefs.h
16376
16377 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16378
16379 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16380
16381 MOTIF_LIBW=-lXm
16382 case "$opsys" in
16383 gnu-linux)
16384 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16385 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16386 ;;
16387
16388 unixware)
16389 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16390 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16391 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16392 ;;
16393
16394 aix4-2)
16395 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16396 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16397 ;;
16398 esac
16399 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16400 fi
16401 fi
16402
16403
16404 TOOLKIT_LIBW=
16405 case "$USE_X_TOOLKIT" in
16406 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16407 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16408 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16409 esac
16410
16411
16412 if test "$USE_X_TOOLKIT" = "none"; then
16413 LIBXT_OTHER="\$(LIBXSM)"
16414 OLDXMENU_TARGET="really-oldXMenu"
16415 else
16416 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16417 OLDXMENU_TARGET="really-lwlib"
16418 fi
16419
16420
16421 ## The X Menu stuff is present in the X10 distribution, but missing
16422 ## from X11. If we have X10, just use the installed library;
16423 ## otherwise, use our own copy.
16424 if test "${HAVE_X11}" = "yes" ; then
16425
16426 $as_echo "#define HAVE_X11 1" >>confdefs.h
16427
16428
16429 if test "$USE_X_TOOLKIT" = "none"; then
16430 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16431 else
16432 OLDXMENU="\${lwlibdir}/liblw.a"
16433 fi
16434 LIBXMENU="\$(OLDXMENU)"
16435 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16436 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16437 else
16438 ## For a syntactically valid Makefile; not actually used for anything.
16439 ## See comments in src/Makefile.in.
16440 OLDXMENU=nothing
16441 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16442 if test "${HAVE_X_WINDOWS}" = "yes"; then
16443 LIBXMENU="-lXMenu"
16444 else
16445 LIBXMENU=
16446 fi
16447 LIBX_OTHER=
16448 OLDXMENU_DEPS=
16449 fi
16450
16451 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16452 OLDXMENU_TARGET=
16453 OLDXMENU=nothing
16454 LIBXMENU=
16455 OLDXMENU_DEPS=
16456 fi
16457
16458
16459
16460
16461
16462
16463
16464 if test "${HAVE_MENUS}" = "yes" ; then
16465
16466 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16467
16468 fi
16469
16470 if test "${GNU_MALLOC}" = "yes" ; then
16471
16472 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16473
16474 fi
16475
16476 RALLOC_OBJ=
16477 if test "${REL_ALLOC}" = "yes" ; then
16478
16479 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16480
16481
16482 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16483 fi
16484
16485
16486 if test "$opsys" = "cygwin"; then
16487 CYGWIN_OBJ="sheap.o cygw32.o"
16488 ## Cygwin differs because of its unexec().
16489 PRE_ALLOC_OBJ=
16490 POST_ALLOC_OBJ=lastfile.o
16491 else
16492 CYGWIN_OBJ=
16493 PRE_ALLOC_OBJ=lastfile.o
16494 POST_ALLOC_OBJ=
16495 fi
16496
16497
16498
16499
16500 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16501 # it temporarily reverts them to their pre-pkg-config values,
16502 # because gnulib needs to work with both src (which uses the
16503 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16504 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16505 # and it therefore needs to run in an environment where LIBS does not
16506 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16507 # for some package unrelated to lib-src.
16508 SAVE_CFLAGS=$CFLAGS
16509 SAVE_LIBS=$LIBS
16510 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16511 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523 LIBC_FATAL_STDERR_=1
16524 export LIBC_FATAL_STDERR_
16525
16526 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16527 # for constant arguments. Useless!
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16529 $as_echo_n "checking for working alloca.h... " >&6; }
16530 if test "${ac_cv_working_alloca_h+set}" = set; then :
16531 $as_echo_n "(cached) " >&6
16532 else
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16535 #include <alloca.h>
16536 int
16537 main ()
16538 {
16539 char *p = (char *) alloca (2 * sizeof (int));
16540 if (p) return 0;
16541 ;
16542 return 0;
16543 }
16544 _ACEOF
16545 if ac_fn_c_try_link "$LINENO"; then :
16546 ac_cv_working_alloca_h=yes
16547 else
16548 ac_cv_working_alloca_h=no
16549 fi
16550 rm -f core conftest.err conftest.$ac_objext \
16551 conftest$ac_exeext conftest.$ac_ext
16552 fi
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16554 $as_echo "$ac_cv_working_alloca_h" >&6; }
16555 if test $ac_cv_working_alloca_h = yes; then
16556
16557 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16558
16559 fi
16560
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16562 $as_echo_n "checking for alloca... " >&6; }
16563 if test "${ac_cv_func_alloca_works+set}" = set; then :
16564 $as_echo_n "(cached) " >&6
16565 else
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16568 #ifdef __GNUC__
16569 # define alloca __builtin_alloca
16570 #else
16571 # ifdef _MSC_VER
16572 # include <malloc.h>
16573 # define alloca _alloca
16574 # else
16575 # ifdef HAVE_ALLOCA_H
16576 # include <alloca.h>
16577 # else
16578 # ifdef _AIX
16579 #pragma alloca
16580 # else
16581 # ifndef alloca /* predefined by HP cc +Olibcalls */
16582 char *alloca ();
16583 # endif
16584 # endif
16585 # endif
16586 # endif
16587 #endif
16588
16589 int
16590 main ()
16591 {
16592 char *p = (char *) alloca (1);
16593 if (p) return 0;
16594 ;
16595 return 0;
16596 }
16597 _ACEOF
16598 if ac_fn_c_try_link "$LINENO"; then :
16599 ac_cv_func_alloca_works=yes
16600 else
16601 ac_cv_func_alloca_works=no
16602 fi
16603 rm -f core conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16605 fi
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16607 $as_echo "$ac_cv_func_alloca_works" >&6; }
16608
16609 if test $ac_cv_func_alloca_works = yes; then
16610
16611 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16612
16613 else
16614 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16615 # that cause trouble. Some versions do not even contain alloca or
16616 # contain a buggy version. If you still want to use their alloca,
16617 # use ar to extract alloca.o from them instead of compiling alloca.c.
16618
16619
16620
16621
16622
16623 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16624
16625 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16626
16627
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16629 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16630 if test "${ac_cv_os_cray+set}" = set; then :
16631 $as_echo_n "(cached) " >&6
16632 else
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16635 #if defined CRAY && ! defined CRAY2
16636 webecray
16637 #else
16638 wenotbecray
16639 #endif
16640
16641 _ACEOF
16642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16643 $EGREP "webecray" >/dev/null 2>&1; then :
16644 ac_cv_os_cray=yes
16645 else
16646 ac_cv_os_cray=no
16647 fi
16648 rm -f conftest*
16649
16650 fi
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16652 $as_echo "$ac_cv_os_cray" >&6; }
16653 if test $ac_cv_os_cray = yes; then
16654 for ac_func in _getb67 GETB67 getb67; do
16655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16656 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16657 eval as_val=\$$as_ac_var
16658 if test "x$as_val" = x""yes; then :
16659
16660 cat >>confdefs.h <<_ACEOF
16661 #define CRAY_STACKSEG_END $ac_func
16662 _ACEOF
16663
16664 break
16665 fi
16666
16667 done
16668 fi
16669
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16671 $as_echo_n "checking stack direction for C alloca... " >&6; }
16672 if test "${ac_cv_c_stack_direction+set}" = set; then :
16673 $as_echo_n "(cached) " >&6
16674 else
16675 if test "$cross_compiling" = yes; then :
16676 ac_cv_c_stack_direction=0
16677 else
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16680 $ac_includes_default
16681 int
16682 find_stack_direction (int *addr, int depth)
16683 {
16684 int dir, dummy = 0;
16685 if (! addr)
16686 addr = &dummy;
16687 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16688 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16689 return dir + dummy;
16690 }
16691
16692 int
16693 main (int argc, char **argv)
16694 {
16695 return find_stack_direction (0, argc + !argv + 20) < 0;
16696 }
16697 _ACEOF
16698 if ac_fn_c_try_run "$LINENO"; then :
16699 ac_cv_c_stack_direction=1
16700 else
16701 ac_cv_c_stack_direction=-1
16702 fi
16703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16704 conftest.$ac_objext conftest.beam conftest.$ac_ext
16705 fi
16706
16707 fi
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16709 $as_echo "$ac_cv_c_stack_direction" >&6; }
16710 cat >>confdefs.h <<_ACEOF
16711 #define STACK_DIRECTION $ac_cv_c_stack_direction
16712 _ACEOF
16713
16714
16715 fi
16716
16717
16718
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16721 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16722 if test "${ac_cv_c_bigendian+set}" = set; then :
16723 $as_echo_n "(cached) " >&6
16724 else
16725 ac_cv_c_bigendian=unknown
16726 # See if we're dealing with a universal compiler.
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16729 #ifndef __APPLE_CC__
16730 not a universal capable compiler
16731 #endif
16732 typedef int dummy;
16733
16734 _ACEOF
16735 if ac_fn_c_try_compile "$LINENO"; then :
16736
16737 # Check for potential -arch flags. It is not universal unless
16738 # there are at least two -arch flags with different values.
16739 ac_arch=
16740 ac_prev=
16741 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16742 if test -n "$ac_prev"; then
16743 case $ac_word in
16744 i?86 | x86_64 | ppc | ppc64)
16745 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16746 ac_arch=$ac_word
16747 else
16748 ac_cv_c_bigendian=universal
16749 break
16750 fi
16751 ;;
16752 esac
16753 ac_prev=
16754 elif test "x$ac_word" = "x-arch"; then
16755 ac_prev=arch
16756 fi
16757 done
16758 fi
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16760 if test $ac_cv_c_bigendian = unknown; then
16761 # See if sys/param.h defines the BYTE_ORDER macro.
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 #include <sys/types.h>
16765 #include <sys/param.h>
16766
16767 int
16768 main ()
16769 {
16770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16772 && LITTLE_ENDIAN)
16773 bogus endian macros
16774 #endif
16775
16776 ;
16777 return 0;
16778 }
16779 _ACEOF
16780 if ac_fn_c_try_compile "$LINENO"; then :
16781 # It does; now see whether it defined to BIG_ENDIAN or not.
16782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783 /* end confdefs.h. */
16784 #include <sys/types.h>
16785 #include <sys/param.h>
16786
16787 int
16788 main ()
16789 {
16790 #if BYTE_ORDER != BIG_ENDIAN
16791 not big endian
16792 #endif
16793
16794 ;
16795 return 0;
16796 }
16797 _ACEOF
16798 if ac_fn_c_try_compile "$LINENO"; then :
16799 ac_cv_c_bigendian=yes
16800 else
16801 ac_cv_c_bigendian=no
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804 fi
16805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806 fi
16807 if test $ac_cv_c_bigendian = unknown; then
16808 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811 #include <limits.h>
16812
16813 int
16814 main ()
16815 {
16816 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16817 bogus endian macros
16818 #endif
16819
16820 ;
16821 return 0;
16822 }
16823 _ACEOF
16824 if ac_fn_c_try_compile "$LINENO"; then :
16825 # It does; now see whether it defined to _BIG_ENDIAN or not.
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16828 #include <limits.h>
16829
16830 int
16831 main ()
16832 {
16833 #ifndef _BIG_ENDIAN
16834 not big endian
16835 #endif
16836
16837 ;
16838 return 0;
16839 }
16840 _ACEOF
16841 if ac_fn_c_try_compile "$LINENO"; then :
16842 ac_cv_c_bigendian=yes
16843 else
16844 ac_cv_c_bigendian=no
16845 fi
16846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847 fi
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849 fi
16850 if test $ac_cv_c_bigendian = unknown; then
16851 # Compile a test program.
16852 if test "$cross_compiling" = yes; then :
16853 # Try to guess by grepping values from an object file.
16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855 /* end confdefs.h. */
16856 short int ascii_mm[] =
16857 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16858 short int ascii_ii[] =
16859 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16860 int use_ascii (int i) {
16861 return ascii_mm[i] + ascii_ii[i];
16862 }
16863 short int ebcdic_ii[] =
16864 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16865 short int ebcdic_mm[] =
16866 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16867 int use_ebcdic (int i) {
16868 return ebcdic_mm[i] + ebcdic_ii[i];
16869 }
16870 extern int foo;
16871
16872 int
16873 main ()
16874 {
16875 return use_ascii (foo) == use_ebcdic (foo);
16876 ;
16877 return 0;
16878 }
16879 _ACEOF
16880 if ac_fn_c_try_compile "$LINENO"; then :
16881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16882 ac_cv_c_bigendian=yes
16883 fi
16884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16885 if test "$ac_cv_c_bigendian" = unknown; then
16886 ac_cv_c_bigendian=no
16887 else
16888 # finding both strings is unlikely to happen, but who knows?
16889 ac_cv_c_bigendian=unknown
16890 fi
16891 fi
16892 fi
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 else
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h. */
16897 $ac_includes_default
16898 int
16899 main ()
16900 {
16901
16902 /* Are we little or big endian? From Harbison&Steele. */
16903 union
16904 {
16905 long int l;
16906 char c[sizeof (long int)];
16907 } u;
16908 u.l = 1;
16909 return u.c[sizeof (long int) - 1] == 1;
16910
16911 ;
16912 return 0;
16913 }
16914 _ACEOF
16915 if ac_fn_c_try_run "$LINENO"; then :
16916 ac_cv_c_bigendian=no
16917 else
16918 ac_cv_c_bigendian=yes
16919 fi
16920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16921 conftest.$ac_objext conftest.beam conftest.$ac_ext
16922 fi
16923
16924 fi
16925 fi
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16927 $as_echo "$ac_cv_c_bigendian" >&6; }
16928 case $ac_cv_c_bigendian in #(
16929 yes)
16930 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16931 ;; #(
16932 no)
16933 ;; #(
16934 universal)
16935
16936 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16937
16938 ;; #(
16939 *)
16940 as_fn_error "unknown endianness
16941 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16942 esac
16943
16944
16945
16946 GNULIB_CHDIR=0;
16947 GNULIB_CHOWN=0;
16948 GNULIB_CLOSE=0;
16949 GNULIB_DUP=0;
16950 GNULIB_DUP2=0;
16951 GNULIB_DUP3=0;
16952 GNULIB_ENVIRON=0;
16953 GNULIB_EUIDACCESS=0;
16954 GNULIB_FACCESSAT=0;
16955 GNULIB_FCHDIR=0;
16956 GNULIB_FCHOWNAT=0;
16957 GNULIB_FDATASYNC=0;
16958 GNULIB_FSYNC=0;
16959 GNULIB_FTRUNCATE=0;
16960 GNULIB_GETCWD=0;
16961 GNULIB_GETDOMAINNAME=0;
16962 GNULIB_GETDTABLESIZE=0;
16963 GNULIB_GETGROUPS=0;
16964 GNULIB_GETHOSTNAME=0;
16965 GNULIB_GETLOGIN=0;
16966 GNULIB_GETLOGIN_R=0;
16967 GNULIB_GETPAGESIZE=0;
16968 GNULIB_GETUSERSHELL=0;
16969 GNULIB_GROUP_MEMBER=0;
16970 GNULIB_ISATTY=0;
16971 GNULIB_LCHOWN=0;
16972 GNULIB_LINK=0;
16973 GNULIB_LINKAT=0;
16974 GNULIB_LSEEK=0;
16975 GNULIB_PIPE=0;
16976 GNULIB_PIPE2=0;
16977 GNULIB_PREAD=0;
16978 GNULIB_PWRITE=0;
16979 GNULIB_READ=0;
16980 GNULIB_READLINK=0;
16981 GNULIB_READLINKAT=0;
16982 GNULIB_RMDIR=0;
16983 GNULIB_SETHOSTNAME=0;
16984 GNULIB_SLEEP=0;
16985 GNULIB_SYMLINK=0;
16986 GNULIB_SYMLINKAT=0;
16987 GNULIB_TTYNAME_R=0;
16988 GNULIB_UNISTD_H_NONBLOCKING=0;
16989 GNULIB_UNISTD_H_SIGPIPE=0;
16990 GNULIB_UNLINK=0;
16991 GNULIB_UNLINKAT=0;
16992 GNULIB_USLEEP=0;
16993 GNULIB_WRITE=0;
16994 HAVE_CHOWN=1;
16995 HAVE_DUP2=1;
16996 HAVE_DUP3=1;
16997 HAVE_EUIDACCESS=1;
16998 HAVE_FACCESSAT=1;
16999 HAVE_FCHDIR=1;
17000 HAVE_FCHOWNAT=1;
17001 HAVE_FDATASYNC=1;
17002 HAVE_FSYNC=1;
17003 HAVE_FTRUNCATE=1;
17004 HAVE_GETDTABLESIZE=1;
17005 HAVE_GETGROUPS=1;
17006 HAVE_GETHOSTNAME=1;
17007 HAVE_GETLOGIN=1;
17008 HAVE_GETPAGESIZE=1;
17009 HAVE_GROUP_MEMBER=1;
17010 HAVE_LCHOWN=1;
17011 HAVE_LINK=1;
17012 HAVE_LINKAT=1;
17013 HAVE_PIPE=1;
17014 HAVE_PIPE2=1;
17015 HAVE_PREAD=1;
17016 HAVE_PWRITE=1;
17017 HAVE_READLINK=1;
17018 HAVE_READLINKAT=1;
17019 HAVE_SETHOSTNAME=1;
17020 HAVE_SLEEP=1;
17021 HAVE_SYMLINK=1;
17022 HAVE_SYMLINKAT=1;
17023 HAVE_UNLINKAT=1;
17024 HAVE_USLEEP=1;
17025 HAVE_DECL_ENVIRON=1;
17026 HAVE_DECL_FCHDIR=1;
17027 HAVE_DECL_FDATASYNC=1;
17028 HAVE_DECL_GETDOMAINNAME=1;
17029 HAVE_DECL_GETLOGIN_R=1;
17030 HAVE_DECL_GETPAGESIZE=1;
17031 HAVE_DECL_GETUSERSHELL=1;
17032 HAVE_DECL_SETHOSTNAME=1;
17033 HAVE_DECL_TTYNAME_R=1;
17034 HAVE_OS_H=0;
17035 HAVE_SYS_PARAM_H=0;
17036 REPLACE_CHOWN=0;
17037 REPLACE_CLOSE=0;
17038 REPLACE_DUP=0;
17039 REPLACE_DUP2=0;
17040 REPLACE_FCHOWNAT=0;
17041 REPLACE_FTRUNCATE=0;
17042 REPLACE_GETCWD=0;
17043 REPLACE_GETDOMAINNAME=0;
17044 REPLACE_GETLOGIN_R=0;
17045 REPLACE_GETGROUPS=0;
17046 REPLACE_GETPAGESIZE=0;
17047 REPLACE_ISATTY=0;
17048 REPLACE_LCHOWN=0;
17049 REPLACE_LINK=0;
17050 REPLACE_LINKAT=0;
17051 REPLACE_LSEEK=0;
17052 REPLACE_PREAD=0;
17053 REPLACE_PWRITE=0;
17054 REPLACE_READ=0;
17055 REPLACE_READLINK=0;
17056 REPLACE_RMDIR=0;
17057 REPLACE_SLEEP=0;
17058 REPLACE_SYMLINK=0;
17059 REPLACE_TTYNAME_R=0;
17060 REPLACE_UNLINK=0;
17061 REPLACE_UNLINKAT=0;
17062 REPLACE_USLEEP=0;
17063 REPLACE_WRITE=0;
17064 UNISTD_H_HAVE_WINSOCK2_H=0;
17065 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17066
17067
17068
17069 GNULIB_OPENDIR=0;
17070 GNULIB_READDIR=0;
17071 GNULIB_REWINDDIR=0;
17072 GNULIB_CLOSEDIR=0;
17073 GNULIB_DIRFD=0;
17074 GNULIB_FDOPENDIR=0;
17075 GNULIB_SCANDIR=0;
17076 GNULIB_ALPHASORT=0;
17077 HAVE_OPENDIR=1;
17078 HAVE_READDIR=1;
17079 HAVE_REWINDDIR=1;
17080 HAVE_CLOSEDIR=1;
17081 HAVE_DECL_DIRFD=1;
17082 HAVE_DECL_FDOPENDIR=1;
17083 HAVE_FDOPENDIR=1;
17084 HAVE_SCANDIR=1;
17085 HAVE_ALPHASORT=1;
17086 REPLACE_OPENDIR=0;
17087 REPLACE_CLOSEDIR=0;
17088 REPLACE_DIRFD=0;
17089 REPLACE_FDOPENDIR=0;
17090
17091
17092
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17094 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17095 if test "${gl_cv_have_include_next+set}" = set; then :
17096 $as_echo_n "(cached) " >&6
17097 else
17098 rm -rf conftestd1a conftestd1b conftestd2
17099 mkdir conftestd1a conftestd1b conftestd2
17100 cat <<EOF > conftestd1a/conftest.h
17101 #define DEFINED_IN_CONFTESTD1
17102 #include_next <conftest.h>
17103 #ifdef DEFINED_IN_CONFTESTD2
17104 int foo;
17105 #else
17106 #error "include_next doesn't work"
17107 #endif
17108 EOF
17109 cat <<EOF > conftestd1b/conftest.h
17110 #define DEFINED_IN_CONFTESTD1
17111 #include <stdio.h>
17112 #include_next <conftest.h>
17113 #ifdef DEFINED_IN_CONFTESTD2
17114 int foo;
17115 #else
17116 #error "include_next doesn't work"
17117 #endif
17118 EOF
17119 cat <<EOF > conftestd2/conftest.h
17120 #ifndef DEFINED_IN_CONFTESTD1
17121 #error "include_next test doesn't work"
17122 #endif
17123 #define DEFINED_IN_CONFTESTD2
17124 EOF
17125 gl_save_CPPFLAGS="$CPPFLAGS"
17126 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 #include <conftest.h>
17130 _ACEOF
17131 if ac_fn_c_try_compile "$LINENO"; then :
17132 gl_cv_have_include_next=yes
17133 else
17134 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17137 #include <conftest.h>
17138 _ACEOF
17139 if ac_fn_c_try_compile "$LINENO"; then :
17140 gl_cv_have_include_next=buggy
17141 else
17142 gl_cv_have_include_next=no
17143 fi
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145
17146 fi
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 CPPFLAGS="$gl_save_CPPFLAGS"
17149 rm -rf conftestd1a conftestd1b conftestd2
17150
17151 fi
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17153 $as_echo "$gl_cv_have_include_next" >&6; }
17154 PRAGMA_SYSTEM_HEADER=
17155 if test $gl_cv_have_include_next = yes; then
17156 INCLUDE_NEXT=include_next
17157 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17158 if test -n "$GCC"; then
17159 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17160 fi
17161 else
17162 if test $gl_cv_have_include_next = buggy; then
17163 INCLUDE_NEXT=include
17164 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17165 else
17166 INCLUDE_NEXT=include
17167 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17168 fi
17169 fi
17170
17171
17172
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17174 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17175 if test "${gl_cv_pragma_columns+set}" = set; then :
17176 $as_echo_n "(cached) " >&6
17177 else
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179 /* end confdefs.h. */
17180
17181 #ifdef __TANDEM
17182 choke me
17183 #endif
17184
17185 _ACEOF
17186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17187 $EGREP "choke me" >/dev/null 2>&1; then :
17188 gl_cv_pragma_columns=yes
17189 else
17190 gl_cv_pragma_columns=no
17191 fi
17192 rm -f conftest*
17193
17194
17195 fi
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17197 $as_echo "$gl_cv_pragma_columns" >&6; }
17198 if test $gl_cv_pragma_columns = yes; then
17199 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17200 else
17201 PRAGMA_COLUMNS=
17202 fi
17203
17204
17205
17206
17207
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17209 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17210 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17211 $as_echo_n "(cached) " >&6
17212 else
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17215 /* On HP-UX before 11.23, strtold returns a struct instead of
17216 long double. Reject implementations like that, by requiring
17217 compatibility with the C99 prototype. */
17218 #include <stdlib.h>
17219 static long double (*p) (char const *, char **) = strtold;
17220 static long double
17221 test (char const *nptr, char **endptr)
17222 {
17223 long double r;
17224 r = strtold (nptr, endptr);
17225 return r;
17226 }
17227 int
17228 main ()
17229 {
17230 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_link "$LINENO"; then :
17236 gl_cv_func_c99_strtold=yes
17237 else
17238 gl_cv_func_c99_strtold=no
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17242 fi
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17244 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17245 if test $gl_cv_func_c99_strtold = yes; then
17246
17247 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17248
17249 fi
17250
17251
17252
17253
17254
17255
17256
17257
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17259 $as_echo_n "checking if environ is properly declared... " >&6; }
17260 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17261 $as_echo_n "(cached) " >&6
17262 else
17263
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17266 #if HAVE_UNISTD_H
17267 #include <unistd.h>
17268 #endif
17269 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17270 #include <stdlib.h>
17271
17272 extern struct { int foo; } environ;
17273 int
17274 main ()
17275 {
17276 environ.foo = 1;
17277 ;
17278 return 0;
17279 }
17280 _ACEOF
17281 if ac_fn_c_try_compile "$LINENO"; then :
17282 gt_cv_var_environ_declaration=no
17283 else
17284 gt_cv_var_environ_declaration=yes
17285 fi
17286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17287 fi
17288
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17290 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17291 if test $gt_cv_var_environ_declaration = yes; then
17292
17293 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17294
17295 fi
17296
17297
17298 if test $gt_cv_var_environ_declaration != yes; then
17299 HAVE_DECL_ENVIRON=0
17300 fi
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310 GNULIB_FCNTL=0;
17311 GNULIB_NONBLOCKING=0;
17312 GNULIB_OPEN=0;
17313 GNULIB_OPENAT=0;
17314 HAVE_FCNTL=1;
17315 HAVE_OPENAT=1;
17316 REPLACE_FCNTL=0;
17317 REPLACE_OPEN=0;
17318 REPLACE_OPENAT=0;
17319
17320
17321 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17322 if test "x$ac_cv_type_mode_t" = x""yes; then :
17323
17324 else
17325
17326 cat >>confdefs.h <<_ACEOF
17327 #define mode_t int
17328 _ACEOF
17329
17330 fi
17331
17332
17333
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17335 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17336 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17337 $as_echo_n "(cached) " >&6
17338 else
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17341
17342 #include <sys/types.h>
17343 #include <sys/stat.h>
17344 int
17345 main ()
17346 {
17347 struct stat s; s.st_dm_mode;
17348 ;
17349 return 0;
17350 }
17351 _ACEOF
17352 if ac_fn_c_try_compile "$LINENO"; then :
17353 ac_cv_struct_st_dm_mode=yes
17354 else
17355 ac_cv_struct_st_dm_mode=no
17356 fi
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358 fi
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17360 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17361
17362 if test $ac_cv_struct_st_dm_mode = yes; then
17363
17364 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17365
17366 fi
17367
17368
17369 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17370 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17371 ac_have_decl=1
17372 else
17373 ac_have_decl=0
17374 fi
17375
17376 cat >>confdefs.h <<_ACEOF
17377 #define HAVE_DECL_STRMODE $ac_have_decl
17378 _ACEOF
17379
17380
17381
17382
17383
17384
17385 GNULIB_FCHMODAT=0;
17386 GNULIB_FSTAT=0;
17387 GNULIB_FSTATAT=0;
17388 GNULIB_FUTIMENS=0;
17389 GNULIB_LCHMOD=0;
17390 GNULIB_LSTAT=0;
17391 GNULIB_MKDIRAT=0;
17392 GNULIB_MKFIFO=0;
17393 GNULIB_MKFIFOAT=0;
17394 GNULIB_MKNOD=0;
17395 GNULIB_MKNODAT=0;
17396 GNULIB_STAT=0;
17397 GNULIB_UTIMENSAT=0;
17398 HAVE_FCHMODAT=1;
17399 HAVE_FSTATAT=1;
17400 HAVE_FUTIMENS=1;
17401 HAVE_LCHMOD=1;
17402 HAVE_LSTAT=1;
17403 HAVE_MKDIRAT=1;
17404 HAVE_MKFIFO=1;
17405 HAVE_MKFIFOAT=1;
17406 HAVE_MKNOD=1;
17407 HAVE_MKNODAT=1;
17408 HAVE_UTIMENSAT=1;
17409 REPLACE_FSTAT=0;
17410 REPLACE_FSTATAT=0;
17411 REPLACE_FUTIMENS=0;
17412 REPLACE_LSTAT=0;
17413 REPLACE_MKDIR=0;
17414 REPLACE_MKFIFO=0;
17415 REPLACE_MKNOD=0;
17416 REPLACE_STAT=0;
17417 REPLACE_UTIMENSAT=0;
17418
17419
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17421 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17422 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17423 $as_echo_n "(cached) " >&6
17424 else
17425 rm -f conftest.sym conftest.file
17426 echo >conftest.file
17427 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17428 if test "$cross_compiling" = yes; then :
17429 case "$host_os" in
17430 # Guess yes on glibc systems.
17431 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17432 # If we don't know, assume the worst.
17433 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17434 esac
17435
17436 else
17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17439 $ac_includes_default
17440 int
17441 main ()
17442 {
17443 struct stat sbuf;
17444 /* Linux will dereference the symlink and fail, as required by
17445 POSIX. That is better in the sense that it means we will not
17446 have to compile and use the lstat wrapper. */
17447 return lstat ("conftest.sym/", &sbuf) == 0;
17448
17449 ;
17450 return 0;
17451 }
17452 _ACEOF
17453 if ac_fn_c_try_run "$LINENO"; then :
17454 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17455 else
17456 gl_cv_func_lstat_dereferences_slashed_symlink=no
17457 fi
17458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17459 conftest.$ac_objext conftest.beam conftest.$ac_ext
17460 fi
17461
17462 else
17463 # If the 'ln -s' command failed, then we probably don't even
17464 # have an lstat function.
17465 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17466 fi
17467 rm -f conftest.sym conftest.file
17468
17469 fi
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17471 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17472 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17473 *yes)
17474
17475 cat >>confdefs.h <<_ACEOF
17476 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17477 _ACEOF
17478
17479 ;;
17480 esac
17481
17482
17483
17484
17485 GNULIB__EXIT=0;
17486 GNULIB_ATOLL=0;
17487 GNULIB_CALLOC_POSIX=0;
17488 GNULIB_CANONICALIZE_FILE_NAME=0;
17489 GNULIB_GETLOADAVG=0;
17490 GNULIB_GETSUBOPT=0;
17491 GNULIB_GRANTPT=0;
17492 GNULIB_MALLOC_POSIX=0;
17493 GNULIB_MBTOWC=0;
17494 GNULIB_MKDTEMP=0;
17495 GNULIB_MKOSTEMP=0;
17496 GNULIB_MKOSTEMPS=0;
17497 GNULIB_MKSTEMP=0;
17498 GNULIB_MKSTEMPS=0;
17499 GNULIB_POSIX_OPENPT=0;
17500 GNULIB_PTSNAME=0;
17501 GNULIB_PTSNAME_R=0;
17502 GNULIB_PUTENV=0;
17503 GNULIB_RANDOM=0;
17504 GNULIB_RANDOM_R=0;
17505 GNULIB_REALLOC_POSIX=0;
17506 GNULIB_REALPATH=0;
17507 GNULIB_RPMATCH=0;
17508 GNULIB_SECURE_GETENV=0;
17509 GNULIB_SETENV=0;
17510 GNULIB_STRTOD=0;
17511 GNULIB_STRTOLL=0;
17512 GNULIB_STRTOULL=0;
17513 GNULIB_SYSTEM_POSIX=0;
17514 GNULIB_UNLOCKPT=0;
17515 GNULIB_UNSETENV=0;
17516 GNULIB_WCTOMB=0;
17517 HAVE__EXIT=1;
17518 HAVE_ATOLL=1;
17519 HAVE_CANONICALIZE_FILE_NAME=1;
17520 HAVE_DECL_GETLOADAVG=1;
17521 HAVE_GETSUBOPT=1;
17522 HAVE_GRANTPT=1;
17523 HAVE_MKDTEMP=1;
17524 HAVE_MKOSTEMP=1;
17525 HAVE_MKOSTEMPS=1;
17526 HAVE_MKSTEMP=1;
17527 HAVE_MKSTEMPS=1;
17528 HAVE_POSIX_OPENPT=1;
17529 HAVE_PTSNAME=1;
17530 HAVE_PTSNAME_R=1;
17531 HAVE_RANDOM=1;
17532 HAVE_RANDOM_H=1;
17533 HAVE_RANDOM_R=1;
17534 HAVE_REALPATH=1;
17535 HAVE_RPMATCH=1;
17536 HAVE_SECURE_GETENV=1;
17537 HAVE_SETENV=1;
17538 HAVE_DECL_SETENV=1;
17539 HAVE_STRTOD=1;
17540 HAVE_STRTOLL=1;
17541 HAVE_STRTOULL=1;
17542 HAVE_STRUCT_RANDOM_DATA=1;
17543 HAVE_SYS_LOADAVG_H=0;
17544 HAVE_UNLOCKPT=1;
17545 HAVE_DECL_UNSETENV=1;
17546 REPLACE_CALLOC=0;
17547 REPLACE_CANONICALIZE_FILE_NAME=0;
17548 REPLACE_MALLOC=0;
17549 REPLACE_MBTOWC=0;
17550 REPLACE_MKSTEMP=0;
17551 REPLACE_PTSNAME=0;
17552 REPLACE_PTSNAME_R=0;
17553 REPLACE_PUTENV=0;
17554 REPLACE_RANDOM_R=0;
17555 REPLACE_REALLOC=0;
17556 REPLACE_REALPATH=0;
17557 REPLACE_SETENV=0;
17558 REPLACE_STRTOD=0;
17559 REPLACE_UNSETENV=0;
17560 REPLACE_WCTOMB=0;
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577 if test $gl_cv_have_include_next = yes; then
17578 gl_cv_next_getopt_h='<'getopt.h'>'
17579 else
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17581 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17582 if test "${gl_cv_next_getopt_h+set}" = set; then :
17583 $as_echo_n "(cached) " >&6
17584 else
17585
17586 if test $ac_cv_header_getopt_h = yes; then
17587
17588
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591 #include <getopt.h>
17592
17593 _ACEOF
17594 case "$host_os" in
17595 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17596 *) gl_absname_cpp="$ac_cpp" ;;
17597 esac
17598
17599 case "$host_os" in
17600 mingw*)
17601 gl_dirsep_regex='[/\\]'
17602 ;;
17603 *)
17604 gl_dirsep_regex='\/'
17605 ;;
17606 esac
17607 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17608
17609 gl_header_literal_regex=`echo 'getopt.h' \
17610 | sed -e "$gl_make_literal_regex_sed"`
17611 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17612 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17613 s|^/[^/]|//&|
17614 p
17615 q
17616 }'
17617 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17618 sed -n "$gl_absolute_header_sed"`'"'
17619 else
17620 gl_cv_next_getopt_h='<'getopt.h'>'
17621 fi
17622
17623
17624 fi
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17626 $as_echo "$gl_cv_next_getopt_h" >&6; }
17627 fi
17628 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17629
17630 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17632 gl_next_as_first_directive='<'getopt.h'>'
17633 else
17634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17635 gl_next_as_first_directive=$gl_cv_next_getopt_h
17636 fi
17637 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17638
17639
17640
17641
17642 if test $ac_cv_header_getopt_h = yes; then
17643 HAVE_GETOPT_H=1
17644 else
17645 HAVE_GETOPT_H=0
17646 fi
17647
17648
17649 gl_replace_getopt=
17650
17651 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17652 for ac_header in getopt.h
17653 do :
17654 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17655 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17656 cat >>confdefs.h <<_ACEOF
17657 #define HAVE_GETOPT_H 1
17658 _ACEOF
17659
17660 else
17661 gl_replace_getopt=yes
17662 fi
17663
17664 done
17665
17666 fi
17667
17668 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17669 for ac_func in getopt_long_only
17670 do :
17671 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17672 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17673 cat >>confdefs.h <<_ACEOF
17674 #define HAVE_GETOPT_LONG_ONLY 1
17675 _ACEOF
17676
17677 else
17678 gl_replace_getopt=yes
17679 fi
17680 done
17681
17682 fi
17683
17684 if test -z "$gl_replace_getopt"; then
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17686 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17687 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17688 $as_echo_n "(cached) " >&6
17689 else
17690
17691 if test $cross_compiling = no; then
17692 if test "$cross_compiling" = yes; then :
17693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17695 as_fn_error "cannot run test program while cross compiling
17696 See \`config.log' for more details." "$LINENO" 5; }
17697 else
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700
17701 #include <unistd.h>
17702 #include <stdlib.h>
17703 #include <string.h>
17704
17705 int
17706 main ()
17707 {
17708 static char program[] = "program";
17709 static char a[] = "-a";
17710 static char foo[] = "foo";
17711 static char bar[] = "bar";
17712 char *argv[] = { program, a, foo, bar, NULL };
17713 int c;
17714
17715 c = getopt (4, argv, "ab");
17716 if (!(c == 'a'))
17717 return 1;
17718 c = getopt (4, argv, "ab");
17719 if (!(c == -1))
17720 return 2;
17721 if (!(optind == 2))
17722 return 3;
17723 return 0;
17724 }
17725
17726 _ACEOF
17727 if ac_fn_c_try_run "$LINENO"; then :
17728 gl_cv_func_getopt_posix=maybe
17729 else
17730 gl_cv_func_getopt_posix=no
17731 fi
17732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17733 conftest.$ac_objext conftest.beam conftest.$ac_ext
17734 fi
17735
17736 if test $gl_cv_func_getopt_posix = maybe; then
17737 if test "$cross_compiling" = yes; then :
17738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17740 as_fn_error "cannot run test program while cross compiling
17741 See \`config.log' for more details." "$LINENO" 5; }
17742 else
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17745
17746 #include <unistd.h>
17747 #include <stdlib.h>
17748 #include <string.h>
17749
17750 int
17751 main ()
17752 {
17753 static char program[] = "program";
17754 static char donald[] = "donald";
17755 static char p[] = "-p";
17756 static char billy[] = "billy";
17757 static char duck[] = "duck";
17758 static char a[] = "-a";
17759 static char bar[] = "bar";
17760 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17761 int c;
17762
17763 c = getopt (7, argv, "+abp:q:");
17764 if (!(c == -1))
17765 return 4;
17766 if (!(strcmp (argv[0], "program") == 0))
17767 return 5;
17768 if (!(strcmp (argv[1], "donald") == 0))
17769 return 6;
17770 if (!(strcmp (argv[2], "-p") == 0))
17771 return 7;
17772 if (!(strcmp (argv[3], "billy") == 0))
17773 return 8;
17774 if (!(strcmp (argv[4], "duck") == 0))
17775 return 9;
17776 if (!(strcmp (argv[5], "-a") == 0))
17777 return 10;
17778 if (!(strcmp (argv[6], "bar") == 0))
17779 return 11;
17780 if (!(optind == 1))
17781 return 12;
17782 return 0;
17783 }
17784
17785 _ACEOF
17786 if ac_fn_c_try_run "$LINENO"; then :
17787 gl_cv_func_getopt_posix=maybe
17788 else
17789 gl_cv_func_getopt_posix=no
17790 fi
17791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17792 conftest.$ac_objext conftest.beam conftest.$ac_ext
17793 fi
17794
17795 fi
17796 if test $gl_cv_func_getopt_posix = maybe; then
17797 if test "$cross_compiling" = yes; then :
17798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17800 as_fn_error "cannot run test program while cross compiling
17801 See \`config.log' for more details." "$LINENO" 5; }
17802 else
17803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h. */
17805
17806 #include <unistd.h>
17807 #include <stdlib.h>
17808 #include <string.h>
17809
17810 int
17811 main ()
17812 {
17813 static char program[] = "program";
17814 static char ab[] = "-ab";
17815 char *argv[3] = { program, ab, NULL };
17816 if (getopt (2, argv, "ab:") != 'a')
17817 return 13;
17818 if (getopt (2, argv, "ab:") != '?')
17819 return 14;
17820 if (optopt != 'b')
17821 return 15;
17822 if (optind != 2)
17823 return 16;
17824 return 0;
17825 }
17826
17827 _ACEOF
17828 if ac_fn_c_try_run "$LINENO"; then :
17829 gl_cv_func_getopt_posix=yes
17830 else
17831 gl_cv_func_getopt_posix=no
17832 fi
17833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17834 conftest.$ac_objext conftest.beam conftest.$ac_ext
17835 fi
17836
17837 fi
17838 else
17839 case "$host_os" in
17840 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17841 *) gl_cv_func_getopt_posix="guessing yes";;
17842 esac
17843 fi
17844
17845 fi
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17847 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17848 case "$gl_cv_func_getopt_posix" in
17849 *no) gl_replace_getopt=yes ;;
17850 esac
17851 fi
17852
17853 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17855 $as_echo_n "checking for working GNU getopt function... " >&6; }
17856 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17857 $as_echo_n "(cached) " >&6
17858 else
17859 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17860 # optstring is necessary for programs like m4 that have POSIX-mandated
17861 # semantics for supporting options interspersed with files.
17862 # Also, since getopt_long is a GNU extension, we require optind=0.
17863 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17864 # so take care to revert to the correct (non-)export state.
17865 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17866 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17867 xx) gl_had_POSIXLY_CORRECT=exported ;;
17868 x) gl_had_POSIXLY_CORRECT=yes ;;
17869 *) gl_had_POSIXLY_CORRECT= ;;
17870 esac
17871 POSIXLY_CORRECT=1
17872 export POSIXLY_CORRECT
17873 if test "$cross_compiling" = yes; then :
17874 gl_cv_func_getopt_gnu="guessing no"
17875
17876 else
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17879 #include <getopt.h>
17880 #include <stddef.h>
17881 #include <string.h>
17882
17883 #include <stdlib.h>
17884 #if defined __MACH__ && defined __APPLE__
17885 /* Avoid a crash on Mac OS X. */
17886 #include <mach/mach.h>
17887 #include <mach/mach_error.h>
17888 #include <mach/thread_status.h>
17889 #include <mach/exception.h>
17890 #include <mach/task.h>
17891 #include <pthread.h>
17892 /* The exception port on which our thread listens. */
17893 static mach_port_t our_exception_port;
17894 /* The main function of the thread listening for exceptions of type
17895 EXC_BAD_ACCESS. */
17896 static void *
17897 mach_exception_thread (void *arg)
17898 {
17899 /* Buffer for a message to be received. */
17900 struct {
17901 mach_msg_header_t head;
17902 mach_msg_body_t msgh_body;
17903 char data[1024];
17904 } msg;
17905 mach_msg_return_t retval;
17906 /* Wait for a message on the exception port. */
17907 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17908 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17909 if (retval != MACH_MSG_SUCCESS)
17910 abort ();
17911 exit (1);
17912 }
17913 static void
17914 nocrash_init (void)
17915 {
17916 mach_port_t self = mach_task_self ();
17917 /* Allocate a port on which the thread shall listen for exceptions. */
17918 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17919 == KERN_SUCCESS) {
17920 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17921 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17922 MACH_MSG_TYPE_MAKE_SEND)
17923 == KERN_SUCCESS) {
17924 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17925 for us. */
17926 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17927 /* Create the thread listening on the exception port. */
17928 pthread_attr_t attr;
17929 pthread_t thread;
17930 if (pthread_attr_init (&attr) == 0
17931 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17932 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17933 pthread_attr_destroy (&attr);
17934 /* Replace the exception port info for these exceptions with our own.
17935 Note that we replace the exception port for the entire task, not only
17936 for a particular thread. This has the effect that when our exception
17937 port gets the message, the thread specific exception port has already
17938 been asked, and we don't need to bother about it.
17939 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17940 task_set_exception_ports (self, mask, our_exception_port,
17941 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17942 }
17943 }
17944 }
17945 }
17946 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17947 /* Avoid a crash on native Windows. */
17948 #define WIN32_LEAN_AND_MEAN
17949 #include <windows.h>
17950 #include <winerror.h>
17951 static LONG WINAPI
17952 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17953 {
17954 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17955 {
17956 case EXCEPTION_ACCESS_VIOLATION:
17957 case EXCEPTION_IN_PAGE_ERROR:
17958 case EXCEPTION_STACK_OVERFLOW:
17959 case EXCEPTION_GUARD_PAGE:
17960 case EXCEPTION_PRIV_INSTRUCTION:
17961 case EXCEPTION_ILLEGAL_INSTRUCTION:
17962 case EXCEPTION_DATATYPE_MISALIGNMENT:
17963 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17964 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17965 exit (1);
17966 }
17967 return EXCEPTION_CONTINUE_SEARCH;
17968 }
17969 static void
17970 nocrash_init (void)
17971 {
17972 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17973 }
17974 #else
17975 /* Avoid a crash on POSIX systems. */
17976 #include <signal.h>
17977 /* A POSIX signal handler. */
17978 static void
17979 exception_handler (int sig)
17980 {
17981 exit (1);
17982 }
17983 static void
17984 nocrash_init (void)
17985 {
17986 #ifdef SIGSEGV
17987 signal (SIGSEGV, exception_handler);
17988 #endif
17989 #ifdef SIGBUS
17990 signal (SIGBUS, exception_handler);
17991 #endif
17992 }
17993 #endif
17994
17995
17996 int
17997 main ()
17998 {
17999
18000 int result = 0;
18001
18002 nocrash_init();
18003
18004 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
18005 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
18006 OSF/1 5.1, Solaris 10. */
18007 {
18008 static char conftest[] = "conftest";
18009 static char plus[] = "-+";
18010 char *argv[3] = { conftest, plus, NULL };
18011 opterr = 0;
18012 if (getopt (2, argv, "+a") != '?')
18013 result |= 1;
18014 }
18015 /* This code succeeds on glibc 2.8, mingw,
18016 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
18017 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
18018 {
18019 static char program[] = "program";
18020 static char p[] = "-p";
18021 static char foo[] = "foo";
18022 static char bar[] = "bar";
18023 char *argv[] = { program, p, foo, bar, NULL };
18024
18025 optind = 1;
18026 if (getopt (4, argv, "p::") != 'p')
18027 result |= 2;
18028 else if (optarg != NULL)
18029 result |= 4;
18030 else if (getopt (4, argv, "p::") != -1)
18031 result |= 6;
18032 else if (optind != 2)
18033 result |= 8;
18034 }
18035 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
18036 {
18037 static char program[] = "program";
18038 static char foo[] = "foo";
18039 static char p[] = "-p";
18040 char *argv[] = { program, foo, p, NULL };
18041 optind = 0;
18042 if (getopt (3, argv, "-p") != 1)
18043 result |= 16;
18044 else if (getopt (3, argv, "-p") != 'p')
18045 result |= 16;
18046 }
18047 /* This code fails on glibc 2.11. */
18048 {
18049 static char program[] = "program";
18050 static char b[] = "-b";
18051 static char a[] = "-a";
18052 char *argv[] = { program, b, a, NULL };
18053 optind = opterr = 0;
18054 if (getopt (3, argv, "+:a:b") != 'b')
18055 result |= 32;
18056 else if (getopt (3, argv, "+:a:b") != ':')
18057 result |= 32;
18058 }
18059 /* This code dumps core on glibc 2.14. */
18060 {
18061 static char program[] = "program";
18062 static char w[] = "-W";
18063 static char dummy[] = "dummy";
18064 char *argv[] = { program, w, dummy, NULL };
18065 optind = opterr = 1;
18066 if (getopt (3, argv, "W;") != 'W')
18067 result |= 64;
18068 }
18069 return result;
18070
18071 ;
18072 return 0;
18073 }
18074 _ACEOF
18075 if ac_fn_c_try_run "$LINENO"; then :
18076 gl_cv_func_getopt_gnu=yes
18077 else
18078 gl_cv_func_getopt_gnu=no
18079 fi
18080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18081 conftest.$ac_objext conftest.beam conftest.$ac_ext
18082 fi
18083
18084 case $gl_had_POSIXLY_CORRECT in
18085 exported) ;;
18086 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
18087 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
18088 esac
18089
18090 fi
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
18092 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
18093 if test "$gl_cv_func_getopt_gnu" != yes; then
18094 gl_replace_getopt=yes
18095 else
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18097 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18098 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18099 $as_echo_n "(cached) " >&6
18100 else
18101 if test "$cross_compiling" = yes; then :
18102 case "$host_os" in
18103 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
18104 *) gl_cv_func_getopt_long_gnu="guessing yes";;
18105 esac
18106
18107 else
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h. */
18110 #include <getopt.h>
18111 #include <stddef.h>
18112 #include <string.h>
18113
18114 int
18115 main ()
18116 {
18117 static const struct option long_options[] =
18118 {
18119 { "xtremely-",no_argument, NULL, 1003 },
18120 { "xtra", no_argument, NULL, 1001 },
18121 { "xtreme", no_argument, NULL, 1002 },
18122 { "xtremely", no_argument, NULL, 1003 },
18123 { NULL, 0, NULL, 0 }
18124 };
18125 /* This code fails on OpenBSD 5.0. */
18126 {
18127 static char program[] = "program";
18128 static char xtremel[] = "--xtremel";
18129 char *argv[] = { program, xtremel, NULL };
18130 int option_index;
18131 optind = 1; opterr = 0;
18132 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18133 return 1;
18134 }
18135 return 0;
18136
18137 ;
18138 return 0;
18139 }
18140 _ACEOF
18141 if ac_fn_c_try_run "$LINENO"; then :
18142 gl_cv_func_getopt_long_gnu=yes
18143 else
18144 gl_cv_func_getopt_long_gnu=no
18145 fi
18146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18147 conftest.$ac_objext conftest.beam conftest.$ac_ext
18148 fi
18149
18150
18151 fi
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18153 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18154 case "$gl_cv_func_getopt_long_gnu" in
18155 *yes) ;;
18156 *) gl_replace_getopt=yes ;;
18157 esac
18158 fi
18159 fi
18160
18161
18162
18163
18164
18165
18166 REPLACE_GETOPT=0
18167 if test -n "$gl_replace_getopt"; then
18168 REPLACE_GETOPT=1
18169 fi
18170
18171 if test $REPLACE_GETOPT = 1; then
18172
18173 GETOPT_H=getopt.h
18174
18175 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18176
18177
18178
18179 fi
18180
18181 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18182 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
18183 ac_have_decl=1
18184 else
18185 ac_have_decl=0
18186 fi
18187
18188 cat >>confdefs.h <<_ACEOF
18189 #define HAVE_DECL_GETENV $ac_have_decl
18190 _ACEOF
18191
18192 :
18193
18194
18195
18196
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18198 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18199 if test "${ac_cv_c_restrict+set}" = set; then :
18200 $as_echo_n "(cached) " >&6
18201 else
18202 ac_cv_c_restrict=no
18203 # The order here caters to the fact that C++ does not require restrict.
18204 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18207 typedef int * int_ptr;
18208 int foo (int_ptr $ac_kw ip) {
18209 return ip[0];
18210 }
18211 int
18212 main ()
18213 {
18214 int s[1];
18215 int * $ac_kw t = s;
18216 t[0] = 0;
18217 return foo(t)
18218 ;
18219 return 0;
18220 }
18221 _ACEOF
18222 if ac_fn_c_try_compile "$LINENO"; then :
18223 ac_cv_c_restrict=$ac_kw
18224 fi
18225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18226 test "$ac_cv_c_restrict" != no && break
18227 done
18228
18229 fi
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18231 $as_echo "$ac_cv_c_restrict" >&6; }
18232
18233 case $ac_cv_c_restrict in
18234 restrict) ;;
18235 no) $as_echo "#define restrict /**/" >>confdefs.h
18236 ;;
18237 *) cat >>confdefs.h <<_ACEOF
18238 #define restrict $ac_cv_c_restrict
18239 _ACEOF
18240 ;;
18241 esac
18242
18243
18244 GNULIB_GETTIMEOFDAY=0;
18245 HAVE_GETTIMEOFDAY=1;
18246 HAVE_STRUCT_TIMEVAL=1;
18247 HAVE_SYS_TIME_H=1;
18248 REPLACE_GETTIMEOFDAY=0;
18249 REPLACE_STRUCT_TIMEVAL=0;
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266 if test $gl_cv_have_include_next = yes; then
18267 gl_cv_next_sys_time_h='<'sys/time.h'>'
18268 else
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18270 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18271 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18272 $as_echo_n "(cached) " >&6
18273 else
18274
18275 if test $ac_cv_header_sys_time_h = yes; then
18276
18277
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280 #include <sys/time.h>
18281
18282 _ACEOF
18283 case "$host_os" in
18284 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18285 *) gl_absname_cpp="$ac_cpp" ;;
18286 esac
18287
18288 case "$host_os" in
18289 mingw*)
18290 gl_dirsep_regex='[/\\]'
18291 ;;
18292 *)
18293 gl_dirsep_regex='\/'
18294 ;;
18295 esac
18296 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18297
18298 gl_header_literal_regex=`echo 'sys/time.h' \
18299 | sed -e "$gl_make_literal_regex_sed"`
18300 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18301 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18302 s|^/[^/]|//&|
18303 p
18304 q
18305 }'
18306 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18307 sed -n "$gl_absolute_header_sed"`'"'
18308 else
18309 gl_cv_next_sys_time_h='<'sys/time.h'>'
18310 fi
18311
18312
18313 fi
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18315 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18316 fi
18317 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
18318
18319 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18321 gl_next_as_first_directive='<'sys/time.h'>'
18322 else
18323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18324 gl_next_as_first_directive=$gl_cv_next_sys_time_h
18325 fi
18326 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
18327
18328
18329
18330
18331
18332 if test $ac_cv_header_sys_time_h != yes; then
18333 HAVE_SYS_TIME_H=0
18334 fi
18335
18336
18337
18338
18339
18340 if test $ac_cv_header_sys_socket_h != yes; then
18341 for ac_header in winsock2.h
18342 do :
18343 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18344 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18345 cat >>confdefs.h <<_ACEOF
18346 #define HAVE_WINSOCK2_H 1
18347 _ACEOF
18348
18349 fi
18350
18351 done
18352
18353 fi
18354 if test "$ac_cv_header_winsock2_h" = yes; then
18355 HAVE_WINSOCK2_H=1
18356 UNISTD_H_HAVE_WINSOCK2_H=1
18357 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18358 else
18359 HAVE_WINSOCK2_H=0
18360 fi
18361
18362
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18364 $as_echo_n "checking for struct timeval... " >&6; }
18365 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18366 $as_echo_n "(cached) " >&6
18367 else
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370 #if HAVE_SYS_TIME_H
18371 #include <sys/time.h>
18372 #endif
18373 #include <time.h>
18374 #if HAVE_WINSOCK2_H
18375 # include <winsock2.h>
18376 #endif
18377
18378 int
18379 main ()
18380 {
18381 static struct timeval x; x.tv_sec = x.tv_usec;
18382 ;
18383 return 0;
18384 }
18385 _ACEOF
18386 if ac_fn_c_try_compile "$LINENO"; then :
18387 gl_cv_sys_struct_timeval=yes
18388 else
18389 gl_cv_sys_struct_timeval=no
18390 fi
18391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18392
18393 fi
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18395 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18396 if test $gl_cv_sys_struct_timeval != yes; then
18397 HAVE_STRUCT_TIMEVAL=0
18398 else
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18400 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18401 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18402 $as_echo_n "(cached) " >&6
18403 else
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 #if HAVE_SYS_TIME_H
18407 #include <sys/time.h>
18408 #endif
18409 #include <time.h>
18410 #if HAVE_WINSOCK2_H
18411 # include <winsock2.h>
18412 #endif
18413
18414 int
18415 main ()
18416 {
18417 static struct timeval x;
18418 typedef int verify_tv_sec_type[
18419 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18420 ];
18421
18422 ;
18423 return 0;
18424 }
18425 _ACEOF
18426 if ac_fn_c_try_compile "$LINENO"; then :
18427 gl_cv_sys_struct_timeval_tv_sec=yes
18428 else
18429 gl_cv_sys_struct_timeval_tv_sec=no
18430 fi
18431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18432
18433 fi
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18435 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18436 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18437 REPLACE_STRUCT_TIMEVAL=1
18438 fi
18439 fi
18440
18441
18442
18443
18444
18445
18446
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18448 $as_echo_n "checking for unsigned long long int... " >&6; }
18449 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18450 $as_echo_n "(cached) " >&6
18451 else
18452 ac_cv_type_unsigned_long_long_int=yes
18453 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456
18457 /* For now, do not test the preprocessor; as of 2007 there are too many
18458 implementations with broken preprocessors. Perhaps this can
18459 be revisited in 2012. In the meantime, code should not expect
18460 #if to work with literals wider than 32 bits. */
18461 /* Test literals. */
18462 long long int ll = 9223372036854775807ll;
18463 long long int nll = -9223372036854775807LL;
18464 unsigned long long int ull = 18446744073709551615ULL;
18465 /* Test constant expressions. */
18466 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18467 ? 1 : -1)];
18468 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18469 ? 1 : -1)];
18470 int i = 63;
18471 int
18472 main ()
18473 {
18474 /* Test availability of runtime routines for shift and division. */
18475 long long int llmax = 9223372036854775807ll;
18476 unsigned long long int ullmax = 18446744073709551615ull;
18477 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18478 | (llmax / ll) | (llmax % ll)
18479 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18480 | (ullmax / ull) | (ullmax % ull));
18481 ;
18482 return 0;
18483 }
18484
18485 _ACEOF
18486 if ac_fn_c_try_link "$LINENO"; then :
18487
18488 else
18489 ac_cv_type_unsigned_long_long_int=no
18490 fi
18491 rm -f core conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18493 fi
18494 fi
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18496 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18497 if test $ac_cv_type_unsigned_long_long_int = yes; then
18498
18499 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18500
18501 fi
18502
18503
18504
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18506 $as_echo_n "checking for long long int... " >&6; }
18507 if test "${ac_cv_type_long_long_int+set}" = set; then :
18508 $as_echo_n "(cached) " >&6
18509 else
18510 ac_cv_type_long_long_int=yes
18511 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18512 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18513 if test $ac_cv_type_long_long_int = yes; then
18514 if test "$cross_compiling" = yes; then :
18515 :
18516 else
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18519 #include <limits.h>
18520 #ifndef LLONG_MAX
18521 # define HALF \
18522 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18523 # define LLONG_MAX (HALF - 1 + HALF)
18524 #endif
18525 int
18526 main ()
18527 {
18528 long long int n = 1;
18529 int i;
18530 for (i = 0; ; i++)
18531 {
18532 long long int m = n << i;
18533 if (m >> i != n)
18534 return 1;
18535 if (LLONG_MAX / 2 < m)
18536 break;
18537 }
18538 return 0;
18539 ;
18540 return 0;
18541 }
18542 _ACEOF
18543 if ac_fn_c_try_run "$LINENO"; then :
18544
18545 else
18546 ac_cv_type_long_long_int=no
18547 fi
18548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18549 conftest.$ac_objext conftest.beam conftest.$ac_ext
18550 fi
18551
18552 fi
18553 fi
18554 fi
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18556 $as_echo "$ac_cv_type_long_long_int" >&6; }
18557 if test $ac_cv_type_long_long_int = yes; then
18558
18559 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18560
18561 fi
18562
18563
18564
18565
18566
18567
18568 gl_cv_c_multiarch=no
18569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570 /* end confdefs.h. */
18571 #ifndef __APPLE_CC__
18572 not a universal capable compiler
18573 #endif
18574 typedef int dummy;
18575
18576 _ACEOF
18577 if ac_fn_c_try_compile "$LINENO"; then :
18578
18579 arch=
18580 prev=
18581 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18582 if test -n "$prev"; then
18583 case $word in
18584 i?86 | x86_64 | ppc | ppc64)
18585 if test -z "$arch" || test "$arch" = "$word"; then
18586 arch="$word"
18587 else
18588 gl_cv_c_multiarch=yes
18589 fi
18590 ;;
18591 esac
18592 prev=
18593 else
18594 if test "x$word" = "x-arch"; then
18595 prev=arch
18596 fi
18597 fi
18598 done
18599
18600 fi
18601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18602 if test $gl_cv_c_multiarch = yes; then
18603 APPLE_UNIVERSAL_BUILD=1
18604 else
18605 APPLE_UNIVERSAL_BUILD=0
18606 fi
18607
18608
18609
18610
18611
18612 if test $ac_cv_type_long_long_int = yes; then
18613 HAVE_LONG_LONG_INT=1
18614 else
18615 HAVE_LONG_LONG_INT=0
18616 fi
18617
18618
18619 if test $ac_cv_type_unsigned_long_long_int = yes; then
18620 HAVE_UNSIGNED_LONG_LONG_INT=1
18621 else
18622 HAVE_UNSIGNED_LONG_LONG_INT=0
18623 fi
18624
18625
18626
18627 if test $ac_cv_header_wchar_h = yes; then
18628 HAVE_WCHAR_H=1
18629 else
18630 HAVE_WCHAR_H=0
18631 fi
18632
18633
18634 if test $ac_cv_header_inttypes_h = yes; then
18635 HAVE_INTTYPES_H=1
18636 else
18637 HAVE_INTTYPES_H=0
18638 fi
18639
18640
18641 if test $ac_cv_header_sys_types_h = yes; then
18642 HAVE_SYS_TYPES_H=1
18643 else
18644 HAVE_SYS_TYPES_H=0
18645 fi
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657 if test $gl_cv_have_include_next = yes; then
18658 gl_cv_next_stdint_h='<'stdint.h'>'
18659 else
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18661 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18662 if test "${gl_cv_next_stdint_h+set}" = set; then :
18663 $as_echo_n "(cached) " >&6
18664 else
18665
18666 if test $ac_cv_header_stdint_h = yes; then
18667
18668
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18671 #include <stdint.h>
18672
18673 _ACEOF
18674 case "$host_os" in
18675 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18676 *) gl_absname_cpp="$ac_cpp" ;;
18677 esac
18678
18679 case "$host_os" in
18680 mingw*)
18681 gl_dirsep_regex='[/\\]'
18682 ;;
18683 *)
18684 gl_dirsep_regex='\/'
18685 ;;
18686 esac
18687 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18688
18689 gl_header_literal_regex=`echo 'stdint.h' \
18690 | sed -e "$gl_make_literal_regex_sed"`
18691 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18692 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18693 s|^/[^/]|//&|
18694 p
18695 q
18696 }'
18697 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18698 sed -n "$gl_absolute_header_sed"`'"'
18699 else
18700 gl_cv_next_stdint_h='<'stdint.h'>'
18701 fi
18702
18703
18704 fi
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18706 $as_echo "$gl_cv_next_stdint_h" >&6; }
18707 fi
18708 NEXT_STDINT_H=$gl_cv_next_stdint_h
18709
18710 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18712 gl_next_as_first_directive='<'stdint.h'>'
18713 else
18714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18715 gl_next_as_first_directive=$gl_cv_next_stdint_h
18716 fi
18717 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18718
18719
18720
18721
18722 if test $ac_cv_header_stdint_h = yes; then
18723 HAVE_STDINT_H=1
18724 else
18725 HAVE_STDINT_H=0
18726 fi
18727
18728
18729 if test $ac_cv_header_stdint_h = yes; then
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18731 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18732 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18733 $as_echo_n "(cached) " >&6
18734 else
18735 gl_cv_header_working_stdint_h=no
18736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18737 /* end confdefs.h. */
18738
18739
18740 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18741 #include <stdint.h>
18742 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18743 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18744 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18745 #endif
18746
18747
18748 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18749 included before <wchar.h>. */
18750 #include <stddef.h>
18751 #include <signal.h>
18752 #if HAVE_WCHAR_H
18753 # include <stdio.h>
18754 # include <time.h>
18755 # include <wchar.h>
18756 #endif
18757
18758
18759 #ifdef INT8_MAX
18760 int8_t a1 = INT8_MAX;
18761 int8_t a1min = INT8_MIN;
18762 #endif
18763 #ifdef INT16_MAX
18764 int16_t a2 = INT16_MAX;
18765 int16_t a2min = INT16_MIN;
18766 #endif
18767 #ifdef INT32_MAX
18768 int32_t a3 = INT32_MAX;
18769 int32_t a3min = INT32_MIN;
18770 #endif
18771 #ifdef INT64_MAX
18772 int64_t a4 = INT64_MAX;
18773 int64_t a4min = INT64_MIN;
18774 #endif
18775 #ifdef UINT8_MAX
18776 uint8_t b1 = UINT8_MAX;
18777 #else
18778 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18779 #endif
18780 #ifdef UINT16_MAX
18781 uint16_t b2 = UINT16_MAX;
18782 #endif
18783 #ifdef UINT32_MAX
18784 uint32_t b3 = UINT32_MAX;
18785 #endif
18786 #ifdef UINT64_MAX
18787 uint64_t b4 = UINT64_MAX;
18788 #endif
18789 int_least8_t c1 = INT8_C (0x7f);
18790 int_least8_t c1max = INT_LEAST8_MAX;
18791 int_least8_t c1min = INT_LEAST8_MIN;
18792 int_least16_t c2 = INT16_C (0x7fff);
18793 int_least16_t c2max = INT_LEAST16_MAX;
18794 int_least16_t c2min = INT_LEAST16_MIN;
18795 int_least32_t c3 = INT32_C (0x7fffffff);
18796 int_least32_t c3max = INT_LEAST32_MAX;
18797 int_least32_t c3min = INT_LEAST32_MIN;
18798 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18799 int_least64_t c4max = INT_LEAST64_MAX;
18800 int_least64_t c4min = INT_LEAST64_MIN;
18801 uint_least8_t d1 = UINT8_C (0xff);
18802 uint_least8_t d1max = UINT_LEAST8_MAX;
18803 uint_least16_t d2 = UINT16_C (0xffff);
18804 uint_least16_t d2max = UINT_LEAST16_MAX;
18805 uint_least32_t d3 = UINT32_C (0xffffffff);
18806 uint_least32_t d3max = UINT_LEAST32_MAX;
18807 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18808 uint_least64_t d4max = UINT_LEAST64_MAX;
18809 int_fast8_t e1 = INT_FAST8_MAX;
18810 int_fast8_t e1min = INT_FAST8_MIN;
18811 int_fast16_t e2 = INT_FAST16_MAX;
18812 int_fast16_t e2min = INT_FAST16_MIN;
18813 int_fast32_t e3 = INT_FAST32_MAX;
18814 int_fast32_t e3min = INT_FAST32_MIN;
18815 int_fast64_t e4 = INT_FAST64_MAX;
18816 int_fast64_t e4min = INT_FAST64_MIN;
18817 uint_fast8_t f1 = UINT_FAST8_MAX;
18818 uint_fast16_t f2 = UINT_FAST16_MAX;
18819 uint_fast32_t f3 = UINT_FAST32_MAX;
18820 uint_fast64_t f4 = UINT_FAST64_MAX;
18821 #ifdef INTPTR_MAX
18822 intptr_t g = INTPTR_MAX;
18823 intptr_t gmin = INTPTR_MIN;
18824 #endif
18825 #ifdef UINTPTR_MAX
18826 uintptr_t h = UINTPTR_MAX;
18827 #endif
18828 intmax_t i = INTMAX_MAX;
18829 uintmax_t j = UINTMAX_MAX;
18830
18831 #include <limits.h> /* for CHAR_BIT */
18832 #define TYPE_MINIMUM(t) \
18833 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18834 #define TYPE_MAXIMUM(t) \
18835 ((t) ((t) 0 < (t) -1 \
18836 ? (t) -1 \
18837 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18838 struct s {
18839 int check_PTRDIFF:
18840 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18841 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18842 ? 1 : -1;
18843 /* Detect bug in FreeBSD 6.0 / ia64. */
18844 int check_SIG_ATOMIC:
18845 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18846 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18847 ? 1 : -1;
18848 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18849 int check_WCHAR:
18850 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18851 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18852 ? 1 : -1;
18853 /* Detect bug in mingw. */
18854 int check_WINT:
18855 WINT_MIN == TYPE_MINIMUM (wint_t)
18856 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18857 ? 1 : -1;
18858
18859 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18860 int check_UINT8_C:
18861 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18862 int check_UINT16_C:
18863 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18864
18865 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18866 #ifdef UINT8_MAX
18867 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18868 #endif
18869 #ifdef UINT16_MAX
18870 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18871 #endif
18872 #ifdef UINT32_MAX
18873 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18874 #endif
18875 #ifdef UINT64_MAX
18876 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18877 #endif
18878 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18879 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18880 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18881 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18882 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18883 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18884 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18885 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18886 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18887 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18888 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18889 };
18890
18891 int
18892 main ()
18893 {
18894
18895 ;
18896 return 0;
18897 }
18898 _ACEOF
18899 if ac_fn_c_try_compile "$LINENO"; then :
18900 if test "$cross_compiling" = yes; then :
18901 gl_cv_header_working_stdint_h=yes
18902
18903 else
18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18906
18907
18908 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18909 #include <stdint.h>
18910
18911
18912 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18913 included before <wchar.h>. */
18914 #include <stddef.h>
18915 #include <signal.h>
18916 #if HAVE_WCHAR_H
18917 # include <stdio.h>
18918 # include <time.h>
18919 # include <wchar.h>
18920 #endif
18921
18922
18923 #include <stdio.h>
18924 #include <string.h>
18925 #define MVAL(macro) MVAL1(macro)
18926 #define MVAL1(expression) #expression
18927 static const char *macro_values[] =
18928 {
18929 #ifdef INT8_MAX
18930 MVAL (INT8_MAX),
18931 #endif
18932 #ifdef INT16_MAX
18933 MVAL (INT16_MAX),
18934 #endif
18935 #ifdef INT32_MAX
18936 MVAL (INT32_MAX),
18937 #endif
18938 #ifdef INT64_MAX
18939 MVAL (INT64_MAX),
18940 #endif
18941 #ifdef UINT8_MAX
18942 MVAL (UINT8_MAX),
18943 #endif
18944 #ifdef UINT16_MAX
18945 MVAL (UINT16_MAX),
18946 #endif
18947 #ifdef UINT32_MAX
18948 MVAL (UINT32_MAX),
18949 #endif
18950 #ifdef UINT64_MAX
18951 MVAL (UINT64_MAX),
18952 #endif
18953 NULL
18954 };
18955
18956 int
18957 main ()
18958 {
18959
18960 const char **mv;
18961 for (mv = macro_values; *mv != NULL; mv++)
18962 {
18963 const char *value = *mv;
18964 /* Test whether it looks like a cast expression. */
18965 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18966 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18967 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18968 || strncmp (value, "((int)"/*)*/, 6) == 0
18969 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18970 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18971 return mv - macro_values + 1;
18972 }
18973 return 0;
18974
18975 ;
18976 return 0;
18977 }
18978 _ACEOF
18979 if ac_fn_c_try_run "$LINENO"; then :
18980 gl_cv_header_working_stdint_h=yes
18981 fi
18982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18983 conftest.$ac_objext conftest.beam conftest.$ac_ext
18984 fi
18985
18986
18987 fi
18988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18989
18990 fi
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18992 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18993 fi
18994 if test "$gl_cv_header_working_stdint_h" = yes; then
18995 STDINT_H=
18996 else
18997 for ac_header in sys/inttypes.h sys/bitypes.h
18998 do :
18999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19000 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19001 eval as_val=\$$as_ac_Header
19002 if test "x$as_val" = x""yes; then :
19003 cat >>confdefs.h <<_ACEOF
19004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19005 _ACEOF
19006
19007 fi
19008
19009 done
19010
19011 if test $ac_cv_header_sys_inttypes_h = yes; then
19012 HAVE_SYS_INTTYPES_H=1
19013 else
19014 HAVE_SYS_INTTYPES_H=0
19015 fi
19016
19017 if test $ac_cv_header_sys_bitypes_h = yes; then
19018 HAVE_SYS_BITYPES_H=1
19019 else
19020 HAVE_SYS_BITYPES_H=0
19021 fi
19022
19023
19024
19025
19026 if test $APPLE_UNIVERSAL_BUILD = 0; then
19027
19028
19029 for gltype in ptrdiff_t size_t ; do
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19031 $as_echo_n "checking for bit size of $gltype... " >&6; }
19032 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19033 $as_echo_n "(cached) " >&6
19034 else
19035 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19036 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19037 included before <wchar.h>. */
19038 #include <stddef.h>
19039 #include <signal.h>
19040 #if HAVE_WCHAR_H
19041 # include <stdio.h>
19042 # include <time.h>
19043 # include <wchar.h>
19044 #endif
19045
19046 #include <limits.h>"; then :
19047
19048 else
19049 result=unknown
19050 fi
19051
19052 eval gl_cv_bitsizeof_${gltype}=\$result
19053
19054 fi
19055 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19057 $as_echo "$ac_res" >&6; }
19058 eval result=\$gl_cv_bitsizeof_${gltype}
19059 if test $result = unknown; then
19060 result=0
19061 fi
19062 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19063 cat >>confdefs.h <<_ACEOF
19064 #define BITSIZEOF_${GLTYPE} $result
19065 _ACEOF
19066
19067 eval BITSIZEOF_${GLTYPE}=\$result
19068 done
19069
19070
19071 fi
19072
19073
19074 for gltype in sig_atomic_t wchar_t wint_t ; do
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19076 $as_echo_n "checking for bit size of $gltype... " >&6; }
19077 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19078 $as_echo_n "(cached) " >&6
19079 else
19080 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19081 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19082 included before <wchar.h>. */
19083 #include <stddef.h>
19084 #include <signal.h>
19085 #if HAVE_WCHAR_H
19086 # include <stdio.h>
19087 # include <time.h>
19088 # include <wchar.h>
19089 #endif
19090
19091 #include <limits.h>"; then :
19092
19093 else
19094 result=unknown
19095 fi
19096
19097 eval gl_cv_bitsizeof_${gltype}=\$result
19098
19099 fi
19100 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19102 $as_echo "$ac_res" >&6; }
19103 eval result=\$gl_cv_bitsizeof_${gltype}
19104 if test $result = unknown; then
19105 result=0
19106 fi
19107 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19108 cat >>confdefs.h <<_ACEOF
19109 #define BITSIZEOF_${GLTYPE} $result
19110 _ACEOF
19111
19112 eval BITSIZEOF_${GLTYPE}=\$result
19113 done
19114
19115
19116
19117
19118 for gltype in sig_atomic_t wchar_t wint_t ; do
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19120 $as_echo_n "checking whether $gltype is signed... " >&6; }
19121 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19122 $as_echo_n "(cached) " >&6
19123 else
19124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19125 /* end confdefs.h. */
19126
19127 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19128 included before <wchar.h>. */
19129 #include <stddef.h>
19130 #include <signal.h>
19131 #if HAVE_WCHAR_H
19132 # include <stdio.h>
19133 # include <time.h>
19134 # include <wchar.h>
19135 #endif
19136
19137 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19138 int
19139 main ()
19140 {
19141
19142 ;
19143 return 0;
19144 }
19145 _ACEOF
19146 if ac_fn_c_try_compile "$LINENO"; then :
19147 result=yes
19148 else
19149 result=no
19150 fi
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 eval gl_cv_type_${gltype}_signed=\$result
19153
19154 fi
19155 eval ac_res=\$gl_cv_type_${gltype}_signed
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19157 $as_echo "$ac_res" >&6; }
19158 eval result=\$gl_cv_type_${gltype}_signed
19159 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19160 if test "$result" = yes; then
19161 cat >>confdefs.h <<_ACEOF
19162 #define HAVE_SIGNED_${GLTYPE} 1
19163 _ACEOF
19164
19165 eval HAVE_SIGNED_${GLTYPE}=1
19166 else
19167 eval HAVE_SIGNED_${GLTYPE}=0
19168 fi
19169 done
19170
19171
19172 gl_cv_type_ptrdiff_t_signed=yes
19173 gl_cv_type_size_t_signed=no
19174 if test $APPLE_UNIVERSAL_BUILD = 0; then
19175
19176
19177 for gltype in ptrdiff_t size_t ; do
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19179 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19180 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19181 $as_echo_n "(cached) " >&6
19182 else
19183 eval gl_cv_type_${gltype}_suffix=no
19184 eval result=\$gl_cv_type_${gltype}_signed
19185 if test "$result" = yes; then
19186 glsufu=
19187 else
19188 glsufu=u
19189 fi
19190 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19191 case $glsuf in
19192 '') gltype1='int';;
19193 l) gltype1='long int';;
19194 ll) gltype1='long long int';;
19195 i64) gltype1='__int64';;
19196 u) gltype1='unsigned int';;
19197 ul) gltype1='unsigned long int';;
19198 ull) gltype1='unsigned long long int';;
19199 ui64)gltype1='unsigned __int64';;
19200 esac
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19203
19204 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19205 included before <wchar.h>. */
19206 #include <stddef.h>
19207 #include <signal.h>
19208 #if HAVE_WCHAR_H
19209 # include <stdio.h>
19210 # include <time.h>
19211 # include <wchar.h>
19212 #endif
19213
19214 extern $gltype foo;
19215 extern $gltype1 foo;
19216 int
19217 main ()
19218 {
19219
19220 ;
19221 return 0;
19222 }
19223 _ACEOF
19224 if ac_fn_c_try_compile "$LINENO"; then :
19225 eval gl_cv_type_${gltype}_suffix=\$glsuf
19226 fi
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228 eval result=\$gl_cv_type_${gltype}_suffix
19229 test "$result" != no && break
19230 done
19231 fi
19232 eval ac_res=\$gl_cv_type_${gltype}_suffix
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19234 $as_echo "$ac_res" >&6; }
19235 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19236 eval result=\$gl_cv_type_${gltype}_suffix
19237 test "$result" = no && result=
19238 eval ${GLTYPE}_SUFFIX=\$result
19239 cat >>confdefs.h <<_ACEOF
19240 #define ${GLTYPE}_SUFFIX $result
19241 _ACEOF
19242
19243 done
19244
19245
19246 fi
19247
19248
19249 for gltype in sig_atomic_t wchar_t wint_t ; do
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19251 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19252 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19253 $as_echo_n "(cached) " >&6
19254 else
19255 eval gl_cv_type_${gltype}_suffix=no
19256 eval result=\$gl_cv_type_${gltype}_signed
19257 if test "$result" = yes; then
19258 glsufu=
19259 else
19260 glsufu=u
19261 fi
19262 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19263 case $glsuf in
19264 '') gltype1='int';;
19265 l) gltype1='long int';;
19266 ll) gltype1='long long int';;
19267 i64) gltype1='__int64';;
19268 u) gltype1='unsigned int';;
19269 ul) gltype1='unsigned long int';;
19270 ull) gltype1='unsigned long long int';;
19271 ui64)gltype1='unsigned __int64';;
19272 esac
19273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19275
19276 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19277 included before <wchar.h>. */
19278 #include <stddef.h>
19279 #include <signal.h>
19280 #if HAVE_WCHAR_H
19281 # include <stdio.h>
19282 # include <time.h>
19283 # include <wchar.h>
19284 #endif
19285
19286 extern $gltype foo;
19287 extern $gltype1 foo;
19288 int
19289 main ()
19290 {
19291
19292 ;
19293 return 0;
19294 }
19295 _ACEOF
19296 if ac_fn_c_try_compile "$LINENO"; then :
19297 eval gl_cv_type_${gltype}_suffix=\$glsuf
19298 fi
19299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19300 eval result=\$gl_cv_type_${gltype}_suffix
19301 test "$result" != no && break
19302 done
19303 fi
19304 eval ac_res=\$gl_cv_type_${gltype}_suffix
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19306 $as_echo "$ac_res" >&6; }
19307 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19308 eval result=\$gl_cv_type_${gltype}_suffix
19309 test "$result" = no && result=
19310 eval ${GLTYPE}_SUFFIX=\$result
19311 cat >>confdefs.h <<_ACEOF
19312 #define ${GLTYPE}_SUFFIX $result
19313 _ACEOF
19314
19315 done
19316
19317
19318
19319 if test $BITSIZEOF_WINT_T -lt 32; then
19320 BITSIZEOF_WINT_T=32
19321 fi
19322
19323 STDINT_H=stdint.h
19324 fi
19325
19326 if test -n "$STDINT_H"; then
19327 GL_GENERATE_STDINT_H_TRUE=
19328 GL_GENERATE_STDINT_H_FALSE='#'
19329 else
19330 GL_GENERATE_STDINT_H_TRUE='#'
19331 GL_GENERATE_STDINT_H_FALSE=
19332 fi
19333
19334
19335
19336
19337
19338 GNULIB_IMAXABS=0;
19339 GNULIB_IMAXDIV=0;
19340 GNULIB_STRTOIMAX=0;
19341 GNULIB_STRTOUMAX=0;
19342 HAVE_DECL_IMAXABS=1;
19343 HAVE_DECL_IMAXDIV=1;
19344 HAVE_DECL_STRTOIMAX=1;
19345 HAVE_DECL_STRTOUMAX=1;
19346 REPLACE_STRTOIMAX=0;
19347 INT32_MAX_LT_INTMAX_MAX=1;
19348 INT64_MAX_EQ_LONG_MAX='defined _LP64';
19349 PRI_MACROS_BROKEN=0;
19350 PRIPTR_PREFIX=__PRIPTR_PREFIX;
19351 UINT32_MAX_LT_UINTMAX_MAX=1;
19352 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368 if test $gl_cv_have_include_next = yes; then
19369 gl_cv_next_inttypes_h='<'inttypes.h'>'
19370 else
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19372 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19373 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19374 $as_echo_n "(cached) " >&6
19375 else
19376
19377 if test $ac_cv_header_inttypes_h = yes; then
19378
19379
19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h. */
19382 #include <inttypes.h>
19383
19384 _ACEOF
19385 case "$host_os" in
19386 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19387 *) gl_absname_cpp="$ac_cpp" ;;
19388 esac
19389
19390 case "$host_os" in
19391 mingw*)
19392 gl_dirsep_regex='[/\\]'
19393 ;;
19394 *)
19395 gl_dirsep_regex='\/'
19396 ;;
19397 esac
19398 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19399
19400 gl_header_literal_regex=`echo 'inttypes.h' \
19401 | sed -e "$gl_make_literal_regex_sed"`
19402 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19403 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19404 s|^/[^/]|//&|
19405 p
19406 q
19407 }'
19408 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19409 sed -n "$gl_absolute_header_sed"`'"'
19410 else
19411 gl_cv_next_inttypes_h='<'inttypes.h'>'
19412 fi
19413
19414
19415 fi
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19417 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19418 fi
19419 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19420
19421 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19423 gl_next_as_first_directive='<'inttypes.h'>'
19424 else
19425 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19426 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19427 fi
19428 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440 case "$host_os" in
19441 mingw*)
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19443 $as_echo_n "checking for 64-bit off_t... " >&6; }
19444 if test "${gl_cv_type_off_t_64+set}" = set; then :
19445 $as_echo_n "(cached) " >&6
19446 else
19447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19448 /* end confdefs.h. */
19449 #include <sys/types.h>
19450 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19451
19452 int
19453 main ()
19454 {
19455
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 if ac_fn_c_try_compile "$LINENO"; then :
19461 gl_cv_type_off_t_64=yes
19462 else
19463 gl_cv_type_off_t_64=no
19464 fi
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466
19467 fi
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19469 $as_echo "$gl_cv_type_off_t_64" >&6; }
19470 if test $gl_cv_type_off_t_64 = no; then
19471 WINDOWS_64_BIT_OFF_T=1
19472 else
19473 WINDOWS_64_BIT_OFF_T=0
19474 fi
19475 WINDOWS_64_BIT_ST_SIZE=1
19476 ;;
19477 *)
19478 WINDOWS_64_BIT_OFF_T=0
19479 WINDOWS_64_BIT_ST_SIZE=0
19480 ;;
19481 esac
19482
19483
19484
19485
19486 GNULIB_FFSL=0;
19487 GNULIB_FFSLL=0;
19488 GNULIB_MEMCHR=0;
19489 GNULIB_MEMMEM=0;
19490 GNULIB_MEMPCPY=0;
19491 GNULIB_MEMRCHR=0;
19492 GNULIB_RAWMEMCHR=0;
19493 GNULIB_STPCPY=0;
19494 GNULIB_STPNCPY=0;
19495 GNULIB_STRCHRNUL=0;
19496 GNULIB_STRDUP=0;
19497 GNULIB_STRNCAT=0;
19498 GNULIB_STRNDUP=0;
19499 GNULIB_STRNLEN=0;
19500 GNULIB_STRPBRK=0;
19501 GNULIB_STRSEP=0;
19502 GNULIB_STRSTR=0;
19503 GNULIB_STRCASESTR=0;
19504 GNULIB_STRTOK_R=0;
19505 GNULIB_MBSLEN=0;
19506 GNULIB_MBSNLEN=0;
19507 GNULIB_MBSCHR=0;
19508 GNULIB_MBSRCHR=0;
19509 GNULIB_MBSSTR=0;
19510 GNULIB_MBSCASECMP=0;
19511 GNULIB_MBSNCASECMP=0;
19512 GNULIB_MBSPCASECMP=0;
19513 GNULIB_MBSCASESTR=0;
19514 GNULIB_MBSCSPN=0;
19515 GNULIB_MBSPBRK=0;
19516 GNULIB_MBSSPN=0;
19517 GNULIB_MBSSEP=0;
19518 GNULIB_MBSTOK_R=0;
19519 GNULIB_STRERROR=0;
19520 GNULIB_STRERROR_R=0;
19521 GNULIB_STRSIGNAL=0;
19522 GNULIB_STRVERSCMP=0;
19523 HAVE_MBSLEN=0;
19524 HAVE_FFSL=1;
19525 HAVE_FFSLL=1;
19526 HAVE_MEMCHR=1;
19527 HAVE_DECL_MEMMEM=1;
19528 HAVE_MEMPCPY=1;
19529 HAVE_DECL_MEMRCHR=1;
19530 HAVE_RAWMEMCHR=1;
19531 HAVE_STPCPY=1;
19532 HAVE_STPNCPY=1;
19533 HAVE_STRCHRNUL=1;
19534 HAVE_DECL_STRDUP=1;
19535 HAVE_DECL_STRNDUP=1;
19536 HAVE_DECL_STRNLEN=1;
19537 HAVE_STRPBRK=1;
19538 HAVE_STRSEP=1;
19539 HAVE_STRCASESTR=1;
19540 HAVE_DECL_STRTOK_R=1;
19541 HAVE_DECL_STRERROR_R=1;
19542 HAVE_DECL_STRSIGNAL=1;
19543 HAVE_STRVERSCMP=1;
19544 REPLACE_MEMCHR=0;
19545 REPLACE_MEMMEM=0;
19546 REPLACE_STPNCPY=0;
19547 REPLACE_STRDUP=0;
19548 REPLACE_STRSTR=0;
19549 REPLACE_STRCASESTR=0;
19550 REPLACE_STRCHRNUL=0;
19551 REPLACE_STRERROR=0;
19552 REPLACE_STRERROR_R=0;
19553 REPLACE_STRNCAT=0;
19554 REPLACE_STRNDUP=0;
19555 REPLACE_STRNLEN=0;
19556 REPLACE_STRSIGNAL=0;
19557 REPLACE_STRTOK_R=0;
19558 UNDEFINE_STRTOK_R=0;
19559
19560 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
19561 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
19562 ac_have_decl=1
19563 else
19564 ac_have_decl=0
19565 fi
19566
19567 cat >>confdefs.h <<_ACEOF
19568 #define HAVE_DECL_MEMRCHR $ac_have_decl
19569 _ACEOF
19570
19571
19572 GNULIB_MKTIME=0;
19573 GNULIB_NANOSLEEP=0;
19574 GNULIB_STRPTIME=0;
19575 GNULIB_TIMEGM=0;
19576 GNULIB_TIME_R=0;
19577 HAVE_DECL_LOCALTIME_R=1;
19578 HAVE_NANOSLEEP=1;
19579 HAVE_STRPTIME=1;
19580 HAVE_TIMEGM=1;
19581 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19582 REPLACE_MKTIME=GNULIB_PORTCHECK;
19583 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19584 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19585
19586
19587
19588
19589 GNULIB_PSELECT=0;
19590 GNULIB_SELECT=0;
19591 HAVE_PSELECT=1;
19592 REPLACE_PSELECT=0;
19593 REPLACE_SELECT=0;
19594
19595
19596
19597
19598
19599
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19601 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19602 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19603 $as_echo_n "(cached) " >&6
19604 else
19605
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h. */
19608 #include <sys/select.h>
19609 int
19610 main ()
19611 {
19612 struct timeval b;
19613 ;
19614 return 0;
19615 }
19616 _ACEOF
19617 if ac_fn_c_try_compile "$LINENO"; then :
19618 gl_cv_header_sys_select_h_selfcontained=yes
19619 else
19620 gl_cv_header_sys_select_h_selfcontained=no
19621 fi
19622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19623 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19626 #include <sys/select.h>
19627 int
19628 main ()
19629 {
19630 int memset; int bzero;
19631 ;
19632 return 0;
19633 }
19634
19635 _ACEOF
19636 if ac_fn_c_try_compile "$LINENO"; then :
19637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19639 #include <sys/select.h>
19640 int
19641 main ()
19642 {
19643
19644 #undef memset
19645 #define memset nonexistent_memset
19646 extern
19647 #ifdef __cplusplus
19648 "C"
19649 #endif
19650 void *memset (void *, int, unsigned long);
19651 #undef bzero
19652 #define bzero nonexistent_bzero
19653 extern
19654 #ifdef __cplusplus
19655 "C"
19656 #endif
19657 void bzero (void *, unsigned long);
19658 fd_set fds;
19659 FD_ZERO (&fds);
19660
19661 ;
19662 return 0;
19663 }
19664
19665 _ACEOF
19666 if ac_fn_c_try_link "$LINENO"; then :
19667
19668 else
19669 gl_cv_header_sys_select_h_selfcontained=no
19670 fi
19671 rm -f core conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19673
19674 fi
19675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19676 fi
19677
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19680 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690 if test $gl_cv_have_include_next = yes; then
19691 gl_cv_next_sys_select_h='<'sys/select.h'>'
19692 else
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19694 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19695 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19696 $as_echo_n "(cached) " >&6
19697 else
19698
19699 if test $ac_cv_header_sys_select_h = yes; then
19700
19701
19702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h. */
19704 #include <sys/select.h>
19705
19706 _ACEOF
19707 case "$host_os" in
19708 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19709 *) gl_absname_cpp="$ac_cpp" ;;
19710 esac
19711
19712 case "$host_os" in
19713 mingw*)
19714 gl_dirsep_regex='[/\\]'
19715 ;;
19716 *)
19717 gl_dirsep_regex='\/'
19718 ;;
19719 esac
19720 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19721
19722 gl_header_literal_regex=`echo 'sys/select.h' \
19723 | sed -e "$gl_make_literal_regex_sed"`
19724 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19725 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19726 s|^/[^/]|//&|
19727 p
19728 q
19729 }'
19730 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19731 sed -n "$gl_absolute_header_sed"`'"'
19732 else
19733 gl_cv_next_sys_select_h='<'sys/select.h'>'
19734 fi
19735
19736
19737 fi
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19739 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19740 fi
19741 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19742
19743 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19744 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19745 gl_next_as_first_directive='<'sys/select.h'>'
19746 else
19747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19748 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19749 fi
19750 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19751
19752
19753
19754
19755 if test $ac_cv_header_sys_select_h = yes; then
19756 HAVE_SYS_SELECT_H=1
19757 else
19758 HAVE_SYS_SELECT_H=0
19759 fi
19760
19761
19762
19763
19764
19765 if test $ac_cv_header_sys_socket_h != yes; then
19766 for ac_header in winsock2.h
19767 do :
19768 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19769 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19770 cat >>confdefs.h <<_ACEOF
19771 #define HAVE_WINSOCK2_H 1
19772 _ACEOF
19773
19774 fi
19775
19776 done
19777
19778 fi
19779 if test "$ac_cv_header_winsock2_h" = yes; then
19780 HAVE_WINSOCK2_H=1
19781 UNISTD_H_HAVE_WINSOCK2_H=1
19782 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19783 else
19784 HAVE_WINSOCK2_H=0
19785 fi
19786
19787
19788
19789
19790
19791
19792
19793
19794 GNULIB_PTHREAD_SIGMASK=0;
19795 GNULIB_RAISE=0;
19796 GNULIB_SIGNAL_H_SIGPIPE=0;
19797 GNULIB_SIGPROCMASK=0;
19798 GNULIB_SIGACTION=0;
19799 HAVE_POSIX_SIGNALBLOCKING=1;
19800 HAVE_PTHREAD_SIGMASK=1;
19801 HAVE_RAISE=1;
19802 HAVE_SIGSET_T=1;
19803 HAVE_SIGINFO_T=1;
19804 HAVE_SIGACTION=1;
19805 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19806
19807 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19808
19809 HAVE_SIGHANDLER_T=1;
19810 REPLACE_PTHREAD_SIGMASK=0;
19811 REPLACE_RAISE=0;
19812
19813
19814
19815
19816
19817
19818
19819 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19820 #include <signal.h>
19821 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19822 #include <sys/types.h>
19823
19824 "
19825 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19826
19827 cat >>confdefs.h <<_ACEOF
19828 #define HAVE_SIGSET_T 1
19829 _ACEOF
19830
19831 gl_cv_type_sigset_t=yes
19832 else
19833 gl_cv_type_sigset_t=no
19834 fi
19835
19836 if test $gl_cv_type_sigset_t != yes; then
19837 HAVE_SIGSET_T=0
19838 fi
19839
19840
19841
19842 if test $ac_cv_header_sys_socket_h = no; then
19843 for ac_header in ws2tcpip.h
19844 do :
19845 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19846 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19847 cat >>confdefs.h <<_ACEOF
19848 #define HAVE_WS2TCPIP_H 1
19849 _ACEOF
19850
19851 fi
19852
19853 done
19854
19855 fi
19856
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19858 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19859 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19860 $as_echo_n "(cached) " >&6
19861 else
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19864
19865 #include <stdbool.h>
19866 #ifndef bool
19867 "error: bool is not defined"
19868 #endif
19869 #ifndef false
19870 "error: false is not defined"
19871 #endif
19872 #if false
19873 "error: false is not 0"
19874 #endif
19875 #ifndef true
19876 "error: true is not defined"
19877 #endif
19878 #if true != 1
19879 "error: true is not 1"
19880 #endif
19881 #ifndef __bool_true_false_are_defined
19882 "error: __bool_true_false_are_defined is not defined"
19883 #endif
19884
19885 struct s { _Bool s: 1; _Bool t; } s;
19886
19887 char a[true == 1 ? 1 : -1];
19888 char b[false == 0 ? 1 : -1];
19889 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19890 char d[(bool) 0.5 == true ? 1 : -1];
19891 /* See body of main program for 'e'. */
19892 char f[(_Bool) 0.0 == false ? 1 : -1];
19893 char g[true];
19894 char h[sizeof (_Bool)];
19895 char i[sizeof s.t];
19896 enum { j = false, k = true, l = false * true, m = true * 256 };
19897 /* The following fails for
19898 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19899 _Bool n[m];
19900 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19901 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19902 /* Catch a bug in an HP-UX C compiler. See
19903 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19904 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19905 */
19906 _Bool q = true;
19907 _Bool *pq = &q;
19908
19909 int
19910 main ()
19911 {
19912
19913 bool e = &s;
19914 *pq |= q;
19915 *pq |= ! q;
19916 /* Refer to every declared value, to avoid compiler optimizations. */
19917 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19918 + !m + !n + !o + !p + !q + !pq);
19919
19920 ;
19921 return 0;
19922 }
19923 _ACEOF
19924 if ac_fn_c_try_compile "$LINENO"; then :
19925 ac_cv_header_stdbool_h=yes
19926 else
19927 ac_cv_header_stdbool_h=no
19928 fi
19929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19930 fi
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19932 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19933 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19934 if test "x$ac_cv_type__Bool" = x""yes; then :
19935
19936 cat >>confdefs.h <<_ACEOF
19937 #define HAVE__BOOL 1
19938 _ACEOF
19939
19940
19941 fi
19942
19943
19944
19945 REPLACE_NULL=0;
19946 HAVE_WCHAR_T=1;
19947
19948
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19950 $as_echo_n "checking for wchar_t... " >&6; }
19951 if test "${gt_cv_c_wchar_t+set}" = set; then :
19952 $as_echo_n "(cached) " >&6
19953 else
19954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h. */
19956 #include <stddef.h>
19957 wchar_t foo = (wchar_t)'\0';
19958 int
19959 main ()
19960 {
19961
19962 ;
19963 return 0;
19964 }
19965 _ACEOF
19966 if ac_fn_c_try_compile "$LINENO"; then :
19967 gt_cv_c_wchar_t=yes
19968 else
19969 gt_cv_c_wchar_t=no
19970 fi
19971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19972 fi
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19974 $as_echo "$gt_cv_c_wchar_t" >&6; }
19975 if test $gt_cv_c_wchar_t = yes; then
19976
19977 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19978
19979 fi
19980
19981
19982 GNULIB_DPRINTF=0;
19983 GNULIB_FCLOSE=0;
19984 GNULIB_FDOPEN=0;
19985 GNULIB_FFLUSH=0;
19986 GNULIB_FGETC=0;
19987 GNULIB_FGETS=0;
19988 GNULIB_FOPEN=0;
19989 GNULIB_FPRINTF=0;
19990 GNULIB_FPRINTF_POSIX=0;
19991 GNULIB_FPURGE=0;
19992 GNULIB_FPUTC=0;
19993 GNULIB_FPUTS=0;
19994 GNULIB_FREAD=0;
19995 GNULIB_FREOPEN=0;
19996 GNULIB_FSCANF=0;
19997 GNULIB_FSEEK=0;
19998 GNULIB_FSEEKO=0;
19999 GNULIB_FTELL=0;
20000 GNULIB_FTELLO=0;
20001 GNULIB_FWRITE=0;
20002 GNULIB_GETC=0;
20003 GNULIB_GETCHAR=0;
20004 GNULIB_GETDELIM=0;
20005 GNULIB_GETLINE=0;
20006 GNULIB_OBSTACK_PRINTF=0;
20007 GNULIB_OBSTACK_PRINTF_POSIX=0;
20008 GNULIB_PCLOSE=0;
20009 GNULIB_PERROR=0;
20010 GNULIB_POPEN=0;
20011 GNULIB_PRINTF=0;
20012 GNULIB_PRINTF_POSIX=0;
20013 GNULIB_PUTC=0;
20014 GNULIB_PUTCHAR=0;
20015 GNULIB_PUTS=0;
20016 GNULIB_REMOVE=0;
20017 GNULIB_RENAME=0;
20018 GNULIB_RENAMEAT=0;
20019 GNULIB_SCANF=0;
20020 GNULIB_SNPRINTF=0;
20021 GNULIB_SPRINTF_POSIX=0;
20022 GNULIB_STDIO_H_NONBLOCKING=0;
20023 GNULIB_STDIO_H_SIGPIPE=0;
20024 GNULIB_TMPFILE=0;
20025 GNULIB_VASPRINTF=0;
20026 GNULIB_VFSCANF=0;
20027 GNULIB_VSCANF=0;
20028 GNULIB_VDPRINTF=0;
20029 GNULIB_VFPRINTF=0;
20030 GNULIB_VFPRINTF_POSIX=0;
20031 GNULIB_VPRINTF=0;
20032 GNULIB_VPRINTF_POSIX=0;
20033 GNULIB_VSNPRINTF=0;
20034 GNULIB_VSPRINTF_POSIX=0;
20035 HAVE_DECL_FPURGE=1;
20036 HAVE_DECL_FSEEKO=1;
20037 HAVE_DECL_FTELLO=1;
20038 HAVE_DECL_GETDELIM=1;
20039 HAVE_DECL_GETLINE=1;
20040 HAVE_DECL_OBSTACK_PRINTF=1;
20041 HAVE_DECL_SNPRINTF=1;
20042 HAVE_DECL_VSNPRINTF=1;
20043 HAVE_DPRINTF=1;
20044 HAVE_FSEEKO=1;
20045 HAVE_FTELLO=1;
20046 HAVE_PCLOSE=1;
20047 HAVE_POPEN=1;
20048 HAVE_RENAMEAT=1;
20049 HAVE_VASPRINTF=1;
20050 HAVE_VDPRINTF=1;
20051 REPLACE_DPRINTF=0;
20052 REPLACE_FCLOSE=0;
20053 REPLACE_FDOPEN=0;
20054 REPLACE_FFLUSH=0;
20055 REPLACE_FOPEN=0;
20056 REPLACE_FPRINTF=0;
20057 REPLACE_FPURGE=0;
20058 REPLACE_FREOPEN=0;
20059 REPLACE_FSEEK=0;
20060 REPLACE_FSEEKO=0;
20061 REPLACE_FTELL=0;
20062 REPLACE_FTELLO=0;
20063 REPLACE_GETDELIM=0;
20064 REPLACE_GETLINE=0;
20065 REPLACE_OBSTACK_PRINTF=0;
20066 REPLACE_PERROR=0;
20067 REPLACE_POPEN=0;
20068 REPLACE_PRINTF=0;
20069 REPLACE_REMOVE=0;
20070 REPLACE_RENAME=0;
20071 REPLACE_RENAMEAT=0;
20072 REPLACE_SNPRINTF=0;
20073 REPLACE_SPRINTF=0;
20074 REPLACE_STDIO_READ_FUNCS=0;
20075 REPLACE_STDIO_WRITE_FUNCS=0;
20076 REPLACE_TMPFILE=0;
20077 REPLACE_VASPRINTF=0;
20078 REPLACE_VDPRINTF=0;
20079 REPLACE_VFPRINTF=0;
20080 REPLACE_VPRINTF=0;
20081 REPLACE_VSNPRINTF=0;
20082 REPLACE_VSPRINTF=0;
20083
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20085 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20086 if test "${ac_cv_struct_tm+set}" = set; then :
20087 $as_echo_n "(cached) " >&6
20088 else
20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20090 /* end confdefs.h. */
20091 #include <sys/types.h>
20092 #include <time.h>
20093
20094 int
20095 main ()
20096 {
20097 struct tm tm;
20098 int *p = &tm.tm_sec;
20099 return !p;
20100 ;
20101 return 0;
20102 }
20103 _ACEOF
20104 if ac_fn_c_try_compile "$LINENO"; then :
20105 ac_cv_struct_tm=time.h
20106 else
20107 ac_cv_struct_tm=sys/time.h
20108 fi
20109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20110 fi
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20112 $as_echo "$ac_cv_struct_tm" >&6; }
20113 if test $ac_cv_struct_tm = sys/time.h; then
20114
20115 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20116
20117 fi
20118
20119 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20120 #include <$ac_cv_struct_tm>
20121
20122 "
20123 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20124
20125 cat >>confdefs.h <<_ACEOF
20126 #define HAVE_STRUCT_TM_TM_ZONE 1
20127 _ACEOF
20128
20129
20130 fi
20131
20132 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20133
20134 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20135
20136 else
20137 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20138 "
20139 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
20140 ac_have_decl=1
20141 else
20142 ac_have_decl=0
20143 fi
20144
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_DECL_TZNAME $ac_have_decl
20147 _ACEOF
20148
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20150 $as_echo_n "checking for tzname... " >&6; }
20151 if test "${ac_cv_var_tzname+set}" = set; then :
20152 $as_echo_n "(cached) " >&6
20153 else
20154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20155 /* end confdefs.h. */
20156 #include <time.h>
20157 #if !HAVE_DECL_TZNAME
20158 extern char *tzname[];
20159 #endif
20160
20161 int
20162 main ()
20163 {
20164 return tzname[0][0];
20165 ;
20166 return 0;
20167 }
20168 _ACEOF
20169 if ac_fn_c_try_link "$LINENO"; then :
20170 ac_cv_var_tzname=yes
20171 else
20172 ac_cv_var_tzname=no
20173 fi
20174 rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext conftest.$ac_ext
20176 fi
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20178 $as_echo "$ac_cv_var_tzname" >&6; }
20179 if test $ac_cv_var_tzname = yes; then
20180
20181 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20182
20183 fi
20184 fi
20185
20186
20187 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20188 "
20189 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
20190
20191 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20192
20193 fi
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207 if test $gl_cv_have_include_next = yes; then
20208 gl_cv_next_string_h='<'string.h'>'
20209 else
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20211 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20212 if test "${gl_cv_next_string_h+set}" = set; then :
20213 $as_echo_n "(cached) " >&6
20214 else
20215
20216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20218 #include <string.h>
20219
20220 _ACEOF
20221 case "$host_os" in
20222 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20223 *) gl_absname_cpp="$ac_cpp" ;;
20224 esac
20225
20226 case "$host_os" in
20227 mingw*)
20228 gl_dirsep_regex='[/\\]'
20229 ;;
20230 *)
20231 gl_dirsep_regex='\/'
20232 ;;
20233 esac
20234 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20235
20236 gl_header_literal_regex=`echo 'string.h' \
20237 | sed -e "$gl_make_literal_regex_sed"`
20238 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20239 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20240 s|^/[^/]|//&|
20241 p
20242 q
20243 }'
20244 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20245 sed -n "$gl_absolute_header_sed"`'"'
20246
20247
20248 fi
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20250 $as_echo "$gl_cv_next_string_h" >&6; }
20251 fi
20252 NEXT_STRING_H=$gl_cv_next_string_h
20253
20254 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20256 gl_next_as_first_directive='<'string.h'>'
20257 else
20258 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20259 gl_next_as_first_directive=$gl_cv_next_string_h
20260 fi
20261 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20272 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
20273 ac_have_decl=1
20274 else
20275 ac_have_decl=0
20276 fi
20277
20278 cat >>confdefs.h <<_ACEOF
20279 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20280 _ACEOF
20281
20282
20283
20284 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20285 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
20286 ac_have_decl=1
20287 else
20288 ac_have_decl=0
20289 fi
20290
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20293 _ACEOF
20294
20295
20296
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20298 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20299 if test "${ac_cv_header_stat_broken+set}" = set; then :
20300 $as_echo_n "(cached) " >&6
20301 else
20302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303 /* end confdefs.h. */
20304 #include <sys/types.h>
20305 #include <sys/stat.h>
20306
20307 #if defined S_ISBLK && defined S_IFDIR
20308 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20309 #endif
20310
20311 #if defined S_ISBLK && defined S_IFCHR
20312 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20313 #endif
20314
20315 #if defined S_ISLNK && defined S_IFREG
20316 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20317 #endif
20318
20319 #if defined S_ISSOCK && defined S_IFREG
20320 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20321 #endif
20322
20323 _ACEOF
20324 if ac_fn_c_try_compile "$LINENO"; then :
20325 ac_cv_header_stat_broken=no
20326 else
20327 ac_cv_header_stat_broken=yes
20328 fi
20329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 fi
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20332 $as_echo "$ac_cv_header_stat_broken" >&6; }
20333 if test $ac_cv_header_stat_broken = yes; then
20334
20335 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20336
20337 fi
20338
20339
20340
20341
20342
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20344 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20345 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20346 $as_echo_n "(cached) " >&6
20347 else
20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h. */
20350 #include <time.h>
20351
20352 int
20353 main ()
20354 {
20355 static struct timespec x; x.tv_sec = x.tv_nsec;
20356 ;
20357 return 0;
20358 }
20359 _ACEOF
20360 if ac_fn_c_try_compile "$LINENO"; then :
20361 gl_cv_sys_struct_timespec_in_time_h=yes
20362 else
20363 gl_cv_sys_struct_timespec_in_time_h=no
20364 fi
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366 fi
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20368 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20369
20370 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20371 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20372 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20373 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20374 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20375 else
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20377 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20378 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20379 $as_echo_n "(cached) " >&6
20380 else
20381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20382 /* end confdefs.h. */
20383 #include <sys/time.h>
20384
20385 int
20386 main ()
20387 {
20388 static struct timespec x; x.tv_sec = x.tv_nsec;
20389 ;
20390 return 0;
20391 }
20392 _ACEOF
20393 if ac_fn_c_try_compile "$LINENO"; then :
20394 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20395 else
20396 gl_cv_sys_struct_timespec_in_sys_time_h=no
20397 fi
20398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 fi
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20401 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20402 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20403 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20404 else
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20406 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20407 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20408 $as_echo_n "(cached) " >&6
20409 else
20410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20411 /* end confdefs.h. */
20412 #include <pthread.h>
20413
20414 int
20415 main ()
20416 {
20417 static struct timespec x; x.tv_sec = x.tv_nsec;
20418 ;
20419 return 0;
20420 }
20421 _ACEOF
20422 if ac_fn_c_try_compile "$LINENO"; then :
20423 gl_cv_sys_struct_timespec_in_pthread_h=yes
20424 else
20425 gl_cv_sys_struct_timespec_in_pthread_h=no
20426 fi
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428 fi
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20430 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20431 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20432 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20433 fi
20434 fi
20435 fi
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451 if test $gl_cv_have_include_next = yes; then
20452 gl_cv_next_time_h='<'time.h'>'
20453 else
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20455 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20456 if test "${gl_cv_next_time_h+set}" = set; then :
20457 $as_echo_n "(cached) " >&6
20458 else
20459
20460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20461 /* end confdefs.h. */
20462 #include <time.h>
20463
20464 _ACEOF
20465 case "$host_os" in
20466 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20467 *) gl_absname_cpp="$ac_cpp" ;;
20468 esac
20469
20470 case "$host_os" in
20471 mingw*)
20472 gl_dirsep_regex='[/\\]'
20473 ;;
20474 *)
20475 gl_dirsep_regex='\/'
20476 ;;
20477 esac
20478 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20479
20480 gl_header_literal_regex=`echo 'time.h' \
20481 | sed -e "$gl_make_literal_regex_sed"`
20482 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20483 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20484 s|^/[^/]|//&|
20485 p
20486 q
20487 }'
20488 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20489 sed -n "$gl_absolute_header_sed"`'"'
20490
20491
20492 fi
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20494 $as_echo "$gl_cv_next_time_h" >&6; }
20495 fi
20496 NEXT_TIME_H=$gl_cv_next_time_h
20497
20498 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20500 gl_next_as_first_directive='<'time.h'>'
20501 else
20502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20503 gl_next_as_first_directive=$gl_cv_next_time_h
20504 fi
20505 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20521 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
20522 ac_have_decl=1
20523 else
20524 ac_have_decl=0
20525 fi
20526
20527 cat >>confdefs.h <<_ACEOF
20528 #define HAVE_DECL_UNSETENV $ac_have_decl
20529 _ACEOF
20530
20531
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20533 $as_echo_n "checking whether the utimes function works... " >&6; }
20534 if test "${gl_cv_func_working_utimes+set}" = set; then :
20535 $as_echo_n "(cached) " >&6
20536 else
20537
20538 if test "$cross_compiling" = yes; then :
20539 gl_cv_func_working_utimes=no
20540 else
20541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20542 /* end confdefs.h. */
20543
20544 #include <sys/types.h>
20545 #include <sys/stat.h>
20546 #include <fcntl.h>
20547 #include <sys/time.h>
20548 #include <time.h>
20549 #include <unistd.h>
20550 #include <stdlib.h>
20551 #include <stdio.h>
20552 #include <utime.h>
20553
20554 static int
20555 inorder (time_t a, time_t b, time_t c)
20556 {
20557 return a <= b && b <= c;
20558 }
20559
20560 int
20561 main ()
20562 {
20563 int result = 0;
20564 char const *file = "conftest.utimes";
20565 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20566
20567 /* Test whether utimes() essentially works. */
20568 {
20569 struct stat sbuf;
20570 FILE *f = fopen (file, "w");
20571 if (f == NULL)
20572 result |= 1;
20573 else if (fclose (f) != 0)
20574 result |= 1;
20575 else if (utimes (file, timeval) != 0)
20576 result |= 2;
20577 else if (lstat (file, &sbuf) != 0)
20578 result |= 1;
20579 else if (!(sbuf.st_atime == timeval[0].tv_sec
20580 && sbuf.st_mtime == timeval[1].tv_sec))
20581 result |= 4;
20582 if (unlink (file) != 0)
20583 result |= 1;
20584 }
20585
20586 /* Test whether utimes() with a NULL argument sets the file's timestamp
20587 to the current time. Use 'fstat' as well as 'time' to
20588 determine the "current" time, to accommodate NFS file systems
20589 if there is a time skew between the host and the NFS server. */
20590 {
20591 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20592 if (fd < 0)
20593 result |= 1;
20594 else
20595 {
20596 time_t t0, t2;
20597 struct stat st0, st1, st2;
20598 if (time (&t0) == (time_t) -1)
20599 result |= 1;
20600 else if (fstat (fd, &st0) != 0)
20601 result |= 1;
20602 else if (utimes (file, timeval) != 0)
20603 result |= 2;
20604 else if (utimes (file, NULL) != 0)
20605 result |= 8;
20606 else if (fstat (fd, &st1) != 0)
20607 result |= 1;
20608 else if (write (fd, "\n", 1) != 1)
20609 result |= 1;
20610 else if (fstat (fd, &st2) != 0)
20611 result |= 1;
20612 else if (time (&t2) == (time_t) -1)
20613 result |= 1;
20614 else
20615 {
20616 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20617 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20618 if (! (st1.st_atime == st1.st_mtime))
20619 result |= 16;
20620 if (! (m_ok_POSIX || m_ok_NFS))
20621 result |= 32;
20622 }
20623 if (close (fd) != 0)
20624 result |= 1;
20625 }
20626 if (unlink (file) != 0)
20627 result |= 1;
20628 }
20629
20630 /* Test whether utimes() with a NULL argument works on read-only files. */
20631 {
20632 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20633 if (fd < 0)
20634 result |= 1;
20635 else if (close (fd) != 0)
20636 result |= 1;
20637 else if (utimes (file, NULL) != 0)
20638 result |= 64;
20639 if (unlink (file) != 0)
20640 result |= 1;
20641 }
20642
20643 return result;
20644 }
20645
20646 _ACEOF
20647 if ac_fn_c_try_run "$LINENO"; then :
20648 gl_cv_func_working_utimes=yes
20649 else
20650 gl_cv_func_working_utimes=no
20651 fi
20652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20653 conftest.$ac_objext conftest.beam conftest.$ac_ext
20654 fi
20655
20656 fi
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20658 $as_echo "$gl_cv_func_working_utimes" >&6; }
20659
20660 if test $gl_cv_func_working_utimes = yes; then
20661
20662 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20663
20664 fi
20665
20666
20667
20668
20669
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20671 $as_echo_n "checking for struct utimbuf... " >&6; }
20672 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20673 $as_echo_n "(cached) " >&6
20674 else
20675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20676 /* end confdefs.h. */
20677 #if HAVE_SYS_TIME_H
20678 #include <sys/time.h>
20679 #endif
20680 #include <time.h>
20681 #ifdef HAVE_UTIME_H
20682 #include <utime.h>
20683 #endif
20684
20685 int
20686 main ()
20687 {
20688 static struct utimbuf x; x.actime = x.modtime;
20689 ;
20690 return 0;
20691 }
20692 _ACEOF
20693 if ac_fn_c_try_compile "$LINENO"; then :
20694 gl_cv_sys_struct_utimbuf=yes
20695 else
20696 gl_cv_sys_struct_utimbuf=no
20697 fi
20698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20699 fi
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20701 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20702
20703 if test $gl_cv_sys_struct_utimbuf = yes; then
20704
20705 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20706
20707 fi
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20720 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20721 if test "${ac_cv_type_getgroups+set}" = set; then :
20722 $as_echo_n "(cached) " >&6
20723 else
20724 if test "$cross_compiling" = yes; then :
20725 ac_cv_type_getgroups=cross
20726 else
20727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20728 /* end confdefs.h. */
20729 /* Thanks to Mike Rendell for this test. */
20730 $ac_includes_default
20731 #define NGID 256
20732 #undef MAX
20733 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20734
20735 int
20736 main ()
20737 {
20738 gid_t gidset[NGID];
20739 int i, n;
20740 union { gid_t gval; long int lval; } val;
20741
20742 val.lval = -1;
20743 for (i = 0; i < NGID; i++)
20744 gidset[i] = val.gval;
20745 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20746 gidset);
20747 /* Exit non-zero if getgroups seems to require an array of ints. This
20748 happens when gid_t is short int but getgroups modifies an array
20749 of ints. */
20750 return n > 0 && gidset[n] != val.gval;
20751 }
20752 _ACEOF
20753 if ac_fn_c_try_run "$LINENO"; then :
20754 ac_cv_type_getgroups=gid_t
20755 else
20756 ac_cv_type_getgroups=int
20757 fi
20758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20759 conftest.$ac_objext conftest.beam conftest.$ac_ext
20760 fi
20761
20762 if test $ac_cv_type_getgroups = cross; then
20763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20764 /* end confdefs.h. */
20765 #include <unistd.h>
20766
20767 _ACEOF
20768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20769 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20770 ac_cv_type_getgroups=gid_t
20771 else
20772 ac_cv_type_getgroups=int
20773 fi
20774 rm -f conftest*
20775
20776 fi
20777 fi
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20779 $as_echo "$ac_cv_type_getgroups" >&6; }
20780
20781 cat >>confdefs.h <<_ACEOF
20782 #define GETGROUPS_T $ac_cv_type_getgroups
20783 _ACEOF
20784
20785
20786
20787
20788 if false; then
20789 GL_COND_LIBTOOL_TRUE=
20790 GL_COND_LIBTOOL_FALSE='#'
20791 else
20792 GL_COND_LIBTOOL_TRUE='#'
20793 GL_COND_LIBTOOL_FALSE=
20794 fi
20795
20796 gl_cond_libtool=false
20797 gl_libdeps=
20798 gl_ltlibdeps=
20799 gl_m4_base='m4'
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809 gl_source_base='lib'
20810
20811
20812 if test $ac_cv_func_alloca_works = no; then
20813 :
20814 fi
20815
20816 # Define an additional variable used in the Makefile substitution.
20817 if test $ac_cv_working_alloca_h = yes; then
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20819 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20820 if test "${gl_cv_rpl_alloca+set}" = set; then :
20821 $as_echo_n "(cached) " >&6
20822 else
20823
20824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825 /* end confdefs.h. */
20826
20827 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20828 Need own alloca
20829 #endif
20830
20831 _ACEOF
20832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20833 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20834 gl_cv_rpl_alloca=yes
20835 else
20836 gl_cv_rpl_alloca=no
20837 fi
20838 rm -f conftest*
20839
20840
20841 fi
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20843 $as_echo "$gl_cv_rpl_alloca" >&6; }
20844 if test $gl_cv_rpl_alloca = yes; then
20845
20846 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20847
20848 ALLOCA_H=alloca.h
20849 else
20850 ALLOCA_H=
20851 fi
20852 else
20853 ALLOCA_H=alloca.h
20854 fi
20855
20856 if test -n "$ALLOCA_H"; then
20857 GL_GENERATE_ALLOCA_H_TRUE=
20858 GL_GENERATE_ALLOCA_H_FALSE='#'
20859 else
20860 GL_GENERATE_ALLOCA_H_TRUE='#'
20861 GL_GENERATE_ALLOCA_H_FALSE=
20862 fi
20863
20864
20865
20866
20867
20868
20869 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20870 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20871
20872 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20873 # programs in the package would end up linked with that potentially-shared
20874 # library, inducing unnecessary run-time overhead.
20875 LIB_CLOCK_GETTIME=
20876
20877 gl_saved_libs=$LIBS
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20879 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20880 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20881 $as_echo_n "(cached) " >&6
20882 else
20883 ac_func_search_save_LIBS=$LIBS
20884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20885 /* end confdefs.h. */
20886
20887 /* Override any GCC internal prototype to avoid an error.
20888 Use char because int might match the return type of a GCC
20889 builtin and then its argument prototype would still apply. */
20890 #ifdef __cplusplus
20891 extern "C"
20892 #endif
20893 char clock_gettime ();
20894 int
20895 main ()
20896 {
20897 return clock_gettime ();
20898 ;
20899 return 0;
20900 }
20901 _ACEOF
20902 for ac_lib in '' rt posix4; do
20903 if test -z "$ac_lib"; then
20904 ac_res="none required"
20905 else
20906 ac_res=-l$ac_lib
20907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20908 fi
20909 if ac_fn_c_try_link "$LINENO"; then :
20910 ac_cv_search_clock_gettime=$ac_res
20911 fi
20912 rm -f core conftest.err conftest.$ac_objext \
20913 conftest$ac_exeext
20914 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20915 break
20916 fi
20917 done
20918 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20919
20920 else
20921 ac_cv_search_clock_gettime=no
20922 fi
20923 rm conftest.$ac_ext
20924 LIBS=$ac_func_search_save_LIBS
20925 fi
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20927 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20928 ac_res=$ac_cv_search_clock_gettime
20929 if test "$ac_res" != no; then :
20930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20931 test "$ac_cv_search_clock_gettime" = "none required" ||
20932 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20933 fi
20934
20935 for ac_func in clock_gettime clock_settime
20936 do :
20937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20938 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20939 eval as_val=\$$as_ac_var
20940 if test "x$as_val" = x""yes; then :
20941 cat >>confdefs.h <<_ACEOF
20942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20943 _ACEOF
20944
20945 fi
20946 done
20947
20948 LIBS=$gl_saved_libs
20949
20950
20951 :
20952
20953
20954
20955 cat >>confdefs.h <<_ACEOF
20956 #define GNULIB_CLOSE_STREAM 1
20957 _ACEOF
20958
20959
20960
20961
20962 :
20963
20964
20965
20966 :
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986 if test $gl_cv_have_include_next = yes; then
20987 gl_cv_next_dirent_h='<'dirent.h'>'
20988 else
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
20990 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
20991 if test "${gl_cv_next_dirent_h+set}" = set; then :
20992 $as_echo_n "(cached) " >&6
20993 else
20994
20995 if test $ac_cv_header_dirent_h = yes; then
20996
20997
20998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20999 /* end confdefs.h. */
21000 #include <dirent.h>
21001
21002 _ACEOF
21003 case "$host_os" in
21004 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21005 *) gl_absname_cpp="$ac_cpp" ;;
21006 esac
21007
21008 case "$host_os" in
21009 mingw*)
21010 gl_dirsep_regex='[/\\]'
21011 ;;
21012 *)
21013 gl_dirsep_regex='\/'
21014 ;;
21015 esac
21016 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21017
21018 gl_header_literal_regex=`echo 'dirent.h' \
21019 | sed -e "$gl_make_literal_regex_sed"`
21020 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21021 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21022 s|^/[^/]|//&|
21023 p
21024 q
21025 }'
21026 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21027 sed -n "$gl_absolute_header_sed"`'"'
21028 else
21029 gl_cv_next_dirent_h='<'dirent.h'>'
21030 fi
21031
21032
21033 fi
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
21035 $as_echo "$gl_cv_next_dirent_h" >&6; }
21036 fi
21037 NEXT_DIRENT_H=$gl_cv_next_dirent_h
21038
21039 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21041 gl_next_as_first_directive='<'dirent.h'>'
21042 else
21043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21044 gl_next_as_first_directive=$gl_cv_next_dirent_h
21045 fi
21046 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
21047
21048
21049
21050
21051 if test $ac_cv_header_dirent_h = yes; then
21052 HAVE_DIRENT_H=1
21053 else
21054 HAVE_DIRENT_H=0
21055 fi
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
21067
21068
21069 if test $HAVE_DUP2 = 1; then
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
21071 $as_echo_n "checking whether dup2 works... " >&6; }
21072 if test "${gl_cv_func_dup2_works+set}" = set; then :
21073 $as_echo_n "(cached) " >&6
21074 else
21075 if test "$cross_compiling" = yes; then :
21076 case "$host_os" in
21077 mingw*) # on this platform, dup2 always returns 0 for success
21078 gl_cv_func_dup2_works="guessing no" ;;
21079 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
21080 gl_cv_func_dup2_works="guessing no" ;;
21081 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
21082 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
21083 gl_cv_func_dup2_works="guessing no" ;;
21084 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
21085 gl_cv_func_dup2_works="guessing no" ;;
21086 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
21087 gl_cv_func_dup2_works="guessing no" ;;
21088 *) gl_cv_func_dup2_works="guessing yes" ;;
21089 esac
21090 else
21091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21092 /* end confdefs.h. */
21093
21094 #include <unistd.h>
21095 #include <fcntl.h>
21096 #include <errno.h>
21097 int
21098 main ()
21099 {
21100 int result = 0;
21101 #ifdef FD_CLOEXEC
21102 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
21103 result |= 1;
21104 #endif
21105 if (dup2 (1, 1) == 0)
21106 result |= 2;
21107 #ifdef FD_CLOEXEC
21108 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
21109 result |= 4;
21110 #endif
21111 close (0);
21112 if (dup2 (0, 0) != -1)
21113 result |= 8;
21114 /* Many gnulib modules require POSIX conformance of EBADF. */
21115 if (dup2 (2, 1000000) == -1 && errno != EBADF)
21116 result |= 16;
21117 /* Flush out a cygwin core dump. */
21118 if (dup2 (2, -1) != -1 || errno != EBADF)
21119 result |= 32;
21120 return result;
21121
21122 ;
21123 return 0;
21124 }
21125
21126 _ACEOF
21127 if ac_fn_c_try_run "$LINENO"; then :
21128 gl_cv_func_dup2_works=yes
21129 else
21130 gl_cv_func_dup2_works=no
21131 fi
21132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21133 conftest.$ac_objext conftest.beam conftest.$ac_ext
21134 fi
21135
21136
21137 fi
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21139 $as_echo "$gl_cv_func_dup2_works" >&6; }
21140 case "$gl_cv_func_dup2_works" in
21141 *yes) ;;
21142 *)
21143 REPLACE_DUP2=1
21144 ;;
21145 esac
21146 fi
21147
21148
21149 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
21150
21151
21152
21153
21154
21155
21156
21157
21158 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
21159
21160
21161 fi
21162
21163
21164
21165
21166
21167 GNULIB_DUP2=1
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179 GNULIB_ENVIRON=1
21180
21181
21182
21183
21184
21185
21186
21187
21188 LIB_EXECINFO=''
21189 EXECINFO_H='execinfo.h'
21190
21191 if test $ac_cv_header_execinfo_h = yes; then
21192 gl_saved_libs=$LIBS
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
21194 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
21195 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21196 $as_echo_n "(cached) " >&6
21197 else
21198 ac_func_search_save_LIBS=$LIBS
21199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h. */
21201
21202 /* Override any GCC internal prototype to avoid an error.
21203 Use char because int might match the return type of a GCC
21204 builtin and then its argument prototype would still apply. */
21205 #ifdef __cplusplus
21206 extern "C"
21207 #endif
21208 char backtrace_symbols_fd ();
21209 int
21210 main ()
21211 {
21212 return backtrace_symbols_fd ();
21213 ;
21214 return 0;
21215 }
21216 _ACEOF
21217 for ac_lib in '' execinfo; do
21218 if test -z "$ac_lib"; then
21219 ac_res="none required"
21220 else
21221 ac_res=-l$ac_lib
21222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21223 fi
21224 if ac_fn_c_try_link "$LINENO"; then :
21225 ac_cv_search_backtrace_symbols_fd=$ac_res
21226 fi
21227 rm -f core conftest.err conftest.$ac_objext \
21228 conftest$ac_exeext
21229 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21230 break
21231 fi
21232 done
21233 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21234
21235 else
21236 ac_cv_search_backtrace_symbols_fd=no
21237 fi
21238 rm conftest.$ac_ext
21239 LIBS=$ac_func_search_save_LIBS
21240 fi
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21242 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21243 ac_res=$ac_cv_search_backtrace_symbols_fd
21244 if test "$ac_res" != no; then :
21245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21246 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21247 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
21248 fi
21249
21250 LIBS=$gl_saved_libs
21251 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
21252 fi
21253
21254 if test -n "$EXECINFO_H"; then
21255
21256
21257
21258
21259
21260
21261
21262
21263 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
21264
21265 fi
21266
21267
21268
21269 if test -n "$EXECINFO_H"; then
21270 GL_GENERATE_EXECINFO_H_TRUE=
21271 GL_GENERATE_EXECINFO_H_FALSE='#'
21272 else
21273 GL_GENERATE_EXECINFO_H_TRUE='#'
21274 GL_GENERATE_EXECINFO_H_FALSE=
21275 fi
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285 if test $ac_cv_func_faccessat = no; then
21286 HAVE_FACCESSAT=0
21287 fi
21288
21289 if test $HAVE_FACCESSAT = 0; then
21290
21291
21292
21293
21294
21295
21296
21297
21298 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
21299
21300
21301 for ac_func in access
21302 do :
21303 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
21304 if test "x$ac_cv_func_access" = x""yes; then :
21305 cat >>confdefs.h <<_ACEOF
21306 #define HAVE_ACCESS 1
21307 _ACEOF
21308
21309 fi
21310 done
21311
21312
21313 fi
21314
21315
21316 cat >>confdefs.h <<_ACEOF
21317 #define GNULIB_FACCESSAT 1
21318 _ACEOF
21319
21320
21321
21322
21323
21324
21325
21326 GNULIB_FACCESSAT=1
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343 if test $gl_cv_have_include_next = yes; then
21344 gl_cv_next_fcntl_h='<'fcntl.h'>'
21345 else
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21347 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21348 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21349 $as_echo_n "(cached) " >&6
21350 else
21351
21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h. */
21354 #include <fcntl.h>
21355
21356 _ACEOF
21357 case "$host_os" in
21358 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21359 *) gl_absname_cpp="$ac_cpp" ;;
21360 esac
21361
21362 case "$host_os" in
21363 mingw*)
21364 gl_dirsep_regex='[/\\]'
21365 ;;
21366 *)
21367 gl_dirsep_regex='\/'
21368 ;;
21369 esac
21370 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21371
21372 gl_header_literal_regex=`echo 'fcntl.h' \
21373 | sed -e "$gl_make_literal_regex_sed"`
21374 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21375 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21376 s|^/[^/]|//&|
21377 p
21378 q
21379 }'
21380 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21381 sed -n "$gl_absolute_header_sed"`'"'
21382
21383
21384 fi
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21386 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21387 fi
21388 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21389
21390 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21391 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21392 gl_next_as_first_directive='<'fcntl.h'>'
21393 else
21394 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21395 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21396 fi
21397 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21415 #include <dirent.h>
21416
21417 "
21418 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
21419 ac_have_decl=1
21420 else
21421 ac_have_decl=0
21422 fi
21423
21424 cat >>confdefs.h <<_ACEOF
21425 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21426 _ACEOF
21427 if test $ac_have_decl = 1; then :
21428
21429 else
21430 HAVE_DECL_FDOPENDIR=0
21431 fi
21432
21433
21434 if test $ac_cv_func_fdopendir = no; then
21435 HAVE_FDOPENDIR=0
21436 else
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21438 $as_echo_n "checking whether fdopendir works... " >&6; }
21439 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21440 $as_echo_n "(cached) " >&6
21441 else
21442 if test "$cross_compiling" = yes; then :
21443 case "$host_os" in
21444 # Guess yes on glibc systems.
21445 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
21446 # If we don't know, assume the worst.
21447 *) gl_cv_func_fdopendir_works="guessing no" ;;
21448 esac
21449
21450 else
21451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452 /* end confdefs.h. */
21453
21454 #include <dirent.h>
21455 #include <fcntl.h>
21456 #include <unistd.h>
21457 #if !HAVE_DECL_FDOPENDIR
21458 extern
21459 # ifdef __cplusplus
21460 "C"
21461 # endif
21462 DIR *fdopendir (int);
21463 #endif
21464
21465 int
21466 main ()
21467 {
21468 int result = 0;
21469 int fd = open ("conftest.c", O_RDONLY);
21470 if (fd < 0) result |= 1;
21471 if (fdopendir (fd)) result |= 2;
21472 if (close (fd)) result |= 4;
21473 return result;
21474 ;
21475 return 0;
21476 }
21477 _ACEOF
21478 if ac_fn_c_try_run "$LINENO"; then :
21479 gl_cv_func_fdopendir_works=yes
21480 else
21481 gl_cv_func_fdopendir_works=no
21482 fi
21483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21484 conftest.$ac_objext conftest.beam conftest.$ac_ext
21485 fi
21486
21487 fi
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21489 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21490 case "$gl_cv_func_fdopendir_works" in
21491 *yes) ;;
21492 *)
21493 REPLACE_FDOPENDIR=1
21494 ;;
21495 esac
21496 fi
21497
21498 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
21499
21500
21501
21502
21503
21504
21505
21506
21507 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
21508
21509 fi
21510
21511
21512
21513
21514
21515 GNULIB_FDOPENDIR=1
21516
21517
21518
21519
21520
21521
21522
21523 cat >>confdefs.h <<_ACEOF
21524 #define GNULIB_FDOPENDIR 1
21525 _ACEOF
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535 fp_headers='
21536 # include <stdio.h>
21537 # if HAVE_STDIO_EXT_H
21538 # include <stdio_ext.h>
21539 # endif
21540 '
21541 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21542 "
21543 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
21544 ac_have_decl=1
21545 else
21546 ac_have_decl=0
21547 fi
21548
21549 cat >>confdefs.h <<_ACEOF
21550 #define HAVE_DECL___FPENDING $ac_have_decl
21551 _ACEOF
21552
21553
21554 if test $ac_cv_func___fpending = no; then
21555
21556
21557
21558
21559
21560
21561
21562
21563 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21564
21565
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21567 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21568 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21569 $as_echo_n "(cached) " >&6
21570 else
21571
21572 for ac_expr in \
21573 \
21574 '# glibc2' \
21575 'fp->_IO_write_ptr - fp->_IO_write_base' \
21576 \
21577 '# traditional Unix' \
21578 'fp->_ptr - fp->_base' \
21579 \
21580 '# BSD' \
21581 'fp->_p - fp->_bf._base' \
21582 \
21583 '# SCO, Unixware' \
21584 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21585 \
21586 '# QNX' \
21587 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21588 \
21589 '# old glibc?' \
21590 'fp->__bufp - fp->__buffer' \
21591 \
21592 '# old glibc iostream?' \
21593 'fp->_pptr - fp->_pbase' \
21594 \
21595 '# emx+gcc' \
21596 'fp->_ptr - fp->_buffer' \
21597 \
21598 '# Minix' \
21599 'fp->_ptr - fp->_buf' \
21600 \
21601 '# Plan9' \
21602 'fp->wp - fp->buf' \
21603 \
21604 '# VMS' \
21605 '(*fp)->_ptr - (*fp)->_base' \
21606 \
21607 '# e.g., DGUX R4.11; the info is not available' \
21608 1 \
21609 ; do
21610
21611 # Skip each embedded comment.
21612 case "$ac_expr" in '#'*) continue;; esac
21613
21614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h. */
21616 #include <stdio.h>
21617 int
21618 main ()
21619 {
21620 FILE *fp = stdin; (void) ($ac_expr);
21621 ;
21622 return 0;
21623 }
21624 _ACEOF
21625 if ac_fn_c_try_compile "$LINENO"; then :
21626 fp_done=yes
21627
21628 fi
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630 test "$fp_done" = yes && break
21631 done
21632
21633 ac_cv_sys_pending_output_n_bytes=$ac_expr
21634
21635
21636 fi
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21638 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21639
21640 cat >>confdefs.h <<_ACEOF
21641 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21642 _ACEOF
21643
21644
21645 fi
21646
21647
21648
21649
21650
21651
21652 if test $ac_cv_func_fstatat = no; then
21653 HAVE_FSTATAT=0
21654 else
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21656 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21657 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21659 else
21660 if test "$cross_compiling" = yes; then :
21661 case "$host_os" in
21662 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
21663 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
21664 esac
21665
21666 else
21667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21668 /* end confdefs.h. */
21669
21670 #include <fcntl.h>
21671 #include <sys/stat.h>
21672 int
21673 main (void)
21674 {
21675 struct stat a;
21676 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21677 }
21678
21679 _ACEOF
21680 if ac_fn_c_try_run "$LINENO"; then :
21681 gl_cv_func_fstatat_zero_flag=yes
21682 else
21683 gl_cv_func_fstatat_zero_flag=no
21684 fi
21685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21686 conftest.$ac_objext conftest.beam conftest.$ac_ext
21687 fi
21688
21689
21690 fi
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21692 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21693
21694 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21695 *yes+*yes) ;;
21696 *) REPLACE_FSTATAT=1
21697 case $gl_cv_func_fstatat_zero_flag in
21698 *yes)
21699
21700 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21701
21702 ;;
21703 esac
21704 ;;
21705 esac
21706 fi
21707
21708 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
21709
21710
21711
21712
21713
21714
21715
21716
21717 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
21718
21719 fi
21720
21721
21722
21723
21724
21725 GNULIB_FSTATAT=1
21726
21727
21728
21729
21730
21731
21732
21733 # Persuade glibc <stdlib.h> to declare getloadavg().
21734
21735
21736 gl_save_LIBS=$LIBS
21737
21738 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21739 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21740 HAVE_GETLOADAVG=1
21741 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21742 if test "x$ac_cv_func_getloadavg" = x""yes; then :
21743
21744 else
21745 gl_func_getloadavg_done=no
21746
21747 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21748 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21749 # to get the right answer into the cache.
21750 # For kstat on solaris, we need to test for libelf and libkvm to force the
21751 # definition of SVR4 below.
21752 if test $gl_func_getloadavg_done = no; then
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21754 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21755 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21756 $as_echo_n "(cached) " >&6
21757 else
21758 ac_check_lib_save_LIBS=$LIBS
21759 LIBS="-lelf $LIBS"
21760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21761 /* end confdefs.h. */
21762
21763 /* Override any GCC internal prototype to avoid an error.
21764 Use char because int might match the return type of a GCC
21765 builtin and then its argument prototype would still apply. */
21766 #ifdef __cplusplus
21767 extern "C"
21768 #endif
21769 char elf_begin ();
21770 int
21771 main ()
21772 {
21773 return elf_begin ();
21774 ;
21775 return 0;
21776 }
21777 _ACEOF
21778 if ac_fn_c_try_link "$LINENO"; then :
21779 ac_cv_lib_elf_elf_begin=yes
21780 else
21781 ac_cv_lib_elf_elf_begin=no
21782 fi
21783 rm -f core conftest.err conftest.$ac_objext \
21784 conftest$ac_exeext conftest.$ac_ext
21785 LIBS=$ac_check_lib_save_LIBS
21786 fi
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21788 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21789 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
21790 LIBS="-lelf $LIBS"
21791 fi
21792
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21794 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21795 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21796 $as_echo_n "(cached) " >&6
21797 else
21798 ac_check_lib_save_LIBS=$LIBS
21799 LIBS="-lkvm $LIBS"
21800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21801 /* end confdefs.h. */
21802
21803 /* Override any GCC internal prototype to avoid an error.
21804 Use char because int might match the return type of a GCC
21805 builtin and then its argument prototype would still apply. */
21806 #ifdef __cplusplus
21807 extern "C"
21808 #endif
21809 char kvm_open ();
21810 int
21811 main ()
21812 {
21813 return kvm_open ();
21814 ;
21815 return 0;
21816 }
21817 _ACEOF
21818 if ac_fn_c_try_link "$LINENO"; then :
21819 ac_cv_lib_kvm_kvm_open=yes
21820 else
21821 ac_cv_lib_kvm_kvm_open=no
21822 fi
21823 rm -f core conftest.err conftest.$ac_objext \
21824 conftest$ac_exeext conftest.$ac_ext
21825 LIBS=$ac_check_lib_save_LIBS
21826 fi
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21828 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21829 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
21830 LIBS="-lkvm $LIBS"
21831 fi
21832
21833 # Check for the 4.4BSD definition of getloadavg.
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21835 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21836 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21837 $as_echo_n "(cached) " >&6
21838 else
21839 ac_check_lib_save_LIBS=$LIBS
21840 LIBS="-lutil $LIBS"
21841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21842 /* end confdefs.h. */
21843
21844 /* Override any GCC internal prototype to avoid an error.
21845 Use char because int might match the return type of a GCC
21846 builtin and then its argument prototype would still apply. */
21847 #ifdef __cplusplus
21848 extern "C"
21849 #endif
21850 char getloadavg ();
21851 int
21852 main ()
21853 {
21854 return getloadavg ();
21855 ;
21856 return 0;
21857 }
21858 _ACEOF
21859 if ac_fn_c_try_link "$LINENO"; then :
21860 ac_cv_lib_util_getloadavg=yes
21861 else
21862 ac_cv_lib_util_getloadavg=no
21863 fi
21864 rm -f core conftest.err conftest.$ac_objext \
21865 conftest$ac_exeext conftest.$ac_ext
21866 LIBS=$ac_check_lib_save_LIBS
21867 fi
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21869 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21870 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21871 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21872 fi
21873
21874 fi
21875
21876 if test $gl_func_getloadavg_done = no; then
21877 # There is a commonly available library for RS/6000 AIX.
21878 # Since it is not a standard part of AIX, it might be installed locally.
21879 gl_getloadavg_LIBS=$LIBS
21880 LIBS="-L/usr/local/lib $LIBS"
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21882 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21883 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21884 $as_echo_n "(cached) " >&6
21885 else
21886 ac_check_lib_save_LIBS=$LIBS
21887 LIBS="-lgetloadavg $LIBS"
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21890
21891 /* Override any GCC internal prototype to avoid an error.
21892 Use char because int might match the return type of a GCC
21893 builtin and then its argument prototype would still apply. */
21894 #ifdef __cplusplus
21895 extern "C"
21896 #endif
21897 char getloadavg ();
21898 int
21899 main ()
21900 {
21901 return getloadavg ();
21902 ;
21903 return 0;
21904 }
21905 _ACEOF
21906 if ac_fn_c_try_link "$LINENO"; then :
21907 ac_cv_lib_getloadavg_getloadavg=yes
21908 else
21909 ac_cv_lib_getloadavg_getloadavg=no
21910 fi
21911 rm -f core conftest.err conftest.$ac_objext \
21912 conftest$ac_exeext conftest.$ac_ext
21913 LIBS=$ac_check_lib_save_LIBS
21914 fi
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21916 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21917 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21918 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21919 else
21920 LIBS=$gl_getloadavg_LIBS
21921 fi
21922
21923 fi
21924
21925 # Set up the replacement function if necessary.
21926 if test $gl_func_getloadavg_done = no; then
21927 HAVE_GETLOADAVG=0
21928
21929 # Solaris has libkstat which does not require root.
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21931 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21932 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21933 $as_echo_n "(cached) " >&6
21934 else
21935 ac_check_lib_save_LIBS=$LIBS
21936 LIBS="-lkstat $LIBS"
21937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h. */
21939
21940 /* Override any GCC internal prototype to avoid an error.
21941 Use char because int might match the return type of a GCC
21942 builtin and then its argument prototype would still apply. */
21943 #ifdef __cplusplus
21944 extern "C"
21945 #endif
21946 char kstat_open ();
21947 int
21948 main ()
21949 {
21950 return kstat_open ();
21951 ;
21952 return 0;
21953 }
21954 _ACEOF
21955 if ac_fn_c_try_link "$LINENO"; then :
21956 ac_cv_lib_kstat_kstat_open=yes
21957 else
21958 ac_cv_lib_kstat_kstat_open=no
21959 fi
21960 rm -f core conftest.err conftest.$ac_objext \
21961 conftest$ac_exeext conftest.$ac_ext
21962 LIBS=$ac_check_lib_save_LIBS
21963 fi
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21965 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21966 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21967 cat >>confdefs.h <<_ACEOF
21968 #define HAVE_LIBKSTAT 1
21969 _ACEOF
21970
21971 LIBS="-lkstat $LIBS"
21972
21973 fi
21974
21975 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21976
21977 # AIX has libperfstat which does not require root
21978 if test $gl_func_getloadavg_done = no; then
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21980 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21981 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21982 $as_echo_n "(cached) " >&6
21983 else
21984 ac_check_lib_save_LIBS=$LIBS
21985 LIBS="-lperfstat $LIBS"
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21988
21989 /* Override any GCC internal prototype to avoid an error.
21990 Use char because int might match the return type of a GCC
21991 builtin and then its argument prototype would still apply. */
21992 #ifdef __cplusplus
21993 extern "C"
21994 #endif
21995 char perfstat_cpu_total ();
21996 int
21997 main ()
21998 {
21999 return perfstat_cpu_total ();
22000 ;
22001 return 0;
22002 }
22003 _ACEOF
22004 if ac_fn_c_try_link "$LINENO"; then :
22005 ac_cv_lib_perfstat_perfstat_cpu_total=yes
22006 else
22007 ac_cv_lib_perfstat_perfstat_cpu_total=no
22008 fi
22009 rm -f core conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22011 LIBS=$ac_check_lib_save_LIBS
22012 fi
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
22014 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
22015 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
22016 cat >>confdefs.h <<_ACEOF
22017 #define HAVE_LIBPERFSTAT 1
22018 _ACEOF
22019
22020 LIBS="-lperfstat $LIBS"
22021
22022 fi
22023
22024 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
22025 fi
22026
22027 if test $gl_func_getloadavg_done = no; then
22028 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
22029 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
22030 gl_func_getloadavg_done=yes
22031
22032 $as_echo "#define DGUX 1" >>confdefs.h
22033
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
22035 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
22036 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
22037 $as_echo_n "(cached) " >&6
22038 else
22039 ac_check_lib_save_LIBS=$LIBS
22040 LIBS="-ldgc $LIBS"
22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
22043
22044 /* Override any GCC internal prototype to avoid an error.
22045 Use char because int might match the return type of a GCC
22046 builtin and then its argument prototype would still apply. */
22047 #ifdef __cplusplus
22048 extern "C"
22049 #endif
22050 char dg_sys_info ();
22051 int
22052 main ()
22053 {
22054 return dg_sys_info ();
22055 ;
22056 return 0;
22057 }
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060 ac_cv_lib_dgc_dg_sys_info=yes
22061 else
22062 ac_cv_lib_dgc_dg_sys_info=no
22063 fi
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 LIBS=$ac_check_lib_save_LIBS
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
22069 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
22070 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
22071 cat >>confdefs.h <<_ACEOF
22072 #define HAVE_LIBDGC 1
22073 _ACEOF
22074
22075 LIBS="-ldgc $LIBS"
22076
22077 fi
22078
22079 fi
22080
22081
22082 fi
22083 fi
22084 fi
22085
22086
22087 if test "x$gl_save_LIBS" = x; then
22088 GETLOADAVG_LIBS=$LIBS
22089 else
22090 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
22091 fi
22092 LIBS=$gl_save_LIBS
22093
22094
22095 # Test whether the system declares getloadavg. Solaris has the function
22096 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
22097 for ac_header in sys/loadavg.h
22098 do :
22099 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
22100 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
22101 cat >>confdefs.h <<_ACEOF
22102 #define HAVE_SYS_LOADAVG_H 1
22103 _ACEOF
22104
22105 fi
22106
22107 done
22108
22109 if test $ac_cv_header_sys_loadavg_h = yes; then
22110 HAVE_SYS_LOADAVG_H=1
22111 else
22112 HAVE_SYS_LOADAVG_H=0
22113 fi
22114 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
22115 # include <sys/loadavg.h>
22116 #endif
22117 #include <stdlib.h>
22118 "
22119 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
22120
22121 else
22122 HAVE_DECL_GETLOADAVG=0
22123 fi
22124
22125
22126 if test $HAVE_GETLOADAVG = 0; then
22127
22128
22129
22130
22131
22132
22133
22134
22135 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
22136
22137
22138 # Figure out what our getloadavg.c needs.
22139
22140
22141
22142 # On HPUX9, an unprivileged user can get load averages this way.
22143 if test $gl_func_getloadavg_done = no; then
22144 for ac_func in pstat_getdynamic
22145 do :
22146 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
22147 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
22148 cat >>confdefs.h <<_ACEOF
22149 #define HAVE_PSTAT_GETDYNAMIC 1
22150 _ACEOF
22151 gl_func_getloadavg_done=yes
22152 fi
22153 done
22154
22155 fi
22156
22157 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
22158 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
22159 # Irix 4.0.5F has the header but not the library.
22160 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
22161 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
22162 gl_func_getloadavg_done=yes
22163
22164 $as_echo "#define SVR4 1" >>confdefs.h
22165
22166 fi
22167
22168 if test $gl_func_getloadavg_done = no; then
22169 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
22170 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
22171 gl_func_getloadavg_done=yes
22172
22173 $as_echo "#define UMAX 1" >>confdefs.h
22174
22175
22176 $as_echo "#define UMAX4_3 1" >>confdefs.h
22177
22178 fi
22179
22180
22181 fi
22182
22183 if test $gl_func_getloadavg_done = no; then
22184 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
22185 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
22186 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
22187
22188 fi
22189
22190
22191 fi
22192
22193 if test $gl_func_getloadavg_done = no; then
22194 for ac_header in mach/mach.h
22195 do :
22196 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
22197 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
22198 cat >>confdefs.h <<_ACEOF
22199 #define HAVE_MACH_MACH_H 1
22200 _ACEOF
22201
22202 fi
22203
22204 done
22205
22206 fi
22207
22208 for ac_header in nlist.h
22209 do :
22210 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
22211 if test "x$ac_cv_header_nlist_h" = x""yes; then :
22212 cat >>confdefs.h <<_ACEOF
22213 #define HAVE_NLIST_H 1
22214 _ACEOF
22215 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
22216 "
22217 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
22218
22219 cat >>confdefs.h <<_ACEOF
22220 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22221 _ACEOF
22222
22223
22224 fi
22225
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h. */
22228 #include <nlist.h>
22229 int
22230 main ()
22231 {
22232 struct nlist x;
22233 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
22234 x.n_un.n_name = "";
22235 #else
22236 x.n_name = "";
22237 #endif
22238 ;
22239 return 0;
22240 }
22241 _ACEOF
22242 if ac_fn_c_try_link "$LINENO"; then :
22243
22244 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22245
22246 fi
22247 rm -f core conftest.err conftest.$ac_objext \
22248 conftest$ac_exeext conftest.$ac_ext
22249
22250 fi
22251
22252 done
22253
22254 fi
22255
22256
22257
22258
22259
22260 GNULIB_GETLOADAVG=1
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271 if test $REPLACE_GETOPT = 1; then
22272
22273
22274
22275
22276
22277
22278
22279
22280 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22291
22292
22293
22294
22295 GNULIB_GL_UNISTD_H_GETOPT=1
22296 fi
22297
22298
22299
22300
22301
22302
22303
22304 REPLACE_GETOPT=0
22305 if test -n "$gl_replace_getopt"; then
22306 REPLACE_GETOPT=1
22307 fi
22308
22309 if test $REPLACE_GETOPT = 1; then
22310
22311 GETOPT_H=getopt.h
22312
22313 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22314
22315
22316
22317 fi
22318
22319 if test $REPLACE_GETOPT = 1; then
22320
22321
22322
22323
22324
22325
22326
22327
22328 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22339
22340
22341
22342
22343 GNULIB_GL_UNISTD_H_GETOPT=1
22344 fi
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357 gl_gettimeofday_timezone=void
22358 if test $ac_cv_func_gettimeofday != yes; then
22359 HAVE_GETTIMEOFDAY=0
22360 else
22361
22362
22363
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22365 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22366 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22368 else
22369 if test "$cross_compiling" = yes; then :
22370 # When cross-compiling:
22371 case "$host_os" in
22372 # Guess all is fine on glibc systems.
22373 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22374 # If we don't know, assume the worst.
22375 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22376 esac
22377
22378 else
22379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h. */
22381 #include <string.h>
22382 #include <sys/time.h>
22383 #include <time.h>
22384 #include <stdlib.h>
22385
22386 int
22387 main ()
22388 {
22389
22390 time_t t = 0;
22391 struct tm *lt;
22392 struct tm saved_lt;
22393 struct timeval tv;
22394 lt = localtime (&t);
22395 saved_lt = *lt;
22396 gettimeofday (&tv, NULL);
22397 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22398
22399 ;
22400 return 0;
22401 }
22402 _ACEOF
22403 if ac_fn_c_try_run "$LINENO"; then :
22404 gl_cv_func_gettimeofday_clobber=no
22405 else
22406 gl_cv_func_gettimeofday_clobber=yes
22407 fi
22408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22409 conftest.$ac_objext conftest.beam conftest.$ac_ext
22410 fi
22411
22412 fi
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22414 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22415
22416 case "$gl_cv_func_gettimeofday_clobber" in
22417 *yes)
22418 REPLACE_GETTIMEOFDAY=1
22419
22420
22421 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22422
22423
22424 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22425
22426
22427
22428 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22429
22430 ;;
22431 esac
22432
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22434 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22435 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22436 $as_echo_n "(cached) " >&6
22437 else
22438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22439 /* end confdefs.h. */
22440 #include <sys/time.h>
22441 struct timeval c;
22442 int gettimeofday (struct timeval *restrict, void *restrict);
22443
22444 int
22445 main ()
22446 {
22447 /* glibc uses struct timezone * rather than the POSIX void *
22448 if _GNU_SOURCE is defined. However, since the only portable
22449 use of gettimeofday uses NULL as the second parameter, and
22450 since the glibc definition is actually more typesafe, it is
22451 not worth wrapping this to get a compliant signature. */
22452 int (*f) (struct timeval *restrict, void *restrict)
22453 = gettimeofday;
22454 int x = f (&c, 0);
22455 return !(x | c.tv_sec | c.tv_usec);
22456
22457 ;
22458 return 0;
22459 }
22460 _ACEOF
22461 if ac_fn_c_try_compile "$LINENO"; then :
22462 gl_cv_func_gettimeofday_posix_signature=yes
22463 else
22464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h. */
22466 #include <sys/time.h>
22467 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22468
22469 int
22470 main ()
22471 {
22472
22473 ;
22474 return 0;
22475 }
22476 _ACEOF
22477 if ac_fn_c_try_compile "$LINENO"; then :
22478 gl_cv_func_gettimeofday_posix_signature=almost
22479 else
22480 gl_cv_func_gettimeofday_posix_signature=no
22481 fi
22482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22483 fi
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 fi
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22487 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22488 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22489 gl_gettimeofday_timezone='struct timezone'
22490 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22491 REPLACE_GETTIMEOFDAY=1
22492 fi
22493 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22494 REPLACE_GETTIMEOFDAY=1
22495 fi
22496
22497 fi
22498
22499 cat >>confdefs.h <<_ACEOF
22500 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22501 _ACEOF
22502
22503
22504 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22505
22506
22507
22508
22509
22510
22511
22512
22513 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22514
22515
22516 for ac_header in sys/timeb.h
22517 do :
22518 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22519 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
22520 cat >>confdefs.h <<_ACEOF
22521 #define HAVE_SYS_TIMEB_H 1
22522 _ACEOF
22523
22524 fi
22525
22526 done
22527
22528 for ac_func in _ftime
22529 do :
22530 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22531 if test "x$ac_cv_func__ftime" = x""yes; then :
22532 cat >>confdefs.h <<_ACEOF
22533 #define HAVE__FTIME 1
22534 _ACEOF
22535
22536 fi
22537 done
22538
22539
22540 fi
22541
22542
22543
22544
22545
22546 GNULIB_GETTIMEOFDAY=1
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557 if test $ac_cv_func_lstat = yes; then
22558
22559 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22560 *no)
22561 REPLACE_LSTAT=1
22562 ;;
22563 esac
22564 else
22565 HAVE_LSTAT=0
22566 fi
22567
22568 if test $REPLACE_LSTAT = 1; then
22569
22570
22571
22572
22573
22574
22575
22576
22577 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22578
22579 :
22580 fi
22581
22582
22583
22584
22585
22586 GNULIB_LSTAT=1
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597 if test $ac_cv_have_decl_memrchr = no; then
22598 HAVE_DECL_MEMRCHR=0
22599 fi
22600
22601 for ac_func in memrchr
22602 do :
22603 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
22604 if test "x$ac_cv_func_memrchr" = x""yes; then :
22605 cat >>confdefs.h <<_ACEOF
22606 #define HAVE_MEMRCHR 1
22607 _ACEOF
22608
22609 fi
22610 done
22611
22612
22613 if test $ac_cv_func_memrchr = no; then
22614
22615
22616
22617
22618
22619
22620
22621
22622 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
22623
22624 :
22625 fi
22626
22627
22628
22629
22630
22631 GNULIB_MEMRCHR=1
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643 if test $APPLE_UNIVERSAL_BUILD = 1; then
22644 # A universal build on Apple Mac OS X platforms.
22645 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22646 # But we need a configuration result that is valid in both modes.
22647 gl_cv_func_working_mktime=no
22648 fi
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22650 $as_echo_n "checking for working mktime... " >&6; }
22651 if test "${gl_cv_func_working_mktime+set}" = set; then :
22652 $as_echo_n "(cached) " >&6
22653 else
22654 if test "$cross_compiling" = yes; then :
22655 gl_cv_func_working_mktime=no
22656 else
22657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658 /* end confdefs.h. */
22659 /* Test program from Paul Eggert and Tony Leneis. */
22660 #include <limits.h>
22661 #include <stdlib.h>
22662 #include <time.h>
22663
22664 #ifdef HAVE_UNISTD_H
22665 # include <unistd.h>
22666 #endif
22667
22668 #ifndef HAVE_ALARM
22669 # define alarm(X) /* empty */
22670 #endif
22671
22672 /* Work around redefinition to rpl_putenv by other config tests. */
22673 #undef putenv
22674
22675 static time_t time_t_max;
22676 static time_t time_t_min;
22677
22678 /* Values we'll use to set the TZ environment variable. */
22679 static char *tz_strings[] = {
22680 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22681 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22682 };
22683 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22684
22685 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22686 Based on a problem report from Andreas Jaeger. */
22687 static int
22688 spring_forward_gap ()
22689 {
22690 /* glibc (up to about 1998-10-07) failed this test. */
22691 struct tm tm;
22692
22693 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22694 instead of "TZ=America/Vancouver" in order to detect the bug even
22695 on systems that don't support the Olson extension, or don't have the
22696 full zoneinfo tables installed. */
22697 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22698
22699 tm.tm_year = 98;
22700 tm.tm_mon = 3;
22701 tm.tm_mday = 5;
22702 tm.tm_hour = 2;
22703 tm.tm_min = 0;
22704 tm.tm_sec = 0;
22705 tm.tm_isdst = -1;
22706 return mktime (&tm) != (time_t) -1;
22707 }
22708
22709 static int
22710 mktime_test1 (time_t now)
22711 {
22712 struct tm *lt;
22713 return ! (lt = localtime (&now)) || mktime (lt) == now;
22714 }
22715
22716 static int
22717 mktime_test (time_t now)
22718 {
22719 return (mktime_test1 (now)
22720 && mktime_test1 ((time_t) (time_t_max - now))
22721 && mktime_test1 ((time_t) (time_t_min + now)));
22722 }
22723
22724 static int
22725 irix_6_4_bug ()
22726 {
22727 /* Based on code from Ariel Faigon. */
22728 struct tm tm;
22729 tm.tm_year = 96;
22730 tm.tm_mon = 3;
22731 tm.tm_mday = 0;
22732 tm.tm_hour = 0;
22733 tm.tm_min = 0;
22734 tm.tm_sec = 0;
22735 tm.tm_isdst = -1;
22736 mktime (&tm);
22737 return tm.tm_mon == 2 && tm.tm_mday == 31;
22738 }
22739
22740 static int
22741 bigtime_test (int j)
22742 {
22743 struct tm tm;
22744 time_t now;
22745 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22746 now = mktime (&tm);
22747 if (now != (time_t) -1)
22748 {
22749 struct tm *lt = localtime (&now);
22750 if (! (lt
22751 && lt->tm_year == tm.tm_year
22752 && lt->tm_mon == tm.tm_mon
22753 && lt->tm_mday == tm.tm_mday
22754 && lt->tm_hour == tm.tm_hour
22755 && lt->tm_min == tm.tm_min
22756 && lt->tm_sec == tm.tm_sec
22757 && lt->tm_yday == tm.tm_yday
22758 && lt->tm_wday == tm.tm_wday
22759 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22760 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22761 return 0;
22762 }
22763 return 1;
22764 }
22765
22766 static int
22767 year_2050_test ()
22768 {
22769 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22770 ignoring leap seconds. */
22771 unsigned long int answer = 2527315200UL;
22772
22773 struct tm tm;
22774 time_t t;
22775 tm.tm_year = 2050 - 1900;
22776 tm.tm_mon = 2 - 1;
22777 tm.tm_mday = 1;
22778 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22779 tm.tm_isdst = -1;
22780
22781 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22782 instead of "TZ=America/Vancouver" in order to detect the bug even
22783 on systems that don't support the Olson extension, or don't have the
22784 full zoneinfo tables installed. */
22785 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22786
22787 t = mktime (&tm);
22788
22789 /* Check that the result is either a failure, or close enough
22790 to the correct answer that we can assume the discrepancy is
22791 due to leap seconds. */
22792 return (t == (time_t) -1
22793 || (0 < t && answer - 120 <= t && t <= answer + 120));
22794 }
22795
22796 int
22797 main ()
22798 {
22799 int result = 0;
22800 time_t t, delta;
22801 int i, j;
22802 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22803 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22804
22805 /* This test makes some buggy mktime implementations loop.
22806 Give up after 60 seconds; a mktime slower than that
22807 isn't worth using anyway. */
22808 alarm (60);
22809
22810 time_t_max = (! time_t_signed
22811 ? (time_t) -1
22812 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22813 * 2 + 1));
22814 time_t_min = (! time_t_signed
22815 ? (time_t) 0
22816 : time_t_signed_magnitude
22817 ? ~ (time_t) 0
22818 : ~ time_t_max);
22819
22820 delta = time_t_max / 997; /* a suitable prime number */
22821 for (i = 0; i < N_STRINGS; i++)
22822 {
22823 if (tz_strings[i])
22824 putenv (tz_strings[i]);
22825
22826 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22827 if (! mktime_test (t))
22828 result |= 1;
22829 if ((result & 2) == 0
22830 && ! (mktime_test ((time_t) 1)
22831 && mktime_test ((time_t) (60 * 60))
22832 && mktime_test ((time_t) (60 * 60 * 24))))
22833 result |= 2;
22834
22835 for (j = 1; (result & 4) == 0; j <<= 1)
22836 {
22837 if (! bigtime_test (j))
22838 result |= 4;
22839 if (INT_MAX / 2 < j)
22840 break;
22841 }
22842 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22843 result |= 8;
22844 }
22845 if (! irix_6_4_bug ())
22846 result |= 16;
22847 if (! spring_forward_gap ())
22848 result |= 32;
22849 if (! year_2050_test ())
22850 result |= 64;
22851 return result;
22852 }
22853 _ACEOF
22854 if ac_fn_c_try_run "$LINENO"; then :
22855 gl_cv_func_working_mktime=yes
22856 else
22857 gl_cv_func_working_mktime=no
22858 fi
22859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22860 conftest.$ac_objext conftest.beam conftest.$ac_ext
22861 fi
22862
22863
22864 fi
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22866 $as_echo "$gl_cv_func_working_mktime" >&6; }
22867
22868 if test $gl_cv_func_working_mktime = no; then
22869 REPLACE_MKTIME=1
22870 else
22871 REPLACE_MKTIME=0
22872 fi
22873
22874 if test $REPLACE_MKTIME = 1; then
22875
22876
22877
22878
22879
22880
22881
22882
22883 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22884
22885 :
22886 fi
22887
22888
22889
22890
22891
22892 GNULIB_MKTIME=1
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904 if test $ac_cv_func_pselect = yes; then
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22906 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22907 if test "${gl_cv_sig_pselect+set}" = set; then :
22908 $as_echo_n "(cached) " >&6
22909 else
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h. */
22912 #include <sys/select.h>
22913
22914 int
22915 main ()
22916 {
22917 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22918 struct timespec const *restrict,
22919 sigset_t const *restrict) = pselect;
22920 return !p;
22921 ;
22922 return 0;
22923 }
22924 _ACEOF
22925 if ac_fn_c_try_link "$LINENO"; then :
22926 gl_cv_sig_pselect=yes
22927 else
22928 gl_cv_sig_pselect=no
22929 fi
22930 rm -f core conftest.err conftest.$ac_objext \
22931 conftest$ac_exeext conftest.$ac_ext
22932 fi
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22934 $as_echo "$gl_cv_sig_pselect" >&6; }
22935
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22937 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22938 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22940 else
22941
22942 if test "$cross_compiling" = yes; then :
22943
22944 case "$host_os" in
22945 # Guess yes on glibc systems.
22946 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22947 # If we don't know, assume the worst.
22948 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22949 esac
22950
22951 else
22952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22953 /* end confdefs.h. */
22954
22955 #include <sys/types.h>
22956 #include <sys/time.h>
22957 #if HAVE_SYS_SELECT_H
22958 # include <sys/select.h>
22959 #endif
22960 #include <unistd.h>
22961 #include <errno.h>
22962
22963 int
22964 main ()
22965 {
22966
22967 fd_set set;
22968 dup2(0, 16);
22969 FD_ZERO(&set);
22970 FD_SET(16, &set);
22971 close(16);
22972 struct timespec timeout;
22973 timeout.tv_sec = 0;
22974 timeout.tv_nsec = 5000;
22975 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22976
22977 ;
22978 return 0;
22979 }
22980 _ACEOF
22981 if ac_fn_c_try_run "$LINENO"; then :
22982 gl_cv_func_pselect_detects_ebadf=yes
22983 else
22984 gl_cv_func_pselect_detects_ebadf=no
22985 fi
22986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22987 conftest.$ac_objext conftest.beam conftest.$ac_ext
22988 fi
22989
22990
22991 fi
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22993 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22994 case $gl_cv_func_pselect_detects_ebadf in
22995 *yes) ;;
22996 *) REPLACE_PSELECT=1 ;;
22997 esac
22998 fi
22999
23000 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
23001 REPLACE_PSELECT=1
23002 fi
23003
23004 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
23005
23006
23007
23008
23009
23010
23011
23012
23013 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
23014
23015 fi
23016
23017
23018
23019
23020
23021 GNULIB_PSELECT=1
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031 LIB_PTHREAD_SIGMASK=
23032
23033
23034
23035
23036 if test "$gl_threads_api" = posix; then
23037 if test $ac_cv_func_pthread_sigmask = yes; then
23038 :
23039 else
23040 if test -n "$LIBMULTITHREAD"; then
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
23042 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
23043 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23045 else
23046 gl_save_LIBS="$LIBS"
23047 LIBS="$LIBS $LIBMULTITHREAD"
23048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049 /* end confdefs.h. */
23050 #include <pthread.h>
23051 #include <signal.h>
23052
23053 int
23054 main ()
23055 {
23056 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
23057 ;
23058 return 0;
23059 }
23060
23061 _ACEOF
23062 if ac_fn_c_try_link "$LINENO"; then :
23063 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
23064 else
23065 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
23066 fi
23067 rm -f core conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
23069 LIBS="$gl_save_LIBS"
23070
23071 fi
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
23073 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
23074 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
23075 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
23076 else
23077 HAVE_PTHREAD_SIGMASK=0
23078 fi
23079 else
23080 HAVE_PTHREAD_SIGMASK=0
23081 fi
23082 fi
23083 else
23084 if test $ac_cv_func_pthread_sigmask = yes; then
23085 REPLACE_PTHREAD_SIGMASK=1
23086 else
23087 HAVE_PTHREAD_SIGMASK=0
23088 fi
23089 fi
23090
23091
23092
23093
23094 if test $HAVE_PTHREAD_SIGMASK = 1; then
23095
23096
23097 if test -z "$LIB_PTHREAD_SIGMASK"; then
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
23099 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
23100 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
23101 $as_echo_n "(cached) " >&6
23102 else
23103
23104 if test "$cross_compiling" = yes; then :
23105
23106 case "$host_os" in
23107 freebsd* | hpux* | solaris | solaris2.[2-9]*)
23108 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
23109 *)
23110 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
23111 esac
23112
23113 else
23114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23115 /* end confdefs.h. */
23116
23117 #include <pthread.h>
23118 #include <signal.h>
23119 #include <stddef.h>
23120 int main ()
23121 {
23122 sigset_t set;
23123 sigemptyset (&set);
23124 return pthread_sigmask (1729, &set, NULL) != 0;
23125 }
23126 _ACEOF
23127 if ac_fn_c_try_run "$LINENO"; then :
23128 gl_cv_func_pthread_sigmask_in_libc_works=no
23129 else
23130 gl_cv_func_pthread_sigmask_in_libc_works=yes
23131 fi
23132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23133 conftest.$ac_objext conftest.beam conftest.$ac_ext
23134 fi
23135
23136
23137 fi
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
23139 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
23140 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
23141 *no)
23142 REPLACE_PTHREAD_SIGMASK=1
23143
23144 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
23145
23146 ;;
23147 esac
23148 fi
23149
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
23151 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
23152 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
23153 $as_echo_n "(cached) " >&6
23154 else
23155
23156 gl_save_LIBS="$LIBS"
23157 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
23158 if test "$cross_compiling" = yes; then :
23159 case "$host_os" in
23160 cygwin*)
23161 gl_cv_func_pthread_sigmask_return_works="guessing no";;
23162 *)
23163 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
23164 esac
23165
23166 else
23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h. */
23169
23170 #include <pthread.h>
23171 #include <signal.h>
23172 #include <stddef.h>
23173 int main ()
23174 {
23175 sigset_t set;
23176 sigemptyset (&set);
23177 if (pthread_sigmask (1729, &set, NULL) == -1)
23178 return 1;
23179 return 0;
23180 }
23181 _ACEOF
23182 if ac_fn_c_try_run "$LINENO"; then :
23183 gl_cv_func_pthread_sigmask_return_works=yes
23184 else
23185 gl_cv_func_pthread_sigmask_return_works=no
23186 fi
23187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23188 conftest.$ac_objext conftest.beam conftest.$ac_ext
23189 fi
23190
23191 LIBS="$gl_save_LIBS"
23192
23193 fi
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
23195 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
23196 case "$gl_cv_func_pthread_sigmask_return_works" in
23197 *no)
23198 REPLACE_PTHREAD_SIGMASK=1
23199
23200 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
23201
23202 ;;
23203 esac
23204
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
23206 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
23207 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
23208 $as_echo_n "(cached) " >&6
23209 else
23210
23211 case "$host_os" in
23212 irix*)
23213 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
23214 *)
23215 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
23216 esac
23217 gl_save_LIBS="$LIBS"
23218 LIBS="$LIBS $LIBMULTITHREAD"
23219 if test "$cross_compiling" = yes; then :
23220 :
23221 else
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224
23225 #include <pthread.h>
23226 #include <signal.h>
23227 #include <stdio.h>
23228 #include <stdlib.h>
23229 #include <unistd.h>
23230 static volatile int sigint_occurred;
23231 static void
23232 sigint_handler (int sig)
23233 {
23234 sigint_occurred++;
23235 }
23236 int main ()
23237 {
23238 sigset_t set;
23239 int pid = getpid ();
23240 char command[80];
23241 signal (SIGINT, sigint_handler);
23242 sigemptyset (&set);
23243 sigaddset (&set, SIGINT);
23244 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
23245 return 1;
23246 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
23247 if (!(system (command) == 0))
23248 return 2;
23249 sleep (2);
23250 if (!(sigint_occurred == 0))
23251 return 3;
23252 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
23253 return 4;
23254 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
23255 return 5;
23256 return 0;
23257 }
23258 _ACEOF
23259 if ac_fn_c_try_run "$LINENO"; then :
23260 :
23261 else
23262 gl_cv_func_pthread_sigmask_unblock_works=no
23263 fi
23264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23265 conftest.$ac_objext conftest.beam conftest.$ac_ext
23266 fi
23267
23268 LIBS="$gl_save_LIBS"
23269
23270 fi
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
23272 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
23273 case "$gl_cv_func_pthread_sigmask_unblock_works" in
23274 *no)
23275 REPLACE_PTHREAD_SIGMASK=1
23276
23277 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
23278
23279 ;;
23280 esac
23281 fi
23282
23283 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
23284
23285
23286
23287
23288
23289
23290
23291
23292 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23293
23294
23295 if test $HAVE_PTHREAD_SIGMASK = 1; then
23296
23297 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23298
23299 fi
23300
23301 fi
23302
23303
23304
23305
23306
23307 GNULIB_PTHREAD_SIGMASK=1
23308
23309
23310
23311
23312
23313
23314
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23316 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23317 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23318 $as_echo_n "(cached) " >&6
23319 else
23320 if test "$cross_compiling" = yes; then :
23321 case "$host_os" in
23322 # Guess yes on glibc systems.
23323 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
23324 # If we don't know, assume the worst.
23325 *) gl_cv_func_svid_putenv="guessing no" ;;
23326 esac
23327
23328 else
23329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330 /* end confdefs.h. */
23331 $ac_includes_default
23332 int
23333 main ()
23334 {
23335
23336 /* Put it in env. */
23337 if (putenv ("CONFTEST_putenv=val"))
23338 return 1;
23339
23340 /* Try to remove it. */
23341 if (putenv ("CONFTEST_putenv"))
23342 return 2;
23343
23344 /* Make sure it was deleted. */
23345 if (getenv ("CONFTEST_putenv") != 0)
23346 return 3;
23347
23348 return 0;
23349
23350 ;
23351 return 0;
23352 }
23353 _ACEOF
23354 if ac_fn_c_try_run "$LINENO"; then :
23355 gl_cv_func_svid_putenv=yes
23356 else
23357 gl_cv_func_svid_putenv=no
23358 fi
23359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23360 conftest.$ac_objext conftest.beam conftest.$ac_ext
23361 fi
23362
23363
23364 fi
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23366 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23367 case "$gl_cv_func_svid_putenv" in
23368 *yes) ;;
23369 *)
23370 REPLACE_PUTENV=1
23371 ;;
23372 esac
23373
23374 if test $REPLACE_PUTENV = 1; then
23375
23376
23377
23378
23379
23380
23381
23382
23383 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
23384
23385 fi
23386
23387
23388
23389
23390
23391 GNULIB_PUTENV=1
23392
23393
23394
23395
23396
23397
23398
23399
23400 if test $ac_cv_func_readlink = no; then
23401 HAVE_READLINK=0
23402 else
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23404 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23405 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23406 $as_echo_n "(cached) " >&6
23407 else
23408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h. */
23410 #include <unistd.h>
23411 /* Cause compilation failure if original declaration has wrong type. */
23412 ssize_t readlink (const char *, char *, size_t);
23413 int
23414 main ()
23415 {
23416
23417 ;
23418 return 0;
23419 }
23420 _ACEOF
23421 if ac_fn_c_try_compile "$LINENO"; then :
23422 gl_cv_decl_readlink_works=yes
23423 else
23424 gl_cv_decl_readlink_works=no
23425 fi
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 fi
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23429 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23431 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23432 if test "${gl_cv_func_readlink_works+set}" = set; then :
23433 $as_echo_n "(cached) " >&6
23434 else
23435 # We have readlink, so assume ln -s works.
23436 ln -s conftest.no-such conftest.link
23437 ln -s conftest.link conftest.lnk2
23438 if test "$cross_compiling" = yes; then :
23439 case "$host_os" in
23440 # Guess yes on glibc systems.
23441 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
23442 # If we don't know, assume the worst.
23443 *) gl_cv_func_readlink_works="guessing no" ;;
23444 esac
23445
23446 else
23447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23448 /* end confdefs.h. */
23449 #include <unistd.h>
23450
23451 int
23452 main ()
23453 {
23454 char buf[20];
23455 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23456 ;
23457 return 0;
23458 }
23459 _ACEOF
23460 if ac_fn_c_try_run "$LINENO"; then :
23461 gl_cv_func_readlink_works=yes
23462 else
23463 gl_cv_func_readlink_works=no
23464 fi
23465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23466 conftest.$ac_objext conftest.beam conftest.$ac_ext
23467 fi
23468
23469 rm -f conftest.link conftest.lnk2
23470 fi
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23472 $as_echo "$gl_cv_func_readlink_works" >&6; }
23473 case "$gl_cv_func_readlink_works" in
23474 *yes)
23475 if test "$gl_cv_decl_readlink_works" != yes; then
23476 REPLACE_READLINK=1
23477 fi
23478 ;;
23479 *)
23480
23481 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23482
23483 REPLACE_READLINK=1
23484 ;;
23485 esac
23486 fi
23487
23488 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23489
23490
23491
23492
23493
23494
23495
23496
23497 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
23498
23499
23500 :
23501
23502 fi
23503
23504
23505
23506
23507
23508 GNULIB_READLINK=1
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518 if test $ac_cv_func_readlinkat = no; then
23519 HAVE_READLINKAT=0
23520 fi
23521
23522 if test $HAVE_READLINKAT = 0; then
23523
23524
23525
23526
23527
23528
23529
23530
23531 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
23532
23533 fi
23534
23535
23536
23537
23538
23539 GNULIB_READLINKAT=1
23540
23541
23542
23543
23544
23545
23546 for ac_func in sig2str
23547 do :
23548 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
23549 if test "x$ac_cv_func_sig2str" = x""yes; then :
23550 cat >>confdefs.h <<_ACEOF
23551 #define HAVE_SIG2STR 1
23552 _ACEOF
23553
23554 fi
23555 done
23556
23557
23558 if test $ac_cv_func_sig2str = no; then
23559
23560
23561
23562
23563
23564
23565
23566
23567 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
23568
23569
23570 :
23571
23572 fi
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584 if test $gl_cv_have_include_next = yes; then
23585 gl_cv_next_signal_h='<'signal.h'>'
23586 else
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23588 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23589 if test "${gl_cv_next_signal_h+set}" = set; then :
23590 $as_echo_n "(cached) " >&6
23591 else
23592
23593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h. */
23595 #include <signal.h>
23596
23597 _ACEOF
23598 case "$host_os" in
23599 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23600 *) gl_absname_cpp="$ac_cpp" ;;
23601 esac
23602
23603 case "$host_os" in
23604 mingw*)
23605 gl_dirsep_regex='[/\\]'
23606 ;;
23607 *)
23608 gl_dirsep_regex='\/'
23609 ;;
23610 esac
23611 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23612
23613 gl_header_literal_regex=`echo 'signal.h' \
23614 | sed -e "$gl_make_literal_regex_sed"`
23615 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23616 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23617 s|^/[^/]|//&|
23618 p
23619 q
23620 }'
23621 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23622 sed -n "$gl_absolute_header_sed"`'"'
23623
23624
23625 fi
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23627 $as_echo "$gl_cv_next_signal_h" >&6; }
23628 fi
23629 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23630
23631 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23632 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23633 gl_next_as_first_directive='<'signal.h'>'
23634 else
23635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23636 gl_next_as_first_directive=$gl_cv_next_signal_h
23637 fi
23638 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23639
23640
23641
23642
23643
23644 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23645 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23646 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23647 #include <signal.h>
23648
23649 "
23650 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
23651
23652 else
23653 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23654 fi
23655
23656
23657
23658
23659
23660
23661
23662 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23663 #include <signal.h>
23664
23665 "
23666 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
23667
23668 else
23669 HAVE_SIGHANDLER_T=0
23670 fi
23671
23672
23673
23674
23675 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23676 /* <sys/types.h> is not needed according to POSIX, but the
23677 <sys/socket.h> in i386-unknown-freebsd4.10 and
23678 powerpc-apple-darwin5.5 required it. */
23679 #include <sys/types.h>
23680 #if HAVE_SYS_SOCKET_H
23681 # include <sys/socket.h>
23682 #elif HAVE_WS2TCPIP_H
23683 # include <ws2tcpip.h>
23684 #endif
23685
23686 "
23687 if test "x$ac_cv_type_socklen_t" = x""yes; then :
23688
23689 else
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23691 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23692 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
23693 $as_echo_n "(cached) " >&6
23694 else
23695 # Systems have either "struct sockaddr *" or
23696 # "void *" as the second argument to getpeername
23697 gl_cv_socklen_t_equiv=
23698 for arg2 in "struct sockaddr" void; do
23699 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23702 #include <sys/types.h>
23703 #include <sys/socket.h>
23704
23705 int getpeername (int, $arg2 *, $t *);
23706 int
23707 main ()
23708 {
23709 $t len;
23710 getpeername (0, 0, &len);
23711 ;
23712 return 0;
23713 }
23714 _ACEOF
23715 if ac_fn_c_try_compile "$LINENO"; then :
23716 gl_cv_socklen_t_equiv="$t"
23717 fi
23718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23719 test "$gl_cv_socklen_t_equiv" != "" && break
23720 done
23721 test "$gl_cv_socklen_t_equiv" != "" && break
23722 done
23723
23724 fi
23725
23726 if test "$gl_cv_socklen_t_equiv" = ""; then
23727 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23728 fi
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23730 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23731
23732 cat >>confdefs.h <<_ACEOF
23733 #define socklen_t $gl_cv_socklen_t_equiv
23734 _ACEOF
23735
23736 fi
23737
23738
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23740 $as_echo_n "checking for ssize_t... " >&6; }
23741 if test "${gt_cv_ssize_t+set}" = set; then :
23742 $as_echo_n "(cached) " >&6
23743 else
23744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23745 /* end confdefs.h. */
23746 #include <sys/types.h>
23747 int
23748 main ()
23749 {
23750 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23751 return !x;
23752 ;
23753 return 0;
23754 }
23755 _ACEOF
23756 if ac_fn_c_try_compile "$LINENO"; then :
23757 gt_cv_ssize_t=yes
23758 else
23759 gt_cv_ssize_t=no
23760 fi
23761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23764 $as_echo "$gt_cv_ssize_t" >&6; }
23765 if test $gt_cv_ssize_t = no; then
23766
23767 $as_echo "#define ssize_t int" >>confdefs.h
23768
23769 fi
23770
23771
23772
23773
23774
23775 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>
23776 #include <sys/stat.h>
23777 "
23778 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
23779
23780 cat >>confdefs.h <<_ACEOF
23781 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23782 _ACEOF
23783
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23785 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23786 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23787 $as_echo_n "(cached) " >&6
23788 else
23789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23790 /* end confdefs.h. */
23791
23792 #include <sys/types.h>
23793 #include <sys/stat.h>
23794 #if HAVE_SYS_TIME_H
23795 # include <sys/time.h>
23796 #endif
23797 #include <time.h>
23798 struct timespec ts;
23799 struct stat st;
23800
23801 int
23802 main ()
23803 {
23804
23805 st.st_atim = ts;
23806
23807 ;
23808 return 0;
23809 }
23810 _ACEOF
23811 if ac_fn_c_try_compile "$LINENO"; then :
23812 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
23813 else
23814 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
23815 fi
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817 fi
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23819 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23820 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23821
23822 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23823
23824 fi
23825 else
23826 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>
23827 #include <sys/stat.h>
23828 "
23829 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
23830
23831 cat >>confdefs.h <<_ACEOF
23832 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23833 _ACEOF
23834
23835
23836 else
23837 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23838 #include <sys/stat.h>
23839 "
23840 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
23841
23842 cat >>confdefs.h <<_ACEOF
23843 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23844 _ACEOF
23845
23846
23847 else
23848 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>
23849 #include <sys/stat.h>
23850 "
23851 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
23852
23853 cat >>confdefs.h <<_ACEOF
23854 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23855 _ACEOF
23856
23857
23858 fi
23859
23860 fi
23861
23862 fi
23863
23864 fi
23865
23866
23867
23868
23869
23870 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>
23871 #include <sys/stat.h>
23872 "
23873 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
23874
23875 cat >>confdefs.h <<_ACEOF
23876 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23877 _ACEOF
23878
23879
23880 else
23881 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23882 #include <sys/stat.h>
23883 "
23884 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
23885
23886 cat >>confdefs.h <<_ACEOF
23887 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23888 _ACEOF
23889
23890
23891 else
23892 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>
23893 #include <sys/stat.h>
23894 "
23895 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
23896
23897 cat >>confdefs.h <<_ACEOF
23898 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23899 _ACEOF
23900
23901
23902 fi
23903
23904 fi
23905
23906 fi
23907
23908
23909
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23911 $as_echo_n "checking for working stdalign.h... " >&6; }
23912 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23913 $as_echo_n "(cached) " >&6
23914 else
23915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23916 /* end confdefs.h. */
23917 #include <stdalign.h>
23918 #include <stddef.h>
23919
23920 /* Test that alignof yields a result consistent with offsetof.
23921 This catches GCC bug 52023
23922 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23923 #ifdef __cplusplus
23924 template <class t> struct alignof_helper { char a; t b; };
23925 # define ao(type) offsetof (alignof_helper<type>, b)
23926 #else
23927 # define ao(type) offsetof (struct { char a; type b; }, b)
23928 #endif
23929 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23930 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23931 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23932
23933 /* Test _Alignas only on platforms where gnulib can help. */
23934 #if \
23935 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23936 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23937 int alignas (8) alignas_int = 1;
23938 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
23939 #endif
23940
23941 int
23942 main ()
23943 {
23944
23945 ;
23946 return 0;
23947 }
23948 _ACEOF
23949 if ac_fn_c_try_compile "$LINENO"; then :
23950 gl_cv_header_working_stdalign_h=yes
23951 else
23952 gl_cv_header_working_stdalign_h=no
23953 fi
23954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23955 fi
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23957 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23958
23959 if test $gl_cv_header_working_stdalign_h = yes; then
23960 STDALIGN_H=''
23961 else
23962 STDALIGN_H='stdalign.h'
23963 fi
23964
23965
23966 if test -n "$STDALIGN_H"; then
23967 GL_GENERATE_STDALIGN_H_TRUE=
23968 GL_GENERATE_STDALIGN_H_FALSE='#'
23969 else
23970 GL_GENERATE_STDALIGN_H_TRUE='#'
23971 GL_GENERATE_STDALIGN_H_FALSE=
23972 fi
23973
23974
23975
23976 STDARG_H=''
23977 NEXT_STDARG_H='<stdarg.h>'
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23979 $as_echo_n "checking for va_copy... " >&6; }
23980 if test "${gl_cv_func_va_copy+set}" = set; then :
23981 $as_echo_n "(cached) " >&6
23982 else
23983
23984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23985 /* end confdefs.h. */
23986 #include <stdarg.h>
23987 int
23988 main ()
23989 {
23990
23991 #ifndef va_copy
23992 void (*func) (va_list, va_list) = va_copy;
23993 #endif
23994
23995 ;
23996 return 0;
23997 }
23998 _ACEOF
23999 if ac_fn_c_try_compile "$LINENO"; then :
24000 gl_cv_func_va_copy=yes
24001 else
24002 gl_cv_func_va_copy=no
24003 fi
24004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24005 fi
24006
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
24008 $as_echo "$gl_cv_func_va_copy" >&6; }
24009 if test $gl_cv_func_va_copy = no; then
24010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011 /* end confdefs.h. */
24012 #if defined _AIX && !defined __GNUC__
24013 AIX vaccine
24014 #endif
24015
24016 _ACEOF
24017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24018 $EGREP "vaccine" >/dev/null 2>&1; then :
24019 gl_aixcc=yes
24020 else
24021 gl_aixcc=no
24022 fi
24023 rm -f conftest*
24024
24025 if test $gl_aixcc = yes; then
24026 STDARG_H=stdarg.h
24027
24028
24029
24030
24031
24032
24033
24034
24035 if test $gl_cv_have_include_next = yes; then
24036 gl_cv_next_stdarg_h='<'stdarg.h'>'
24037 else
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
24039 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
24040 if test "${gl_cv_next_stdarg_h+set}" = set; then :
24041 $as_echo_n "(cached) " >&6
24042 else
24043
24044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045 /* end confdefs.h. */
24046 #include <stdarg.h>
24047
24048 _ACEOF
24049 case "$host_os" in
24050 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24051 *) gl_absname_cpp="$ac_cpp" ;;
24052 esac
24053
24054 case "$host_os" in
24055 mingw*)
24056 gl_dirsep_regex='[/\\]'
24057 ;;
24058 *)
24059 gl_dirsep_regex='\/'
24060 ;;
24061 esac
24062 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24063
24064 gl_header_literal_regex=`echo 'stdarg.h' \
24065 | sed -e "$gl_make_literal_regex_sed"`
24066 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24068 s|^/[^/]|//&|
24069 p
24070 q
24071 }'
24072 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24073 sed -n "$gl_absolute_header_sed"`'"'
24074
24075
24076 fi
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
24078 $as_echo "$gl_cv_next_stdarg_h" >&6; }
24079 fi
24080 NEXT_STDARG_H=$gl_cv_next_stdarg_h
24081
24082 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24084 gl_next_as_first_directive='<'stdarg.h'>'
24085 else
24086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24087 gl_next_as_first_directive=$gl_cv_next_stdarg_h
24088 fi
24089 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
24090
24091
24092
24093
24094 if test "$gl_cv_next_stdarg_h" = '""'; then
24095 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
24096 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
24097 fi
24098 else
24099
24100 saved_as_echo_n="$as_echo_n"
24101 as_echo_n=':'
24102 if test "${gl_cv_func___va_copy+set}" = set; then :
24103 $as_echo_n "(cached) " >&6
24104 else
24105
24106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24107 /* end confdefs.h. */
24108 #include <stdarg.h>
24109 int
24110 main ()
24111 {
24112
24113 #ifndef __va_copy
24114 error, bail out
24115 #endif
24116
24117 ;
24118 return 0;
24119 }
24120 _ACEOF
24121 if ac_fn_c_try_compile "$LINENO"; then :
24122 gl_cv_func___va_copy=yes
24123 else
24124 gl_cv_func___va_copy=no
24125 fi
24126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127 fi
24128
24129 as_echo_n="$saved_as_echo_n"
24130
24131 if test $gl_cv_func___va_copy = yes; then
24132
24133 $as_echo "#define va_copy __va_copy" >>confdefs.h
24134
24135 else
24136
24137
24138 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
24139
24140 fi
24141 fi
24142 fi
24143
24144 if test -n "$STDARG_H"; then
24145 GL_GENERATE_STDARG_H_TRUE=
24146 GL_GENERATE_STDARG_H_FALSE='#'
24147 else
24148 GL_GENERATE_STDARG_H_TRUE='#'
24149 GL_GENERATE_STDARG_H_FALSE=
24150 fi
24151
24152
24153
24154
24155
24156
24157 # Define two additional variables used in the Makefile substitution.
24158
24159 if test "$ac_cv_header_stdbool_h" = yes; then
24160 STDBOOL_H=''
24161 else
24162 STDBOOL_H='stdbool.h'
24163 fi
24164
24165 if test -n "$STDBOOL_H"; then
24166 GL_GENERATE_STDBOOL_H_TRUE=
24167 GL_GENERATE_STDBOOL_H_FALSE='#'
24168 else
24169 GL_GENERATE_STDBOOL_H_TRUE='#'
24170 GL_GENERATE_STDBOOL_H_FALSE=
24171 fi
24172
24173
24174 if test "$ac_cv_type__Bool" = yes; then
24175 HAVE__BOOL=1
24176 else
24177 HAVE__BOOL=0
24178 fi
24179
24180
24181
24182
24183
24184 STDDEF_H=
24185 if test $gt_cv_c_wchar_t = no; then
24186 HAVE_WCHAR_T=0
24187 STDDEF_H=stddef.h
24188 fi
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24190 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24191 if test "${gl_cv_decl_null_works+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24193 else
24194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24195 /* end confdefs.h. */
24196 #include <stddef.h>
24197 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24198
24199 int
24200 main ()
24201 {
24202
24203 ;
24204 return 0;
24205 }
24206 _ACEOF
24207 if ac_fn_c_try_compile "$LINENO"; then :
24208 gl_cv_decl_null_works=yes
24209 else
24210 gl_cv_decl_null_works=no
24211 fi
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213 fi
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24215 $as_echo "$gl_cv_decl_null_works" >&6; }
24216 if test $gl_cv_decl_null_works = no; then
24217 REPLACE_NULL=1
24218 STDDEF_H=stddef.h
24219 fi
24220
24221 if test -n "$STDDEF_H"; then
24222 GL_GENERATE_STDDEF_H_TRUE=
24223 GL_GENERATE_STDDEF_H_FALSE='#'
24224 else
24225 GL_GENERATE_STDDEF_H_TRUE='#'
24226 GL_GENERATE_STDDEF_H_FALSE=
24227 fi
24228
24229 if test -n "$STDDEF_H"; then
24230
24231
24232
24233
24234
24235
24236
24237
24238 if test $gl_cv_have_include_next = yes; then
24239 gl_cv_next_stddef_h='<'stddef.h'>'
24240 else
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24242 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24243 if test "${gl_cv_next_stddef_h+set}" = set; then :
24244 $as_echo_n "(cached) " >&6
24245 else
24246
24247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24248 /* end confdefs.h. */
24249 #include <stddef.h>
24250
24251 _ACEOF
24252 case "$host_os" in
24253 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24254 *) gl_absname_cpp="$ac_cpp" ;;
24255 esac
24256
24257 case "$host_os" in
24258 mingw*)
24259 gl_dirsep_regex='[/\\]'
24260 ;;
24261 *)
24262 gl_dirsep_regex='\/'
24263 ;;
24264 esac
24265 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24266
24267 gl_header_literal_regex=`echo 'stddef.h' \
24268 | sed -e "$gl_make_literal_regex_sed"`
24269 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24270 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24271 s|^/[^/]|//&|
24272 p
24273 q
24274 }'
24275 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24276 sed -n "$gl_absolute_header_sed"`'"'
24277
24278
24279 fi
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24281 $as_echo "$gl_cv_next_stddef_h" >&6; }
24282 fi
24283 NEXT_STDDEF_H=$gl_cv_next_stddef_h
24284
24285 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24287 gl_next_as_first_directive='<'stddef.h'>'
24288 else
24289 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24290 gl_next_as_first_directive=$gl_cv_next_stddef_h
24291 fi
24292 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24293
24294
24295
24296
24297 fi
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310 if test $gl_cv_have_include_next = yes; then
24311 gl_cv_next_stdio_h='<'stdio.h'>'
24312 else
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24314 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24315 if test "${gl_cv_next_stdio_h+set}" = set; then :
24316 $as_echo_n "(cached) " >&6
24317 else
24318
24319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24320 /* end confdefs.h. */
24321 #include <stdio.h>
24322
24323 _ACEOF
24324 case "$host_os" in
24325 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24326 *) gl_absname_cpp="$ac_cpp" ;;
24327 esac
24328
24329 case "$host_os" in
24330 mingw*)
24331 gl_dirsep_regex='[/\\]'
24332 ;;
24333 *)
24334 gl_dirsep_regex='\/'
24335 ;;
24336 esac
24337 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24338
24339 gl_header_literal_regex=`echo 'stdio.h' \
24340 | sed -e "$gl_make_literal_regex_sed"`
24341 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24342 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24343 s|^/[^/]|//&|
24344 p
24345 q
24346 }'
24347 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24348 sed -n "$gl_absolute_header_sed"`'"'
24349
24350
24351 fi
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24353 $as_echo "$gl_cv_next_stdio_h" >&6; }
24354 fi
24355 NEXT_STDIO_H=$gl_cv_next_stdio_h
24356
24357 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24359 gl_next_as_first_directive='<'stdio.h'>'
24360 else
24361 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24362 gl_next_as_first_directive=$gl_cv_next_stdio_h
24363 fi
24364 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24365
24366
24367
24368
24369
24370 GNULIB_FSCANF=1
24371
24372
24373 cat >>confdefs.h <<_ACEOF
24374 #define GNULIB_FSCANF 1
24375 _ACEOF
24376
24377
24378 GNULIB_SCANF=1
24379
24380
24381 cat >>confdefs.h <<_ACEOF
24382 #define GNULIB_SCANF 1
24383 _ACEOF
24384
24385
24386 GNULIB_FGETC=1
24387 GNULIB_GETC=1
24388 GNULIB_GETCHAR=1
24389 GNULIB_FGETS=1
24390 GNULIB_FREAD=1
24391
24392
24393 GNULIB_FPRINTF=1
24394 GNULIB_PRINTF=1
24395 GNULIB_VFPRINTF=1
24396 GNULIB_VPRINTF=1
24397 GNULIB_FPUTC=1
24398 GNULIB_PUTC=1
24399 GNULIB_PUTCHAR=1
24400 GNULIB_FPUTS=1
24401 GNULIB_PUTS=1
24402 GNULIB_FWRITE=1
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418 if test $gl_cv_have_include_next = yes; then
24419 gl_cv_next_stdlib_h='<'stdlib.h'>'
24420 else
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24422 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24423 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24424 $as_echo_n "(cached) " >&6
24425 else
24426
24427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24428 /* end confdefs.h. */
24429 #include <stdlib.h>
24430
24431 _ACEOF
24432 case "$host_os" in
24433 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24434 *) gl_absname_cpp="$ac_cpp" ;;
24435 esac
24436
24437 case "$host_os" in
24438 mingw*)
24439 gl_dirsep_regex='[/\\]'
24440 ;;
24441 *)
24442 gl_dirsep_regex='\/'
24443 ;;
24444 esac
24445 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24446
24447 gl_header_literal_regex=`echo 'stdlib.h' \
24448 | sed -e "$gl_make_literal_regex_sed"`
24449 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24450 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24451 s|^/[^/]|//&|
24452 p
24453 q
24454 }'
24455 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24456 sed -n "$gl_absolute_header_sed"`'"'
24457
24458
24459 fi
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24461 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24462 fi
24463 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24464
24465 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24467 gl_next_as_first_directive='<'stdlib.h'>'
24468 else
24469 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24470 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24471 fi
24472 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24483
24484
24485
24486
24487
24488
24489
24490 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502 if test "$ac_cv_have_decl_strtoimax" != yes; then
24503 HAVE_DECL_STRTOIMAX=0
24504 fi
24505
24506 if test $ac_cv_func_strtoimax = yes; then
24507 HAVE_STRTOIMAX=1
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24509 $as_echo_n "checking whether strtoimax works... " >&6; }
24510 if test "${gl_cv_func_strtoimax+set}" = set; then :
24511 $as_echo_n "(cached) " >&6
24512 else
24513 if test "$cross_compiling" = yes; then :
24514 case "$host_os" in
24515 # Guess no on AIX 5.
24516 aix5*) gl_cv_func_strtoimax="guessing no" ;;
24517 # Guess yes otherwise.
24518 *) gl_cv_func_strtoimax="guessing yes" ;;
24519 esac
24520
24521 else
24522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24523 /* end confdefs.h. */
24524
24525 #include <errno.h>
24526 #include <string.h>
24527 #include <inttypes.h>
24528 int main ()
24529 {
24530 if (sizeof (intmax_t) > sizeof (int))
24531 {
24532 const char *s = "4294967295";
24533 char *p;
24534 intmax_t res;
24535 errno = 0;
24536 res = strtoimax (s, &p, 10);
24537 if (p != s + strlen (s))
24538 return 1;
24539 if (errno != 0)
24540 return 2;
24541 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24542 return 3;
24543 }
24544 else
24545 {
24546 const char *s = "2147483647";
24547 char *p;
24548 intmax_t res;
24549 errno = 0;
24550 res = strtoimax (s, &p, 10);
24551 if (p != s + strlen (s))
24552 return 1;
24553 if (errno != 0)
24554 return 2;
24555 if (res != 2147483647)
24556 return 3;
24557 }
24558 return 0;
24559 }
24560
24561 _ACEOF
24562 if ac_fn_c_try_run "$LINENO"; then :
24563 gl_cv_func_strtoimax=yes
24564 else
24565 gl_cv_func_strtoimax=no
24566 fi
24567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24568 conftest.$ac_objext conftest.beam conftest.$ac_ext
24569 fi
24570
24571
24572 fi
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24574 $as_echo "$gl_cv_func_strtoimax" >&6; }
24575 case "$gl_cv_func_strtoimax" in
24576 *no) REPLACE_STRTOIMAX=1 ;;
24577 esac
24578 else
24579 HAVE_STRTOIMAX=0
24580 fi
24581
24582 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24583
24584
24585
24586
24587
24588
24589
24590
24591 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
24592
24593
24594 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24595 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
24596 ac_have_decl=1
24597 else
24598 ac_have_decl=0
24599 fi
24600
24601 cat >>confdefs.h <<_ACEOF
24602 #define HAVE_DECL_STRTOLL $ac_have_decl
24603 _ACEOF
24604
24605
24606
24607 fi
24608
24609
24610
24611
24612
24613 GNULIB_STRTOIMAX=1
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623 if test "$ac_cv_have_decl_strtoumax" != yes; then
24624 HAVE_DECL_STRTOUMAX=0
24625 fi
24626
24627 if test $ac_cv_func_strtoumax = no; then
24628
24629
24630
24631
24632
24633
24634
24635
24636 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
24637
24638
24639 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24640 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
24641 ac_have_decl=1
24642 else
24643 ac_have_decl=0
24644 fi
24645
24646 cat >>confdefs.h <<_ACEOF
24647 #define HAVE_DECL_STRTOULL $ac_have_decl
24648 _ACEOF
24649
24650
24651
24652 fi
24653
24654
24655
24656
24657
24658 GNULIB_STRTOUMAX=1
24659
24660
24661
24662
24663
24664
24665
24666 if test $ac_cv_func_symlink = no; then
24667 HAVE_SYMLINK=0
24668 else
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
24670 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
24671 if test "${gl_cv_func_symlink_works+set}" = set; then :
24672 $as_echo_n "(cached) " >&6
24673 else
24674 if test "$cross_compiling" = yes; then :
24675 case "$host_os" in
24676 # Guess yes on glibc systems.
24677 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
24678 # If we don't know, assume the worst.
24679 *) gl_cv_func_symlink_works="guessing no" ;;
24680 esac
24681
24682 else
24683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24684 /* end confdefs.h. */
24685 #include <unistd.h>
24686
24687 int
24688 main ()
24689 {
24690 int result = 0;
24691 if (!symlink ("a", "conftest.link/"))
24692 result |= 1;
24693 if (symlink ("conftest.f", "conftest.lnk2"))
24694 result |= 2;
24695 else if (!symlink ("a", "conftest.lnk2/"))
24696 result |= 4;
24697 return result;
24698
24699 ;
24700 return 0;
24701 }
24702 _ACEOF
24703 if ac_fn_c_try_run "$LINENO"; then :
24704 gl_cv_func_symlink_works=yes
24705 else
24706 gl_cv_func_symlink_works=no
24707 fi
24708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24709 conftest.$ac_objext conftest.beam conftest.$ac_ext
24710 fi
24711
24712 rm -f conftest.f conftest.link conftest.lnk2
24713 fi
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
24715 $as_echo "$gl_cv_func_symlink_works" >&6; }
24716 case "$gl_cv_func_symlink_works" in
24717 *yes) ;;
24718 *)
24719 REPLACE_SYMLINK=1
24720 ;;
24721 esac
24722 fi
24723
24724 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
24725
24726
24727
24728
24729
24730
24731
24732
24733 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
24734
24735 fi
24736
24737
24738
24739
24740
24741 GNULIB_SYMLINK=1
24742
24743
24744
24745
24746
24747
24748
24749
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24751 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24752 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24754 else
24755
24756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h. */
24758 #include <sys/select.h>
24759 int
24760 main ()
24761 {
24762 struct timeval b;
24763 ;
24764 return 0;
24765 }
24766 _ACEOF
24767 if ac_fn_c_try_compile "$LINENO"; then :
24768 gl_cv_header_sys_select_h_selfcontained=yes
24769 else
24770 gl_cv_header_sys_select_h_selfcontained=no
24771 fi
24772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24773 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24775 /* end confdefs.h. */
24776 #include <sys/select.h>
24777 int
24778 main ()
24779 {
24780 int memset; int bzero;
24781 ;
24782 return 0;
24783 }
24784
24785 _ACEOF
24786 if ac_fn_c_try_compile "$LINENO"; then :
24787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24788 /* end confdefs.h. */
24789 #include <sys/select.h>
24790 int
24791 main ()
24792 {
24793
24794 #undef memset
24795 #define memset nonexistent_memset
24796 extern
24797 #ifdef __cplusplus
24798 "C"
24799 #endif
24800 void *memset (void *, int, unsigned long);
24801 #undef bzero
24802 #define bzero nonexistent_bzero
24803 extern
24804 #ifdef __cplusplus
24805 "C"
24806 #endif
24807 void bzero (void *, unsigned long);
24808 fd_set fds;
24809 FD_ZERO (&fds);
24810
24811 ;
24812 return 0;
24813 }
24814
24815 _ACEOF
24816 if ac_fn_c_try_link "$LINENO"; then :
24817
24818 else
24819 gl_cv_header_sys_select_h_selfcontained=no
24820 fi
24821 rm -f core conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
24823
24824 fi
24825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24826 fi
24827
24828 fi
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24830 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840 if test $gl_cv_have_include_next = yes; then
24841 gl_cv_next_sys_select_h='<'sys/select.h'>'
24842 else
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24844 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24845 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24846 $as_echo_n "(cached) " >&6
24847 else
24848
24849 if test $ac_cv_header_sys_select_h = yes; then
24850
24851
24852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853 /* end confdefs.h. */
24854 #include <sys/select.h>
24855
24856 _ACEOF
24857 case "$host_os" in
24858 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24859 *) gl_absname_cpp="$ac_cpp" ;;
24860 esac
24861
24862 case "$host_os" in
24863 mingw*)
24864 gl_dirsep_regex='[/\\]'
24865 ;;
24866 *)
24867 gl_dirsep_regex='\/'
24868 ;;
24869 esac
24870 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24871
24872 gl_header_literal_regex=`echo 'sys/select.h' \
24873 | sed -e "$gl_make_literal_regex_sed"`
24874 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24875 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24876 s|^/[^/]|//&|
24877 p
24878 q
24879 }'
24880 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24881 sed -n "$gl_absolute_header_sed"`'"'
24882 else
24883 gl_cv_next_sys_select_h='<'sys/select.h'>'
24884 fi
24885
24886
24887 fi
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24889 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24890 fi
24891 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24892
24893 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24894 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24895 gl_next_as_first_directive='<'sys/select.h'>'
24896 else
24897 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24898 gl_next_as_first_directive=$gl_cv_next_sys_select_h
24899 fi
24900 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
24901
24902
24903
24904
24905 if test $ac_cv_header_sys_select_h = yes; then
24906 HAVE_SYS_SELECT_H=1
24907 else
24908 HAVE_SYS_SELECT_H=0
24909 fi
24910
24911
24912
24913
24914
24915 if test $ac_cv_header_sys_socket_h != yes; then
24916 for ac_header in winsock2.h
24917 do :
24918 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24919 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
24920 cat >>confdefs.h <<_ACEOF
24921 #define HAVE_WINSOCK2_H 1
24922 _ACEOF
24923
24924 fi
24925
24926 done
24927
24928 fi
24929 if test "$ac_cv_header_winsock2_h" = yes; then
24930 HAVE_WINSOCK2_H=1
24931 UNISTD_H_HAVE_WINSOCK2_H=1
24932 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24933 else
24934 HAVE_WINSOCK2_H=0
24935 fi
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956 if test $gl_cv_have_include_next = yes; then
24957 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24958 else
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24960 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24961 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24963 else
24964
24965 if test $ac_cv_header_sys_stat_h = yes; then
24966
24967
24968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24969 /* end confdefs.h. */
24970 #include <sys/stat.h>
24971
24972 _ACEOF
24973 case "$host_os" in
24974 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24975 *) gl_absname_cpp="$ac_cpp" ;;
24976 esac
24977
24978 case "$host_os" in
24979 mingw*)
24980 gl_dirsep_regex='[/\\]'
24981 ;;
24982 *)
24983 gl_dirsep_regex='\/'
24984 ;;
24985 esac
24986 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24987
24988 gl_header_literal_regex=`echo 'sys/stat.h' \
24989 | sed -e "$gl_make_literal_regex_sed"`
24990 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24991 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24992 s|^/[^/]|//&|
24993 p
24994 q
24995 }'
24996 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24997 sed -n "$gl_absolute_header_sed"`'"'
24998 else
24999 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25000 fi
25001
25002
25003 fi
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25005 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25006 fi
25007 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
25008
25009 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25010 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25011 gl_next_as_first_directive='<'sys/stat.h'>'
25012 else
25013 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25014 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
25015 fi
25016 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25029
25030 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25031
25032 fi
25033
25034 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25035 #include <sys/stat.h>
25036 "
25037 if test "x$ac_cv_type_nlink_t" = x""yes; then :
25038
25039 else
25040
25041 $as_echo "#define nlink_t int" >>confdefs.h
25042
25043 fi
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
25063 "
25064 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
25065 ac_have_decl=1
25066 else
25067 ac_have_decl=0
25068 fi
25069
25070 cat >>confdefs.h <<_ACEOF
25071 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
25072 _ACEOF
25073
25074 if test $ac_cv_have_decl_localtime_r = no; then
25075 HAVE_DECL_LOCALTIME_R=0
25076 fi
25077
25078
25079 if test $ac_cv_func_localtime_r = yes; then
25080 HAVE_LOCALTIME_R=1
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
25082 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
25083 if test "${gl_cv_time_r_posix+set}" = set; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25087 /* end confdefs.h. */
25088 #include <time.h>
25089 int
25090 main ()
25091 {
25092 /* We don't need to append 'restrict's to the argument types,
25093 even though the POSIX signature has the 'restrict's,
25094 since C99 says they can't affect type compatibility. */
25095 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
25096 if (ptr) return 0;
25097 /* Check the return type is a pointer.
25098 On HP-UX 10 it is 'int'. */
25099 *localtime_r (0, 0);
25100 ;
25101 return 0;
25102 }
25103
25104 _ACEOF
25105 if ac_fn_c_try_compile "$LINENO"; then :
25106 gl_cv_time_r_posix=yes
25107 else
25108 gl_cv_time_r_posix=no
25109 fi
25110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25111
25112 fi
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
25114 $as_echo "$gl_cv_time_r_posix" >&6; }
25115 if test $gl_cv_time_r_posix = yes; then
25116 REPLACE_LOCALTIME_R=0
25117 else
25118 REPLACE_LOCALTIME_R=1
25119 fi
25120 else
25121 HAVE_LOCALTIME_R=0
25122 fi
25123
25124 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
25125
25126
25127
25128
25129
25130
25131
25132
25133 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
25134
25135
25136 :
25137
25138 fi
25139
25140
25141
25142
25143
25144 GNULIB_TIME_R=1
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155 LIB_TIMER_TIME=
25156
25157 gl_saved_libs=$LIBS
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
25159 $as_echo_n "checking for library containing timer_settime... " >&6; }
25160 if test "${ac_cv_search_timer_settime+set}" = set; then :
25161 $as_echo_n "(cached) " >&6
25162 else
25163 ac_func_search_save_LIBS=$LIBS
25164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25165 /* end confdefs.h. */
25166
25167 /* Override any GCC internal prototype to avoid an error.
25168 Use char because int might match the return type of a GCC
25169 builtin and then its argument prototype would still apply. */
25170 #ifdef __cplusplus
25171 extern "C"
25172 #endif
25173 char timer_settime ();
25174 int
25175 main ()
25176 {
25177 return timer_settime ();
25178 ;
25179 return 0;
25180 }
25181 _ACEOF
25182 for ac_lib in '' rt posix4; do
25183 if test -z "$ac_lib"; then
25184 ac_res="none required"
25185 else
25186 ac_res=-l$ac_lib
25187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25188 fi
25189 if ac_fn_c_try_link "$LINENO"; then :
25190 ac_cv_search_timer_settime=$ac_res
25191 fi
25192 rm -f core conftest.err conftest.$ac_objext \
25193 conftest$ac_exeext
25194 if test "${ac_cv_search_timer_settime+set}" = set; then :
25195 break
25196 fi
25197 done
25198 if test "${ac_cv_search_timer_settime+set}" = set; then :
25199
25200 else
25201 ac_cv_search_timer_settime=no
25202 fi
25203 rm conftest.$ac_ext
25204 LIBS=$ac_func_search_save_LIBS
25205 fi
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
25207 $as_echo "$ac_cv_search_timer_settime" >&6; }
25208 ac_res=$ac_cv_search_timer_settime
25209 if test "$ac_res" != no; then :
25210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25211 test "$ac_cv_search_timer_settime" = "none required" ||
25212 LIB_TIMER_TIME=$ac_cv_search_timer_settime
25213 fi
25214
25215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25216 /* end confdefs.h. */
25217
25218 #include <features.h>
25219 #ifdef __GNU_LIBRARY__
25220 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
25221 && !defined __UCLIBC__
25222 Thread emulation available
25223 #endif
25224 #endif
25225
25226 _ACEOF
25227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25228 $EGREP "Thread" >/dev/null 2>&1; then :
25229 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
25230 fi
25231 rm -f conftest*
25232
25233 for ac_func in timer_settime
25234 do :
25235 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
25236 if test "x$ac_cv_func_timer_settime" = x""yes; then :
25237 cat >>confdefs.h <<_ACEOF
25238 #define HAVE_TIMER_SETTIME 1
25239 _ACEOF
25240
25241 fi
25242 done
25243
25244 LIBS=$gl_saved_libs
25245
25246 :
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259 if test $gl_cv_have_include_next = yes; then
25260 gl_cv_next_unistd_h='<'unistd.h'>'
25261 else
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25263 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25264 if test "${gl_cv_next_unistd_h+set}" = set; then :
25265 $as_echo_n "(cached) " >&6
25266 else
25267
25268 if test $ac_cv_header_unistd_h = yes; then
25269
25270
25271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272 /* end confdefs.h. */
25273 #include <unistd.h>
25274
25275 _ACEOF
25276 case "$host_os" in
25277 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25278 *) gl_absname_cpp="$ac_cpp" ;;
25279 esac
25280
25281 case "$host_os" in
25282 mingw*)
25283 gl_dirsep_regex='[/\\]'
25284 ;;
25285 *)
25286 gl_dirsep_regex='\/'
25287 ;;
25288 esac
25289 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25290
25291 gl_header_literal_regex=`echo 'unistd.h' \
25292 | sed -e "$gl_make_literal_regex_sed"`
25293 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25294 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25295 s|^/[^/]|//&|
25296 p
25297 q
25298 }'
25299 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25300 sed -n "$gl_absolute_header_sed"`'"'
25301 else
25302 gl_cv_next_unistd_h='<'unistd.h'>'
25303 fi
25304
25305
25306 fi
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25308 $as_echo "$gl_cv_next_unistd_h" >&6; }
25309 fi
25310 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25311
25312 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25314 gl_next_as_first_directive='<'unistd.h'>'
25315 else
25316 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25317 gl_next_as_first_directive=$gl_cv_next_unistd_h
25318 fi
25319 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25320
25321
25322
25323
25324 if test $ac_cv_header_unistd_h = yes; then
25325 HAVE_UNISTD_H=1
25326 else
25327 HAVE_UNISTD_H=0
25328 fi
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340 if test $ac_cv_have_decl_unsetenv = no; then
25341 HAVE_DECL_UNSETENV=0
25342 fi
25343 for ac_func in unsetenv
25344 do :
25345 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25346 if test "x$ac_cv_func_unsetenv" = x""yes; then :
25347 cat >>confdefs.h <<_ACEOF
25348 #define HAVE_UNSETENV 1
25349 _ACEOF
25350
25351 fi
25352 done
25353
25354 if test $ac_cv_func_unsetenv = no; then
25355 HAVE_UNSETENV=0
25356 else
25357 HAVE_UNSETENV=1
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25359 $as_echo_n "checking for unsetenv() return type... " >&6; }
25360 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25361 $as_echo_n "(cached) " >&6
25362 else
25363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25364 /* end confdefs.h. */
25365
25366 #undef _BSD
25367 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25368 #include <stdlib.h>
25369 extern
25370 #ifdef __cplusplus
25371 "C"
25372 #endif
25373 int unsetenv (const char *name);
25374
25375 int
25376 main ()
25377 {
25378
25379 ;
25380 return 0;
25381 }
25382 _ACEOF
25383 if ac_fn_c_try_compile "$LINENO"; then :
25384 gt_cv_func_unsetenv_ret='int'
25385 else
25386 gt_cv_func_unsetenv_ret='void'
25387 fi
25388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25389 fi
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25391 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25392 if test $gt_cv_func_unsetenv_ret = 'void'; then
25393
25394 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25395
25396 REPLACE_UNSETENV=1
25397 fi
25398
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25400 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25401 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25402 $as_echo_n "(cached) " >&6
25403 else
25404 if test "$cross_compiling" = yes; then :
25405 case "$host_os" in
25406 # Guess yes on glibc systems.
25407 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25408 # If we don't know, assume the worst.
25409 *) gl_cv_func_unsetenv_works="guessing no" ;;
25410 esac
25411
25412 else
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h. */
25415
25416 #include <stdlib.h>
25417 #include <errno.h>
25418 extern char **environ;
25419
25420 int
25421 main ()
25422 {
25423
25424 char entry1[] = "a=1";
25425 char entry2[] = "b=2";
25426 char *env[] = { entry1, entry2, NULL };
25427 if (putenv ((char *) "a=1")) return 1;
25428 if (putenv (entry2)) return 2;
25429 entry2[0] = 'a';
25430 unsetenv ("a");
25431 if (getenv ("a")) return 3;
25432 if (!unsetenv ("") || errno != EINVAL) return 4;
25433 entry2[0] = 'b';
25434 environ = env;
25435 if (!getenv ("a")) return 5;
25436 entry2[0] = 'a';
25437 unsetenv ("a");
25438 if (getenv ("a")) return 6;
25439
25440 ;
25441 return 0;
25442 }
25443 _ACEOF
25444 if ac_fn_c_try_run "$LINENO"; then :
25445 gl_cv_func_unsetenv_works=yes
25446 else
25447 gl_cv_func_unsetenv_works=no
25448 fi
25449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25450 conftest.$ac_objext conftest.beam conftest.$ac_ext
25451 fi
25452
25453 fi
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25455 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25456 case "$gl_cv_func_unsetenv_works" in
25457 *yes) ;;
25458 *)
25459 REPLACE_UNSETENV=1
25460 ;;
25461 esac
25462 fi
25463
25464 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25465
25466
25467
25468
25469
25470
25471
25472
25473 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25474
25475
25476
25477
25478
25479 fi
25480
25481
25482
25483
25484
25485 GNULIB_UNSETENV=1
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25499 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25500 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25501 $as_echo_n "(cached) " >&6
25502 else
25503 touch conftest.file
25504 if test "$cross_compiling" = yes; then :
25505 case "$host_os" in
25506 # Guess yes on glibc systems.
25507 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
25508 # If we don't know, assume the worst.
25509 *) gl_cv_func_futimesat_works="guessing no" ;;
25510 esac
25511
25512 else
25513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25514 /* end confdefs.h. */
25515
25516 #include <stddef.h>
25517 #include <sys/times.h>
25518 #include <fcntl.h>
25519
25520 int
25521 main ()
25522 {
25523 int fd = open ("conftest.file", O_RDWR);
25524 if (fd < 0) return 1;
25525 if (futimesat (fd, NULL, NULL)) return 2;
25526
25527 ;
25528 return 0;
25529 }
25530 _ACEOF
25531 if ac_fn_c_try_run "$LINENO"; then :
25532 gl_cv_func_futimesat_works=yes
25533 else
25534 gl_cv_func_futimesat_works=no
25535 fi
25536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25537 conftest.$ac_objext conftest.beam conftest.$ac_ext
25538 fi
25539
25540 rm -f conftest.file
25541 fi
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25543 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25544 case "$gl_cv_func_futimesat_works" in
25545 *yes) ;;
25546 *)
25547
25548 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25549
25550 ;;
25551 esac
25552 fi
25553
25554 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
25555 gl_gnulib_enabled_dosname=false
25556 gl_gnulib_enabled_euidaccess=false
25557 gl_gnulib_enabled_getgroups=false
25558 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
25559 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
25560 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
25561 gl_gnulib_enabled_pathmax=false
25562 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
25563 gl_gnulib_enabled_stat=false
25564 gl_gnulib_enabled_strtoll=false
25565 gl_gnulib_enabled_strtoull=false
25566 gl_gnulib_enabled_verify=false
25567 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
25568 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
25569 {
25570 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25571
25572
25573
25574
25575
25576
25577
25578
25579 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
25580
25581 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
25582 fi
25583 }
25584 func_gl_gnulib_m4code_dosname ()
25585 {
25586 if ! $gl_gnulib_enabled_dosname; then
25587 gl_gnulib_enabled_dosname=true
25588 fi
25589 }
25590 func_gl_gnulib_m4code_euidaccess ()
25591 {
25592 if ! $gl_gnulib_enabled_euidaccess; then
25593
25594
25595
25596
25597
25598 for ac_func in euidaccess
25599 do :
25600 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25601 if test "x$ac_cv_func_euidaccess" = x""yes; then :
25602 cat >>confdefs.h <<_ACEOF
25603 #define HAVE_EUIDACCESS 1
25604 _ACEOF
25605
25606 fi
25607 done
25608
25609 if test $ac_cv_func_euidaccess = no; then
25610 HAVE_EUIDACCESS=0
25611 fi
25612
25613 if test $HAVE_EUIDACCESS = 0; then
25614
25615
25616
25617
25618
25619
25620
25621
25622 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
25623
25624
25625
25626 for ac_header in libgen.h
25627 do :
25628 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25629 if test "x$ac_cv_header_libgen_h" = x""yes; then :
25630 cat >>confdefs.h <<_ACEOF
25631 #define HAVE_LIBGEN_H 1
25632 _ACEOF
25633
25634 fi
25635
25636 done
25637
25638
25639 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25640 if test "x$ac_cv_func_getgroups" = x""yes; then :
25641
25642 fi
25643
25644
25645 # If we don't yet have getgroups, see if it's in -lbsd.
25646 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25647 ac_save_LIBS=$LIBS
25648 if test $ac_cv_func_getgroups = no; then
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25650 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25651 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25652 $as_echo_n "(cached) " >&6
25653 else
25654 ac_check_lib_save_LIBS=$LIBS
25655 LIBS="-lbsd $LIBS"
25656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25657 /* end confdefs.h. */
25658
25659 /* Override any GCC internal prototype to avoid an error.
25660 Use char because int might match the return type of a GCC
25661 builtin and then its argument prototype would still apply. */
25662 #ifdef __cplusplus
25663 extern "C"
25664 #endif
25665 char getgroups ();
25666 int
25667 main ()
25668 {
25669 return getgroups ();
25670 ;
25671 return 0;
25672 }
25673 _ACEOF
25674 if ac_fn_c_try_link "$LINENO"; then :
25675 ac_cv_lib_bsd_getgroups=yes
25676 else
25677 ac_cv_lib_bsd_getgroups=no
25678 fi
25679 rm -f core conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
25681 LIBS=$ac_check_lib_save_LIBS
25682 fi
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25684 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25685 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25686 GETGROUPS_LIB=-lbsd
25687 fi
25688
25689 fi
25690
25691 # Run the program to test the functionality of the system-supplied
25692 # getgroups function only if there is such a function.
25693 if test $ac_cv_func_getgroups = yes; then
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25695 $as_echo_n "checking for working getgroups... " >&6; }
25696 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25697 $as_echo_n "(cached) " >&6
25698 else
25699 if test "$cross_compiling" = yes; then :
25700 case "$host_os" in # ((
25701 # Guess yes on glibc systems.
25702 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25703 # If we don't know, assume the worst.
25704 *) ac_cv_func_getgroups_works="guessing no" ;;
25705 esac
25706
25707 else
25708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709 /* end confdefs.h. */
25710 $ac_includes_default
25711 int
25712 main ()
25713 {
25714 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25715 return getgroups (0, 0) == -1;
25716 ;
25717 return 0;
25718 }
25719
25720 _ACEOF
25721 if ac_fn_c_try_run "$LINENO"; then :
25722 ac_cv_func_getgroups_works=yes
25723 else
25724 ac_cv_func_getgroups_works=no
25725 fi
25726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25727 conftest.$ac_objext conftest.beam conftest.$ac_ext
25728 fi
25729
25730
25731 fi
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25733 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25734 else
25735 ac_cv_func_getgroups_works=no
25736 fi
25737 case "$ac_cv_func_getgroups_works" in
25738 *yes)
25739
25740 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25741
25742 ;;
25743 esac
25744 LIBS=$ac_save_LIBS
25745
25746
25747 # Solaris 9 and 10 need -lgen to get the eaccess function.
25748 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25749 # programs in the package would end up linked with that potentially-shared
25750 # library, inducing unnecessary run-time overhead.
25751 LIB_EACCESS=
25752
25753 gl_saved_libs=$LIBS
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
25755 $as_echo_n "checking for library containing eaccess... " >&6; }
25756 if test "${ac_cv_search_eaccess+set}" = set; then :
25757 $as_echo_n "(cached) " >&6
25758 else
25759 ac_func_search_save_LIBS=$LIBS
25760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25761 /* end confdefs.h. */
25762
25763 /* Override any GCC internal prototype to avoid an error.
25764 Use char because int might match the return type of a GCC
25765 builtin and then its argument prototype would still apply. */
25766 #ifdef __cplusplus
25767 extern "C"
25768 #endif
25769 char eaccess ();
25770 int
25771 main ()
25772 {
25773 return eaccess ();
25774 ;
25775 return 0;
25776 }
25777 _ACEOF
25778 for ac_lib in '' gen; do
25779 if test -z "$ac_lib"; then
25780 ac_res="none required"
25781 else
25782 ac_res=-l$ac_lib
25783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25784 fi
25785 if ac_fn_c_try_link "$LINENO"; then :
25786 ac_cv_search_eaccess=$ac_res
25787 fi
25788 rm -f core conftest.err conftest.$ac_objext \
25789 conftest$ac_exeext
25790 if test "${ac_cv_search_eaccess+set}" = set; then :
25791 break
25792 fi
25793 done
25794 if test "${ac_cv_search_eaccess+set}" = set; then :
25795
25796 else
25797 ac_cv_search_eaccess=no
25798 fi
25799 rm conftest.$ac_ext
25800 LIBS=$ac_func_search_save_LIBS
25801 fi
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
25803 $as_echo "$ac_cv_search_eaccess" >&6; }
25804 ac_res=$ac_cv_search_eaccess
25805 if test "$ac_res" != no; then :
25806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25807 test "$ac_cv_search_eaccess" = "none required" ||
25808 LIB_EACCESS=$ac_cv_search_eaccess
25809 fi
25810
25811 for ac_func in eaccess
25812 do :
25813 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
25814 if test "x$ac_cv_func_eaccess" = x""yes; then :
25815 cat >>confdefs.h <<_ACEOF
25816 #define HAVE_EACCESS 1
25817 _ACEOF
25818
25819 fi
25820 done
25821
25822 LIBS=$gl_saved_libs
25823
25824 fi
25825
25826
25827
25828
25829
25830 GNULIB_EUIDACCESS=1
25831
25832
25833
25834
25835
25836 gl_gnulib_enabled_euidaccess=true
25837 if test $HAVE_EUIDACCESS = 0; then
25838 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25839 fi
25840 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25841 if test $HAVE_EUIDACCESS = 0; then
25842 func_gl_gnulib_m4code_stat
25843 fi
25844 fi
25845 }
25846 func_gl_gnulib_m4code_getgroups ()
25847 {
25848 if ! $gl_gnulib_enabled_getgroups; then
25849
25850
25851
25852
25853
25854 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25855 if test "x$ac_cv_func_getgroups" = x""yes; then :
25856
25857 fi
25858
25859
25860 # If we don't yet have getgroups, see if it's in -lbsd.
25861 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25862 ac_save_LIBS=$LIBS
25863 if test $ac_cv_func_getgroups = no; then
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25865 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25866 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25868 else
25869 ac_check_lib_save_LIBS=$LIBS
25870 LIBS="-lbsd $LIBS"
25871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25872 /* end confdefs.h. */
25873
25874 /* Override any GCC internal prototype to avoid an error.
25875 Use char because int might match the return type of a GCC
25876 builtin and then its argument prototype would still apply. */
25877 #ifdef __cplusplus
25878 extern "C"
25879 #endif
25880 char getgroups ();
25881 int
25882 main ()
25883 {
25884 return getgroups ();
25885 ;
25886 return 0;
25887 }
25888 _ACEOF
25889 if ac_fn_c_try_link "$LINENO"; then :
25890 ac_cv_lib_bsd_getgroups=yes
25891 else
25892 ac_cv_lib_bsd_getgroups=no
25893 fi
25894 rm -f core conftest.err conftest.$ac_objext \
25895 conftest$ac_exeext conftest.$ac_ext
25896 LIBS=$ac_check_lib_save_LIBS
25897 fi
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25899 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25900 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25901 GETGROUPS_LIB=-lbsd
25902 fi
25903
25904 fi
25905
25906 # Run the program to test the functionality of the system-supplied
25907 # getgroups function only if there is such a function.
25908 if test $ac_cv_func_getgroups = yes; then
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25910 $as_echo_n "checking for working getgroups... " >&6; }
25911 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25912 $as_echo_n "(cached) " >&6
25913 else
25914 if test "$cross_compiling" = yes; then :
25915 case "$host_os" in # ((
25916 # Guess yes on glibc systems.
25917 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25918 # If we don't know, assume the worst.
25919 *) ac_cv_func_getgroups_works="guessing no" ;;
25920 esac
25921
25922 else
25923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25924 /* end confdefs.h. */
25925 $ac_includes_default
25926 int
25927 main ()
25928 {
25929 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25930 return getgroups (0, 0) == -1;
25931 ;
25932 return 0;
25933 }
25934
25935 _ACEOF
25936 if ac_fn_c_try_run "$LINENO"; then :
25937 ac_cv_func_getgroups_works=yes
25938 else
25939 ac_cv_func_getgroups_works=no
25940 fi
25941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25942 conftest.$ac_objext conftest.beam conftest.$ac_ext
25943 fi
25944
25945
25946 fi
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25948 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25949 else
25950 ac_cv_func_getgroups_works=no
25951 fi
25952 case "$ac_cv_func_getgroups_works" in
25953 *yes)
25954
25955 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25956
25957 ;;
25958 esac
25959 LIBS=$ac_save_LIBS
25960
25961 if test $ac_cv_func_getgroups != yes; then
25962 HAVE_GETGROUPS=0
25963 else
25964 if test "$ac_cv_type_getgroups" != gid_t \
25965 || { case "$ac_cv_func_getgroups_works" in
25966 *yes) false;;
25967 *) true;;
25968 esac
25969 }; then
25970 REPLACE_GETGROUPS=1
25971
25972 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
25973
25974 else
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
25976 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
25977 if test "${gl_cv_func_getgroups_works+set}" = set; then :
25978 $as_echo_n "(cached) " >&6
25979 else
25980 if test "$cross_compiling" = yes; then :
25981 case "$host_os" in
25982 # Guess yes on glibc systems.
25983 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
25984 # If we don't know, assume the worst.
25985 *) gl_cv_func_getgroups_works="guessing no" ;;
25986 esac
25987
25988 else
25989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25990 /* end confdefs.h. */
25991 $ac_includes_default
25992 int
25993 main ()
25994 {
25995 int size = getgroups (0, 0);
25996 gid_t *list = malloc (size * sizeof *list);
25997 return getgroups (-1, list) != -1;
25998 ;
25999 return 0;
26000 }
26001 _ACEOF
26002 if ac_fn_c_try_run "$LINENO"; then :
26003 gl_cv_func_getgroups_works=yes
26004 else
26005 gl_cv_func_getgroups_works=no
26006 fi
26007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26008 conftest.$ac_objext conftest.beam conftest.$ac_ext
26009 fi
26010
26011 fi
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
26013 $as_echo "$gl_cv_func_getgroups_works" >&6; }
26014 case "$gl_cv_func_getgroups_works" in
26015 *yes) ;;
26016 *) REPLACE_GETGROUPS=1 ;;
26017 esac
26018 fi
26019 fi
26020 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
26021
26022 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
26023
26024
26025
26026
26027
26028
26029
26030
26031 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
26032
26033 fi
26034
26035
26036
26037
26038
26039 GNULIB_GETGROUPS=1
26040
26041
26042
26043
26044
26045 gl_gnulib_enabled_getgroups=true
26046 fi
26047 }
26048 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
26049 {
26050 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26051
26052
26053 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
26054 fi
26055 }
26056 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
26057 {
26058 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26059
26060
26061
26062
26063
26064 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
26065 if test "x$ac_cv_func_group_member" = x""yes; then :
26066
26067 else
26068
26069 HAVE_GROUP_MEMBER=0
26070
26071 fi
26072
26073
26074 if test $HAVE_GROUP_MEMBER = 0; then
26075
26076
26077
26078
26079
26080
26081
26082
26083 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
26084
26085
26086
26087
26088 fi
26089
26090
26091
26092
26093
26094 GNULIB_GROUP_MEMBER=1
26095
26096
26097
26098
26099
26100 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
26101 if test $HAVE_GROUP_MEMBER = 0; then
26102 func_gl_gnulib_m4code_getgroups
26103 fi
26104 if test $HAVE_GROUP_MEMBER = 0; then
26105 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
26106 fi
26107 fi
26108 }
26109 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
26110 {
26111 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26112 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
26113 fi
26114 }
26115 func_gl_gnulib_m4code_pathmax ()
26116 {
26117 if ! $gl_gnulib_enabled_pathmax; then
26118
26119
26120
26121 gl_gnulib_enabled_pathmax=true
26122 fi
26123 }
26124 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
26125 {
26126 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26127 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
26128 fi
26129 }
26130 func_gl_gnulib_m4code_stat ()
26131 {
26132 if ! $gl_gnulib_enabled_stat; then
26133
26134
26135
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
26137 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
26138 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
26139 $as_echo_n "(cached) " >&6
26140 else
26141 if test "$cross_compiling" = yes; then :
26142 case $host_os in
26143 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
26144 *) gl_cv_func_stat_dir_slash="guessing yes";;
26145 esac
26146 else
26147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26148 /* end confdefs.h. */
26149 #include <sys/stat.h>
26150
26151 int
26152 main ()
26153 {
26154 struct stat st; return stat (".", &st) != stat ("./", &st);
26155 ;
26156 return 0;
26157 }
26158 _ACEOF
26159 if ac_fn_c_try_run "$LINENO"; then :
26160 gl_cv_func_stat_dir_slash=yes
26161 else
26162 gl_cv_func_stat_dir_slash=no
26163 fi
26164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26165 conftest.$ac_objext conftest.beam conftest.$ac_ext
26166 fi
26167
26168 fi
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
26170 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26172 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26173 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
26174 $as_echo_n "(cached) " >&6
26175 else
26176 touch conftest.tmp
26177 # Assume that if we have lstat, we can also check symlinks.
26178 if test $ac_cv_func_lstat = yes; then
26179 ln -s conftest.tmp conftest.lnk
26180 fi
26181 if test "$cross_compiling" = yes; then :
26182 case "$host_os" in
26183 # Guess yes on glibc systems.
26184 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
26185 # If we don't know, assume the worst.
26186 *) gl_cv_func_stat_file_slash="guessing no" ;;
26187 esac
26188
26189 else
26190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26191 /* end confdefs.h. */
26192 #include <sys/stat.h>
26193
26194 int
26195 main ()
26196 {
26197 int result = 0;
26198 struct stat st;
26199 if (!stat ("conftest.tmp/", &st))
26200 result |= 1;
26201 #if HAVE_LSTAT
26202 if (!stat ("conftest.lnk/", &st))
26203 result |= 2;
26204 #endif
26205 return result;
26206
26207 ;
26208 return 0;
26209 }
26210 _ACEOF
26211 if ac_fn_c_try_run "$LINENO"; then :
26212 gl_cv_func_stat_file_slash=yes
26213 else
26214 gl_cv_func_stat_file_slash=no
26215 fi
26216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26217 conftest.$ac_objext conftest.beam conftest.$ac_ext
26218 fi
26219
26220 rm -f conftest.tmp conftest.lnk
26221 fi
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26223 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26224 case $gl_cv_func_stat_dir_slash in
26225 *no) REPLACE_STAT=1
26226
26227 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
26228 ;;
26229 esac
26230 case $gl_cv_func_stat_file_slash in
26231 *no) REPLACE_STAT=1
26232
26233 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26234 ;;
26235 esac
26236
26237 if test $REPLACE_STAT = 1; then
26238
26239
26240
26241
26242
26243
26244
26245
26246 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
26247
26248 :
26249 fi
26250
26251
26252
26253
26254
26255 GNULIB_STAT=1
26256
26257
26258
26259
26260
26261 gl_gnulib_enabled_stat=true
26262 if test $REPLACE_STAT = 1; then
26263 func_gl_gnulib_m4code_dosname
26264 fi
26265 if test $REPLACE_STAT = 1; then
26266 func_gl_gnulib_m4code_pathmax
26267 fi
26268 if test $REPLACE_STAT = 1; then
26269 func_gl_gnulib_m4code_verify
26270 fi
26271 fi
26272 }
26273 func_gl_gnulib_m4code_strtoll ()
26274 {
26275 if ! $gl_gnulib_enabled_strtoll; then
26276
26277
26278
26279 if test "$ac_cv_type_long_long_int" = yes; then
26280 for ac_func in strtoll
26281 do :
26282 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
26283 if test "x$ac_cv_func_strtoll" = x""yes; then :
26284 cat >>confdefs.h <<_ACEOF
26285 #define HAVE_STRTOLL 1
26286 _ACEOF
26287
26288 fi
26289 done
26290
26291 if test $ac_cv_func_strtoll = no; then
26292 HAVE_STRTOLL=0
26293 fi
26294 fi
26295
26296 if test $HAVE_STRTOLL = 0; then
26297
26298
26299
26300
26301
26302
26303
26304
26305 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
26306
26307
26308 :
26309
26310 fi
26311
26312
26313
26314
26315
26316 GNULIB_STRTOLL=1
26317
26318
26319
26320
26321
26322 gl_gnulib_enabled_strtoll=true
26323 fi
26324 }
26325 func_gl_gnulib_m4code_strtoull ()
26326 {
26327 if ! $gl_gnulib_enabled_strtoull; then
26328
26329
26330
26331 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26332 for ac_func in strtoull
26333 do :
26334 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
26335 if test "x$ac_cv_func_strtoull" = x""yes; then :
26336 cat >>confdefs.h <<_ACEOF
26337 #define HAVE_STRTOULL 1
26338 _ACEOF
26339
26340 fi
26341 done
26342
26343 if test $ac_cv_func_strtoull = no; then
26344 HAVE_STRTOULL=0
26345 fi
26346 fi
26347
26348 if test $HAVE_STRTOULL = 0; then
26349
26350
26351
26352
26353
26354
26355
26356
26357 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
26358
26359
26360 :
26361
26362 fi
26363
26364
26365
26366
26367
26368 GNULIB_STRTOULL=1
26369
26370
26371
26372
26373
26374 gl_gnulib_enabled_strtoull=true
26375 fi
26376 }
26377 func_gl_gnulib_m4code_verify ()
26378 {
26379 if ! $gl_gnulib_enabled_verify; then
26380 gl_gnulib_enabled_verify=true
26381 fi
26382 }
26383 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
26384 {
26385 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26386 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
26387 fi
26388 }
26389 if test $HAVE_FACCESSAT = 0; then
26390 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26391 fi
26392 if test $HAVE_FACCESSAT = 0; then
26393 func_gl_gnulib_m4code_dosname
26394 fi
26395 if test $HAVE_FACCESSAT = 0; then
26396 func_gl_gnulib_m4code_euidaccess
26397 fi
26398 if test $HAVE_FACCESSAT = 0; then
26399 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26400 fi
26401 if test $HAVE_FDOPENDIR = 0; then
26402 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26403 fi
26404 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26405 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26406 fi
26407 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26408 func_gl_gnulib_m4code_dosname
26409 fi
26410 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26411 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26412 fi
26413 if test $REPLACE_GETOPT = 1; then
26414 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26415 fi
26416 if test $REPLACE_LSTAT = 1; then
26417 func_gl_gnulib_m4code_dosname
26418 fi
26419 if test $REPLACE_LSTAT = 1; then
26420 func_gl_gnulib_m4code_stat
26421 fi
26422 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26423 func_gl_gnulib_m4code_stat
26424 fi
26425 if test $HAVE_READLINKAT = 0; then
26426 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26427 fi
26428 if test $HAVE_READLINKAT = 0; then
26429 func_gl_gnulib_m4code_dosname
26430 fi
26431 if test $HAVE_READLINKAT = 0; then
26432 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26433 fi
26434 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26435 func_gl_gnulib_m4code_strtoll
26436 fi
26437 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26438 func_gl_gnulib_m4code_verify
26439 fi
26440 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
26441 func_gl_gnulib_m4code_strtoull
26442 fi
26443 if test $ac_cv_func_strtoumax = no; then
26444 func_gl_gnulib_m4code_verify
26445 fi
26446
26447 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26448 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
26449 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
26450 else
26451 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
26452 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
26453 fi
26454
26455 if $gl_gnulib_enabled_dosname; then
26456 gl_GNULIB_ENABLED_dosname_TRUE=
26457 gl_GNULIB_ENABLED_dosname_FALSE='#'
26458 else
26459 gl_GNULIB_ENABLED_dosname_TRUE='#'
26460 gl_GNULIB_ENABLED_dosname_FALSE=
26461 fi
26462
26463 if $gl_gnulib_enabled_euidaccess; then
26464 gl_GNULIB_ENABLED_euidaccess_TRUE=
26465 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
26466 else
26467 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
26468 gl_GNULIB_ENABLED_euidaccess_FALSE=
26469 fi
26470
26471 if $gl_gnulib_enabled_getgroups; then
26472 gl_GNULIB_ENABLED_getgroups_TRUE=
26473 gl_GNULIB_ENABLED_getgroups_FALSE='#'
26474 else
26475 gl_GNULIB_ENABLED_getgroups_TRUE='#'
26476 gl_GNULIB_ENABLED_getgroups_FALSE=
26477 fi
26478
26479 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26480 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
26481 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
26482 else
26483 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
26484 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
26485 fi
26486
26487 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26488 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
26489 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
26490 else
26491 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
26492 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
26493 fi
26494
26495 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26496 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
26497 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
26498 else
26499 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
26500 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
26501 fi
26502
26503 if $gl_gnulib_enabled_pathmax; then
26504 gl_GNULIB_ENABLED_pathmax_TRUE=
26505 gl_GNULIB_ENABLED_pathmax_FALSE='#'
26506 else
26507 gl_GNULIB_ENABLED_pathmax_TRUE='#'
26508 gl_GNULIB_ENABLED_pathmax_FALSE=
26509 fi
26510
26511 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26512 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
26513 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
26514 else
26515 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
26516 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
26517 fi
26518
26519 if $gl_gnulib_enabled_stat; then
26520 gl_GNULIB_ENABLED_stat_TRUE=
26521 gl_GNULIB_ENABLED_stat_FALSE='#'
26522 else
26523 gl_GNULIB_ENABLED_stat_TRUE='#'
26524 gl_GNULIB_ENABLED_stat_FALSE=
26525 fi
26526
26527 if $gl_gnulib_enabled_strtoll; then
26528 gl_GNULIB_ENABLED_strtoll_TRUE=
26529 gl_GNULIB_ENABLED_strtoll_FALSE='#'
26530 else
26531 gl_GNULIB_ENABLED_strtoll_TRUE='#'
26532 gl_GNULIB_ENABLED_strtoll_FALSE=
26533 fi
26534
26535 if $gl_gnulib_enabled_strtoull; then
26536 gl_GNULIB_ENABLED_strtoull_TRUE=
26537 gl_GNULIB_ENABLED_strtoull_FALSE='#'
26538 else
26539 gl_GNULIB_ENABLED_strtoull_TRUE='#'
26540 gl_GNULIB_ENABLED_strtoull_FALSE=
26541 fi
26542
26543 if $gl_gnulib_enabled_verify; then
26544 gl_GNULIB_ENABLED_verify_TRUE=
26545 gl_GNULIB_ENABLED_verify_FALSE='#'
26546 else
26547 gl_GNULIB_ENABLED_verify_TRUE='#'
26548 gl_GNULIB_ENABLED_verify_FALSE=
26549 fi
26550
26551 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26552 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
26553 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
26554 else
26555 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
26556 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
26557 fi
26558
26559 # End of code from modules
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569 gltests_libdeps=
26570 gltests_ltlibdeps=
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580 gl_source_base='tests'
26581 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
26582
26583 gl_module_indicator_condition=$gltests_WITNESS
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594 LIBGNU_LIBDEPS="$gl_libdeps"
26595
26596 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
26597
26598
26599 CFLAGS=$SAVE_CFLAGS
26600 LIBS=$SAVE_LIBS
26601
26602 case "$opsys" in
26603 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26604
26605 darwin)
26606 ## The -headerpad option tells ld (see man page) to leave room at the
26607 ## end of the header for adding load commands. Needed for dumping.
26608 ## 0x690 is the total size of 30 segment load commands (at 56
26609 ## each); under Cocoa 31 commands are required.
26610 if test "$HAVE_NS" = "yes"; then
26611 libs_nsgui="-framework AppKit"
26612 headerpad_extra=6C8
26613 else
26614 libs_nsgui=
26615 headerpad_extra=690
26616 fi
26617 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26618
26619 ## This is here because src/Makefile.in did some extra fiddling around
26620 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26621 ## #ifndef LD_SWITCH_SYSTEM
26622 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26623 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26624 ## not using gcc, darwin.
26625 ## Because this was done in src/Makefile.in, the resulting part of
26626 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
26627 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
26628 ## rather than LD_SWITCH_SYSTEM.
26629 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26630 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
26631 ;;
26632
26633 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26634 ## find X at run-time.
26635 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26636 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26637 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26638 ## had different values in configure (in ac_link) and src/Makefile.in.
26639 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26640 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26641
26642 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26643 esac
26644
26645
26646
26647
26648 LD_FIRSTFLAG=
26649 ORDINARY_LINK=
26650 case "$opsys" in
26651 ## gnu: GNU needs its own crt0.
26652 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
26653
26654 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26655 ## library search parth, i.e. it won't search /usr/lib for libc and
26656 ## friends. Using -nostartfiles instead avoids this problem, and
26657 ## will also work on earlier NetBSD releases.
26658 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
26659
26660 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26661 ## MkLinux/LinuxPPC needs this.
26662 ## s390x-* only supports opsys = gnu-linux so it can be added here.
26663 gnu-*)
26664 case "$canonical" in
26665 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
26666 esac
26667 ;;
26668 esac
26669
26670
26671 if test "x$ORDINARY_LINK" = "xyes"; then
26672
26673 LD_FIRSTFLAG=""
26674
26675 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
26676
26677
26678 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
26679 ## freebsd, gnu-* not on powerpc*|s390x*.
26680 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
26681
26682 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26683 ## places that are difficult to figure out at make time. Fortunately,
26684 ## these same versions allow you to pass arbitrary flags on to the
26685 ## linker, so there is no reason not to use it as a linker.
26686 ##
26687 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26688 ## searching for libraries in its internal directories, so we have to
26689 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26690 LD_FIRSTFLAG="-nostdlib"
26691 fi
26692
26693 ## FIXME? What setting of EDIT_LDFLAGS should this have?
26694 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
26695
26696
26697
26698
26699 ## FIXME? The logic here is not precisely the same as that above.
26700 ## There is no check here for a pre-defined LD_FIRSTFLAG.
26701 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26702 LIB_GCC=
26703 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26704
26705 case "$opsys" in
26706 freebsd|netbsd|openbsd) LIB_GCC= ;;
26707
26708 gnu-*)
26709 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26710 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26711 case $host_cpu in
26712 arm*)
26713 LIB_GCC="-lgcc_s"
26714 ;;
26715 *)
26716 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26717 ## immediately undefine it again and redefine it to empty.
26718 ## Was the C_SWITCH_X_SITE part really necessary?
26719 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26720 LIB_GCC=
26721 ;;
26722 esac
26723 ;;
26724
26725 ## Ask GCC where to find libgcc.a.
26726 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26727 esac
26728 fi
26729
26730 ## Common for all window systems
26731 if test "$window_system" != "none"; then
26732
26733 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
26734
26735 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
26736 fi
26737
26738
26739
26740
26741
26742 #### Report on what we decided to do.
26743 #### Report GTK as a toolkit, even if it doesn't use Xt.
26744 #### It makes printing result more understandable as using GTK sets
26745 #### toolkit_scroll_bars to yes by default.
26746 if test "${HAVE_GTK}" = "yes"; then
26747 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
26748 fi
26749
26750 echo "
26751 Configured for \`${canonical}'.
26752
26753 Where should the build process find the source code? ${srcdir}
26754 What compiler should emacs be built with? ${CC} ${CFLAGS}
26755 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26756 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26757 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26758 What window system should Emacs use? ${window_system}
26759 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26760
26761 if test -n "${x_includes}"; then
26762 echo " Where do we find X Windows header files? ${x_includes}"
26763 else
26764 echo " Where do we find X Windows header files? Standard dirs"
26765 fi
26766 if test -n "${x_libraries}"; then
26767 echo " Where do we find X Windows libraries? ${x_libraries}"
26768 else
26769 echo " Where do we find X Windows libraries? Standard dirs"
26770 fi
26771
26772 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26773 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26774 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26775 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26776 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26777 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26778 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26779 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26780
26781 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26782 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26783 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26784 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
26785 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26786 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
26787 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
26788
26789 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26790 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26791 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26792 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26793
26794 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26795 echo
26796
26797 if test -n "${EMACSDATA}"; then
26798 echo " Environment variable EMACSDATA set to: $EMACSDATA"
26799 fi
26800 if test -n "${EMACSDOC}"; then
26801 echo " Environment variable EMACSDOC set to: $EMACSDOC"
26802 fi
26803
26804 echo
26805
26806 if test "$HAVE_NS" = "yes"; then
26807 echo
26808 echo "You must run \"${MAKE-make} install\" in order to test the built application.
26809 The installed application will go to nextstep/Emacs.app and can be
26810 run or moved from there."
26811 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26812 echo "The application will be fully self-contained."
26813 else
26814 echo "The lisp resources for the application will be installed under ${prefix}.
26815 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
26816 to run if these resources are not installed."
26817 fi
26818 echo
26819 fi
26820
26821 if test "${opsys}" = "cygwin"; then
26822 case `uname -r` in
26823 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
26824 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
26825 echo
26826 ;;
26827 esac
26828 fi
26829
26830 # Remove any trailing slashes in these variables.
26831 test "${prefix}" != NONE &&
26832 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26833 test "${exec_prefix}" != NONE &&
26834 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26835
26836 if test "$HAVE_NS" = "yes"; then
26837 if test "$NS_IMPL_GNUSTEP" = yes; then
26838 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"
26839
26840 else
26841 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"
26842
26843 fi
26844 fi
26845
26846 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"
26847
26848 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"
26849
26850
26851 opt_makefile=test/automated/Makefile
26852
26853 if test -f "$srcdir/$opt_makefile.in"; then
26854 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26855 ac_config_files="$ac_config_files test/automated/Makefile"
26856
26857 fi
26858
26859
26860 opt_makefile=admin/unidata/Makefile
26861
26862 if test -f "$srcdir/$opt_makefile.in"; then
26863 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26864 ac_config_files="$ac_config_files admin/unidata/Makefile"
26865
26866 fi
26867
26868
26869 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26870
26871
26872
26873 ac_config_commands="$ac_config_commands mkdirs"
26874
26875
26876 ac_config_commands="$ac_config_commands epaths"
26877
26878
26879 ac_config_commands="$ac_config_commands gdbinit"
26880
26881
26882 cat >confcache <<\_ACEOF
26883 # This file is a shell script that caches the results of configure
26884 # tests run on this system so they can be shared between configure
26885 # scripts and configure runs, see configure's option --config-cache.
26886 # It is not useful on other systems. If it contains results you don't
26887 # want to keep, you may remove or edit it.
26888 #
26889 # config.status only pays attention to the cache file if you give it
26890 # the --recheck option to rerun configure.
26891 #
26892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26894 # following values.
26895
26896 _ACEOF
26897
26898 # The following way of writing the cache mishandles newlines in values,
26899 # but we know of no workaround that is simple, portable, and efficient.
26900 # So, we kill variables containing newlines.
26901 # Ultrix sh set writes to stderr and can't be redirected directly,
26902 # and sets the high bit in the cache file unless we assign to the vars.
26903 (
26904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26905 eval ac_val=\$$ac_var
26906 case $ac_val in #(
26907 *${as_nl}*)
26908 case $ac_var in #(
26909 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26911 esac
26912 case $ac_var in #(
26913 _ | IFS | as_nl) ;; #(
26914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26915 *) { eval $ac_var=; unset $ac_var;} ;;
26916 esac ;;
26917 esac
26918 done
26919
26920 (set) 2>&1 |
26921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26922 *${as_nl}ac_space=\ *)
26923 # `set' does not quote correctly, so add quotes: double-quote
26924 # substitution turns \\\\ into \\, and sed turns \\ into \.
26925 sed -n \
26926 "s/'/'\\\\''/g;
26927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26928 ;; #(
26929 *)
26930 # `set' quotes correctly as required by POSIX, so do not add quotes.
26931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26932 ;;
26933 esac |
26934 sort
26935 ) |
26936 sed '
26937 /^ac_cv_env_/b end
26938 t clear
26939 :clear
26940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26941 t end
26942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26943 :end' >>confcache
26944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26945 if test -w "$cache_file"; then
26946 test "x$cache_file" != "x/dev/null" &&
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26948 $as_echo "$as_me: updating cache $cache_file" >&6;}
26949 cat confcache >$cache_file
26950 else
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26952 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26953 fi
26954 fi
26955 rm -f confcache
26956
26957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26958 # Let make expand exec_prefix.
26959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26960
26961 DEFS=-DHAVE_CONFIG_H
26962
26963 ac_libobjs=
26964 ac_ltlibobjs=
26965 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26966 # 1. Remove the extension, and $U if already installed.
26967 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26968 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26969 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26970 # will be set to the directory where LIBOBJS objects are built.
26971 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26972 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26973 done
26974 LIBOBJS=$ac_libobjs
26975
26976 LTLIBOBJS=$ac_ltlibobjs
26977
26978
26979 if test -n "$EXEEXT"; then
26980 am__EXEEXT_TRUE=
26981 am__EXEEXT_FALSE='#'
26982 else
26983 am__EXEEXT_TRUE='#'
26984 am__EXEEXT_FALSE=
26985 fi
26986
26987 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26988 as_fn_error "conditional \"AMDEP\" was never defined.
26989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26990 fi
26991 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26992 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26994 fi
26995 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26996 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
26997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26998 fi
26999 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27000 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27002 fi
27003
27004 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
27005 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
27006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27007 fi
27008 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27009 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
27010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27011 fi
27012 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27013 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27015 fi
27016 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
27017 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
27018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27019 fi
27020 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27021 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27023 fi
27024 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27025 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27027 fi
27028 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
27029 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
27030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27031 fi
27032 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
27033 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
27034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27035 fi
27036 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
27037 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
27038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27039 fi
27040 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
27041 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
27042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27043 fi
27044 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
27045 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
27046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27047 fi
27048 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
27049 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
27050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27051 fi
27052 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
27053 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
27054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27055 fi
27056 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
27057 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
27058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27059 fi
27060 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
27061 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
27062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27063 fi
27064 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
27065 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
27066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27067 fi
27068 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
27069 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
27070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27071 fi
27072 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
27073 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
27074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27075 fi
27076 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
27077 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
27078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27079 fi
27080 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
27081 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
27082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27083 fi
27084
27085 gl_libobjs=
27086 gl_ltlibobjs=
27087 if test -n "$gl_LIBOBJS"; then
27088 # Remove the extension.
27089 sed_drop_objext='s/\.o$//;s/\.obj$//'
27090 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27091 gl_libobjs="$gl_libobjs $i.$ac_objext"
27092 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27093 done
27094 fi
27095 gl_LIBOBJS=$gl_libobjs
27096
27097 gl_LTLIBOBJS=$gl_ltlibobjs
27098
27099
27100
27101 gltests_libobjs=
27102 gltests_ltlibobjs=
27103 if test -n "$gltests_LIBOBJS"; then
27104 # Remove the extension.
27105 sed_drop_objext='s/\.o$//;s/\.obj$//'
27106 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27107 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27108 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27109 done
27110 fi
27111 gltests_LIBOBJS=$gltests_libobjs
27112
27113 gltests_LTLIBOBJS=$gltests_ltlibobjs
27114
27115
27116
27117 : ${CONFIG_STATUS=./config.status}
27118 ac_write_fail=0
27119 ac_clean_files_save=$ac_clean_files
27120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27122 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27123 as_write_fail=0
27124 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27125 #! $SHELL
27126 # Generated by $as_me.
27127 # Run this file to recreate the current configuration.
27128 # Compiler output produced by configure, useful for debugging
27129 # configure, is in config.log if it exists.
27130
27131 debug=false
27132 ac_cs_recheck=false
27133 ac_cs_silent=false
27134
27135 SHELL=\${CONFIG_SHELL-$SHELL}
27136 export SHELL
27137 _ASEOF
27138 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27139 ## -------------------- ##
27140 ## M4sh Initialization. ##
27141 ## -------------------- ##
27142
27143 # Be more Bourne compatible
27144 DUALCASE=1; export DUALCASE # for MKS sh
27145 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27146 emulate sh
27147 NULLCMD=:
27148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27149 # is contrary to our usage. Disable this feature.
27150 alias -g '${1+"$@"}'='"$@"'
27151 setopt NO_GLOB_SUBST
27152 else
27153 case `(set -o) 2>/dev/null` in #(
27154 *posix*) :
27155 set -o posix ;; #(
27156 *) :
27157 ;;
27158 esac
27159 fi
27160
27161
27162 as_nl='
27163 '
27164 export as_nl
27165 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27166 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27167 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27169 # Prefer a ksh shell builtin over an external printf program on Solaris,
27170 # but without wasting forks for bash or zsh.
27171 if test -z "$BASH_VERSION$ZSH_VERSION" \
27172 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27173 as_echo='print -r --'
27174 as_echo_n='print -rn --'
27175 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27176 as_echo='printf %s\n'
27177 as_echo_n='printf %s'
27178 else
27179 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27180 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27181 as_echo_n='/usr/ucb/echo -n'
27182 else
27183 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27184 as_echo_n_body='eval
27185 arg=$1;
27186 case $arg in #(
27187 *"$as_nl"*)
27188 expr "X$arg" : "X\\(.*\\)$as_nl";
27189 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27190 esac;
27191 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27192 '
27193 export as_echo_n_body
27194 as_echo_n='sh -c $as_echo_n_body as_echo'
27195 fi
27196 export as_echo_body
27197 as_echo='sh -c $as_echo_body as_echo'
27198 fi
27199
27200 # The user is always right.
27201 if test "${PATH_SEPARATOR+set}" != set; then
27202 PATH_SEPARATOR=:
27203 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27204 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27205 PATH_SEPARATOR=';'
27206 }
27207 fi
27208
27209
27210 # IFS
27211 # We need space, tab and new line, in precisely that order. Quoting is
27212 # there to prevent editors from complaining about space-tab.
27213 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27214 # splitting by setting IFS to empty value.)
27215 IFS=" "" $as_nl"
27216
27217 # Find who we are. Look in the path if we contain no directory separator.
27218 case $0 in #((
27219 *[\\/]* ) as_myself=$0 ;;
27220 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27221 for as_dir in $PATH
27222 do
27223 IFS=$as_save_IFS
27224 test -z "$as_dir" && as_dir=.
27225 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27226 done
27227 IFS=$as_save_IFS
27228
27229 ;;
27230 esac
27231 # We did not find ourselves, most probably we were run as `sh COMMAND'
27232 # in which case we are not to be found in the path.
27233 if test "x$as_myself" = x; then
27234 as_myself=$0
27235 fi
27236 if test ! -f "$as_myself"; then
27237 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27238 exit 1
27239 fi
27240
27241 # Unset variables that we do not need and which cause bugs (e.g. in
27242 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27243 # suppresses any "Segmentation fault" message there. '((' could
27244 # trigger a bug in pdksh 5.2.14.
27245 for as_var in BASH_ENV ENV MAIL MAILPATH
27246 do eval test x\${$as_var+set} = xset \
27247 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27248 done
27249 PS1='$ '
27250 PS2='> '
27251 PS4='+ '
27252
27253 # NLS nuisances.
27254 LC_ALL=C
27255 export LC_ALL
27256 LANGUAGE=C
27257 export LANGUAGE
27258
27259 # CDPATH.
27260 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27261
27262
27263 # as_fn_error ERROR [LINENO LOG_FD]
27264 # ---------------------------------
27265 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27266 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27267 # script with status $?, using 1 if that was 0.
27268 as_fn_error ()
27269 {
27270 as_status=$?; test $as_status -eq 0 && as_status=1
27271 if test "$3"; then
27272 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27273 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27274 fi
27275 $as_echo "$as_me: error: $1" >&2
27276 as_fn_exit $as_status
27277 } # as_fn_error
27278
27279
27280 # as_fn_set_status STATUS
27281 # -----------------------
27282 # Set $? to STATUS, without forking.
27283 as_fn_set_status ()
27284 {
27285 return $1
27286 } # as_fn_set_status
27287
27288 # as_fn_exit STATUS
27289 # -----------------
27290 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27291 as_fn_exit ()
27292 {
27293 set +e
27294 as_fn_set_status $1
27295 exit $1
27296 } # as_fn_exit
27297
27298 # as_fn_unset VAR
27299 # ---------------
27300 # Portably unset VAR.
27301 as_fn_unset ()
27302 {
27303 { eval $1=; unset $1;}
27304 }
27305 as_unset=as_fn_unset
27306 # as_fn_append VAR VALUE
27307 # ----------------------
27308 # Append the text in VALUE to the end of the definition contained in VAR. Take
27309 # advantage of any shell optimizations that allow amortized linear growth over
27310 # repeated appends, instead of the typical quadratic growth present in naive
27311 # implementations.
27312 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27313 eval 'as_fn_append ()
27314 {
27315 eval $1+=\$2
27316 }'
27317 else
27318 as_fn_append ()
27319 {
27320 eval $1=\$$1\$2
27321 }
27322 fi # as_fn_append
27323
27324 # as_fn_arith ARG...
27325 # ------------------
27326 # Perform arithmetic evaluation on the ARGs, and store the result in the
27327 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27328 # must be portable across $(()) and expr.
27329 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27330 eval 'as_fn_arith ()
27331 {
27332 as_val=$(( $* ))
27333 }'
27334 else
27335 as_fn_arith ()
27336 {
27337 as_val=`expr "$@" || test $? -eq 1`
27338 }
27339 fi # as_fn_arith
27340
27341
27342 if expr a : '\(a\)' >/dev/null 2>&1 &&
27343 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27344 as_expr=expr
27345 else
27346 as_expr=false
27347 fi
27348
27349 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27350 as_basename=basename
27351 else
27352 as_basename=false
27353 fi
27354
27355 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27356 as_dirname=dirname
27357 else
27358 as_dirname=false
27359 fi
27360
27361 as_me=`$as_basename -- "$0" ||
27362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27363 X"$0" : 'X\(//\)$' \| \
27364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27365 $as_echo X/"$0" |
27366 sed '/^.*\/\([^/][^/]*\)\/*$/{
27367 s//\1/
27368 q
27369 }
27370 /^X\/\(\/\/\)$/{
27371 s//\1/
27372 q
27373 }
27374 /^X\/\(\/\).*/{
27375 s//\1/
27376 q
27377 }
27378 s/.*/./; q'`
27379
27380 # Avoid depending upon Character Ranges.
27381 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27382 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27383 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27384 as_cr_digits='0123456789'
27385 as_cr_alnum=$as_cr_Letters$as_cr_digits
27386
27387 ECHO_C= ECHO_N= ECHO_T=
27388 case `echo -n x` in #(((((
27389 -n*)
27390 case `echo 'xy\c'` in
27391 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27392 xy) ECHO_C='\c';;
27393 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27394 ECHO_T=' ';;
27395 esac;;
27396 *)
27397 ECHO_N='-n';;
27398 esac
27399
27400 rm -f conf$$ conf$$.exe conf$$.file
27401 if test -d conf$$.dir; then
27402 rm -f conf$$.dir/conf$$.file
27403 else
27404 rm -f conf$$.dir
27405 mkdir conf$$.dir 2>/dev/null
27406 fi
27407 if (echo >conf$$.file) 2>/dev/null; then
27408 if ln -s conf$$.file conf$$ 2>/dev/null; then
27409 as_ln_s='ln -s'
27410 # ... but there are two gotchas:
27411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27413 # In both cases, we have to default to `cp -p'.
27414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27415 as_ln_s='cp -p'
27416 elif ln conf$$.file conf$$ 2>/dev/null; then
27417 as_ln_s=ln
27418 else
27419 as_ln_s='cp -p'
27420 fi
27421 else
27422 as_ln_s='cp -p'
27423 fi
27424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27425 rmdir conf$$.dir 2>/dev/null
27426
27427
27428 # as_fn_mkdir_p
27429 # -------------
27430 # Create "$as_dir" as a directory, including parents if necessary.
27431 as_fn_mkdir_p ()
27432 {
27433
27434 case $as_dir in #(
27435 -*) as_dir=./$as_dir;;
27436 esac
27437 test -d "$as_dir" || eval $as_mkdir_p || {
27438 as_dirs=
27439 while :; do
27440 case $as_dir in #(
27441 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27442 *) as_qdir=$as_dir;;
27443 esac
27444 as_dirs="'$as_qdir' $as_dirs"
27445 as_dir=`$as_dirname -- "$as_dir" ||
27446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27447 X"$as_dir" : 'X\(//\)[^/]' \| \
27448 X"$as_dir" : 'X\(//\)$' \| \
27449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27450 $as_echo X"$as_dir" |
27451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27452 s//\1/
27453 q
27454 }
27455 /^X\(\/\/\)[^/].*/{
27456 s//\1/
27457 q
27458 }
27459 /^X\(\/\/\)$/{
27460 s//\1/
27461 q
27462 }
27463 /^X\(\/\).*/{
27464 s//\1/
27465 q
27466 }
27467 s/.*/./; q'`
27468 test -d "$as_dir" && break
27469 done
27470 test -z "$as_dirs" || eval "mkdir $as_dirs"
27471 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27472
27473
27474 } # as_fn_mkdir_p
27475 if mkdir -p . 2>/dev/null; then
27476 as_mkdir_p='mkdir -p "$as_dir"'
27477 else
27478 test -d ./-p && rmdir ./-p
27479 as_mkdir_p=false
27480 fi
27481
27482 if test -x / >/dev/null 2>&1; then
27483 as_test_x='test -x'
27484 else
27485 if ls -dL / >/dev/null 2>&1; then
27486 as_ls_L_option=L
27487 else
27488 as_ls_L_option=
27489 fi
27490 as_test_x='
27491 eval sh -c '\''
27492 if test -d "$1"; then
27493 test -d "$1/.";
27494 else
27495 case $1 in #(
27496 -*)set "./$1";;
27497 esac;
27498 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27499 ???[sx]*):;;*)false;;esac;fi
27500 '\'' sh
27501 '
27502 fi
27503 as_executable_p=$as_test_x
27504
27505 # Sed expression to map a string onto a valid CPP name.
27506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27507
27508 # Sed expression to map a string onto a valid variable name.
27509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27510
27511
27512 exec 6>&1
27513 ## ----------------------------------- ##
27514 ## Main body of $CONFIG_STATUS script. ##
27515 ## ----------------------------------- ##
27516 _ASEOF
27517 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27518
27519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27520 # Save the log message, to keep $0 and so on meaningful, and to
27521 # report actual input values of CONFIG_FILES etc. instead of their
27522 # values after options handling.
27523 ac_log="
27524 This file was extended by emacs $as_me 24.3.50, which was
27525 generated by GNU Autoconf 2.65. Invocation command line was
27526
27527 CONFIG_FILES = $CONFIG_FILES
27528 CONFIG_HEADERS = $CONFIG_HEADERS
27529 CONFIG_LINKS = $CONFIG_LINKS
27530 CONFIG_COMMANDS = $CONFIG_COMMANDS
27531 $ $0 $@
27532
27533 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27534 "
27535
27536 _ACEOF
27537
27538 case $ac_config_files in *"
27539 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27540 esac
27541
27542 case $ac_config_headers in *"
27543 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27544 esac
27545
27546
27547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27548 # Files that config.status was made for.
27549 config_files="$ac_config_files"
27550 config_headers="$ac_config_headers"
27551 config_commands="$ac_config_commands"
27552
27553 _ACEOF
27554
27555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27556 ac_cs_usage="\
27557 \`$as_me' instantiates files and other configuration actions
27558 from templates according to the current configuration. Unless the files
27559 and actions are specified as TAGs, all are instantiated by default.
27560
27561 Usage: $0 [OPTION]... [TAG]...
27562
27563 -h, --help print this help, then exit
27564 -V, --version print version number and configuration settings, then exit
27565 --config print configuration, then exit
27566 -q, --quiet, --silent
27567 do not print progress messages
27568 -d, --debug don't remove temporary files
27569 --recheck update $as_me by reconfiguring in the same conditions
27570 --file=FILE[:TEMPLATE]
27571 instantiate the configuration file FILE
27572 --header=FILE[:TEMPLATE]
27573 instantiate the configuration header FILE
27574
27575 Configuration files:
27576 $config_files
27577
27578 Configuration headers:
27579 $config_headers
27580
27581 Configuration commands:
27582 $config_commands
27583
27584 Report bugs to the package provider."
27585
27586 _ACEOF
27587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27588 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27589 ac_cs_version="\\
27590 emacs config.status 24.3.50
27591 configured by $0, generated by GNU Autoconf 2.65,
27592 with options \\"\$ac_cs_config\\"
27593
27594 Copyright (C) 2009 Free Software Foundation, Inc.
27595 This config.status script is free software; the Free Software Foundation
27596 gives unlimited permission to copy, distribute and modify it."
27597
27598 ac_pwd='$ac_pwd'
27599 srcdir='$srcdir'
27600 INSTALL='$INSTALL'
27601 MKDIR_P='$MKDIR_P'
27602 AWK='$AWK'
27603 test -n "\$AWK" || AWK=awk
27604 _ACEOF
27605
27606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27607 # The default lists apply if the user does not specify any file.
27608 ac_need_defaults=:
27609 while test $# != 0
27610 do
27611 case $1 in
27612 --*=*)
27613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27615 ac_shift=:
27616 ;;
27617 *)
27618 ac_option=$1
27619 ac_optarg=$2
27620 ac_shift=shift
27621 ;;
27622 esac
27623
27624 case $ac_option in
27625 # Handling of the options.
27626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27627 ac_cs_recheck=: ;;
27628 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27629 $as_echo "$ac_cs_version"; exit ;;
27630 --config | --confi | --conf | --con | --co | --c )
27631 $as_echo "$ac_cs_config"; exit ;;
27632 --debug | --debu | --deb | --de | --d | -d )
27633 debug=: ;;
27634 --file | --fil | --fi | --f )
27635 $ac_shift
27636 case $ac_optarg in
27637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27638 esac
27639 as_fn_append CONFIG_FILES " '$ac_optarg'"
27640 ac_need_defaults=false;;
27641 --header | --heade | --head | --hea )
27642 $ac_shift
27643 case $ac_optarg in
27644 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27645 esac
27646 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27647 ac_need_defaults=false;;
27648 --he | --h)
27649 # Conflict between --help and --header
27650 as_fn_error "ambiguous option: \`$1'
27651 Try \`$0 --help' for more information.";;
27652 --help | --hel | -h )
27653 $as_echo "$ac_cs_usage"; exit ;;
27654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27656 ac_cs_silent=: ;;
27657
27658 # This is an error.
27659 -*) as_fn_error "unrecognized option: \`$1'
27660 Try \`$0 --help' for more information." ;;
27661
27662 *) as_fn_append ac_config_targets " $1"
27663 ac_need_defaults=false ;;
27664
27665 esac
27666 shift
27667 done
27668
27669 ac_configure_extra_args=
27670
27671 if $ac_cs_silent; then
27672 exec 6>/dev/null
27673 ac_configure_extra_args="$ac_configure_extra_args --silent"
27674 fi
27675
27676 _ACEOF
27677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27678 if \$ac_cs_recheck; then
27679 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27680 shift
27681 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27682 CONFIG_SHELL='$SHELL'
27683 export CONFIG_SHELL
27684 exec "\$@"
27685 fi
27686
27687 _ACEOF
27688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27689 exec 5>>config.log
27690 {
27691 echo
27692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27693 ## Running $as_me. ##
27694 _ASBOX
27695 $as_echo "$ac_log"
27696 } >&5
27697
27698 _ACEOF
27699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27700 #
27701 # INIT-COMMANDS
27702 #
27703 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27704 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27705
27706 _ACEOF
27707
27708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27709
27710 # Handling of arguments.
27711 for ac_config_target in $ac_config_targets
27712 do
27713 case $ac_config_target in
27714 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27715 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27716 "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" ;;
27717 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27718 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27719 "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" ;;
27720 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27721 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27722 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27723 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27724 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27725 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27726 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27727 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27728 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27729 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27730 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27731 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27732 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
27733 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
27734 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
27735 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
27736 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
27737 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
27738
27739 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27740 esac
27741 done
27742
27743
27744 # If the user did not use the arguments to specify the items to instantiate,
27745 # then the envvar interface is used. Set only those that are not.
27746 # We use the long form for the default assignment because of an extremely
27747 # bizarre bug on SunOS 4.1.3.
27748 if $ac_need_defaults; then
27749 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27750 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27751 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27752 fi
27753
27754 # Have a temporary directory for convenience. Make it in the build tree
27755 # simply because there is no reason against having it here, and in addition,
27756 # creating and moving files from /tmp can sometimes cause problems.
27757 # Hook for its removal unless debugging.
27758 # Note that there is a small window in which the directory will not be cleaned:
27759 # after its creation but before its name has been assigned to `$tmp'.
27760 $debug ||
27761 {
27762 tmp=
27763 trap 'exit_status=$?
27764 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27765 ' 0
27766 trap 'as_fn_exit 1' 1 2 13 15
27767 }
27768 # Create a (secure) tmp directory for tmp files.
27769
27770 {
27771 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27772 test -n "$tmp" && test -d "$tmp"
27773 } ||
27774 {
27775 tmp=./conf$$-$RANDOM
27776 (umask 077 && mkdir "$tmp")
27777 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27778
27779 # Set up the scripts for CONFIG_FILES section.
27780 # No need to generate them if there are no CONFIG_FILES.
27781 # This happens for instance with `./config.status config.h'.
27782 if test -n "$CONFIG_FILES"; then
27783
27784 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27785 ac_cs_awk_getline=:
27786 ac_cs_awk_pipe_init=
27787 ac_cs_awk_read_file='
27788 while ((getline aline < (F[key])) > 0)
27789 print(aline)
27790 close(F[key])'
27791 ac_cs_awk_pipe_fini=
27792 else
27793 ac_cs_awk_getline=false
27794 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27795 ac_cs_awk_read_file='
27796 print "|#_!!_#|"
27797 print "cat " F[key] " &&"
27798 '$ac_cs_awk_pipe_init
27799 # The final `:' finishes the AND list.
27800 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27801 fi
27802 ac_cr=`echo X | tr X '\015'`
27803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27804 # But we know of no other shell where ac_cr would be empty at this
27805 # point, so we can use a bashism as a fallback.
27806 if test "x$ac_cr" = x; then
27807 eval ac_cr=\$\'\\r\'
27808 fi
27809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27811 ac_cs_awk_cr='\r'
27812 else
27813 ac_cs_awk_cr=$ac_cr
27814 fi
27815
27816 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27817 _ACEOF
27818
27819 # Create commands to substitute file output variables.
27820 {
27821 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27822 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27823 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27824 echo "_ACAWK" &&
27825 echo "_ACEOF"
27826 } >conf$$files.sh &&
27827 . ./conf$$files.sh ||
27828 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27829 rm -f conf$$files.sh
27830
27831 {
27832 echo "cat >conf$$subs.awk <<_ACEOF" &&
27833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27834 echo "_ACEOF"
27835 } >conf$$subs.sh ||
27836 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27838 ac_delim='%!_!# '
27839 for ac_last_try in false false false false false :; do
27840 . ./conf$$subs.sh ||
27841 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27842
27843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27844 if test $ac_delim_n = $ac_delim_num; then
27845 break
27846 elif $ac_last_try; then
27847 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27848 else
27849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27850 fi
27851 done
27852 rm -f conf$$subs.sh
27853
27854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27855 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27856 _ACEOF
27857 sed -n '
27858 h
27859 s/^/S["/; s/!.*/"]=/
27860 p
27861 g
27862 s/^[^!]*!//
27863 :repl
27864 t repl
27865 s/'"$ac_delim"'$//
27866 t delim
27867 :nl
27868 h
27869 s/\(.\{148\}\)..*/\1/
27870 t more1
27871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27872 p
27873 n
27874 b repl
27875 :more1
27876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27877 p
27878 g
27879 s/.\{148\}//
27880 t nl
27881 :delim
27882 h
27883 s/\(.\{148\}\)..*/\1/
27884 t more2
27885 s/["\\]/\\&/g; s/^/"/; s/$/"/
27886 p
27887 b
27888 :more2
27889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27890 p
27891 g
27892 s/.\{148\}//
27893 t delim
27894 ' <conf$$subs.awk | sed '
27895 /^[^""]/{
27896 N
27897 s/\n//
27898 }
27899 ' >>$CONFIG_STATUS || ac_write_fail=1
27900 rm -f conf$$subs.awk
27901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27902 _ACAWK
27903 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27904 for (key in S) S_is_set[key] = 1
27905 FS = "\a"
27906 \$ac_cs_awk_pipe_init
27907 }
27908 {
27909 line = $ 0
27910 nfields = split(line, field, "@")
27911 substed = 0
27912 len = length(field[1])
27913 for (i = 2; i < nfields; i++) {
27914 key = field[i]
27915 keylen = length(key)
27916 if (S_is_set[key]) {
27917 value = S[key]
27918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27919 len += length(value) + length(field[++i])
27920 substed = 1
27921 } else
27922 len += 1 + keylen
27923 }
27924 if (nfields == 3 && !substed) {
27925 key = field[2]
27926 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27927 \$ac_cs_awk_read_file
27928 next
27929 }
27930 }
27931 print line
27932 }
27933 \$ac_cs_awk_pipe_fini
27934 _ACAWK
27935 _ACEOF
27936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27937 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27938 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27939 else
27940 cat
27941 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27942 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27943 _ACEOF
27944
27945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27947 # trailing colons and then remove the whole line if VPATH becomes empty
27948 # (actually we leave an empty line to preserve line numbers).
27949 if test "x$srcdir" = x.; then
27950 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27951 s/:*\$(srcdir):*/:/
27952 s/:*\${srcdir}:*/:/
27953 s/:*@srcdir@:*/:/
27954 s/^\([^=]*=[ ]*\):*/\1/
27955 s/:*$//
27956 s/^[^=]*=[ ]*$//
27957 }'
27958 fi
27959
27960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27961 fi # test -n "$CONFIG_FILES"
27962
27963 # Set up the scripts for CONFIG_HEADERS section.
27964 # No need to generate them if there are no CONFIG_HEADERS.
27965 # This happens for instance with `./config.status Makefile'.
27966 if test -n "$CONFIG_HEADERS"; then
27967 cat >"$tmp/defines.awk" <<\_ACAWK ||
27968 BEGIN {
27969 _ACEOF
27970
27971 # Transform confdefs.h into an awk script `defines.awk', embedded as
27972 # here-document in config.status, that substitutes the proper values into
27973 # config.h.in to produce config.h.
27974
27975 # Create a delimiter string that does not exist in confdefs.h, to ease
27976 # handling of long lines.
27977 ac_delim='%!_!# '
27978 for ac_last_try in false false :; do
27979 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27980 if test -z "$ac_t"; then
27981 break
27982 elif $ac_last_try; then
27983 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27984 else
27985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27986 fi
27987 done
27988
27989 # For the awk script, D is an array of macro values keyed by name,
27990 # likewise P contains macro parameters if any. Preserve backslash
27991 # newline sequences.
27992
27993 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27994 sed -n '
27995 s/.\{148\}/&'"$ac_delim"'/g
27996 t rset
27997 :rset
27998 s/^[ ]*#[ ]*define[ ][ ]*/ /
27999 t def
28000 d
28001 :def
28002 s/\\$//
28003 t bsnl
28004 s/["\\]/\\&/g
28005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28006 D["\1"]=" \3"/p
28007 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28008 d
28009 :bsnl
28010 s/["\\]/\\&/g
28011 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28012 D["\1"]=" \3\\\\\\n"\\/p
28013 t cont
28014 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28015 t cont
28016 d
28017 :cont
28018 n
28019 s/.\{148\}/&'"$ac_delim"'/g
28020 t clear
28021 :clear
28022 s/\\$//
28023 t bsnlc
28024 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28025 d
28026 :bsnlc
28027 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28028 b cont
28029 ' <confdefs.h | sed '
28030 s/'"$ac_delim"'/"\\\
28031 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28032
28033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28034 for (key in D) D_is_set[key] = 1
28035 FS = "\a"
28036 }
28037 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28038 line = \$ 0
28039 split(line, arg, " ")
28040 if (arg[1] == "#") {
28041 defundef = arg[2]
28042 mac1 = arg[3]
28043 } else {
28044 defundef = substr(arg[1], 2)
28045 mac1 = arg[2]
28046 }
28047 split(mac1, mac2, "(") #)
28048 macro = mac2[1]
28049 prefix = substr(line, 1, index(line, defundef) - 1)
28050 if (D_is_set[macro]) {
28051 # Preserve the white space surrounding the "#".
28052 print prefix "define", macro P[macro] D[macro]
28053 next
28054 } else {
28055 # Replace #undef with comments. This is necessary, for example,
28056 # in the case of _POSIX_SOURCE, which is predefined and required
28057 # on some systems where configure will not decide to define it.
28058 if (defundef == "undef") {
28059 print "/*", prefix defundef, macro, "*/"
28060 next
28061 }
28062 }
28063 }
28064 { print }
28065 _ACAWK
28066 _ACEOF
28067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28068 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28069 fi # test -n "$CONFIG_HEADERS"
28070
28071
28072 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28073 shift
28074 for ac_tag
28075 do
28076 case $ac_tag in
28077 :[FHLC]) ac_mode=$ac_tag; continue;;
28078 esac
28079 case $ac_mode$ac_tag in
28080 :[FHL]*:*);;
28081 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28082 :[FH]-) ac_tag=-:-;;
28083 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28084 esac
28085 ac_save_IFS=$IFS
28086 IFS=:
28087 set x $ac_tag
28088 IFS=$ac_save_IFS
28089 shift
28090 ac_file=$1
28091 shift
28092
28093 case $ac_mode in
28094 :L) ac_source=$1;;
28095 :[FH])
28096 ac_file_inputs=
28097 for ac_f
28098 do
28099 case $ac_f in
28100 -) ac_f="$tmp/stdin";;
28101 *) # Look for the file first in the build tree, then in the source tree
28102 # (if the path is not absolute). The absolute path cannot be DOS-style,
28103 # because $ac_f cannot contain `:'.
28104 test -f "$ac_f" ||
28105 case $ac_f in
28106 [\\/$]*) false;;
28107 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28108 esac ||
28109 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28110 esac
28111 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28112 as_fn_append ac_file_inputs " '$ac_f'"
28113 done
28114
28115 # Let's still pretend it is `configure' which instantiates (i.e., don't
28116 # use $as_me), people would be surprised to read:
28117 # /* config.h. Generated by config.status. */
28118 configure_input='Generated from '`
28119 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28120 `' by configure.'
28121 if test x"$ac_file" != x-; then
28122 configure_input="$ac_file. $configure_input"
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28124 $as_echo "$as_me: creating $ac_file" >&6;}
28125 fi
28126 # Neutralize special characters interpreted by sed in replacement strings.
28127 case $configure_input in #(
28128 *\&* | *\|* | *\\* )
28129 ac_sed_conf_input=`$as_echo "$configure_input" |
28130 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28131 *) ac_sed_conf_input=$configure_input;;
28132 esac
28133
28134 case $ac_tag in
28135 *:-:* | *:-) cat >"$tmp/stdin" \
28136 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28137 esac
28138 ;;
28139 esac
28140
28141 ac_dir=`$as_dirname -- "$ac_file" ||
28142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28143 X"$ac_file" : 'X\(//\)[^/]' \| \
28144 X"$ac_file" : 'X\(//\)$' \| \
28145 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28146 $as_echo X"$ac_file" |
28147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28148 s//\1/
28149 q
28150 }
28151 /^X\(\/\/\)[^/].*/{
28152 s//\1/
28153 q
28154 }
28155 /^X\(\/\/\)$/{
28156 s//\1/
28157 q
28158 }
28159 /^X\(\/\).*/{
28160 s//\1/
28161 q
28162 }
28163 s/.*/./; q'`
28164 as_dir="$ac_dir"; as_fn_mkdir_p
28165 ac_builddir=.
28166
28167 case "$ac_dir" in
28168 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28169 *)
28170 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28171 # A ".." for each directory in $ac_dir_suffix.
28172 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28173 case $ac_top_builddir_sub in
28174 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28175 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28176 esac ;;
28177 esac
28178 ac_abs_top_builddir=$ac_pwd
28179 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28180 # for backward compatibility:
28181 ac_top_builddir=$ac_top_build_prefix
28182
28183 case $srcdir in
28184 .) # We are building in place.
28185 ac_srcdir=.
28186 ac_top_srcdir=$ac_top_builddir_sub
28187 ac_abs_top_srcdir=$ac_pwd ;;
28188 [\\/]* | ?:[\\/]* ) # Absolute name.
28189 ac_srcdir=$srcdir$ac_dir_suffix;
28190 ac_top_srcdir=$srcdir
28191 ac_abs_top_srcdir=$srcdir ;;
28192 *) # Relative name.
28193 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28194 ac_top_srcdir=$ac_top_build_prefix$srcdir
28195 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28196 esac
28197 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28198
28199
28200 case $ac_mode in
28201 :F)
28202 #
28203 # CONFIG_FILE
28204 #
28205
28206 case $INSTALL in
28207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28208 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28209 esac
28210 ac_MKDIR_P=$MKDIR_P
28211 case $MKDIR_P in
28212 [\\/$]* | ?:[\\/]* ) ;;
28213 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28214 esac
28215 _ACEOF
28216
28217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28218 # If the template does not know about datarootdir, expand it.
28219 # FIXME: This hack should be removed a few years after 2.60.
28220 ac_datarootdir_hack=; ac_datarootdir_seen=
28221 ac_sed_dataroot='
28222 /datarootdir/ {
28223 p
28224 q
28225 }
28226 /@datadir@/p
28227 /@docdir@/p
28228 /@infodir@/p
28229 /@localedir@/p
28230 /@mandir@/p'
28231 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28232 *datarootdir*) ac_datarootdir_seen=yes;;
28233 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28235 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28236 _ACEOF
28237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28238 ac_datarootdir_hack='
28239 s&@datadir@&$datadir&g
28240 s&@docdir@&$docdir&g
28241 s&@infodir@&$infodir&g
28242 s&@localedir@&$localedir&g
28243 s&@mandir@&$mandir&g
28244 s&\\\${datarootdir}&$datarootdir&g' ;;
28245 esac
28246 _ACEOF
28247
28248 # Neutralize VPATH when `$srcdir' = `.'.
28249 # Shell code in configure.ac might set extrasub.
28250 # FIXME: do we really want to maintain this feature?
28251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28252 ac_sed_extra="$ac_vpsub
28253 $extrasub
28254 _ACEOF
28255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28256 :t
28257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28258 s|@configure_input@|$ac_sed_conf_input|;t t
28259 s&@top_builddir@&$ac_top_builddir_sub&;t t
28260 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28261 s&@srcdir@&$ac_srcdir&;t t
28262 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28263 s&@top_srcdir@&$ac_top_srcdir&;t t
28264 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28265 s&@builddir@&$ac_builddir&;t t
28266 s&@abs_builddir@&$ac_abs_builddir&;t t
28267 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28268 s&@INSTALL@&$ac_INSTALL&;t t
28269 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28270 $ac_datarootdir_hack
28271 "
28272 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28273 if $ac_cs_awk_getline; then
28274 $AWK -f "$tmp/subs.awk"
28275 else
28276 $AWK -f "$tmp/subs.awk" | $SHELL
28277 fi >$tmp/out \
28278 || as_fn_error "could not create $ac_file" "$LINENO" 5
28279
28280 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28281 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28282 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28284 which seems to be undefined. Please make sure it is defined." >&5
28285 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28286 which seems to be undefined. Please make sure it is defined." >&2;}
28287
28288 rm -f "$tmp/stdin"
28289 case $ac_file in
28290 -) cat "$tmp/out" && rm -f "$tmp/out";;
28291 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28292 esac \
28293 || as_fn_error "could not create $ac_file" "$LINENO" 5
28294 ;;
28295 :H)
28296 #
28297 # CONFIG_HEADER
28298 #
28299 if test x"$ac_file" != x-; then
28300 {
28301 $as_echo "/* $configure_input */" \
28302 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28303 } >"$tmp/config.h" \
28304 || as_fn_error "could not create $ac_file" "$LINENO" 5
28305 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28307 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28308 else
28309 rm -f "$ac_file"
28310 mv "$tmp/config.h" "$ac_file" \
28311 || as_fn_error "could not create $ac_file" "$LINENO" 5
28312 fi
28313 else
28314 $as_echo "/* $configure_input */" \
28315 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28316 || as_fn_error "could not create -" "$LINENO" 5
28317 fi
28318 # Compute "$ac_file"'s index in $config_headers.
28319 _am_arg="$ac_file"
28320 _am_stamp_count=1
28321 for _am_header in $config_headers :; do
28322 case $_am_header in
28323 $_am_arg | $_am_arg:* )
28324 break ;;
28325 * )
28326 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28327 esac
28328 done
28329 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28330 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28331 X"$_am_arg" : 'X\(//\)[^/]' \| \
28332 X"$_am_arg" : 'X\(//\)$' \| \
28333 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28334 $as_echo X"$_am_arg" |
28335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28336 s//\1/
28337 q
28338 }
28339 /^X\(\/\/\)[^/].*/{
28340 s//\1/
28341 q
28342 }
28343 /^X\(\/\/\)$/{
28344 s//\1/
28345 q
28346 }
28347 /^X\(\/\).*/{
28348 s//\1/
28349 q
28350 }
28351 s/.*/./; q'`/stamp-h$_am_stamp_count
28352 ;;
28353
28354 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28355 $as_echo "$as_me: executing $ac_file commands" >&6;}
28356 ;;
28357 esac
28358
28359
28360 case $ac_file$ac_mode in
28361 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28362 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28363 # are listed without --file. Let's play safe and only enable the eval
28364 # if we detect the quoting.
28365 case $CONFIG_FILES in
28366 *\'*) eval set x "$CONFIG_FILES" ;;
28367 *) set x $CONFIG_FILES ;;
28368 esac
28369 shift
28370 for mf
28371 do
28372 # Strip MF so we end up with the name of the file.
28373 mf=`echo "$mf" | sed -e 's/:.*$//'`
28374 # Check whether this is an Automake generated Makefile or not.
28375 # We used to match only the files named `Makefile.in', but
28376 # some people rename them; so instead we look at the file content.
28377 # Grep'ing the first line is not enough: some people post-process
28378 # each Makefile.in and add a new line on top of each file to say so.
28379 # Grep'ing the whole file is not good either: AIX grep has a line
28380 # limit of 2048, but all sed's we know have understand at least 4000.
28381 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28382 dirpart=`$as_dirname -- "$mf" ||
28383 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28384 X"$mf" : 'X\(//\)[^/]' \| \
28385 X"$mf" : 'X\(//\)$' \| \
28386 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28387 $as_echo X"$mf" |
28388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28389 s//\1/
28390 q
28391 }
28392 /^X\(\/\/\)[^/].*/{
28393 s//\1/
28394 q
28395 }
28396 /^X\(\/\/\)$/{
28397 s//\1/
28398 q
28399 }
28400 /^X\(\/\).*/{
28401 s//\1/
28402 q
28403 }
28404 s/.*/./; q'`
28405 else
28406 continue
28407 fi
28408 # Extract the definition of DEPDIR, am__include, and am__quote
28409 # from the Makefile without running `make'.
28410 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28411 test -z "$DEPDIR" && continue
28412 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28413 test -z "am__include" && continue
28414 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28415 # When using ansi2knr, U may be empty or an underscore; expand it
28416 U=`sed -n 's/^U = //p' < "$mf"`
28417 # Find all dependency output files, they are included files with
28418 # $(DEPDIR) in their names. We invoke sed twice because it is the
28419 # simplest approach to changing $(DEPDIR) to its actual value in the
28420 # expansion.
28421 for file in `sed -n "
28422 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28423 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28424 # Make sure the directory exists.
28425 test -f "$dirpart/$file" && continue
28426 fdir=`$as_dirname -- "$file" ||
28427 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28428 X"$file" : 'X\(//\)[^/]' \| \
28429 X"$file" : 'X\(//\)$' \| \
28430 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28431 $as_echo X"$file" |
28432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28433 s//\1/
28434 q
28435 }
28436 /^X\(\/\/\)[^/].*/{
28437 s//\1/
28438 q
28439 }
28440 /^X\(\/\/\)$/{
28441 s//\1/
28442 q
28443 }
28444 /^X\(\/\).*/{
28445 s//\1/
28446 q
28447 }
28448 s/.*/./; q'`
28449 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28450 # echo "creating $dirpart/$file"
28451 echo '# dummy' > "$dirpart/$file"
28452 done
28453 done
28454 }
28455 ;;
28456 "mkdirs":C)
28457 for dir in etc lisp ; do
28458 test -d ${dir} || mkdir ${dir}
28459 done
28460 ;;
28461 "epaths":C)
28462 echo creating src/epaths.h
28463 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
28464 ;;
28465 "gdbinit":C)
28466 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
28467 echo creating src/.gdbinit
28468 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
28469 fi
28470 ;;
28471
28472 esac
28473 done # for ac_tag
28474
28475
28476 as_fn_exit 0
28477 _ACEOF
28478 ac_clean_files=$ac_clean_files_save
28479
28480 test $ac_write_fail = 0 ||
28481 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28482
28483
28484 # configure is writing to config.log, and then calls config.status.
28485 # config.status does its own redirection, appending to config.log.
28486 # Unfortunately, on DOS this fails, as config.log is still kept open
28487 # by configure, so config.status won't be able to write to it; its
28488 # output is simply discarded. So we exec the FD to /dev/null,
28489 # effectively closing config.log, so it can be properly (re)opened and
28490 # appended to by config.status. When coming back to configure, we
28491 # need to make the FD available again.
28492 if test "$no_create" != yes; then
28493 ac_cs_success=:
28494 ac_config_status_args=
28495 test "$silent" = yes &&
28496 ac_config_status_args="$ac_config_status_args --quiet"
28497 exec 5>/dev/null
28498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28499 exec 5>>config.log
28500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28501 # would make configure fail if this is the last instruction.
28502 $ac_cs_success || as_fn_exit $?
28503 fi
28504 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28506 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28507 fi
28508