623d93bb39ca3b23aa3397dbc9e9793fd9c589a7
[bpt/emacs.git] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.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.2.50'
553 PACKAGE_STRING='emacs 24.2.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_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_pathmax_FALSE
623 gl_GNULIB_ENABLED_pathmax_TRUE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
626 gl_GNULIB_ENABLED_dosname_FALSE
627 gl_GNULIB_ENABLED_dosname_TRUE
628 LTLIBINTL
629 LIBINTL
630 WINDOWS_64_BIT_OFF_T
631 HAVE_UNISTD_H
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 NEXT_UNISTD_H
634 LIB_TIMER_TIME
635 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
636 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
637 TIME_H_DEFINES_STRUCT_TIMESPEC
638 NEXT_AS_FIRST_DIRECTIVE_TIME_H
639 NEXT_TIME_H
640 WINDOWS_64_BIT_ST_SIZE
641 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
642 NEXT_SYS_STAT_H
643 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
644 NEXT_STDLIB_H
645 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
646 NEXT_STDIO_H
647 REPLACE_VSPRINTF
648 REPLACE_VSNPRINTF
649 REPLACE_VPRINTF
650 REPLACE_VFPRINTF
651 REPLACE_VDPRINTF
652 REPLACE_VASPRINTF
653 REPLACE_TMPFILE
654 REPLACE_STDIO_WRITE_FUNCS
655 REPLACE_STDIO_READ_FUNCS
656 REPLACE_SPRINTF
657 REPLACE_SNPRINTF
658 REPLACE_RENAMEAT
659 REPLACE_RENAME
660 REPLACE_REMOVE
661 REPLACE_PRINTF
662 REPLACE_POPEN
663 REPLACE_PERROR
664 REPLACE_OBSTACK_PRINTF
665 REPLACE_GETLINE
666 REPLACE_GETDELIM
667 REPLACE_FTELLO
668 REPLACE_FTELL
669 REPLACE_FSEEKO
670 REPLACE_FSEEK
671 REPLACE_FREOPEN
672 REPLACE_FPURGE
673 REPLACE_FPRINTF
674 REPLACE_FOPEN
675 REPLACE_FFLUSH
676 REPLACE_FDOPEN
677 REPLACE_FCLOSE
678 REPLACE_DPRINTF
679 HAVE_VDPRINTF
680 HAVE_VASPRINTF
681 HAVE_RENAMEAT
682 HAVE_POPEN
683 HAVE_PCLOSE
684 HAVE_FTELLO
685 HAVE_FSEEKO
686 HAVE_DPRINTF
687 HAVE_DECL_VSNPRINTF
688 HAVE_DECL_SNPRINTF
689 HAVE_DECL_OBSTACK_PRINTF
690 HAVE_DECL_GETLINE
691 HAVE_DECL_GETDELIM
692 HAVE_DECL_FTELLO
693 HAVE_DECL_FSEEKO
694 HAVE_DECL_FPURGE
695 GNULIB_VSPRINTF_POSIX
696 GNULIB_VSNPRINTF
697 GNULIB_VPRINTF_POSIX
698 GNULIB_VPRINTF
699 GNULIB_VFPRINTF_POSIX
700 GNULIB_VFPRINTF
701 GNULIB_VDPRINTF
702 GNULIB_VSCANF
703 GNULIB_VFSCANF
704 GNULIB_VASPRINTF
705 GNULIB_TMPFILE
706 GNULIB_STDIO_H_SIGPIPE
707 GNULIB_STDIO_H_NONBLOCKING
708 GNULIB_SPRINTF_POSIX
709 GNULIB_SNPRINTF
710 GNULIB_SCANF
711 GNULIB_RENAMEAT
712 GNULIB_RENAME
713 GNULIB_REMOVE
714 GNULIB_PUTS
715 GNULIB_PUTCHAR
716 GNULIB_PUTC
717 GNULIB_PRINTF_POSIX
718 GNULIB_PRINTF
719 GNULIB_POPEN
720 GNULIB_PERROR
721 GNULIB_PCLOSE
722 GNULIB_OBSTACK_PRINTF_POSIX
723 GNULIB_OBSTACK_PRINTF
724 GNULIB_GETLINE
725 GNULIB_GETDELIM
726 GNULIB_GETCHAR
727 GNULIB_GETC
728 GNULIB_FWRITE
729 GNULIB_FTELLO
730 GNULIB_FTELL
731 GNULIB_FSEEKO
732 GNULIB_FSEEK
733 GNULIB_FSCANF
734 GNULIB_FREOPEN
735 GNULIB_FREAD
736 GNULIB_FPUTS
737 GNULIB_FPUTC
738 GNULIB_FPURGE
739 GNULIB_FPRINTF_POSIX
740 GNULIB_FPRINTF
741 GNULIB_FOPEN
742 GNULIB_FGETS
743 GNULIB_FGETC
744 GNULIB_FFLUSH
745 GNULIB_FDOPEN
746 GNULIB_FCLOSE
747 GNULIB_DPRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
749 NEXT_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
752 STDDEF_H
753 HAVE_WCHAR_T
754 REPLACE_NULL
755 HAVE__BOOL
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
758 STDBOOL_H
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
761 STDARG_H
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
763 NEXT_STDARG_H
764 GL_GENERATE_STDALIGN_H_FALSE
765 GL_GENERATE_STDALIGN_H_TRUE
766 STDALIGN_H
767 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
768 NEXT_SIGNAL_H
769 LIB_PTHREAD_SIGMASK
770 REPLACE_RAISE
771 REPLACE_PTHREAD_SIGMASK
772 HAVE_SIGHANDLER_T
773 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
774 HAVE_STRUCT_SIGACTION_SA_SIGACTION
775 HAVE_SIGACTION
776 HAVE_SIGINFO_T
777 HAVE_SIGSET_T
778 HAVE_RAISE
779 HAVE_PTHREAD_SIGMASK
780 HAVE_POSIX_SIGNALBLOCKING
781 GNULIB_SIGACTION
782 GNULIB_SIGPROCMASK
783 GNULIB_SIGNAL_H_SIGPIPE
784 GNULIB_RAISE
785 GNULIB_PTHREAD_SIGMASK
786 HAVE_SYS_SELECT_H
787 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
788 NEXT_SYS_SELECT_H
789 REPLACE_SELECT
790 REPLACE_PSELECT
791 HAVE_PSELECT
792 GNULIB_SELECT
793 GNULIB_PSELECT
794 REPLACE_TIMEGM
795 REPLACE_NANOSLEEP
796 REPLACE_MKTIME
797 REPLACE_LOCALTIME_R
798 HAVE_TIMEGM
799 HAVE_STRPTIME
800 HAVE_NANOSLEEP
801 HAVE_DECL_LOCALTIME_R
802 GNULIB_TIME_R
803 GNULIB_TIMEGM
804 GNULIB_STRPTIME
805 GNULIB_NANOSLEEP
806 GNULIB_MKTIME
807 REPLACE_UTIMENSAT
808 REPLACE_STAT
809 REPLACE_MKNOD
810 REPLACE_MKFIFO
811 REPLACE_MKDIR
812 REPLACE_LSTAT
813 REPLACE_FUTIMENS
814 REPLACE_FSTATAT
815 REPLACE_FSTAT
816 HAVE_UTIMENSAT
817 HAVE_MKNODAT
818 HAVE_MKNOD
819 HAVE_MKFIFOAT
820 HAVE_MKFIFO
821 HAVE_MKDIRAT
822 HAVE_LSTAT
823 HAVE_LCHMOD
824 HAVE_FUTIMENS
825 HAVE_FSTATAT
826 HAVE_FCHMODAT
827 GNULIB_UTIMENSAT
828 GNULIB_STAT
829 GNULIB_MKNODAT
830 GNULIB_MKNOD
831 GNULIB_MKFIFOAT
832 GNULIB_MKFIFO
833 GNULIB_MKDIRAT
834 GNULIB_LSTAT
835 GNULIB_LCHMOD
836 GNULIB_FUTIMENS
837 GNULIB_FSTATAT
838 GNULIB_FSTAT
839 GNULIB_FCHMODAT
840 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
841 NEXT_INTTYPES_H
842 UINT64_MAX_EQ_ULONG_MAX
843 UINT32_MAX_LT_UINTMAX_MAX
844 PRIPTR_PREFIX
845 PRI_MACROS_BROKEN
846 INT64_MAX_EQ_LONG_MAX
847 INT32_MAX_LT_INTMAX_MAX
848 REPLACE_STRTOIMAX
849 HAVE_DECL_STRTOUMAX
850 HAVE_DECL_STRTOIMAX
851 HAVE_DECL_IMAXDIV
852 HAVE_DECL_IMAXABS
853 GNULIB_STRTOUMAX
854 GNULIB_STRTOIMAX
855 GNULIB_IMAXDIV
856 GNULIB_IMAXABS
857 GL_GENERATE_STDINT_H_FALSE
858 GL_GENERATE_STDINT_H_TRUE
859 STDINT_H
860 WINT_T_SUFFIX
861 WCHAR_T_SUFFIX
862 SIG_ATOMIC_T_SUFFIX
863 SIZE_T_SUFFIX
864 PTRDIFF_T_SUFFIX
865 HAVE_SIGNED_WINT_T
866 HAVE_SIGNED_WCHAR_T
867 HAVE_SIGNED_SIG_ATOMIC_T
868 BITSIZEOF_WINT_T
869 BITSIZEOF_WCHAR_T
870 BITSIZEOF_SIG_ATOMIC_T
871 BITSIZEOF_SIZE_T
872 BITSIZEOF_PTRDIFF_T
873 APPLE_UNIVERSAL_BUILD
874 HAVE_SYS_BITYPES_H
875 HAVE_SYS_INTTYPES_H
876 HAVE_STDINT_H
877 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
878 NEXT_STDINT_H
879 HAVE_SYS_TYPES_H
880 HAVE_INTTYPES_H
881 HAVE_WCHAR_H
882 HAVE_UNSIGNED_LONG_LONG_INT
883 HAVE_LONG_LONG_INT
884 HAVE_WINSOCK2_H
885 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
886 NEXT_SYS_TIME_H
887 REPLACE_STRUCT_TIMEVAL
888 REPLACE_GETTIMEOFDAY
889 HAVE_SYS_TIME_H
890 HAVE_STRUCT_TIMEVAL
891 HAVE_GETTIMEOFDAY
892 GNULIB_GETTIMEOFDAY
893 GNULIB_GL_UNISTD_H_GETOPT
894 GETOPT_H
895 HAVE_GETOPT_H
896 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
897 NEXT_GETOPT_H
898 PRAGMA_COLUMNS
899 PRAGMA_SYSTEM_HEADER
900 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
901 INCLUDE_NEXT
902 GETLOADAVG_LIBS
903 REPLACE_WCTOMB
904 REPLACE_UNSETENV
905 REPLACE_STRTOD
906 REPLACE_SETENV
907 REPLACE_REALPATH
908 REPLACE_REALLOC
909 REPLACE_RANDOM_R
910 REPLACE_PUTENV
911 REPLACE_PTSNAME_R
912 REPLACE_PTSNAME
913 REPLACE_MKSTEMP
914 REPLACE_MBTOWC
915 REPLACE_MALLOC
916 REPLACE_CANONICALIZE_FILE_NAME
917 REPLACE_CALLOC
918 HAVE_DECL_UNSETENV
919 HAVE_UNLOCKPT
920 HAVE_SYS_LOADAVG_H
921 HAVE_STRUCT_RANDOM_DATA
922 HAVE_STRTOULL
923 HAVE_STRTOLL
924 HAVE_STRTOD
925 HAVE_DECL_SETENV
926 HAVE_SETENV
927 HAVE_RPMATCH
928 HAVE_REALPATH
929 HAVE_RANDOM_R
930 HAVE_RANDOM_H
931 HAVE_RANDOM
932 HAVE_PTSNAME_R
933 HAVE_PTSNAME
934 HAVE_POSIX_OPENPT
935 HAVE_MKSTEMPS
936 HAVE_MKSTEMP
937 HAVE_MKOSTEMPS
938 HAVE_MKOSTEMP
939 HAVE_MKDTEMP
940 HAVE_GRANTPT
941 HAVE_GETSUBOPT
942 HAVE_DECL_GETLOADAVG
943 HAVE_CANONICALIZE_FILE_NAME
944 HAVE_ATOLL
945 HAVE__EXIT
946 GNULIB_WCTOMB
947 GNULIB_UNSETENV
948 GNULIB_UNLOCKPT
949 GNULIB_SYSTEM_POSIX
950 GNULIB_STRTOULL
951 GNULIB_STRTOLL
952 GNULIB_STRTOD
953 GNULIB_SETENV
954 GNULIB_RPMATCH
955 GNULIB_REALPATH
956 GNULIB_REALLOC_POSIX
957 GNULIB_RANDOM_R
958 GNULIB_RANDOM
959 GNULIB_PUTENV
960 GNULIB_PTSNAME_R
961 GNULIB_PTSNAME
962 GNULIB_POSIX_OPENPT
963 GNULIB_MKSTEMPS
964 GNULIB_MKSTEMP
965 GNULIB_MKOSTEMPS
966 GNULIB_MKOSTEMP
967 GNULIB_MKDTEMP
968 GNULIB_MBTOWC
969 GNULIB_MALLOC_POSIX
970 GNULIB_GRANTPT
971 GNULIB_GETSUBOPT
972 GNULIB_GETLOADAVG
973 GNULIB_CANONICALIZE_FILE_NAME
974 GNULIB_CALLOC_POSIX
975 GNULIB_ATOLL
976 GNULIB__EXIT
977 GL_GENERATE_EXECINFO_H_FALSE
978 GL_GENERATE_EXECINFO_H_TRUE
979 LIB_EXECINFO
980 EXECINFO_H
981 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
982 UNISTD_H_HAVE_WINSOCK2_H
983 REPLACE_WRITE
984 REPLACE_USLEEP
985 REPLACE_UNLINKAT
986 REPLACE_UNLINK
987 REPLACE_TTYNAME_R
988 REPLACE_SYMLINK
989 REPLACE_SLEEP
990 REPLACE_RMDIR
991 REPLACE_READLINK
992 REPLACE_READ
993 REPLACE_PWRITE
994 REPLACE_PREAD
995 REPLACE_LSEEK
996 REPLACE_LINKAT
997 REPLACE_LINK
998 REPLACE_LCHOWN
999 REPLACE_ISATTY
1000 REPLACE_GETPAGESIZE
1001 REPLACE_GETGROUPS
1002 REPLACE_GETLOGIN_R
1003 REPLACE_GETDOMAINNAME
1004 REPLACE_GETCWD
1005 REPLACE_FTRUNCATE
1006 REPLACE_FCHOWNAT
1007 REPLACE_DUP2
1008 REPLACE_DUP
1009 REPLACE_CLOSE
1010 REPLACE_CHOWN
1011 HAVE_SYS_PARAM_H
1012 HAVE_OS_H
1013 HAVE_DECL_TTYNAME_R
1014 HAVE_DECL_SETHOSTNAME
1015 HAVE_DECL_GETUSERSHELL
1016 HAVE_DECL_GETPAGESIZE
1017 HAVE_DECL_GETLOGIN_R
1018 HAVE_DECL_GETDOMAINNAME
1019 HAVE_DECL_FDATASYNC
1020 HAVE_DECL_FCHDIR
1021 HAVE_DECL_ENVIRON
1022 HAVE_USLEEP
1023 HAVE_UNLINKAT
1024 HAVE_SYMLINKAT
1025 HAVE_SYMLINK
1026 HAVE_SLEEP
1027 HAVE_SETHOSTNAME
1028 HAVE_READLINKAT
1029 HAVE_READLINK
1030 HAVE_PWRITE
1031 HAVE_PREAD
1032 HAVE_PIPE2
1033 HAVE_PIPE
1034 HAVE_LINKAT
1035 HAVE_LINK
1036 HAVE_LCHOWN
1037 HAVE_GROUP_MEMBER
1038 HAVE_GETPAGESIZE
1039 HAVE_GETLOGIN
1040 HAVE_GETHOSTNAME
1041 HAVE_GETGROUPS
1042 HAVE_GETDTABLESIZE
1043 HAVE_FTRUNCATE
1044 HAVE_FSYNC
1045 HAVE_FDATASYNC
1046 HAVE_FCHOWNAT
1047 HAVE_FCHDIR
1048 HAVE_FACCESSAT
1049 HAVE_EUIDACCESS
1050 HAVE_DUP3
1051 HAVE_DUP2
1052 HAVE_CHOWN
1053 GNULIB_WRITE
1054 GNULIB_USLEEP
1055 GNULIB_UNLINKAT
1056 GNULIB_UNLINK
1057 GNULIB_UNISTD_H_SIGPIPE
1058 GNULIB_UNISTD_H_NONBLOCKING
1059 GNULIB_TTYNAME_R
1060 GNULIB_SYMLINKAT
1061 GNULIB_SYMLINK
1062 GNULIB_SLEEP
1063 GNULIB_SETHOSTNAME
1064 GNULIB_RMDIR
1065 GNULIB_READLINKAT
1066 GNULIB_READLINK
1067 GNULIB_READ
1068 GNULIB_PWRITE
1069 GNULIB_PREAD
1070 GNULIB_PIPE2
1071 GNULIB_PIPE
1072 GNULIB_LSEEK
1073 GNULIB_LINKAT
1074 GNULIB_LINK
1075 GNULIB_LCHOWN
1076 GNULIB_ISATTY
1077 GNULIB_GROUP_MEMBER
1078 GNULIB_GETUSERSHELL
1079 GNULIB_GETPAGESIZE
1080 GNULIB_GETLOGIN_R
1081 GNULIB_GETLOGIN
1082 GNULIB_GETHOSTNAME
1083 GNULIB_GETGROUPS
1084 GNULIB_GETDTABLESIZE
1085 GNULIB_GETDOMAINNAME
1086 GNULIB_GETCWD
1087 GNULIB_FTRUNCATE
1088 GNULIB_FSYNC
1089 GNULIB_FDATASYNC
1090 GNULIB_FCHOWNAT
1091 GNULIB_FCHDIR
1092 GNULIB_FACCESSAT
1093 GNULIB_EUIDACCESS
1094 GNULIB_ENVIRON
1095 GNULIB_DUP3
1096 GNULIB_DUP2
1097 GNULIB_DUP
1098 GNULIB_CLOSE
1099 GNULIB_CHOWN
1100 GNULIB_CHDIR
1101 LIB_CLOCK_GETTIME
1102 GL_GENERATE_ALLOCA_H_FALSE
1103 GL_GENERATE_ALLOCA_H_TRUE
1104 ALLOCA_H
1105 ALLOCA
1106 GL_COND_LIBTOOL_FALSE
1107 GL_COND_LIBTOOL_TRUE
1108 POST_ALLOC_OBJ
1109 PRE_ALLOC_OBJ
1110 CYGWIN_OBJ
1111 RALLOC_OBJ
1112 OLDXMENU_DEPS
1113 LIBX_OTHER
1114 LIBXMENU
1115 OLDXMENU
1116 OLDXMENU_TARGET
1117 LIBXT_OTHER
1118 TOOLKIT_LIBW
1119 WIDGET_OBJ
1120 XOBJ
1121 XMENU_OBJ
1122 FONT_OBJ
1123 OTHER_FILES
1124 GNU_OBJC_CFLAGS
1125 ns_appsrc
1126 ns_appresdir
1127 ns_appbindir
1128 ns_appdir
1129 X_TOOLKIT_TYPE
1130 GNUSTEP_CFLAGS
1131 C_SWITCH_X_SITE
1132 LD_SWITCH_X_SITE
1133 gameuser
1134 gamedir
1135 bitmapdir
1136 archlibdir
1137 etcdir
1138 x_default_search_path
1139 lisppath
1140 locallisppath
1141 standardlisppath
1142 leimdir
1143 lispdir
1144 srcdir
1145 canonical
1146 configuration
1147 version
1148 copyright
1149 KRB4LIB
1150 DESLIB
1151 KRB5LIB
1152 CRYPTOLIB
1153 COM_ERRLIB
1154 LIBRESOLV
1155 LIBHESIOD
1156 TERMCAP_OBJ
1157 LIBS_TERMCAP
1158 BLESSMAIL_TARGET
1159 LIBS_MAIL
1160 liblockfile
1161 LIBXML2_LIBS
1162 LIBXML2_CFLAGS
1163 LIBXSM
1164 LIBGPM
1165 LIBGIF
1166 LIBTIFF
1167 LIBPNG
1168 LIBJPEG
1169 LIBXPM
1170 M17N_FLT_LIBS
1171 M17N_FLT_CFLAGS
1172 LIBOTF_LIBS
1173 LIBOTF_CFLAGS
1174 FREETYPE_LIBS
1175 FREETYPE_CFLAGS
1176 XFT_LIBS
1177 XFT_CFLAGS
1178 FONTCONFIG_LIBS
1179 FONTCONFIG_CFLAGS
1180 LIBXMU
1181 LIBXTR6
1182 LIBGNUTLS_LIBS
1183 LIBGNUTLS_CFLAGS
1184 LIBSELINUX_LIBS
1185 SETTINGS_LIBS
1186 SETTINGS_CFLAGS
1187 GOBJECT_LIBS
1188 GOBJECT_CFLAGS
1189 GCONF_LIBS
1190 GCONF_CFLAGS
1191 GSETTINGS_LIBS
1192 GSETTINGS_CFLAGS
1193 DBUS_OBJ
1194 DBUS_LIBS
1195 DBUS_CFLAGS
1196 GTK_OBJ
1197 GTK_LIBS
1198 GTK_CFLAGS
1199 IMAGEMAGICK_LIBS
1200 IMAGEMAGICK_CFLAGS
1201 RSVG_LIBS
1202 RSVG_CFLAGS
1203 LIB_PTHREAD
1204 VMLIMIT_OBJ
1205 GMALLOC_OBJ
1206 HAVE_XSERVER
1207 LIB_STANDARD
1208 NS_OBJC_OBJ
1209 NS_OBJ
1210 ns_self_contained
1211 INSTALL_ARCH_INDEP_EXTRA
1212 TEMACS_LDFLAGS2
1213 LD_SWITCH_X_SITE_RPATH
1214 XMKMF
1215 DEPFLAGS
1216 MKDEPDIR
1217 CFLAGS_SOUND
1218 ALSA_LIBS
1219 ALSA_CFLAGS
1220 LIBSOUND
1221 PKG_CONFIG
1222 CRT_DIR
1223 START_FILES
1224 LIB_MATH
1225 LIBS_SYSTEM
1226 C_SWITCH_SYSTEM
1227 UNEXEC_OBJ
1228 C_SWITCH_MACHINE
1229 LD_SWITCH_SYSTEM
1230 CANNOT_DUMP
1231 INFO_OPTS
1232 INFO_EXT
1233 HAVE_MAKEINFO
1234 PAXCTL
1235 GZIP_PROG
1236 INSTALL_INFO
1237 LN_S
1238 GNULIB_WARN_CFLAGS
1239 WARN_CFLAGS
1240 WERROR_CFLAGS
1241 RANLIB
1242 ARFLAGS
1243 AR
1244 EGREP
1245 GREP
1246 CPP
1247 am__fastdepCC_FALSE
1248 am__fastdepCC_TRUE
1249 CCDEPMODE
1250 AMDEPBACKSLASH
1251 AMDEP_FALSE
1252 AMDEP_TRUE
1253 am__quote
1254 am__include
1255 DEPDIR
1256 OBJEXT
1257 EXEEXT
1258 ac_ct_CC
1259 CPPFLAGS
1260 LDFLAGS
1261 CFLAGS
1262 CC
1263 host_os
1264 host_vendor
1265 host_cpu
1266 host
1267 build_os
1268 build_vendor
1269 build_cpu
1270 build
1271 PROFILING_CFLAGS
1272 GZIP_INFO
1273 cache_file
1274 am__untar
1275 am__tar
1276 AMTAR
1277 am__leading_dot
1278 SET_MAKE
1279 AWK
1280 mkdir_p
1281 MKDIR_P
1282 INSTALL_STRIP_PROGRAM
1283 STRIP
1284 install_sh
1285 MAKEINFO
1286 AUTOHEADER
1287 AUTOMAKE
1288 AUTOCONF
1289 ACLOCAL
1290 VERSION
1291 PACKAGE
1292 CYGPATH_W
1293 am__isrc
1294 INSTALL_DATA
1295 INSTALL_SCRIPT
1296 INSTALL_PROGRAM
1297 target_alias
1298 host_alias
1299 build_alias
1300 LIBS
1301 ECHO_T
1302 ECHO_N
1303 ECHO_C
1304 DEFS
1305 mandir
1306 localedir
1307 libdir
1308 psdir
1309 pdfdir
1310 dvidir
1311 htmldir
1312 infodir
1313 docdir
1314 oldincludedir
1315 includedir
1316 localstatedir
1317 sharedstatedir
1318 sysconfdir
1319 datadir
1320 datarootdir
1321 libexecdir
1322 sbindir
1323 bindir
1324 program_transform_name
1325 prefix
1326 exec_prefix
1327 PACKAGE_URL
1328 PACKAGE_BUGREPORT
1329 PACKAGE_STRING
1330 PACKAGE_VERSION
1331 PACKAGE_TARNAME
1332 PACKAGE_NAME
1333 PATH_SEPARATOR
1334 SHELL'
1335 ac_subst_files='deps_frag
1336 lisp_frag'
1337 ac_user_opts='
1338 enable_option_checking
1339 with_all
1340 with_pop
1341 with_kerberos
1342 with_kerberos5
1343 with_hesiod
1344 with_mmdf
1345 with_mail_unlink
1346 with_mailhost
1347 with_sound
1348 with_x_toolkit
1349 with_wide_int
1350 with_xpm
1351 with_jpeg
1352 with_tiff
1353 with_gif
1354 with_png
1355 with_rsvg
1356 with_xml2
1357 with_imagemagick
1358 with_xft
1359 with_libotf
1360 with_m17n_flt
1361 with_toolkit_scroll_bars
1362 with_xaw3d
1363 with_xim
1364 with_ns
1365 with_gpm
1366 with_dbus
1367 with_gconf
1368 with_gsettings
1369 with_selinux
1370 with_gnutls
1371 with_makeinfo
1372 with_compress_info
1373 with_pkg_config_prog
1374 with_crt_dir
1375 with_gameuser
1376 with_gnustep_conf
1377 enable_ns_self_contained
1378 enable_locallisppath
1379 enable_checking
1380 enable_check_lisp_object_type
1381 enable_profiling
1382 enable_autodepend
1383 enable_dependency_tracking
1384 enable_largefile
1385 enable_gcc_warnings
1386 enable_link_time_optimization
1387 with_x
1388 '
1389 ac_precious_vars='build_alias
1390 host_alias
1391 target_alias
1392 CC
1393 CFLAGS
1394 LDFLAGS
1395 LIBS
1396 CPPFLAGS
1397 CPP
1398 XMKMF'
1399
1400
1401 # Initialize some variables set by options.
1402 ac_init_help=
1403 ac_init_version=false
1404 ac_unrecognized_opts=
1405 ac_unrecognized_sep=
1406 # The variables have the same names as the options, with
1407 # dashes changed to underlines.
1408 cache_file=/dev/null
1409 exec_prefix=NONE
1410 no_create=
1411 no_recursion=
1412 prefix=NONE
1413 program_prefix=NONE
1414 program_suffix=NONE
1415 program_transform_name=s,x,x,
1416 silent=
1417 site=
1418 srcdir=
1419 verbose=
1420 x_includes=NONE
1421 x_libraries=NONE
1422
1423 # Installation directory options.
1424 # These are left unexpanded so users can "make install exec_prefix=/foo"
1425 # and all the variables that are supposed to be based on exec_prefix
1426 # by default will actually change.
1427 # Use braces instead of parens because sh, perl, etc. also accept them.
1428 # (The list follows the same order as the GNU Coding Standards.)
1429 bindir='${exec_prefix}/bin'
1430 sbindir='${exec_prefix}/sbin'
1431 libexecdir='${exec_prefix}/libexec'
1432 datarootdir='${prefix}/share'
1433 datadir='${datarootdir}'
1434 sysconfdir='${prefix}/etc'
1435 sharedstatedir='${prefix}/com'
1436 localstatedir='${prefix}/var'
1437 includedir='${prefix}/include'
1438 oldincludedir='/usr/include'
1439 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1440 infodir='${datarootdir}/info'
1441 htmldir='${docdir}'
1442 dvidir='${docdir}'
1443 pdfdir='${docdir}'
1444 psdir='${docdir}'
1445 libdir='${exec_prefix}/lib'
1446 localedir='${datarootdir}/locale'
1447 mandir='${datarootdir}/man'
1448
1449 ac_prev=
1450 ac_dashdash=
1451 for ac_option
1452 do
1453 # If the previous option needs an argument, assign it.
1454 if test -n "$ac_prev"; then
1455 eval $ac_prev=\$ac_option
1456 ac_prev=
1457 continue
1458 fi
1459
1460 case $ac_option in
1461 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1462 *) ac_optarg=yes ;;
1463 esac
1464
1465 # Accept the important Cygnus configure options, so we can diagnose typos.
1466
1467 case $ac_dashdash$ac_option in
1468 --)
1469 ac_dashdash=yes ;;
1470
1471 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1472 ac_prev=bindir ;;
1473 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1474 bindir=$ac_optarg ;;
1475
1476 -build | --build | --buil | --bui | --bu)
1477 ac_prev=build_alias ;;
1478 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1479 build_alias=$ac_optarg ;;
1480
1481 -cache-file | --cache-file | --cache-fil | --cache-fi \
1482 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1483 ac_prev=cache_file ;;
1484 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1485 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1486 cache_file=$ac_optarg ;;
1487
1488 --config-cache | -C)
1489 cache_file=config.cache ;;
1490
1491 -datadir | --datadir | --datadi | --datad)
1492 ac_prev=datadir ;;
1493 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1494 datadir=$ac_optarg ;;
1495
1496 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1497 | --dataroo | --dataro | --datar)
1498 ac_prev=datarootdir ;;
1499 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1500 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1501 datarootdir=$ac_optarg ;;
1502
1503 -disable-* | --disable-*)
1504 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1505 # Reject names that are not valid shell variable names.
1506 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1507 as_fn_error "invalid feature name: $ac_useropt"
1508 ac_useropt_orig=$ac_useropt
1509 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510 case $ac_user_opts in
1511 *"
1512 "enable_$ac_useropt"
1513 "*) ;;
1514 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1515 ac_unrecognized_sep=', ';;
1516 esac
1517 eval enable_$ac_useropt=no ;;
1518
1519 -docdir | --docdir | --docdi | --doc | --do)
1520 ac_prev=docdir ;;
1521 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1522 docdir=$ac_optarg ;;
1523
1524 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1525 ac_prev=dvidir ;;
1526 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1527 dvidir=$ac_optarg ;;
1528
1529 -enable-* | --enable-*)
1530 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1531 # Reject names that are not valid shell variable names.
1532 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1533 as_fn_error "invalid feature name: $ac_useropt"
1534 ac_useropt_orig=$ac_useropt
1535 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1536 case $ac_user_opts in
1537 *"
1538 "enable_$ac_useropt"
1539 "*) ;;
1540 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1541 ac_unrecognized_sep=', ';;
1542 esac
1543 eval enable_$ac_useropt=\$ac_optarg ;;
1544
1545 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1546 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1547 | --exec | --exe | --ex)
1548 ac_prev=exec_prefix ;;
1549 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1550 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1551 | --exec=* | --exe=* | --ex=*)
1552 exec_prefix=$ac_optarg ;;
1553
1554 -gas | --gas | --ga | --g)
1555 # Obsolete; use --with-gas.
1556 with_gas=yes ;;
1557
1558 -help | --help | --hel | --he | -h)
1559 ac_init_help=long ;;
1560 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1561 ac_init_help=recursive ;;
1562 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1563 ac_init_help=short ;;
1564
1565 -host | --host | --hos | --ho)
1566 ac_prev=host_alias ;;
1567 -host=* | --host=* | --hos=* | --ho=*)
1568 host_alias=$ac_optarg ;;
1569
1570 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1571 ac_prev=htmldir ;;
1572 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1573 | --ht=*)
1574 htmldir=$ac_optarg ;;
1575
1576 -includedir | --includedir | --includedi | --included | --include \
1577 | --includ | --inclu | --incl | --inc)
1578 ac_prev=includedir ;;
1579 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1580 | --includ=* | --inclu=* | --incl=* | --inc=*)
1581 includedir=$ac_optarg ;;
1582
1583 -infodir | --infodir | --infodi | --infod | --info | --inf)
1584 ac_prev=infodir ;;
1585 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1586 infodir=$ac_optarg ;;
1587
1588 -libdir | --libdir | --libdi | --libd)
1589 ac_prev=libdir ;;
1590 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1591 libdir=$ac_optarg ;;
1592
1593 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1594 | --libexe | --libex | --libe)
1595 ac_prev=libexecdir ;;
1596 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1597 | --libexe=* | --libex=* | --libe=*)
1598 libexecdir=$ac_optarg ;;
1599
1600 -localedir | --localedir | --localedi | --localed | --locale)
1601 ac_prev=localedir ;;
1602 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1603 localedir=$ac_optarg ;;
1604
1605 -localstatedir | --localstatedir | --localstatedi | --localstated \
1606 | --localstate | --localstat | --localsta | --localst | --locals)
1607 ac_prev=localstatedir ;;
1608 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1609 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1610 localstatedir=$ac_optarg ;;
1611
1612 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1613 ac_prev=mandir ;;
1614 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1615 mandir=$ac_optarg ;;
1616
1617 -nfp | --nfp | --nf)
1618 # Obsolete; use --without-fp.
1619 with_fp=no ;;
1620
1621 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1622 | --no-cr | --no-c | -n)
1623 no_create=yes ;;
1624
1625 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1626 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1627 no_recursion=yes ;;
1628
1629 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1630 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1631 | --oldin | --oldi | --old | --ol | --o)
1632 ac_prev=oldincludedir ;;
1633 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1634 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1635 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1636 oldincludedir=$ac_optarg ;;
1637
1638 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1639 ac_prev=prefix ;;
1640 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1641 prefix=$ac_optarg ;;
1642
1643 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1644 | --program-pre | --program-pr | --program-p)
1645 ac_prev=program_prefix ;;
1646 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1647 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1648 program_prefix=$ac_optarg ;;
1649
1650 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1651 | --program-suf | --program-su | --program-s)
1652 ac_prev=program_suffix ;;
1653 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1654 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1655 program_suffix=$ac_optarg ;;
1656
1657 -program-transform-name | --program-transform-name \
1658 | --program-transform-nam | --program-transform-na \
1659 | --program-transform-n | --program-transform- \
1660 | --program-transform | --program-transfor \
1661 | --program-transfo | --program-transf \
1662 | --program-trans | --program-tran \
1663 | --progr-tra | --program-tr | --program-t)
1664 ac_prev=program_transform_name ;;
1665 -program-transform-name=* | --program-transform-name=* \
1666 | --program-transform-nam=* | --program-transform-na=* \
1667 | --program-transform-n=* | --program-transform-=* \
1668 | --program-transform=* | --program-transfor=* \
1669 | --program-transfo=* | --program-transf=* \
1670 | --program-trans=* | --program-tran=* \
1671 | --progr-tra=* | --program-tr=* | --program-t=*)
1672 program_transform_name=$ac_optarg ;;
1673
1674 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1675 ac_prev=pdfdir ;;
1676 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1677 pdfdir=$ac_optarg ;;
1678
1679 -psdir | --psdir | --psdi | --psd | --ps)
1680 ac_prev=psdir ;;
1681 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1682 psdir=$ac_optarg ;;
1683
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1686 silent=yes ;;
1687
1688 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1689 ac_prev=sbindir ;;
1690 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1691 | --sbi=* | --sb=*)
1692 sbindir=$ac_optarg ;;
1693
1694 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1695 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1696 | --sharedst | --shareds | --shared | --share | --shar \
1697 | --sha | --sh)
1698 ac_prev=sharedstatedir ;;
1699 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1700 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1701 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1702 | --sha=* | --sh=*)
1703 sharedstatedir=$ac_optarg ;;
1704
1705 -site | --site | --sit)
1706 ac_prev=site ;;
1707 -site=* | --site=* | --sit=*)
1708 site=$ac_optarg ;;
1709
1710 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1711 ac_prev=srcdir ;;
1712 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1713 srcdir=$ac_optarg ;;
1714
1715 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1716 | --syscon | --sysco | --sysc | --sys | --sy)
1717 ac_prev=sysconfdir ;;
1718 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1719 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1720 sysconfdir=$ac_optarg ;;
1721
1722 -target | --target | --targe | --targ | --tar | --ta | --t)
1723 ac_prev=target_alias ;;
1724 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1725 target_alias=$ac_optarg ;;
1726
1727 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1728 verbose=yes ;;
1729
1730 -version | --version | --versio | --versi | --vers | -V)
1731 ac_init_version=: ;;
1732
1733 -with-* | --with-*)
1734 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1735 # Reject names that are not valid shell variable names.
1736 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1737 as_fn_error "invalid package name: $ac_useropt"
1738 ac_useropt_orig=$ac_useropt
1739 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1740 case $ac_user_opts in
1741 *"
1742 "with_$ac_useropt"
1743 "*) ;;
1744 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1745 ac_unrecognized_sep=', ';;
1746 esac
1747 eval with_$ac_useropt=\$ac_optarg ;;
1748
1749 -without-* | --without-*)
1750 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1751 # Reject names that are not valid shell variable names.
1752 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1753 as_fn_error "invalid package name: $ac_useropt"
1754 ac_useropt_orig=$ac_useropt
1755 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1756 case $ac_user_opts in
1757 *"
1758 "with_$ac_useropt"
1759 "*) ;;
1760 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1761 ac_unrecognized_sep=', ';;
1762 esac
1763 eval with_$ac_useropt=no ;;
1764
1765 --x)
1766 # Obsolete; use --with-x.
1767 with_x=yes ;;
1768
1769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1770 | --x-incl | --x-inc | --x-in | --x-i)
1771 ac_prev=x_includes ;;
1772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1774 x_includes=$ac_optarg ;;
1775
1776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1778 ac_prev=x_libraries ;;
1779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1781 x_libraries=$ac_optarg ;;
1782
1783 -*) as_fn_error "unrecognized option: \`$ac_option'
1784 Try \`$0 --help' for more information."
1785 ;;
1786
1787 *=*)
1788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1789 # Reject names that are not valid shell variable names.
1790 case $ac_envvar in #(
1791 '' | [0-9]* | *[!_$as_cr_alnum]* )
1792 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1793 esac
1794 eval $ac_envvar=\$ac_optarg
1795 export $ac_envvar ;;
1796
1797 *)
1798 # FIXME: should be removed in autoconf 3.0.
1799 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1801 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1803 ;;
1804
1805 esac
1806 done
1807
1808 if test -n "$ac_prev"; then
1809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1810 as_fn_error "missing argument to $ac_option"
1811 fi
1812
1813 if test -n "$ac_unrecognized_opts"; then
1814 case $enable_option_checking in
1815 no) ;;
1816 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1817 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1818 esac
1819 fi
1820
1821 # Check all directory arguments for consistency.
1822 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1823 datadir sysconfdir sharedstatedir localstatedir includedir \
1824 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1825 libdir localedir mandir
1826 do
1827 eval ac_val=\$$ac_var
1828 # Remove trailing slashes.
1829 case $ac_val in
1830 */ )
1831 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1832 eval $ac_var=\$ac_val;;
1833 esac
1834 # Be sure to have absolute directory names.
1835 case $ac_val in
1836 [\\/$]* | ?:[\\/]* ) continue;;
1837 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1838 esac
1839 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1840 done
1841
1842 # There might be people who depend on the old broken behavior: `$host'
1843 # used to hold the argument of --host etc.
1844 # FIXME: To remove some day.
1845 build=$build_alias
1846 host=$host_alias
1847 target=$target_alias
1848
1849 # FIXME: To remove some day.
1850 if test "x$host_alias" != x; then
1851 if test "x$build_alias" = x; then
1852 cross_compiling=maybe
1853 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1854 If a cross compiler is detected then cross compile mode will be used." >&2
1855 elif test "x$build_alias" != "x$host_alias"; then
1856 cross_compiling=yes
1857 fi
1858 fi
1859
1860 ac_tool_prefix=
1861 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1862
1863 test "$silent" = yes && exec 6>/dev/null
1864
1865
1866 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1867 ac_ls_di=`ls -di .` &&
1868 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1869 as_fn_error "working directory cannot be determined"
1870 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1871 as_fn_error "pwd does not report name of working directory"
1872
1873
1874 # Find the source files, if location was not specified.
1875 if test -z "$srcdir"; then
1876 ac_srcdir_defaulted=yes
1877 # Try the directory containing this script, then the parent directory.
1878 ac_confdir=`$as_dirname -- "$as_myself" ||
1879 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1880 X"$as_myself" : 'X\(//\)[^/]' \| \
1881 X"$as_myself" : 'X\(//\)$' \| \
1882 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1883 $as_echo X"$as_myself" |
1884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1885 s//\1/
1886 q
1887 }
1888 /^X\(\/\/\)[^/].*/{
1889 s//\1/
1890 q
1891 }
1892 /^X\(\/\/\)$/{
1893 s//\1/
1894 q
1895 }
1896 /^X\(\/\).*/{
1897 s//\1/
1898 q
1899 }
1900 s/.*/./; q'`
1901 srcdir=$ac_confdir
1902 if test ! -r "$srcdir/$ac_unique_file"; then
1903 srcdir=..
1904 fi
1905 else
1906 ac_srcdir_defaulted=no
1907 fi
1908 if test ! -r "$srcdir/$ac_unique_file"; then
1909 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1910 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1911 fi
1912 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1913 ac_abs_confdir=`(
1914 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1915 pwd)`
1916 # When building in place, set srcdir=.
1917 if test "$ac_abs_confdir" = "$ac_pwd"; then
1918 srcdir=.
1919 fi
1920 # Remove unnecessary trailing slashes from srcdir.
1921 # Double slashes in file names in object file debugging info
1922 # mess up M-x gdb in Emacs.
1923 case $srcdir in
1924 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1925 esac
1926 for ac_var in $ac_precious_vars; do
1927 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1928 eval ac_env_${ac_var}_value=\$${ac_var}
1929 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1930 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1931 done
1932
1933 #
1934 # Report the --help message.
1935 #
1936 if test "$ac_init_help" = "long"; then
1937 # Omit some internal or obsolete options to make the list less imposing.
1938 # This message is too long to be a string in the A/UX 3.1 sh.
1939 cat <<_ACEOF
1940 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1941
1942 Usage: $0 [OPTION]... [VAR=VALUE]...
1943
1944 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1945 VAR=VALUE. See below for descriptions of some of the useful variables.
1946
1947 Defaults for the options are specified in brackets.
1948
1949 Configuration:
1950 -h, --help display this help and exit
1951 --help=short display options specific to this package
1952 --help=recursive display the short help of all the included packages
1953 -V, --version display version information and exit
1954 -q, --quiet, --silent do not print \`checking...' messages
1955 --cache-file=FILE cache test results in FILE [disabled]
1956 -C, --config-cache alias for \`--cache-file=config.cache'
1957 -n, --no-create do not create output files
1958 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1959
1960 Installation directories:
1961 --prefix=PREFIX install architecture-independent files in PREFIX
1962 [$ac_default_prefix]
1963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1964 [PREFIX]
1965
1966 By default, \`make install' will install all the files in
1967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1969 for instance \`--prefix=\$HOME'.
1970
1971 For better control, use the options below.
1972
1973 Fine tuning of the installation directories:
1974 --bindir=DIR user executables [EPREFIX/bin]
1975 --sbindir=DIR system admin executables [EPREFIX/sbin]
1976 --libexecdir=DIR program executables [EPREFIX/libexec]
1977 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1978 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1979 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1980 --libdir=DIR object code libraries [EPREFIX/lib]
1981 --includedir=DIR C header files [PREFIX/include]
1982 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1983 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1984 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1985 --infodir=DIR info documentation [DATAROOTDIR/info]
1986 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1987 --mandir=DIR man documentation [DATAROOTDIR/man]
1988 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1989 --htmldir=DIR html documentation [DOCDIR]
1990 --dvidir=DIR dvi documentation [DOCDIR]
1991 --pdfdir=DIR pdf documentation [DOCDIR]
1992 --psdir=DIR ps documentation [DOCDIR]
1993 _ACEOF
1994
1995 cat <<\_ACEOF
1996
1997 Program names:
1998 --program-prefix=PREFIX prepend PREFIX to installed program names
1999 --program-suffix=SUFFIX append SUFFIX to installed program names
2000 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2001
2002 X features:
2003 --x-includes=DIR X include files are in DIR
2004 --x-libraries=DIR X library files are in DIR
2005
2006 System types:
2007 --build=BUILD configure for building on BUILD [guessed]
2008 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2009 _ACEOF
2010 fi
2011
2012 if test -n "$ac_init_help"; then
2013 case $ac_init_help in
2014 short | recursive ) echo "Configuration of emacs 24.2.50:";;
2015 esac
2016 cat <<\_ACEOF
2017
2018 Optional Features:
2019 --disable-option-checking ignore unrecognized --enable/--with options
2020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2022 --disable-ns-self-contained
2023 disable self contained build under NeXTstep
2024 --enable-locallisppath=PATH
2025 directories Emacs should search for lisp files
2026 specific to this site
2027 --enable-checking[=LIST]
2028 enable expensive run-time checks. With LIST, enable
2029 only specific categories of checks. Categories are:
2030 all,yes,no. Flags are: stringbytes, stringoverrun,
2031 stringfreelist, xmallocoverrun, conslist, glyphs
2032 --enable-check-lisp-object-type
2033 enable compile time checks for the Lisp_Object data
2034 type. This is useful for development for catching
2035 certain types of bugs.
2036 --enable-profiling build emacs with profiling support. This might not
2037 work on all platforms
2038 --enable-autodepend automatically generate dependencies to .h-files.
2039 Requires GNU Make and Gcc. Enabled if GNU Make and
2040 Gcc is found
2041 --disable-dependency-tracking speeds up one-time build
2042 --enable-dependency-tracking do not reject slow dependency extractors
2043 --disable-largefile omit support for large files
2044 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2045 developers, and may generate false alarms when used
2046 with older or non-GNU development tools.
2047 --enable-link-time-optimization
2048 build emacs with link-time optimization. This is
2049 supported only for GCC since 4.5.0.
2050
2051 Optional Packages:
2052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2054 --without-all omit almost all features and build small executable
2055 with minimal dependencies
2056 --without-pop don't support POP mail retrieval with movemail
2057 --with-kerberos support Kerberos-authenticated POP
2058 --with-kerberos5 support Kerberos version 5 authenticated POP
2059 --with-hesiod support Hesiod to get the POP server host
2060 --with-mmdf support MMDF mailboxes
2061 --with-mail-unlink unlink, rather than empty, mail spool after reading
2062 --with-mailhost=HOSTNAME
2063 string giving default POP mail host
2064 --without-sound don't compile with sound support
2065 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2066 gtk3, lucid or athena, motif, no)
2067 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2068 --without-xpm don't compile with XPM image support
2069 --without-jpeg don't compile with JPEG image support
2070 --without-tiff don't compile with TIFF image support
2071 --without-gif don't compile with GIF image support
2072 --without-png don't compile with PNG image support
2073 --without-rsvg don't compile with SVG image support
2074 --without-xml2 don't compile with XML parsing support
2075 --without-imagemagick don't compile with ImageMagick image support
2076 --without-xft don't use XFT for anti aliased fonts
2077 --without-libotf don't use libotf for OpenType font support
2078 --without-m17n-flt don't use m17n-flt for text shaping
2079 --without-toolkit-scroll-bars
2080 don't use Motif or Xaw3d scroll bars
2081 --without-xaw3d don't use Xaw3d
2082 --without-xim don't use X11 XIM
2083 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2084 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2085 console
2086 --without-dbus don't compile with D-Bus support
2087 --without-gconf don't compile with GConf support
2088 --without-gsettings don't compile with GSettings support
2089 --without-selinux don't compile with SELinux support
2090 --without-gnutls don't use -lgnutls for SSL/TLS support
2091 --without-makeinfo don't require makeinfo for building manuals
2092 --without-compress-info don't compress the installed Info pages
2093 --with-pkg-config-prog=PATH
2094 path to pkg-config for finding GTK and librsvg
2095 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2096 /usr/lib, or /usr/lib64 on some platforms.
2097 --with-gameuser=USER user for shared game score files
2098 --with-gnustep-conf=PATH
2099 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2100 or /etc/GNUstep/GNUstep.conf
2101 --with-x use the X Window System
2102
2103 Some influential environment variables:
2104 CC C compiler command
2105 CFLAGS C compiler flags
2106 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2107 nonstandard directory <lib dir>
2108 LIBS libraries to pass to the linker, e.g. -l<library>
2109 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2110 you have headers in a nonstandard directory <include dir>
2111 CPP C preprocessor
2112 XMKMF Path to xmkmf, Makefile generator for X Window System
2113
2114 Use these variables to override the choices made by `configure' or to help
2115 it to find libraries and programs with nonstandard names/locations.
2116
2117 Report bugs to the package provider.
2118 _ACEOF
2119 ac_status=$?
2120 fi
2121
2122 if test "$ac_init_help" = "recursive"; then
2123 # If there are subdirs, report their specific --help.
2124 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2125 test -d "$ac_dir" ||
2126 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2127 continue
2128 ac_builddir=.
2129
2130 case "$ac_dir" in
2131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2132 *)
2133 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2134 # A ".." for each directory in $ac_dir_suffix.
2135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2136 case $ac_top_builddir_sub in
2137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2139 esac ;;
2140 esac
2141 ac_abs_top_builddir=$ac_pwd
2142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2143 # for backward compatibility:
2144 ac_top_builddir=$ac_top_build_prefix
2145
2146 case $srcdir in
2147 .) # We are building in place.
2148 ac_srcdir=.
2149 ac_top_srcdir=$ac_top_builddir_sub
2150 ac_abs_top_srcdir=$ac_pwd ;;
2151 [\\/]* | ?:[\\/]* ) # Absolute name.
2152 ac_srcdir=$srcdir$ac_dir_suffix;
2153 ac_top_srcdir=$srcdir
2154 ac_abs_top_srcdir=$srcdir ;;
2155 *) # Relative name.
2156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2157 ac_top_srcdir=$ac_top_build_prefix$srcdir
2158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2159 esac
2160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2161
2162 cd "$ac_dir" || { ac_status=$?; continue; }
2163 # Check for guested configure.
2164 if test -f "$ac_srcdir/configure.gnu"; then
2165 echo &&
2166 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2167 elif test -f "$ac_srcdir/configure"; then
2168 echo &&
2169 $SHELL "$ac_srcdir/configure" --help=recursive
2170 else
2171 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2172 fi || ac_status=$?
2173 cd "$ac_pwd" || { ac_status=$?; break; }
2174 done
2175 fi
2176
2177 test -n "$ac_init_help" && exit $ac_status
2178 if $ac_init_version; then
2179 cat <<\_ACEOF
2180 emacs configure 24.2.50
2181 generated by GNU Autoconf 2.65
2182
2183 Copyright (C) 2009 Free Software Foundation, Inc.
2184 This configure script is free software; the Free Software Foundation
2185 gives unlimited permission to copy, distribute and modify it.
2186 _ACEOF
2187 exit
2188 fi
2189
2190 ## ------------------------ ##
2191 ## Autoconf initialization. ##
2192 ## ------------------------ ##
2193
2194 # ac_fn_c_try_compile LINENO
2195 # --------------------------
2196 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_c_try_compile ()
2198 {
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 rm -f conftest.$ac_objext
2201 if { { ac_try="$ac_compile"
2202 case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205 esac
2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_compile") 2>conftest.err
2209 ac_status=$?
2210 if test -s conftest.err; then
2211 grep -v '^ *+' conftest.err >conftest.er1
2212 cat conftest.er1 >&5
2213 mv -f conftest.er1 conftest.err
2214 fi
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } && {
2217 test -z "$ac_c_werror_flag" ||
2218 test ! -s conftest.err
2219 } && test -s conftest.$ac_objext; then :
2220 ac_retval=0
2221 else
2222 $as_echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2224
2225 ac_retval=1
2226 fi
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 as_fn_set_status $ac_retval
2229
2230 } # ac_fn_c_try_compile
2231
2232 # ac_fn_c_try_cpp LINENO
2233 # ----------------------
2234 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2235 ac_fn_c_try_cpp ()
2236 {
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 if { { ac_try="$ac_cpp conftest.$ac_ext"
2239 case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2246 ac_status=$?
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2251 fi
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } >/dev/null && {
2254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2255 test ! -s conftest.err
2256 }; then :
2257 ac_retval=0
2258 else
2259 $as_echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2261
2262 ac_retval=1
2263 fi
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 as_fn_set_status $ac_retval
2266
2267 } # ac_fn_c_try_cpp
2268
2269 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2270 # -------------------------------------------------------
2271 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2272 # the include files in INCLUDES and setting the cache variable VAR
2273 # accordingly.
2274 ac_fn_c_check_header_mongrel ()
2275 {
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2282 fi
2283 eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 else
2287 # Is the header compilable?
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2289 $as_echo_n "checking $2 usability... " >&6; }
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2292 $4
2293 #include <$2>
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 ac_header_compiler=yes
2297 else
2298 ac_header_compiler=no
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2302 $as_echo "$ac_header_compiler" >&6; }
2303
2304 # Is the header present?
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2306 $as_echo_n "checking $2 presence... " >&6; }
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 #include <$2>
2310 _ACEOF
2311 if ac_fn_c_try_cpp "$LINENO"; then :
2312 ac_header_preproc=yes
2313 else
2314 ac_header_preproc=no
2315 fi
2316 rm -f conftest.err conftest.$ac_ext
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2318 $as_echo "$ac_header_preproc" >&6; }
2319
2320 # So? What about this header?
2321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2322 yes:no: )
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2324 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2326 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2327 ;;
2328 no:yes:* )
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2330 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2332 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2334 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2336 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2338 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2339 ;;
2340 esac
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 eval "$3=\$ac_header_compiler"
2347 fi
2348 eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 fi
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353
2354 } # ac_fn_c_check_header_mongrel
2355
2356 # ac_fn_c_try_run LINENO
2357 # ----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2359 # that executables *can* be run.
2360 ac_fn_c_try_run ()
2361 {
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 if { { ac_try="$ac_link"
2364 case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>&5
2371 ac_status=$?
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2374 { { case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_try") 2>&5
2381 ac_status=$?
2382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2383 test $ac_status = 0; }; }; then :
2384 ac_retval=0
2385 else
2386 $as_echo "$as_me: program exited with status $ac_status" >&5
2387 $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_retval=$ac_status
2391 fi
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 as_fn_set_status $ac_retval
2395
2396 } # ac_fn_c_try_run
2397
2398 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2399 # -------------------------------------------------------
2400 # Tests whether HEADER exists and can be compiled using the include files in
2401 # INCLUDES, setting the cache variable VAR accordingly.
2402 ac_fn_c_check_header_compile ()
2403 {
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406 $as_echo_n "checking for $2... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $4
2413 #include <$2>
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416 eval "$3=yes"
2417 else
2418 eval "$3=no"
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 fi
2422 eval ac_res=\$$3
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424 $as_echo "$ac_res" >&6; }
2425 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426
2427 } # ac_fn_c_check_header_compile
2428
2429 # ac_fn_c_try_link LINENO
2430 # -----------------------
2431 # Try to link conftest.$ac_ext, and return whether this succeeded.
2432 ac_fn_c_try_link ()
2433 {
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 rm -f conftest.$ac_objext conftest$ac_exeext
2436 if { { ac_try="$ac_link"
2437 case "(($ac_try" in
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2440 esac
2441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443 (eval "$ac_link") 2>conftest.err
2444 ac_status=$?
2445 if test -s conftest.err; then
2446 grep -v '^ *+' conftest.err >conftest.er1
2447 cat conftest.er1 >&5
2448 mv -f conftest.er1 conftest.err
2449 fi
2450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451 test $ac_status = 0; } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest$ac_exeext && {
2455 test "$cross_compiling" = yes ||
2456 $as_test_x conftest$ac_exeext
2457 }; then :
2458 ac_retval=0
2459 else
2460 $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 ac_retval=1
2464 fi
2465 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2466 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2467 # interfere with the next link command; also delete a directory that is
2468 # left behind by Apple's compiler. We do this before executing the actions.
2469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2470 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471 as_fn_set_status $ac_retval
2472
2473 } # ac_fn_c_try_link
2474
2475 # ac_fn_c_check_decl LINENO SYMBOL VAR
2476 # ------------------------------------
2477 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2478 ac_fn_c_check_decl ()
2479 {
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2482 $as_echo_n "checking whether $2 is declared... " >&6; }
2483 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2488 $4
2489 int
2490 main ()
2491 {
2492 #ifndef $2
2493 (void) $2;
2494 #endif
2495
2496 ;
2497 return 0;
2498 }
2499 _ACEOF
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501 eval "$3=yes"
2502 else
2503 eval "$3=no"
2504 fi
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 fi
2507 eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511
2512 } # ac_fn_c_check_decl
2513
2514 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2515 # ----------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_c_check_header_preproc ()
2518 {
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 #include <$2>
2528 _ACEOF
2529 if ac_fn_c_try_cpp "$LINENO"; then :
2530 eval "$3=yes"
2531 else
2532 eval "$3=no"
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535 fi
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_c_check_header_preproc
2542
2543 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2544 # ----------------------------------------------------
2545 # Tries to find if the field MEMBER exists in type AGGR, after including
2546 # INCLUDES, setting cache variable VAR accordingly.
2547 ac_fn_c_check_member ()
2548 {
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2551 $as_echo_n "checking for $2.$3... " >&6; }
2552 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 $5
2558 int
2559 main ()
2560 {
2561 static $2 ac_aggr;
2562 if (ac_aggr.$3)
2563 return 0;
2564 ;
2565 return 0;
2566 }
2567 _ACEOF
2568 if ac_fn_c_try_compile "$LINENO"; then :
2569 eval "$4=yes"
2570 else
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2573 $5
2574 int
2575 main ()
2576 {
2577 static $2 ac_aggr;
2578 if (sizeof ac_aggr.$3)
2579 return 0;
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 if ac_fn_c_try_compile "$LINENO"; then :
2585 eval "$4=yes"
2586 else
2587 eval "$4=no"
2588 fi
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 fi
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 fi
2593 eval ac_res=\$$4
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2597
2598 } # ac_fn_c_check_member
2599
2600 # ac_fn_c_check_func LINENO FUNC VAR
2601 # ----------------------------------
2602 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2603 ac_fn_c_check_func ()
2604 {
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607 $as_echo_n "checking for $2... " >&6; }
2608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2613 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2615 #define $2 innocuous_$2
2616
2617 /* System header to define __stub macros and hopefully few prototypes,
2618 which can conflict with char $2 (); below.
2619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2620 <limits.h> exists even on freestanding compilers. */
2621
2622 #ifdef __STDC__
2623 # include <limits.h>
2624 #else
2625 # include <assert.h>
2626 #endif
2627
2628 #undef $2
2629
2630 /* Override any GCC internal prototype to avoid an error.
2631 Use char because int might match the return type of a GCC
2632 builtin and then its argument prototype would still apply. */
2633 #ifdef __cplusplus
2634 extern "C"
2635 #endif
2636 char $2 ();
2637 /* The GNU C library defines this for functions which it implements
2638 to always fail with ENOSYS. Some functions are actually named
2639 something starting with __ and the normal name is an alias. */
2640 #if defined __stub_$2 || defined __stub___$2
2641 choke me
2642 #endif
2643
2644 int
2645 main ()
2646 {
2647 return $2 ();
2648 ;
2649 return 0;
2650 }
2651 _ACEOF
2652 if ac_fn_c_try_link "$LINENO"; then :
2653 eval "$3=yes"
2654 else
2655 eval "$3=no"
2656 fi
2657 rm -f core conftest.err conftest.$ac_objext \
2658 conftest$ac_exeext conftest.$ac_ext
2659 fi
2660 eval ac_res=\$$3
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664
2665 } # ac_fn_c_check_func
2666
2667 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2668 # -------------------------------------------
2669 # Tests whether TYPE exists after having included INCLUDES, setting cache
2670 # variable VAR accordingly.
2671 ac_fn_c_check_type ()
2672 {
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675 $as_echo_n "checking for $2... " >&6; }
2676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 eval "$3=no"
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2682 $4
2683 int
2684 main ()
2685 {
2686 if (sizeof ($2))
2687 return 0;
2688 ;
2689 return 0;
2690 }
2691 _ACEOF
2692 if ac_fn_c_try_compile "$LINENO"; then :
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2695 $4
2696 int
2697 main ()
2698 {
2699 if (sizeof (($2)))
2700 return 0;
2701 ;
2702 return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706
2707 else
2708 eval "$3=yes"
2709 fi
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 fi
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 fi
2714 eval ac_res=\$$3
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2718
2719 } # ac_fn_c_check_type
2720
2721 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2722 # --------------------------------------------
2723 # Tries to find the compile-time value of EXPR in a program that includes
2724 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2725 # computed
2726 ac_fn_c_compute_int ()
2727 {
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 if test "$cross_compiling" = yes; then
2730 # Depending upon the size, compute the lo and hi bounds.
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2733 $4
2734 int
2735 main ()
2736 {
2737 static int test_array [1 - 2 * !(($2) >= 0)];
2738 test_array [0] = 0
2739
2740 ;
2741 return 0;
2742 }
2743 _ACEOF
2744 if ac_fn_c_try_compile "$LINENO"; then :
2745 ac_lo=0 ac_mid=0
2746 while :; do
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2749 $4
2750 int
2751 main ()
2752 {
2753 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2754 test_array [0] = 0
2755
2756 ;
2757 return 0;
2758 }
2759 _ACEOF
2760 if ac_fn_c_try_compile "$LINENO"; then :
2761 ac_hi=$ac_mid; break
2762 else
2763 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2764 if test $ac_lo -le $ac_mid; then
2765 ac_lo= ac_hi=
2766 break
2767 fi
2768 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2769 fi
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 else
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2775 $4
2776 int
2777 main ()
2778 {
2779 static int test_array [1 - 2 * !(($2) < 0)];
2780 test_array [0] = 0
2781
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 if ac_fn_c_try_compile "$LINENO"; then :
2787 ac_hi=-1 ac_mid=-1
2788 while :; do
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2791 $4
2792 int
2793 main ()
2794 {
2795 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2796 test_array [0] = 0
2797
2798 ;
2799 return 0;
2800 }
2801 _ACEOF
2802 if ac_fn_c_try_compile "$LINENO"; then :
2803 ac_lo=$ac_mid; break
2804 else
2805 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2806 if test $ac_mid -le $ac_hi; then
2807 ac_lo= ac_hi=
2808 break
2809 fi
2810 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2811 fi
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 done
2814 else
2815 ac_lo= ac_hi=
2816 fi
2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 fi
2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820 # Binary search between lo and hi bounds.
2821 while test "x$ac_lo" != "x$ac_hi"; do
2822 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2825 $4
2826 int
2827 main ()
2828 {
2829 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2830 test_array [0] = 0
2831
2832 ;
2833 return 0;
2834 }
2835 _ACEOF
2836 if ac_fn_c_try_compile "$LINENO"; then :
2837 ac_hi=$ac_mid
2838 else
2839 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2840 fi
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 done
2843 case $ac_lo in #((
2844 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2845 '') ac_retval=1 ;;
2846 esac
2847 else
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h. */
2850 $4
2851 static long int longval () { return $2; }
2852 static unsigned long int ulongval () { return $2; }
2853 #include <stdio.h>
2854 #include <stdlib.h>
2855 int
2856 main ()
2857 {
2858
2859 FILE *f = fopen ("conftest.val", "w");
2860 if (! f)
2861 return 1;
2862 if (($2) < 0)
2863 {
2864 long int i = longval ();
2865 if (i != ($2))
2866 return 1;
2867 fprintf (f, "%ld", i);
2868 }
2869 else
2870 {
2871 unsigned long int i = ulongval ();
2872 if (i != ($2))
2873 return 1;
2874 fprintf (f, "%lu", i);
2875 }
2876 /* Do not output a trailing newline, as this causes \r\n confusion
2877 on some platforms. */
2878 return ferror (f) || fclose (f) != 0;
2879
2880 ;
2881 return 0;
2882 }
2883 _ACEOF
2884 if ac_fn_c_try_run "$LINENO"; then :
2885 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2886 else
2887 ac_retval=1
2888 fi
2889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2890 conftest.$ac_objext conftest.beam conftest.$ac_ext
2891 rm -f conftest.val
2892
2893 fi
2894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2895 as_fn_set_status $ac_retval
2896
2897 } # ac_fn_c_compute_int
2898 cat >config.log <<_ACEOF
2899 This file contains any messages produced by compilers while
2900 running configure, to aid debugging if configure makes a mistake.
2901
2902 It was created by emacs $as_me 24.2.50, which was
2903 generated by GNU Autoconf 2.65. Invocation command line was
2904
2905 $ $0 $@
2906
2907 _ACEOF
2908 exec 5>>config.log
2909 {
2910 cat <<_ASUNAME
2911 ## --------- ##
2912 ## Platform. ##
2913 ## --------- ##
2914
2915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2920
2921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2923
2924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2931
2932 _ASUNAME
2933
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 $as_echo "PATH: $as_dir"
2940 done
2941 IFS=$as_save_IFS
2942
2943 } >&5
2944
2945 cat >&5 <<_ACEOF
2946
2947
2948 ## ----------- ##
2949 ## Core tests. ##
2950 ## ----------- ##
2951
2952 _ACEOF
2953
2954
2955 # Keep a trace of the command line.
2956 # Strip out --no-create and --no-recursion so they do not pile up.
2957 # Strip out --silent because we don't want to record it for future runs.
2958 # Also quote any args containing shell meta-characters.
2959 # Make two passes to allow for proper duplicate-argument suppression.
2960 ac_configure_args=
2961 ac_configure_args0=
2962 ac_configure_args1=
2963 ac_must_keep_next=false
2964 for ac_pass in 1 2
2965 do
2966 for ac_arg
2967 do
2968 case $ac_arg in
2969 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2971 | -silent | --silent | --silen | --sile | --sil)
2972 continue ;;
2973 *\'*)
2974 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2975 esac
2976 case $ac_pass in
2977 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2978 2)
2979 as_fn_append ac_configure_args1 " '$ac_arg'"
2980 if test $ac_must_keep_next = true; then
2981 ac_must_keep_next=false # Got value, back to normal.
2982 else
2983 case $ac_arg in
2984 *=* | --config-cache | -C | -disable-* | --disable-* \
2985 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2986 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2987 | -with-* | --with-* | -without-* | --without-* | --x)
2988 case "$ac_configure_args0 " in
2989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2990 esac
2991 ;;
2992 -* ) ac_must_keep_next=true ;;
2993 esac
2994 fi
2995 as_fn_append ac_configure_args " '$ac_arg'"
2996 ;;
2997 esac
2998 done
2999 done
3000 { ac_configure_args0=; unset ac_configure_args0;}
3001 { ac_configure_args1=; unset ac_configure_args1;}
3002
3003 # When interrupted or exit'd, cleanup temporary files, and complete
3004 # config.log. We remove comments because anyway the quotes in there
3005 # would cause problems or look ugly.
3006 # WARNING: Use '\'' to represent an apostrophe within the trap.
3007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3008 trap 'exit_status=$?
3009 # Save into config.log some information that might help in debugging.
3010 {
3011 echo
3012
3013 cat <<\_ASBOX
3014 ## ---------------- ##
3015 ## Cache variables. ##
3016 ## ---------------- ##
3017 _ASBOX
3018 echo
3019 # The following way of writing the cache mishandles newlines in values,
3020 (
3021 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3022 eval ac_val=\$$ac_var
3023 case $ac_val in #(
3024 *${as_nl}*)
3025 case $ac_var in #(
3026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3028 esac
3029 case $ac_var in #(
3030 _ | IFS | as_nl) ;; #(
3031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3032 *) { eval $ac_var=; unset $ac_var;} ;;
3033 esac ;;
3034 esac
3035 done
3036 (set) 2>&1 |
3037 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3038 *${as_nl}ac_space=\ *)
3039 sed -n \
3040 "s/'\''/'\''\\\\'\'''\''/g;
3041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3042 ;; #(
3043 *)
3044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3045 ;;
3046 esac |
3047 sort
3048 )
3049 echo
3050
3051 cat <<\_ASBOX
3052 ## ----------------- ##
3053 ## Output variables. ##
3054 ## ----------------- ##
3055 _ASBOX
3056 echo
3057 for ac_var in $ac_subst_vars
3058 do
3059 eval ac_val=\$$ac_var
3060 case $ac_val in
3061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3062 esac
3063 $as_echo "$ac_var='\''$ac_val'\''"
3064 done | sort
3065 echo
3066
3067 if test -n "$ac_subst_files"; then
3068 cat <<\_ASBOX
3069 ## ------------------- ##
3070 ## File substitutions. ##
3071 ## ------------------- ##
3072 _ASBOX
3073 echo
3074 for ac_var in $ac_subst_files
3075 do
3076 eval ac_val=\$$ac_var
3077 case $ac_val in
3078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3079 esac
3080 $as_echo "$ac_var='\''$ac_val'\''"
3081 done | sort
3082 echo
3083 fi
3084
3085 if test -s confdefs.h; then
3086 cat <<\_ASBOX
3087 ## ----------- ##
3088 ## confdefs.h. ##
3089 ## ----------- ##
3090 _ASBOX
3091 echo
3092 cat confdefs.h
3093 echo
3094 fi
3095 test "$ac_signal" != 0 &&
3096 $as_echo "$as_me: caught signal $ac_signal"
3097 $as_echo "$as_me: exit $exit_status"
3098 } >&5
3099 rm -f core *.core core.conftest.* &&
3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3101 exit $exit_status
3102 ' 0
3103 for ac_signal in 1 2 13 15; do
3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3105 done
3106 ac_signal=0
3107
3108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3109 rm -f -r conftest* confdefs.h
3110
3111 $as_echo "/* confdefs.h */" > confdefs.h
3112
3113 # Predefined preprocessor variables.
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_NAME "$PACKAGE_NAME"
3117 _ACEOF
3118
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3121 _ACEOF
3122
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3125 _ACEOF
3126
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_STRING "$PACKAGE_STRING"
3129 _ACEOF
3130
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3133 _ACEOF
3134
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_URL "$PACKAGE_URL"
3137 _ACEOF
3138
3139
3140 # Let the site file select an alternate cache file if it wants to.
3141 # Prefer an explicitly selected file to automatically selected ones.
3142 ac_site_file1=NONE
3143 ac_site_file2=NONE
3144 if test -n "$CONFIG_SITE"; then
3145 ac_site_file1=$CONFIG_SITE
3146 elif test "x$prefix" != xNONE; then
3147 ac_site_file1=$prefix/share/config.site
3148 ac_site_file2=$prefix/etc/config.site
3149 else
3150 ac_site_file1=$ac_default_prefix/share/config.site
3151 ac_site_file2=$ac_default_prefix/etc/config.site
3152 fi
3153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3154 do
3155 test "x$ac_site_file" = xNONE && continue
3156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3159 sed 's/^/| /' "$ac_site_file" >&5
3160 . "$ac_site_file"
3161 fi
3162 done
3163
3164 if test -r "$cache_file"; then
3165 # Some versions of bash will fail to source /dev/null (special files
3166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3169 $as_echo "$as_me: loading cache $cache_file" >&6;}
3170 case $cache_file in
3171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3172 *) . "./$cache_file";;
3173 esac
3174 fi
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3177 $as_echo "$as_me: creating cache $cache_file" >&6;}
3178 >$cache_file
3179 fi
3180
3181 as_fn_append ac_header_list " linux/version.h"
3182 as_fn_append ac_header_list " sys/systeminfo.h"
3183 as_fn_append ac_header_list " stdio_ext.h"
3184 as_fn_append ac_header_list " fcntl.h"
3185 as_fn_append ac_header_list " coff.h"
3186 as_fn_append ac_header_list " pty.h"
3187 as_fn_append ac_header_list " sys/vlimit.h"
3188 as_fn_append ac_header_list " sys/resource.h"
3189 as_fn_append ac_header_list " sys/utsname.h"
3190 as_fn_append ac_header_list " pwd.h"
3191 as_fn_append ac_header_list " utmp.h"
3192 as_fn_append ac_header_list " dirent.h"
3193 as_fn_append ac_header_list " util.h"
3194 as_fn_append ac_header_list " sys/socket.h"
3195 as_fn_append ac_header_list " stdlib.h"
3196 as_fn_append ac_header_list " unistd.h"
3197 as_fn_append ac_header_list " sys/param.h"
3198 as_fn_append ac_header_list " pthread.h"
3199 as_fn_append ac_header_list " malloc/malloc.h"
3200 as_fn_append ac_header_list " maillock.h"
3201 as_fn_append ac_header_list " sys/un.h"
3202 as_fn_append ac_func_list " tzset"
3203 as_fn_append ac_func_list " readlinkat"
3204 as_fn_append ac_header_list " execinfo.h"
3205 gl_getopt_required=GNU
3206 as_fn_append ac_header_list " getopt.h"
3207 as_fn_append ac_func_list " gettimeofday"
3208 as_fn_append ac_func_list " nanotime"
3209 as_fn_append ac_header_list " sys/time.h"
3210 as_fn_append ac_header_list " wchar.h"
3211 as_fn_append ac_header_list " stdint.h"
3212 as_fn_append ac_header_list " inttypes.h"
3213 as_fn_append ac_func_list " lstat"
3214 as_fn_append ac_func_list " alarm"
3215 as_fn_append ac_header_list " sys/select.h"
3216 as_fn_append ac_func_list " pselect"
3217 as_fn_append ac_func_list " pthread_sigmask"
3218 as_fn_append ac_func_list " readlink"
3219 as_fn_append ac_func_list " strtoimax"
3220 as_fn_append ac_func_list " strtoumax"
3221 as_fn_append ac_func_list " symlink"
3222 as_fn_append ac_header_list " sys/stat.h"
3223 as_fn_append ac_func_list " localtime_r"
3224 as_fn_append ac_header_list " utime.h"
3225 as_fn_append ac_func_list " futimes"
3226 as_fn_append ac_func_list " futimesat"
3227 as_fn_append ac_func_list " futimens"
3228 as_fn_append ac_func_list " utimensat"
3229 as_fn_append ac_func_list " lutimes"
3230 # Check that the precious variables saved in the cache have kept the same
3231 # value.
3232 ac_cache_corrupted=false
3233 for ac_var in $ac_precious_vars; do
3234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3235 eval ac_new_set=\$ac_env_${ac_var}_set
3236 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3237 eval ac_new_val=\$ac_env_${ac_var}_value
3238 case $ac_old_set,$ac_new_set in
3239 set,)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3242 ac_cache_corrupted=: ;;
3243 ,set)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3246 ac_cache_corrupted=: ;;
3247 ,);;
3248 *)
3249 if test "x$ac_old_val" != "x$ac_new_val"; then
3250 # differences in whitespace do not lead to failure.
3251 ac_old_val_w=`echo x $ac_old_val`
3252 ac_new_val_w=`echo x $ac_new_val`
3253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3256 ac_cache_corrupted=:
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3260 eval $ac_var=\$ac_old_val
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3263 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3265 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3266 fi;;
3267 esac
3268 # Pass precious variables to config.status.
3269 if test "$ac_new_set" = set; then
3270 case $ac_new_val in
3271 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3272 *) ac_arg=$ac_var=$ac_new_val ;;
3273 esac
3274 case " $ac_configure_args " in
3275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3276 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3277 esac
3278 fi
3279 done
3280 if $ac_cache_corrupted; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3285 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3286 fi
3287 ## -------------------- ##
3288 ## Main body of script. ##
3289 ## -------------------- ##
3290
3291 ac_ext=c
3292 ac_cpp='$CPP $CPPFLAGS'
3293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296
3297
3298 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3299
3300
3301 ac_aux_dir=
3302 for ac_dir in build-aux "$srcdir"/build-aux; do
3303 for ac_t in install-sh install.sh shtool; do
3304 if test -f "$ac_dir/$ac_t"; then
3305 ac_aux_dir=$ac_dir
3306 ac_install_sh="$ac_aux_dir/$ac_t -c"
3307 break 2
3308 fi
3309 done
3310 done
3311 if test -z "$ac_aux_dir"; then
3312 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3313 fi
3314
3315 # These three variables are undocumented and unsupported,
3316 # and are intended to be withdrawn in a future Autoconf release.
3317 # They can cause serious problems if a builder's source tree is in a directory
3318 # whose full name contains unusual characters.
3319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3322
3323
3324 am__api_version='1.11'
3325
3326 # Find a good install program. We prefer a C program (faster),
3327 # so one script is as good as another. But avoid the broken or
3328 # incompatible versions:
3329 # SysV /etc/install, /usr/sbin/install
3330 # SunOS /usr/etc/install
3331 # IRIX /sbin/install
3332 # AIX /bin/install
3333 # AmigaOS /C/install, which installs bootblocks on floppy discs
3334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3337 # OS/2's system install, which has a completely different semantic
3338 # ./install, which can be erroneously created by make from ./install.sh.
3339 # Reject install programs that cannot install multiple files.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3341 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3342 if test -z "$INSTALL"; then
3343 if test "${ac_cv_path_install+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 # Account for people who put trailing slashes in PATH elements.
3352 case $as_dir/ in #((
3353 ./ | .// | /[cC]/* | \
3354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3356 /usr/ucb/* ) ;;
3357 *)
3358 # OSF1 and SCO ODT 3.0 have their own names for install.
3359 # Don't use installbsd from OSF since it installs stuff as root
3360 # by default.
3361 for ac_prog in ginstall scoinst install; do
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3364 if test $ac_prog = install &&
3365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3366 # AIX install. It has an incompatible calling convention.
3367 :
3368 elif test $ac_prog = install &&
3369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3370 # program-specific install script used by HP pwplus--don't use.
3371 :
3372 else
3373 rm -rf conftest.one conftest.two conftest.dir
3374 echo one > conftest.one
3375 echo two > conftest.two
3376 mkdir conftest.dir
3377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3378 test -s conftest.one && test -s conftest.two &&
3379 test -s conftest.dir/conftest.one &&
3380 test -s conftest.dir/conftest.two
3381 then
3382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3383 break 3
3384 fi
3385 fi
3386 fi
3387 done
3388 done
3389 ;;
3390 esac
3391
3392 done
3393 IFS=$as_save_IFS
3394
3395 rm -rf conftest.one conftest.two conftest.dir
3396
3397 fi
3398 if test "${ac_cv_path_install+set}" = set; then
3399 INSTALL=$ac_cv_path_install
3400 else
3401 # As a last resort, use the slow shell script. Don't cache a
3402 # value for INSTALL within a source directory, because that will
3403 # break other packages using the cache if that directory is
3404 # removed, or if the value is a relative name.
3405 INSTALL=$ac_install_sh
3406 fi
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3409 $as_echo "$INSTALL" >&6; }
3410
3411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3412 # It thinks the first close brace ends the variable substitution.
3413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3414
3415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3416
3417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3420 $as_echo_n "checking whether build environment is sane... " >&6; }
3421 # Just in case
3422 sleep 1
3423 echo timestamp > conftest.file
3424 # Reject unsafe characters in $srcdir or the absolute working directory
3425 # name. Accept space and tab only in the latter.
3426 am_lf='
3427 '
3428 case `pwd` in
3429 *[\\\"\#\$\&\'\`$am_lf]*)
3430 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3431 esac
3432 case $srcdir in
3433 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3434 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3435 esac
3436
3437 # Do `set' in a subshell so we don't clobber the current shell's
3438 # arguments. Must try -L first in case configure is actually a
3439 # symlink; some systems play weird games with the mod time of symlinks
3440 # (eg FreeBSD returns the mod time of the symlink's containing
3441 # directory).
3442 if (
3443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3444 if test "$*" = "X"; then
3445 # -L didn't work.
3446 set X `ls -t "$srcdir/configure" conftest.file`
3447 fi
3448 rm -f conftest.file
3449 if test "$*" != "X $srcdir/configure conftest.file" \
3450 && test "$*" != "X conftest.file $srcdir/configure"; then
3451
3452 # If neither matched, then we have a broken ls. This can happen
3453 # if, for instance, CONFIG_SHELL is bash and it inherits a
3454 # broken ls alias from the environment. This has actually
3455 # happened. Such a system could not be considered "sane".
3456 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3457 alias in your environment" "$LINENO" 5
3458 fi
3459
3460 test "$2" = conftest.file
3461 )
3462 then
3463 # Ok.
3464 :
3465 else
3466 as_fn_error "newly created file is older than distributed files!
3467 Check your system clock" "$LINENO" 5
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470 $as_echo "yes" >&6; }
3471 test "$program_prefix" != NONE &&
3472 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3473 # Use a double $ so make ignores it.
3474 test "$program_suffix" != NONE &&
3475 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3476 # Double any \ or $.
3477 # By default was `s,x,x', remove it if useless.
3478 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3479 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3480
3481 # expand $ac_aux_dir to an absolute path
3482 am_aux_dir=`cd $ac_aux_dir && pwd`
3483
3484 if test x"${MISSING+set}" != xset; then
3485 case $am_aux_dir in
3486 *\ * | *\ *)
3487 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3488 *)
3489 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3490 esac
3491 fi
3492 # Use eval to expand $SHELL
3493 if eval "$MISSING --run true"; then
3494 am_missing_run="$MISSING --run "
3495 else
3496 am_missing_run=
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3498 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3499 fi
3500
3501 if test x"${install_sh}" != xset; then
3502 case $am_aux_dir in
3503 *\ * | *\ *)
3504 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3505 *)
3506 install_sh="\${SHELL} $am_aux_dir/install-sh"
3507 esac
3508 fi
3509
3510 # Installed binaries are usually stripped using `strip' when the user
3511 # run `make install-strip'. However `strip' might not be the right
3512 # tool to use in cross-compilation environments, therefore Automake
3513 # will honor the `STRIP' environment variable to overrule this program.
3514 if test "$cross_compiling" != no; then
3515 if test -n "$ac_tool_prefix"; then
3516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3517 set dummy ${ac_tool_prefix}strip; ac_word=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if test "${ac_cv_prog_STRIP+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 if test -n "$STRIP"; then
3524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3525 else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3528 do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 break 2
3536 fi
3537 done
3538 done
3539 IFS=$as_save_IFS
3540
3541 fi
3542 fi
3543 STRIP=$ac_cv_prog_STRIP
3544 if test -n "$STRIP"; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3546 $as_echo "$STRIP" >&6; }
3547 else
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3550 fi
3551
3552
3553 fi
3554 if test -z "$ac_cv_prog_STRIP"; then
3555 ac_ct_STRIP=$STRIP
3556 # Extract the first word of "strip", so it can be a program name with args.
3557 set dummy strip; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$ac_ct_STRIP"; then
3564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_ac_ct_STRIP="strip"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577 done
3578 done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3584 if test -n "$ac_ct_STRIP"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3586 $as_echo "$ac_ct_STRIP" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3591
3592 if test "x$ac_ct_STRIP" = x; then
3593 STRIP=":"
3594 else
3595 case $cross_compiling:$ac_tool_warned in
3596 yes:)
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3599 ac_tool_warned=yes ;;
3600 esac
3601 STRIP=$ac_ct_STRIP
3602 fi
3603 else
3604 STRIP="$ac_cv_prog_STRIP"
3605 fi
3606
3607 fi
3608 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3609
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3611 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3612 if test -z "$MKDIR_P"; then
3613 if test "${ac_cv_path_mkdir+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3618 do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_prog in mkdir gmkdir; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3624 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3625 'mkdir (GNU coreutils) '* | \
3626 'mkdir (coreutils) '* | \
3627 'mkdir (fileutils) '4.1*)
3628 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3629 break 3;;
3630 esac
3631 done
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 fi
3637
3638 test -d ./--version && rmdir ./--version
3639 if test "${ac_cv_path_mkdir+set}" = set; then
3640 MKDIR_P="$ac_cv_path_mkdir -p"
3641 else
3642 # As a last resort, use the slow shell script. Don't cache a
3643 # value for MKDIR_P within a source directory, because that will
3644 # break other packages using the cache if that directory is
3645 # removed, or if the value is a relative name.
3646 MKDIR_P="$ac_install_sh -d"
3647 fi
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3650 $as_echo "$MKDIR_P" >&6; }
3651
3652
3653 mkdir_p="$MKDIR_P"
3654 case $mkdir_p in
3655 [\\/$]* | ?:[\\/]*) ;;
3656 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3657 esac
3658
3659 for ac_prog in gawk mawk nawk awk
3660 do
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy $ac_prog; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_AWK+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$AWK"; then
3669 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_AWK="$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3681 fi
3682 done
3683 done
3684 IFS=$as_save_IFS
3685
3686 fi
3687 fi
3688 AWK=$ac_cv_prog_AWK
3689 if test -n "$AWK"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3691 $as_echo "$AWK" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3695 fi
3696
3697
3698 test -n "$AWK" && break
3699 done
3700
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3702 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3703 set x ${MAKE-make}
3704 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3705 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 cat >conftest.make <<\_ACEOF
3709 SHELL = /bin/sh
3710 all:
3711 @echo '@@@%%%=$(MAKE)=@@@%%%'
3712 _ACEOF
3713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3714 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3715 *@@@%%%=?*=@@@%%%*)
3716 eval ac_cv_prog_make_${ac_make}_set=yes;;
3717 *)
3718 eval ac_cv_prog_make_${ac_make}_set=no;;
3719 esac
3720 rm -f conftest.make
3721 fi
3722 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3725 SET_MAKE=
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 SET_MAKE="MAKE=${MAKE-make}"
3730 fi
3731
3732 rm -rf .tst 2>/dev/null
3733 mkdir .tst 2>/dev/null
3734 if test -d .tst; then
3735 am__leading_dot=.
3736 else
3737 am__leading_dot=_
3738 fi
3739 rmdir .tst 2>/dev/null
3740
3741 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3742 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3743 # is not polluted with repeated "-I."
3744 am__isrc=' -I$(srcdir)'
3745 # test to see if srcdir already configured
3746 if test -f $srcdir/config.status; then
3747 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3748 fi
3749 fi
3750
3751 # test whether we have cygpath
3752 if test -z "$CYGPATH_W"; then
3753 if (cygpath --version) >/dev/null 2>/dev/null; then
3754 CYGPATH_W='cygpath -w'
3755 else
3756 CYGPATH_W=echo
3757 fi
3758 fi
3759
3760
3761 # Define the identity of the package.
3762 PACKAGE='emacs'
3763 VERSION='24.2.50'
3764
3765
3766 cat >>confdefs.h <<_ACEOF
3767 #define PACKAGE "$PACKAGE"
3768 _ACEOF
3769
3770
3771 cat >>confdefs.h <<_ACEOF
3772 #define VERSION "$VERSION"
3773 _ACEOF
3774
3775 # Some tools Automake needs.
3776
3777 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3778
3779
3780 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3781
3782
3783 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3784
3785
3786 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3787
3788
3789 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3790
3791 # We need awk for the "check" target. The system "awk" is bad on
3792 # some platforms.
3793 # Always define AMTAR for backward compatibility.
3794
3795 AMTAR=${AMTAR-"${am_missing_run}tar"}
3796
3797 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3798
3799
3800
3801
3802
3803
3804
3805
3806 lispdir='${datadir}/emacs/${version}/lisp'
3807 leimdir='${datadir}/emacs/${version}/leim'
3808 standardlisppath='${lispdir}:${leimdir}'
3809 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3810 '${datadir}/emacs/site-lisp'
3811 lisppath='${locallisppath}:${standardlisppath}'
3812 etcdir='${datadir}/emacs/${version}/etc'
3813 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3814 docdir='${datadir}/emacs/${version}/etc'
3815 gamedir='${localstatedir}/games/emacs'
3816
3817
3818 # Check whether --with-all was given.
3819 if test "${with_all+set}" = set; then :
3820 withval=$with_all; with_features=$withval
3821 else
3822 with_features=yes
3823 fi
3824
3825
3826
3827
3828
3829 # Check whether --with-pop was given.
3830 if test "${with_pop+set}" = set; then :
3831 withval=$with_pop;
3832 else
3833 with_pop=$with_features
3834 fi
3835
3836 if test "$with_pop" = yes; then
3837 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3838
3839 fi
3840
3841
3842 # Check whether --with-kerberos was given.
3843 if test "${with_kerberos+set}" = set; then :
3844 withval=$with_kerberos;
3845 else
3846 with_kerberos=no
3847 fi
3848
3849 if test "$with_kerberos" != no; then
3850 $as_echo "#define KERBEROS 1" >>confdefs.h
3851
3852 fi
3853
3854
3855 # Check whether --with-kerberos5 was given.
3856 if test "${with_kerberos5+set}" = set; then :
3857 withval=$with_kerberos5;
3858 else
3859 with_kerberos5=no
3860 fi
3861
3862 if test "${with_kerberos5}" != no; then
3863 if test "${with_kerberos}" = no; then
3864 with_kerberos=yes
3865 $as_echo "#define KERBEROS 1" >>confdefs.h
3866
3867 fi
3868
3869 $as_echo "#define KERBEROS5 1" >>confdefs.h
3870
3871 fi
3872
3873
3874 # Check whether --with-hesiod was given.
3875 if test "${with_hesiod+set}" = set; then :
3876 withval=$with_hesiod;
3877 else
3878 with_hesiod=no
3879 fi
3880
3881 if test "$with_hesiod" != no; then
3882
3883 $as_echo "#define HESIOD 1" >>confdefs.h
3884
3885 fi
3886
3887
3888 # Check whether --with-mmdf was given.
3889 if test "${with_mmdf+set}" = set; then :
3890 withval=$with_mmdf;
3891 else
3892 with_mmdf=no
3893 fi
3894
3895 if test "$with_mmdf" != no; then
3896
3897 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3898
3899 fi
3900
3901
3902 # Check whether --with-mail-unlink was given.
3903 if test "${with_mail_unlink+set}" = set; then :
3904 withval=$with_mail_unlink;
3905 else
3906 with_mail_unlink=no
3907 fi
3908
3909 if test "$with_mail_unlink" != no; then
3910
3911 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3912
3913 fi
3914
3915
3916 # Check whether --with-mailhost was given.
3917 if test "${with_mailhost+set}" = set; then :
3918 withval=$with_mailhost;
3919 cat >>confdefs.h <<_ACEOF
3920 #define MAILHOST "$withval"
3921 _ACEOF
3922
3923 fi
3924
3925
3926
3927 # Check whether --with-sound was given.
3928 if test "${with_sound+set}" = set; then :
3929 withval=$with_sound;
3930 else
3931 with_sound=$with_features
3932 fi
3933
3934
3935
3936 # Check whether --with-x-toolkit was given.
3937 if test "${with_x_toolkit+set}" = set; then :
3938 withval=$with_x_toolkit; case "${withval}" in
3939 y | ye | yes ) val=gtk ;;
3940 n | no ) val=no ;;
3941 l | lu | luc | luci | lucid ) val=lucid ;;
3942 a | at | ath | athe | athen | athena ) val=athena ;;
3943 m | mo | mot | moti | motif ) val=motif ;;
3944 g | gt | gtk ) val=gtk ;;
3945 gtk2 ) val=gtk2 ;;
3946 gtk3 ) val=gtk3 ;;
3947 * )
3948 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3949 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3950 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3951 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3952 ;;
3953 esac
3954 with_x_toolkit=$val
3955
3956 fi
3957
3958
3959
3960 # Check whether --with-wide-int was given.
3961 if test "${with_wide_int+set}" = set; then :
3962 withval=$with_wide_int;
3963 else
3964 with_wide_int=no
3965 fi
3966
3967 if test "$with_wide_int" = yes; then
3968
3969 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3970
3971 fi
3972
3973
3974 # Check whether --with-xpm was given.
3975 if test "${with_xpm+set}" = set; then :
3976 withval=$with_xpm;
3977 else
3978 with_xpm=$with_features
3979 fi
3980
3981
3982 # Check whether --with-jpeg was given.
3983 if test "${with_jpeg+set}" = set; then :
3984 withval=$with_jpeg;
3985 else
3986 with_jpeg=$with_features
3987 fi
3988
3989
3990 # Check whether --with-tiff was given.
3991 if test "${with_tiff+set}" = set; then :
3992 withval=$with_tiff;
3993 else
3994 with_tiff=$with_features
3995 fi
3996
3997
3998 # Check whether --with-gif was given.
3999 if test "${with_gif+set}" = set; then :
4000 withval=$with_gif;
4001 else
4002 with_gif=$with_features
4003 fi
4004
4005
4006 # Check whether --with-png was given.
4007 if test "${with_png+set}" = set; then :
4008 withval=$with_png;
4009 else
4010 with_png=$with_features
4011 fi
4012
4013
4014 # Check whether --with-rsvg was given.
4015 if test "${with_rsvg+set}" = set; then :
4016 withval=$with_rsvg;
4017 else
4018 with_rsvg=$with_features
4019 fi
4020
4021
4022 # Check whether --with-xml2 was given.
4023 if test "${with_xml2+set}" = set; then :
4024 withval=$with_xml2;
4025 else
4026 with_xml2=$with_features
4027 fi
4028
4029
4030 # Check whether --with-imagemagick was given.
4031 if test "${with_imagemagick+set}" = set; then :
4032 withval=$with_imagemagick;
4033 else
4034 with_imagemagick=$with_features
4035 fi
4036
4037
4038
4039 # Check whether --with-xft was given.
4040 if test "${with_xft+set}" = set; then :
4041 withval=$with_xft;
4042 else
4043 with_xft=$with_features
4044 fi
4045
4046
4047 # Check whether --with-libotf was given.
4048 if test "${with_libotf+set}" = set; then :
4049 withval=$with_libotf;
4050 else
4051 with_libotf=$with_features
4052 fi
4053
4054
4055 # Check whether --with-m17n-flt was given.
4056 if test "${with_m17n_flt+set}" = set; then :
4057 withval=$with_m17n_flt;
4058 else
4059 with_m17n_flt=$with_features
4060 fi
4061
4062
4063
4064 # Check whether --with-toolkit-scroll-bars was given.
4065 if test "${with_toolkit_scroll_bars+set}" = set; then :
4066 withval=$with_toolkit_scroll_bars;
4067 else
4068 with_toolkit_scroll_bars=$with_features
4069 fi
4070
4071
4072 # Check whether --with-xaw3d was given.
4073 if test "${with_xaw3d+set}" = set; then :
4074 withval=$with_xaw3d;
4075 else
4076 with_xaw3d=$with_features
4077 fi
4078
4079
4080 # Check whether --with-xim was given.
4081 if test "${with_xim+set}" = set; then :
4082 withval=$with_xim;
4083 else
4084 with_xim=$with_features
4085 fi
4086
4087
4088 # Check whether --with-ns was given.
4089 if test "${with_ns+set}" = set; then :
4090 withval=$with_ns;
4091 else
4092 with_ns=no
4093 fi
4094
4095
4096
4097 # Check whether --with-gpm was given.
4098 if test "${with_gpm+set}" = set; then :
4099 withval=$with_gpm;
4100 else
4101 with_gpm=$with_features
4102 fi
4103
4104
4105 # Check whether --with-dbus was given.
4106 if test "${with_dbus+set}" = set; then :
4107 withval=$with_dbus;
4108 else
4109 with_dbus=$with_features
4110 fi
4111
4112
4113 # Check whether --with-gconf was given.
4114 if test "${with_gconf+set}" = set; then :
4115 withval=$with_gconf;
4116 else
4117 with_gconf=$with_features
4118 fi
4119
4120
4121 # Check whether --with-gsettings was given.
4122 if test "${with_gsettings+set}" = set; then :
4123 withval=$with_gsettings;
4124 else
4125 with_gsettings=$with_features
4126 fi
4127
4128
4129 # Check whether --with-selinux was given.
4130 if test "${with_selinux+set}" = set; then :
4131 withval=$with_selinux;
4132 else
4133 with_selinux=$with_features
4134 fi
4135
4136
4137 # Check whether --with-gnutls was given.
4138 if test "${with_gnutls+set}" = set; then :
4139 withval=$with_gnutls;
4140 else
4141 with_gnutls=$with_features
4142 fi
4143
4144
4145 ## For the times when you want to build Emacs but don't have
4146 ## a suitable makeinfo, and can live without the manuals.
4147
4148 # Check whether --with-makeinfo was given.
4149 if test "${with_makeinfo+set}" = set; then :
4150 withval=$with_makeinfo;
4151 else
4152 with_makeinfo=$with_features
4153 fi
4154
4155
4156 ## Makefile.in needs the cache file name.
4157
4158
4159 ## This is an option because I do not know if all info/man support
4160 ## compressed files, nor how to test if they do so.
4161
4162 # Check whether --with-compress-info was given.
4163 if test "${with_compress_info+set}" = set; then :
4164 withval=$with_compress_info;
4165 else
4166 with_compress_info=$with_features
4167 fi
4168
4169 if test $with_compress_info = yes; then
4170 GZIP_INFO=yes
4171 else
4172 GZIP_INFO=
4173 fi
4174
4175
4176
4177 # Check whether --with-pkg-config-prog was given.
4178 if test "${with_pkg_config_prog+set}" = set; then :
4179 withval=$with_pkg_config_prog;
4180 fi
4181
4182 if test "X${with_pkg_config_prog}" != X; then
4183 if test "${with_pkg_config_prog}" != yes; then
4184 PKG_CONFIG="${with_pkg_config_prog}"
4185 fi
4186 fi
4187
4188 CRT_DIR=
4189
4190 # Check whether --with-crt-dir was given.
4191 if test "${with_crt_dir+set}" = set; then :
4192 withval=$with_crt_dir;
4193 fi
4194
4195 CRT_DIR="${with_crt_dir}"
4196
4197
4198 # Check whether --with-gameuser was given.
4199 if test "${with_gameuser+set}" = set; then :
4200 withval=$with_gameuser;
4201 fi
4202
4203 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4204 && gameuser="${with_gameuser}"
4205 test "X$gameuser" = X && gameuser=games
4206
4207
4208 # Check whether --with-gnustep-conf was given.
4209 if test "${with_gnustep_conf+set}" = set; then :
4210 withval=$with_gnustep_conf;
4211 fi
4212
4213 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4214 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4215 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4216 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4217
4218 # Check whether --enable-ns-self-contained was given.
4219 if test "${enable_ns_self_contained+set}" = set; then :
4220 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4221 else
4222 EN_NS_SELF_CONTAINED=yes
4223 fi
4224
4225
4226 # Check whether --enable-locallisppath was given.
4227 if test "${enable_locallisppath+set}" = set; then :
4228 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4229 locallisppath=
4230 elif test "${enableval}" != "yes"; then
4231 locallisppath=${enableval}
4232 fi
4233 fi
4234
4235
4236 # Check whether --enable-checking was given.
4237 if test "${enable_checking+set}" = set; then :
4238 enableval=$enable_checking; ac_checking_flags="${enableval}"
4239 fi
4240
4241 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4242 for check in $ac_checking_flags
4243 do
4244 case $check in
4245 # these set all the flags to specific states
4246 yes) ac_enable_checking=1 ;;
4247 no) ac_enable_checking= ;
4248 ac_gc_check_stringbytes= ;
4249 ac_gc_check_string_overrun= ;
4250 ac_gc_check_string_free_list= ;
4251 ac_xmalloc_overrun= ;
4252 ac_gc_check_cons_list= ;
4253 ac_glyphs_debug= ;;
4254 all) ac_enable_checking=1 ;
4255 ac_gc_check_stringbytes=1 ;
4256 ac_gc_check_string_overrun=1 ;
4257 ac_gc_check_string_free_list=1 ;
4258 ac_xmalloc_overrun=1 ;
4259 ac_gc_check_cons_list=1 ;
4260 ac_glyphs_debug=1 ;;
4261 # these enable particular checks
4262 stringbytes) ac_gc_check_stringbytes=1 ;;
4263 stringoverrun) ac_gc_check_string_overrun=1 ;;
4264 stringfreelist) ac_gc_check_string_free_list=1 ;;
4265 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4266 conslist) ac_gc_check_cons_list=1 ;;
4267 glyphs) ac_glyphs_debug=1 ;;
4268 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4269 esac
4270 done
4271 IFS="$ac_save_IFS"
4272
4273 if test x$ac_enable_checking != x ; then
4274
4275 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4276
4277 fi
4278 if test x$ac_gc_check_stringbytes != x ; then
4279
4280 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4281
4282 fi
4283 if test x$ac_gc_check_string_overrun != x ; then
4284
4285 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4286
4287 fi
4288 if test x$ac_gc_check_string_free_list != x ; then
4289
4290 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4291
4292 fi
4293 if test x$ac_xmalloc_overrun != x ; then
4294
4295 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4296
4297 fi
4298 if test x$ac_gc_check_cons_list != x ; then
4299
4300 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4301
4302 fi
4303 if test x$ac_glyphs_debug != x ; then
4304
4305 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4306
4307 fi
4308
4309 # Check whether --enable-check-lisp-object-type was given.
4310 if test "${enable_check_lisp_object_type+set}" = set; then :
4311 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4312
4313 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4314
4315 fi
4316 fi
4317
4318
4319
4320 # Check whether --enable-profiling was given.
4321 if test "${enable_profiling+set}" = set; then :
4322 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4323 fi
4324
4325 if test x$ac_enable_profiling != x ; then
4326 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4327 else
4328 PROFILING_CFLAGS=
4329 fi
4330
4331
4332 # Check whether --enable-autodepend was given.
4333 if test "${enable_autodepend+set}" = set; then :
4334 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4335 else
4336 ac_enable_autodepend=yes
4337 fi
4338
4339
4340 #### Make srcdir absolute, if it isn't already. It's important to
4341 #### avoid running the path through pwd unnecessarily, since pwd can
4342 #### give you automounter prefixes, which can go away. We do all this
4343 #### so Emacs can find its files when run uninstalled.
4344 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4345 unset CDPATH
4346 case "${srcdir}" in
4347 /* ) ;;
4348 . )
4349 ## We may be able to use the $PWD environment variable to make this
4350 ## absolute. But sometimes PWD is inaccurate.
4351 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4352 ## but that tested only for a well-formed and valid PWD,
4353 ## it did not object when PWD was well-formed and valid but just wrong.
4354 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4355 then
4356 srcdir="$PWD"
4357 else
4358 srcdir="`(cd ${srcdir}; pwd)`"
4359 fi
4360 ;;
4361 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4362 esac
4363
4364 ### Canonicalize the configuration name.
4365
4366 # Make sure we can run config.sub.
4367 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4368 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4369
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4371 $as_echo_n "checking build system type... " >&6; }
4372 if test "${ac_cv_build+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 ac_build_alias=$build_alias
4376 test "x$ac_build_alias" = x &&
4377 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4378 test "x$ac_build_alias" = x &&
4379 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4381 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4382
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4385 $as_echo "$ac_cv_build" >&6; }
4386 case $ac_cv_build in
4387 *-*-*) ;;
4388 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4389 esac
4390 build=$ac_cv_build
4391 ac_save_IFS=$IFS; IFS='-'
4392 set x $ac_cv_build
4393 shift
4394 build_cpu=$1
4395 build_vendor=$2
4396 shift; shift
4397 # Remember, the first character of IFS is used to create $*,
4398 # except with old shells:
4399 build_os=$*
4400 IFS=$ac_save_IFS
4401 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4402
4403
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4405 $as_echo_n "checking host system type... " >&6; }
4406 if test "${ac_cv_host+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test "x$host_alias" = x; then
4410 ac_cv_host=$ac_cv_build
4411 else
4412 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4413 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4414 fi
4415
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4418 $as_echo "$ac_cv_host" >&6; }
4419 case $ac_cv_host in
4420 *-*-*) ;;
4421 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4422 esac
4423 host=$ac_cv_host
4424 ac_save_IFS=$IFS; IFS='-'
4425 set x $ac_cv_host
4426 shift
4427 host_cpu=$1
4428 host_vendor=$2
4429 shift; shift
4430 # Remember, the first character of IFS is used to create $*,
4431 # except with old shells:
4432 host_os=$*
4433 IFS=$ac_save_IFS
4434 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4435
4436
4437 canonical=$host
4438 configuration=${host_alias-${build_alias-$host}}
4439
4440
4441
4442 ### If you add support for a new configuration, add code to this
4443 ### switch statement to recognize your configuration name and select
4444 ### the appropriate operating system file.
4445
4446 ### You would hope that you could choose an s/*.h
4447 ### file based on the operating system portion. However, it turns out
4448 ### that each s/*.h file is pretty manufacturer-specific.
4449 ### So we basically have to have a special case for each
4450 ### configuration name.
4451 ###
4452 ### As far as handling version numbers on operating systems is
4453 ### concerned, make sure things will fail in a fixable way. If
4454 ### /etc/MACHINES doesn't say anything about version numbers, be
4455 ### prepared to handle anything reasonably. If version numbers
4456 ### matter, be sure /etc/MACHINES says something about it.
4457
4458 opsys='' unported=no
4459 case "${canonical}" in
4460
4461 ## GNU/Linux and similar ports
4462 *-*-linux* )
4463 opsys=gnu-linux
4464 ;;
4465
4466 ## FreeBSD ports
4467 *-*-freebsd* )
4468 opsys=freebsd
4469 ;;
4470
4471 ## FreeBSD kernel + glibc based userland
4472 *-*-kfreebsd*gnu* )
4473 opsys=gnu-kfreebsd
4474 ;;
4475
4476 ## NetBSD ports
4477 *-*-netbsd* )
4478 opsys=netbsd
4479 ;;
4480
4481 ## OpenBSD ports
4482 *-*-openbsd* )
4483 opsys=openbsd
4484 ;;
4485
4486 ## Apple Darwin / Mac OS X
4487 *-apple-darwin* )
4488 case "${canonical}" in
4489 i[3456]86-* ) ;;
4490 powerpc-* ) ;;
4491 x86_64-* ) ;;
4492 * ) unported=yes ;;
4493 esac
4494 opsys=darwin
4495 ## Use fink packages if available.
4496 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4497 ## if test -d /sw/include && test -d /sw/lib; then
4498 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4499 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4500 ## fi
4501 ;;
4502
4503 ## HP 9000 series 700 and 800, running HP/UX
4504 hppa*-hp-hpux10.2* )
4505 opsys=hpux10-20
4506 ;;
4507 hppa*-hp-hpux1[1-9]* )
4508 opsys=hpux11
4509 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4510 ;;
4511
4512 ## IBM machines
4513 rs6000-ibm-aix4.[23]* )
4514 opsys=aix4-2
4515 ;;
4516 powerpc-ibm-aix4.[23]* )
4517 opsys=aix4-2
4518 ;;
4519 rs6000-ibm-aix[56]* )
4520 opsys=aix4-2
4521 ;;
4522 powerpc-ibm-aix[56]* )
4523 opsys=aix4-2
4524 ;;
4525
4526 ## Silicon Graphics machines
4527 ## Iris 4D
4528 mips-sgi-irix6.5 )
4529 opsys=irix6-5
4530 # Without defining _LANGUAGE_C, things get masked out in the headers
4531 # so that, for instance, grepping for `free' in stdlib.h fails and
4532 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4533 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4534 ;;
4535
4536 ## Suns
4537 *-sun-solaris* \
4538 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4539 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4540 case "${canonical}" in
4541 i[3456]86-*-* ) ;;
4542 amd64-*-*|x86_64-*-*) ;;
4543 sparc* ) ;;
4544 * ) unported=yes ;;
4545 esac
4546 case "${canonical}" in
4547 *-sunos5.6* | *-solaris2.6* )
4548 opsys=sol2-6
4549 RANLIB="ar -ts"
4550 ;;
4551 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4552 opsys=sol2-6
4553 emacs_check_sunpro_c=yes
4554 ;;
4555 *-sunos5* | *-solaris* )
4556 opsys=sol2-10
4557 emacs_check_sunpro_c=yes
4558 ;;
4559 esac
4560 ## Watch out for a compiler that we know will not work.
4561 case "${canonical}" in
4562 *-solaris* | *-sunos5* )
4563 if [ "x$CC" = x/usr/ucb/cc ]; then
4564 ## /usr/ucb/cc doesn't work;
4565 ## we should find some other compiler that does work.
4566 unset CC
4567 fi
4568 ;;
4569 *) ;;
4570 esac
4571 ;;
4572
4573 ## Intel 386 machines where we don't care about the manufacturer.
4574 i[3456]86-*-* )
4575 case "${canonical}" in
4576 *-cygwin ) opsys=cygwin ;;
4577 *-darwin* ) opsys=darwin ;;
4578 *-sysv4.2uw* ) opsys=unixware ;;
4579 *-sysv5uw* ) opsys=unixware ;;
4580 *-sysv5OpenUNIX* ) opsys=unixware ;;
4581 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4582 esac
4583 ;;
4584
4585 * )
4586 unported=yes
4587 ;;
4588 esac
4589
4590 ### If the code above didn't choose an operating system, just choose
4591 ### an operating system based on the configuration name. You really
4592 ### only want to use this when you have no idea what the right
4593 ### operating system is; if you know what operating systems a machine
4594 ### runs, it's cleaner to make it explicit in the case statement
4595 ### above.
4596 if test x"${opsys}" = x; then
4597 case "${canonical}" in
4598 *-gnu* ) opsys=gnu ;;
4599 * )
4600 unported=yes
4601 ;;
4602 esac
4603 fi
4604
4605
4606
4607 if test $unported = yes; then
4608 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4609 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4610 fi
4611
4612
4613 #### Choose a compiler.
4614
4615 ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if test "${ac_cv_prog_CC+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if test -n "$CC"; then
4629 ac_cv_prog_CC="$CC" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646 fi
4647 fi
4648 CC=$ac_cv_prog_CC
4649 if test -n "$CC"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4651 $as_echo "$CC" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4655 fi
4656
4657
4658 fi
4659 if test -z "$ac_cv_prog_CC"; then
4660 ac_ct_CC=$CC
4661 # Extract the first word of "gcc", so it can be a program name with args.
4662 set dummy gcc; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -n "$ac_ct_CC"; then
4669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_ac_ct_CC="gcc"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4689 if test -n "$ac_ct_CC"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4691 $as_echo "$ac_ct_CC" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696
4697 if test "x$ac_ct_CC" = x; then
4698 CC=""
4699 else
4700 case $cross_compiling:$ac_tool_warned in
4701 yes:)
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 ac_tool_warned=yes ;;
4705 esac
4706 CC=$ac_ct_CC
4707 fi
4708 else
4709 CC="$ac_cv_prog_CC"
4710 fi
4711
4712 if test -z "$CC"; then
4713 if test -n "$ac_tool_prefix"; then
4714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4715 set dummy ${ac_tool_prefix}cc; ac_word=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_CC+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -n "$CC"; then
4722 ac_cv_prog_CC="$CC" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_CC="${ac_tool_prefix}cc"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739 fi
4740 fi
4741 CC=$ac_cv_prog_CC
4742 if test -n "$CC"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4744 $as_echo "$CC" >&6; }
4745 else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4748 fi
4749
4750
4751 fi
4752 fi
4753 if test -z "$CC"; then
4754 # Extract the first word of "cc", so it can be a program name with args.
4755 set dummy cc; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if test "${ac_cv_prog_CC+set}" = set; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$CC"; then
4762 ac_cv_prog_CC="$CC" # Let the user override the test.
4763 else
4764 ac_prog_rejected=no
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4767 do
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4773 ac_prog_rejected=yes
4774 continue
4775 fi
4776 ac_cv_prog_CC="cc"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4779 fi
4780 done
4781 done
4782 IFS=$as_save_IFS
4783
4784 if test $ac_prog_rejected = yes; then
4785 # We found a bogon in the path, so make sure we never use it.
4786 set dummy $ac_cv_prog_CC
4787 shift
4788 if test $# != 0; then
4789 # We chose a different compiler from the bogus one.
4790 # However, it has the same basename, so the bogon will be chosen
4791 # first if we set CC to just the basename; use the full file name.
4792 shift
4793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4794 fi
4795 fi
4796 fi
4797 fi
4798 CC=$ac_cv_prog_CC
4799 if test -n "$CC"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4801 $as_echo "$CC" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806
4807
4808 fi
4809 if test -z "$CC"; then
4810 if test -n "$ac_tool_prefix"; then
4811 for ac_prog in cl.exe
4812 do
4813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_CC+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$CC"; then
4821 ac_cv_prog_CC="$CC" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 CC=$ac_cv_prog_CC
4841 if test -n "$CC"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4843 $as_echo "$CC" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849
4850 test -n "$CC" && break
4851 done
4852 fi
4853 if test -z "$CC"; then
4854 ac_ct_CC=$CC
4855 for ac_prog in cl.exe
4856 do
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$ac_ct_CC"; then
4865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_ac_ct_CC="$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4885 if test -n "$ac_ct_CC"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4887 $as_echo "$ac_ct_CC" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893
4894 test -n "$ac_ct_CC" && break
4895 done
4896
4897 if test "x$ac_ct_CC" = x; then
4898 CC=""
4899 else
4900 case $cross_compiling:$ac_tool_warned in
4901 yes:)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned=yes ;;
4905 esac
4906 CC=$ac_ct_CC
4907 fi
4908 fi
4909
4910 fi
4911
4912
4913 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4915 as_fn_error "no acceptable C compiler found in \$PATH
4916 See \`config.log' for more details." "$LINENO" 5; }
4917
4918 # Provide some information about the compiler.
4919 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4920 set X $ac_compile
4921 ac_compiler=$2
4922 for ac_option in --version -v -V -qversion; do
4923 { { ac_try="$ac_compiler $ac_option >&5"
4924 case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927 esac
4928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4929 $as_echo "$ac_try_echo"; } >&5
4930 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4931 ac_status=$?
4932 if test -s conftest.err; then
4933 sed '10a\
4934 ... rest of stderr output deleted ...
4935 10q' conftest.err >conftest.er1
4936 cat conftest.er1 >&5
4937 fi
4938 rm -f conftest.er1 conftest.err
4939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940 test $ac_status = 0; }
4941 done
4942
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945
4946 int
4947 main ()
4948 {
4949
4950 ;
4951 return 0;
4952 }
4953 _ACEOF
4954 ac_clean_files_save=$ac_clean_files
4955 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4956 # Try to create an executable without -o first, disregard a.out.
4957 # It will help us diagnose broken compilers, and finding out an intuition
4958 # of exeext.
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4960 $as_echo_n "checking whether the C compiler works... " >&6; }
4961 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4962
4963 # The possible output files:
4964 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4965
4966 ac_rmfiles=
4967 for ac_file in $ac_files
4968 do
4969 case $ac_file in
4970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4971 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4972 esac
4973 done
4974 rm -f $ac_rmfiles
4975
4976 if { { ac_try="$ac_link_default"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4982 $as_echo "$ac_try_echo"; } >&5
4983 (eval "$ac_link_default") 2>&5
4984 ac_status=$?
4985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4986 test $ac_status = 0; }; then :
4987 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4988 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4989 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4990 # so that the user can short-circuit this test for compilers unknown to
4991 # Autoconf.
4992 for ac_file in $ac_files ''
4993 do
4994 test -f "$ac_file" || continue
4995 case $ac_file in
4996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4997 ;;
4998 [ab].out )
4999 # We found the default executable, but exeext='' is most
5000 # certainly right.
5001 break;;
5002 *.* )
5003 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5004 then :; else
5005 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5006 fi
5007 # We set ac_cv_exeext here because the later test for it is not
5008 # safe: cross compilers may not add the suffix if given an `-o'
5009 # argument, so we may need to know it at that point already.
5010 # Even if this section looks crufty: it has the advantage of
5011 # actually working.
5012 break;;
5013 * )
5014 break;;
5015 esac
5016 done
5017 test "$ac_cv_exeext" = no && ac_cv_exeext=
5018
5019 else
5020 ac_file=''
5021 fi
5022 if test -z "$ac_file"; then :
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 $as_echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5030 { as_fn_set_status 77
5031 as_fn_error "C compiler cannot create executables
5032 See \`config.log' for more details." "$LINENO" 5; }; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5035 $as_echo "yes" >&6; }
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5038 $as_echo_n "checking for C compiler default output file name... " >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5040 $as_echo "$ac_file" >&6; }
5041 ac_exeext=$ac_cv_exeext
5042
5043 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5044 ac_clean_files=$ac_clean_files_save
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5046 $as_echo_n "checking for suffix of executables... " >&6; }
5047 if { { ac_try="$ac_link"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5053 $as_echo "$ac_try_echo"; } >&5
5054 (eval "$ac_link") 2>&5
5055 ac_status=$?
5056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5057 test $ac_status = 0; }; then :
5058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5059 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5060 # work properly (i.e., refer to `conftest.exe'), while it won't with
5061 # `rm'.
5062 for ac_file in conftest.exe conftest conftest.*; do
5063 test -f "$ac_file" || continue
5064 case $ac_file in
5065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5067 break;;
5068 * ) break;;
5069 esac
5070 done
5071 else
5072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5074 as_fn_error "cannot compute suffix of executables: cannot compile and link
5075 See \`config.log' for more details." "$LINENO" 5; }
5076 fi
5077 rm -f conftest conftest$ac_cv_exeext
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5079 $as_echo "$ac_cv_exeext" >&6; }
5080
5081 rm -f conftest.$ac_ext
5082 EXEEXT=$ac_cv_exeext
5083 ac_exeext=$EXEEXT
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086 #include <stdio.h>
5087 int
5088 main ()
5089 {
5090 FILE *f = fopen ("conftest.out", "w");
5091 return ferror (f) || fclose (f) != 0;
5092
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 ac_clean_files="$ac_clean_files conftest.out"
5098 # Check that the compiler produces executables we can run. If not, either
5099 # the compiler is broken, or we cross compile.
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5101 $as_echo_n "checking whether we are cross compiling... " >&6; }
5102 if test "$cross_compiling" != yes; then
5103 { { ac_try="$ac_link"
5104 case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107 esac
5108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5109 $as_echo "$ac_try_echo"; } >&5
5110 (eval "$ac_link") 2>&5
5111 ac_status=$?
5112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5113 test $ac_status = 0; }
5114 if { ac_try='./conftest$ac_cv_exeext'
5115 { { case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118 esac
5119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5120 $as_echo "$ac_try_echo"; } >&5
5121 (eval "$ac_try") 2>&5
5122 ac_status=$?
5123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5124 test $ac_status = 0; }; }; then
5125 cross_compiling=no
5126 else
5127 if test "$cross_compiling" = maybe; then
5128 cross_compiling=yes
5129 else
5130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 as_fn_error "cannot run C compiled programs.
5133 If you meant to cross compile, use \`--host'.
5134 See \`config.log' for more details." "$LINENO" 5; }
5135 fi
5136 fi
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5139 $as_echo "$cross_compiling" >&6; }
5140
5141 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5142 ac_clean_files=$ac_clean_files_save
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5144 $as_echo_n "checking for suffix of object files... " >&6; }
5145 if test "${ac_cv_objext+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150
5151 int
5152 main ()
5153 {
5154
5155 ;
5156 return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.o conftest.obj
5160 if { { ac_try="$ac_compile"
5161 case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164 esac
5165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5166 $as_echo "$ac_try_echo"; } >&5
5167 (eval "$ac_compile") 2>&5
5168 ac_status=$?
5169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5170 test $ac_status = 0; }; then :
5171 for ac_file in conftest.o conftest.obj conftest.*; do
5172 test -f "$ac_file" || continue;
5173 case $ac_file in
5174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5176 break;;
5177 esac
5178 done
5179 else
5180 $as_echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5182
5183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5185 as_fn_error "cannot compute suffix of object files: cannot compile
5186 See \`config.log' for more details." "$LINENO" 5; }
5187 fi
5188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5191 $as_echo "$ac_cv_objext" >&6; }
5192 OBJEXT=$ac_cv_objext
5193 ac_objext=$OBJEXT
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5195 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5196 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201
5202 int
5203 main ()
5204 {
5205 #ifndef __GNUC__
5206 choke me
5207 #endif
5208
5209 ;
5210 return 0;
5211 }
5212 _ACEOF
5213 if ac_fn_c_try_compile "$LINENO"; then :
5214 ac_compiler_gnu=yes
5215 else
5216 ac_compiler_gnu=no
5217 fi
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5220
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5223 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5224 if test $ac_compiler_gnu = yes; then
5225 GCC=yes
5226 else
5227 GCC=
5228 fi
5229 ac_test_CFLAGS=${CFLAGS+set}
5230 ac_save_CFLAGS=$CFLAGS
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5232 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5233 if test "${ac_cv_prog_cc_g+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 ac_save_c_werror_flag=$ac_c_werror_flag
5237 ac_c_werror_flag=yes
5238 ac_cv_prog_cc_g=no
5239 CFLAGS="-g"
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242
5243 int
5244 main ()
5245 {
5246
5247 ;
5248 return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252 ac_cv_prog_cc_g=yes
5253 else
5254 CFLAGS=""
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257
5258 int
5259 main ()
5260 {
5261
5262 ;
5263 return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_compile "$LINENO"; then :
5267
5268 else
5269 ac_c_werror_flag=$ac_save_c_werror_flag
5270 CFLAGS="-g"
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273
5274 int
5275 main ()
5276 {
5277
5278 ;
5279 return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 ac_cv_prog_cc_g=yes
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 ac_c_werror_flag=$ac_save_c_werror_flag
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5293 $as_echo "$ac_cv_prog_cc_g" >&6; }
5294 if test "$ac_test_CFLAGS" = set; then
5295 CFLAGS=$ac_save_CFLAGS
5296 elif test $ac_cv_prog_cc_g = yes; then
5297 if test "$GCC" = yes; then
5298 CFLAGS="-g -O2"
5299 else
5300 CFLAGS="-g"
5301 fi
5302 else
5303 if test "$GCC" = yes; then
5304 CFLAGS="-O2"
5305 else
5306 CFLAGS=
5307 fi
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5310 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5311 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 ac_cv_prog_cc_c89=no
5315 ac_save_CC=$CC
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 #include <stdarg.h>
5319 #include <stdio.h>
5320 #include <sys/types.h>
5321 #include <sys/stat.h>
5322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5323 struct buf { int x; };
5324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5325 static char *e (p, i)
5326 char **p;
5327 int i;
5328 {
5329 return p[i];
5330 }
5331 static char *f (char * (*g) (char **, int), char **p, ...)
5332 {
5333 char *s;
5334 va_list v;
5335 va_start (v,p);
5336 s = g (p, va_arg (v,int));
5337 va_end (v);
5338 return s;
5339 }
5340
5341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5342 function prototypes and stuff, but not '\xHH' hex character constants.
5343 These don't provoke an error unfortunately, instead are silently treated
5344 as 'x'. The following induces an error, until -std is added to get
5345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5346 array size at least. It's necessary to write '\x00'==0 to get something
5347 that's true only with -std. */
5348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5349
5350 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5351 inside strings and character constants. */
5352 #define FOO(x) 'x'
5353 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5354
5355 int test (int i, double x);
5356 struct s1 {int (*f) (int a);};
5357 struct s2 {int (*f) (double a);};
5358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5359 int argc;
5360 char **argv;
5361 int
5362 main ()
5363 {
5364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5365 ;
5366 return 0;
5367 }
5368 _ACEOF
5369 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5371 do
5372 CC="$ac_save_CC $ac_arg"
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 ac_cv_prog_cc_c89=$ac_arg
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext
5377 test "x$ac_cv_prog_cc_c89" != "xno" && break
5378 done
5379 rm -f conftest.$ac_ext
5380 CC=$ac_save_CC
5381
5382 fi
5383 # AC_CACHE_VAL
5384 case "x$ac_cv_prog_cc_c89" in
5385 x)
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5387 $as_echo "none needed" >&6; } ;;
5388 xno)
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5390 $as_echo "unsupported" >&6; } ;;
5391 *)
5392 CC="$CC $ac_cv_prog_cc_c89"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5394 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5395 esac
5396 if test "x$ac_cv_prog_cc_c89" != xno; then :
5397
5398 fi
5399
5400 ac_ext=c
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405 DEPDIR="${am__leading_dot}deps"
5406
5407 ac_config_commands="$ac_config_commands depfiles"
5408
5409
5410 am_make=${MAKE-make}
5411 cat > confinc << 'END'
5412 am__doit:
5413 @echo this is the am__doit target
5414 .PHONY: am__doit
5415 END
5416 # If we don't find an include directive, just comment out the code.
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5418 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5419 am__include="#"
5420 am__quote=
5421 _am_result=none
5422 # First try GNU make style include.
5423 echo "include confinc" > confmf
5424 # Ignore all kinds of additional output from `make'.
5425 case `$am_make -s -f confmf 2> /dev/null` in #(
5426 *the\ am__doit\ target*)
5427 am__include=include
5428 am__quote=
5429 _am_result=GNU
5430 ;;
5431 esac
5432 # Now try BSD make style include.
5433 if test "$am__include" = "#"; then
5434 echo '.include "confinc"' > confmf
5435 case `$am_make -s -f confmf 2> /dev/null` in #(
5436 *the\ am__doit\ target*)
5437 am__include=.include
5438 am__quote="\""
5439 _am_result=BSD
5440 ;;
5441 esac
5442 fi
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5446 $as_echo "$_am_result" >&6; }
5447 rm -f confinc confmf
5448
5449 # Check whether --enable-dependency-tracking was given.
5450 if test "${enable_dependency_tracking+set}" = set; then :
5451 enableval=$enable_dependency_tracking;
5452 fi
5453
5454 if test "x$enable_dependency_tracking" != xno; then
5455 am_depcomp="$ac_aux_dir/depcomp"
5456 AMDEPBACKSLASH='\'
5457 fi
5458 if test "x$enable_dependency_tracking" != xno; then
5459 AMDEP_TRUE=
5460 AMDEP_FALSE='#'
5461 else
5462 AMDEP_TRUE='#'
5463 AMDEP_FALSE=
5464 fi
5465
5466
5467
5468 depcc="$CC" am_compiler_list=
5469
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5471 $as_echo_n "checking dependency style of $depcc... " >&6; }
5472 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5476 # We make a subdir and do the tests there. Otherwise we can end up
5477 # making bogus files that we don't know about and never remove. For
5478 # instance it was reported that on HP-UX the gcc test will end up
5479 # making a dummy file named `D' -- because `-MD' means `put the output
5480 # in D'.
5481 mkdir conftest.dir
5482 # Copy depcomp to subdir because otherwise we won't find it if we're
5483 # using a relative directory.
5484 cp "$am_depcomp" conftest.dir
5485 cd conftest.dir
5486 # We will build objects and dependencies in a subdirectory because
5487 # it helps to detect inapplicable dependency modes. For instance
5488 # both Tru64's cc and ICC support -MD to output dependencies as a
5489 # side effect of compilation, but ICC will put the dependencies in
5490 # the current directory while Tru64 will put them in the object
5491 # directory.
5492 mkdir sub
5493
5494 am_cv_CC_dependencies_compiler_type=none
5495 if test "$am_compiler_list" = ""; then
5496 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5497 fi
5498 am__universal=false
5499 case " $depcc " in #(
5500 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5501 esac
5502
5503 for depmode in $am_compiler_list; do
5504 # Setup a source with many dependencies, because some compilers
5505 # like to wrap large dependency lists on column 80 (with \), and
5506 # we should not choose a depcomp mode which is confused by this.
5507 #
5508 # We need to recreate these files for each test, as the compiler may
5509 # overwrite some of them when testing with obscure command lines.
5510 # This happens at least with the AIX C compiler.
5511 : > sub/conftest.c
5512 for i in 1 2 3 4 5 6; do
5513 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5514 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5515 # Solaris 8's {/usr,}/bin/sh.
5516 touch sub/conftst$i.h
5517 done
5518 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5519
5520 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5521 # mode. It turns out that the SunPro C++ compiler does not properly
5522 # handle `-M -o', and we need to detect this. Also, some Intel
5523 # versions had trouble with output in subdirs
5524 am__obj=sub/conftest.${OBJEXT-o}
5525 am__minus_obj="-o $am__obj"
5526 case $depmode in
5527 gcc)
5528 # This depmode causes a compiler race in universal mode.
5529 test "$am__universal" = false || continue
5530 ;;
5531 nosideeffect)
5532 # after this tag, mechanisms are not by side-effect, so they'll
5533 # only be used when explicitly requested
5534 if test "x$enable_dependency_tracking" = xyes; then
5535 continue
5536 else
5537 break
5538 fi
5539 ;;
5540 msvisualcpp | msvcmsys)
5541 # This compiler won't grok `-c -o', but also, the minuso test has
5542 # not run yet. These depmodes are late enough in the game, and
5543 # so weak that their functioning should not be impacted.
5544 am__obj=conftest.${OBJEXT-o}
5545 am__minus_obj=
5546 ;;
5547 none) break ;;
5548 esac
5549 if depmode=$depmode \
5550 source=sub/conftest.c object=$am__obj \
5551 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5552 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5553 >/dev/null 2>conftest.err &&
5554 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5555 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5556 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5557 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5558 # icc doesn't choke on unknown options, it will just issue warnings
5559 # or remarks (even with -Werror). So we grep stderr for any message
5560 # that says an option was ignored or not supported.
5561 # When given -MP, icc 7.0 and 7.1 complain thusly:
5562 # icc: Command line warning: ignoring option '-M'; no argument required
5563 # The diagnosis changed in icc 8.0:
5564 # icc: Command line remark: option '-MP' not supported
5565 if (grep 'ignoring option' conftest.err ||
5566 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5567 am_cv_CC_dependencies_compiler_type=$depmode
5568 break
5569 fi
5570 fi
5571 done
5572
5573 cd ..
5574 rm -rf conftest.dir
5575 else
5576 am_cv_CC_dependencies_compiler_type=none
5577 fi
5578
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5581 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5582 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5583
5584 if
5585 test "x$enable_dependency_tracking" != xno \
5586 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5587 am__fastdepCC_TRUE=
5588 am__fastdepCC_FALSE='#'
5589 else
5590 am__fastdepCC_TRUE='#'
5591 am__fastdepCC_FALSE=
5592 fi
5593
5594
5595 if test "x$CC" != xcc; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5597 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5600 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5601 fi
5602 set dummy $CC; ac_cc=`$as_echo "$2" |
5603 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5604 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609
5610 int
5611 main ()
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 # Make sure it works both with $CC and with simple cc.
5619 # We do the test twice because some compilers refuse to overwrite an
5620 # existing .o file with -o, though they will create one.
5621 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5622 rm -f conftest2.*
5623 if { { case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5628 $as_echo "$ac_try_echo"; } >&5
5629 (eval "$ac_try") 2>&5
5630 ac_status=$?
5631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5632 test $ac_status = 0; } &&
5633 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5638 $as_echo "$ac_try_echo"; } >&5
5639 (eval "$ac_try") 2>&5
5640 ac_status=$?
5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642 test $ac_status = 0; };
5643 then
5644 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5645 if test "x$CC" != xcc; then
5646 # Test first that cc exists at all.
5647 if { ac_try='cc -c conftest.$ac_ext >&5'
5648 { { case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651 esac
5652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5653 $as_echo "$ac_try_echo"; } >&5
5654 (eval "$ac_try") 2>&5
5655 ac_status=$?
5656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; }; }; then
5658 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5659 rm -f conftest2.*
5660 if { { case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_try") 2>&5
5667 ac_status=$?
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; } &&
5670 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5675 $as_echo "$ac_try_echo"; } >&5
5676 (eval "$ac_try") 2>&5
5677 ac_status=$?
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; };
5680 then
5681 # cc works too.
5682 :
5683 else
5684 # cc exists but doesn't like -o.
5685 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5686 fi
5687 fi
5688 fi
5689 else
5690 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5691 fi
5692 rm -f core conftest*
5693
5694 fi
5695 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697 $as_echo "yes" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701
5702 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5703
5704 fi
5705
5706 # FIXME: we rely on the cache variable name because
5707 # there is no other way.
5708 set dummy $CC
5709 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5710 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5711 if test "$am_t" != yes; then
5712 # Losing compiler, so override with the script.
5713 # FIXME: It is wrong to rewrite CC.
5714 # But if we don't then we get into trouble of one sort or another.
5715 # A longer-term fix would be to have automake use am__CC in this case,
5716 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5717 CC="$am_aux_dir/compile $CC"
5718 fi
5719
5720
5721
5722 if test x$GCC = xyes; then
5723 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5724 else
5725 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5726 fi
5727
5728 # Avoid gnulib's threadlib module, as we do threads our own way.
5729
5730
5731 # Initialize gnulib right after choosing the compiler.
5732
5733 ac_ext=c
5734 ac_cpp='$CPP $CPPFLAGS'
5735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5739 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5740 # On Suns, sometimes $CPP names a directory.
5741 if test -n "$CPP" && test -d "$CPP"; then
5742 CPP=
5743 fi
5744 if test -z "$CPP"; then
5745 if test "${ac_cv_prog_CPP+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 # Double quotes because CPP needs to be expanded
5749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5750 do
5751 ac_preproc_ok=false
5752 for ac_c_preproc_warn_flag in '' yes
5753 do
5754 # Use a header file that comes with gcc, so configuring glibc
5755 # with a fresh cross-compiler works.
5756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757 # <limits.h> exists even on freestanding compilers.
5758 # On the NeXT, cc -E runs the code through the compiler's parser,
5759 # not just through cpp. "Syntax error" is here to catch this case.
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #ifdef __STDC__
5763 # include <limits.h>
5764 #else
5765 # include <assert.h>
5766 #endif
5767 Syntax error
5768 _ACEOF
5769 if ac_fn_c_try_cpp "$LINENO"; then :
5770
5771 else
5772 # Broken: fails on valid input.
5773 continue
5774 fi
5775 rm -f conftest.err conftest.$ac_ext
5776
5777 # OK, works on sane cases. Now check whether nonexistent headers
5778 # can be detected and how.
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 #include <ac_nonexistent.h>
5782 _ACEOF
5783 if ac_fn_c_try_cpp "$LINENO"; then :
5784 # Broken: success on invalid input.
5785 continue
5786 else
5787 # Passes both tests.
5788 ac_preproc_ok=:
5789 break
5790 fi
5791 rm -f conftest.err conftest.$ac_ext
5792
5793 done
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.err conftest.$ac_ext
5796 if $ac_preproc_ok; then :
5797 break
5798 fi
5799
5800 done
5801 ac_cv_prog_CPP=$CPP
5802
5803 fi
5804 CPP=$ac_cv_prog_CPP
5805 else
5806 ac_cv_prog_CPP=$CPP
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5809 $as_echo "$CPP" >&6; }
5810 ac_preproc_ok=false
5811 for ac_c_preproc_warn_flag in '' yes
5812 do
5813 # Use a header file that comes with gcc, so configuring glibc
5814 # with a fresh cross-compiler works.
5815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5816 # <limits.h> exists even on freestanding compilers.
5817 # On the NeXT, cc -E runs the code through the compiler's parser,
5818 # not just through cpp. "Syntax error" is here to catch this case.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #ifdef __STDC__
5822 # include <limits.h>
5823 #else
5824 # include <assert.h>
5825 #endif
5826 Syntax error
5827 _ACEOF
5828 if ac_fn_c_try_cpp "$LINENO"; then :
5829
5830 else
5831 # Broken: fails on valid input.
5832 continue
5833 fi
5834 rm -f conftest.err conftest.$ac_ext
5835
5836 # OK, works on sane cases. Now check whether nonexistent headers
5837 # can be detected and how.
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 #include <ac_nonexistent.h>
5841 _ACEOF
5842 if ac_fn_c_try_cpp "$LINENO"; then :
5843 # Broken: success on invalid input.
5844 continue
5845 else
5846 # Passes both tests.
5847 ac_preproc_ok=:
5848 break
5849 fi
5850 rm -f conftest.err conftest.$ac_ext
5851
5852 done
5853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5854 rm -f conftest.err conftest.$ac_ext
5855 if $ac_preproc_ok; then :
5856
5857 else
5858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5860 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5861 See \`config.log' for more details." "$LINENO" 5; }
5862 fi
5863
5864 ac_ext=c
5865 ac_cpp='$CPP $CPPFLAGS'
5866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869
5870
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5872 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5873 if test "${ac_cv_path_GREP+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if test -z "$GREP"; then
5877 ac_path_GREP_found=false
5878 # Loop through the user's path and test for each of PROGNAME-LIST
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5881 do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_prog in grep ggrep; do
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5887 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5888 # Check for GNU ac_path_GREP and select it if it is found.
5889 # Check for GNU $ac_path_GREP
5890 case `"$ac_path_GREP" --version 2>&1` in
5891 *GNU*)
5892 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5893 *)
5894 ac_count=0
5895 $as_echo_n 0123456789 >"conftest.in"
5896 while :
5897 do
5898 cat "conftest.in" "conftest.in" >"conftest.tmp"
5899 mv "conftest.tmp" "conftest.in"
5900 cp "conftest.in" "conftest.nl"
5901 $as_echo 'GREP' >> "conftest.nl"
5902 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5904 as_fn_arith $ac_count + 1 && ac_count=$as_val
5905 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5906 # Best one so far, save it but keep looking for a better one
5907 ac_cv_path_GREP="$ac_path_GREP"
5908 ac_path_GREP_max=$ac_count
5909 fi
5910 # 10*(2^10) chars as input seems more than enough
5911 test $ac_count -gt 10 && break
5912 done
5913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5914 esac
5915
5916 $ac_path_GREP_found && break 3
5917 done
5918 done
5919 done
5920 IFS=$as_save_IFS
5921 if test -z "$ac_cv_path_GREP"; then
5922 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5923 fi
5924 else
5925 ac_cv_path_GREP=$GREP
5926 fi
5927
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5930 $as_echo "$ac_cv_path_GREP" >&6; }
5931 GREP="$ac_cv_path_GREP"
5932
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5935 $as_echo_n "checking for egrep... " >&6; }
5936 if test "${ac_cv_path_EGREP+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5940 then ac_cv_path_EGREP="$GREP -E"
5941 else
5942 if test -z "$EGREP"; then
5943 ac_path_EGREP_found=false
5944 # Loop through the user's path and test for each of PROGNAME-LIST
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5947 do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_prog in egrep; do
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5953 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5954 # Check for GNU ac_path_EGREP and select it if it is found.
5955 # Check for GNU $ac_path_EGREP
5956 case `"$ac_path_EGREP" --version 2>&1` in
5957 *GNU*)
5958 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5959 *)
5960 ac_count=0
5961 $as_echo_n 0123456789 >"conftest.in"
5962 while :
5963 do
5964 cat "conftest.in" "conftest.in" >"conftest.tmp"
5965 mv "conftest.tmp" "conftest.in"
5966 cp "conftest.in" "conftest.nl"
5967 $as_echo 'EGREP' >> "conftest.nl"
5968 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5970 as_fn_arith $ac_count + 1 && ac_count=$as_val
5971 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5972 # Best one so far, save it but keep looking for a better one
5973 ac_cv_path_EGREP="$ac_path_EGREP"
5974 ac_path_EGREP_max=$ac_count
5975 fi
5976 # 10*(2^10) chars as input seems more than enough
5977 test $ac_count -gt 10 && break
5978 done
5979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5980 esac
5981
5982 $ac_path_EGREP_found && break 3
5983 done
5984 done
5985 done
5986 IFS=$as_save_IFS
5987 if test -z "$ac_cv_path_EGREP"; then
5988 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5989 fi
5990 else
5991 ac_cv_path_EGREP=$EGREP
5992 fi
5993
5994 fi
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5997 $as_echo "$ac_cv_path_EGREP" >&6; }
5998 EGREP="$ac_cv_path_EGREP"
5999
6000
6001
6002
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6004 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6005 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011
6012 #ifdef __ACK__
6013 Amsterdam
6014 #endif
6015
6016 _ACEOF
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6019 gl_cv_c_amsterdam_compiler=yes
6020 else
6021 gl_cv_c_amsterdam_compiler=no
6022 fi
6023 rm -f conftest*
6024
6025
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6028 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6029 if test -z "$AR"; then
6030 if test $gl_cv_c_amsterdam_compiler = yes; then
6031 AR='cc -c.a'
6032 if test -z "$ARFLAGS"; then
6033 ARFLAGS='-o'
6034 fi
6035 else
6036 if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}ar; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_AR+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 if test -n "$AR"; then
6045 ac_cv_prog_AR="$AR" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_AR="${ac_tool_prefix}ar"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6057 fi
6058 done
6059 done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 AR=$ac_cv_prog_AR
6065 if test -n "$AR"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6067 $as_echo "$AR" >&6; }
6068 else
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073
6074 fi
6075 if test -z "$ac_cv_prog_AR"; then
6076 ac_ct_AR=$AR
6077 # Extract the first word of "ar", so it can be a program name with args.
6078 set dummy ar; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 if test -n "$ac_ct_AR"; then
6085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_ac_ct_AR="ar"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098 done
6099 done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6105 if test -n "$ac_ct_AR"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6107 $as_echo "$ac_ct_AR" >&6; }
6108 else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113 if test "x$ac_ct_AR" = x; then
6114 AR="ar"
6115 else
6116 case $cross_compiling:$ac_tool_warned in
6117 yes:)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122 AR=$ac_ct_AR
6123 fi
6124 else
6125 AR="$ac_cv_prog_AR"
6126 fi
6127
6128 if test -z "$ARFLAGS"; then
6129 ARFLAGS='cru'
6130 fi
6131 fi
6132 else
6133 if test -z "$ARFLAGS"; then
6134 ARFLAGS='cru'
6135 fi
6136 fi
6137
6138
6139 if test -z "$RANLIB"; then
6140 if test $gl_cv_c_amsterdam_compiler = yes; then
6141 RANLIB=':'
6142 else
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$RANLIB"; then
6152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 RANLIB=$ac_cv_prog_RANLIB
6172 if test -n "$RANLIB"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6174 $as_echo "$RANLIB" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180
6181 fi
6182 if test -z "$ac_cv_prog_RANLIB"; then
6183 ac_ct_RANLIB=$RANLIB
6184 # Extract the first word of "ranlib", so it can be a program name with args.
6185 set dummy ranlib; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$ac_ct_RANLIB"; then
6192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_RANLIB="ranlib"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6212 if test -n "$ac_ct_RANLIB"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6214 $as_echo "$ac_ct_RANLIB" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220 if test "x$ac_ct_RANLIB" = x; then
6221 RANLIB=":"
6222 else
6223 case $cross_compiling:$ac_tool_warned in
6224 yes:)
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229 RANLIB=$ac_ct_RANLIB
6230 fi
6231 else
6232 RANLIB="$ac_cv_prog_RANLIB"
6233 fi
6234
6235 fi
6236 fi
6237
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6240 $as_echo_n "checking for ANSI C header files... " >&6; }
6241 if test "${ac_cv_header_stdc+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <stdlib.h>
6247 #include <stdarg.h>
6248 #include <string.h>
6249 #include <float.h>
6250
6251 int
6252 main ()
6253 {
6254
6255 ;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 ac_cv_header_stdc=yes
6261 else
6262 ac_cv_header_stdc=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265
6266 if test $ac_cv_header_stdc = yes; then
6267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <string.h>
6271
6272 _ACEOF
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "memchr" >/dev/null 2>&1; then :
6275
6276 else
6277 ac_cv_header_stdc=no
6278 fi
6279 rm -f conftest*
6280
6281 fi
6282
6283 if test $ac_cv_header_stdc = yes; then
6284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 #include <stdlib.h>
6288
6289 _ACEOF
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "free" >/dev/null 2>&1; then :
6292
6293 else
6294 ac_cv_header_stdc=no
6295 fi
6296 rm -f conftest*
6297
6298 fi
6299
6300 if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then :
6303 :
6304 else
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6307 #include <ctype.h>
6308 #include <stdlib.h>
6309 #if ((' ' & 0x0FF) == 0x020)
6310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6312 #else
6313 # define ISLOWER(c) \
6314 (('a' <= (c) && (c) <= 'i') \
6315 || ('j' <= (c) && (c) <= 'r') \
6316 || ('s' <= (c) && (c) <= 'z'))
6317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6318 #endif
6319
6320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 int
6322 main ()
6323 {
6324 int i;
6325 for (i = 0; i < 256; i++)
6326 if (XOR (islower (i), ISLOWER (i))
6327 || toupper (i) != TOUPPER (i))
6328 return 2;
6329 return 0;
6330 }
6331 _ACEOF
6332 if ac_fn_c_try_run "$LINENO"; then :
6333
6334 else
6335 ac_cv_header_stdc=no
6336 fi
6337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6338 conftest.$ac_objext conftest.beam conftest.$ac_ext
6339 fi
6340
6341 fi
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6344 $as_echo "$ac_cv_header_stdc" >&6; }
6345 if test $ac_cv_header_stdc = yes; then
6346
6347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6348
6349 fi
6350
6351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6353 inttypes.h stdint.h unistd.h
6354 do :
6355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6357 "
6358 eval as_val=\$$as_ac_Header
6359 if test "x$as_val" = x""yes; then :
6360 cat >>confdefs.h <<_ACEOF
6361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6362 _ACEOF
6363
6364 fi
6365
6366 done
6367
6368
6369
6370
6371
6372 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6373 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6374 MINIX=yes
6375 else
6376 MINIX=
6377 fi
6378
6379
6380 if test "$MINIX" = yes; then
6381
6382 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6383
6384
6385 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6386
6387
6388 $as_echo "#define _MINIX 1" >>confdefs.h
6389
6390 fi
6391
6392 case "$host_os" in
6393 hpux*)
6394
6395 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6396
6397 ;;
6398 esac
6399
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6402 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6403 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408
6409 # define __EXTENSIONS__ 1
6410 $ac_includes_default
6411 int
6412 main ()
6413 {
6414
6415 ;
6416 return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_compile "$LINENO"; then :
6420 ac_cv_safe_to_define___extensions__=yes
6421 else
6422 ac_cv_safe_to_define___extensions__=no
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6427 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6428 test $ac_cv_safe_to_define___extensions__ = yes &&
6429 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6430
6431 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6432
6433 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6434
6435 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6436
6437 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6438
6439 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6440
6441
6442
6443
6444
6445
6446
6447
6448 # Check whether --enable-largefile was given.
6449 if test "${enable_largefile+set}" = set; then :
6450 enableval=$enable_largefile;
6451 fi
6452
6453 if test "$enable_largefile" != no; then
6454
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6456 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6457 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 ac_cv_sys_largefile_CC=no
6461 if test "$GCC" != yes; then
6462 ac_save_CC=$CC
6463 while :; do
6464 # IRIX 6.2 and later do not support large files by default,
6465 # so use the C compiler's -n32 option if that helps.
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <sys/types.h>
6469 /* Check that off_t can represent 2**63 - 1 correctly.
6470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6471 since some C++ compilers masquerading as C compilers
6472 incorrectly reject 9223372036854775807. */
6473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6475 && LARGE_OFF_T % 2147483647 == 1)
6476 ? 1 : -1];
6477 int
6478 main ()
6479 {
6480
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 break
6487 fi
6488 rm -f core conftest.err conftest.$ac_objext
6489 CC="$CC -n32"
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 ac_cv_sys_largefile_CC=' -n32'; break
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext
6494 break
6495 done
6496 CC=$ac_save_CC
6497 rm -f conftest.$ac_ext
6498 fi
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6501 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6502 if test "$ac_cv_sys_largefile_CC" != no; then
6503 CC=$CC$ac_cv_sys_largefile_CC
6504 fi
6505
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6507 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6508 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 while :; do
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <sys/types.h>
6515 /* Check that off_t can represent 2**63 - 1 correctly.
6516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6517 since some C++ compilers masquerading as C compilers
6518 incorrectly reject 9223372036854775807. */
6519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6521 && LARGE_OFF_T % 2147483647 == 1)
6522 ? 1 : -1];
6523 int
6524 main ()
6525 {
6526
6527 ;
6528 return 0;
6529 }
6530 _ACEOF
6531 if ac_fn_c_try_compile "$LINENO"; then :
6532 ac_cv_sys_file_offset_bits=no; break
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 #define _FILE_OFFSET_BITS 64
6538 #include <sys/types.h>
6539 /* Check that off_t can represent 2**63 - 1 correctly.
6540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6541 since some C++ compilers masquerading as C compilers
6542 incorrectly reject 9223372036854775807. */
6543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6545 && LARGE_OFF_T % 2147483647 == 1)
6546 ? 1 : -1];
6547 int
6548 main ()
6549 {
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 ac_cv_sys_file_offset_bits=64; break
6557 fi
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 ac_cv_sys_file_offset_bits=unknown
6560 break
6561 done
6562 fi
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6564 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6565 case $ac_cv_sys_file_offset_bits in #(
6566 no | unknown) ;;
6567 *)
6568 cat >>confdefs.h <<_ACEOF
6569 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6570 _ACEOF
6571 ;;
6572 esac
6573 rm -rf conftest*
6574 if test $ac_cv_sys_file_offset_bits = unknown; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6576 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6577 if test "${ac_cv_sys_large_files+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 while :; do
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 #include <sys/types.h>
6584 /* Check that off_t can represent 2**63 - 1 correctly.
6585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6586 since some C++ compilers masquerading as C compilers
6587 incorrectly reject 9223372036854775807. */
6588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6590 && LARGE_OFF_T % 2147483647 == 1)
6591 ? 1 : -1];
6592 int
6593 main ()
6594 {
6595
6596 ;
6597 return 0;
6598 }
6599 _ACEOF
6600 if ac_fn_c_try_compile "$LINENO"; then :
6601 ac_cv_sys_large_files=no; break
6602 fi
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 #define _LARGE_FILES 1
6607 #include <sys/types.h>
6608 /* Check that off_t can represent 2**63 - 1 correctly.
6609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6610 since some C++ compilers masquerading as C compilers
6611 incorrectly reject 9223372036854775807. */
6612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6614 && LARGE_OFF_T % 2147483647 == 1)
6615 ? 1 : -1];
6616 int
6617 main ()
6618 {
6619
6620 ;
6621 return 0;
6622 }
6623 _ACEOF
6624 if ac_fn_c_try_compile "$LINENO"; then :
6625 ac_cv_sys_large_files=1; break
6626 fi
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 ac_cv_sys_large_files=unknown
6629 break
6630 done
6631 fi
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6633 $as_echo "$ac_cv_sys_large_files" >&6; }
6634 case $ac_cv_sys_large_files in #(
6635 no | unknown) ;;
6636 *)
6637 cat >>confdefs.h <<_ACEOF
6638 #define _LARGE_FILES $ac_cv_sys_large_files
6639 _ACEOF
6640 ;;
6641 esac
6642 rm -rf conftest*
6643 fi
6644
6645
6646 fi
6647
6648 case $ac_cv_prog_cc_stdc in #(
6649 no) :
6650 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6651 *) :
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6653 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6654 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 ac_cv_prog_cc_c99=no
6658 ac_save_CC=$CC
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6661 #include <stdarg.h>
6662 #include <stdbool.h>
6663 #include <stdlib.h>
6664 #include <wchar.h>
6665 #include <stdio.h>
6666
6667 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6668 #define debug(...) fprintf (stderr, __VA_ARGS__)
6669 #define showlist(...) puts (#__VA_ARGS__)
6670 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6671 static void
6672 test_varargs_macros (void)
6673 {
6674 int x = 1234;
6675 int y = 5678;
6676 debug ("Flag");
6677 debug ("X = %d\n", x);
6678 showlist (The first, second, and third items.);
6679 report (x>y, "x is %d but y is %d", x, y);
6680 }
6681
6682 // Check long long types.
6683 #define BIG64 18446744073709551615ull
6684 #define BIG32 4294967295ul
6685 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6686 #if !BIG_OK
6687 your preprocessor is broken;
6688 #endif
6689 #if BIG_OK
6690 #else
6691 your preprocessor is broken;
6692 #endif
6693 static long long int bignum = -9223372036854775807LL;
6694 static unsigned long long int ubignum = BIG64;
6695
6696 struct incomplete_array
6697 {
6698 int datasize;
6699 double data[];
6700 };
6701
6702 struct named_init {
6703 int number;
6704 const wchar_t *name;
6705 double average;
6706 };
6707
6708 typedef const char *ccp;
6709
6710 static inline int
6711 test_restrict (ccp restrict text)
6712 {
6713 // See if C++-style comments work.
6714 // Iterate through items via the restricted pointer.
6715 // Also check for declarations in for loops.
6716 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6717 continue;
6718 return 0;
6719 }
6720
6721 // Check varargs and va_copy.
6722 static void
6723 test_varargs (const char *format, ...)
6724 {
6725 va_list args;
6726 va_start (args, format);
6727 va_list args_copy;
6728 va_copy (args_copy, args);
6729
6730 const char *str;
6731 int number;
6732 float fnumber;
6733
6734 while (*format)
6735 {
6736 switch (*format++)
6737 {
6738 case 's': // string
6739 str = va_arg (args_copy, const char *);
6740 break;
6741 case 'd': // int
6742 number = va_arg (args_copy, int);
6743 break;
6744 case 'f': // float
6745 fnumber = va_arg (args_copy, double);
6746 break;
6747 default:
6748 break;
6749 }
6750 }
6751 va_end (args_copy);
6752 va_end (args);
6753 }
6754
6755 int
6756 main ()
6757 {
6758
6759 // Check bool.
6760 _Bool success = false;
6761
6762 // Check restrict.
6763 if (test_restrict ("String literal") == 0)
6764 success = true;
6765 char *restrict newvar = "Another string";
6766
6767 // Check varargs.
6768 test_varargs ("s, d' f .", "string", 65, 34.234);
6769 test_varargs_macros ();
6770
6771 // Check flexible array members.
6772 struct incomplete_array *ia =
6773 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6774 ia->datasize = 10;
6775 for (int i = 0; i < ia->datasize; ++i)
6776 ia->data[i] = i * 1.234;
6777
6778 // Check named initializers.
6779 struct named_init ni = {
6780 .number = 34,
6781 .name = L"Test wide string",
6782 .average = 543.34343,
6783 };
6784
6785 ni.number = 58;
6786
6787 int dynamic_array[ni.number];
6788 dynamic_array[ni.number - 1] = 543;
6789
6790 // work around unused variable warnings
6791 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6792 || dynamic_array[ni.number - 1] != 543);
6793
6794 ;
6795 return 0;
6796 }
6797 _ACEOF
6798 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6799 do
6800 CC="$ac_save_CC $ac_arg"
6801 if ac_fn_c_try_compile "$LINENO"; then :
6802 ac_cv_prog_cc_c99=$ac_arg
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext
6805 test "x$ac_cv_prog_cc_c99" != "xno" && break
6806 done
6807 rm -f conftest.$ac_ext
6808 CC=$ac_save_CC
6809
6810 fi
6811 # AC_CACHE_VAL
6812 case "x$ac_cv_prog_cc_c99" in
6813 x)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6815 $as_echo "none needed" >&6; } ;;
6816 xno)
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6818 $as_echo "unsupported" >&6; } ;;
6819 *)
6820 CC="$CC $ac_cv_prog_cc_c99"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6822 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6823 esac
6824 if test "x$ac_cv_prog_cc_c99" != xno; then :
6825 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6829 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 ac_cv_prog_cc_c89=no
6833 ac_save_CC=$CC
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 #include <stdarg.h>
6837 #include <stdio.h>
6838 #include <sys/types.h>
6839 #include <sys/stat.h>
6840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6841 struct buf { int x; };
6842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6843 static char *e (p, i)
6844 char **p;
6845 int i;
6846 {
6847 return p[i];
6848 }
6849 static char *f (char * (*g) (char **, int), char **p, ...)
6850 {
6851 char *s;
6852 va_list v;
6853 va_start (v,p);
6854 s = g (p, va_arg (v,int));
6855 va_end (v);
6856 return s;
6857 }
6858
6859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6860 function prototypes and stuff, but not '\xHH' hex character constants.
6861 These don't provoke an error unfortunately, instead are silently treated
6862 as 'x'. The following induces an error, until -std is added to get
6863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6864 array size at least. It's necessary to write '\x00'==0 to get something
6865 that's true only with -std. */
6866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6867
6868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6869 inside strings and character constants. */
6870 #define FOO(x) 'x'
6871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6872
6873 int test (int i, double x);
6874 struct s1 {int (*f) (int a);};
6875 struct s2 {int (*f) (double a);};
6876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6877 int argc;
6878 char **argv;
6879 int
6880 main ()
6881 {
6882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6889 do
6890 CC="$ac_save_CC $ac_arg"
6891 if ac_fn_c_try_compile "$LINENO"; then :
6892 ac_cv_prog_cc_c89=$ac_arg
6893 fi
6894 rm -f core conftest.err conftest.$ac_objext
6895 test "x$ac_cv_prog_cc_c89" != "xno" && break
6896 done
6897 rm -f conftest.$ac_ext
6898 CC=$ac_save_CC
6899
6900 fi
6901 # AC_CACHE_VAL
6902 case "x$ac_cv_prog_cc_c89" in
6903 x)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6905 $as_echo "none needed" >&6; } ;;
6906 xno)
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6908 $as_echo "unsupported" >&6; } ;;
6909 *)
6910 CC="$CC $ac_cv_prog_cc_c89"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6913 esac
6914 if test "x$ac_cv_prog_cc_c89" != xno; then :
6915 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6916 else
6917 ac_cv_prog_cc_stdc=no
6918 fi
6919
6920 fi
6921 ;;
6922 esac
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6924 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6925 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 fi
6928
6929 case $ac_cv_prog_cc_stdc in #(
6930 no) :
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6932 $as_echo "unsupported" >&6; } ;; #(
6933 '') :
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6935 $as_echo "none needed" >&6; } ;; #(
6936 *) :
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6938 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6939 esac
6940
6941
6942
6943 # Code from module alloca-opt:
6944 # Code from module allocator:
6945 # Code from module c-ctype:
6946 # Code from module c-strcase:
6947 # Code from module careadlinkat:
6948 # Code from module clock-time:
6949 # Code from module crypto/md5:
6950 # Code from module crypto/sha1:
6951 # Code from module crypto/sha256:
6952 # Code from module crypto/sha512:
6953 # Code from module dosname:
6954 # Code from module dtoastr:
6955 # Code from module dtotimespec:
6956 # Code from module dup2:
6957 # Code from module environ:
6958 # Code from module execinfo:
6959 # Code from module extensions:
6960
6961 # Code from module extern-inline:
6962 # Code from module filemode:
6963 # Code from module getloadavg:
6964 # Code from module getopt-gnu:
6965 # Code from module getopt-posix:
6966 # Code from module gettext-h:
6967 # Code from module gettime:
6968 # Code from module gettimeofday:
6969 # Code from module ignore-value:
6970 # Code from module include_next:
6971 # Code from module intprops:
6972 # Code from module inttypes-incomplete:
6973 # Code from module largefile:
6974
6975 # Code from module lstat:
6976 # Code from module manywarnings:
6977 # Code from module mktime:
6978 # Code from module multiarch:
6979 # Code from module nocrash:
6980 # Code from module pathmax:
6981 # Code from module pselect:
6982 # Code from module pthread_sigmask:
6983 # Code from module readlink:
6984 # Code from module signal-h:
6985 # Code from module snippet/_Noreturn:
6986 # Code from module snippet/arg-nonnull:
6987 # Code from module snippet/c++defs:
6988 # Code from module snippet/warn-on-use:
6989 # Code from module socklen:
6990 # Code from module ssize_t:
6991 # Code from module stat:
6992 # Code from module stat-time:
6993 # Code from module stdalign:
6994 # Code from module stdarg:
6995
6996
6997
6998 # Code from module stdbool:
6999 # Code from module stddef:
7000 # Code from module stdint:
7001 # Code from module stdio:
7002 # Code from module stdlib:
7003 # Code from module strftime:
7004 # Code from module strtoimax:
7005 # Code from module strtoll:
7006 # Code from module strtoull:
7007 # Code from module strtoumax:
7008 # Code from module symlink:
7009 # Code from module sys_select:
7010 # Code from module sys_stat:
7011 # Code from module sys_time:
7012 # Code from module time:
7013 # Code from module time_r:
7014 # Code from module timer-time:
7015 # Code from module timespec:
7016 # Code from module timespec-add:
7017 # Code from module timespec-sub:
7018 # Code from module u64:
7019 # Code from module unistd:
7020 # Code from module utimens:
7021 # Code from module verify:
7022 # Code from module warnings:
7023
7024
7025 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7026 # if -g3 works and the user does not specify CFLAGS.
7027 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7028 if test "$ac_test_CFLAGS" != set; then
7029 case $CFLAGS in
7030 '-g')
7031 emacs_g3_CFLAGS='-g3';;
7032 '-g -O2')
7033 emacs_g3_CFLAGS='-g3 -O2';;
7034 *)
7035 emacs_g3_CFLAGS='';;
7036 esac
7037 if test -n "$emacs_g3_CFLAGS"; then
7038 emacs_save_CFLAGS=$CFLAGS
7039 CFLAGS=$emacs_g3_CFLAGS
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7041 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7042 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047
7048 int
7049 main ()
7050 {
7051
7052 ;
7053 return 0;
7054 }
7055 _ACEOF
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 emacs_cv_prog_cc_g3=yes
7058 else
7059 emacs_cv_prog_cc_g3=no
7060 fi
7061 rm -f core conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 fi
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7065 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7066 if test $emacs_cv_prog_cc_g3 = yes; then
7067 CFLAGS=$emacs_g3_CFLAGS
7068 else
7069 CFLAGS=$emacs_save_CFLAGS
7070 fi
7071 fi
7072 fi
7073
7074 # Check whether --enable-gcc-warnings was given.
7075 if test "${enable_gcc_warnings+set}" = set; then :
7076 enableval=$enable_gcc_warnings; case $enableval in
7077 yes|no) ;;
7078 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7079 esac
7080 gl_gcc_warnings=$enableval
7081 else
7082 gl_gcc_warnings=no
7083
7084 fi
7085
7086
7087 # Check whether --enable-link-time-optimization was given.
7088 if test "${enable_link_time_optimization+set}" = set; then :
7089 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7091 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7092 ac_lto_supported=no
7093 if test x$GCC = xyes; then
7094 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7095 if test x$CPUS != x; then
7096 LTO="-flto=$CPUS"
7097 else
7098 LTO="-flto"
7099 fi
7100 old_CFLAGS=$CFLAGS
7101 CFLAGS="$CFLAGS $LTO"
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104
7105 int
7106 main ()
7107 {
7108
7109 ;
7110 return 0;
7111 }
7112 _ACEOF
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114 ac_lto_supported=yes
7115 else
7116 ac_lto_supported=no
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 CFLAGS="$old_CFLAGS"
7120 fi
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7122 $as_echo "$ac_lto_supported" >&6; }
7123 if test "$ac_lto_supported" = "yes"; then
7124 CFLAGS="$CFLAGS $LTO"
7125 fi
7126 fi
7127 fi
7128
7129
7130 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7131 # ------------------------------------------------
7132 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7133 # Otherwise, run RUN-IF-NOT-FOUND.
7134
7135
7136 # When compiling with GCC, prefer -isystem to -I when including system
7137 # include files, to avoid generating useless diagnostics for the files.
7138 if test "$gl_gcc_warnings" != yes; then
7139 isystem='-I'
7140 else
7141 isystem='-isystem '
7142
7143 # This, $nw, is the list of warnings we disable.
7144 nw=
7145
7146 case $with_x_toolkit in
7147 lucid | athena | motif)
7148 # Old toolkits mishandle 'const'.
7149 nw="$nw -Wwrite-strings"
7150 ;;
7151 *)
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7153 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7154 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157
7158 gl_save_compiler_FLAGS="$CFLAGS"
7159 as_fn_append CFLAGS " -Werror"
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162
7163 int
7164 main ()
7165 {
7166
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172 gl_cv_warn_c__Werror=yes
7173 else
7174 gl_cv_warn_c__Werror=no
7175 fi
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 CFLAGS="$gl_save_compiler_FLAGS"
7178
7179 fi
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7181 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7182 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7183 as_fn_append WERROR_CFLAGS " -Werror"
7184 fi
7185
7186
7187 ;;
7188 esac
7189
7190
7191 nw="$nw -Waggregate-return" # anachronistic
7192 nw="$nw -Wlong-long" # C90 is anachronistic
7193 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7194 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7195 nw="$nw -Wtraditional" # Warns on #elif which we use often
7196 nw="$nw -Wcast-qual" # Too many warnings for now
7197 nw="$nw -Wconversion" # Too many warnings for now
7198 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7199 nw="$nw -Wsign-conversion" # Too many warnings for now
7200 nw="$nw -Woverlength-strings" # Not a problem these days
7201 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7202 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7203 nw="$nw -Wpadded" # Our structs are not padded
7204 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7205 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7206 nw="$nw -Wformat-nonliteral" # we do this a lot
7207 nw="$nw -Wvla" # warnings in gettext.h
7208 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7209 nw="$nw -Wswitch-enum" # Too many warnings for now
7210 nw="$nw -Wswitch-default" # Too many warnings for now
7211 nw="$nw -Wfloat-equal" # warns about high-quality code
7212 nw="$nw -Winline" # OK to ignore 'inline'
7213 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7214 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7215 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7216
7217 # Emacs doesn't care about shadowing; see
7218 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7219 nw="$nw -Wshadow"
7220
7221 # The following lines should be removable at some point.
7222 nw="$nw -Wstack-protector"
7223 nw="$nw -Wstrict-overflow"
7224 nw="$nw -Wsuggest-attribute=pure"
7225
7226
7227
7228 if test -n "$GCC"; then
7229
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7231 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7232 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235
7236 gl_save_CFLAGS="$CFLAGS"
7237 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240
7241 int
7242 main ()
7243 {
7244
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 if ac_fn_c_try_compile "$LINENO"; then :
7250 gl_cv_cc_nomfi_supported=yes
7251 else
7252 gl_cv_cc_nomfi_supported=no
7253 fi
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 CFLAGS="$gl_save_CFLAGS"
7256 fi
7257
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7259 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7260
7261 if test "$gl_cv_cc_nomfi_supported" = yes; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7263 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7264 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267
7268 gl_save_CFLAGS="$CFLAGS"
7269 CFLAGS="$CFLAGS -W -Werror"
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 void f (void)
7273 {
7274 typedef struct { int a; int b; } s_t;
7275 s_t s1 = { 0, };
7276 }
7277
7278 int
7279 main ()
7280 {
7281
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 if ac_fn_c_try_compile "$LINENO"; then :
7287 gl_cv_cc_nomfi_needed=no
7288 else
7289 gl_cv_cc_nomfi_needed=yes
7290 fi
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 CFLAGS="$gl_save_CFLAGS"
7293
7294 fi
7295
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7297 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7298 fi
7299
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7301 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7302 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305
7306 gl_save_CFLAGS="$CFLAGS"
7307 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310
7311 int
7312 main ()
7313 {
7314
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 if ac_fn_c_try_compile "$LINENO"; then :
7320 gl_cv_cc_uninitialized_supported=yes
7321 else
7322 gl_cv_cc_uninitialized_supported=no
7323 fi
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 CFLAGS="$gl_save_CFLAGS"
7326 fi
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7329 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7330
7331 fi
7332
7333 # List all gcc warning categories.
7334 gl_manywarn_set=
7335 for gl_manywarn_item in \
7336 -W \
7337 -Wabi \
7338 -Waddress \
7339 -Wall \
7340 -Warray-bounds \
7341 -Wattributes \
7342 -Wbad-function-cast \
7343 -Wbuiltin-macro-redefined \
7344 -Wcast-align \
7345 -Wchar-subscripts \
7346 -Wclobbered \
7347 -Wcomment \
7348 -Wcomments \
7349 -Wcoverage-mismatch \
7350 -Wcpp \
7351 -Wdeprecated \
7352 -Wdeprecated-declarations \
7353 -Wdisabled-optimization \
7354 -Wdiv-by-zero \
7355 -Wdouble-promotion \
7356 -Wempty-body \
7357 -Wendif-labels \
7358 -Wenum-compare \
7359 -Wextra \
7360 -Wformat-contains-nul \
7361 -Wformat-extra-args \
7362 -Wformat-nonliteral \
7363 -Wformat-security \
7364 -Wformat-y2k \
7365 -Wformat-zero-length \
7366 -Wformat=2 \
7367 -Wfree-nonheap-object \
7368 -Wignored-qualifiers \
7369 -Wimplicit \
7370 -Wimplicit-function-declaration \
7371 -Wimplicit-int \
7372 -Winit-self \
7373 -Winline \
7374 -Wint-to-pointer-cast \
7375 -Winvalid-memory-model \
7376 -Winvalid-pch \
7377 -Wjump-misses-init \
7378 -Wlogical-op \
7379 -Wmain \
7380 -Wmaybe-uninitialized \
7381 -Wmissing-braces \
7382 -Wmissing-declarations \
7383 -Wmissing-field-initializers \
7384 -Wmissing-format-attribute \
7385 -Wmissing-include-dirs \
7386 -Wmissing-noreturn \
7387 -Wmissing-parameter-type \
7388 -Wmissing-prototypes \
7389 -Wmudflap \
7390 -Wmultichar \
7391 -Wnarrowing \
7392 -Wnested-externs \
7393 -Wnonnull \
7394 -Wnormalized=nfc \
7395 -Wold-style-declaration \
7396 -Wold-style-definition \
7397 -Woverflow \
7398 -Woverlength-strings \
7399 -Woverride-init \
7400 -Wpacked \
7401 -Wpacked-bitfield-compat \
7402 -Wparentheses \
7403 -Wpointer-arith \
7404 -Wpointer-sign \
7405 -Wpointer-to-int-cast \
7406 -Wpragmas \
7407 -Wreturn-type \
7408 -Wsequence-point \
7409 -Wshadow \
7410 -Wsizeof-pointer-memaccess \
7411 -Wstack-protector \
7412 -Wstrict-aliasing \
7413 -Wstrict-overflow \
7414 -Wstrict-prototypes \
7415 -Wsuggest-attribute=const \
7416 -Wsuggest-attribute=format \
7417 -Wsuggest-attribute=noreturn \
7418 -Wsuggest-attribute=pure \
7419 -Wswitch \
7420 -Wswitch-default \
7421 -Wsync-nand \
7422 -Wsystem-headers \
7423 -Wtrampolines \
7424 -Wtrigraphs \
7425 -Wtype-limits \
7426 -Wuninitialized \
7427 -Wunknown-pragmas \
7428 -Wunreachable-code \
7429 -Wunsafe-loop-optimizations \
7430 -Wunused \
7431 -Wunused-but-set-parameter \
7432 -Wunused-but-set-variable \
7433 -Wunused-function \
7434 -Wunused-label \
7435 -Wunused-local-typedefs \
7436 -Wunused-macros \
7437 -Wunused-parameter \
7438 -Wunused-result \
7439 -Wunused-value \
7440 -Wunused-variable \
7441 -Wvarargs \
7442 -Wvariadic-macros \
7443 -Wvector-operation-performance \
7444 -Wvla \
7445 -Wvolatile-register-var \
7446 -Wwrite-strings \
7447 \
7448 ; do
7449 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7450 done
7451
7452 # Disable specific options as needed.
7453 if test "$gl_cv_cc_nomfi_needed" = yes; then
7454 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7455 fi
7456
7457 if test "$gl_cv_cc_uninitialized_supported" = no; then
7458 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7459 fi
7460
7461 ws=$gl_manywarn_set
7462
7463
7464 gl_warn_set=
7465 set x $ws; shift
7466 for gl_warn_item
7467 do
7468 case " $nw " in
7469 *" $gl_warn_item "*)
7470 ;;
7471 *)
7472 gl_warn_set="$gl_warn_set $gl_warn_item"
7473 ;;
7474 esac
7475 done
7476 ws=$gl_warn_set
7477
7478 for w in $ws; do
7479 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7481 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7482 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485
7486 gl_save_compiler_FLAGS="$CFLAGS"
7487 as_fn_append CFLAGS " $w"
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490
7491 int
7492 main ()
7493 {
7494
7495 ;
7496 return 0;
7497 }
7498 _ACEOF
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500 eval "$as_gl_Warn=yes"
7501 else
7502 eval "$as_gl_Warn=no"
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 CFLAGS="$gl_save_compiler_FLAGS"
7506
7507 fi
7508 eval ac_res=\$$as_gl_Warn
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7510 $as_echo "$ac_res" >&6; }
7511 eval as_val=\$$as_gl_Warn
7512 if test "x$as_val" = x""yes; then :
7513 as_fn_append WARN_CFLAGS " $w"
7514 fi
7515
7516
7517 done
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7519 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7520 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523
7524 gl_save_compiler_FLAGS="$CFLAGS"
7525 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528
7529 int
7530 main ()
7531 {
7532
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538 gl_cv_warn_c__Wno_missing_field_initializers=yes
7539 else
7540 gl_cv_warn_c__Wno_missing_field_initializers=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 CFLAGS="$gl_save_compiler_FLAGS"
7544
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7547 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7548 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7549 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7550 fi
7551
7552 # We need this one
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7554 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7555 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558
7559 gl_save_compiler_FLAGS="$CFLAGS"
7560 as_fn_append CFLAGS " -Wno-sign-compare"
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563
7564 int
7565 main ()
7566 {
7567
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 gl_cv_warn_c__Wno_sign_compare=yes
7574 else
7575 gl_cv_warn_c__Wno_sign_compare=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 CFLAGS="$gl_save_compiler_FLAGS"
7579
7580 fi
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7582 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7583 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7584 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7585 fi
7586
7587 # Too many warnings for now
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7589 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7590 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593
7594 gl_save_compiler_FLAGS="$CFLAGS"
7595 as_fn_append CFLAGS " -Wno-type-limits"
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598
7599 int
7600 main ()
7601 {
7602
7603 ;
7604 return 0;
7605 }
7606 _ACEOF
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608 gl_cv_warn_c__Wno_type_limits=yes
7609 else
7610 gl_cv_warn_c__Wno_type_limits=no
7611 fi
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 CFLAGS="$gl_save_compiler_FLAGS"
7614
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7617 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7618 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7619 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7620 fi
7621
7622 # Too many warnings for now
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7624 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7625 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628
7629 gl_save_compiler_FLAGS="$CFLAGS"
7630 as_fn_append CFLAGS " -Wno-switch"
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633
7634 int
7635 main ()
7636 {
7637
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643 gl_cv_warn_c__Wno_switch=yes
7644 else
7645 gl_cv_warn_c__Wno_switch=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 CFLAGS="$gl_save_compiler_FLAGS"
7649
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7652 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7653 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7654 as_fn_append WARN_CFLAGS " -Wno-switch"
7655 fi
7656
7657 # Too many warnings for now
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7659 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7660 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663
7664 gl_save_compiler_FLAGS="$CFLAGS"
7665 as_fn_append CFLAGS " -Wno-unused-parameter"
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668
7669 int
7670 main ()
7671 {
7672
7673 ;
7674 return 0;
7675 }
7676 _ACEOF
7677 if ac_fn_c_try_compile "$LINENO"; then :
7678 gl_cv_warn_c__Wno_unused_parameter=yes
7679 else
7680 gl_cv_warn_c__Wno_unused_parameter=no
7681 fi
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 CFLAGS="$gl_save_compiler_FLAGS"
7684
7685 fi
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7687 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7688 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7689 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7690 fi
7691
7692 # Too many warnings for now
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7694 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7695 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698
7699 gl_save_compiler_FLAGS="$CFLAGS"
7700 as_fn_append CFLAGS " -Wno-format-nonliteral"
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703
7704 int
7705 main ()
7706 {
7707
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 gl_cv_warn_c__Wno_format_nonliteral=yes
7714 else
7715 gl_cv_warn_c__Wno_format_nonliteral=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 CFLAGS="$gl_save_compiler_FLAGS"
7719
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7722 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7723 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7724 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7725 fi
7726
7727
7728
7729 # In spite of excluding -Wlogical-op above, it is enabled, as of
7730 # gcc 4.5.0 20090517.
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7732 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7733 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736
7737 gl_save_compiler_FLAGS="$CFLAGS"
7738 as_fn_append CFLAGS " -Wno-logical-op"
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741
7742 int
7743 main ()
7744 {
7745
7746 ;
7747 return 0;
7748 }
7749 _ACEOF
7750 if ac_fn_c_try_compile "$LINENO"; then :
7751 gl_cv_warn_c__Wno_logical_op=yes
7752 else
7753 gl_cv_warn_c__Wno_logical_op=no
7754 fi
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 CFLAGS="$gl_save_compiler_FLAGS"
7757
7758 fi
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7760 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7761 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7762 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7763 fi
7764
7765
7766
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7768 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7769 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772
7773 gl_save_compiler_FLAGS="$CFLAGS"
7774 as_fn_append CFLAGS " -fdiagnostics-show-option"
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777
7778 int
7779 main ()
7780 {
7781
7782 ;
7783 return 0;
7784 }
7785 _ACEOF
7786 if ac_fn_c_try_compile "$LINENO"; then :
7787 gl_cv_warn_c__fdiagnostics_show_option=yes
7788 else
7789 gl_cv_warn_c__fdiagnostics_show_option=no
7790 fi
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 CFLAGS="$gl_save_compiler_FLAGS"
7793
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7796 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7797 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7798 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7799 fi
7800
7801
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7803 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7804 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807
7808 gl_save_compiler_FLAGS="$CFLAGS"
7809 as_fn_append CFLAGS " -funit-at-a-time"
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812
7813 int
7814 main ()
7815 {
7816
7817 ;
7818 return 0;
7819 }
7820 _ACEOF
7821 if ac_fn_c_try_compile "$LINENO"; then :
7822 gl_cv_warn_c__funit_at_a_time=yes
7823 else
7824 gl_cv_warn_c__funit_at_a_time=no
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 CFLAGS="$gl_save_compiler_FLAGS"
7828
7829 fi
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7831 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7832 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7833 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7834 fi
7835
7836
7837
7838
7839 $as_echo "#define lint 1" >>confdefs.h
7840
7841
7842
7843 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7844
7845
7846 # We use a slightly smaller set of warning options for lib/.
7847 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7848 nw=
7849 nw="$nw -Wunused-macros"
7850
7851
7852 gl_warn_set=
7853 set x $WARN_CFLAGS; shift
7854 for gl_warn_item
7855 do
7856 case " $nw " in
7857 *" $gl_warn_item "*)
7858 ;;
7859 *)
7860 gl_warn_set="$gl_warn_set $gl_warn_item"
7861 ;;
7862 esac
7863 done
7864 GNULIB_WARN_CFLAGS=$gl_warn_set
7865
7866
7867 fi
7868
7869
7870
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7872 $as_echo_n "checking whether ln -s works... " >&6; }
7873 LN_S=$as_ln_s
7874 if test "$LN_S" = "ln -s"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7876 $as_echo "yes" >&6; }
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7879 $as_echo "no, using $LN_S" >&6; }
7880 fi
7881
7882
7883 # Extract the first word of "install-info", so it can be a program name with args.
7884 set dummy install-info; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 case $INSTALL_INFO in
7891 [\\/]* | ?:[\\/]*)
7892 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7893 ;;
7894 *)
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7897 do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906 done
7907 done
7908 IFS=$as_save_IFS
7909
7910 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7911 ;;
7912 esac
7913 fi
7914 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7915 if test -n "$INSTALL_INFO"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7917 $as_echo "$INSTALL_INFO" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923
7924 # Extract the first word of "gzip", so it can be a program name with args.
7925 set dummy gzip; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 case $GZIP_PROG in
7932 [\\/]* | ?:[\\/]*)
7933 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7934 ;;
7935 *)
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 break 2
7946 fi
7947 done
7948 done
7949 IFS=$as_save_IFS
7950
7951 ;;
7952 esac
7953 fi
7954 GZIP_PROG=$ac_cv_path_GZIP_PROG
7955 if test -n "$GZIP_PROG"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7957 $as_echo "$GZIP_PROG" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963
7964
7965 if test $opsys = gnu-linux; then
7966 # Extract the first word of "paxctl", so it can be a program name with args.
7967 set dummy paxctl; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 case $PAXCTL in
7974 [\\/]* | ?:[\\/]*)
7975 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7976 ;;
7977 *)
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7980 do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989 done
7990 done
7991 IFS=$as_save_IFS
7992
7993 ;;
7994 esac
7995 fi
7996 PAXCTL=$ac_cv_path_PAXCTL
7997 if test -n "$PAXCTL"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7999 $as_echo "$PAXCTL" >&6; }
8000 else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 fi
8004
8005
8006 if test "X$PAXCTL" != X; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8008 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011
8012 int
8013 main ()
8014 {
8015
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_link "$LINENO"; then :
8021 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8022 $as_echo "yes" >&6; }
8023 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }; PAXCTL=""; fi
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 fi
8029 fi
8030
8031 ## Need makeinfo >= 4.7 (?) to build the manuals.
8032 # Extract the first word of "makeinfo", so it can be a program name with args.
8033 set dummy makeinfo; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 case $MAKEINFO in
8040 [\\/]* | ?:[\\/]*)
8041 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8042 ;;
8043 *)
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8054 fi
8055 done
8056 done
8057 IFS=$as_save_IFS
8058
8059 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8060 ;;
8061 esac
8062 fi
8063 MAKEINFO=$ac_cv_path_MAKEINFO
8064 if test -n "$MAKEINFO"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8066 $as_echo "$MAKEINFO" >&6; }
8067 else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071
8072
8073 if test "$MAKEINFO" != "no" && \
8074 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
8075 MAKEINFO=no
8076 fi
8077
8078 ## Makeinfo is unusual. For a released Emacs, the manuals are
8079 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8080 ## therefore in the category of "special tools" not normally required, which
8081 ## configure does not have to check for (eg autoconf itself).
8082 ## In a Bazaar checkout on the other hand, the manuals are not included.
8083 ## So makeinfo is a requirement to build from Bazaar, and configure
8084 ## should test for it as it does for any other build requirement.
8085 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8086 ## with pre-built manuals, from a Bazaar checkout.
8087 HAVE_MAKEINFO=yes
8088
8089 if test "$MAKEINFO" = "no"; then
8090 MAKEINFO=makeinfo
8091 if test "x${with_makeinfo}" = "xno"; then
8092 HAVE_MAKEINFO=no
8093 elif test ! -e $srcdir/info/emacs; then
8094 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8095 source tree does not seem to have pre-built manuals in the \`info' directory.
8096 Either install a suitable version of makeinfo, or re-run configure
8097 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8098 fi
8099 fi
8100
8101
8102 INFO_EXT=.info
8103 INFO_OPTS=--no-split
8104
8105
8106
8107
8108 if test x$GCC = xyes; then
8109 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8110 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8111 else
8112 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8113 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8114 fi
8115
8116
8117 late_LDFLAGS=$LDFLAGS
8118 if test x$GCC = xyes; then
8119 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8120 else
8121 LDFLAGS="$LDFLAGS -znocombreloc"
8122 fi
8123
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8125 $as_echo_n "checking for -znocombreloc... " >&6; }
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128
8129 int
8130 main ()
8131 {
8132
8133 ;
8134 return 0;
8135 }
8136 _ACEOF
8137 if ac_fn_c_try_link "$LINENO"; then :
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8139 $as_echo "yes" >&6; }
8140 else
8141 LDFLAGS=$late_LDFLAGS
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8144 fi
8145 rm -f core conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
8147
8148
8149 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8150 case "$opsys" in
8151 your-opsys-here) CANNOT_DUMP=yes ;;
8152 esac
8153
8154 test "$CANNOT_DUMP" = "yes" && \
8155
8156 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8157
8158
8159
8160
8161
8162 UNEXEC_OBJ=unexelf.o
8163 case "$opsys" in
8164 # MSDOS uses unexcoff.o
8165 # MSWindows uses unexw32.o
8166 aix4-2)
8167 UNEXEC_OBJ=unexaix.o
8168 ;;
8169 cygwin)
8170 UNEXEC_OBJ=unexcw.o
8171 ;;
8172 darwin)
8173 UNEXEC_OBJ=unexmacosx.o
8174 ;;
8175 hpux10-20 | hpux11)
8176 UNEXEC_OBJ=unexhp9k800.o
8177 ;;
8178 sol2-10)
8179 # Use the Solaris dldump() function, called from unexsol.c, to dump
8180 # emacs, instead of the generic ELF dump code found in unexelf.c.
8181 # The resulting binary has a complete symbol table, and is better
8182 # for debugging and other observability tools (debuggers, pstack, etc).
8183 #
8184 # If you encounter a problem using dldump(), please consider sending
8185 # a message to the OpenSolaris tools-linking mailing list:
8186 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8187 #
8188 # It is likely that dldump() works with older Solaris too, but this has
8189 # not been tested, so for now this change is for Solaris 10 or newer.
8190 UNEXEC_OBJ=unexsol.o
8191 ;;
8192 esac
8193
8194 LD_SWITCH_SYSTEM=
8195 case "$opsys" in
8196 freebsd)
8197 ## Let `ld' find image libs and similar things in /usr/local/lib.
8198 ## The system compiler, GCC, has apparently been modified to not
8199 ## look there, contrary to what a stock GCC would do.
8200 ### It's not our place to do this. See bug#10313#17.
8201 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8202 :
8203 ;;
8204
8205 gnu-linux)
8206 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8207 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8208 ;;
8209
8210 netbsd)
8211 ### It's not our place to do this. See bug#10313#17.
8212 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8213 :
8214 ;;
8215
8216 openbsd)
8217 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8218 ## otherwise Emacs dumps core on elf systems.
8219 LD_SWITCH_SYSTEM="-Z"
8220 ;;
8221 esac
8222
8223
8224 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8225
8226 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8227 ## which has not been defined yet. When this was handled with cpp,
8228 ## it was expanded to null when configure sourced the s/*.h file.
8229 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8230 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8231 ## (or somesuch), but because it is supposed to go at the _front_
8232 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8233 ## Compare with the gnu-linux case below, which added to the end
8234 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8235 ## LD_SWITCH_SYSTEM_TEMACS.
8236 case "$opsys" in
8237 netbsd|openbsd)
8238 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8239 esac
8240
8241
8242 C_SWITCH_MACHINE=
8243 case $canonical in
8244 alpha*)
8245 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8246 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8247
8248 fi
8249
8250 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8251 ## With ELF, make sure that all common symbols get allocated to in the
8252 ## data section. Otherwise, the dump of temacs may miss variables in
8253 ## the shared library that have been initialized. For example, with
8254 ## GNU libc, __malloc_initialized would normally be resolved to the
8255 ## shared library's .bss section, which is fatal.
8256 if test "x$GCC" = "xyes"; then
8257 C_SWITCH_MACHINE="-fno-common"
8258 else
8259 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8260 fi
8261 else
8262 UNEXEC_OBJ=unexalpha.o
8263 fi
8264 ;;
8265 esac
8266
8267
8268
8269
8270 C_SWITCH_SYSTEM=
8271 ## Some programs in src produce warnings saying certain subprograms
8272 ## are too complex and need a MAXMEM value greater than 2000 for
8273 ## additional optimization. --nils@exp-math.uni-essen.de
8274 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8275 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8276 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8277 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8278
8279
8280
8281 LIBS_SYSTEM=
8282 case "$opsys" in
8283 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8284 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8285
8286 freebsd) LIBS_SYSTEM="-lutil" ;;
8287
8288 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8289
8290 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8291
8292 ## Motif needs -lgen.
8293 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8294 esac
8295
8296
8297
8298 ### Make sure subsequent tests use flags consistent with the build flags.
8299
8300 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8301 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8302 else
8303 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8304 fi
8305
8306 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8307
8308 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8309
8310
8311
8312 LIB_MATH=-lm
8313 LIB_STANDARD=
8314 START_FILES=
8315 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8316
8317 case $opsys in
8318 cygwin )
8319 LIB_MATH=
8320 START_FILES='pre-crt0.o'
8321 ;;
8322 darwin )
8323 ## Adding -lm confuses the dynamic linker, so omit it.
8324 LIB_MATH=
8325 START_FILES='pre-crt0.o'
8326 ;;
8327 freebsd )
8328 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8329 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8330 SYSTEM_TYPE=berkeley-unix
8331 ;;
8332 gnu-linux | gnu-kfreebsd )
8333 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8334 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8335 ;;
8336 hpux10-20 | hpux11 )
8337 LIB_STANDARD=-lc
8338 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8339 ;;
8340 netbsd | openbsd )
8341 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8342 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8343 SYSTEM_TYPE=berkeley-unix
8344 ;;
8345
8346 sol2* | unixware )
8347 SYSTEM_TYPE=usg-unix-v
8348 ;;
8349
8350 esac
8351
8352
8353
8354
8355 cat >>confdefs.h <<_ACEOF
8356 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8357 _ACEOF
8358
8359
8360 crt_files=
8361
8362 for file in x $LIB_STANDARD $START_FILES; do
8363 case "$file" in
8364 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8365 esac
8366 done
8367
8368 if test "x$crt_files" != x; then
8369
8370 ## If user specified a crt-dir, use that unconditionally.
8371 crt_gcc=no
8372
8373 if test "X$CRT_DIR" = "X"; then
8374
8375 CRT_DIR=/usr/lib # default
8376
8377 case "$canonical" in
8378 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8379 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8380 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8381 ## For anything else (eg /usr/lib32), it is up the user to specify
8382 ## the location (bug#5655).
8383 ## Test for crtn.o, not just the directory, because sometimes the
8384 ## directory exists but does not have the relevant files (bug#1287).
8385 ## FIXME better to test for binary compatibility somehow.
8386 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8387 ;;
8388
8389 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8390 esac
8391
8392 case "$opsys" in
8393 hpux10-20) CRT_DIR=/lib ;;
8394 esac
8395
8396 test "x${GCC}" = xyes && crt_gcc=yes
8397
8398 fi # CRT_DIR = ""
8399
8400 crt_missing=
8401
8402 for file in $crt_files; do
8403
8404 ## If we're using gcc, try to determine it automatically by asking
8405 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8406 ## system-dependent default from above.]
8407 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8408
8409 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8410 case "$crt_file" in
8411 */*)
8412 CRT_DIR=`$as_dirname -- "$crt_file" ||
8413 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8414 X"$crt_file" : 'X\(//\)[^/]' \| \
8415 X"$crt_file" : 'X\(//\)$' \| \
8416 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8417 $as_echo X"$crt_file" |
8418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8419 s//\1/
8420 q
8421 }
8422 /^X\(\/\/\)[^/].*/{
8423 s//\1/
8424 q
8425 }
8426 /^X\(\/\/\)$/{
8427 s//\1/
8428 q
8429 }
8430 /^X\(\/\).*/{
8431 s//\1/
8432 q
8433 }
8434 s/.*/./; q'`
8435 ;;
8436 esac
8437 fi
8438
8439 crt_gcc=no
8440
8441 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8442 done # $crt_files
8443
8444 test "x$crt_missing" = x || \
8445 as_fn_error "Required file(s) not found:$crt_missing
8446 Try using the --with-crt-dir option." "$LINENO" 5
8447
8448 fi # crt_files != ""
8449
8450
8451
8452 case $opsys in
8453 netbsd | openbsd )
8454 if test -f $CRT_DIR/crti.o; then
8455
8456 test -f $CRT_DIR/crtn.o || \
8457 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8458
8459 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8460 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8461 fi
8462 ;;
8463 esac
8464
8465
8466 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8467 pre_PKG_CONFIG_LIBS=$LIBS
8468
8469 # Extract the first word of "pkg-config", so it can be a program name with args.
8470 set dummy pkg-config; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 case $PKG_CONFIG in
8477 [\\/]* | ?:[\\/]*)
8478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8479 ;;
8480 *)
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8488 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492 done
8493 done
8494 IFS=$as_save_IFS
8495
8496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8497 ;;
8498 esac
8499 fi
8500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8501 if test -n "$PKG_CONFIG"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8503 $as_echo "$PKG_CONFIG" >&6; }
8504 else
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8507 fi
8508
8509
8510
8511
8512
8513
8514 if test "${with_sound}" != "no"; then
8515 # Sound support for GNU/Linux and the free BSDs.
8516 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8517 do :
8518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8519 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8520 eval as_val=\$$as_ac_Header
8521 if test "x$as_val" = x""yes; then :
8522 cat >>confdefs.h <<_ACEOF
8523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8524 _ACEOF
8525 have_sound_header=yes
8526 fi
8527
8528 done
8529
8530 # Emulation library used on NetBSD.
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8532 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8533 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 ac_check_lib_save_LIBS=$LIBS
8537 LIBS="-lossaudio $LIBS"
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540
8541 /* Override any GCC internal prototype to avoid an error.
8542 Use char because int might match the return type of a GCC
8543 builtin and then its argument prototype would still apply. */
8544 #ifdef __cplusplus
8545 extern "C"
8546 #endif
8547 char _oss_ioctl ();
8548 int
8549 main ()
8550 {
8551 return _oss_ioctl ();
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 if ac_fn_c_try_link "$LINENO"; then :
8557 ac_cv_lib_ossaudio__oss_ioctl=yes
8558 else
8559 ac_cv_lib_ossaudio__oss_ioctl=no
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8563 LIBS=$ac_check_lib_save_LIBS
8564 fi
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8566 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8567 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8568 LIBSOUND=-lossaudio
8569 else
8570 LIBSOUND=
8571 fi
8572
8573
8574
8575 ALSA_REQUIRED=1.0.0
8576 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8577
8578 succeeded=no
8579
8580 if test "$PKG_CONFIG" = "no" ; then
8581 HAVE_ALSA=no
8582 else
8583 PKG_CONFIG_MIN_VERSION=0.9.0
8584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8586 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8587
8588 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8589 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8590 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8591 edit_cflags="
8592 s,///*,/,g
8593 s/^/ /
8594 s/ -I/ $isystem/g
8595 s/^ //
8596 "
8597 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8598 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8600 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8601 succeeded=yes
8602 else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8605 ALSA_CFLAGS=""
8606 ALSA_LIBS=""
8607 ## If we have a custom action on failure, don't print errors, but
8608 ## do set a variable so people can do so. Do it in a subshell
8609 ## to capture any diagnostics in invoking pkg-config.
8610 ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8611
8612 fi
8613
8614
8615
8616 else
8617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8619 fi
8620 fi
8621
8622 if test $succeeded = yes; then
8623 HAVE_ALSA=yes
8624 else
8625 HAVE_ALSA=no
8626 fi
8627
8628 if test $HAVE_ALSA = yes; then
8629 SAVE_CFLAGS="$CFLAGS"
8630 SAVE_LIBS="$LIBS"
8631 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8632 LIBS="$ALSA_LIBS $LIBS"
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 #include <asoundlib.h>
8636 int
8637 main ()
8638 {
8639 snd_lib_error_set_handler (0);
8640 ;
8641 return 0;
8642 }
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"; then :
8645 emacs_alsa_normal=yes
8646 else
8647 emacs_alsa_normal=no
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 if test "$emacs_alsa_normal" != yes; then
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <alsa/asoundlib.h>
8654 int
8655 main ()
8656 {
8657 snd_lib_error_set_handler (0);
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_compile "$LINENO"; then :
8663 emacs_alsa_subdir=yes
8664 else
8665 emacs_alsa_subdir=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 if test "$emacs_alsa_subdir" != yes; then
8669 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8670 fi
8671 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8672 fi
8673
8674 CFLAGS="$SAVE_CFLAGS"
8675 LIBS="$SAVE_LIBS"
8676 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8677 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8678
8679 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8680
8681 fi
8682
8683 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8684 case "$opsys" in
8685 gnu-linux|freebsd|netbsd)
8686
8687 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8688
8689 ;;
8690 esac
8691 fi
8692
8693
8694 fi
8695
8696
8697
8698
8699 for ac_header in $ac_header_list
8700 do :
8701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8703 "
8704 eval as_val=\$$as_ac_Header
8705 if test "x$as_val" = x""yes; then :
8706 cat >>confdefs.h <<_ACEOF
8707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8708 _ACEOF
8709
8710 fi
8711
8712 done
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8743 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746 #include <sys/personality.h>
8747 int
8748 main ()
8749 {
8750 personality (PER_LINUX32)
8751 ;
8752 return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_c_try_compile "$LINENO"; then :
8756 emacs_cv_personality_linux32=yes
8757 else
8758 emacs_cv_personality_linux32=no
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8762 $as_echo "$emacs_cv_personality_linux32" >&6; }
8763
8764 if test $emacs_cv_personality_linux32 = yes; then
8765
8766 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8767
8768 fi
8769
8770 for ac_header in term.h
8771 do :
8772 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8773 if test "x$ac_cv_header_term_h" = x""yes; then :
8774 cat >>confdefs.h <<_ACEOF
8775 #define HAVE_TERM_H 1
8776 _ACEOF
8777
8778 fi
8779
8780 done
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8783 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8784 if test "${ac_cv_header_time+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <sys/types.h>
8790 #include <sys/time.h>
8791 #include <time.h>
8792
8793 int
8794 main ()
8795 {
8796 if ((struct tm *) 0)
8797 return 0;
8798 ;
8799 return 0;
8800 }
8801 _ACEOF
8802 if ac_fn_c_try_compile "$LINENO"; then :
8803 ac_cv_header_time=yes
8804 else
8805 ac_cv_header_time=no
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 fi
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8810 $as_echo "$ac_cv_header_time" >&6; }
8811 if test $ac_cv_header_time = yes; then
8812
8813 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8814
8815 fi
8816
8817 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8818
8819 "
8820 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8821 ac_have_decl=1
8822 else
8823 ac_have_decl=0
8824 fi
8825
8826 cat >>confdefs.h <<_ACEOF
8827 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8828 _ACEOF
8829
8830 if test $ac_cv_have_decl_sys_siglist != yes; then
8831 # For Tru64, at least:
8832 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8833
8834 "
8835 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8836 ac_have_decl=1
8837 else
8838 ac_have_decl=0
8839 fi
8840
8841 cat >>confdefs.h <<_ACEOF
8842 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8843 _ACEOF
8844
8845 if test $ac_cv_have_decl___sys_siglist = yes; then
8846
8847 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8848
8849 fi
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8852 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8853 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <sys/types.h>
8859 #include <sys/wait.h>
8860 #ifndef WEXITSTATUS
8861 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8862 #endif
8863 #ifndef WIFEXITED
8864 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8865 #endif
8866
8867 int
8868 main ()
8869 {
8870 int s;
8871 wait (&s);
8872 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"; then :
8878 ac_cv_header_sys_wait_h=yes
8879 else
8880 ac_cv_header_sys_wait_h=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8885 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8886 if test $ac_cv_header_sys_wait_h = yes; then
8887
8888 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8889
8890 fi
8891
8892
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8894 $as_echo_n "checking for speed_t... " >&6; }
8895 if test "${emacs_cv_speed_t+set}" = set; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8900 #include <termios.h>
8901 int
8902 main ()
8903 {
8904 speed_t x = 1;
8905 ;
8906 return 0;
8907 }
8908 _ACEOF
8909 if ac_fn_c_try_compile "$LINENO"; then :
8910 emacs_cv_speed_t=yes
8911 else
8912 emacs_cv_speed_t=no
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 fi
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8917 $as_echo "$emacs_cv_speed_t" >&6; }
8918 if test $emacs_cv_speed_t = yes; then
8919
8920 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8921
8922 fi
8923
8924
8925
8926
8927 for ac_header in net/if.h
8928 do :
8929 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8930 #if HAVE_SYS_SOCKET_H
8931 #include <sys/socket.h>
8932 #endif
8933 "
8934 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8935 cat >>confdefs.h <<_ACEOF
8936 #define HAVE_NET_IF_H 1
8937 _ACEOF
8938
8939 fi
8940
8941 done
8942
8943 for ac_header in ifaddrs.h
8944 do :
8945 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8946 #if HAVE_SYS_SOCKET_H
8947 #include <sys/socket.h>
8948 #endif
8949 "
8950 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8951 cat >>confdefs.h <<_ACEOF
8952 #define HAVE_IFADDRS_H 1
8953 _ACEOF
8954
8955 fi
8956
8957 done
8958
8959 for ac_header in net/if_dl.h
8960 do :
8961 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8962 #if HAVE_SYS_SOCKET_H
8963 #include <sys/socket.h>
8964 #endif
8965 "
8966 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8967 cat >>confdefs.h <<_ACEOF
8968 #define HAVE_NET_IF_DL_H 1
8969 _ACEOF
8970
8971 fi
8972
8973 done
8974
8975
8976 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8977 #if HAVE_SYS_SOCKET_H
8978 #include <sys/socket.h>
8979 #endif
8980 #if HAVE_NET_IF_H
8981 #include <net/if.h>
8982 #endif
8983 "
8984 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8985
8986 cat >>confdefs.h <<_ACEOF
8987 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8988 _ACEOF
8989
8990
8991 fi
8992 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8993 #if HAVE_SYS_SOCKET_H
8994 #include <sys/socket.h>
8995 #endif
8996 #if HAVE_NET_IF_H
8997 #include <net/if.h>
8998 #endif
8999 "
9000 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9001
9002 cat >>confdefs.h <<_ACEOF
9003 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9004 _ACEOF
9005
9006
9007 fi
9008 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9009 #if HAVE_SYS_SOCKET_H
9010 #include <sys/socket.h>
9011 #endif
9012 #if HAVE_NET_IF_H
9013 #include <net/if.h>
9014 #endif
9015 "
9016 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9017
9018 cat >>confdefs.h <<_ACEOF
9019 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9020 _ACEOF
9021
9022
9023 fi
9024 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9025 #if HAVE_SYS_SOCKET_H
9026 #include <sys/socket.h>
9027 #endif
9028 #if HAVE_NET_IF_H
9029 #include <net/if.h>
9030 #endif
9031 "
9032 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9033
9034 cat >>confdefs.h <<_ACEOF
9035 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9036 _ACEOF
9037
9038
9039 fi
9040 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9041 #if HAVE_SYS_SOCKET_H
9042 #include <sys/socket.h>
9043 #endif
9044 #if HAVE_NET_IF_H
9045 #include <net/if.h>
9046 #endif
9047 "
9048 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9049
9050 cat >>confdefs.h <<_ACEOF
9051 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9052 _ACEOF
9053
9054
9055 fi
9056 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9057 #if HAVE_SYS_SOCKET_H
9058 #include <sys/socket.h>
9059 #endif
9060 #if HAVE_NET_IF_H
9061 #include <net/if.h>
9062 #endif
9063 "
9064 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9065
9066 cat >>confdefs.h <<_ACEOF
9067 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9068 _ACEOF
9069
9070
9071 fi
9072
9073
9074
9075
9076 DEPFLAGS=
9077 MKDEPDIR=":"
9078 deps_frag=deps.mk
9079 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9081 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9082 HAVE_GNU_MAKE=no
9083 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9084 if test "x$testval" != x; then
9085 HAVE_GNU_MAKE=yes
9086 else
9087 ac_enable_autodepend=no
9088 fi
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9090 $as_echo "$HAVE_GNU_MAKE" >&6; }
9091 if test $HAVE_GNU_MAKE = yes; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9093 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9094 SAVE_CFLAGS="$CFLAGS"
9095 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098
9099 int
9100 main ()
9101 {
9102
9103 ;
9104 return 0;
9105 }
9106 _ACEOF
9107 if ac_fn_c_try_compile "$LINENO"; then :
9108
9109 else
9110 ac_enable_autodepend=no
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 CFLAGS="$SAVE_CFLAGS"
9114 test -f deps.d || ac_enable_autodepend=no
9115 rm -rf deps.d
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9117 $as_echo "$ac_enable_autodepend" >&6; }
9118 fi
9119 if test $ac_enable_autodepend = yes; then
9120 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9121 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9122 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9123 deps_frag=autodeps.mk
9124 fi
9125 fi
9126 deps_frag=$srcdir/src/$deps_frag
9127
9128
9129
9130
9131
9132 lisp_frag=$srcdir/src/lisp.mk
9133
9134
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9137 $as_echo_n "checking for long file names... " >&6; }
9138 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 ac_cv_sys_long_file_names=yes
9142 # Test for long file names in all the places we know might matter:
9143 # . the current directory, where building will happen
9144 # $prefix/lib where we will be installing things
9145 # $exec_prefix/lib likewise
9146 # $TMPDIR if set, where it might want to write temporary files
9147 # /tmp where it might want to write temporary files
9148 # /var/tmp likewise
9149 # /usr/tmp likewise
9150 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9151 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9152 # in the usual case where exec_prefix is '${prefix}'.
9153 case $ac_dir in #(
9154 . | /* | ?:[\\/]*) ;; #(
9155 *) continue;;
9156 esac
9157 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9158 ac_xdir=$ac_dir/cf$$
9159 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9160 ac_tf1=$ac_xdir/conftest9012345
9161 ac_tf2=$ac_xdir/conftest9012346
9162 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9163 ac_cv_sys_long_file_names=no
9164 rm -f -r "$ac_xdir" 2>/dev/null
9165 test $ac_cv_sys_long_file_names = no && break
9166 done
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9169 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9170 if test $ac_cv_sys_long_file_names = yes; then
9171
9172 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9173
9174 fi
9175
9176
9177 #### Choose a window system.
9178
9179 ## We leave window_system equal to none if
9180 ## we end up building without one. Any new window system should
9181 ## set window_system to an appropriate value and add objects to
9182 ## window-system-specific substs.
9183
9184 window_system=none
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9186 $as_echo_n "checking for X... " >&6; }
9187
9188
9189 # Check whether --with-x was given.
9190 if test "${with_x+set}" = set; then :
9191 withval=$with_x;
9192 fi
9193
9194 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9195 if test "x$with_x" = xno; then
9196 # The user explicitly disabled X.
9197 have_x=disabled
9198 else
9199 case $x_includes,$x_libraries in #(
9200 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9201 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
9203 else
9204 # One or both of the vars are not set, and there is no cached value.
9205 ac_x_includes=no ac_x_libraries=no
9206 rm -f -r conftest.dir
9207 if mkdir conftest.dir; then
9208 cd conftest.dir
9209 cat >Imakefile <<'_ACEOF'
9210 incroot:
9211 @echo incroot='${INCROOT}'
9212 usrlibdir:
9213 @echo usrlibdir='${USRLIBDIR}'
9214 libdir:
9215 @echo libdir='${LIBDIR}'
9216 _ACEOF
9217 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9218 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9219 for ac_var in incroot usrlibdir libdir; do
9220 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9221 done
9222 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9223 for ac_extension in a so sl dylib la dll; do
9224 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9225 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9226 ac_im_usrlibdir=$ac_im_libdir; break
9227 fi
9228 done
9229 # Screen out bogus values from the imake configuration. They are
9230 # bogus both because they are the default anyway, and because
9231 # using them would break gcc on systems where it needs fixed includes.
9232 case $ac_im_incroot in
9233 /usr/include) ac_x_includes= ;;
9234 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9235 esac
9236 case $ac_im_usrlibdir in
9237 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9238 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9239 esac
9240 fi
9241 cd ..
9242 rm -f -r conftest.dir
9243 fi
9244
9245 # Standard set of common directories for X headers.
9246 # Check X11 before X11Rn because it is often a symlink to the current release.
9247 ac_x_header_dirs='
9248 /usr/X11/include
9249 /usr/X11R7/include
9250 /usr/X11R6/include
9251 /usr/X11R5/include
9252 /usr/X11R4/include
9253
9254 /usr/include/X11
9255 /usr/include/X11R7
9256 /usr/include/X11R6
9257 /usr/include/X11R5
9258 /usr/include/X11R4
9259
9260 /usr/local/X11/include
9261 /usr/local/X11R7/include
9262 /usr/local/X11R6/include
9263 /usr/local/X11R5/include
9264 /usr/local/X11R4/include
9265
9266 /usr/local/include/X11
9267 /usr/local/include/X11R7
9268 /usr/local/include/X11R6
9269 /usr/local/include/X11R5
9270 /usr/local/include/X11R4
9271
9272 /usr/X386/include
9273 /usr/x386/include
9274 /usr/XFree86/include/X11
9275
9276 /usr/include
9277 /usr/local/include
9278 /usr/unsupported/include
9279 /usr/athena/include
9280 /usr/local/x11r5/include
9281 /usr/lpp/Xamples/include
9282
9283 /usr/openwin/include
9284 /usr/openwin/share/include'
9285
9286 if test "$ac_x_includes" = no; then
9287 # Guess where to find include files, by looking for Xlib.h.
9288 # First, try using that file with no special directory specified.
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9291 #include <X11/Xlib.h>
9292 _ACEOF
9293 if ac_fn_c_try_cpp "$LINENO"; then :
9294 # We can compile using X headers with no special include directory.
9295 ac_x_includes=
9296 else
9297 for ac_dir in $ac_x_header_dirs; do
9298 if test -r "$ac_dir/X11/Xlib.h"; then
9299 ac_x_includes=$ac_dir
9300 break
9301 fi
9302 done
9303 fi
9304 rm -f conftest.err conftest.$ac_ext
9305 fi # $ac_x_includes = no
9306
9307 if test "$ac_x_libraries" = no; then
9308 # Check for the libraries.
9309 # See if we find them without any special options.
9310 # Don't add to $LIBS permanently.
9311 ac_save_LIBS=$LIBS
9312 LIBS="-lX11 $LIBS"
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #include <X11/Xlib.h>
9316 int
9317 main ()
9318 {
9319 XrmInitialize ()
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 if ac_fn_c_try_link "$LINENO"; then :
9325 LIBS=$ac_save_LIBS
9326 # We can link X programs with no special library path.
9327 ac_x_libraries=
9328 else
9329 LIBS=$ac_save_LIBS
9330 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9331 do
9332 # Don't even attempt the hair of trying to link an X program!
9333 for ac_extension in a so sl dylib la dll; do
9334 if test -r "$ac_dir/libX11.$ac_extension"; then
9335 ac_x_libraries=$ac_dir
9336 break 2
9337 fi
9338 done
9339 done
9340 fi
9341 rm -f core conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 fi # $ac_x_libraries = no
9344
9345 case $ac_x_includes,$ac_x_libraries in #(
9346 no,* | *,no | *\'*)
9347 # Didn't find X, or a directory has "'" in its name.
9348 ac_cv_have_x="have_x=no";; #(
9349 *)
9350 # Record where we found X for the cache.
9351 ac_cv_have_x="have_x=yes\
9352 ac_x_includes='$ac_x_includes'\
9353 ac_x_libraries='$ac_x_libraries'"
9354 esac
9355 fi
9356 ;; #(
9357 *) have_x=yes;;
9358 esac
9359 eval "$ac_cv_have_x"
9360 fi # $with_x != no
9361
9362 if test "$have_x" != yes; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9364 $as_echo "$have_x" >&6; }
9365 no_x=yes
9366 else
9367 # If each of the values was on the command line, it overrides each guess.
9368 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9369 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9370 # Update the cache value to reflect the command line values.
9371 ac_cv_have_x="have_x=yes\
9372 ac_x_includes='$x_includes'\
9373 ac_x_libraries='$x_libraries'"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9375 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9376 fi
9377
9378 if test "$no_x" != yes; then
9379 window_system=x11
9380 fi
9381
9382 LD_SWITCH_X_SITE_RPATH=
9383 if test "${x_libraries}" != NONE; then
9384 if test -n "${x_libraries}"; then
9385 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9386 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9387 fi
9388 x_default_search_path=""
9389 x_search_path=${x_libraries}
9390 if test -z "${x_search_path}"; then
9391 x_search_path=/usr/lib
9392 fi
9393 for x_library in `echo ${x_search_path}: | \
9394 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9395 x_search_path="\
9396 ${x_library}/X11/%L/%T/%N%C%S:\
9397 ${x_library}/X11/%l/%T/%N%C%S:\
9398 ${x_library}/X11/%T/%N%C%S:\
9399 ${x_library}/X11/%L/%T/%N%S:\
9400 ${x_library}/X11/%l/%T/%N%S:\
9401 ${x_library}/X11/%T/%N%S"
9402 if test x"${x_default_search_path}" = x; then
9403 x_default_search_path=${x_search_path}
9404 else
9405 x_default_search_path="${x_search_path}:${x_default_search_path}"
9406 fi
9407 done
9408 fi
9409
9410
9411 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9412 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9413 fi
9414
9415 if test x"${x_includes}" = x; then
9416 bitmapdir=/usr/include/X11/bitmaps
9417 else
9418 # accumulate include directories that have X11 bitmap subdirectories
9419 bmd_acc="dummyval"
9420 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9421 if test -d "${bmd}/X11/bitmaps"; then
9422 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9423 fi
9424 if test -d "${bmd}/bitmaps"; then
9425 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9426 fi
9427 done
9428 if test ${bmd_acc} != "dummyval"; then
9429 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9430 fi
9431 fi
9432
9433 HAVE_NS=no
9434 NS_IMPL_COCOA=no
9435 NS_IMPL_GNUSTEP=no
9436 tmp_CPPFLAGS="$CPPFLAGS"
9437 tmp_CFLAGS="$CFLAGS"
9438 CPPFLAGS="$CPPFLAGS -x objective-c"
9439 CFLAGS="$CFLAGS -x objective-c"
9440 TEMACS_LDFLAGS2="\${LDFLAGS}"
9441 GNU_OBJC_CFLAGS=
9442 if test "${with_ns}" != no; then
9443 if test "${opsys}" = darwin; then
9444 NS_IMPL_COCOA=yes
9445 ns_appdir=`pwd`/nextstep/Emacs.app
9446 ns_appbindir=${ns_appdir}/Contents/MacOS
9447 ns_appresdir=${ns_appdir}/Contents/Resources
9448 ns_appsrc=Cocoa/Emacs.base
9449 elif test -f $GNUSTEP_CONFIG_FILE; then
9450 NS_IMPL_GNUSTEP=yes
9451 ns_appdir=`pwd`/nextstep/Emacs.app
9452 ns_appbindir=${ns_appdir}
9453 ns_appresdir=${ns_appdir}/Resources
9454 ns_appsrc=GNUstep/Emacs.base
9455 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9456 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9457 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9458 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9459 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9460 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9461 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9462 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9463 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9464 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9465 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9466 LIB_STANDARD=
9467 START_FILES=
9468 TEMACS_LDFLAGS2=
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9470 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9471 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 #include <GNUstepBase/GSConfig.h>
9477 int
9478 main ()
9479 {
9480 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9481 1;
9482 #else
9483 fail;
9484 #endif
9485 ;
9486 return 0;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_compile "$LINENO"; then :
9490 emacs_cv_objc_exceptions=yes
9491 else
9492 emacs_cv_objc_exceptions=no
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9497 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9498 if test $emacs_cv_objc_exceptions = yes; then
9499
9500 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9501
9502 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9503 fi
9504 fi
9505
9506 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9507
9508 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9509 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9510 HAVE_NS=yes
9511 else
9512 as_fn_error "\`--with-ns' was specified, but the include
9513 files are missing or cannot be compiled." "$LINENO" 5
9514 fi
9515
9516
9517
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 #include <AppKit/AppKit.h>
9521 int
9522 main ()
9523 {
9524
9525 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9526 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9527 ; /* OK */
9528 #else
9529 #error "OSX 10.4 or newer required"
9530 #endif
9531 #endif
9532
9533 ;
9534 return 0;
9535 }
9536 _ACEOF
9537 if ac_fn_c_try_compile "$LINENO"; then :
9538 ns_osx_have_104=yes
9539 else
9540 ns_osx_have_104=no
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 #include <Foundation/NSObjCRuntime.h>
9546 int
9547 main ()
9548 {
9549 NSInteger i;
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 if ac_fn_c_try_compile "$LINENO"; then :
9555 ns_have_nsinteger=yes
9556 else
9557 ns_have_nsinteger=no
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 if test $ns_osx_have_104 = no; then
9561 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9562 fi
9563 if test $ns_have_nsinteger = yes; then
9564
9565 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9566
9567 fi
9568 fi
9569
9570
9571 INSTALL_ARCH_INDEP_EXTRA=install-etc
9572 ns_self_contained=no
9573 NS_OBJ=
9574 NS_OBJC_OBJ=
9575 if test "${HAVE_NS}" = yes; then
9576 if test "$with_toolkit_scroll_bars" = "no"; then
9577 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9578 fi
9579
9580 window_system=nextstep
9581 # set up packaging dirs
9582 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9583 ns_self_contained=yes
9584 prefix=${ns_appresdir}
9585 exec_prefix=${ns_appbindir}
9586 libexecdir="\${ns_appbindir}/libexec"
9587 archlibdir="\${ns_appbindir}/libexec"
9588 docdir="\${ns_appresdir}/etc"
9589 etcdir="\${ns_appresdir}/etc"
9590 infodir="\${ns_appresdir}/info"
9591 mandir="\${ns_appresdir}/man"
9592 lispdir="\${ns_appresdir}/lisp"
9593 leimdir="\${ns_appresdir}/leim"
9594 INSTALL_ARCH_INDEP_EXTRA=
9595 fi
9596 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9597 fi
9598 CFLAGS="$tmp_CFLAGS"
9599 CPPFLAGS="$tmp_CPPFLAGS"
9600
9601
9602
9603
9604
9605
9606 ## $window_system is now set to the window system we will
9607 ## ultimately use.
9608
9609 term_header=
9610 HAVE_X_WINDOWS=no
9611 HAVE_X11=no
9612 USE_X_TOOLKIT=none
9613
9614 case "${window_system}" in
9615 x11 )
9616 HAVE_X_WINDOWS=yes
9617 HAVE_X11=yes
9618 term_header=xterm.h
9619 case "${with_x_toolkit}" in
9620 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9621 motif ) USE_X_TOOLKIT=MOTIF ;;
9622 gtk ) with_gtk=yes
9623 term_header=gtkutil.h
9624 USE_X_TOOLKIT=none ;;
9625 gtk2 ) with_gtk2=yes
9626 term_header=gtkutil.h
9627 USE_X_TOOLKIT=none ;;
9628 gtk3 ) with_gtk3=yes
9629 term_header=gtkutil.h
9630 USE_X_TOOLKIT=none ;;
9631 no ) USE_X_TOOLKIT=none ;;
9632 * ) USE_X_TOOLKIT=maybe ;;
9633 esac
9634 ;;
9635 nextstep )
9636 term_header=nsterm.h
9637 ;;
9638 esac
9639
9640 if test -n "${term_header}"; then
9641
9642 cat >>confdefs.h <<_ACEOF
9643 #define TERM_HEADER "${term_header}"
9644 _ACEOF
9645
9646 fi
9647
9648 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9649 # Extract the first word of "X", so it can be a program name with args.
9650 set dummy X; ac_word=$2
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9652 $as_echo_n "checking for $ac_word... " >&6; }
9653 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 if test -n "$HAVE_XSERVER"; then
9657 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9658 else
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660 for as_dir in $PATH
9661 do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_prog_HAVE_XSERVER="true"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 break 2
9669 fi
9670 done
9671 done
9672 IFS=$as_save_IFS
9673
9674 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9675 fi
9676 fi
9677 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9678 if test -n "$HAVE_XSERVER"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9680 $as_echo "$HAVE_XSERVER" >&6; }
9681 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9684 fi
9685
9686
9687 if test "$HAVE_XSERVER" = true ||
9688 test -n "$DISPLAY" ||
9689 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9690 as_fn_error "You seem to be running X, but no X development libraries
9691 were found. You should install the relevant development files for X
9692 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9693 sure you have development files for image handling, i.e.
9694 tiff, gif, jpeg, png and xpm.
9695 If you are sure you want Emacs compiled without X window support, pass
9696 --without-x
9697 to configure." "$LINENO" 5
9698 fi
9699 fi
9700
9701 ### If we're using X11, we should use the X menu package.
9702 HAVE_MENUS=no
9703 case ${HAVE_X11} in
9704 yes ) HAVE_MENUS=yes ;;
9705 esac
9706
9707 # Does the opsystem file prohibit the use of the GNU malloc?
9708 # Assume not, until told otherwise.
9709 GNU_MALLOC=yes
9710
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9712 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9713 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 #include <malloc.h>
9719 static void hook (void) {}
9720 int
9721 main ()
9722 {
9723 malloc_set_state (malloc_get_state ());
9724 __after_morecore_hook = hook;
9725 __malloc_initialize_hook = hook;
9726 ;
9727 return 0;
9728 }
9729 _ACEOF
9730 if ac_fn_c_try_link "$LINENO"; then :
9731 emacs_cv_var_doug_lea_malloc=yes
9732 else
9733 emacs_cv_var_doug_lea_malloc=no
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9737 fi
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9739 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9740 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9741
9742
9743 system_malloc=no
9744 case "$opsys" in
9745 ## darwin ld insists on the use of malloc routines in the System framework.
9746 darwin|sol2-10) system_malloc=yes ;;
9747 esac
9748
9749 if test "${system_malloc}" = "yes"; then
9750
9751 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9752
9753 GNU_MALLOC=no
9754 GNU_MALLOC_reason="
9755 (The GNU allocators don't work with this system configuration.)"
9756 GMALLOC_OBJ=
9757 VMLIMIT_OBJ=
9758 else
9759 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9760 VMLIMIT_OBJ=vm-limit.o
9761 fi
9762
9763
9764
9765 if test "$doug_lea_malloc" = "yes" ; then
9766 if test "$GNU_MALLOC" = yes ; then
9767 GNU_MALLOC_reason="
9768 (Using Doug Lea's new malloc from the GNU C Library.)"
9769 fi
9770
9771 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9772
9773
9774 ## Use mmap directly for allocating larger buffers.
9775 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9776 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9777 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9778 case "$opsys" in
9779 gnu*) REL_ALLOC=no ;;
9780 esac
9781 fi
9782
9783 if test x"${REL_ALLOC}" = x; then
9784 REL_ALLOC=${GNU_MALLOC}
9785 fi
9786
9787 use_mmap_for_buffers=no
9788 case "$opsys" in
9789 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9790 esac
9791
9792
9793
9794
9795
9796
9797
9798
9799 for ac_func in getpagesize
9800 do :
9801 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9802 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9803 cat >>confdefs.h <<_ACEOF
9804 #define HAVE_GETPAGESIZE 1
9805 _ACEOF
9806
9807 fi
9808 done
9809
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9811 $as_echo_n "checking for working mmap... " >&6; }
9812 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 if test "$cross_compiling" = yes; then :
9816 ac_cv_func_mmap_fixed_mapped=no
9817 else
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 $ac_includes_default
9821 /* malloc might have been renamed as rpl_malloc. */
9822 #undef malloc
9823
9824 /* Thanks to Mike Haertel and Jim Avera for this test.
9825 Here is a matrix of mmap possibilities:
9826 mmap private not fixed
9827 mmap private fixed at somewhere currently unmapped
9828 mmap private fixed at somewhere already mapped
9829 mmap shared not fixed
9830 mmap shared fixed at somewhere currently unmapped
9831 mmap shared fixed at somewhere already mapped
9832 For private mappings, we should verify that changes cannot be read()
9833 back from the file, nor mmap's back from the file at a different
9834 address. (There have been systems where private was not correctly
9835 implemented like the infamous i386 svr4.0, and systems where the
9836 VM page cache was not coherent with the file system buffer cache
9837 like early versions of FreeBSD and possibly contemporary NetBSD.)
9838 For shared mappings, we should conversely verify that changes get
9839 propagated back to all the places they're supposed to be.
9840
9841 Grep wants private fixed already mapped.
9842 The main things grep needs to know about mmap are:
9843 * does it exist and is it safe to write into the mmap'd area
9844 * how to use it (BSD variants) */
9845
9846 #include <fcntl.h>
9847 #include <sys/mman.h>
9848
9849 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9850 char *malloc ();
9851 #endif
9852
9853 /* This mess was copied from the GNU getpagesize.h. */
9854 #ifndef HAVE_GETPAGESIZE
9855 # ifdef _SC_PAGESIZE
9856 # define getpagesize() sysconf(_SC_PAGESIZE)
9857 # else /* no _SC_PAGESIZE */
9858 # ifdef HAVE_SYS_PARAM_H
9859 # include <sys/param.h>
9860 # ifdef EXEC_PAGESIZE
9861 # define getpagesize() EXEC_PAGESIZE
9862 # else /* no EXEC_PAGESIZE */
9863 # ifdef NBPG
9864 # define getpagesize() NBPG * CLSIZE
9865 # ifndef CLSIZE
9866 # define CLSIZE 1
9867 # endif /* no CLSIZE */
9868 # else /* no NBPG */
9869 # ifdef NBPC
9870 # define getpagesize() NBPC
9871 # else /* no NBPC */
9872 # ifdef PAGESIZE
9873 # define getpagesize() PAGESIZE
9874 # endif /* PAGESIZE */
9875 # endif /* no NBPC */
9876 # endif /* no NBPG */
9877 # endif /* no EXEC_PAGESIZE */
9878 # else /* no HAVE_SYS_PARAM_H */
9879 # define getpagesize() 8192 /* punt totally */
9880 # endif /* no HAVE_SYS_PARAM_H */
9881 # endif /* no _SC_PAGESIZE */
9882
9883 #endif /* no HAVE_GETPAGESIZE */
9884
9885 int
9886 main ()
9887 {
9888 char *data, *data2, *data3;
9889 const char *cdata2;
9890 int i, pagesize;
9891 int fd, fd2;
9892
9893 pagesize = getpagesize ();
9894
9895 /* First, make a file with some known garbage in it. */
9896 data = (char *) malloc (pagesize);
9897 if (!data)
9898 return 1;
9899 for (i = 0; i < pagesize; ++i)
9900 *(data + i) = rand ();
9901 umask (0);
9902 fd = creat ("conftest.mmap", 0600);
9903 if (fd < 0)
9904 return 2;
9905 if (write (fd, data, pagesize) != pagesize)
9906 return 3;
9907 close (fd);
9908
9909 /* Next, check that the tail of a page is zero-filled. File must have
9910 non-zero length, otherwise we risk SIGBUS for entire page. */
9911 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9912 if (fd2 < 0)
9913 return 4;
9914 cdata2 = "";
9915 if (write (fd2, cdata2, 1) != 1)
9916 return 5;
9917 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9918 if (data2 == MAP_FAILED)
9919 return 6;
9920 for (i = 0; i < pagesize; ++i)
9921 if (*(data2 + i))
9922 return 7;
9923 close (fd2);
9924 if (munmap (data2, pagesize))
9925 return 8;
9926
9927 /* Next, try to mmap the file at a fixed address which already has
9928 something else allocated at it. If we can, also make sure that
9929 we see the same garbage. */
9930 fd = open ("conftest.mmap", O_RDWR);
9931 if (fd < 0)
9932 return 9;
9933 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9934 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9935 return 10;
9936 for (i = 0; i < pagesize; ++i)
9937 if (*(data + i) != *(data2 + i))
9938 return 11;
9939
9940 /* Finally, make sure that changes to the mapped area do not
9941 percolate back to the file as seen by read(). (This is a bug on
9942 some variants of i386 svr4.0.) */
9943 for (i = 0; i < pagesize; ++i)
9944 *(data2 + i) = *(data2 + i) + 1;
9945 data3 = (char *) malloc (pagesize);
9946 if (!data3)
9947 return 12;
9948 if (read (fd, data3, pagesize) != pagesize)
9949 return 13;
9950 for (i = 0; i < pagesize; ++i)
9951 if (*(data + i) != *(data3 + i))
9952 return 14;
9953 close (fd);
9954 return 0;
9955 }
9956 _ACEOF
9957 if ac_fn_c_try_run "$LINENO"; then :
9958 ac_cv_func_mmap_fixed_mapped=yes
9959 else
9960 ac_cv_func_mmap_fixed_mapped=no
9961 fi
9962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9963 conftest.$ac_objext conftest.beam conftest.$ac_ext
9964 fi
9965
9966 fi
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9968 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9969 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9970
9971 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9972
9973 fi
9974 rm -f conftest.mmap conftest.txt
9975
9976 if test $use_mmap_for_buffers = yes; then
9977
9978 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9979
9980 REL_ALLOC=no
9981 fi
9982
9983 LIBS="$LIBS_SYSTEM $LIBS"
9984
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9986 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9987 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 ac_check_lib_save_LIBS=$LIBS
9991 LIBS="-ldnet $LIBS"
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994
9995 /* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 char dnet_ntoa ();
10002 int
10003 main ()
10004 {
10005 return dnet_ntoa ();
10006 ;
10007 return 0;
10008 }
10009 _ACEOF
10010 if ac_fn_c_try_link "$LINENO"; then :
10011 ac_cv_lib_dnet_dnet_ntoa=yes
10012 else
10013 ac_cv_lib_dnet_dnet_ntoa=no
10014 fi
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 LIBS=$ac_check_lib_save_LIBS
10018 fi
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10020 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10021 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10022 cat >>confdefs.h <<_ACEOF
10023 #define HAVE_LIBDNET 1
10024 _ACEOF
10025
10026 LIBS="-ldnet $LIBS"
10027
10028 fi
10029
10030
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10032 $as_echo_n "checking for main in -lXbsd... " >&6; }
10033 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 ac_check_lib_save_LIBS=$LIBS
10037 LIBS="-lXbsd $LIBS"
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040
10041
10042 int
10043 main ()
10044 {
10045 return main ();
10046 ;
10047 return 0;
10048 }
10049 _ACEOF
10050 if ac_fn_c_try_link "$LINENO"; then :
10051 ac_cv_lib_Xbsd_main=yes
10052 else
10053 ac_cv_lib_Xbsd_main=no
10054 fi
10055 rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057 LIBS=$ac_check_lib_save_LIBS
10058 fi
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10060 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10061 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10062 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10063 fi
10064
10065
10066 LIB_PTHREAD=
10067
10068
10069
10070 if test "$ac_cv_header_pthread_h"; then
10071 if test "$GMALLOC_OBJ" = gmalloc.o; then
10072 emacs_pthread_function=pthread_atfork
10073 else
10074 emacs_pthread_function=pthread_self
10075 fi
10076 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10078 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10079 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-lpthread $LIBS"
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086
10087 /* Override any GCC internal prototype to avoid an error.
10088 Use char because int might match the return type of a GCC
10089 builtin and then its argument prototype would still apply. */
10090 #ifdef __cplusplus
10091 extern "C"
10092 #endif
10093 char $emacs_pthread_function ();
10094 int
10095 main ()
10096 {
10097 return $emacs_pthread_function ();
10098 ;
10099 return 0;
10100 }
10101 _ACEOF
10102 if ac_fn_c_try_link "$LINENO"; then :
10103 eval "$as_ac_Lib=yes"
10104 else
10105 eval "$as_ac_Lib=no"
10106 fi
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 LIBS=$ac_check_lib_save_LIBS
10110 fi
10111 eval ac_res=\$$as_ac_Lib
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10113 $as_echo "$ac_res" >&6; }
10114 eval as_val=\$$as_ac_Lib
10115 if test "x$as_val" = x""yes; then :
10116 HAVE_PTHREAD=yes
10117 fi
10118
10119 fi
10120 if test "$HAVE_PTHREAD" = yes; then
10121 case "${canonical}" in
10122 *-hpux*) ;;
10123 *) LIB_PTHREAD="-lpthread"
10124 LIBS="$LIB_PTHREAD $LIBS" ;;
10125 esac
10126
10127 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10128
10129 fi
10130
10131
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10133 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10134 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 ac_check_lib_save_LIBS=$LIBS
10138 LIBS="-lpthreads $LIBS"
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10141
10142 /* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
10145 #ifdef __cplusplus
10146 extern "C"
10147 #endif
10148 char cma_open ();
10149 int
10150 main ()
10151 {
10152 return cma_open ();
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 if ac_fn_c_try_link "$LINENO"; then :
10158 ac_cv_lib_pthreads_cma_open=yes
10159 else
10160 ac_cv_lib_pthreads_cma_open=no
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 LIBS=$ac_check_lib_save_LIBS
10165 fi
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10167 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10168 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_LIBPTHREADS 1
10171 _ACEOF
10172
10173 LIBS="-lpthreads $LIBS"
10174
10175 fi
10176
10177
10178 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10179 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10180 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10181 ## added to LIBS in configure would never contain the pthreads part,
10182 ## but the value used in Makefiles might. FIXME?
10183 ##
10184 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10185 ## be harmless on older versions of X where it happens to exist.
10186 test "$opsys" = "aix4-2" && \
10187 test $ac_cv_lib_pthreads_cma_open = yes && \
10188 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10189
10190
10191 case ${host_os} in
10192 aix*)
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10194 $as_echo_n "checking for -bbigtoc option... " >&6; }
10195 if test "${gdb_cv_bigtoc+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198
10199 case $GCC in
10200 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10201 *) gdb_cv_bigtoc=-bbigtoc ;;
10202 esac
10203
10204 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207
10208 int
10209 main ()
10210 {
10211 int i;
10212 ;
10213 return 0;
10214 }
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"; then :
10217
10218 else
10219 gdb_cv_bigtoc=
10220 fi
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223
10224 fi
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10226 $as_echo "$gdb_cv_bigtoc" >&6; }
10227 ;;
10228 esac
10229
10230 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10231 # used for the tests that follow. We set them back to REAL_CFLAGS and
10232 # REAL_CPPFLAGS later on.
10233
10234 REAL_CFLAGS="$CFLAGS"
10235 REAL_CPPFLAGS="$CPPFLAGS"
10236
10237 if test "${HAVE_X11}" = "yes"; then
10238 DEFS="$C_SWITCH_X_SITE $DEFS"
10239 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10240 LIBS="-lX11 $LIBS"
10241 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10242 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10243
10244 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10245 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10246 # but it's more convenient here to set LD_RUN_PATH since this
10247 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10248 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10249 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10250 export LD_RUN_PATH
10251 fi
10252
10253 if test "${opsys}" = "gnu-linux"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10255 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258
10259 int
10260 main ()
10261 {
10262 XOpenDisplay ("foo");
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 xgnu_linux_first_failure=no
10269 else
10270 xgnu_linux_first_failure=yes
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 if test "${xgnu_linux_first_failure}" = "yes"; then
10275 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10276 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10277 OLD_CPPFLAGS="$CPPFLAGS"
10278 OLD_LIBS="$LIBS"
10279 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10280 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10281 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10282 LIBS="$LIBS -b i486-linuxaout"
10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10285
10286 int
10287 main ()
10288 {
10289 XOpenDisplay ("foo");
10290 ;
10291 return 0;
10292 }
10293 _ACEOF
10294 if ac_fn_c_try_link "$LINENO"; then :
10295 xgnu_linux_second_failure=no
10296 else
10297 xgnu_linux_second_failure=yes
10298 fi
10299 rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10301 if test "${xgnu_linux_second_failure}" = "yes"; then
10302 # If we get the same failure with -b, there is no use adding -b.
10303 # So take it out. This plays safe.
10304 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10305 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10306 CPPFLAGS="$OLD_CPPFLAGS"
10307 LIBS="$OLD_LIBS"
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 $as_echo "no" >&6; }
10310 else
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10312 $as_echo "yes" >&6; }
10313 fi
10314 else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10317 fi
10318 fi
10319
10320 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10321 # header files included from there.
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10323 $as_echo_n "checking for Xkb... " >&6; }
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 #include <X11/Xlib.h>
10327 #include <X11/XKBlib.h>
10328 int
10329 main ()
10330 {
10331 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10332 ;
10333 return 0;
10334 }
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337 emacs_xkb=yes
10338 else
10339 emacs_xkb=no
10340 fi
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10344 $as_echo "$emacs_xkb" >&6; }
10345 if test $emacs_xkb = yes; then
10346
10347 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10348
10349 fi
10350
10351 for ac_func in XrmSetDatabase XScreenResourceString \
10352 XScreenNumberOfScreen
10353 do :
10354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10356 eval as_val=\$$as_ac_var
10357 if test "x$as_val" = x""yes; then :
10358 cat >>confdefs.h <<_ACEOF
10359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10360 _ACEOF
10361
10362 fi
10363 done
10364
10365 fi
10366
10367 if test "${window_system}" = "x11"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10369 $as_echo_n "checking X11 version 6... " >&6; }
10370 if test "${emacs_cv_x11_version_6+set}" = set; then :
10371 $as_echo_n "(cached) " >&6
10372 else
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10375 #include <X11/Xlib.h>
10376 int
10377 main ()
10378 {
10379 #if XlibSpecificationRelease < 6
10380 fail;
10381 #endif
10382
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 if ac_fn_c_try_link "$LINENO"; then :
10388 emacs_cv_x11_version_6=yes
10389 else
10390 emacs_cv_x11_version_6=no
10391 fi
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 fi
10395
10396 if test $emacs_cv_x11_version_6 = yes; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10398 $as_echo "6 or newer" >&6; }
10399
10400 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10401
10402
10403 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10404
10405 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10406 ## XIM support.
10407 case "$opsys" in
10408 sol2-*) : ;;
10409 *)
10410 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10411
10412 ;;
10413 esac
10414 else
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10416 $as_echo "before 6" >&6; }
10417 fi
10418 fi
10419
10420
10421 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10422 HAVE_RSVG=no
10423 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10424 if test "${with_rsvg}" != "no"; then
10425 RSVG_REQUIRED=2.11.0
10426 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10427
10428
10429 succeeded=no
10430
10431 if test "$PKG_CONFIG" = "no" ; then
10432 :
10433 else
10434 PKG_CONFIG_MIN_VERSION=0.9.0
10435 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10437 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10438
10439 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10440 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10441 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10442 edit_cflags="
10443 s,///*,/,g
10444 s/^/ /
10445 s/ -I/ $isystem/g
10446 s/^ //
10447 "
10448 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10449 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10451 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10452 succeeded=yes
10453 else
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10456 RSVG_CFLAGS=""
10457 RSVG_LIBS=""
10458 ## If we have a custom action on failure, don't print errors, but
10459 ## do set a variable so people can do so. Do it in a subshell
10460 ## to capture any diagnostics in invoking pkg-config.
10461 RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10462
10463 fi
10464
10465
10466
10467 else
10468 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10469 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10470 fi
10471 fi
10472
10473 if test $succeeded = yes; then
10474 HAVE_RSVG=yes
10475 else
10476 :
10477 fi
10478
10479
10480
10481
10482 if test $HAVE_RSVG = yes; then
10483
10484 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10485
10486 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10487 LIBS="$RSVG_LIBS $LIBS"
10488 fi
10489 fi
10490 fi
10491
10492 HAVE_IMAGEMAGICK=no
10493 if test "${HAVE_X11}" = "yes"; then
10494 if test "${with_imagemagick}" != "no"; then
10495 ## 6.2.8 is the earliest version known to work, but earlier versions
10496 ## might work - let us know if you find one.
10497 ## 6.0.7 does not work. See bug#7955.
10498 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10499
10500 succeeded=no
10501
10502 if test "$PKG_CONFIG" = "no" ; then
10503 :
10504 else
10505 PKG_CONFIG_MIN_VERSION=0.9.0
10506 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10508 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10509
10510 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10511 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10512 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10513 edit_cflags="
10514 s,///*,/,g
10515 s/^/ /
10516 s/ -I/ $isystem/g
10517 s/^ //
10518 "
10519 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10520 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10522 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10523 succeeded=yes
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10527 IMAGEMAGICK_CFLAGS=""
10528 IMAGEMAGICK_LIBS=""
10529 ## If we have a custom action on failure, don't print errors, but
10530 ## do set a variable so people can do so. Do it in a subshell
10531 ## to capture any diagnostics in invoking pkg-config.
10532 IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10533
10534 fi
10535
10536
10537
10538 else
10539 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10540 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10541 fi
10542 fi
10543
10544 if test $succeeded = yes; then
10545 HAVE_IMAGEMAGICK=yes
10546 else
10547 :
10548 fi
10549
10550
10551
10552
10553 if test $HAVE_IMAGEMAGICK = yes; then
10554
10555 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10556
10557 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10558 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10559 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10560 do :
10561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10562 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10563 eval as_val=\$$as_ac_var
10564 if test "x$as_val" = x""yes; then :
10565 cat >>confdefs.h <<_ACEOF
10566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10567 _ACEOF
10568
10569 fi
10570 done
10571
10572 fi
10573 fi
10574 fi
10575
10576
10577 HAVE_GTK=no
10578 GTK_OBJ=
10579 check_gtk2=no
10580 gtk3_pkg_errors=
10581 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10582 GLIB_REQUIRED=2.28
10583 GTK_REQUIRED=3.0
10584 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10585
10586
10587 succeeded=no
10588
10589 if test "$PKG_CONFIG" = "no" ; then
10590 pkg_check_gtk=no
10591 else
10592 PKG_CONFIG_MIN_VERSION=0.9.0
10593 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10595 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10596
10597 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10598 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10599 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10600 edit_cflags="
10601 s,///*,/,g
10602 s/^/ /
10603 s/ -I/ $isystem/g
10604 s/^ //
10605 "
10606 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10607 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10609 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10610 succeeded=yes
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614 GTK_CFLAGS=""
10615 GTK_LIBS=""
10616 ## If we have a custom action on failure, don't print errors, but
10617 ## do set a variable so people can do so. Do it in a subshell
10618 ## to capture any diagnostics in invoking pkg-config.
10619 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10620
10621 fi
10622
10623
10624
10625 else
10626 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10627 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10628 fi
10629 fi
10630
10631 if test $succeeded = yes; then
10632 pkg_check_gtk=yes
10633 else
10634 pkg_check_gtk=no
10635 fi
10636
10637 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10638 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10639 fi
10640 if test "$pkg_check_gtk" = "yes"; then
10641
10642 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10643
10644 GTK_OBJ=emacsgtkfixed.o
10645 term_header=gtkutil.h
10646 USE_GTK_TOOLKIT="GTK3"
10647 else
10648 check_gtk2=yes
10649 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10650 fi
10651 fi
10652
10653 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10654 GLIB_REQUIRED=2.10
10655 GTK_REQUIRED=2.10
10656 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10657
10658
10659 succeeded=no
10660
10661 if test "$PKG_CONFIG" = "no" ; then
10662 pkg_check_gtk=no
10663 else
10664 PKG_CONFIG_MIN_VERSION=0.9.0
10665 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10667 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10668
10669 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10670 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10671 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10672 edit_cflags="
10673 s,///*,/,g
10674 s/^/ /
10675 s/ -I/ $isystem/g
10676 s/^ //
10677 "
10678 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10679 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10681 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10682 succeeded=yes
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 GTK_CFLAGS=""
10687 GTK_LIBS=""
10688 ## If we have a custom action on failure, don't print errors, but
10689 ## do set a variable so people can do so. Do it in a subshell
10690 ## to capture any diagnostics in invoking pkg-config.
10691 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10692
10693 fi
10694
10695
10696
10697 else
10698 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10699 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10700 fi
10701 fi
10702
10703 if test $succeeded = yes; then
10704 pkg_check_gtk=yes
10705 else
10706 pkg_check_gtk=no
10707 fi
10708
10709 if test "$pkg_check_gtk" = "no" &&
10710 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10711 then
10712 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10713 fi
10714 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10715 fi
10716
10717 if test x"$pkg_check_gtk" = xyes; then
10718
10719
10720
10721 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10722 CFLAGS="$CFLAGS $GTK_CFLAGS"
10723 LIBS="$GTK_LIBS $LIBS"
10724 GTK_COMPILES=no
10725 for ac_func in gtk_main
10726 do :
10727 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10728 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10729 cat >>confdefs.h <<_ACEOF
10730 #define HAVE_GTK_MAIN 1
10731 _ACEOF
10732 GTK_COMPILES=yes
10733 fi
10734 done
10735
10736 if test "${GTK_COMPILES}" != "yes"; then
10737 if test "$USE_X_TOOLKIT" != "maybe"; then
10738 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10739 fi
10740 else
10741 HAVE_GTK=yes
10742
10743 $as_echo "#define USE_GTK 1" >>confdefs.h
10744
10745 GTK_OBJ="gtkutil.o $GTK_OBJ"
10746 USE_X_TOOLKIT=none
10747 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10748 :
10749 else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10751 closing open displays. This is no problem if you just use
10752 one display, but if you use more than one and close one of them
10753 Emacs may crash." >&5
10754 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10755 closing open displays. This is no problem if you just use
10756 one display, but if you use more than one and close one of them
10757 Emacs may crash." >&2;}
10758 sleep 3
10759 fi
10760 fi
10761
10762 fi
10763
10764
10765
10766 if test "${HAVE_GTK}" = "yes"; then
10767
10768 if test "$with_toolkit_scroll_bars" != no; then
10769 with_toolkit_scroll_bars=yes
10770 fi
10771
10772 HAVE_GTK_FILE_SELECTION=no
10773 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10774 #include <gtk/gtk.h>
10775 "
10776 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10777 HAVE_GTK_FILE_SELECTION=yes
10778 else
10779 HAVE_GTK_FILE_SELECTION=no
10780 fi
10781
10782 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10783 for ac_func in gtk_file_selection_new
10784 do :
10785 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10786 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10787 cat >>confdefs.h <<_ACEOF
10788 #define HAVE_GTK_FILE_SELECTION_NEW 1
10789 _ACEOF
10790
10791 fi
10792 done
10793
10794 fi
10795
10796
10797 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10798 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10799 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10800 gtk_orientable_set_orientation \
10801 gtk_window_set_has_resize_grip
10802 do :
10803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10805 eval as_val=\$$as_ac_var
10806 if test "x$as_val" = x""yes; then :
10807 cat >>confdefs.h <<_ACEOF
10808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10809 _ACEOF
10810
10811 fi
10812 done
10813
10814
10815 term_header=gtkutil.h
10816 fi
10817
10818 HAVE_DBUS=no
10819 DBUS_OBJ=
10820 if test "${with_dbus}" = "yes"; then
10821
10822 succeeded=no
10823
10824 if test "$PKG_CONFIG" = "no" ; then
10825 HAVE_DBUS=no
10826 else
10827 PKG_CONFIG_MIN_VERSION=0.9.0
10828 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10830 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10831
10832 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10833 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10834 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10835 edit_cflags="
10836 s,///*,/,g
10837 s/^/ /
10838 s/ -I/ $isystem/g
10839 s/^ //
10840 "
10841 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10842 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10844 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10845 succeeded=yes
10846 else
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848 $as_echo "no" >&6; }
10849 DBUS_CFLAGS=""
10850 DBUS_LIBS=""
10851 ## If we have a custom action on failure, don't print errors, but
10852 ## do set a variable so people can do so. Do it in a subshell
10853 ## to capture any diagnostics in invoking pkg-config.
10854 DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10855
10856 fi
10857
10858
10859
10860 else
10861 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10862 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10863 fi
10864 fi
10865
10866 if test $succeeded = yes; then
10867 HAVE_DBUS=yes
10868 else
10869 HAVE_DBUS=no
10870 fi
10871
10872 if test "$HAVE_DBUS" = yes; then
10873 LIBS="$LIBS $DBUS_LIBS"
10874
10875 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10876
10877 for ac_func in dbus_watch_get_unix_fd \
10878 dbus_type_is_valid \
10879 dbus_validate_bus_name \
10880 dbus_validate_path \
10881 dbus_validate_interface \
10882 dbus_validate_member
10883 do :
10884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10885 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10886 eval as_val=\$$as_ac_var
10887 if test "x$as_val" = x""yes; then :
10888 cat >>confdefs.h <<_ACEOF
10889 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10890 _ACEOF
10891
10892 fi
10893 done
10894
10895 DBUS_OBJ=dbusbind.o
10896 fi
10897 fi
10898
10899
10900 HAVE_GSETTINGS=no
10901 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10902
10903 succeeded=no
10904
10905 if test "$PKG_CONFIG" = "no" ; then
10906 HAVE_GSETTINGS=no
10907 else
10908 PKG_CONFIG_MIN_VERSION=0.9.0
10909 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10911 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10912
10913 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10914 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10915 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10916 edit_cflags="
10917 s,///*,/,g
10918 s/^/ /
10919 s/ -I/ $isystem/g
10920 s/^ //
10921 "
10922 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10923 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10925 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10926 succeeded=yes
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10930 GSETTINGS_CFLAGS=""
10931 GSETTINGS_LIBS=""
10932 ## If we have a custom action on failure, don't print errors, but
10933 ## do set a variable so people can do so. Do it in a subshell
10934 ## to capture any diagnostics in invoking pkg-config.
10935 GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10936
10937 fi
10938
10939
10940
10941 else
10942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10944 fi
10945 fi
10946
10947 if test $succeeded = yes; then
10948 HAVE_GSETTINGS=yes
10949 else
10950 HAVE_GSETTINGS=no
10951 fi
10952
10953 if test "$HAVE_GSETTINGS" = "yes"; then
10954
10955 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10956
10957 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10958 SETTINGS_LIBS="$GSETTINGS_LIBS"
10959 fi
10960 fi
10961
10962 HAVE_GCONF=no
10963 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10964
10965 succeeded=no
10966
10967 if test "$PKG_CONFIG" = "no" ; then
10968 HAVE_GCONF=no
10969 else
10970 PKG_CONFIG_MIN_VERSION=0.9.0
10971 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10973 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10974
10975 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10976 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10977 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10978 edit_cflags="
10979 s,///*,/,g
10980 s/^/ /
10981 s/ -I/ $isystem/g
10982 s/^ //
10983 "
10984 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10985 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10987 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10988 succeeded=yes
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 GCONF_CFLAGS=""
10993 GCONF_LIBS=""
10994 ## If we have a custom action on failure, don't print errors, but
10995 ## do set a variable so people can do so. Do it in a subshell
10996 ## to capture any diagnostics in invoking pkg-config.
10997 GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
10998
10999 fi
11000
11001
11002
11003 else
11004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11006 fi
11007 fi
11008
11009 if test $succeeded = yes; then
11010 HAVE_GCONF=yes
11011 else
11012 HAVE_GCONF=no
11013 fi
11014
11015 if test "$HAVE_GCONF" = yes; then
11016
11017 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11018
11019 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11020 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11021 fi
11022 fi
11023
11024 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11025
11026 succeeded=no
11027
11028 if test "$PKG_CONFIG" = "no" ; then
11029 HAVE_GOBJECT=no
11030 else
11031 PKG_CONFIG_MIN_VERSION=0.9.0
11032 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11034 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11035
11036 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11037 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11038 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11039 edit_cflags="
11040 s,///*,/,g
11041 s/^/ /
11042 s/ -I/ $isystem/g
11043 s/^ //
11044 "
11045 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11046 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11048 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11049 succeeded=yes
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 GOBJECT_CFLAGS=""
11054 GOBJECT_LIBS=""
11055 ## If we have a custom action on failure, don't print errors, but
11056 ## do set a variable so people can do so. Do it in a subshell
11057 ## to capture any diagnostics in invoking pkg-config.
11058 GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11059
11060 fi
11061
11062
11063
11064 else
11065 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11066 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11067 fi
11068 fi
11069
11070 if test $succeeded = yes; then
11071 HAVE_GOBJECT=yes
11072 else
11073 HAVE_GOBJECT=no
11074 fi
11075
11076 if test "$HAVE_GOBJECT" = "yes"; then
11077 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11078 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11079 fi
11080 SAVE_CFLAGS="$CFLAGS"
11081 SAVE_LIBS="$LIBS"
11082 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11083 LIBS="$SETTINGS_LIBS $LIBS"
11084 for ac_func in g_type_init
11085 do :
11086 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11087 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11088 cat >>confdefs.h <<_ACEOF
11089 #define HAVE_G_TYPE_INIT 1
11090 _ACEOF
11091
11092 fi
11093 done
11094
11095 CFLAGS="$SAVE_CFLAGS"
11096 LIBS="$SAVE_LIBS"
11097 fi
11098
11099
11100
11101
11102 HAVE_LIBSELINUX=no
11103 LIBSELINUX_LIBS=
11104 if test "${with_selinux}" = "yes"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11106 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11107 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-lselinux $LIBS"
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 char lgetfilecon ();
11122 int
11123 main ()
11124 {
11125 return lgetfilecon ();
11126 ;
11127 return 0;
11128 }
11129 _ACEOF
11130 if ac_fn_c_try_link "$LINENO"; then :
11131 ac_cv_lib_selinux_lgetfilecon=yes
11132 else
11133 ac_cv_lib_selinux_lgetfilecon=no
11134 fi
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11138 fi
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11140 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11141 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11142 HAVE_LIBSELINUX=yes
11143 else
11144 HAVE_LIBSELINUX=no
11145 fi
11146
11147 if test "$HAVE_LIBSELINUX" = yes; then
11148
11149 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11150
11151 LIBSELINUX_LIBS=-lselinux
11152 fi
11153 fi
11154
11155
11156 HAVE_GNUTLS=no
11157 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11158 if test "${with_gnutls}" = "yes" ; then
11159
11160 succeeded=no
11161
11162 if test "$PKG_CONFIG" = "no" ; then
11163 HAVE_GNUTLS=no
11164 else
11165 PKG_CONFIG_MIN_VERSION=0.9.0
11166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11168 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11169
11170 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11171 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11172 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11173 edit_cflags="
11174 s,///*,/,g
11175 s/^/ /
11176 s/ -I/ $isystem/g
11177 s/^ //
11178 "
11179 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11180 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11182 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11183 succeeded=yes
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11187 LIBGNUTLS_CFLAGS=""
11188 LIBGNUTLS_LIBS=""
11189 ## If we have a custom action on failure, don't print errors, but
11190 ## do set a variable so people can do so. Do it in a subshell
11191 ## to capture any diagnostics in invoking pkg-config.
11192 LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11193
11194 fi
11195
11196
11197
11198 else
11199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11201 fi
11202 fi
11203
11204 if test $succeeded = yes; then
11205 HAVE_GNUTLS=yes
11206 else
11207 HAVE_GNUTLS=no
11208 fi
11209
11210 if test "${HAVE_GNUTLS}" = "yes"; then
11211
11212 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11213
11214 fi
11215
11216 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11217 LIBS="$LIBGNUTLS_LIBS $LIBS"
11218 for ac_func in gnutls_certificate_set_verify_function
11219 do :
11220 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11221 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11222 cat >>confdefs.h <<_ACEOF
11223 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11224 _ACEOF
11225 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11226 fi
11227 done
11228
11229
11230 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11231
11232 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11233
11234 fi
11235 fi
11236
11237
11238
11239
11240 HAVE_XAW3D=no
11241 LUCID_LIBW=
11242 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11243 if test "$with_xaw3d" != no; then
11244 if test "${emacs_cv_xaw3d+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249
11250 #include <X11/Intrinsic.h>
11251 #include <X11/Xaw3d/Simple.h>
11252 int
11253 main ()
11254 {
11255
11256 ;
11257 return 0;
11258 }
11259 _ACEOF
11260 if ac_fn_c_try_link "$LINENO"; then :
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11262 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11263 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-lXaw3d $LIBS"
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11270
11271 /* Override any GCC internal prototype to avoid an error.
11272 Use char because int might match the return type of a GCC
11273 builtin and then its argument prototype would still apply. */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 char XawScrollbarSetThumb ();
11278 int
11279 main ()
11280 {
11281 return XawScrollbarSetThumb ();
11282 ;
11283 return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"; then :
11287 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11288 else
11289 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext \
11292 conftest$ac_exeext conftest.$ac_ext
11293 LIBS=$ac_check_lib_save_LIBS
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11296 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11297 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11298 emacs_cv_xaw3d=yes
11299 else
11300 emacs_cv_xaw3d=no
11301 fi
11302
11303 else
11304 emacs_cv_xaw3d=no
11305 fi
11306 rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 fi
11309
11310 else
11311 emacs_cv_xaw3d=no
11312 fi
11313 if test $emacs_cv_xaw3d = yes; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11315 $as_echo_n "checking for xaw3d... " >&6; }
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11317 $as_echo "yes; using Lucid toolkit" >&6; }
11318 USE_X_TOOLKIT=LUCID
11319 HAVE_XAW3D=yes
11320 LUCID_LIBW=-lXaw3d
11321
11322 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11323
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11326 $as_echo_n "checking for xaw3d... " >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11330 $as_echo_n "checking for libXaw... " >&6; }
11331 if test "${emacs_cv_xaw+set}" = set; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11336
11337 #include <X11/Intrinsic.h>
11338 #include <X11/Xaw/Simple.h>
11339 int
11340 main ()
11341 {
11342
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 emacs_cv_xaw=yes
11349 else
11350 emacs_cv_xaw=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 fi
11355
11356 if test $emacs_cv_xaw = yes; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11358 $as_echo "yes; using Lucid toolkit" >&6; }
11359 USE_X_TOOLKIT=LUCID
11360 LUCID_LIBW=-lXaw
11361 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11362 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11363 else
11364 as_fn_error "No X toolkit could be found.
11365 If you are sure you want Emacs compiled without an X toolkit, pass
11366 --with-x-toolkit=no
11367 to configure. Otherwise, install the development libraries for the toolkit
11368 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11369 fi
11370 fi
11371 fi
11372
11373 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11374
11375 LIBXTR6=
11376 if test "${USE_X_TOOLKIT}" != "none"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11378 $as_echo_n "checking X11 toolkit version... " >&6; }
11379 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384 #include <X11/Intrinsic.h>
11385 int
11386 main ()
11387 {
11388 #if XtSpecificationRelease < 6
11389 fail;
11390 #endif
11391
11392 ;
11393 return 0;
11394 }
11395 _ACEOF
11396 if ac_fn_c_try_link "$LINENO"; then :
11397 emacs_cv_x11_toolkit_version_6=yes
11398 else
11399 emacs_cv_x11_toolkit_version_6=no
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403 fi
11404
11405 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11406 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11408 $as_echo "6 or newer" >&6; }
11409
11410 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11411
11412 LIBXTR6="-lSM -lICE"
11413 case "$opsys" in
11414 ## Use libw.a along with X11R6 Xt.
11415 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11416 esac
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11419 $as_echo "before 6" >&6; }
11420 fi
11421
11422 OLDLIBS="$LIBS"
11423 if test x$HAVE_X11XTR6 = xyes; then
11424 LIBS="-lXt -lSM -lICE $LIBS"
11425 else
11426 LIBS="-lXt $LIBS"
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11429 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11430 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11431 $as_echo_n "(cached) " >&6
11432 else
11433 ac_check_lib_save_LIBS=$LIBS
11434 LIBS="-lXmu $LIBS"
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11437
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441 #ifdef __cplusplus
11442 extern "C"
11443 #endif
11444 char XmuConvertStandardSelection ();
11445 int
11446 main ()
11447 {
11448 return XmuConvertStandardSelection ();
11449 ;
11450 return 0;
11451 }
11452 _ACEOF
11453 if ac_fn_c_try_link "$LINENO"; then :
11454 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11455 else
11456 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11457 fi
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11460 LIBS=$ac_check_lib_save_LIBS
11461 fi
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11463 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11464 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11465 cat >>confdefs.h <<_ACEOF
11466 #define HAVE_LIBXMU 1
11467 _ACEOF
11468
11469 LIBS="-lXmu $LIBS"
11470
11471 fi
11472
11473 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11474 fi
11475
11476
11477 LIBXMU=-lXmu
11478 case $opsys in
11479 ## These systems don't supply Xmu.
11480 hpux* | aix4-2 )
11481 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11482 ;;
11483 esac
11484
11485
11486 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11487 if test "${HAVE_X11}" = "yes"; then
11488 if test "${USE_X_TOOLKIT}" != "none"; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11490 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11491 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 ac_check_lib_save_LIBS=$LIBS
11495 LIBS="-lXext $LIBS"
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11502 #ifdef __cplusplus
11503 extern "C"
11504 #endif
11505 char XShapeQueryExtension ();
11506 int
11507 main ()
11508 {
11509 return XShapeQueryExtension ();
11510 ;
11511 return 0;
11512 }
11513 _ACEOF
11514 if ac_fn_c_try_link "$LINENO"; then :
11515 ac_cv_lib_Xext_XShapeQueryExtension=yes
11516 else
11517 ac_cv_lib_Xext_XShapeQueryExtension=no
11518 fi
11519 rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521 LIBS=$ac_check_lib_save_LIBS
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11524 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11525 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11526 cat >>confdefs.h <<_ACEOF
11527 #define HAVE_LIBXEXT 1
11528 _ACEOF
11529
11530 LIBS="-lXext $LIBS"
11531
11532 fi
11533
11534 fi
11535 fi
11536
11537 LIBXP=
11538 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11539 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11540 if test -d /usr/include/openmotif; then
11541 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11542 emacs_cv_openmotif=yes
11543 case "$canonical" in
11544 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11545 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11546 ;;
11547 *)
11548 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11549 esac
11550 else
11551 emacs_cv_openmotif=no
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11554 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11555 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560 #include <Xm/Xm.h>
11561 int
11562 main ()
11563 {
11564 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11565 int x = 5;
11566 #else
11567 Motif version prior to 2.1.
11568 #endif
11569 ;
11570 return 0;
11571 }
11572 _ACEOF
11573 if ac_fn_c_try_compile "$LINENO"; then :
11574 emacs_cv_motif_version_2_1=yes
11575 else
11576 emacs_cv_motif_version_2_1=no
11577 fi
11578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 fi
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11581 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11582 if test $emacs_cv_motif_version_2_1 = yes; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11584 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11585 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-lXp $LIBS"
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h. */
11592
11593 /* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 char XpCreateContext ();
11600 int
11601 main ()
11602 {
11603 return XpCreateContext ();
11604 ;
11605 return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_link "$LINENO"; then :
11609 ac_cv_lib_Xp_XpCreateContext=yes
11610 else
11611 ac_cv_lib_Xp_XpCreateContext=no
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11615 LIBS=$ac_check_lib_save_LIBS
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11618 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11619 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11620 LIBXP=-lXp
11621 fi
11622
11623 if test x$emacs_cv_openmotif = xyes; then
11624 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11625 fi
11626 else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11628 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11629 if test "${emacs_cv_lesstif+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 # We put this in CFLAGS temporarily to precede other -I options
11633 # that might be in CFLAGS temporarily.
11634 # We put this in CPPFLAGS where it precedes the other -I options.
11635 OLD_CPPFLAGS=$CPPFLAGS
11636 OLD_CFLAGS=$CFLAGS
11637 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11638 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11642 int
11643 main ()
11644 {
11645 int x = 5;
11646 ;
11647 return 0;
11648 }
11649 _ACEOF
11650 if ac_fn_c_try_compile "$LINENO"; then :
11651 emacs_cv_lesstif=yes
11652 else
11653 emacs_cv_lesstif=no
11654 fi
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656 fi
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11658 $as_echo "$emacs_cv_lesstif" >&6; }
11659 if test $emacs_cv_lesstif = yes; then
11660 # Make sure this -I option remains in CPPFLAGS after it is set
11661 # back to REAL_CPPFLAGS.
11662 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11663 # have those other -I options anyway. Ultimately, having this
11664 # directory ultimately in CPPFLAGS will be enough.
11665 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11666 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11667 else
11668 CFLAGS=$OLD_CFLAGS
11669 CPPFLAGS=$OLD_CPPFLAGS
11670 fi
11671 fi
11672 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11673 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11674
11675 else
11676 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11677 fi
11678
11679
11680 fi
11681
11682
11683 USE_TOOLKIT_SCROLL_BARS=no
11684 if test "${with_toolkit_scroll_bars}" != "no"; then
11685 if test "${USE_X_TOOLKIT}" != "none"; then
11686 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11687 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11688
11689 HAVE_XAW3D=no
11690 USE_TOOLKIT_SCROLL_BARS=yes
11691 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11692 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11693
11694 USE_TOOLKIT_SCROLL_BARS=yes
11695 fi
11696 elif test "${HAVE_GTK}" = "yes"; then
11697 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11698
11699 USE_TOOLKIT_SCROLL_BARS=yes
11700 elif test "${HAVE_NS}" = "yes"; then
11701 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11702
11703 USE_TOOLKIT_SCROLL_BARS=yes
11704 fi
11705 fi
11706
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709
11710 #include <X11/Xlib.h>
11711 #include <X11/Xresource.h>
11712 int
11713 main ()
11714 {
11715 XIMProc callback;
11716 ;
11717 return 0;
11718 }
11719 _ACEOF
11720 if ac_fn_c_try_compile "$LINENO"; then :
11721 HAVE_XIM=yes
11722
11723 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11724
11725 else
11726 HAVE_XIM=no
11727 fi
11728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729
11730
11731 if test "${with_xim}" != "no"; then
11732
11733 $as_echo "#define USE_XIM 1" >>confdefs.h
11734
11735 fi
11736
11737
11738 if test "${HAVE_XIM}" != "no"; then
11739 late_CFLAGS=$CFLAGS
11740 if test "$GCC" = yes; then
11741 CFLAGS="$CFLAGS --pedantic-errors"
11742 fi
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11745
11746 #include <X11/Xlib.h>
11747 #include <X11/Xresource.h>
11748 int
11749 main ()
11750 {
11751 Display *display;
11752 XrmDatabase db;
11753 char *res_name;
11754 char *res_class;
11755 XIMProc callback;
11756 XPointer *client_data;
11757 #ifndef __GNUC__
11758 /* If we're not using GCC, it's probably not XFree86, and this is
11759 probably right, but we can't use something like --pedantic-errors. */
11760 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11761 char*, XIMProc, XPointer*);
11762 #endif
11763 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11764 client_data);
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_compile "$LINENO"; then :
11770 emacs_cv_arg6_star=yes
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11773 if test "$emacs_cv_arg6_star" = yes; then
11774 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11775
11776 else
11777 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11778
11779 fi
11780 CFLAGS=$late_CFLAGS
11781 fi
11782
11783 ### Start of font-backend (under any platform) section.
11784 # (nothing here yet -- this is a placeholder)
11785 ### End of font-backend (under any platform) section.
11786
11787 ### Start of font-backend (under X11) section.
11788 if test "${HAVE_X11}" = "yes"; then
11789
11790 succeeded=no
11791
11792 if test "$PKG_CONFIG" = "no" ; then
11793 HAVE_FC=no
11794 else
11795 PKG_CONFIG_MIN_VERSION=0.9.0
11796 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11798 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11799
11800 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11801 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11802 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11803 edit_cflags="
11804 s,///*,/,g
11805 s/^/ /
11806 s/ -I/ $isystem/g
11807 s/^ //
11808 "
11809 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11810 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11812 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11813 succeeded=yes
11814 else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 FONTCONFIG_CFLAGS=""
11818 FONTCONFIG_LIBS=""
11819 ## If we have a custom action on failure, don't print errors, but
11820 ## do set a variable so people can do so. Do it in a subshell
11821 ## to capture any diagnostics in invoking pkg-config.
11822 FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11823
11824 fi
11825
11826
11827
11828 else
11829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11831 fi
11832 fi
11833
11834 if test $succeeded = yes; then
11835 HAVE_FC=yes
11836 else
11837 HAVE_FC=no
11838 fi
11839
11840
11841 ## Use -lXft if available, unless `--with-xft=no'.
11842 HAVE_XFT=maybe
11843 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11844 with_xft="no";
11845 fi
11846 if test "x${with_xft}" != "xno"; then
11847
11848
11849 succeeded=no
11850
11851 if test "$PKG_CONFIG" = "no" ; then
11852 HAVE_XFT=no
11853 else
11854 PKG_CONFIG_MIN_VERSION=0.9.0
11855 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11857 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11858
11859 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11860 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11861 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11862 edit_cflags="
11863 s,///*,/,g
11864 s/^/ /
11865 s/ -I/ $isystem/g
11866 s/^ //
11867 "
11868 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11869 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11871 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11872 succeeded=yes
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11876 XFT_CFLAGS=""
11877 XFT_LIBS=""
11878 ## If we have a custom action on failure, don't print errors, but
11879 ## do set a variable so people can do so. Do it in a subshell
11880 ## to capture any diagnostics in invoking pkg-config.
11881 XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11882
11883 fi
11884
11885
11886
11887 else
11888 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11889 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11890 fi
11891 fi
11892
11893 if test $succeeded = yes; then
11894 :
11895 else
11896 HAVE_XFT=no
11897 fi
11898
11899 ## Because xftfont.c uses XRenderQueryExtension, we also
11900 ## need to link to -lXrender.
11901 HAVE_XRENDER=no
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11903 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11904 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
11906 else
11907 ac_check_lib_save_LIBS=$LIBS
11908 LIBS="-lXrender $LIBS"
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911
11912 /* Override any GCC internal prototype to avoid an error.
11913 Use char because int might match the return type of a GCC
11914 builtin and then its argument prototype would still apply. */
11915 #ifdef __cplusplus
11916 extern "C"
11917 #endif
11918 char XRenderQueryExtension ();
11919 int
11920 main ()
11921 {
11922 return XRenderQueryExtension ();
11923 ;
11924 return 0;
11925 }
11926 _ACEOF
11927 if ac_fn_c_try_link "$LINENO"; then :
11928 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11929 else
11930 ac_cv_lib_Xrender_XRenderQueryExtension=no
11931 fi
11932 rm -f core conftest.err conftest.$ac_objext \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11937 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11938 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11939 HAVE_XRENDER=yes
11940 fi
11941
11942 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11943 OLD_CPPFLAGS="$CPPFLAGS"
11944 OLD_CFLAGS="$CFLAGS"
11945 OLD_LIBS="$LIBS"
11946 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11947 CFLAGS="$CFLAGS $XFT_CFLAGS"
11948 XFT_LIBS="-lXrender $XFT_LIBS"
11949 LIBS="$XFT_LIBS $LIBS"
11950 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11951 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11953 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11954 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 ac_check_lib_save_LIBS=$LIBS
11958 LIBS="-lXft $XFT_LIBS $LIBS"
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961
11962 /* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 char XftFontOpen ();
11969 int
11970 main ()
11971 {
11972 return XftFontOpen ();
11973 ;
11974 return 0;
11975 }
11976 _ACEOF
11977 if ac_fn_c_try_link "$LINENO"; then :
11978 ac_cv_lib_Xft_XftFontOpen=yes
11979 else
11980 ac_cv_lib_Xft_XftFontOpen=no
11981 fi
11982 rm -f core conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_lib_save_LIBS
11985 fi
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11987 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11988 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11989 HAVE_XFT=yes
11990 fi
11991
11992 fi
11993
11994
11995
11996 if test "${HAVE_XFT}" = "yes"; then
11997
11998 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11999
12000
12001 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12002 else
12003 CPPFLAGS="$OLD_CPPFLAGS"
12004 CFLAGS="$OLD_CFLAGS"
12005 LIBS="$OLD_LIBS"
12006 fi # "${HAVE_XFT}" = "yes"
12007 fi # "$HAVE_XFT" != no
12008 fi # "x${with_xft}" != "xno"
12009
12010 ## We used to allow building with FreeType and without Xft.
12011 ## However, the ftx font backend driver is not in good shape.
12012 if test "$HAVE_XFT" != "yes"; then
12013 HAVE_XFT=no
12014 HAVE_FREETYPE=no
12015 else
12016
12017 succeeded=no
12018
12019 if test "$PKG_CONFIG" = "no" ; then
12020 HAVE_FREETYPE=no
12021 else
12022 PKG_CONFIG_MIN_VERSION=0.9.0
12023 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12025 $as_echo_n "checking for freetype2... " >&6; }
12026
12027 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12028 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12029 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12030 edit_cflags="
12031 s,///*,/,g
12032 s/^/ /
12033 s/ -I/ $isystem/g
12034 s/^ //
12035 "
12036 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12037 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12039 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12040 succeeded=yes
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12044 FREETYPE_CFLAGS=""
12045 FREETYPE_LIBS=""
12046 ## If we have a custom action on failure, don't print errors, but
12047 ## do set a variable so people can do so. Do it in a subshell
12048 ## to capture any diagnostics in invoking pkg-config.
12049 FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12050
12051 fi
12052
12053
12054
12055 else
12056 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12057 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12058 fi
12059 fi
12060
12061 if test $succeeded = yes; then
12062 HAVE_FREETYPE=yes
12063 else
12064 HAVE_FREETYPE=no
12065 fi
12066
12067
12068 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12069 fi
12070
12071 HAVE_LIBOTF=no
12072 if test "${HAVE_FREETYPE}" = "yes"; then
12073
12074 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12075
12076 if test "${with_libotf}" != "no"; then
12077
12078 succeeded=no
12079
12080 if test "$PKG_CONFIG" = "no" ; then
12081 HAVE_LIBOTF=no
12082 else
12083 PKG_CONFIG_MIN_VERSION=0.9.0
12084 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12086 $as_echo_n "checking for libotf... " >&6; }
12087
12088 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12089 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12090 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12091 edit_cflags="
12092 s,///*,/,g
12093 s/^/ /
12094 s/ -I/ $isystem/g
12095 s/^ //
12096 "
12097 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12098 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12100 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12101 succeeded=yes
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12105 LIBOTF_CFLAGS=""
12106 LIBOTF_LIBS=""
12107 ## If we have a custom action on failure, don't print errors, but
12108 ## do set a variable so people can do so. Do it in a subshell
12109 ## to capture any diagnostics in invoking pkg-config.
12110 LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12111
12112 fi
12113
12114
12115
12116 else
12117 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12118 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12119 fi
12120 fi
12121
12122 if test $succeeded = yes; then
12123 HAVE_LIBOTF=yes
12124 else
12125 HAVE_LIBOTF=no
12126 fi
12127
12128 if test "$HAVE_LIBOTF" = "yes"; then
12129
12130 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12131
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12133 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12134 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lotf $LIBS"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char OTF_get_variation_glyphs ();
12149 int
12150 main ()
12151 {
12152 return OTF_get_variation_glyphs ();
12153 ;
12154 return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_link "$LINENO"; then :
12158 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12159 else
12160 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext \
12163 conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12167 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12168 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12169 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12170 else
12171 HAVE_OTF_GET_VARIATION_GLYPHS=no
12172 fi
12173
12174 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12175
12176 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12177
12178 fi
12179 fi
12180 fi
12181 fi
12182
12183 HAVE_M17N_FLT=no
12184 if test "${HAVE_LIBOTF}" = yes; then
12185 if test "${with_m17n_flt}" != "no"; then
12186
12187 succeeded=no
12188
12189 if test "$PKG_CONFIG" = "no" ; then
12190 HAVE_M17N_FLT=no
12191 else
12192 PKG_CONFIG_MIN_VERSION=0.9.0
12193 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12195 $as_echo_n "checking for m17n-flt... " >&6; }
12196
12197 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12198 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12199 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12200 edit_cflags="
12201 s,///*,/,g
12202 s/^/ /
12203 s/ -I/ $isystem/g
12204 s/^ //
12205 "
12206 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12207 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12209 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12210 succeeded=yes
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214 M17N_FLT_CFLAGS=""
12215 M17N_FLT_LIBS=""
12216 ## If we have a custom action on failure, don't print errors, but
12217 ## do set a variable so people can do so. Do it in a subshell
12218 ## to capture any diagnostics in invoking pkg-config.
12219 M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12220
12221 fi
12222
12223
12224
12225 else
12226 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12227 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12228 fi
12229 fi
12230
12231 if test $succeeded = yes; then
12232 HAVE_M17N_FLT=yes
12233 else
12234 HAVE_M17N_FLT=no
12235 fi
12236
12237 if test "$HAVE_M17N_FLT" = "yes"; then
12238
12239 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12240
12241 fi
12242 fi
12243 fi
12244 else
12245 HAVE_XFT=no
12246 HAVE_FREETYPE=no
12247 HAVE_LIBOTF=no
12248 HAVE_M17N_FLT=no
12249 fi
12250
12251 ### End of font-backend (under X11) section.
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262 ### Use -lXpm if available, unless `--with-xpm=no'.
12263 HAVE_XPM=no
12264 LIBXPM=
12265 if test "${HAVE_X11}" = "yes"; then
12266 if test "${with_xpm}" != "no"; then
12267 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12268 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12270 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12271 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 ac_check_lib_save_LIBS=$LIBS
12275 LIBS="-lXpm -lX11 $LIBS"
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12278
12279 /* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 char XpmReadFileToPixmap ();
12286 int
12287 main ()
12288 {
12289 return XpmReadFileToPixmap ();
12290 ;
12291 return 0;
12292 }
12293 _ACEOF
12294 if ac_fn_c_try_link "$LINENO"; then :
12295 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12296 else
12297 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12298 fi
12299 rm -f core conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12302 fi
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12304 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12305 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12306 HAVE_XPM=yes
12307 fi
12308
12309 fi
12310
12311
12312 if test "${HAVE_XPM}" = "yes"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12314 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #include "X11/xpm.h"
12318 #ifndef XpmReturnAllocPixels
12319 no_return_alloc_pixels
12320 #endif
12321
12322 _ACEOF
12323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12324 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12325 HAVE_XPM=no
12326 else
12327 HAVE_XPM=yes
12328 fi
12329 rm -f conftest*
12330
12331
12332 if test "${HAVE_XPM}" = "yes"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12334 $as_echo "yes" >&6; }
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12338 fi
12339 fi
12340 fi
12341
12342 if test "${HAVE_XPM}" = "yes"; then
12343
12344 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12345
12346 LIBXPM=-lXpm
12347 fi
12348 fi
12349
12350
12351 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12352 HAVE_JPEG=no
12353 LIBJPEG=
12354 if test "${HAVE_X11}" = "yes"; then
12355 if test "${with_jpeg}" != "no"; then
12356 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12357 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12359 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12360 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 ac_check_lib_save_LIBS=$LIBS
12364 LIBS="-ljpeg $LIBS"
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367
12368 /* Override any GCC internal prototype to avoid an error.
12369 Use char because int might match the return type of a GCC
12370 builtin and then its argument prototype would still apply. */
12371 #ifdef __cplusplus
12372 extern "C"
12373 #endif
12374 char jpeg_destroy_compress ();
12375 int
12376 main ()
12377 {
12378 return jpeg_destroy_compress ();
12379 ;
12380 return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_c_try_link "$LINENO"; then :
12384 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12385 else
12386 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12387 fi
12388 rm -f core conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390 LIBS=$ac_check_lib_save_LIBS
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12393 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12394 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12395 HAVE_JPEG=yes
12396 fi
12397
12398 fi
12399
12400
12401 fi
12402
12403 if test "${HAVE_JPEG}" = "yes"; then
12404 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12405
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408 #include <jpeglib.h>
12409 version=JPEG_LIB_VERSION
12410
12411 _ACEOF
12412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12413 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12414 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12415
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12418 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12419 HAVE_JPEG=no
12420 fi
12421 rm -f conftest*
12422
12423 fi
12424 if test "${HAVE_JPEG}" = "yes"; then
12425 LIBJPEG=-ljpeg
12426 fi
12427 fi
12428
12429
12430 ### Use -lpng if available, unless `--with-png=no'.
12431 HAVE_PNG=no
12432 LIBPNG=
12433 if test "${HAVE_X11}" = "yes"; then
12434 if test "${with_png}" != "no"; then
12435 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12436 # in /usr/include/libpng.
12437 for ac_header in png.h libpng/png.h
12438 do :
12439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12440 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12441 eval as_val=\$$as_ac_Header
12442 if test "x$as_val" = x""yes; then :
12443 cat >>confdefs.h <<_ACEOF
12444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12445 _ACEOF
12446 break
12447 fi
12448
12449 done
12450
12451 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12453 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12454 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-lpng -lz -lm $LIBS"
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461
12462 /* Override any GCC internal prototype to avoid an error.
12463 Use char because int might match the return type of a GCC
12464 builtin and then its argument prototype would still apply. */
12465 #ifdef __cplusplus
12466 extern "C"
12467 #endif
12468 char png_get_channels ();
12469 int
12470 main ()
12471 {
12472 return png_get_channels ();
12473 ;
12474 return 0;
12475 }
12476 _ACEOF
12477 if ac_fn_c_try_link "$LINENO"; then :
12478 ac_cv_lib_png_png_get_channels=yes
12479 else
12480 ac_cv_lib_png_png_get_channels=no
12481 fi
12482 rm -f core conftest.err conftest.$ac_objext \
12483 conftest$ac_exeext conftest.$ac_ext
12484 LIBS=$ac_check_lib_save_LIBS
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12487 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12488 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12489 HAVE_PNG=yes
12490 fi
12491
12492 fi
12493 fi
12494
12495 if test "${HAVE_PNG}" = "yes"; then
12496
12497 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12498
12499 LIBPNG="-lpng -lz -lm"
12500
12501 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12502 # include <libpng/png.h>
12503 #else
12504 # include <png.h>
12505 #endif
12506
12507 "
12508 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12509
12510 else
12511
12512 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12513
12514 fi
12515
12516 fi
12517 fi
12518
12519
12520 ### Use -ltiff if available, unless `--with-tiff=no'.
12521 HAVE_TIFF=no
12522 LIBTIFF=
12523 if test "${HAVE_X11}" = "yes"; then
12524 if test "${with_tiff}" != "no"; then
12525 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12526 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12527 tifflibs="-lz -lm"
12528 # At least one tiff package requires the jpeg library.
12529 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12531 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12532 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 ac_check_lib_save_LIBS=$LIBS
12536 LIBS="-ltiff $tifflibs $LIBS"
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539
12540 /* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12543 #ifdef __cplusplus
12544 extern "C"
12545 #endif
12546 char TIFFGetVersion ();
12547 int
12548 main ()
12549 {
12550 return TIFFGetVersion ();
12551 ;
12552 return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_link "$LINENO"; then :
12556 ac_cv_lib_tiff_TIFFGetVersion=yes
12557 else
12558 ac_cv_lib_tiff_TIFFGetVersion=no
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12565 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12566 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12567 HAVE_TIFF=yes
12568 fi
12569
12570 fi
12571
12572
12573 fi
12574
12575 if test "${HAVE_TIFF}" = "yes"; then
12576
12577 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12578
12579 LIBTIFF=-ltiff
12580 fi
12581 fi
12582
12583
12584 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12585 HAVE_GIF=no
12586 LIBGIF=
12587 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12588 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12589 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12590 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12591 # Earlier versions can crash Emacs.
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12593 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12594 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lgif $LIBS"
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12601
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 char EGifPutExtensionLast ();
12609 int
12610 main ()
12611 {
12612 return EGifPutExtensionLast ();
12613 ;
12614 return 0;
12615 }
12616 _ACEOF
12617 if ac_fn_c_try_link "$LINENO"; then :
12618 ac_cv_lib_gif_EGifPutExtensionLast=yes
12619 else
12620 ac_cv_lib_gif_EGifPutExtensionLast=no
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624 LIBS=$ac_check_lib_save_LIBS
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12627 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12628 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12629 HAVE_GIF=yes
12630 else
12631 HAVE_GIF=maybe
12632 fi
12633
12634 fi
12635
12636
12637
12638 if test "$HAVE_GIF" = yes; then
12639 LIBGIF=-lgif
12640 elif test "$HAVE_GIF" = maybe; then
12641 # If gif_lib.h but no libgif, try libungif.
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12643 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12644 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 ac_check_lib_save_LIBS=$LIBS
12648 LIBS="-lungif $LIBS"
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651
12652 /* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
12655 #ifdef __cplusplus
12656 extern "C"
12657 #endif
12658 char EGifPutExtensionLast ();
12659 int
12660 main ()
12661 {
12662 return EGifPutExtensionLast ();
12663 ;
12664 return 0;
12665 }
12666 _ACEOF
12667 if ac_fn_c_try_link "$LINENO"; then :
12668 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12669 else
12670 ac_cv_lib_ungif_EGifPutExtensionLast=no
12671 fi
12672 rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LIBS=$ac_check_lib_save_LIBS
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12677 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12678 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12679 HAVE_GIF=yes
12680 else
12681 HAVE_GIF=no
12682 fi
12683
12684 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12685 fi
12686
12687 if test "${HAVE_GIF}" = "yes"; then
12688
12689 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12690
12691 fi
12692 fi
12693
12694
12695 if test "${HAVE_X11}" = "yes"; then
12696 MISSING=""
12697 WITH_NO=""
12698 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12699 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12700 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12701 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12702 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12703 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12704 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12705 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12706 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12707 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12708
12709 if test "X${MISSING}" != X; then
12710 as_fn_error "The following required libraries were not found:
12711 $MISSING
12712 Maybe some development libraries/packages are missing?
12713 If you don't want to link with them give
12714 $WITH_NO
12715 as options to configure" "$LINENO" 5
12716 fi
12717 fi
12718
12719 ### Use -lgpm if available, unless `--with-gpm=no'.
12720 HAVE_GPM=no
12721 LIBGPM=
12722 if test "${with_gpm}" != "no"; then
12723 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12724 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12726 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12727 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 ac_check_lib_save_LIBS=$LIBS
12731 LIBS="-lgpm $LIBS"
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734
12735 /* Override any GCC internal prototype to avoid an error.
12736 Use char because int might match the return type of a GCC
12737 builtin and then its argument prototype would still apply. */
12738 #ifdef __cplusplus
12739 extern "C"
12740 #endif
12741 char Gpm_Open ();
12742 int
12743 main ()
12744 {
12745 return Gpm_Open ();
12746 ;
12747 return 0;
12748 }
12749 _ACEOF
12750 if ac_fn_c_try_link "$LINENO"; then :
12751 ac_cv_lib_gpm_Gpm_Open=yes
12752 else
12753 ac_cv_lib_gpm_Gpm_Open=no
12754 fi
12755 rm -f core conftest.err conftest.$ac_objext \
12756 conftest$ac_exeext conftest.$ac_ext
12757 LIBS=$ac_check_lib_save_LIBS
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12760 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12761 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12762 HAVE_GPM=yes
12763 fi
12764
12765 fi
12766
12767
12768
12769 if test "${HAVE_GPM}" = "yes"; then
12770
12771 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12772
12773 LIBGPM=-lgpm
12774 fi
12775 fi
12776
12777
12778
12779
12780
12781
12782 GNUSTEP_CFLAGS=
12783 ### Use NeXTstep API to implement GUI.
12784 if test "${HAVE_NS}" = "yes"; then
12785
12786 $as_echo "#define HAVE_NS 1" >>confdefs.h
12787
12788 if test "${NS_IMPL_COCOA}" = "yes"; then
12789
12790 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12791
12792 fi
12793 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12794
12795 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12796
12797 # See also .m.o rule in Makefile.in */
12798 # FIXME: are all these flags really needed? Document here why. */
12799 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12800 ## Extra CFLAGS applied to src/*.m files.
12801 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"
12802 fi
12803 # We also have mouse menus.
12804 HAVE_MENUS=yes
12805 OTHER_FILES=ns-app
12806 fi
12807
12808
12809 ### Use session management (-lSM -lICE) if available
12810 HAVE_X_SM=no
12811 LIBXSM=
12812 if test "${HAVE_X11}" = "yes"; then
12813 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12814 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12816 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12817 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-lSM -lICE $LIBS"
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12828 #ifdef __cplusplus
12829 extern "C"
12830 #endif
12831 char SmcOpenConnection ();
12832 int
12833 main ()
12834 {
12835 return SmcOpenConnection ();
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"; then :
12841 ac_cv_lib_SM_SmcOpenConnection=yes
12842 else
12843 ac_cv_lib_SM_SmcOpenConnection=no
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12850 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12851 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12852 HAVE_X_SM=yes
12853 fi
12854
12855 fi
12856
12857
12858
12859 if test "${HAVE_X_SM}" = "yes"; then
12860
12861 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12862
12863 LIBXSM="-lSM -lICE"
12864 case "$LIBS" in
12865 *-lSM*) ;;
12866 *) LIBS="$LIBXSM $LIBS" ;;
12867 esac
12868 fi
12869 fi
12870
12871
12872 ### Use libxml (-lxml2) if available
12873 HAVE_LIBXML2=no
12874 if test "${with_xml2}" != "no"; then
12875 ### I'm not sure what the version number should be, so I just guessed.
12876
12877 succeeded=no
12878
12879 if test "$PKG_CONFIG" = "no" ; then
12880 HAVE_LIBXML2=no
12881 else
12882 PKG_CONFIG_MIN_VERSION=0.9.0
12883 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12885 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12886
12887 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12888 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12889 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12890 edit_cflags="
12891 s,///*,/,g
12892 s/^/ /
12893 s/ -I/ $isystem/g
12894 s/^ //
12895 "
12896 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12897 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12899 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12900 succeeded=yes
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 LIBXML2_CFLAGS=""
12905 LIBXML2_LIBS=""
12906 ## If we have a custom action on failure, don't print errors, but
12907 ## do set a variable so people can do so. Do it in a subshell
12908 ## to capture any diagnostics in invoking pkg-config.
12909 LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
12910
12911 fi
12912
12913
12914
12915 else
12916 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12917 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12918 fi
12919 fi
12920
12921 if test $succeeded = yes; then
12922 HAVE_LIBXML2=yes
12923 else
12924 HAVE_LIBXML2=no
12925 fi
12926
12927 if test "${HAVE_LIBXML2}" = "yes"; then
12928 LIBS="$LIBXML2_LIBS $LIBS"
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12930 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12931 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 ac_check_lib_save_LIBS=$LIBS
12935 LIBS="-lxml2 $LIBS"
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12938
12939 /* Override any GCC internal prototype to avoid an error.
12940 Use char because int might match the return type of a GCC
12941 builtin and then its argument prototype would still apply. */
12942 #ifdef __cplusplus
12943 extern "C"
12944 #endif
12945 char htmlReadMemory ();
12946 int
12947 main ()
12948 {
12949 return htmlReadMemory ();
12950 ;
12951 return 0;
12952 }
12953 _ACEOF
12954 if ac_fn_c_try_link "$LINENO"; then :
12955 ac_cv_lib_xml2_htmlReadMemory=yes
12956 else
12957 ac_cv_lib_xml2_htmlReadMemory=no
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
12961 LIBS=$ac_check_lib_save_LIBS
12962 fi
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12964 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12965 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12966 HAVE_LIBXML2=yes
12967 else
12968 HAVE_LIBXML2=no
12969 fi
12970
12971 if test "${HAVE_LIBXML2}" = "yes"; then
12972
12973 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12974
12975 else
12976 LIBXML2_LIBS=""
12977 LIBXML2_CFLAGS=""
12978 fi
12979 fi
12980 fi
12981
12982
12983
12984 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12986 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12987 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12988 $as_echo_n "(cached) " >&6
12989 else
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12992 #include <netdb.h>
12993 int
12994 main ()
12995 {
12996 return h_errno;
12997 ;
12998 return 0;
12999 }
13000 _ACEOF
13001 if ac_fn_c_try_link "$LINENO"; then :
13002 emacs_cv_netdb_declares_h_errno=yes
13003 else
13004 emacs_cv_netdb_declares_h_errno=no
13005 fi
13006 rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13008 fi
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13010 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13011 if test $emacs_cv_netdb_declares_h_errno = yes; then
13012
13013 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13014
13015 fi
13016
13017 # sqrt and other floating-point functions such as fmod and frexp
13018 # are found in -lm on most systems.
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13020 $as_echo_n "checking for sqrt in -lm... " >&6; }
13021 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13022 $as_echo_n "(cached) " >&6
13023 else
13024 ac_check_lib_save_LIBS=$LIBS
13025 LIBS="-lm $LIBS"
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028
13029 /* Override any GCC internal prototype to avoid an error.
13030 Use char because int might match the return type of a GCC
13031 builtin and then its argument prototype would still apply. */
13032 #ifdef __cplusplus
13033 extern "C"
13034 #endif
13035 char sqrt ();
13036 int
13037 main ()
13038 {
13039 return sqrt ();
13040 ;
13041 return 0;
13042 }
13043 _ACEOF
13044 if ac_fn_c_try_link "$LINENO"; then :
13045 ac_cv_lib_m_sqrt=yes
13046 else
13047 ac_cv_lib_m_sqrt=no
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 LIBS=$ac_check_lib_save_LIBS
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13054 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13055 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13056 cat >>confdefs.h <<_ACEOF
13057 #define HAVE_LIBM 1
13058 _ACEOF
13059
13060 LIBS="-lm $LIBS"
13061
13062 fi
13063
13064
13065 # Check for mail-locking functions in a "mail" library. Probably this should
13066 # have the same check as for liblockfile below.
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13068 $as_echo_n "checking for maillock in -lmail... " >&6; }
13069 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-lmail $LIBS"
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char maillock ();
13084 int
13085 main ()
13086 {
13087 return maillock ();
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"; then :
13093 ac_cv_lib_mail_maillock=yes
13094 else
13095 ac_cv_lib_mail_maillock=no
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS
13100 fi
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13102 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13103 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13104 have_mail=yes
13105 else
13106 have_mail=no
13107 fi
13108
13109 if test $have_mail = yes; then
13110 LIBS_MAIL=-lmail
13111 LIBS="$LIBS_MAIL $LIBS"
13112
13113 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13114
13115 else
13116 LIBS_MAIL=
13117 fi
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13119 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13120 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 ac_check_lib_save_LIBS=$LIBS
13124 LIBS="-llockfile $LIBS"
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127
13128 /* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13131 #ifdef __cplusplus
13132 extern "C"
13133 #endif
13134 char maillock ();
13135 int
13136 main ()
13137 {
13138 return maillock ();
13139 ;
13140 return 0;
13141 }
13142 _ACEOF
13143 if ac_fn_c_try_link "$LINENO"; then :
13144 ac_cv_lib_lockfile_maillock=yes
13145 else
13146 ac_cv_lib_lockfile_maillock=no
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13151 fi
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13153 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13154 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13155 have_lockfile=yes
13156 else
13157 have_lockfile=no
13158 fi
13159
13160 if test $have_lockfile = yes; then
13161 LIBS_MAIL=-llockfile
13162 LIBS="$LIBS_MAIL $LIBS"
13163
13164 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13165
13166 else
13167 # If we have the shared liblockfile, assume we must use it for mail
13168 # locking (e.g. Debian). If we couldn't link against liblockfile
13169 # (no liblockfile.a installed), ensure that we don't need to.
13170 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13171 set dummy liblockfile.so; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173 $as_echo_n "checking for $ac_word... " >&6; }
13174 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 if test -n "$liblockfile"; then
13178 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13179 else
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13182 for as_dir in $as_dummy
13183 do
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_liblockfile="yes"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13191 fi
13192 done
13193 done
13194 IFS=$as_save_IFS
13195
13196 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13197 fi
13198 fi
13199 liblockfile=$ac_cv_prog_liblockfile
13200 if test -n "$liblockfile"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13202 $as_echo "$liblockfile" >&6; }
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13206 fi
13207
13208
13209 if test $ac_cv_prog_liblockfile = yes; then
13210 as_fn_error "Shared liblockfile found but can't link against it.
13211 This probably means that movemail could lose mail.
13212 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13213 fi
13214 fi
13215
13216
13217
13218
13219
13220 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13221 ## interlock access to the mail spool. The alternative is a lock file named
13222 ## /usr/spool/mail/$USER.lock.
13223 mail_lock=no
13224 case "$opsys" in
13225 aix4-2) mail_lock="lockf" ;;
13226
13227 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13228
13229 ## On GNU/Linux systems, both methods are used by various mail programs.
13230 ## I assume most people are using newer mailers that have heard of flock.
13231 ## Change this if you need to.
13232 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13233 ## configure gets the right answers, and that means *NOT* using flock.
13234 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13235 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13236 ## Debian maintainer hasn't provided a clean fix for Emacs.
13237 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13238 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13239 ## correct logic. -- fx
13240 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13241 ## liblockfile is a Free Software replacement for libmail, used on
13242 ## Debian systems and elsewhere. -rfr.
13243 gnu-*)
13244 mail_lock="flock"
13245 if test $have_mail = yes || test $have_lockfile = yes; then
13246 test $ac_cv_header_maillock_h = yes && mail_lock=no
13247 fi
13248 ;;
13249 esac
13250
13251 BLESSMAIL_TARGET=
13252 case "$mail_lock" in
13253 flock)
13254 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13255 ;;
13256
13257 lockf)
13258 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13259 ;;
13260
13261 *) BLESSMAIL_TARGET="need-blessmail" ;;
13262 esac
13263
13264
13265
13266 for ac_func in gethostname \
13267 closedir getrusage get_current_dir_name \
13268 lrand48 setsid \
13269 fpathconf select euidaccess getpagesize setlocale \
13270 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13271 __fpending strsignal setitimer \
13272 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13273 gai_strerror mkstemp getline getdelim fsync sync \
13274 difftime posix_memalign \
13275 getpwent endpwent getgrent endgrent \
13276 touchlock \
13277 cfmakeraw cfsetspeed copysign __executable_start
13278 do :
13279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13280 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13281 eval as_val=\$$as_ac_var
13282 if test "x$as_val" = x""yes; then :
13283 cat >>confdefs.h <<_ACEOF
13284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13285 _ACEOF
13286
13287 fi
13288 done
13289
13290
13291 if test $opsys = unixware; then
13292
13293 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13294
13295 else
13296 for ac_func in getwd
13297 do :
13298 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13299 if test "x$ac_cv_func_getwd" = x""yes; then :
13300 cat >>confdefs.h <<_ACEOF
13301 #define HAVE_GETWD 1
13302 _ACEOF
13303
13304 fi
13305 done
13306
13307 fi
13308
13309 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13310 ## has a broken `rint' in some library versions including math library
13311 ## version number A.09.05.
13312 ## You can fix the math library by installing patch number PHSS_4630.
13313 ## But we can fix it more reliably for Emacs by just not using rint.
13314 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13315 case $opsys in
13316 hpux*) : ;;
13317 *) for ac_func in random rint
13318 do :
13319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13321 eval as_val=\$$as_ac_var
13322 if test "x$as_val" = x""yes; then :
13323 cat >>confdefs.h <<_ACEOF
13324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13325 _ACEOF
13326
13327 fi
13328 done
13329 ;;
13330 esac
13331
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13333 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13334 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
13336 else
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13339
13340 int
13341 main ()
13342 {
13343 __builtin_unwind_init ();
13344 ;
13345 return 0;
13346 }
13347 _ACEOF
13348 if ac_fn_c_try_link "$LINENO"; then :
13349 emacs_cv_func___builtin_unwind_init=yes
13350 else
13351 emacs_cv_func___builtin_unwind_init=no
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13357 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13358 if test $emacs_cv_func___builtin_unwind_init = yes; then
13359
13360 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13361
13362 fi
13363
13364
13365
13366
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13369 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13370 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 while :; do
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376 #include <sys/types.h> /* for off_t */
13377 #include <stdio.h>
13378 int
13379 main ()
13380 {
13381 int (*fp) (FILE *, off_t, int) = fseeko;
13382 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13383 ;
13384 return 0;
13385 }
13386 _ACEOF
13387 if ac_fn_c_try_link "$LINENO"; then :
13388 ac_cv_sys_largefile_source=no; break
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext \
13391 conftest$ac_exeext conftest.$ac_ext
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 #define _LARGEFILE_SOURCE 1
13395 #include <sys/types.h> /* for off_t */
13396 #include <stdio.h>
13397 int
13398 main ()
13399 {
13400 int (*fp) (FILE *, off_t, int) = fseeko;
13401 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13402 ;
13403 return 0;
13404 }
13405 _ACEOF
13406 if ac_fn_c_try_link "$LINENO"; then :
13407 ac_cv_sys_largefile_source=1; break
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13411 ac_cv_sys_largefile_source=unknown
13412 break
13413 done
13414 fi
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13416 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13417 case $ac_cv_sys_largefile_source in #(
13418 no | unknown) ;;
13419 *)
13420 cat >>confdefs.h <<_ACEOF
13421 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13422 _ACEOF
13423 ;;
13424 esac
13425 rm -rf conftest*
13426
13427 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13428 # in glibc 2.1.3, but that breaks too many other things.
13429 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13430 if test $ac_cv_sys_largefile_source != unknown; then
13431
13432 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13433
13434 fi
13435
13436
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13438 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13439 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 # Use it with a single arg.
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13445 $ac_includes_default
13446 int
13447 main ()
13448 {
13449 getpgrp (0);
13450 ;
13451 return 0;
13452 }
13453 _ACEOF
13454 if ac_fn_c_try_compile "$LINENO"; then :
13455 ac_cv_func_getpgrp_void=no
13456 else
13457 ac_cv_func_getpgrp_void=yes
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460
13461 fi
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13463 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13464 if test $ac_cv_func_getpgrp_void = yes; then
13465
13466 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13467
13468 fi
13469
13470
13471 # UNIX98 PTYs.
13472 for ac_func in grantpt
13473 do :
13474 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13475 if test "x$ac_cv_func_grantpt" = x""yes; then :
13476 cat >>confdefs.h <<_ACEOF
13477 #define HAVE_GRANTPT 1
13478 _ACEOF
13479
13480 fi
13481 done
13482
13483
13484 # PTY-related GNU extensions.
13485 for ac_func in getpt posix_openpt
13486 do :
13487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13488 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13489 eval as_val=\$$as_ac_var
13490 if test "x$as_val" = x""yes; then :
13491 cat >>confdefs.h <<_ACEOF
13492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13493 _ACEOF
13494
13495 fi
13496 done
13497
13498
13499 # Check this now, so that we will NOT find the above functions in ncurses.
13500 # That is because we have not set up to link ncurses in lib-src.
13501 # It's better to believe a function is not available
13502 # than to expect to find it in ncurses.
13503 # Also we need tputs and friends to be able to build at all.
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13505 $as_echo_n "checking for library containing tputs... " >&6; }
13506 # Run a test program that contains a call to tputs, a call that is
13507 # never executed. This tests whether a pre-'main' dynamic linker
13508 # works with the library. It's too much trouble to actually call
13509 # tputs in the test program, due to portability hassles. When
13510 # cross-compiling, assume the test program will run if it links.
13511
13512 # Maybe curses should be tried earlier?
13513 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13514 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13515 OLIBS=$LIBS
13516 if test -z "$tputs_library"; then
13517 LIBS_TERMCAP=
13518 msg='none required'
13519 else
13520 LIBS_TERMCAP=-l$tputs_library
13521 msg=$LIBS_TERMCAP
13522 LIBS="$LIBS_TERMCAP $LIBS"
13523 fi
13524 if test "$cross_compiling" = yes; then :
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527
13528 extern void tputs (const char *, int, int (*)(int));
13529 int main (int argc, char **argv)
13530 {
13531 if (argc == 10000)
13532 tputs (argv[0], 0, 0);
13533 return 0;
13534 }
13535
13536 _ACEOF
13537 if ac_fn_c_try_link "$LINENO"; then :
13538
13539 else
13540 msg=no
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 else
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547
13548 extern void tputs (const char *, int, int (*)(int));
13549 int main (int argc, char **argv)
13550 {
13551 if (argc == 10000)
13552 tputs (argv[0], 0, 0);
13553 return 0;
13554 }
13555
13556 _ACEOF
13557 if ac_fn_c_try_run "$LINENO"; then :
13558
13559 else
13560 msg=no
13561 fi
13562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13563 conftest.$ac_objext conftest.beam conftest.$ac_ext
13564 fi
13565
13566 LIBS=$OLIBS
13567 if test "X$msg" != Xno; then
13568 break
13569 fi
13570 done
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13572 $as_echo "$msg" >&6; }
13573 if test "X$msg" = Xno; then
13574 as_fn_error "The required function \`tputs' was not found in any library.
13575 The following libraries were tried (in order):
13576 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13577 Please try installing whichever of these libraries is most appropriate
13578 for your system, together with its header files.
13579 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13580 fi
13581
13582 ## Use termcap instead of terminfo?
13583 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13584 TERMINFO=yes
13585 ## FIXME? In the cases below where we unconditionally set
13586 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13587 ## if that was found above to have tputs.
13588 ## Should we use the gnu* logic everywhere?
13589 case "$opsys" in
13590 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13591 ## The ncurses library has been moved out of the System framework in
13592 ## Mac OS X 10.2. So if configure detects it, set the command-line
13593 ## option to use it.
13594 darwin) LIBS_TERMCAP="-lncurses" ;;
13595
13596 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13597
13598 freebsd)
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13600 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13601 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 #include <osreldate.h>
13607 int
13608 main ()
13609 {
13610 #if __FreeBSD_version < 400000
13611 fail;
13612 #endif
13613
13614 ;
13615 return 0;
13616 }
13617 _ACEOF
13618 if ac_fn_c_try_link "$LINENO"; then :
13619 emacs_cv_freebsd_terminfo=yes
13620 else
13621 emacs_cv_freebsd_terminfo=no
13622 fi
13623 rm -f core conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext conftest.$ac_ext
13625 fi
13626
13627
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13629 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13630
13631 if test $emacs_cv_freebsd_terminfo = yes; then
13632 LIBS_TERMCAP="-lncurses"
13633 else
13634 TERMINFO=no
13635 LIBS_TERMCAP="-ltermcap"
13636 fi
13637 ;;
13638
13639 netbsd)
13640 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13641 TERMINFO=no
13642 LIBS_TERMCAP="-ltermcap"
13643 fi
13644 ;;
13645
13646 openbsd) LIBS_TERMCAP="-lncurses" ;;
13647
13648 ## hpux: Make sure we get select from libc rather than from libcurses
13649 ## because libcurses on HPUX 10.10 has a broken version of select.
13650 ## We used to use -lc -lcurses, but this may be cleaner.
13651 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13652 # set that way, now it uses the default). Isn't this a contradiction?
13653 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13654
13655 esac
13656
13657 TERMCAP_OBJ=tparam.o
13658 if test $TERMINFO = yes; then
13659
13660 $as_echo "#define TERMINFO 1" >>confdefs.h
13661
13662 TERMCAP_OBJ=terminfo.o
13663 fi
13664
13665
13666
13667
13668 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13669 # On Darwin, res_init appears not to be useful: see bug#562 and
13670 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13671 resolv=no
13672
13673 if test $opsys != darwin; then
13674
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 #include <netinet/in.h>
13678 #include <arpa/nameser.h>
13679 #include <resolv.h>
13680 int
13681 main ()
13682 {
13683 return res_init();
13684 ;
13685 return 0;
13686 }
13687 _ACEOF
13688 if ac_fn_c_try_link "$LINENO"; then :
13689 have_res_init=yes
13690 else
13691 have_res_init=no
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 if test "$have_res_init" = no; then
13696 OLIBS="$LIBS"
13697 LIBS="$LIBS -lresolv"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13699 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13702 #include <netinet/in.h>
13703 #include <arpa/nameser.h>
13704 #include <resolv.h>
13705 int
13706 main ()
13707 {
13708 return res_init();
13709 ;
13710 return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"; then :
13714 have_res_init=yes
13715 else
13716 have_res_init=no
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13721 $as_echo "$have_res_init" >&6; }
13722 if test "$have_res_init" = yes ; then
13723 resolv=yes
13724 fi
13725 LIBS="$OLIBS"
13726 fi
13727
13728 if test "$have_res_init" = yes; then
13729
13730 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13731
13732 fi
13733 fi
13734 # Do we need the Hesiod library to provide the support routines?
13735 LIBHESIOD=
13736 if test "$with_hesiod" != no ; then
13737 # Don't set $LIBS here -- see comments above. FIXME which comments?
13738 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13739 if test "x$ac_cv_func_res_send" = x""yes; then :
13740
13741 else
13742 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13743 if test "x$ac_cv_func___res_send" = x""yes; then :
13744
13745 else
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13747 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13748 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 ac_check_lib_save_LIBS=$LIBS
13752 LIBS="-lresolv $LIBS"
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755
13756 /* Override any GCC internal prototype to avoid an error.
13757 Use char because int might match the return type of a GCC
13758 builtin and then its argument prototype would still apply. */
13759 #ifdef __cplusplus
13760 extern "C"
13761 #endif
13762 char res_send ();
13763 int
13764 main ()
13765 {
13766 return res_send ();
13767 ;
13768 return 0;
13769 }
13770 _ACEOF
13771 if ac_fn_c_try_link "$LINENO"; then :
13772 ac_cv_lib_resolv_res_send=yes
13773 else
13774 ac_cv_lib_resolv_res_send=no
13775 fi
13776 rm -f core conftest.err conftest.$ac_objext \
13777 conftest$ac_exeext conftest.$ac_ext
13778 LIBS=$ac_check_lib_save_LIBS
13779 fi
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13781 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13782 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13783 resolv=yes
13784 else
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13786 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13787 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 ac_check_lib_save_LIBS=$LIBS
13791 LIBS="-lresolv $LIBS"
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13798 #ifdef __cplusplus
13799 extern "C"
13800 #endif
13801 char __res_send ();
13802 int
13803 main ()
13804 {
13805 return __res_send ();
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 if ac_fn_c_try_link "$LINENO"; then :
13811 ac_cv_lib_resolv___res_send=yes
13812 else
13813 ac_cv_lib_resolv___res_send=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13820 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13821 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13822 resolv=yes
13823 fi
13824
13825 fi
13826
13827 fi
13828
13829 fi
13830
13831 if test "$resolv" = yes ; then
13832 RESOLVLIB=-lresolv
13833 else
13834 RESOLVLIB=
13835 fi
13836 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13837 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13838
13839 else
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13841 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13842 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 ac_check_lib_save_LIBS=$LIBS
13846 LIBS="-lhesiod $RESOLVLIB $LIBS"
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char hes_getmailhost ();
13857 int
13858 main ()
13859 {
13860 return hes_getmailhost ();
13861 ;
13862 return 0;
13863 }
13864 _ACEOF
13865 if ac_fn_c_try_link "$LINENO"; then :
13866 ac_cv_lib_hesiod_hes_getmailhost=yes
13867 else
13868 ac_cv_lib_hesiod_hes_getmailhost=no
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13872 LIBS=$ac_check_lib_save_LIBS
13873 fi
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13875 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13876 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13877 hesiod=yes
13878 else
13879 :
13880 fi
13881
13882 fi
13883
13884
13885 if test x"$hesiod" = xyes; then
13886
13887 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13888
13889 LIBHESIOD=-lhesiod
13890 fi
13891 fi
13892
13893
13894 # Do we need libresolv (due to res_init or Hesiod)?
13895 if test "$resolv" = yes && test $opsys != darwin; then
13896
13897 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13898
13899 LIBRESOLV=-lresolv
13900 else
13901 LIBRESOLV=
13902 fi
13903
13904
13905 # These tell us which Kerberos-related libraries to use.
13906 COM_ERRLIB=
13907 CRYPTOLIB=
13908 KRB5LIB=
13909 DESLIB=
13910 KRB4LIB=
13911
13912 if test "${with_kerberos}" != no; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13914 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13915 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 ac_check_lib_save_LIBS=$LIBS
13919 LIBS="-lcom_err $LIBS"
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13922
13923 /* Override any GCC internal prototype to avoid an error.
13924 Use char because int might match the return type of a GCC
13925 builtin and then its argument prototype would still apply. */
13926 #ifdef __cplusplus
13927 extern "C"
13928 #endif
13929 char com_err ();
13930 int
13931 main ()
13932 {
13933 return com_err ();
13934 ;
13935 return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_link "$LINENO"; then :
13939 ac_cv_lib_com_err_com_err=yes
13940 else
13941 ac_cv_lib_com_err_com_err=no
13942 fi
13943 rm -f core conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13946 fi
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13948 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13949 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13950 have_com_err=yes
13951 else
13952 have_com_err=no
13953 fi
13954
13955 if test $have_com_err = yes; then
13956 COM_ERRLIB=-lcom_err
13957 LIBS="$COM_ERRLIB $LIBS"
13958
13959 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13960
13961 fi
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13963 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13964 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13965 $as_echo_n "(cached) " >&6
13966 else
13967 ac_check_lib_save_LIBS=$LIBS
13968 LIBS="-lcrypto $LIBS"
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971
13972 /* Override any GCC internal prototype to avoid an error.
13973 Use char because int might match the return type of a GCC
13974 builtin and then its argument prototype would still apply. */
13975 #ifdef __cplusplus
13976 extern "C"
13977 #endif
13978 char mit_des_cbc_encrypt ();
13979 int
13980 main ()
13981 {
13982 return mit_des_cbc_encrypt ();
13983 ;
13984 return 0;
13985 }
13986 _ACEOF
13987 if ac_fn_c_try_link "$LINENO"; then :
13988 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13989 else
13990 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13991 fi
13992 rm -f core conftest.err conftest.$ac_objext \
13993 conftest$ac_exeext conftest.$ac_ext
13994 LIBS=$ac_check_lib_save_LIBS
13995 fi
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13997 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13998 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13999 have_crypto=yes
14000 else
14001 have_crypto=no
14002 fi
14003
14004 if test $have_crypto = yes; then
14005 CRYPTOLIB=-lcrypto
14006 LIBS="$CRYPTOLIB $LIBS"
14007
14008 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14009
14010 fi
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14012 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14013 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 ac_check_lib_save_LIBS=$LIBS
14017 LIBS="-lk5crypto $LIBS"
14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019 /* end confdefs.h. */
14020
14021 /* Override any GCC internal prototype to avoid an error.
14022 Use char because int might match the return type of a GCC
14023 builtin and then its argument prototype would still apply. */
14024 #ifdef __cplusplus
14025 extern "C"
14026 #endif
14027 char mit_des_cbc_encrypt ();
14028 int
14029 main ()
14030 {
14031 return mit_des_cbc_encrypt ();
14032 ;
14033 return 0;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_link "$LINENO"; then :
14037 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14038 else
14039 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext \
14042 conftest$ac_exeext conftest.$ac_ext
14043 LIBS=$ac_check_lib_save_LIBS
14044 fi
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14046 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14047 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14048 have_k5crypto=yes
14049 else
14050 have_k5crypto=no
14051 fi
14052
14053 if test $have_k5crypto = yes; then
14054 CRYPTOLIB=-lk5crypto
14055 LIBS="$CRYPTOLIB $LIBS"
14056
14057 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14058
14059 fi
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14061 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14062 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065 ac_check_lib_save_LIBS=$LIBS
14066 LIBS="-lkrb5 $LIBS"
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14069
14070 /* Override any GCC internal prototype to avoid an error.
14071 Use char because int might match the return type of a GCC
14072 builtin and then its argument prototype would still apply. */
14073 #ifdef __cplusplus
14074 extern "C"
14075 #endif
14076 char krb5_init_context ();
14077 int
14078 main ()
14079 {
14080 return krb5_init_context ();
14081 ;
14082 return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_c_try_link "$LINENO"; then :
14086 ac_cv_lib_krb5_krb5_init_context=yes
14087 else
14088 ac_cv_lib_krb5_krb5_init_context=no
14089 fi
14090 rm -f core conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14093 fi
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14095 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14096 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14097 have_krb5=yes
14098 else
14099 have_krb5=no
14100 fi
14101
14102 if test $have_krb5=yes; then
14103 KRB5LIB=-lkrb5
14104 LIBS="$KRB5LIB $LIBS"
14105
14106 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14107
14108 fi
14109 if test "${with_kerberos5}" = no; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14111 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14112 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 ac_check_lib_save_LIBS=$LIBS
14116 LIBS="-ldes425 $LIBS"
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14119
14120 /* Override any GCC internal prototype to avoid an error.
14121 Use char because int might match the return type of a GCC
14122 builtin and then its argument prototype would still apply. */
14123 #ifdef __cplusplus
14124 extern "C"
14125 #endif
14126 char des_cbc_encrypt ();
14127 int
14128 main ()
14129 {
14130 return des_cbc_encrypt ();
14131 ;
14132 return 0;
14133 }
14134 _ACEOF
14135 if ac_fn_c_try_link "$LINENO"; then :
14136 ac_cv_lib_des425_des_cbc_encrypt=yes
14137 else
14138 ac_cv_lib_des425_des_cbc_encrypt=no
14139 fi
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 LIBS=$ac_check_lib_save_LIBS
14143 fi
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14145 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14146 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14147 have_des425=yes
14148 else
14149 have_des425=no
14150 fi
14151
14152 if test $have_des425 = yes; then
14153 DESLIB=-ldes425
14154 LIBS="$DESLIB $LIBS"
14155
14156 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14157
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14160 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14161 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 ac_check_lib_save_LIBS=$LIBS
14165 LIBS="-ldes $LIBS"
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14168
14169 /* Override any GCC internal prototype to avoid an error.
14170 Use char because int might match the return type of a GCC
14171 builtin and then its argument prototype would still apply. */
14172 #ifdef __cplusplus
14173 extern "C"
14174 #endif
14175 char des_cbc_encrypt ();
14176 int
14177 main ()
14178 {
14179 return des_cbc_encrypt ();
14180 ;
14181 return 0;
14182 }
14183 _ACEOF
14184 if ac_fn_c_try_link "$LINENO"; then :
14185 ac_cv_lib_des_des_cbc_encrypt=yes
14186 else
14187 ac_cv_lib_des_des_cbc_encrypt=no
14188 fi
14189 rm -f core conftest.err conftest.$ac_objext \
14190 conftest$ac_exeext conftest.$ac_ext
14191 LIBS=$ac_check_lib_save_LIBS
14192 fi
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14194 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14195 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14196 have_des=yes
14197 else
14198 have_des=no
14199 fi
14200
14201 if test $have_des = yes; then
14202 DESLIB=-ldes
14203 LIBS="$DESLIB $LIBS"
14204
14205 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14206
14207 fi
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14210 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14211 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 ac_check_lib_save_LIBS=$LIBS
14215 LIBS="-lkrb4 $LIBS"
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218
14219 /* Override any GCC internal prototype to avoid an error.
14220 Use char because int might match the return type of a GCC
14221 builtin and then its argument prototype would still apply. */
14222 #ifdef __cplusplus
14223 extern "C"
14224 #endif
14225 char krb_get_cred ();
14226 int
14227 main ()
14228 {
14229 return krb_get_cred ();
14230 ;
14231 return 0;
14232 }
14233 _ACEOF
14234 if ac_fn_c_try_link "$LINENO"; then :
14235 ac_cv_lib_krb4_krb_get_cred=yes
14236 else
14237 ac_cv_lib_krb4_krb_get_cred=no
14238 fi
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241 LIBS=$ac_check_lib_save_LIBS
14242 fi
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14244 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14245 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14246 have_krb4=yes
14247 else
14248 have_krb4=no
14249 fi
14250
14251 if test $have_krb4 = yes; then
14252 KRB4LIB=-lkrb4
14253 LIBS="$KRB4LIB $LIBS"
14254
14255 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14256
14257 else
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14259 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14260 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14263 ac_check_lib_save_LIBS=$LIBS
14264 LIBS="-lkrb $LIBS"
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14267
14268 /* Override any GCC internal prototype to avoid an error.
14269 Use char because int might match the return type of a GCC
14270 builtin and then its argument prototype would still apply. */
14271 #ifdef __cplusplus
14272 extern "C"
14273 #endif
14274 char krb_get_cred ();
14275 int
14276 main ()
14277 {
14278 return krb_get_cred ();
14279 ;
14280 return 0;
14281 }
14282 _ACEOF
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 ac_cv_lib_krb_krb_get_cred=yes
14285 else
14286 ac_cv_lib_krb_krb_get_cred=no
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14290 LIBS=$ac_check_lib_save_LIBS
14291 fi
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14293 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14294 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14295 have_krb=yes
14296 else
14297 have_krb=no
14298 fi
14299
14300 if test $have_krb = yes; then
14301 KRB4LIB=-lkrb
14302 LIBS="$KRB4LIB $LIBS"
14303
14304 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14305
14306 fi
14307 fi
14308 fi
14309
14310 if test "${with_kerberos5}" != no; then
14311 for ac_header in krb5.h
14312 do :
14313 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14314 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14315 cat >>confdefs.h <<_ACEOF
14316 #define HAVE_KRB5_H 1
14317 _ACEOF
14318 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14319 "
14320 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14321
14322 cat >>confdefs.h <<_ACEOF
14323 #define HAVE_KRB5_ERROR_TEXT 1
14324 _ACEOF
14325
14326
14327 fi
14328 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14329 "
14330 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14331
14332 cat >>confdefs.h <<_ACEOF
14333 #define HAVE_KRB5_ERROR_E_TEXT 1
14334 _ACEOF
14335
14336
14337 fi
14338
14339 fi
14340
14341 done
14342
14343 else
14344 for ac_header in des.h
14345 do :
14346 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14347 if test "x$ac_cv_header_des_h" = x""yes; then :
14348 cat >>confdefs.h <<_ACEOF
14349 #define HAVE_DES_H 1
14350 _ACEOF
14351
14352 else
14353 for ac_header in kerberosIV/des.h
14354 do :
14355 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14356 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14357 cat >>confdefs.h <<_ACEOF
14358 #define HAVE_KERBEROSIV_DES_H 1
14359 _ACEOF
14360
14361 else
14362 for ac_header in kerberos/des.h
14363 do :
14364 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14365 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14366 cat >>confdefs.h <<_ACEOF
14367 #define HAVE_KERBEROS_DES_H 1
14368 _ACEOF
14369
14370 fi
14371
14372 done
14373
14374 fi
14375
14376 done
14377
14378 fi
14379
14380 done
14381
14382 for ac_header in krb.h
14383 do :
14384 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14385 if test "x$ac_cv_header_krb_h" = x""yes; then :
14386 cat >>confdefs.h <<_ACEOF
14387 #define HAVE_KRB_H 1
14388 _ACEOF
14389
14390 else
14391 for ac_header in kerberosIV/krb.h
14392 do :
14393 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14394 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14395 cat >>confdefs.h <<_ACEOF
14396 #define HAVE_KERBEROSIV_KRB_H 1
14397 _ACEOF
14398
14399 else
14400 for ac_header in kerberos/krb.h
14401 do :
14402 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14403 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14404 cat >>confdefs.h <<_ACEOF
14405 #define HAVE_KERBEROS_KRB_H 1
14406 _ACEOF
14407
14408 fi
14409
14410 done
14411
14412 fi
14413
14414 done
14415
14416 fi
14417
14418 done
14419
14420 fi
14421 for ac_header in com_err.h
14422 do :
14423 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14424 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14425 cat >>confdefs.h <<_ACEOF
14426 #define HAVE_COM_ERR_H 1
14427 _ACEOF
14428
14429 fi
14430
14431 done
14432
14433 fi
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444 for ac_func in $ac_func_list
14445 do :
14446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14448 eval as_val=\$$as_ac_var
14449 if test "x$as_val" = x""yes; then :
14450 cat >>confdefs.h <<_ACEOF
14451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14452 _ACEOF
14453
14454 fi
14455 done
14456
14457
14458
14459
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14461 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14462 if test "${emacs_cv_localtime_cache+set}" = set; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465 if test x$ac_cv_func_tzset = xyes; then
14466 if test "$cross_compiling" = yes; then :
14467 # If we have tzset, assume the worst when cross-compiling.
14468 emacs_cv_localtime_cache=yes
14469 else
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 #include <time.h>
14473 char TZ_GMT0[] = "TZ=GMT0";
14474 char TZ_PST8[] = "TZ=PST8";
14475 main()
14476 {
14477 time_t now = time ((time_t *) 0);
14478 int hour_GMT0, hour_unset;
14479 if (putenv (TZ_GMT0) != 0)
14480 exit (1);
14481 hour_GMT0 = localtime (&now)->tm_hour;
14482 unsetenv("TZ");
14483 hour_unset = localtime (&now)->tm_hour;
14484 if (putenv (TZ_PST8) != 0)
14485 exit (1);
14486 if (localtime (&now)->tm_hour == hour_GMT0)
14487 exit (1);
14488 unsetenv("TZ");
14489 if (localtime (&now)->tm_hour != hour_unset)
14490 exit (1);
14491 exit (0);
14492 }
14493 _ACEOF
14494 if ac_fn_c_try_run "$LINENO"; then :
14495 emacs_cv_localtime_cache=no
14496 else
14497 emacs_cv_localtime_cache=yes
14498 fi
14499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14500 conftest.$ac_objext conftest.beam conftest.$ac_ext
14501 fi
14502
14503 else
14504 # If we lack tzset, report that localtime does not cache TZ,
14505 # since we can't invalidate the cache if we don't have tzset.
14506 emacs_cv_localtime_cache=no
14507 fi
14508 fi
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14510 $as_echo "$emacs_cv_localtime_cache" >&6; }
14511 if test $emacs_cv_localtime_cache = yes; then
14512
14513 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14514
14515 fi
14516
14517 ok_so_far=yes
14518 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14519 if test "x$ac_cv_func_socket" = x""yes; then :
14520
14521 else
14522 ok_so_far=no
14523 fi
14524
14525 if test $ok_so_far = yes; then
14526 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14527 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14528
14529 else
14530 ok_so_far=no
14531 fi
14532
14533
14534 fi
14535 if test $ok_so_far = yes; then
14536 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14537 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14538
14539 else
14540 ok_so_far=no
14541 fi
14542
14543
14544 fi
14545 if test $ok_so_far = yes; then
14546
14547 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14548
14549 fi
14550
14551 if test -f /usr/lpp/X11/bin/smt.exp; then
14552
14553 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14554
14555 fi
14556
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14558 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14559 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14561 $as_echo "yes" >&6; }
14562
14563 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14564
14565 else
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567 $as_echo "no" >&6; }
14568 fi
14569
14570 case $canonical in
14571 *-solaris2.4 | *-solaris2.4.*)
14572 : ${ac_cv_func_vfork_works=no};;
14573 esac
14574
14575 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14576 if test "x$ac_cv_type_pid_t" = x""yes; then :
14577
14578 else
14579
14580 cat >>confdefs.h <<_ACEOF
14581 #define pid_t int
14582 _ACEOF
14583
14584 fi
14585
14586 for ac_header in vfork.h
14587 do :
14588 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14589 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14590 cat >>confdefs.h <<_ACEOF
14591 #define HAVE_VFORK_H 1
14592 _ACEOF
14593
14594 fi
14595
14596 done
14597
14598 for ac_func in fork vfork
14599 do :
14600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14602 eval as_val=\$$as_ac_var
14603 if test "x$as_val" = x""yes; then :
14604 cat >>confdefs.h <<_ACEOF
14605 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14606 _ACEOF
14607
14608 fi
14609 done
14610
14611 if test "x$ac_cv_func_fork" = xyes; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14613 $as_echo_n "checking for working fork... " >&6; }
14614 if test "${ac_cv_func_fork_works+set}" = set; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14617 if test "$cross_compiling" = yes; then :
14618 ac_cv_func_fork_works=cross
14619 else
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14622 $ac_includes_default
14623 int
14624 main ()
14625 {
14626
14627 /* By Ruediger Kuhlmann. */
14628 return fork () < 0;
14629
14630 ;
14631 return 0;
14632 }
14633 _ACEOF
14634 if ac_fn_c_try_run "$LINENO"; then :
14635 ac_cv_func_fork_works=yes
14636 else
14637 ac_cv_func_fork_works=no
14638 fi
14639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14640 conftest.$ac_objext conftest.beam conftest.$ac_ext
14641 fi
14642
14643 fi
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14645 $as_echo "$ac_cv_func_fork_works" >&6; }
14646
14647 else
14648 ac_cv_func_fork_works=$ac_cv_func_fork
14649 fi
14650 if test "x$ac_cv_func_fork_works" = xcross; then
14651 case $host in
14652 *-*-amigaos* | *-*-msdosdjgpp*)
14653 # Override, as these systems have only a dummy fork() stub
14654 ac_cv_func_fork_works=no
14655 ;;
14656 *)
14657 ac_cv_func_fork_works=yes
14658 ;;
14659 esac
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14661 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14662 fi
14663 ac_cv_func_vfork_works=$ac_cv_func_vfork
14664 if test "x$ac_cv_func_vfork" = xyes; then
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14666 $as_echo_n "checking for working vfork... " >&6; }
14667 if test "${ac_cv_func_vfork_works+set}" = set; then :
14668 $as_echo_n "(cached) " >&6
14669 else
14670 if test "$cross_compiling" = yes; then :
14671 ac_cv_func_vfork_works=cross
14672 else
14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 /* Thanks to Paul Eggert for this test. */
14676 $ac_includes_default
14677 #include <sys/wait.h>
14678 #ifdef HAVE_VFORK_H
14679 # include <vfork.h>
14680 #endif
14681 /* On some sparc systems, changes by the child to local and incoming
14682 argument registers are propagated back to the parent. The compiler
14683 is told about this with #include <vfork.h>, but some compilers
14684 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14685 static variable whose address is put into a register that is
14686 clobbered by the vfork. */
14687 static void
14688 #ifdef __cplusplus
14689 sparc_address_test (int arg)
14690 # else
14691 sparc_address_test (arg) int arg;
14692 #endif
14693 {
14694 static pid_t child;
14695 if (!child) {
14696 child = vfork ();
14697 if (child < 0) {
14698 perror ("vfork");
14699 _exit(2);
14700 }
14701 if (!child) {
14702 arg = getpid();
14703 write(-1, "", 0);
14704 _exit (arg);
14705 }
14706 }
14707 }
14708
14709 int
14710 main ()
14711 {
14712 pid_t parent = getpid ();
14713 pid_t child;
14714
14715 sparc_address_test (0);
14716
14717 child = vfork ();
14718
14719 if (child == 0) {
14720 /* Here is another test for sparc vfork register problems. This
14721 test uses lots of local variables, at least as many local
14722 variables as main has allocated so far including compiler
14723 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14724 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14725 reuse the register of parent for one of the local variables,
14726 since it will think that parent can't possibly be used any more
14727 in this routine. Assigning to the local variable will thus
14728 munge parent in the parent process. */
14729 pid_t
14730 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14731 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14732 /* Convince the compiler that p..p7 are live; otherwise, it might
14733 use the same hardware register for all 8 local variables. */
14734 if (p != p1 || p != p2 || p != p3 || p != p4
14735 || p != p5 || p != p6 || p != p7)
14736 _exit(1);
14737
14738 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14739 from child file descriptors. If the child closes a descriptor
14740 before it execs or exits, this munges the parent's descriptor
14741 as well. Test for this by closing stdout in the child. */
14742 _exit(close(fileno(stdout)) != 0);
14743 } else {
14744 int status;
14745 struct stat st;
14746
14747 while (wait(&status) != child)
14748 ;
14749 return (
14750 /* Was there some problem with vforking? */
14751 child < 0
14752
14753 /* Did the child fail? (This shouldn't happen.) */
14754 || status
14755
14756 /* Did the vfork/compiler bug occur? */
14757 || parent != getpid()
14758
14759 /* Did the file descriptor bug occur? */
14760 || fstat(fileno(stdout), &st) != 0
14761 );
14762 }
14763 }
14764 _ACEOF
14765 if ac_fn_c_try_run "$LINENO"; then :
14766 ac_cv_func_vfork_works=yes
14767 else
14768 ac_cv_func_vfork_works=no
14769 fi
14770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14771 conftest.$ac_objext conftest.beam conftest.$ac_ext
14772 fi
14773
14774 fi
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14776 $as_echo "$ac_cv_func_vfork_works" >&6; }
14777
14778 fi;
14779 if test "x$ac_cv_func_fork_works" = xcross; then
14780 ac_cv_func_vfork_works=$ac_cv_func_vfork
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14782 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14783 fi
14784
14785 if test "x$ac_cv_func_vfork_works" = xyes; then
14786
14787 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14788
14789 else
14790
14791 $as_echo "#define vfork fork" >>confdefs.h
14792
14793 fi
14794 if test "x$ac_cv_func_fork_works" = xyes; then
14795
14796 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14797
14798 fi
14799
14800
14801 for ac_func in snprintf
14802 do :
14803 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14804 if test "x$ac_cv_func_snprintf" = x""yes; then :
14805 cat >>confdefs.h <<_ACEOF
14806 #define HAVE_SNPRINTF 1
14807 _ACEOF
14808
14809 fi
14810 done
14811
14812
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14814 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14815 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 #include <langinfo.h>
14821 int
14822 main ()
14823 {
14824 char* cs = nl_langinfo(CODESET);
14825 ;
14826 return 0;
14827 }
14828 _ACEOF
14829 if ac_fn_c_try_link "$LINENO"; then :
14830 emacs_cv_langinfo_codeset=yes
14831 else
14832 emacs_cv_langinfo_codeset=no
14833 fi
14834 rm -f core conftest.err conftest.$ac_objext \
14835 conftest$ac_exeext conftest.$ac_ext
14836
14837 fi
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14839 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14840 if test $emacs_cv_langinfo_codeset = yes; then
14841
14842 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14843
14844 fi
14845
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14847 $as_echo_n "checking for mbstate_t... " >&6; }
14848 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853 $ac_includes_default
14854 # include <wchar.h>
14855 int
14856 main ()
14857 {
14858 mbstate_t x; return sizeof x;
14859 ;
14860 return 0;
14861 }
14862 _ACEOF
14863 if ac_fn_c_try_compile "$LINENO"; then :
14864 ac_cv_type_mbstate_t=yes
14865 else
14866 ac_cv_type_mbstate_t=no
14867 fi
14868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 fi
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14871 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14872 if test $ac_cv_type_mbstate_t = yes; then
14873
14874 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14875
14876 else
14877
14878 $as_echo "#define mbstate_t int" >>confdefs.h
14879
14880 fi
14881
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14883 $as_echo_n "checking for C restricted array declarations... " >&6; }
14884 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14885 $as_echo_n "(cached) " >&6
14886 else
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889 void fred (int x[__restrict]);
14890 int
14891 main ()
14892 {
14893
14894 ;
14895 return 0;
14896 }
14897 _ACEOF
14898 if ac_fn_c_try_compile "$LINENO"; then :
14899 emacs_cv_c_restrict_arr=yes
14900 else
14901 emacs_cv_c_restrict_arr=no
14902 fi
14903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14904 fi
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14906 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14907 if test "$emacs_cv_c_restrict_arr" = yes; then
14908
14909 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14910
14911 fi
14912
14913
14914
14915 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14916
14917
14918
14919 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14920
14921
14922 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14923
14924 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14925
14926
14927
14928 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14929
14930
14931
14932
14933
14934 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14935
14936
14937
14938 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14939
14940
14941
14942 $as_echo "#define subprocesses 1" >>confdefs.h
14943
14944
14945
14946 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14947
14948
14949
14950
14951 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14952
14953
14954
14955
14956
14957 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14958
14959
14960
14961 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14962
14963
14964
14965 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14966
14967
14968
14969
14970
14971 case $opsys in
14972 aix4-2)
14973 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
14974 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14975
14976 fi
14977 ;;
14978
14979 hpux*)
14980 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14981
14982 ;;
14983 esac
14984
14985
14986 case $opsys in
14987 irix6-5 | sol2* | unixware )
14988
14989 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14990
14991 ;;
14992 esac
14993
14994 emacs_broken_SIGIO=no
14995
14996 case $opsys in
14997 hpux* | irix6-5 | openbsd | sol2* | unixware )
14998 emacs_broken_SIGIO=yes
14999 ;;
15000
15001 aix4-2)
15002
15003 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15004
15005 ;;
15006
15007 freebsd)
15008
15009 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15010
15011 ;;
15012 esac
15013
15014 case $opsys in
15015 gnu-* | sol2-10 )
15016
15017 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15018
15019 ;;
15020 esac
15021
15022 case $opsys in
15023 darwin | freebsd | netbsd | openbsd )
15024
15025 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15026
15027 ;;
15028 esac
15029
15030 case $opsys in
15031 netbsd | openbsd) sound_device="/dev/audio" ;;
15032 *) sound_device="/dev/dsp" ;;
15033 esac
15034
15035
15036 cat >>confdefs.h <<_ACEOF
15037 #define DEFAULT_SOUND_DEVICE "$sound_device"
15038 _ACEOF
15039
15040
15041
15042 case $opsys in
15043 darwin | gnu-linux | gnu-kfreebsd )
15044
15045 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15046
15047 ;;
15048 esac
15049
15050
15051 case $opsys in
15052 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15053
15054 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15055
15056 ;;
15057 esac
15058
15059
15060
15061
15062
15063
15064
15065
15066 case $opsys in
15067 aix4-2 )
15068 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15069
15070 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15071
15072 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15073
15074 ;;
15075
15076 cygwin )
15077 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15078
15079 $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
15080
15081 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15082
15083 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15084
15085 ;;
15086
15087 darwin )
15088 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15089
15090 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15091
15092 $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
15093
15094 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15095
15096 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15097
15098 ;;
15099
15100 gnu | openbsd )
15101 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15102
15103 ;;
15104
15105 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15106 if test "x$ac_cv_func_grantpt" = xyes; then
15107
15108 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15109
15110 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15111
15112 $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
15113
15114 if test "x$ac_cv_func_posix_openpt" = xyes; then
15115 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15116
15117 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15118
15119 elif test "x$ac_cv_func_getpt" = xyes; then
15120 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15121
15122 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15123
15124 else
15125 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15126
15127 fi
15128 else
15129 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15130
15131 fi
15132 ;;
15133
15134 hpux*)
15135 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15136
15137 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15138
15139 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15140
15141 ;;
15142
15143 irix6-5 )
15144 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15145
15146 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15147
15148 $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(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &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
15149
15150 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15151
15152 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15153
15154 ;;
15155
15156 sol2* )
15157 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); 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
15158
15159 ;;
15160
15161 unixware )
15162 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); 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
15163
15164 ;;
15165 esac
15166
15167
15168 case $opsys in
15169 sol2* | unixware )
15170 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15171
15172 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15173
15174
15175 $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
15176
15177 ;;
15178 esac
15179
15180
15181
15182
15183 case $opsys in
15184 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
15185 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15186
15187 ;;
15188
15189 gnu-linux | gnu-kfreebsd )
15190
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15192 $as_echo_n "checking for signals via characters... " >&6; }
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15195
15196 #include <linux/version.h>
15197 #if LINUX_VERSION_CODE < 0x20400
15198 # error "Linux version too old"
15199 #endif
15200
15201 int
15202 main ()
15203 {
15204
15205 ;
15206 return 0;
15207 }
15208 _ACEOF
15209 if ac_fn_c_try_cpp "$LINENO"; then :
15210 emacs_signals_via_chars=yes
15211 else
15212 emacs_signals_via_chars=no
15213 fi
15214 rm -f conftest.err conftest.$ac_ext
15215
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15217 $as_echo "$emacs_signals_via_chars" >&6; }
15218 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15219
15220 ;;
15221 esac
15222
15223
15224
15225
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15227 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230
15231 #include <features.h>
15232 #ifndef __GNU_LIBRARY__
15233 # error "this is not the GNU C library"
15234 #endif
15235
15236 int
15237 main ()
15238 {
15239
15240 ;
15241 return 0;
15242 }
15243 _ACEOF
15244 if ac_fn_c_try_cpp "$LINENO"; then :
15245 emacs_glibc=yes
15246 else
15247 emacs_glibc=no
15248 fi
15249 rm -f conftest.err conftest.$ac_ext
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15251 $as_echo "$emacs_glibc" >&6; }
15252
15253 if test $emacs_glibc = yes; then
15254
15255 emacs_pending_output=unknown
15256
15257 case $opsys in
15258 gnu | gnu-linux | gnu-kfreebsd )
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15260 $as_echo_n "checking for style of pending output formalism... " >&6; }
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15263
15264 #include <stdio.h>
15265 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15266 # error "stdio definitions not found"
15267 #endif
15268
15269 int
15270 main ()
15271 {
15272
15273 ;
15274 return 0;
15275 }
15276 _ACEOF
15277 if ac_fn_c_try_cpp "$LINENO"; then :
15278 emacs_pending_output=new
15279 fi
15280 rm -f conftest.err conftest.$ac_ext
15281
15282 if test $emacs_pending_output = unknown; then
15283 case $opsys in
15284 gnu-linux | gnu-kfreebsd)
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15287
15288 #include <stdio.h>
15289 #ifndef __UCLIBC__
15290 # error "not using uclibc"
15291 #endif
15292
15293 int
15294 main ()
15295 {
15296
15297 ;
15298 return 0;
15299 }
15300 _ACEOF
15301 if ac_fn_c_try_cpp "$LINENO"; then :
15302 emacs_pending_output=uclibc
15303 else
15304 emacs_pending_output=old
15305 fi
15306 rm -f conftest.err conftest.$ac_ext
15307 ;;
15308 esac
15309 fi
15310
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15312 $as_echo "$emacs_pending_output" >&6; }
15313
15314 case $emacs_pending_output in
15315 new)
15316 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15317
15318 ;;
15319 uclibc)
15320 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15321
15322 ;;
15323 old)
15324 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15325
15326 ;;
15327 esac
15328 ;;
15329 esac
15330 if test $emacs_pending_output = unknown; then
15331 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15332
15333 fi
15334
15335 else
15336 case $opsys in
15337 cygwin | darwin | freebsd | netbsd | openbsd )
15338 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15339
15340 ;;
15341
15342 unixware)
15343 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15344
15345 ;;
15346
15347 *)
15348 if test x$ac_cv_header_stdio_ext_h = xyes && \
15349 test x$ac_cv_func___fpending = xyes; then
15350 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15351
15352
15353 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15354
15355 else
15356 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15357
15358 fi
15359 ;;
15360 esac
15361 fi
15362
15363
15364
15365
15366 case $opsys in
15367 gnu)
15368 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15369
15370 ;;
15371
15372 hpux*)
15373 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15374
15375 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15376
15377 ;;
15378 irix6-5)
15379 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15380
15381 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15382
15383 ;;
15384 esac
15385
15386
15387
15388
15389
15390 case $opsys in
15391 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15392 ;;
15393
15394 gnu | freebsd | netbsd | openbsd )
15395
15396 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15397
15398 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15399
15400 ;;
15401
15402 gnu-linux | gnu-kfreebsd )
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15405
15406 #ifndef __i386__
15407 # error "not i386"
15408 #endif
15409
15410 int
15411 main ()
15412 {
15413
15414 ;
15415 return 0;
15416 }
15417 _ACEOF
15418 if ac_fn_c_try_cpp "$LINENO"; then :
15419 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15420
15421 fi
15422 rm -f conftest.err conftest.$ac_ext
15423
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426
15427 #ifndef __ia64__
15428 # error "not ia64"
15429 #endif
15430
15431 int
15432 main ()
15433 {
15434
15435 ;
15436 return 0;
15437 }
15438 _ACEOF
15439 if ac_fn_c_try_cpp "$LINENO"; then :
15440
15441 $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
15442
15443 fi
15444 rm -f conftest.err conftest.$ac_ext
15445 ;;
15446
15447 hpux*)
15448
15449 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15450
15451 ;;
15452
15453 irix6-5)
15454 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15455
15456 ;;
15457 esac
15458
15459
15460
15461
15462
15463
15464
15465 case $opsys in
15466 aix4-2 | hpux* | unixware)
15467 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15468
15469 ;;
15470
15471 gnu-linux | gnu-kfreebsd )
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15474
15475 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15476 || defined __alpha__ || defined __mips__ || defined __s390__ \
15477 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15478 || defined __ia64__ || defined __sh__
15479 /* ok */
15480 #else
15481 # error "setjmp not known to work on this arch"
15482 #endif
15483
15484 int
15485 main ()
15486 {
15487
15488 ;
15489 return 0;
15490 }
15491 _ACEOF
15492 if ac_fn_c_try_cpp "$LINENO"; then :
15493 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15494
15495 else
15496 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15497
15498 fi
15499 rm -f conftest.err conftest.$ac_ext
15500 ;;
15501 esac
15502
15503
15504 if test x$GCC = xyes; then
15505 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15506
15507 else
15508 case $opsys in
15509 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15510 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15511
15512 ;;
15513 esac
15514 fi
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15516 $as_echo_n "checking for _setjmp... " >&6; }
15517 if test "${emacs_cv_func__setjmp+set}" = set; then :
15518 $as_echo_n "(cached) " >&6
15519 else
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h. */
15522 #include <setjmp.h>
15523
15524 int
15525 main ()
15526 {
15527 jmp_buf j;
15528 if (! _setjmp (j))
15529 _longjmp (j, 1);
15530 ;
15531 return 0;
15532 }
15533 _ACEOF
15534 if ac_fn_c_try_link "$LINENO"; then :
15535 emacs_cv_func__setjmp=yes
15536 else
15537 emacs_cv_func__setjmp=no
15538 fi
15539 rm -f core conftest.err conftest.$ac_objext \
15540 conftest$ac_exeext conftest.$ac_ext
15541 fi
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15543 $as_echo "$emacs_cv_func__setjmp" >&6; }
15544 if test $emacs_cv_func__setjmp = yes; then
15545
15546 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15547
15548 else
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15550 $as_echo_n "checking for sigsetjmp... " >&6; }
15551 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15552 $as_echo_n "(cached) " >&6
15553 else
15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15556 #include <setjmp.h>
15557
15558 int
15559 main ()
15560 {
15561 sigjmp_buf j;
15562 if (! sigsetjmp (j, 1))
15563 siglongjmp (j, 1);
15564 ;
15565 return 0;
15566 }
15567 _ACEOF
15568 if ac_fn_c_try_link "$LINENO"; then :
15569 emacs_cv_func_sigsetjmp=yes
15570 else
15571 emacs_cv_func_sigsetjmp=no
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext \
15574 conftest$ac_exeext conftest.$ac_ext
15575 fi
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15577 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15578 if test $emacs_cv_func_sigsetjmp = yes; then
15579
15580 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15581
15582 fi
15583 fi
15584
15585 case $opsys in
15586 sol2* | unixware )
15587
15588 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15589
15590 ;;
15591 esac
15592
15593
15594 case $opsys in
15595 hpux* | sol2* )
15596
15597 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15598
15599 ;;
15600 esac
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611 case $opsys in
15612 aix4-2)
15613 $as_echo "#define USG /**/" >>confdefs.h
15614
15615 $as_echo "#define USG5 /**/" >>confdefs.h
15616
15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15619
15620 #ifndef _AIX
15621 # error "_AIX not defined"
15622 #endif
15623
15624 int
15625 main ()
15626 {
15627
15628 ;
15629 return 0;
15630 }
15631 _ACEOF
15632 if ac_fn_c_try_cpp "$LINENO"; then :
15633
15634 else
15635
15636 $as_echo "#define _AIX /**/" >>confdefs.h
15637
15638 fi
15639 rm -f conftest.err conftest.$ac_ext
15640 ;;
15641
15642 cygwin)
15643
15644 $as_echo "#define CYGWIN 1" >>confdefs.h
15645
15646 ;;
15647
15648 darwin)
15649 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15650
15651 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15652
15653
15654 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15655
15656 ;;
15657
15658 freebsd)
15659 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15660
15661
15662 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15663
15664 ;;
15665
15666 gnu | netbsd | openbsd )
15667 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15668
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671
15672 #ifndef BSD_SYSTEM
15673 # error "BSD_SYSTEM not defined"
15674 #endif
15675
15676 int
15677 main ()
15678 {
15679
15680 ;
15681 return 0;
15682 }
15683 _ACEOF
15684 if ac_fn_c_try_cpp "$LINENO"; then :
15685
15686 else
15687 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15688
15689 fi
15690 rm -f conftest.err conftest.$ac_ext
15691 ;;
15692
15693 gnu-linux | gnu-kfreebsd )
15694 $as_echo "#define USG /**/" >>confdefs.h
15695
15696
15697 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15698
15699 ;;
15700
15701 hpux*)
15702 $as_echo "#define USG /**/" >>confdefs.h
15703
15704 $as_echo "#define USG5 /**/" >>confdefs.h
15705
15706
15707 $as_echo "#define HPUX /**/" >>confdefs.h
15708
15709 ;;
15710
15711 irix6-5)
15712 $as_echo "#define USG /**/" >>confdefs.h
15713
15714 $as_echo "#define USG5 /**/" >>confdefs.h
15715
15716 $as_echo "#define USG5_4 /**/" >>confdefs.h
15717
15718
15719 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15720
15721 ;;
15722
15723 sol2*)
15724 $as_echo "#define USG /**/" >>confdefs.h
15725
15726 $as_echo "#define USG5 /**/" >>confdefs.h
15727
15728 $as_echo "#define USG5_4 /**/" >>confdefs.h
15729
15730
15731 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15732
15733 ;;
15734
15735 unixware)
15736 $as_echo "#define USG /**/" >>confdefs.h
15737
15738 $as_echo "#define USG5 /**/" >>confdefs.h
15739
15740 $as_echo "#define USG5_4 /**/" >>confdefs.h
15741
15742 ;;
15743 esac
15744
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15746 $as_echo_n "checking for usable FIONREAD... " >&6; }
15747 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15750 case $opsys in
15751 aix4-2)
15752 emacs_cv_usable_FIONREAD=no
15753 ;;
15754
15755 *)
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15758 #include <sys/types.h>
15759 #include <sys/ioctl.h>
15760 #ifdef USG5_4
15761 # include <sys/filio.h>
15762 #endif
15763
15764 int
15765 main ()
15766 {
15767 int foo = ioctl (0, FIONREAD, &foo);
15768 ;
15769 return 0;
15770 }
15771 _ACEOF
15772 if ac_fn_c_try_compile "$LINENO"; then :
15773 emacs_cv_usable_FIONREAD=yes
15774 else
15775 emacs_cv_usable_FIONREAD=no
15776 fi
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 ;;
15779 esac
15780 fi
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15782 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15783 if test $emacs_cv_usable_FIONREAD = yes; then
15784
15785 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15786
15787
15788 if test $emacs_broken_SIGIO = no; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15790 $as_echo_n "checking for usable SIGIO... " >&6; }
15791 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15796 #include <fcntl.h>
15797 #include <signal.h>
15798
15799 int
15800 main ()
15801 {
15802 int foo = SIGIO | F_SETFL | FASYNC;
15803 ;
15804 return 0;
15805 }
15806 _ACEOF
15807 if ac_fn_c_try_compile "$LINENO"; then :
15808 emacs_cv_usable_SIGIO=yes
15809 else
15810 emacs_cv_usable_SIGIO=no
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 fi
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15815 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15816 if test $emacs_cv_usable_SIGIO = yes; then
15817
15818 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15819
15820 fi
15821 fi
15822 fi
15823
15824
15825 case $opsys in
15826 cygwin)
15827
15828 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15829
15830 ;;
15831
15832 hpux11)
15833
15834 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15835
15836 ;;
15837
15838 irix6-5)
15839
15840 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15841
15842
15843 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15844
15845 ;;
15846
15847 sol2-10)
15848
15849 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15850
15851 ;;
15852 esac
15853
15854 # Set up the CFLAGS for real compilation, so we can substitute it.
15855 CFLAGS="$REAL_CFLAGS"
15856 CPPFLAGS="$REAL_CPPFLAGS"
15857
15858 ## Hack to detect a buggy GCC version.
15859 if test "x$GCC" = xyes \
15860 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15861 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15862 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15863 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15864 fi
15865
15866 version=$PACKAGE_VERSION
15867
15868 copyright="Copyright (C) 2012 Free Software Foundation, Inc."
15869
15870 cat >>confdefs.h <<_ACEOF
15871 #define COPYRIGHT "$copyright"
15872 _ACEOF
15873
15874
15875
15876 ### Specify what sort of things we'll be editing into Makefile and config.h.
15877 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15878
15879
15880 ## Unused?
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15904 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15905 ## end of LIBX_BASE, but nothing ever set it.
15906
15907
15908
15909
15910 ## Used in lwlib/Makefile.in.
15911
15912
15913
15914
15915
15916
15917
15918
15919 if test -n "${term_header}"; then
15920
15921 cat >>confdefs.h <<_ACEOF
15922 #define TERM_HEADER "${term_header}"
15923 _ACEOF
15924
15925 fi
15926
15927
15928 cat >>confdefs.h <<_ACEOF
15929 #define EMACS_CONFIGURATION "${canonical}"
15930 _ACEOF
15931
15932
15933 cat >>confdefs.h <<_ACEOF
15934 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15935 _ACEOF
15936
15937
15938
15939 XMENU_OBJ=
15940 XOBJ=
15941 FONT_OBJ=
15942 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15943
15944 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15945
15946 XMENU_OBJ=xmenu.o
15947 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15948 FONT_OBJ=xfont.o
15949 if test "$HAVE_XFT" = "yes"; then
15950 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15951 elif test "$HAVE_FREETYPE" = "yes"; then
15952 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15953 fi
15954
15955 fi
15956
15957
15958
15959
15960 WIDGET_OBJ=
15961 MOTIF_LIBW=
15962 if test "${USE_X_TOOLKIT}" != "none" ; then
15963 WIDGET_OBJ=widget.o
15964
15965 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15966
15967 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15968
15969 $as_echo "#define USE_LUCID 1" >>confdefs.h
15970
15971 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15972
15973 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15974
15975 MOTIF_LIBW=-lXm
15976 case "$opsys" in
15977 gnu-linux)
15978 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15979 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15980 ;;
15981
15982 unixware)
15983 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15984 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15985 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15986 ;;
15987
15988 aix4-2)
15989 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15990 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15991 ;;
15992 esac
15993 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15994 fi
15995 fi
15996
15997
15998 TOOLKIT_LIBW=
15999 case "$USE_X_TOOLKIT" in
16000 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16001 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16002 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16003 esac
16004
16005
16006 if test "$USE_X_TOOLKIT" = "none"; then
16007 LIBXT_OTHER="\$(LIBXSM)"
16008 OLDXMENU_TARGET="really-oldXMenu"
16009 else
16010 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16011 OLDXMENU_TARGET="really-lwlib"
16012 fi
16013
16014
16015 ## The X Menu stuff is present in the X10 distribution, but missing
16016 ## from X11. If we have X10, just use the installed library;
16017 ## otherwise, use our own copy.
16018 if test "${HAVE_X11}" = "yes" ; then
16019
16020 $as_echo "#define HAVE_X11 1" >>confdefs.h
16021
16022
16023 if test "$USE_X_TOOLKIT" = "none"; then
16024 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16025 else
16026 OLDXMENU="\${lwlibdir}/liblw.a"
16027 fi
16028 LIBXMENU="\$(OLDXMENU)"
16029 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16030 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16031 else
16032 ## For a syntactically valid Makefile; not actually used for anything.
16033 ## See comments in src/Makefile.in.
16034 OLDXMENU=nothing
16035 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16036 if test "${HAVE_X_WINDOWS}" = "yes"; then
16037 LIBXMENU="-lXMenu"
16038 else
16039 LIBXMENU=
16040 fi
16041 LIBX_OTHER=
16042 OLDXMENU_DEPS=
16043 fi
16044
16045 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16046 OLDXMENU_TARGET=
16047 OLDXMENU=nothing
16048 LIBXMENU=
16049 OLDXMENU_DEPS=
16050 fi
16051
16052
16053
16054
16055
16056
16057
16058 if test "${HAVE_MENUS}" = "yes" ; then
16059
16060 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16061
16062 fi
16063
16064 if test "${GNU_MALLOC}" = "yes" ; then
16065
16066 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16067
16068 fi
16069
16070 RALLOC_OBJ=
16071 if test "${REL_ALLOC}" = "yes" ; then
16072
16073 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16074
16075
16076 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16077 fi
16078
16079
16080 if test "$opsys" = "cygwin"; then
16081 CYGWIN_OBJ="sheap.o"
16082 ## Cygwin differs because of its unexec().
16083 PRE_ALLOC_OBJ=
16084 POST_ALLOC_OBJ=lastfile.o
16085 else
16086 CYGWIN_OBJ=
16087 PRE_ALLOC_OBJ=lastfile.o
16088 POST_ALLOC_OBJ=
16089 fi
16090
16091
16092
16093
16094 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16095 # it temporarily reverts them to their pre-pkg-config values,
16096 # because gnulib needs to work with both src (which uses the
16097 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16098 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16099 # and it therefore needs to run in an environment where LIBS does not
16100 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16101 # for some package unrelated to lib-src.
16102 SAVE_CFLAGS=$CFLAGS
16103 SAVE_LIBS=$LIBS
16104 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16105 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117 LIBC_FATAL_STDERR_=1
16118 export LIBC_FATAL_STDERR_
16119
16120 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16121 # for constant arguments. Useless!
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16123 $as_echo_n "checking for working alloca.h... " >&6; }
16124 if test "${ac_cv_working_alloca_h+set}" = set; then :
16125 $as_echo_n "(cached) " >&6
16126 else
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 #include <alloca.h>
16130 int
16131 main ()
16132 {
16133 char *p = (char *) alloca (2 * sizeof (int));
16134 if (p) return 0;
16135 ;
16136 return 0;
16137 }
16138 _ACEOF
16139 if ac_fn_c_try_link "$LINENO"; then :
16140 ac_cv_working_alloca_h=yes
16141 else
16142 ac_cv_working_alloca_h=no
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16146 fi
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16148 $as_echo "$ac_cv_working_alloca_h" >&6; }
16149 if test $ac_cv_working_alloca_h = yes; then
16150
16151 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16152
16153 fi
16154
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16156 $as_echo_n "checking for alloca... " >&6; }
16157 if test "${ac_cv_func_alloca_works+set}" = set; then :
16158 $as_echo_n "(cached) " >&6
16159 else
16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h. */
16162 #ifdef __GNUC__
16163 # define alloca __builtin_alloca
16164 #else
16165 # ifdef _MSC_VER
16166 # include <malloc.h>
16167 # define alloca _alloca
16168 # else
16169 # ifdef HAVE_ALLOCA_H
16170 # include <alloca.h>
16171 # else
16172 # ifdef _AIX
16173 #pragma alloca
16174 # else
16175 # ifndef alloca /* predefined by HP cc +Olibcalls */
16176 char *alloca ();
16177 # endif
16178 # endif
16179 # endif
16180 # endif
16181 #endif
16182
16183 int
16184 main ()
16185 {
16186 char *p = (char *) alloca (1);
16187 if (p) return 0;
16188 ;
16189 return 0;
16190 }
16191 _ACEOF
16192 if ac_fn_c_try_link "$LINENO"; then :
16193 ac_cv_func_alloca_works=yes
16194 else
16195 ac_cv_func_alloca_works=no
16196 fi
16197 rm -f core conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16199 fi
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16201 $as_echo "$ac_cv_func_alloca_works" >&6; }
16202
16203 if test $ac_cv_func_alloca_works = yes; then
16204
16205 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16206
16207 else
16208 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16209 # that cause trouble. Some versions do not even contain alloca or
16210 # contain a buggy version. If you still want to use their alloca,
16211 # use ar to extract alloca.o from them instead of compiling alloca.c.
16212
16213
16214
16215
16216
16217 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16218
16219 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16220
16221
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16223 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16224 if test "${ac_cv_os_cray+set}" = set; then :
16225 $as_echo_n "(cached) " >&6
16226 else
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229 #if defined CRAY && ! defined CRAY2
16230 webecray
16231 #else
16232 wenotbecray
16233 #endif
16234
16235 _ACEOF
16236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16237 $EGREP "webecray" >/dev/null 2>&1; then :
16238 ac_cv_os_cray=yes
16239 else
16240 ac_cv_os_cray=no
16241 fi
16242 rm -f conftest*
16243
16244 fi
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16246 $as_echo "$ac_cv_os_cray" >&6; }
16247 if test $ac_cv_os_cray = yes; then
16248 for ac_func in _getb67 GETB67 getb67; do
16249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16251 eval as_val=\$$as_ac_var
16252 if test "x$as_val" = x""yes; then :
16253
16254 cat >>confdefs.h <<_ACEOF
16255 #define CRAY_STACKSEG_END $ac_func
16256 _ACEOF
16257
16258 break
16259 fi
16260
16261 done
16262 fi
16263
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16265 $as_echo_n "checking stack direction for C alloca... " >&6; }
16266 if test "${ac_cv_c_stack_direction+set}" = set; then :
16267 $as_echo_n "(cached) " >&6
16268 else
16269 if test "$cross_compiling" = yes; then :
16270 ac_cv_c_stack_direction=0
16271 else
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16274 $ac_includes_default
16275 int
16276 find_stack_direction (int *addr, int depth)
16277 {
16278 int dir, dummy = 0;
16279 if (! addr)
16280 addr = &dummy;
16281 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16282 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16283 return dir + dummy;
16284 }
16285
16286 int
16287 main (int argc, char **argv)
16288 {
16289 return find_stack_direction (0, argc + !argv + 20) < 0;
16290 }
16291 _ACEOF
16292 if ac_fn_c_try_run "$LINENO"; then :
16293 ac_cv_c_stack_direction=1
16294 else
16295 ac_cv_c_stack_direction=-1
16296 fi
16297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16298 conftest.$ac_objext conftest.beam conftest.$ac_ext
16299 fi
16300
16301 fi
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16303 $as_echo "$ac_cv_c_stack_direction" >&6; }
16304 cat >>confdefs.h <<_ACEOF
16305 #define STACK_DIRECTION $ac_cv_c_stack_direction
16306 _ACEOF
16307
16308
16309 fi
16310
16311
16312
16313
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16315 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16316 if test "${ac_cv_c_bigendian+set}" = set; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319 ac_cv_c_bigendian=unknown
16320 # See if we're dealing with a universal compiler.
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16323 #ifndef __APPLE_CC__
16324 not a universal capable compiler
16325 #endif
16326 typedef int dummy;
16327
16328 _ACEOF
16329 if ac_fn_c_try_compile "$LINENO"; then :
16330
16331 # Check for potential -arch flags. It is not universal unless
16332 # there are at least two -arch flags with different values.
16333 ac_arch=
16334 ac_prev=
16335 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16336 if test -n "$ac_prev"; then
16337 case $ac_word in
16338 i?86 | x86_64 | ppc | ppc64)
16339 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16340 ac_arch=$ac_word
16341 else
16342 ac_cv_c_bigendian=universal
16343 break
16344 fi
16345 ;;
16346 esac
16347 ac_prev=
16348 elif test "x$ac_word" = "x-arch"; then
16349 ac_prev=arch
16350 fi
16351 done
16352 fi
16353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16354 if test $ac_cv_c_bigendian = unknown; then
16355 # See if sys/param.h defines the BYTE_ORDER macro.
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358 #include <sys/types.h>
16359 #include <sys/param.h>
16360
16361 int
16362 main ()
16363 {
16364 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16365 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16366 && LITTLE_ENDIAN)
16367 bogus endian macros
16368 #endif
16369
16370 ;
16371 return 0;
16372 }
16373 _ACEOF
16374 if ac_fn_c_try_compile "$LINENO"; then :
16375 # It does; now see whether it defined to BIG_ENDIAN or not.
16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16378 #include <sys/types.h>
16379 #include <sys/param.h>
16380
16381 int
16382 main ()
16383 {
16384 #if BYTE_ORDER != BIG_ENDIAN
16385 not big endian
16386 #endif
16387
16388 ;
16389 return 0;
16390 }
16391 _ACEOF
16392 if ac_fn_c_try_compile "$LINENO"; then :
16393 ac_cv_c_bigendian=yes
16394 else
16395 ac_cv_c_bigendian=no
16396 fi
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 fi
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400 fi
16401 if test $ac_cv_c_bigendian = unknown; then
16402 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16405 #include <limits.h>
16406
16407 int
16408 main ()
16409 {
16410 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16411 bogus endian macros
16412 #endif
16413
16414 ;
16415 return 0;
16416 }
16417 _ACEOF
16418 if ac_fn_c_try_compile "$LINENO"; then :
16419 # It does; now see whether it defined to _BIG_ENDIAN or not.
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422 #include <limits.h>
16423
16424 int
16425 main ()
16426 {
16427 #ifndef _BIG_ENDIAN
16428 not big endian
16429 #endif
16430
16431 ;
16432 return 0;
16433 }
16434 _ACEOF
16435 if ac_fn_c_try_compile "$LINENO"; then :
16436 ac_cv_c_bigendian=yes
16437 else
16438 ac_cv_c_bigendian=no
16439 fi
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 fi
16444 if test $ac_cv_c_bigendian = unknown; then
16445 # Compile a test program.
16446 if test "$cross_compiling" = yes; then :
16447 # Try to guess by grepping values from an object file.
16448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16449 /* end confdefs.h. */
16450 short int ascii_mm[] =
16451 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16452 short int ascii_ii[] =
16453 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16454 int use_ascii (int i) {
16455 return ascii_mm[i] + ascii_ii[i];
16456 }
16457 short int ebcdic_ii[] =
16458 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16459 short int ebcdic_mm[] =
16460 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16461 int use_ebcdic (int i) {
16462 return ebcdic_mm[i] + ebcdic_ii[i];
16463 }
16464 extern int foo;
16465
16466 int
16467 main ()
16468 {
16469 return use_ascii (foo) == use_ebcdic (foo);
16470 ;
16471 return 0;
16472 }
16473 _ACEOF
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16476 ac_cv_c_bigendian=yes
16477 fi
16478 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16479 if test "$ac_cv_c_bigendian" = unknown; then
16480 ac_cv_c_bigendian=no
16481 else
16482 # finding both strings is unlikely to happen, but who knows?
16483 ac_cv_c_bigendian=unknown
16484 fi
16485 fi
16486 fi
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 else
16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h. */
16491 $ac_includes_default
16492 int
16493 main ()
16494 {
16495
16496 /* Are we little or big endian? From Harbison&Steele. */
16497 union
16498 {
16499 long int l;
16500 char c[sizeof (long int)];
16501 } u;
16502 u.l = 1;
16503 return u.c[sizeof (long int) - 1] == 1;
16504
16505 ;
16506 return 0;
16507 }
16508 _ACEOF
16509 if ac_fn_c_try_run "$LINENO"; then :
16510 ac_cv_c_bigendian=no
16511 else
16512 ac_cv_c_bigendian=yes
16513 fi
16514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16515 conftest.$ac_objext conftest.beam conftest.$ac_ext
16516 fi
16517
16518 fi
16519 fi
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16521 $as_echo "$ac_cv_c_bigendian" >&6; }
16522 case $ac_cv_c_bigendian in #(
16523 yes)
16524 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16525 ;; #(
16526 no)
16527 ;; #(
16528 universal)
16529
16530 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16531
16532 ;; #(
16533 *)
16534 as_fn_error "unknown endianness
16535 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16536 esac
16537
16538
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16540 $as_echo_n "checking for inline... " >&6; }
16541 if test "${ac_cv_c_inline+set}" = set; then :
16542 $as_echo_n "(cached) " >&6
16543 else
16544 ac_cv_c_inline=no
16545 for ac_kw in inline __inline__ __inline; do
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16548 #ifndef __cplusplus
16549 typedef int foo_t;
16550 static $ac_kw foo_t static_foo () {return 0; }
16551 $ac_kw foo_t foo () {return 0; }
16552 #endif
16553
16554 _ACEOF
16555 if ac_fn_c_try_compile "$LINENO"; then :
16556 ac_cv_c_inline=$ac_kw
16557 fi
16558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 test "$ac_cv_c_inline" != no && break
16560 done
16561
16562 fi
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16564 $as_echo "$ac_cv_c_inline" >&6; }
16565
16566 case $ac_cv_c_inline in
16567 inline | yes) ;;
16568 *)
16569 case $ac_cv_c_inline in
16570 no) ac_val=;;
16571 *) ac_val=$ac_cv_c_inline;;
16572 esac
16573 cat >>confdefs.h <<_ACEOF
16574 #ifndef __cplusplus
16575 #define inline $ac_val
16576 #endif
16577 _ACEOF
16578 ;;
16579 esac
16580
16581
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16583 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16584 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16585 $as_echo_n "(cached) " >&6
16586 else
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16589 /* On HP-UX before 11.23, strtold returns a struct instead of
16590 long double. Reject implementations like that, by requiring
16591 compatibility with the C99 prototype. */
16592 #include <stdlib.h>
16593 static long double (*p) (char const *, char **) = strtold;
16594 static long double
16595 test (char const *nptr, char **endptr)
16596 {
16597 long double r;
16598 r = strtold (nptr, endptr);
16599 return r;
16600 }
16601 int
16602 main ()
16603 {
16604 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16605 ;
16606 return 0;
16607 }
16608 _ACEOF
16609 if ac_fn_c_try_link "$LINENO"; then :
16610 gl_cv_func_c99_strtold=yes
16611 else
16612 gl_cv_func_c99_strtold=no
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext \
16615 conftest$ac_exeext conftest.$ac_ext
16616 fi
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16618 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16619 if test $gl_cv_func_c99_strtold = yes; then
16620
16621 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16622
16623 fi
16624
16625
16626 GNULIB_CHDIR=0;
16627 GNULIB_CHOWN=0;
16628 GNULIB_CLOSE=0;
16629 GNULIB_DUP=0;
16630 GNULIB_DUP2=0;
16631 GNULIB_DUP3=0;
16632 GNULIB_ENVIRON=0;
16633 GNULIB_EUIDACCESS=0;
16634 GNULIB_FACCESSAT=0;
16635 GNULIB_FCHDIR=0;
16636 GNULIB_FCHOWNAT=0;
16637 GNULIB_FDATASYNC=0;
16638 GNULIB_FSYNC=0;
16639 GNULIB_FTRUNCATE=0;
16640 GNULIB_GETCWD=0;
16641 GNULIB_GETDOMAINNAME=0;
16642 GNULIB_GETDTABLESIZE=0;
16643 GNULIB_GETGROUPS=0;
16644 GNULIB_GETHOSTNAME=0;
16645 GNULIB_GETLOGIN=0;
16646 GNULIB_GETLOGIN_R=0;
16647 GNULIB_GETPAGESIZE=0;
16648 GNULIB_GETUSERSHELL=0;
16649 GNULIB_GROUP_MEMBER=0;
16650 GNULIB_ISATTY=0;
16651 GNULIB_LCHOWN=0;
16652 GNULIB_LINK=0;
16653 GNULIB_LINKAT=0;
16654 GNULIB_LSEEK=0;
16655 GNULIB_PIPE=0;
16656 GNULIB_PIPE2=0;
16657 GNULIB_PREAD=0;
16658 GNULIB_PWRITE=0;
16659 GNULIB_READ=0;
16660 GNULIB_READLINK=0;
16661 GNULIB_READLINKAT=0;
16662 GNULIB_RMDIR=0;
16663 GNULIB_SETHOSTNAME=0;
16664 GNULIB_SLEEP=0;
16665 GNULIB_SYMLINK=0;
16666 GNULIB_SYMLINKAT=0;
16667 GNULIB_TTYNAME_R=0;
16668 GNULIB_UNISTD_H_NONBLOCKING=0;
16669 GNULIB_UNISTD_H_SIGPIPE=0;
16670 GNULIB_UNLINK=0;
16671 GNULIB_UNLINKAT=0;
16672 GNULIB_USLEEP=0;
16673 GNULIB_WRITE=0;
16674 HAVE_CHOWN=1;
16675 HAVE_DUP2=1;
16676 HAVE_DUP3=1;
16677 HAVE_EUIDACCESS=1;
16678 HAVE_FACCESSAT=1;
16679 HAVE_FCHDIR=1;
16680 HAVE_FCHOWNAT=1;
16681 HAVE_FDATASYNC=1;
16682 HAVE_FSYNC=1;
16683 HAVE_FTRUNCATE=1;
16684 HAVE_GETDTABLESIZE=1;
16685 HAVE_GETGROUPS=1;
16686 HAVE_GETHOSTNAME=1;
16687 HAVE_GETLOGIN=1;
16688 HAVE_GETPAGESIZE=1;
16689 HAVE_GROUP_MEMBER=1;
16690 HAVE_LCHOWN=1;
16691 HAVE_LINK=1;
16692 HAVE_LINKAT=1;
16693 HAVE_PIPE=1;
16694 HAVE_PIPE2=1;
16695 HAVE_PREAD=1;
16696 HAVE_PWRITE=1;
16697 HAVE_READLINK=1;
16698 HAVE_READLINKAT=1;
16699 HAVE_SETHOSTNAME=1;
16700 HAVE_SLEEP=1;
16701 HAVE_SYMLINK=1;
16702 HAVE_SYMLINKAT=1;
16703 HAVE_UNLINKAT=1;
16704 HAVE_USLEEP=1;
16705 HAVE_DECL_ENVIRON=1;
16706 HAVE_DECL_FCHDIR=1;
16707 HAVE_DECL_FDATASYNC=1;
16708 HAVE_DECL_GETDOMAINNAME=1;
16709 HAVE_DECL_GETLOGIN_R=1;
16710 HAVE_DECL_GETPAGESIZE=1;
16711 HAVE_DECL_GETUSERSHELL=1;
16712 HAVE_DECL_SETHOSTNAME=1;
16713 HAVE_DECL_TTYNAME_R=1;
16714 HAVE_OS_H=0;
16715 HAVE_SYS_PARAM_H=0;
16716 REPLACE_CHOWN=0;
16717 REPLACE_CLOSE=0;
16718 REPLACE_DUP=0;
16719 REPLACE_DUP2=0;
16720 REPLACE_FCHOWNAT=0;
16721 REPLACE_FTRUNCATE=0;
16722 REPLACE_GETCWD=0;
16723 REPLACE_GETDOMAINNAME=0;
16724 REPLACE_GETLOGIN_R=0;
16725 REPLACE_GETGROUPS=0;
16726 REPLACE_GETPAGESIZE=0;
16727 REPLACE_ISATTY=0;
16728 REPLACE_LCHOWN=0;
16729 REPLACE_LINK=0;
16730 REPLACE_LINKAT=0;
16731 REPLACE_LSEEK=0;
16732 REPLACE_PREAD=0;
16733 REPLACE_PWRITE=0;
16734 REPLACE_READ=0;
16735 REPLACE_READLINK=0;
16736 REPLACE_RMDIR=0;
16737 REPLACE_SLEEP=0;
16738 REPLACE_SYMLINK=0;
16739 REPLACE_TTYNAME_R=0;
16740 REPLACE_UNLINK=0;
16741 REPLACE_UNLINKAT=0;
16742 REPLACE_USLEEP=0;
16743 REPLACE_WRITE=0;
16744 UNISTD_H_HAVE_WINSOCK2_H=0;
16745 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16756 $as_echo_n "checking if environ is properly declared... " >&6; }
16757 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16758 $as_echo_n "(cached) " >&6
16759 else
16760
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16763 #if HAVE_UNISTD_H
16764 #include <unistd.h>
16765 #endif
16766 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16767 #include <stdlib.h>
16768
16769 extern struct { int foo; } environ;
16770 int
16771 main ()
16772 {
16773 environ.foo = 1;
16774 ;
16775 return 0;
16776 }
16777 _ACEOF
16778 if ac_fn_c_try_compile "$LINENO"; then :
16779 gt_cv_var_environ_declaration=no
16780 else
16781 gt_cv_var_environ_declaration=yes
16782 fi
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16784 fi
16785
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16787 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16788 if test $gt_cv_var_environ_declaration = yes; then
16789
16790 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16791
16792 fi
16793
16794
16795 if test $gt_cv_var_environ_declaration != yes; then
16796 HAVE_DECL_ENVIRON=0
16797 fi
16798
16799
16800
16801
16802
16803
16804
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16806 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16807 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16808 $as_echo_n "(cached) " >&6
16809 else
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812
16813 #include <sys/types.h>
16814 #include <sys/stat.h>
16815 int
16816 main ()
16817 {
16818 struct stat s; s.st_dm_mode;
16819 ;
16820 return 0;
16821 }
16822 _ACEOF
16823 if ac_fn_c_try_compile "$LINENO"; then :
16824 ac_cv_struct_st_dm_mode=yes
16825 else
16826 ac_cv_struct_st_dm_mode=no
16827 fi
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829 fi
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16831 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16832
16833 if test $ac_cv_struct_st_dm_mode = yes; then
16834
16835 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16836
16837 fi
16838
16839
16840 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16841 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16842 ac_have_decl=1
16843 else
16844 ac_have_decl=0
16845 fi
16846
16847 cat >>confdefs.h <<_ACEOF
16848 #define HAVE_DECL_STRMODE $ac_have_decl
16849 _ACEOF
16850
16851
16852 GNULIB__EXIT=0;
16853 GNULIB_ATOLL=0;
16854 GNULIB_CALLOC_POSIX=0;
16855 GNULIB_CANONICALIZE_FILE_NAME=0;
16856 GNULIB_GETLOADAVG=0;
16857 GNULIB_GETSUBOPT=0;
16858 GNULIB_GRANTPT=0;
16859 GNULIB_MALLOC_POSIX=0;
16860 GNULIB_MBTOWC=0;
16861 GNULIB_MKDTEMP=0;
16862 GNULIB_MKOSTEMP=0;
16863 GNULIB_MKOSTEMPS=0;
16864 GNULIB_MKSTEMP=0;
16865 GNULIB_MKSTEMPS=0;
16866 GNULIB_POSIX_OPENPT=0;
16867 GNULIB_PTSNAME=0;
16868 GNULIB_PTSNAME_R=0;
16869 GNULIB_PUTENV=0;
16870 GNULIB_RANDOM=0;
16871 GNULIB_RANDOM_R=0;
16872 GNULIB_REALLOC_POSIX=0;
16873 GNULIB_REALPATH=0;
16874 GNULIB_RPMATCH=0;
16875 GNULIB_SETENV=0;
16876 GNULIB_STRTOD=0;
16877 GNULIB_STRTOLL=0;
16878 GNULIB_STRTOULL=0;
16879 GNULIB_SYSTEM_POSIX=0;
16880 GNULIB_UNLOCKPT=0;
16881 GNULIB_UNSETENV=0;
16882 GNULIB_WCTOMB=0;
16883 HAVE__EXIT=1;
16884 HAVE_ATOLL=1;
16885 HAVE_CANONICALIZE_FILE_NAME=1;
16886 HAVE_DECL_GETLOADAVG=1;
16887 HAVE_GETSUBOPT=1;
16888 HAVE_GRANTPT=1;
16889 HAVE_MKDTEMP=1;
16890 HAVE_MKOSTEMP=1;
16891 HAVE_MKOSTEMPS=1;
16892 HAVE_MKSTEMP=1;
16893 HAVE_MKSTEMPS=1;
16894 HAVE_POSIX_OPENPT=1;
16895 HAVE_PTSNAME=1;
16896 HAVE_PTSNAME_R=1;
16897 HAVE_RANDOM=1;
16898 HAVE_RANDOM_H=1;
16899 HAVE_RANDOM_R=1;
16900 HAVE_REALPATH=1;
16901 HAVE_RPMATCH=1;
16902 HAVE_SETENV=1;
16903 HAVE_DECL_SETENV=1;
16904 HAVE_STRTOD=1;
16905 HAVE_STRTOLL=1;
16906 HAVE_STRTOULL=1;
16907 HAVE_STRUCT_RANDOM_DATA=1;
16908 HAVE_SYS_LOADAVG_H=0;
16909 HAVE_UNLOCKPT=1;
16910 HAVE_DECL_UNSETENV=1;
16911 REPLACE_CALLOC=0;
16912 REPLACE_CANONICALIZE_FILE_NAME=0;
16913 REPLACE_MALLOC=0;
16914 REPLACE_MBTOWC=0;
16915 REPLACE_MKSTEMP=0;
16916 REPLACE_PTSNAME=0;
16917 REPLACE_PTSNAME_R=0;
16918 REPLACE_PUTENV=0;
16919 REPLACE_RANDOM_R=0;
16920 REPLACE_REALLOC=0;
16921 REPLACE_REALPATH=0;
16922 REPLACE_SETENV=0;
16923 REPLACE_STRTOD=0;
16924 REPLACE_UNSETENV=0;
16925 REPLACE_WCTOMB=0;
16926
16927
16928
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16930 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16931 if test "${gl_cv_have_include_next+set}" = set; then :
16932 $as_echo_n "(cached) " >&6
16933 else
16934 rm -rf conftestd1a conftestd1b conftestd2
16935 mkdir conftestd1a conftestd1b conftestd2
16936 cat <<EOF > conftestd1a/conftest.h
16937 #define DEFINED_IN_CONFTESTD1
16938 #include_next <conftest.h>
16939 #ifdef DEFINED_IN_CONFTESTD2
16940 int foo;
16941 #else
16942 #error "include_next doesn't work"
16943 #endif
16944 EOF
16945 cat <<EOF > conftestd1b/conftest.h
16946 #define DEFINED_IN_CONFTESTD1
16947 #include <stdio.h>
16948 #include_next <conftest.h>
16949 #ifdef DEFINED_IN_CONFTESTD2
16950 int foo;
16951 #else
16952 #error "include_next doesn't work"
16953 #endif
16954 EOF
16955 cat <<EOF > conftestd2/conftest.h
16956 #ifndef DEFINED_IN_CONFTESTD1
16957 #error "include_next test doesn't work"
16958 #endif
16959 #define DEFINED_IN_CONFTESTD2
16960 EOF
16961 gl_save_CPPFLAGS="$CPPFLAGS"
16962 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16965 #include <conftest.h>
16966 _ACEOF
16967 if ac_fn_c_try_compile "$LINENO"; then :
16968 gl_cv_have_include_next=yes
16969 else
16970 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16973 #include <conftest.h>
16974 _ACEOF
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976 gl_cv_have_include_next=buggy
16977 else
16978 gl_cv_have_include_next=no
16979 fi
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981
16982 fi
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 CPPFLAGS="$gl_save_CPPFLAGS"
16985 rm -rf conftestd1a conftestd1b conftestd2
16986
16987 fi
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16989 $as_echo "$gl_cv_have_include_next" >&6; }
16990 PRAGMA_SYSTEM_HEADER=
16991 if test $gl_cv_have_include_next = yes; then
16992 INCLUDE_NEXT=include_next
16993 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16994 if test -n "$GCC"; then
16995 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16996 fi
16997 else
16998 if test $gl_cv_have_include_next = buggy; then
16999 INCLUDE_NEXT=include
17000 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17001 else
17002 INCLUDE_NEXT=include
17003 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17004 fi
17005 fi
17006
17007
17008
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17010 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17011 if test "${gl_cv_pragma_columns+set}" = set; then :
17012 $as_echo_n "(cached) " >&6
17013 else
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016
17017 #ifdef __TANDEM
17018 choke me
17019 #endif
17020
17021 _ACEOF
17022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17023 $EGREP "choke me" >/dev/null 2>&1; then :
17024 gl_cv_pragma_columns=yes
17025 else
17026 gl_cv_pragma_columns=no
17027 fi
17028 rm -f conftest*
17029
17030
17031 fi
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17033 $as_echo "$gl_cv_pragma_columns" >&6; }
17034 if test $gl_cv_pragma_columns = yes; then
17035 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17036 else
17037 PRAGMA_COLUMNS=
17038 fi
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056 if test $gl_cv_have_include_next = yes; then
17057 gl_cv_next_getopt_h='<'getopt.h'>'
17058 else
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17060 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17061 if test "${gl_cv_next_getopt_h+set}" = set; then :
17062 $as_echo_n "(cached) " >&6
17063 else
17064
17065 if test $ac_cv_header_getopt_h = yes; then
17066
17067
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17070 #include <getopt.h>
17071
17072 _ACEOF
17073 case "$host_os" in
17074 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17075 *) gl_absname_cpp="$ac_cpp" ;;
17076 esac
17077
17078 case "$host_os" in
17079 mingw*)
17080 gl_dirsep_regex='[/\\]'
17081 ;;
17082 *)
17083 gl_dirsep_regex='\/'
17084 ;;
17085 esac
17086 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17087
17088 gl_header_literal_regex=`echo 'getopt.h' \
17089 | sed -e "$gl_make_literal_regex_sed"`
17090 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17091 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17092 s|^/[^/]|//&|
17093 p
17094 q
17095 }'
17096 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17097 sed -n "$gl_absolute_header_sed"`'"'
17098 else
17099 gl_cv_next_getopt_h='<'getopt.h'>'
17100 fi
17101
17102
17103 fi
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17105 $as_echo "$gl_cv_next_getopt_h" >&6; }
17106 fi
17107 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17108
17109 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17110 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17111 gl_next_as_first_directive='<'getopt.h'>'
17112 else
17113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17114 gl_next_as_first_directive=$gl_cv_next_getopt_h
17115 fi
17116 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17117
17118
17119
17120
17121 if test $ac_cv_header_getopt_h = yes; then
17122 HAVE_GETOPT_H=1
17123 else
17124 HAVE_GETOPT_H=0
17125 fi
17126
17127
17128 gl_replace_getopt=
17129
17130 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17131 for ac_header in getopt.h
17132 do :
17133 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17134 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17135 cat >>confdefs.h <<_ACEOF
17136 #define HAVE_GETOPT_H 1
17137 _ACEOF
17138
17139 else
17140 gl_replace_getopt=yes
17141 fi
17142
17143 done
17144
17145 fi
17146
17147 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17148 for ac_func in getopt_long_only
17149 do :
17150 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17151 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17152 cat >>confdefs.h <<_ACEOF
17153 #define HAVE_GETOPT_LONG_ONLY 1
17154 _ACEOF
17155
17156 else
17157 gl_replace_getopt=yes
17158 fi
17159 done
17160
17161 fi
17162
17163 if test -z "$gl_replace_getopt"; then
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17165 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17166 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17167 $as_echo_n "(cached) " >&6
17168 else
17169
17170 if test $cross_compiling = no; then
17171 if test "$cross_compiling" = yes; then :
17172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17174 as_fn_error "cannot run test program while cross compiling
17175 See \`config.log' for more details." "$LINENO" 5; }
17176 else
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h. */
17179
17180 #include <unistd.h>
17181 #include <stdlib.h>
17182 #include <string.h>
17183
17184 int
17185 main ()
17186 {
17187 static char program[] = "program";
17188 static char a[] = "-a";
17189 static char foo[] = "foo";
17190 static char bar[] = "bar";
17191 char *argv[] = { program, a, foo, bar, NULL };
17192 int c;
17193
17194 c = getopt (4, argv, "ab");
17195 if (!(c == 'a'))
17196 return 1;
17197 c = getopt (4, argv, "ab");
17198 if (!(c == -1))
17199 return 2;
17200 if (!(optind == 2))
17201 return 3;
17202 return 0;
17203 }
17204
17205 _ACEOF
17206 if ac_fn_c_try_run "$LINENO"; then :
17207 gl_cv_func_getopt_posix=maybe
17208 else
17209 gl_cv_func_getopt_posix=no
17210 fi
17211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17212 conftest.$ac_objext conftest.beam conftest.$ac_ext
17213 fi
17214
17215 if test $gl_cv_func_getopt_posix = maybe; then
17216 if test "$cross_compiling" = yes; then :
17217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17219 as_fn_error "cannot run test program while cross compiling
17220 See \`config.log' for more details." "$LINENO" 5; }
17221 else
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17224
17225 #include <unistd.h>
17226 #include <stdlib.h>
17227 #include <string.h>
17228
17229 int
17230 main ()
17231 {
17232 static char program[] = "program";
17233 static char donald[] = "donald";
17234 static char p[] = "-p";
17235 static char billy[] = "billy";
17236 static char duck[] = "duck";
17237 static char a[] = "-a";
17238 static char bar[] = "bar";
17239 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17240 int c;
17241
17242 c = getopt (7, argv, "+abp:q:");
17243 if (!(c == -1))
17244 return 4;
17245 if (!(strcmp (argv[0], "program") == 0))
17246 return 5;
17247 if (!(strcmp (argv[1], "donald") == 0))
17248 return 6;
17249 if (!(strcmp (argv[2], "-p") == 0))
17250 return 7;
17251 if (!(strcmp (argv[3], "billy") == 0))
17252 return 8;
17253 if (!(strcmp (argv[4], "duck") == 0))
17254 return 9;
17255 if (!(strcmp (argv[5], "-a") == 0))
17256 return 10;
17257 if (!(strcmp (argv[6], "bar") == 0))
17258 return 11;
17259 if (!(optind == 1))
17260 return 12;
17261 return 0;
17262 }
17263
17264 _ACEOF
17265 if ac_fn_c_try_run "$LINENO"; then :
17266 gl_cv_func_getopt_posix=maybe
17267 else
17268 gl_cv_func_getopt_posix=no
17269 fi
17270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17271 conftest.$ac_objext conftest.beam conftest.$ac_ext
17272 fi
17273
17274 fi
17275 if test $gl_cv_func_getopt_posix = maybe; then
17276 if test "$cross_compiling" = yes; then :
17277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17279 as_fn_error "cannot run test program while cross compiling
17280 See \`config.log' for more details." "$LINENO" 5; }
17281 else
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284
17285 #include <unistd.h>
17286 #include <stdlib.h>
17287 #include <string.h>
17288
17289 int
17290 main ()
17291 {
17292 static char program[] = "program";
17293 static char ab[] = "-ab";
17294 char *argv[3] = { program, ab, NULL };
17295 if (getopt (2, argv, "ab:") != 'a')
17296 return 13;
17297 if (getopt (2, argv, "ab:") != '?')
17298 return 14;
17299 if (optopt != 'b')
17300 return 15;
17301 if (optind != 2)
17302 return 16;
17303 return 0;
17304 }
17305
17306 _ACEOF
17307 if ac_fn_c_try_run "$LINENO"; then :
17308 gl_cv_func_getopt_posix=yes
17309 else
17310 gl_cv_func_getopt_posix=no
17311 fi
17312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17313 conftest.$ac_objext conftest.beam conftest.$ac_ext
17314 fi
17315
17316 fi
17317 else
17318 case "$host_os" in
17319 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17320 *) gl_cv_func_getopt_posix="guessing yes";;
17321 esac
17322 fi
17323
17324 fi
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17326 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17327 case "$gl_cv_func_getopt_posix" in
17328 *no) gl_replace_getopt=yes ;;
17329 esac
17330 fi
17331
17332 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17334 $as_echo_n "checking for working GNU getopt function... " >&6; }
17335 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17336 $as_echo_n "(cached) " >&6
17337 else
17338 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17339 # optstring is necessary for programs like m4 that have POSIX-mandated
17340 # semantics for supporting options interspersed with files.
17341 # Also, since getopt_long is a GNU extension, we require optind=0.
17342 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17343 # so take care to revert to the correct (non-)export state.
17344 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17345 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17346 xx) gl_had_POSIXLY_CORRECT=exported ;;
17347 x) gl_had_POSIXLY_CORRECT=yes ;;
17348 *) gl_had_POSIXLY_CORRECT= ;;
17349 esac
17350 POSIXLY_CORRECT=1
17351 export POSIXLY_CORRECT
17352 if test "$cross_compiling" = yes; then :
17353 gl_cv_func_getopt_gnu="guessing no"
17354
17355 else
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357 /* end confdefs.h. */
17358 #include <getopt.h>
17359 #include <stddef.h>
17360 #include <string.h>
17361
17362 #include <stdlib.h>
17363 #if defined __MACH__ && defined __APPLE__
17364 /* Avoid a crash on Mac OS X. */
17365 #include <mach/mach.h>
17366 #include <mach/mach_error.h>
17367 #include <mach/thread_status.h>
17368 #include <mach/exception.h>
17369 #include <mach/task.h>
17370 #include <pthread.h>
17371 /* The exception port on which our thread listens. */
17372 static mach_port_t our_exception_port;
17373 /* The main function of the thread listening for exceptions of type
17374 EXC_BAD_ACCESS. */
17375 static void *
17376 mach_exception_thread (void *arg)
17377 {
17378 /* Buffer for a message to be received. */
17379 struct {
17380 mach_msg_header_t head;
17381 mach_msg_body_t msgh_body;
17382 char data[1024];
17383 } msg;
17384 mach_msg_return_t retval;
17385 /* Wait for a message on the exception port. */
17386 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17387 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17388 if (retval != MACH_MSG_SUCCESS)
17389 abort ();
17390 exit (1);
17391 }
17392 static void
17393 nocrash_init (void)
17394 {
17395 mach_port_t self = mach_task_self ();
17396 /* Allocate a port on which the thread shall listen for exceptions. */
17397 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17398 == KERN_SUCCESS) {
17399 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17400 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17401 MACH_MSG_TYPE_MAKE_SEND)
17402 == KERN_SUCCESS) {
17403 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17404 for us. */
17405 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17406 /* Create the thread listening on the exception port. */
17407 pthread_attr_t attr;
17408 pthread_t thread;
17409 if (pthread_attr_init (&attr) == 0
17410 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17411 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17412 pthread_attr_destroy (&attr);
17413 /* Replace the exception port info for these exceptions with our own.
17414 Note that we replace the exception port for the entire task, not only
17415 for a particular thread. This has the effect that when our exception
17416 port gets the message, the thread specific exception port has already
17417 been asked, and we don't need to bother about it.
17418 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17419 task_set_exception_ports (self, mask, our_exception_port,
17420 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17421 }
17422 }
17423 }
17424 }
17425 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17426 /* Avoid a crash on native Windows. */
17427 #define WIN32_LEAN_AND_MEAN
17428 #include <windows.h>
17429 #include <winerror.h>
17430 static LONG WINAPI
17431 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17432 {
17433 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17434 {
17435 case EXCEPTION_ACCESS_VIOLATION:
17436 case EXCEPTION_IN_PAGE_ERROR:
17437 case EXCEPTION_STACK_OVERFLOW:
17438 case EXCEPTION_GUARD_PAGE:
17439 case EXCEPTION_PRIV_INSTRUCTION:
17440 case EXCEPTION_ILLEGAL_INSTRUCTION:
17441 case EXCEPTION_DATATYPE_MISALIGNMENT:
17442 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17443 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17444 exit (1);
17445 }
17446 return EXCEPTION_CONTINUE_SEARCH;
17447 }
17448 static void
17449 nocrash_init (void)
17450 {
17451 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17452 }
17453 #else
17454 /* Avoid a crash on POSIX systems. */
17455 #include <signal.h>
17456 /* A POSIX signal handler. */
17457 static void
17458 exception_handler (int sig)
17459 {
17460 exit (1);
17461 }
17462 static void
17463 nocrash_init (void)
17464 {
17465 #ifdef SIGSEGV
17466 signal (SIGSEGV, exception_handler);
17467 #endif
17468 #ifdef SIGBUS
17469 signal (SIGBUS, exception_handler);
17470 #endif
17471 }
17472 #endif
17473
17474
17475 int
17476 main ()
17477 {
17478
17479 int result = 0;
17480
17481 nocrash_init();
17482
17483 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17484 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17485 OSF/1 5.1, Solaris 10. */
17486 {
17487 static char conftest[] = "conftest";
17488 static char plus[] = "-+";
17489 char *argv[3] = { conftest, plus, NULL };
17490 opterr = 0;
17491 if (getopt (2, argv, "+a") != '?')
17492 result |= 1;
17493 }
17494 /* This code succeeds on glibc 2.8, mingw,
17495 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17496 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17497 {
17498 static char program[] = "program";
17499 static char p[] = "-p";
17500 static char foo[] = "foo";
17501 static char bar[] = "bar";
17502 char *argv[] = { program, p, foo, bar, NULL };
17503
17504 optind = 1;
17505 if (getopt (4, argv, "p::") != 'p')
17506 result |= 2;
17507 else if (optarg != NULL)
17508 result |= 4;
17509 else if (getopt (4, argv, "p::") != -1)
17510 result |= 6;
17511 else if (optind != 2)
17512 result |= 8;
17513 }
17514 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17515 {
17516 static char program[] = "program";
17517 static char foo[] = "foo";
17518 static char p[] = "-p";
17519 char *argv[] = { program, foo, p, NULL };
17520 optind = 0;
17521 if (getopt (3, argv, "-p") != 1)
17522 result |= 16;
17523 else if (getopt (3, argv, "-p") != 'p')
17524 result |= 16;
17525 }
17526 /* This code fails on glibc 2.11. */
17527 {
17528 static char program[] = "program";
17529 static char b[] = "-b";
17530 static char a[] = "-a";
17531 char *argv[] = { program, b, a, NULL };
17532 optind = opterr = 0;
17533 if (getopt (3, argv, "+:a:b") != 'b')
17534 result |= 32;
17535 else if (getopt (3, argv, "+:a:b") != ':')
17536 result |= 32;
17537 }
17538 /* This code dumps core on glibc 2.14. */
17539 {
17540 static char program[] = "program";
17541 static char w[] = "-W";
17542 static char dummy[] = "dummy";
17543 char *argv[] = { program, w, dummy, NULL };
17544 optind = opterr = 1;
17545 if (getopt (3, argv, "W;") != 'W')
17546 result |= 64;
17547 }
17548 return result;
17549
17550 ;
17551 return 0;
17552 }
17553 _ACEOF
17554 if ac_fn_c_try_run "$LINENO"; then :
17555 gl_cv_func_getopt_gnu=yes
17556 else
17557 gl_cv_func_getopt_gnu=no
17558 fi
17559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17560 conftest.$ac_objext conftest.beam conftest.$ac_ext
17561 fi
17562
17563 case $gl_had_POSIXLY_CORRECT in
17564 exported) ;;
17565 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17566 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17567 esac
17568
17569 fi
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17571 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17572 if test "$gl_cv_func_getopt_gnu" != yes; then
17573 gl_replace_getopt=yes
17574 else
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17576 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17577 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580 if test "$cross_compiling" = yes; then :
17581 case "$host_os" in
17582 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17583 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17584 esac
17585
17586 else
17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588 /* end confdefs.h. */
17589 #include <getopt.h>
17590 #include <stddef.h>
17591 #include <string.h>
17592
17593 int
17594 main ()
17595 {
17596 static const struct option long_options[] =
17597 {
17598 { "xtremely-",no_argument, NULL, 1003 },
17599 { "xtra", no_argument, NULL, 1001 },
17600 { "xtreme", no_argument, NULL, 1002 },
17601 { "xtremely", no_argument, NULL, 1003 },
17602 { NULL, 0, NULL, 0 }
17603 };
17604 /* This code fails on OpenBSD 5.0. */
17605 {
17606 static char program[] = "program";
17607 static char xtremel[] = "--xtremel";
17608 char *argv[] = { program, xtremel, NULL };
17609 int option_index;
17610 optind = 1; opterr = 0;
17611 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17612 return 1;
17613 }
17614 return 0;
17615
17616 ;
17617 return 0;
17618 }
17619 _ACEOF
17620 if ac_fn_c_try_run "$LINENO"; then :
17621 gl_cv_func_getopt_long_gnu=yes
17622 else
17623 gl_cv_func_getopt_long_gnu=no
17624 fi
17625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17626 conftest.$ac_objext conftest.beam conftest.$ac_ext
17627 fi
17628
17629
17630 fi
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17632 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17633 case "$gl_cv_func_getopt_long_gnu" in
17634 *yes) ;;
17635 *) gl_replace_getopt=yes ;;
17636 esac
17637 fi
17638 fi
17639
17640
17641
17642
17643
17644
17645 REPLACE_GETOPT=0
17646 if test -n "$gl_replace_getopt"; then
17647 REPLACE_GETOPT=1
17648 fi
17649
17650 if test $REPLACE_GETOPT = 1; then
17651
17652 GETOPT_H=getopt.h
17653
17654 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17655
17656
17657
17658 fi
17659
17660 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17661 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17662 ac_have_decl=1
17663 else
17664 ac_have_decl=0
17665 fi
17666
17667 cat >>confdefs.h <<_ACEOF
17668 #define HAVE_DECL_GETENV $ac_have_decl
17669 _ACEOF
17670
17671 :
17672
17673
17674
17675
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17677 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17678 if test "${ac_cv_c_restrict+set}" = set; then :
17679 $as_echo_n "(cached) " >&6
17680 else
17681 ac_cv_c_restrict=no
17682 # The order here caters to the fact that C++ does not require restrict.
17683 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686 typedef int * int_ptr;
17687 int foo (int_ptr $ac_kw ip) {
17688 return ip[0];
17689 }
17690 int
17691 main ()
17692 {
17693 int s[1];
17694 int * $ac_kw t = s;
17695 t[0] = 0;
17696 return foo(t)
17697 ;
17698 return 0;
17699 }
17700 _ACEOF
17701 if ac_fn_c_try_compile "$LINENO"; then :
17702 ac_cv_c_restrict=$ac_kw
17703 fi
17704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17705 test "$ac_cv_c_restrict" != no && break
17706 done
17707
17708 fi
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17710 $as_echo "$ac_cv_c_restrict" >&6; }
17711
17712 case $ac_cv_c_restrict in
17713 restrict) ;;
17714 no) $as_echo "#define restrict /**/" >>confdefs.h
17715 ;;
17716 *) cat >>confdefs.h <<_ACEOF
17717 #define restrict $ac_cv_c_restrict
17718 _ACEOF
17719 ;;
17720 esac
17721
17722
17723 GNULIB_GETTIMEOFDAY=0;
17724 HAVE_GETTIMEOFDAY=1;
17725 HAVE_STRUCT_TIMEVAL=1;
17726 HAVE_SYS_TIME_H=1;
17727 REPLACE_GETTIMEOFDAY=0;
17728 REPLACE_STRUCT_TIMEVAL=0;
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745 if test $gl_cv_have_include_next = yes; then
17746 gl_cv_next_sys_time_h='<'sys/time.h'>'
17747 else
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17749 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17750 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17751 $as_echo_n "(cached) " >&6
17752 else
17753
17754 if test $ac_cv_header_sys_time_h = yes; then
17755
17756
17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h. */
17759 #include <sys/time.h>
17760
17761 _ACEOF
17762 case "$host_os" in
17763 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17764 *) gl_absname_cpp="$ac_cpp" ;;
17765 esac
17766
17767 case "$host_os" in
17768 mingw*)
17769 gl_dirsep_regex='[/\\]'
17770 ;;
17771 *)
17772 gl_dirsep_regex='\/'
17773 ;;
17774 esac
17775 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17776
17777 gl_header_literal_regex=`echo 'sys/time.h' \
17778 | sed -e "$gl_make_literal_regex_sed"`
17779 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17781 s|^/[^/]|//&|
17782 p
17783 q
17784 }'
17785 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17786 sed -n "$gl_absolute_header_sed"`'"'
17787 else
17788 gl_cv_next_sys_time_h='<'sys/time.h'>'
17789 fi
17790
17791
17792 fi
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17794 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17795 fi
17796 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17797
17798 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17799 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17800 gl_next_as_first_directive='<'sys/time.h'>'
17801 else
17802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17803 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17804 fi
17805 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17806
17807
17808
17809
17810
17811 if test $ac_cv_header_sys_time_h != yes; then
17812 HAVE_SYS_TIME_H=0
17813 fi
17814
17815
17816
17817
17818
17819 if test $ac_cv_header_sys_socket_h != yes; then
17820 for ac_header in winsock2.h
17821 do :
17822 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17823 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17824 cat >>confdefs.h <<_ACEOF
17825 #define HAVE_WINSOCK2_H 1
17826 _ACEOF
17827
17828 fi
17829
17830 done
17831
17832 fi
17833 if test "$ac_cv_header_winsock2_h" = yes; then
17834 HAVE_WINSOCK2_H=1
17835 UNISTD_H_HAVE_WINSOCK2_H=1
17836 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17837 else
17838 HAVE_WINSOCK2_H=0
17839 fi
17840
17841
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17843 $as_echo_n "checking for struct timeval... " >&6; }
17844 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17845 $as_echo_n "(cached) " >&6
17846 else
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17849 #if HAVE_SYS_TIME_H
17850 #include <sys/time.h>
17851 #endif
17852 #include <time.h>
17853 #if HAVE_WINSOCK2_H
17854 # include <winsock2.h>
17855 #endif
17856
17857 int
17858 main ()
17859 {
17860 static struct timeval x; x.tv_sec = x.tv_usec;
17861 ;
17862 return 0;
17863 }
17864 _ACEOF
17865 if ac_fn_c_try_compile "$LINENO"; then :
17866 gl_cv_sys_struct_timeval=yes
17867 else
17868 gl_cv_sys_struct_timeval=no
17869 fi
17870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871
17872 fi
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17874 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17875 if test $gl_cv_sys_struct_timeval != yes; then
17876 HAVE_STRUCT_TIMEVAL=0
17877 else
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17879 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17880 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17881 $as_echo_n "(cached) " >&6
17882 else
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h. */
17885 #if HAVE_SYS_TIME_H
17886 #include <sys/time.h>
17887 #endif
17888 #include <time.h>
17889 #if HAVE_WINSOCK2_H
17890 # include <winsock2.h>
17891 #endif
17892
17893 int
17894 main ()
17895 {
17896 static struct timeval x;
17897 typedef int verify_tv_sec_type[
17898 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17899 ];
17900
17901 ;
17902 return 0;
17903 }
17904 _ACEOF
17905 if ac_fn_c_try_compile "$LINENO"; then :
17906 gl_cv_sys_struct_timeval_tv_sec=yes
17907 else
17908 gl_cv_sys_struct_timeval_tv_sec=no
17909 fi
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911
17912 fi
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17914 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17915 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17916 REPLACE_STRUCT_TIMEVAL=1
17917 fi
17918 fi
17919
17920
17921
17922
17923
17924
17925
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17927 $as_echo_n "checking for unsigned long long int... " >&6; }
17928 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17929 $as_echo_n "(cached) " >&6
17930 else
17931 ac_cv_type_unsigned_long_long_int=yes
17932 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17935
17936 /* For now, do not test the preprocessor; as of 2007 there are too many
17937 implementations with broken preprocessors. Perhaps this can
17938 be revisited in 2012. In the meantime, code should not expect
17939 #if to work with literals wider than 32 bits. */
17940 /* Test literals. */
17941 long long int ll = 9223372036854775807ll;
17942 long long int nll = -9223372036854775807LL;
17943 unsigned long long int ull = 18446744073709551615ULL;
17944 /* Test constant expressions. */
17945 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17946 ? 1 : -1)];
17947 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17948 ? 1 : -1)];
17949 int i = 63;
17950 int
17951 main ()
17952 {
17953 /* Test availability of runtime routines for shift and division. */
17954 long long int llmax = 9223372036854775807ll;
17955 unsigned long long int ullmax = 18446744073709551615ull;
17956 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17957 | (llmax / ll) | (llmax % ll)
17958 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17959 | (ullmax / ull) | (ullmax % ull));
17960 ;
17961 return 0;
17962 }
17963
17964 _ACEOF
17965 if ac_fn_c_try_link "$LINENO"; then :
17966
17967 else
17968 ac_cv_type_unsigned_long_long_int=no
17969 fi
17970 rm -f core conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17972 fi
17973 fi
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17975 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17976 if test $ac_cv_type_unsigned_long_long_int = yes; then
17977
17978 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17979
17980 fi
17981
17982
17983
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17985 $as_echo_n "checking for long long int... " >&6; }
17986 if test "${ac_cv_type_long_long_int+set}" = set; then :
17987 $as_echo_n "(cached) " >&6
17988 else
17989 ac_cv_type_long_long_int=yes
17990 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17991 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17992 if test $ac_cv_type_long_long_int = yes; then
17993 if test "$cross_compiling" = yes; then :
17994 :
17995 else
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17998 #include <limits.h>
17999 #ifndef LLONG_MAX
18000 # define HALF \
18001 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18002 # define LLONG_MAX (HALF - 1 + HALF)
18003 #endif
18004 int
18005 main ()
18006 {
18007 long long int n = 1;
18008 int i;
18009 for (i = 0; ; i++)
18010 {
18011 long long int m = n << i;
18012 if (m >> i != n)
18013 return 1;
18014 if (LLONG_MAX / 2 < m)
18015 break;
18016 }
18017 return 0;
18018 ;
18019 return 0;
18020 }
18021 _ACEOF
18022 if ac_fn_c_try_run "$LINENO"; then :
18023
18024 else
18025 ac_cv_type_long_long_int=no
18026 fi
18027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18028 conftest.$ac_objext conftest.beam conftest.$ac_ext
18029 fi
18030
18031 fi
18032 fi
18033 fi
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18035 $as_echo "$ac_cv_type_long_long_int" >&6; }
18036 if test $ac_cv_type_long_long_int = yes; then
18037
18038 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18039
18040 fi
18041
18042
18043
18044
18045
18046
18047 gl_cv_c_multiarch=no
18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18050 #ifndef __APPLE_CC__
18051 not a universal capable compiler
18052 #endif
18053 typedef int dummy;
18054
18055 _ACEOF
18056 if ac_fn_c_try_compile "$LINENO"; then :
18057
18058 arch=
18059 prev=
18060 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18061 if test -n "$prev"; then
18062 case $word in
18063 i?86 | x86_64 | ppc | ppc64)
18064 if test -z "$arch" || test "$arch" = "$word"; then
18065 arch="$word"
18066 else
18067 gl_cv_c_multiarch=yes
18068 fi
18069 ;;
18070 esac
18071 prev=
18072 else
18073 if test "x$word" = "x-arch"; then
18074 prev=arch
18075 fi
18076 fi
18077 done
18078
18079 fi
18080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18081 if test $gl_cv_c_multiarch = yes; then
18082 APPLE_UNIVERSAL_BUILD=1
18083 else
18084 APPLE_UNIVERSAL_BUILD=0
18085 fi
18086
18087
18088
18089
18090
18091 if test $ac_cv_type_long_long_int = yes; then
18092 HAVE_LONG_LONG_INT=1
18093 else
18094 HAVE_LONG_LONG_INT=0
18095 fi
18096
18097
18098 if test $ac_cv_type_unsigned_long_long_int = yes; then
18099 HAVE_UNSIGNED_LONG_LONG_INT=1
18100 else
18101 HAVE_UNSIGNED_LONG_LONG_INT=0
18102 fi
18103
18104
18105
18106 if test $ac_cv_header_wchar_h = yes; then
18107 HAVE_WCHAR_H=1
18108 else
18109 HAVE_WCHAR_H=0
18110 fi
18111
18112
18113 if test $ac_cv_header_inttypes_h = yes; then
18114 HAVE_INTTYPES_H=1
18115 else
18116 HAVE_INTTYPES_H=0
18117 fi
18118
18119
18120 if test $ac_cv_header_sys_types_h = yes; then
18121 HAVE_SYS_TYPES_H=1
18122 else
18123 HAVE_SYS_TYPES_H=0
18124 fi
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136 if test $gl_cv_have_include_next = yes; then
18137 gl_cv_next_stdint_h='<'stdint.h'>'
18138 else
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18140 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18141 if test "${gl_cv_next_stdint_h+set}" = set; then :
18142 $as_echo_n "(cached) " >&6
18143 else
18144
18145 if test $ac_cv_header_stdint_h = yes; then
18146
18147
18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18150 #include <stdint.h>
18151
18152 _ACEOF
18153 case "$host_os" in
18154 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18155 *) gl_absname_cpp="$ac_cpp" ;;
18156 esac
18157
18158 case "$host_os" in
18159 mingw*)
18160 gl_dirsep_regex='[/\\]'
18161 ;;
18162 *)
18163 gl_dirsep_regex='\/'
18164 ;;
18165 esac
18166 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18167
18168 gl_header_literal_regex=`echo 'stdint.h' \
18169 | sed -e "$gl_make_literal_regex_sed"`
18170 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18171 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18172 s|^/[^/]|//&|
18173 p
18174 q
18175 }'
18176 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18177 sed -n "$gl_absolute_header_sed"`'"'
18178 else
18179 gl_cv_next_stdint_h='<'stdint.h'>'
18180 fi
18181
18182
18183 fi
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18185 $as_echo "$gl_cv_next_stdint_h" >&6; }
18186 fi
18187 NEXT_STDINT_H=$gl_cv_next_stdint_h
18188
18189 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18190 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18191 gl_next_as_first_directive='<'stdint.h'>'
18192 else
18193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18194 gl_next_as_first_directive=$gl_cv_next_stdint_h
18195 fi
18196 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18197
18198
18199
18200
18201 if test $ac_cv_header_stdint_h = yes; then
18202 HAVE_STDINT_H=1
18203 else
18204 HAVE_STDINT_H=0
18205 fi
18206
18207
18208 if test $ac_cv_header_stdint_h = yes; then
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18210 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18211 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18212 $as_echo_n "(cached) " >&6
18213 else
18214 gl_cv_header_working_stdint_h=no
18215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h. */
18217
18218
18219 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18220 #include <stdint.h>
18221 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18222 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18223 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18224 #endif
18225
18226
18227 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18228 included before <wchar.h>. */
18229 #include <stddef.h>
18230 #include <signal.h>
18231 #if HAVE_WCHAR_H
18232 # include <stdio.h>
18233 # include <time.h>
18234 # include <wchar.h>
18235 #endif
18236
18237
18238 #ifdef INT8_MAX
18239 int8_t a1 = INT8_MAX;
18240 int8_t a1min = INT8_MIN;
18241 #endif
18242 #ifdef INT16_MAX
18243 int16_t a2 = INT16_MAX;
18244 int16_t a2min = INT16_MIN;
18245 #endif
18246 #ifdef INT32_MAX
18247 int32_t a3 = INT32_MAX;
18248 int32_t a3min = INT32_MIN;
18249 #endif
18250 #ifdef INT64_MAX
18251 int64_t a4 = INT64_MAX;
18252 int64_t a4min = INT64_MIN;
18253 #endif
18254 #ifdef UINT8_MAX
18255 uint8_t b1 = UINT8_MAX;
18256 #else
18257 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18258 #endif
18259 #ifdef UINT16_MAX
18260 uint16_t b2 = UINT16_MAX;
18261 #endif
18262 #ifdef UINT32_MAX
18263 uint32_t b3 = UINT32_MAX;
18264 #endif
18265 #ifdef UINT64_MAX
18266 uint64_t b4 = UINT64_MAX;
18267 #endif
18268 int_least8_t c1 = INT8_C (0x7f);
18269 int_least8_t c1max = INT_LEAST8_MAX;
18270 int_least8_t c1min = INT_LEAST8_MIN;
18271 int_least16_t c2 = INT16_C (0x7fff);
18272 int_least16_t c2max = INT_LEAST16_MAX;
18273 int_least16_t c2min = INT_LEAST16_MIN;
18274 int_least32_t c3 = INT32_C (0x7fffffff);
18275 int_least32_t c3max = INT_LEAST32_MAX;
18276 int_least32_t c3min = INT_LEAST32_MIN;
18277 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18278 int_least64_t c4max = INT_LEAST64_MAX;
18279 int_least64_t c4min = INT_LEAST64_MIN;
18280 uint_least8_t d1 = UINT8_C (0xff);
18281 uint_least8_t d1max = UINT_LEAST8_MAX;
18282 uint_least16_t d2 = UINT16_C (0xffff);
18283 uint_least16_t d2max = UINT_LEAST16_MAX;
18284 uint_least32_t d3 = UINT32_C (0xffffffff);
18285 uint_least32_t d3max = UINT_LEAST32_MAX;
18286 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18287 uint_least64_t d4max = UINT_LEAST64_MAX;
18288 int_fast8_t e1 = INT_FAST8_MAX;
18289 int_fast8_t e1min = INT_FAST8_MIN;
18290 int_fast16_t e2 = INT_FAST16_MAX;
18291 int_fast16_t e2min = INT_FAST16_MIN;
18292 int_fast32_t e3 = INT_FAST32_MAX;
18293 int_fast32_t e3min = INT_FAST32_MIN;
18294 int_fast64_t e4 = INT_FAST64_MAX;
18295 int_fast64_t e4min = INT_FAST64_MIN;
18296 uint_fast8_t f1 = UINT_FAST8_MAX;
18297 uint_fast16_t f2 = UINT_FAST16_MAX;
18298 uint_fast32_t f3 = UINT_FAST32_MAX;
18299 uint_fast64_t f4 = UINT_FAST64_MAX;
18300 #ifdef INTPTR_MAX
18301 intptr_t g = INTPTR_MAX;
18302 intptr_t gmin = INTPTR_MIN;
18303 #endif
18304 #ifdef UINTPTR_MAX
18305 uintptr_t h = UINTPTR_MAX;
18306 #endif
18307 intmax_t i = INTMAX_MAX;
18308 uintmax_t j = UINTMAX_MAX;
18309
18310 #include <limits.h> /* for CHAR_BIT */
18311 #define TYPE_MINIMUM(t) \
18312 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18313 #define TYPE_MAXIMUM(t) \
18314 ((t) ((t) 0 < (t) -1 \
18315 ? (t) -1 \
18316 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18317 struct s {
18318 int check_PTRDIFF:
18319 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18320 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18321 ? 1 : -1;
18322 /* Detect bug in FreeBSD 6.0 / ia64. */
18323 int check_SIG_ATOMIC:
18324 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18325 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18326 ? 1 : -1;
18327 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18328 int check_WCHAR:
18329 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18330 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18331 ? 1 : -1;
18332 /* Detect bug in mingw. */
18333 int check_WINT:
18334 WINT_MIN == TYPE_MINIMUM (wint_t)
18335 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18336 ? 1 : -1;
18337
18338 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18339 int check_UINT8_C:
18340 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18341 int check_UINT16_C:
18342 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18343
18344 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18345 #ifdef UINT8_MAX
18346 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18347 #endif
18348 #ifdef UINT16_MAX
18349 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18350 #endif
18351 #ifdef UINT32_MAX
18352 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18353 #endif
18354 #ifdef UINT64_MAX
18355 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18356 #endif
18357 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18358 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18359 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18360 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18361 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18362 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18363 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18364 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18365 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18366 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18367 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18368 };
18369
18370 int
18371 main ()
18372 {
18373
18374 ;
18375 return 0;
18376 }
18377 _ACEOF
18378 if ac_fn_c_try_compile "$LINENO"; then :
18379 if test "$cross_compiling" = yes; then :
18380 gl_cv_header_working_stdint_h=yes
18381
18382 else
18383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h. */
18385
18386
18387 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18388 #include <stdint.h>
18389
18390
18391 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18392 included before <wchar.h>. */
18393 #include <stddef.h>
18394 #include <signal.h>
18395 #if HAVE_WCHAR_H
18396 # include <stdio.h>
18397 # include <time.h>
18398 # include <wchar.h>
18399 #endif
18400
18401
18402 #include <stdio.h>
18403 #include <string.h>
18404 #define MVAL(macro) MVAL1(macro)
18405 #define MVAL1(expression) #expression
18406 static const char *macro_values[] =
18407 {
18408 #ifdef INT8_MAX
18409 MVAL (INT8_MAX),
18410 #endif
18411 #ifdef INT16_MAX
18412 MVAL (INT16_MAX),
18413 #endif
18414 #ifdef INT32_MAX
18415 MVAL (INT32_MAX),
18416 #endif
18417 #ifdef INT64_MAX
18418 MVAL (INT64_MAX),
18419 #endif
18420 #ifdef UINT8_MAX
18421 MVAL (UINT8_MAX),
18422 #endif
18423 #ifdef UINT16_MAX
18424 MVAL (UINT16_MAX),
18425 #endif
18426 #ifdef UINT32_MAX
18427 MVAL (UINT32_MAX),
18428 #endif
18429 #ifdef UINT64_MAX
18430 MVAL (UINT64_MAX),
18431 #endif
18432 NULL
18433 };
18434
18435 int
18436 main ()
18437 {
18438
18439 const char **mv;
18440 for (mv = macro_values; *mv != NULL; mv++)
18441 {
18442 const char *value = *mv;
18443 /* Test whether it looks like a cast expression. */
18444 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18445 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18446 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18447 || strncmp (value, "((int)"/*)*/, 6) == 0
18448 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18449 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18450 return mv - macro_values + 1;
18451 }
18452 return 0;
18453
18454 ;
18455 return 0;
18456 }
18457 _ACEOF
18458 if ac_fn_c_try_run "$LINENO"; then :
18459 gl_cv_header_working_stdint_h=yes
18460 fi
18461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18462 conftest.$ac_objext conftest.beam conftest.$ac_ext
18463 fi
18464
18465
18466 fi
18467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18468
18469 fi
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18471 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18472 fi
18473 if test "$gl_cv_header_working_stdint_h" = yes; then
18474 STDINT_H=
18475 else
18476 for ac_header in sys/inttypes.h sys/bitypes.h
18477 do :
18478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18479 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18480 eval as_val=\$$as_ac_Header
18481 if test "x$as_val" = x""yes; then :
18482 cat >>confdefs.h <<_ACEOF
18483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18484 _ACEOF
18485
18486 fi
18487
18488 done
18489
18490 if test $ac_cv_header_sys_inttypes_h = yes; then
18491 HAVE_SYS_INTTYPES_H=1
18492 else
18493 HAVE_SYS_INTTYPES_H=0
18494 fi
18495
18496 if test $ac_cv_header_sys_bitypes_h = yes; then
18497 HAVE_SYS_BITYPES_H=1
18498 else
18499 HAVE_SYS_BITYPES_H=0
18500 fi
18501
18502
18503
18504
18505 if test $APPLE_UNIVERSAL_BUILD = 0; then
18506
18507
18508 for gltype in ptrdiff_t size_t ; do
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18510 $as_echo_n "checking for bit size of $gltype... " >&6; }
18511 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18512 $as_echo_n "(cached) " >&6
18513 else
18514 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18515 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18516 included before <wchar.h>. */
18517 #include <stddef.h>
18518 #include <signal.h>
18519 #if HAVE_WCHAR_H
18520 # include <stdio.h>
18521 # include <time.h>
18522 # include <wchar.h>
18523 #endif
18524
18525 #include <limits.h>"; then :
18526
18527 else
18528 result=unknown
18529 fi
18530
18531 eval gl_cv_bitsizeof_${gltype}=\$result
18532
18533 fi
18534 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18536 $as_echo "$ac_res" >&6; }
18537 eval result=\$gl_cv_bitsizeof_${gltype}
18538 if test $result = unknown; then
18539 result=0
18540 fi
18541 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18542 cat >>confdefs.h <<_ACEOF
18543 #define BITSIZEOF_${GLTYPE} $result
18544 _ACEOF
18545
18546 eval BITSIZEOF_${GLTYPE}=\$result
18547 done
18548
18549
18550 fi
18551
18552
18553 for gltype in sig_atomic_t wchar_t wint_t ; do
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18555 $as_echo_n "checking for bit size of $gltype... " >&6; }
18556 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18557 $as_echo_n "(cached) " >&6
18558 else
18559 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18560 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18561 included before <wchar.h>. */
18562 #include <stddef.h>
18563 #include <signal.h>
18564 #if HAVE_WCHAR_H
18565 # include <stdio.h>
18566 # include <time.h>
18567 # include <wchar.h>
18568 #endif
18569
18570 #include <limits.h>"; then :
18571
18572 else
18573 result=unknown
18574 fi
18575
18576 eval gl_cv_bitsizeof_${gltype}=\$result
18577
18578 fi
18579 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18581 $as_echo "$ac_res" >&6; }
18582 eval result=\$gl_cv_bitsizeof_${gltype}
18583 if test $result = unknown; then
18584 result=0
18585 fi
18586 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18587 cat >>confdefs.h <<_ACEOF
18588 #define BITSIZEOF_${GLTYPE} $result
18589 _ACEOF
18590
18591 eval BITSIZEOF_${GLTYPE}=\$result
18592 done
18593
18594
18595
18596
18597 for gltype in sig_atomic_t wchar_t wint_t ; do
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18599 $as_echo_n "checking whether $gltype is signed... " >&6; }
18600 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18601 $as_echo_n "(cached) " >&6
18602 else
18603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18604 /* end confdefs.h. */
18605
18606 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18607 included before <wchar.h>. */
18608 #include <stddef.h>
18609 #include <signal.h>
18610 #if HAVE_WCHAR_H
18611 # include <stdio.h>
18612 # include <time.h>
18613 # include <wchar.h>
18614 #endif
18615
18616 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18617 int
18618 main ()
18619 {
18620
18621 ;
18622 return 0;
18623 }
18624 _ACEOF
18625 if ac_fn_c_try_compile "$LINENO"; then :
18626 result=yes
18627 else
18628 result=no
18629 fi
18630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18631 eval gl_cv_type_${gltype}_signed=\$result
18632
18633 fi
18634 eval ac_res=\$gl_cv_type_${gltype}_signed
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18636 $as_echo "$ac_res" >&6; }
18637 eval result=\$gl_cv_type_${gltype}_signed
18638 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18639 if test "$result" = yes; then
18640 cat >>confdefs.h <<_ACEOF
18641 #define HAVE_SIGNED_${GLTYPE} 1
18642 _ACEOF
18643
18644 eval HAVE_SIGNED_${GLTYPE}=1
18645 else
18646 eval HAVE_SIGNED_${GLTYPE}=0
18647 fi
18648 done
18649
18650
18651 gl_cv_type_ptrdiff_t_signed=yes
18652 gl_cv_type_size_t_signed=no
18653 if test $APPLE_UNIVERSAL_BUILD = 0; then
18654
18655
18656 for gltype in ptrdiff_t size_t ; do
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18658 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18659 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18660 $as_echo_n "(cached) " >&6
18661 else
18662 eval gl_cv_type_${gltype}_suffix=no
18663 eval result=\$gl_cv_type_${gltype}_signed
18664 if test "$result" = yes; then
18665 glsufu=
18666 else
18667 glsufu=u
18668 fi
18669 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18670 case $glsuf in
18671 '') gltype1='int';;
18672 l) gltype1='long int';;
18673 ll) gltype1='long long int';;
18674 i64) gltype1='__int64';;
18675 u) gltype1='unsigned int';;
18676 ul) gltype1='unsigned long int';;
18677 ull) gltype1='unsigned long long int';;
18678 ui64)gltype1='unsigned __int64';;
18679 esac
18680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18681 /* end confdefs.h. */
18682
18683 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18684 included before <wchar.h>. */
18685 #include <stddef.h>
18686 #include <signal.h>
18687 #if HAVE_WCHAR_H
18688 # include <stdio.h>
18689 # include <time.h>
18690 # include <wchar.h>
18691 #endif
18692
18693 extern $gltype foo;
18694 extern $gltype1 foo;
18695 int
18696 main ()
18697 {
18698
18699 ;
18700 return 0;
18701 }
18702 _ACEOF
18703 if ac_fn_c_try_compile "$LINENO"; then :
18704 eval gl_cv_type_${gltype}_suffix=\$glsuf
18705 fi
18706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18707 eval result=\$gl_cv_type_${gltype}_suffix
18708 test "$result" != no && break
18709 done
18710 fi
18711 eval ac_res=\$gl_cv_type_${gltype}_suffix
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18713 $as_echo "$ac_res" >&6; }
18714 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18715 eval result=\$gl_cv_type_${gltype}_suffix
18716 test "$result" = no && result=
18717 eval ${GLTYPE}_SUFFIX=\$result
18718 cat >>confdefs.h <<_ACEOF
18719 #define ${GLTYPE}_SUFFIX $result
18720 _ACEOF
18721
18722 done
18723
18724
18725 fi
18726
18727
18728 for gltype in sig_atomic_t wchar_t wint_t ; do
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18730 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18731 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18732 $as_echo_n "(cached) " >&6
18733 else
18734 eval gl_cv_type_${gltype}_suffix=no
18735 eval result=\$gl_cv_type_${gltype}_signed
18736 if test "$result" = yes; then
18737 glsufu=
18738 else
18739 glsufu=u
18740 fi
18741 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18742 case $glsuf in
18743 '') gltype1='int';;
18744 l) gltype1='long int';;
18745 ll) gltype1='long long int';;
18746 i64) gltype1='__int64';;
18747 u) gltype1='unsigned int';;
18748 ul) gltype1='unsigned long int';;
18749 ull) gltype1='unsigned long long int';;
18750 ui64)gltype1='unsigned __int64';;
18751 esac
18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753 /* end confdefs.h. */
18754
18755 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18756 included before <wchar.h>. */
18757 #include <stddef.h>
18758 #include <signal.h>
18759 #if HAVE_WCHAR_H
18760 # include <stdio.h>
18761 # include <time.h>
18762 # include <wchar.h>
18763 #endif
18764
18765 extern $gltype foo;
18766 extern $gltype1 foo;
18767 int
18768 main ()
18769 {
18770
18771 ;
18772 return 0;
18773 }
18774 _ACEOF
18775 if ac_fn_c_try_compile "$LINENO"; then :
18776 eval gl_cv_type_${gltype}_suffix=\$glsuf
18777 fi
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779 eval result=\$gl_cv_type_${gltype}_suffix
18780 test "$result" != no && break
18781 done
18782 fi
18783 eval ac_res=\$gl_cv_type_${gltype}_suffix
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18785 $as_echo "$ac_res" >&6; }
18786 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18787 eval result=\$gl_cv_type_${gltype}_suffix
18788 test "$result" = no && result=
18789 eval ${GLTYPE}_SUFFIX=\$result
18790 cat >>confdefs.h <<_ACEOF
18791 #define ${GLTYPE}_SUFFIX $result
18792 _ACEOF
18793
18794 done
18795
18796
18797
18798 if test $BITSIZEOF_WINT_T -lt 32; then
18799 BITSIZEOF_WINT_T=32
18800 fi
18801
18802 STDINT_H=stdint.h
18803 fi
18804
18805 if test -n "$STDINT_H"; then
18806 GL_GENERATE_STDINT_H_TRUE=
18807 GL_GENERATE_STDINT_H_FALSE='#'
18808 else
18809 GL_GENERATE_STDINT_H_TRUE='#'
18810 GL_GENERATE_STDINT_H_FALSE=
18811 fi
18812
18813
18814
18815
18816
18817 GNULIB_IMAXABS=0;
18818 GNULIB_IMAXDIV=0;
18819 GNULIB_STRTOIMAX=0;
18820 GNULIB_STRTOUMAX=0;
18821 HAVE_DECL_IMAXABS=1;
18822 HAVE_DECL_IMAXDIV=1;
18823 HAVE_DECL_STRTOIMAX=1;
18824 HAVE_DECL_STRTOUMAX=1;
18825 REPLACE_STRTOIMAX=0;
18826 INT32_MAX_LT_INTMAX_MAX=1;
18827 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18828 PRI_MACROS_BROKEN=0;
18829 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18830 UINT32_MAX_LT_UINTMAX_MAX=1;
18831 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847 if test $gl_cv_have_include_next = yes; then
18848 gl_cv_next_inttypes_h='<'inttypes.h'>'
18849 else
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18851 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18852 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18853 $as_echo_n "(cached) " >&6
18854 else
18855
18856 if test $ac_cv_header_inttypes_h = yes; then
18857
18858
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18861 #include <inttypes.h>
18862
18863 _ACEOF
18864 case "$host_os" in
18865 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18866 *) gl_absname_cpp="$ac_cpp" ;;
18867 esac
18868
18869 case "$host_os" in
18870 mingw*)
18871 gl_dirsep_regex='[/\\]'
18872 ;;
18873 *)
18874 gl_dirsep_regex='\/'
18875 ;;
18876 esac
18877 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18878
18879 gl_header_literal_regex=`echo 'inttypes.h' \
18880 | sed -e "$gl_make_literal_regex_sed"`
18881 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18882 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18883 s|^/[^/]|//&|
18884 p
18885 q
18886 }'
18887 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18888 sed -n "$gl_absolute_header_sed"`'"'
18889 else
18890 gl_cv_next_inttypes_h='<'inttypes.h'>'
18891 fi
18892
18893
18894 fi
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18896 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18897 fi
18898 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18899
18900 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18902 gl_next_as_first_directive='<'inttypes.h'>'
18903 else
18904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18905 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18906 fi
18907 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919 case "$host_os" in
18920 mingw*)
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18922 $as_echo_n "checking for 64-bit off_t... " >&6; }
18923 if test "${gl_cv_type_off_t_64+set}" = set; then :
18924 $as_echo_n "(cached) " >&6
18925 else
18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h. */
18928 #include <sys/types.h>
18929 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18930
18931 int
18932 main ()
18933 {
18934
18935 ;
18936 return 0;
18937 }
18938 _ACEOF
18939 if ac_fn_c_try_compile "$LINENO"; then :
18940 gl_cv_type_off_t_64=yes
18941 else
18942 gl_cv_type_off_t_64=no
18943 fi
18944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18945
18946 fi
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18948 $as_echo "$gl_cv_type_off_t_64" >&6; }
18949 if test $gl_cv_type_off_t_64 = no; then
18950 WINDOWS_64_BIT_OFF_T=1
18951 else
18952 WINDOWS_64_BIT_OFF_T=0
18953 fi
18954 WINDOWS_64_BIT_ST_SIZE=1
18955 ;;
18956 *)
18957 WINDOWS_64_BIT_OFF_T=0
18958 WINDOWS_64_BIT_ST_SIZE=0
18959 ;;
18960 esac
18961
18962
18963 GNULIB_FCHMODAT=0;
18964 GNULIB_FSTAT=0;
18965 GNULIB_FSTATAT=0;
18966 GNULIB_FUTIMENS=0;
18967 GNULIB_LCHMOD=0;
18968 GNULIB_LSTAT=0;
18969 GNULIB_MKDIRAT=0;
18970 GNULIB_MKFIFO=0;
18971 GNULIB_MKFIFOAT=0;
18972 GNULIB_MKNOD=0;
18973 GNULIB_MKNODAT=0;
18974 GNULIB_STAT=0;
18975 GNULIB_UTIMENSAT=0;
18976 HAVE_FCHMODAT=1;
18977 HAVE_FSTATAT=1;
18978 HAVE_FUTIMENS=1;
18979 HAVE_LCHMOD=1;
18980 HAVE_LSTAT=1;
18981 HAVE_MKDIRAT=1;
18982 HAVE_MKFIFO=1;
18983 HAVE_MKFIFOAT=1;
18984 HAVE_MKNOD=1;
18985 HAVE_MKNODAT=1;
18986 HAVE_UTIMENSAT=1;
18987 REPLACE_FSTAT=0;
18988 REPLACE_FSTATAT=0;
18989 REPLACE_FUTIMENS=0;
18990 REPLACE_LSTAT=0;
18991 REPLACE_MKDIR=0;
18992 REPLACE_MKFIFO=0;
18993 REPLACE_MKNOD=0;
18994 REPLACE_STAT=0;
18995 REPLACE_UTIMENSAT=0;
18996
18997
18998
18999
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19001 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19002 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19003 $as_echo_n "(cached) " >&6
19004 else
19005 rm -f conftest.sym conftest.file
19006 echo >conftest.file
19007 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19008 if test "$cross_compiling" = yes; then :
19009 case "$host_os" in
19010 # Guess yes on glibc systems.
19011 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19012 # If we don't know, assume the worst.
19013 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19014 esac
19015
19016 else
19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19019 $ac_includes_default
19020 int
19021 main ()
19022 {
19023 struct stat sbuf;
19024 /* Linux will dereference the symlink and fail, as required by
19025 POSIX. That is better in the sense that it means we will not
19026 have to compile and use the lstat wrapper. */
19027 return lstat ("conftest.sym/", &sbuf) == 0;
19028
19029 ;
19030 return 0;
19031 }
19032 _ACEOF
19033 if ac_fn_c_try_run "$LINENO"; then :
19034 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19035 else
19036 gl_cv_func_lstat_dereferences_slashed_symlink=no
19037 fi
19038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19039 conftest.$ac_objext conftest.beam conftest.$ac_ext
19040 fi
19041
19042 else
19043 # If the 'ln -s' command failed, then we probably don't even
19044 # have an lstat function.
19045 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19046 fi
19047 rm -f conftest.sym conftest.file
19048
19049 fi
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19051 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19052 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19053 *yes)
19054
19055 cat >>confdefs.h <<_ACEOF
19056 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19057 _ACEOF
19058
19059 ;;
19060 esac
19061
19062
19063 GNULIB_MKTIME=0;
19064 GNULIB_NANOSLEEP=0;
19065 GNULIB_STRPTIME=0;
19066 GNULIB_TIMEGM=0;
19067 GNULIB_TIME_R=0;
19068 HAVE_DECL_LOCALTIME_R=1;
19069 HAVE_NANOSLEEP=1;
19070 HAVE_STRPTIME=1;
19071 HAVE_TIMEGM=1;
19072 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19073 REPLACE_MKTIME=GNULIB_PORTCHECK;
19074 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19075 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19076
19077
19078
19079
19080 GNULIB_PSELECT=0;
19081 GNULIB_SELECT=0;
19082 HAVE_PSELECT=1;
19083 REPLACE_PSELECT=0;
19084 REPLACE_SELECT=0;
19085
19086
19087
19088
19089
19090
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19092 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19093 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19094 $as_echo_n "(cached) " >&6
19095 else
19096
19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098 /* end confdefs.h. */
19099 #include <sys/select.h>
19100 int
19101 main ()
19102 {
19103 struct timeval b;
19104 ;
19105 return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_compile "$LINENO"; then :
19109 gl_cv_header_sys_select_h_selfcontained=yes
19110 else
19111 gl_cv_header_sys_select_h_selfcontained=no
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19116 /* end confdefs.h. */
19117 #include <sys/select.h>
19118 int
19119 main ()
19120 {
19121 int memset; int bzero;
19122 ;
19123 return 0;
19124 }
19125
19126 _ACEOF
19127 if ac_fn_c_try_compile "$LINENO"; then :
19128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h. */
19130 #include <sys/select.h>
19131 int
19132 main ()
19133 {
19134
19135 #undef memset
19136 #define memset nonexistent_memset
19137 extern
19138 #ifdef __cplusplus
19139 "C"
19140 #endif
19141 void *memset (void *, int, unsigned long);
19142 #undef bzero
19143 #define bzero nonexistent_bzero
19144 extern
19145 #ifdef __cplusplus
19146 "C"
19147 #endif
19148 void bzero (void *, unsigned long);
19149 fd_set fds;
19150 FD_ZERO (&fds);
19151
19152 ;
19153 return 0;
19154 }
19155
19156 _ACEOF
19157 if ac_fn_c_try_link "$LINENO"; then :
19158
19159 else
19160 gl_cv_header_sys_select_h_selfcontained=no
19161 fi
19162 rm -f core conftest.err conftest.$ac_objext \
19163 conftest$ac_exeext conftest.$ac_ext
19164
19165 fi
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 fi
19168
19169 fi
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19171 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181 if test $gl_cv_have_include_next = yes; then
19182 gl_cv_next_sys_select_h='<'sys/select.h'>'
19183 else
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19185 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19186 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19187 $as_echo_n "(cached) " >&6
19188 else
19189
19190 if test $ac_cv_header_sys_select_h = yes; then
19191
19192
19193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h. */
19195 #include <sys/select.h>
19196
19197 _ACEOF
19198 case "$host_os" in
19199 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19200 *) gl_absname_cpp="$ac_cpp" ;;
19201 esac
19202
19203 case "$host_os" in
19204 mingw*)
19205 gl_dirsep_regex='[/\\]'
19206 ;;
19207 *)
19208 gl_dirsep_regex='\/'
19209 ;;
19210 esac
19211 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19212
19213 gl_header_literal_regex=`echo 'sys/select.h' \
19214 | sed -e "$gl_make_literal_regex_sed"`
19215 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19216 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19217 s|^/[^/]|//&|
19218 p
19219 q
19220 }'
19221 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19222 sed -n "$gl_absolute_header_sed"`'"'
19223 else
19224 gl_cv_next_sys_select_h='<'sys/select.h'>'
19225 fi
19226
19227
19228 fi
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19230 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19231 fi
19232 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19233
19234 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19236 gl_next_as_first_directive='<'sys/select.h'>'
19237 else
19238 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19239 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19240 fi
19241 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19242
19243
19244
19245
19246 if test $ac_cv_header_sys_select_h = yes; then
19247 HAVE_SYS_SELECT_H=1
19248 else
19249 HAVE_SYS_SELECT_H=0
19250 fi
19251
19252
19253
19254
19255
19256 if test $ac_cv_header_sys_socket_h != yes; then
19257 for ac_header in winsock2.h
19258 do :
19259 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19260 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19261 cat >>confdefs.h <<_ACEOF
19262 #define HAVE_WINSOCK2_H 1
19263 _ACEOF
19264
19265 fi
19266
19267 done
19268
19269 fi
19270 if test "$ac_cv_header_winsock2_h" = yes; then
19271 HAVE_WINSOCK2_H=1
19272 UNISTD_H_HAVE_WINSOCK2_H=1
19273 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19274 else
19275 HAVE_WINSOCK2_H=0
19276 fi
19277
19278
19279
19280
19281
19282
19283
19284
19285 GNULIB_PTHREAD_SIGMASK=0;
19286 GNULIB_RAISE=0;
19287 GNULIB_SIGNAL_H_SIGPIPE=0;
19288 GNULIB_SIGPROCMASK=0;
19289 GNULIB_SIGACTION=0;
19290 HAVE_POSIX_SIGNALBLOCKING=1;
19291 HAVE_PTHREAD_SIGMASK=1;
19292 HAVE_RAISE=1;
19293 HAVE_SIGSET_T=1;
19294 HAVE_SIGINFO_T=1;
19295 HAVE_SIGACTION=1;
19296 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19297
19298 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19299
19300 HAVE_SIGHANDLER_T=1;
19301 REPLACE_PTHREAD_SIGMASK=0;
19302 REPLACE_RAISE=0;
19303
19304
19305
19306
19307
19308
19309
19310 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19311 #include <signal.h>
19312 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19313 #include <sys/types.h>
19314
19315 "
19316 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19317
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_SIGSET_T 1
19320 _ACEOF
19321
19322 gl_cv_type_sigset_t=yes
19323 else
19324 gl_cv_type_sigset_t=no
19325 fi
19326
19327 if test $gl_cv_type_sigset_t != yes; then
19328 HAVE_SIGSET_T=0
19329 fi
19330
19331
19332
19333 if test $ac_cv_header_sys_socket_h = no; then
19334 for ac_header in ws2tcpip.h
19335 do :
19336 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19337 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19338 cat >>confdefs.h <<_ACEOF
19339 #define HAVE_WS2TCPIP_H 1
19340 _ACEOF
19341
19342 fi
19343
19344 done
19345
19346 fi
19347
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19349 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19350 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19351 $as_echo_n "(cached) " >&6
19352 else
19353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19354 /* end confdefs.h. */
19355
19356 #include <stdbool.h>
19357 #ifndef bool
19358 "error: bool is not defined"
19359 #endif
19360 #ifndef false
19361 "error: false is not defined"
19362 #endif
19363 #if false
19364 "error: false is not 0"
19365 #endif
19366 #ifndef true
19367 "error: true is not defined"
19368 #endif
19369 #if true != 1
19370 "error: true is not 1"
19371 #endif
19372 #ifndef __bool_true_false_are_defined
19373 "error: __bool_true_false_are_defined is not defined"
19374 #endif
19375
19376 struct s { _Bool s: 1; _Bool t; } s;
19377
19378 char a[true == 1 ? 1 : -1];
19379 char b[false == 0 ? 1 : -1];
19380 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19381 char d[(bool) 0.5 == true ? 1 : -1];
19382 /* See body of main program for 'e'. */
19383 char f[(_Bool) 0.0 == false ? 1 : -1];
19384 char g[true];
19385 char h[sizeof (_Bool)];
19386 char i[sizeof s.t];
19387 enum { j = false, k = true, l = false * true, m = true * 256 };
19388 /* The following fails for
19389 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19390 _Bool n[m];
19391 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19392 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19393 /* Catch a bug in an HP-UX C compiler. See
19394 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19395 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19396 */
19397 _Bool q = true;
19398 _Bool *pq = &q;
19399
19400 int
19401 main ()
19402 {
19403
19404 bool e = &s;
19405 *pq |= q;
19406 *pq |= ! q;
19407 /* Refer to every declared value, to avoid compiler optimizations. */
19408 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19409 + !m + !n + !o + !p + !q + !pq);
19410
19411 ;
19412 return 0;
19413 }
19414 _ACEOF
19415 if ac_fn_c_try_compile "$LINENO"; then :
19416 ac_cv_header_stdbool_h=yes
19417 else
19418 ac_cv_header_stdbool_h=no
19419 fi
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 fi
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19423 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19424 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19425 if test "x$ac_cv_type__Bool" = x""yes; then :
19426
19427 cat >>confdefs.h <<_ACEOF
19428 #define HAVE__BOOL 1
19429 _ACEOF
19430
19431
19432 fi
19433
19434
19435
19436 REPLACE_NULL=0;
19437 HAVE_WCHAR_T=1;
19438
19439
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19441 $as_echo_n "checking for wchar_t... " >&6; }
19442 if test "${gt_cv_c_wchar_t+set}" = set; then :
19443 $as_echo_n "(cached) " >&6
19444 else
19445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446 /* end confdefs.h. */
19447 #include <stddef.h>
19448 wchar_t foo = (wchar_t)'\0';
19449 int
19450 main ()
19451 {
19452
19453 ;
19454 return 0;
19455 }
19456 _ACEOF
19457 if ac_fn_c_try_compile "$LINENO"; then :
19458 gt_cv_c_wchar_t=yes
19459 else
19460 gt_cv_c_wchar_t=no
19461 fi
19462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 fi
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19465 $as_echo "$gt_cv_c_wchar_t" >&6; }
19466 if test $gt_cv_c_wchar_t = yes; then
19467
19468 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19469
19470 fi
19471
19472
19473 GNULIB_DPRINTF=0;
19474 GNULIB_FCLOSE=0;
19475 GNULIB_FDOPEN=0;
19476 GNULIB_FFLUSH=0;
19477 GNULIB_FGETC=0;
19478 GNULIB_FGETS=0;
19479 GNULIB_FOPEN=0;
19480 GNULIB_FPRINTF=0;
19481 GNULIB_FPRINTF_POSIX=0;
19482 GNULIB_FPURGE=0;
19483 GNULIB_FPUTC=0;
19484 GNULIB_FPUTS=0;
19485 GNULIB_FREAD=0;
19486 GNULIB_FREOPEN=0;
19487 GNULIB_FSCANF=0;
19488 GNULIB_FSEEK=0;
19489 GNULIB_FSEEKO=0;
19490 GNULIB_FTELL=0;
19491 GNULIB_FTELLO=0;
19492 GNULIB_FWRITE=0;
19493 GNULIB_GETC=0;
19494 GNULIB_GETCHAR=0;
19495 GNULIB_GETDELIM=0;
19496 GNULIB_GETLINE=0;
19497 GNULIB_OBSTACK_PRINTF=0;
19498 GNULIB_OBSTACK_PRINTF_POSIX=0;
19499 GNULIB_PCLOSE=0;
19500 GNULIB_PERROR=0;
19501 GNULIB_POPEN=0;
19502 GNULIB_PRINTF=0;
19503 GNULIB_PRINTF_POSIX=0;
19504 GNULIB_PUTC=0;
19505 GNULIB_PUTCHAR=0;
19506 GNULIB_PUTS=0;
19507 GNULIB_REMOVE=0;
19508 GNULIB_RENAME=0;
19509 GNULIB_RENAMEAT=0;
19510 GNULIB_SCANF=0;
19511 GNULIB_SNPRINTF=0;
19512 GNULIB_SPRINTF_POSIX=0;
19513 GNULIB_STDIO_H_NONBLOCKING=0;
19514 GNULIB_STDIO_H_SIGPIPE=0;
19515 GNULIB_TMPFILE=0;
19516 GNULIB_VASPRINTF=0;
19517 GNULIB_VFSCANF=0;
19518 GNULIB_VSCANF=0;
19519 GNULIB_VDPRINTF=0;
19520 GNULIB_VFPRINTF=0;
19521 GNULIB_VFPRINTF_POSIX=0;
19522 GNULIB_VPRINTF=0;
19523 GNULIB_VPRINTF_POSIX=0;
19524 GNULIB_VSNPRINTF=0;
19525 GNULIB_VSPRINTF_POSIX=0;
19526 HAVE_DECL_FPURGE=1;
19527 HAVE_DECL_FSEEKO=1;
19528 HAVE_DECL_FTELLO=1;
19529 HAVE_DECL_GETDELIM=1;
19530 HAVE_DECL_GETLINE=1;
19531 HAVE_DECL_OBSTACK_PRINTF=1;
19532 HAVE_DECL_SNPRINTF=1;
19533 HAVE_DECL_VSNPRINTF=1;
19534 HAVE_DPRINTF=1;
19535 HAVE_FSEEKO=1;
19536 HAVE_FTELLO=1;
19537 HAVE_PCLOSE=1;
19538 HAVE_POPEN=1;
19539 HAVE_RENAMEAT=1;
19540 HAVE_VASPRINTF=1;
19541 HAVE_VDPRINTF=1;
19542 REPLACE_DPRINTF=0;
19543 REPLACE_FCLOSE=0;
19544 REPLACE_FDOPEN=0;
19545 REPLACE_FFLUSH=0;
19546 REPLACE_FOPEN=0;
19547 REPLACE_FPRINTF=0;
19548 REPLACE_FPURGE=0;
19549 REPLACE_FREOPEN=0;
19550 REPLACE_FSEEK=0;
19551 REPLACE_FSEEKO=0;
19552 REPLACE_FTELL=0;
19553 REPLACE_FTELLO=0;
19554 REPLACE_GETDELIM=0;
19555 REPLACE_GETLINE=0;
19556 REPLACE_OBSTACK_PRINTF=0;
19557 REPLACE_PERROR=0;
19558 REPLACE_POPEN=0;
19559 REPLACE_PRINTF=0;
19560 REPLACE_REMOVE=0;
19561 REPLACE_RENAME=0;
19562 REPLACE_RENAMEAT=0;
19563 REPLACE_SNPRINTF=0;
19564 REPLACE_SPRINTF=0;
19565 REPLACE_STDIO_READ_FUNCS=0;
19566 REPLACE_STDIO_WRITE_FUNCS=0;
19567 REPLACE_TMPFILE=0;
19568 REPLACE_VASPRINTF=0;
19569 REPLACE_VDPRINTF=0;
19570 REPLACE_VFPRINTF=0;
19571 REPLACE_VPRINTF=0;
19572 REPLACE_VSNPRINTF=0;
19573 REPLACE_VSPRINTF=0;
19574
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19576 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19577 if test "${ac_cv_struct_tm+set}" = set; then :
19578 $as_echo_n "(cached) " >&6
19579 else
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19582 #include <sys/types.h>
19583 #include <time.h>
19584
19585 int
19586 main ()
19587 {
19588 struct tm tm;
19589 int *p = &tm.tm_sec;
19590 return !p;
19591 ;
19592 return 0;
19593 }
19594 _ACEOF
19595 if ac_fn_c_try_compile "$LINENO"; then :
19596 ac_cv_struct_tm=time.h
19597 else
19598 ac_cv_struct_tm=sys/time.h
19599 fi
19600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19601 fi
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19603 $as_echo "$ac_cv_struct_tm" >&6; }
19604 if test $ac_cv_struct_tm = sys/time.h; then
19605
19606 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19607
19608 fi
19609
19610 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19611 #include <$ac_cv_struct_tm>
19612
19613 "
19614 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19615
19616 cat >>confdefs.h <<_ACEOF
19617 #define HAVE_STRUCT_TM_TM_ZONE 1
19618 _ACEOF
19619
19620
19621 fi
19622
19623 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19624
19625 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19626
19627 else
19628 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19629 "
19630 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19631 ac_have_decl=1
19632 else
19633 ac_have_decl=0
19634 fi
19635
19636 cat >>confdefs.h <<_ACEOF
19637 #define HAVE_DECL_TZNAME $ac_have_decl
19638 _ACEOF
19639
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19641 $as_echo_n "checking for tzname... " >&6; }
19642 if test "${ac_cv_var_tzname+set}" = set; then :
19643 $as_echo_n "(cached) " >&6
19644 else
19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h. */
19647 #include <time.h>
19648 #if !HAVE_DECL_TZNAME
19649 extern char *tzname[];
19650 #endif
19651
19652 int
19653 main ()
19654 {
19655 return tzname[0][0];
19656 ;
19657 return 0;
19658 }
19659 _ACEOF
19660 if ac_fn_c_try_link "$LINENO"; then :
19661 ac_cv_var_tzname=yes
19662 else
19663 ac_cv_var_tzname=no
19664 fi
19665 rm -f core conftest.err conftest.$ac_objext \
19666 conftest$ac_exeext conftest.$ac_ext
19667 fi
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19669 $as_echo "$ac_cv_var_tzname" >&6; }
19670 if test $ac_cv_var_tzname = yes; then
19671
19672 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19673
19674 fi
19675 fi
19676
19677
19678 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19679 "
19680 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19681
19682 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19683
19684 fi
19685
19686
19687
19688
19689 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19690 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19691 ac_have_decl=1
19692 else
19693 ac_have_decl=0
19694 fi
19695
19696 cat >>confdefs.h <<_ACEOF
19697 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19698 _ACEOF
19699
19700
19701
19702 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19703 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19704 ac_have_decl=1
19705 else
19706 ac_have_decl=0
19707 fi
19708
19709 cat >>confdefs.h <<_ACEOF
19710 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19711 _ACEOF
19712
19713
19714
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19716 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19717 if test "${ac_cv_header_stat_broken+set}" = set; then :
19718 $as_echo_n "(cached) " >&6
19719 else
19720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19721 /* end confdefs.h. */
19722 #include <sys/types.h>
19723 #include <sys/stat.h>
19724
19725 #if defined S_ISBLK && defined S_IFDIR
19726 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19727 #endif
19728
19729 #if defined S_ISBLK && defined S_IFCHR
19730 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19731 #endif
19732
19733 #if defined S_ISLNK && defined S_IFREG
19734 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19735 #endif
19736
19737 #if defined S_ISSOCK && defined S_IFREG
19738 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19739 #endif
19740
19741 _ACEOF
19742 if ac_fn_c_try_compile "$LINENO"; then :
19743 ac_cv_header_stat_broken=no
19744 else
19745 ac_cv_header_stat_broken=yes
19746 fi
19747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19748 fi
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19750 $as_echo "$ac_cv_header_stat_broken" >&6; }
19751 if test $ac_cv_header_stat_broken = yes; then
19752
19753 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19754
19755 fi
19756
19757
19758
19759 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19760 if test "x$ac_cv_type_mode_t" = x""yes; then :
19761
19762 else
19763
19764 cat >>confdefs.h <<_ACEOF
19765 #define mode_t int
19766 _ACEOF
19767
19768 fi
19769
19770
19771
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19773 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19774 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19775 $as_echo_n "(cached) " >&6
19776 else
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h. */
19779 #include <time.h>
19780
19781 int
19782 main ()
19783 {
19784 static struct timespec x; x.tv_sec = x.tv_nsec;
19785 ;
19786 return 0;
19787 }
19788 _ACEOF
19789 if ac_fn_c_try_compile "$LINENO"; then :
19790 gl_cv_sys_struct_timespec_in_time_h=yes
19791 else
19792 gl_cv_sys_struct_timespec_in_time_h=no
19793 fi
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 fi
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19797 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19798
19799 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19800 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19801 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19802 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19803 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19804 else
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19806 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19807 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19808 $as_echo_n "(cached) " >&6
19809 else
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19812 #include <sys/time.h>
19813
19814 int
19815 main ()
19816 {
19817 static struct timespec x; x.tv_sec = x.tv_nsec;
19818 ;
19819 return 0;
19820 }
19821 _ACEOF
19822 if ac_fn_c_try_compile "$LINENO"; then :
19823 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19824 else
19825 gl_cv_sys_struct_timespec_in_sys_time_h=no
19826 fi
19827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 fi
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19830 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19831 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19832 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19833 else
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19835 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19836 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19837 $as_echo_n "(cached) " >&6
19838 else
19839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19840 /* end confdefs.h. */
19841 #include <pthread.h>
19842
19843 int
19844 main ()
19845 {
19846 static struct timespec x; x.tv_sec = x.tv_nsec;
19847 ;
19848 return 0;
19849 }
19850 _ACEOF
19851 if ac_fn_c_try_compile "$LINENO"; then :
19852 gl_cv_sys_struct_timespec_in_pthread_h=yes
19853 else
19854 gl_cv_sys_struct_timespec_in_pthread_h=no
19855 fi
19856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 fi
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19859 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19860 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19861 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19862 fi
19863 fi
19864 fi
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880 if test $gl_cv_have_include_next = yes; then
19881 gl_cv_next_time_h='<'time.h'>'
19882 else
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19884 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19885 if test "${gl_cv_next_time_h+set}" = set; then :
19886 $as_echo_n "(cached) " >&6
19887 else
19888
19889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19890 /* end confdefs.h. */
19891 #include <time.h>
19892
19893 _ACEOF
19894 case "$host_os" in
19895 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19896 *) gl_absname_cpp="$ac_cpp" ;;
19897 esac
19898
19899 case "$host_os" in
19900 mingw*)
19901 gl_dirsep_regex='[/\\]'
19902 ;;
19903 *)
19904 gl_dirsep_regex='\/'
19905 ;;
19906 esac
19907 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19908
19909 gl_header_literal_regex=`echo 'time.h' \
19910 | sed -e "$gl_make_literal_regex_sed"`
19911 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19912 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19913 s|^/[^/]|//&|
19914 p
19915 q
19916 }'
19917 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19918 sed -n "$gl_absolute_header_sed"`'"'
19919
19920
19921 fi
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19923 $as_echo "$gl_cv_next_time_h" >&6; }
19924 fi
19925 NEXT_TIME_H=$gl_cv_next_time_h
19926
19927 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19929 gl_next_as_first_directive='<'time.h'>'
19930 else
19931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19932 gl_next_as_first_directive=$gl_cv_next_time_h
19933 fi
19934 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19951 $as_echo_n "checking whether the utimes function works... " >&6; }
19952 if test "${gl_cv_func_working_utimes+set}" = set; then :
19953 $as_echo_n "(cached) " >&6
19954 else
19955
19956 if test "$cross_compiling" = yes; then :
19957 gl_cv_func_working_utimes=no
19958 else
19959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960 /* end confdefs.h. */
19961
19962 #include <sys/types.h>
19963 #include <sys/stat.h>
19964 #include <fcntl.h>
19965 #include <sys/time.h>
19966 #include <time.h>
19967 #include <unistd.h>
19968 #include <stdlib.h>
19969 #include <stdio.h>
19970 #include <utime.h>
19971
19972 static int
19973 inorder (time_t a, time_t b, time_t c)
19974 {
19975 return a <= b && b <= c;
19976 }
19977
19978 int
19979 main ()
19980 {
19981 int result = 0;
19982 char const *file = "conftest.utimes";
19983 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19984
19985 /* Test whether utimes() essentially works. */
19986 {
19987 struct stat sbuf;
19988 FILE *f = fopen (file, "w");
19989 if (f == NULL)
19990 result |= 1;
19991 else if (fclose (f) != 0)
19992 result |= 1;
19993 else if (utimes (file, timeval) != 0)
19994 result |= 2;
19995 else if (lstat (file, &sbuf) != 0)
19996 result |= 1;
19997 else if (!(sbuf.st_atime == timeval[0].tv_sec
19998 && sbuf.st_mtime == timeval[1].tv_sec))
19999 result |= 4;
20000 if (unlink (file) != 0)
20001 result |= 1;
20002 }
20003
20004 /* Test whether utimes() with a NULL argument sets the file's timestamp
20005 to the current time. Use 'fstat' as well as 'time' to
20006 determine the "current" time, to accommodate NFS file systems
20007 if there is a time skew between the host and the NFS server. */
20008 {
20009 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20010 if (fd < 0)
20011 result |= 1;
20012 else
20013 {
20014 time_t t0, t2;
20015 struct stat st0, st1, st2;
20016 if (time (&t0) == (time_t) -1)
20017 result |= 1;
20018 else if (fstat (fd, &st0) != 0)
20019 result |= 1;
20020 else if (utimes (file, timeval) != 0)
20021 result |= 2;
20022 else if (utimes (file, NULL) != 0)
20023 result |= 8;
20024 else if (fstat (fd, &st1) != 0)
20025 result |= 1;
20026 else if (write (fd, "\n", 1) != 1)
20027 result |= 1;
20028 else if (fstat (fd, &st2) != 0)
20029 result |= 1;
20030 else if (time (&t2) == (time_t) -1)
20031 result |= 1;
20032 else
20033 {
20034 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20035 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20036 if (! (st1.st_atime == st1.st_mtime))
20037 result |= 16;
20038 if (! (m_ok_POSIX || m_ok_NFS))
20039 result |= 32;
20040 }
20041 if (close (fd) != 0)
20042 result |= 1;
20043 }
20044 if (unlink (file) != 0)
20045 result |= 1;
20046 }
20047
20048 /* Test whether utimes() with a NULL argument works on read-only files. */
20049 {
20050 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20051 if (fd < 0)
20052 result |= 1;
20053 else if (close (fd) != 0)
20054 result |= 1;
20055 else if (utimes (file, NULL) != 0)
20056 result |= 64;
20057 if (unlink (file) != 0)
20058 result |= 1;
20059 }
20060
20061 return result;
20062 }
20063
20064 _ACEOF
20065 if ac_fn_c_try_run "$LINENO"; then :
20066 gl_cv_func_working_utimes=yes
20067 else
20068 gl_cv_func_working_utimes=no
20069 fi
20070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20071 conftest.$ac_objext conftest.beam conftest.$ac_ext
20072 fi
20073
20074 fi
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20076 $as_echo "$gl_cv_func_working_utimes" >&6; }
20077
20078 if test $gl_cv_func_working_utimes = yes; then
20079
20080 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20081
20082 fi
20083
20084
20085
20086
20087
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20089 $as_echo_n "checking for struct utimbuf... " >&6; }
20090 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20091 $as_echo_n "(cached) " >&6
20092 else
20093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20094 /* end confdefs.h. */
20095 #if HAVE_SYS_TIME_H
20096 #include <sys/time.h>
20097 #endif
20098 #include <time.h>
20099 #ifdef HAVE_UTIME_H
20100 #include <utime.h>
20101 #endif
20102
20103 int
20104 main ()
20105 {
20106 static struct utimbuf x; x.actime = x.modtime;
20107 ;
20108 return 0;
20109 }
20110 _ACEOF
20111 if ac_fn_c_try_compile "$LINENO"; then :
20112 gl_cv_sys_struct_utimbuf=yes
20113 else
20114 gl_cv_sys_struct_utimbuf=no
20115 fi
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117 fi
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20119 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20120
20121 if test $gl_cv_sys_struct_utimbuf = yes; then
20122
20123 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20124
20125 fi
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138 if false; then
20139 GL_COND_LIBTOOL_TRUE=
20140 GL_COND_LIBTOOL_FALSE='#'
20141 else
20142 GL_COND_LIBTOOL_TRUE='#'
20143 GL_COND_LIBTOOL_FALSE=
20144 fi
20145
20146 gl_cond_libtool=false
20147 gl_libdeps=
20148 gl_ltlibdeps=
20149 gl_m4_base='m4'
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159 gl_source_base='lib'
20160
20161
20162 if test $ac_cv_func_alloca_works = no; then
20163 :
20164 fi
20165
20166 # Define an additional variable used in the Makefile substitution.
20167 if test $ac_cv_working_alloca_h = yes; then
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20169 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20170 if test "${gl_cv_rpl_alloca+set}" = set; then :
20171 $as_echo_n "(cached) " >&6
20172 else
20173
20174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h. */
20176
20177 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20178 Need own alloca
20179 #endif
20180
20181 _ACEOF
20182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20183 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20184 gl_cv_rpl_alloca=yes
20185 else
20186 gl_cv_rpl_alloca=no
20187 fi
20188 rm -f conftest*
20189
20190
20191 fi
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20193 $as_echo "$gl_cv_rpl_alloca" >&6; }
20194 if test $gl_cv_rpl_alloca = yes; then
20195
20196 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20197
20198 ALLOCA_H=alloca.h
20199 else
20200 ALLOCA_H=
20201 fi
20202 else
20203 ALLOCA_H=alloca.h
20204 fi
20205
20206 if test -n "$ALLOCA_H"; then
20207 GL_GENERATE_ALLOCA_H_TRUE=
20208 GL_GENERATE_ALLOCA_H_FALSE='#'
20209 else
20210 GL_GENERATE_ALLOCA_H_TRUE='#'
20211 GL_GENERATE_ALLOCA_H_FALSE=
20212 fi
20213
20214
20215
20216
20217
20218
20219 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20220 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20221
20222 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20223 # programs in the package would end up linked with that potentially-shared
20224 # library, inducing unnecessary run-time overhead.
20225 LIB_CLOCK_GETTIME=
20226
20227 gl_saved_libs=$LIBS
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20229 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20230 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20231 $as_echo_n "(cached) " >&6
20232 else
20233 ac_func_search_save_LIBS=$LIBS
20234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20235 /* end confdefs.h. */
20236
20237 /* Override any GCC internal prototype to avoid an error.
20238 Use char because int might match the return type of a GCC
20239 builtin and then its argument prototype would still apply. */
20240 #ifdef __cplusplus
20241 extern "C"
20242 #endif
20243 char clock_gettime ();
20244 int
20245 main ()
20246 {
20247 return clock_gettime ();
20248 ;
20249 return 0;
20250 }
20251 _ACEOF
20252 for ac_lib in '' rt posix4; do
20253 if test -z "$ac_lib"; then
20254 ac_res="none required"
20255 else
20256 ac_res=-l$ac_lib
20257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20258 fi
20259 if ac_fn_c_try_link "$LINENO"; then :
20260 ac_cv_search_clock_gettime=$ac_res
20261 fi
20262 rm -f core conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext
20264 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20265 break
20266 fi
20267 done
20268 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20269
20270 else
20271 ac_cv_search_clock_gettime=no
20272 fi
20273 rm conftest.$ac_ext
20274 LIBS=$ac_func_search_save_LIBS
20275 fi
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20277 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20278 ac_res=$ac_cv_search_clock_gettime
20279 if test "$ac_res" != no; then :
20280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20281 test "$ac_cv_search_clock_gettime" = "none required" ||
20282 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20283 fi
20284
20285 for ac_func in clock_gettime clock_settime
20286 do :
20287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20288 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20289 eval as_val=\$$as_ac_var
20290 if test "x$as_val" = x""yes; then :
20291 cat >>confdefs.h <<_ACEOF
20292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20293 _ACEOF
20294
20295 fi
20296 done
20297
20298 LIBS=$gl_saved_libs
20299
20300
20301
20302
20303 :
20304
20305
20306
20307
20308 :
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20325
20326
20327 if test $HAVE_DUP2 = 1; then
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20329 $as_echo_n "checking whether dup2 works... " >&6; }
20330 if test "${gl_cv_func_dup2_works+set}" = set; then :
20331 $as_echo_n "(cached) " >&6
20332 else
20333 if test "$cross_compiling" = yes; then :
20334 case "$host_os" in
20335 mingw*) # on this platform, dup2 always returns 0 for success
20336 gl_cv_func_dup2_works="guessing no" ;;
20337 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20338 gl_cv_func_dup2_works="guessing no" ;;
20339 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20340 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20341 gl_cv_func_dup2_works="guessing no" ;;
20342 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20343 gl_cv_func_dup2_works="guessing no" ;;
20344 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20345 gl_cv_func_dup2_works="guessing no" ;;
20346 *) gl_cv_func_dup2_works="guessing yes" ;;
20347 esac
20348 else
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351
20352 #include <unistd.h>
20353 #include <fcntl.h>
20354 #include <errno.h>
20355 int
20356 main ()
20357 {
20358 int result = 0;
20359 #ifdef FD_CLOEXEC
20360 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20361 result |= 1;
20362 #endif
20363 if (dup2 (1, 1) == 0)
20364 result |= 2;
20365 #ifdef FD_CLOEXEC
20366 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20367 result |= 4;
20368 #endif
20369 close (0);
20370 if (dup2 (0, 0) != -1)
20371 result |= 8;
20372 /* Many gnulib modules require POSIX conformance of EBADF. */
20373 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20374 result |= 16;
20375 return result;
20376
20377 ;
20378 return 0;
20379 }
20380
20381 _ACEOF
20382 if ac_fn_c_try_run "$LINENO"; then :
20383 gl_cv_func_dup2_works=yes
20384 else
20385 gl_cv_func_dup2_works=no
20386 fi
20387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20388 conftest.$ac_objext conftest.beam conftest.$ac_ext
20389 fi
20390
20391
20392 fi
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20394 $as_echo "$gl_cv_func_dup2_works" >&6; }
20395 case "$gl_cv_func_dup2_works" in
20396 *yes) ;;
20397 *)
20398 REPLACE_DUP2=1
20399 ;;
20400 esac
20401 fi
20402
20403
20404 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20405
20406
20407
20408
20409
20410
20411
20412
20413 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20414
20415
20416 fi
20417
20418
20419
20420
20421
20422 GNULIB_DUP2=1
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434 GNULIB_ENVIRON=1
20435
20436
20437
20438
20439
20440
20441
20442
20443 LIB_EXECINFO=''
20444 EXECINFO_H='execinfo.h'
20445
20446 if test $ac_cv_header_execinfo_h = yes; then
20447 gl_saved_libs=$LIBS
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20449 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20450 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20451 $as_echo_n "(cached) " >&6
20452 else
20453 ac_func_search_save_LIBS=$LIBS
20454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20455 /* end confdefs.h. */
20456
20457 /* Override any GCC internal prototype to avoid an error.
20458 Use char because int might match the return type of a GCC
20459 builtin and then its argument prototype would still apply. */
20460 #ifdef __cplusplus
20461 extern "C"
20462 #endif
20463 char backtrace_symbols_fd ();
20464 int
20465 main ()
20466 {
20467 return backtrace_symbols_fd ();
20468 ;
20469 return 0;
20470 }
20471 _ACEOF
20472 for ac_lib in '' execinfo; do
20473 if test -z "$ac_lib"; then
20474 ac_res="none required"
20475 else
20476 ac_res=-l$ac_lib
20477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20478 fi
20479 if ac_fn_c_try_link "$LINENO"; then :
20480 ac_cv_search_backtrace_symbols_fd=$ac_res
20481 fi
20482 rm -f core conftest.err conftest.$ac_objext \
20483 conftest$ac_exeext
20484 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20485 break
20486 fi
20487 done
20488 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20489
20490 else
20491 ac_cv_search_backtrace_symbols_fd=no
20492 fi
20493 rm conftest.$ac_ext
20494 LIBS=$ac_func_search_save_LIBS
20495 fi
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20497 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20498 ac_res=$ac_cv_search_backtrace_symbols_fd
20499 if test "$ac_res" != no; then :
20500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20501 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20502 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20503 fi
20504
20505 LIBS=$gl_saved_libs
20506 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20507 fi
20508
20509 if test -n "$EXECINFO_H"; then
20510
20511
20512
20513
20514
20515
20516
20517
20518 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20519
20520 fi
20521
20522
20523
20524 if test -n "$EXECINFO_H"; then
20525 GL_GENERATE_EXECINFO_H_TRUE=
20526 GL_GENERATE_EXECINFO_H_FALSE='#'
20527 else
20528 GL_GENERATE_EXECINFO_H_TRUE='#'
20529 GL_GENERATE_EXECINFO_H_FALSE=
20530 fi
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540 # Persuade glibc <stdlib.h> to declare getloadavg().
20541
20542
20543 gl_save_LIBS=$LIBS
20544
20545 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20546 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20547 HAVE_GETLOADAVG=1
20548 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20549 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20550
20551 else
20552 gl_func_getloadavg_done=no
20553
20554 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20555 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20556 # to get the right answer into the cache.
20557 # For kstat on solaris, we need to test for libelf and libkvm to force the
20558 # definition of SVR4 below.
20559 if test $gl_func_getloadavg_done = no; then
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20561 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20562 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20563 $as_echo_n "(cached) " >&6
20564 else
20565 ac_check_lib_save_LIBS=$LIBS
20566 LIBS="-lelf $LIBS"
20567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20568 /* end confdefs.h. */
20569
20570 /* Override any GCC internal prototype to avoid an error.
20571 Use char because int might match the return type of a GCC
20572 builtin and then its argument prototype would still apply. */
20573 #ifdef __cplusplus
20574 extern "C"
20575 #endif
20576 char elf_begin ();
20577 int
20578 main ()
20579 {
20580 return elf_begin ();
20581 ;
20582 return 0;
20583 }
20584 _ACEOF
20585 if ac_fn_c_try_link "$LINENO"; then :
20586 ac_cv_lib_elf_elf_begin=yes
20587 else
20588 ac_cv_lib_elf_elf_begin=no
20589 fi
20590 rm -f core conftest.err conftest.$ac_objext \
20591 conftest$ac_exeext conftest.$ac_ext
20592 LIBS=$ac_check_lib_save_LIBS
20593 fi
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20595 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20596 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20597 LIBS="-lelf $LIBS"
20598 fi
20599
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20601 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20602 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20603 $as_echo_n "(cached) " >&6
20604 else
20605 ac_check_lib_save_LIBS=$LIBS
20606 LIBS="-lkvm $LIBS"
20607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608 /* end confdefs.h. */
20609
20610 /* Override any GCC internal prototype to avoid an error.
20611 Use char because int might match the return type of a GCC
20612 builtin and then its argument prototype would still apply. */
20613 #ifdef __cplusplus
20614 extern "C"
20615 #endif
20616 char kvm_open ();
20617 int
20618 main ()
20619 {
20620 return kvm_open ();
20621 ;
20622 return 0;
20623 }
20624 _ACEOF
20625 if ac_fn_c_try_link "$LINENO"; then :
20626 ac_cv_lib_kvm_kvm_open=yes
20627 else
20628 ac_cv_lib_kvm_kvm_open=no
20629 fi
20630 rm -f core conftest.err conftest.$ac_objext \
20631 conftest$ac_exeext conftest.$ac_ext
20632 LIBS=$ac_check_lib_save_LIBS
20633 fi
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20635 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20636 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20637 LIBS="-lkvm $LIBS"
20638 fi
20639
20640 # Check for the 4.4BSD definition of getloadavg.
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20642 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20643 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20644 $as_echo_n "(cached) " >&6
20645 else
20646 ac_check_lib_save_LIBS=$LIBS
20647 LIBS="-lutil $LIBS"
20648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20649 /* end confdefs.h. */
20650
20651 /* Override any GCC internal prototype to avoid an error.
20652 Use char because int might match the return type of a GCC
20653 builtin and then its argument prototype would still apply. */
20654 #ifdef __cplusplus
20655 extern "C"
20656 #endif
20657 char getloadavg ();
20658 int
20659 main ()
20660 {
20661 return getloadavg ();
20662 ;
20663 return 0;
20664 }
20665 _ACEOF
20666 if ac_fn_c_try_link "$LINENO"; then :
20667 ac_cv_lib_util_getloadavg=yes
20668 else
20669 ac_cv_lib_util_getloadavg=no
20670 fi
20671 rm -f core conftest.err conftest.$ac_objext \
20672 conftest$ac_exeext conftest.$ac_ext
20673 LIBS=$ac_check_lib_save_LIBS
20674 fi
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20676 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20677 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20678 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20679 fi
20680
20681 fi
20682
20683 if test $gl_func_getloadavg_done = no; then
20684 # There is a commonly available library for RS/6000 AIX.
20685 # Since it is not a standard part of AIX, it might be installed locally.
20686 gl_getloadavg_LIBS=$LIBS
20687 LIBS="-L/usr/local/lib $LIBS"
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20689 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20690 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20691 $as_echo_n "(cached) " >&6
20692 else
20693 ac_check_lib_save_LIBS=$LIBS
20694 LIBS="-lgetloadavg $LIBS"
20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696 /* end confdefs.h. */
20697
20698 /* Override any GCC internal prototype to avoid an error.
20699 Use char because int might match the return type of a GCC
20700 builtin and then its argument prototype would still apply. */
20701 #ifdef __cplusplus
20702 extern "C"
20703 #endif
20704 char getloadavg ();
20705 int
20706 main ()
20707 {
20708 return getloadavg ();
20709 ;
20710 return 0;
20711 }
20712 _ACEOF
20713 if ac_fn_c_try_link "$LINENO"; then :
20714 ac_cv_lib_getloadavg_getloadavg=yes
20715 else
20716 ac_cv_lib_getloadavg_getloadavg=no
20717 fi
20718 rm -f core conftest.err conftest.$ac_objext \
20719 conftest$ac_exeext conftest.$ac_ext
20720 LIBS=$ac_check_lib_save_LIBS
20721 fi
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20723 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20724 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20725 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20726 else
20727 LIBS=$gl_getloadavg_LIBS
20728 fi
20729
20730 fi
20731
20732 # Set up the replacement function if necessary.
20733 if test $gl_func_getloadavg_done = no; then
20734 HAVE_GETLOADAVG=0
20735
20736 # Solaris has libkstat which does not require root.
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20738 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20739 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20740 $as_echo_n "(cached) " >&6
20741 else
20742 ac_check_lib_save_LIBS=$LIBS
20743 LIBS="-lkstat $LIBS"
20744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h. */
20746
20747 /* Override any GCC internal prototype to avoid an error.
20748 Use char because int might match the return type of a GCC
20749 builtin and then its argument prototype would still apply. */
20750 #ifdef __cplusplus
20751 extern "C"
20752 #endif
20753 char kstat_open ();
20754 int
20755 main ()
20756 {
20757 return kstat_open ();
20758 ;
20759 return 0;
20760 }
20761 _ACEOF
20762 if ac_fn_c_try_link "$LINENO"; then :
20763 ac_cv_lib_kstat_kstat_open=yes
20764 else
20765 ac_cv_lib_kstat_kstat_open=no
20766 fi
20767 rm -f core conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20769 LIBS=$ac_check_lib_save_LIBS
20770 fi
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20772 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20773 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20774 cat >>confdefs.h <<_ACEOF
20775 #define HAVE_LIBKSTAT 1
20776 _ACEOF
20777
20778 LIBS="-lkstat $LIBS"
20779
20780 fi
20781
20782 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20783
20784 # AIX has libperfstat which does not require root
20785 if test $gl_func_getloadavg_done = no; then
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20787 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20788 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20789 $as_echo_n "(cached) " >&6
20790 else
20791 ac_check_lib_save_LIBS=$LIBS
20792 LIBS="-lperfstat $LIBS"
20793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20794 /* end confdefs.h. */
20795
20796 /* Override any GCC internal prototype to avoid an error.
20797 Use char because int might match the return type of a GCC
20798 builtin and then its argument prototype would still apply. */
20799 #ifdef __cplusplus
20800 extern "C"
20801 #endif
20802 char perfstat_cpu_total ();
20803 int
20804 main ()
20805 {
20806 return perfstat_cpu_total ();
20807 ;
20808 return 0;
20809 }
20810 _ACEOF
20811 if ac_fn_c_try_link "$LINENO"; then :
20812 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20813 else
20814 ac_cv_lib_perfstat_perfstat_cpu_total=no
20815 fi
20816 rm -f core conftest.err conftest.$ac_objext \
20817 conftest$ac_exeext conftest.$ac_ext
20818 LIBS=$ac_check_lib_save_LIBS
20819 fi
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20821 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20822 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20823 cat >>confdefs.h <<_ACEOF
20824 #define HAVE_LIBPERFSTAT 1
20825 _ACEOF
20826
20827 LIBS="-lperfstat $LIBS"
20828
20829 fi
20830
20831 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20832 fi
20833
20834 if test $gl_func_getloadavg_done = no; then
20835 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20836 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20837 gl_func_getloadavg_done=yes
20838
20839 $as_echo "#define DGUX 1" >>confdefs.h
20840
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20842 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20843 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20844 $as_echo_n "(cached) " >&6
20845 else
20846 ac_check_lib_save_LIBS=$LIBS
20847 LIBS="-ldgc $LIBS"
20848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20849 /* end confdefs.h. */
20850
20851 /* Override any GCC internal prototype to avoid an error.
20852 Use char because int might match the return type of a GCC
20853 builtin and then its argument prototype would still apply. */
20854 #ifdef __cplusplus
20855 extern "C"
20856 #endif
20857 char dg_sys_info ();
20858 int
20859 main ()
20860 {
20861 return dg_sys_info ();
20862 ;
20863 return 0;
20864 }
20865 _ACEOF
20866 if ac_fn_c_try_link "$LINENO"; then :
20867 ac_cv_lib_dgc_dg_sys_info=yes
20868 else
20869 ac_cv_lib_dgc_dg_sys_info=no
20870 fi
20871 rm -f core conftest.err conftest.$ac_objext \
20872 conftest$ac_exeext conftest.$ac_ext
20873 LIBS=$ac_check_lib_save_LIBS
20874 fi
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20876 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20877 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20878 cat >>confdefs.h <<_ACEOF
20879 #define HAVE_LIBDGC 1
20880 _ACEOF
20881
20882 LIBS="-ldgc $LIBS"
20883
20884 fi
20885
20886 fi
20887
20888
20889 fi
20890 fi
20891 fi
20892
20893
20894 if test "x$gl_save_LIBS" = x; then
20895 GETLOADAVG_LIBS=$LIBS
20896 else
20897 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20898 fi
20899 LIBS=$gl_save_LIBS
20900
20901
20902 # Test whether the system declares getloadavg. Solaris has the function
20903 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20904 for ac_header in sys/loadavg.h
20905 do :
20906 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20907 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20908 cat >>confdefs.h <<_ACEOF
20909 #define HAVE_SYS_LOADAVG_H 1
20910 _ACEOF
20911
20912 fi
20913
20914 done
20915
20916 if test $ac_cv_header_sys_loadavg_h = yes; then
20917 HAVE_SYS_LOADAVG_H=1
20918 else
20919 HAVE_SYS_LOADAVG_H=0
20920 fi
20921 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20922 # include <sys/loadavg.h>
20923 #endif
20924 #include <stdlib.h>
20925 "
20926 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20927
20928 else
20929 HAVE_DECL_GETLOADAVG=0
20930 fi
20931
20932
20933 if test $HAVE_GETLOADAVG = 0; then
20934
20935
20936
20937
20938
20939
20940
20941
20942 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20943
20944
20945 # Figure out what our getloadavg.c needs.
20946
20947
20948
20949 # On HPUX9, an unprivileged user can get load averages this way.
20950 if test $gl_func_getloadavg_done = no; then
20951 for ac_func in pstat_getdynamic
20952 do :
20953 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20954 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20955 cat >>confdefs.h <<_ACEOF
20956 #define HAVE_PSTAT_GETDYNAMIC 1
20957 _ACEOF
20958 gl_func_getloadavg_done=yes
20959 fi
20960 done
20961
20962 fi
20963
20964 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20965 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20966 # Irix 4.0.5F has the header but not the library.
20967 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20968 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20969 gl_func_getloadavg_done=yes
20970
20971 $as_echo "#define SVR4 1" >>confdefs.h
20972
20973 fi
20974
20975 if test $gl_func_getloadavg_done = no; then
20976 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20977 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20978 gl_func_getloadavg_done=yes
20979
20980 $as_echo "#define UMAX 1" >>confdefs.h
20981
20982
20983 $as_echo "#define UMAX4_3 1" >>confdefs.h
20984
20985 fi
20986
20987
20988 fi
20989
20990 if test $gl_func_getloadavg_done = no; then
20991 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20992 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20993 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20994
20995 fi
20996
20997
20998 fi
20999
21000 if test $gl_func_getloadavg_done = no; then
21001 for ac_header in mach/mach.h
21002 do :
21003 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21004 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21005 cat >>confdefs.h <<_ACEOF
21006 #define HAVE_MACH_MACH_H 1
21007 _ACEOF
21008
21009 fi
21010
21011 done
21012
21013 fi
21014
21015 for ac_header in nlist.h
21016 do :
21017 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21018 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21019 cat >>confdefs.h <<_ACEOF
21020 #define HAVE_NLIST_H 1
21021 _ACEOF
21022 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21023 "
21024 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21025
21026 cat >>confdefs.h <<_ACEOF
21027 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21028 _ACEOF
21029
21030
21031 fi
21032
21033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034 /* end confdefs.h. */
21035 #include <nlist.h>
21036 int
21037 main ()
21038 {
21039 struct nlist x;
21040 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21041 x.n_un.n_name = "";
21042 #else
21043 x.n_name = "";
21044 #endif
21045 ;
21046 return 0;
21047 }
21048 _ACEOF
21049 if ac_fn_c_try_link "$LINENO"; then :
21050
21051 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21052
21053 fi
21054 rm -f core conftest.err conftest.$ac_objext \
21055 conftest$ac_exeext conftest.$ac_ext
21056
21057 fi
21058
21059 done
21060
21061 fi
21062
21063
21064
21065
21066
21067 GNULIB_GETLOADAVG=1
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078 if test $REPLACE_GETOPT = 1; then
21079
21080
21081
21082
21083
21084
21085
21086
21087 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21098
21099
21100
21101
21102 GNULIB_GL_UNISTD_H_GETOPT=1
21103 fi
21104
21105
21106
21107
21108
21109
21110
21111 REPLACE_GETOPT=0
21112 if test -n "$gl_replace_getopt"; then
21113 REPLACE_GETOPT=1
21114 fi
21115
21116 if test $REPLACE_GETOPT = 1; then
21117
21118 GETOPT_H=getopt.h
21119
21120 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21121
21122
21123
21124 fi
21125
21126 if test $REPLACE_GETOPT = 1; then
21127
21128
21129
21130
21131
21132
21133
21134
21135 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21146
21147
21148
21149
21150 GNULIB_GL_UNISTD_H_GETOPT=1
21151 fi
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164 gl_gettimeofday_timezone=void
21165 if test $ac_cv_func_gettimeofday != yes; then
21166 HAVE_GETTIMEOFDAY=0
21167 else
21168
21169
21170
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21172 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21173 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21174 $as_echo_n "(cached) " >&6
21175 else
21176 if test "$cross_compiling" = yes; then :
21177 # When cross-compiling:
21178 case "$host_os" in
21179 # Guess all is fine on glibc systems.
21180 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21181 # If we don't know, assume the worst.
21182 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21183 esac
21184
21185 else
21186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21187 /* end confdefs.h. */
21188 #include <string.h>
21189 #include <sys/time.h>
21190 #include <time.h>
21191 #include <stdlib.h>
21192
21193 int
21194 main ()
21195 {
21196
21197 time_t t = 0;
21198 struct tm *lt;
21199 struct tm saved_lt;
21200 struct timeval tv;
21201 lt = localtime (&t);
21202 saved_lt = *lt;
21203 gettimeofday (&tv, NULL);
21204 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21205
21206 ;
21207 return 0;
21208 }
21209 _ACEOF
21210 if ac_fn_c_try_run "$LINENO"; then :
21211 gl_cv_func_gettimeofday_clobber=no
21212 else
21213 gl_cv_func_gettimeofday_clobber=yes
21214 fi
21215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21216 conftest.$ac_objext conftest.beam conftest.$ac_ext
21217 fi
21218
21219 fi
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21221 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21222
21223 case "$gl_cv_func_gettimeofday_clobber" in
21224 *yes)
21225 REPLACE_GETTIMEOFDAY=1
21226
21227
21228 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21229
21230
21231 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21232
21233
21234
21235 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21236
21237 ;;
21238 esac
21239
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21241 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21242 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21243 $as_echo_n "(cached) " >&6
21244 else
21245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21246 /* end confdefs.h. */
21247 #include <sys/time.h>
21248 struct timeval c;
21249 int gettimeofday (struct timeval *restrict, void *restrict);
21250
21251 int
21252 main ()
21253 {
21254 /* glibc uses struct timezone * rather than the POSIX void *
21255 if _GNU_SOURCE is defined. However, since the only portable
21256 use of gettimeofday uses NULL as the second parameter, and
21257 since the glibc definition is actually more typesafe, it is
21258 not worth wrapping this to get a compliant signature. */
21259 int (*f) (struct timeval *restrict, void *restrict)
21260 = gettimeofday;
21261 int x = f (&c, 0);
21262 return !(x | c.tv_sec | c.tv_usec);
21263
21264 ;
21265 return 0;
21266 }
21267 _ACEOF
21268 if ac_fn_c_try_compile "$LINENO"; then :
21269 gl_cv_func_gettimeofday_posix_signature=yes
21270 else
21271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21272 /* end confdefs.h. */
21273 #include <sys/time.h>
21274 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21275
21276 int
21277 main ()
21278 {
21279
21280 ;
21281 return 0;
21282 }
21283 _ACEOF
21284 if ac_fn_c_try_compile "$LINENO"; then :
21285 gl_cv_func_gettimeofday_posix_signature=almost
21286 else
21287 gl_cv_func_gettimeofday_posix_signature=no
21288 fi
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290 fi
21291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292 fi
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21294 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21295 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21296 gl_gettimeofday_timezone='struct timezone'
21297 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21298 REPLACE_GETTIMEOFDAY=1
21299 fi
21300 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21301 REPLACE_GETTIMEOFDAY=1
21302 fi
21303
21304 fi
21305
21306 cat >>confdefs.h <<_ACEOF
21307 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21308 _ACEOF
21309
21310
21311 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21312
21313
21314
21315
21316
21317
21318
21319
21320 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21321
21322
21323 for ac_header in sys/timeb.h
21324 do :
21325 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21326 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21327 cat >>confdefs.h <<_ACEOF
21328 #define HAVE_SYS_TIMEB_H 1
21329 _ACEOF
21330
21331 fi
21332
21333 done
21334
21335 for ac_func in _ftime
21336 do :
21337 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21338 if test "x$ac_cv_func__ftime" = x""yes; then :
21339 cat >>confdefs.h <<_ACEOF
21340 #define HAVE__FTIME 1
21341 _ACEOF
21342
21343 fi
21344 done
21345
21346
21347 fi
21348
21349
21350
21351
21352
21353 GNULIB_GETTIMEOFDAY=1
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364 if test $ac_cv_func_lstat = yes; then
21365
21366 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21367 *no)
21368 REPLACE_LSTAT=1
21369 ;;
21370 esac
21371 else
21372 HAVE_LSTAT=0
21373 fi
21374
21375 if test $REPLACE_LSTAT = 1; then
21376
21377
21378
21379
21380
21381
21382
21383
21384 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21385
21386
21387
21388 :
21389
21390 fi
21391
21392
21393
21394
21395
21396 GNULIB_LSTAT=1
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408 if test $APPLE_UNIVERSAL_BUILD = 1; then
21409 # A universal build on Apple Mac OS X platforms.
21410 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21411 # But we need a configuration result that is valid in both modes.
21412 gl_cv_func_working_mktime=no
21413 fi
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21415 $as_echo_n "checking for working mktime... " >&6; }
21416 if test "${gl_cv_func_working_mktime+set}" = set; then :
21417 $as_echo_n "(cached) " >&6
21418 else
21419 if test "$cross_compiling" = yes; then :
21420 gl_cv_func_working_mktime=no
21421 else
21422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21423 /* end confdefs.h. */
21424 /* Test program from Paul Eggert and Tony Leneis. */
21425 #include <limits.h>
21426 #include <stdlib.h>
21427 #include <time.h>
21428
21429 #ifdef HAVE_UNISTD_H
21430 # include <unistd.h>
21431 #endif
21432
21433 #ifndef HAVE_ALARM
21434 # define alarm(X) /* empty */
21435 #endif
21436
21437 /* Work around redefinition to rpl_putenv by other config tests. */
21438 #undef putenv
21439
21440 static time_t time_t_max;
21441 static time_t time_t_min;
21442
21443 /* Values we'll use to set the TZ environment variable. */
21444 static char *tz_strings[] = {
21445 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21446 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21447 };
21448 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21449
21450 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21451 Based on a problem report from Andreas Jaeger. */
21452 static int
21453 spring_forward_gap ()
21454 {
21455 /* glibc (up to about 1998-10-07) failed this test. */
21456 struct tm tm;
21457
21458 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21459 instead of "TZ=America/Vancouver" in order to detect the bug even
21460 on systems that don't support the Olson extension, or don't have the
21461 full zoneinfo tables installed. */
21462 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21463
21464 tm.tm_year = 98;
21465 tm.tm_mon = 3;
21466 tm.tm_mday = 5;
21467 tm.tm_hour = 2;
21468 tm.tm_min = 0;
21469 tm.tm_sec = 0;
21470 tm.tm_isdst = -1;
21471 return mktime (&tm) != (time_t) -1;
21472 }
21473
21474 static int
21475 mktime_test1 (time_t now)
21476 {
21477 struct tm *lt;
21478 return ! (lt = localtime (&now)) || mktime (lt) == now;
21479 }
21480
21481 static int
21482 mktime_test (time_t now)
21483 {
21484 return (mktime_test1 (now)
21485 && mktime_test1 ((time_t) (time_t_max - now))
21486 && mktime_test1 ((time_t) (time_t_min + now)));
21487 }
21488
21489 static int
21490 irix_6_4_bug ()
21491 {
21492 /* Based on code from Ariel Faigon. */
21493 struct tm tm;
21494 tm.tm_year = 96;
21495 tm.tm_mon = 3;
21496 tm.tm_mday = 0;
21497 tm.tm_hour = 0;
21498 tm.tm_min = 0;
21499 tm.tm_sec = 0;
21500 tm.tm_isdst = -1;
21501 mktime (&tm);
21502 return tm.tm_mon == 2 && tm.tm_mday == 31;
21503 }
21504
21505 static int
21506 bigtime_test (int j)
21507 {
21508 struct tm tm;
21509 time_t now;
21510 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21511 now = mktime (&tm);
21512 if (now != (time_t) -1)
21513 {
21514 struct tm *lt = localtime (&now);
21515 if (! (lt
21516 && lt->tm_year == tm.tm_year
21517 && lt->tm_mon == tm.tm_mon
21518 && lt->tm_mday == tm.tm_mday
21519 && lt->tm_hour == tm.tm_hour
21520 && lt->tm_min == tm.tm_min
21521 && lt->tm_sec == tm.tm_sec
21522 && lt->tm_yday == tm.tm_yday
21523 && lt->tm_wday == tm.tm_wday
21524 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21525 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21526 return 0;
21527 }
21528 return 1;
21529 }
21530
21531 static int
21532 year_2050_test ()
21533 {
21534 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21535 ignoring leap seconds. */
21536 unsigned long int answer = 2527315200UL;
21537
21538 struct tm tm;
21539 time_t t;
21540 tm.tm_year = 2050 - 1900;
21541 tm.tm_mon = 2 - 1;
21542 tm.tm_mday = 1;
21543 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21544 tm.tm_isdst = -1;
21545
21546 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21547 instead of "TZ=America/Vancouver" in order to detect the bug even
21548 on systems that don't support the Olson extension, or don't have the
21549 full zoneinfo tables installed. */
21550 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21551
21552 t = mktime (&tm);
21553
21554 /* Check that the result is either a failure, or close enough
21555 to the correct answer that we can assume the discrepancy is
21556 due to leap seconds. */
21557 return (t == (time_t) -1
21558 || (0 < t && answer - 120 <= t && t <= answer + 120));
21559 }
21560
21561 int
21562 main ()
21563 {
21564 int result = 0;
21565 time_t t, delta;
21566 int i, j;
21567 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21568 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21569
21570 /* This test makes some buggy mktime implementations loop.
21571 Give up after 60 seconds; a mktime slower than that
21572 isn't worth using anyway. */
21573 alarm (60);
21574
21575 time_t_max = (! time_t_signed
21576 ? (time_t) -1
21577 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21578 * 2 + 1));
21579 time_t_min = (! time_t_signed
21580 ? (time_t) 0
21581 : time_t_signed_magnitude
21582 ? ~ (time_t) 0
21583 : ~ time_t_max);
21584
21585 delta = time_t_max / 997; /* a suitable prime number */
21586 for (i = 0; i < N_STRINGS; i++)
21587 {
21588 if (tz_strings[i])
21589 putenv (tz_strings[i]);
21590
21591 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21592 if (! mktime_test (t))
21593 result |= 1;
21594 if ((result & 2) == 0
21595 && ! (mktime_test ((time_t) 1)
21596 && mktime_test ((time_t) (60 * 60))
21597 && mktime_test ((time_t) (60 * 60 * 24))))
21598 result |= 2;
21599
21600 for (j = 1; (result & 4) == 0; j <<= 1)
21601 {
21602 if (! bigtime_test (j))
21603 result |= 4;
21604 if (INT_MAX / 2 < j)
21605 break;
21606 }
21607 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21608 result |= 8;
21609 }
21610 if (! irix_6_4_bug ())
21611 result |= 16;
21612 if (! spring_forward_gap ())
21613 result |= 32;
21614 if (! year_2050_test ())
21615 result |= 64;
21616 return result;
21617 }
21618 _ACEOF
21619 if ac_fn_c_try_run "$LINENO"; then :
21620 gl_cv_func_working_mktime=yes
21621 else
21622 gl_cv_func_working_mktime=no
21623 fi
21624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21625 conftest.$ac_objext conftest.beam conftest.$ac_ext
21626 fi
21627
21628
21629 fi
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21631 $as_echo "$gl_cv_func_working_mktime" >&6; }
21632
21633 if test $gl_cv_func_working_mktime = no; then
21634 REPLACE_MKTIME=1
21635 else
21636 REPLACE_MKTIME=0
21637 fi
21638
21639 if test $REPLACE_MKTIME = 1; then
21640
21641
21642
21643
21644
21645
21646
21647
21648 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
21649
21650 :
21651 fi
21652
21653
21654
21655
21656
21657 GNULIB_MKTIME=1
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669 if test $ac_cv_func_pselect = yes; then
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21671 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21672 if test "${gl_cv_sig_pselect+set}" = set; then :
21673 $as_echo_n "(cached) " >&6
21674 else
21675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676 /* end confdefs.h. */
21677 #include <sys/select.h>
21678
21679 int
21680 main ()
21681 {
21682 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21683 struct timespec const *restrict,
21684 sigset_t const *restrict) = pselect;
21685 return !p;
21686 ;
21687 return 0;
21688 }
21689 _ACEOF
21690 if ac_fn_c_try_link "$LINENO"; then :
21691 gl_cv_sig_pselect=yes
21692 else
21693 gl_cv_sig_pselect=no
21694 fi
21695 rm -f core conftest.err conftest.$ac_objext \
21696 conftest$ac_exeext conftest.$ac_ext
21697 fi
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21699 $as_echo "$gl_cv_sig_pselect" >&6; }
21700
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
21702 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
21703 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21705 else
21706
21707 if test "$cross_compiling" = yes; then :
21708
21709 case "$host_os" in
21710 # Guess yes on glibc systems.
21711 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
21712 # If we don't know, assume the worst.
21713 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
21714 esac
21715
21716 else
21717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21718 /* end confdefs.h. */
21719
21720 #include <sys/types.h>
21721 #include <sys/time.h>
21722 #if HAVE_SYS_SELECT_H
21723 # include <sys/select.h>
21724 #endif
21725 #include <unistd.h>
21726 #include <errno.h>
21727
21728 int
21729 main ()
21730 {
21731
21732 fd_set set;
21733 dup2(0, 16);
21734 FD_ZERO(&set);
21735 FD_SET(16, &set);
21736 close(16);
21737 struct timespec timeout;
21738 timeout.tv_sec = 0;
21739 timeout.tv_nsec = 5000;
21740 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
21741
21742 ;
21743 return 0;
21744 }
21745 _ACEOF
21746 if ac_fn_c_try_run "$LINENO"; then :
21747 gl_cv_func_pselect_detects_ebadf=yes
21748 else
21749 gl_cv_func_pselect_detects_ebadf=no
21750 fi
21751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21752 conftest.$ac_objext conftest.beam conftest.$ac_ext
21753 fi
21754
21755
21756 fi
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
21758 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
21759 case $gl_cv_func_pselect_detects_ebadf in
21760 *yes) ;;
21761 *) REPLACE_PSELECT=1 ;;
21762 esac
21763 fi
21764
21765 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
21766 REPLACE_PSELECT=1
21767 fi
21768
21769 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
21770
21771
21772
21773
21774
21775
21776
21777
21778 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
21779
21780 fi
21781
21782
21783
21784
21785
21786 GNULIB_PSELECT=1
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796 LIB_PTHREAD_SIGMASK=
21797
21798
21799
21800
21801 if test "$gl_threads_api" = posix; then
21802 if test $ac_cv_func_pthread_sigmask = yes; then
21803 :
21804 else
21805 if test -n "$LIBMULTITHREAD"; then
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
21807 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
21808 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
21809 $as_echo_n "(cached) " >&6
21810 else
21811 gl_save_LIBS="$LIBS"
21812 LIBS="$LIBS $LIBMULTITHREAD"
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21815 #include <pthread.h>
21816 #include <signal.h>
21817
21818 int
21819 main ()
21820 {
21821 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
21822 ;
21823 return 0;
21824 }
21825
21826 _ACEOF
21827 if ac_fn_c_try_link "$LINENO"; then :
21828 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
21829 else
21830 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
21831 fi
21832 rm -f core conftest.err conftest.$ac_objext \
21833 conftest$ac_exeext conftest.$ac_ext
21834 LIBS="$gl_save_LIBS"
21835
21836 fi
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
21838 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
21839 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
21840 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
21841 else
21842 HAVE_PTHREAD_SIGMASK=0
21843 fi
21844 else
21845 HAVE_PTHREAD_SIGMASK=0
21846 fi
21847 fi
21848 else
21849 if test $ac_cv_func_pthread_sigmask = yes; then
21850 REPLACE_PTHREAD_SIGMASK=1
21851 else
21852 HAVE_PTHREAD_SIGMASK=0
21853 fi
21854 fi
21855
21856
21857
21858
21859 if test $HAVE_PTHREAD_SIGMASK = 1; then
21860
21861
21862 if test -z "$LIB_PTHREAD_SIGMASK"; then
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21864 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21865 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21866 $as_echo_n "(cached) " >&6
21867 else
21868
21869 if test "$cross_compiling" = yes; then :
21870
21871 case "$host_os" in
21872 freebsd* | hpux* | solaris | solaris2.[2-9]*)
21873 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
21874 *)
21875 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
21876 esac
21877
21878 else
21879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21880 /* end confdefs.h. */
21881
21882 #include <pthread.h>
21883 #include <signal.h>
21884 #include <stddef.h>
21885 int main ()
21886 {
21887 sigset_t set;
21888 sigemptyset (&set);
21889 return pthread_sigmask (1729, &set, NULL) != 0;
21890 }
21891 _ACEOF
21892 if ac_fn_c_try_run "$LINENO"; then :
21893 gl_cv_func_pthread_sigmask_in_libc_works=no
21894 else
21895 gl_cv_func_pthread_sigmask_in_libc_works=yes
21896 fi
21897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21898 conftest.$ac_objext conftest.beam conftest.$ac_ext
21899 fi
21900
21901
21902 fi
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21904 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21905 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21906 *no)
21907 REPLACE_PTHREAD_SIGMASK=1
21908
21909 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21910
21911 ;;
21912 esac
21913 fi
21914
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21916 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21917 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21918 $as_echo_n "(cached) " >&6
21919 else
21920
21921 gl_save_LIBS="$LIBS"
21922 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
21923 if test "$cross_compiling" = yes; then :
21924 case "$host_os" in
21925 cygwin*)
21926 gl_cv_func_pthread_sigmask_return_works="guessing no";;
21927 *)
21928 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
21929 esac
21930
21931 else
21932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21933 /* end confdefs.h. */
21934
21935 #include <pthread.h>
21936 #include <signal.h>
21937 #include <stddef.h>
21938 int main ()
21939 {
21940 sigset_t set;
21941 sigemptyset (&set);
21942 if (pthread_sigmask (1729, &set, NULL) == -1)
21943 return 1;
21944 return 0;
21945 }
21946 _ACEOF
21947 if ac_fn_c_try_run "$LINENO"; then :
21948 gl_cv_func_pthread_sigmask_return_works=yes
21949 else
21950 gl_cv_func_pthread_sigmask_return_works=no
21951 fi
21952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21953 conftest.$ac_objext conftest.beam conftest.$ac_ext
21954 fi
21955
21956 LIBS="$gl_save_LIBS"
21957
21958 fi
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21960 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21961 case "$gl_cv_func_pthread_sigmask_return_works" in
21962 *no)
21963 REPLACE_PTHREAD_SIGMASK=1
21964
21965 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21966
21967 ;;
21968 esac
21969
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21971 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21972 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21973 $as_echo_n "(cached) " >&6
21974 else
21975
21976 case "$host_os" in
21977 irix*)
21978 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21979 *)
21980 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21981 esac
21982 gl_save_LIBS="$LIBS"
21983 LIBS="$LIBS $LIBMULTITHREAD"
21984 if test "$cross_compiling" = yes; then :
21985 :
21986 else
21987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988 /* end confdefs.h. */
21989
21990 #include <pthread.h>
21991 #include <signal.h>
21992 #include <stdio.h>
21993 #include <stdlib.h>
21994 #include <unistd.h>
21995 static volatile int sigint_occurred;
21996 static void
21997 sigint_handler (int sig)
21998 {
21999 sigint_occurred++;
22000 }
22001 int main ()
22002 {
22003 sigset_t set;
22004 int pid = getpid ();
22005 char command[80];
22006 signal (SIGINT, sigint_handler);
22007 sigemptyset (&set);
22008 sigaddset (&set, SIGINT);
22009 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22010 return 1;
22011 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22012 if (!(system (command) == 0))
22013 return 2;
22014 sleep (2);
22015 if (!(sigint_occurred == 0))
22016 return 3;
22017 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22018 return 4;
22019 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22020 return 5;
22021 return 0;
22022 }
22023 _ACEOF
22024 if ac_fn_c_try_run "$LINENO"; then :
22025 :
22026 else
22027 gl_cv_func_pthread_sigmask_unblock_works=no
22028 fi
22029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22030 conftest.$ac_objext conftest.beam conftest.$ac_ext
22031 fi
22032
22033 LIBS="$gl_save_LIBS"
22034
22035 fi
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22037 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22038 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22039 *no)
22040 REPLACE_PTHREAD_SIGMASK=1
22041
22042 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22043
22044 ;;
22045 esac
22046 fi
22047
22048 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22049
22050
22051
22052
22053
22054
22055
22056
22057 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22058
22059
22060 if test $HAVE_PTHREAD_SIGMASK = 1; then
22061
22062 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22063
22064 fi
22065
22066 fi
22067
22068
22069
22070
22071
22072 GNULIB_PTHREAD_SIGMASK=1
22073
22074
22075
22076
22077
22078
22079
22080
22081 if test $ac_cv_func_readlink = no; then
22082 HAVE_READLINK=0
22083 else
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22085 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22086 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22087 $as_echo_n "(cached) " >&6
22088 else
22089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22090 /* end confdefs.h. */
22091 #include <unistd.h>
22092 /* Cause compilation failure if original declaration has wrong type. */
22093 ssize_t readlink (const char *, char *, size_t);
22094 int
22095 main ()
22096 {
22097
22098 ;
22099 return 0;
22100 }
22101 _ACEOF
22102 if ac_fn_c_try_compile "$LINENO"; then :
22103 gl_cv_decl_readlink_works=yes
22104 else
22105 gl_cv_decl_readlink_works=no
22106 fi
22107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108 fi
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22110 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22112 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22113 if test "${gl_cv_func_readlink_works+set}" = set; then :
22114 $as_echo_n "(cached) " >&6
22115 else
22116 # We have readlink, so assume ln -s works.
22117 ln -s conftest.no-such conftest.link
22118 ln -s conftest.link conftest.lnk2
22119 if test "$cross_compiling" = yes; then :
22120 case "$host_os" in
22121 # Guess yes on glibc systems.
22122 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22123 # If we don't know, assume the worst.
22124 *) gl_cv_func_readlink_works="guessing no" ;;
22125 esac
22126
22127 else
22128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22129 /* end confdefs.h. */
22130 #include <unistd.h>
22131
22132 int
22133 main ()
22134 {
22135 char buf[20];
22136 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22137 ;
22138 return 0;
22139 }
22140 _ACEOF
22141 if ac_fn_c_try_run "$LINENO"; then :
22142 gl_cv_func_readlink_works=yes
22143 else
22144 gl_cv_func_readlink_works=no
22145 fi
22146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22147 conftest.$ac_objext conftest.beam conftest.$ac_ext
22148 fi
22149
22150 rm -f conftest.link conftest.lnk2
22151 fi
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22153 $as_echo "$gl_cv_func_readlink_works" >&6; }
22154 case "$gl_cv_func_readlink_works" in
22155 *yes)
22156 if test "$gl_cv_decl_readlink_works" != yes; then
22157 REPLACE_READLINK=1
22158 fi
22159 ;;
22160 *)
22161
22162 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22163
22164 REPLACE_READLINK=1
22165 ;;
22166 esac
22167 fi
22168
22169 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22170
22171
22172
22173
22174
22175
22176
22177
22178 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22179
22180
22181 :
22182
22183 fi
22184
22185
22186
22187
22188
22189 GNULIB_READLINK=1
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206 if test $gl_cv_have_include_next = yes; then
22207 gl_cv_next_signal_h='<'signal.h'>'
22208 else
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22210 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22211 if test "${gl_cv_next_signal_h+set}" = set; then :
22212 $as_echo_n "(cached) " >&6
22213 else
22214
22215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22216 /* end confdefs.h. */
22217 #include <signal.h>
22218
22219 _ACEOF
22220 case "$host_os" in
22221 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22222 *) gl_absname_cpp="$ac_cpp" ;;
22223 esac
22224
22225 case "$host_os" in
22226 mingw*)
22227 gl_dirsep_regex='[/\\]'
22228 ;;
22229 *)
22230 gl_dirsep_regex='\/'
22231 ;;
22232 esac
22233 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22234
22235 gl_header_literal_regex=`echo 'signal.h' \
22236 | sed -e "$gl_make_literal_regex_sed"`
22237 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22238 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22239 s|^/[^/]|//&|
22240 p
22241 q
22242 }'
22243 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22244 sed -n "$gl_absolute_header_sed"`'"'
22245
22246
22247 fi
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22249 $as_echo "$gl_cv_next_signal_h" >&6; }
22250 fi
22251 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22252
22253 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22254 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22255 gl_next_as_first_directive='<'signal.h'>'
22256 else
22257 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22258 gl_next_as_first_directive=$gl_cv_next_signal_h
22259 fi
22260 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22261
22262
22263
22264
22265
22266 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22267 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22268 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22269 #include <signal.h>
22270
22271 "
22272 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22273
22274 else
22275 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22276 fi
22277
22278
22279
22280
22281
22282
22283
22284 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22285 #include <signal.h>
22286
22287 "
22288 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22289
22290 else
22291 HAVE_SIGHANDLER_T=0
22292 fi
22293
22294
22295
22296
22297 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22298 /* <sys/types.h> is not needed according to POSIX, but the
22299 <sys/socket.h> in i386-unknown-freebsd4.10 and
22300 powerpc-apple-darwin5.5 required it. */
22301 #include <sys/types.h>
22302 #if HAVE_SYS_SOCKET_H
22303 # include <sys/socket.h>
22304 #elif HAVE_WS2TCPIP_H
22305 # include <ws2tcpip.h>
22306 #endif
22307
22308 "
22309 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22310
22311 else
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22313 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22314 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22316 else
22317 # Systems have either "struct sockaddr *" or
22318 # "void *" as the second argument to getpeername
22319 gl_cv_socklen_t_equiv=
22320 for arg2 in "struct sockaddr" void; do
22321 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22323 /* end confdefs.h. */
22324 #include <sys/types.h>
22325 #include <sys/socket.h>
22326
22327 int getpeername (int, $arg2 *, $t *);
22328 int
22329 main ()
22330 {
22331 $t len;
22332 getpeername (0, 0, &len);
22333 ;
22334 return 0;
22335 }
22336 _ACEOF
22337 if ac_fn_c_try_compile "$LINENO"; then :
22338 gl_cv_socklen_t_equiv="$t"
22339 fi
22340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22341 test "$gl_cv_socklen_t_equiv" != "" && break
22342 done
22343 test "$gl_cv_socklen_t_equiv" != "" && break
22344 done
22345
22346 fi
22347
22348 if test "$gl_cv_socklen_t_equiv" = ""; then
22349 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22350 fi
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22352 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22353
22354 cat >>confdefs.h <<_ACEOF
22355 #define socklen_t $gl_cv_socklen_t_equiv
22356 _ACEOF
22357
22358 fi
22359
22360
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22362 $as_echo_n "checking for ssize_t... " >&6; }
22363 if test "${gt_cv_ssize_t+set}" = set; then :
22364 $as_echo_n "(cached) " >&6
22365 else
22366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22367 /* end confdefs.h. */
22368 #include <sys/types.h>
22369 int
22370 main ()
22371 {
22372 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22373 return !x;
22374 ;
22375 return 0;
22376 }
22377 _ACEOF
22378 if ac_fn_c_try_compile "$LINENO"; then :
22379 gt_cv_ssize_t=yes
22380 else
22381 gt_cv_ssize_t=no
22382 fi
22383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 fi
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22386 $as_echo "$gt_cv_ssize_t" >&6; }
22387 if test $gt_cv_ssize_t = no; then
22388
22389 $as_echo "#define ssize_t int" >>confdefs.h
22390
22391 fi
22392
22393
22394
22395
22396
22397 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>
22398 #include <sys/stat.h>
22399 "
22400 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22401
22402 cat >>confdefs.h <<_ACEOF
22403 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22404 _ACEOF
22405
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22407 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22408 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22409 $as_echo_n "(cached) " >&6
22410 else
22411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22412 /* end confdefs.h. */
22413
22414 #include <sys/types.h>
22415 #include <sys/stat.h>
22416 #if HAVE_SYS_TIME_H
22417 # include <sys/time.h>
22418 #endif
22419 #include <time.h>
22420 struct timespec ts;
22421 struct stat st;
22422
22423 int
22424 main ()
22425 {
22426
22427 st.st_atim = ts;
22428
22429 ;
22430 return 0;
22431 }
22432 _ACEOF
22433 if ac_fn_c_try_compile "$LINENO"; then :
22434 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
22435 else
22436 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
22437 fi
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 fi
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22441 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22442 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22443
22444 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22445
22446 fi
22447 else
22448 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>
22449 #include <sys/stat.h>
22450 "
22451 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
22452
22453 cat >>confdefs.h <<_ACEOF
22454 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22455 _ACEOF
22456
22457
22458 else
22459 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22460 #include <sys/stat.h>
22461 "
22462 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
22463
22464 cat >>confdefs.h <<_ACEOF
22465 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22466 _ACEOF
22467
22468
22469 else
22470 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>
22471 #include <sys/stat.h>
22472 "
22473 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
22474
22475 cat >>confdefs.h <<_ACEOF
22476 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22477 _ACEOF
22478
22479
22480 fi
22481
22482 fi
22483
22484 fi
22485
22486 fi
22487
22488
22489
22490
22491
22492 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>
22493 #include <sys/stat.h>
22494 "
22495 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
22496
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22499 _ACEOF
22500
22501
22502 else
22503 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22504 #include <sys/stat.h>
22505 "
22506 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
22507
22508 cat >>confdefs.h <<_ACEOF
22509 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22510 _ACEOF
22511
22512
22513 else
22514 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>
22515 #include <sys/stat.h>
22516 "
22517 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
22518
22519 cat >>confdefs.h <<_ACEOF
22520 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22521 _ACEOF
22522
22523
22524 fi
22525
22526 fi
22527
22528 fi
22529
22530
22531
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22533 $as_echo_n "checking for working stdalign.h... " >&6; }
22534 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22535 $as_echo_n "(cached) " >&6
22536 else
22537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22538 /* end confdefs.h. */
22539 #include <stdalign.h>
22540 #include <stddef.h>
22541
22542 /* Test that alignof yields a result consistent with offsetof.
22543 This catches GCC bug 52023
22544 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22545 #ifdef __cplusplus
22546 template <class t> struct alignof_helper { char a; t b; };
22547 # define ao(type) offsetof (alignof_helper<type>, b)
22548 #else
22549 # define ao(type) offsetof (struct { char a; type b; }, b)
22550 #endif
22551 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22552 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22553 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22554
22555 /* Test _Alignas only on platforms where gnulib can help. */
22556 #if \
22557 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22558 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22559 int alignas (8) alignas_int = 1;
22560 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22561 #endif
22562
22563 int
22564 main ()
22565 {
22566
22567 ;
22568 return 0;
22569 }
22570 _ACEOF
22571 if ac_fn_c_try_compile "$LINENO"; then :
22572 gl_cv_header_working_stdalign_h=yes
22573 else
22574 gl_cv_header_working_stdalign_h=no
22575 fi
22576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577 fi
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22579 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22580
22581 if test $gl_cv_header_working_stdalign_h = yes; then
22582 STDALIGN_H=''
22583 else
22584 STDALIGN_H='stdalign.h'
22585 fi
22586
22587
22588 if test -n "$STDALIGN_H"; then
22589 GL_GENERATE_STDALIGN_H_TRUE=
22590 GL_GENERATE_STDALIGN_H_FALSE='#'
22591 else
22592 GL_GENERATE_STDALIGN_H_TRUE='#'
22593 GL_GENERATE_STDALIGN_H_FALSE=
22594 fi
22595
22596
22597
22598 STDARG_H=''
22599 NEXT_STDARG_H='<stdarg.h>'
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22601 $as_echo_n "checking for va_copy... " >&6; }
22602 if test "${gl_cv_func_va_copy+set}" = set; then :
22603 $as_echo_n "(cached) " >&6
22604 else
22605
22606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22607 /* end confdefs.h. */
22608 #include <stdarg.h>
22609 int
22610 main ()
22611 {
22612
22613 #ifndef va_copy
22614 void (*func) (va_list, va_list) = va_copy;
22615 #endif
22616
22617 ;
22618 return 0;
22619 }
22620 _ACEOF
22621 if ac_fn_c_try_compile "$LINENO"; then :
22622 gl_cv_func_va_copy=yes
22623 else
22624 gl_cv_func_va_copy=no
22625 fi
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22627 fi
22628
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22630 $as_echo "$gl_cv_func_va_copy" >&6; }
22631 if test $gl_cv_func_va_copy = no; then
22632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22633 /* end confdefs.h. */
22634 #if defined _AIX && !defined __GNUC__
22635 AIX vaccine
22636 #endif
22637
22638 _ACEOF
22639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22640 $EGREP "vaccine" >/dev/null 2>&1; then :
22641 gl_aixcc=yes
22642 else
22643 gl_aixcc=no
22644 fi
22645 rm -f conftest*
22646
22647 if test $gl_aixcc = yes; then
22648 STDARG_H=stdarg.h
22649
22650
22651
22652
22653
22654
22655
22656
22657 if test $gl_cv_have_include_next = yes; then
22658 gl_cv_next_stdarg_h='<'stdarg.h'>'
22659 else
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22661 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22662 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22663 $as_echo_n "(cached) " >&6
22664 else
22665
22666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22667 /* end confdefs.h. */
22668 #include <stdarg.h>
22669
22670 _ACEOF
22671 case "$host_os" in
22672 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22673 *) gl_absname_cpp="$ac_cpp" ;;
22674 esac
22675
22676 case "$host_os" in
22677 mingw*)
22678 gl_dirsep_regex='[/\\]'
22679 ;;
22680 *)
22681 gl_dirsep_regex='\/'
22682 ;;
22683 esac
22684 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22685
22686 gl_header_literal_regex=`echo 'stdarg.h' \
22687 | sed -e "$gl_make_literal_regex_sed"`
22688 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22689 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22690 s|^/[^/]|//&|
22691 p
22692 q
22693 }'
22694 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22695 sed -n "$gl_absolute_header_sed"`'"'
22696
22697
22698 fi
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22700 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22701 fi
22702 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22703
22704 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22706 gl_next_as_first_directive='<'stdarg.h'>'
22707 else
22708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22709 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22710 fi
22711 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22712
22713
22714
22715
22716 if test "$gl_cv_next_stdarg_h" = '""'; then
22717 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22718 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22719 fi
22720 else
22721
22722 saved_as_echo_n="$as_echo_n"
22723 as_echo_n=':'
22724 if test "${gl_cv_func___va_copy+set}" = set; then :
22725 $as_echo_n "(cached) " >&6
22726 else
22727
22728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729 /* end confdefs.h. */
22730 #include <stdarg.h>
22731 int
22732 main ()
22733 {
22734
22735 #ifndef __va_copy
22736 error, bail out
22737 #endif
22738
22739 ;
22740 return 0;
22741 }
22742 _ACEOF
22743 if ac_fn_c_try_compile "$LINENO"; then :
22744 gl_cv_func___va_copy=yes
22745 else
22746 gl_cv_func___va_copy=no
22747 fi
22748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22749 fi
22750
22751 as_echo_n="$saved_as_echo_n"
22752
22753 if test $gl_cv_func___va_copy = yes; then
22754
22755 $as_echo "#define va_copy __va_copy" >>confdefs.h
22756
22757 else
22758
22759
22760 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22761
22762 fi
22763 fi
22764 fi
22765
22766 if test -n "$STDARG_H"; then
22767 GL_GENERATE_STDARG_H_TRUE=
22768 GL_GENERATE_STDARG_H_FALSE='#'
22769 else
22770 GL_GENERATE_STDARG_H_TRUE='#'
22771 GL_GENERATE_STDARG_H_FALSE=
22772 fi
22773
22774
22775
22776
22777
22778
22779 # Define two additional variables used in the Makefile substitution.
22780
22781 if test "$ac_cv_header_stdbool_h" = yes; then
22782 STDBOOL_H=''
22783 else
22784 STDBOOL_H='stdbool.h'
22785 fi
22786
22787 if test -n "$STDBOOL_H"; then
22788 GL_GENERATE_STDBOOL_H_TRUE=
22789 GL_GENERATE_STDBOOL_H_FALSE='#'
22790 else
22791 GL_GENERATE_STDBOOL_H_TRUE='#'
22792 GL_GENERATE_STDBOOL_H_FALSE=
22793 fi
22794
22795
22796 if test "$ac_cv_type__Bool" = yes; then
22797 HAVE__BOOL=1
22798 else
22799 HAVE__BOOL=0
22800 fi
22801
22802
22803
22804
22805
22806 STDDEF_H=
22807 if test $gt_cv_c_wchar_t = no; then
22808 HAVE_WCHAR_T=0
22809 STDDEF_H=stddef.h
22810 fi
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22812 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22813 if test "${gl_cv_decl_null_works+set}" = set; then :
22814 $as_echo_n "(cached) " >&6
22815 else
22816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22817 /* end confdefs.h. */
22818 #include <stddef.h>
22819 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22820
22821 int
22822 main ()
22823 {
22824
22825 ;
22826 return 0;
22827 }
22828 _ACEOF
22829 if ac_fn_c_try_compile "$LINENO"; then :
22830 gl_cv_decl_null_works=yes
22831 else
22832 gl_cv_decl_null_works=no
22833 fi
22834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 fi
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22837 $as_echo "$gl_cv_decl_null_works" >&6; }
22838 if test $gl_cv_decl_null_works = no; then
22839 REPLACE_NULL=1
22840 STDDEF_H=stddef.h
22841 fi
22842
22843 if test -n "$STDDEF_H"; then
22844 GL_GENERATE_STDDEF_H_TRUE=
22845 GL_GENERATE_STDDEF_H_FALSE='#'
22846 else
22847 GL_GENERATE_STDDEF_H_TRUE='#'
22848 GL_GENERATE_STDDEF_H_FALSE=
22849 fi
22850
22851 if test -n "$STDDEF_H"; then
22852
22853
22854
22855
22856
22857
22858
22859
22860 if test $gl_cv_have_include_next = yes; then
22861 gl_cv_next_stddef_h='<'stddef.h'>'
22862 else
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22864 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22865 if test "${gl_cv_next_stddef_h+set}" = set; then :
22866 $as_echo_n "(cached) " >&6
22867 else
22868
22869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22870 /* end confdefs.h. */
22871 #include <stddef.h>
22872
22873 _ACEOF
22874 case "$host_os" in
22875 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22876 *) gl_absname_cpp="$ac_cpp" ;;
22877 esac
22878
22879 case "$host_os" in
22880 mingw*)
22881 gl_dirsep_regex='[/\\]'
22882 ;;
22883 *)
22884 gl_dirsep_regex='\/'
22885 ;;
22886 esac
22887 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22888
22889 gl_header_literal_regex=`echo 'stddef.h' \
22890 | sed -e "$gl_make_literal_regex_sed"`
22891 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22892 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22893 s|^/[^/]|//&|
22894 p
22895 q
22896 }'
22897 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22898 sed -n "$gl_absolute_header_sed"`'"'
22899
22900
22901 fi
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22903 $as_echo "$gl_cv_next_stddef_h" >&6; }
22904 fi
22905 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22906
22907 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22908 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22909 gl_next_as_first_directive='<'stddef.h'>'
22910 else
22911 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22912 gl_next_as_first_directive=$gl_cv_next_stddef_h
22913 fi
22914 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22915
22916
22917
22918
22919 fi
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933 if test $gl_cv_have_include_next = yes; then
22934 gl_cv_next_stdio_h='<'stdio.h'>'
22935 else
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22937 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22938 if test "${gl_cv_next_stdio_h+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22940 else
22941
22942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22943 /* end confdefs.h. */
22944 #include <stdio.h>
22945
22946 _ACEOF
22947 case "$host_os" in
22948 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22949 *) gl_absname_cpp="$ac_cpp" ;;
22950 esac
22951
22952 case "$host_os" in
22953 mingw*)
22954 gl_dirsep_regex='[/\\]'
22955 ;;
22956 *)
22957 gl_dirsep_regex='\/'
22958 ;;
22959 esac
22960 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22961
22962 gl_header_literal_regex=`echo 'stdio.h' \
22963 | sed -e "$gl_make_literal_regex_sed"`
22964 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22965 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22966 s|^/[^/]|//&|
22967 p
22968 q
22969 }'
22970 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22971 sed -n "$gl_absolute_header_sed"`'"'
22972
22973
22974 fi
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22976 $as_echo "$gl_cv_next_stdio_h" >&6; }
22977 fi
22978 NEXT_STDIO_H=$gl_cv_next_stdio_h
22979
22980 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22981 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22982 gl_next_as_first_directive='<'stdio.h'>'
22983 else
22984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22985 gl_next_as_first_directive=$gl_cv_next_stdio_h
22986 fi
22987 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22988
22989
22990
22991
22992
22993 GNULIB_FSCANF=1
22994
22995
22996 cat >>confdefs.h <<_ACEOF
22997 #define GNULIB_FSCANF 1
22998 _ACEOF
22999
23000
23001 GNULIB_SCANF=1
23002
23003
23004 cat >>confdefs.h <<_ACEOF
23005 #define GNULIB_SCANF 1
23006 _ACEOF
23007
23008
23009 GNULIB_FGETC=1
23010 GNULIB_GETC=1
23011 GNULIB_GETCHAR=1
23012 GNULIB_FGETS=1
23013 GNULIB_FREAD=1
23014
23015
23016 GNULIB_FPRINTF=1
23017 GNULIB_PRINTF=1
23018 GNULIB_VFPRINTF=1
23019 GNULIB_VPRINTF=1
23020 GNULIB_FPUTC=1
23021 GNULIB_PUTC=1
23022 GNULIB_PUTCHAR=1
23023 GNULIB_FPUTS=1
23024 GNULIB_PUTS=1
23025 GNULIB_FWRITE=1
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041 if test $gl_cv_have_include_next = yes; then
23042 gl_cv_next_stdlib_h='<'stdlib.h'>'
23043 else
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23045 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23046 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23047 $as_echo_n "(cached) " >&6
23048 else
23049
23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h. */
23052 #include <stdlib.h>
23053
23054 _ACEOF
23055 case "$host_os" in
23056 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23057 *) gl_absname_cpp="$ac_cpp" ;;
23058 esac
23059
23060 case "$host_os" in
23061 mingw*)
23062 gl_dirsep_regex='[/\\]'
23063 ;;
23064 *)
23065 gl_dirsep_regex='\/'
23066 ;;
23067 esac
23068 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23069
23070 gl_header_literal_regex=`echo 'stdlib.h' \
23071 | sed -e "$gl_make_literal_regex_sed"`
23072 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23073 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23074 s|^/[^/]|//&|
23075 p
23076 q
23077 }'
23078 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23079 sed -n "$gl_absolute_header_sed"`'"'
23080
23081
23082 fi
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23084 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23085 fi
23086 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23087
23088 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23090 gl_next_as_first_directive='<'stdlib.h'>'
23091 else
23092 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23093 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23094 fi
23095 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23106
23107
23108
23109
23110
23111
23112
23113 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23114
23115
23116
23117
23118
23119
23120
23121
23122 if test "$ac_cv_have_decl_strtoimax" != yes; then
23123 HAVE_DECL_STRTOIMAX=0
23124 fi
23125
23126 if test $ac_cv_func_strtoimax = yes; then
23127 HAVE_STRTOIMAX=1
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23129 $as_echo_n "checking whether strtoimax works... " >&6; }
23130 if test "${gl_cv_func_strtoimax+set}" = set; then :
23131 $as_echo_n "(cached) " >&6
23132 else
23133 if test "$cross_compiling" = yes; then :
23134 case "$host_os" in
23135 # Guess no on AIX 5.
23136 aix5*) gl_cv_func_strtoimax="guessing no" ;;
23137 # Guess yes otherwise.
23138 *) gl_cv_func_strtoimax="guessing yes" ;;
23139 esac
23140
23141 else
23142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23143 /* end confdefs.h. */
23144
23145 #include <errno.h>
23146 #include <string.h>
23147 #include <inttypes.h>
23148 int main ()
23149 {
23150 if (sizeof (intmax_t) > sizeof (int))
23151 {
23152 const char *s = "4294967295";
23153 char *p;
23154 intmax_t res;
23155 errno = 0;
23156 res = strtoimax (s, &p, 10);
23157 if (p != s + strlen (s))
23158 return 1;
23159 if (errno != 0)
23160 return 2;
23161 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23162 return 3;
23163 }
23164 else
23165 {
23166 const char *s = "2147483647";
23167 char *p;
23168 intmax_t res;
23169 errno = 0;
23170 res = strtoimax (s, &p, 10);
23171 if (p != s + strlen (s))
23172 return 1;
23173 if (errno != 0)
23174 return 2;
23175 if (res != 2147483647)
23176 return 3;
23177 }
23178 return 0;
23179 }
23180
23181 _ACEOF
23182 if ac_fn_c_try_run "$LINENO"; then :
23183 gl_cv_func_strtoimax=yes
23184 else
23185 gl_cv_func_strtoimax=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
23192 fi
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23194 $as_echo "$gl_cv_func_strtoimax" >&6; }
23195 case "$gl_cv_func_strtoimax" in
23196 *no) REPLACE_STRTOIMAX=1 ;;
23197 esac
23198 else
23199 HAVE_STRTOIMAX=0
23200 fi
23201
23202 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23203
23204
23205
23206
23207
23208
23209
23210
23211 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23212
23213
23214 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23215 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23216 ac_have_decl=1
23217 else
23218 ac_have_decl=0
23219 fi
23220
23221 cat >>confdefs.h <<_ACEOF
23222 #define HAVE_DECL_STRTOLL $ac_have_decl
23223 _ACEOF
23224
23225
23226
23227 fi
23228
23229
23230
23231
23232
23233 GNULIB_STRTOIMAX=1
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243 if test "$ac_cv_have_decl_strtoumax" != yes; then
23244 HAVE_DECL_STRTOUMAX=0
23245 fi
23246
23247 if test $ac_cv_func_strtoumax = no; then
23248
23249
23250
23251
23252
23253
23254
23255
23256 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23257
23258
23259 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23260 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23261 ac_have_decl=1
23262 else
23263 ac_have_decl=0
23264 fi
23265
23266 cat >>confdefs.h <<_ACEOF
23267 #define HAVE_DECL_STRTOULL $ac_have_decl
23268 _ACEOF
23269
23270
23271
23272 fi
23273
23274
23275
23276
23277
23278 GNULIB_STRTOUMAX=1
23279
23280
23281
23282
23283
23284
23285
23286 if test $ac_cv_func_symlink = no; then
23287 HAVE_SYMLINK=0
23288 else
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23290 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23291 if test "${gl_cv_func_symlink_works+set}" = set; then :
23292 $as_echo_n "(cached) " >&6
23293 else
23294 if test "$cross_compiling" = yes; then :
23295 case "$host_os" in
23296 # Guess yes on glibc systems.
23297 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23298 # If we don't know, assume the worst.
23299 *) gl_cv_func_symlink_works="guessing no" ;;
23300 esac
23301
23302 else
23303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23304 /* end confdefs.h. */
23305 #include <unistd.h>
23306
23307 int
23308 main ()
23309 {
23310 int result = 0;
23311 if (!symlink ("a", "conftest.link/"))
23312 result |= 1;
23313 if (symlink ("conftest.f", "conftest.lnk2"))
23314 result |= 2;
23315 else if (!symlink ("a", "conftest.lnk2/"))
23316 result |= 4;
23317 return result;
23318
23319 ;
23320 return 0;
23321 }
23322 _ACEOF
23323 if ac_fn_c_try_run "$LINENO"; then :
23324 gl_cv_func_symlink_works=yes
23325 else
23326 gl_cv_func_symlink_works=no
23327 fi
23328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23329 conftest.$ac_objext conftest.beam conftest.$ac_ext
23330 fi
23331
23332 rm -f conftest.f conftest.link conftest.lnk2
23333 fi
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23335 $as_echo "$gl_cv_func_symlink_works" >&6; }
23336 case "$gl_cv_func_symlink_works" in
23337 *yes) ;;
23338 *)
23339 REPLACE_SYMLINK=1
23340 ;;
23341 esac
23342 fi
23343
23344 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23345
23346
23347
23348
23349
23350
23351
23352
23353 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23354
23355 fi
23356
23357
23358
23359
23360
23361 GNULIB_SYMLINK=1
23362
23363
23364
23365
23366
23367
23368
23369
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23371 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23372 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23373 $as_echo_n "(cached) " >&6
23374 else
23375
23376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23377 /* end confdefs.h. */
23378 #include <sys/select.h>
23379 int
23380 main ()
23381 {
23382 struct timeval b;
23383 ;
23384 return 0;
23385 }
23386 _ACEOF
23387 if ac_fn_c_try_compile "$LINENO"; then :
23388 gl_cv_header_sys_select_h_selfcontained=yes
23389 else
23390 gl_cv_header_sys_select_h_selfcontained=no
23391 fi
23392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23395 /* end confdefs.h. */
23396 #include <sys/select.h>
23397 int
23398 main ()
23399 {
23400 int memset; int bzero;
23401 ;
23402 return 0;
23403 }
23404
23405 _ACEOF
23406 if ac_fn_c_try_compile "$LINENO"; then :
23407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23408 /* end confdefs.h. */
23409 #include <sys/select.h>
23410 int
23411 main ()
23412 {
23413
23414 #undef memset
23415 #define memset nonexistent_memset
23416 extern
23417 #ifdef __cplusplus
23418 "C"
23419 #endif
23420 void *memset (void *, int, unsigned long);
23421 #undef bzero
23422 #define bzero nonexistent_bzero
23423 extern
23424 #ifdef __cplusplus
23425 "C"
23426 #endif
23427 void bzero (void *, unsigned long);
23428 fd_set fds;
23429 FD_ZERO (&fds);
23430
23431 ;
23432 return 0;
23433 }
23434
23435 _ACEOF
23436 if ac_fn_c_try_link "$LINENO"; then :
23437
23438 else
23439 gl_cv_header_sys_select_h_selfcontained=no
23440 fi
23441 rm -f core conftest.err conftest.$ac_objext \
23442 conftest$ac_exeext conftest.$ac_ext
23443
23444 fi
23445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446 fi
23447
23448 fi
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23450 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460 if test $gl_cv_have_include_next = yes; then
23461 gl_cv_next_sys_select_h='<'sys/select.h'>'
23462 else
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23464 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23465 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23466 $as_echo_n "(cached) " >&6
23467 else
23468
23469 if test $ac_cv_header_sys_select_h = yes; then
23470
23471
23472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h. */
23474 #include <sys/select.h>
23475
23476 _ACEOF
23477 case "$host_os" in
23478 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23479 *) gl_absname_cpp="$ac_cpp" ;;
23480 esac
23481
23482 case "$host_os" in
23483 mingw*)
23484 gl_dirsep_regex='[/\\]'
23485 ;;
23486 *)
23487 gl_dirsep_regex='\/'
23488 ;;
23489 esac
23490 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23491
23492 gl_header_literal_regex=`echo 'sys/select.h' \
23493 | sed -e "$gl_make_literal_regex_sed"`
23494 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23495 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23496 s|^/[^/]|//&|
23497 p
23498 q
23499 }'
23500 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23501 sed -n "$gl_absolute_header_sed"`'"'
23502 else
23503 gl_cv_next_sys_select_h='<'sys/select.h'>'
23504 fi
23505
23506
23507 fi
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23509 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23510 fi
23511 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23512
23513 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23514 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23515 gl_next_as_first_directive='<'sys/select.h'>'
23516 else
23517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23518 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23519 fi
23520 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23521
23522
23523
23524
23525 if test $ac_cv_header_sys_select_h = yes; then
23526 HAVE_SYS_SELECT_H=1
23527 else
23528 HAVE_SYS_SELECT_H=0
23529 fi
23530
23531
23532
23533
23534
23535 if test $ac_cv_header_sys_socket_h != yes; then
23536 for ac_header in winsock2.h
23537 do :
23538 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23539 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
23540 cat >>confdefs.h <<_ACEOF
23541 #define HAVE_WINSOCK2_H 1
23542 _ACEOF
23543
23544 fi
23545
23546 done
23547
23548 fi
23549 if test "$ac_cv_header_winsock2_h" = yes; then
23550 HAVE_WINSOCK2_H=1
23551 UNISTD_H_HAVE_WINSOCK2_H=1
23552 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23553 else
23554 HAVE_WINSOCK2_H=0
23555 fi
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578 if test $gl_cv_have_include_next = yes; then
23579 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23580 else
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23582 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23583 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23584 $as_echo_n "(cached) " >&6
23585 else
23586
23587 if test $ac_cv_header_sys_stat_h = yes; then
23588
23589
23590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23591 /* end confdefs.h. */
23592 #include <sys/stat.h>
23593
23594 _ACEOF
23595 case "$host_os" in
23596 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23597 *) gl_absname_cpp="$ac_cpp" ;;
23598 esac
23599
23600 case "$host_os" in
23601 mingw*)
23602 gl_dirsep_regex='[/\\]'
23603 ;;
23604 *)
23605 gl_dirsep_regex='\/'
23606 ;;
23607 esac
23608 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23609
23610 gl_header_literal_regex=`echo 'sys/stat.h' \
23611 | sed -e "$gl_make_literal_regex_sed"`
23612 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23613 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23614 s|^/[^/]|//&|
23615 p
23616 q
23617 }'
23618 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23619 sed -n "$gl_absolute_header_sed"`'"'
23620 else
23621 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23622 fi
23623
23624
23625 fi
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23627 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23628 fi
23629 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_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='<'sys/stat.h'>'
23634 else
23635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23636 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23637 fi
23638 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23651
23652 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23653
23654 fi
23655
23656 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23657 #include <sys/stat.h>
23658 "
23659 if test "x$ac_cv_type_nlink_t" = x""yes; then :
23660
23661 else
23662
23663 $as_echo "#define nlink_t int" >>confdefs.h
23664
23665 fi
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23685 "
23686 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
23687 ac_have_decl=1
23688 else
23689 ac_have_decl=0
23690 fi
23691
23692 cat >>confdefs.h <<_ACEOF
23693 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23694 _ACEOF
23695
23696 if test $ac_cv_have_decl_localtime_r = no; then
23697 HAVE_DECL_LOCALTIME_R=0
23698 fi
23699
23700
23701 if test $ac_cv_func_localtime_r = yes; then
23702 HAVE_LOCALTIME_R=1
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23704 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23705 if test "${gl_cv_time_r_posix+set}" = set; then :
23706 $as_echo_n "(cached) " >&6
23707 else
23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709 /* end confdefs.h. */
23710 #include <time.h>
23711 int
23712 main ()
23713 {
23714 /* We don't need to append 'restrict's to the argument types,
23715 even though the POSIX signature has the 'restrict's,
23716 since C99 says they can't affect type compatibility. */
23717 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23718 if (ptr) return 0;
23719 /* Check the return type is a pointer.
23720 On HP-UX 10 it is 'int'. */
23721 *localtime_r (0, 0);
23722 ;
23723 return 0;
23724 }
23725
23726 _ACEOF
23727 if ac_fn_c_try_compile "$LINENO"; then :
23728 gl_cv_time_r_posix=yes
23729 else
23730 gl_cv_time_r_posix=no
23731 fi
23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733
23734 fi
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23736 $as_echo "$gl_cv_time_r_posix" >&6; }
23737 if test $gl_cv_time_r_posix = yes; then
23738 REPLACE_LOCALTIME_R=0
23739 else
23740 REPLACE_LOCALTIME_R=1
23741 fi
23742 else
23743 HAVE_LOCALTIME_R=0
23744 fi
23745
23746 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
23747
23748
23749
23750
23751
23752
23753
23754
23755 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
23756
23757
23758 :
23759
23760 fi
23761
23762
23763
23764
23765
23766 GNULIB_TIME_R=1
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777 LIB_TIMER_TIME=
23778
23779 gl_saved_libs=$LIBS
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
23781 $as_echo_n "checking for library containing timer_settime... " >&6; }
23782 if test "${ac_cv_search_timer_settime+set}" = set; then :
23783 $as_echo_n "(cached) " >&6
23784 else
23785 ac_func_search_save_LIBS=$LIBS
23786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23787 /* end confdefs.h. */
23788
23789 /* Override any GCC internal prototype to avoid an error.
23790 Use char because int might match the return type of a GCC
23791 builtin and then its argument prototype would still apply. */
23792 #ifdef __cplusplus
23793 extern "C"
23794 #endif
23795 char timer_settime ();
23796 int
23797 main ()
23798 {
23799 return timer_settime ();
23800 ;
23801 return 0;
23802 }
23803 _ACEOF
23804 for ac_lib in '' rt posix4; do
23805 if test -z "$ac_lib"; then
23806 ac_res="none required"
23807 else
23808 ac_res=-l$ac_lib
23809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23810 fi
23811 if ac_fn_c_try_link "$LINENO"; then :
23812 ac_cv_search_timer_settime=$ac_res
23813 fi
23814 rm -f core conftest.err conftest.$ac_objext \
23815 conftest$ac_exeext
23816 if test "${ac_cv_search_timer_settime+set}" = set; then :
23817 break
23818 fi
23819 done
23820 if test "${ac_cv_search_timer_settime+set}" = set; then :
23821
23822 else
23823 ac_cv_search_timer_settime=no
23824 fi
23825 rm conftest.$ac_ext
23826 LIBS=$ac_func_search_save_LIBS
23827 fi
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
23829 $as_echo "$ac_cv_search_timer_settime" >&6; }
23830 ac_res=$ac_cv_search_timer_settime
23831 if test "$ac_res" != no; then :
23832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23833 test "$ac_cv_search_timer_settime" = "none required" ||
23834 LIB_TIMER_TIME=$ac_cv_search_timer_settime
23835 fi
23836
23837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23838 /* end confdefs.h. */
23839
23840 #include <features.h>
23841 #ifdef __GNU_LIBRARY__
23842 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
23843 && !defined __UCLIBC__
23844 Thread emulation available
23845 #endif
23846 #endif
23847
23848 _ACEOF
23849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23850 $EGREP "Thread" >/dev/null 2>&1; then :
23851 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
23852 fi
23853 rm -f conftest*
23854
23855 for ac_func in timer_settime
23856 do :
23857 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
23858 if test "x$ac_cv_func_timer_settime" = x""yes; then :
23859 cat >>confdefs.h <<_ACEOF
23860 #define HAVE_TIMER_SETTIME 1
23861 _ACEOF
23862
23863 fi
23864 done
23865
23866 LIBS=$gl_saved_libs
23867
23868 :
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882 if test $gl_cv_have_include_next = yes; then
23883 gl_cv_next_unistd_h='<'unistd.h'>'
23884 else
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23886 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23887 if test "${gl_cv_next_unistd_h+set}" = set; then :
23888 $as_echo_n "(cached) " >&6
23889 else
23890
23891 if test $ac_cv_header_unistd_h = yes; then
23892
23893
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23896 #include <unistd.h>
23897
23898 _ACEOF
23899 case "$host_os" in
23900 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23901 *) gl_absname_cpp="$ac_cpp" ;;
23902 esac
23903
23904 case "$host_os" in
23905 mingw*)
23906 gl_dirsep_regex='[/\\]'
23907 ;;
23908 *)
23909 gl_dirsep_regex='\/'
23910 ;;
23911 esac
23912 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23913
23914 gl_header_literal_regex=`echo 'unistd.h' \
23915 | sed -e "$gl_make_literal_regex_sed"`
23916 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23917 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23918 s|^/[^/]|//&|
23919 p
23920 q
23921 }'
23922 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23923 sed -n "$gl_absolute_header_sed"`'"'
23924 else
23925 gl_cv_next_unistd_h='<'unistd.h'>'
23926 fi
23927
23928
23929 fi
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23931 $as_echo "$gl_cv_next_unistd_h" >&6; }
23932 fi
23933 NEXT_UNISTD_H=$gl_cv_next_unistd_h
23934
23935 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23937 gl_next_as_first_directive='<'unistd.h'>'
23938 else
23939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23940 gl_next_as_first_directive=$gl_cv_next_unistd_h
23941 fi
23942 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23943
23944
23945
23946
23947 if test $ac_cv_header_unistd_h = yes; then
23948 HAVE_UNISTD_H=1
23949 else
23950 HAVE_UNISTD_H=0
23951 fi
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23968 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23969 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23970 $as_echo_n "(cached) " >&6
23971 else
23972 touch conftest.file
23973 if test "$cross_compiling" = yes; then :
23974 case "$host_os" in
23975 # Guess yes on glibc systems.
23976 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
23977 # If we don't know, assume the worst.
23978 *) gl_cv_func_futimesat_works="guessing no" ;;
23979 esac
23980
23981 else
23982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23983 /* end confdefs.h. */
23984
23985 #include <stddef.h>
23986 #include <sys/times.h>
23987 #include <fcntl.h>
23988
23989 int
23990 main ()
23991 {
23992 int fd = open ("conftest.file", O_RDWR);
23993 if (fd < 0) return 1;
23994 if (futimesat (fd, NULL, NULL)) return 2;
23995
23996 ;
23997 return 0;
23998 }
23999 _ACEOF
24000 if ac_fn_c_try_run "$LINENO"; then :
24001 gl_cv_func_futimesat_works=yes
24002 else
24003 gl_cv_func_futimesat_works=no
24004 fi
24005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24006 conftest.$ac_objext conftest.beam conftest.$ac_ext
24007 fi
24008
24009 rm -f conftest.file
24010 fi
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24012 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24013 case "$gl_cv_func_futimesat_works" in
24014 *yes) ;;
24015 *)
24016
24017 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24018
24019 ;;
24020 esac
24021 fi
24022
24023 gl_gnulib_enabled_dosname=false
24024 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
24025 gl_gnulib_enabled_pathmax=false
24026 gl_gnulib_enabled_stat=false
24027 gl_gnulib_enabled_strtoll=false
24028 gl_gnulib_enabled_strtoull=false
24029 gl_gnulib_enabled_verify=false
24030 func_gl_gnulib_m4code_dosname ()
24031 {
24032 if ! $gl_gnulib_enabled_dosname; then
24033 gl_gnulib_enabled_dosname=true
24034 fi
24035 }
24036 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
24037 {
24038 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24039
24040
24041 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
24042 fi
24043 }
24044 func_gl_gnulib_m4code_pathmax ()
24045 {
24046 if ! $gl_gnulib_enabled_pathmax; then
24047
24048
24049
24050 gl_gnulib_enabled_pathmax=true
24051 fi
24052 }
24053 func_gl_gnulib_m4code_stat ()
24054 {
24055 if ! $gl_gnulib_enabled_stat; then
24056
24057
24058
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24060 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24061 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24062 $as_echo_n "(cached) " >&6
24063 else
24064 if test "$cross_compiling" = yes; then :
24065 case $host_os in
24066 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
24067 *) gl_cv_func_stat_dir_slash="guessing yes";;
24068 esac
24069 else
24070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24071 /* end confdefs.h. */
24072 #include <sys/stat.h>
24073
24074 int
24075 main ()
24076 {
24077 struct stat st; return stat (".", &st) != stat ("./", &st);
24078 ;
24079 return 0;
24080 }
24081 _ACEOF
24082 if ac_fn_c_try_run "$LINENO"; then :
24083 gl_cv_func_stat_dir_slash=yes
24084 else
24085 gl_cv_func_stat_dir_slash=no
24086 fi
24087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24088 conftest.$ac_objext conftest.beam conftest.$ac_ext
24089 fi
24090
24091 fi
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24093 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24095 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24096 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24097 $as_echo_n "(cached) " >&6
24098 else
24099 touch conftest.tmp
24100 # Assume that if we have lstat, we can also check symlinks.
24101 if test $ac_cv_func_lstat = yes; then
24102 ln -s conftest.tmp conftest.lnk
24103 fi
24104 if test "$cross_compiling" = yes; then :
24105 case "$host_os" in
24106 # Guess yes on glibc systems.
24107 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
24108 # If we don't know, assume the worst.
24109 *) gl_cv_func_stat_file_slash="guessing no" ;;
24110 esac
24111
24112 else
24113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24114 /* end confdefs.h. */
24115 #include <sys/stat.h>
24116
24117 int
24118 main ()
24119 {
24120 int result = 0;
24121 struct stat st;
24122 if (!stat ("conftest.tmp/", &st))
24123 result |= 1;
24124 #if HAVE_LSTAT
24125 if (!stat ("conftest.lnk/", &st))
24126 result |= 2;
24127 #endif
24128 return result;
24129
24130 ;
24131 return 0;
24132 }
24133 _ACEOF
24134 if ac_fn_c_try_run "$LINENO"; then :
24135 gl_cv_func_stat_file_slash=yes
24136 else
24137 gl_cv_func_stat_file_slash=no
24138 fi
24139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24140 conftest.$ac_objext conftest.beam conftest.$ac_ext
24141 fi
24142
24143 rm -f conftest.tmp conftest.lnk
24144 fi
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
24146 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
24147 case $gl_cv_func_stat_dir_slash in
24148 *no) REPLACE_STAT=1
24149
24150 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
24151 ;;
24152 esac
24153 case $gl_cv_func_stat_file_slash in
24154 *no) REPLACE_STAT=1
24155
24156 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
24157 ;;
24158 esac
24159
24160 if test $REPLACE_STAT = 1; then
24161
24162
24163
24164
24165
24166
24167
24168
24169 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
24170
24171
24172
24173 :
24174
24175 fi
24176
24177
24178
24179
24180
24181 GNULIB_STAT=1
24182
24183
24184
24185
24186
24187 gl_gnulib_enabled_stat=true
24188 if test $REPLACE_STAT = 1; then
24189 func_gl_gnulib_m4code_dosname
24190 fi
24191 if test $REPLACE_STAT = 1; then
24192 func_gl_gnulib_m4code_pathmax
24193 fi
24194 if test $REPLACE_STAT = 1; then
24195 func_gl_gnulib_m4code_verify
24196 fi
24197 fi
24198 }
24199 func_gl_gnulib_m4code_strtoll ()
24200 {
24201 if ! $gl_gnulib_enabled_strtoll; then
24202
24203
24204
24205 if test "$ac_cv_type_long_long_int" = yes; then
24206 for ac_func in strtoll
24207 do :
24208 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
24209 if test "x$ac_cv_func_strtoll" = x""yes; then :
24210 cat >>confdefs.h <<_ACEOF
24211 #define HAVE_STRTOLL 1
24212 _ACEOF
24213
24214 fi
24215 done
24216
24217 if test $ac_cv_func_strtoll = no; then
24218 HAVE_STRTOLL=0
24219 fi
24220 fi
24221
24222 if test $HAVE_STRTOLL = 0; then
24223
24224
24225
24226
24227
24228
24229
24230
24231 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
24232
24233
24234 :
24235
24236 fi
24237
24238
24239
24240
24241
24242 GNULIB_STRTOLL=1
24243
24244
24245
24246
24247
24248 gl_gnulib_enabled_strtoll=true
24249 fi
24250 }
24251 func_gl_gnulib_m4code_strtoull ()
24252 {
24253 if ! $gl_gnulib_enabled_strtoull; then
24254
24255
24256
24257 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
24258 for ac_func in strtoull
24259 do :
24260 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
24261 if test "x$ac_cv_func_strtoull" = x""yes; then :
24262 cat >>confdefs.h <<_ACEOF
24263 #define HAVE_STRTOULL 1
24264 _ACEOF
24265
24266 fi
24267 done
24268
24269 if test $ac_cv_func_strtoull = no; then
24270 HAVE_STRTOULL=0
24271 fi
24272 fi
24273
24274 if test $HAVE_STRTOULL = 0; then
24275
24276
24277
24278
24279
24280
24281
24282
24283 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
24284
24285
24286 :
24287
24288 fi
24289
24290
24291
24292
24293
24294 GNULIB_STRTOULL=1
24295
24296
24297
24298
24299
24300 gl_gnulib_enabled_strtoull=true
24301 fi
24302 }
24303 func_gl_gnulib_m4code_verify ()
24304 {
24305 if ! $gl_gnulib_enabled_verify; then
24306 gl_gnulib_enabled_verify=true
24307 fi
24308 }
24309 if test $REPLACE_GETOPT = 1; then
24310 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24311 fi
24312 if test $REPLACE_LSTAT = 1; then
24313 func_gl_gnulib_m4code_dosname
24314 fi
24315 if test $REPLACE_LSTAT = 1; then
24316 func_gl_gnulib_m4code_stat
24317 fi
24318 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
24319 func_gl_gnulib_m4code_stat
24320 fi
24321 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24322 func_gl_gnulib_m4code_strtoll
24323 fi
24324 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24325 func_gl_gnulib_m4code_verify
24326 fi
24327 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
24328 func_gl_gnulib_m4code_strtoull
24329 fi
24330 if test $ac_cv_func_strtoumax = no; then
24331 func_gl_gnulib_m4code_verify
24332 fi
24333
24334 if $gl_gnulib_enabled_dosname; then
24335 gl_GNULIB_ENABLED_dosname_TRUE=
24336 gl_GNULIB_ENABLED_dosname_FALSE='#'
24337 else
24338 gl_GNULIB_ENABLED_dosname_TRUE='#'
24339 gl_GNULIB_ENABLED_dosname_FALSE=
24340 fi
24341
24342 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24343 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
24344 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
24345 else
24346 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
24347 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
24348 fi
24349
24350 if $gl_gnulib_enabled_pathmax; then
24351 gl_GNULIB_ENABLED_pathmax_TRUE=
24352 gl_GNULIB_ENABLED_pathmax_FALSE='#'
24353 else
24354 gl_GNULIB_ENABLED_pathmax_TRUE='#'
24355 gl_GNULIB_ENABLED_pathmax_FALSE=
24356 fi
24357
24358 if $gl_gnulib_enabled_stat; then
24359 gl_GNULIB_ENABLED_stat_TRUE=
24360 gl_GNULIB_ENABLED_stat_FALSE='#'
24361 else
24362 gl_GNULIB_ENABLED_stat_TRUE='#'
24363 gl_GNULIB_ENABLED_stat_FALSE=
24364 fi
24365
24366 if $gl_gnulib_enabled_strtoll; then
24367 gl_GNULIB_ENABLED_strtoll_TRUE=
24368 gl_GNULIB_ENABLED_strtoll_FALSE='#'
24369 else
24370 gl_GNULIB_ENABLED_strtoll_TRUE='#'
24371 gl_GNULIB_ENABLED_strtoll_FALSE=
24372 fi
24373
24374 if $gl_gnulib_enabled_strtoull; then
24375 gl_GNULIB_ENABLED_strtoull_TRUE=
24376 gl_GNULIB_ENABLED_strtoull_FALSE='#'
24377 else
24378 gl_GNULIB_ENABLED_strtoull_TRUE='#'
24379 gl_GNULIB_ENABLED_strtoull_FALSE=
24380 fi
24381
24382 if $gl_gnulib_enabled_verify; then
24383 gl_GNULIB_ENABLED_verify_TRUE=
24384 gl_GNULIB_ENABLED_verify_FALSE='#'
24385 else
24386 gl_GNULIB_ENABLED_verify_TRUE='#'
24387 gl_GNULIB_ENABLED_verify_FALSE=
24388 fi
24389
24390 # End of code from modules
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400 gltests_libdeps=
24401 gltests_ltlibdeps=
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411 gl_source_base='tests'
24412 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
24413
24414 gl_module_indicator_condition=$gltests_WITNESS
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425 LIBGNU_LIBDEPS="$gl_libdeps"
24426
24427 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
24428
24429
24430 CFLAGS=$SAVE_CFLAGS
24431 LIBS=$SAVE_LIBS
24432
24433 case "$opsys" in
24434 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
24435
24436 darwin)
24437 ## The -headerpad option tells ld (see man page) to leave room at the
24438 ## end of the header for adding load commands. Needed for dumping.
24439 ## 0x690 is the total size of 30 segment load commands (at 56
24440 ## each); under Cocoa 31 commands are required.
24441 if test "$HAVE_NS" = "yes"; then
24442 libs_nsgui="-framework AppKit"
24443 headerpad_extra=6C8
24444 else
24445 libs_nsgui=
24446 headerpad_extra=690
24447 fi
24448 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24449
24450 ## This is here because src/Makefile.in did some extra fiddling around
24451 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24452 ## #ifndef LD_SWITCH_SYSTEM
24453 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24454 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24455 ## not using gcc, darwin.
24456 ## Because this was done in src/Makefile.in, the resulting part of
24457 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24458 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24459 ## rather than LD_SWITCH_SYSTEM.
24460 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24461 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
24462 ;;
24463
24464 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24465 ## find X at run-time.
24466 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24467 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24468 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24469 ## had different values in configure (in ac_link) and src/Makefile.in.
24470 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24471 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24472
24473 *) LD_SWITCH_SYSTEM_TEMACS= ;;
24474 esac
24475
24476 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24477 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24478 fi
24479
24480
24481
24482
24483 LD_FIRSTFLAG=
24484 ORDINARY_LINK=
24485 case "$opsys" in
24486 ## gnu: GNU needs its own crt0.
24487 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
24488
24489 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24490 ## library search parth, i.e. it won't search /usr/lib for libc and
24491 ## friends. Using -nostartfiles instead avoids this problem, and
24492 ## will also work on earlier NetBSD releases.
24493 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
24494
24495 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24496 ## MkLinux/LinuxPPC needs this.
24497 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24498 gnu-*)
24499 case "$canonical" in
24500 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
24501 esac
24502 ;;
24503 esac
24504
24505
24506 if test "x$ORDINARY_LINK" = "xyes"; then
24507
24508 LD_FIRSTFLAG=""
24509
24510 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24511
24512
24513 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24514 ## freebsd, gnu-* not on powerpc*|s390x*.
24515 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24516
24517 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24518 ## places that are difficult to figure out at make time. Fortunately,
24519 ## these same versions allow you to pass arbitrary flags on to the
24520 ## linker, so there is no reason not to use it as a linker.
24521 ##
24522 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24523 ## searching for libraries in its internal directories, so we have to
24524 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24525 LD_FIRSTFLAG="-nostdlib"
24526 fi
24527
24528 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24529 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24530
24531
24532
24533
24534 ## FIXME? The logic here is not precisely the same as that above.
24535 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24536 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24537 LIB_GCC=
24538 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24539
24540 case "$opsys" in
24541 freebsd|netbsd|openbsd) LIB_GCC= ;;
24542
24543 gnu-*)
24544 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24545 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24546 case $host_cpu in
24547 arm*)
24548 LIB_GCC="-lgcc_s"
24549 ;;
24550 *)
24551 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24552 ## immediately undefine it again and redefine it to empty.
24553 ## Was the C_SWITCH_X_SITE part really necessary?
24554 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24555 LIB_GCC=
24556 ;;
24557 esac
24558 ;;
24559
24560 ## Ask GCC where to find libgcc.a.
24561 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24562 esac
24563 fi
24564
24565 ## Common for all window systems
24566 if test "$window_system" != "none"; then
24567
24568 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24569
24570
24571 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24572
24573 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
24574 fi
24575
24576
24577
24578
24579
24580 #### Report on what we decided to do.
24581 #### Report GTK as a toolkit, even if it doesn't use Xt.
24582 #### It makes printing result more understandable as using GTK sets
24583 #### toolkit_scroll_bars to yes by default.
24584 if test "${HAVE_GTK}" = "yes"; then
24585 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
24586 fi
24587
24588 echo "
24589 Configured for \`${canonical}'.
24590
24591 Where should the build process find the source code? ${srcdir}
24592 What compiler should emacs be built with? ${CC} ${CFLAGS}
24593 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24594 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24595 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24596 What window system should Emacs use? ${window_system}
24597 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24598
24599 if test -n "${x_includes}"; then
24600 echo " Where do we find X Windows header files? ${x_includes}"
24601 else
24602 echo " Where do we find X Windows header files? Standard dirs"
24603 fi
24604 if test -n "${x_libraries}"; then
24605 echo " Where do we find X Windows libraries? ${x_libraries}"
24606 else
24607 echo " Where do we find X Windows libraries? Standard dirs"
24608 fi
24609
24610 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24611 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24612 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24613 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24614 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24615 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24616 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24617 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24618
24619 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24620 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24621 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24622 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24623 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24624 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24625 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24626
24627 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24628 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24629 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24630 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24631
24632 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24633 echo
24634
24635 if test -n "${EMACSDATA}"; then
24636 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24637 fi
24638 if test -n "${EMACSDOC}"; then
24639 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24640 fi
24641
24642 echo
24643
24644 if test "$HAVE_NS" = "yes"; then
24645 echo
24646 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24647 The installed application will go to nextstep/Emacs.app and can be
24648 run or moved from there."
24649 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24650 echo "The application will be fully self-contained."
24651 else
24652 echo "The lisp resources for the application will be installed under ${prefix}.
24653 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24654 to run if these resources are not installed."
24655 fi
24656 echo
24657 fi
24658
24659 if test "${opsys}" = "cygwin"; then
24660 case `uname -r` in
24661 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24662 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24663 echo
24664 ;;
24665 esac
24666 fi
24667
24668 # Remove any trailing slashes in these variables.
24669 test "${prefix}" != NONE &&
24670 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24671 test "${exec_prefix}" != NONE &&
24672 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24673
24674 if test "$HAVE_NS" = "yes"; then
24675 if test "$NS_IMPL_GNUSTEP" = yes; then
24676 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"
24677
24678 else
24679 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"
24680
24681 fi
24682 fi
24683
24684 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"
24685
24686 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"
24687
24688
24689 opt_makefile=test/automated/Makefile
24690
24691 if test -f $srcdir/${opt_makefile}.in; then
24692 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24693 ac_config_files="$ac_config_files test/automated/Makefile"
24694
24695 fi
24696
24697
24698 opt_makefile=admin/unidata/Makefile
24699
24700 if test -f $srcdir/${opt_makefile}.in; then
24701 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24702 ac_config_files="$ac_config_files admin/unidata/Makefile"
24703
24704 fi
24705
24706
24707 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24708
24709
24710
24711 ac_config_commands="$ac_config_commands mkdirs"
24712
24713
24714 ac_config_commands="$ac_config_commands epaths"
24715
24716
24717 ac_config_commands="$ac_config_commands gdbinit"
24718
24719
24720 cat >confcache <<\_ACEOF
24721 # This file is a shell script that caches the results of configure
24722 # tests run on this system so they can be shared between configure
24723 # scripts and configure runs, see configure's option --config-cache.
24724 # It is not useful on other systems. If it contains results you don't
24725 # want to keep, you may remove or edit it.
24726 #
24727 # config.status only pays attention to the cache file if you give it
24728 # the --recheck option to rerun configure.
24729 #
24730 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24731 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24732 # following values.
24733
24734 _ACEOF
24735
24736 # The following way of writing the cache mishandles newlines in values,
24737 # but we know of no workaround that is simple, portable, and efficient.
24738 # So, we kill variables containing newlines.
24739 # Ultrix sh set writes to stderr and can't be redirected directly,
24740 # and sets the high bit in the cache file unless we assign to the vars.
24741 (
24742 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24743 eval ac_val=\$$ac_var
24744 case $ac_val in #(
24745 *${as_nl}*)
24746 case $ac_var in #(
24747 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24749 esac
24750 case $ac_var in #(
24751 _ | IFS | as_nl) ;; #(
24752 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24753 *) { eval $ac_var=; unset $ac_var;} ;;
24754 esac ;;
24755 esac
24756 done
24757
24758 (set) 2>&1 |
24759 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24760 *${as_nl}ac_space=\ *)
24761 # `set' does not quote correctly, so add quotes: double-quote
24762 # substitution turns \\\\ into \\, and sed turns \\ into \.
24763 sed -n \
24764 "s/'/'\\\\''/g;
24765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24766 ;; #(
24767 *)
24768 # `set' quotes correctly as required by POSIX, so do not add quotes.
24769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24770 ;;
24771 esac |
24772 sort
24773 ) |
24774 sed '
24775 /^ac_cv_env_/b end
24776 t clear
24777 :clear
24778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24779 t end
24780 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24781 :end' >>confcache
24782 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24783 if test -w "$cache_file"; then
24784 test "x$cache_file" != "x/dev/null" &&
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24786 $as_echo "$as_me: updating cache $cache_file" >&6;}
24787 cat confcache >$cache_file
24788 else
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24790 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24791 fi
24792 fi
24793 rm -f confcache
24794
24795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24796 # Let make expand exec_prefix.
24797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24798
24799 DEFS=-DHAVE_CONFIG_H
24800
24801 ac_libobjs=
24802 ac_ltlibobjs=
24803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24804 # 1. Remove the extension, and $U if already installed.
24805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24806 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24808 # will be set to the directory where LIBOBJS objects are built.
24809 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24810 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24811 done
24812 LIBOBJS=$ac_libobjs
24813
24814 LTLIBOBJS=$ac_ltlibobjs
24815
24816
24817 if test -n "$EXEEXT"; then
24818 am__EXEEXT_TRUE=
24819 am__EXEEXT_FALSE='#'
24820 else
24821 am__EXEEXT_TRUE='#'
24822 am__EXEEXT_FALSE=
24823 fi
24824
24825 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24826 as_fn_error "conditional \"AMDEP\" was never defined.
24827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24828 fi
24829 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24830 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24832 fi
24833 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24834 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24836 fi
24837 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24838 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24840 fi
24841
24842 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24843 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24845 fi
24846 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24847 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24849 fi
24850 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24851 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24853 fi
24854 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24855 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24857 fi
24858 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24859 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24861 fi
24862 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24863 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24865 fi
24866 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24867 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24869 fi
24870 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24871 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24873 fi
24874 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24875 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24877 fi
24878 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24879 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24881 fi
24882 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24883 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24885 fi
24886 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24887 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24889 fi
24890 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24891 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24893 fi
24894
24895 gl_libobjs=
24896 gl_ltlibobjs=
24897 if test -n "$gl_LIBOBJS"; then
24898 # Remove the extension.
24899 sed_drop_objext='s/\.o$//;s/\.obj$//'
24900 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24901 gl_libobjs="$gl_libobjs $i.$ac_objext"
24902 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24903 done
24904 fi
24905 gl_LIBOBJS=$gl_libobjs
24906
24907 gl_LTLIBOBJS=$gl_ltlibobjs
24908
24909
24910
24911 gltests_libobjs=
24912 gltests_ltlibobjs=
24913 if test -n "$gltests_LIBOBJS"; then
24914 # Remove the extension.
24915 sed_drop_objext='s/\.o$//;s/\.obj$//'
24916 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24917 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24918 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24919 done
24920 fi
24921 gltests_LIBOBJS=$gltests_libobjs
24922
24923 gltests_LTLIBOBJS=$gltests_ltlibobjs
24924
24925
24926
24927 : ${CONFIG_STATUS=./config.status}
24928 ac_write_fail=0
24929 ac_clean_files_save=$ac_clean_files
24930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24932 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24933 as_write_fail=0
24934 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24935 #! $SHELL
24936 # Generated by $as_me.
24937 # Run this file to recreate the current configuration.
24938 # Compiler output produced by configure, useful for debugging
24939 # configure, is in config.log if it exists.
24940
24941 debug=false
24942 ac_cs_recheck=false
24943 ac_cs_silent=false
24944
24945 SHELL=\${CONFIG_SHELL-$SHELL}
24946 export SHELL
24947 _ASEOF
24948 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24949 ## -------------------- ##
24950 ## M4sh Initialization. ##
24951 ## -------------------- ##
24952
24953 # Be more Bourne compatible
24954 DUALCASE=1; export DUALCASE # for MKS sh
24955 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24956 emulate sh
24957 NULLCMD=:
24958 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24959 # is contrary to our usage. Disable this feature.
24960 alias -g '${1+"$@"}'='"$@"'
24961 setopt NO_GLOB_SUBST
24962 else
24963 case `(set -o) 2>/dev/null` in #(
24964 *posix*) :
24965 set -o posix ;; #(
24966 *) :
24967 ;;
24968 esac
24969 fi
24970
24971
24972 as_nl='
24973 '
24974 export as_nl
24975 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24976 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24977 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24978 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24979 # Prefer a ksh shell builtin over an external printf program on Solaris,
24980 # but without wasting forks for bash or zsh.
24981 if test -z "$BASH_VERSION$ZSH_VERSION" \
24982 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24983 as_echo='print -r --'
24984 as_echo_n='print -rn --'
24985 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24986 as_echo='printf %s\n'
24987 as_echo_n='printf %s'
24988 else
24989 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24990 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24991 as_echo_n='/usr/ucb/echo -n'
24992 else
24993 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24994 as_echo_n_body='eval
24995 arg=$1;
24996 case $arg in #(
24997 *"$as_nl"*)
24998 expr "X$arg" : "X\\(.*\\)$as_nl";
24999 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25000 esac;
25001 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25002 '
25003 export as_echo_n_body
25004 as_echo_n='sh -c $as_echo_n_body as_echo'
25005 fi
25006 export as_echo_body
25007 as_echo='sh -c $as_echo_body as_echo'
25008 fi
25009
25010 # The user is always right.
25011 if test "${PATH_SEPARATOR+set}" != set; then
25012 PATH_SEPARATOR=:
25013 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25014 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25015 PATH_SEPARATOR=';'
25016 }
25017 fi
25018
25019
25020 # IFS
25021 # We need space, tab and new line, in precisely that order. Quoting is
25022 # there to prevent editors from complaining about space-tab.
25023 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25024 # splitting by setting IFS to empty value.)
25025 IFS=" "" $as_nl"
25026
25027 # Find who we are. Look in the path if we contain no directory separator.
25028 case $0 in #((
25029 *[\\/]* ) as_myself=$0 ;;
25030 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25031 for as_dir in $PATH
25032 do
25033 IFS=$as_save_IFS
25034 test -z "$as_dir" && as_dir=.
25035 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25036 done
25037 IFS=$as_save_IFS
25038
25039 ;;
25040 esac
25041 # We did not find ourselves, most probably we were run as `sh COMMAND'
25042 # in which case we are not to be found in the path.
25043 if test "x$as_myself" = x; then
25044 as_myself=$0
25045 fi
25046 if test ! -f "$as_myself"; then
25047 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25048 exit 1
25049 fi
25050
25051 # Unset variables that we do not need and which cause bugs (e.g. in
25052 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25053 # suppresses any "Segmentation fault" message there. '((' could
25054 # trigger a bug in pdksh 5.2.14.
25055 for as_var in BASH_ENV ENV MAIL MAILPATH
25056 do eval test x\${$as_var+set} = xset \
25057 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25058 done
25059 PS1='$ '
25060 PS2='> '
25061 PS4='+ '
25062
25063 # NLS nuisances.
25064 LC_ALL=C
25065 export LC_ALL
25066 LANGUAGE=C
25067 export LANGUAGE
25068
25069 # CDPATH.
25070 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25071
25072
25073 # as_fn_error ERROR [LINENO LOG_FD]
25074 # ---------------------------------
25075 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25076 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25077 # script with status $?, using 1 if that was 0.
25078 as_fn_error ()
25079 {
25080 as_status=$?; test $as_status -eq 0 && as_status=1
25081 if test "$3"; then
25082 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25083 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25084 fi
25085 $as_echo "$as_me: error: $1" >&2
25086 as_fn_exit $as_status
25087 } # as_fn_error
25088
25089
25090 # as_fn_set_status STATUS
25091 # -----------------------
25092 # Set $? to STATUS, without forking.
25093 as_fn_set_status ()
25094 {
25095 return $1
25096 } # as_fn_set_status
25097
25098 # as_fn_exit STATUS
25099 # -----------------
25100 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25101 as_fn_exit ()
25102 {
25103 set +e
25104 as_fn_set_status $1
25105 exit $1
25106 } # as_fn_exit
25107
25108 # as_fn_unset VAR
25109 # ---------------
25110 # Portably unset VAR.
25111 as_fn_unset ()
25112 {
25113 { eval $1=; unset $1;}
25114 }
25115 as_unset=as_fn_unset
25116 # as_fn_append VAR VALUE
25117 # ----------------------
25118 # Append the text in VALUE to the end of the definition contained in VAR. Take
25119 # advantage of any shell optimizations that allow amortized linear growth over
25120 # repeated appends, instead of the typical quadratic growth present in naive
25121 # implementations.
25122 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25123 eval 'as_fn_append ()
25124 {
25125 eval $1+=\$2
25126 }'
25127 else
25128 as_fn_append ()
25129 {
25130 eval $1=\$$1\$2
25131 }
25132 fi # as_fn_append
25133
25134 # as_fn_arith ARG...
25135 # ------------------
25136 # Perform arithmetic evaluation on the ARGs, and store the result in the
25137 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25138 # must be portable across $(()) and expr.
25139 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25140 eval 'as_fn_arith ()
25141 {
25142 as_val=$(( $* ))
25143 }'
25144 else
25145 as_fn_arith ()
25146 {
25147 as_val=`expr "$@" || test $? -eq 1`
25148 }
25149 fi # as_fn_arith
25150
25151
25152 if expr a : '\(a\)' >/dev/null 2>&1 &&
25153 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25154 as_expr=expr
25155 else
25156 as_expr=false
25157 fi
25158
25159 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25160 as_basename=basename
25161 else
25162 as_basename=false
25163 fi
25164
25165 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25166 as_dirname=dirname
25167 else
25168 as_dirname=false
25169 fi
25170
25171 as_me=`$as_basename -- "$0" ||
25172 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25173 X"$0" : 'X\(//\)$' \| \
25174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25175 $as_echo X/"$0" |
25176 sed '/^.*\/\([^/][^/]*\)\/*$/{
25177 s//\1/
25178 q
25179 }
25180 /^X\/\(\/\/\)$/{
25181 s//\1/
25182 q
25183 }
25184 /^X\/\(\/\).*/{
25185 s//\1/
25186 q
25187 }
25188 s/.*/./; q'`
25189
25190 # Avoid depending upon Character Ranges.
25191 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25192 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25193 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25194 as_cr_digits='0123456789'
25195 as_cr_alnum=$as_cr_Letters$as_cr_digits
25196
25197 ECHO_C= ECHO_N= ECHO_T=
25198 case `echo -n x` in #(((((
25199 -n*)
25200 case `echo 'xy\c'` in
25201 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25202 xy) ECHO_C='\c';;
25203 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25204 ECHO_T=' ';;
25205 esac;;
25206 *)
25207 ECHO_N='-n';;
25208 esac
25209
25210 rm -f conf$$ conf$$.exe conf$$.file
25211 if test -d conf$$.dir; then
25212 rm -f conf$$.dir/conf$$.file
25213 else
25214 rm -f conf$$.dir
25215 mkdir conf$$.dir 2>/dev/null
25216 fi
25217 if (echo >conf$$.file) 2>/dev/null; then
25218 if ln -s conf$$.file conf$$ 2>/dev/null; then
25219 as_ln_s='ln -s'
25220 # ... but there are two gotchas:
25221 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25222 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25223 # In both cases, we have to default to `cp -p'.
25224 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25225 as_ln_s='cp -p'
25226 elif ln conf$$.file conf$$ 2>/dev/null; then
25227 as_ln_s=ln
25228 else
25229 as_ln_s='cp -p'
25230 fi
25231 else
25232 as_ln_s='cp -p'
25233 fi
25234 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25235 rmdir conf$$.dir 2>/dev/null
25236
25237
25238 # as_fn_mkdir_p
25239 # -------------
25240 # Create "$as_dir" as a directory, including parents if necessary.
25241 as_fn_mkdir_p ()
25242 {
25243
25244 case $as_dir in #(
25245 -*) as_dir=./$as_dir;;
25246 esac
25247 test -d "$as_dir" || eval $as_mkdir_p || {
25248 as_dirs=
25249 while :; do
25250 case $as_dir in #(
25251 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25252 *) as_qdir=$as_dir;;
25253 esac
25254 as_dirs="'$as_qdir' $as_dirs"
25255 as_dir=`$as_dirname -- "$as_dir" ||
25256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25257 X"$as_dir" : 'X\(//\)[^/]' \| \
25258 X"$as_dir" : 'X\(//\)$' \| \
25259 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25260 $as_echo X"$as_dir" |
25261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25262 s//\1/
25263 q
25264 }
25265 /^X\(\/\/\)[^/].*/{
25266 s//\1/
25267 q
25268 }
25269 /^X\(\/\/\)$/{
25270 s//\1/
25271 q
25272 }
25273 /^X\(\/\).*/{
25274 s//\1/
25275 q
25276 }
25277 s/.*/./; q'`
25278 test -d "$as_dir" && break
25279 done
25280 test -z "$as_dirs" || eval "mkdir $as_dirs"
25281 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25282
25283
25284 } # as_fn_mkdir_p
25285 if mkdir -p . 2>/dev/null; then
25286 as_mkdir_p='mkdir -p "$as_dir"'
25287 else
25288 test -d ./-p && rmdir ./-p
25289 as_mkdir_p=false
25290 fi
25291
25292 if test -x / >/dev/null 2>&1; then
25293 as_test_x='test -x'
25294 else
25295 if ls -dL / >/dev/null 2>&1; then
25296 as_ls_L_option=L
25297 else
25298 as_ls_L_option=
25299 fi
25300 as_test_x='
25301 eval sh -c '\''
25302 if test -d "$1"; then
25303 test -d "$1/.";
25304 else
25305 case $1 in #(
25306 -*)set "./$1";;
25307 esac;
25308 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25309 ???[sx]*):;;*)false;;esac;fi
25310 '\'' sh
25311 '
25312 fi
25313 as_executable_p=$as_test_x
25314
25315 # Sed expression to map a string onto a valid CPP name.
25316 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25317
25318 # Sed expression to map a string onto a valid variable name.
25319 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25320
25321
25322 exec 6>&1
25323 ## ----------------------------------- ##
25324 ## Main body of $CONFIG_STATUS script. ##
25325 ## ----------------------------------- ##
25326 _ASEOF
25327 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25328
25329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25330 # Save the log message, to keep $0 and so on meaningful, and to
25331 # report actual input values of CONFIG_FILES etc. instead of their
25332 # values after options handling.
25333 ac_log="
25334 This file was extended by emacs $as_me 24.2.50, which was
25335 generated by GNU Autoconf 2.65. Invocation command line was
25336
25337 CONFIG_FILES = $CONFIG_FILES
25338 CONFIG_HEADERS = $CONFIG_HEADERS
25339 CONFIG_LINKS = $CONFIG_LINKS
25340 CONFIG_COMMANDS = $CONFIG_COMMANDS
25341 $ $0 $@
25342
25343 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25344 "
25345
25346 _ACEOF
25347
25348 case $ac_config_files in *"
25349 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25350 esac
25351
25352 case $ac_config_headers in *"
25353 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25354 esac
25355
25356
25357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25358 # Files that config.status was made for.
25359 config_files="$ac_config_files"
25360 config_headers="$ac_config_headers"
25361 config_commands="$ac_config_commands"
25362
25363 _ACEOF
25364
25365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25366 ac_cs_usage="\
25367 \`$as_me' instantiates files and other configuration actions
25368 from templates according to the current configuration. Unless the files
25369 and actions are specified as TAGs, all are instantiated by default.
25370
25371 Usage: $0 [OPTION]... [TAG]...
25372
25373 -h, --help print this help, then exit
25374 -V, --version print version number and configuration settings, then exit
25375 --config print configuration, then exit
25376 -q, --quiet, --silent
25377 do not print progress messages
25378 -d, --debug don't remove temporary files
25379 --recheck update $as_me by reconfiguring in the same conditions
25380 --file=FILE[:TEMPLATE]
25381 instantiate the configuration file FILE
25382 --header=FILE[:TEMPLATE]
25383 instantiate the configuration header FILE
25384
25385 Configuration files:
25386 $config_files
25387
25388 Configuration headers:
25389 $config_headers
25390
25391 Configuration commands:
25392 $config_commands
25393
25394 Report bugs to the package provider."
25395
25396 _ACEOF
25397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25398 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25399 ac_cs_version="\\
25400 emacs config.status 24.2.50
25401 configured by $0, generated by GNU Autoconf 2.65,
25402 with options \\"\$ac_cs_config\\"
25403
25404 Copyright (C) 2009 Free Software Foundation, Inc.
25405 This config.status script is free software; the Free Software Foundation
25406 gives unlimited permission to copy, distribute and modify it."
25407
25408 ac_pwd='$ac_pwd'
25409 srcdir='$srcdir'
25410 INSTALL='$INSTALL'
25411 MKDIR_P='$MKDIR_P'
25412 AWK='$AWK'
25413 test -n "\$AWK" || AWK=awk
25414 _ACEOF
25415
25416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25417 # The default lists apply if the user does not specify any file.
25418 ac_need_defaults=:
25419 while test $# != 0
25420 do
25421 case $1 in
25422 --*=*)
25423 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25424 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25425 ac_shift=:
25426 ;;
25427 *)
25428 ac_option=$1
25429 ac_optarg=$2
25430 ac_shift=shift
25431 ;;
25432 esac
25433
25434 case $ac_option in
25435 # Handling of the options.
25436 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25437 ac_cs_recheck=: ;;
25438 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25439 $as_echo "$ac_cs_version"; exit ;;
25440 --config | --confi | --conf | --con | --co | --c )
25441 $as_echo "$ac_cs_config"; exit ;;
25442 --debug | --debu | --deb | --de | --d | -d )
25443 debug=: ;;
25444 --file | --fil | --fi | --f )
25445 $ac_shift
25446 case $ac_optarg in
25447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25448 esac
25449 as_fn_append CONFIG_FILES " '$ac_optarg'"
25450 ac_need_defaults=false;;
25451 --header | --heade | --head | --hea )
25452 $ac_shift
25453 case $ac_optarg in
25454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25455 esac
25456 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25457 ac_need_defaults=false;;
25458 --he | --h)
25459 # Conflict between --help and --header
25460 as_fn_error "ambiguous option: \`$1'
25461 Try \`$0 --help' for more information.";;
25462 --help | --hel | -h )
25463 $as_echo "$ac_cs_usage"; exit ;;
25464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25466 ac_cs_silent=: ;;
25467
25468 # This is an error.
25469 -*) as_fn_error "unrecognized option: \`$1'
25470 Try \`$0 --help' for more information." ;;
25471
25472 *) as_fn_append ac_config_targets " $1"
25473 ac_need_defaults=false ;;
25474
25475 esac
25476 shift
25477 done
25478
25479 ac_configure_extra_args=
25480
25481 if $ac_cs_silent; then
25482 exec 6>/dev/null
25483 ac_configure_extra_args="$ac_configure_extra_args --silent"
25484 fi
25485
25486 _ACEOF
25487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25488 if \$ac_cs_recheck; then
25489 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25490 shift
25491 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25492 CONFIG_SHELL='$SHELL'
25493 export CONFIG_SHELL
25494 exec "\$@"
25495 fi
25496
25497 _ACEOF
25498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25499 exec 5>>config.log
25500 {
25501 echo
25502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25503 ## Running $as_me. ##
25504 _ASBOX
25505 $as_echo "$ac_log"
25506 } >&5
25507
25508 _ACEOF
25509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25510 #
25511 # INIT-COMMANDS
25512 #
25513 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25514 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25515
25516 _ACEOF
25517
25518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25519
25520 # Handling of arguments.
25521 for ac_config_target in $ac_config_targets
25522 do
25523 case $ac_config_target in
25524 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25525 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25526 "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" ;;
25527 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
25528 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
25529 "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" ;;
25530 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25531 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25532 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25533 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25534 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25535 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25536 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25537 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25538 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25539 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25540 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25541 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25542 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
25543 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25544 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
25545 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25546 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25547 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25548
25549 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25550 esac
25551 done
25552
25553
25554 # If the user did not use the arguments to specify the items to instantiate,
25555 # then the envvar interface is used. Set only those that are not.
25556 # We use the long form for the default assignment because of an extremely
25557 # bizarre bug on SunOS 4.1.3.
25558 if $ac_need_defaults; then
25559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25560 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25562 fi
25563
25564 # Have a temporary directory for convenience. Make it in the build tree
25565 # simply because there is no reason against having it here, and in addition,
25566 # creating and moving files from /tmp can sometimes cause problems.
25567 # Hook for its removal unless debugging.
25568 # Note that there is a small window in which the directory will not be cleaned:
25569 # after its creation but before its name has been assigned to `$tmp'.
25570 $debug ||
25571 {
25572 tmp=
25573 trap 'exit_status=$?
25574 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25575 ' 0
25576 trap 'as_fn_exit 1' 1 2 13 15
25577 }
25578 # Create a (secure) tmp directory for tmp files.
25579
25580 {
25581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25582 test -n "$tmp" && test -d "$tmp"
25583 } ||
25584 {
25585 tmp=./conf$$-$RANDOM
25586 (umask 077 && mkdir "$tmp")
25587 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25588
25589 # Set up the scripts for CONFIG_FILES section.
25590 # No need to generate them if there are no CONFIG_FILES.
25591 # This happens for instance with `./config.status config.h'.
25592 if test -n "$CONFIG_FILES"; then
25593
25594 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25595 ac_cs_awk_getline=:
25596 ac_cs_awk_pipe_init=
25597 ac_cs_awk_read_file='
25598 while ((getline aline < (F[key])) > 0)
25599 print(aline)
25600 close(F[key])'
25601 ac_cs_awk_pipe_fini=
25602 else
25603 ac_cs_awk_getline=false
25604 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25605 ac_cs_awk_read_file='
25606 print "|#_!!_#|"
25607 print "cat " F[key] " &&"
25608 '$ac_cs_awk_pipe_init
25609 # The final `:' finishes the AND list.
25610 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25611 fi
25612 ac_cr=`echo X | tr X '\015'`
25613 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25614 # But we know of no other shell where ac_cr would be empty at this
25615 # point, so we can use a bashism as a fallback.
25616 if test "x$ac_cr" = x; then
25617 eval ac_cr=\$\'\\r\'
25618 fi
25619 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25620 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25621 ac_cs_awk_cr='\r'
25622 else
25623 ac_cs_awk_cr=$ac_cr
25624 fi
25625
25626 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25627 _ACEOF
25628
25629 # Create commands to substitute file output variables.
25630 {
25631 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25632 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25633 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25634 echo "_ACAWK" &&
25635 echo "_ACEOF"
25636 } >conf$$files.sh &&
25637 . ./conf$$files.sh ||
25638 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25639 rm -f conf$$files.sh
25640
25641 {
25642 echo "cat >conf$$subs.awk <<_ACEOF" &&
25643 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25644 echo "_ACEOF"
25645 } >conf$$subs.sh ||
25646 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25647 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25648 ac_delim='%!_!# '
25649 for ac_last_try in false false false false false :; do
25650 . ./conf$$subs.sh ||
25651 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25652
25653 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25654 if test $ac_delim_n = $ac_delim_num; then
25655 break
25656 elif $ac_last_try; then
25657 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25658 else
25659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25660 fi
25661 done
25662 rm -f conf$$subs.sh
25663
25664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25665 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25666 _ACEOF
25667 sed -n '
25668 h
25669 s/^/S["/; s/!.*/"]=/
25670 p
25671 g
25672 s/^[^!]*!//
25673 :repl
25674 t repl
25675 s/'"$ac_delim"'$//
25676 t delim
25677 :nl
25678 h
25679 s/\(.\{148\}\)..*/\1/
25680 t more1
25681 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25682 p
25683 n
25684 b repl
25685 :more1
25686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25687 p
25688 g
25689 s/.\{148\}//
25690 t nl
25691 :delim
25692 h
25693 s/\(.\{148\}\)..*/\1/
25694 t more2
25695 s/["\\]/\\&/g; s/^/"/; s/$/"/
25696 p
25697 b
25698 :more2
25699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25700 p
25701 g
25702 s/.\{148\}//
25703 t delim
25704 ' <conf$$subs.awk | sed '
25705 /^[^""]/{
25706 N
25707 s/\n//
25708 }
25709 ' >>$CONFIG_STATUS || ac_write_fail=1
25710 rm -f conf$$subs.awk
25711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25712 _ACAWK
25713 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25714 for (key in S) S_is_set[key] = 1
25715 FS = "\a"
25716 \$ac_cs_awk_pipe_init
25717 }
25718 {
25719 line = $ 0
25720 nfields = split(line, field, "@")
25721 substed = 0
25722 len = length(field[1])
25723 for (i = 2; i < nfields; i++) {
25724 key = field[i]
25725 keylen = length(key)
25726 if (S_is_set[key]) {
25727 value = S[key]
25728 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25729 len += length(value) + length(field[++i])
25730 substed = 1
25731 } else
25732 len += 1 + keylen
25733 }
25734 if (nfields == 3 && !substed) {
25735 key = field[2]
25736 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25737 \$ac_cs_awk_read_file
25738 next
25739 }
25740 }
25741 print line
25742 }
25743 \$ac_cs_awk_pipe_fini
25744 _ACAWK
25745 _ACEOF
25746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25747 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25748 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25749 else
25750 cat
25751 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25752 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25753 _ACEOF
25754
25755 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25756 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25757 # trailing colons and then remove the whole line if VPATH becomes empty
25758 # (actually we leave an empty line to preserve line numbers).
25759 if test "x$srcdir" = x.; then
25760 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25761 s/:*\$(srcdir):*/:/
25762 s/:*\${srcdir}:*/:/
25763 s/:*@srcdir@:*/:/
25764 s/^\([^=]*=[ ]*\):*/\1/
25765 s/:*$//
25766 s/^[^=]*=[ ]*$//
25767 }'
25768 fi
25769
25770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25771 fi # test -n "$CONFIG_FILES"
25772
25773 # Set up the scripts for CONFIG_HEADERS section.
25774 # No need to generate them if there are no CONFIG_HEADERS.
25775 # This happens for instance with `./config.status Makefile'.
25776 if test -n "$CONFIG_HEADERS"; then
25777 cat >"$tmp/defines.awk" <<\_ACAWK ||
25778 BEGIN {
25779 _ACEOF
25780
25781 # Transform confdefs.h into an awk script `defines.awk', embedded as
25782 # here-document in config.status, that substitutes the proper values into
25783 # config.h.in to produce config.h.
25784
25785 # Create a delimiter string that does not exist in confdefs.h, to ease
25786 # handling of long lines.
25787 ac_delim='%!_!# '
25788 for ac_last_try in false false :; do
25789 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25790 if test -z "$ac_t"; then
25791 break
25792 elif $ac_last_try; then
25793 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25794 else
25795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25796 fi
25797 done
25798
25799 # For the awk script, D is an array of macro values keyed by name,
25800 # likewise P contains macro parameters if any. Preserve backslash
25801 # newline sequences.
25802
25803 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25804 sed -n '
25805 s/.\{148\}/&'"$ac_delim"'/g
25806 t rset
25807 :rset
25808 s/^[ ]*#[ ]*define[ ][ ]*/ /
25809 t def
25810 d
25811 :def
25812 s/\\$//
25813 t bsnl
25814 s/["\\]/\\&/g
25815 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25816 D["\1"]=" \3"/p
25817 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25818 d
25819 :bsnl
25820 s/["\\]/\\&/g
25821 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25822 D["\1"]=" \3\\\\\\n"\\/p
25823 t cont
25824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25825 t cont
25826 d
25827 :cont
25828 n
25829 s/.\{148\}/&'"$ac_delim"'/g
25830 t clear
25831 :clear
25832 s/\\$//
25833 t bsnlc
25834 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25835 d
25836 :bsnlc
25837 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25838 b cont
25839 ' <confdefs.h | sed '
25840 s/'"$ac_delim"'/"\\\
25841 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25842
25843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25844 for (key in D) D_is_set[key] = 1
25845 FS = "\a"
25846 }
25847 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25848 line = \$ 0
25849 split(line, arg, " ")
25850 if (arg[1] == "#") {
25851 defundef = arg[2]
25852 mac1 = arg[3]
25853 } else {
25854 defundef = substr(arg[1], 2)
25855 mac1 = arg[2]
25856 }
25857 split(mac1, mac2, "(") #)
25858 macro = mac2[1]
25859 prefix = substr(line, 1, index(line, defundef) - 1)
25860 if (D_is_set[macro]) {
25861 # Preserve the white space surrounding the "#".
25862 print prefix "define", macro P[macro] D[macro]
25863 next
25864 } else {
25865 # Replace #undef with comments. This is necessary, for example,
25866 # in the case of _POSIX_SOURCE, which is predefined and required
25867 # on some systems where configure will not decide to define it.
25868 if (defundef == "undef") {
25869 print "/*", prefix defundef, macro, "*/"
25870 next
25871 }
25872 }
25873 }
25874 { print }
25875 _ACAWK
25876 _ACEOF
25877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25878 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25879 fi # test -n "$CONFIG_HEADERS"
25880
25881
25882 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25883 shift
25884 for ac_tag
25885 do
25886 case $ac_tag in
25887 :[FHLC]) ac_mode=$ac_tag; continue;;
25888 esac
25889 case $ac_mode$ac_tag in
25890 :[FHL]*:*);;
25891 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25892 :[FH]-) ac_tag=-:-;;
25893 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25894 esac
25895 ac_save_IFS=$IFS
25896 IFS=:
25897 set x $ac_tag
25898 IFS=$ac_save_IFS
25899 shift
25900 ac_file=$1
25901 shift
25902
25903 case $ac_mode in
25904 :L) ac_source=$1;;
25905 :[FH])
25906 ac_file_inputs=
25907 for ac_f
25908 do
25909 case $ac_f in
25910 -) ac_f="$tmp/stdin";;
25911 *) # Look for the file first in the build tree, then in the source tree
25912 # (if the path is not absolute). The absolute path cannot be DOS-style,
25913 # because $ac_f cannot contain `:'.
25914 test -f "$ac_f" ||
25915 case $ac_f in
25916 [\\/$]*) false;;
25917 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25918 esac ||
25919 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25920 esac
25921 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25922 as_fn_append ac_file_inputs " '$ac_f'"
25923 done
25924
25925 # Let's still pretend it is `configure' which instantiates (i.e., don't
25926 # use $as_me), people would be surprised to read:
25927 # /* config.h. Generated by config.status. */
25928 configure_input='Generated from '`
25929 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25930 `' by configure.'
25931 if test x"$ac_file" != x-; then
25932 configure_input="$ac_file. $configure_input"
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25934 $as_echo "$as_me: creating $ac_file" >&6;}
25935 fi
25936 # Neutralize special characters interpreted by sed in replacement strings.
25937 case $configure_input in #(
25938 *\&* | *\|* | *\\* )
25939 ac_sed_conf_input=`$as_echo "$configure_input" |
25940 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25941 *) ac_sed_conf_input=$configure_input;;
25942 esac
25943
25944 case $ac_tag in
25945 *:-:* | *:-) cat >"$tmp/stdin" \
25946 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25947 esac
25948 ;;
25949 esac
25950
25951 ac_dir=`$as_dirname -- "$ac_file" ||
25952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25953 X"$ac_file" : 'X\(//\)[^/]' \| \
25954 X"$ac_file" : 'X\(//\)$' \| \
25955 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25956 $as_echo X"$ac_file" |
25957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25958 s//\1/
25959 q
25960 }
25961 /^X\(\/\/\)[^/].*/{
25962 s//\1/
25963 q
25964 }
25965 /^X\(\/\/\)$/{
25966 s//\1/
25967 q
25968 }
25969 /^X\(\/\).*/{
25970 s//\1/
25971 q
25972 }
25973 s/.*/./; q'`
25974 as_dir="$ac_dir"; as_fn_mkdir_p
25975 ac_builddir=.
25976
25977 case "$ac_dir" in
25978 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25979 *)
25980 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25981 # A ".." for each directory in $ac_dir_suffix.
25982 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25983 case $ac_top_builddir_sub in
25984 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25985 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25986 esac ;;
25987 esac
25988 ac_abs_top_builddir=$ac_pwd
25989 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25990 # for backward compatibility:
25991 ac_top_builddir=$ac_top_build_prefix
25992
25993 case $srcdir in
25994 .) # We are building in place.
25995 ac_srcdir=.
25996 ac_top_srcdir=$ac_top_builddir_sub
25997 ac_abs_top_srcdir=$ac_pwd ;;
25998 [\\/]* | ?:[\\/]* ) # Absolute name.
25999 ac_srcdir=$srcdir$ac_dir_suffix;
26000 ac_top_srcdir=$srcdir
26001 ac_abs_top_srcdir=$srcdir ;;
26002 *) # Relative name.
26003 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26004 ac_top_srcdir=$ac_top_build_prefix$srcdir
26005 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26006 esac
26007 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26008
26009
26010 case $ac_mode in
26011 :F)
26012 #
26013 # CONFIG_FILE
26014 #
26015
26016 case $INSTALL in
26017 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26018 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26019 esac
26020 ac_MKDIR_P=$MKDIR_P
26021 case $MKDIR_P in
26022 [\\/$]* | ?:[\\/]* ) ;;
26023 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26024 esac
26025 _ACEOF
26026
26027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26028 # If the template does not know about datarootdir, expand it.
26029 # FIXME: This hack should be removed a few years after 2.60.
26030 ac_datarootdir_hack=; ac_datarootdir_seen=
26031 ac_sed_dataroot='
26032 /datarootdir/ {
26033 p
26034 q
26035 }
26036 /@datadir@/p
26037 /@docdir@/p
26038 /@infodir@/p
26039 /@localedir@/p
26040 /@mandir@/p'
26041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26042 *datarootdir*) ac_datarootdir_seen=yes;;
26043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26045 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26046 _ACEOF
26047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26048 ac_datarootdir_hack='
26049 s&@datadir@&$datadir&g
26050 s&@docdir@&$docdir&g
26051 s&@infodir@&$infodir&g
26052 s&@localedir@&$localedir&g
26053 s&@mandir@&$mandir&g
26054 s&\\\${datarootdir}&$datarootdir&g' ;;
26055 esac
26056 _ACEOF
26057
26058 # Neutralize VPATH when `$srcdir' = `.'.
26059 # Shell code in configure.ac might set extrasub.
26060 # FIXME: do we really want to maintain this feature?
26061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26062 ac_sed_extra="$ac_vpsub
26063 $extrasub
26064 _ACEOF
26065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26066 :t
26067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26068 s|@configure_input@|$ac_sed_conf_input|;t t
26069 s&@top_builddir@&$ac_top_builddir_sub&;t t
26070 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26071 s&@srcdir@&$ac_srcdir&;t t
26072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26073 s&@top_srcdir@&$ac_top_srcdir&;t t
26074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26075 s&@builddir@&$ac_builddir&;t t
26076 s&@abs_builddir@&$ac_abs_builddir&;t t
26077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26078 s&@INSTALL@&$ac_INSTALL&;t t
26079 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26080 $ac_datarootdir_hack
26081 "
26082 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26083 if $ac_cs_awk_getline; then
26084 $AWK -f "$tmp/subs.awk"
26085 else
26086 $AWK -f "$tmp/subs.awk" | $SHELL
26087 fi >$tmp/out \
26088 || as_fn_error "could not create $ac_file" "$LINENO" 5
26089
26090 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26091 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26092 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26094 which seems to be undefined. Please make sure it is defined." >&5
26095 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26096 which seems to be undefined. Please make sure it is defined." >&2;}
26097
26098 rm -f "$tmp/stdin"
26099 case $ac_file in
26100 -) cat "$tmp/out" && rm -f "$tmp/out";;
26101 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26102 esac \
26103 || as_fn_error "could not create $ac_file" "$LINENO" 5
26104 ;;
26105 :H)
26106 #
26107 # CONFIG_HEADER
26108 #
26109 if test x"$ac_file" != x-; then
26110 {
26111 $as_echo "/* $configure_input */" \
26112 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26113 } >"$tmp/config.h" \
26114 || as_fn_error "could not create $ac_file" "$LINENO" 5
26115 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26117 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26118 else
26119 rm -f "$ac_file"
26120 mv "$tmp/config.h" "$ac_file" \
26121 || as_fn_error "could not create $ac_file" "$LINENO" 5
26122 fi
26123 else
26124 $as_echo "/* $configure_input */" \
26125 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26126 || as_fn_error "could not create -" "$LINENO" 5
26127 fi
26128 # Compute "$ac_file"'s index in $config_headers.
26129 _am_arg="$ac_file"
26130 _am_stamp_count=1
26131 for _am_header in $config_headers :; do
26132 case $_am_header in
26133 $_am_arg | $_am_arg:* )
26134 break ;;
26135 * )
26136 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26137 esac
26138 done
26139 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26140 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26141 X"$_am_arg" : 'X\(//\)[^/]' \| \
26142 X"$_am_arg" : 'X\(//\)$' \| \
26143 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26144 $as_echo X"$_am_arg" |
26145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26146 s//\1/
26147 q
26148 }
26149 /^X\(\/\/\)[^/].*/{
26150 s//\1/
26151 q
26152 }
26153 /^X\(\/\/\)$/{
26154 s//\1/
26155 q
26156 }
26157 /^X\(\/\).*/{
26158 s//\1/
26159 q
26160 }
26161 s/.*/./; q'`/stamp-h$_am_stamp_count
26162 ;;
26163
26164 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26165 $as_echo "$as_me: executing $ac_file commands" >&6;}
26166 ;;
26167 esac
26168
26169
26170 case $ac_file$ac_mode in
26171 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26172 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26173 # are listed without --file. Let's play safe and only enable the eval
26174 # if we detect the quoting.
26175 case $CONFIG_FILES in
26176 *\'*) eval set x "$CONFIG_FILES" ;;
26177 *) set x $CONFIG_FILES ;;
26178 esac
26179 shift
26180 for mf
26181 do
26182 # Strip MF so we end up with the name of the file.
26183 mf=`echo "$mf" | sed -e 's/:.*$//'`
26184 # Check whether this is an Automake generated Makefile or not.
26185 # We used to match only the files named `Makefile.in', but
26186 # some people rename them; so instead we look at the file content.
26187 # Grep'ing the first line is not enough: some people post-process
26188 # each Makefile.in and add a new line on top of each file to say so.
26189 # Grep'ing the whole file is not good either: AIX grep has a line
26190 # limit of 2048, but all sed's we know have understand at least 4000.
26191 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26192 dirpart=`$as_dirname -- "$mf" ||
26193 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26194 X"$mf" : 'X\(//\)[^/]' \| \
26195 X"$mf" : 'X\(//\)$' \| \
26196 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26197 $as_echo X"$mf" |
26198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26199 s//\1/
26200 q
26201 }
26202 /^X\(\/\/\)[^/].*/{
26203 s//\1/
26204 q
26205 }
26206 /^X\(\/\/\)$/{
26207 s//\1/
26208 q
26209 }
26210 /^X\(\/\).*/{
26211 s//\1/
26212 q
26213 }
26214 s/.*/./; q'`
26215 else
26216 continue
26217 fi
26218 # Extract the definition of DEPDIR, am__include, and am__quote
26219 # from the Makefile without running `make'.
26220 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26221 test -z "$DEPDIR" && continue
26222 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26223 test -z "am__include" && continue
26224 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26225 # When using ansi2knr, U may be empty or an underscore; expand it
26226 U=`sed -n 's/^U = //p' < "$mf"`
26227 # Find all dependency output files, they are included files with
26228 # $(DEPDIR) in their names. We invoke sed twice because it is the
26229 # simplest approach to changing $(DEPDIR) to its actual value in the
26230 # expansion.
26231 for file in `sed -n "
26232 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26233 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26234 # Make sure the directory exists.
26235 test -f "$dirpart/$file" && continue
26236 fdir=`$as_dirname -- "$file" ||
26237 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26238 X"$file" : 'X\(//\)[^/]' \| \
26239 X"$file" : 'X\(//\)$' \| \
26240 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26241 $as_echo X"$file" |
26242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26243 s//\1/
26244 q
26245 }
26246 /^X\(\/\/\)[^/].*/{
26247 s//\1/
26248 q
26249 }
26250 /^X\(\/\/\)$/{
26251 s//\1/
26252 q
26253 }
26254 /^X\(\/\).*/{
26255 s//\1/
26256 q
26257 }
26258 s/.*/./; q'`
26259 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26260 # echo "creating $dirpart/$file"
26261 echo '# dummy' > "$dirpart/$file"
26262 done
26263 done
26264 }
26265 ;;
26266 "mkdirs":C)
26267 for dir in etc lisp ; do
26268 test -d ${dir} || mkdir ${dir}
26269 done
26270 ;;
26271 "epaths":C)
26272 echo creating src/epaths.h
26273 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
26274 ;;
26275 "gdbinit":C)
26276 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26277 echo creating src/.gdbinit
26278 echo source $srcdir/src/.gdbinit > src/.gdbinit
26279 fi
26280 ;;
26281
26282 esac
26283 done # for ac_tag
26284
26285
26286 as_fn_exit 0
26287 _ACEOF
26288 ac_clean_files=$ac_clean_files_save
26289
26290 test $ac_write_fail = 0 ||
26291 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26292
26293
26294 # configure is writing to config.log, and then calls config.status.
26295 # config.status does its own redirection, appending to config.log.
26296 # Unfortunately, on DOS this fails, as config.log is still kept open
26297 # by configure, so config.status won't be able to write to it; its
26298 # output is simply discarded. So we exec the FD to /dev/null,
26299 # effectively closing config.log, so it can be properly (re)opened and
26300 # appended to by config.status. When coming back to configure, we
26301 # need to make the FD available again.
26302 if test "$no_create" != yes; then
26303 ac_cs_success=:
26304 ac_config_status_args=
26305 test "$silent" = yes &&
26306 ac_config_status_args="$ac_config_status_args --quiet"
26307 exec 5>/dev/null
26308 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26309 exec 5>>config.log
26310 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26311 # would make configure fail if this is the last instruction.
26312 $ac_cs_success || as_fn_exit $?
26313 fi
26314 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26316 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26317 fi
26318