merge trunk
[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 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_pathmax_FALSE
622 gl_GNULIB_ENABLED_pathmax_TRUE
623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
627 LTLIBINTL
628 LIBINTL
629 WINDOWS_64_BIT_OFF_T
630 HAVE_UNISTD_H
631 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
632 NEXT_UNISTD_H
633 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
634 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
635 TIME_H_DEFINES_STRUCT_TIMESPEC
636 NEXT_AS_FIRST_DIRECTIVE_TIME_H
637 NEXT_TIME_H
638 WINDOWS_64_BIT_ST_SIZE
639 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
640 NEXT_SYS_STAT_H
641 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
642 NEXT_STDLIB_H
643 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
644 NEXT_STDIO_H
645 REPLACE_VSPRINTF
646 REPLACE_VSNPRINTF
647 REPLACE_VPRINTF
648 REPLACE_VFPRINTF
649 REPLACE_VDPRINTF
650 REPLACE_VASPRINTF
651 REPLACE_TMPFILE
652 REPLACE_STDIO_WRITE_FUNCS
653 REPLACE_STDIO_READ_FUNCS
654 REPLACE_SPRINTF
655 REPLACE_SNPRINTF
656 REPLACE_RENAMEAT
657 REPLACE_RENAME
658 REPLACE_REMOVE
659 REPLACE_PRINTF
660 REPLACE_POPEN
661 REPLACE_PERROR
662 REPLACE_OBSTACK_PRINTF
663 REPLACE_GETLINE
664 REPLACE_GETDELIM
665 REPLACE_FTELLO
666 REPLACE_FTELL
667 REPLACE_FSEEKO
668 REPLACE_FSEEK
669 REPLACE_FREOPEN
670 REPLACE_FPURGE
671 REPLACE_FPRINTF
672 REPLACE_FOPEN
673 REPLACE_FFLUSH
674 REPLACE_FDOPEN
675 REPLACE_FCLOSE
676 REPLACE_DPRINTF
677 HAVE_VDPRINTF
678 HAVE_VASPRINTF
679 HAVE_RENAMEAT
680 HAVE_POPEN
681 HAVE_PCLOSE
682 HAVE_FTELLO
683 HAVE_FSEEKO
684 HAVE_DPRINTF
685 HAVE_DECL_VSNPRINTF
686 HAVE_DECL_SNPRINTF
687 HAVE_DECL_OBSTACK_PRINTF
688 HAVE_DECL_GETLINE
689 HAVE_DECL_GETDELIM
690 HAVE_DECL_FTELLO
691 HAVE_DECL_FSEEKO
692 HAVE_DECL_FPURGE
693 GNULIB_VSPRINTF_POSIX
694 GNULIB_VSNPRINTF
695 GNULIB_VPRINTF_POSIX
696 GNULIB_VPRINTF
697 GNULIB_VFPRINTF_POSIX
698 GNULIB_VFPRINTF
699 GNULIB_VDPRINTF
700 GNULIB_VSCANF
701 GNULIB_VFSCANF
702 GNULIB_VASPRINTF
703 GNULIB_TMPFILE
704 GNULIB_STDIO_H_SIGPIPE
705 GNULIB_STDIO_H_NONBLOCKING
706 GNULIB_SPRINTF_POSIX
707 GNULIB_SNPRINTF
708 GNULIB_SCANF
709 GNULIB_RENAMEAT
710 GNULIB_RENAME
711 GNULIB_REMOVE
712 GNULIB_PUTS
713 GNULIB_PUTCHAR
714 GNULIB_PUTC
715 GNULIB_PRINTF_POSIX
716 GNULIB_PRINTF
717 GNULIB_POPEN
718 GNULIB_PERROR
719 GNULIB_PCLOSE
720 GNULIB_OBSTACK_PRINTF_POSIX
721 GNULIB_OBSTACK_PRINTF
722 GNULIB_GETLINE
723 GNULIB_GETDELIM
724 GNULIB_GETCHAR
725 GNULIB_GETC
726 GNULIB_FWRITE
727 GNULIB_FTELLO
728 GNULIB_FTELL
729 GNULIB_FSEEKO
730 GNULIB_FSEEK
731 GNULIB_FSCANF
732 GNULIB_FREOPEN
733 GNULIB_FREAD
734 GNULIB_FPUTS
735 GNULIB_FPUTC
736 GNULIB_FPURGE
737 GNULIB_FPRINTF_POSIX
738 GNULIB_FPRINTF
739 GNULIB_FOPEN
740 GNULIB_FGETS
741 GNULIB_FGETC
742 GNULIB_FFLUSH
743 GNULIB_FDOPEN
744 GNULIB_FCLOSE
745 GNULIB_DPRINTF
746 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
747 NEXT_STDDEF_H
748 GL_GENERATE_STDDEF_H_FALSE
749 GL_GENERATE_STDDEF_H_TRUE
750 STDDEF_H
751 HAVE_WCHAR_T
752 REPLACE_NULL
753 HAVE__BOOL
754 GL_GENERATE_STDBOOL_H_FALSE
755 GL_GENERATE_STDBOOL_H_TRUE
756 STDBOOL_H
757 GL_GENERATE_STDARG_H_FALSE
758 GL_GENERATE_STDARG_H_TRUE
759 STDARG_H
760 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
761 NEXT_STDARG_H
762 GL_GENERATE_STDALIGN_H_FALSE
763 GL_GENERATE_STDALIGN_H_TRUE
764 STDALIGN_H
765 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
766 NEXT_SIGNAL_H
767 LIB_PTHREAD_SIGMASK
768 REPLACE_RAISE
769 REPLACE_PTHREAD_SIGMASK
770 HAVE_SIGHANDLER_T
771 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
772 HAVE_STRUCT_SIGACTION_SA_SIGACTION
773 HAVE_SIGACTION
774 HAVE_SIGINFO_T
775 HAVE_SIGSET_T
776 HAVE_RAISE
777 HAVE_PTHREAD_SIGMASK
778 HAVE_POSIX_SIGNALBLOCKING
779 GNULIB_SIGACTION
780 GNULIB_SIGPROCMASK
781 GNULIB_SIGNAL_H_SIGPIPE
782 GNULIB_RAISE
783 GNULIB_PTHREAD_SIGMASK
784 HAVE_SYS_SELECT_H
785 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
786 NEXT_SYS_SELECT_H
787 REPLACE_SELECT
788 REPLACE_PSELECT
789 HAVE_PSELECT
790 GNULIB_SELECT
791 GNULIB_PSELECT
792 REPLACE_TIMEGM
793 REPLACE_NANOSLEEP
794 REPLACE_MKTIME
795 REPLACE_LOCALTIME_R
796 HAVE_TIMEGM
797 HAVE_STRPTIME
798 HAVE_NANOSLEEP
799 HAVE_DECL_LOCALTIME_R
800 GNULIB_TIME_R
801 GNULIB_TIMEGM
802 GNULIB_STRPTIME
803 GNULIB_NANOSLEEP
804 GNULIB_MKTIME
805 REPLACE_UTIMENSAT
806 REPLACE_STAT
807 REPLACE_MKNOD
808 REPLACE_MKFIFO
809 REPLACE_MKDIR
810 REPLACE_LSTAT
811 REPLACE_FUTIMENS
812 REPLACE_FSTATAT
813 REPLACE_FSTAT
814 HAVE_UTIMENSAT
815 HAVE_MKNODAT
816 HAVE_MKNOD
817 HAVE_MKFIFOAT
818 HAVE_MKFIFO
819 HAVE_MKDIRAT
820 HAVE_LSTAT
821 HAVE_LCHMOD
822 HAVE_FUTIMENS
823 HAVE_FSTATAT
824 HAVE_FCHMODAT
825 GNULIB_UTIMENSAT
826 GNULIB_STAT
827 GNULIB_MKNODAT
828 GNULIB_MKNOD
829 GNULIB_MKFIFOAT
830 GNULIB_MKFIFO
831 GNULIB_MKDIRAT
832 GNULIB_LSTAT
833 GNULIB_LCHMOD
834 GNULIB_FUTIMENS
835 GNULIB_FSTATAT
836 GNULIB_FSTAT
837 GNULIB_FCHMODAT
838 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
839 NEXT_INTTYPES_H
840 UINT64_MAX_EQ_ULONG_MAX
841 UINT32_MAX_LT_UINTMAX_MAX
842 PRIPTR_PREFIX
843 PRI_MACROS_BROKEN
844 INT64_MAX_EQ_LONG_MAX
845 INT32_MAX_LT_INTMAX_MAX
846 REPLACE_STRTOIMAX
847 HAVE_DECL_STRTOUMAX
848 HAVE_DECL_STRTOIMAX
849 HAVE_DECL_IMAXDIV
850 HAVE_DECL_IMAXABS
851 GNULIB_STRTOUMAX
852 GNULIB_STRTOIMAX
853 GNULIB_IMAXDIV
854 GNULIB_IMAXABS
855 GL_GENERATE_STDINT_H_FALSE
856 GL_GENERATE_STDINT_H_TRUE
857 STDINT_H
858 WINT_T_SUFFIX
859 WCHAR_T_SUFFIX
860 SIG_ATOMIC_T_SUFFIX
861 SIZE_T_SUFFIX
862 PTRDIFF_T_SUFFIX
863 HAVE_SIGNED_WINT_T
864 HAVE_SIGNED_WCHAR_T
865 HAVE_SIGNED_SIG_ATOMIC_T
866 BITSIZEOF_WINT_T
867 BITSIZEOF_WCHAR_T
868 BITSIZEOF_SIG_ATOMIC_T
869 BITSIZEOF_SIZE_T
870 BITSIZEOF_PTRDIFF_T
871 APPLE_UNIVERSAL_BUILD
872 HAVE_SYS_BITYPES_H
873 HAVE_SYS_INTTYPES_H
874 HAVE_STDINT_H
875 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
876 NEXT_STDINT_H
877 HAVE_SYS_TYPES_H
878 HAVE_INTTYPES_H
879 HAVE_WCHAR_H
880 HAVE_UNSIGNED_LONG_LONG_INT
881 HAVE_LONG_LONG_INT
882 HAVE_WINSOCK2_H
883 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
884 NEXT_SYS_TIME_H
885 REPLACE_STRUCT_TIMEVAL
886 REPLACE_GETTIMEOFDAY
887 HAVE_SYS_TIME_H
888 HAVE_STRUCT_TIMEVAL
889 HAVE_GETTIMEOFDAY
890 GNULIB_GETTIMEOFDAY
891 GNULIB_GL_UNISTD_H_GETOPT
892 GETOPT_H
893 HAVE_GETOPT_H
894 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
895 NEXT_GETOPT_H
896 PRAGMA_COLUMNS
897 PRAGMA_SYSTEM_HEADER
898 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
899 INCLUDE_NEXT
900 GETLOADAVG_LIBS
901 REPLACE_WCTOMB
902 REPLACE_UNSETENV
903 REPLACE_STRTOD
904 REPLACE_SETENV
905 REPLACE_REALPATH
906 REPLACE_REALLOC
907 REPLACE_RANDOM_R
908 REPLACE_PUTENV
909 REPLACE_PTSNAME_R
910 REPLACE_MKSTEMP
911 REPLACE_MBTOWC
912 REPLACE_MALLOC
913 REPLACE_CANONICALIZE_FILE_NAME
914 REPLACE_CALLOC
915 HAVE_DECL_UNSETENV
916 HAVE_UNLOCKPT
917 HAVE_SYS_LOADAVG_H
918 HAVE_STRUCT_RANDOM_DATA
919 HAVE_STRTOULL
920 HAVE_STRTOLL
921 HAVE_STRTOD
922 HAVE_DECL_SETENV
923 HAVE_SETENV
924 HAVE_RPMATCH
925 HAVE_REALPATH
926 HAVE_RANDOM_R
927 HAVE_RANDOM_H
928 HAVE_RANDOM
929 HAVE_PTSNAME_R
930 HAVE_PTSNAME
931 HAVE_POSIX_OPENPT
932 HAVE_MKSTEMPS
933 HAVE_MKSTEMP
934 HAVE_MKOSTEMPS
935 HAVE_MKOSTEMP
936 HAVE_MKDTEMP
937 HAVE_GRANTPT
938 HAVE_GETSUBOPT
939 HAVE_DECL_GETLOADAVG
940 HAVE_CANONICALIZE_FILE_NAME
941 HAVE_ATOLL
942 HAVE__EXIT
943 GNULIB_WCTOMB
944 GNULIB_UNSETENV
945 GNULIB_UNLOCKPT
946 GNULIB_SYSTEM_POSIX
947 GNULIB_STRTOULL
948 GNULIB_STRTOLL
949 GNULIB_STRTOD
950 GNULIB_SETENV
951 GNULIB_RPMATCH
952 GNULIB_REALPATH
953 GNULIB_REALLOC_POSIX
954 GNULIB_RANDOM_R
955 GNULIB_RANDOM
956 GNULIB_PUTENV
957 GNULIB_PTSNAME_R
958 GNULIB_PTSNAME
959 GNULIB_POSIX_OPENPT
960 GNULIB_MKSTEMPS
961 GNULIB_MKSTEMP
962 GNULIB_MKOSTEMPS
963 GNULIB_MKOSTEMP
964 GNULIB_MKDTEMP
965 GNULIB_MBTOWC
966 GNULIB_MALLOC_POSIX
967 GNULIB_GRANTPT
968 GNULIB_GETSUBOPT
969 GNULIB_GETLOADAVG
970 GNULIB_CANONICALIZE_FILE_NAME
971 GNULIB_CALLOC_POSIX
972 GNULIB_ATOLL
973 GNULIB__EXIT
974 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
975 UNISTD_H_HAVE_WINSOCK2_H
976 REPLACE_WRITE
977 REPLACE_USLEEP
978 REPLACE_UNLINKAT
979 REPLACE_UNLINK
980 REPLACE_TTYNAME_R
981 REPLACE_SYMLINK
982 REPLACE_SLEEP
983 REPLACE_RMDIR
984 REPLACE_READLINK
985 REPLACE_READ
986 REPLACE_PWRITE
987 REPLACE_PREAD
988 REPLACE_LSEEK
989 REPLACE_LINKAT
990 REPLACE_LINK
991 REPLACE_LCHOWN
992 REPLACE_ISATTY
993 REPLACE_GETPAGESIZE
994 REPLACE_GETGROUPS
995 REPLACE_GETLOGIN_R
996 REPLACE_GETDOMAINNAME
997 REPLACE_GETCWD
998 REPLACE_FTRUNCATE
999 REPLACE_FCHOWNAT
1000 REPLACE_DUP2
1001 REPLACE_DUP
1002 REPLACE_CLOSE
1003 REPLACE_CHOWN
1004 HAVE_SYS_PARAM_H
1005 HAVE_OS_H
1006 HAVE_DECL_TTYNAME_R
1007 HAVE_DECL_SETHOSTNAME
1008 HAVE_DECL_GETUSERSHELL
1009 HAVE_DECL_GETPAGESIZE
1010 HAVE_DECL_GETLOGIN_R
1011 HAVE_DECL_GETDOMAINNAME
1012 HAVE_DECL_FDATASYNC
1013 HAVE_DECL_FCHDIR
1014 HAVE_DECL_ENVIRON
1015 HAVE_USLEEP
1016 HAVE_UNLINKAT
1017 HAVE_SYMLINKAT
1018 HAVE_SYMLINK
1019 HAVE_SLEEP
1020 HAVE_SETHOSTNAME
1021 HAVE_READLINKAT
1022 HAVE_READLINK
1023 HAVE_PWRITE
1024 HAVE_PREAD
1025 HAVE_PIPE2
1026 HAVE_PIPE
1027 HAVE_LINKAT
1028 HAVE_LINK
1029 HAVE_LCHOWN
1030 HAVE_GROUP_MEMBER
1031 HAVE_GETPAGESIZE
1032 HAVE_GETLOGIN
1033 HAVE_GETHOSTNAME
1034 HAVE_GETGROUPS
1035 HAVE_GETDTABLESIZE
1036 HAVE_FTRUNCATE
1037 HAVE_FSYNC
1038 HAVE_FDATASYNC
1039 HAVE_FCHOWNAT
1040 HAVE_FCHDIR
1041 HAVE_FACCESSAT
1042 HAVE_EUIDACCESS
1043 HAVE_DUP3
1044 HAVE_DUP2
1045 HAVE_CHOWN
1046 GNULIB_WRITE
1047 GNULIB_USLEEP
1048 GNULIB_UNLINKAT
1049 GNULIB_UNLINK
1050 GNULIB_UNISTD_H_SIGPIPE
1051 GNULIB_UNISTD_H_NONBLOCKING
1052 GNULIB_TTYNAME_R
1053 GNULIB_SYMLINKAT
1054 GNULIB_SYMLINK
1055 GNULIB_SLEEP
1056 GNULIB_SETHOSTNAME
1057 GNULIB_RMDIR
1058 GNULIB_READLINKAT
1059 GNULIB_READLINK
1060 GNULIB_READ
1061 GNULIB_PWRITE
1062 GNULIB_PREAD
1063 GNULIB_PIPE2
1064 GNULIB_PIPE
1065 GNULIB_LSEEK
1066 GNULIB_LINKAT
1067 GNULIB_LINK
1068 GNULIB_LCHOWN
1069 GNULIB_ISATTY
1070 GNULIB_GROUP_MEMBER
1071 GNULIB_GETUSERSHELL
1072 GNULIB_GETPAGESIZE
1073 GNULIB_GETLOGIN_R
1074 GNULIB_GETLOGIN
1075 GNULIB_GETHOSTNAME
1076 GNULIB_GETGROUPS
1077 GNULIB_GETDTABLESIZE
1078 GNULIB_GETDOMAINNAME
1079 GNULIB_GETCWD
1080 GNULIB_FTRUNCATE
1081 GNULIB_FSYNC
1082 GNULIB_FDATASYNC
1083 GNULIB_FCHOWNAT
1084 GNULIB_FCHDIR
1085 GNULIB_FACCESSAT
1086 GNULIB_EUIDACCESS
1087 GNULIB_ENVIRON
1088 GNULIB_DUP3
1089 GNULIB_DUP2
1090 GNULIB_DUP
1091 GNULIB_CLOSE
1092 GNULIB_CHOWN
1093 GNULIB_CHDIR
1094 LIB_CLOCK_GETTIME
1095 GL_GENERATE_ALLOCA_H_FALSE
1096 GL_GENERATE_ALLOCA_H_TRUE
1097 ALLOCA_H
1098 ALLOCA
1099 GL_COND_LIBTOOL_FALSE
1100 GL_COND_LIBTOOL_TRUE
1101 POST_ALLOC_OBJ
1102 PRE_ALLOC_OBJ
1103 CYGWIN_OBJ
1104 RALLOC_OBJ
1105 OLDXMENU_DEPS
1106 LIBX_OTHER
1107 LIBXMENU
1108 OLDXMENU
1109 OLDXMENU_TARGET
1110 LIBXT_OTHER
1111 TOOLKIT_LIBW
1112 WIDGET_OBJ
1113 XOBJ
1114 XMENU_OBJ
1115 FONT_OBJ
1116 OTHER_FILES
1117 GNU_OBJC_CFLAGS
1118 ns_appsrc
1119 ns_appresdir
1120 ns_appbindir
1121 ns_appdir
1122 X_TOOLKIT_TYPE
1123 GNUSTEP_CFLAGS
1124 C_SWITCH_X_SITE
1125 LD_SWITCH_X_SITE
1126 gameuser
1127 gamedir
1128 bitmapdir
1129 archlibdir
1130 etcdir
1131 x_default_search_path
1132 lisppath
1133 locallisppath
1134 standardlisppath
1135 leimdir
1136 lispdir
1137 srcdir
1138 canonical
1139 configuration
1140 version
1141 KRB4LIB
1142 DESLIB
1143 KRB5LIB
1144 CRYPTOLIB
1145 COM_ERRLIB
1146 LIBRESOLV
1147 LIBHESIOD
1148 TERMCAP_OBJ
1149 LIBS_TERMCAP
1150 BLESSMAIL_TARGET
1151 LIBS_MAIL
1152 liblockfile
1153 LIBXML2_LIBS
1154 LIBXML2_CFLAGS
1155 LIBXSM
1156 LIBGPM
1157 LIBGIF
1158 LIBTIFF
1159 LIBPNG
1160 LIBJPEG
1161 LIBXPM
1162 M17N_FLT_LIBS
1163 M17N_FLT_CFLAGS
1164 LIBOTF_LIBS
1165 LIBOTF_CFLAGS
1166 FREETYPE_LIBS
1167 FREETYPE_CFLAGS
1168 XFT_LIBS
1169 XFT_CFLAGS
1170 FONTCONFIG_LIBS
1171 FONTCONFIG_CFLAGS
1172 LIBXMU
1173 LIBXTR6
1174 LIBGNUTLS_LIBS
1175 LIBGNUTLS_CFLAGS
1176 LIBSELINUX_LIBS
1177 SETTINGS_LIBS
1178 SETTINGS_CFLAGS
1179 GCONF_LIBS
1180 GCONF_CFLAGS
1181 GSETTINGS_LIBS
1182 GSETTINGS_CFLAGS
1183 DBUS_OBJ
1184 DBUS_LIBS
1185 DBUS_CFLAGS
1186 GTK_OBJ
1187 GTK_LIBS
1188 GTK_CFLAGS
1189 IMAGEMAGICK_LIBS
1190 IMAGEMAGICK_CFLAGS
1191 RSVG_LIBS
1192 RSVG_CFLAGS
1193 LIB_PTHREAD
1194 VMLIMIT_OBJ
1195 GMALLOC_OBJ
1196 HAVE_XSERVER
1197 LIB_STANDARD
1198 NS_OBJC_OBJ
1199 NS_OBJ
1200 ns_self_contained
1201 INSTALL_ARCH_INDEP_EXTRA
1202 TEMACS_LDFLAGS2
1203 LD_SWITCH_X_SITE_RPATH
1204 XMKMF
1205 DEPFLAGS
1206 MKDEPDIR
1207 CFLAGS_SOUND
1208 ALSA_LIBS
1209 ALSA_CFLAGS
1210 LIBSOUND
1211 PKG_CONFIG
1212 CRT_DIR
1213 START_FILES
1214 LIB_MATH
1215 LIBS_SYSTEM
1216 C_SWITCH_SYSTEM
1217 UNEXEC_OBJ
1218 C_SWITCH_MACHINE
1219 LD_SWITCH_SYSTEM
1220 CANNOT_DUMP
1221 INFO_OPTS
1222 INFO_EXT
1223 HAVE_MAKEINFO
1224 PAXCTL
1225 GZIP_PROG
1226 INSTALL_INFO
1227 LN_S
1228 GNULIB_WARN_CFLAGS
1229 WARN_CFLAGS
1230 WERROR_CFLAGS
1231 RANLIB
1232 ARFLAGS
1233 AR
1234 EGREP
1235 GREP
1236 CPP
1237 am__fastdepCC_FALSE
1238 am__fastdepCC_TRUE
1239 CCDEPMODE
1240 AMDEPBACKSLASH
1241 AMDEP_FALSE
1242 AMDEP_TRUE
1243 am__quote
1244 am__include
1245 DEPDIR
1246 OBJEXT
1247 EXEEXT
1248 ac_ct_CC
1249 CPPFLAGS
1250 LDFLAGS
1251 CFLAGS
1252 CC
1253 host_os
1254 host_vendor
1255 host_cpu
1256 host
1257 build_os
1258 build_vendor
1259 build_cpu
1260 build
1261 PROFILING_CFLAGS
1262 GZIP_INFO
1263 cache_file
1264 am__untar
1265 am__tar
1266 AMTAR
1267 am__leading_dot
1268 SET_MAKE
1269 AWK
1270 mkdir_p
1271 MKDIR_P
1272 INSTALL_STRIP_PROGRAM
1273 STRIP
1274 install_sh
1275 MAKEINFO
1276 AUTOHEADER
1277 AUTOMAKE
1278 AUTOCONF
1279 ACLOCAL
1280 VERSION
1281 PACKAGE
1282 CYGPATH_W
1283 am__isrc
1284 INSTALL_DATA
1285 INSTALL_SCRIPT
1286 INSTALL_PROGRAM
1287 target_alias
1288 host_alias
1289 build_alias
1290 LIBS
1291 ECHO_T
1292 ECHO_N
1293 ECHO_C
1294 DEFS
1295 mandir
1296 localedir
1297 libdir
1298 psdir
1299 pdfdir
1300 dvidir
1301 htmldir
1302 infodir
1303 docdir
1304 oldincludedir
1305 includedir
1306 localstatedir
1307 sharedstatedir
1308 sysconfdir
1309 datadir
1310 datarootdir
1311 libexecdir
1312 sbindir
1313 bindir
1314 program_transform_name
1315 prefix
1316 exec_prefix
1317 PACKAGE_URL
1318 PACKAGE_BUGREPORT
1319 PACKAGE_STRING
1320 PACKAGE_VERSION
1321 PACKAGE_TARNAME
1322 PACKAGE_NAME
1323 PATH_SEPARATOR
1324 SHELL'
1325 ac_subst_files='deps_frag
1326 lisp_frag
1327 ns_frag'
1328 ac_user_opts='
1329 enable_option_checking
1330 with_all
1331 with_pop
1332 with_kerberos
1333 with_kerberos5
1334 with_hesiod
1335 with_mmdf
1336 with_mail_unlink
1337 with_mailhost
1338 with_sound
1339 with_sync_input
1340 with_x_toolkit
1341 with_wide_int
1342 with_xpm
1343 with_jpeg
1344 with_tiff
1345 with_gif
1346 with_png
1347 with_rsvg
1348 with_xml2
1349 with_imagemagick
1350 with_xft
1351 with_libotf
1352 with_m17n_flt
1353 with_toolkit_scroll_bars
1354 with_xaw3d
1355 with_xim
1356 with_ns
1357 with_gpm
1358 with_dbus
1359 with_gconf
1360 with_gsettings
1361 with_selinux
1362 with_gnutls
1363 with_makeinfo
1364 with_compress_info
1365 with_pkg_config_prog
1366 with_crt_dir
1367 with_gameuser
1368 with_gnustep_conf
1369 enable_ns_self_contained
1370 enable_locallisppath
1371 enable_checking
1372 enable_check_lisp_object_type
1373 enable_profiling
1374 enable_autodepend
1375 enable_dependency_tracking
1376 enable_largefile
1377 enable_gcc_warnings
1378 enable_link_time_optimization
1379 with_x
1380 '
1381 ac_precious_vars='build_alias
1382 host_alias
1383 target_alias
1384 CC
1385 CFLAGS
1386 LDFLAGS
1387 LIBS
1388 CPPFLAGS
1389 CPP
1390 XMKMF'
1391
1392
1393 # Initialize some variables set by options.
1394 ac_init_help=
1395 ac_init_version=false
1396 ac_unrecognized_opts=
1397 ac_unrecognized_sep=
1398 # The variables have the same names as the options, with
1399 # dashes changed to underlines.
1400 cache_file=/dev/null
1401 exec_prefix=NONE
1402 no_create=
1403 no_recursion=
1404 prefix=NONE
1405 program_prefix=NONE
1406 program_suffix=NONE
1407 program_transform_name=s,x,x,
1408 silent=
1409 site=
1410 srcdir=
1411 verbose=
1412 x_includes=NONE
1413 x_libraries=NONE
1414
1415 # Installation directory options.
1416 # These are left unexpanded so users can "make install exec_prefix=/foo"
1417 # and all the variables that are supposed to be based on exec_prefix
1418 # by default will actually change.
1419 # Use braces instead of parens because sh, perl, etc. also accept them.
1420 # (The list follows the same order as the GNU Coding Standards.)
1421 bindir='${exec_prefix}/bin'
1422 sbindir='${exec_prefix}/sbin'
1423 libexecdir='${exec_prefix}/libexec'
1424 datarootdir='${prefix}/share'
1425 datadir='${datarootdir}'
1426 sysconfdir='${prefix}/etc'
1427 sharedstatedir='${prefix}/com'
1428 localstatedir='${prefix}/var'
1429 includedir='${prefix}/include'
1430 oldincludedir='/usr/include'
1431 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1432 infodir='${datarootdir}/info'
1433 htmldir='${docdir}'
1434 dvidir='${docdir}'
1435 pdfdir='${docdir}'
1436 psdir='${docdir}'
1437 libdir='${exec_prefix}/lib'
1438 localedir='${datarootdir}/locale'
1439 mandir='${datarootdir}/man'
1440
1441 ac_prev=
1442 ac_dashdash=
1443 for ac_option
1444 do
1445 # If the previous option needs an argument, assign it.
1446 if test -n "$ac_prev"; then
1447 eval $ac_prev=\$ac_option
1448 ac_prev=
1449 continue
1450 fi
1451
1452 case $ac_option in
1453 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1454 *) ac_optarg=yes ;;
1455 esac
1456
1457 # Accept the important Cygnus configure options, so we can diagnose typos.
1458
1459 case $ac_dashdash$ac_option in
1460 --)
1461 ac_dashdash=yes ;;
1462
1463 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1464 ac_prev=bindir ;;
1465 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1466 bindir=$ac_optarg ;;
1467
1468 -build | --build | --buil | --bui | --bu)
1469 ac_prev=build_alias ;;
1470 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1471 build_alias=$ac_optarg ;;
1472
1473 -cache-file | --cache-file | --cache-fil | --cache-fi \
1474 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1475 ac_prev=cache_file ;;
1476 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1477 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1478 cache_file=$ac_optarg ;;
1479
1480 --config-cache | -C)
1481 cache_file=config.cache ;;
1482
1483 -datadir | --datadir | --datadi | --datad)
1484 ac_prev=datadir ;;
1485 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1486 datadir=$ac_optarg ;;
1487
1488 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1489 | --dataroo | --dataro | --datar)
1490 ac_prev=datarootdir ;;
1491 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1492 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1493 datarootdir=$ac_optarg ;;
1494
1495 -disable-* | --disable-*)
1496 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1497 # Reject names that are not valid shell variable names.
1498 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1499 as_fn_error "invalid feature name: $ac_useropt"
1500 ac_useropt_orig=$ac_useropt
1501 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1502 case $ac_user_opts in
1503 *"
1504 "enable_$ac_useropt"
1505 "*) ;;
1506 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1507 ac_unrecognized_sep=', ';;
1508 esac
1509 eval enable_$ac_useropt=no ;;
1510
1511 -docdir | --docdir | --docdi | --doc | --do)
1512 ac_prev=docdir ;;
1513 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1514 docdir=$ac_optarg ;;
1515
1516 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1517 ac_prev=dvidir ;;
1518 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1519 dvidir=$ac_optarg ;;
1520
1521 -enable-* | --enable-*)
1522 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1523 # Reject names that are not valid shell variable names.
1524 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1525 as_fn_error "invalid feature name: $ac_useropt"
1526 ac_useropt_orig=$ac_useropt
1527 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1528 case $ac_user_opts in
1529 *"
1530 "enable_$ac_useropt"
1531 "*) ;;
1532 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1533 ac_unrecognized_sep=', ';;
1534 esac
1535 eval enable_$ac_useropt=\$ac_optarg ;;
1536
1537 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1538 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1539 | --exec | --exe | --ex)
1540 ac_prev=exec_prefix ;;
1541 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1542 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1543 | --exec=* | --exe=* | --ex=*)
1544 exec_prefix=$ac_optarg ;;
1545
1546 -gas | --gas | --ga | --g)
1547 # Obsolete; use --with-gas.
1548 with_gas=yes ;;
1549
1550 -help | --help | --hel | --he | -h)
1551 ac_init_help=long ;;
1552 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1553 ac_init_help=recursive ;;
1554 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1555 ac_init_help=short ;;
1556
1557 -host | --host | --hos | --ho)
1558 ac_prev=host_alias ;;
1559 -host=* | --host=* | --hos=* | --ho=*)
1560 host_alias=$ac_optarg ;;
1561
1562 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1563 ac_prev=htmldir ;;
1564 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1565 | --ht=*)
1566 htmldir=$ac_optarg ;;
1567
1568 -includedir | --includedir | --includedi | --included | --include \
1569 | --includ | --inclu | --incl | --inc)
1570 ac_prev=includedir ;;
1571 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1572 | --includ=* | --inclu=* | --incl=* | --inc=*)
1573 includedir=$ac_optarg ;;
1574
1575 -infodir | --infodir | --infodi | --infod | --info | --inf)
1576 ac_prev=infodir ;;
1577 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1578 infodir=$ac_optarg ;;
1579
1580 -libdir | --libdir | --libdi | --libd)
1581 ac_prev=libdir ;;
1582 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1583 libdir=$ac_optarg ;;
1584
1585 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1586 | --libexe | --libex | --libe)
1587 ac_prev=libexecdir ;;
1588 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1589 | --libexe=* | --libex=* | --libe=*)
1590 libexecdir=$ac_optarg ;;
1591
1592 -localedir | --localedir | --localedi | --localed | --locale)
1593 ac_prev=localedir ;;
1594 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1595 localedir=$ac_optarg ;;
1596
1597 -localstatedir | --localstatedir | --localstatedi | --localstated \
1598 | --localstate | --localstat | --localsta | --localst | --locals)
1599 ac_prev=localstatedir ;;
1600 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1601 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1602 localstatedir=$ac_optarg ;;
1603
1604 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1605 ac_prev=mandir ;;
1606 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1607 mandir=$ac_optarg ;;
1608
1609 -nfp | --nfp | --nf)
1610 # Obsolete; use --without-fp.
1611 with_fp=no ;;
1612
1613 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1614 | --no-cr | --no-c | -n)
1615 no_create=yes ;;
1616
1617 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1618 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1619 no_recursion=yes ;;
1620
1621 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1622 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1623 | --oldin | --oldi | --old | --ol | --o)
1624 ac_prev=oldincludedir ;;
1625 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1626 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1627 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1628 oldincludedir=$ac_optarg ;;
1629
1630 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1631 ac_prev=prefix ;;
1632 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1633 prefix=$ac_optarg ;;
1634
1635 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1636 | --program-pre | --program-pr | --program-p)
1637 ac_prev=program_prefix ;;
1638 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1639 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1640 program_prefix=$ac_optarg ;;
1641
1642 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1643 | --program-suf | --program-su | --program-s)
1644 ac_prev=program_suffix ;;
1645 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1646 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1647 program_suffix=$ac_optarg ;;
1648
1649 -program-transform-name | --program-transform-name \
1650 | --program-transform-nam | --program-transform-na \
1651 | --program-transform-n | --program-transform- \
1652 | --program-transform | --program-transfor \
1653 | --program-transfo | --program-transf \
1654 | --program-trans | --program-tran \
1655 | --progr-tra | --program-tr | --program-t)
1656 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1665
1666 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1667 ac_prev=pdfdir ;;
1668 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1669 pdfdir=$ac_optarg ;;
1670
1671 -psdir | --psdir | --psdi | --psd | --ps)
1672 ac_prev=psdir ;;
1673 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1674 psdir=$ac_optarg ;;
1675
1676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1677 | -silent | --silent | --silen | --sile | --sil)
1678 silent=yes ;;
1679
1680 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1681 ac_prev=sbindir ;;
1682 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1683 | --sbi=* | --sb=*)
1684 sbindir=$ac_optarg ;;
1685
1686 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1687 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1688 | --sharedst | --shareds | --shared | --share | --shar \
1689 | --sha | --sh)
1690 ac_prev=sharedstatedir ;;
1691 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1692 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1693 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1694 | --sha=* | --sh=*)
1695 sharedstatedir=$ac_optarg ;;
1696
1697 -site | --site | --sit)
1698 ac_prev=site ;;
1699 -site=* | --site=* | --sit=*)
1700 site=$ac_optarg ;;
1701
1702 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1703 ac_prev=srcdir ;;
1704 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1705 srcdir=$ac_optarg ;;
1706
1707 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1708 | --syscon | --sysco | --sysc | --sys | --sy)
1709 ac_prev=sysconfdir ;;
1710 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1711 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1712 sysconfdir=$ac_optarg ;;
1713
1714 -target | --target | --targe | --targ | --tar | --ta | --t)
1715 ac_prev=target_alias ;;
1716 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1717 target_alias=$ac_optarg ;;
1718
1719 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1720 verbose=yes ;;
1721
1722 -version | --version | --versio | --versi | --vers | -V)
1723 ac_init_version=: ;;
1724
1725 -with-* | --with-*)
1726 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1727 # Reject names that are not valid shell variable names.
1728 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1729 as_fn_error "invalid package name: $ac_useropt"
1730 ac_useropt_orig=$ac_useropt
1731 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1732 case $ac_user_opts in
1733 *"
1734 "with_$ac_useropt"
1735 "*) ;;
1736 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1737 ac_unrecognized_sep=', ';;
1738 esac
1739 eval with_$ac_useropt=\$ac_optarg ;;
1740
1741 -without-* | --without-*)
1742 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1743 # Reject names that are not valid shell variable names.
1744 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1745 as_fn_error "invalid package name: $ac_useropt"
1746 ac_useropt_orig=$ac_useropt
1747 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1748 case $ac_user_opts in
1749 *"
1750 "with_$ac_useropt"
1751 "*) ;;
1752 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1753 ac_unrecognized_sep=', ';;
1754 esac
1755 eval with_$ac_useropt=no ;;
1756
1757 --x)
1758 # Obsolete; use --with-x.
1759 with_x=yes ;;
1760
1761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1762 | --x-incl | --x-inc | --x-in | --x-i)
1763 ac_prev=x_includes ;;
1764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1766 x_includes=$ac_optarg ;;
1767
1768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1770 ac_prev=x_libraries ;;
1771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1773 x_libraries=$ac_optarg ;;
1774
1775 -*) as_fn_error "unrecognized option: \`$ac_option'
1776 Try \`$0 --help' for more information."
1777 ;;
1778
1779 *=*)
1780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1781 # Reject names that are not valid shell variable names.
1782 case $ac_envvar in #(
1783 '' | [0-9]* | *[!_$as_cr_alnum]* )
1784 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1785 esac
1786 eval $ac_envvar=\$ac_optarg
1787 export $ac_envvar ;;
1788
1789 *)
1790 # FIXME: should be removed in autoconf 3.0.
1791 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1793 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1795 ;;
1796
1797 esac
1798 done
1799
1800 if test -n "$ac_prev"; then
1801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1802 as_fn_error "missing argument to $ac_option"
1803 fi
1804
1805 if test -n "$ac_unrecognized_opts"; then
1806 case $enable_option_checking in
1807 no) ;;
1808 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1809 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1810 esac
1811 fi
1812
1813 # Check all directory arguments for consistency.
1814 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1815 datadir sysconfdir sharedstatedir localstatedir includedir \
1816 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1817 libdir localedir mandir
1818 do
1819 eval ac_val=\$$ac_var
1820 # Remove trailing slashes.
1821 case $ac_val in
1822 */ )
1823 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1824 eval $ac_var=\$ac_val;;
1825 esac
1826 # Be sure to have absolute directory names.
1827 case $ac_val in
1828 [\\/$]* | ?:[\\/]* ) continue;;
1829 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1830 esac
1831 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1832 done
1833
1834 # There might be people who depend on the old broken behavior: `$host'
1835 # used to hold the argument of --host etc.
1836 # FIXME: To remove some day.
1837 build=$build_alias
1838 host=$host_alias
1839 target=$target_alias
1840
1841 # FIXME: To remove some day.
1842 if test "x$host_alias" != x; then
1843 if test "x$build_alias" = x; then
1844 cross_compiling=maybe
1845 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1846 If a cross compiler is detected then cross compile mode will be used." >&2
1847 elif test "x$build_alias" != "x$host_alias"; then
1848 cross_compiling=yes
1849 fi
1850 fi
1851
1852 ac_tool_prefix=
1853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1854
1855 test "$silent" = yes && exec 6>/dev/null
1856
1857
1858 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1859 ac_ls_di=`ls -di .` &&
1860 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1861 as_fn_error "working directory cannot be determined"
1862 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1863 as_fn_error "pwd does not report name of working directory"
1864
1865
1866 # Find the source files, if location was not specified.
1867 if test -z "$srcdir"; then
1868 ac_srcdir_defaulted=yes
1869 # Try the directory containing this script, then the parent directory.
1870 ac_confdir=`$as_dirname -- "$as_myself" ||
1871 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1872 X"$as_myself" : 'X\(//\)[^/]' \| \
1873 X"$as_myself" : 'X\(//\)$' \| \
1874 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1875 $as_echo X"$as_myself" |
1876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1877 s//\1/
1878 q
1879 }
1880 /^X\(\/\/\)[^/].*/{
1881 s//\1/
1882 q
1883 }
1884 /^X\(\/\/\)$/{
1885 s//\1/
1886 q
1887 }
1888 /^X\(\/\).*/{
1889 s//\1/
1890 q
1891 }
1892 s/.*/./; q'`
1893 srcdir=$ac_confdir
1894 if test ! -r "$srcdir/$ac_unique_file"; then
1895 srcdir=..
1896 fi
1897 else
1898 ac_srcdir_defaulted=no
1899 fi
1900 if test ! -r "$srcdir/$ac_unique_file"; then
1901 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1902 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1903 fi
1904 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1905 ac_abs_confdir=`(
1906 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1907 pwd)`
1908 # When building in place, set srcdir=.
1909 if test "$ac_abs_confdir" = "$ac_pwd"; then
1910 srcdir=.
1911 fi
1912 # Remove unnecessary trailing slashes from srcdir.
1913 # Double slashes in file names in object file debugging info
1914 # mess up M-x gdb in Emacs.
1915 case $srcdir in
1916 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1917 esac
1918 for ac_var in $ac_precious_vars; do
1919 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1920 eval ac_env_${ac_var}_value=\$${ac_var}
1921 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1922 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1923 done
1924
1925 #
1926 # Report the --help message.
1927 #
1928 if test "$ac_init_help" = "long"; then
1929 # Omit some internal or obsolete options to make the list less imposing.
1930 # This message is too long to be a string in the A/UX 3.1 sh.
1931 cat <<_ACEOF
1932 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1933
1934 Usage: $0 [OPTION]... [VAR=VALUE]...
1935
1936 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1937 VAR=VALUE. See below for descriptions of some of the useful variables.
1938
1939 Defaults for the options are specified in brackets.
1940
1941 Configuration:
1942 -h, --help display this help and exit
1943 --help=short display options specific to this package
1944 --help=recursive display the short help of all the included packages
1945 -V, --version display version information and exit
1946 -q, --quiet, --silent do not print \`checking...' messages
1947 --cache-file=FILE cache test results in FILE [disabled]
1948 -C, --config-cache alias for \`--cache-file=config.cache'
1949 -n, --no-create do not create output files
1950 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1951
1952 Installation directories:
1953 --prefix=PREFIX install architecture-independent files in PREFIX
1954 [$ac_default_prefix]
1955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1956 [PREFIX]
1957
1958 By default, \`make install' will install all the files in
1959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1961 for instance \`--prefix=\$HOME'.
1962
1963 For better control, use the options below.
1964
1965 Fine tuning of the installation directories:
1966 --bindir=DIR user executables [EPREFIX/bin]
1967 --sbindir=DIR system admin executables [EPREFIX/sbin]
1968 --libexecdir=DIR program executables [EPREFIX/libexec]
1969 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1970 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1971 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1972 --libdir=DIR object code libraries [EPREFIX/lib]
1973 --includedir=DIR C header files [PREFIX/include]
1974 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1975 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1976 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1977 --infodir=DIR info documentation [DATAROOTDIR/info]
1978 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1979 --mandir=DIR man documentation [DATAROOTDIR/man]
1980 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1981 --htmldir=DIR html documentation [DOCDIR]
1982 --dvidir=DIR dvi documentation [DOCDIR]
1983 --pdfdir=DIR pdf documentation [DOCDIR]
1984 --psdir=DIR ps documentation [DOCDIR]
1985 _ACEOF
1986
1987 cat <<\_ACEOF
1988
1989 Program names:
1990 --program-prefix=PREFIX prepend PREFIX to installed program names
1991 --program-suffix=SUFFIX append SUFFIX to installed program names
1992 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1993
1994 X features:
1995 --x-includes=DIR X include files are in DIR
1996 --x-libraries=DIR X library files are in DIR
1997
1998 System types:
1999 --build=BUILD configure for building on BUILD [guessed]
2000 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2001 _ACEOF
2002 fi
2003
2004 if test -n "$ac_init_help"; then
2005 case $ac_init_help in
2006 short | recursive ) echo "Configuration of emacs 24.2.50:";;
2007 esac
2008 cat <<\_ACEOF
2009
2010 Optional Features:
2011 --disable-option-checking ignore unrecognized --enable/--with options
2012 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2013 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2014 --disable-ns-self-contained
2015 disable self contained build under NeXTstep
2016 --enable-locallisppath=PATH
2017 directories Emacs should search for lisp files
2018 specific to this site
2019 --enable-checking[=LIST]
2020 enable expensive run-time checks. With LIST, enable
2021 only specific categories of checks. Categories are:
2022 all,yes,no. Flags are: stringbytes, stringoverrun,
2023 stringfreelist, xmallocoverrun, conslist, glyphs
2024 --enable-check-lisp-object-type
2025 enable compile time checks for the Lisp_Object data
2026 type. This is useful for development for catching
2027 certain types of bugs.
2028 --enable-profiling build emacs with profiling support. This might not
2029 work on all platforms
2030 --enable-autodepend automatically generate dependencies to .h-files.
2031 Requires GNU Make and Gcc. Enabled if GNU Make and
2032 Gcc is found
2033 --disable-dependency-tracking speeds up one-time build
2034 --enable-dependency-tracking do not reject slow dependency extractors
2035 --disable-largefile omit support for large files
2036 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2037 developers, and may generate false alarms when used
2038 with older or non-GNU development tools.
2039 --enable-link-time-optimization
2040 build emacs with link-time optimization. This is
2041 supported only for GCC since 4.5.0.
2042
2043 Optional Packages:
2044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2046 --without-all omit almost all features and build small executable
2047 with minimal dependencies
2048 --without-pop don't support POP mail retrieval with movemail
2049 --with-kerberos support Kerberos-authenticated POP
2050 --with-kerberos5 support Kerberos version 5 authenticated POP
2051 --with-hesiod support Hesiod to get the POP server host
2052 --with-mmdf support MMDF mailboxes
2053 --with-mail-unlink unlink, rather than empty, mail spool after reading
2054 --with-mailhost=HOSTNAME
2055 string giving default POP mail host
2056 --without-sound don't compile with sound support
2057 --without-sync-input process async input synchronously
2058 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2059 lucid or athena, motif, no)
2060 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2061 --without-xpm don't compile with XPM image support
2062 --without-jpeg don't compile with JPEG image support
2063 --without-tiff don't compile with TIFF image support
2064 --without-gif don't compile with GIF image support
2065 --without-png don't compile with PNG image support
2066 --without-rsvg don't compile with SVG image support
2067 --without-xml2 don't compile with XML parsing support
2068 --without-imagemagick don't compile with ImageMagick image support
2069 --without-xft don't use XFT for anti aliased fonts
2070 --without-libotf don't use libotf for OpenType font support
2071 --without-m17n-flt don't use m17n-flt for text shaping
2072 --without-toolkit-scroll-bars
2073 don't use Motif or Xaw3d scroll bars
2074 --without-xaw3d don't use Xaw3d
2075 --without-xim don't use X11 XIM
2076 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2077 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2078 console
2079 --without-dbus don't compile with D-Bus support
2080 --without-gconf don't compile with GConf support
2081 --without-gsettings don't compile with GSettings support
2082 --without-selinux don't compile with SELinux support
2083 --without-gnutls don't use -lgnutls for SSL/TLS support
2084 --without-makeinfo don't require makeinfo for building manuals
2085 --without-compress-info don't compress the installed Info pages
2086 --with-pkg-config-prog=PATH
2087 path to pkg-config for finding GTK and librsvg
2088 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2089 /usr/lib, or /usr/lib64 on some platforms.
2090 --with-gameuser=USER user for shared game score files
2091 --with-gnustep-conf=PATH
2092 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2093 or /etc/GNUstep/GNUstep.conf
2094 --with-x use the X Window System
2095
2096 Some influential environment variables:
2097 CC C compiler command
2098 CFLAGS C compiler flags
2099 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2100 nonstandard directory <lib dir>
2101 LIBS libraries to pass to the linker, e.g. -l<library>
2102 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2103 you have headers in a nonstandard directory <include dir>
2104 CPP C preprocessor
2105 XMKMF Path to xmkmf, Makefile generator for X Window System
2106
2107 Use these variables to override the choices made by `configure' or to help
2108 it to find libraries and programs with nonstandard names/locations.
2109
2110 Report bugs to the package provider.
2111 _ACEOF
2112 ac_status=$?
2113 fi
2114
2115 if test "$ac_init_help" = "recursive"; then
2116 # If there are subdirs, report their specific --help.
2117 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2118 test -d "$ac_dir" ||
2119 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2120 continue
2121 ac_builddir=.
2122
2123 case "$ac_dir" in
2124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2125 *)
2126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2127 # A ".." for each directory in $ac_dir_suffix.
2128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2129 case $ac_top_builddir_sub in
2130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2132 esac ;;
2133 esac
2134 ac_abs_top_builddir=$ac_pwd
2135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2136 # for backward compatibility:
2137 ac_top_builddir=$ac_top_build_prefix
2138
2139 case $srcdir in
2140 .) # We are building in place.
2141 ac_srcdir=.
2142 ac_top_srcdir=$ac_top_builddir_sub
2143 ac_abs_top_srcdir=$ac_pwd ;;
2144 [\\/]* | ?:[\\/]* ) # Absolute name.
2145 ac_srcdir=$srcdir$ac_dir_suffix;
2146 ac_top_srcdir=$srcdir
2147 ac_abs_top_srcdir=$srcdir ;;
2148 *) # Relative name.
2149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2150 ac_top_srcdir=$ac_top_build_prefix$srcdir
2151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2152 esac
2153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2154
2155 cd "$ac_dir" || { ac_status=$?; continue; }
2156 # Check for guested configure.
2157 if test -f "$ac_srcdir/configure.gnu"; then
2158 echo &&
2159 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2160 elif test -f "$ac_srcdir/configure"; then
2161 echo &&
2162 $SHELL "$ac_srcdir/configure" --help=recursive
2163 else
2164 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2165 fi || ac_status=$?
2166 cd "$ac_pwd" || { ac_status=$?; break; }
2167 done
2168 fi
2169
2170 test -n "$ac_init_help" && exit $ac_status
2171 if $ac_init_version; then
2172 cat <<\_ACEOF
2173 emacs configure 24.2.50
2174 generated by GNU Autoconf 2.65
2175
2176 Copyright (C) 2009 Free Software Foundation, Inc.
2177 This configure script is free software; the Free Software Foundation
2178 gives unlimited permission to copy, distribute and modify it.
2179 _ACEOF
2180 exit
2181 fi
2182
2183 ## ------------------------ ##
2184 ## Autoconf initialization. ##
2185 ## ------------------------ ##
2186
2187 # ac_fn_c_try_compile LINENO
2188 # --------------------------
2189 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2190 ac_fn_c_try_compile ()
2191 {
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 rm -f conftest.$ac_objext
2194 if { { ac_try="$ac_compile"
2195 case "(($ac_try" in
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2198 esac
2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_compile") 2>conftest.err
2202 ac_status=$?
2203 if test -s conftest.err; then
2204 grep -v '^ *+' conftest.err >conftest.er1
2205 cat conftest.er1 >&5
2206 mv -f conftest.er1 conftest.err
2207 fi
2208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; } && {
2210 test -z "$ac_c_werror_flag" ||
2211 test ! -s conftest.err
2212 } && test -s conftest.$ac_objext; then :
2213 ac_retval=0
2214 else
2215 $as_echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 ac_retval=1
2219 fi
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221 as_fn_set_status $ac_retval
2222
2223 } # ac_fn_c_try_compile
2224
2225 # ac_fn_c_try_cpp LINENO
2226 # ----------------------
2227 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2228 ac_fn_c_try_cpp ()
2229 {
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 if { { ac_try="$ac_cpp conftest.$ac_ext"
2232 case "(($ac_try" in
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2235 esac
2236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2237 $as_echo "$ac_try_echo"; } >&5
2238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2239 ac_status=$?
2240 if test -s conftest.err; then
2241 grep -v '^ *+' conftest.err >conftest.er1
2242 cat conftest.er1 >&5
2243 mv -f conftest.er1 conftest.err
2244 fi
2245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2246 test $ac_status = 0; } >/dev/null && {
2247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2248 test ! -s conftest.err
2249 }; then :
2250 ac_retval=0
2251 else
2252 $as_echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 ac_retval=1
2256 fi
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 as_fn_set_status $ac_retval
2259
2260 } # ac_fn_c_try_cpp
2261
2262 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2263 # -------------------------------------------------------
2264 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2265 # the include files in INCLUDES and setting the cache variable VAR
2266 # accordingly.
2267 ac_fn_c_check_header_mongrel ()
2268 {
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2272 $as_echo_n "checking for $2... " >&6; }
2273 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2274 $as_echo_n "(cached) " >&6
2275 fi
2276 eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 else
2280 # Is the header compilable?
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2282 $as_echo_n "checking $2 usability... " >&6; }
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 $4
2286 #include <$2>
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 ac_header_compiler=yes
2290 else
2291 ac_header_compiler=no
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2295 $as_echo "$ac_header_compiler" >&6; }
2296
2297 # Is the header present?
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2299 $as_echo_n "checking $2 presence... " >&6; }
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 #include <$2>
2303 _ACEOF
2304 if ac_fn_c_try_cpp "$LINENO"; then :
2305 ac_header_preproc=yes
2306 else
2307 ac_header_preproc=no
2308 fi
2309 rm -f conftest.err conftest.$ac_ext
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2311 $as_echo "$ac_header_preproc" >&6; }
2312
2313 # So? What about this header?
2314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2315 yes:no: )
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2317 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2319 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2320 ;;
2321 no:yes:* )
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2323 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2325 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2327 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2329 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2331 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2332 ;;
2333 esac
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 eval "$3=\$ac_header_compiler"
2340 fi
2341 eval ac_res=\$$3
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 fi
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346
2347 } # ac_fn_c_check_header_mongrel
2348
2349 # ac_fn_c_try_run LINENO
2350 # ----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2352 # that executables *can* be run.
2353 ac_fn_c_try_run ()
2354 {
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 if { { ac_try="$ac_link"
2357 case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360 esac
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>&5
2364 ac_status=$?
2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2367 { { case "(($ac_try" in
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2370 esac
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_try") 2>&5
2374 ac_status=$?
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; }; }; then :
2377 ac_retval=0
2378 else
2379 $as_echo "$as_me: program exited with status $ac_status" >&5
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=$ac_status
2384 fi
2385 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387 as_fn_set_status $ac_retval
2388
2389 } # ac_fn_c_try_run
2390
2391 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2392 # -------------------------------------------------------
2393 # Tests whether HEADER exists and can be compiled using the include files in
2394 # INCLUDES, setting the cache variable VAR accordingly.
2395 ac_fn_c_check_header_compile ()
2396 {
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $4
2406 #include <$2>
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409 eval "$3=yes"
2410 else
2411 eval "$3=no"
2412 fi
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 fi
2415 eval ac_res=\$$3
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2418 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2419
2420 } # ac_fn_c_check_header_compile
2421
2422 # ac_fn_c_try_link LINENO
2423 # -----------------------
2424 # Try to link conftest.$ac_ext, and return whether this succeeded.
2425 ac_fn_c_try_link ()
2426 {
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 rm -f conftest.$ac_objext conftest$ac_exeext
2429 if { { ac_try="$ac_link"
2430 case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2433 esac
2434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435 $as_echo "$ac_try_echo"; } >&5
2436 (eval "$ac_link") 2>conftest.err
2437 ac_status=$?
2438 if test -s conftest.err; then
2439 grep -v '^ *+' conftest.err >conftest.er1
2440 cat conftest.er1 >&5
2441 mv -f conftest.er1 conftest.err
2442 fi
2443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2444 test $ac_status = 0; } && {
2445 test -z "$ac_c_werror_flag" ||
2446 test ! -s conftest.err
2447 } && test -s conftest$ac_exeext && {
2448 test "$cross_compiling" = yes ||
2449 $as_test_x conftest$ac_exeext
2450 }; then :
2451 ac_retval=0
2452 else
2453 $as_echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 ac_retval=1
2457 fi
2458 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2459 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2460 # interfere with the next link command; also delete a directory that is
2461 # left behind by Apple's compiler. We do this before executing the actions.
2462 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2463 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2464 as_fn_set_status $ac_retval
2465
2466 } # ac_fn_c_try_link
2467
2468 # ac_fn_c_check_decl LINENO SYMBOL VAR
2469 # ------------------------------------
2470 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2471 ac_fn_c_check_decl ()
2472 {
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2475 $as_echo_n "checking whether $2 is declared... " >&6; }
2476 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2481 $4
2482 int
2483 main ()
2484 {
2485 #ifndef $2
2486 (void) $2;
2487 #endif
2488
2489 ;
2490 return 0;
2491 }
2492 _ACEOF
2493 if ac_fn_c_try_compile "$LINENO"; then :
2494 eval "$3=yes"
2495 else
2496 eval "$3=no"
2497 fi
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 fi
2500 eval ac_res=\$$3
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2502 $as_echo "$ac_res" >&6; }
2503 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2504
2505 } # ac_fn_c_check_decl
2506
2507 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2508 # ----------------------------------------------
2509 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2510 ac_fn_c_check_header_preproc ()
2511 {
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2516 $as_echo_n "(cached) " >&6
2517 else
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2520 #include <$2>
2521 _ACEOF
2522 if ac_fn_c_try_cpp "$LINENO"; then :
2523 eval "$3=yes"
2524 else
2525 eval "$3=no"
2526 fi
2527 rm -f conftest.err conftest.$ac_ext
2528 fi
2529 eval ac_res=\$$3
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533
2534 } # ac_fn_c_check_header_preproc
2535
2536 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2537 # ----------------------------------------------------
2538 # Tries to find if the field MEMBER exists in type AGGR, after including
2539 # INCLUDES, setting cache variable VAR accordingly.
2540 ac_fn_c_check_member ()
2541 {
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2544 $as_echo_n "checking for $2.$3... " >&6; }
2545 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2550 $5
2551 int
2552 main ()
2553 {
2554 static $2 ac_aggr;
2555 if (ac_aggr.$3)
2556 return 0;
2557 ;
2558 return 0;
2559 }
2560 _ACEOF
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562 eval "$4=yes"
2563 else
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2566 $5
2567 int
2568 main ()
2569 {
2570 static $2 ac_aggr;
2571 if (sizeof ac_aggr.$3)
2572 return 0;
2573 ;
2574 return 0;
2575 }
2576 _ACEOF
2577 if ac_fn_c_try_compile "$LINENO"; then :
2578 eval "$4=yes"
2579 else
2580 eval "$4=no"
2581 fi
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 fi
2586 eval ac_res=\$$4
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2590
2591 } # ac_fn_c_check_member
2592
2593 # ac_fn_c_check_func LINENO FUNC VAR
2594 # ----------------------------------
2595 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2596 ac_fn_c_check_func ()
2597 {
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 $as_echo_n "checking for $2... " >&6; }
2601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2606 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2608 #define $2 innocuous_$2
2609
2610 /* System header to define __stub macros and hopefully few prototypes,
2611 which can conflict with char $2 (); below.
2612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2613 <limits.h> exists even on freestanding compilers. */
2614
2615 #ifdef __STDC__
2616 # include <limits.h>
2617 #else
2618 # include <assert.h>
2619 #endif
2620
2621 #undef $2
2622
2623 /* Override any GCC internal prototype to avoid an error.
2624 Use char because int might match the return type of a GCC
2625 builtin and then its argument prototype would still apply. */
2626 #ifdef __cplusplus
2627 extern "C"
2628 #endif
2629 char $2 ();
2630 /* The GNU C library defines this for functions which it implements
2631 to always fail with ENOSYS. Some functions are actually named
2632 something starting with __ and the normal name is an alias. */
2633 #if defined __stub_$2 || defined __stub___$2
2634 choke me
2635 #endif
2636
2637 int
2638 main ()
2639 {
2640 return $2 ();
2641 ;
2642 return 0;
2643 }
2644 _ACEOF
2645 if ac_fn_c_try_link "$LINENO"; then :
2646 eval "$3=yes"
2647 else
2648 eval "$3=no"
2649 fi
2650 rm -f core conftest.err conftest.$ac_objext \
2651 conftest$ac_exeext conftest.$ac_ext
2652 fi
2653 eval ac_res=\$$3
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2655 $as_echo "$ac_res" >&6; }
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2657
2658 } # ac_fn_c_check_func
2659
2660 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2661 # -------------------------------------------
2662 # Tests whether TYPE exists after having included INCLUDES, setting cache
2663 # variable VAR accordingly.
2664 ac_fn_c_check_type ()
2665 {
2666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2668 $as_echo_n "checking for $2... " >&6; }
2669 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 eval "$3=no"
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2675 $4
2676 int
2677 main ()
2678 {
2679 if (sizeof ($2))
2680 return 0;
2681 ;
2682 return 0;
2683 }
2684 _ACEOF
2685 if ac_fn_c_try_compile "$LINENO"; then :
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h. */
2688 $4
2689 int
2690 main ()
2691 {
2692 if (sizeof (($2)))
2693 return 0;
2694 ;
2695 return 0;
2696 }
2697 _ACEOF
2698 if ac_fn_c_try_compile "$LINENO"; then :
2699
2700 else
2701 eval "$3=yes"
2702 fi
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 fi
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 fi
2707 eval ac_res=\$$3
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2709 $as_echo "$ac_res" >&6; }
2710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2711
2712 } # ac_fn_c_check_type
2713
2714 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2715 # --------------------------------------------
2716 # Tries to find the compile-time value of EXPR in a program that includes
2717 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2718 # computed
2719 ac_fn_c_compute_int ()
2720 {
2721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2722 if test "$cross_compiling" = yes; then
2723 # Depending upon the size, compute the lo and hi bounds.
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2726 $4
2727 int
2728 main ()
2729 {
2730 static int test_array [1 - 2 * !(($2) >= 0)];
2731 test_array [0] = 0
2732
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 if ac_fn_c_try_compile "$LINENO"; then :
2738 ac_lo=0 ac_mid=0
2739 while :; do
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2742 $4
2743 int
2744 main ()
2745 {
2746 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2747 test_array [0] = 0
2748
2749 ;
2750 return 0;
2751 }
2752 _ACEOF
2753 if ac_fn_c_try_compile "$LINENO"; then :
2754 ac_hi=$ac_mid; break
2755 else
2756 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2757 if test $ac_lo -le $ac_mid; then
2758 ac_lo= ac_hi=
2759 break
2760 fi
2761 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2762 fi
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 done
2765 else
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2768 $4
2769 int
2770 main ()
2771 {
2772 static int test_array [1 - 2 * !(($2) < 0)];
2773 test_array [0] = 0
2774
2775 ;
2776 return 0;
2777 }
2778 _ACEOF
2779 if ac_fn_c_try_compile "$LINENO"; then :
2780 ac_hi=-1 ac_mid=-1
2781 while :; do
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2784 $4
2785 int
2786 main ()
2787 {
2788 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2789 test_array [0] = 0
2790
2791 ;
2792 return 0;
2793 }
2794 _ACEOF
2795 if ac_fn_c_try_compile "$LINENO"; then :
2796 ac_lo=$ac_mid; break
2797 else
2798 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2799 if test $ac_mid -le $ac_hi; then
2800 ac_lo= ac_hi=
2801 break
2802 fi
2803 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2804 fi
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 done
2807 else
2808 ac_lo= ac_hi=
2809 fi
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 fi
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 # Binary search between lo and hi bounds.
2814 while test "x$ac_lo" != "x$ac_hi"; do
2815 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2818 $4
2819 int
2820 main ()
2821 {
2822 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2823 test_array [0] = 0
2824
2825 ;
2826 return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_hi=$ac_mid
2831 else
2832 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2833 fi
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835 done
2836 case $ac_lo in #((
2837 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2838 '') ac_retval=1 ;;
2839 esac
2840 else
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2843 $4
2844 static long int longval () { return $2; }
2845 static unsigned long int ulongval () { return $2; }
2846 #include <stdio.h>
2847 #include <stdlib.h>
2848 int
2849 main ()
2850 {
2851
2852 FILE *f = fopen ("conftest.val", "w");
2853 if (! f)
2854 return 1;
2855 if (($2) < 0)
2856 {
2857 long int i = longval ();
2858 if (i != ($2))
2859 return 1;
2860 fprintf (f, "%ld", i);
2861 }
2862 else
2863 {
2864 unsigned long int i = ulongval ();
2865 if (i != ($2))
2866 return 1;
2867 fprintf (f, "%lu", i);
2868 }
2869 /* Do not output a trailing newline, as this causes \r\n confusion
2870 on some platforms. */
2871 return ferror (f) || fclose (f) != 0;
2872
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 if ac_fn_c_try_run "$LINENO"; then :
2878 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2879 else
2880 ac_retval=1
2881 fi
2882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2883 conftest.$ac_objext conftest.beam conftest.$ac_ext
2884 rm -f conftest.val
2885
2886 fi
2887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2888 as_fn_set_status $ac_retval
2889
2890 } # ac_fn_c_compute_int
2891 cat >config.log <<_ACEOF
2892 This file contains any messages produced by compilers while
2893 running configure, to aid debugging if configure makes a mistake.
2894
2895 It was created by emacs $as_me 24.2.50, which was
2896 generated by GNU Autoconf 2.65. Invocation command line was
2897
2898 $ $0 $@
2899
2900 _ACEOF
2901 exec 5>>config.log
2902 {
2903 cat <<_ASUNAME
2904 ## --------- ##
2905 ## Platform. ##
2906 ## --------- ##
2907
2908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2913
2914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2916
2917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2920 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2924
2925 _ASUNAME
2926
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 $as_echo "PATH: $as_dir"
2933 done
2934 IFS=$as_save_IFS
2935
2936 } >&5
2937
2938 cat >&5 <<_ACEOF
2939
2940
2941 ## ----------- ##
2942 ## Core tests. ##
2943 ## ----------- ##
2944
2945 _ACEOF
2946
2947
2948 # Keep a trace of the command line.
2949 # Strip out --no-create and --no-recursion so they do not pile up.
2950 # Strip out --silent because we don't want to record it for future runs.
2951 # Also quote any args containing shell meta-characters.
2952 # Make two passes to allow for proper duplicate-argument suppression.
2953 ac_configure_args=
2954 ac_configure_args0=
2955 ac_configure_args1=
2956 ac_must_keep_next=false
2957 for ac_pass in 1 2
2958 do
2959 for ac_arg
2960 do
2961 case $ac_arg in
2962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2964 | -silent | --silent | --silen | --sile | --sil)
2965 continue ;;
2966 *\'*)
2967 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2968 esac
2969 case $ac_pass in
2970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2971 2)
2972 as_fn_append ac_configure_args1 " '$ac_arg'"
2973 if test $ac_must_keep_next = true; then
2974 ac_must_keep_next=false # Got value, back to normal.
2975 else
2976 case $ac_arg in
2977 *=* | --config-cache | -C | -disable-* | --disable-* \
2978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2980 | -with-* | --with-* | -without-* | --without-* | --x)
2981 case "$ac_configure_args0 " in
2982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2983 esac
2984 ;;
2985 -* ) ac_must_keep_next=true ;;
2986 esac
2987 fi
2988 as_fn_append ac_configure_args " '$ac_arg'"
2989 ;;
2990 esac
2991 done
2992 done
2993 { ac_configure_args0=; unset ac_configure_args0;}
2994 { ac_configure_args1=; unset ac_configure_args1;}
2995
2996 # When interrupted or exit'd, cleanup temporary files, and complete
2997 # config.log. We remove comments because anyway the quotes in there
2998 # would cause problems or look ugly.
2999 # WARNING: Use '\'' to represent an apostrophe within the trap.
3000 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3001 trap 'exit_status=$?
3002 # Save into config.log some information that might help in debugging.
3003 {
3004 echo
3005
3006 cat <<\_ASBOX
3007 ## ---------------- ##
3008 ## Cache variables. ##
3009 ## ---------------- ##
3010 _ASBOX
3011 echo
3012 # The following way of writing the cache mishandles newlines in values,
3013 (
3014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3015 eval ac_val=\$$ac_var
3016 case $ac_val in #(
3017 *${as_nl}*)
3018 case $ac_var in #(
3019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3020 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3021 esac
3022 case $ac_var in #(
3023 _ | IFS | as_nl) ;; #(
3024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3025 *) { eval $ac_var=; unset $ac_var;} ;;
3026 esac ;;
3027 esac
3028 done
3029 (set) 2>&1 |
3030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3031 *${as_nl}ac_space=\ *)
3032 sed -n \
3033 "s/'\''/'\''\\\\'\'''\''/g;
3034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3035 ;; #(
3036 *)
3037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3038 ;;
3039 esac |
3040 sort
3041 )
3042 echo
3043
3044 cat <<\_ASBOX
3045 ## ----------------- ##
3046 ## Output variables. ##
3047 ## ----------------- ##
3048 _ASBOX
3049 echo
3050 for ac_var in $ac_subst_vars
3051 do
3052 eval ac_val=\$$ac_var
3053 case $ac_val in
3054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3055 esac
3056 $as_echo "$ac_var='\''$ac_val'\''"
3057 done | sort
3058 echo
3059
3060 if test -n "$ac_subst_files"; then
3061 cat <<\_ASBOX
3062 ## ------------------- ##
3063 ## File substitutions. ##
3064 ## ------------------- ##
3065 _ASBOX
3066 echo
3067 for ac_var in $ac_subst_files
3068 do
3069 eval ac_val=\$$ac_var
3070 case $ac_val in
3071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3072 esac
3073 $as_echo "$ac_var='\''$ac_val'\''"
3074 done | sort
3075 echo
3076 fi
3077
3078 if test -s confdefs.h; then
3079 cat <<\_ASBOX
3080 ## ----------- ##
3081 ## confdefs.h. ##
3082 ## ----------- ##
3083 _ASBOX
3084 echo
3085 cat confdefs.h
3086 echo
3087 fi
3088 test "$ac_signal" != 0 &&
3089 $as_echo "$as_me: caught signal $ac_signal"
3090 $as_echo "$as_me: exit $exit_status"
3091 } >&5
3092 rm -f core *.core core.conftest.* &&
3093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3094 exit $exit_status
3095 ' 0
3096 for ac_signal in 1 2 13 15; do
3097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3098 done
3099 ac_signal=0
3100
3101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3102 rm -f -r conftest* confdefs.h
3103
3104 $as_echo "/* confdefs.h */" > confdefs.h
3105
3106 # Predefined preprocessor variables.
3107
3108 cat >>confdefs.h <<_ACEOF
3109 #define PACKAGE_NAME "$PACKAGE_NAME"
3110 _ACEOF
3111
3112 cat >>confdefs.h <<_ACEOF
3113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3114 _ACEOF
3115
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3118 _ACEOF
3119
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE_STRING "$PACKAGE_STRING"
3122 _ACEOF
3123
3124 cat >>confdefs.h <<_ACEOF
3125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3126 _ACEOF
3127
3128 cat >>confdefs.h <<_ACEOF
3129 #define PACKAGE_URL "$PACKAGE_URL"
3130 _ACEOF
3131
3132
3133 # Let the site file select an alternate cache file if it wants to.
3134 # Prefer an explicitly selected file to automatically selected ones.
3135 ac_site_file1=NONE
3136 ac_site_file2=NONE
3137 if test -n "$CONFIG_SITE"; then
3138 ac_site_file1=$CONFIG_SITE
3139 elif test "x$prefix" != xNONE; then
3140 ac_site_file1=$prefix/share/config.site
3141 ac_site_file2=$prefix/etc/config.site
3142 else
3143 ac_site_file1=$ac_default_prefix/share/config.site
3144 ac_site_file2=$ac_default_prefix/etc/config.site
3145 fi
3146 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3147 do
3148 test "x$ac_site_file" = xNONE && continue
3149 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3151 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3152 sed 's/^/| /' "$ac_site_file" >&5
3153 . "$ac_site_file"
3154 fi
3155 done
3156
3157 if test -r "$cache_file"; then
3158 # Some versions of bash will fail to source /dev/null (special files
3159 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3160 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3162 $as_echo "$as_me: loading cache $cache_file" >&6;}
3163 case $cache_file in
3164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3165 *) . "./$cache_file";;
3166 esac
3167 fi
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3170 $as_echo "$as_me: creating cache $cache_file" >&6;}
3171 >$cache_file
3172 fi
3173
3174 as_fn_append ac_header_list " linux/version.h"
3175 as_fn_append ac_header_list " sys/systeminfo.h"
3176 as_fn_append ac_header_list " stdio_ext.h"
3177 as_fn_append ac_header_list " fcntl.h"
3178 as_fn_append ac_header_list " coff.h"
3179 as_fn_append ac_header_list " pty.h"
3180 as_fn_append ac_header_list " sys/vlimit.h"
3181 as_fn_append ac_header_list " sys/resource.h"
3182 as_fn_append ac_header_list " sys/utsname.h"
3183 as_fn_append ac_header_list " pwd.h"
3184 as_fn_append ac_header_list " utmp.h"
3185 as_fn_append ac_header_list " dirent.h"
3186 as_fn_append ac_header_list " util.h"
3187 as_fn_append ac_header_list " sys/socket.h"
3188 as_fn_append ac_header_list " stdlib.h"
3189 as_fn_append ac_header_list " unistd.h"
3190 as_fn_append ac_header_list " sys/param.h"
3191 as_fn_append ac_header_list " pthread.h"
3192 as_fn_append ac_header_list " malloc/malloc.h"
3193 as_fn_append ac_header_list " maillock.h"
3194 as_fn_append ac_header_list " sys/un.h"
3195 as_fn_append ac_func_list " tzset"
3196 as_fn_append ac_func_list " readlinkat"
3197 gl_getopt_required=GNU
3198 as_fn_append ac_header_list " getopt.h"
3199 as_fn_append ac_func_list " gettimeofday"
3200 as_fn_append ac_func_list " nanotime"
3201 as_fn_append ac_header_list " sys/time.h"
3202 as_fn_append ac_header_list " wchar.h"
3203 as_fn_append ac_header_list " stdint.h"
3204 as_fn_append ac_header_list " inttypes.h"
3205 as_fn_append ac_func_list " lstat"
3206 as_fn_append ac_func_list " alarm"
3207 as_fn_append ac_header_list " sys/select.h"
3208 as_fn_append ac_func_list " pselect"
3209 as_fn_append ac_func_list " pthread_sigmask"
3210 as_fn_append ac_func_list " readlink"
3211 as_fn_append ac_func_list " strtoimax"
3212 as_fn_append ac_func_list " strtoumax"
3213 as_fn_append ac_func_list " symlink"
3214 as_fn_append ac_header_list " sys/stat.h"
3215 as_fn_append ac_func_list " localtime_r"
3216 as_fn_append ac_header_list " utime.h"
3217 as_fn_append ac_func_list " futimes"
3218 as_fn_append ac_func_list " futimesat"
3219 as_fn_append ac_func_list " futimens"
3220 as_fn_append ac_func_list " utimensat"
3221 as_fn_append ac_func_list " lutimes"
3222 # Check that the precious variables saved in the cache have kept the same
3223 # value.
3224 ac_cache_corrupted=false
3225 for ac_var in $ac_precious_vars; do
3226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3227 eval ac_new_set=\$ac_env_${ac_var}_set
3228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3229 eval ac_new_val=\$ac_env_${ac_var}_value
3230 case $ac_old_set,$ac_new_set in
3231 set,)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3234 ac_cache_corrupted=: ;;
3235 ,set)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3238 ac_cache_corrupted=: ;;
3239 ,);;
3240 *)
3241 if test "x$ac_old_val" != "x$ac_new_val"; then
3242 # differences in whitespace do not lead to failure.
3243 ac_old_val_w=`echo x $ac_old_val`
3244 ac_new_val_w=`echo x $ac_new_val`
3245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3248 ac_cache_corrupted=:
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3252 eval $ac_var=\$ac_old_val
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3255 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3258 fi;;
3259 esac
3260 # Pass precious variables to config.status.
3261 if test "$ac_new_set" = set; then
3262 case $ac_new_val in
3263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3264 *) ac_arg=$ac_var=$ac_new_val ;;
3265 esac
3266 case " $ac_configure_args " in
3267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3269 esac
3270 fi
3271 done
3272 if $ac_cache_corrupted; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3277 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3278 fi
3279 ## -------------------- ##
3280 ## Main body of script. ##
3281 ## -------------------- ##
3282
3283 ac_ext=c
3284 ac_cpp='$CPP $CPPFLAGS'
3285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288
3289
3290 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3291
3292
3293 ac_aux_dir=
3294 for ac_dir in build-aux "$srcdir"/build-aux; do
3295 for ac_t in install-sh install.sh shtool; do
3296 if test -f "$ac_dir/$ac_t"; then
3297 ac_aux_dir=$ac_dir
3298 ac_install_sh="$ac_aux_dir/$ac_t -c"
3299 break 2
3300 fi
3301 done
3302 done
3303 if test -z "$ac_aux_dir"; then
3304 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3305 fi
3306
3307 # These three variables are undocumented and unsupported,
3308 # and are intended to be withdrawn in a future Autoconf release.
3309 # They can cause serious problems if a builder's source tree is in a directory
3310 # whose full name contains unusual characters.
3311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3314
3315
3316 am__api_version='1.11'
3317
3318 # Find a good install program. We prefer a C program (faster),
3319 # so one script is as good as another. But avoid the broken or
3320 # incompatible versions:
3321 # SysV /etc/install, /usr/sbin/install
3322 # SunOS /usr/etc/install
3323 # IRIX /sbin/install
3324 # AIX /bin/install
3325 # AmigaOS /C/install, which installs bootblocks on floppy discs
3326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3329 # OS/2's system install, which has a completely different semantic
3330 # ./install, which can be erroneously created by make from ./install.sh.
3331 # Reject install programs that cannot install multiple files.
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3333 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3334 if test -z "$INSTALL"; then
3335 if test "${ac_cv_path_install+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 # Account for people who put trailing slashes in PATH elements.
3344 case $as_dir/ in #((
3345 ./ | .// | /[cC]/* | \
3346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3348 /usr/ucb/* ) ;;
3349 *)
3350 # OSF1 and SCO ODT 3.0 have their own names for install.
3351 # Don't use installbsd from OSF since it installs stuff as root
3352 # by default.
3353 for ac_prog in ginstall scoinst install; do
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3356 if test $ac_prog = install &&
3357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3358 # AIX install. It has an incompatible calling convention.
3359 :
3360 elif test $ac_prog = install &&
3361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3362 # program-specific install script used by HP pwplus--don't use.
3363 :
3364 else
3365 rm -rf conftest.one conftest.two conftest.dir
3366 echo one > conftest.one
3367 echo two > conftest.two
3368 mkdir conftest.dir
3369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3370 test -s conftest.one && test -s conftest.two &&
3371 test -s conftest.dir/conftest.one &&
3372 test -s conftest.dir/conftest.two
3373 then
3374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3375 break 3
3376 fi
3377 fi
3378 fi
3379 done
3380 done
3381 ;;
3382 esac
3383
3384 done
3385 IFS=$as_save_IFS
3386
3387 rm -rf conftest.one conftest.two conftest.dir
3388
3389 fi
3390 if test "${ac_cv_path_install+set}" = set; then
3391 INSTALL=$ac_cv_path_install
3392 else
3393 # As a last resort, use the slow shell script. Don't cache a
3394 # value for INSTALL within a source directory, because that will
3395 # break other packages using the cache if that directory is
3396 # removed, or if the value is a relative name.
3397 INSTALL=$ac_install_sh
3398 fi
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3401 $as_echo "$INSTALL" >&6; }
3402
3403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3404 # It thinks the first close brace ends the variable substitution.
3405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3406
3407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3408
3409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3410
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3412 $as_echo_n "checking whether build environment is sane... " >&6; }
3413 # Just in case
3414 sleep 1
3415 echo timestamp > conftest.file
3416 # Reject unsafe characters in $srcdir or the absolute working directory
3417 # name. Accept space and tab only in the latter.
3418 am_lf='
3419 '
3420 case `pwd` in
3421 *[\\\"\#\$\&\'\`$am_lf]*)
3422 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3423 esac
3424 case $srcdir in
3425 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3426 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3427 esac
3428
3429 # Do `set' in a subshell so we don't clobber the current shell's
3430 # arguments. Must try -L first in case configure is actually a
3431 # symlink; some systems play weird games with the mod time of symlinks
3432 # (eg FreeBSD returns the mod time of the symlink's containing
3433 # directory).
3434 if (
3435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3436 if test "$*" = "X"; then
3437 # -L didn't work.
3438 set X `ls -t "$srcdir/configure" conftest.file`
3439 fi
3440 rm -f conftest.file
3441 if test "$*" != "X $srcdir/configure conftest.file" \
3442 && test "$*" != "X conftest.file $srcdir/configure"; then
3443
3444 # If neither matched, then we have a broken ls. This can happen
3445 # if, for instance, CONFIG_SHELL is bash and it inherits a
3446 # broken ls alias from the environment. This has actually
3447 # happened. Such a system could not be considered "sane".
3448 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3449 alias in your environment" "$LINENO" 5
3450 fi
3451
3452 test "$2" = conftest.file
3453 )
3454 then
3455 # Ok.
3456 :
3457 else
3458 as_fn_error "newly created file is older than distributed files!
3459 Check your system clock" "$LINENO" 5
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3463 test "$program_prefix" != NONE &&
3464 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3465 # Use a double $ so make ignores it.
3466 test "$program_suffix" != NONE &&
3467 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3468 # Double any \ or $.
3469 # By default was `s,x,x', remove it if useless.
3470 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3471 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3472
3473 # expand $ac_aux_dir to an absolute path
3474 am_aux_dir=`cd $ac_aux_dir && pwd`
3475
3476 if test x"${MISSING+set}" != xset; then
3477 case $am_aux_dir in
3478 *\ * | *\ *)
3479 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3480 *)
3481 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3482 esac
3483 fi
3484 # Use eval to expand $SHELL
3485 if eval "$MISSING --run true"; then
3486 am_missing_run="$MISSING --run "
3487 else
3488 am_missing_run=
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3490 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3491 fi
3492
3493 if test x"${install_sh}" != xset; then
3494 case $am_aux_dir in
3495 *\ * | *\ *)
3496 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3497 *)
3498 install_sh="\${SHELL} $am_aux_dir/install-sh"
3499 esac
3500 fi
3501
3502 # Installed binaries are usually stripped using `strip' when the user
3503 # run `make install-strip'. However `strip' might not be the right
3504 # tool to use in cross-compilation environments, therefore Automake
3505 # will honor the `STRIP' environment variable to overrule this program.
3506 if test "$cross_compiling" != no; then
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}strip; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_STRIP+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$STRIP"; then
3516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 STRIP=$ac_cv_prog_STRIP
3536 if test -n "$STRIP"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3538 $as_echo "$STRIP" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544
3545 fi
3546 if test -z "$ac_cv_prog_STRIP"; then
3547 ac_ct_STRIP=$STRIP
3548 # Extract the first word of "strip", so it can be a program name with args.
3549 set dummy strip; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$ac_ct_STRIP"; then
3556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_ac_ct_STRIP="strip"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3576 if test -n "$ac_ct_STRIP"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3578 $as_echo "$ac_ct_STRIP" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584 if test "x$ac_ct_STRIP" = x; then
3585 STRIP=":"
3586 else
3587 case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 STRIP=$ac_ct_STRIP
3594 fi
3595 else
3596 STRIP="$ac_cv_prog_STRIP"
3597 fi
3598
3599 fi
3600 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3601
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3603 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3604 if test -z "$MKDIR_P"; then
3605 if test "${ac_cv_path_mkdir+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_prog in mkdir gmkdir; do
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3616 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3617 'mkdir (GNU coreutils) '* | \
3618 'mkdir (coreutils) '* | \
3619 'mkdir (fileutils) '4.1*)
3620 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3621 break 3;;
3622 esac
3623 done
3624 done
3625 done
3626 IFS=$as_save_IFS
3627
3628 fi
3629
3630 test -d ./--version && rmdir ./--version
3631 if test "${ac_cv_path_mkdir+set}" = set; then
3632 MKDIR_P="$ac_cv_path_mkdir -p"
3633 else
3634 # As a last resort, use the slow shell script. Don't cache a
3635 # value for MKDIR_P within a source directory, because that will
3636 # break other packages using the cache if that directory is
3637 # removed, or if the value is a relative name.
3638 MKDIR_P="$ac_install_sh -d"
3639 fi
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3642 $as_echo "$MKDIR_P" >&6; }
3643
3644
3645 mkdir_p="$MKDIR_P"
3646 case $mkdir_p in
3647 [\\/$]* | ?:[\\/]*) ;;
3648 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3649 esac
3650
3651 for ac_prog in gawk mawk nawk awk
3652 do
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy $ac_prog; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if test "${ac_cv_prog_AWK+set}" = set; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 if test -n "$AWK"; then
3661 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 ac_cv_prog_AWK="$ac_prog"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 fi
3679 fi
3680 AWK=$ac_cv_prog_AWK
3681 if test -n "$AWK"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3683 $as_echo "$AWK" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 fi
3688
3689
3690 test -n "$AWK" && break
3691 done
3692
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3694 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3695 set x ${MAKE-make}
3696 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3697 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 cat >conftest.make <<\_ACEOF
3701 SHELL = /bin/sh
3702 all:
3703 @echo '@@@%%%=$(MAKE)=@@@%%%'
3704 _ACEOF
3705 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3706 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3707 *@@@%%%=?*=@@@%%%*)
3708 eval ac_cv_prog_make_${ac_make}_set=yes;;
3709 *)
3710 eval ac_cv_prog_make_${ac_make}_set=no;;
3711 esac
3712 rm -f conftest.make
3713 fi
3714 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3717 SET_MAKE=
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 SET_MAKE="MAKE=${MAKE-make}"
3722 fi
3723
3724 rm -rf .tst 2>/dev/null
3725 mkdir .tst 2>/dev/null
3726 if test -d .tst; then
3727 am__leading_dot=.
3728 else
3729 am__leading_dot=_
3730 fi
3731 rmdir .tst 2>/dev/null
3732
3733 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3734 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3735 # is not polluted with repeated "-I."
3736 am__isrc=' -I$(srcdir)'
3737 # test to see if srcdir already configured
3738 if test -f $srcdir/config.status; then
3739 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3740 fi
3741 fi
3742
3743 # test whether we have cygpath
3744 if test -z "$CYGPATH_W"; then
3745 if (cygpath --version) >/dev/null 2>/dev/null; then
3746 CYGPATH_W='cygpath -w'
3747 else
3748 CYGPATH_W=echo
3749 fi
3750 fi
3751
3752
3753 # Define the identity of the package.
3754 PACKAGE='emacs'
3755 VERSION='24.2.50'
3756
3757
3758 cat >>confdefs.h <<_ACEOF
3759 #define PACKAGE "$PACKAGE"
3760 _ACEOF
3761
3762
3763 cat >>confdefs.h <<_ACEOF
3764 #define VERSION "$VERSION"
3765 _ACEOF
3766
3767 # Some tools Automake needs.
3768
3769 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3770
3771
3772 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3773
3774
3775 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3776
3777
3778 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3779
3780
3781 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3782
3783 # We need awk for the "check" target. The system "awk" is bad on
3784 # some platforms.
3785 # Always define AMTAR for backward compatibility.
3786
3787 AMTAR=${AMTAR-"${am_missing_run}tar"}
3788
3789 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3790
3791
3792
3793
3794
3795
3796
3797
3798 lispdir='${datadir}/emacs/${version}/lisp'
3799 leimdir='${datadir}/emacs/${version}/leim'
3800 standardlisppath='${lispdir}:${leimdir}'
3801 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3802 '${datadir}/emacs/site-lisp'
3803 lisppath='${locallisppath}:${standardlisppath}'
3804 etcdir='${datadir}/emacs/${version}/etc'
3805 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3806 docdir='${datadir}/emacs/${version}/etc'
3807 gamedir='${localstatedir}/games/emacs'
3808
3809
3810 # Check whether --with-all was given.
3811 if test "${with_all+set}" = set; then :
3812 withval=$with_all; with_features=$withval
3813 else
3814 with_features=yes
3815 fi
3816
3817
3818
3819
3820
3821 # Check whether --with-pop was given.
3822 if test "${with_pop+set}" = set; then :
3823 withval=$with_pop;
3824 else
3825 with_pop=$with_features
3826 fi
3827
3828 if test "$with_pop" = yes; then
3829 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3830
3831 fi
3832
3833
3834 # Check whether --with-kerberos was given.
3835 if test "${with_kerberos+set}" = set; then :
3836 withval=$with_kerberos;
3837 else
3838 with_kerberos=no
3839 fi
3840
3841 if test "$with_kerberos" != no; then
3842 $as_echo "#define KERBEROS 1" >>confdefs.h
3843
3844 fi
3845
3846
3847 # Check whether --with-kerberos5 was given.
3848 if test "${with_kerberos5+set}" = set; then :
3849 withval=$with_kerberos5;
3850 else
3851 with_kerberos5=no
3852 fi
3853
3854 if test "${with_kerberos5}" != no; then
3855 if test "${with_kerberos}" = no; then
3856 with_kerberos=yes
3857 $as_echo "#define KERBEROS 1" >>confdefs.h
3858
3859 fi
3860
3861 $as_echo "#define KERBEROS5 1" >>confdefs.h
3862
3863 fi
3864
3865
3866 # Check whether --with-hesiod was given.
3867 if test "${with_hesiod+set}" = set; then :
3868 withval=$with_hesiod;
3869 else
3870 with_hesiod=no
3871 fi
3872
3873 if test "$with_hesiod" != no; then
3874
3875 $as_echo "#define HESIOD 1" >>confdefs.h
3876
3877 fi
3878
3879
3880 # Check whether --with-mmdf was given.
3881 if test "${with_mmdf+set}" = set; then :
3882 withval=$with_mmdf;
3883 else
3884 with_mmdf=no
3885 fi
3886
3887 if test "$with_mmdf" != no; then
3888
3889 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3890
3891 fi
3892
3893
3894 # Check whether --with-mail-unlink was given.
3895 if test "${with_mail_unlink+set}" = set; then :
3896 withval=$with_mail_unlink;
3897 else
3898 with_mail_unlink=no
3899 fi
3900
3901 if test "$with_mail_unlink" != no; then
3902
3903 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3904
3905 fi
3906
3907
3908 # Check whether --with-mailhost was given.
3909 if test "${with_mailhost+set}" = set; then :
3910 withval=$with_mailhost;
3911 cat >>confdefs.h <<_ACEOF
3912 #define MAILHOST "$withval"
3913 _ACEOF
3914
3915 fi
3916
3917
3918
3919 # Check whether --with-sound was given.
3920 if test "${with_sound+set}" = set; then :
3921 withval=$with_sound;
3922 else
3923 with_sound=$with_features
3924 fi
3925
3926
3927
3928 # Check whether --with-sync-input was given.
3929 if test "${with_sync_input+set}" = set; then :
3930 withval=$with_sync_input;
3931 else
3932 with_sync_input=$with_features
3933 fi
3934
3935 if test "$with_sync_input" = yes; then
3936
3937 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3938
3939 fi
3940
3941
3942 # Check whether --with-x-toolkit was given.
3943 if test "${with_x_toolkit+set}" = set; then :
3944 withval=$with_x_toolkit; case "${withval}" in
3945 y | ye | yes ) val=gtk ;;
3946 n | no ) val=no ;;
3947 l | lu | luc | luci | lucid ) val=lucid ;;
3948 a | at | ath | athe | athen | athena ) val=athena ;;
3949 m | mo | mot | moti | motif ) val=motif ;;
3950 g | gt | gtk ) val=gtk ;;
3951 gtk3 ) val=gtk3 ;;
3952 * )
3953 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3954 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3955 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3956 ;;
3957 esac
3958 with_x_toolkit=$val
3959
3960 fi
3961
3962
3963
3964 # Check whether --with-wide-int was given.
3965 if test "${with_wide_int+set}" = set; then :
3966 withval=$with_wide_int;
3967 else
3968 with_wide_int=no
3969 fi
3970
3971 if test "$with_wide_int" = yes; then
3972
3973 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3974
3975 fi
3976
3977
3978 # Check whether --with-xpm was given.
3979 if test "${with_xpm+set}" = set; then :
3980 withval=$with_xpm;
3981 else
3982 with_xpm=$with_features
3983 fi
3984
3985
3986 # Check whether --with-jpeg was given.
3987 if test "${with_jpeg+set}" = set; then :
3988 withval=$with_jpeg;
3989 else
3990 with_jpeg=$with_features
3991 fi
3992
3993
3994 # Check whether --with-tiff was given.
3995 if test "${with_tiff+set}" = set; then :
3996 withval=$with_tiff;
3997 else
3998 with_tiff=$with_features
3999 fi
4000
4001
4002 # Check whether --with-gif was given.
4003 if test "${with_gif+set}" = set; then :
4004 withval=$with_gif;
4005 else
4006 with_gif=$with_features
4007 fi
4008
4009
4010 # Check whether --with-png was given.
4011 if test "${with_png+set}" = set; then :
4012 withval=$with_png;
4013 else
4014 with_png=$with_features
4015 fi
4016
4017
4018 # Check whether --with-rsvg was given.
4019 if test "${with_rsvg+set}" = set; then :
4020 withval=$with_rsvg;
4021 else
4022 with_rsvg=$with_features
4023 fi
4024
4025
4026 # Check whether --with-xml2 was given.
4027 if test "${with_xml2+set}" = set; then :
4028 withval=$with_xml2;
4029 else
4030 with_xml2=$with_features
4031 fi
4032
4033
4034 # Check whether --with-imagemagick was given.
4035 if test "${with_imagemagick+set}" = set; then :
4036 withval=$with_imagemagick;
4037 else
4038 with_imagemagick=$with_features
4039 fi
4040
4041
4042
4043 # Check whether --with-xft was given.
4044 if test "${with_xft+set}" = set; then :
4045 withval=$with_xft;
4046 else
4047 with_xft=$with_features
4048 fi
4049
4050
4051 # Check whether --with-libotf was given.
4052 if test "${with_libotf+set}" = set; then :
4053 withval=$with_libotf;
4054 else
4055 with_libotf=$with_features
4056 fi
4057
4058
4059 # Check whether --with-m17n-flt was given.
4060 if test "${with_m17n_flt+set}" = set; then :
4061 withval=$with_m17n_flt;
4062 else
4063 with_m17n_flt=$with_features
4064 fi
4065
4066
4067
4068 # Check whether --with-toolkit-scroll-bars was given.
4069 if test "${with_toolkit_scroll_bars+set}" = set; then :
4070 withval=$with_toolkit_scroll_bars;
4071 else
4072 with_toolkit_scroll_bars=$with_features
4073 fi
4074
4075
4076 # Check whether --with-xaw3d was given.
4077 if test "${with_xaw3d+set}" = set; then :
4078 withval=$with_xaw3d;
4079 else
4080 with_xaw3d=$with_features
4081 fi
4082
4083
4084 # Check whether --with-xim was given.
4085 if test "${with_xim+set}" = set; then :
4086 withval=$with_xim;
4087 else
4088 with_xim=$with_features
4089 fi
4090
4091
4092 # Check whether --with-ns was given.
4093 if test "${with_ns+set}" = set; then :
4094 withval=$with_ns;
4095 else
4096 with_ns=no
4097 fi
4098
4099
4100
4101 # Check whether --with-gpm was given.
4102 if test "${with_gpm+set}" = set; then :
4103 withval=$with_gpm;
4104 else
4105 with_gpm=$with_features
4106 fi
4107
4108
4109 # Check whether --with-dbus was given.
4110 if test "${with_dbus+set}" = set; then :
4111 withval=$with_dbus;
4112 else
4113 with_dbus=$with_features
4114 fi
4115
4116
4117 # Check whether --with-gconf was given.
4118 if test "${with_gconf+set}" = set; then :
4119 withval=$with_gconf;
4120 else
4121 with_gconf=$with_features
4122 fi
4123
4124
4125 # Check whether --with-gsettings was given.
4126 if test "${with_gsettings+set}" = set; then :
4127 withval=$with_gsettings;
4128 else
4129 with_gsettings=$with_features
4130 fi
4131
4132
4133 # Check whether --with-selinux was given.
4134 if test "${with_selinux+set}" = set; then :
4135 withval=$with_selinux;
4136 else
4137 with_selinux=$with_features
4138 fi
4139
4140
4141 # Check whether --with-gnutls was given.
4142 if test "${with_gnutls+set}" = set; then :
4143 withval=$with_gnutls;
4144 else
4145 with_gnutls=$with_features
4146 fi
4147
4148
4149 ## For the times when you want to build Emacs but don't have
4150 ## a suitable makeinfo, and can live without the manuals.
4151
4152 # Check whether --with-makeinfo was given.
4153 if test "${with_makeinfo+set}" = set; then :
4154 withval=$with_makeinfo;
4155 else
4156 with_makeinfo=$with_features
4157 fi
4158
4159
4160 ## Makefile.in needs the cache file name.
4161
4162
4163 ## This is an option because I do not know if all info/man support
4164 ## compressed files, nor how to test if they do so.
4165
4166 # Check whether --with-compress-info was given.
4167 if test "${with_compress_info+set}" = set; then :
4168 withval=$with_compress_info;
4169 else
4170 with_compress_info=$with_features
4171 fi
4172
4173 if test $with_compress_info = yes; then
4174 GZIP_INFO=yes
4175 else
4176 GZIP_INFO=
4177 fi
4178
4179
4180
4181 # Check whether --with-pkg-config-prog was given.
4182 if test "${with_pkg_config_prog+set}" = set; then :
4183 withval=$with_pkg_config_prog;
4184 fi
4185
4186 if test "X${with_pkg_config_prog}" != X; then
4187 if test "${with_pkg_config_prog}" != yes; then
4188 PKG_CONFIG="${with_pkg_config_prog}"
4189 fi
4190 fi
4191
4192 CRT_DIR=
4193
4194 # Check whether --with-crt-dir was given.
4195 if test "${with_crt_dir+set}" = set; then :
4196 withval=$with_crt_dir;
4197 fi
4198
4199 CRT_DIR="${with_crt_dir}"
4200
4201
4202 # Check whether --with-gameuser was given.
4203 if test "${with_gameuser+set}" = set; then :
4204 withval=$with_gameuser;
4205 fi
4206
4207 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4208 && gameuser="${with_gameuser}"
4209 test "X$gameuser" = X && gameuser=games
4210
4211
4212 # Check whether --with-gnustep-conf was given.
4213 if test "${with_gnustep_conf+set}" = set; then :
4214 withval=$with_gnustep_conf;
4215 fi
4216
4217 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4218 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4219 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4220 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4221
4222 # Check whether --enable-ns-self-contained was given.
4223 if test "${enable_ns_self_contained+set}" = set; then :
4224 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4225 else
4226 EN_NS_SELF_CONTAINED=yes
4227 fi
4228
4229
4230 # Check whether --enable-locallisppath was given.
4231 if test "${enable_locallisppath+set}" = set; then :
4232 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4233 locallisppath=
4234 elif test "${enableval}" != "yes"; then
4235 locallisppath=${enableval}
4236 fi
4237 fi
4238
4239
4240 # Check whether --enable-checking was given.
4241 if test "${enable_checking+set}" = set; then :
4242 enableval=$enable_checking; ac_checking_flags="${enableval}"
4243 fi
4244
4245 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4246 for check in $ac_checking_flags
4247 do
4248 case $check in
4249 # these set all the flags to specific states
4250 yes) ac_enable_checking=1 ;;
4251 no) ac_enable_checking= ;
4252 ac_gc_check_stringbytes= ;
4253 ac_gc_check_string_overrun= ;
4254 ac_gc_check_string_free_list= ;
4255 ac_xmalloc_overrun= ;
4256 ac_gc_check_cons_list= ;
4257 ac_glyphs_debug= ;;
4258 all) ac_enable_checking=1 ;
4259 ac_gc_check_stringbytes=1 ;
4260 ac_gc_check_string_overrun=1 ;
4261 ac_gc_check_string_free_list=1 ;
4262 ac_xmalloc_overrun=1 ;
4263 ac_gc_check_cons_list=1 ;
4264 ac_glyphs_debug=1 ;;
4265 # these enable particular checks
4266 stringbytes) ac_gc_check_stringbytes=1 ;;
4267 stringoverrun) ac_gc_check_string_overrun=1 ;;
4268 stringfreelist) ac_gc_check_string_free_list=1 ;;
4269 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4270 conslist) ac_gc_check_cons_list=1 ;;
4271 glyphs) ac_glyphs_debug=1 ;;
4272 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4273 esac
4274 done
4275 IFS="$ac_save_IFS"
4276
4277 if test x$ac_enable_checking != x ; then
4278
4279 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4280
4281 fi
4282 if test x$ac_gc_check_stringbytes != x ; then
4283
4284 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4285
4286 fi
4287 if test x$ac_gc_check_string_overrun != x ; then
4288
4289 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4290
4291 fi
4292 if test x$ac_gc_check_string_free_list != x ; then
4293
4294 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4295
4296 fi
4297 if test x$ac_xmalloc_overrun != x ; then
4298
4299 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4300
4301 fi
4302 if test x$ac_gc_check_cons_list != x ; then
4303
4304 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4305
4306 fi
4307 if test x$ac_glyphs_debug != x ; then
4308
4309 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4310
4311 fi
4312
4313 # Check whether --enable-check-lisp-object-type was given.
4314 if test "${enable_check_lisp_object_type+set}" = set; then :
4315 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4316
4317 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4318
4319 fi
4320 fi
4321
4322
4323
4324 # Check whether --enable-profiling was given.
4325 if test "${enable_profiling+set}" = set; then :
4326 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4327 fi
4328
4329 if test x$ac_enable_profiling != x ; then
4330 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4331 else
4332 PROFILING_CFLAGS=
4333 fi
4334
4335
4336 # Check whether --enable-autodepend was given.
4337 if test "${enable_autodepend+set}" = set; then :
4338 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4339 else
4340 ac_enable_autodepend=yes
4341 fi
4342
4343
4344 #### Make srcdir absolute, if it isn't already. It's important to
4345 #### avoid running the path through pwd unnecessarily, since pwd can
4346 #### give you automounter prefixes, which can go away. We do all this
4347 #### so Emacs can find its files when run uninstalled.
4348 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4349 unset CDPATH
4350 case "${srcdir}" in
4351 /* ) ;;
4352 . )
4353 ## We may be able to use the $PWD environment variable to make this
4354 ## absolute. But sometimes PWD is inaccurate.
4355 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4356 ## but that tested only for a well-formed and valid PWD,
4357 ## it did not object when PWD was well-formed and valid but just wrong.
4358 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4359 then
4360 srcdir="$PWD"
4361 else
4362 srcdir="`(cd ${srcdir}; pwd)`"
4363 fi
4364 ;;
4365 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4366 esac
4367
4368 ### Canonicalize the configuration name.
4369
4370 # Make sure we can run config.sub.
4371 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4372 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4373
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4375 $as_echo_n "checking build system type... " >&6; }
4376 if test "${ac_cv_build+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 ac_build_alias=$build_alias
4380 test "x$ac_build_alias" = x &&
4381 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4382 test "x$ac_build_alias" = x &&
4383 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4384 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4385 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4386
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4389 $as_echo "$ac_cv_build" >&6; }
4390 case $ac_cv_build in
4391 *-*-*) ;;
4392 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4393 esac
4394 build=$ac_cv_build
4395 ac_save_IFS=$IFS; IFS='-'
4396 set x $ac_cv_build
4397 shift
4398 build_cpu=$1
4399 build_vendor=$2
4400 shift; shift
4401 # Remember, the first character of IFS is used to create $*,
4402 # except with old shells:
4403 build_os=$*
4404 IFS=$ac_save_IFS
4405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4409 $as_echo_n "checking host system type... " >&6; }
4410 if test "${ac_cv_host+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test "x$host_alias" = x; then
4414 ac_cv_host=$ac_cv_build
4415 else
4416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4417 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4418 fi
4419
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4422 $as_echo "$ac_cv_host" >&6; }
4423 case $ac_cv_host in
4424 *-*-*) ;;
4425 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4426 esac
4427 host=$ac_cv_host
4428 ac_save_IFS=$IFS; IFS='-'
4429 set x $ac_cv_host
4430 shift
4431 host_cpu=$1
4432 host_vendor=$2
4433 shift; shift
4434 # Remember, the first character of IFS is used to create $*,
4435 # except with old shells:
4436 host_os=$*
4437 IFS=$ac_save_IFS
4438 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4439
4440
4441 canonical=$host
4442 configuration=${host_alias-${build_alias-$host}}
4443
4444
4445
4446 ### If you add support for a new configuration, add code to this
4447 ### switch statement to recognize your configuration name and select
4448 ### the appropriate operating system file.
4449
4450 ### You would hope that you could choose an s/*.h
4451 ### file based on the operating system portion. However, it turns out
4452 ### that each s/*.h file is pretty manufacturer-specific.
4453 ### So we basically have to have a special case for each
4454 ### configuration name.
4455 ###
4456 ### As far as handling version numbers on operating systems is
4457 ### concerned, make sure things will fail in a fixable way. If
4458 ### /etc/MACHINES doesn't say anything about version numbers, be
4459 ### prepared to handle anything reasonably. If version numbers
4460 ### matter, be sure /etc/MACHINES says something about it.
4461
4462 opsys='' unported=no
4463 case "${canonical}" in
4464
4465 ## GNU/Linux and similar ports
4466 *-*-linux* )
4467 opsys=gnu-linux
4468 ;;
4469
4470 ## FreeBSD ports
4471 *-*-freebsd* )
4472 opsys=freebsd
4473 ;;
4474
4475 ## FreeBSD kernel + glibc based userland
4476 *-*-kfreebsd*gnu* )
4477 opsys=gnu-kfreebsd
4478 ;;
4479
4480 ## NetBSD ports
4481 *-*-netbsd* )
4482 opsys=netbsd
4483 ;;
4484
4485 ## OpenBSD ports
4486 *-*-openbsd* )
4487 opsys=openbsd
4488 ;;
4489
4490 ## Apple Darwin / Mac OS X
4491 *-apple-darwin* )
4492 case "${canonical}" in
4493 i[3456]86-* ) ;;
4494 powerpc-* ) ;;
4495 x86_64-* ) ;;
4496 * ) unported=yes ;;
4497 esac
4498 opsys=darwin
4499 ## Use fink packages if available.
4500 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4501 ## if test -d /sw/include && test -d /sw/lib; then
4502 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4503 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4504 ## fi
4505 ;;
4506
4507 ## HP 9000 series 700 and 800, running HP/UX
4508 hppa*-hp-hpux10.2* )
4509 opsys=hpux10-20
4510 ;;
4511 hppa*-hp-hpux1[1-9]* )
4512 opsys=hpux11
4513 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4514 ;;
4515
4516 ## IBM machines
4517 rs6000-ibm-aix4.[23]* )
4518 opsys=aix4-2
4519 ;;
4520 powerpc-ibm-aix4.[23]* )
4521 opsys=aix4-2
4522 ;;
4523 rs6000-ibm-aix[56]* )
4524 opsys=aix4-2
4525 ;;
4526 powerpc-ibm-aix[56]* )
4527 opsys=aix4-2
4528 ;;
4529
4530 ## Silicon Graphics machines
4531 ## Iris 4D
4532 mips-sgi-irix6.5 )
4533 opsys=irix6-5
4534 # Without defining _LANGUAGE_C, things get masked out in the headers
4535 # so that, for instance, grepping for `free' in stdlib.h fails and
4536 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4537 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4538 ;;
4539
4540 ## Suns
4541 *-sun-solaris* \
4542 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4543 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4544 case "${canonical}" in
4545 i[3456]86-*-* ) ;;
4546 amd64-*-*|x86_64-*-*) ;;
4547 sparc* ) ;;
4548 * ) unported=yes ;;
4549 esac
4550 case "${canonical}" in
4551 *-sunos5.6* | *-solaris2.6* )
4552 opsys=sol2-6
4553 RANLIB="ar -ts"
4554 ;;
4555 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4556 opsys=sol2-6
4557 emacs_check_sunpro_c=yes
4558 ;;
4559 *-sunos5* | *-solaris* )
4560 opsys=sol2-10
4561 emacs_check_sunpro_c=yes
4562 ;;
4563 esac
4564 ## Watch out for a compiler that we know will not work.
4565 case "${canonical}" in
4566 *-solaris* | *-sunos5* )
4567 if [ "x$CC" = x/usr/ucb/cc ]; then
4568 ## /usr/ucb/cc doesn't work;
4569 ## we should find some other compiler that does work.
4570 unset CC
4571 fi
4572 ;;
4573 *) ;;
4574 esac
4575 ;;
4576
4577 ## Intel 386 machines where we don't care about the manufacturer.
4578 i[3456]86-*-* )
4579 case "${canonical}" in
4580 *-cygwin ) opsys=cygwin ;;
4581 *-darwin* ) opsys=darwin ;;
4582 *-sysv4.2uw* ) opsys=unixware ;;
4583 *-sysv5uw* ) opsys=unixware ;;
4584 *-sysv5OpenUNIX* ) opsys=unixware ;;
4585 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4586 esac
4587 ;;
4588
4589 * )
4590 unported=yes
4591 ;;
4592 esac
4593
4594 ### If the code above didn't choose an operating system, just choose
4595 ### an operating system based on the configuration name. You really
4596 ### only want to use this when you have no idea what the right
4597 ### operating system is; if you know what operating systems a machine
4598 ### runs, it's cleaner to make it explicit in the case statement
4599 ### above.
4600 if test x"${opsys}" = x; then
4601 case "${canonical}" in
4602 *-gnu* ) opsys=gnu ;;
4603 * )
4604 unported=yes
4605 ;;
4606 esac
4607 fi
4608
4609
4610
4611 if test $unported = yes; then
4612 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4613 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4614 fi
4615
4616
4617 #### Choose a compiler.
4618
4619 ac_ext=c
4620 ac_cpp='$CPP $CPPFLAGS'
4621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if test "${ac_cv_prog_CC+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 CC=$ac_cv_prog_CC
4653 if test -n "$CC"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4655 $as_echo "$CC" >&6; }
4656 else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662 fi
4663 if test -z "$ac_cv_prog_CC"; then
4664 ac_ct_CC=$CC
4665 # Extract the first word of "gcc", so it can be a program name with args.
4666 set dummy gcc; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -n "$ac_ct_CC"; then
4673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_ac_ct_CC="gcc"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4693 if test -n "$ac_ct_CC"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4695 $as_echo "$ac_ct_CC" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 fi
4700
4701 if test "x$ac_ct_CC" = x; then
4702 CC=""
4703 else
4704 case $cross_compiling:$ac_tool_warned in
4705 yes:)
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned=yes ;;
4709 esac
4710 CC=$ac_ct_CC
4711 fi
4712 else
4713 CC="$ac_cv_prog_CC"
4714 fi
4715
4716 if test -z "$CC"; then
4717 if test -n "$ac_tool_prefix"; then
4718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4719 set dummy ${ac_tool_prefix}cc; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if test "${ac_cv_prog_CC+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$CC"; then
4726 ac_cv_prog_CC="$CC" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_CC="${ac_tool_prefix}cc"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi
4744 fi
4745 CC=$ac_cv_prog_CC
4746 if test -n "$CC"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4748 $as_echo "$CC" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754
4755 fi
4756 fi
4757 if test -z "$CC"; then
4758 # Extract the first word of "cc", so it can be a program name with args.
4759 set dummy cc; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if test "${ac_cv_prog_CC+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -n "$CC"; then
4766 ac_cv_prog_CC="$CC" # Let the user override the test.
4767 else
4768 ac_prog_rejected=no
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4777 ac_prog_rejected=yes
4778 continue
4779 fi
4780 ac_cv_prog_CC="cc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788 if test $ac_prog_rejected = yes; then
4789 # We found a bogon in the path, so make sure we never use it.
4790 set dummy $ac_cv_prog_CC
4791 shift
4792 if test $# != 0; then
4793 # We chose a different compiler from the bogus one.
4794 # However, it has the same basename, so the bogon will be chosen
4795 # first if we set CC to just the basename; use the full file name.
4796 shift
4797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4798 fi
4799 fi
4800 fi
4801 fi
4802 CC=$ac_cv_prog_CC
4803 if test -n "$CC"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4805 $as_echo "$CC" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811
4812 fi
4813 if test -z "$CC"; then
4814 if test -n "$ac_tool_prefix"; then
4815 for ac_prog in cl.exe
4816 do
4817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if test "${ac_cv_prog_CC+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC="$CC" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 CC=$ac_cv_prog_CC
4845 if test -n "$CC"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4847 $as_echo "$CC" >&6; }
4848 else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 fi
4852
4853
4854 test -n "$CC" && break
4855 done
4856 fi
4857 if test -z "$CC"; then
4858 ac_ct_CC=$CC
4859 for ac_prog in cl.exe
4860 do
4861 # Extract the first word of "$ac_prog", so it can be a program name with args.
4862 set dummy $ac_prog; ac_word=$2
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 $as_echo_n "checking for $ac_word... " >&6; }
4865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 if test -n "$ac_ct_CC"; then
4869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_ac_ct_CC="$ac_prog"
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4881 fi
4882 done
4883 done
4884 IFS=$as_save_IFS
4885
4886 fi
4887 fi
4888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4889 if test -n "$ac_ct_CC"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4891 $as_echo "$ac_ct_CC" >&6; }
4892 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4895 fi
4896
4897
4898 test -n "$ac_ct_CC" && break
4899 done
4900
4901 if test "x$ac_ct_CC" = x; then
4902 CC=""
4903 else
4904 case $cross_compiling:$ac_tool_warned in
4905 yes:)
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4908 ac_tool_warned=yes ;;
4909 esac
4910 CC=$ac_ct_CC
4911 fi
4912 fi
4913
4914 fi
4915
4916
4917 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4919 as_fn_error "no acceptable C compiler found in \$PATH
4920 See \`config.log' for more details." "$LINENO" 5; }
4921
4922 # Provide some information about the compiler.
4923 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4924 set X $ac_compile
4925 ac_compiler=$2
4926 for ac_option in --version -v -V -qversion; do
4927 { { ac_try="$ac_compiler $ac_option >&5"
4928 case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933 $as_echo "$ac_try_echo"; } >&5
4934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4935 ac_status=$?
4936 if test -s conftest.err; then
4937 sed '10a\
4938 ... rest of stderr output deleted ...
4939 10q' conftest.err >conftest.er1
4940 cat conftest.er1 >&5
4941 fi
4942 rm -f conftest.er1 conftest.err
4943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944 test $ac_status = 0; }
4945 done
4946
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949
4950 int
4951 main ()
4952 {
4953
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 ac_clean_files_save=$ac_clean_files
4959 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4960 # Try to create an executable without -o first, disregard a.out.
4961 # It will help us diagnose broken compilers, and finding out an intuition
4962 # of exeext.
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4964 $as_echo_n "checking whether the C compiler works... " >&6; }
4965 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4966
4967 # The possible output files:
4968 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4969
4970 ac_rmfiles=
4971 for ac_file in $ac_files
4972 do
4973 case $ac_file in
4974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4975 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4976 esac
4977 done
4978 rm -f $ac_rmfiles
4979
4980 if { { ac_try="$ac_link_default"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4986 $as_echo "$ac_try_echo"; } >&5
4987 (eval "$ac_link_default") 2>&5
4988 ac_status=$?
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }; then :
4991 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4992 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4993 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4994 # so that the user can short-circuit this test for compilers unknown to
4995 # Autoconf.
4996 for ac_file in $ac_files ''
4997 do
4998 test -f "$ac_file" || continue
4999 case $ac_file in
5000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5001 ;;
5002 [ab].out )
5003 # We found the default executable, but exeext='' is most
5004 # certainly right.
5005 break;;
5006 *.* )
5007 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5008 then :; else
5009 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5010 fi
5011 # We set ac_cv_exeext here because the later test for it is not
5012 # safe: cross compilers may not add the suffix if given an `-o'
5013 # argument, so we may need to know it at that point already.
5014 # Even if this section looks crufty: it has the advantage of
5015 # actually working.
5016 break;;
5017 * )
5018 break;;
5019 esac
5020 done
5021 test "$ac_cv_exeext" = no && ac_cv_exeext=
5022
5023 else
5024 ac_file=''
5025 fi
5026 if test -z "$ac_file"; then :
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 $as_echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5034 { as_fn_set_status 77
5035 as_fn_error "C compiler cannot create executables
5036 See \`config.log' for more details." "$LINENO" 5; }; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5039 $as_echo "yes" >&6; }
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5042 $as_echo_n "checking for C compiler default output file name... " >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5044 $as_echo "$ac_file" >&6; }
5045 ac_exeext=$ac_cv_exeext
5046
5047 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5048 ac_clean_files=$ac_clean_files_save
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5050 $as_echo_n "checking for suffix of executables... " >&6; }
5051 if { { ac_try="$ac_link"
5052 case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5057 $as_echo "$ac_try_echo"; } >&5
5058 (eval "$ac_link") 2>&5
5059 ac_status=$?
5060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5061 test $ac_status = 0; }; then :
5062 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5063 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5064 # work properly (i.e., refer to `conftest.exe'), while it won't with
5065 # `rm'.
5066 for ac_file in conftest.exe conftest conftest.*; do
5067 test -f "$ac_file" || continue
5068 case $ac_file in
5069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5070 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5071 break;;
5072 * ) break;;
5073 esac
5074 done
5075 else
5076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5078 as_fn_error "cannot compute suffix of executables: cannot compile and link
5079 See \`config.log' for more details." "$LINENO" 5; }
5080 fi
5081 rm -f conftest conftest$ac_cv_exeext
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5083 $as_echo "$ac_cv_exeext" >&6; }
5084
5085 rm -f conftest.$ac_ext
5086 EXEEXT=$ac_cv_exeext
5087 ac_exeext=$EXEEXT
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 #include <stdio.h>
5091 int
5092 main ()
5093 {
5094 FILE *f = fopen ("conftest.out", "w");
5095 return ferror (f) || fclose (f) != 0;
5096
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 ac_clean_files="$ac_clean_files conftest.out"
5102 # Check that the compiler produces executables we can run. If not, either
5103 # the compiler is broken, or we cross compile.
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5105 $as_echo_n "checking whether we are cross compiling... " >&6; }
5106 if test "$cross_compiling" != yes; then
5107 { { ac_try="$ac_link"
5108 case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111 esac
5112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5113 $as_echo "$ac_try_echo"; } >&5
5114 (eval "$ac_link") 2>&5
5115 ac_status=$?
5116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117 test $ac_status = 0; }
5118 if { ac_try='./conftest$ac_cv_exeext'
5119 { { case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122 esac
5123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5124 $as_echo "$ac_try_echo"; } >&5
5125 (eval "$ac_try") 2>&5
5126 ac_status=$?
5127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5128 test $ac_status = 0; }; }; then
5129 cross_compiling=no
5130 else
5131 if test "$cross_compiling" = maybe; then
5132 cross_compiling=yes
5133 else
5134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5136 as_fn_error "cannot run C compiled programs.
5137 If you meant to cross compile, use \`--host'.
5138 See \`config.log' for more details." "$LINENO" 5; }
5139 fi
5140 fi
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5143 $as_echo "$cross_compiling" >&6; }
5144
5145 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5146 ac_clean_files=$ac_clean_files_save
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5148 $as_echo_n "checking for suffix of object files... " >&6; }
5149 if test "${ac_cv_objext+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154
5155 int
5156 main ()
5157 {
5158
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 rm -f conftest.o conftest.obj
5164 if { { ac_try="$ac_compile"
5165 case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170 $as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_compile") 2>&5
5172 ac_status=$?
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }; then :
5175 for ac_file in conftest.o conftest.obj conftest.*; do
5176 test -f "$ac_file" || continue;
5177 case $ac_file in
5178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5180 break;;
5181 esac
5182 done
5183 else
5184 $as_echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5189 as_fn_error "cannot compute suffix of object files: cannot compile
5190 See \`config.log' for more details." "$LINENO" 5; }
5191 fi
5192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5195 $as_echo "$ac_cv_objext" >&6; }
5196 OBJEXT=$ac_cv_objext
5197 ac_objext=$OBJEXT
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5199 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5200 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205
5206 int
5207 main ()
5208 {
5209 #ifndef __GNUC__
5210 choke me
5211 #endif
5212
5213 ;
5214 return 0;
5215 }
5216 _ACEOF
5217 if ac_fn_c_try_compile "$LINENO"; then :
5218 ac_compiler_gnu=yes
5219 else
5220 ac_compiler_gnu=no
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5224
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5227 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5228 if test $ac_compiler_gnu = yes; then
5229 GCC=yes
5230 else
5231 GCC=
5232 fi
5233 ac_test_CFLAGS=${CFLAGS+set}
5234 ac_save_CFLAGS=$CFLAGS
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5236 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5237 if test "${ac_cv_prog_cc_g+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 ac_save_c_werror_flag=$ac_c_werror_flag
5241 ac_c_werror_flag=yes
5242 ac_cv_prog_cc_g=no
5243 CFLAGS="-g"
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246
5247 int
5248 main ()
5249 {
5250
5251 ;
5252 return 0;
5253 }
5254 _ACEOF
5255 if ac_fn_c_try_compile "$LINENO"; then :
5256 ac_cv_prog_cc_g=yes
5257 else
5258 CFLAGS=""
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261
5262 int
5263 main ()
5264 {
5265
5266 ;
5267 return 0;
5268 }
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271
5272 else
5273 ac_c_werror_flag=$ac_save_c_werror_flag
5274 CFLAGS="-g"
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277
5278 int
5279 main ()
5280 {
5281
5282 ;
5283 return 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"; then :
5287 ac_cv_prog_cc_g=yes
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 ac_c_werror_flag=$ac_save_c_werror_flag
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5297 $as_echo "$ac_cv_prog_cc_g" >&6; }
5298 if test "$ac_test_CFLAGS" = set; then
5299 CFLAGS=$ac_save_CFLAGS
5300 elif test $ac_cv_prog_cc_g = yes; then
5301 if test "$GCC" = yes; then
5302 CFLAGS="-g -O2"
5303 else
5304 CFLAGS="-g"
5305 fi
5306 else
5307 if test "$GCC" = yes; then
5308 CFLAGS="-O2"
5309 else
5310 CFLAGS=
5311 fi
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5314 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5315 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 ac_cv_prog_cc_c89=no
5319 ac_save_CC=$CC
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #include <stdarg.h>
5323 #include <stdio.h>
5324 #include <sys/types.h>
5325 #include <sys/stat.h>
5326 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5327 struct buf { int x; };
5328 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5329 static char *e (p, i)
5330 char **p;
5331 int i;
5332 {
5333 return p[i];
5334 }
5335 static char *f (char * (*g) (char **, int), char **p, ...)
5336 {
5337 char *s;
5338 va_list v;
5339 va_start (v,p);
5340 s = g (p, va_arg (v,int));
5341 va_end (v);
5342 return s;
5343 }
5344
5345 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5346 function prototypes and stuff, but not '\xHH' hex character constants.
5347 These don't provoke an error unfortunately, instead are silently treated
5348 as 'x'. The following induces an error, until -std is added to get
5349 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5350 array size at least. It's necessary to write '\x00'==0 to get something
5351 that's true only with -std. */
5352 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5353
5354 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5355 inside strings and character constants. */
5356 #define FOO(x) 'x'
5357 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5358
5359 int test (int i, double x);
5360 struct s1 {int (*f) (int a);};
5361 struct s2 {int (*f) (double a);};
5362 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5363 int argc;
5364 char **argv;
5365 int
5366 main ()
5367 {
5368 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5374 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5375 do
5376 CC="$ac_save_CC $ac_arg"
5377 if ac_fn_c_try_compile "$LINENO"; then :
5378 ac_cv_prog_cc_c89=$ac_arg
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext
5381 test "x$ac_cv_prog_cc_c89" != "xno" && break
5382 done
5383 rm -f conftest.$ac_ext
5384 CC=$ac_save_CC
5385
5386 fi
5387 # AC_CACHE_VAL
5388 case "x$ac_cv_prog_cc_c89" in
5389 x)
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5391 $as_echo "none needed" >&6; } ;;
5392 xno)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5394 $as_echo "unsupported" >&6; } ;;
5395 *)
5396 CC="$CC $ac_cv_prog_cc_c89"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5398 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5399 esac
5400 if test "x$ac_cv_prog_cc_c89" != xno; then :
5401
5402 fi
5403
5404 ac_ext=c
5405 ac_cpp='$CPP $CPPFLAGS'
5406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5409 DEPDIR="${am__leading_dot}deps"
5410
5411 ac_config_commands="$ac_config_commands depfiles"
5412
5413
5414 am_make=${MAKE-make}
5415 cat > confinc << 'END'
5416 am__doit:
5417 @echo this is the am__doit target
5418 .PHONY: am__doit
5419 END
5420 # If we don't find an include directive, just comment out the code.
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5422 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5423 am__include="#"
5424 am__quote=
5425 _am_result=none
5426 # First try GNU make style include.
5427 echo "include confinc" > confmf
5428 # Ignore all kinds of additional output from `make'.
5429 case `$am_make -s -f confmf 2> /dev/null` in #(
5430 *the\ am__doit\ target*)
5431 am__include=include
5432 am__quote=
5433 _am_result=GNU
5434 ;;
5435 esac
5436 # Now try BSD make style include.
5437 if test "$am__include" = "#"; then
5438 echo '.include "confinc"' > confmf
5439 case `$am_make -s -f confmf 2> /dev/null` in #(
5440 *the\ am__doit\ target*)
5441 am__include=.include
5442 am__quote="\""
5443 _am_result=BSD
5444 ;;
5445 esac
5446 fi
5447
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5450 $as_echo "$_am_result" >&6; }
5451 rm -f confinc confmf
5452
5453 # Check whether --enable-dependency-tracking was given.
5454 if test "${enable_dependency_tracking+set}" = set; then :
5455 enableval=$enable_dependency_tracking;
5456 fi
5457
5458 if test "x$enable_dependency_tracking" != xno; then
5459 am_depcomp="$ac_aux_dir/depcomp"
5460 AMDEPBACKSLASH='\'
5461 fi
5462 if test "x$enable_dependency_tracking" != xno; then
5463 AMDEP_TRUE=
5464 AMDEP_FALSE='#'
5465 else
5466 AMDEP_TRUE='#'
5467 AMDEP_FALSE=
5468 fi
5469
5470
5471
5472 depcc="$CC" am_compiler_list=
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5475 $as_echo_n "checking dependency style of $depcc... " >&6; }
5476 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5480 # We make a subdir and do the tests there. Otherwise we can end up
5481 # making bogus files that we don't know about and never remove. For
5482 # instance it was reported that on HP-UX the gcc test will end up
5483 # making a dummy file named `D' -- because `-MD' means `put the output
5484 # in D'.
5485 mkdir conftest.dir
5486 # Copy depcomp to subdir because otherwise we won't find it if we're
5487 # using a relative directory.
5488 cp "$am_depcomp" conftest.dir
5489 cd conftest.dir
5490 # We will build objects and dependencies in a subdirectory because
5491 # it helps to detect inapplicable dependency modes. For instance
5492 # both Tru64's cc and ICC support -MD to output dependencies as a
5493 # side effect of compilation, but ICC will put the dependencies in
5494 # the current directory while Tru64 will put them in the object
5495 # directory.
5496 mkdir sub
5497
5498 am_cv_CC_dependencies_compiler_type=none
5499 if test "$am_compiler_list" = ""; then
5500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5501 fi
5502 am__universal=false
5503 case " $depcc " in #(
5504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5505 esac
5506
5507 for depmode in $am_compiler_list; do
5508 # Setup a source with many dependencies, because some compilers
5509 # like to wrap large dependency lists on column 80 (with \), and
5510 # we should not choose a depcomp mode which is confused by this.
5511 #
5512 # We need to recreate these files for each test, as the compiler may
5513 # overwrite some of them when testing with obscure command lines.
5514 # This happens at least with the AIX C compiler.
5515 : > sub/conftest.c
5516 for i in 1 2 3 4 5 6; do
5517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5518 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5519 # Solaris 8's {/usr,}/bin/sh.
5520 touch sub/conftst$i.h
5521 done
5522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5523
5524 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5525 # mode. It turns out that the SunPro C++ compiler does not properly
5526 # handle `-M -o', and we need to detect this. Also, some Intel
5527 # versions had trouble with output in subdirs
5528 am__obj=sub/conftest.${OBJEXT-o}
5529 am__minus_obj="-o $am__obj"
5530 case $depmode in
5531 gcc)
5532 # This depmode causes a compiler race in universal mode.
5533 test "$am__universal" = false || continue
5534 ;;
5535 nosideeffect)
5536 # after this tag, mechanisms are not by side-effect, so they'll
5537 # only be used when explicitly requested
5538 if test "x$enable_dependency_tracking" = xyes; then
5539 continue
5540 else
5541 break
5542 fi
5543 ;;
5544 msvisualcpp | msvcmsys)
5545 # This compiler won't grok `-c -o', but also, the minuso test has
5546 # not run yet. These depmodes are late enough in the game, and
5547 # so weak that their functioning should not be impacted.
5548 am__obj=conftest.${OBJEXT-o}
5549 am__minus_obj=
5550 ;;
5551 none) break ;;
5552 esac
5553 if depmode=$depmode \
5554 source=sub/conftest.c object=$am__obj \
5555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5557 >/dev/null 2>conftest.err &&
5558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5562 # icc doesn't choke on unknown options, it will just issue warnings
5563 # or remarks (even with -Werror). So we grep stderr for any message
5564 # that says an option was ignored or not supported.
5565 # When given -MP, icc 7.0 and 7.1 complain thusly:
5566 # icc: Command line warning: ignoring option '-M'; no argument required
5567 # The diagnosis changed in icc 8.0:
5568 # icc: Command line remark: option '-MP' not supported
5569 if (grep 'ignoring option' conftest.err ||
5570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5571 am_cv_CC_dependencies_compiler_type=$depmode
5572 break
5573 fi
5574 fi
5575 done
5576
5577 cd ..
5578 rm -rf conftest.dir
5579 else
5580 am_cv_CC_dependencies_compiler_type=none
5581 fi
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5585 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5587
5588 if
5589 test "x$enable_dependency_tracking" != xno \
5590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5591 am__fastdepCC_TRUE=
5592 am__fastdepCC_FALSE='#'
5593 else
5594 am__fastdepCC_TRUE='#'
5595 am__fastdepCC_FALSE=
5596 fi
5597
5598
5599 if test "x$CC" != xcc; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5601 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5604 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5605 fi
5606 set dummy $CC; ac_cc=`$as_echo "$2" |
5607 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5608 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613
5614 int
5615 main ()
5616 {
5617
5618 ;
5619 return 0;
5620 }
5621 _ACEOF
5622 # Make sure it works both with $CC and with simple cc.
5623 # We do the test twice because some compilers refuse to overwrite an
5624 # existing .o file with -o, though they will create one.
5625 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5626 rm -f conftest2.*
5627 if { { case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5632 $as_echo "$ac_try_echo"; } >&5
5633 (eval "$ac_try") 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; } &&
5637 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640 esac
5641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5642 $as_echo "$ac_try_echo"; } >&5
5643 (eval "$ac_try") 2>&5
5644 ac_status=$?
5645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5646 test $ac_status = 0; };
5647 then
5648 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5649 if test "x$CC" != xcc; then
5650 # Test first that cc exists at all.
5651 if { ac_try='cc -c conftest.$ac_ext >&5'
5652 { { case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5657 $as_echo "$ac_try_echo"; } >&5
5658 (eval "$ac_try") 2>&5
5659 ac_status=$?
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }; }; then
5662 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5663 rm -f conftest2.*
5664 if { { case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5669 $as_echo "$ac_try_echo"; } >&5
5670 (eval "$ac_try") 2>&5
5671 ac_status=$?
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; } &&
5674 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677 esac
5678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5679 $as_echo "$ac_try_echo"; } >&5
5680 (eval "$ac_try") 2>&5
5681 ac_status=$?
5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5683 test $ac_status = 0; };
5684 then
5685 # cc works too.
5686 :
5687 else
5688 # cc exists but doesn't like -o.
5689 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5690 fi
5691 fi
5692 fi
5693 else
5694 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5695 fi
5696 rm -f core conftest*
5697
5698 fi
5699 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705
5706 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5707
5708 fi
5709
5710 # FIXME: we rely on the cache variable name because
5711 # there is no other way.
5712 set dummy $CC
5713 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5714 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5715 if test "$am_t" != yes; then
5716 # Losing compiler, so override with the script.
5717 # FIXME: It is wrong to rewrite CC.
5718 # But if we don't then we get into trouble of one sort or another.
5719 # A longer-term fix would be to have automake use am__CC in this case,
5720 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5721 CC="$am_aux_dir/compile $CC"
5722 fi
5723
5724
5725
5726 if test x$GCC = xyes; then
5727 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5728 else
5729 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5730 fi
5731
5732 # Initialize gnulib right after choosing the compiler.
5733
5734 ac_ext=c
5735 ac_cpp='$CPP $CPPFLAGS'
5736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5740 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5741 # On Suns, sometimes $CPP names a directory.
5742 if test -n "$CPP" && test -d "$CPP"; then
5743 CPP=
5744 fi
5745 if test -z "$CPP"; then
5746 if test "${ac_cv_prog_CPP+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 # Double quotes because CPP needs to be expanded
5750 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5751 do
5752 ac_preproc_ok=false
5753 for ac_c_preproc_warn_flag in '' yes
5754 do
5755 # Use a header file that comes with gcc, so configuring glibc
5756 # with a fresh cross-compiler works.
5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758 # <limits.h> exists even on freestanding compilers.
5759 # On the NeXT, cc -E runs the code through the compiler's parser,
5760 # not just through cpp. "Syntax error" is here to catch this case.
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #ifdef __STDC__
5764 # include <limits.h>
5765 #else
5766 # include <assert.h>
5767 #endif
5768 Syntax error
5769 _ACEOF
5770 if ac_fn_c_try_cpp "$LINENO"; then :
5771
5772 else
5773 # Broken: fails on valid input.
5774 continue
5775 fi
5776 rm -f conftest.err conftest.$ac_ext
5777
5778 # OK, works on sane cases. Now check whether nonexistent headers
5779 # can be detected and how.
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 #include <ac_nonexistent.h>
5783 _ACEOF
5784 if ac_fn_c_try_cpp "$LINENO"; then :
5785 # Broken: success on invalid input.
5786 continue
5787 else
5788 # Passes both tests.
5789 ac_preproc_ok=:
5790 break
5791 fi
5792 rm -f conftest.err conftest.$ac_ext
5793
5794 done
5795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5796 rm -f conftest.err conftest.$ac_ext
5797 if $ac_preproc_ok; then :
5798 break
5799 fi
5800
5801 done
5802 ac_cv_prog_CPP=$CPP
5803
5804 fi
5805 CPP=$ac_cv_prog_CPP
5806 else
5807 ac_cv_prog_CPP=$CPP
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5810 $as_echo "$CPP" >&6; }
5811 ac_preproc_ok=false
5812 for ac_c_preproc_warn_flag in '' yes
5813 do
5814 # Use a header file that comes with gcc, so configuring glibc
5815 # with a fresh cross-compiler works.
5816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 # <limits.h> exists even on freestanding compilers.
5818 # On the NeXT, cc -E runs the code through the compiler's parser,
5819 # not just through cpp. "Syntax error" is here to catch this case.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #ifdef __STDC__
5823 # include <limits.h>
5824 #else
5825 # include <assert.h>
5826 #endif
5827 Syntax error
5828 _ACEOF
5829 if ac_fn_c_try_cpp "$LINENO"; then :
5830
5831 else
5832 # Broken: fails on valid input.
5833 continue
5834 fi
5835 rm -f conftest.err conftest.$ac_ext
5836
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <ac_nonexistent.h>
5842 _ACEOF
5843 if ac_fn_c_try_cpp "$LINENO"; then :
5844 # Broken: success on invalid input.
5845 continue
5846 else
5847 # Passes both tests.
5848 ac_preproc_ok=:
5849 break
5850 fi
5851 rm -f conftest.err conftest.$ac_ext
5852
5853 done
5854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855 rm -f conftest.err conftest.$ac_ext
5856 if $ac_preproc_ok; then :
5857
5858 else
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5862 See \`config.log' for more details." "$LINENO" 5; }
5863 fi
5864
5865 ac_ext=c
5866 ac_cpp='$CPP $CPPFLAGS'
5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5873 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5874 if test "${ac_cv_path_GREP+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if test -z "$GREP"; then
5878 ac_path_GREP_found=false
5879 # Loop through the user's path and test for each of PROGNAME-LIST
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5882 do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_prog in grep ggrep; do
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5888 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5889 # Check for GNU ac_path_GREP and select it if it is found.
5890 # Check for GNU $ac_path_GREP
5891 case `"$ac_path_GREP" --version 2>&1` in
5892 *GNU*)
5893 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5894 *)
5895 ac_count=0
5896 $as_echo_n 0123456789 >"conftest.in"
5897 while :
5898 do
5899 cat "conftest.in" "conftest.in" >"conftest.tmp"
5900 mv "conftest.tmp" "conftest.in"
5901 cp "conftest.in" "conftest.nl"
5902 $as_echo 'GREP' >> "conftest.nl"
5903 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5905 as_fn_arith $ac_count + 1 && ac_count=$as_val
5906 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5907 # Best one so far, save it but keep looking for a better one
5908 ac_cv_path_GREP="$ac_path_GREP"
5909 ac_path_GREP_max=$ac_count
5910 fi
5911 # 10*(2^10) chars as input seems more than enough
5912 test $ac_count -gt 10 && break
5913 done
5914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5915 esac
5916
5917 $ac_path_GREP_found && break 3
5918 done
5919 done
5920 done
5921 IFS=$as_save_IFS
5922 if test -z "$ac_cv_path_GREP"; then
5923 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5924 fi
5925 else
5926 ac_cv_path_GREP=$GREP
5927 fi
5928
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5931 $as_echo "$ac_cv_path_GREP" >&6; }
5932 GREP="$ac_cv_path_GREP"
5933
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5936 $as_echo_n "checking for egrep... " >&6; }
5937 if test "${ac_cv_path_EGREP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5941 then ac_cv_path_EGREP="$GREP -E"
5942 else
5943 if test -z "$EGREP"; then
5944 ac_path_EGREP_found=false
5945 # Loop through the user's path and test for each of PROGNAME-LIST
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5948 do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_prog in egrep; do
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5954 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5955 # Check for GNU ac_path_EGREP and select it if it is found.
5956 # Check for GNU $ac_path_EGREP
5957 case `"$ac_path_EGREP" --version 2>&1` in
5958 *GNU*)
5959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5960 *)
5961 ac_count=0
5962 $as_echo_n 0123456789 >"conftest.in"
5963 while :
5964 do
5965 cat "conftest.in" "conftest.in" >"conftest.tmp"
5966 mv "conftest.tmp" "conftest.in"
5967 cp "conftest.in" "conftest.nl"
5968 $as_echo 'EGREP' >> "conftest.nl"
5969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5971 as_fn_arith $ac_count + 1 && ac_count=$as_val
5972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5973 # Best one so far, save it but keep looking for a better one
5974 ac_cv_path_EGREP="$ac_path_EGREP"
5975 ac_path_EGREP_max=$ac_count
5976 fi
5977 # 10*(2^10) chars as input seems more than enough
5978 test $ac_count -gt 10 && break
5979 done
5980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5981 esac
5982
5983 $ac_path_EGREP_found && break 3
5984 done
5985 done
5986 done
5987 IFS=$as_save_IFS
5988 if test -z "$ac_cv_path_EGREP"; then
5989 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5990 fi
5991 else
5992 ac_cv_path_EGREP=$EGREP
5993 fi
5994
5995 fi
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5998 $as_echo "$ac_cv_path_EGREP" >&6; }
5999 EGREP="$ac_cv_path_EGREP"
6000
6001
6002
6003
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6005 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6006 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012
6013 #ifdef __ACK__
6014 Amsterdam
6015 #endif
6016
6017 _ACEOF
6018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6019 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6020 gl_cv_c_amsterdam_compiler=yes
6021 else
6022 gl_cv_c_amsterdam_compiler=no
6023 fi
6024 rm -f conftest*
6025
6026
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6029 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6030 if test -z "$AR"; then
6031 if test $gl_cv_c_amsterdam_compiler = yes; then
6032 AR='cc -c.a'
6033 if test -z "$ARFLAGS"; then
6034 ARFLAGS='-o'
6035 fi
6036 else
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}ar; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if test "${ac_cv_prog_AR+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test -n "$AR"; then
6046 ac_cv_prog_AR="$AR" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_AR="${ac_tool_prefix}ar"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 AR=$ac_cv_prog_AR
6066 if test -n "$AR"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6068 $as_echo "$AR" >&6; }
6069 else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074
6075 fi
6076 if test -z "$ac_cv_prog_AR"; then
6077 ac_ct_AR=$AR
6078 # Extract the first word of "ar", so it can be a program name with args.
6079 set dummy ar; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if test -n "$ac_ct_AR"; then
6086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_AR="ar"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6106 if test -n "$ac_ct_AR"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6108 $as_echo "$ac_ct_AR" >&6; }
6109 else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114 if test "x$ac_ct_AR" = x; then
6115 AR="ar"
6116 else
6117 case $cross_compiling:$ac_tool_warned in
6118 yes:)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121 ac_tool_warned=yes ;;
6122 esac
6123 AR=$ac_ct_AR
6124 fi
6125 else
6126 AR="$ac_cv_prog_AR"
6127 fi
6128
6129 if test -z "$ARFLAGS"; then
6130 ARFLAGS='cru'
6131 fi
6132 fi
6133 else
6134 if test -z "$ARFLAGS"; then
6135 ARFLAGS='cru'
6136 fi
6137 fi
6138
6139
6140 if test -z "$RANLIB"; then
6141 if test $gl_cv_c_amsterdam_compiler = yes; then
6142 RANLIB=':'
6143 else
6144 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 if test -n "$RANLIB"; then
6153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 RANLIB=$ac_cv_prog_RANLIB
6173 if test -n "$RANLIB"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6175 $as_echo "$RANLIB" >&6; }
6176 else
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6179 fi
6180
6181
6182 fi
6183 if test -z "$ac_cv_prog_RANLIB"; then
6184 ac_ct_RANLIB=$RANLIB
6185 # Extract the first word of "ranlib", so it can be a program name with args.
6186 set dummy ranlib; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6192 if test -n "$ac_ct_RANLIB"; then
6193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_prog_ac_ct_RANLIB="ranlib"
6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6213 if test -n "$ac_ct_RANLIB"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6215 $as_echo "$ac_ct_RANLIB" >&6; }
6216 else
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221 if test "x$ac_ct_RANLIB" = x; then
6222 RANLIB=":"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225 yes:)
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228 ac_tool_warned=yes ;;
6229 esac
6230 RANLIB=$ac_ct_RANLIB
6231 fi
6232 else
6233 RANLIB="$ac_cv_prog_RANLIB"
6234 fi
6235
6236 fi
6237 fi
6238
6239
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6241 $as_echo_n "checking for ANSI C header files... " >&6; }
6242 if test "${ac_cv_header_stdc+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 #include <stdlib.h>
6248 #include <stdarg.h>
6249 #include <string.h>
6250 #include <float.h>
6251
6252 int
6253 main ()
6254 {
6255
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 if ac_fn_c_try_compile "$LINENO"; then :
6261 ac_cv_header_stdc=yes
6262 else
6263 ac_cv_header_stdc=no
6264 fi
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266
6267 if test $ac_cv_header_stdc = yes; then
6268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #include <string.h>
6272
6273 _ACEOF
6274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6275 $EGREP "memchr" >/dev/null 2>&1; then :
6276
6277 else
6278 ac_cv_header_stdc=no
6279 fi
6280 rm -f conftest*
6281
6282 fi
6283
6284 if test $ac_cv_header_stdc = yes; then
6285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <stdlib.h>
6289
6290 _ACEOF
6291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 $EGREP "free" >/dev/null 2>&1; then :
6293
6294 else
6295 ac_cv_header_stdc=no
6296 fi
6297 rm -f conftest*
6298
6299 fi
6300
6301 if test $ac_cv_header_stdc = yes; then
6302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6303 if test "$cross_compiling" = yes; then :
6304 :
6305 else
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #include <ctype.h>
6309 #include <stdlib.h>
6310 #if ((' ' & 0x0FF) == 0x020)
6311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6313 #else
6314 # define ISLOWER(c) \
6315 (('a' <= (c) && (c) <= 'i') \
6316 || ('j' <= (c) && (c) <= 'r') \
6317 || ('s' <= (c) && (c) <= 'z'))
6318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6319 #endif
6320
6321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6322 int
6323 main ()
6324 {
6325 int i;
6326 for (i = 0; i < 256; i++)
6327 if (XOR (islower (i), ISLOWER (i))
6328 || toupper (i) != TOUPPER (i))
6329 return 2;
6330 return 0;
6331 }
6332 _ACEOF
6333 if ac_fn_c_try_run "$LINENO"; then :
6334
6335 else
6336 ac_cv_header_stdc=no
6337 fi
6338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6339 conftest.$ac_objext conftest.beam conftest.$ac_ext
6340 fi
6341
6342 fi
6343 fi
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6345 $as_echo "$ac_cv_header_stdc" >&6; }
6346 if test $ac_cv_header_stdc = yes; then
6347
6348 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6349
6350 fi
6351
6352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6354 inttypes.h stdint.h unistd.h
6355 do :
6356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6357 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6358 "
6359 eval as_val=\$$as_ac_Header
6360 if test "x$as_val" = x""yes; then :
6361 cat >>confdefs.h <<_ACEOF
6362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6363 _ACEOF
6364
6365 fi
6366
6367 done
6368
6369
6370
6371
6372
6373 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6374 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6375 MINIX=yes
6376 else
6377 MINIX=
6378 fi
6379
6380
6381 if test "$MINIX" = yes; then
6382
6383 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6384
6385
6386 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6387
6388
6389 $as_echo "#define _MINIX 1" >>confdefs.h
6390
6391 fi
6392
6393 case "$host_os" in
6394 hpux*)
6395
6396 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6397
6398 ;;
6399 esac
6400
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6403 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6404 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409
6410 # define __EXTENSIONS__ 1
6411 $ac_includes_default
6412 int
6413 main ()
6414 {
6415
6416 ;
6417 return 0;
6418 }
6419 _ACEOF
6420 if ac_fn_c_try_compile "$LINENO"; then :
6421 ac_cv_safe_to_define___extensions__=yes
6422 else
6423 ac_cv_safe_to_define___extensions__=no
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 fi
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6428 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6429 test $ac_cv_safe_to_define___extensions__ = yes &&
6430 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6431
6432 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6433
6434 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6435
6436 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6437
6438 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6439
6440 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6441
6442
6443
6444
6445
6446
6447
6448
6449 # Check whether --enable-largefile was given.
6450 if test "${enable_largefile+set}" = set; then :
6451 enableval=$enable_largefile;
6452 fi
6453
6454 if test "$enable_largefile" != no; then
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6457 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6458 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 ac_cv_sys_largefile_CC=no
6462 if test "$GCC" != yes; then
6463 ac_save_CC=$CC
6464 while :; do
6465 # IRIX 6.2 and later do not support large files by default,
6466 # so use the C compiler's -n32 option if that helps.
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 #include <sys/types.h>
6470 /* Check that off_t can represent 2**63 - 1 correctly.
6471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6472 since some C++ compilers masquerading as C compilers
6473 incorrectly reject 9223372036854775807. */
6474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6476 && LARGE_OFF_T % 2147483647 == 1)
6477 ? 1 : -1];
6478 int
6479 main ()
6480 {
6481
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487 break
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext
6490 CC="$CC -n32"
6491 if ac_fn_c_try_compile "$LINENO"; then :
6492 ac_cv_sys_largefile_CC=' -n32'; break
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext
6495 break
6496 done
6497 CC=$ac_save_CC
6498 rm -f conftest.$ac_ext
6499 fi
6500 fi
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6502 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6503 if test "$ac_cv_sys_largefile_CC" != no; then
6504 CC=$CC$ac_cv_sys_largefile_CC
6505 fi
6506
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6508 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6509 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 while :; do
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 #include <sys/types.h>
6516 /* Check that off_t can represent 2**63 - 1 correctly.
6517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6518 since some C++ compilers masquerading as C compilers
6519 incorrectly reject 9223372036854775807. */
6520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6522 && LARGE_OFF_T % 2147483647 == 1)
6523 ? 1 : -1];
6524 int
6525 main ()
6526 {
6527
6528 ;
6529 return 0;
6530 }
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"; then :
6533 ac_cv_sys_file_offset_bits=no; break
6534 fi
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #define _FILE_OFFSET_BITS 64
6539 #include <sys/types.h>
6540 /* Check that off_t can represent 2**63 - 1 correctly.
6541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6542 since some C++ compilers masquerading as C compilers
6543 incorrectly reject 9223372036854775807. */
6544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6546 && LARGE_OFF_T % 2147483647 == 1)
6547 ? 1 : -1];
6548 int
6549 main ()
6550 {
6551
6552 ;
6553 return 0;
6554 }
6555 _ACEOF
6556 if ac_fn_c_try_compile "$LINENO"; then :
6557 ac_cv_sys_file_offset_bits=64; break
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 ac_cv_sys_file_offset_bits=unknown
6561 break
6562 done
6563 fi
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6565 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6566 case $ac_cv_sys_file_offset_bits in #(
6567 no | unknown) ;;
6568 *)
6569 cat >>confdefs.h <<_ACEOF
6570 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6571 _ACEOF
6572 ;;
6573 esac
6574 rm -rf conftest*
6575 if test $ac_cv_sys_file_offset_bits = unknown; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6577 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6578 if test "${ac_cv_sys_large_files+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 while :; do
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 #include <sys/types.h>
6585 /* Check that off_t can represent 2**63 - 1 correctly.
6586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6587 since some C++ compilers masquerading as C compilers
6588 incorrectly reject 9223372036854775807. */
6589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6591 && LARGE_OFF_T % 2147483647 == 1)
6592 ? 1 : -1];
6593 int
6594 main ()
6595 {
6596
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602 ac_cv_sys_large_files=no; break
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607 #define _LARGE_FILES 1
6608 #include <sys/types.h>
6609 /* Check that off_t can represent 2**63 - 1 correctly.
6610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6611 since some C++ compilers masquerading as C compilers
6612 incorrectly reject 9223372036854775807. */
6613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6615 && LARGE_OFF_T % 2147483647 == 1)
6616 ? 1 : -1];
6617 int
6618 main ()
6619 {
6620
6621 ;
6622 return 0;
6623 }
6624 _ACEOF
6625 if ac_fn_c_try_compile "$LINENO"; then :
6626 ac_cv_sys_large_files=1; break
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 ac_cv_sys_large_files=unknown
6630 break
6631 done
6632 fi
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6634 $as_echo "$ac_cv_sys_large_files" >&6; }
6635 case $ac_cv_sys_large_files in #(
6636 no | unknown) ;;
6637 *)
6638 cat >>confdefs.h <<_ACEOF
6639 #define _LARGE_FILES $ac_cv_sys_large_files
6640 _ACEOF
6641 ;;
6642 esac
6643 rm -rf conftest*
6644 fi
6645
6646
6647 fi
6648
6649 case $ac_cv_prog_cc_stdc in #(
6650 no) :
6651 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6652 *) :
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6654 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6655 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 ac_cv_prog_cc_c99=no
6659 ac_save_CC=$CC
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662 #include <stdarg.h>
6663 #include <stdbool.h>
6664 #include <stdlib.h>
6665 #include <wchar.h>
6666 #include <stdio.h>
6667
6668 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6669 #define debug(...) fprintf (stderr, __VA_ARGS__)
6670 #define showlist(...) puts (#__VA_ARGS__)
6671 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6672 static void
6673 test_varargs_macros (void)
6674 {
6675 int x = 1234;
6676 int y = 5678;
6677 debug ("Flag");
6678 debug ("X = %d\n", x);
6679 showlist (The first, second, and third items.);
6680 report (x>y, "x is %d but y is %d", x, y);
6681 }
6682
6683 // Check long long types.
6684 #define BIG64 18446744073709551615ull
6685 #define BIG32 4294967295ul
6686 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6687 #if !BIG_OK
6688 your preprocessor is broken;
6689 #endif
6690 #if BIG_OK
6691 #else
6692 your preprocessor is broken;
6693 #endif
6694 static long long int bignum = -9223372036854775807LL;
6695 static unsigned long long int ubignum = BIG64;
6696
6697 struct incomplete_array
6698 {
6699 int datasize;
6700 double data[];
6701 };
6702
6703 struct named_init {
6704 int number;
6705 const wchar_t *name;
6706 double average;
6707 };
6708
6709 typedef const char *ccp;
6710
6711 static inline int
6712 test_restrict (ccp restrict text)
6713 {
6714 // See if C++-style comments work.
6715 // Iterate through items via the restricted pointer.
6716 // Also check for declarations in for loops.
6717 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6718 continue;
6719 return 0;
6720 }
6721
6722 // Check varargs and va_copy.
6723 static void
6724 test_varargs (const char *format, ...)
6725 {
6726 va_list args;
6727 va_start (args, format);
6728 va_list args_copy;
6729 va_copy (args_copy, args);
6730
6731 const char *str;
6732 int number;
6733 float fnumber;
6734
6735 while (*format)
6736 {
6737 switch (*format++)
6738 {
6739 case 's': // string
6740 str = va_arg (args_copy, const char *);
6741 break;
6742 case 'd': // int
6743 number = va_arg (args_copy, int);
6744 break;
6745 case 'f': // float
6746 fnumber = va_arg (args_copy, double);
6747 break;
6748 default:
6749 break;
6750 }
6751 }
6752 va_end (args_copy);
6753 va_end (args);
6754 }
6755
6756 int
6757 main ()
6758 {
6759
6760 // Check bool.
6761 _Bool success = false;
6762
6763 // Check restrict.
6764 if (test_restrict ("String literal") == 0)
6765 success = true;
6766 char *restrict newvar = "Another string";
6767
6768 // Check varargs.
6769 test_varargs ("s, d' f .", "string", 65, 34.234);
6770 test_varargs_macros ();
6771
6772 // Check flexible array members.
6773 struct incomplete_array *ia =
6774 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6775 ia->datasize = 10;
6776 for (int i = 0; i < ia->datasize; ++i)
6777 ia->data[i] = i * 1.234;
6778
6779 // Check named initializers.
6780 struct named_init ni = {
6781 .number = 34,
6782 .name = L"Test wide string",
6783 .average = 543.34343,
6784 };
6785
6786 ni.number = 58;
6787
6788 int dynamic_array[ni.number];
6789 dynamic_array[ni.number - 1] = 543;
6790
6791 // work around unused variable warnings
6792 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6793 || dynamic_array[ni.number - 1] != 543);
6794
6795 ;
6796 return 0;
6797 }
6798 _ACEOF
6799 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6800 do
6801 CC="$ac_save_CC $ac_arg"
6802 if ac_fn_c_try_compile "$LINENO"; then :
6803 ac_cv_prog_cc_c99=$ac_arg
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext
6806 test "x$ac_cv_prog_cc_c99" != "xno" && break
6807 done
6808 rm -f conftest.$ac_ext
6809 CC=$ac_save_CC
6810
6811 fi
6812 # AC_CACHE_VAL
6813 case "x$ac_cv_prog_cc_c99" in
6814 x)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6816 $as_echo "none needed" >&6; } ;;
6817 xno)
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6819 $as_echo "unsupported" >&6; } ;;
6820 *)
6821 CC="$CC $ac_cv_prog_cc_c99"
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6823 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6824 esac
6825 if test "x$ac_cv_prog_cc_c99" != xno; then :
6826 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6830 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 ac_cv_prog_cc_c89=no
6834 ac_save_CC=$CC
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 #include <stdarg.h>
6838 #include <stdio.h>
6839 #include <sys/types.h>
6840 #include <sys/stat.h>
6841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6842 struct buf { int x; };
6843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6844 static char *e (p, i)
6845 char **p;
6846 int i;
6847 {
6848 return p[i];
6849 }
6850 static char *f (char * (*g) (char **, int), char **p, ...)
6851 {
6852 char *s;
6853 va_list v;
6854 va_start (v,p);
6855 s = g (p, va_arg (v,int));
6856 va_end (v);
6857 return s;
6858 }
6859
6860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6861 function prototypes and stuff, but not '\xHH' hex character constants.
6862 These don't provoke an error unfortunately, instead are silently treated
6863 as 'x'. The following induces an error, until -std is added to get
6864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6865 array size at least. It's necessary to write '\x00'==0 to get something
6866 that's true only with -std. */
6867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6868
6869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6870 inside strings and character constants. */
6871 #define FOO(x) 'x'
6872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6873
6874 int test (int i, double x);
6875 struct s1 {int (*f) (int a);};
6876 struct s2 {int (*f) (double a);};
6877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6878 int argc;
6879 char **argv;
6880 int
6881 main ()
6882 {
6883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6890 do
6891 CC="$ac_save_CC $ac_arg"
6892 if ac_fn_c_try_compile "$LINENO"; then :
6893 ac_cv_prog_cc_c89=$ac_arg
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext
6896 test "x$ac_cv_prog_cc_c89" != "xno" && break
6897 done
6898 rm -f conftest.$ac_ext
6899 CC=$ac_save_CC
6900
6901 fi
6902 # AC_CACHE_VAL
6903 case "x$ac_cv_prog_cc_c89" in
6904 x)
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6906 $as_echo "none needed" >&6; } ;;
6907 xno)
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6909 $as_echo "unsupported" >&6; } ;;
6910 *)
6911 CC="$CC $ac_cv_prog_cc_c89"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6914 esac
6915 if test "x$ac_cv_prog_cc_c89" != xno; then :
6916 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6917 else
6918 ac_cv_prog_cc_stdc=no
6919 fi
6920
6921 fi
6922 ;;
6923 esac
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6925 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6926 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6928 fi
6929
6930 case $ac_cv_prog_cc_stdc in #(
6931 no) :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6933 $as_echo "unsupported" >&6; } ;; #(
6934 '') :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6936 $as_echo "none needed" >&6; } ;; #(
6937 *) :
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6939 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6940 esac
6941
6942
6943
6944 # Code from module alloca-opt:
6945 # Code from module allocator:
6946 # Code from module c-ctype:
6947 # Code from module c-strcase:
6948 # Code from module careadlinkat:
6949 # Code from module clock-time:
6950 # Code from module crypto/md5:
6951 # Code from module crypto/sha1:
6952 # Code from module crypto/sha256:
6953 # Code from module crypto/sha512:
6954 # Code from module dosname:
6955 # Code from module dtoastr:
6956 # Code from module dtotimespec:
6957 # Code from module dup2:
6958 # Code from module environ:
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 timespec:
7015 # Code from module timespec-add:
7016 # Code from module timespec-sub:
7017 # Code from module u64:
7018 # Code from module unistd:
7019 # Code from module utimens:
7020 # Code from module verify:
7021 # Code from module warnings:
7022
7023
7024 # Check whether --enable-gcc-warnings was given.
7025 if test "${enable_gcc_warnings+set}" = set; then :
7026 enableval=$enable_gcc_warnings; case $enableval in
7027 yes|no) ;;
7028 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7029 esac
7030 gl_gcc_warnings=$enableval
7031 else
7032 gl_gcc_warnings=no
7033
7034 fi
7035
7036
7037 # Check whether --enable-link-time-optimization was given.
7038 if test "${enable_link_time_optimization+set}" = set; then :
7039 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7041 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7042 ac_lto_supported=no
7043 if test x$GCC = xyes; then
7044 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7045 if test x$CPUS != x; then
7046 LTO="-flto=$CPUS"
7047 else
7048 LTO="-flto"
7049 fi
7050 old_CFLAGS=$CFLAGS
7051 CFLAGS="$CFLAGS $LTO"
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054
7055 int
7056 main ()
7057 {
7058
7059 ;
7060 return 0;
7061 }
7062 _ACEOF
7063 if ac_fn_c_try_compile "$LINENO"; then :
7064 ac_lto_supported=yes
7065 else
7066 ac_lto_supported=no
7067 fi
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 CFLAGS="$old_CFLAGS"
7070 fi
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7072 $as_echo "$ac_lto_supported" >&6; }
7073 if test "$ac_lto_supported" = "yes"; then
7074 CFLAGS="$CFLAGS $LTO"
7075 fi
7076 fi
7077 fi
7078
7079
7080 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7081 # ------------------------------------------------
7082 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7083 # Otherwise, run RUN-IF-NOT-FOUND.
7084
7085
7086 # When compiling with GCC, prefer -isystem to -I when including system
7087 # include files, to avoid generating useless diagnostics for the files.
7088 if test "$gl_gcc_warnings" != yes; then
7089 isystem='-I'
7090 else
7091 isystem='-isystem '
7092
7093 # This, $nw, is the list of warnings we disable.
7094 nw=
7095
7096 case $with_x_toolkit in
7097 lucid | athena | motif)
7098 # Old toolkits mishandle 'const'.
7099 nw="$nw -Wwrite-strings"
7100 ;;
7101 *)
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7103 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7104 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107
7108 gl_save_compiler_FLAGS="$CFLAGS"
7109 as_fn_append CFLAGS " -Werror"
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112
7113 int
7114 main ()
7115 {
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122 gl_cv_warn_c__Werror=yes
7123 else
7124 gl_cv_warn_c__Werror=no
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 CFLAGS="$gl_save_compiler_FLAGS"
7128
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7131 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7132 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7133 as_fn_append WERROR_CFLAGS " -Werror"
7134 fi
7135
7136
7137 ;;
7138 esac
7139
7140
7141 nw="$nw -Waggregate-return" # anachronistic
7142 nw="$nw -Wlong-long" # C90 is anachronistic
7143 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7144 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7145 nw="$nw -Wtraditional" # Warns on #elif which we use often
7146 nw="$nw -Wcast-qual" # Too many warnings for now
7147 nw="$nw -Wconversion" # Too many warnings for now
7148 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7149 nw="$nw -Wsign-conversion" # Too many warnings for now
7150 nw="$nw -Woverlength-strings" # Not a problem these days
7151 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7152 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7153 nw="$nw -Wpadded" # Our structs are not padded
7154 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7155 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7156 nw="$nw -Wformat-nonliteral" # we do this a lot
7157 nw="$nw -Wvla" # warnings in gettext.h
7158 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7159 nw="$nw -Wswitch-enum" # Too many warnings for now
7160 nw="$nw -Wswitch-default" # Too many warnings for now
7161 nw="$nw -Wfloat-equal" # warns about high-quality code
7162 nw="$nw -Winline" # OK to ignore 'inline'
7163 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7164 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7165
7166 # Emacs doesn't care about shadowing; see
7167 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7168 nw="$nw -Wshadow"
7169
7170 # The following lines should be removable at some point.
7171 nw="$nw -Wstack-protector"
7172 nw="$nw -Wstrict-overflow"
7173 nw="$nw -Wsuggest-attribute=pure"
7174
7175
7176
7177 if test -n "$GCC"; then
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7180 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7181 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184
7185 gl_save_CFLAGS="$CFLAGS"
7186 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189
7190 int
7191 main ()
7192 {
7193
7194 ;
7195 return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 gl_cv_cc_nomfi_supported=yes
7200 else
7201 gl_cv_cc_nomfi_supported=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 CFLAGS="$gl_save_CFLAGS"
7205 fi
7206
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7208 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7209
7210 if test "$gl_cv_cc_nomfi_supported" = yes; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7212 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7213 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216
7217 gl_save_CFLAGS="$CFLAGS"
7218 CFLAGS="$CFLAGS -W -Werror"
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 void f (void)
7222 {
7223 typedef struct { int a; int b; } s_t;
7224 s_t s1 = { 0, };
7225 }
7226
7227 int
7228 main ()
7229 {
7230
7231 ;
7232 return 0;
7233 }
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"; then :
7236 gl_cv_cc_nomfi_needed=no
7237 else
7238 gl_cv_cc_nomfi_needed=yes
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 CFLAGS="$gl_save_CFLAGS"
7242
7243 fi
7244
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7246 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7247 fi
7248 fi
7249
7250 gl_manywarn_set=
7251 for gl_manywarn_item in \
7252 -Wall \
7253 -W \
7254 -Wformat-y2k \
7255 -Wformat-nonliteral \
7256 -Wformat-security \
7257 -Winit-self \
7258 -Wmissing-include-dirs \
7259 -Wswitch-default \
7260 -Wswitch-enum \
7261 -Wunused \
7262 -Wunknown-pragmas \
7263 -Wstrict-aliasing \
7264 -Wstrict-overflow \
7265 -Wsystem-headers \
7266 -Wfloat-equal \
7267 -Wtraditional \
7268 -Wtraditional-conversion \
7269 -Wdeclaration-after-statement \
7270 -Wundef \
7271 -Wshadow \
7272 -Wunsafe-loop-optimizations \
7273 -Wpointer-arith \
7274 -Wbad-function-cast \
7275 -Wc++-compat \
7276 -Wcast-qual \
7277 -Wcast-align \
7278 -Wwrite-strings \
7279 -Wconversion \
7280 -Wsign-conversion \
7281 -Wlogical-op \
7282 -Waggregate-return \
7283 -Wstrict-prototypes \
7284 -Wold-style-definition \
7285 -Wmissing-prototypes \
7286 -Wmissing-declarations \
7287 -Wmissing-noreturn \
7288 -Wmissing-format-attribute \
7289 -Wpacked \
7290 -Wpadded \
7291 -Wredundant-decls \
7292 -Wnested-externs \
7293 -Wunreachable-code \
7294 -Winline \
7295 -Winvalid-pch \
7296 -Wlong-long \
7297 -Wvla \
7298 -Wvolatile-register-var \
7299 -Wdisabled-optimization \
7300 -Wstack-protector \
7301 -Woverlength-strings \
7302 -Wbuiltin-macro-redefined \
7303 -Wmudflap \
7304 -Wpacked-bitfield-compat \
7305 -Wsync-nand \
7306 ; do
7307 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7308 done
7309 # The following are not documented in the manual but are included in
7310 # output from gcc --help=warnings.
7311 for gl_manywarn_item in \
7312 -Wattributes \
7313 -Wcoverage-mismatch \
7314 -Wunused-macros \
7315 ; do
7316 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7317 done
7318 # More warnings from gcc 4.6.2 --help=warnings.
7319 for gl_manywarn_item in \
7320 -Wabi \
7321 -Wcpp \
7322 -Wdeprecated \
7323 -Wdeprecated-declarations \
7324 -Wdiv-by-zero \
7325 -Wdouble-promotion \
7326 -Wendif-labels \
7327 -Wextra \
7328 -Wformat-contains-nul \
7329 -Wformat-extra-args \
7330 -Wformat-zero-length \
7331 -Wformat=2 \
7332 -Wmultichar \
7333 -Wnormalized=nfc \
7334 -Woverflow \
7335 -Wpointer-to-int-cast \
7336 -Wpragmas \
7337 -Wsuggest-attribute=const \
7338 -Wsuggest-attribute=noreturn \
7339 -Wsuggest-attribute=pure \
7340 -Wtrampolines \
7341 ; do
7342 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7343 done
7344
7345 # Disable the missing-field-initializers warning if needed
7346 if test "$gl_cv_cc_nomfi_needed" = yes; then
7347 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7348 fi
7349
7350 ws=$gl_manywarn_set
7351
7352
7353 gl_warn_set=
7354 set x $ws; shift
7355 for gl_warn_item
7356 do
7357 case " $nw " in
7358 *" $gl_warn_item "*)
7359 ;;
7360 *)
7361 gl_warn_set="$gl_warn_set $gl_warn_item"
7362 ;;
7363 esac
7364 done
7365 ws=$gl_warn_set
7366
7367 for w in $ws; do
7368 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7370 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7371 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374
7375 gl_save_compiler_FLAGS="$CFLAGS"
7376 as_fn_append CFLAGS " $w"
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379
7380 int
7381 main ()
7382 {
7383
7384 ;
7385 return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_compile "$LINENO"; then :
7389 eval "$as_gl_Warn=yes"
7390 else
7391 eval "$as_gl_Warn=no"
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 CFLAGS="$gl_save_compiler_FLAGS"
7395
7396 fi
7397 eval ac_res=\$$as_gl_Warn
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7399 $as_echo "$ac_res" >&6; }
7400 eval as_val=\$$as_gl_Warn
7401 if test "x$as_val" = x""yes; then :
7402 as_fn_append WARN_CFLAGS " $w"
7403 fi
7404
7405
7406 done
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7408 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7409 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412
7413 gl_save_compiler_FLAGS="$CFLAGS"
7414 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417
7418 int
7419 main ()
7420 {
7421
7422 ;
7423 return 0;
7424 }
7425 _ACEOF
7426 if ac_fn_c_try_compile "$LINENO"; then :
7427 gl_cv_warn_c__Wno_missing_field_initializers=yes
7428 else
7429 gl_cv_warn_c__Wno_missing_field_initializers=no
7430 fi
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 CFLAGS="$gl_save_compiler_FLAGS"
7433
7434 fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7436 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7437 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7438 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7439 fi
7440
7441 # We need this one
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7443 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7444 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447
7448 gl_save_compiler_FLAGS="$CFLAGS"
7449 as_fn_append CFLAGS " -Wno-sign-compare"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452
7453 int
7454 main ()
7455 {
7456
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 gl_cv_warn_c__Wno_sign_compare=yes
7463 else
7464 gl_cv_warn_c__Wno_sign_compare=no
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 CFLAGS="$gl_save_compiler_FLAGS"
7468
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7471 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7472 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7473 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7474 fi
7475
7476 # Too many warnings for now
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7478 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7479 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482
7483 gl_save_compiler_FLAGS="$CFLAGS"
7484 as_fn_append CFLAGS " -Wno-type-limits"
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487
7488 int
7489 main ()
7490 {
7491
7492 ;
7493 return 0;
7494 }
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497 gl_cv_warn_c__Wno_type_limits=yes
7498 else
7499 gl_cv_warn_c__Wno_type_limits=no
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 CFLAGS="$gl_save_compiler_FLAGS"
7503
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7506 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7507 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7508 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7509 fi
7510
7511 # Too many warnings for now
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7513 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7514 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517
7518 gl_save_compiler_FLAGS="$CFLAGS"
7519 as_fn_append CFLAGS " -Wno-switch"
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522
7523 int
7524 main ()
7525 {
7526
7527 ;
7528 return 0;
7529 }
7530 _ACEOF
7531 if ac_fn_c_try_compile "$LINENO"; then :
7532 gl_cv_warn_c__Wno_switch=yes
7533 else
7534 gl_cv_warn_c__Wno_switch=no
7535 fi
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 CFLAGS="$gl_save_compiler_FLAGS"
7538
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7541 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7542 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7543 as_fn_append WARN_CFLAGS " -Wno-switch"
7544 fi
7545
7546 # Too many warnings for now
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7548 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7549 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552
7553 gl_save_compiler_FLAGS="$CFLAGS"
7554 as_fn_append CFLAGS " -Wno-unused-parameter"
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7557
7558 int
7559 main ()
7560 {
7561
7562 ;
7563 return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_compile "$LINENO"; then :
7567 gl_cv_warn_c__Wno_unused_parameter=yes
7568 else
7569 gl_cv_warn_c__Wno_unused_parameter=no
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 CFLAGS="$gl_save_compiler_FLAGS"
7573
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7576 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7577 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7578 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7579 fi
7580
7581 # Too many warnings for now
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7583 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7584 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587
7588 gl_save_compiler_FLAGS="$CFLAGS"
7589 as_fn_append CFLAGS " -Wno-format-nonliteral"
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592
7593 int
7594 main ()
7595 {
7596
7597 ;
7598 return 0;
7599 }
7600 _ACEOF
7601 if ac_fn_c_try_compile "$LINENO"; then :
7602 gl_cv_warn_c__Wno_format_nonliteral=yes
7603 else
7604 gl_cv_warn_c__Wno_format_nonliteral=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 CFLAGS="$gl_save_compiler_FLAGS"
7608
7609 fi
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7611 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7612 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7613 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7614 fi
7615
7616
7617
7618 # In spite of excluding -Wlogical-op above, it is enabled, as of
7619 # gcc 4.5.0 20090517.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7621 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7622 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625
7626 gl_save_compiler_FLAGS="$CFLAGS"
7627 as_fn_append CFLAGS " -Wno-logical-op"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630
7631 int
7632 main ()
7633 {
7634
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 gl_cv_warn_c__Wno_logical_op=yes
7641 else
7642 gl_cv_warn_c__Wno_logical_op=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 CFLAGS="$gl_save_compiler_FLAGS"
7646
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7649 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7650 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7651 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7652 fi
7653
7654
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7657 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7658 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661
7662 gl_save_compiler_FLAGS="$CFLAGS"
7663 as_fn_append CFLAGS " -fdiagnostics-show-option"
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666
7667 int
7668 main ()
7669 {
7670
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 if ac_fn_c_try_compile "$LINENO"; then :
7676 gl_cv_warn_c__fdiagnostics_show_option=yes
7677 else
7678 gl_cv_warn_c__fdiagnostics_show_option=no
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681 CFLAGS="$gl_save_compiler_FLAGS"
7682
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7685 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7686 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7687 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7688 fi
7689
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7692 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7693 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696
7697 gl_save_compiler_FLAGS="$CFLAGS"
7698 as_fn_append CFLAGS " -funit-at-a-time"
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701
7702 int
7703 main ()
7704 {
7705
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_compile "$LINENO"; then :
7711 gl_cv_warn_c__funit_at_a_time=yes
7712 else
7713 gl_cv_warn_c__funit_at_a_time=no
7714 fi
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 CFLAGS="$gl_save_compiler_FLAGS"
7717
7718 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7720 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7721 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7722 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7723 fi
7724
7725
7726
7727
7728 $as_echo "#define lint 1" >>confdefs.h
7729
7730
7731 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7732
7733
7734 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7735
7736
7737 # We use a slightly smaller set of warning options for lib/.
7738 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7739 nw=
7740 nw="$nw -Wunused-macros"
7741
7742
7743 gl_warn_set=
7744 set x $WARN_CFLAGS; shift
7745 for gl_warn_item
7746 do
7747 case " $nw " in
7748 *" $gl_warn_item "*)
7749 ;;
7750 *)
7751 gl_warn_set="$gl_warn_set $gl_warn_item"
7752 ;;
7753 esac
7754 done
7755 GNULIB_WARN_CFLAGS=$gl_warn_set
7756
7757
7758 fi
7759
7760
7761
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7763 $as_echo_n "checking whether ln -s works... " >&6; }
7764 LN_S=$as_ln_s
7765 if test "$LN_S" = "ln -s"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7767 $as_echo "yes" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7770 $as_echo "no, using $LN_S" >&6; }
7771 fi
7772
7773
7774 # Extract the first word of "install-info", so it can be a program name with args.
7775 set dummy install-info; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 case $INSTALL_INFO in
7782 [\\/]* | ?:[\\/]*)
7783 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7784 ;;
7785 *)
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7788 do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 break 2
7796 fi
7797 done
7798 done
7799 IFS=$as_save_IFS
7800
7801 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7802 ;;
7803 esac
7804 fi
7805 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7806 if test -n "$INSTALL_INFO"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7808 $as_echo "$INSTALL_INFO" >&6; }
7809 else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813
7814
7815 # Extract the first word of "gzip", so it can be a program name with args.
7816 set dummy gzip; ac_word=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 case $GZIP_PROG in
7823 [\\/]* | ?:[\\/]*)
7824 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7825 ;;
7826 *)
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842 ;;
7843 esac
7844 fi
7845 GZIP_PROG=$ac_cv_path_GZIP_PROG
7846 if test -n "$GZIP_PROG"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7848 $as_echo "$GZIP_PROG" >&6; }
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854
7855
7856 if test $opsys = gnu-linux; then
7857 # Extract the first word of "paxctl", so it can be a program name with args.
7858 set dummy paxctl; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 case $PAXCTL in
7865 [\\/]* | ?:[\\/]*)
7866 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7867 ;;
7868 *)
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882 IFS=$as_save_IFS
7883
7884 ;;
7885 esac
7886 fi
7887 PAXCTL=$ac_cv_path_PAXCTL
7888 if test -n "$PAXCTL"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7890 $as_echo "$PAXCTL" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895
7896
7897 if test "X$PAXCTL" != X; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7899 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902
7903 int
7904 main ()
7905 {
7906
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_link "$LINENO"; then :
7912 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913 $as_echo "yes" >&6; }
7914 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }; PAXCTL=""; fi
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7919 fi
7920 fi
7921
7922 ## Need makeinfo >= 4.7 (?) to build the manuals.
7923 # Extract the first word of "makeinfo", so it can be a program name with args.
7924 set dummy makeinfo; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 case $MAKEINFO in
7931 [\\/]* | ?:[\\/]*)
7932 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7933 ;;
7934 *)
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7951 ;;
7952 esac
7953 fi
7954 MAKEINFO=$ac_cv_path_MAKEINFO
7955 if test -n "$MAKEINFO"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7957 $as_echo "$MAKEINFO" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963
7964 if test "$MAKEINFO" != "no" && \
7965 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
7966 MAKEINFO=no
7967 fi
7968
7969 ## Makeinfo is unusual. For a released Emacs, the manuals are
7970 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7971 ## therefore in the category of "special tools" not normally required, which
7972 ## configure does not have to check for (eg autoconf itself).
7973 ## In a Bazaar checkout on the other hand, the manuals are not included.
7974 ## So makeinfo is a requirement to build from Bazaar, and configure
7975 ## should test for it as it does for any other build requirement.
7976 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7977 ## with pre-built manuals, from a Bazaar checkout.
7978 HAVE_MAKEINFO=yes
7979
7980 if test "$MAKEINFO" = "no"; then
7981 MAKEINFO=makeinfo
7982 if test "x${with_makeinfo}" = "xno"; then
7983 HAVE_MAKEINFO=no
7984 elif test ! -e $srcdir/info/emacs; then
7985 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7986 source tree does not seem to have pre-built manuals in the \`info' directory.
7987 Either install a suitable version of makeinfo, or re-run configure
7988 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7989 fi
7990 fi
7991
7992
7993 INFO_EXT=.info
7994 INFO_OPTS=--no-split
7995
7996
7997
7998
7999 if test x$GCC = xyes; then
8000 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8001 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8002 else
8003 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8004 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8005 fi
8006
8007
8008 late_LDFLAGS=$LDFLAGS
8009 if test x$GCC = xyes; then
8010 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8011 else
8012 LDFLAGS="$LDFLAGS -znocombreloc"
8013 fi
8014
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8016 $as_echo_n "checking for -znocombreloc... " >&6; }
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019
8020 int
8021 main ()
8022 {
8023
8024 ;
8025 return 0;
8026 }
8027 _ACEOF
8028 if ac_fn_c_try_link "$LINENO"; then :
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8030 $as_echo "yes" >&6; }
8031 else
8032 LDFLAGS=$late_LDFLAGS
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8035 fi
8036 rm -f core conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
8038
8039
8040 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8041 case "$opsys" in
8042 your-opsys-here) CANNOT_DUMP=yes ;;
8043 esac
8044
8045 test "$CANNOT_DUMP" = "yes" && \
8046
8047 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8048
8049
8050
8051
8052
8053 UNEXEC_OBJ=unexelf.o
8054 case "$opsys" in
8055 # MSDOS uses unexcoff.o
8056 # MSWindows uses unexw32.o
8057 aix4-2)
8058 UNEXEC_OBJ=unexaix.o
8059 ;;
8060 cygwin)
8061 UNEXEC_OBJ=unexcw.o
8062 ;;
8063 darwin)
8064 UNEXEC_OBJ=unexmacosx.o
8065 ;;
8066 hpux10-20 | hpux11)
8067 UNEXEC_OBJ=unexhp9k800.o
8068 ;;
8069 sol2-10)
8070 # Use the Solaris dldump() function, called from unexsol.c, to dump
8071 # emacs, instead of the generic ELF dump code found in unexelf.c.
8072 # The resulting binary has a complete symbol table, and is better
8073 # for debugging and other observability tools (debuggers, pstack, etc).
8074 #
8075 # If you encounter a problem using dldump(), please consider sending
8076 # a message to the OpenSolaris tools-linking mailing list:
8077 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8078 #
8079 # It is likely that dldump() works with older Solaris too, but this has
8080 # not been tested, so for now this change is for Solaris 10 or newer.
8081 UNEXEC_OBJ=unexsol.o
8082 ;;
8083 esac
8084
8085 LD_SWITCH_SYSTEM=
8086 case "$opsys" in
8087 freebsd)
8088 ## Let `ld' find image libs and similar things in /usr/local/lib.
8089 ## The system compiler, GCC, has apparently been modified to not
8090 ## look there, contrary to what a stock GCC would do.
8091 ### It's not our place to do this. See bug#10313#17.
8092 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8093 :
8094 ;;
8095
8096 gnu-linux)
8097 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8098 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8099 ;;
8100
8101 netbsd)
8102 ### It's not our place to do this. See bug#10313#17.
8103 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8104 :
8105 ;;
8106
8107 openbsd)
8108 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8109 ## otherwise Emacs dumps core on elf systems.
8110 LD_SWITCH_SYSTEM="-Z"
8111 ;;
8112 esac
8113
8114
8115 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8116
8117 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8118 ## which has not been defined yet. When this was handled with cpp,
8119 ## it was expanded to null when configure sourced the s/*.h file.
8120 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8121 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8122 ## (or somesuch), but because it is supposed to go at the _front_
8123 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8124 ## Compare with the gnu-linux case below, which added to the end
8125 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8126 ## LD_SWITCH_SYSTEM_TEMACS.
8127 case "$opsys" in
8128 netbsd|openbsd)
8129 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8130 esac
8131
8132
8133 C_SWITCH_MACHINE=
8134 case $canonical in
8135 alpha*)
8136 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8137 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8138
8139 fi
8140
8141 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8142 ## With ELF, make sure that all common symbols get allocated to in the
8143 ## data section. Otherwise, the dump of temacs may miss variables in
8144 ## the shared library that have been initialized. For example, with
8145 ## GNU libc, __malloc_initialized would normally be resolved to the
8146 ## shared library's .bss section, which is fatal.
8147 if test "x$GCC" = "xyes"; then
8148 C_SWITCH_MACHINE="-fno-common"
8149 else
8150 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8151 fi
8152 else
8153 UNEXEC_OBJ=unexalpha.o
8154 fi
8155 ;;
8156 esac
8157
8158
8159
8160
8161 C_SWITCH_SYSTEM=
8162 ## Some programs in src produce warnings saying certain subprograms
8163 ## are too complex and need a MAXMEM value greater than 2000 for
8164 ## additional optimization. --nils@exp-math.uni-essen.de
8165 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8166 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8167 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8168 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8169
8170
8171
8172 LIBS_SYSTEM=
8173 case "$opsys" in
8174 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8175 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8176
8177 freebsd) LIBS_SYSTEM="-lutil" ;;
8178
8179 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8180
8181 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8182
8183 ## Motif needs -lgen.
8184 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8185 esac
8186
8187
8188
8189 ### Make sure subsequent tests use flags consistent with the build flags.
8190
8191 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8192 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8193 else
8194 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8195 fi
8196
8197 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8198
8199 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8200
8201
8202
8203 LIB_MATH=-lm
8204 LIB_STANDARD=
8205 START_FILES=
8206 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8207
8208 case $opsys in
8209 cygwin )
8210 LIB_MATH=
8211 START_FILES='pre-crt0.o'
8212 ;;
8213 darwin )
8214 ## Adding -lm confuses the dynamic linker, so omit it.
8215 LIB_MATH=
8216 START_FILES='pre-crt0.o'
8217 ;;
8218 freebsd )
8219 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8220 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8221 SYSTEM_TYPE=berkeley-unix
8222 ;;
8223 gnu-linux | gnu-kfreebsd )
8224 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8225 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8226 ;;
8227 hpux10-20 | hpux11 )
8228 LIB_STANDARD=-lc
8229 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8230 ;;
8231 netbsd | openbsd )
8232 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8233 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8234 SYSTEM_TYPE=berkeley-unix
8235 ;;
8236
8237 sol2* | unixware )
8238 SYSTEM_TYPE=usg-unix-v
8239 ;;
8240
8241 esac
8242
8243
8244
8245
8246 cat >>confdefs.h <<_ACEOF
8247 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8248 _ACEOF
8249
8250
8251 crt_files=
8252
8253 for file in x $LIB_STANDARD $START_FILES; do
8254 case "$file" in
8255 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8256 esac
8257 done
8258
8259 if test "x$crt_files" != x; then
8260
8261 ## If user specified a crt-dir, use that unconditionally.
8262 crt_gcc=no
8263
8264 if test "X$CRT_DIR" = "X"; then
8265
8266 CRT_DIR=/usr/lib # default
8267
8268 case "$canonical" in
8269 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8270 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8271 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8272 ## For anything else (eg /usr/lib32), it is up the user to specify
8273 ## the location (bug#5655).
8274 ## Test for crtn.o, not just the directory, because sometimes the
8275 ## directory exists but does not have the relevant files (bug#1287).
8276 ## FIXME better to test for binary compatibility somehow.
8277 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8278 ;;
8279
8280 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8281 esac
8282
8283 case "$opsys" in
8284 hpux10-20) CRT_DIR=/lib ;;
8285 esac
8286
8287 test "x${GCC}" = xyes && crt_gcc=yes
8288
8289 fi # CRT_DIR = ""
8290
8291 crt_missing=
8292
8293 for file in $crt_files; do
8294
8295 ## If we're using gcc, try to determine it automatically by asking
8296 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8297 ## system-dependent default from above.]
8298 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8299
8300 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8301 case "$crt_file" in
8302 */*)
8303 CRT_DIR=`$as_dirname -- "$crt_file" ||
8304 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8305 X"$crt_file" : 'X\(//\)[^/]' \| \
8306 X"$crt_file" : 'X\(//\)$' \| \
8307 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8308 $as_echo X"$crt_file" |
8309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8310 s//\1/
8311 q
8312 }
8313 /^X\(\/\/\)[^/].*/{
8314 s//\1/
8315 q
8316 }
8317 /^X\(\/\/\)$/{
8318 s//\1/
8319 q
8320 }
8321 /^X\(\/\).*/{
8322 s//\1/
8323 q
8324 }
8325 s/.*/./; q'`
8326 ;;
8327 esac
8328 fi
8329
8330 crt_gcc=no
8331
8332 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8333 done # $crt_files
8334
8335 test "x$crt_missing" = x || \
8336 as_fn_error "Required file(s) not found:$crt_missing
8337 Try using the --with-crt-dir option." "$LINENO" 5
8338
8339 fi # crt_files != ""
8340
8341
8342
8343 case $opsys in
8344 netbsd | openbsd )
8345 if test -f $CRT_DIR/crti.o; then
8346
8347 test -f $CRT_DIR/crtn.o || \
8348 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8349
8350 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8351 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8352 fi
8353 ;;
8354 esac
8355
8356
8357 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8358 pre_PKG_CONFIG_LIBS=$LIBS
8359
8360 # Extract the first word of "pkg-config", so it can be a program name with args.
8361 set dummy pkg-config; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 case $PKG_CONFIG in
8368 [\\/]* | ?:[\\/]*)
8369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8370 ;;
8371 *)
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8382 fi
8383 done
8384 done
8385 IFS=$as_save_IFS
8386
8387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8388 ;;
8389 esac
8390 fi
8391 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8392 if test -n "$PKG_CONFIG"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8394 $as_echo "$PKG_CONFIG" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 fi
8399
8400
8401
8402
8403
8404
8405 if test "${with_sound}" != "no"; then
8406 # Sound support for GNU/Linux and the free BSDs.
8407 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8408 do :
8409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8411 eval as_val=\$$as_ac_Header
8412 if test "x$as_val" = x""yes; then :
8413 cat >>confdefs.h <<_ACEOF
8414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8415 _ACEOF
8416 have_sound_header=yes
8417 fi
8418
8419 done
8420
8421 # Emulation library used on NetBSD.
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8423 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8424 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 ac_check_lib_save_LIBS=$LIBS
8428 LIBS="-lossaudio $LIBS"
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431
8432 /* Override any GCC internal prototype to avoid an error.
8433 Use char because int might match the return type of a GCC
8434 builtin and then its argument prototype would still apply. */
8435 #ifdef __cplusplus
8436 extern "C"
8437 #endif
8438 char _oss_ioctl ();
8439 int
8440 main ()
8441 {
8442 return _oss_ioctl ();
8443 ;
8444 return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_link "$LINENO"; then :
8448 ac_cv_lib_ossaudio__oss_ioctl=yes
8449 else
8450 ac_cv_lib_ossaudio__oss_ioctl=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 LIBS=$ac_check_lib_save_LIBS
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8457 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8458 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8459 LIBSOUND=-lossaudio
8460 else
8461 LIBSOUND=
8462 fi
8463
8464
8465
8466 ALSA_REQUIRED=1.0.0
8467 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8468
8469 succeeded=no
8470
8471 if test "$PKG_CONFIG" = "no" ; then
8472 HAVE_ALSA=no
8473 else
8474 PKG_CONFIG_MIN_VERSION=0.9.0
8475 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8477 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8478
8479 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8480 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8481 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8482 edit_cflags="
8483 s,///*,/,g
8484 s/^/ /
8485 s/ -I/ $isystem/g
8486 s/^ //
8487 "
8488 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8489 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8491 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8492 succeeded=yes
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8496 ALSA_CFLAGS=""
8497 ALSA_LIBS=""
8498 ## If we have a custom action on failure, don't print errors, but
8499 ## do set a variable so people can do so.
8500 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8501
8502 fi
8503
8504
8505
8506 else
8507 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8508 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8509 fi
8510 fi
8511
8512 if test $succeeded = yes; then
8513 HAVE_ALSA=yes
8514 else
8515 HAVE_ALSA=no
8516 fi
8517
8518 if test $HAVE_ALSA = yes; then
8519 SAVE_CFLAGS="$CFLAGS"
8520 SAVE_LIBS="$LIBS"
8521 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8522 LIBS="$ALSA_LIBS $LIBS"
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 #include <asoundlib.h>
8526 int
8527 main ()
8528 {
8529 snd_lib_error_set_handler (0);
8530 ;
8531 return 0;
8532 }
8533 _ACEOF
8534 if ac_fn_c_try_compile "$LINENO"; then :
8535 emacs_alsa_normal=yes
8536 else
8537 emacs_alsa_normal=no
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 if test "$emacs_alsa_normal" != yes; then
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 #include <alsa/asoundlib.h>
8544 int
8545 main ()
8546 {
8547 snd_lib_error_set_handler (0);
8548 ;
8549 return 0;
8550 }
8551 _ACEOF
8552 if ac_fn_c_try_compile "$LINENO"; then :
8553 emacs_alsa_subdir=yes
8554 else
8555 emacs_alsa_subdir=no
8556 fi
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 if test "$emacs_alsa_subdir" != yes; then
8559 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8560 fi
8561 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8562 fi
8563
8564 CFLAGS="$SAVE_CFLAGS"
8565 LIBS="$SAVE_LIBS"
8566 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8567 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8568
8569 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8570
8571 fi
8572
8573 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8574 case "$opsys" in
8575 gnu-linux|freebsd|netbsd)
8576
8577 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8578
8579 ;;
8580 esac
8581 fi
8582
8583
8584 fi
8585
8586
8587
8588
8589 for ac_header in $ac_header_list
8590 do :
8591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8592 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8593 "
8594 eval as_val=\$$as_ac_Header
8595 if test "x$as_val" = x""yes; then :
8596 cat >>confdefs.h <<_ACEOF
8597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8598 _ACEOF
8599
8600 fi
8601
8602 done
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8633 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #include <sys/personality.h>
8637 int
8638 main ()
8639 {
8640 personality (PER_LINUX32)
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"; then :
8646 emacs_cv_personality_linux32=yes
8647 else
8648 emacs_cv_personality_linux32=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8652 $as_echo "$emacs_cv_personality_linux32" >&6; }
8653
8654 if test $emacs_cv_personality_linux32 = yes; then
8655
8656 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8657
8658 fi
8659
8660 for ac_header in term.h
8661 do :
8662 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8663 if test "x$ac_cv_header_term_h" = x""yes; then :
8664 cat >>confdefs.h <<_ACEOF
8665 #define HAVE_TERM_H 1
8666 _ACEOF
8667
8668 fi
8669
8670 done
8671
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8673 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8674 if test "${ac_cv_header_time+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 #include <sys/types.h>
8680 #include <sys/time.h>
8681 #include <time.h>
8682
8683 int
8684 main ()
8685 {
8686 if ((struct tm *) 0)
8687 return 0;
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 if ac_fn_c_try_compile "$LINENO"; then :
8693 ac_cv_header_time=yes
8694 else
8695 ac_cv_header_time=no
8696 fi
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698 fi
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8700 $as_echo "$ac_cv_header_time" >&6; }
8701 if test $ac_cv_header_time = yes; then
8702
8703 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8704
8705 fi
8706
8707 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8708 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8709 ac_have_decl=1
8710 else
8711 ac_have_decl=0
8712 fi
8713
8714 cat >>confdefs.h <<_ACEOF
8715 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8716 _ACEOF
8717
8718 if test $ac_cv_have_decl_sys_siglist != yes; then
8719 # For Tru64, at least:
8720 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8721 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8722 ac_have_decl=1
8723 else
8724 ac_have_decl=0
8725 fi
8726
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8729 _ACEOF
8730
8731 if test $ac_cv_have_decl___sys_siglist = yes; then
8732
8733 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8734
8735 fi
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8738 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8739 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <sys/types.h>
8745 #include <sys/wait.h>
8746 #ifndef WEXITSTATUS
8747 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8748 #endif
8749 #ifndef WIFEXITED
8750 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8751 #endif
8752
8753 int
8754 main ()
8755 {
8756 int s;
8757 wait (&s);
8758 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8759 ;
8760 return 0;
8761 }
8762 _ACEOF
8763 if ac_fn_c_try_compile "$LINENO"; then :
8764 ac_cv_header_sys_wait_h=yes
8765 else
8766 ac_cv_header_sys_wait_h=no
8767 fi
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8771 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8772 if test $ac_cv_header_sys_wait_h = yes; then
8773
8774 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8775
8776 fi
8777
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8780 $as_echo_n "checking for speed_t... " >&6; }
8781 if test "${emacs_cv_speed_t+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 #include <termios.h>
8787 int
8788 main ()
8789 {
8790 speed_t x = 1;
8791 ;
8792 return 0;
8793 }
8794 _ACEOF
8795 if ac_fn_c_try_compile "$LINENO"; then :
8796 emacs_cv_speed_t=yes
8797 else
8798 emacs_cv_speed_t=no
8799 fi
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8803 $as_echo "$emacs_cv_speed_t" >&6; }
8804 if test $emacs_cv_speed_t = yes; then
8805
8806 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8807
8808 fi
8809
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8811 $as_echo_n "checking for struct exception... " >&6; }
8812 if test "${emacs_cv_struct_exception+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 #include <math.h>
8818 int
8819 main ()
8820 {
8821 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8822 ;
8823 return 0;
8824 }
8825 _ACEOF
8826 if ac_fn_c_try_compile "$LINENO"; then :
8827 emacs_cv_struct_exception=yes
8828 else
8829 emacs_cv_struct_exception=no
8830 fi
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 fi
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8834 $as_echo "$emacs_cv_struct_exception" >&6; }
8835 HAVE_EXCEPTION=$emacs_cv_struct_exception
8836 if test $emacs_cv_struct_exception != yes || test $opsys = darwin; then
8837
8838 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8839
8840 fi
8841
8842
8843
8844
8845 for ac_header in net/if.h
8846 do :
8847 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8848 #if HAVE_SYS_SOCKET_H
8849 #include <sys/socket.h>
8850 #endif
8851 "
8852 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8853 cat >>confdefs.h <<_ACEOF
8854 #define HAVE_NET_IF_H 1
8855 _ACEOF
8856
8857 fi
8858
8859 done
8860
8861 for ac_header in ifaddrs.h
8862 do :
8863 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8864 #if HAVE_SYS_SOCKET_H
8865 #include <sys/socket.h>
8866 #endif
8867 "
8868 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8869 cat >>confdefs.h <<_ACEOF
8870 #define HAVE_IFADDRS_H 1
8871 _ACEOF
8872
8873 fi
8874
8875 done
8876
8877 for ac_header in net/if_dl.h
8878 do :
8879 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8880 #if HAVE_SYS_SOCKET_H
8881 #include <sys/socket.h>
8882 #endif
8883 "
8884 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8885 cat >>confdefs.h <<_ACEOF
8886 #define HAVE_NET_IF_DL_H 1
8887 _ACEOF
8888
8889 fi
8890
8891 done
8892
8893
8894 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8895 #if HAVE_SYS_SOCKET_H
8896 #include <sys/socket.h>
8897 #endif
8898 #if HAVE_NET_IF_H
8899 #include <net/if.h>
8900 #endif
8901 "
8902 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8903
8904 cat >>confdefs.h <<_ACEOF
8905 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8906 _ACEOF
8907
8908
8909 fi
8910 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8911 #if HAVE_SYS_SOCKET_H
8912 #include <sys/socket.h>
8913 #endif
8914 #if HAVE_NET_IF_H
8915 #include <net/if.h>
8916 #endif
8917 "
8918 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8919
8920 cat >>confdefs.h <<_ACEOF
8921 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8922 _ACEOF
8923
8924
8925 fi
8926 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8927 #if HAVE_SYS_SOCKET_H
8928 #include <sys/socket.h>
8929 #endif
8930 #if HAVE_NET_IF_H
8931 #include <net/if.h>
8932 #endif
8933 "
8934 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8935
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8938 _ACEOF
8939
8940
8941 fi
8942 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8943 #if HAVE_SYS_SOCKET_H
8944 #include <sys/socket.h>
8945 #endif
8946 #if HAVE_NET_IF_H
8947 #include <net/if.h>
8948 #endif
8949 "
8950 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8951
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8954 _ACEOF
8955
8956
8957 fi
8958 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8959 #if HAVE_SYS_SOCKET_H
8960 #include <sys/socket.h>
8961 #endif
8962 #if HAVE_NET_IF_H
8963 #include <net/if.h>
8964 #endif
8965 "
8966 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8967
8968 cat >>confdefs.h <<_ACEOF
8969 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8970 _ACEOF
8971
8972
8973 fi
8974 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8975 #if HAVE_SYS_SOCKET_H
8976 #include <sys/socket.h>
8977 #endif
8978 #if HAVE_NET_IF_H
8979 #include <net/if.h>
8980 #endif
8981 "
8982 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8983
8984 cat >>confdefs.h <<_ACEOF
8985 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8986 _ACEOF
8987
8988
8989 fi
8990
8991
8992
8993
8994 DEPFLAGS=
8995 MKDEPDIR=":"
8996 deps_frag=deps.mk
8997 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8999 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9000 HAVE_GNU_MAKE=no
9001 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9002 if test "x$testval" != x; then
9003 HAVE_GNU_MAKE=yes
9004 else
9005 ac_enable_autodepend=no
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9008 $as_echo "$HAVE_GNU_MAKE" >&6; }
9009 if test $HAVE_GNU_MAKE = yes; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9011 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9012 SAVE_CFLAGS="$CFLAGS"
9013 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9016
9017 int
9018 main ()
9019 {
9020
9021 ;
9022 return 0;
9023 }
9024 _ACEOF
9025 if ac_fn_c_try_compile "$LINENO"; then :
9026
9027 else
9028 ac_enable_autodepend=no
9029 fi
9030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 CFLAGS="$SAVE_CFLAGS"
9032 test -f deps.d || ac_enable_autodepend=no
9033 rm -rf deps.d
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9035 $as_echo "$ac_enable_autodepend" >&6; }
9036 fi
9037 if test $ac_enable_autodepend = yes; then
9038 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9039 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9040 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9041 deps_frag=autodeps.mk
9042 fi
9043 fi
9044 deps_frag=$srcdir/src/$deps_frag
9045
9046
9047
9048
9049
9050 lisp_frag=$srcdir/src/lisp.mk
9051
9052
9053
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9055 $as_echo_n "checking for long file names... " >&6; }
9056 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 ac_cv_sys_long_file_names=yes
9060 # Test for long file names in all the places we know might matter:
9061 # . the current directory, where building will happen
9062 # $prefix/lib where we will be installing things
9063 # $exec_prefix/lib likewise
9064 # $TMPDIR if set, where it might want to write temporary files
9065 # /tmp where it might want to write temporary files
9066 # /var/tmp likewise
9067 # /usr/tmp likewise
9068 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9069 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9070 # in the usual case where exec_prefix is '${prefix}'.
9071 case $ac_dir in #(
9072 . | /* | ?:[\\/]*) ;; #(
9073 *) continue;;
9074 esac
9075 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9076 ac_xdir=$ac_dir/cf$$
9077 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9078 ac_tf1=$ac_xdir/conftest9012345
9079 ac_tf2=$ac_xdir/conftest9012346
9080 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9081 ac_cv_sys_long_file_names=no
9082 rm -f -r "$ac_xdir" 2>/dev/null
9083 test $ac_cv_sys_long_file_names = no && break
9084 done
9085 fi
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9087 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9088 if test $ac_cv_sys_long_file_names = yes; then
9089
9090 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9091
9092 fi
9093
9094
9095 #### Choose a window system.
9096
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9098 $as_echo_n "checking for X... " >&6; }
9099
9100
9101 # Check whether --with-x was given.
9102 if test "${with_x+set}" = set; then :
9103 withval=$with_x;
9104 fi
9105
9106 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9107 if test "x$with_x" = xno; then
9108 # The user explicitly disabled X.
9109 have_x=disabled
9110 else
9111 case $x_includes,$x_libraries in #(
9112 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9113 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 # One or both of the vars are not set, and there is no cached value.
9117 ac_x_includes=no ac_x_libraries=no
9118 rm -f -r conftest.dir
9119 if mkdir conftest.dir; then
9120 cd conftest.dir
9121 cat >Imakefile <<'_ACEOF'
9122 incroot:
9123 @echo incroot='${INCROOT}'
9124 usrlibdir:
9125 @echo usrlibdir='${USRLIBDIR}'
9126 libdir:
9127 @echo libdir='${LIBDIR}'
9128 _ACEOF
9129 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9130 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9131 for ac_var in incroot usrlibdir libdir; do
9132 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9133 done
9134 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9135 for ac_extension in a so sl dylib la dll; do
9136 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9137 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9138 ac_im_usrlibdir=$ac_im_libdir; break
9139 fi
9140 done
9141 # Screen out bogus values from the imake configuration. They are
9142 # bogus both because they are the default anyway, and because
9143 # using them would break gcc on systems where it needs fixed includes.
9144 case $ac_im_incroot in
9145 /usr/include) ac_x_includes= ;;
9146 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9147 esac
9148 case $ac_im_usrlibdir in
9149 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9150 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9151 esac
9152 fi
9153 cd ..
9154 rm -f -r conftest.dir
9155 fi
9156
9157 # Standard set of common directories for X headers.
9158 # Check X11 before X11Rn because it is often a symlink to the current release.
9159 ac_x_header_dirs='
9160 /usr/X11/include
9161 /usr/X11R7/include
9162 /usr/X11R6/include
9163 /usr/X11R5/include
9164 /usr/X11R4/include
9165
9166 /usr/include/X11
9167 /usr/include/X11R7
9168 /usr/include/X11R6
9169 /usr/include/X11R5
9170 /usr/include/X11R4
9171
9172 /usr/local/X11/include
9173 /usr/local/X11R7/include
9174 /usr/local/X11R6/include
9175 /usr/local/X11R5/include
9176 /usr/local/X11R4/include
9177
9178 /usr/local/include/X11
9179 /usr/local/include/X11R7
9180 /usr/local/include/X11R6
9181 /usr/local/include/X11R5
9182 /usr/local/include/X11R4
9183
9184 /usr/X386/include
9185 /usr/x386/include
9186 /usr/XFree86/include/X11
9187
9188 /usr/include
9189 /usr/local/include
9190 /usr/unsupported/include
9191 /usr/athena/include
9192 /usr/local/x11r5/include
9193 /usr/lpp/Xamples/include
9194
9195 /usr/openwin/include
9196 /usr/openwin/share/include'
9197
9198 if test "$ac_x_includes" = no; then
9199 # Guess where to find include files, by looking for Xlib.h.
9200 # First, try using that file with no special directory specified.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 #include <X11/Xlib.h>
9204 _ACEOF
9205 if ac_fn_c_try_cpp "$LINENO"; then :
9206 # We can compile using X headers with no special include directory.
9207 ac_x_includes=
9208 else
9209 for ac_dir in $ac_x_header_dirs; do
9210 if test -r "$ac_dir/X11/Xlib.h"; then
9211 ac_x_includes=$ac_dir
9212 break
9213 fi
9214 done
9215 fi
9216 rm -f conftest.err conftest.$ac_ext
9217 fi # $ac_x_includes = no
9218
9219 if test "$ac_x_libraries" = no; then
9220 # Check for the libraries.
9221 # See if we find them without any special options.
9222 # Don't add to $LIBS permanently.
9223 ac_save_LIBS=$LIBS
9224 LIBS="-lX11 $LIBS"
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 #include <X11/Xlib.h>
9228 int
9229 main ()
9230 {
9231 XrmInitialize ()
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"; then :
9237 LIBS=$ac_save_LIBS
9238 # We can link X programs with no special library path.
9239 ac_x_libraries=
9240 else
9241 LIBS=$ac_save_LIBS
9242 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9243 do
9244 # Don't even attempt the hair of trying to link an X program!
9245 for ac_extension in a so sl dylib la dll; do
9246 if test -r "$ac_dir/libX11.$ac_extension"; then
9247 ac_x_libraries=$ac_dir
9248 break 2
9249 fi
9250 done
9251 done
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255 fi # $ac_x_libraries = no
9256
9257 case $ac_x_includes,$ac_x_libraries in #(
9258 no,* | *,no | *\'*)
9259 # Didn't find X, or a directory has "'" in its name.
9260 ac_cv_have_x="have_x=no";; #(
9261 *)
9262 # Record where we found X for the cache.
9263 ac_cv_have_x="have_x=yes\
9264 ac_x_includes='$ac_x_includes'\
9265 ac_x_libraries='$ac_x_libraries'"
9266 esac
9267 fi
9268 ;; #(
9269 *) have_x=yes;;
9270 esac
9271 eval "$ac_cv_have_x"
9272 fi # $with_x != no
9273
9274 if test "$have_x" != yes; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9276 $as_echo "$have_x" >&6; }
9277 no_x=yes
9278 else
9279 # If each of the values was on the command line, it overrides each guess.
9280 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9281 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9282 # Update the cache value to reflect the command line values.
9283 ac_cv_have_x="have_x=yes\
9284 ac_x_includes='$x_includes'\
9285 ac_x_libraries='$x_libraries'"
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9287 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9288 fi
9289
9290 if test "$no_x" = yes; then
9291 window_system=none
9292 else
9293 window_system=x11
9294 fi
9295
9296 LD_SWITCH_X_SITE_RPATH=
9297 if test "${x_libraries}" != NONE; then
9298 if test -n "${x_libraries}"; then
9299 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9300 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9301 fi
9302 x_default_search_path=""
9303 x_search_path=${x_libraries}
9304 if test -z "${x_search_path}"; then
9305 x_search_path=/usr/lib
9306 fi
9307 for x_library in `echo ${x_search_path}: | \
9308 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9309 x_search_path="\
9310 ${x_library}/X11/%L/%T/%N%C%S:\
9311 ${x_library}/X11/%l/%T/%N%C%S:\
9312 ${x_library}/X11/%T/%N%C%S:\
9313 ${x_library}/X11/%L/%T/%N%S:\
9314 ${x_library}/X11/%l/%T/%N%S:\
9315 ${x_library}/X11/%T/%N%S"
9316 if test x"${x_default_search_path}" = x; then
9317 x_default_search_path=${x_search_path}
9318 else
9319 x_default_search_path="${x_search_path}:${x_default_search_path}"
9320 fi
9321 done
9322 fi
9323
9324
9325 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9326 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9327 fi
9328
9329 if test x"${x_includes}" = x; then
9330 bitmapdir=/usr/include/X11/bitmaps
9331 else
9332 # accumulate include directories that have X11 bitmap subdirectories
9333 bmd_acc="dummyval"
9334 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9335 if test -d "${bmd}/X11/bitmaps"; then
9336 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9337 fi
9338 if test -d "${bmd}/bitmaps"; then
9339 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9340 fi
9341 done
9342 if test ${bmd_acc} != "dummyval"; then
9343 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9344 fi
9345 fi
9346
9347 HAVE_NS=no
9348 NS_IMPL_COCOA=no
9349 NS_IMPL_GNUSTEP=no
9350 tmp_CPPFLAGS="$CPPFLAGS"
9351 tmp_CFLAGS="$CFLAGS"
9352 CPPFLAGS="$CPPFLAGS -x objective-c"
9353 CFLAGS="$CFLAGS -x objective-c"
9354 TEMACS_LDFLAGS2="\${LDFLAGS}"
9355 GNU_OBJC_CFLAGS=
9356 if test "${with_ns}" != no; then
9357 if test "${opsys}" = darwin; then
9358 NS_IMPL_COCOA=yes
9359 ns_appdir=`pwd`/nextstep/Emacs.app
9360 ns_appbindir=${ns_appdir}/Contents/MacOS
9361 ns_appresdir=${ns_appdir}/Contents/Resources
9362 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9363 elif test -f $GNUSTEP_CONFIG_FILE; then
9364 NS_IMPL_GNUSTEP=yes
9365 ns_appdir=`pwd`/nextstep/Emacs.app
9366 ns_appbindir=${ns_appdir}
9367 ns_appresdir=${ns_appdir}/Resources
9368 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9369 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9370 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9371 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9372 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9373 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9374 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9375 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9376 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9377 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9378 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9379 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9380 LIB_STANDARD=
9381 START_FILES=
9382 TEMACS_LDFLAGS2=
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9384 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9385 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 #include <GNUstepBase/GSConfig.h>
9391 int
9392 main ()
9393 {
9394 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9395 1;
9396 #else
9397 fail;
9398 #endif
9399 ;
9400 return 0;
9401 }
9402 _ACEOF
9403 if ac_fn_c_try_compile "$LINENO"; then :
9404 emacs_cv_objc_exceptions=yes
9405 else
9406 emacs_cv_objc_exceptions=no
9407 fi
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 fi
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9411 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9412 if test $emacs_cv_objc_exceptions = yes; then
9413
9414 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9415
9416 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9417 fi
9418 fi
9419
9420 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9421
9422 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9423 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9424 HAVE_NS=yes
9425 else
9426 as_fn_error "\`--with-ns' was specified, but the include
9427 files are missing or cannot be compiled." "$LINENO" 5
9428 fi
9429
9430
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 #include <Foundation/NSObjCRuntime.h>
9434 int
9435 main ()
9436 {
9437 NSInteger i;
9438 ;
9439 return 0;
9440 }
9441 _ACEOF
9442 if ac_fn_c_try_compile "$LINENO"; then :
9443 ns_have_nsinteger=yes
9444 else
9445 ns_have_nsinteger=no
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 if test $ns_have_nsinteger = yes; then
9449
9450 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9451
9452 fi
9453 fi
9454
9455
9456 INSTALL_ARCH_INDEP_EXTRA=install-etc
9457 ns_self_contained=no
9458 ns_frag=/dev/null
9459 NS_OBJ=
9460 NS_OBJC_OBJ=
9461 if test "${HAVE_NS}" = yes; then
9462 if test "$with_toolkit_scroll_bars" = "no"; then
9463 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9464 fi
9465
9466 window_system=nextstep
9467 with_xft=no
9468 # set up packaging dirs
9469 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9470 ns_self_contained=yes
9471 prefix=${ns_appresdir}
9472 exec_prefix=${ns_appbindir}
9473 libexecdir="\${ns_appbindir}/libexec"
9474 archlibdir="\${ns_appbindir}/libexec"
9475 docdir="\${ns_appresdir}/etc"
9476 etcdir="\${ns_appresdir}/etc"
9477 infodir="\${ns_appresdir}/info"
9478 mandir="\${ns_appresdir}/man"
9479 lispdir="\${ns_appresdir}/lisp"
9480 leimdir="\${ns_appresdir}/leim"
9481 INSTALL_ARCH_INDEP_EXTRA=
9482 fi
9483 ns_frag=$srcdir/src/ns.mk
9484 NS_OBJ="fontset.o fringe.o image.o"
9485 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9486 fi
9487 CFLAGS="$tmp_CFLAGS"
9488 CPPFLAGS="$tmp_CPPFLAGS"
9489
9490
9491
9492
9493
9494
9495
9496 case "${window_system}" in
9497 x11 )
9498 HAVE_X_WINDOWS=yes
9499 HAVE_X11=yes
9500 case "${with_x_toolkit}" in
9501 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9502 motif ) USE_X_TOOLKIT=MOTIF ;;
9503 gtk ) with_gtk=yes
9504 USE_X_TOOLKIT=none ;;
9505 gtk3 ) with_gtk3=yes
9506 USE_X_TOOLKIT=none ;;
9507 no ) USE_X_TOOLKIT=none ;;
9508 * ) USE_X_TOOLKIT=maybe ;;
9509 esac
9510 ;;
9511 nextstep | none )
9512 HAVE_X_WINDOWS=no
9513 HAVE_X11=no
9514 USE_X_TOOLKIT=none
9515 ;;
9516 esac
9517
9518 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9519 # Extract the first word of "X", so it can be a program name with args.
9520 set dummy X; ac_word=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522 $as_echo_n "checking for $ac_word... " >&6; }
9523 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 if test -n "$HAVE_XSERVER"; then
9527 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9528 else
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9531 do
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_prog_HAVE_XSERVER="true"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9539 fi
9540 done
9541 done
9542 IFS=$as_save_IFS
9543
9544 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9545 fi
9546 fi
9547 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9548 if test -n "$HAVE_XSERVER"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9550 $as_echo "$HAVE_XSERVER" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 fi
9555
9556
9557 if test "$HAVE_XSERVER" = true ||
9558 test -n "$DISPLAY" ||
9559 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9560 as_fn_error "You seem to be running X, but no X development libraries
9561 were found. You should install the relevant development files for X
9562 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9563 sure you have development files for image handling, i.e.
9564 tiff, gif, jpeg, png and xpm.
9565 If you are sure you want Emacs compiled without X window support, pass
9566 --without-x
9567 to configure." "$LINENO" 5
9568 fi
9569 fi
9570
9571 ### If we're using X11, we should use the X menu package.
9572 HAVE_MENUS=no
9573 case ${HAVE_X11} in
9574 yes ) HAVE_MENUS=yes ;;
9575 esac
9576
9577 # Does the opsystem file prohibit the use of the GNU malloc?
9578 # Assume not, until told otherwise.
9579 GNU_MALLOC=yes
9580
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9582 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9583 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 #include <malloc.h>
9589 static void hook (void) {}
9590 int
9591 main ()
9592 {
9593 malloc_set_state (malloc_get_state ());
9594 __after_morecore_hook = hook;
9595 __malloc_initialize_hook = hook;
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 if ac_fn_c_try_link "$LINENO"; then :
9601 emacs_cv_var_doug_lea_malloc=yes
9602 else
9603 emacs_cv_var_doug_lea_malloc=no
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 fi
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9609 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9610 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9611
9612
9613 system_malloc=no
9614 case "$opsys" in
9615 ## darwin ld insists on the use of malloc routines in the System framework.
9616 darwin|sol2-10) system_malloc=yes ;;
9617 esac
9618
9619 if test "${system_malloc}" = "yes"; then
9620
9621 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9622
9623 GNU_MALLOC=no
9624 GNU_MALLOC_reason="
9625 (The GNU allocators don't work with this system configuration.)"
9626 GMALLOC_OBJ=
9627 VMLIMIT_OBJ=
9628 else
9629 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9630 VMLIMIT_OBJ=vm-limit.o
9631 fi
9632
9633
9634
9635 if test "$doug_lea_malloc" = "yes" ; then
9636 if test "$GNU_MALLOC" = yes ; then
9637 GNU_MALLOC_reason="
9638 (Using Doug Lea's new malloc from the GNU C Library.)"
9639 fi
9640
9641 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9642
9643
9644 ## Use mmap directly for allocating larger buffers.
9645 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9646 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9647 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9648 case "$opsys" in
9649 gnu*) REL_ALLOC=no ;;
9650 esac
9651 fi
9652
9653 if test x"${REL_ALLOC}" = x; then
9654 REL_ALLOC=${GNU_MALLOC}
9655 fi
9656
9657 use_mmap_for_buffers=no
9658 case "$opsys" in
9659 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9660 esac
9661
9662
9663
9664
9665
9666
9667
9668
9669 for ac_func in getpagesize
9670 do :
9671 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9672 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9673 cat >>confdefs.h <<_ACEOF
9674 #define HAVE_GETPAGESIZE 1
9675 _ACEOF
9676
9677 fi
9678 done
9679
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9681 $as_echo_n "checking for working mmap... " >&6; }
9682 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 if test "$cross_compiling" = yes; then :
9686 ac_cv_func_mmap_fixed_mapped=no
9687 else
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 $ac_includes_default
9691 /* malloc might have been renamed as rpl_malloc. */
9692 #undef malloc
9693
9694 /* Thanks to Mike Haertel and Jim Avera for this test.
9695 Here is a matrix of mmap possibilities:
9696 mmap private not fixed
9697 mmap private fixed at somewhere currently unmapped
9698 mmap private fixed at somewhere already mapped
9699 mmap shared not fixed
9700 mmap shared fixed at somewhere currently unmapped
9701 mmap shared fixed at somewhere already mapped
9702 For private mappings, we should verify that changes cannot be read()
9703 back from the file, nor mmap's back from the file at a different
9704 address. (There have been systems where private was not correctly
9705 implemented like the infamous i386 svr4.0, and systems where the
9706 VM page cache was not coherent with the file system buffer cache
9707 like early versions of FreeBSD and possibly contemporary NetBSD.)
9708 For shared mappings, we should conversely verify that changes get
9709 propagated back to all the places they're supposed to be.
9710
9711 Grep wants private fixed already mapped.
9712 The main things grep needs to know about mmap are:
9713 * does it exist and is it safe to write into the mmap'd area
9714 * how to use it (BSD variants) */
9715
9716 #include <fcntl.h>
9717 #include <sys/mman.h>
9718
9719 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9720 char *malloc ();
9721 #endif
9722
9723 /* This mess was copied from the GNU getpagesize.h. */
9724 #ifndef HAVE_GETPAGESIZE
9725 # ifdef _SC_PAGESIZE
9726 # define getpagesize() sysconf(_SC_PAGESIZE)
9727 # else /* no _SC_PAGESIZE */
9728 # ifdef HAVE_SYS_PARAM_H
9729 # include <sys/param.h>
9730 # ifdef EXEC_PAGESIZE
9731 # define getpagesize() EXEC_PAGESIZE
9732 # else /* no EXEC_PAGESIZE */
9733 # ifdef NBPG
9734 # define getpagesize() NBPG * CLSIZE
9735 # ifndef CLSIZE
9736 # define CLSIZE 1
9737 # endif /* no CLSIZE */
9738 # else /* no NBPG */
9739 # ifdef NBPC
9740 # define getpagesize() NBPC
9741 # else /* no NBPC */
9742 # ifdef PAGESIZE
9743 # define getpagesize() PAGESIZE
9744 # endif /* PAGESIZE */
9745 # endif /* no NBPC */
9746 # endif /* no NBPG */
9747 # endif /* no EXEC_PAGESIZE */
9748 # else /* no HAVE_SYS_PARAM_H */
9749 # define getpagesize() 8192 /* punt totally */
9750 # endif /* no HAVE_SYS_PARAM_H */
9751 # endif /* no _SC_PAGESIZE */
9752
9753 #endif /* no HAVE_GETPAGESIZE */
9754
9755 int
9756 main ()
9757 {
9758 char *data, *data2, *data3;
9759 const char *cdata2;
9760 int i, pagesize;
9761 int fd, fd2;
9762
9763 pagesize = getpagesize ();
9764
9765 /* First, make a file with some known garbage in it. */
9766 data = (char *) malloc (pagesize);
9767 if (!data)
9768 return 1;
9769 for (i = 0; i < pagesize; ++i)
9770 *(data + i) = rand ();
9771 umask (0);
9772 fd = creat ("conftest.mmap", 0600);
9773 if (fd < 0)
9774 return 2;
9775 if (write (fd, data, pagesize) != pagesize)
9776 return 3;
9777 close (fd);
9778
9779 /* Next, check that the tail of a page is zero-filled. File must have
9780 non-zero length, otherwise we risk SIGBUS for entire page. */
9781 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9782 if (fd2 < 0)
9783 return 4;
9784 cdata2 = "";
9785 if (write (fd2, cdata2, 1) != 1)
9786 return 5;
9787 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9788 if (data2 == MAP_FAILED)
9789 return 6;
9790 for (i = 0; i < pagesize; ++i)
9791 if (*(data2 + i))
9792 return 7;
9793 close (fd2);
9794 if (munmap (data2, pagesize))
9795 return 8;
9796
9797 /* Next, try to mmap the file at a fixed address which already has
9798 something else allocated at it. If we can, also make sure that
9799 we see the same garbage. */
9800 fd = open ("conftest.mmap", O_RDWR);
9801 if (fd < 0)
9802 return 9;
9803 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9804 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9805 return 10;
9806 for (i = 0; i < pagesize; ++i)
9807 if (*(data + i) != *(data2 + i))
9808 return 11;
9809
9810 /* Finally, make sure that changes to the mapped area do not
9811 percolate back to the file as seen by read(). (This is a bug on
9812 some variants of i386 svr4.0.) */
9813 for (i = 0; i < pagesize; ++i)
9814 *(data2 + i) = *(data2 + i) + 1;
9815 data3 = (char *) malloc (pagesize);
9816 if (!data3)
9817 return 12;
9818 if (read (fd, data3, pagesize) != pagesize)
9819 return 13;
9820 for (i = 0; i < pagesize; ++i)
9821 if (*(data + i) != *(data3 + i))
9822 return 14;
9823 close (fd);
9824 return 0;
9825 }
9826 _ACEOF
9827 if ac_fn_c_try_run "$LINENO"; then :
9828 ac_cv_func_mmap_fixed_mapped=yes
9829 else
9830 ac_cv_func_mmap_fixed_mapped=no
9831 fi
9832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9833 conftest.$ac_objext conftest.beam conftest.$ac_ext
9834 fi
9835
9836 fi
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9838 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9839 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9840
9841 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9842
9843 fi
9844 rm -f conftest.mmap conftest.txt
9845
9846 if test $use_mmap_for_buffers = yes; then
9847
9848 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9849
9850 REL_ALLOC=no
9851 fi
9852
9853 LIBS="$LIBS_SYSTEM $LIBS"
9854
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9856 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9857 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 ac_check_lib_save_LIBS=$LIBS
9861 LIBS="-ldnet $LIBS"
9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9864
9865 /* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9868 #ifdef __cplusplus
9869 extern "C"
9870 #endif
9871 char dnet_ntoa ();
9872 int
9873 main ()
9874 {
9875 return dnet_ntoa ();
9876 ;
9877 return 0;
9878 }
9879 _ACEOF
9880 if ac_fn_c_try_link "$LINENO"; then :
9881 ac_cv_lib_dnet_dnet_ntoa=yes
9882 else
9883 ac_cv_lib_dnet_dnet_ntoa=no
9884 fi
9885 rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 LIBS=$ac_check_lib_save_LIBS
9888 fi
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9890 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9891 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9892 cat >>confdefs.h <<_ACEOF
9893 #define HAVE_LIBDNET 1
9894 _ACEOF
9895
9896 LIBS="-ldnet $LIBS"
9897
9898 fi
9899
9900
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9902 $as_echo_n "checking for main in -lXbsd... " >&6; }
9903 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 ac_check_lib_save_LIBS=$LIBS
9907 LIBS="-lXbsd $LIBS"
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910
9911
9912 int
9913 main ()
9914 {
9915 return main ();
9916 ;
9917 return 0;
9918 }
9919 _ACEOF
9920 if ac_fn_c_try_link "$LINENO"; then :
9921 ac_cv_lib_Xbsd_main=yes
9922 else
9923 ac_cv_lib_Xbsd_main=no
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext \
9926 conftest$ac_exeext conftest.$ac_ext
9927 LIBS=$ac_check_lib_save_LIBS
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9930 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9931 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9932 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9933 fi
9934
9935
9936 LIB_PTHREAD=
9937
9938
9939
9940 if test "$ac_cv_header_pthread_h"; then
9941 if test "$GMALLOC_OBJ" = gmalloc.o; then
9942 emacs_pthread_function=pthread_atfork
9943 else
9944 emacs_pthread_function=pthread_self
9945 fi
9946 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9948 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9949 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 ac_check_lib_save_LIBS=$LIBS
9953 LIBS="-lpthread $LIBS"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956
9957 /* Override any GCC internal prototype to avoid an error.
9958 Use char because int might match the return type of a GCC
9959 builtin and then its argument prototype would still apply. */
9960 #ifdef __cplusplus
9961 extern "C"
9962 #endif
9963 char $emacs_pthread_function ();
9964 int
9965 main ()
9966 {
9967 return $emacs_pthread_function ();
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9973 eval "$as_ac_Lib=yes"
9974 else
9975 eval "$as_ac_Lib=no"
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_check_lib_save_LIBS
9980 fi
9981 eval ac_res=\$$as_ac_Lib
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9983 $as_echo "$ac_res" >&6; }
9984 eval as_val=\$$as_ac_Lib
9985 if test "x$as_val" = x""yes; then :
9986 HAVE_PTHREAD=yes
9987 fi
9988
9989 fi
9990 if test "$HAVE_PTHREAD" = yes; then
9991 case "${canonical}" in
9992 *-hpux*) ;;
9993 *) LIB_PTHREAD="-lpthread"
9994 LIBS="$LIB_PTHREAD $LIBS" ;;
9995 esac
9996
9997 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9998
9999 fi
10000
10001
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10003 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10004 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10005 $as_echo_n "(cached) " >&6
10006 else
10007 ac_check_lib_save_LIBS=$LIBS
10008 LIBS="-lpthreads $LIBS"
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char cma_open ();
10019 int
10020 main ()
10021 {
10022 return cma_open ();
10023 ;
10024 return 0;
10025 }
10026 _ACEOF
10027 if ac_fn_c_try_link "$LINENO"; then :
10028 ac_cv_lib_pthreads_cma_open=yes
10029 else
10030 ac_cv_lib_pthreads_cma_open=no
10031 fi
10032 rm -f core conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 LIBS=$ac_check_lib_save_LIBS
10035 fi
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10037 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10038 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10039 cat >>confdefs.h <<_ACEOF
10040 #define HAVE_LIBPTHREADS 1
10041 _ACEOF
10042
10043 LIBS="-lpthreads $LIBS"
10044
10045 fi
10046
10047
10048 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10049 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10050 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10051 ## added to LIBS in configure would never contain the pthreads part,
10052 ## but the value used in Makefiles might. FIXME?
10053 ##
10054 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10055 ## be harmless on older versions of X where it happens to exist.
10056 test "$opsys" = "aix4-2" && \
10057 test $ac_cv_lib_pthreads_cma_open = yes && \
10058 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10059
10060
10061 case ${host_os} in
10062 aix*)
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10064 $as_echo_n "checking for -bbigtoc option... " >&6; }
10065 if test "${gdb_cv_bigtoc+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068
10069 case $GCC in
10070 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10071 *) gdb_cv_bigtoc=-bbigtoc ;;
10072 esac
10073
10074 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10077
10078 int
10079 main ()
10080 {
10081 int i;
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 if ac_fn_c_try_link "$LINENO"; then :
10087
10088 else
10089 gdb_cv_bigtoc=
10090 fi
10091 rm -f core conftest.err conftest.$ac_objext \
10092 conftest$ac_exeext conftest.$ac_ext
10093
10094 fi
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10096 $as_echo "$gdb_cv_bigtoc" >&6; }
10097 ;;
10098 esac
10099
10100 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10101 # used for the tests that follow. We set them back to REAL_CFLAGS and
10102 # REAL_CPPFLAGS later on.
10103
10104 REAL_CFLAGS="$CFLAGS"
10105 REAL_CPPFLAGS="$CPPFLAGS"
10106
10107 if test "${HAVE_X11}" = "yes"; then
10108 DEFS="$C_SWITCH_X_SITE $DEFS"
10109 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10110 LIBS="-lX11 $LIBS"
10111 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10112 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10113
10114 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10115 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10116 # but it's more convenient here to set LD_RUN_PATH since this
10117 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10118 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10119 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10120 export LD_RUN_PATH
10121 fi
10122
10123 if test "${opsys}" = "gnu-linux"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10125 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128
10129 int
10130 main ()
10131 {
10132 XOpenDisplay ("foo");
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 if ac_fn_c_try_link "$LINENO"; then :
10138 xgnu_linux_first_failure=no
10139 else
10140 xgnu_linux_first_failure=yes
10141 fi
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 if test "${xgnu_linux_first_failure}" = "yes"; then
10145 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10146 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10147 OLD_CPPFLAGS="$CPPFLAGS"
10148 OLD_LIBS="$LIBS"
10149 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10150 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10151 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10152 LIBS="$LIBS -b i486-linuxaout"
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10155
10156 int
10157 main ()
10158 {
10159 XOpenDisplay ("foo");
10160 ;
10161 return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_link "$LINENO"; then :
10165 xgnu_linux_second_failure=no
10166 else
10167 xgnu_linux_second_failure=yes
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 if test "${xgnu_linux_second_failure}" = "yes"; then
10172 # If we get the same failure with -b, there is no use adding -b.
10173 # So take it out. This plays safe.
10174 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10175 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10176 CPPFLAGS="$OLD_CPPFLAGS"
10177 LIBS="$OLD_LIBS"
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10180 else
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10182 $as_echo "yes" >&6; }
10183 fi
10184 else
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10187 fi
10188 fi
10189
10190 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10191 # header files included from there.
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10193 $as_echo_n "checking for Xkb... " >&6; }
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #include <X11/Xlib.h>
10197 #include <X11/XKBlib.h>
10198 int
10199 main ()
10200 {
10201 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10202 ;
10203 return 0;
10204 }
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207 emacs_xkb=yes
10208 else
10209 emacs_xkb=no
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10214 $as_echo "$emacs_xkb" >&6; }
10215 if test $emacs_xkb = yes; then
10216
10217 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10218
10219 fi
10220
10221 for ac_func in XrmSetDatabase XScreenResourceString \
10222 XScreenNumberOfScreen
10223 do :
10224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10226 eval as_val=\$$as_ac_var
10227 if test "x$as_val" = x""yes; then :
10228 cat >>confdefs.h <<_ACEOF
10229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10230 _ACEOF
10231
10232 fi
10233 done
10234
10235 fi
10236
10237 if test "${window_system}" = "x11"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10239 $as_echo_n "checking X11 version 6... " >&6; }
10240 if test "${emacs_cv_x11_version_6+set}" = set; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 #include <X11/Xlib.h>
10246 int
10247 main ()
10248 {
10249 #if XlibSpecificationRelease < 6
10250 fail;
10251 #endif
10252
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 if ac_fn_c_try_link "$LINENO"; then :
10258 emacs_cv_x11_version_6=yes
10259 else
10260 emacs_cv_x11_version_6=no
10261 fi
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 fi
10265
10266 if test $emacs_cv_x11_version_6 = yes; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10268 $as_echo "6 or newer" >&6; }
10269
10270 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10271
10272
10273 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10274
10275 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10276 ## XIM support.
10277 case "$opsys" in
10278 sol2-*) : ;;
10279 *)
10280 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10281
10282 ;;
10283 esac
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10286 $as_echo "before 6" >&6; }
10287 fi
10288 fi
10289
10290
10291 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10292 HAVE_RSVG=no
10293 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10294 if test "${with_rsvg}" != "no"; then
10295 RSVG_REQUIRED=2.11.0
10296 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10297
10298
10299 succeeded=no
10300
10301 if test "$PKG_CONFIG" = "no" ; then
10302 :
10303 else
10304 PKG_CONFIG_MIN_VERSION=0.9.0
10305 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10307 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10308
10309 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10310 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10311 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10312 edit_cflags="
10313 s,///*,/,g
10314 s/^/ /
10315 s/ -I/ $isystem/g
10316 s/^ //
10317 "
10318 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10319 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10321 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10322 succeeded=yes
10323 else
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10326 RSVG_CFLAGS=""
10327 RSVG_LIBS=""
10328 ## If we have a custom action on failure, don't print errors, but
10329 ## do set a variable so people can do so.
10330 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10331
10332 fi
10333
10334
10335
10336 else
10337 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10338 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10339 fi
10340 fi
10341
10342 if test $succeeded = yes; then
10343 HAVE_RSVG=yes
10344 else
10345 :
10346 fi
10347
10348
10349
10350
10351 if test $HAVE_RSVG = yes; then
10352
10353 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10354
10355 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10356 LIBS="$RSVG_LIBS $LIBS"
10357 fi
10358 fi
10359 fi
10360
10361 HAVE_IMAGEMAGICK=no
10362 if test "${HAVE_X11}" = "yes"; then
10363 if test "${with_imagemagick}" != "no"; then
10364 ## 6.2.8 is the earliest version known to work, but earlier versions
10365 ## might work - let us know if you find one.
10366 ## 6.0.7 does not work. See bug#7955.
10367 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10368
10369 succeeded=no
10370
10371 if test "$PKG_CONFIG" = "no" ; then
10372 :
10373 else
10374 PKG_CONFIG_MIN_VERSION=0.9.0
10375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10377 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10378
10379 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10380 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10381 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10382 edit_cflags="
10383 s,///*,/,g
10384 s/^/ /
10385 s/ -I/ $isystem/g
10386 s/^ //
10387 "
10388 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10389 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10391 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10392 succeeded=yes
10393 else
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10396 IMAGEMAGICK_CFLAGS=""
10397 IMAGEMAGICK_LIBS=""
10398 ## If we have a custom action on failure, don't print errors, but
10399 ## do set a variable so people can do so.
10400 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10401
10402 fi
10403
10404
10405
10406 else
10407 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10408 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10409 fi
10410 fi
10411
10412 if test $succeeded = yes; then
10413 HAVE_IMAGEMAGICK=yes
10414 else
10415 :
10416 fi
10417
10418
10419
10420
10421 if test $HAVE_IMAGEMAGICK = yes; then
10422
10423 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10424
10425 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10426 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10427 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10428 do :
10429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10431 eval as_val=\$$as_ac_var
10432 if test "x$as_val" = x""yes; then :
10433 cat >>confdefs.h <<_ACEOF
10434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10435 _ACEOF
10436
10437 fi
10438 done
10439
10440 fi
10441 fi
10442 fi
10443
10444
10445 HAVE_GTK=no
10446 GTK_OBJ=
10447 if test "${with_gtk3}" = "yes"; then
10448 GLIB_REQUIRED=2.28
10449 GTK_REQUIRED=3.0
10450 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10451
10452
10453 succeeded=no
10454
10455 if test "$PKG_CONFIG" = "no" ; then
10456 pkg_check_gtk=no
10457 else
10458 PKG_CONFIG_MIN_VERSION=0.9.0
10459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10461 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10462
10463 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10464 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10465 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10466 edit_cflags="
10467 s,///*,/,g
10468 s/^/ /
10469 s/ -I/ $isystem/g
10470 s/^ //
10471 "
10472 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10473 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10475 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10476 succeeded=yes
10477 else
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10480 GTK_CFLAGS=""
10481 GTK_LIBS=""
10482 ## If we have a custom action on failure, don't print errors, but
10483 ## do set a variable so people can do so.
10484 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10485
10486 fi
10487
10488
10489
10490 else
10491 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10492 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10493 fi
10494 fi
10495
10496 if test $succeeded = yes; then
10497 pkg_check_gtk=yes
10498 else
10499 pkg_check_gtk=no
10500 fi
10501
10502 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10503 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10504 fi
10505
10506 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10507
10508 GTK_OBJ=emacsgtkfixed.o
10509 fi
10510
10511 if test "$pkg_check_gtk" != "yes"; then
10512 HAVE_GTK=no
10513 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10514 GLIB_REQUIRED=2.10
10515 GTK_REQUIRED=2.10
10516 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10517
10518
10519 succeeded=no
10520
10521 if test "$PKG_CONFIG" = "no" ; then
10522 pkg_check_gtk=no
10523 else
10524 PKG_CONFIG_MIN_VERSION=0.9.0
10525 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10527 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10528
10529 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10530 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10531 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10532 edit_cflags="
10533 s,///*,/,g
10534 s/^/ /
10535 s/ -I/ $isystem/g
10536 s/^ //
10537 "
10538 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10539 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10541 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10542 succeeded=yes
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 GTK_CFLAGS=""
10547 GTK_LIBS=""
10548 ## If we have a custom action on failure, don't print errors, but
10549 ## do set a variable so people can do so.
10550 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10551
10552 fi
10553
10554
10555
10556 else
10557 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10558 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10559 fi
10560 fi
10561
10562 if test $succeeded = yes; then
10563 pkg_check_gtk=yes
10564 else
10565 pkg_check_gtk=no
10566 fi
10567
10568 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10569 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10570 fi
10571 fi
10572 fi
10573
10574 if test x"$pkg_check_gtk" = xyes; then
10575
10576
10577
10578 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10579 CFLAGS="$CFLAGS $GTK_CFLAGS"
10580 LIBS="$GTK_LIBS $LIBS"
10581 GTK_COMPILES=no
10582 for ac_func in gtk_main
10583 do :
10584 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10585 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10586 cat >>confdefs.h <<_ACEOF
10587 #define HAVE_GTK_MAIN 1
10588 _ACEOF
10589 GTK_COMPILES=yes
10590 fi
10591 done
10592
10593 if test "${GTK_COMPILES}" != "yes"; then
10594 if test "$USE_X_TOOLKIT" != "maybe"; then
10595 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10596 fi
10597 else
10598 HAVE_GTK=yes
10599
10600 $as_echo "#define USE_GTK 1" >>confdefs.h
10601
10602 GTK_OBJ="gtkutil.o $GTK_OBJ"
10603 USE_X_TOOLKIT=none
10604 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10605 :
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10608 closing open displays. This is no problem if you just use
10609 one display, but if you use more than one and close one of them
10610 Emacs may crash." >&5
10611 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10612 closing open displays. This is no problem if you just use
10613 one display, but if you use more than one and close one of them
10614 Emacs may crash." >&2;}
10615 sleep 3
10616 fi
10617 fi
10618
10619 fi
10620
10621
10622
10623 if test "${HAVE_GTK}" = "yes"; then
10624
10625 if test "$with_toolkit_scroll_bars" != no; then
10626 with_toolkit_scroll_bars=yes
10627 fi
10628
10629 HAVE_GTK_FILE_SELECTION=no
10630 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10631 #include <gtk/gtk.h>
10632 "
10633 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10634 HAVE_GTK_FILE_SELECTION=yes
10635 else
10636 HAVE_GTK_FILE_SELECTION=no
10637 fi
10638
10639 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10640 for ac_func in gtk_file_selection_new
10641 do :
10642 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10643 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10644 cat >>confdefs.h <<_ACEOF
10645 #define HAVE_GTK_FILE_SELECTION_NEW 1
10646 _ACEOF
10647
10648 fi
10649 done
10650
10651 fi
10652
10653
10654 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10655 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10656 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10657 gtk_orientable_set_orientation \
10658 gtk_window_set_has_resize_grip
10659 do :
10660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10661 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10662 eval as_val=\$$as_ac_var
10663 if test "x$as_val" = x""yes; then :
10664 cat >>confdefs.h <<_ACEOF
10665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10666 _ACEOF
10667
10668 fi
10669 done
10670
10671 fi
10672
10673 HAVE_DBUS=no
10674 DBUS_OBJ=
10675 if test "${with_dbus}" = "yes"; then
10676
10677 succeeded=no
10678
10679 if test "$PKG_CONFIG" = "no" ; then
10680 HAVE_DBUS=no
10681 else
10682 PKG_CONFIG_MIN_VERSION=0.9.0
10683 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10685 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10686
10687 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10688 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10689 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10690 edit_cflags="
10691 s,///*,/,g
10692 s/^/ /
10693 s/ -I/ $isystem/g
10694 s/^ //
10695 "
10696 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10697 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10699 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10700 succeeded=yes
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10704 DBUS_CFLAGS=""
10705 DBUS_LIBS=""
10706 ## If we have a custom action on failure, don't print errors, but
10707 ## do set a variable so people can do so.
10708 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10709
10710 fi
10711
10712
10713
10714 else
10715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10717 fi
10718 fi
10719
10720 if test $succeeded = yes; then
10721 HAVE_DBUS=yes
10722 else
10723 HAVE_DBUS=no
10724 fi
10725
10726 if test "$HAVE_DBUS" = yes; then
10727 LIBS="$LIBS $DBUS_LIBS"
10728
10729 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10730
10731 for ac_func in dbus_watch_get_unix_fd \
10732 dbus_type_is_valid \
10733 dbus_validate_bus_name \
10734 dbus_validate_path \
10735 dbus_validate_interface \
10736 dbus_validate_member
10737 do :
10738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10739 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10740 eval as_val=\$$as_ac_var
10741 if test "x$as_val" = x""yes; then :
10742 cat >>confdefs.h <<_ACEOF
10743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10744 _ACEOF
10745
10746 fi
10747 done
10748
10749 DBUS_OBJ=dbusbind.o
10750 fi
10751 fi
10752
10753
10754 HAVE_GSETTINGS=no
10755 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10756
10757 succeeded=no
10758
10759 if test "$PKG_CONFIG" = "no" ; then
10760 HAVE_GSETTINGS=no
10761 else
10762 PKG_CONFIG_MIN_VERSION=0.9.0
10763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10765 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10766
10767 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10768 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10769 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10770 edit_cflags="
10771 s,///*,/,g
10772 s/^/ /
10773 s/ -I/ $isystem/g
10774 s/^ //
10775 "
10776 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10777 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10779 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10780 succeeded=yes
10781 else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 GSETTINGS_CFLAGS=""
10785 GSETTINGS_LIBS=""
10786 ## If we have a custom action on failure, don't print errors, but
10787 ## do set a variable so people can do so.
10788 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10789
10790 fi
10791
10792
10793
10794 else
10795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10797 fi
10798 fi
10799
10800 if test $succeeded = yes; then
10801 HAVE_GSETTINGS=yes
10802 else
10803 HAVE_GSETTINGS=no
10804 fi
10805
10806 if test "$HAVE_GSETTINGS" = "yes"; then
10807
10808 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10809
10810 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10811 SETTINGS_LIBS="$GSETTINGS_LIBS"
10812 fi
10813 fi
10814
10815 HAVE_GCONF=no
10816 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10817
10818 succeeded=no
10819
10820 if test "$PKG_CONFIG" = "no" ; then
10821 HAVE_GCONF=no
10822 else
10823 PKG_CONFIG_MIN_VERSION=0.9.0
10824 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10826 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10827
10828 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10829 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10830 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10831 edit_cflags="
10832 s,///*,/,g
10833 s/^/ /
10834 s/ -I/ $isystem/g
10835 s/^ //
10836 "
10837 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10838 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10840 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10841 succeeded=yes
10842 else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10845 GCONF_CFLAGS=""
10846 GCONF_LIBS=""
10847 ## If we have a custom action on failure, don't print errors, but
10848 ## do set a variable so people can do so.
10849 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10850
10851 fi
10852
10853
10854
10855 else
10856 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10857 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10858 fi
10859 fi
10860
10861 if test $succeeded = yes; then
10862 HAVE_GCONF=yes
10863 else
10864 HAVE_GCONF=no
10865 fi
10866
10867 if test "$HAVE_GCONF" = yes; then
10868
10869 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10870
10871 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10872 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10873 fi
10874 fi
10875
10876 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10877 SAVE_CFLAGS="$CFLAGS"
10878 SAVE_LIBS="$LIBS"
10879 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
10880 LIBS="$SETTINGS_LIBS $LIBS"
10881 for ac_func in g_type_init
10882 do :
10883 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10884 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10885 cat >>confdefs.h <<_ACEOF
10886 #define HAVE_G_TYPE_INIT 1
10887 _ACEOF
10888
10889 fi
10890 done
10891
10892 CFLAGS="$SAVE_CFLAGS"
10893 LIBS="$SAVE_LIBS"
10894 fi
10895
10896
10897
10898
10899 HAVE_LIBSELINUX=no
10900 LIBSELINUX_LIBS=
10901 if test "${with_selinux}" = "yes"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10903 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10904 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_check_lib_save_LIBS=$LIBS
10908 LIBS="-lselinux $LIBS"
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10911
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char lgetfilecon ();
10919 int
10920 main ()
10921 {
10922 return lgetfilecon ();
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 if ac_fn_c_try_link "$LINENO"; then :
10928 ac_cv_lib_selinux_lgetfilecon=yes
10929 else
10930 ac_cv_lib_selinux_lgetfilecon=no
10931 fi
10932 rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934 LIBS=$ac_check_lib_save_LIBS
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10937 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10938 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10939 HAVE_LIBSELINUX=yes
10940 else
10941 HAVE_LIBSELINUX=no
10942 fi
10943
10944 if test "$HAVE_LIBSELINUX" = yes; then
10945
10946 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10947
10948 LIBSELINUX_LIBS=-lselinux
10949 fi
10950 fi
10951
10952
10953 HAVE_GNUTLS=no
10954 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
10955 if test "${with_gnutls}" = "yes" ; then
10956
10957 succeeded=no
10958
10959 if test "$PKG_CONFIG" = "no" ; then
10960 HAVE_GNUTLS=no
10961 else
10962 PKG_CONFIG_MIN_VERSION=0.9.0
10963 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
10965 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
10966
10967 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
10968 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
10969 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
10970 edit_cflags="
10971 s,///*,/,g
10972 s/^/ /
10973 s/ -I/ $isystem/g
10974 s/^ //
10975 "
10976 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
10977 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
10979 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
10980 succeeded=yes
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10984 LIBGNUTLS_CFLAGS=""
10985 LIBGNUTLS_LIBS=""
10986 ## If we have a custom action on failure, don't print errors, but
10987 ## do set a variable so people can do so.
10988 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
10989
10990 fi
10991
10992
10993
10994 else
10995 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10996 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10997 fi
10998 fi
10999
11000 if test $succeeded = yes; then
11001 HAVE_GNUTLS=yes
11002 else
11003 HAVE_GNUTLS=no
11004 fi
11005
11006 if test "${HAVE_GNUTLS}" = "yes"; then
11007
11008 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11009
11010 fi
11011
11012 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11013 LIBS="$LIBGNUTLS_LIBS $LIBS"
11014 for ac_func in gnutls_certificate_set_verify_function
11015 do :
11016 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11017 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11018 cat >>confdefs.h <<_ACEOF
11019 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11020 _ACEOF
11021 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11022 fi
11023 done
11024
11025
11026 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11027
11028 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11029
11030 fi
11031 fi
11032
11033
11034
11035
11036 HAVE_XAW3D=no
11037 LUCID_LIBW=
11038 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11039 if test "$with_xaw3d" != no; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11041 $as_echo_n "checking for xaw3d... " >&6; }
11042 if test "${emacs_cv_xaw3d+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11047
11048 #include <X11/Intrinsic.h>
11049 #include <X11/Xaw3d/Simple.h>
11050 int
11051 main ()
11052 {
11053
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11060 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11061 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 ac_check_lib_save_LIBS=$LIBS
11065 LIBS="-lXaw3d $LIBS"
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11068
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11072 #ifdef __cplusplus
11073 extern "C"
11074 #endif
11075 char XawScrollbarSetThumb ();
11076 int
11077 main ()
11078 {
11079 return XawScrollbarSetThumb ();
11080 ;
11081 return 0;
11082 }
11083 _ACEOF
11084 if ac_fn_c_try_link "$LINENO"; then :
11085 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11086 else
11087 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11088 fi
11089 rm -f core conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11091 LIBS=$ac_check_lib_save_LIBS
11092 fi
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11094 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11095 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11096 emacs_cv_xaw3d=yes
11097 else
11098 emacs_cv_xaw3d=no
11099 fi
11100
11101 else
11102 emacs_cv_xaw3d=no
11103 fi
11104 rm -f core conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106 fi
11107
11108 else
11109 emacs_cv_xaw3d=no
11110 fi
11111 if test $emacs_cv_xaw3d = yes; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11113 $as_echo "yes; using Lucid toolkit" >&6; }
11114 USE_X_TOOLKIT=LUCID
11115 HAVE_XAW3D=yes
11116 LUCID_LIBW=-lXaw3d
11117
11118 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11119
11120 else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11124 $as_echo_n "checking for libXaw... " >&6; }
11125 if test "${emacs_cv_xaw+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11130
11131 #include <X11/Intrinsic.h>
11132 #include <X11/Xaw/Simple.h>
11133 int
11134 main ()
11135 {
11136
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142 emacs_cv_xaw=yes
11143 else
11144 emacs_cv_xaw=no
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 fi
11149
11150 if test $emacs_cv_xaw = yes; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11152 $as_echo "yes; using Lucid toolkit" >&6; }
11153 USE_X_TOOLKIT=LUCID
11154 LUCID_LIBW=-lXaw
11155 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11156 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11157 else
11158 as_fn_error "No X toolkit could be found.
11159 If you are sure you want Emacs compiled without an X toolkit, pass
11160 --with-x-toolkit=no
11161 to configure. Otherwise, install the development libraries for the toolkit
11162 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11163 fi
11164 fi
11165 fi
11166
11167 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11168
11169 LIBXTR6=
11170 if test "${USE_X_TOOLKIT}" != "none"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11172 $as_echo_n "checking X11 toolkit version... " >&6; }
11173 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11178 #include <X11/Intrinsic.h>
11179 int
11180 main ()
11181 {
11182 #if XtSpecificationRelease < 6
11183 fail;
11184 #endif
11185
11186 ;
11187 return 0;
11188 }
11189 _ACEOF
11190 if ac_fn_c_try_link "$LINENO"; then :
11191 emacs_cv_x11_toolkit_version_6=yes
11192 else
11193 emacs_cv_x11_toolkit_version_6=no
11194 fi
11195 rm -f core conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext conftest.$ac_ext
11197 fi
11198
11199 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11200 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11202 $as_echo "6 or newer" >&6; }
11203
11204 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11205
11206 LIBXTR6="-lSM -lICE"
11207 case "$opsys" in
11208 ## Use libw.a along with X11R6 Xt.
11209 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11210 esac
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11213 $as_echo "before 6" >&6; }
11214 fi
11215
11216 OLDLIBS="$LIBS"
11217 if test x$HAVE_X11XTR6 = xyes; then
11218 LIBS="-lXt -lSM -lICE $LIBS"
11219 else
11220 LIBS="-lXt $LIBS"
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11223 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11224 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 ac_check_lib_save_LIBS=$LIBS
11228 LIBS="-lXmu $LIBS"
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11231
11232 /* Override any GCC internal prototype to avoid an error.
11233 Use char because int might match the return type of a GCC
11234 builtin and then its argument prototype would still apply. */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 char XmuConvertStandardSelection ();
11239 int
11240 main ()
11241 {
11242 return XmuConvertStandardSelection ();
11243 ;
11244 return 0;
11245 }
11246 _ACEOF
11247 if ac_fn_c_try_link "$LINENO"; then :
11248 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11249 else
11250 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11251 fi
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 LIBS=$ac_check_lib_save_LIBS
11255 fi
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11257 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11258 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_LIBXMU 1
11261 _ACEOF
11262
11263 LIBS="-lXmu $LIBS"
11264
11265 fi
11266
11267 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11268 fi
11269
11270
11271 LIBXMU=-lXmu
11272 case $opsys in
11273 ## These systems don't supply Xmu.
11274 hpux* | aix4-2 )
11275 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11276 ;;
11277 esac
11278
11279
11280 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11281 if test "${HAVE_X11}" = "yes"; then
11282 if test "${USE_X_TOOLKIT}" != "none"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11284 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11285 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 ac_check_lib_save_LIBS=$LIBS
11289 LIBS="-lXext $LIBS"
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11292
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11296 #ifdef __cplusplus
11297 extern "C"
11298 #endif
11299 char XShapeQueryExtension ();
11300 int
11301 main ()
11302 {
11303 return XShapeQueryExtension ();
11304 ;
11305 return 0;
11306 }
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"; then :
11309 ac_cv_lib_Xext_XShapeQueryExtension=yes
11310 else
11311 ac_cv_lib_Xext_XShapeQueryExtension=no
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext \
11314 conftest$ac_exeext conftest.$ac_ext
11315 LIBS=$ac_check_lib_save_LIBS
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11318 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11319 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11320 cat >>confdefs.h <<_ACEOF
11321 #define HAVE_LIBXEXT 1
11322 _ACEOF
11323
11324 LIBS="-lXext $LIBS"
11325
11326 fi
11327
11328 fi
11329 fi
11330
11331 LIBXP=
11332 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11333 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11334 if test -d /usr/include/openmotif; then
11335 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11336 emacs_cv_openmotif=yes
11337 case "$canonical" in
11338 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11339 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11340 ;;
11341 *)
11342 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11343 esac
11344 else
11345 emacs_cv_openmotif=no
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11348 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11349 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #include <Xm/Xm.h>
11355 int
11356 main ()
11357 {
11358 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11359 int x = 5;
11360 #else
11361 Motif version prior to 2.1.
11362 #endif
11363 ;
11364 return 0;
11365 }
11366 _ACEOF
11367 if ac_fn_c_try_compile "$LINENO"; then :
11368 emacs_cv_motif_version_2_1=yes
11369 else
11370 emacs_cv_motif_version_2_1=no
11371 fi
11372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373 fi
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11375 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11376 if test $emacs_cv_motif_version_2_1 = yes; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11378 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11379 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 ac_check_lib_save_LIBS=$LIBS
11383 LIBS="-lXp $LIBS"
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11386
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 char XpCreateContext ();
11394 int
11395 main ()
11396 {
11397 return XpCreateContext ();
11398 ;
11399 return 0;
11400 }
11401 _ACEOF
11402 if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_lib_Xp_XpCreateContext=yes
11404 else
11405 ac_cv_lib_Xp_XpCreateContext=no
11406 fi
11407 rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 LIBS=$ac_check_lib_save_LIBS
11410 fi
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11412 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11413 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11414 LIBXP=-lXp
11415 fi
11416
11417 if test x$emacs_cv_openmotif = xyes; then
11418 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11419 fi
11420 else
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11422 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11423 if test "${emacs_cv_lesstif+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 # We put this in CFLAGS temporarily to precede other -I options
11427 # that might be in CFLAGS temporarily.
11428 # We put this in CPPFLAGS where it precedes the other -I options.
11429 OLD_CPPFLAGS=$CPPFLAGS
11430 OLD_CFLAGS=$CFLAGS
11431 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11432 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11435 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11436 int
11437 main ()
11438 {
11439 int x = 5;
11440 ;
11441 return 0;
11442 }
11443 _ACEOF
11444 if ac_fn_c_try_compile "$LINENO"; then :
11445 emacs_cv_lesstif=yes
11446 else
11447 emacs_cv_lesstif=no
11448 fi
11449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450 fi
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11452 $as_echo "$emacs_cv_lesstif" >&6; }
11453 if test $emacs_cv_lesstif = yes; then
11454 # Make sure this -I option remains in CPPFLAGS after it is set
11455 # back to REAL_CPPFLAGS.
11456 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11457 # have those other -I options anyway. Ultimately, having this
11458 # directory ultimately in CPPFLAGS will be enough.
11459 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11460 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11461 else
11462 CFLAGS=$OLD_CFLAGS
11463 CPPFLAGS=$OLD_CPPFLAGS
11464 fi
11465 fi
11466 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11467 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11468
11469 else
11470 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11471 fi
11472
11473
11474 fi
11475
11476
11477 USE_TOOLKIT_SCROLL_BARS=no
11478 if test "${with_toolkit_scroll_bars}" != "no"; then
11479 if test "${USE_X_TOOLKIT}" != "none"; then
11480 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11481 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11482
11483 HAVE_XAW3D=no
11484 USE_TOOLKIT_SCROLL_BARS=yes
11485 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11486 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11487
11488 USE_TOOLKIT_SCROLL_BARS=yes
11489 fi
11490 elif test "${HAVE_GTK}" = "yes"; then
11491 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11492
11493 USE_TOOLKIT_SCROLL_BARS=yes
11494 elif test "${HAVE_NS}" = "yes"; then
11495 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11496
11497 USE_TOOLKIT_SCROLL_BARS=yes
11498 fi
11499 fi
11500
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503
11504 #include <X11/Xlib.h>
11505 #include <X11/Xresource.h>
11506 int
11507 main ()
11508 {
11509 XIMProc callback;
11510 ;
11511 return 0;
11512 }
11513 _ACEOF
11514 if ac_fn_c_try_compile "$LINENO"; then :
11515 HAVE_XIM=yes
11516
11517 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11518
11519 else
11520 HAVE_XIM=no
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523
11524
11525 if test "${with_xim}" != "no"; then
11526
11527 $as_echo "#define USE_XIM 1" >>confdefs.h
11528
11529 fi
11530
11531
11532 if test "${HAVE_XIM}" != "no"; then
11533 late_CFLAGS=$CFLAGS
11534 if test "$GCC" = yes; then
11535 CFLAGS="$CFLAGS --pedantic-errors"
11536 fi
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539
11540 #include <X11/Xlib.h>
11541 #include <X11/Xresource.h>
11542 int
11543 main ()
11544 {
11545 Display *display;
11546 XrmDatabase db;
11547 char *res_name;
11548 char *res_class;
11549 XIMProc callback;
11550 XPointer *client_data;
11551 #ifndef __GNUC__
11552 /* If we're not using GCC, it's probably not XFree86, and this is
11553 probably right, but we can't use something like --pedantic-errors. */
11554 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11555 char*, XIMProc, XPointer*);
11556 #endif
11557 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11558 client_data);
11559 ;
11560 return 0;
11561 }
11562 _ACEOF
11563 if ac_fn_c_try_compile "$LINENO"; then :
11564 emacs_cv_arg6_star=yes
11565 fi
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567 if test "$emacs_cv_arg6_star" = yes; then
11568 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11569
11570 else
11571 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11572
11573 fi
11574 CFLAGS=$late_CFLAGS
11575 fi
11576
11577 ### Start of font-backend (under any platform) section.
11578 # (nothing here yet -- this is a placeholder)
11579 ### End of font-backend (under any platform) section.
11580
11581 ### Start of font-backend (under X11) section.
11582 if test "${HAVE_X11}" = "yes"; then
11583
11584 succeeded=no
11585
11586 if test "$PKG_CONFIG" = "no" ; then
11587 HAVE_FC=no
11588 else
11589 PKG_CONFIG_MIN_VERSION=0.9.0
11590 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11592 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11593
11594 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11595 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11596 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11597 edit_cflags="
11598 s,///*,/,g
11599 s/^/ /
11600 s/ -I/ $isystem/g
11601 s/^ //
11602 "
11603 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11604 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11606 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11607 succeeded=yes
11608 else
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11611 FONTCONFIG_CFLAGS=""
11612 FONTCONFIG_LIBS=""
11613 ## If we have a custom action on failure, don't print errors, but
11614 ## do set a variable so people can do so.
11615 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11616
11617 fi
11618
11619
11620
11621 else
11622 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11623 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11624 fi
11625 fi
11626
11627 if test $succeeded = yes; then
11628 HAVE_FC=yes
11629 else
11630 HAVE_FC=no
11631 fi
11632
11633
11634 ## Use -lXft if available, unless `--with-xft=no'.
11635 HAVE_XFT=maybe
11636 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11637 with_xft="no";
11638 fi
11639 if test "x${with_xft}" != "xno"; then
11640
11641
11642 succeeded=no
11643
11644 if test "$PKG_CONFIG" = "no" ; then
11645 HAVE_XFT=no
11646 else
11647 PKG_CONFIG_MIN_VERSION=0.9.0
11648 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11650 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11651
11652 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11653 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11654 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11655 edit_cflags="
11656 s,///*,/,g
11657 s/^/ /
11658 s/ -I/ $isystem/g
11659 s/^ //
11660 "
11661 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11662 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11664 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11665 succeeded=yes
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11669 XFT_CFLAGS=""
11670 XFT_LIBS=""
11671 ## If we have a custom action on failure, don't print errors, but
11672 ## do set a variable so people can do so.
11673 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11674
11675 fi
11676
11677
11678
11679 else
11680 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11681 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11682 fi
11683 fi
11684
11685 if test $succeeded = yes; then
11686 :
11687 else
11688 HAVE_XFT=no
11689 fi
11690
11691 ## Because xftfont.c uses XRenderQueryExtension, we also
11692 ## need to link to -lXrender.
11693 HAVE_XRENDER=no
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11695 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11696 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 ac_check_lib_save_LIBS=$LIBS
11700 LIBS="-lXrender $LIBS"
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703
11704 /* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707 #ifdef __cplusplus
11708 extern "C"
11709 #endif
11710 char XRenderQueryExtension ();
11711 int
11712 main ()
11713 {
11714 return XRenderQueryExtension ();
11715 ;
11716 return 0;
11717 }
11718 _ACEOF
11719 if ac_fn_c_try_link "$LINENO"; then :
11720 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11721 else
11722 ac_cv_lib_Xrender_XRenderQueryExtension=no
11723 fi
11724 rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11727 fi
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11729 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11730 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11731 HAVE_XRENDER=yes
11732 fi
11733
11734 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11735 OLD_CPPFLAGS="$CPPFLAGS"
11736 OLD_CFLAGS="$CFLAGS"
11737 OLD_LIBS="$LIBS"
11738 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11739 CFLAGS="$CFLAGS $XFT_CFLAGS"
11740 XFT_LIBS="-lXrender $XFT_LIBS"
11741 LIBS="$XFT_LIBS $LIBS"
11742 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11743 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11745 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11746 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 ac_check_lib_save_LIBS=$LIBS
11750 LIBS="-lXft $XFT_LIBS $LIBS"
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11753
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 char XftFontOpen ();
11761 int
11762 main ()
11763 {
11764 return XftFontOpen ();
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11770 ac_cv_lib_Xft_XftFontOpen=yes
11771 else
11772 ac_cv_lib_Xft_XftFontOpen=no
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11779 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11780 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11781 HAVE_XFT=yes
11782 fi
11783
11784 fi
11785
11786
11787
11788 if test "${HAVE_XFT}" = "yes"; then
11789
11790 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11791
11792
11793 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11794 else
11795 CPPFLAGS="$OLD_CPPFLAGS"
11796 CFLAGS="$OLD_CFLAGS"
11797 LIBS="$OLD_LIBS"
11798 fi # "${HAVE_XFT}" = "yes"
11799 fi # "$HAVE_XFT" != no
11800 fi # "x${with_xft}" != "xno"
11801
11802 ## We used to allow building with FreeType and without Xft.
11803 ## However, the ftx font backend driver is not in good shape.
11804 if test "$HAVE_XFT" != "yes"; then
11805 HAVE_XFT=no
11806 HAVE_FREETYPE=no
11807 else
11808
11809 succeeded=no
11810
11811 if test "$PKG_CONFIG" = "no" ; then
11812 HAVE_FREETYPE=no
11813 else
11814 PKG_CONFIG_MIN_VERSION=0.9.0
11815 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11817 $as_echo_n "checking for freetype2... " >&6; }
11818
11819 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11820 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11821 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11822 edit_cflags="
11823 s,///*,/,g
11824 s/^/ /
11825 s/ -I/ $isystem/g
11826 s/^ //
11827 "
11828 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11829 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11831 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11832 succeeded=yes
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 FREETYPE_CFLAGS=""
11837 FREETYPE_LIBS=""
11838 ## If we have a custom action on failure, don't print errors, but
11839 ## do set a variable so people can do so.
11840 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11841
11842 fi
11843
11844
11845
11846 else
11847 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11848 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11849 fi
11850 fi
11851
11852 if test $succeeded = yes; then
11853 HAVE_FREETYPE=yes
11854 else
11855 HAVE_FREETYPE=no
11856 fi
11857
11858
11859 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11860 fi
11861
11862 HAVE_LIBOTF=no
11863 if test "${HAVE_FREETYPE}" = "yes"; then
11864
11865 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11866
11867 if test "${with_libotf}" != "no"; then
11868
11869 succeeded=no
11870
11871 if test "$PKG_CONFIG" = "no" ; then
11872 HAVE_LIBOTF=no
11873 else
11874 PKG_CONFIG_MIN_VERSION=0.9.0
11875 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11877 $as_echo_n "checking for libotf... " >&6; }
11878
11879 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11880 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11881 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11882 edit_cflags="
11883 s,///*,/,g
11884 s/^/ /
11885 s/ -I/ $isystem/g
11886 s/^ //
11887 "
11888 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11889 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11891 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11892 succeeded=yes
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896 LIBOTF_CFLAGS=""
11897 LIBOTF_LIBS=""
11898 ## If we have a custom action on failure, don't print errors, but
11899 ## do set a variable so people can do so.
11900 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11901
11902 fi
11903
11904
11905
11906 else
11907 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11908 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11909 fi
11910 fi
11911
11912 if test $succeeded = yes; then
11913 HAVE_LIBOTF=yes
11914 else
11915 HAVE_LIBOTF=no
11916 fi
11917
11918 if test "$HAVE_LIBOTF" = "yes"; then
11919
11920 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11923 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11924 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 ac_check_lib_save_LIBS=$LIBS
11928 LIBS="-lotf $LIBS"
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11931
11932 /* Override any GCC internal prototype to avoid an error.
11933 Use char because int might match the return type of a GCC
11934 builtin and then its argument prototype would still apply. */
11935 #ifdef __cplusplus
11936 extern "C"
11937 #endif
11938 char OTF_get_variation_glyphs ();
11939 int
11940 main ()
11941 {
11942 return OTF_get_variation_glyphs ();
11943 ;
11944 return 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_link "$LINENO"; then :
11948 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11949 else
11950 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_lib_save_LIBS
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11957 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11958 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11959 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11960 else
11961 HAVE_OTF_GET_VARIATION_GLYPHS=no
11962 fi
11963
11964 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11965
11966 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11967
11968 fi
11969 fi
11970 fi
11971 fi
11972
11973 HAVE_M17N_FLT=no
11974 if test "${HAVE_LIBOTF}" = yes; then
11975 if test "${with_m17n_flt}" != "no"; then
11976
11977 succeeded=no
11978
11979 if test "$PKG_CONFIG" = "no" ; then
11980 HAVE_M17N_FLT=no
11981 else
11982 PKG_CONFIG_MIN_VERSION=0.9.0
11983 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11985 $as_echo_n "checking for m17n-flt... " >&6; }
11986
11987 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
11988 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
11989 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
11990 edit_cflags="
11991 s,///*,/,g
11992 s/^/ /
11993 s/ -I/ $isystem/g
11994 s/^ //
11995 "
11996 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
11997 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
11999 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12000 succeeded=yes
12001 else
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12004 M17N_FLT_CFLAGS=""
12005 M17N_FLT_LIBS=""
12006 ## If we have a custom action on failure, don't print errors, but
12007 ## do set a variable so people can do so.
12008 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12009
12010 fi
12011
12012
12013
12014 else
12015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12017 fi
12018 fi
12019
12020 if test $succeeded = yes; then
12021 HAVE_M17N_FLT=yes
12022 else
12023 HAVE_M17N_FLT=no
12024 fi
12025
12026 if test "$HAVE_M17N_FLT" = "yes"; then
12027
12028 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12029
12030 fi
12031 fi
12032 fi
12033 else
12034 HAVE_XFT=no
12035 HAVE_FREETYPE=no
12036 HAVE_LIBOTF=no
12037 HAVE_M17N_FLT=no
12038 fi
12039
12040 ### End of font-backend (under X11) section.
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051 ### Use -lXpm if available, unless `--with-xpm=no'.
12052 HAVE_XPM=no
12053 LIBXPM=
12054 if test "${HAVE_X11}" = "yes"; then
12055 if test "${with_xpm}" != "no"; then
12056 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12057 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12059 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12060 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 ac_check_lib_save_LIBS=$LIBS
12064 LIBS="-lXpm -lX11 $LIBS"
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067
12068 /* Override any GCC internal prototype to avoid an error.
12069 Use char because int might match the return type of a GCC
12070 builtin and then its argument prototype would still apply. */
12071 #ifdef __cplusplus
12072 extern "C"
12073 #endif
12074 char XpmReadFileToPixmap ();
12075 int
12076 main ()
12077 {
12078 return XpmReadFileToPixmap ();
12079 ;
12080 return 0;
12081 }
12082 _ACEOF
12083 if ac_fn_c_try_link "$LINENO"; then :
12084 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12085 else
12086 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12087 fi
12088 rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090 LIBS=$ac_check_lib_save_LIBS
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12093 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12094 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12095 HAVE_XPM=yes
12096 fi
12097
12098 fi
12099
12100
12101 if test "${HAVE_XPM}" = "yes"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12103 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 #include "X11/xpm.h"
12107 #ifndef XpmReturnAllocPixels
12108 no_return_alloc_pixels
12109 #endif
12110
12111 _ACEOF
12112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12113 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12114 HAVE_XPM=no
12115 else
12116 HAVE_XPM=yes
12117 fi
12118 rm -f conftest*
12119
12120
12121 if test "${HAVE_XPM}" = "yes"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12123 $as_echo "yes" >&6; }
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127 fi
12128 fi
12129 fi
12130
12131 if test "${HAVE_XPM}" = "yes"; then
12132
12133 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12134
12135 LIBXPM=-lXpm
12136 fi
12137 fi
12138
12139
12140 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12141 HAVE_JPEG=no
12142 LIBJPEG=
12143 if test "${HAVE_X11}" = "yes"; then
12144 if test "${with_jpeg}" != "no"; then
12145 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12146 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12148 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12149 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-ljpeg $LIBS"
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char jpeg_destroy_compress ();
12164 int
12165 main ()
12166 {
12167 return jpeg_destroy_compress ();
12168 ;
12169 return 0;
12170 }
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12174 else
12175 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12176 fi
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12180 fi
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12182 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12183 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12184 HAVE_JPEG=yes
12185 fi
12186
12187 fi
12188
12189
12190 fi
12191
12192 if test "${HAVE_JPEG}" = "yes"; then
12193 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12194
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 #include <jpeglib.h>
12198 version=JPEG_LIB_VERSION
12199
12200 _ACEOF
12201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12202 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12203 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12204
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12207 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12208 HAVE_JPEG=no
12209 fi
12210 rm -f conftest*
12211
12212 fi
12213 if test "${HAVE_JPEG}" = "yes"; then
12214 LIBJPEG=-ljpeg
12215 fi
12216 fi
12217
12218
12219 ### Use -lpng if available, unless `--with-png=no'.
12220 HAVE_PNG=no
12221 LIBPNG=
12222 if test "${HAVE_X11}" = "yes"; then
12223 if test "${with_png}" != "no"; then
12224 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12225 # in /usr/include/libpng.
12226 for ac_header in png.h libpng/png.h
12227 do :
12228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12229 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12230 eval as_val=\$$as_ac_Header
12231 if test "x$as_val" = x""yes; then :
12232 cat >>confdefs.h <<_ACEOF
12233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12234 _ACEOF
12235 break
12236 fi
12237
12238 done
12239
12240 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12242 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12243 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-lpng -lz -lm $LIBS"
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12250
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 char png_get_channels ();
12258 int
12259 main ()
12260 {
12261 return png_get_channels ();
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 if ac_fn_c_try_link "$LINENO"; then :
12267 ac_cv_lib_png_png_get_channels=yes
12268 else
12269 ac_cv_lib_png_png_get_channels=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12276 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12277 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12278 HAVE_PNG=yes
12279 fi
12280
12281 fi
12282 fi
12283
12284 if test "${HAVE_PNG}" = "yes"; then
12285
12286 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12287
12288 LIBPNG="-lpng -lz -lm"
12289
12290 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12291 # include <libpng/png.h>
12292 #else
12293 # include <png.h>
12294 #endif
12295
12296 "
12297 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12298
12299 else
12300
12301 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12302
12303 fi
12304
12305 fi
12306 fi
12307
12308
12309 ### Use -ltiff if available, unless `--with-tiff=no'.
12310 HAVE_TIFF=no
12311 LIBTIFF=
12312 if test "${HAVE_X11}" = "yes"; then
12313 if test "${with_tiff}" != "no"; then
12314 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12315 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12316 tifflibs="-lz -lm"
12317 # At least one tiff package requires the jpeg library.
12318 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12320 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12321 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 ac_check_lib_save_LIBS=$LIBS
12325 LIBS="-ltiff $tifflibs $LIBS"
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328
12329 /* Override any GCC internal prototype to avoid an error.
12330 Use char because int might match the return type of a GCC
12331 builtin and then its argument prototype would still apply. */
12332 #ifdef __cplusplus
12333 extern "C"
12334 #endif
12335 char TIFFGetVersion ();
12336 int
12337 main ()
12338 {
12339 return TIFFGetVersion ();
12340 ;
12341 return 0;
12342 }
12343 _ACEOF
12344 if ac_fn_c_try_link "$LINENO"; then :
12345 ac_cv_lib_tiff_TIFFGetVersion=yes
12346 else
12347 ac_cv_lib_tiff_TIFFGetVersion=no
12348 fi
12349 rm -f core conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext conftest.$ac_ext
12351 LIBS=$ac_check_lib_save_LIBS
12352 fi
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12354 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12355 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12356 HAVE_TIFF=yes
12357 fi
12358
12359 fi
12360
12361
12362 fi
12363
12364 if test "${HAVE_TIFF}" = "yes"; then
12365
12366 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12367
12368 LIBTIFF=-ltiff
12369 fi
12370 fi
12371
12372
12373 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12374 HAVE_GIF=no
12375 LIBGIF=
12376 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12377 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12378 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12379 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12380 # Earlier versions can crash Emacs.
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12382 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12383 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-lgif $LIBS"
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12390
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12394 #ifdef __cplusplus
12395 extern "C"
12396 #endif
12397 char EGifPutExtensionLast ();
12398 int
12399 main ()
12400 {
12401 return EGifPutExtensionLast ();
12402 ;
12403 return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 ac_cv_lib_gif_EGifPutExtensionLast=yes
12408 else
12409 ac_cv_lib_gif_EGifPutExtensionLast=no
12410 fi
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_lib_save_LIBS
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12416 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12417 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12418 HAVE_GIF=yes
12419 else
12420 HAVE_GIF=maybe
12421 fi
12422
12423 fi
12424
12425
12426
12427 if test "$HAVE_GIF" = yes; then
12428 LIBGIF=-lgif
12429 elif test "$HAVE_GIF" = maybe; then
12430 # If gif_lib.h but no libgif, try libungif.
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12432 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12433 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 ac_check_lib_save_LIBS=$LIBS
12437 LIBS="-lungif $LIBS"
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12440
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12444 #ifdef __cplusplus
12445 extern "C"
12446 #endif
12447 char EGifPutExtensionLast ();
12448 int
12449 main ()
12450 {
12451 return EGifPutExtensionLast ();
12452 ;
12453 return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12458 else
12459 ac_cv_lib_ungif_EGifPutExtensionLast=no
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext conftest.$ac_ext
12463 LIBS=$ac_check_lib_save_LIBS
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12466 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12467 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12468 HAVE_GIF=yes
12469 else
12470 HAVE_GIF=no
12471 fi
12472
12473 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12474 fi
12475
12476 if test "${HAVE_GIF}" = "yes"; then
12477
12478 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12479
12480 fi
12481 fi
12482
12483
12484 if test "${HAVE_X11}" = "yes"; then
12485 MISSING=""
12486 WITH_NO=""
12487 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12488 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12489 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12490 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12491 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12492 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12493 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12494 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12495 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12496 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12497
12498 if test "X${MISSING}" != X; then
12499 as_fn_error "The following required libraries were not found:
12500 $MISSING
12501 Maybe some development libraries/packages are missing?
12502 If you don't want to link with them give
12503 $WITH_NO
12504 as options to configure" "$LINENO" 5
12505 fi
12506 fi
12507
12508 ### Use -lgpm if available, unless `--with-gpm=no'.
12509 HAVE_GPM=no
12510 LIBGPM=
12511 if test "${with_gpm}" != "no"; then
12512 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12513 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12515 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12516 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 ac_check_lib_save_LIBS=$LIBS
12520 LIBS="-lgpm $LIBS"
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523
12524 /* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply. */
12527 #ifdef __cplusplus
12528 extern "C"
12529 #endif
12530 char Gpm_Open ();
12531 int
12532 main ()
12533 {
12534 return Gpm_Open ();
12535 ;
12536 return 0;
12537 }
12538 _ACEOF
12539 if ac_fn_c_try_link "$LINENO"; then :
12540 ac_cv_lib_gpm_Gpm_Open=yes
12541 else
12542 ac_cv_lib_gpm_Gpm_Open=no
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12546 LIBS=$ac_check_lib_save_LIBS
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12549 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12550 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12551 HAVE_GPM=yes
12552 fi
12553
12554 fi
12555
12556
12557
12558 if test "${HAVE_GPM}" = "yes"; then
12559
12560 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12561
12562 LIBGPM=-lgpm
12563 fi
12564 fi
12565
12566
12567
12568
12569
12570
12571 GNUSTEP_CFLAGS=
12572 ### Use NeXTstep API to implement GUI.
12573 if test "${HAVE_NS}" = "yes"; then
12574
12575 $as_echo "#define HAVE_NS 1" >>confdefs.h
12576
12577 if test "${NS_IMPL_COCOA}" = "yes"; then
12578
12579 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12580
12581 fi
12582 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12583
12584 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12585
12586 # See also .m.o rule in Makefile.in */
12587 # FIXME: are all these flags really needed? Document here why. */
12588 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12589 ## Extra CFLAGS applied to src/*.m files.
12590 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"
12591 fi
12592 # We also have mouse menus.
12593 HAVE_MENUS=yes
12594 OTHER_FILES=ns-app
12595 fi
12596
12597
12598 ### Use session management (-lSM -lICE) if available
12599 HAVE_X_SM=no
12600 LIBXSM=
12601 if test "${HAVE_X11}" = "yes"; then
12602 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12603 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12605 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12606 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 ac_check_lib_save_LIBS=$LIBS
12610 LIBS="-lSM -lICE $LIBS"
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613
12614 /* Override any GCC internal prototype to avoid an error.
12615 Use char because int might match the return type of a GCC
12616 builtin and then its argument prototype would still apply. */
12617 #ifdef __cplusplus
12618 extern "C"
12619 #endif
12620 char SmcOpenConnection ();
12621 int
12622 main ()
12623 {
12624 return SmcOpenConnection ();
12625 ;
12626 return 0;
12627 }
12628 _ACEOF
12629 if ac_fn_c_try_link "$LINENO"; then :
12630 ac_cv_lib_SM_SmcOpenConnection=yes
12631 else
12632 ac_cv_lib_SM_SmcOpenConnection=no
12633 fi
12634 rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12636 LIBS=$ac_check_lib_save_LIBS
12637 fi
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12639 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12640 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12641 HAVE_X_SM=yes
12642 fi
12643
12644 fi
12645
12646
12647
12648 if test "${HAVE_X_SM}" = "yes"; then
12649
12650 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12651
12652 LIBXSM="-lSM -lICE"
12653 case "$LIBS" in
12654 *-lSM*) ;;
12655 *) LIBS="$LIBXSM $LIBS" ;;
12656 esac
12657 fi
12658 fi
12659
12660
12661 ### Use libxml (-lxml2) if available
12662 HAVE_LIBXML2=no
12663 if test "${with_xml2}" != "no"; then
12664 ### I'm not sure what the version number should be, so I just guessed.
12665
12666 succeeded=no
12667
12668 if test "$PKG_CONFIG" = "no" ; then
12669 HAVE_LIBXML2=no
12670 else
12671 PKG_CONFIG_MIN_VERSION=0.9.0
12672 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12674 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12675
12676 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12677 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12678 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12679 edit_cflags="
12680 s,///*,/,g
12681 s/^/ /
12682 s/ -I/ $isystem/g
12683 s/^ //
12684 "
12685 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12686 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12688 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12689 succeeded=yes
12690 else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12693 LIBXML2_CFLAGS=""
12694 LIBXML2_LIBS=""
12695 ## If we have a custom action on failure, don't print errors, but
12696 ## do set a variable so people can do so.
12697 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12698
12699 fi
12700
12701
12702
12703 else
12704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12706 fi
12707 fi
12708
12709 if test $succeeded = yes; then
12710 HAVE_LIBXML2=yes
12711 else
12712 HAVE_LIBXML2=no
12713 fi
12714
12715 if test "${HAVE_LIBXML2}" = "yes"; then
12716 LIBS="$LIBXML2_LIBS $LIBS"
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12718 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12719 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lxml2 $LIBS"
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12726
12727 /* Override any GCC internal prototype to avoid an error.
12728 Use char because int might match the return type of a GCC
12729 builtin and then its argument prototype would still apply. */
12730 #ifdef __cplusplus
12731 extern "C"
12732 #endif
12733 char htmlReadMemory ();
12734 int
12735 main ()
12736 {
12737 return htmlReadMemory ();
12738 ;
12739 return 0;
12740 }
12741 _ACEOF
12742 if ac_fn_c_try_link "$LINENO"; then :
12743 ac_cv_lib_xml2_htmlReadMemory=yes
12744 else
12745 ac_cv_lib_xml2_htmlReadMemory=no
12746 fi
12747 rm -f core conftest.err conftest.$ac_objext \
12748 conftest$ac_exeext conftest.$ac_ext
12749 LIBS=$ac_check_lib_save_LIBS
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12752 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12753 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12754 HAVE_LIBXML2=yes
12755 else
12756 HAVE_LIBXML2=no
12757 fi
12758
12759 if test "${HAVE_LIBXML2}" = "yes"; then
12760
12761 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12762
12763 else
12764 LIBXML2_LIBS=""
12765 LIBXML2_CFLAGS=""
12766 fi
12767 fi
12768 fi
12769
12770
12771
12772 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12774 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12775 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 #include <netdb.h>
12781 int
12782 main ()
12783 {
12784 return h_errno;
12785 ;
12786 return 0;
12787 }
12788 _ACEOF
12789 if ac_fn_c_try_link "$LINENO"; then :
12790 emacs_cv_netdb_declares_h_errno=yes
12791 else
12792 emacs_cv_netdb_declares_h_errno=no
12793 fi
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 fi
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12798 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12799 if test $emacs_cv_netdb_declares_h_errno = yes; then
12800
12801 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12802
12803 fi
12804
12805 # fmod, logb, and frexp are found in -lm on most systems.
12806 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12808 $as_echo_n "checking for sqrt in -lm... " >&6; }
12809 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-lm $LIBS"
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12816
12817 /* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12820 #ifdef __cplusplus
12821 extern "C"
12822 #endif
12823 char sqrt ();
12824 int
12825 main ()
12826 {
12827 return sqrt ();
12828 ;
12829 return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_c_try_link "$LINENO"; then :
12833 ac_cv_lib_m_sqrt=yes
12834 else
12835 ac_cv_lib_m_sqrt=no
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext \
12838 conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12842 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12843 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12844 cat >>confdefs.h <<_ACEOF
12845 #define HAVE_LIBM 1
12846 _ACEOF
12847
12848 LIBS="-lm $LIBS"
12849
12850 fi
12851
12852
12853 # Check for mail-locking functions in a "mail" library. Probably this should
12854 # have the same check as for liblockfile below.
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12856 $as_echo_n "checking for maillock in -lmail... " >&6; }
12857 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-lmail $LIBS"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 char maillock ();
12872 int
12873 main ()
12874 {
12875 return maillock ();
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 ac_cv_lib_mail_maillock=yes
12882 else
12883 ac_cv_lib_mail_maillock=no
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12890 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12891 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
12892 have_mail=yes
12893 else
12894 have_mail=no
12895 fi
12896
12897 if test $have_mail = yes; then
12898 LIBS_MAIL=-lmail
12899 LIBS="$LIBS_MAIL $LIBS"
12900
12901 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12902
12903 else
12904 LIBS_MAIL=
12905 fi
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12907 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12908 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 ac_check_lib_save_LIBS=$LIBS
12912 LIBS="-llockfile $LIBS"
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 char maillock ();
12923 int
12924 main ()
12925 {
12926 return maillock ();
12927 ;
12928 return 0;
12929 }
12930 _ACEOF
12931 if ac_fn_c_try_link "$LINENO"; then :
12932 ac_cv_lib_lockfile_maillock=yes
12933 else
12934 ac_cv_lib_lockfile_maillock=no
12935 fi
12936 rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12938 LIBS=$ac_check_lib_save_LIBS
12939 fi
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12941 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12942 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
12943 have_lockfile=yes
12944 else
12945 have_lockfile=no
12946 fi
12947
12948 if test $have_lockfile = yes; then
12949 LIBS_MAIL=-llockfile
12950 LIBS="$LIBS_MAIL $LIBS"
12951
12952 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12953
12954 else
12955 # If we have the shared liblockfile, assume we must use it for mail
12956 # locking (e.g. Debian). If we couldn't link against liblockfile
12957 # (no liblockfile.a installed), ensure that we don't need to.
12958 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12959 set dummy liblockfile.so; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12965 if test -n "$liblockfile"; then
12966 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12967 else
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12970 for as_dir in $as_dummy
12971 do
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 ac_cv_prog_liblockfile="yes"
12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 break 2
12979 fi
12980 done
12981 done
12982 IFS=$as_save_IFS
12983
12984 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12985 fi
12986 fi
12987 liblockfile=$ac_cv_prog_liblockfile
12988 if test -n "$liblockfile"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12990 $as_echo "$liblockfile" >&6; }
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12994 fi
12995
12996
12997 if test $ac_cv_prog_liblockfile = yes; then
12998 as_fn_error "Shared liblockfile found but can't link against it.
12999 This probably means that movemail could lose mail.
13000 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13001 fi
13002 fi
13003
13004
13005
13006
13007
13008 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13009 ## interlock access to the mail spool. The alternative is a lock file named
13010 ## /usr/spool/mail/$USER.lock.
13011 mail_lock=no
13012 case "$opsys" in
13013 aix4-2) mail_lock="lockf" ;;
13014
13015 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13016
13017 ## On GNU/Linux systems, both methods are used by various mail programs.
13018 ## I assume most people are using newer mailers that have heard of flock.
13019 ## Change this if you need to.
13020 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13021 ## configure gets the right answers, and that means *NOT* using flock.
13022 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13023 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13024 ## Debian maintainer hasn't provided a clean fix for Emacs.
13025 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13026 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13027 ## correct logic. -- fx
13028 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13029 ## liblockfile is a Free Software replacement for libmail, used on
13030 ## Debian systems and elsewhere. -rfr.
13031 gnu-*)
13032 mail_lock="flock"
13033 if test $have_mail = yes || test $have_lockfile = yes; then
13034 test $ac_cv_header_maillock_h = yes && mail_lock=no
13035 fi
13036 ;;
13037 esac
13038
13039 BLESSMAIL_TARGET=
13040 case "$mail_lock" in
13041 flock)
13042 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13043 ;;
13044
13045 lockf)
13046 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13047 ;;
13048
13049 *) BLESSMAIL_TARGET="need-blessmail" ;;
13050 esac
13051
13052
13053
13054 for ac_func in gethostname \
13055 closedir getrusage get_current_dir_name \
13056 lrand48 logb frexp fmod cbrt setsid \
13057 fpathconf select euidaccess getpagesize setlocale \
13058 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13059 __fpending strsignal setitimer \
13060 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13061 gai_strerror mkstemp getline getdelim fsync sync \
13062 difftime posix_memalign \
13063 getpwent endpwent getgrent endgrent \
13064 touchlock \
13065 cfmakeraw cfsetspeed copysign __executable_start
13066 do :
13067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13069 eval as_val=\$$as_ac_var
13070 if test "x$as_val" = x""yes; then :
13071 cat >>confdefs.h <<_ACEOF
13072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13073 _ACEOF
13074
13075 fi
13076 done
13077
13078
13079 if test $opsys = unixware; then
13080
13081 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13082
13083 else
13084 for ac_func in getwd
13085 do :
13086 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13087 if test "x$ac_cv_func_getwd" = x""yes; then :
13088 cat >>confdefs.h <<_ACEOF
13089 #define HAVE_GETWD 1
13090 _ACEOF
13091
13092 fi
13093 done
13094
13095 fi
13096
13097 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13098 ## has a broken `rint' in some library versions including math library
13099 ## version number A.09.05.
13100 ## You can fix the math library by installing patch number PHSS_4630.
13101 ## But we can fix it more reliably for Emacs by just not using rint.
13102 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13103 case $opsys in
13104 hpux*) : ;;
13105 *) for ac_func in random rint
13106 do :
13107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13108 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13109 eval as_val=\$$as_ac_var
13110 if test "x$as_val" = x""yes; then :
13111 cat >>confdefs.h <<_ACEOF
13112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13113 _ACEOF
13114
13115 fi
13116 done
13117 ;;
13118 esac
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13121 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13122 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127
13128 int
13129 main ()
13130 {
13131 __builtin_unwind_init ();
13132 ;
13133 return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_link "$LINENO"; then :
13137 emacs_cv_func___builtin_unwind_init=yes
13138 else
13139 emacs_cv_func___builtin_unwind_init=no
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext \
13142 conftest$ac_exeext conftest.$ac_ext
13143 fi
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13145 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13146 if test $emacs_cv_func___builtin_unwind_init = yes; then
13147
13148 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13149
13150 fi
13151
13152
13153
13154
13155
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13157 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13158 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 while :; do
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164 #include <sys/types.h> /* for off_t */
13165 #include <stdio.h>
13166 int
13167 main ()
13168 {
13169 int (*fp) (FILE *, off_t, int) = fseeko;
13170 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 ac_cv_sys_largefile_source=no; break
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13182 #define _LARGEFILE_SOURCE 1
13183 #include <sys/types.h> /* for off_t */
13184 #include <stdio.h>
13185 int
13186 main ()
13187 {
13188 int (*fp) (FILE *, off_t, int) = fseeko;
13189 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13190 ;
13191 return 0;
13192 }
13193 _ACEOF
13194 if ac_fn_c_try_link "$LINENO"; then :
13195 ac_cv_sys_largefile_source=1; break
13196 fi
13197 rm -f core conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13199 ac_cv_sys_largefile_source=unknown
13200 break
13201 done
13202 fi
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13204 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13205 case $ac_cv_sys_largefile_source in #(
13206 no | unknown) ;;
13207 *)
13208 cat >>confdefs.h <<_ACEOF
13209 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13210 _ACEOF
13211 ;;
13212 esac
13213 rm -rf conftest*
13214
13215 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13216 # in glibc 2.1.3, but that breaks too many other things.
13217 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13218 if test $ac_cv_sys_largefile_source != unknown; then
13219
13220 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13221
13222 fi
13223
13224
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13226 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13227 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 # Use it with a single arg.
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233 $ac_includes_default
13234 int
13235 main ()
13236 {
13237 getpgrp (0);
13238 ;
13239 return 0;
13240 }
13241 _ACEOF
13242 if ac_fn_c_try_compile "$LINENO"; then :
13243 ac_cv_func_getpgrp_void=no
13244 else
13245 ac_cv_func_getpgrp_void=yes
13246 fi
13247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248
13249 fi
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13251 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13252 if test $ac_cv_func_getpgrp_void = yes; then
13253
13254 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13255
13256 fi
13257
13258
13259 # UNIX98 PTYs.
13260 for ac_func in grantpt
13261 do :
13262 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13263 if test "x$ac_cv_func_grantpt" = x""yes; then :
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_GRANTPT 1
13266 _ACEOF
13267
13268 fi
13269 done
13270
13271
13272 # PTY-related GNU extensions.
13273 for ac_func in getpt posix_openpt
13274 do :
13275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13277 eval as_val=\$$as_ac_var
13278 if test "x$as_val" = x""yes; then :
13279 cat >>confdefs.h <<_ACEOF
13280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13281 _ACEOF
13282
13283 fi
13284 done
13285
13286
13287 # Check this now, so that we will NOT find the above functions in ncurses.
13288 # That is because we have not set up to link ncurses in lib-src.
13289 # It's better to believe a function is not available
13290 # than to expect to find it in ncurses.
13291 # Also we need tputs and friends to be able to build at all.
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13293 $as_echo_n "checking for library containing tputs... " >&6; }
13294 # Run a test program that contains a call to tputs, a call that is
13295 # never executed. This tests whether a pre-'main' dynamic linker
13296 # works with the library. It's too much trouble to actually call
13297 # tputs in the test program, due to portability hassles. When
13298 # cross-compiling, assume the test program will run if it links.
13299
13300 # Maybe curses should be tried earlier?
13301 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13302 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13303 OLIBS=$LIBS
13304 if test -z "$tputs_library"; then
13305 LIBS_TERMCAP=
13306 msg='none required'
13307 else
13308 LIBS_TERMCAP=-l$tputs_library
13309 msg=$LIBS_TERMCAP
13310 LIBS="$LIBS_TERMCAP $LIBS"
13311 fi
13312 if test "$cross_compiling" = yes; then :
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315
13316 extern void tputs (const char *, int, int (*)(int));
13317 int main (int argc, char **argv)
13318 {
13319 if (argc == 10000)
13320 tputs (argv[0], 0, 0);
13321 return 0;
13322 }
13323
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"; then :
13326
13327 else
13328 msg=no
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext \
13331 conftest$ac_exeext conftest.$ac_ext
13332 else
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335
13336 extern void tputs (const char *, int, int (*)(int));
13337 int main (int argc, char **argv)
13338 {
13339 if (argc == 10000)
13340 tputs (argv[0], 0, 0);
13341 return 0;
13342 }
13343
13344 _ACEOF
13345 if ac_fn_c_try_run "$LINENO"; then :
13346
13347 else
13348 msg=no
13349 fi
13350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13351 conftest.$ac_objext conftest.beam conftest.$ac_ext
13352 fi
13353
13354 LIBS=$OLIBS
13355 if test "X$msg" != Xno; then
13356 break
13357 fi
13358 done
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13360 $as_echo "$msg" >&6; }
13361 if test "X$msg" = Xno; then
13362 as_fn_error "The required function \`tputs' was not found in any library.
13363 The following libraries were tried (in order):
13364 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13365 Please try installing whichever of these libraries is most appropriate
13366 for your system, together with its header files.
13367 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13368 fi
13369
13370 ## Use termcap instead of terminfo?
13371 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13372 TERMINFO=yes
13373 ## FIXME? In the cases below where we unconditionally set
13374 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13375 ## if that was found above to have tputs.
13376 ## Should we use the gnu* logic everywhere?
13377 case "$opsys" in
13378 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13379 ## The ncurses library has been moved out of the System framework in
13380 ## Mac OS X 10.2. So if configure detects it, set the command-line
13381 ## option to use it.
13382 darwin) LIBS_TERMCAP="-lncurses" ;;
13383
13384 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13385
13386 freebsd)
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13388 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13389 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 #include <osreldate.h>
13395 int
13396 main ()
13397 {
13398 #if __FreeBSD_version < 400000
13399 fail;
13400 #endif
13401
13402 ;
13403 return 0;
13404 }
13405 _ACEOF
13406 if ac_fn_c_try_link "$LINENO"; then :
13407 emacs_cv_freebsd_terminfo=yes
13408 else
13409 emacs_cv_freebsd_terminfo=no
13410 fi
13411 rm -f core conftest.err conftest.$ac_objext \
13412 conftest$ac_exeext conftest.$ac_ext
13413 fi
13414
13415
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13417 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13418
13419 if test $emacs_cv_freebsd_terminfo = yes; then
13420 LIBS_TERMCAP="-lncurses"
13421 else
13422 TERMINFO=no
13423 LIBS_TERMCAP="-ltermcap"
13424 fi
13425 ;;
13426
13427 netbsd)
13428 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13429 TERMINFO=no
13430 LIBS_TERMCAP="-ltermcap"
13431 fi
13432 ;;
13433
13434 openbsd) LIBS_TERMCAP="-lncurses" ;;
13435
13436 ## hpux: Make sure we get select from libc rather than from libcurses
13437 ## because libcurses on HPUX 10.10 has a broken version of select.
13438 ## We used to use -lc -lcurses, but this may be cleaner.
13439 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13440 # set that way, now it uses the default). Isn't this a contradiction?
13441 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13442
13443 esac
13444
13445 TERMCAP_OBJ=tparam.o
13446 if test $TERMINFO = yes; then
13447
13448 $as_echo "#define TERMINFO 1" >>confdefs.h
13449
13450 TERMCAP_OBJ=terminfo.o
13451 fi
13452
13453
13454
13455
13456 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13457 # On Darwin, res_init appears not to be useful: see bug#562 and
13458 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13459 resolv=no
13460
13461 if test $opsys != darwin; then
13462
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #include <netinet/in.h>
13466 #include <arpa/nameser.h>
13467 #include <resolv.h>
13468 int
13469 main ()
13470 {
13471 return res_init();
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_link "$LINENO"; then :
13477 have_res_init=yes
13478 else
13479 have_res_init=no
13480 fi
13481 rm -f core conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13483 if test "$have_res_init" = no; then
13484 OLIBS="$LIBS"
13485 LIBS="$LIBS -lresolv"
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13487 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13490 #include <netinet/in.h>
13491 #include <arpa/nameser.h>
13492 #include <resolv.h>
13493 int
13494 main ()
13495 {
13496 return res_init();
13497 ;
13498 return 0;
13499 }
13500 _ACEOF
13501 if ac_fn_c_try_link "$LINENO"; then :
13502 have_res_init=yes
13503 else
13504 have_res_init=no
13505 fi
13506 rm -f core conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13509 $as_echo "$have_res_init" >&6; }
13510 if test "$have_res_init" = yes ; then
13511 resolv=yes
13512 fi
13513 LIBS="$OLIBS"
13514 fi
13515
13516 if test "$have_res_init" = yes; then
13517
13518 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13519
13520 fi
13521 fi
13522 # Do we need the Hesiod library to provide the support routines?
13523 LIBHESIOD=
13524 if test "$with_hesiod" != no ; then
13525 # Don't set $LIBS here -- see comments above. FIXME which comments?
13526 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13527 if test "x$ac_cv_func_res_send" = x""yes; then :
13528
13529 else
13530 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13531 if test "x$ac_cv_func___res_send" = x""yes; then :
13532
13533 else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13535 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13536 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-lresolv $LIBS"
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 char res_send ();
13551 int
13552 main ()
13553 {
13554 return res_send ();
13555 ;
13556 return 0;
13557 }
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 ac_cv_lib_resolv_res_send=yes
13561 else
13562 ac_cv_lib_resolv_res_send=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13569 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13570 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13571 resolv=yes
13572 else
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13574 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13575 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13576 $as_echo_n "(cached) " >&6
13577 else
13578 ac_check_lib_save_LIBS=$LIBS
13579 LIBS="-lresolv $LIBS"
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582
13583 /* Override any GCC internal prototype to avoid an error.
13584 Use char because int might match the return type of a GCC
13585 builtin and then its argument prototype would still apply. */
13586 #ifdef __cplusplus
13587 extern "C"
13588 #endif
13589 char __res_send ();
13590 int
13591 main ()
13592 {
13593 return __res_send ();
13594 ;
13595 return 0;
13596 }
13597 _ACEOF
13598 if ac_fn_c_try_link "$LINENO"; then :
13599 ac_cv_lib_resolv___res_send=yes
13600 else
13601 ac_cv_lib_resolv___res_send=no
13602 fi
13603 rm -f core conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext conftest.$ac_ext
13605 LIBS=$ac_check_lib_save_LIBS
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13608 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13609 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13610 resolv=yes
13611 fi
13612
13613 fi
13614
13615 fi
13616
13617 fi
13618
13619 if test "$resolv" = yes ; then
13620 RESOLVLIB=-lresolv
13621 else
13622 RESOLVLIB=
13623 fi
13624 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13625 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13626
13627 else
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13629 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13630 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 ac_check_lib_save_LIBS=$LIBS
13634 LIBS="-lhesiod $RESOLVLIB $LIBS"
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637
13638 /* Override any GCC internal prototype to avoid an error.
13639 Use char because int might match the return type of a GCC
13640 builtin and then its argument prototype would still apply. */
13641 #ifdef __cplusplus
13642 extern "C"
13643 #endif
13644 char hes_getmailhost ();
13645 int
13646 main ()
13647 {
13648 return hes_getmailhost ();
13649 ;
13650 return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_link "$LINENO"; then :
13654 ac_cv_lib_hesiod_hes_getmailhost=yes
13655 else
13656 ac_cv_lib_hesiod_hes_getmailhost=no
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
13660 LIBS=$ac_check_lib_save_LIBS
13661 fi
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13663 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13664 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13665 hesiod=yes
13666 else
13667 :
13668 fi
13669
13670 fi
13671
13672
13673 if test x"$hesiod" = xyes; then
13674
13675 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13676
13677 LIBHESIOD=-lhesiod
13678 fi
13679 fi
13680
13681
13682 # Do we need libresolv (due to res_init or Hesiod)?
13683 if test "$resolv" = yes && test $opsys != darwin; then
13684
13685 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13686
13687 LIBRESOLV=-lresolv
13688 else
13689 LIBRESOLV=
13690 fi
13691
13692
13693 # These tell us which Kerberos-related libraries to use.
13694 COM_ERRLIB=
13695 CRYPTOLIB=
13696 KRB5LIB=
13697 DESLIB=
13698 KRB4LIB=
13699
13700 if test "${with_kerberos}" != no; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13702 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13703 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13704 $as_echo_n "(cached) " >&6
13705 else
13706 ac_check_lib_save_LIBS=$LIBS
13707 LIBS="-lcom_err $LIBS"
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710
13711 /* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply. */
13714 #ifdef __cplusplus
13715 extern "C"
13716 #endif
13717 char com_err ();
13718 int
13719 main ()
13720 {
13721 return com_err ();
13722 ;
13723 return 0;
13724 }
13725 _ACEOF
13726 if ac_fn_c_try_link "$LINENO"; then :
13727 ac_cv_lib_com_err_com_err=yes
13728 else
13729 ac_cv_lib_com_err_com_err=no
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext \
13732 conftest$ac_exeext conftest.$ac_ext
13733 LIBS=$ac_check_lib_save_LIBS
13734 fi
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13736 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13737 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13738 have_com_err=yes
13739 else
13740 have_com_err=no
13741 fi
13742
13743 if test $have_com_err = yes; then
13744 COM_ERRLIB=-lcom_err
13745 LIBS="$COM_ERRLIB $LIBS"
13746
13747 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13748
13749 fi
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13751 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13752 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 ac_check_lib_save_LIBS=$LIBS
13756 LIBS="-lcrypto $LIBS"
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759
13760 /* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char mit_des_cbc_encrypt ();
13767 int
13768 main ()
13769 {
13770 return mit_des_cbc_encrypt ();
13771 ;
13772 return 0;
13773 }
13774 _ACEOF
13775 if ac_fn_c_try_link "$LINENO"; then :
13776 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13777 else
13778 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13779 fi
13780 rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13782 LIBS=$ac_check_lib_save_LIBS
13783 fi
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13785 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13786 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13787 have_crypto=yes
13788 else
13789 have_crypto=no
13790 fi
13791
13792 if test $have_crypto = yes; then
13793 CRYPTOLIB=-lcrypto
13794 LIBS="$CRYPTOLIB $LIBS"
13795
13796 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13797
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13800 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13801 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13802 $as_echo_n "(cached) " >&6
13803 else
13804 ac_check_lib_save_LIBS=$LIBS
13805 LIBS="-lk5crypto $LIBS"
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808
13809 /* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13812 #ifdef __cplusplus
13813 extern "C"
13814 #endif
13815 char mit_des_cbc_encrypt ();
13816 int
13817 main ()
13818 {
13819 return mit_des_cbc_encrypt ();
13820 ;
13821 return 0;
13822 }
13823 _ACEOF
13824 if ac_fn_c_try_link "$LINENO"; then :
13825 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13826 else
13827 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13828 fi
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831 LIBS=$ac_check_lib_save_LIBS
13832 fi
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13834 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13835 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13836 have_k5crypto=yes
13837 else
13838 have_k5crypto=no
13839 fi
13840
13841 if test $have_k5crypto = yes; then
13842 CRYPTOLIB=-lk5crypto
13843 LIBS="$CRYPTOLIB $LIBS"
13844
13845 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13846
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13849 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13850 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 ac_check_lib_save_LIBS=$LIBS
13854 LIBS="-lkrb5 $LIBS"
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13857
13858 /* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13861 #ifdef __cplusplus
13862 extern "C"
13863 #endif
13864 char krb5_init_context ();
13865 int
13866 main ()
13867 {
13868 return krb5_init_context ();
13869 ;
13870 return 0;
13871 }
13872 _ACEOF
13873 if ac_fn_c_try_link "$LINENO"; then :
13874 ac_cv_lib_krb5_krb5_init_context=yes
13875 else
13876 ac_cv_lib_krb5_krb5_init_context=no
13877 fi
13878 rm -f core conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
13880 LIBS=$ac_check_lib_save_LIBS
13881 fi
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13883 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13884 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13885 have_krb5=yes
13886 else
13887 have_krb5=no
13888 fi
13889
13890 if test $have_krb5=yes; then
13891 KRB5LIB=-lkrb5
13892 LIBS="$KRB5LIB $LIBS"
13893
13894 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13895
13896 fi
13897 if test "${with_kerberos5}" = no; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13899 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13900 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 ac_check_lib_save_LIBS=$LIBS
13904 LIBS="-ldes425 $LIBS"
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907
13908 /* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
13911 #ifdef __cplusplus
13912 extern "C"
13913 #endif
13914 char des_cbc_encrypt ();
13915 int
13916 main ()
13917 {
13918 return des_cbc_encrypt ();
13919 ;
13920 return 0;
13921 }
13922 _ACEOF
13923 if ac_fn_c_try_link "$LINENO"; then :
13924 ac_cv_lib_des425_des_cbc_encrypt=yes
13925 else
13926 ac_cv_lib_des425_des_cbc_encrypt=no
13927 fi
13928 rm -f core conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930 LIBS=$ac_check_lib_save_LIBS
13931 fi
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13933 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13934 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13935 have_des425=yes
13936 else
13937 have_des425=no
13938 fi
13939
13940 if test $have_des425 = yes; then
13941 DESLIB=-ldes425
13942 LIBS="$DESLIB $LIBS"
13943
13944 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13945
13946 else
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13948 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13949 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 ac_check_lib_save_LIBS=$LIBS
13953 LIBS="-ldes $LIBS"
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956
13957 /* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
13960 #ifdef __cplusplus
13961 extern "C"
13962 #endif
13963 char des_cbc_encrypt ();
13964 int
13965 main ()
13966 {
13967 return des_cbc_encrypt ();
13968 ;
13969 return 0;
13970 }
13971 _ACEOF
13972 if ac_fn_c_try_link "$LINENO"; then :
13973 ac_cv_lib_des_des_cbc_encrypt=yes
13974 else
13975 ac_cv_lib_des_des_cbc_encrypt=no
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
13979 LIBS=$ac_check_lib_save_LIBS
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13982 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13983 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13984 have_des=yes
13985 else
13986 have_des=no
13987 fi
13988
13989 if test $have_des = yes; then
13990 DESLIB=-ldes
13991 LIBS="$DESLIB $LIBS"
13992
13993 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13994
13995 fi
13996 fi
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13998 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13999 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14002 ac_check_lib_save_LIBS=$LIBS
14003 LIBS="-lkrb4 $LIBS"
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006
14007 /* Override any GCC internal prototype to avoid an error.
14008 Use char because int might match the return type of a GCC
14009 builtin and then its argument prototype would still apply. */
14010 #ifdef __cplusplus
14011 extern "C"
14012 #endif
14013 char krb_get_cred ();
14014 int
14015 main ()
14016 {
14017 return krb_get_cred ();
14018 ;
14019 return 0;
14020 }
14021 _ACEOF
14022 if ac_fn_c_try_link "$LINENO"; then :
14023 ac_cv_lib_krb4_krb_get_cred=yes
14024 else
14025 ac_cv_lib_krb4_krb_get_cred=no
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext \
14028 conftest$ac_exeext conftest.$ac_ext
14029 LIBS=$ac_check_lib_save_LIBS
14030 fi
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14032 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14033 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14034 have_krb4=yes
14035 else
14036 have_krb4=no
14037 fi
14038
14039 if test $have_krb4 = yes; then
14040 KRB4LIB=-lkrb4
14041 LIBS="$KRB4LIB $LIBS"
14042
14043 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14044
14045 else
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14047 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14048 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 ac_check_lib_save_LIBS=$LIBS
14052 LIBS="-lkrb $LIBS"
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055
14056 /* Override any GCC internal prototype to avoid an error.
14057 Use char because int might match the return type of a GCC
14058 builtin and then its argument prototype would still apply. */
14059 #ifdef __cplusplus
14060 extern "C"
14061 #endif
14062 char krb_get_cred ();
14063 int
14064 main ()
14065 {
14066 return krb_get_cred ();
14067 ;
14068 return 0;
14069 }
14070 _ACEOF
14071 if ac_fn_c_try_link "$LINENO"; then :
14072 ac_cv_lib_krb_krb_get_cred=yes
14073 else
14074 ac_cv_lib_krb_krb_get_cred=no
14075 fi
14076 rm -f core conftest.err conftest.$ac_objext \
14077 conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14079 fi
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14081 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14082 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14083 have_krb=yes
14084 else
14085 have_krb=no
14086 fi
14087
14088 if test $have_krb = yes; then
14089 KRB4LIB=-lkrb
14090 LIBS="$KRB4LIB $LIBS"
14091
14092 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14093
14094 fi
14095 fi
14096 fi
14097
14098 if test "${with_kerberos5}" != no; then
14099 for ac_header in krb5.h
14100 do :
14101 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14102 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_KRB5_H 1
14105 _ACEOF
14106 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14107 "
14108 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14109
14110 cat >>confdefs.h <<_ACEOF
14111 #define HAVE_KRB5_ERROR_TEXT 1
14112 _ACEOF
14113
14114
14115 fi
14116 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14117 "
14118 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14119
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_KRB5_ERROR_E_TEXT 1
14122 _ACEOF
14123
14124
14125 fi
14126
14127 fi
14128
14129 done
14130
14131 else
14132 for ac_header in des.h
14133 do :
14134 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14135 if test "x$ac_cv_header_des_h" = x""yes; then :
14136 cat >>confdefs.h <<_ACEOF
14137 #define HAVE_DES_H 1
14138 _ACEOF
14139
14140 else
14141 for ac_header in kerberosIV/des.h
14142 do :
14143 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14144 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14145 cat >>confdefs.h <<_ACEOF
14146 #define HAVE_KERBEROSIV_DES_H 1
14147 _ACEOF
14148
14149 else
14150 for ac_header in kerberos/des.h
14151 do :
14152 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14153 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14154 cat >>confdefs.h <<_ACEOF
14155 #define HAVE_KERBEROS_DES_H 1
14156 _ACEOF
14157
14158 fi
14159
14160 done
14161
14162 fi
14163
14164 done
14165
14166 fi
14167
14168 done
14169
14170 for ac_header in krb.h
14171 do :
14172 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14173 if test "x$ac_cv_header_krb_h" = x""yes; then :
14174 cat >>confdefs.h <<_ACEOF
14175 #define HAVE_KRB_H 1
14176 _ACEOF
14177
14178 else
14179 for ac_header in kerberosIV/krb.h
14180 do :
14181 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14182 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14183 cat >>confdefs.h <<_ACEOF
14184 #define HAVE_KERBEROSIV_KRB_H 1
14185 _ACEOF
14186
14187 else
14188 for ac_header in kerberos/krb.h
14189 do :
14190 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14191 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14192 cat >>confdefs.h <<_ACEOF
14193 #define HAVE_KERBEROS_KRB_H 1
14194 _ACEOF
14195
14196 fi
14197
14198 done
14199
14200 fi
14201
14202 done
14203
14204 fi
14205
14206 done
14207
14208 fi
14209 for ac_header in com_err.h
14210 do :
14211 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14212 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14213 cat >>confdefs.h <<_ACEOF
14214 #define HAVE_COM_ERR_H 1
14215 _ACEOF
14216
14217 fi
14218
14219 done
14220
14221 fi
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232 for ac_func in $ac_func_list
14233 do :
14234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14235 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14236 eval as_val=\$$as_ac_var
14237 if test "x$as_val" = x""yes; then :
14238 cat >>confdefs.h <<_ACEOF
14239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14240 _ACEOF
14241
14242 fi
14243 done
14244
14245
14246
14247
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14249 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14250 if test "${emacs_cv_localtime_cache+set}" = set; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 if test x$ac_cv_func_tzset = xyes; then
14254 if test "$cross_compiling" = yes; then :
14255 # If we have tzset, assume the worst when cross-compiling.
14256 emacs_cv_localtime_cache=yes
14257 else
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260 #include <time.h>
14261 char TZ_GMT0[] = "TZ=GMT0";
14262 char TZ_PST8[] = "TZ=PST8";
14263 main()
14264 {
14265 time_t now = time ((time_t *) 0);
14266 int hour_GMT0, hour_unset;
14267 if (putenv (TZ_GMT0) != 0)
14268 exit (1);
14269 hour_GMT0 = localtime (&now)->tm_hour;
14270 unsetenv("TZ");
14271 hour_unset = localtime (&now)->tm_hour;
14272 if (putenv (TZ_PST8) != 0)
14273 exit (1);
14274 if (localtime (&now)->tm_hour == hour_GMT0)
14275 exit (1);
14276 unsetenv("TZ");
14277 if (localtime (&now)->tm_hour != hour_unset)
14278 exit (1);
14279 exit (0);
14280 }
14281 _ACEOF
14282 if ac_fn_c_try_run "$LINENO"; then :
14283 emacs_cv_localtime_cache=no
14284 else
14285 emacs_cv_localtime_cache=yes
14286 fi
14287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14288 conftest.$ac_objext conftest.beam conftest.$ac_ext
14289 fi
14290
14291 else
14292 # If we lack tzset, report that localtime does not cache TZ,
14293 # since we can't invalidate the cache if we don't have tzset.
14294 emacs_cv_localtime_cache=no
14295 fi
14296 fi
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14298 $as_echo "$emacs_cv_localtime_cache" >&6; }
14299 if test $emacs_cv_localtime_cache = yes; then
14300
14301 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14302
14303 fi
14304
14305 ok_so_far=yes
14306 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14307 if test "x$ac_cv_func_socket" = x""yes; then :
14308
14309 else
14310 ok_so_far=no
14311 fi
14312
14313 if test $ok_so_far = yes; then
14314 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14315 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14316
14317 else
14318 ok_so_far=no
14319 fi
14320
14321
14322 fi
14323 if test $ok_so_far = yes; then
14324 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14325 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14326
14327 else
14328 ok_so_far=no
14329 fi
14330
14331
14332 fi
14333 if test $ok_so_far = yes; then
14334
14335 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14336
14337 fi
14338
14339 if test -f /usr/lpp/X11/bin/smt.exp; then
14340
14341 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14342
14343 fi
14344
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14346 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14347 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14349 $as_echo "yes" >&6; }
14350
14351 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14352
14353 else
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14356 fi
14357
14358 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14359 if test "x$ac_cv_type_pid_t" = x""yes; then :
14360
14361 else
14362
14363 cat >>confdefs.h <<_ACEOF
14364 #define pid_t int
14365 _ACEOF
14366
14367 fi
14368
14369 for ac_header in vfork.h
14370 do :
14371 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14372 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14373 cat >>confdefs.h <<_ACEOF
14374 #define HAVE_VFORK_H 1
14375 _ACEOF
14376
14377 fi
14378
14379 done
14380
14381 for ac_func in fork vfork
14382 do :
14383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14385 eval as_val=\$$as_ac_var
14386 if test "x$as_val" = x""yes; then :
14387 cat >>confdefs.h <<_ACEOF
14388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14389 _ACEOF
14390
14391 fi
14392 done
14393
14394 if test "x$ac_cv_func_fork" = xyes; then
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14396 $as_echo_n "checking for working fork... " >&6; }
14397 if test "${ac_cv_func_fork_works+set}" = set; then :
14398 $as_echo_n "(cached) " >&6
14399 else
14400 if test "$cross_compiling" = yes; then :
14401 ac_cv_func_fork_works=cross
14402 else
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 $ac_includes_default
14406 int
14407 main ()
14408 {
14409
14410 /* By Ruediger Kuhlmann. */
14411 return fork () < 0;
14412
14413 ;
14414 return 0;
14415 }
14416 _ACEOF
14417 if ac_fn_c_try_run "$LINENO"; then :
14418 ac_cv_func_fork_works=yes
14419 else
14420 ac_cv_func_fork_works=no
14421 fi
14422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14423 conftest.$ac_objext conftest.beam conftest.$ac_ext
14424 fi
14425
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14428 $as_echo "$ac_cv_func_fork_works" >&6; }
14429
14430 else
14431 ac_cv_func_fork_works=$ac_cv_func_fork
14432 fi
14433 if test "x$ac_cv_func_fork_works" = xcross; then
14434 case $host in
14435 *-*-amigaos* | *-*-msdosdjgpp*)
14436 # Override, as these systems have only a dummy fork() stub
14437 ac_cv_func_fork_works=no
14438 ;;
14439 *)
14440 ac_cv_func_fork_works=yes
14441 ;;
14442 esac
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14444 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14445 fi
14446 ac_cv_func_vfork_works=$ac_cv_func_vfork
14447 if test "x$ac_cv_func_vfork" = xyes; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14449 $as_echo_n "checking for working vfork... " >&6; }
14450 if test "${ac_cv_func_vfork_works+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14452 else
14453 if test "$cross_compiling" = yes; then :
14454 ac_cv_func_vfork_works=cross
14455 else
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 /* Thanks to Paul Eggert for this test. */
14459 $ac_includes_default
14460 #include <sys/wait.h>
14461 #ifdef HAVE_VFORK_H
14462 # include <vfork.h>
14463 #endif
14464 /* On some sparc systems, changes by the child to local and incoming
14465 argument registers are propagated back to the parent. The compiler
14466 is told about this with #include <vfork.h>, but some compilers
14467 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14468 static variable whose address is put into a register that is
14469 clobbered by the vfork. */
14470 static void
14471 #ifdef __cplusplus
14472 sparc_address_test (int arg)
14473 # else
14474 sparc_address_test (arg) int arg;
14475 #endif
14476 {
14477 static pid_t child;
14478 if (!child) {
14479 child = vfork ();
14480 if (child < 0) {
14481 perror ("vfork");
14482 _exit(2);
14483 }
14484 if (!child) {
14485 arg = getpid();
14486 write(-1, "", 0);
14487 _exit (arg);
14488 }
14489 }
14490 }
14491
14492 int
14493 main ()
14494 {
14495 pid_t parent = getpid ();
14496 pid_t child;
14497
14498 sparc_address_test (0);
14499
14500 child = vfork ();
14501
14502 if (child == 0) {
14503 /* Here is another test for sparc vfork register problems. This
14504 test uses lots of local variables, at least as many local
14505 variables as main has allocated so far including compiler
14506 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14507 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14508 reuse the register of parent for one of the local variables,
14509 since it will think that parent can't possibly be used any more
14510 in this routine. Assigning to the local variable will thus
14511 munge parent in the parent process. */
14512 pid_t
14513 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14514 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14515 /* Convince the compiler that p..p7 are live; otherwise, it might
14516 use the same hardware register for all 8 local variables. */
14517 if (p != p1 || p != p2 || p != p3 || p != p4
14518 || p != p5 || p != p6 || p != p7)
14519 _exit(1);
14520
14521 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14522 from child file descriptors. If the child closes a descriptor
14523 before it execs or exits, this munges the parent's descriptor
14524 as well. Test for this by closing stdout in the child. */
14525 _exit(close(fileno(stdout)) != 0);
14526 } else {
14527 int status;
14528 struct stat st;
14529
14530 while (wait(&status) != child)
14531 ;
14532 return (
14533 /* Was there some problem with vforking? */
14534 child < 0
14535
14536 /* Did the child fail? (This shouldn't happen.) */
14537 || status
14538
14539 /* Did the vfork/compiler bug occur? */
14540 || parent != getpid()
14541
14542 /* Did the file descriptor bug occur? */
14543 || fstat(fileno(stdout), &st) != 0
14544 );
14545 }
14546 }
14547 _ACEOF
14548 if ac_fn_c_try_run "$LINENO"; then :
14549 ac_cv_func_vfork_works=yes
14550 else
14551 ac_cv_func_vfork_works=no
14552 fi
14553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14554 conftest.$ac_objext conftest.beam conftest.$ac_ext
14555 fi
14556
14557 fi
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14559 $as_echo "$ac_cv_func_vfork_works" >&6; }
14560
14561 fi;
14562 if test "x$ac_cv_func_fork_works" = xcross; then
14563 ac_cv_func_vfork_works=$ac_cv_func_vfork
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14565 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14566 fi
14567
14568 if test "x$ac_cv_func_vfork_works" = xyes; then
14569
14570 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14571
14572 else
14573
14574 $as_echo "#define vfork fork" >>confdefs.h
14575
14576 fi
14577 if test "x$ac_cv_func_fork_works" = xyes; then
14578
14579 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14580
14581 fi
14582
14583
14584 for ac_func in snprintf
14585 do :
14586 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14587 if test "x$ac_cv_func_snprintf" = x""yes; then :
14588 cat >>confdefs.h <<_ACEOF
14589 #define HAVE_SNPRINTF 1
14590 _ACEOF
14591
14592 fi
14593 done
14594
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14597 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14598 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14603 #include <langinfo.h>
14604 int
14605 main ()
14606 {
14607 char* cs = nl_langinfo(CODESET);
14608 ;
14609 return 0;
14610 }
14611 _ACEOF
14612 if ac_fn_c_try_link "$LINENO"; then :
14613 emacs_cv_langinfo_codeset=yes
14614 else
14615 emacs_cv_langinfo_codeset=no
14616 fi
14617 rm -f core conftest.err conftest.$ac_objext \
14618 conftest$ac_exeext conftest.$ac_ext
14619
14620 fi
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14622 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14623 if test $emacs_cv_langinfo_codeset = yes; then
14624
14625 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14626
14627 fi
14628
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14630 $as_echo_n "checking for mbstate_t... " >&6; }
14631 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14632 $as_echo_n "(cached) " >&6
14633 else
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14636 $ac_includes_default
14637 # include <wchar.h>
14638 int
14639 main ()
14640 {
14641 mbstate_t x; return sizeof x;
14642 ;
14643 return 0;
14644 }
14645 _ACEOF
14646 if ac_fn_c_try_compile "$LINENO"; then :
14647 ac_cv_type_mbstate_t=yes
14648 else
14649 ac_cv_type_mbstate_t=no
14650 fi
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14654 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14655 if test $ac_cv_type_mbstate_t = yes; then
14656
14657 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14658
14659 else
14660
14661 $as_echo "#define mbstate_t int" >>confdefs.h
14662
14663 fi
14664
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14666 $as_echo_n "checking for C restricted array declarations... " >&6; }
14667 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14668 $as_echo_n "(cached) " >&6
14669 else
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 void fred (int x[__restrict]);
14673 int
14674 main ()
14675 {
14676
14677 ;
14678 return 0;
14679 }
14680 _ACEOF
14681 if ac_fn_c_try_compile "$LINENO"; then :
14682 emacs_cv_c_restrict_arr=yes
14683 else
14684 emacs_cv_c_restrict_arr=no
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687 fi
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14689 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14690 if test "$emacs_cv_c_restrict_arr" = yes; then
14691
14692 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14693
14694 fi
14695
14696
14697
14698 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14699
14700
14701
14702 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14703
14704
14705
14706
14707
14708
14709 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14710
14711 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14712
14713
14714
14715 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14716
14717
14718
14719
14720
14721 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14722
14723
14724
14725 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14726
14727
14728
14729 $as_echo "#define subprocesses 1" >>confdefs.h
14730
14731
14732
14733 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14734
14735
14736
14737
14738 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14739
14740
14741
14742
14743
14744 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14745
14746
14747
14748 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14749
14750
14751
14752 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14753
14754
14755
14756
14757
14758 case $opsys in
14759 aix4-2)
14760 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
14761 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14762
14763 fi
14764 ;;
14765
14766 hpux*)
14767 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14768
14769 ;;
14770 esac
14771
14772
14773 case $opsys in
14774 darwin | gnu | hpux* | *bsd )
14775
14776 $as_echo "#define NO_TERMIO 1" >>confdefs.h
14777
14778 ;;
14779
14780 irix6-5 | sol2* | unixware )
14781
14782 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14783
14784 ;;
14785 esac
14786
14787
14788 case $opsys in
14789 hpux* | irix6-5 | openbsd | sol2* | unixware )
14790
14791 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
14792
14793 ;;
14794
14795 aix4-2)
14796
14797 $as_echo "#define BROKEN_FIONREAD 1" >>confdefs.h
14798
14799
14800 $as_echo "#define BROKEN_SIGAIO 1" >>confdefs.h
14801
14802
14803 $as_echo "#define BROKEN_SIGPOLL 1" >>confdefs.h
14804
14805
14806 $as_echo "#define BROKEN_SIGPTY 1" >>confdefs.h
14807
14808
14809
14810 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14811
14812 ;;
14813
14814 freebsd)
14815
14816 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14817
14818 ;;
14819
14820 darwin)
14821
14822 $as_echo "#define NO_ABORT 1" >>confdefs.h
14823
14824 ;;
14825 esac
14826
14827 case $opsys in
14828 gnu-* | sol2-10 )
14829
14830 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14831
14832 ;;
14833 esac
14834
14835 case $opsys in
14836 darwin | freebsd | netbsd | openbsd )
14837
14838 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14839
14840 ;;
14841 esac
14842
14843 case $opsys in
14844 netbsd | openbsd) sound_device="/dev/audio" ;;
14845 *) sound_device="/dev/dsp" ;;
14846 esac
14847
14848
14849 cat >>confdefs.h <<_ACEOF
14850 #define DEFAULT_SOUND_DEVICE "$sound_device"
14851 _ACEOF
14852
14853
14854
14855 case $opsys in
14856 darwin | gnu-linux | gnu-kfreebsd )
14857
14858 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14859
14860 ;;
14861 esac
14862
14863
14864 case $opsys in
14865 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
14866
14867 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14868
14869 ;;
14870 esac
14871
14872
14873
14874
14875
14876
14877
14878
14879 case $opsys in
14880 aix4-2 )
14881 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14882
14883 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
14884
14885 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
14886
14887 ;;
14888
14889 cygwin )
14890 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14891
14892 $as_echo "#define PTY_OPEN do { int dummy; SIGMASKTYPE mask; mask = sigblock (sigmask (SIGCHLD)); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; sigsetmask (mask); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
14893
14894 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14895
14896 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14897
14898 ;;
14899
14900 darwin )
14901 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14902
14903 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14904
14905 $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
14906
14907 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14908
14909 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14910
14911 ;;
14912
14913 gnu | openbsd )
14914 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14915
14916 ;;
14917
14918 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
14919 if test "x$ac_cv_func_grantpt" = xyes; then
14920
14921 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
14922
14923 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14924
14925 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname; sigblock (sigmask (SIGCHLD)); if (grantpt (fd) == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname(fd))) { sigunblock (sigmask (SIGCHLD)); close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); sigunblock (sigmask (SIGCHLD)); }" >>confdefs.h
14926
14927 if test "x$ac_cv_func_posix_openpt" = xyes; then
14928 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
14929
14930 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14931
14932 elif test "x$ac_cv_func_getpt" = xyes; then
14933 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
14934
14935 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14936
14937 else
14938 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
14939
14940 fi
14941 else
14942 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14943
14944 fi
14945 ;;
14946
14947 hpux*)
14948 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14949
14950 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
14951
14952 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
14953
14954 ;;
14955
14956 irix6-5 )
14957 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
14958
14959 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
14960
14961 $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
14962
14963 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14964
14965 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14966
14967 ;;
14968
14969 sol2* )
14970 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock (sigmask (SIGCLD)); if (grantpt (fd) == -1) { emacs_close (fd); return -1; } sigunblock (sigmask (SIGCLD)); if (unlockpt (fd) == -1) { emacs_close (fd); return -1; } if (!(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
14971
14972 ;;
14973
14974 unixware )
14975 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock(sigmask(SIGCLD)); if (grantpt(fd) == -1) fatal(\"could not grant slave pty\"); sigunblock(sigmask(SIGCLD)); 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
14976
14977 ;;
14978 esac
14979
14980
14981 case $opsys in
14982 sol2* | unixware )
14983 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
14984
14985 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
14986
14987
14988 $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
14989
14990 ;;
14991 esac
14992
14993
14994
14995
14996 case $opsys in
14997 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
14998 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
14999
15000 ;;
15001
15002 gnu-linux | gnu-kfreebsd )
15003
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15005 $as_echo_n "checking for signals via characters... " >&6; }
15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15008
15009 #include <linux/version.h>
15010 #if LINUX_VERSION_CODE < 0x20400
15011 # error "Linux version too old"
15012 #endif
15013
15014 int
15015 main ()
15016 {
15017
15018 ;
15019 return 0;
15020 }
15021 _ACEOF
15022 if ac_fn_c_try_cpp "$LINENO"; then :
15023 emacs_signals_via_chars=yes
15024 else
15025 emacs_signals_via_chars=no
15026 fi
15027 rm -f conftest.err conftest.$ac_ext
15028
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15030 $as_echo "$emacs_signals_via_chars" >&6; }
15031 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15032
15033 ;;
15034 esac
15035
15036
15037
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15040 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15043
15044 #include <features.h>
15045 #ifndef __GNU_LIBRARY__
15046 # error "this is not the GNU C library"
15047 #endif
15048
15049 int
15050 main ()
15051 {
15052
15053 ;
15054 return 0;
15055 }
15056 _ACEOF
15057 if ac_fn_c_try_cpp "$LINENO"; then :
15058 emacs_glibc=yes
15059 else
15060 emacs_glibc=no
15061 fi
15062 rm -f conftest.err conftest.$ac_ext
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15064 $as_echo "$emacs_glibc" >&6; }
15065
15066 if test $emacs_glibc = yes; then
15067
15068 emacs_pending_output=unknown
15069
15070 case $opsys in
15071 gnu | gnu-linux | gnu-kfreebsd )
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15073 $as_echo_n "checking for style of pending output formalism... " >&6; }
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15076
15077 #include <stdio.h>
15078 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15079 # error "stdio definitions not found"
15080 #endif
15081
15082 int
15083 main ()
15084 {
15085
15086 ;
15087 return 0;
15088 }
15089 _ACEOF
15090 if ac_fn_c_try_cpp "$LINENO"; then :
15091 emacs_pending_output=new
15092 fi
15093 rm -f conftest.err conftest.$ac_ext
15094
15095 if test $emacs_pending_output = unknown; then
15096 case $opsys in
15097 gnu-linux | gnu-kfreebsd)
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15100
15101 #include <stdio.h>
15102 #ifndef __UCLIBC__
15103 # error "not using uclibc"
15104 #endif
15105
15106 int
15107 main ()
15108 {
15109
15110 ;
15111 return 0;
15112 }
15113 _ACEOF
15114 if ac_fn_c_try_cpp "$LINENO"; then :
15115 emacs_pending_output=uclibc
15116 else
15117 emacs_pending_output=old
15118 fi
15119 rm -f conftest.err conftest.$ac_ext
15120 ;;
15121 esac
15122 fi
15123
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15125 $as_echo "$emacs_pending_output" >&6; }
15126
15127 case $emacs_pending_output in
15128 new)
15129 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15130
15131 ;;
15132 uclibc)
15133 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15134
15135 ;;
15136 old)
15137 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15138
15139 ;;
15140 esac
15141 ;;
15142 esac
15143 if test $emacs_pending_output = unknown; then
15144 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15145
15146 fi
15147
15148 else
15149 case $opsys in
15150 cygwin | darwin | freebsd | netbsd | openbsd )
15151 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15152
15153 ;;
15154
15155 unixware)
15156 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15157
15158 ;;
15159
15160 *)
15161 if test x$ac_cv_header_stdio_ext_h = xyes && \
15162 test x$ac_cv_func___fpending = xyes; then
15163 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15164
15165
15166 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15167
15168 else
15169 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15170
15171 fi
15172 ;;
15173 esac
15174 fi
15175
15176
15177
15178
15179 case $opsys in
15180 gnu)
15181 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15182
15183 ;;
15184
15185 hpux*)
15186 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15187
15188 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15189
15190 ;;
15191 irix6-5)
15192 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15193
15194 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15195
15196 ;;
15197 esac
15198
15199
15200
15201
15202
15203 case $opsys in
15204 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15205 ;;
15206
15207 gnu | freebsd | netbsd | openbsd )
15208
15209 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15210
15211 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15212
15213 ;;
15214
15215 gnu-linux | gnu-kfreebsd )
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15218
15219 #ifndef __i386__
15220 # error "not i386"
15221 #endif
15222
15223 int
15224 main ()
15225 {
15226
15227 ;
15228 return 0;
15229 }
15230 _ACEOF
15231 if ac_fn_c_try_cpp "$LINENO"; then :
15232 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15233
15234 fi
15235 rm -f conftest.err conftest.$ac_ext
15236
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239
15240 #ifndef __ia64__
15241 # error "not ia64"
15242 #endif
15243
15244 int
15245 main ()
15246 {
15247
15248 ;
15249 return 0;
15250 }
15251 _ACEOF
15252 if ac_fn_c_try_cpp "$LINENO"; then :
15253
15254 $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
15255
15256 fi
15257 rm -f conftest.err conftest.$ac_ext
15258 ;;
15259
15260 hpux*)
15261
15262 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15263
15264 ;;
15265
15266 irix6-5)
15267 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15268
15269 ;;
15270 esac
15271
15272
15273
15274
15275
15276
15277
15278 case $opsys in
15279 aix4-2 | hpux* | unixware)
15280 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15281
15282 ;;
15283
15284 gnu-linux | gnu-kfreebsd )
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15287
15288 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15289 || defined __alpha__ || defined __mips__ || defined __s390__ \
15290 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15291 || defined __ia64__ || defined __sh__
15292 /* ok */
15293 #else
15294 # error "setjmp not known to work on this arch"
15295 #endif
15296
15297 int
15298 main ()
15299 {
15300
15301 ;
15302 return 0;
15303 }
15304 _ACEOF
15305 if ac_fn_c_try_cpp "$LINENO"; then :
15306 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15307
15308 else
15309 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15310
15311 fi
15312 rm -f conftest.err conftest.$ac_ext
15313 ;;
15314 esac
15315
15316
15317 if test x$GCC = xyes; then
15318 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15319
15320 else
15321 case $opsys in
15322 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15323 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15324
15325 ;;
15326 esac
15327 fi
15328
15329 case $opsys in
15330 sol2* | unixware )
15331
15332 $as_echo "#define _setjmp setjmp" >>confdefs.h
15333
15334
15335 $as_echo "#define _longjmp longjmp" >>confdefs.h
15336
15337
15338 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15339
15340 ;;
15341 esac
15342
15343
15344 case $opsys in
15345 hpux* | sol2* )
15346
15347 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15348
15349 ;;
15350
15351 netbsd | openbsd )
15352
15353 $as_echo "#define SIGNAL_H_AHB 1" >>confdefs.h
15354
15355 ;;
15356 esac
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367 case $opsys in
15368 aix4-2)
15369 $as_echo "#define USG /**/" >>confdefs.h
15370
15371 $as_echo "#define USG5 /**/" >>confdefs.h
15372
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375
15376 #ifndef _AIX
15377 # error "_AIX not defined"
15378 #endif
15379
15380 int
15381 main ()
15382 {
15383
15384 ;
15385 return 0;
15386 }
15387 _ACEOF
15388 if ac_fn_c_try_cpp "$LINENO"; then :
15389
15390 else
15391
15392 $as_echo "#define _AIX /**/" >>confdefs.h
15393
15394 fi
15395 rm -f conftest.err conftest.$ac_ext
15396 ;;
15397
15398 cygwin)
15399
15400 $as_echo "#define CYGWIN 1" >>confdefs.h
15401
15402 ;;
15403
15404 darwin)
15405 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15406
15407 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15408
15409
15410 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15411
15412 ;;
15413
15414 freebsd)
15415 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15416
15417
15418 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15419
15420 ;;
15421
15422 gnu | netbsd | openbsd )
15423 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15424
15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h. */
15427
15428 #ifndef BSD_SYSTEM
15429 # error "BSD_SYSTEM not defined"
15430 #endif
15431
15432 int
15433 main ()
15434 {
15435
15436 ;
15437 return 0;
15438 }
15439 _ACEOF
15440 if ac_fn_c_try_cpp "$LINENO"; then :
15441
15442 else
15443 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15444
15445 fi
15446 rm -f conftest.err conftest.$ac_ext
15447 ;;
15448
15449 gnu-linux | gnu-kfreebsd )
15450 $as_echo "#define USG /**/" >>confdefs.h
15451
15452
15453 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15454
15455 ;;
15456
15457 hpux*)
15458 $as_echo "#define USG /**/" >>confdefs.h
15459
15460 $as_echo "#define USG5 /**/" >>confdefs.h
15461
15462
15463 $as_echo "#define HPUX /**/" >>confdefs.h
15464
15465 ;;
15466
15467 irix6-5)
15468 $as_echo "#define USG /**/" >>confdefs.h
15469
15470 $as_echo "#define USG5 /**/" >>confdefs.h
15471
15472 $as_echo "#define USG5_4 /**/" >>confdefs.h
15473
15474
15475 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15476
15477 ;;
15478
15479 sol2*)
15480 $as_echo "#define USG /**/" >>confdefs.h
15481
15482 $as_echo "#define USG5 /**/" >>confdefs.h
15483
15484 $as_echo "#define USG5_4 /**/" >>confdefs.h
15485
15486
15487 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15488
15489 ;;
15490
15491 unixware)
15492 $as_echo "#define USG /**/" >>confdefs.h
15493
15494 $as_echo "#define USG5 /**/" >>confdefs.h
15495
15496 $as_echo "#define USG5_4 /**/" >>confdefs.h
15497
15498 ;;
15499 esac
15500
15501
15502 case $opsys in
15503 cygwin)
15504
15505 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15506
15507 ;;
15508
15509 hpux11)
15510
15511 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
15512
15513
15514 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15515
15516 ;;
15517
15518 irix6-5)
15519
15520 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15521
15522
15523 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15524
15525 ;;
15526
15527 sol2-10)
15528
15529 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15530
15531 ;;
15532 esac
15533
15534 # Set up the CFLAGS for real compilation, so we can substitute it.
15535 CFLAGS="$REAL_CFLAGS"
15536 CPPFLAGS="$REAL_CPPFLAGS"
15537
15538 ## Hack to detect a buggy GCC version.
15539 if test "x$GCC" = xyes \
15540 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15541 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15542 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15543 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15544 fi
15545
15546 version=$PACKAGE_VERSION
15547
15548 ### Specify what sort of things we'll be editing into Makefile and config.h.
15549 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15550
15551
15552 ## Unused?
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15576 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15577 ## end of LIBX_BASE, but nothing ever set it.
15578
15579
15580
15581
15582 ## Used in lwlib/Makefile.in.
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592 cat >>confdefs.h <<_ACEOF
15593 #define EMACS_CONFIGURATION "${canonical}"
15594 _ACEOF
15595
15596
15597 cat >>confdefs.h <<_ACEOF
15598 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15599 _ACEOF
15600
15601
15602
15603 XMENU_OBJ=
15604 XOBJ=
15605 FONT_OBJ=
15606 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15607
15608 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15609
15610 XMENU_OBJ=xmenu.o
15611 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15612 FONT_OBJ=xfont.o
15613 if test "$HAVE_XFT" = "yes"; then
15614 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15615 elif test "$HAVE_FREETYPE" = "yes"; then
15616 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15617 fi
15618
15619 fi
15620
15621
15622
15623
15624 WIDGET_OBJ=
15625 MOTIF_LIBW=
15626 if test "${USE_X_TOOLKIT}" != "none" ; then
15627 WIDGET_OBJ=widget.o
15628
15629 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15630
15631 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15632
15633 $as_echo "#define USE_LUCID 1" >>confdefs.h
15634
15635 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15636
15637 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15638
15639 MOTIF_LIBW=-lXm
15640 case "$opsys" in
15641 gnu-linux)
15642 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15643 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15644 ;;
15645
15646 unixware)
15647 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15648 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15649 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15650 ;;
15651
15652 aix4-2)
15653 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15654 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15655 ;;
15656 esac
15657 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15658 fi
15659 fi
15660
15661
15662 TOOLKIT_LIBW=
15663 case "$USE_X_TOOLKIT" in
15664 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15665 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15666 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15667 esac
15668
15669
15670 if test "$USE_X_TOOLKIT" = "none"; then
15671 LIBXT_OTHER="\$(LIBXSM)"
15672 OLDXMENU_TARGET="really-oldXMenu"
15673 else
15674 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15675 OLDXMENU_TARGET="really-lwlib"
15676 fi
15677
15678
15679 ## The X Menu stuff is present in the X10 distribution, but missing
15680 ## from X11. If we have X10, just use the installed library;
15681 ## otherwise, use our own copy.
15682 if test "${HAVE_X11}" = "yes" ; then
15683
15684 $as_echo "#define HAVE_X11 1" >>confdefs.h
15685
15686
15687 if test "$USE_X_TOOLKIT" = "none"; then
15688 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15689 else
15690 OLDXMENU="\${lwlibdir}/liblw.a"
15691 fi
15692 LIBXMENU="\$(OLDXMENU)"
15693 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15694 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15695 else
15696 ## For a syntactically valid Makefile; not actually used for anything.
15697 ## See comments in src/Makefile.in.
15698 OLDXMENU=nothing
15699 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15700 if test "${HAVE_X_WINDOWS}" = "yes"; then
15701 LIBXMENU="-lXMenu"
15702 else
15703 LIBXMENU=
15704 fi
15705 LIBX_OTHER=
15706 OLDXMENU_DEPS=
15707 fi
15708
15709 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15710 OLDXMENU_TARGET=
15711 OLDXMENU=nothing
15712 LIBXMENU=
15713 OLDXMENU_DEPS=
15714 fi
15715
15716
15717
15718
15719
15720
15721
15722 if test "${HAVE_MENUS}" = "yes" ; then
15723
15724 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15725
15726 fi
15727
15728 if test "${GNU_MALLOC}" = "yes" ; then
15729
15730 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15731
15732 fi
15733
15734 RALLOC_OBJ=
15735 if test "${REL_ALLOC}" = "yes" ; then
15736
15737 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15738
15739
15740 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15741 fi
15742
15743
15744 if test "$opsys" = "cygwin"; then
15745 CYGWIN_OBJ="sheap.o"
15746 ## Cygwin differs because of its unexec().
15747 PRE_ALLOC_OBJ=
15748 POST_ALLOC_OBJ=lastfile.o
15749 else
15750 CYGWIN_OBJ=
15751 PRE_ALLOC_OBJ=lastfile.o
15752 POST_ALLOC_OBJ=
15753 fi
15754
15755
15756
15757
15758 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
15759 # it temporarily reverts them to their pre-pkg-config values,
15760 # because gnulib needs to work with both src (which uses the
15761 # pkg-config stuff) and lib-src (which does not). For example, gnulib
15762 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
15763 # and it therefore needs to run in an environment where LIBS does not
15764 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
15765 # for some package unrelated to lib-src.
15766 SAVE_CFLAGS=$CFLAGS
15767 SAVE_LIBS=$LIBS
15768 CFLAGS=$pre_PKG_CONFIG_CFLAGS
15769 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781 LIBC_FATAL_STDERR_=1
15782 export LIBC_FATAL_STDERR_
15783
15784 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15785 # for constant arguments. Useless!
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15787 $as_echo_n "checking for working alloca.h... " >&6; }
15788 if test "${ac_cv_working_alloca_h+set}" = set; then :
15789 $as_echo_n "(cached) " >&6
15790 else
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793 #include <alloca.h>
15794 int
15795 main ()
15796 {
15797 char *p = (char *) alloca (2 * sizeof (int));
15798 if (p) return 0;
15799 ;
15800 return 0;
15801 }
15802 _ACEOF
15803 if ac_fn_c_try_link "$LINENO"; then :
15804 ac_cv_working_alloca_h=yes
15805 else
15806 ac_cv_working_alloca_h=no
15807 fi
15808 rm -f core conftest.err conftest.$ac_objext \
15809 conftest$ac_exeext conftest.$ac_ext
15810 fi
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15812 $as_echo "$ac_cv_working_alloca_h" >&6; }
15813 if test $ac_cv_working_alloca_h = yes; then
15814
15815 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15816
15817 fi
15818
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15820 $as_echo_n "checking for alloca... " >&6; }
15821 if test "${ac_cv_func_alloca_works+set}" = set; then :
15822 $as_echo_n "(cached) " >&6
15823 else
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 #ifdef __GNUC__
15827 # define alloca __builtin_alloca
15828 #else
15829 # ifdef _MSC_VER
15830 # include <malloc.h>
15831 # define alloca _alloca
15832 # else
15833 # ifdef HAVE_ALLOCA_H
15834 # include <alloca.h>
15835 # else
15836 # ifdef _AIX
15837 #pragma alloca
15838 # else
15839 # ifndef alloca /* predefined by HP cc +Olibcalls */
15840 char *alloca ();
15841 # endif
15842 # endif
15843 # endif
15844 # endif
15845 #endif
15846
15847 int
15848 main ()
15849 {
15850 char *p = (char *) alloca (1);
15851 if (p) return 0;
15852 ;
15853 return 0;
15854 }
15855 _ACEOF
15856 if ac_fn_c_try_link "$LINENO"; then :
15857 ac_cv_func_alloca_works=yes
15858 else
15859 ac_cv_func_alloca_works=no
15860 fi
15861 rm -f core conftest.err conftest.$ac_objext \
15862 conftest$ac_exeext conftest.$ac_ext
15863 fi
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15865 $as_echo "$ac_cv_func_alloca_works" >&6; }
15866
15867 if test $ac_cv_func_alloca_works = yes; then
15868
15869 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15870
15871 else
15872 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15873 # that cause trouble. Some versions do not even contain alloca or
15874 # contain a buggy version. If you still want to use their alloca,
15875 # use ar to extract alloca.o from them instead of compiling alloca.c.
15876
15877
15878
15879
15880
15881 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15882
15883 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15884
15885
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15887 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15888 if test "${ac_cv_os_cray+set}" = set; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893 #if defined CRAY && ! defined CRAY2
15894 webecray
15895 #else
15896 wenotbecray
15897 #endif
15898
15899 _ACEOF
15900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15901 $EGREP "webecray" >/dev/null 2>&1; then :
15902 ac_cv_os_cray=yes
15903 else
15904 ac_cv_os_cray=no
15905 fi
15906 rm -f conftest*
15907
15908 fi
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15910 $as_echo "$ac_cv_os_cray" >&6; }
15911 if test $ac_cv_os_cray = yes; then
15912 for ac_func in _getb67 GETB67 getb67; do
15913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15915 eval as_val=\$$as_ac_var
15916 if test "x$as_val" = x""yes; then :
15917
15918 cat >>confdefs.h <<_ACEOF
15919 #define CRAY_STACKSEG_END $ac_func
15920 _ACEOF
15921
15922 break
15923 fi
15924
15925 done
15926 fi
15927
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15929 $as_echo_n "checking stack direction for C alloca... " >&6; }
15930 if test "${ac_cv_c_stack_direction+set}" = set; then :
15931 $as_echo_n "(cached) " >&6
15932 else
15933 if test "$cross_compiling" = yes; then :
15934 ac_cv_c_stack_direction=0
15935 else
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15938 $ac_includes_default
15939 int
15940 find_stack_direction (int *addr, int depth)
15941 {
15942 int dir, dummy = 0;
15943 if (! addr)
15944 addr = &dummy;
15945 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15946 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15947 return dir + dummy;
15948 }
15949
15950 int
15951 main (int argc, char **argv)
15952 {
15953 return find_stack_direction (0, argc + !argv + 20) < 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_run "$LINENO"; then :
15957 ac_cv_c_stack_direction=1
15958 else
15959 ac_cv_c_stack_direction=-1
15960 fi
15961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15962 conftest.$ac_objext conftest.beam conftest.$ac_ext
15963 fi
15964
15965 fi
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15967 $as_echo "$ac_cv_c_stack_direction" >&6; }
15968 cat >>confdefs.h <<_ACEOF
15969 #define STACK_DIRECTION $ac_cv_c_stack_direction
15970 _ACEOF
15971
15972
15973 fi
15974
15975
15976
15977
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15979 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15980 if test "${ac_cv_c_bigendian+set}" = set; then :
15981 $as_echo_n "(cached) " >&6
15982 else
15983 ac_cv_c_bigendian=unknown
15984 # See if we're dealing with a universal compiler.
15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h. */
15987 #ifndef __APPLE_CC__
15988 not a universal capable compiler
15989 #endif
15990 typedef int dummy;
15991
15992 _ACEOF
15993 if ac_fn_c_try_compile "$LINENO"; then :
15994
15995 # Check for potential -arch flags. It is not universal unless
15996 # there are at least two -arch flags with different values.
15997 ac_arch=
15998 ac_prev=
15999 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16000 if test -n "$ac_prev"; then
16001 case $ac_word in
16002 i?86 | x86_64 | ppc | ppc64)
16003 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16004 ac_arch=$ac_word
16005 else
16006 ac_cv_c_bigendian=universal
16007 break
16008 fi
16009 ;;
16010 esac
16011 ac_prev=
16012 elif test "x$ac_word" = "x-arch"; then
16013 ac_prev=arch
16014 fi
16015 done
16016 fi
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 if test $ac_cv_c_bigendian = unknown; then
16019 # See if sys/param.h defines the BYTE_ORDER macro.
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022 #include <sys/types.h>
16023 #include <sys/param.h>
16024
16025 int
16026 main ()
16027 {
16028 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16029 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16030 && LITTLE_ENDIAN)
16031 bogus endian macros
16032 #endif
16033
16034 ;
16035 return 0;
16036 }
16037 _ACEOF
16038 if ac_fn_c_try_compile "$LINENO"; then :
16039 # It does; now see whether it defined to BIG_ENDIAN or not.
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 #include <sys/types.h>
16043 #include <sys/param.h>
16044
16045 int
16046 main ()
16047 {
16048 #if BYTE_ORDER != BIG_ENDIAN
16049 not big endian
16050 #endif
16051
16052 ;
16053 return 0;
16054 }
16055 _ACEOF
16056 if ac_fn_c_try_compile "$LINENO"; then :
16057 ac_cv_c_bigendian=yes
16058 else
16059 ac_cv_c_bigendian=no
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 fi
16063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16064 fi
16065 if test $ac_cv_c_bigendian = unknown; then
16066 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16069 #include <limits.h>
16070
16071 int
16072 main ()
16073 {
16074 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16075 bogus endian macros
16076 #endif
16077
16078 ;
16079 return 0;
16080 }
16081 _ACEOF
16082 if ac_fn_c_try_compile "$LINENO"; then :
16083 # It does; now see whether it defined to _BIG_ENDIAN or not.
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 #include <limits.h>
16087
16088 int
16089 main ()
16090 {
16091 #ifndef _BIG_ENDIAN
16092 not big endian
16093 #endif
16094
16095 ;
16096 return 0;
16097 }
16098 _ACEOF
16099 if ac_fn_c_try_compile "$LINENO"; then :
16100 ac_cv_c_bigendian=yes
16101 else
16102 ac_cv_c_bigendian=no
16103 fi
16104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 fi
16108 if test $ac_cv_c_bigendian = unknown; then
16109 # Compile a test program.
16110 if test "$cross_compiling" = yes; then :
16111 # Try to guess by grepping values from an object file.
16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h. */
16114 short int ascii_mm[] =
16115 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16116 short int ascii_ii[] =
16117 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16118 int use_ascii (int i) {
16119 return ascii_mm[i] + ascii_ii[i];
16120 }
16121 short int ebcdic_ii[] =
16122 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16123 short int ebcdic_mm[] =
16124 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16125 int use_ebcdic (int i) {
16126 return ebcdic_mm[i] + ebcdic_ii[i];
16127 }
16128 extern int foo;
16129
16130 int
16131 main ()
16132 {
16133 return use_ascii (foo) == use_ebcdic (foo);
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 if ac_fn_c_try_compile "$LINENO"; then :
16139 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16140 ac_cv_c_bigendian=yes
16141 fi
16142 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16143 if test "$ac_cv_c_bigendian" = unknown; then
16144 ac_cv_c_bigendian=no
16145 else
16146 # finding both strings is unlikely to happen, but who knows?
16147 ac_cv_c_bigendian=unknown
16148 fi
16149 fi
16150 fi
16151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16152 else
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 $ac_includes_default
16156 int
16157 main ()
16158 {
16159
16160 /* Are we little or big endian? From Harbison&Steele. */
16161 union
16162 {
16163 long int l;
16164 char c[sizeof (long int)];
16165 } u;
16166 u.l = 1;
16167 return u.c[sizeof (long int) - 1] == 1;
16168
16169 ;
16170 return 0;
16171 }
16172 _ACEOF
16173 if ac_fn_c_try_run "$LINENO"; then :
16174 ac_cv_c_bigendian=no
16175 else
16176 ac_cv_c_bigendian=yes
16177 fi
16178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16179 conftest.$ac_objext conftest.beam conftest.$ac_ext
16180 fi
16181
16182 fi
16183 fi
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16185 $as_echo "$ac_cv_c_bigendian" >&6; }
16186 case $ac_cv_c_bigendian in #(
16187 yes)
16188 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16189 ;; #(
16190 no)
16191 ;; #(
16192 universal)
16193
16194 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16195
16196 ;; #(
16197 *)
16198 as_fn_error "unknown endianness
16199 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16200 esac
16201
16202
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16204 $as_echo_n "checking for inline... " >&6; }
16205 if test "${ac_cv_c_inline+set}" = set; then :
16206 $as_echo_n "(cached) " >&6
16207 else
16208 ac_cv_c_inline=no
16209 for ac_kw in inline __inline__ __inline; do
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 #ifndef __cplusplus
16213 typedef int foo_t;
16214 static $ac_kw foo_t static_foo () {return 0; }
16215 $ac_kw foo_t foo () {return 0; }
16216 #endif
16217
16218 _ACEOF
16219 if ac_fn_c_try_compile "$LINENO"; then :
16220 ac_cv_c_inline=$ac_kw
16221 fi
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223 test "$ac_cv_c_inline" != no && break
16224 done
16225
16226 fi
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16228 $as_echo "$ac_cv_c_inline" >&6; }
16229
16230 case $ac_cv_c_inline in
16231 inline | yes) ;;
16232 *)
16233 case $ac_cv_c_inline in
16234 no) ac_val=;;
16235 *) ac_val=$ac_cv_c_inline;;
16236 esac
16237 cat >>confdefs.h <<_ACEOF
16238 #ifndef __cplusplus
16239 #define inline $ac_val
16240 #endif
16241 _ACEOF
16242 ;;
16243 esac
16244
16245
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16247 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16248 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16249 $as_echo_n "(cached) " >&6
16250 else
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 /* On HP-UX before 11.23, strtold returns a struct instead of
16254 long double. Reject implementations like that, by requiring
16255 compatibility with the C99 prototype. */
16256 #include <stdlib.h>
16257 static long double (*p) (char const *, char **) = strtold;
16258 static long double
16259 test (char const *nptr, char **endptr)
16260 {
16261 long double r;
16262 r = strtold (nptr, endptr);
16263 return r;
16264 }
16265 int
16266 main ()
16267 {
16268 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16269 ;
16270 return 0;
16271 }
16272 _ACEOF
16273 if ac_fn_c_try_link "$LINENO"; then :
16274 gl_cv_func_c99_strtold=yes
16275 else
16276 gl_cv_func_c99_strtold=no
16277 fi
16278 rm -f core conftest.err conftest.$ac_objext \
16279 conftest$ac_exeext conftest.$ac_ext
16280 fi
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16282 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16283 if test $gl_cv_func_c99_strtold = yes; then
16284
16285 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16286
16287 fi
16288
16289
16290 GNULIB_CHDIR=0;
16291 GNULIB_CHOWN=0;
16292 GNULIB_CLOSE=0;
16293 GNULIB_DUP=0;
16294 GNULIB_DUP2=0;
16295 GNULIB_DUP3=0;
16296 GNULIB_ENVIRON=0;
16297 GNULIB_EUIDACCESS=0;
16298 GNULIB_FACCESSAT=0;
16299 GNULIB_FCHDIR=0;
16300 GNULIB_FCHOWNAT=0;
16301 GNULIB_FDATASYNC=0;
16302 GNULIB_FSYNC=0;
16303 GNULIB_FTRUNCATE=0;
16304 GNULIB_GETCWD=0;
16305 GNULIB_GETDOMAINNAME=0;
16306 GNULIB_GETDTABLESIZE=0;
16307 GNULIB_GETGROUPS=0;
16308 GNULIB_GETHOSTNAME=0;
16309 GNULIB_GETLOGIN=0;
16310 GNULIB_GETLOGIN_R=0;
16311 GNULIB_GETPAGESIZE=0;
16312 GNULIB_GETUSERSHELL=0;
16313 GNULIB_GROUP_MEMBER=0;
16314 GNULIB_ISATTY=0;
16315 GNULIB_LCHOWN=0;
16316 GNULIB_LINK=0;
16317 GNULIB_LINKAT=0;
16318 GNULIB_LSEEK=0;
16319 GNULIB_PIPE=0;
16320 GNULIB_PIPE2=0;
16321 GNULIB_PREAD=0;
16322 GNULIB_PWRITE=0;
16323 GNULIB_READ=0;
16324 GNULIB_READLINK=0;
16325 GNULIB_READLINKAT=0;
16326 GNULIB_RMDIR=0;
16327 GNULIB_SETHOSTNAME=0;
16328 GNULIB_SLEEP=0;
16329 GNULIB_SYMLINK=0;
16330 GNULIB_SYMLINKAT=0;
16331 GNULIB_TTYNAME_R=0;
16332 GNULIB_UNISTD_H_NONBLOCKING=0;
16333 GNULIB_UNISTD_H_SIGPIPE=0;
16334 GNULIB_UNLINK=0;
16335 GNULIB_UNLINKAT=0;
16336 GNULIB_USLEEP=0;
16337 GNULIB_WRITE=0;
16338 HAVE_CHOWN=1;
16339 HAVE_DUP2=1;
16340 HAVE_DUP3=1;
16341 HAVE_EUIDACCESS=1;
16342 HAVE_FACCESSAT=1;
16343 HAVE_FCHDIR=1;
16344 HAVE_FCHOWNAT=1;
16345 HAVE_FDATASYNC=1;
16346 HAVE_FSYNC=1;
16347 HAVE_FTRUNCATE=1;
16348 HAVE_GETDTABLESIZE=1;
16349 HAVE_GETGROUPS=1;
16350 HAVE_GETHOSTNAME=1;
16351 HAVE_GETLOGIN=1;
16352 HAVE_GETPAGESIZE=1;
16353 HAVE_GROUP_MEMBER=1;
16354 HAVE_LCHOWN=1;
16355 HAVE_LINK=1;
16356 HAVE_LINKAT=1;
16357 HAVE_PIPE=1;
16358 HAVE_PIPE2=1;
16359 HAVE_PREAD=1;
16360 HAVE_PWRITE=1;
16361 HAVE_READLINK=1;
16362 HAVE_READLINKAT=1;
16363 HAVE_SETHOSTNAME=1;
16364 HAVE_SLEEP=1;
16365 HAVE_SYMLINK=1;
16366 HAVE_SYMLINKAT=1;
16367 HAVE_UNLINKAT=1;
16368 HAVE_USLEEP=1;
16369 HAVE_DECL_ENVIRON=1;
16370 HAVE_DECL_FCHDIR=1;
16371 HAVE_DECL_FDATASYNC=1;
16372 HAVE_DECL_GETDOMAINNAME=1;
16373 HAVE_DECL_GETLOGIN_R=1;
16374 HAVE_DECL_GETPAGESIZE=1;
16375 HAVE_DECL_GETUSERSHELL=1;
16376 HAVE_DECL_SETHOSTNAME=1;
16377 HAVE_DECL_TTYNAME_R=1;
16378 HAVE_OS_H=0;
16379 HAVE_SYS_PARAM_H=0;
16380 REPLACE_CHOWN=0;
16381 REPLACE_CLOSE=0;
16382 REPLACE_DUP=0;
16383 REPLACE_DUP2=0;
16384 REPLACE_FCHOWNAT=0;
16385 REPLACE_FTRUNCATE=0;
16386 REPLACE_GETCWD=0;
16387 REPLACE_GETDOMAINNAME=0;
16388 REPLACE_GETLOGIN_R=0;
16389 REPLACE_GETGROUPS=0;
16390 REPLACE_GETPAGESIZE=0;
16391 REPLACE_ISATTY=0;
16392 REPLACE_LCHOWN=0;
16393 REPLACE_LINK=0;
16394 REPLACE_LINKAT=0;
16395 REPLACE_LSEEK=0;
16396 REPLACE_PREAD=0;
16397 REPLACE_PWRITE=0;
16398 REPLACE_READ=0;
16399 REPLACE_READLINK=0;
16400 REPLACE_RMDIR=0;
16401 REPLACE_SLEEP=0;
16402 REPLACE_SYMLINK=0;
16403 REPLACE_TTYNAME_R=0;
16404 REPLACE_UNLINK=0;
16405 REPLACE_UNLINKAT=0;
16406 REPLACE_USLEEP=0;
16407 REPLACE_WRITE=0;
16408 UNISTD_H_HAVE_WINSOCK2_H=0;
16409 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16420 $as_echo_n "checking if environ is properly declared... " >&6; }
16421 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16422 $as_echo_n "(cached) " >&6
16423 else
16424
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16427 #if HAVE_UNISTD_H
16428 #include <unistd.h>
16429 #endif
16430 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16431 #include <stdlib.h>
16432
16433 extern struct { int foo; } environ;
16434 int
16435 main ()
16436 {
16437 environ.foo = 1;
16438 ;
16439 return 0;
16440 }
16441 _ACEOF
16442 if ac_fn_c_try_compile "$LINENO"; then :
16443 gt_cv_var_environ_declaration=no
16444 else
16445 gt_cv_var_environ_declaration=yes
16446 fi
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 fi
16449
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16451 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16452 if test $gt_cv_var_environ_declaration = yes; then
16453
16454 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16455
16456 fi
16457
16458
16459 if test $gt_cv_var_environ_declaration != yes; then
16460 HAVE_DECL_ENVIRON=0
16461 fi
16462
16463
16464
16465
16466
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16468 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16469 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474
16475 #include <sys/types.h>
16476 #include <sys/stat.h>
16477 int
16478 main ()
16479 {
16480 struct stat s; s.st_dm_mode;
16481 ;
16482 return 0;
16483 }
16484 _ACEOF
16485 if ac_fn_c_try_compile "$LINENO"; then :
16486 ac_cv_struct_st_dm_mode=yes
16487 else
16488 ac_cv_struct_st_dm_mode=no
16489 fi
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491 fi
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16493 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16494
16495 if test $ac_cv_struct_st_dm_mode = yes; then
16496
16497 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16498
16499 fi
16500
16501
16502 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16503 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16504 ac_have_decl=1
16505 else
16506 ac_have_decl=0
16507 fi
16508
16509 cat >>confdefs.h <<_ACEOF
16510 #define HAVE_DECL_STRMODE $ac_have_decl
16511 _ACEOF
16512
16513
16514 GNULIB__EXIT=0;
16515 GNULIB_ATOLL=0;
16516 GNULIB_CALLOC_POSIX=0;
16517 GNULIB_CANONICALIZE_FILE_NAME=0;
16518 GNULIB_GETLOADAVG=0;
16519 GNULIB_GETSUBOPT=0;
16520 GNULIB_GRANTPT=0;
16521 GNULIB_MALLOC_POSIX=0;
16522 GNULIB_MBTOWC=0;
16523 GNULIB_MKDTEMP=0;
16524 GNULIB_MKOSTEMP=0;
16525 GNULIB_MKOSTEMPS=0;
16526 GNULIB_MKSTEMP=0;
16527 GNULIB_MKSTEMPS=0;
16528 GNULIB_POSIX_OPENPT=0;
16529 GNULIB_PTSNAME=0;
16530 GNULIB_PTSNAME_R=0;
16531 GNULIB_PUTENV=0;
16532 GNULIB_RANDOM=0;
16533 GNULIB_RANDOM_R=0;
16534 GNULIB_REALLOC_POSIX=0;
16535 GNULIB_REALPATH=0;
16536 GNULIB_RPMATCH=0;
16537 GNULIB_SETENV=0;
16538 GNULIB_STRTOD=0;
16539 GNULIB_STRTOLL=0;
16540 GNULIB_STRTOULL=0;
16541 GNULIB_SYSTEM_POSIX=0;
16542 GNULIB_UNLOCKPT=0;
16543 GNULIB_UNSETENV=0;
16544 GNULIB_WCTOMB=0;
16545 HAVE__EXIT=1;
16546 HAVE_ATOLL=1;
16547 HAVE_CANONICALIZE_FILE_NAME=1;
16548 HAVE_DECL_GETLOADAVG=1;
16549 HAVE_GETSUBOPT=1;
16550 HAVE_GRANTPT=1;
16551 HAVE_MKDTEMP=1;
16552 HAVE_MKOSTEMP=1;
16553 HAVE_MKOSTEMPS=1;
16554 HAVE_MKSTEMP=1;
16555 HAVE_MKSTEMPS=1;
16556 HAVE_POSIX_OPENPT=1;
16557 HAVE_PTSNAME=1;
16558 HAVE_PTSNAME_R=1;
16559 HAVE_RANDOM=1;
16560 HAVE_RANDOM_H=1;
16561 HAVE_RANDOM_R=1;
16562 HAVE_REALPATH=1;
16563 HAVE_RPMATCH=1;
16564 HAVE_SETENV=1;
16565 HAVE_DECL_SETENV=1;
16566 HAVE_STRTOD=1;
16567 HAVE_STRTOLL=1;
16568 HAVE_STRTOULL=1;
16569 HAVE_STRUCT_RANDOM_DATA=1;
16570 HAVE_SYS_LOADAVG_H=0;
16571 HAVE_UNLOCKPT=1;
16572 HAVE_DECL_UNSETENV=1;
16573 REPLACE_CALLOC=0;
16574 REPLACE_CANONICALIZE_FILE_NAME=0;
16575 REPLACE_MALLOC=0;
16576 REPLACE_MBTOWC=0;
16577 REPLACE_MKSTEMP=0;
16578 REPLACE_PTSNAME_R=0;
16579 REPLACE_PUTENV=0;
16580 REPLACE_RANDOM_R=0;
16581 REPLACE_REALLOC=0;
16582 REPLACE_REALPATH=0;
16583 REPLACE_SETENV=0;
16584 REPLACE_STRTOD=0;
16585 REPLACE_UNSETENV=0;
16586 REPLACE_WCTOMB=0;
16587
16588
16589
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16591 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16592 if test "${gl_cv_have_include_next+set}" = set; then :
16593 $as_echo_n "(cached) " >&6
16594 else
16595 rm -rf conftestd1a conftestd1b conftestd2
16596 mkdir conftestd1a conftestd1b conftestd2
16597 cat <<EOF > conftestd1a/conftest.h
16598 #define DEFINED_IN_CONFTESTD1
16599 #include_next <conftest.h>
16600 #ifdef DEFINED_IN_CONFTESTD2
16601 int foo;
16602 #else
16603 #error "include_next doesn't work"
16604 #endif
16605 EOF
16606 cat <<EOF > conftestd1b/conftest.h
16607 #define DEFINED_IN_CONFTESTD1
16608 #include <stdio.h>
16609 #include_next <conftest.h>
16610 #ifdef DEFINED_IN_CONFTESTD2
16611 int foo;
16612 #else
16613 #error "include_next doesn't work"
16614 #endif
16615 EOF
16616 cat <<EOF > conftestd2/conftest.h
16617 #ifndef DEFINED_IN_CONFTESTD1
16618 #error "include_next test doesn't work"
16619 #endif
16620 #define DEFINED_IN_CONFTESTD2
16621 EOF
16622 gl_save_CPPFLAGS="$CPPFLAGS"
16623 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h. */
16626 #include <conftest.h>
16627 _ACEOF
16628 if ac_fn_c_try_compile "$LINENO"; then :
16629 gl_cv_have_include_next=yes
16630 else
16631 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 #include <conftest.h>
16635 _ACEOF
16636 if ac_fn_c_try_compile "$LINENO"; then :
16637 gl_cv_have_include_next=buggy
16638 else
16639 gl_cv_have_include_next=no
16640 fi
16641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642
16643 fi
16644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16645 CPPFLAGS="$gl_save_CPPFLAGS"
16646 rm -rf conftestd1a conftestd1b conftestd2
16647
16648 fi
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16650 $as_echo "$gl_cv_have_include_next" >&6; }
16651 PRAGMA_SYSTEM_HEADER=
16652 if test $gl_cv_have_include_next = yes; then
16653 INCLUDE_NEXT=include_next
16654 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16655 if test -n "$GCC"; then
16656 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16657 fi
16658 else
16659 if test $gl_cv_have_include_next = buggy; then
16660 INCLUDE_NEXT=include
16661 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16662 else
16663 INCLUDE_NEXT=include
16664 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16665 fi
16666 fi
16667
16668
16669
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16671 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16672 if test "${gl_cv_pragma_columns+set}" = set; then :
16673 $as_echo_n "(cached) " >&6
16674 else
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16677
16678 #ifdef __TANDEM
16679 choke me
16680 #endif
16681
16682 _ACEOF
16683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16684 $EGREP "choke me" >/dev/null 2>&1; then :
16685 gl_cv_pragma_columns=yes
16686 else
16687 gl_cv_pragma_columns=no
16688 fi
16689 rm -f conftest*
16690
16691
16692 fi
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16694 $as_echo "$gl_cv_pragma_columns" >&6; }
16695 if test $gl_cv_pragma_columns = yes; then
16696 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16697 else
16698 PRAGMA_COLUMNS=
16699 fi
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717 if test $gl_cv_have_include_next = yes; then
16718 gl_cv_next_getopt_h='<'getopt.h'>'
16719 else
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16721 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16722 if test "${gl_cv_next_getopt_h+set}" = set; then :
16723 $as_echo_n "(cached) " >&6
16724 else
16725
16726 if test $ac_cv_header_getopt_h = yes; then
16727
16728
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16731 #include <getopt.h>
16732
16733 _ACEOF
16734 case "$host_os" in
16735 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16736 *) gl_absname_cpp="$ac_cpp" ;;
16737 esac
16738
16739 case "$host_os" in
16740 mingw*)
16741 gl_dirsep_regex='[/\\]'
16742 ;;
16743 *)
16744 gl_dirsep_regex='\/'
16745 ;;
16746 esac
16747 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16748
16749 gl_header_literal_regex=`echo 'getopt.h' \
16750 | sed -e "$gl_make_literal_regex_sed"`
16751 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16752 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16753 s|^/[^/]|//&|
16754 p
16755 q
16756 }'
16757 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16758 sed -n "$gl_absolute_header_sed"`'"'
16759 else
16760 gl_cv_next_getopt_h='<'getopt.h'>'
16761 fi
16762
16763
16764 fi
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16766 $as_echo "$gl_cv_next_getopt_h" >&6; }
16767 fi
16768 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16769
16770 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16772 gl_next_as_first_directive='<'getopt.h'>'
16773 else
16774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16775 gl_next_as_first_directive=$gl_cv_next_getopt_h
16776 fi
16777 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16778
16779
16780
16781
16782 if test $ac_cv_header_getopt_h = yes; then
16783 HAVE_GETOPT_H=1
16784 else
16785 HAVE_GETOPT_H=0
16786 fi
16787
16788
16789 gl_replace_getopt=
16790
16791 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16792 for ac_header in getopt.h
16793 do :
16794 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16795 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16796 cat >>confdefs.h <<_ACEOF
16797 #define HAVE_GETOPT_H 1
16798 _ACEOF
16799
16800 else
16801 gl_replace_getopt=yes
16802 fi
16803
16804 done
16805
16806 fi
16807
16808 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16809 for ac_func in getopt_long_only
16810 do :
16811 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16812 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16813 cat >>confdefs.h <<_ACEOF
16814 #define HAVE_GETOPT_LONG_ONLY 1
16815 _ACEOF
16816
16817 else
16818 gl_replace_getopt=yes
16819 fi
16820 done
16821
16822 fi
16823
16824 if test -z "$gl_replace_getopt"; then
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16826 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16827 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16828 $as_echo_n "(cached) " >&6
16829 else
16830
16831 if test $cross_compiling = no; then
16832 if test "$cross_compiling" = yes; then :
16833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16835 as_fn_error "cannot run test program while cross compiling
16836 See \`config.log' for more details." "$LINENO" 5; }
16837 else
16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16840
16841 #include <unistd.h>
16842 #include <stdlib.h>
16843 #include <string.h>
16844
16845 int
16846 main ()
16847 {
16848 static char program[] = "program";
16849 static char a[] = "-a";
16850 static char foo[] = "foo";
16851 static char bar[] = "bar";
16852 char *argv[] = { program, a, foo, bar, NULL };
16853 int c;
16854
16855 c = getopt (4, argv, "ab");
16856 if (!(c == 'a'))
16857 return 1;
16858 c = getopt (4, argv, "ab");
16859 if (!(c == -1))
16860 return 2;
16861 if (!(optind == 2))
16862 return 3;
16863 return 0;
16864 }
16865
16866 _ACEOF
16867 if ac_fn_c_try_run "$LINENO"; then :
16868 gl_cv_func_getopt_posix=maybe
16869 else
16870 gl_cv_func_getopt_posix=no
16871 fi
16872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16873 conftest.$ac_objext conftest.beam conftest.$ac_ext
16874 fi
16875
16876 if test $gl_cv_func_getopt_posix = maybe; then
16877 if test "$cross_compiling" = yes; then :
16878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16880 as_fn_error "cannot run test program while cross compiling
16881 See \`config.log' for more details." "$LINENO" 5; }
16882 else
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16885
16886 #include <unistd.h>
16887 #include <stdlib.h>
16888 #include <string.h>
16889
16890 int
16891 main ()
16892 {
16893 static char program[] = "program";
16894 static char donald[] = "donald";
16895 static char p[] = "-p";
16896 static char billy[] = "billy";
16897 static char duck[] = "duck";
16898 static char a[] = "-a";
16899 static char bar[] = "bar";
16900 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16901 int c;
16902
16903 c = getopt (7, argv, "+abp:q:");
16904 if (!(c == -1))
16905 return 4;
16906 if (!(strcmp (argv[0], "program") == 0))
16907 return 5;
16908 if (!(strcmp (argv[1], "donald") == 0))
16909 return 6;
16910 if (!(strcmp (argv[2], "-p") == 0))
16911 return 7;
16912 if (!(strcmp (argv[3], "billy") == 0))
16913 return 8;
16914 if (!(strcmp (argv[4], "duck") == 0))
16915 return 9;
16916 if (!(strcmp (argv[5], "-a") == 0))
16917 return 10;
16918 if (!(strcmp (argv[6], "bar") == 0))
16919 return 11;
16920 if (!(optind == 1))
16921 return 12;
16922 return 0;
16923 }
16924
16925 _ACEOF
16926 if ac_fn_c_try_run "$LINENO"; then :
16927 gl_cv_func_getopt_posix=maybe
16928 else
16929 gl_cv_func_getopt_posix=no
16930 fi
16931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16932 conftest.$ac_objext conftest.beam conftest.$ac_ext
16933 fi
16934
16935 fi
16936 if test $gl_cv_func_getopt_posix = maybe; then
16937 if test "$cross_compiling" = yes; then :
16938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16940 as_fn_error "cannot run test program while cross compiling
16941 See \`config.log' for more details." "$LINENO" 5; }
16942 else
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944 /* end confdefs.h. */
16945
16946 #include <unistd.h>
16947 #include <stdlib.h>
16948 #include <string.h>
16949
16950 int
16951 main ()
16952 {
16953 static char program[] = "program";
16954 static char ab[] = "-ab";
16955 char *argv[3] = { program, ab, NULL };
16956 if (getopt (2, argv, "ab:") != 'a')
16957 return 13;
16958 if (getopt (2, argv, "ab:") != '?')
16959 return 14;
16960 if (optopt != 'b')
16961 return 15;
16962 if (optind != 2)
16963 return 16;
16964 return 0;
16965 }
16966
16967 _ACEOF
16968 if ac_fn_c_try_run "$LINENO"; then :
16969 gl_cv_func_getopt_posix=yes
16970 else
16971 gl_cv_func_getopt_posix=no
16972 fi
16973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16974 conftest.$ac_objext conftest.beam conftest.$ac_ext
16975 fi
16976
16977 fi
16978 else
16979 case "$host_os" in
16980 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
16981 *) gl_cv_func_getopt_posix="guessing yes";;
16982 esac
16983 fi
16984
16985 fi
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16987 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16988 case "$gl_cv_func_getopt_posix" in
16989 *no) gl_replace_getopt=yes ;;
16990 esac
16991 fi
16992
16993 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16995 $as_echo_n "checking for working GNU getopt function... " >&6; }
16996 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16997 $as_echo_n "(cached) " >&6
16998 else
16999 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17000 # optstring is necessary for programs like m4 that have POSIX-mandated
17001 # semantics for supporting options interspersed with files.
17002 # Also, since getopt_long is a GNU extension, we require optind=0.
17003 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17004 # so take care to revert to the correct (non-)export state.
17005 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17006 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17007 xx) gl_had_POSIXLY_CORRECT=exported ;;
17008 x) gl_had_POSIXLY_CORRECT=yes ;;
17009 *) gl_had_POSIXLY_CORRECT= ;;
17010 esac
17011 POSIXLY_CORRECT=1
17012 export POSIXLY_CORRECT
17013 if test "$cross_compiling" = yes; then :
17014 gl_cv_func_getopt_gnu="guessing no"
17015
17016 else
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17019 #include <getopt.h>
17020 #include <stddef.h>
17021 #include <string.h>
17022
17023 #include <stdlib.h>
17024 #if defined __MACH__ && defined __APPLE__
17025 /* Avoid a crash on Mac OS X. */
17026 #include <mach/mach.h>
17027 #include <mach/mach_error.h>
17028 #include <mach/thread_status.h>
17029 #include <mach/exception.h>
17030 #include <mach/task.h>
17031 #include <pthread.h>
17032 /* The exception port on which our thread listens. */
17033 static mach_port_t our_exception_port;
17034 /* The main function of the thread listening for exceptions of type
17035 EXC_BAD_ACCESS. */
17036 static void *
17037 mach_exception_thread (void *arg)
17038 {
17039 /* Buffer for a message to be received. */
17040 struct {
17041 mach_msg_header_t head;
17042 mach_msg_body_t msgh_body;
17043 char data[1024];
17044 } msg;
17045 mach_msg_return_t retval;
17046 /* Wait for a message on the exception port. */
17047 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17048 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17049 if (retval != MACH_MSG_SUCCESS)
17050 abort ();
17051 exit (1);
17052 }
17053 static void
17054 nocrash_init (void)
17055 {
17056 mach_port_t self = mach_task_self ();
17057 /* Allocate a port on which the thread shall listen for exceptions. */
17058 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17059 == KERN_SUCCESS) {
17060 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17061 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17062 MACH_MSG_TYPE_MAKE_SEND)
17063 == KERN_SUCCESS) {
17064 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17065 for us. */
17066 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17067 /* Create the thread listening on the exception port. */
17068 pthread_attr_t attr;
17069 pthread_t thread;
17070 if (pthread_attr_init (&attr) == 0
17071 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17072 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17073 pthread_attr_destroy (&attr);
17074 /* Replace the exception port info for these exceptions with our own.
17075 Note that we replace the exception port for the entire task, not only
17076 for a particular thread. This has the effect that when our exception
17077 port gets the message, the thread specific exception port has already
17078 been asked, and we don't need to bother about it.
17079 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17080 task_set_exception_ports (self, mask, our_exception_port,
17081 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17082 }
17083 }
17084 }
17085 }
17086 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17087 /* Avoid a crash on native Windows. */
17088 #define WIN32_LEAN_AND_MEAN
17089 #include <windows.h>
17090 #include <winerror.h>
17091 static LONG WINAPI
17092 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17093 {
17094 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17095 {
17096 case EXCEPTION_ACCESS_VIOLATION:
17097 case EXCEPTION_IN_PAGE_ERROR:
17098 case EXCEPTION_STACK_OVERFLOW:
17099 case EXCEPTION_GUARD_PAGE:
17100 case EXCEPTION_PRIV_INSTRUCTION:
17101 case EXCEPTION_ILLEGAL_INSTRUCTION:
17102 case EXCEPTION_DATATYPE_MISALIGNMENT:
17103 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17104 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17105 exit (1);
17106 }
17107 return EXCEPTION_CONTINUE_SEARCH;
17108 }
17109 static void
17110 nocrash_init (void)
17111 {
17112 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17113 }
17114 #else
17115 /* Avoid a crash on POSIX systems. */
17116 #include <signal.h>
17117 /* A POSIX signal handler. */
17118 static void
17119 exception_handler (int sig)
17120 {
17121 exit (1);
17122 }
17123 static void
17124 nocrash_init (void)
17125 {
17126 #ifdef SIGSEGV
17127 signal (SIGSEGV, exception_handler);
17128 #endif
17129 #ifdef SIGBUS
17130 signal (SIGBUS, exception_handler);
17131 #endif
17132 }
17133 #endif
17134
17135
17136 int
17137 main ()
17138 {
17139
17140 int result = 0;
17141
17142 nocrash_init();
17143
17144 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17145 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17146 OSF/1 5.1, Solaris 10. */
17147 {
17148 static char conftest[] = "conftest";
17149 static char plus[] = "-+";
17150 char *argv[3] = { conftest, plus, NULL };
17151 opterr = 0;
17152 if (getopt (2, argv, "+a") != '?')
17153 result |= 1;
17154 }
17155 /* This code succeeds on glibc 2.8, mingw,
17156 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17157 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17158 {
17159 static char program[] = "program";
17160 static char p[] = "-p";
17161 static char foo[] = "foo";
17162 static char bar[] = "bar";
17163 char *argv[] = { program, p, foo, bar, NULL };
17164
17165 optind = 1;
17166 if (getopt (4, argv, "p::") != 'p')
17167 result |= 2;
17168 else if (optarg != NULL)
17169 result |= 4;
17170 else if (getopt (4, argv, "p::") != -1)
17171 result |= 6;
17172 else if (optind != 2)
17173 result |= 8;
17174 }
17175 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17176 {
17177 static char program[] = "program";
17178 static char foo[] = "foo";
17179 static char p[] = "-p";
17180 char *argv[] = { program, foo, p, NULL };
17181 optind = 0;
17182 if (getopt (3, argv, "-p") != 1)
17183 result |= 16;
17184 else if (getopt (3, argv, "-p") != 'p')
17185 result |= 16;
17186 }
17187 /* This code fails on glibc 2.11. */
17188 {
17189 static char program[] = "program";
17190 static char b[] = "-b";
17191 static char a[] = "-a";
17192 char *argv[] = { program, b, a, NULL };
17193 optind = opterr = 0;
17194 if (getopt (3, argv, "+:a:b") != 'b')
17195 result |= 32;
17196 else if (getopt (3, argv, "+:a:b") != ':')
17197 result |= 32;
17198 }
17199 /* This code dumps core on glibc 2.14. */
17200 {
17201 static char program[] = "program";
17202 static char w[] = "-W";
17203 static char dummy[] = "dummy";
17204 char *argv[] = { program, w, dummy, NULL };
17205 optind = opterr = 1;
17206 if (getopt (3, argv, "W;") != 'W')
17207 result |= 64;
17208 }
17209 return result;
17210
17211 ;
17212 return 0;
17213 }
17214 _ACEOF
17215 if ac_fn_c_try_run "$LINENO"; then :
17216 gl_cv_func_getopt_gnu=yes
17217 else
17218 gl_cv_func_getopt_gnu=no
17219 fi
17220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17221 conftest.$ac_objext conftest.beam conftest.$ac_ext
17222 fi
17223
17224 case $gl_had_POSIXLY_CORRECT in
17225 exported) ;;
17226 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17227 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17228 esac
17229
17230 fi
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17232 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17233 if test "$gl_cv_func_getopt_gnu" != yes; then
17234 gl_replace_getopt=yes
17235 else
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17237 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17238 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 if test "$cross_compiling" = yes; then :
17242 case "$host_os" in
17243 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17244 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17245 esac
17246
17247 else
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17250 #include <getopt.h>
17251 #include <stddef.h>
17252 #include <string.h>
17253
17254 int
17255 main ()
17256 {
17257 static const struct option long_options[] =
17258 {
17259 { "xtremely-",no_argument, NULL, 1003 },
17260 { "xtra", no_argument, NULL, 1001 },
17261 { "xtreme", no_argument, NULL, 1002 },
17262 { "xtremely", no_argument, NULL, 1003 },
17263 { NULL, 0, NULL, 0 }
17264 };
17265 /* This code fails on OpenBSD 5.0. */
17266 {
17267 static char program[] = "program";
17268 static char xtremel[] = "--xtremel";
17269 char *argv[] = { program, xtremel, NULL };
17270 int option_index;
17271 optind = 1; opterr = 0;
17272 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17273 return 1;
17274 }
17275 return 0;
17276
17277 ;
17278 return 0;
17279 }
17280 _ACEOF
17281 if ac_fn_c_try_run "$LINENO"; then :
17282 gl_cv_func_getopt_long_gnu=yes
17283 else
17284 gl_cv_func_getopt_long_gnu=no
17285 fi
17286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17287 conftest.$ac_objext conftest.beam conftest.$ac_ext
17288 fi
17289
17290
17291 fi
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17293 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17294 case "$gl_cv_func_getopt_long_gnu" in
17295 *yes) ;;
17296 *) gl_replace_getopt=yes ;;
17297 esac
17298 fi
17299 fi
17300
17301
17302
17303
17304
17305
17306 REPLACE_GETOPT=0
17307 if test -n "$gl_replace_getopt"; then
17308 REPLACE_GETOPT=1
17309 fi
17310
17311 if test $REPLACE_GETOPT = 1; then
17312
17313 GETOPT_H=getopt.h
17314
17315 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17316
17317
17318
17319 fi
17320
17321 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17322 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17323 ac_have_decl=1
17324 else
17325 ac_have_decl=0
17326 fi
17327
17328 cat >>confdefs.h <<_ACEOF
17329 #define HAVE_DECL_GETENV $ac_have_decl
17330 _ACEOF
17331
17332 :
17333
17334
17335
17336
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17338 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17339 if test "${ac_cv_c_restrict+set}" = set; then :
17340 $as_echo_n "(cached) " >&6
17341 else
17342 ac_cv_c_restrict=no
17343 # The order here caters to the fact that C++ does not require restrict.
17344 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 typedef int * int_ptr;
17348 int foo (int_ptr $ac_kw ip) {
17349 return ip[0];
17350 }
17351 int
17352 main ()
17353 {
17354 int s[1];
17355 int * $ac_kw t = s;
17356 t[0] = 0;
17357 return foo(t)
17358 ;
17359 return 0;
17360 }
17361 _ACEOF
17362 if ac_fn_c_try_compile "$LINENO"; then :
17363 ac_cv_c_restrict=$ac_kw
17364 fi
17365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17366 test "$ac_cv_c_restrict" != no && break
17367 done
17368
17369 fi
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17371 $as_echo "$ac_cv_c_restrict" >&6; }
17372
17373 case $ac_cv_c_restrict in
17374 restrict) ;;
17375 no) $as_echo "#define restrict /**/" >>confdefs.h
17376 ;;
17377 *) cat >>confdefs.h <<_ACEOF
17378 #define restrict $ac_cv_c_restrict
17379 _ACEOF
17380 ;;
17381 esac
17382
17383
17384 GNULIB_GETTIMEOFDAY=0;
17385 HAVE_GETTIMEOFDAY=1;
17386 HAVE_STRUCT_TIMEVAL=1;
17387 HAVE_SYS_TIME_H=1;
17388 REPLACE_GETTIMEOFDAY=0;
17389 REPLACE_STRUCT_TIMEVAL=0;
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406 if test $gl_cv_have_include_next = yes; then
17407 gl_cv_next_sys_time_h='<'sys/time.h'>'
17408 else
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17410 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17411 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17412 $as_echo_n "(cached) " >&6
17413 else
17414
17415 if test $ac_cv_header_sys_time_h = yes; then
17416
17417
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17420 #include <sys/time.h>
17421
17422 _ACEOF
17423 case "$host_os" in
17424 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17425 *) gl_absname_cpp="$ac_cpp" ;;
17426 esac
17427
17428 case "$host_os" in
17429 mingw*)
17430 gl_dirsep_regex='[/\\]'
17431 ;;
17432 *)
17433 gl_dirsep_regex='\/'
17434 ;;
17435 esac
17436 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17437
17438 gl_header_literal_regex=`echo 'sys/time.h' \
17439 | sed -e "$gl_make_literal_regex_sed"`
17440 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17441 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17442 s|^/[^/]|//&|
17443 p
17444 q
17445 }'
17446 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17447 sed -n "$gl_absolute_header_sed"`'"'
17448 else
17449 gl_cv_next_sys_time_h='<'sys/time.h'>'
17450 fi
17451
17452
17453 fi
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17455 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17456 fi
17457 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17458
17459 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17461 gl_next_as_first_directive='<'sys/time.h'>'
17462 else
17463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17464 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17465 fi
17466 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17467
17468
17469
17470
17471
17472 if test $ac_cv_header_sys_time_h != yes; then
17473 HAVE_SYS_TIME_H=0
17474 fi
17475
17476
17477
17478
17479
17480 if test $ac_cv_header_sys_socket_h != yes; then
17481 for ac_header in winsock2.h
17482 do :
17483 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17484 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17485 cat >>confdefs.h <<_ACEOF
17486 #define HAVE_WINSOCK2_H 1
17487 _ACEOF
17488
17489 fi
17490
17491 done
17492
17493 fi
17494 if test "$ac_cv_header_winsock2_h" = yes; then
17495 HAVE_WINSOCK2_H=1
17496 UNISTD_H_HAVE_WINSOCK2_H=1
17497 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17498 else
17499 HAVE_WINSOCK2_H=0
17500 fi
17501
17502
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17504 $as_echo_n "checking for struct timeval... " >&6; }
17505 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17510 #if HAVE_SYS_TIME_H
17511 #include <sys/time.h>
17512 #endif
17513 #include <time.h>
17514 #if HAVE_WINSOCK2_H
17515 # include <winsock2.h>
17516 #endif
17517
17518 int
17519 main ()
17520 {
17521 static struct timeval x; x.tv_sec = x.tv_usec;
17522 ;
17523 return 0;
17524 }
17525 _ACEOF
17526 if ac_fn_c_try_compile "$LINENO"; then :
17527 gl_cv_sys_struct_timeval=yes
17528 else
17529 gl_cv_sys_struct_timeval=no
17530 fi
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532
17533 fi
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17535 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17536 if test $gl_cv_sys_struct_timeval != yes; then
17537 HAVE_STRUCT_TIMEVAL=0
17538 else
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17540 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17541 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17542 $as_echo_n "(cached) " >&6
17543 else
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546 #if HAVE_SYS_TIME_H
17547 #include <sys/time.h>
17548 #endif
17549 #include <time.h>
17550 #if HAVE_WINSOCK2_H
17551 # include <winsock2.h>
17552 #endif
17553
17554 int
17555 main ()
17556 {
17557 static struct timeval x;
17558 typedef int verify_tv_sec_type[
17559 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17560 ];
17561
17562 ;
17563 return 0;
17564 }
17565 _ACEOF
17566 if ac_fn_c_try_compile "$LINENO"; then :
17567 gl_cv_sys_struct_timeval_tv_sec=yes
17568 else
17569 gl_cv_sys_struct_timeval_tv_sec=no
17570 fi
17571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17572
17573 fi
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17575 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17576 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17577 REPLACE_STRUCT_TIMEVAL=1
17578 fi
17579 fi
17580
17581
17582
17583
17584
17585
17586
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17588 $as_echo_n "checking for unsigned long long int... " >&6; }
17589 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17590 $as_echo_n "(cached) " >&6
17591 else
17592 ac_cv_type_unsigned_long_long_int=yes
17593 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h. */
17596
17597 /* For now, do not test the preprocessor; as of 2007 there are too many
17598 implementations with broken preprocessors. Perhaps this can
17599 be revisited in 2012. In the meantime, code should not expect
17600 #if to work with literals wider than 32 bits. */
17601 /* Test literals. */
17602 long long int ll = 9223372036854775807ll;
17603 long long int nll = -9223372036854775807LL;
17604 unsigned long long int ull = 18446744073709551615ULL;
17605 /* Test constant expressions. */
17606 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17607 ? 1 : -1)];
17608 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17609 ? 1 : -1)];
17610 int i = 63;
17611 int
17612 main ()
17613 {
17614 /* Test availability of runtime routines for shift and division. */
17615 long long int llmax = 9223372036854775807ll;
17616 unsigned long long int ullmax = 18446744073709551615ull;
17617 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17618 | (llmax / ll) | (llmax % ll)
17619 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17620 | (ullmax / ull) | (ullmax % ull));
17621 ;
17622 return 0;
17623 }
17624
17625 _ACEOF
17626 if ac_fn_c_try_link "$LINENO"; then :
17627
17628 else
17629 ac_cv_type_unsigned_long_long_int=no
17630 fi
17631 rm -f core conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
17633 fi
17634 fi
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17636 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17637 if test $ac_cv_type_unsigned_long_long_int = yes; then
17638
17639 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17640
17641 fi
17642
17643
17644
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17646 $as_echo_n "checking for long long int... " >&6; }
17647 if test "${ac_cv_type_long_long_int+set}" = set; then :
17648 $as_echo_n "(cached) " >&6
17649 else
17650 ac_cv_type_long_long_int=yes
17651 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17652 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17653 if test $ac_cv_type_long_long_int = yes; then
17654 if test "$cross_compiling" = yes; then :
17655 :
17656 else
17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659 #include <limits.h>
17660 #ifndef LLONG_MAX
17661 # define HALF \
17662 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17663 # define LLONG_MAX (HALF - 1 + HALF)
17664 #endif
17665 int
17666 main ()
17667 {
17668 long long int n = 1;
17669 int i;
17670 for (i = 0; ; i++)
17671 {
17672 long long int m = n << i;
17673 if (m >> i != n)
17674 return 1;
17675 if (LLONG_MAX / 2 < m)
17676 break;
17677 }
17678 return 0;
17679 ;
17680 return 0;
17681 }
17682 _ACEOF
17683 if ac_fn_c_try_run "$LINENO"; then :
17684
17685 else
17686 ac_cv_type_long_long_int=no
17687 fi
17688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17689 conftest.$ac_objext conftest.beam conftest.$ac_ext
17690 fi
17691
17692 fi
17693 fi
17694 fi
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17696 $as_echo "$ac_cv_type_long_long_int" >&6; }
17697 if test $ac_cv_type_long_long_int = yes; then
17698
17699 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17700
17701 fi
17702
17703
17704
17705
17706
17707
17708 gl_cv_c_multiarch=no
17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17711 #ifndef __APPLE_CC__
17712 not a universal capable compiler
17713 #endif
17714 typedef int dummy;
17715
17716 _ACEOF
17717 if ac_fn_c_try_compile "$LINENO"; then :
17718
17719 arch=
17720 prev=
17721 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17722 if test -n "$prev"; then
17723 case $word in
17724 i?86 | x86_64 | ppc | ppc64)
17725 if test -z "$arch" || test "$arch" = "$word"; then
17726 arch="$word"
17727 else
17728 gl_cv_c_multiarch=yes
17729 fi
17730 ;;
17731 esac
17732 prev=
17733 else
17734 if test "x$word" = "x-arch"; then
17735 prev=arch
17736 fi
17737 fi
17738 done
17739
17740 fi
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 if test $gl_cv_c_multiarch = yes; then
17743 APPLE_UNIVERSAL_BUILD=1
17744 else
17745 APPLE_UNIVERSAL_BUILD=0
17746 fi
17747
17748
17749
17750
17751
17752 if test $ac_cv_type_long_long_int = yes; then
17753 HAVE_LONG_LONG_INT=1
17754 else
17755 HAVE_LONG_LONG_INT=0
17756 fi
17757
17758
17759 if test $ac_cv_type_unsigned_long_long_int = yes; then
17760 HAVE_UNSIGNED_LONG_LONG_INT=1
17761 else
17762 HAVE_UNSIGNED_LONG_LONG_INT=0
17763 fi
17764
17765
17766
17767 if test $ac_cv_header_wchar_h = yes; then
17768 HAVE_WCHAR_H=1
17769 else
17770 HAVE_WCHAR_H=0
17771 fi
17772
17773
17774 if test $ac_cv_header_inttypes_h = yes; then
17775 HAVE_INTTYPES_H=1
17776 else
17777 HAVE_INTTYPES_H=0
17778 fi
17779
17780
17781 if test $ac_cv_header_sys_types_h = yes; then
17782 HAVE_SYS_TYPES_H=1
17783 else
17784 HAVE_SYS_TYPES_H=0
17785 fi
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797 if test $gl_cv_have_include_next = yes; then
17798 gl_cv_next_stdint_h='<'stdint.h'>'
17799 else
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17801 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17802 if test "${gl_cv_next_stdint_h+set}" = set; then :
17803 $as_echo_n "(cached) " >&6
17804 else
17805
17806 if test $ac_cv_header_stdint_h = yes; then
17807
17808
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17811 #include <stdint.h>
17812
17813 _ACEOF
17814 case "$host_os" in
17815 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17816 *) gl_absname_cpp="$ac_cpp" ;;
17817 esac
17818
17819 case "$host_os" in
17820 mingw*)
17821 gl_dirsep_regex='[/\\]'
17822 ;;
17823 *)
17824 gl_dirsep_regex='\/'
17825 ;;
17826 esac
17827 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17828
17829 gl_header_literal_regex=`echo 'stdint.h' \
17830 | sed -e "$gl_make_literal_regex_sed"`
17831 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17832 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17833 s|^/[^/]|//&|
17834 p
17835 q
17836 }'
17837 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17838 sed -n "$gl_absolute_header_sed"`'"'
17839 else
17840 gl_cv_next_stdint_h='<'stdint.h'>'
17841 fi
17842
17843
17844 fi
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17846 $as_echo "$gl_cv_next_stdint_h" >&6; }
17847 fi
17848 NEXT_STDINT_H=$gl_cv_next_stdint_h
17849
17850 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17852 gl_next_as_first_directive='<'stdint.h'>'
17853 else
17854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17855 gl_next_as_first_directive=$gl_cv_next_stdint_h
17856 fi
17857 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17858
17859
17860
17861
17862 if test $ac_cv_header_stdint_h = yes; then
17863 HAVE_STDINT_H=1
17864 else
17865 HAVE_STDINT_H=0
17866 fi
17867
17868
17869 if test $ac_cv_header_stdint_h = yes; then
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17871 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17872 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17873 $as_echo_n "(cached) " >&6
17874 else
17875 gl_cv_header_working_stdint_h=no
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17878
17879
17880 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17881 #include <stdint.h>
17882 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17883 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17884 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17885 #endif
17886
17887
17888 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17889 included before <wchar.h>. */
17890 #include <stddef.h>
17891 #include <signal.h>
17892 #if HAVE_WCHAR_H
17893 # include <stdio.h>
17894 # include <time.h>
17895 # include <wchar.h>
17896 #endif
17897
17898
17899 #ifdef INT8_MAX
17900 int8_t a1 = INT8_MAX;
17901 int8_t a1min = INT8_MIN;
17902 #endif
17903 #ifdef INT16_MAX
17904 int16_t a2 = INT16_MAX;
17905 int16_t a2min = INT16_MIN;
17906 #endif
17907 #ifdef INT32_MAX
17908 int32_t a3 = INT32_MAX;
17909 int32_t a3min = INT32_MIN;
17910 #endif
17911 #ifdef INT64_MAX
17912 int64_t a4 = INT64_MAX;
17913 int64_t a4min = INT64_MIN;
17914 #endif
17915 #ifdef UINT8_MAX
17916 uint8_t b1 = UINT8_MAX;
17917 #else
17918 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17919 #endif
17920 #ifdef UINT16_MAX
17921 uint16_t b2 = UINT16_MAX;
17922 #endif
17923 #ifdef UINT32_MAX
17924 uint32_t b3 = UINT32_MAX;
17925 #endif
17926 #ifdef UINT64_MAX
17927 uint64_t b4 = UINT64_MAX;
17928 #endif
17929 int_least8_t c1 = INT8_C (0x7f);
17930 int_least8_t c1max = INT_LEAST8_MAX;
17931 int_least8_t c1min = INT_LEAST8_MIN;
17932 int_least16_t c2 = INT16_C (0x7fff);
17933 int_least16_t c2max = INT_LEAST16_MAX;
17934 int_least16_t c2min = INT_LEAST16_MIN;
17935 int_least32_t c3 = INT32_C (0x7fffffff);
17936 int_least32_t c3max = INT_LEAST32_MAX;
17937 int_least32_t c3min = INT_LEAST32_MIN;
17938 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17939 int_least64_t c4max = INT_LEAST64_MAX;
17940 int_least64_t c4min = INT_LEAST64_MIN;
17941 uint_least8_t d1 = UINT8_C (0xff);
17942 uint_least8_t d1max = UINT_LEAST8_MAX;
17943 uint_least16_t d2 = UINT16_C (0xffff);
17944 uint_least16_t d2max = UINT_LEAST16_MAX;
17945 uint_least32_t d3 = UINT32_C (0xffffffff);
17946 uint_least32_t d3max = UINT_LEAST32_MAX;
17947 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17948 uint_least64_t d4max = UINT_LEAST64_MAX;
17949 int_fast8_t e1 = INT_FAST8_MAX;
17950 int_fast8_t e1min = INT_FAST8_MIN;
17951 int_fast16_t e2 = INT_FAST16_MAX;
17952 int_fast16_t e2min = INT_FAST16_MIN;
17953 int_fast32_t e3 = INT_FAST32_MAX;
17954 int_fast32_t e3min = INT_FAST32_MIN;
17955 int_fast64_t e4 = INT_FAST64_MAX;
17956 int_fast64_t e4min = INT_FAST64_MIN;
17957 uint_fast8_t f1 = UINT_FAST8_MAX;
17958 uint_fast16_t f2 = UINT_FAST16_MAX;
17959 uint_fast32_t f3 = UINT_FAST32_MAX;
17960 uint_fast64_t f4 = UINT_FAST64_MAX;
17961 #ifdef INTPTR_MAX
17962 intptr_t g = INTPTR_MAX;
17963 intptr_t gmin = INTPTR_MIN;
17964 #endif
17965 #ifdef UINTPTR_MAX
17966 uintptr_t h = UINTPTR_MAX;
17967 #endif
17968 intmax_t i = INTMAX_MAX;
17969 uintmax_t j = UINTMAX_MAX;
17970
17971 #include <limits.h> /* for CHAR_BIT */
17972 #define TYPE_MINIMUM(t) \
17973 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17974 #define TYPE_MAXIMUM(t) \
17975 ((t) ((t) 0 < (t) -1 \
17976 ? (t) -1 \
17977 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17978 struct s {
17979 int check_PTRDIFF:
17980 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17981 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17982 ? 1 : -1;
17983 /* Detect bug in FreeBSD 6.0 / ia64. */
17984 int check_SIG_ATOMIC:
17985 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17986 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17987 ? 1 : -1;
17988 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17989 int check_WCHAR:
17990 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17991 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17992 ? 1 : -1;
17993 /* Detect bug in mingw. */
17994 int check_WINT:
17995 WINT_MIN == TYPE_MINIMUM (wint_t)
17996 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17997 ? 1 : -1;
17998
17999 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18000 int check_UINT8_C:
18001 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18002 int check_UINT16_C:
18003 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18004
18005 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18006 #ifdef UINT8_MAX
18007 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18008 #endif
18009 #ifdef UINT16_MAX
18010 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18011 #endif
18012 #ifdef UINT32_MAX
18013 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18014 #endif
18015 #ifdef UINT64_MAX
18016 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18017 #endif
18018 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18019 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18020 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18021 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18022 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18023 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18024 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18025 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18026 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18027 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18028 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18029 };
18030
18031 int
18032 main ()
18033 {
18034
18035 ;
18036 return 0;
18037 }
18038 _ACEOF
18039 if ac_fn_c_try_compile "$LINENO"; then :
18040 if test "$cross_compiling" = yes; then :
18041 gl_cv_header_working_stdint_h=yes
18042
18043 else
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18046
18047
18048 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18049 #include <stdint.h>
18050
18051
18052 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18053 included before <wchar.h>. */
18054 #include <stddef.h>
18055 #include <signal.h>
18056 #if HAVE_WCHAR_H
18057 # include <stdio.h>
18058 # include <time.h>
18059 # include <wchar.h>
18060 #endif
18061
18062
18063 #include <stdio.h>
18064 #include <string.h>
18065 #define MVAL(macro) MVAL1(macro)
18066 #define MVAL1(expression) #expression
18067 static const char *macro_values[] =
18068 {
18069 #ifdef INT8_MAX
18070 MVAL (INT8_MAX),
18071 #endif
18072 #ifdef INT16_MAX
18073 MVAL (INT16_MAX),
18074 #endif
18075 #ifdef INT32_MAX
18076 MVAL (INT32_MAX),
18077 #endif
18078 #ifdef INT64_MAX
18079 MVAL (INT64_MAX),
18080 #endif
18081 #ifdef UINT8_MAX
18082 MVAL (UINT8_MAX),
18083 #endif
18084 #ifdef UINT16_MAX
18085 MVAL (UINT16_MAX),
18086 #endif
18087 #ifdef UINT32_MAX
18088 MVAL (UINT32_MAX),
18089 #endif
18090 #ifdef UINT64_MAX
18091 MVAL (UINT64_MAX),
18092 #endif
18093 NULL
18094 };
18095
18096 int
18097 main ()
18098 {
18099
18100 const char **mv;
18101 for (mv = macro_values; *mv != NULL; mv++)
18102 {
18103 const char *value = *mv;
18104 /* Test whether it looks like a cast expression. */
18105 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18106 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18107 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18108 || strncmp (value, "((int)"/*)*/, 6) == 0
18109 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18110 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18111 return mv - macro_values + 1;
18112 }
18113 return 0;
18114
18115 ;
18116 return 0;
18117 }
18118 _ACEOF
18119 if ac_fn_c_try_run "$LINENO"; then :
18120 gl_cv_header_working_stdint_h=yes
18121 fi
18122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18123 conftest.$ac_objext conftest.beam conftest.$ac_ext
18124 fi
18125
18126
18127 fi
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129
18130 fi
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18132 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18133 fi
18134 if test "$gl_cv_header_working_stdint_h" = yes; then
18135 STDINT_H=
18136 else
18137 for ac_header in sys/inttypes.h sys/bitypes.h
18138 do :
18139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18140 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18141 eval as_val=\$$as_ac_Header
18142 if test "x$as_val" = x""yes; then :
18143 cat >>confdefs.h <<_ACEOF
18144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18145 _ACEOF
18146
18147 fi
18148
18149 done
18150
18151 if test $ac_cv_header_sys_inttypes_h = yes; then
18152 HAVE_SYS_INTTYPES_H=1
18153 else
18154 HAVE_SYS_INTTYPES_H=0
18155 fi
18156
18157 if test $ac_cv_header_sys_bitypes_h = yes; then
18158 HAVE_SYS_BITYPES_H=1
18159 else
18160 HAVE_SYS_BITYPES_H=0
18161 fi
18162
18163
18164
18165
18166 if test $APPLE_UNIVERSAL_BUILD = 0; then
18167
18168
18169 for gltype in ptrdiff_t size_t ; do
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18171 $as_echo_n "checking for bit size of $gltype... " >&6; }
18172 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18173 $as_echo_n "(cached) " >&6
18174 else
18175 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18176 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18177 included before <wchar.h>. */
18178 #include <stddef.h>
18179 #include <signal.h>
18180 #if HAVE_WCHAR_H
18181 # include <stdio.h>
18182 # include <time.h>
18183 # include <wchar.h>
18184 #endif
18185
18186 #include <limits.h>"; then :
18187
18188 else
18189 result=unknown
18190 fi
18191
18192 eval gl_cv_bitsizeof_${gltype}=\$result
18193
18194 fi
18195 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18197 $as_echo "$ac_res" >&6; }
18198 eval result=\$gl_cv_bitsizeof_${gltype}
18199 if test $result = unknown; then
18200 result=0
18201 fi
18202 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18203 cat >>confdefs.h <<_ACEOF
18204 #define BITSIZEOF_${GLTYPE} $result
18205 _ACEOF
18206
18207 eval BITSIZEOF_${GLTYPE}=\$result
18208 done
18209
18210
18211 fi
18212
18213
18214 for gltype in sig_atomic_t wchar_t wint_t ; do
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18216 $as_echo_n "checking for bit size of $gltype... " >&6; }
18217 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18218 $as_echo_n "(cached) " >&6
18219 else
18220 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18221 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18222 included before <wchar.h>. */
18223 #include <stddef.h>
18224 #include <signal.h>
18225 #if HAVE_WCHAR_H
18226 # include <stdio.h>
18227 # include <time.h>
18228 # include <wchar.h>
18229 #endif
18230
18231 #include <limits.h>"; then :
18232
18233 else
18234 result=unknown
18235 fi
18236
18237 eval gl_cv_bitsizeof_${gltype}=\$result
18238
18239 fi
18240 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18242 $as_echo "$ac_res" >&6; }
18243 eval result=\$gl_cv_bitsizeof_${gltype}
18244 if test $result = unknown; then
18245 result=0
18246 fi
18247 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18248 cat >>confdefs.h <<_ACEOF
18249 #define BITSIZEOF_${GLTYPE} $result
18250 _ACEOF
18251
18252 eval BITSIZEOF_${GLTYPE}=\$result
18253 done
18254
18255
18256
18257
18258 for gltype in sig_atomic_t wchar_t wint_t ; do
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18260 $as_echo_n "checking whether $gltype is signed... " >&6; }
18261 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18262 $as_echo_n "(cached) " >&6
18263 else
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266
18267 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18268 included before <wchar.h>. */
18269 #include <stddef.h>
18270 #include <signal.h>
18271 #if HAVE_WCHAR_H
18272 # include <stdio.h>
18273 # include <time.h>
18274 # include <wchar.h>
18275 #endif
18276
18277 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18278 int
18279 main ()
18280 {
18281
18282 ;
18283 return 0;
18284 }
18285 _ACEOF
18286 if ac_fn_c_try_compile "$LINENO"; then :
18287 result=yes
18288 else
18289 result=no
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 eval gl_cv_type_${gltype}_signed=\$result
18293
18294 fi
18295 eval ac_res=\$gl_cv_type_${gltype}_signed
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18297 $as_echo "$ac_res" >&6; }
18298 eval result=\$gl_cv_type_${gltype}_signed
18299 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18300 if test "$result" = yes; then
18301 cat >>confdefs.h <<_ACEOF
18302 #define HAVE_SIGNED_${GLTYPE} 1
18303 _ACEOF
18304
18305 eval HAVE_SIGNED_${GLTYPE}=1
18306 else
18307 eval HAVE_SIGNED_${GLTYPE}=0
18308 fi
18309 done
18310
18311
18312 gl_cv_type_ptrdiff_t_signed=yes
18313 gl_cv_type_size_t_signed=no
18314 if test $APPLE_UNIVERSAL_BUILD = 0; then
18315
18316
18317 for gltype in ptrdiff_t size_t ; do
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18319 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18320 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18321 $as_echo_n "(cached) " >&6
18322 else
18323 eval gl_cv_type_${gltype}_suffix=no
18324 eval result=\$gl_cv_type_${gltype}_signed
18325 if test "$result" = yes; then
18326 glsufu=
18327 else
18328 glsufu=u
18329 fi
18330 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18331 case $glsuf in
18332 '') gltype1='int';;
18333 l) gltype1='long int';;
18334 ll) gltype1='long long int';;
18335 i64) gltype1='__int64';;
18336 u) gltype1='unsigned int';;
18337 ul) gltype1='unsigned long int';;
18338 ull) gltype1='unsigned long long int';;
18339 ui64)gltype1='unsigned __int64';;
18340 esac
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18343
18344 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18345 included before <wchar.h>. */
18346 #include <stddef.h>
18347 #include <signal.h>
18348 #if HAVE_WCHAR_H
18349 # include <stdio.h>
18350 # include <time.h>
18351 # include <wchar.h>
18352 #endif
18353
18354 extern $gltype foo;
18355 extern $gltype1 foo;
18356 int
18357 main ()
18358 {
18359
18360 ;
18361 return 0;
18362 }
18363 _ACEOF
18364 if ac_fn_c_try_compile "$LINENO"; then :
18365 eval gl_cv_type_${gltype}_suffix=\$glsuf
18366 fi
18367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18368 eval result=\$gl_cv_type_${gltype}_suffix
18369 test "$result" != no && break
18370 done
18371 fi
18372 eval ac_res=\$gl_cv_type_${gltype}_suffix
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18374 $as_echo "$ac_res" >&6; }
18375 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18376 eval result=\$gl_cv_type_${gltype}_suffix
18377 test "$result" = no && result=
18378 eval ${GLTYPE}_SUFFIX=\$result
18379 cat >>confdefs.h <<_ACEOF
18380 #define ${GLTYPE}_SUFFIX $result
18381 _ACEOF
18382
18383 done
18384
18385
18386 fi
18387
18388
18389 for gltype in sig_atomic_t wchar_t wint_t ; do
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18391 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18392 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18393 $as_echo_n "(cached) " >&6
18394 else
18395 eval gl_cv_type_${gltype}_suffix=no
18396 eval result=\$gl_cv_type_${gltype}_signed
18397 if test "$result" = yes; then
18398 glsufu=
18399 else
18400 glsufu=u
18401 fi
18402 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18403 case $glsuf in
18404 '') gltype1='int';;
18405 l) gltype1='long int';;
18406 ll) gltype1='long long int';;
18407 i64) gltype1='__int64';;
18408 u) gltype1='unsigned int';;
18409 ul) gltype1='unsigned long int';;
18410 ull) gltype1='unsigned long long int';;
18411 ui64)gltype1='unsigned __int64';;
18412 esac
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18415
18416 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18417 included before <wchar.h>. */
18418 #include <stddef.h>
18419 #include <signal.h>
18420 #if HAVE_WCHAR_H
18421 # include <stdio.h>
18422 # include <time.h>
18423 # include <wchar.h>
18424 #endif
18425
18426 extern $gltype foo;
18427 extern $gltype1 foo;
18428 int
18429 main ()
18430 {
18431
18432 ;
18433 return 0;
18434 }
18435 _ACEOF
18436 if ac_fn_c_try_compile "$LINENO"; then :
18437 eval gl_cv_type_${gltype}_suffix=\$glsuf
18438 fi
18439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18440 eval result=\$gl_cv_type_${gltype}_suffix
18441 test "$result" != no && break
18442 done
18443 fi
18444 eval ac_res=\$gl_cv_type_${gltype}_suffix
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18446 $as_echo "$ac_res" >&6; }
18447 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18448 eval result=\$gl_cv_type_${gltype}_suffix
18449 test "$result" = no && result=
18450 eval ${GLTYPE}_SUFFIX=\$result
18451 cat >>confdefs.h <<_ACEOF
18452 #define ${GLTYPE}_SUFFIX $result
18453 _ACEOF
18454
18455 done
18456
18457
18458
18459 if test $BITSIZEOF_WINT_T -lt 32; then
18460 BITSIZEOF_WINT_T=32
18461 fi
18462
18463 STDINT_H=stdint.h
18464 fi
18465
18466 if test -n "$STDINT_H"; then
18467 GL_GENERATE_STDINT_H_TRUE=
18468 GL_GENERATE_STDINT_H_FALSE='#'
18469 else
18470 GL_GENERATE_STDINT_H_TRUE='#'
18471 GL_GENERATE_STDINT_H_FALSE=
18472 fi
18473
18474
18475
18476
18477
18478 GNULIB_IMAXABS=0;
18479 GNULIB_IMAXDIV=0;
18480 GNULIB_STRTOIMAX=0;
18481 GNULIB_STRTOUMAX=0;
18482 HAVE_DECL_IMAXABS=1;
18483 HAVE_DECL_IMAXDIV=1;
18484 HAVE_DECL_STRTOIMAX=1;
18485 HAVE_DECL_STRTOUMAX=1;
18486 REPLACE_STRTOIMAX=0;
18487 INT32_MAX_LT_INTMAX_MAX=1;
18488 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18489 PRI_MACROS_BROKEN=0;
18490 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18491 UINT32_MAX_LT_UINTMAX_MAX=1;
18492 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508 if test $gl_cv_have_include_next = yes; then
18509 gl_cv_next_inttypes_h='<'inttypes.h'>'
18510 else
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18512 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18513 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18514 $as_echo_n "(cached) " >&6
18515 else
18516
18517 if test $ac_cv_header_inttypes_h = yes; then
18518
18519
18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18522 #include <inttypes.h>
18523
18524 _ACEOF
18525 case "$host_os" in
18526 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18527 *) gl_absname_cpp="$ac_cpp" ;;
18528 esac
18529
18530 case "$host_os" in
18531 mingw*)
18532 gl_dirsep_regex='[/\\]'
18533 ;;
18534 *)
18535 gl_dirsep_regex='\/'
18536 ;;
18537 esac
18538 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18539
18540 gl_header_literal_regex=`echo 'inttypes.h' \
18541 | sed -e "$gl_make_literal_regex_sed"`
18542 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18543 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18544 s|^/[^/]|//&|
18545 p
18546 q
18547 }'
18548 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18549 sed -n "$gl_absolute_header_sed"`'"'
18550 else
18551 gl_cv_next_inttypes_h='<'inttypes.h'>'
18552 fi
18553
18554
18555 fi
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18557 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18558 fi
18559 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18560
18561 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18563 gl_next_as_first_directive='<'inttypes.h'>'
18564 else
18565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18566 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18567 fi
18568 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580 case "$host_os" in
18581 mingw*)
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18583 $as_echo_n "checking for 64-bit off_t... " >&6; }
18584 if test "${gl_cv_type_off_t_64+set}" = set; then :
18585 $as_echo_n "(cached) " >&6
18586 else
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18589 #include <sys/types.h>
18590 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18591
18592 int
18593 main ()
18594 {
18595
18596 ;
18597 return 0;
18598 }
18599 _ACEOF
18600 if ac_fn_c_try_compile "$LINENO"; then :
18601 gl_cv_type_off_t_64=yes
18602 else
18603 gl_cv_type_off_t_64=no
18604 fi
18605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18606
18607 fi
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18609 $as_echo "$gl_cv_type_off_t_64" >&6; }
18610 if test $gl_cv_type_off_t_64 = no; then
18611 WINDOWS_64_BIT_OFF_T=1
18612 else
18613 WINDOWS_64_BIT_OFF_T=0
18614 fi
18615 WINDOWS_64_BIT_ST_SIZE=1
18616 ;;
18617 *)
18618 WINDOWS_64_BIT_OFF_T=0
18619 WINDOWS_64_BIT_ST_SIZE=0
18620 ;;
18621 esac
18622
18623
18624 GNULIB_FCHMODAT=0;
18625 GNULIB_FSTAT=0;
18626 GNULIB_FSTATAT=0;
18627 GNULIB_FUTIMENS=0;
18628 GNULIB_LCHMOD=0;
18629 GNULIB_LSTAT=0;
18630 GNULIB_MKDIRAT=0;
18631 GNULIB_MKFIFO=0;
18632 GNULIB_MKFIFOAT=0;
18633 GNULIB_MKNOD=0;
18634 GNULIB_MKNODAT=0;
18635 GNULIB_STAT=0;
18636 GNULIB_UTIMENSAT=0;
18637 HAVE_FCHMODAT=1;
18638 HAVE_FSTATAT=1;
18639 HAVE_FUTIMENS=1;
18640 HAVE_LCHMOD=1;
18641 HAVE_LSTAT=1;
18642 HAVE_MKDIRAT=1;
18643 HAVE_MKFIFO=1;
18644 HAVE_MKFIFOAT=1;
18645 HAVE_MKNOD=1;
18646 HAVE_MKNODAT=1;
18647 HAVE_UTIMENSAT=1;
18648 REPLACE_FSTAT=0;
18649 REPLACE_FSTATAT=0;
18650 REPLACE_FUTIMENS=0;
18651 REPLACE_LSTAT=0;
18652 REPLACE_MKDIR=0;
18653 REPLACE_MKFIFO=0;
18654 REPLACE_MKNOD=0;
18655 REPLACE_STAT=0;
18656 REPLACE_UTIMENSAT=0;
18657
18658
18659
18660
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18662 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18663 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18664 $as_echo_n "(cached) " >&6
18665 else
18666 rm -f conftest.sym conftest.file
18667 echo >conftest.file
18668 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18669 if test "$cross_compiling" = yes; then :
18670 case "$host_os" in
18671 # Guess yes on glibc systems.
18672 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18673 # If we don't know, assume the worst.
18674 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18675 esac
18676
18677 else
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18680 $ac_includes_default
18681 int
18682 main ()
18683 {
18684 struct stat sbuf;
18685 /* Linux will dereference the symlink and fail, as required by
18686 POSIX. That is better in the sense that it means we will not
18687 have to compile and use the lstat wrapper. */
18688 return lstat ("conftest.sym/", &sbuf) == 0;
18689
18690 ;
18691 return 0;
18692 }
18693 _ACEOF
18694 if ac_fn_c_try_run "$LINENO"; then :
18695 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18696 else
18697 gl_cv_func_lstat_dereferences_slashed_symlink=no
18698 fi
18699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18700 conftest.$ac_objext conftest.beam conftest.$ac_ext
18701 fi
18702
18703 else
18704 # If the 'ln -s' command failed, then we probably don't even
18705 # have an lstat function.
18706 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18707 fi
18708 rm -f conftest.sym conftest.file
18709
18710 fi
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18712 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18713 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18714 *yes)
18715
18716 cat >>confdefs.h <<_ACEOF
18717 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18718 _ACEOF
18719
18720 ;;
18721 esac
18722
18723
18724 GNULIB_MKTIME=0;
18725 GNULIB_NANOSLEEP=0;
18726 GNULIB_STRPTIME=0;
18727 GNULIB_TIMEGM=0;
18728 GNULIB_TIME_R=0;
18729 HAVE_DECL_LOCALTIME_R=1;
18730 HAVE_NANOSLEEP=1;
18731 HAVE_STRPTIME=1;
18732 HAVE_TIMEGM=1;
18733 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18734 REPLACE_MKTIME=GNULIB_PORTCHECK;
18735 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18736 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18737
18738
18739
18740
18741 GNULIB_PSELECT=0;
18742 GNULIB_SELECT=0;
18743 HAVE_PSELECT=1;
18744 REPLACE_PSELECT=0;
18745 REPLACE_SELECT=0;
18746
18747
18748
18749
18750
18751
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
18753 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
18754 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
18755 $as_echo_n "(cached) " >&6
18756 else
18757
18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18760 #include <sys/select.h>
18761 int
18762 main ()
18763 {
18764 struct timeval b;
18765 ;
18766 return 0;
18767 }
18768 _ACEOF
18769 if ac_fn_c_try_compile "$LINENO"; then :
18770 gl_cv_header_sys_select_h_selfcontained=yes
18771 else
18772 gl_cv_header_sys_select_h_selfcontained=no
18773 fi
18774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
18776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18777 /* end confdefs.h. */
18778 #include <sys/select.h>
18779 int
18780 main ()
18781 {
18782 int memset; int bzero;
18783 ;
18784 return 0;
18785 }
18786
18787 _ACEOF
18788 if ac_fn_c_try_compile "$LINENO"; then :
18789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790 /* end confdefs.h. */
18791 #include <sys/select.h>
18792 int
18793 main ()
18794 {
18795
18796 #undef memset
18797 #define memset nonexistent_memset
18798 extern
18799 #ifdef __cplusplus
18800 "C"
18801 #endif
18802 void *memset (void *, int, unsigned long);
18803 #undef bzero
18804 #define bzero nonexistent_bzero
18805 extern
18806 #ifdef __cplusplus
18807 "C"
18808 #endif
18809 void bzero (void *, unsigned long);
18810 fd_set fds;
18811 FD_ZERO (&fds);
18812
18813 ;
18814 return 0;
18815 }
18816
18817 _ACEOF
18818 if ac_fn_c_try_link "$LINENO"; then :
18819
18820 else
18821 gl_cv_header_sys_select_h_selfcontained=no
18822 fi
18823 rm -f core conftest.err conftest.$ac_objext \
18824 conftest$ac_exeext conftest.$ac_ext
18825
18826 fi
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 fi
18829
18830 fi
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
18832 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842 if test $gl_cv_have_include_next = yes; then
18843 gl_cv_next_sys_select_h='<'sys/select.h'>'
18844 else
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
18846 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
18847 if test "${gl_cv_next_sys_select_h+set}" = set; then :
18848 $as_echo_n "(cached) " >&6
18849 else
18850
18851 if test $ac_cv_header_sys_select_h = yes; then
18852
18853
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18856 #include <sys/select.h>
18857
18858 _ACEOF
18859 case "$host_os" in
18860 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18861 *) gl_absname_cpp="$ac_cpp" ;;
18862 esac
18863
18864 case "$host_os" in
18865 mingw*)
18866 gl_dirsep_regex='[/\\]'
18867 ;;
18868 *)
18869 gl_dirsep_regex='\/'
18870 ;;
18871 esac
18872 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18873
18874 gl_header_literal_regex=`echo 'sys/select.h' \
18875 | sed -e "$gl_make_literal_regex_sed"`
18876 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18877 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18878 s|^/[^/]|//&|
18879 p
18880 q
18881 }'
18882 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18883 sed -n "$gl_absolute_header_sed"`'"'
18884 else
18885 gl_cv_next_sys_select_h='<'sys/select.h'>'
18886 fi
18887
18888
18889 fi
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
18891 $as_echo "$gl_cv_next_sys_select_h" >&6; }
18892 fi
18893 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
18894
18895 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18897 gl_next_as_first_directive='<'sys/select.h'>'
18898 else
18899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18900 gl_next_as_first_directive=$gl_cv_next_sys_select_h
18901 fi
18902 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
18903
18904
18905
18906
18907 if test $ac_cv_header_sys_select_h = yes; then
18908 HAVE_SYS_SELECT_H=1
18909 else
18910 HAVE_SYS_SELECT_H=0
18911 fi
18912
18913
18914
18915
18916
18917 if test $ac_cv_header_sys_socket_h != yes; then
18918 for ac_header in winsock2.h
18919 do :
18920 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18921 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_WINSOCK2_H 1
18924 _ACEOF
18925
18926 fi
18927
18928 done
18929
18930 fi
18931 if test "$ac_cv_header_winsock2_h" = yes; then
18932 HAVE_WINSOCK2_H=1
18933 UNISTD_H_HAVE_WINSOCK2_H=1
18934 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18935 else
18936 HAVE_WINSOCK2_H=0
18937 fi
18938
18939
18940
18941
18942
18943
18944
18945
18946 GNULIB_PTHREAD_SIGMASK=0;
18947 GNULIB_RAISE=0;
18948 GNULIB_SIGNAL_H_SIGPIPE=0;
18949 GNULIB_SIGPROCMASK=0;
18950 GNULIB_SIGACTION=0;
18951 HAVE_POSIX_SIGNALBLOCKING=1;
18952 HAVE_PTHREAD_SIGMASK=1;
18953 HAVE_RAISE=1;
18954 HAVE_SIGSET_T=1;
18955 HAVE_SIGINFO_T=1;
18956 HAVE_SIGACTION=1;
18957 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18958
18959 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18960
18961 HAVE_SIGHANDLER_T=1;
18962 REPLACE_PTHREAD_SIGMASK=0;
18963 REPLACE_RAISE=0;
18964
18965
18966
18967
18968
18969
18970 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18971 #include <signal.h>
18972 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18973 #include <sys/types.h>
18974
18975 "
18976 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18977
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_SIGSET_T 1
18980 _ACEOF
18981
18982 gl_cv_type_sigset_t=yes
18983 else
18984 gl_cv_type_sigset_t=no
18985 fi
18986
18987 if test $gl_cv_type_sigset_t != yes; then
18988 HAVE_SIGSET_T=0
18989 fi
18990
18991
18992
18993 if test $ac_cv_header_sys_socket_h = no; then
18994 for ac_header in ws2tcpip.h
18995 do :
18996 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18997 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18998 cat >>confdefs.h <<_ACEOF
18999 #define HAVE_WS2TCPIP_H 1
19000 _ACEOF
19001
19002 fi
19003
19004 done
19005
19006 fi
19007
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19009 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19010 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19011 $as_echo_n "(cached) " >&6
19012 else
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19015
19016 #include <stdbool.h>
19017 #ifndef bool
19018 "error: bool is not defined"
19019 #endif
19020 #ifndef false
19021 "error: false is not defined"
19022 #endif
19023 #if false
19024 "error: false is not 0"
19025 #endif
19026 #ifndef true
19027 "error: true is not defined"
19028 #endif
19029 #if true != 1
19030 "error: true is not 1"
19031 #endif
19032 #ifndef __bool_true_false_are_defined
19033 "error: __bool_true_false_are_defined is not defined"
19034 #endif
19035
19036 struct s { _Bool s: 1; _Bool t; } s;
19037
19038 char a[true == 1 ? 1 : -1];
19039 char b[false == 0 ? 1 : -1];
19040 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19041 char d[(bool) 0.5 == true ? 1 : -1];
19042 /* See body of main program for 'e'. */
19043 char f[(_Bool) 0.0 == false ? 1 : -1];
19044 char g[true];
19045 char h[sizeof (_Bool)];
19046 char i[sizeof s.t];
19047 enum { j = false, k = true, l = false * true, m = true * 256 };
19048 /* The following fails for
19049 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19050 _Bool n[m];
19051 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19052 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19053 /* Catch a bug in an HP-UX C compiler. See
19054 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19055 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19056 */
19057 _Bool q = true;
19058 _Bool *pq = &q;
19059
19060 int
19061 main ()
19062 {
19063
19064 bool e = &s;
19065 *pq |= q;
19066 *pq |= ! q;
19067 /* Refer to every declared value, to avoid compiler optimizations. */
19068 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19069 + !m + !n + !o + !p + !q + !pq);
19070
19071 ;
19072 return 0;
19073 }
19074 _ACEOF
19075 if ac_fn_c_try_compile "$LINENO"; then :
19076 ac_cv_header_stdbool_h=yes
19077 else
19078 ac_cv_header_stdbool_h=no
19079 fi
19080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19081 fi
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19083 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19084 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19085 if test "x$ac_cv_type__Bool" = x""yes; then :
19086
19087 cat >>confdefs.h <<_ACEOF
19088 #define HAVE__BOOL 1
19089 _ACEOF
19090
19091
19092 fi
19093
19094
19095
19096 REPLACE_NULL=0;
19097 HAVE_WCHAR_T=1;
19098
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19101 $as_echo_n "checking for wchar_t... " >&6; }
19102 if test "${gt_cv_c_wchar_t+set}" = set; then :
19103 $as_echo_n "(cached) " >&6
19104 else
19105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19107 #include <stddef.h>
19108 wchar_t foo = (wchar_t)'\0';
19109 int
19110 main ()
19111 {
19112
19113 ;
19114 return 0;
19115 }
19116 _ACEOF
19117 if ac_fn_c_try_compile "$LINENO"; then :
19118 gt_cv_c_wchar_t=yes
19119 else
19120 gt_cv_c_wchar_t=no
19121 fi
19122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19123 fi
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19125 $as_echo "$gt_cv_c_wchar_t" >&6; }
19126 if test $gt_cv_c_wchar_t = yes; then
19127
19128 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19129
19130 fi
19131
19132
19133 GNULIB_DPRINTF=0;
19134 GNULIB_FCLOSE=0;
19135 GNULIB_FDOPEN=0;
19136 GNULIB_FFLUSH=0;
19137 GNULIB_FGETC=0;
19138 GNULIB_FGETS=0;
19139 GNULIB_FOPEN=0;
19140 GNULIB_FPRINTF=0;
19141 GNULIB_FPRINTF_POSIX=0;
19142 GNULIB_FPURGE=0;
19143 GNULIB_FPUTC=0;
19144 GNULIB_FPUTS=0;
19145 GNULIB_FREAD=0;
19146 GNULIB_FREOPEN=0;
19147 GNULIB_FSCANF=0;
19148 GNULIB_FSEEK=0;
19149 GNULIB_FSEEKO=0;
19150 GNULIB_FTELL=0;
19151 GNULIB_FTELLO=0;
19152 GNULIB_FWRITE=0;
19153 GNULIB_GETC=0;
19154 GNULIB_GETCHAR=0;
19155 GNULIB_GETDELIM=0;
19156 GNULIB_GETLINE=0;
19157 GNULIB_OBSTACK_PRINTF=0;
19158 GNULIB_OBSTACK_PRINTF_POSIX=0;
19159 GNULIB_PCLOSE=0;
19160 GNULIB_PERROR=0;
19161 GNULIB_POPEN=0;
19162 GNULIB_PRINTF=0;
19163 GNULIB_PRINTF_POSIX=0;
19164 GNULIB_PUTC=0;
19165 GNULIB_PUTCHAR=0;
19166 GNULIB_PUTS=0;
19167 GNULIB_REMOVE=0;
19168 GNULIB_RENAME=0;
19169 GNULIB_RENAMEAT=0;
19170 GNULIB_SCANF=0;
19171 GNULIB_SNPRINTF=0;
19172 GNULIB_SPRINTF_POSIX=0;
19173 GNULIB_STDIO_H_NONBLOCKING=0;
19174 GNULIB_STDIO_H_SIGPIPE=0;
19175 GNULIB_TMPFILE=0;
19176 GNULIB_VASPRINTF=0;
19177 GNULIB_VFSCANF=0;
19178 GNULIB_VSCANF=0;
19179 GNULIB_VDPRINTF=0;
19180 GNULIB_VFPRINTF=0;
19181 GNULIB_VFPRINTF_POSIX=0;
19182 GNULIB_VPRINTF=0;
19183 GNULIB_VPRINTF_POSIX=0;
19184 GNULIB_VSNPRINTF=0;
19185 GNULIB_VSPRINTF_POSIX=0;
19186 HAVE_DECL_FPURGE=1;
19187 HAVE_DECL_FSEEKO=1;
19188 HAVE_DECL_FTELLO=1;
19189 HAVE_DECL_GETDELIM=1;
19190 HAVE_DECL_GETLINE=1;
19191 HAVE_DECL_OBSTACK_PRINTF=1;
19192 HAVE_DECL_SNPRINTF=1;
19193 HAVE_DECL_VSNPRINTF=1;
19194 HAVE_DPRINTF=1;
19195 HAVE_FSEEKO=1;
19196 HAVE_FTELLO=1;
19197 HAVE_PCLOSE=1;
19198 HAVE_POPEN=1;
19199 HAVE_RENAMEAT=1;
19200 HAVE_VASPRINTF=1;
19201 HAVE_VDPRINTF=1;
19202 REPLACE_DPRINTF=0;
19203 REPLACE_FCLOSE=0;
19204 REPLACE_FDOPEN=0;
19205 REPLACE_FFLUSH=0;
19206 REPLACE_FOPEN=0;
19207 REPLACE_FPRINTF=0;
19208 REPLACE_FPURGE=0;
19209 REPLACE_FREOPEN=0;
19210 REPLACE_FSEEK=0;
19211 REPLACE_FSEEKO=0;
19212 REPLACE_FTELL=0;
19213 REPLACE_FTELLO=0;
19214 REPLACE_GETDELIM=0;
19215 REPLACE_GETLINE=0;
19216 REPLACE_OBSTACK_PRINTF=0;
19217 REPLACE_PERROR=0;
19218 REPLACE_POPEN=0;
19219 REPLACE_PRINTF=0;
19220 REPLACE_REMOVE=0;
19221 REPLACE_RENAME=0;
19222 REPLACE_RENAMEAT=0;
19223 REPLACE_SNPRINTF=0;
19224 REPLACE_SPRINTF=0;
19225 REPLACE_STDIO_READ_FUNCS=0;
19226 REPLACE_STDIO_WRITE_FUNCS=0;
19227 REPLACE_TMPFILE=0;
19228 REPLACE_VASPRINTF=0;
19229 REPLACE_VDPRINTF=0;
19230 REPLACE_VFPRINTF=0;
19231 REPLACE_VPRINTF=0;
19232 REPLACE_VSNPRINTF=0;
19233 REPLACE_VSPRINTF=0;
19234
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19236 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19237 if test "${ac_cv_struct_tm+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19239 else
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19242 #include <sys/types.h>
19243 #include <time.h>
19244
19245 int
19246 main ()
19247 {
19248 struct tm tm;
19249 int *p = &tm.tm_sec;
19250 return !p;
19251 ;
19252 return 0;
19253 }
19254 _ACEOF
19255 if ac_fn_c_try_compile "$LINENO"; then :
19256 ac_cv_struct_tm=time.h
19257 else
19258 ac_cv_struct_tm=sys/time.h
19259 fi
19260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19261 fi
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19263 $as_echo "$ac_cv_struct_tm" >&6; }
19264 if test $ac_cv_struct_tm = sys/time.h; then
19265
19266 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19267
19268 fi
19269
19270 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19271 #include <$ac_cv_struct_tm>
19272
19273 "
19274 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19275
19276 cat >>confdefs.h <<_ACEOF
19277 #define HAVE_STRUCT_TM_TM_ZONE 1
19278 _ACEOF
19279
19280
19281 fi
19282
19283 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19284
19285 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19286
19287 else
19288 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19289 "
19290 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19291 ac_have_decl=1
19292 else
19293 ac_have_decl=0
19294 fi
19295
19296 cat >>confdefs.h <<_ACEOF
19297 #define HAVE_DECL_TZNAME $ac_have_decl
19298 _ACEOF
19299
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19301 $as_echo_n "checking for tzname... " >&6; }
19302 if test "${ac_cv_var_tzname+set}" = set; then :
19303 $as_echo_n "(cached) " >&6
19304 else
19305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306 /* end confdefs.h. */
19307 #include <time.h>
19308 #if !HAVE_DECL_TZNAME
19309 extern char *tzname[];
19310 #endif
19311
19312 int
19313 main ()
19314 {
19315 return tzname[0][0];
19316 ;
19317 return 0;
19318 }
19319 _ACEOF
19320 if ac_fn_c_try_link "$LINENO"; then :
19321 ac_cv_var_tzname=yes
19322 else
19323 ac_cv_var_tzname=no
19324 fi
19325 rm -f core conftest.err conftest.$ac_objext \
19326 conftest$ac_exeext conftest.$ac_ext
19327 fi
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19329 $as_echo "$ac_cv_var_tzname" >&6; }
19330 if test $ac_cv_var_tzname = yes; then
19331
19332 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19333
19334 fi
19335 fi
19336
19337
19338 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19339 "
19340 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19341
19342 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19343
19344 fi
19345
19346
19347
19348
19349 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19350 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19351 ac_have_decl=1
19352 else
19353 ac_have_decl=0
19354 fi
19355
19356 cat >>confdefs.h <<_ACEOF
19357 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19358 _ACEOF
19359
19360
19361
19362 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19363 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19364 ac_have_decl=1
19365 else
19366 ac_have_decl=0
19367 fi
19368
19369 cat >>confdefs.h <<_ACEOF
19370 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19371 _ACEOF
19372
19373
19374
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19376 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19377 if test "${ac_cv_header_stat_broken+set}" = set; then :
19378 $as_echo_n "(cached) " >&6
19379 else
19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h. */
19382 #include <sys/types.h>
19383 #include <sys/stat.h>
19384
19385 #if defined S_ISBLK && defined S_IFDIR
19386 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19387 #endif
19388
19389 #if defined S_ISBLK && defined S_IFCHR
19390 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19391 #endif
19392
19393 #if defined S_ISLNK && defined S_IFREG
19394 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19395 #endif
19396
19397 #if defined S_ISSOCK && defined S_IFREG
19398 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19399 #endif
19400
19401 _ACEOF
19402 if ac_fn_c_try_compile "$LINENO"; then :
19403 ac_cv_header_stat_broken=no
19404 else
19405 ac_cv_header_stat_broken=yes
19406 fi
19407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19408 fi
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19410 $as_echo "$ac_cv_header_stat_broken" >&6; }
19411 if test $ac_cv_header_stat_broken = yes; then
19412
19413 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19414
19415 fi
19416
19417
19418
19419 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19420 if test "x$ac_cv_type_mode_t" = x""yes; then :
19421
19422 else
19423
19424 cat >>confdefs.h <<_ACEOF
19425 #define mode_t int
19426 _ACEOF
19427
19428 fi
19429
19430
19431
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19433 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19434 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19435 $as_echo_n "(cached) " >&6
19436 else
19437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438 /* end confdefs.h. */
19439 #include <time.h>
19440
19441 int
19442 main ()
19443 {
19444 static struct timespec x; x.tv_sec = x.tv_nsec;
19445 ;
19446 return 0;
19447 }
19448 _ACEOF
19449 if ac_fn_c_try_compile "$LINENO"; then :
19450 gl_cv_sys_struct_timespec_in_time_h=yes
19451 else
19452 gl_cv_sys_struct_timespec_in_time_h=no
19453 fi
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 fi
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19457 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19458
19459 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19460 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19461 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19462 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19463 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19464 else
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19466 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19467 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19468 $as_echo_n "(cached) " >&6
19469 else
19470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h. */
19472 #include <sys/time.h>
19473
19474 int
19475 main ()
19476 {
19477 static struct timespec x; x.tv_sec = x.tv_nsec;
19478 ;
19479 return 0;
19480 }
19481 _ACEOF
19482 if ac_fn_c_try_compile "$LINENO"; then :
19483 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19484 else
19485 gl_cv_sys_struct_timespec_in_sys_time_h=no
19486 fi
19487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488 fi
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19490 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19491 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19492 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19493 else
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19495 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19496 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19497 $as_echo_n "(cached) " >&6
19498 else
19499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19500 /* end confdefs.h. */
19501 #include <pthread.h>
19502
19503 int
19504 main ()
19505 {
19506 static struct timespec x; x.tv_sec = x.tv_nsec;
19507 ;
19508 return 0;
19509 }
19510 _ACEOF
19511 if ac_fn_c_try_compile "$LINENO"; then :
19512 gl_cv_sys_struct_timespec_in_pthread_h=yes
19513 else
19514 gl_cv_sys_struct_timespec_in_pthread_h=no
19515 fi
19516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517 fi
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19519 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19520 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19521 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19522 fi
19523 fi
19524 fi
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540 if test $gl_cv_have_include_next = yes; then
19541 gl_cv_next_time_h='<'time.h'>'
19542 else
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19544 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19545 if test "${gl_cv_next_time_h+set}" = set; then :
19546 $as_echo_n "(cached) " >&6
19547 else
19548
19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19551 #include <time.h>
19552
19553 _ACEOF
19554 case "$host_os" in
19555 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19556 *) gl_absname_cpp="$ac_cpp" ;;
19557 esac
19558
19559 case "$host_os" in
19560 mingw*)
19561 gl_dirsep_regex='[/\\]'
19562 ;;
19563 *)
19564 gl_dirsep_regex='\/'
19565 ;;
19566 esac
19567 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19568
19569 gl_header_literal_regex=`echo 'time.h' \
19570 | sed -e "$gl_make_literal_regex_sed"`
19571 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19572 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19573 s|^/[^/]|//&|
19574 p
19575 q
19576 }'
19577 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19578 sed -n "$gl_absolute_header_sed"`'"'
19579
19580
19581 fi
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19583 $as_echo "$gl_cv_next_time_h" >&6; }
19584 fi
19585 NEXT_TIME_H=$gl_cv_next_time_h
19586
19587 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19589 gl_next_as_first_directive='<'time.h'>'
19590 else
19591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19592 gl_next_as_first_directive=$gl_cv_next_time_h
19593 fi
19594 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19611 $as_echo_n "checking whether the utimes function works... " >&6; }
19612 if test "${gl_cv_func_working_utimes+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615
19616 if test "$cross_compiling" = yes; then :
19617 gl_cv_func_working_utimes=no
19618 else
19619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19621
19622 #include <sys/types.h>
19623 #include <sys/stat.h>
19624 #include <fcntl.h>
19625 #include <sys/time.h>
19626 #include <time.h>
19627 #include <unistd.h>
19628 #include <stdlib.h>
19629 #include <stdio.h>
19630 #include <utime.h>
19631
19632 static int
19633 inorder (time_t a, time_t b, time_t c)
19634 {
19635 return a <= b && b <= c;
19636 }
19637
19638 int
19639 main ()
19640 {
19641 int result = 0;
19642 char const *file = "conftest.utimes";
19643 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19644
19645 /* Test whether utimes() essentially works. */
19646 {
19647 struct stat sbuf;
19648 FILE *f = fopen (file, "w");
19649 if (f == NULL)
19650 result |= 1;
19651 else if (fclose (f) != 0)
19652 result |= 1;
19653 else if (utimes (file, timeval) != 0)
19654 result |= 2;
19655 else if (lstat (file, &sbuf) != 0)
19656 result |= 1;
19657 else if (!(sbuf.st_atime == timeval[0].tv_sec
19658 && sbuf.st_mtime == timeval[1].tv_sec))
19659 result |= 4;
19660 if (unlink (file) != 0)
19661 result |= 1;
19662 }
19663
19664 /* Test whether utimes() with a NULL argument sets the file's timestamp
19665 to the current time. Use 'fstat' as well as 'time' to
19666 determine the "current" time, to accommodate NFS file systems
19667 if there is a time skew between the host and the NFS server. */
19668 {
19669 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19670 if (fd < 0)
19671 result |= 1;
19672 else
19673 {
19674 time_t t0, t2;
19675 struct stat st0, st1, st2;
19676 if (time (&t0) == (time_t) -1)
19677 result |= 1;
19678 else if (fstat (fd, &st0) != 0)
19679 result |= 1;
19680 else if (utimes (file, timeval) != 0)
19681 result |= 2;
19682 else if (utimes (file, NULL) != 0)
19683 result |= 8;
19684 else if (fstat (fd, &st1) != 0)
19685 result |= 1;
19686 else if (write (fd, "\n", 1) != 1)
19687 result |= 1;
19688 else if (fstat (fd, &st2) != 0)
19689 result |= 1;
19690 else if (time (&t2) == (time_t) -1)
19691 result |= 1;
19692 else
19693 {
19694 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19695 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19696 if (! (st1.st_atime == st1.st_mtime))
19697 result |= 16;
19698 if (! (m_ok_POSIX || m_ok_NFS))
19699 result |= 32;
19700 }
19701 if (close (fd) != 0)
19702 result |= 1;
19703 }
19704 if (unlink (file) != 0)
19705 result |= 1;
19706 }
19707
19708 /* Test whether utimes() with a NULL argument works on read-only files. */
19709 {
19710 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19711 if (fd < 0)
19712 result |= 1;
19713 else if (close (fd) != 0)
19714 result |= 1;
19715 else if (utimes (file, NULL) != 0)
19716 result |= 64;
19717 if (unlink (file) != 0)
19718 result |= 1;
19719 }
19720
19721 return result;
19722 }
19723
19724 _ACEOF
19725 if ac_fn_c_try_run "$LINENO"; then :
19726 gl_cv_func_working_utimes=yes
19727 else
19728 gl_cv_func_working_utimes=no
19729 fi
19730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19731 conftest.$ac_objext conftest.beam conftest.$ac_ext
19732 fi
19733
19734 fi
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
19736 $as_echo "$gl_cv_func_working_utimes" >&6; }
19737
19738 if test $gl_cv_func_working_utimes = yes; then
19739
19740 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
19741
19742 fi
19743
19744
19745
19746
19747
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
19749 $as_echo_n "checking for struct utimbuf... " >&6; }
19750 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
19751 $as_echo_n "(cached) " >&6
19752 else
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19755 #if HAVE_SYS_TIME_H
19756 #include <sys/time.h>
19757 #endif
19758 #include <time.h>
19759 #ifdef HAVE_UTIME_H
19760 #include <utime.h>
19761 #endif
19762
19763 int
19764 main ()
19765 {
19766 static struct utimbuf x; x.actime = x.modtime;
19767 ;
19768 return 0;
19769 }
19770 _ACEOF
19771 if ac_fn_c_try_compile "$LINENO"; then :
19772 gl_cv_sys_struct_utimbuf=yes
19773 else
19774 gl_cv_sys_struct_utimbuf=no
19775 fi
19776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777 fi
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
19779 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
19780
19781 if test $gl_cv_sys_struct_utimbuf = yes; then
19782
19783 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
19784
19785 fi
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798 if false; then
19799 GL_COND_LIBTOOL_TRUE=
19800 GL_COND_LIBTOOL_FALSE='#'
19801 else
19802 GL_COND_LIBTOOL_TRUE='#'
19803 GL_COND_LIBTOOL_FALSE=
19804 fi
19805
19806 gl_cond_libtool=false
19807 gl_libdeps=
19808 gl_ltlibdeps=
19809 gl_m4_base='m4'
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819 gl_source_base='lib'
19820
19821
19822 if test $ac_cv_func_alloca_works = no; then
19823 :
19824 fi
19825
19826 # Define an additional variable used in the Makefile substitution.
19827 if test $ac_cv_working_alloca_h = yes; then
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19829 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19830 if test "${gl_cv_rpl_alloca+set}" = set; then :
19831 $as_echo_n "(cached) " >&6
19832 else
19833
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h. */
19836
19837 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19838 Need own alloca
19839 #endif
19840
19841 _ACEOF
19842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19843 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19844 gl_cv_rpl_alloca=yes
19845 else
19846 gl_cv_rpl_alloca=no
19847 fi
19848 rm -f conftest*
19849
19850
19851 fi
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19853 $as_echo "$gl_cv_rpl_alloca" >&6; }
19854 if test $gl_cv_rpl_alloca = yes; then
19855
19856 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19857
19858 ALLOCA_H=alloca.h
19859 else
19860 ALLOCA_H=
19861 fi
19862 else
19863 ALLOCA_H=alloca.h
19864 fi
19865
19866 if test -n "$ALLOCA_H"; then
19867 GL_GENERATE_ALLOCA_H_TRUE=
19868 GL_GENERATE_ALLOCA_H_FALSE='#'
19869 else
19870 GL_GENERATE_ALLOCA_H_TRUE='#'
19871 GL_GENERATE_ALLOCA_H_FALSE=
19872 fi
19873
19874
19875
19876
19877
19878
19879 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19880 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19881
19882 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
19883 # programs in the package would end up linked with that potentially-shared
19884 # library, inducing unnecessary run-time overhead.
19885 LIB_CLOCK_GETTIME=
19886
19887 gl_saved_libs=$LIBS
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19889 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19890 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19891 $as_echo_n "(cached) " >&6
19892 else
19893 ac_func_search_save_LIBS=$LIBS
19894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19895 /* end confdefs.h. */
19896
19897 /* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
19900 #ifdef __cplusplus
19901 extern "C"
19902 #endif
19903 char clock_gettime ();
19904 int
19905 main ()
19906 {
19907 return clock_gettime ();
19908 ;
19909 return 0;
19910 }
19911 _ACEOF
19912 for ac_lib in '' rt posix4; do
19913 if test -z "$ac_lib"; then
19914 ac_res="none required"
19915 else
19916 ac_res=-l$ac_lib
19917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19918 fi
19919 if ac_fn_c_try_link "$LINENO"; then :
19920 ac_cv_search_clock_gettime=$ac_res
19921 fi
19922 rm -f core conftest.err conftest.$ac_objext \
19923 conftest$ac_exeext
19924 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19925 break
19926 fi
19927 done
19928 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19929
19930 else
19931 ac_cv_search_clock_gettime=no
19932 fi
19933 rm conftest.$ac_ext
19934 LIBS=$ac_func_search_save_LIBS
19935 fi
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19937 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19938 ac_res=$ac_cv_search_clock_gettime
19939 if test "$ac_res" != no; then :
19940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19941 test "$ac_cv_search_clock_gettime" = "none required" ||
19942 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
19943 fi
19944
19945 for ac_func in clock_gettime clock_settime
19946 do :
19947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19948 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19949 eval as_val=\$$as_ac_var
19950 if test "x$as_val" = x""yes; then :
19951 cat >>confdefs.h <<_ACEOF
19952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19953 _ACEOF
19954
19955 fi
19956 done
19957
19958 LIBS=$gl_saved_libs
19959
19960
19961
19962
19963 :
19964
19965
19966
19967
19968 :
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19985
19986
19987 if test $HAVE_DUP2 = 1; then
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19989 $as_echo_n "checking whether dup2 works... " >&6; }
19990 if test "${gl_cv_func_dup2_works+set}" = set; then :
19991 $as_echo_n "(cached) " >&6
19992 else
19993 if test "$cross_compiling" = yes; then :
19994 case "$host_os" in
19995 mingw*) # on this platform, dup2 always returns 0 for success
19996 gl_cv_func_dup2_works="guessing no" ;;
19997 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19998 gl_cv_func_dup2_works="guessing no" ;;
19999 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20000 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20001 gl_cv_func_dup2_works="guessing no" ;;
20002 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20003 gl_cv_func_dup2_works="guessing no" ;;
20004 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20005 gl_cv_func_dup2_works="guessing no" ;;
20006 *) gl_cv_func_dup2_works="guessing yes" ;;
20007 esac
20008 else
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20011
20012 #include <unistd.h>
20013 #include <fcntl.h>
20014 #include <errno.h>
20015 int
20016 main ()
20017 {
20018 int result = 0;
20019 #ifdef FD_CLOEXEC
20020 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20021 result |= 1;
20022 #endif
20023 if (dup2 (1, 1) == 0)
20024 result |= 2;
20025 #ifdef FD_CLOEXEC
20026 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20027 result |= 4;
20028 #endif
20029 close (0);
20030 if (dup2 (0, 0) != -1)
20031 result |= 8;
20032 /* Many gnulib modules require POSIX conformance of EBADF. */
20033 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20034 result |= 16;
20035 return result;
20036
20037 ;
20038 return 0;
20039 }
20040
20041 _ACEOF
20042 if ac_fn_c_try_run "$LINENO"; then :
20043 gl_cv_func_dup2_works=yes
20044 else
20045 gl_cv_func_dup2_works=no
20046 fi
20047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20048 conftest.$ac_objext conftest.beam conftest.$ac_ext
20049 fi
20050
20051
20052 fi
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20054 $as_echo "$gl_cv_func_dup2_works" >&6; }
20055 case "$gl_cv_func_dup2_works" in
20056 *yes) ;;
20057 *)
20058 REPLACE_DUP2=1
20059 ;;
20060 esac
20061 fi
20062
20063
20064 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20065
20066
20067
20068
20069
20070
20071
20072
20073 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20074
20075
20076 fi
20077
20078
20079
20080
20081
20082 GNULIB_DUP2=1
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094 GNULIB_ENVIRON=1
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107 # Persuade glibc <stdlib.h> to declare getloadavg().
20108
20109
20110 gl_save_LIBS=$LIBS
20111
20112 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20113 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20114 HAVE_GETLOADAVG=1
20115 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20116 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20117
20118 else
20119 gl_func_getloadavg_done=no
20120
20121 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20122 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20123 # to get the right answer into the cache.
20124 # For kstat on solaris, we need to test for libelf and libkvm to force the
20125 # definition of SVR4 below.
20126 if test $gl_func_getloadavg_done = no; then
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20128 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20129 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20130 $as_echo_n "(cached) " >&6
20131 else
20132 ac_check_lib_save_LIBS=$LIBS
20133 LIBS="-lelf $LIBS"
20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20135 /* end confdefs.h. */
20136
20137 /* Override any GCC internal prototype to avoid an error.
20138 Use char because int might match the return type of a GCC
20139 builtin and then its argument prototype would still apply. */
20140 #ifdef __cplusplus
20141 extern "C"
20142 #endif
20143 char elf_begin ();
20144 int
20145 main ()
20146 {
20147 return elf_begin ();
20148 ;
20149 return 0;
20150 }
20151 _ACEOF
20152 if ac_fn_c_try_link "$LINENO"; then :
20153 ac_cv_lib_elf_elf_begin=yes
20154 else
20155 ac_cv_lib_elf_elf_begin=no
20156 fi
20157 rm -f core conftest.err conftest.$ac_objext \
20158 conftest$ac_exeext conftest.$ac_ext
20159 LIBS=$ac_check_lib_save_LIBS
20160 fi
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20162 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20163 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20164 LIBS="-lelf $LIBS"
20165 fi
20166
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20168 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20169 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20170 $as_echo_n "(cached) " >&6
20171 else
20172 ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-lkvm $LIBS"
20174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h. */
20176
20177 /* Override any GCC internal prototype to avoid an error.
20178 Use char because int might match the return type of a GCC
20179 builtin and then its argument prototype would still apply. */
20180 #ifdef __cplusplus
20181 extern "C"
20182 #endif
20183 char kvm_open ();
20184 int
20185 main ()
20186 {
20187 return kvm_open ();
20188 ;
20189 return 0;
20190 }
20191 _ACEOF
20192 if ac_fn_c_try_link "$LINENO"; then :
20193 ac_cv_lib_kvm_kvm_open=yes
20194 else
20195 ac_cv_lib_kvm_kvm_open=no
20196 fi
20197 rm -f core conftest.err conftest.$ac_objext \
20198 conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20200 fi
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20202 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20203 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20204 LIBS="-lkvm $LIBS"
20205 fi
20206
20207 # Check for the 4.4BSD definition of getloadavg.
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20209 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20210 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20211 $as_echo_n "(cached) " >&6
20212 else
20213 ac_check_lib_save_LIBS=$LIBS
20214 LIBS="-lutil $LIBS"
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20217
20218 /* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20221 #ifdef __cplusplus
20222 extern "C"
20223 #endif
20224 char getloadavg ();
20225 int
20226 main ()
20227 {
20228 return getloadavg ();
20229 ;
20230 return 0;
20231 }
20232 _ACEOF
20233 if ac_fn_c_try_link "$LINENO"; then :
20234 ac_cv_lib_util_getloadavg=yes
20235 else
20236 ac_cv_lib_util_getloadavg=no
20237 fi
20238 rm -f core conftest.err conftest.$ac_objext \
20239 conftest$ac_exeext conftest.$ac_ext
20240 LIBS=$ac_check_lib_save_LIBS
20241 fi
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20243 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20244 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20245 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20246 fi
20247
20248 fi
20249
20250 if test $gl_func_getloadavg_done = no; then
20251 # There is a commonly available library for RS/6000 AIX.
20252 # Since it is not a standard part of AIX, it might be installed locally.
20253 gl_getloadavg_LIBS=$LIBS
20254 LIBS="-L/usr/local/lib $LIBS"
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20256 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20257 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20258 $as_echo_n "(cached) " >&6
20259 else
20260 ac_check_lib_save_LIBS=$LIBS
20261 LIBS="-lgetloadavg $LIBS"
20262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20264
20265 /* Override any GCC internal prototype to avoid an error.
20266 Use char because int might match the return type of a GCC
20267 builtin and then its argument prototype would still apply. */
20268 #ifdef __cplusplus
20269 extern "C"
20270 #endif
20271 char getloadavg ();
20272 int
20273 main ()
20274 {
20275 return getloadavg ();
20276 ;
20277 return 0;
20278 }
20279 _ACEOF
20280 if ac_fn_c_try_link "$LINENO"; then :
20281 ac_cv_lib_getloadavg_getloadavg=yes
20282 else
20283 ac_cv_lib_getloadavg_getloadavg=no
20284 fi
20285 rm -f core conftest.err conftest.$ac_objext \
20286 conftest$ac_exeext conftest.$ac_ext
20287 LIBS=$ac_check_lib_save_LIBS
20288 fi
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20290 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20291 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20292 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20293 else
20294 LIBS=$gl_getloadavg_LIBS
20295 fi
20296
20297 fi
20298
20299 # Set up the replacement function if necessary.
20300 if test $gl_func_getloadavg_done = no; then
20301 HAVE_GETLOADAVG=0
20302
20303 # Solaris has libkstat which does not require root.
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20305 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20306 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20307 $as_echo_n "(cached) " >&6
20308 else
20309 ac_check_lib_save_LIBS=$LIBS
20310 LIBS="-lkstat $LIBS"
20311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h. */
20313
20314 /* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20317 #ifdef __cplusplus
20318 extern "C"
20319 #endif
20320 char kstat_open ();
20321 int
20322 main ()
20323 {
20324 return kstat_open ();
20325 ;
20326 return 0;
20327 }
20328 _ACEOF
20329 if ac_fn_c_try_link "$LINENO"; then :
20330 ac_cv_lib_kstat_kstat_open=yes
20331 else
20332 ac_cv_lib_kstat_kstat_open=no
20333 fi
20334 rm -f core conftest.err conftest.$ac_objext \
20335 conftest$ac_exeext conftest.$ac_ext
20336 LIBS=$ac_check_lib_save_LIBS
20337 fi
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20339 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20340 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20341 cat >>confdefs.h <<_ACEOF
20342 #define HAVE_LIBKSTAT 1
20343 _ACEOF
20344
20345 LIBS="-lkstat $LIBS"
20346
20347 fi
20348
20349 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20350
20351 # AIX has libperfstat which does not require root
20352 if test $gl_func_getloadavg_done = no; then
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20354 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20355 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20356 $as_echo_n "(cached) " >&6
20357 else
20358 ac_check_lib_save_LIBS=$LIBS
20359 LIBS="-lperfstat $LIBS"
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20362
20363 /* Override any GCC internal prototype to avoid an error.
20364 Use char because int might match the return type of a GCC
20365 builtin and then its argument prototype would still apply. */
20366 #ifdef __cplusplus
20367 extern "C"
20368 #endif
20369 char perfstat_cpu_total ();
20370 int
20371 main ()
20372 {
20373 return perfstat_cpu_total ();
20374 ;
20375 return 0;
20376 }
20377 _ACEOF
20378 if ac_fn_c_try_link "$LINENO"; then :
20379 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20380 else
20381 ac_cv_lib_perfstat_perfstat_cpu_total=no
20382 fi
20383 rm -f core conftest.err conftest.$ac_objext \
20384 conftest$ac_exeext conftest.$ac_ext
20385 LIBS=$ac_check_lib_save_LIBS
20386 fi
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20388 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20389 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20390 cat >>confdefs.h <<_ACEOF
20391 #define HAVE_LIBPERFSTAT 1
20392 _ACEOF
20393
20394 LIBS="-lperfstat $LIBS"
20395
20396 fi
20397
20398 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20399 fi
20400
20401 if test $gl_func_getloadavg_done = no; then
20402 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20403 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20404 gl_func_getloadavg_done=yes
20405
20406 $as_echo "#define DGUX 1" >>confdefs.h
20407
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20409 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20410 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20411 $as_echo_n "(cached) " >&6
20412 else
20413 ac_check_lib_save_LIBS=$LIBS
20414 LIBS="-ldgc $LIBS"
20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20416 /* end confdefs.h. */
20417
20418 /* Override any GCC internal prototype to avoid an error.
20419 Use char because int might match the return type of a GCC
20420 builtin and then its argument prototype would still apply. */
20421 #ifdef __cplusplus
20422 extern "C"
20423 #endif
20424 char dg_sys_info ();
20425 int
20426 main ()
20427 {
20428 return dg_sys_info ();
20429 ;
20430 return 0;
20431 }
20432 _ACEOF
20433 if ac_fn_c_try_link "$LINENO"; then :
20434 ac_cv_lib_dgc_dg_sys_info=yes
20435 else
20436 ac_cv_lib_dgc_dg_sys_info=no
20437 fi
20438 rm -f core conftest.err conftest.$ac_objext \
20439 conftest$ac_exeext conftest.$ac_ext
20440 LIBS=$ac_check_lib_save_LIBS
20441 fi
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20443 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20444 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20445 cat >>confdefs.h <<_ACEOF
20446 #define HAVE_LIBDGC 1
20447 _ACEOF
20448
20449 LIBS="-ldgc $LIBS"
20450
20451 fi
20452
20453 fi
20454
20455
20456 fi
20457 fi
20458 fi
20459
20460
20461 if test "x$gl_save_LIBS" = x; then
20462 GETLOADAVG_LIBS=$LIBS
20463 else
20464 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20465 fi
20466 LIBS=$gl_save_LIBS
20467
20468
20469 # Test whether the system declares getloadavg. Solaris has the function
20470 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20471 for ac_header in sys/loadavg.h
20472 do :
20473 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20474 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20475 cat >>confdefs.h <<_ACEOF
20476 #define HAVE_SYS_LOADAVG_H 1
20477 _ACEOF
20478
20479 fi
20480
20481 done
20482
20483 if test $ac_cv_header_sys_loadavg_h = yes; then
20484 HAVE_SYS_LOADAVG_H=1
20485 else
20486 HAVE_SYS_LOADAVG_H=0
20487 fi
20488 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20489 # include <sys/loadavg.h>
20490 #endif
20491 #include <stdlib.h>
20492 "
20493 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20494
20495 else
20496 HAVE_DECL_GETLOADAVG=0
20497 fi
20498
20499
20500 if test $HAVE_GETLOADAVG = 0; then
20501
20502
20503
20504
20505
20506
20507
20508
20509 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20510
20511
20512 # Figure out what our getloadavg.c needs.
20513
20514
20515
20516 # On HPUX9, an unprivileged user can get load averages this way.
20517 if test $gl_func_getloadavg_done = no; then
20518 for ac_func in pstat_getdynamic
20519 do :
20520 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20521 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20522 cat >>confdefs.h <<_ACEOF
20523 #define HAVE_PSTAT_GETDYNAMIC 1
20524 _ACEOF
20525 gl_func_getloadavg_done=yes
20526 fi
20527 done
20528
20529 fi
20530
20531 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20532 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20533 # Irix 4.0.5F has the header but not the library.
20534 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20535 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20536 gl_func_getloadavg_done=yes
20537
20538 $as_echo "#define SVR4 1" >>confdefs.h
20539
20540 fi
20541
20542 if test $gl_func_getloadavg_done = no; then
20543 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20544 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20545 gl_func_getloadavg_done=yes
20546
20547 $as_echo "#define UMAX 1" >>confdefs.h
20548
20549
20550 $as_echo "#define UMAX4_3 1" >>confdefs.h
20551
20552 fi
20553
20554
20555 fi
20556
20557 if test $gl_func_getloadavg_done = no; then
20558 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20559 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20560 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20561
20562 fi
20563
20564
20565 fi
20566
20567 if test $gl_func_getloadavg_done = no; then
20568 for ac_header in mach/mach.h
20569 do :
20570 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20571 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20572 cat >>confdefs.h <<_ACEOF
20573 #define HAVE_MACH_MACH_H 1
20574 _ACEOF
20575
20576 fi
20577
20578 done
20579
20580 fi
20581
20582 for ac_header in nlist.h
20583 do :
20584 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20585 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20586 cat >>confdefs.h <<_ACEOF
20587 #define HAVE_NLIST_H 1
20588 _ACEOF
20589 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20590 "
20591 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20592
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20595 _ACEOF
20596
20597
20598 fi
20599
20600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20602 #include <nlist.h>
20603 int
20604 main ()
20605 {
20606 struct nlist x;
20607 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20608 x.n_un.n_name = "";
20609 #else
20610 x.n_name = "";
20611 #endif
20612 ;
20613 return 0;
20614 }
20615 _ACEOF
20616 if ac_fn_c_try_link "$LINENO"; then :
20617
20618 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20619
20620 fi
20621 rm -f core conftest.err conftest.$ac_objext \
20622 conftest$ac_exeext conftest.$ac_ext
20623
20624 fi
20625
20626 done
20627
20628 fi
20629
20630
20631
20632
20633
20634 GNULIB_GETLOADAVG=1
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645 if test $REPLACE_GETOPT = 1; then
20646
20647
20648
20649
20650
20651
20652
20653
20654 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20665
20666
20667
20668
20669 GNULIB_GL_UNISTD_H_GETOPT=1
20670 fi
20671
20672
20673
20674
20675
20676
20677
20678 REPLACE_GETOPT=0
20679 if test -n "$gl_replace_getopt"; then
20680 REPLACE_GETOPT=1
20681 fi
20682
20683 if test $REPLACE_GETOPT = 1; then
20684
20685 GETOPT_H=getopt.h
20686
20687 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20688
20689
20690
20691 fi
20692
20693 if test $REPLACE_GETOPT = 1; then
20694
20695
20696
20697
20698
20699
20700
20701
20702 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20713
20714
20715
20716
20717 GNULIB_GL_UNISTD_H_GETOPT=1
20718 fi
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731 gl_gettimeofday_timezone=void
20732 if test $ac_cv_func_gettimeofday != yes; then
20733 HAVE_GETTIMEOFDAY=0
20734 else
20735
20736
20737
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20739 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20740 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
20741 $as_echo_n "(cached) " >&6
20742 else
20743 if test "$cross_compiling" = yes; then :
20744 # When cross-compiling:
20745 case "$host_os" in
20746 # Guess all is fine on glibc systems.
20747 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
20748 # If we don't know, assume the worst.
20749 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
20750 esac
20751
20752 else
20753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h. */
20755 #include <string.h>
20756 #include <sys/time.h>
20757 #include <time.h>
20758 #include <stdlib.h>
20759
20760 int
20761 main ()
20762 {
20763
20764 time_t t = 0;
20765 struct tm *lt;
20766 struct tm saved_lt;
20767 struct timeval tv;
20768 lt = localtime (&t);
20769 saved_lt = *lt;
20770 gettimeofday (&tv, NULL);
20771 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20772
20773 ;
20774 return 0;
20775 }
20776 _ACEOF
20777 if ac_fn_c_try_run "$LINENO"; then :
20778 gl_cv_func_gettimeofday_clobber=no
20779 else
20780 gl_cv_func_gettimeofday_clobber=yes
20781 fi
20782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20783 conftest.$ac_objext conftest.beam conftest.$ac_ext
20784 fi
20785
20786 fi
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20788 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20789
20790 case "$gl_cv_func_gettimeofday_clobber" in
20791 *yes)
20792 REPLACE_GETTIMEOFDAY=1
20793
20794
20795 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
20796
20797
20798 $as_echo "#define localtime rpl_localtime" >>confdefs.h
20799
20800
20801
20802 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20803
20804 ;;
20805 esac
20806
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20808 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20809 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
20810 $as_echo_n "(cached) " >&6
20811 else
20812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20813 /* end confdefs.h. */
20814 #include <sys/time.h>
20815 struct timeval c;
20816 int gettimeofday (struct timeval *restrict, void *restrict);
20817
20818 int
20819 main ()
20820 {
20821 /* glibc uses struct timezone * rather than the POSIX void *
20822 if _GNU_SOURCE is defined. However, since the only portable
20823 use of gettimeofday uses NULL as the second parameter, and
20824 since the glibc definition is actually more typesafe, it is
20825 not worth wrapping this to get a compliant signature. */
20826 int (*f) (struct timeval *restrict, void *restrict)
20827 = gettimeofday;
20828 int x = f (&c, 0);
20829 return !(x | c.tv_sec | c.tv_usec);
20830
20831 ;
20832 return 0;
20833 }
20834 _ACEOF
20835 if ac_fn_c_try_compile "$LINENO"; then :
20836 gl_cv_func_gettimeofday_posix_signature=yes
20837 else
20838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20840 #include <sys/time.h>
20841 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20842
20843 int
20844 main ()
20845 {
20846
20847 ;
20848 return 0;
20849 }
20850 _ACEOF
20851 if ac_fn_c_try_compile "$LINENO"; then :
20852 gl_cv_func_gettimeofday_posix_signature=almost
20853 else
20854 gl_cv_func_gettimeofday_posix_signature=no
20855 fi
20856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857 fi
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859 fi
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20861 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20862 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
20863 gl_gettimeofday_timezone='struct timezone'
20864 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20865 REPLACE_GETTIMEOFDAY=1
20866 fi
20867 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20868 REPLACE_GETTIMEOFDAY=1
20869 fi
20870
20871 fi
20872
20873 cat >>confdefs.h <<_ACEOF
20874 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20875 _ACEOF
20876
20877
20878 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
20879
20880
20881
20882
20883
20884
20885
20886
20887 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
20888
20889
20890 for ac_header in sys/timeb.h
20891 do :
20892 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
20893 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
20894 cat >>confdefs.h <<_ACEOF
20895 #define HAVE_SYS_TIMEB_H 1
20896 _ACEOF
20897
20898 fi
20899
20900 done
20901
20902 for ac_func in _ftime
20903 do :
20904 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
20905 if test "x$ac_cv_func__ftime" = x""yes; then :
20906 cat >>confdefs.h <<_ACEOF
20907 #define HAVE__FTIME 1
20908 _ACEOF
20909
20910 fi
20911 done
20912
20913
20914 fi
20915
20916
20917
20918
20919
20920 GNULIB_GETTIMEOFDAY=1
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931 if test $ac_cv_func_lstat = yes; then
20932
20933 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
20934 *no)
20935 REPLACE_LSTAT=1
20936 ;;
20937 esac
20938 else
20939 HAVE_LSTAT=0
20940 fi
20941
20942 if test $REPLACE_LSTAT = 1; then
20943
20944
20945
20946
20947
20948
20949
20950
20951 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20952
20953
20954
20955 :
20956
20957 fi
20958
20959
20960
20961
20962
20963 GNULIB_LSTAT=1
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975 if test $APPLE_UNIVERSAL_BUILD = 1; then
20976 # A universal build on Apple Mac OS X platforms.
20977 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20978 # But we need a configuration result that is valid in both modes.
20979 gl_cv_func_working_mktime=no
20980 fi
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20982 $as_echo_n "checking for working mktime... " >&6; }
20983 if test "${gl_cv_func_working_mktime+set}" = set; then :
20984 $as_echo_n "(cached) " >&6
20985 else
20986 if test "$cross_compiling" = yes; then :
20987 gl_cv_func_working_mktime=no
20988 else
20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20991 /* Test program from Paul Eggert and Tony Leneis. */
20992 #include <limits.h>
20993 #include <stdlib.h>
20994 #include <time.h>
20995
20996 #ifdef HAVE_UNISTD_H
20997 # include <unistd.h>
20998 #endif
20999
21000 #ifndef HAVE_ALARM
21001 # define alarm(X) /* empty */
21002 #endif
21003
21004 /* Work around redefinition to rpl_putenv by other config tests. */
21005 #undef putenv
21006
21007 static time_t time_t_max;
21008 static time_t time_t_min;
21009
21010 /* Values we'll use to set the TZ environment variable. */
21011 static char *tz_strings[] = {
21012 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21013 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21014 };
21015 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21016
21017 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21018 Based on a problem report from Andreas Jaeger. */
21019 static int
21020 spring_forward_gap ()
21021 {
21022 /* glibc (up to about 1998-10-07) failed this test. */
21023 struct tm tm;
21024
21025 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21026 instead of "TZ=America/Vancouver" in order to detect the bug even
21027 on systems that don't support the Olson extension, or don't have the
21028 full zoneinfo tables installed. */
21029 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21030
21031 tm.tm_year = 98;
21032 tm.tm_mon = 3;
21033 tm.tm_mday = 5;
21034 tm.tm_hour = 2;
21035 tm.tm_min = 0;
21036 tm.tm_sec = 0;
21037 tm.tm_isdst = -1;
21038 return mktime (&tm) != (time_t) -1;
21039 }
21040
21041 static int
21042 mktime_test1 (time_t now)
21043 {
21044 struct tm *lt;
21045 return ! (lt = localtime (&now)) || mktime (lt) == now;
21046 }
21047
21048 static int
21049 mktime_test (time_t now)
21050 {
21051 return (mktime_test1 (now)
21052 && mktime_test1 ((time_t) (time_t_max - now))
21053 && mktime_test1 ((time_t) (time_t_min + now)));
21054 }
21055
21056 static int
21057 irix_6_4_bug ()
21058 {
21059 /* Based on code from Ariel Faigon. */
21060 struct tm tm;
21061 tm.tm_year = 96;
21062 tm.tm_mon = 3;
21063 tm.tm_mday = 0;
21064 tm.tm_hour = 0;
21065 tm.tm_min = 0;
21066 tm.tm_sec = 0;
21067 tm.tm_isdst = -1;
21068 mktime (&tm);
21069 return tm.tm_mon == 2 && tm.tm_mday == 31;
21070 }
21071
21072 static int
21073 bigtime_test (int j)
21074 {
21075 struct tm tm;
21076 time_t now;
21077 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21078 now = mktime (&tm);
21079 if (now != (time_t) -1)
21080 {
21081 struct tm *lt = localtime (&now);
21082 if (! (lt
21083 && lt->tm_year == tm.tm_year
21084 && lt->tm_mon == tm.tm_mon
21085 && lt->tm_mday == tm.tm_mday
21086 && lt->tm_hour == tm.tm_hour
21087 && lt->tm_min == tm.tm_min
21088 && lt->tm_sec == tm.tm_sec
21089 && lt->tm_yday == tm.tm_yday
21090 && lt->tm_wday == tm.tm_wday
21091 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21092 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21093 return 0;
21094 }
21095 return 1;
21096 }
21097
21098 static int
21099 year_2050_test ()
21100 {
21101 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21102 ignoring leap seconds. */
21103 unsigned long int answer = 2527315200UL;
21104
21105 struct tm tm;
21106 time_t t;
21107 tm.tm_year = 2050 - 1900;
21108 tm.tm_mon = 2 - 1;
21109 tm.tm_mday = 1;
21110 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21111 tm.tm_isdst = -1;
21112
21113 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21114 instead of "TZ=America/Vancouver" in order to detect the bug even
21115 on systems that don't support the Olson extension, or don't have the
21116 full zoneinfo tables installed. */
21117 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21118
21119 t = mktime (&tm);
21120
21121 /* Check that the result is either a failure, or close enough
21122 to the correct answer that we can assume the discrepancy is
21123 due to leap seconds. */
21124 return (t == (time_t) -1
21125 || (0 < t && answer - 120 <= t && t <= answer + 120));
21126 }
21127
21128 int
21129 main ()
21130 {
21131 int result = 0;
21132 time_t t, delta;
21133 int i, j;
21134 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21135 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21136
21137 /* This test makes some buggy mktime implementations loop.
21138 Give up after 60 seconds; a mktime slower than that
21139 isn't worth using anyway. */
21140 alarm (60);
21141
21142 time_t_max = (! time_t_signed
21143 ? (time_t) -1
21144 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21145 * 2 + 1));
21146 time_t_min = (! time_t_signed
21147 ? (time_t) 0
21148 : time_t_signed_magnitude
21149 ? ~ (time_t) 0
21150 : ~ time_t_max);
21151
21152 delta = time_t_max / 997; /* a suitable prime number */
21153 for (i = 0; i < N_STRINGS; i++)
21154 {
21155 if (tz_strings[i])
21156 putenv (tz_strings[i]);
21157
21158 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21159 if (! mktime_test (t))
21160 result |= 1;
21161 if ((result & 2) == 0
21162 && ! (mktime_test ((time_t) 1)
21163 && mktime_test ((time_t) (60 * 60))
21164 && mktime_test ((time_t) (60 * 60 * 24))))
21165 result |= 2;
21166
21167 for (j = 1; (result & 4) == 0; j <<= 1)
21168 {
21169 if (! bigtime_test (j))
21170 result |= 4;
21171 if (INT_MAX / 2 < j)
21172 break;
21173 }
21174 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21175 result |= 8;
21176 }
21177 if (! irix_6_4_bug ())
21178 result |= 16;
21179 if (! spring_forward_gap ())
21180 result |= 32;
21181 if (! year_2050_test ())
21182 result |= 64;
21183 return result;
21184 }
21185 _ACEOF
21186 if ac_fn_c_try_run "$LINENO"; then :
21187 gl_cv_func_working_mktime=yes
21188 else
21189 gl_cv_func_working_mktime=no
21190 fi
21191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21192 conftest.$ac_objext conftest.beam conftest.$ac_ext
21193 fi
21194
21195
21196 fi
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21198 $as_echo "$gl_cv_func_working_mktime" >&6; }
21199
21200 if test $gl_cv_func_working_mktime = no; then
21201 REPLACE_MKTIME=1
21202 else
21203 REPLACE_MKTIME=0
21204 fi
21205
21206 if test $REPLACE_MKTIME = 1; then
21207
21208
21209
21210
21211
21212
21213
21214
21215 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
21216
21217 :
21218 fi
21219
21220
21221
21222
21223
21224 GNULIB_MKTIME=1
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236 if test $ac_cv_func_pselect = yes; then
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21238 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21239 if test "${gl_cv_sig_pselect+set}" = set; then :
21240 $as_echo_n "(cached) " >&6
21241 else
21242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21243 /* end confdefs.h. */
21244 #include <sys/select.h>
21245
21246 int
21247 main ()
21248 {
21249 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21250 struct timespec const *restrict,
21251 sigset_t const *restrict) = pselect;
21252 return !p;
21253 ;
21254 return 0;
21255 }
21256 _ACEOF
21257 if ac_fn_c_try_link "$LINENO"; then :
21258 gl_cv_sig_pselect=yes
21259 else
21260 gl_cv_sig_pselect=no
21261 fi
21262 rm -f core conftest.err conftest.$ac_objext \
21263 conftest$ac_exeext conftest.$ac_ext
21264 fi
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21266 $as_echo "$gl_cv_sig_pselect" >&6; }
21267 fi
21268
21269 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
21270 REPLACE_PSELECT=1
21271 fi
21272
21273 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
21274
21275
21276
21277
21278
21279
21280
21281
21282 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
21283
21284 fi
21285
21286
21287
21288
21289
21290 GNULIB_PSELECT=1
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300 LIB_PTHREAD_SIGMASK=
21301
21302
21303 if test $ac_cv_func_pthread_sigmask = yes; then
21304 :
21305 else
21306 HAVE_PTHREAD_SIGMASK=0
21307 REPLACE_PTHREAD_SIGMASK=1
21308 fi
21309
21310
21311
21312
21313 if test $HAVE_PTHREAD_SIGMASK = 1; then
21314
21315
21316 if test -z "$LIB_PTHREAD_SIGMASK"; then
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21318 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21319 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21320 $as_echo_n "(cached) " >&6
21321 else
21322
21323 if test "$cross_compiling" = yes; then :
21324
21325 case "$host_os" in
21326 freebsd* | hpux* | solaris | solaris2.[2-9]*)
21327 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
21328 *)
21329 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
21330 esac
21331
21332 else
21333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21334 /* end confdefs.h. */
21335
21336 #include <pthread.h>
21337 #include <signal.h>
21338 #include <stddef.h>
21339 int main ()
21340 {
21341 sigset_t set;
21342 sigemptyset (&set);
21343 return pthread_sigmask (1729, &set, NULL) != 0;
21344 }
21345 _ACEOF
21346 if ac_fn_c_try_run "$LINENO"; then :
21347 gl_cv_func_pthread_sigmask_in_libc_works=no
21348 else
21349 gl_cv_func_pthread_sigmask_in_libc_works=yes
21350 fi
21351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21352 conftest.$ac_objext conftest.beam conftest.$ac_ext
21353 fi
21354
21355
21356 fi
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21358 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21359 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21360 *no)
21361 REPLACE_PTHREAD_SIGMASK=1
21362
21363 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21364
21365 ;;
21366 esac
21367 fi
21368
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21370 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21371 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21372 $as_echo_n "(cached) " >&6
21373 else
21374
21375 gl_save_LIBS="$LIBS"
21376 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
21377 if test "$cross_compiling" = yes; then :
21378 case "$host_os" in
21379 cygwin*)
21380 gl_cv_func_pthread_sigmask_return_works="guessing no";;
21381 *)
21382 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
21383 esac
21384
21385 else
21386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387 /* end confdefs.h. */
21388
21389 #include <pthread.h>
21390 #include <signal.h>
21391 #include <stddef.h>
21392 int main ()
21393 {
21394 sigset_t set;
21395 sigemptyset (&set);
21396 if (pthread_sigmask (1729, &set, NULL) == -1)
21397 return 1;
21398 return 0;
21399 }
21400 _ACEOF
21401 if ac_fn_c_try_run "$LINENO"; then :
21402 gl_cv_func_pthread_sigmask_return_works=yes
21403 else
21404 gl_cv_func_pthread_sigmask_return_works=no
21405 fi
21406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21407 conftest.$ac_objext conftest.beam conftest.$ac_ext
21408 fi
21409
21410 LIBS="$gl_save_LIBS"
21411
21412 fi
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21414 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21415 case "$gl_cv_func_pthread_sigmask_return_works" in
21416 *no)
21417 REPLACE_PTHREAD_SIGMASK=1
21418
21419 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21420
21421 ;;
21422 esac
21423
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21425 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21426 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21427 $as_echo_n "(cached) " >&6
21428 else
21429
21430 case "$host_os" in
21431 irix*)
21432 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21433 *)
21434 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21435 esac
21436 gl_save_LIBS="$LIBS"
21437 LIBS="$LIBS $LIBMULTITHREAD"
21438 if test "$cross_compiling" = yes; then :
21439 :
21440 else
21441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21442 /* end confdefs.h. */
21443
21444 #include <pthread.h>
21445 #include <signal.h>
21446 #include <stdio.h>
21447 #include <stdlib.h>
21448 #include <unistd.h>
21449 static volatile int sigint_occurred;
21450 static void
21451 sigint_handler (int sig)
21452 {
21453 sigint_occurred++;
21454 }
21455 int main ()
21456 {
21457 sigset_t set;
21458 int pid = getpid ();
21459 char command[80];
21460 signal (SIGINT, sigint_handler);
21461 sigemptyset (&set);
21462 sigaddset (&set, SIGINT);
21463 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21464 return 1;
21465 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21466 if (!(system (command) == 0))
21467 return 2;
21468 sleep (2);
21469 if (!(sigint_occurred == 0))
21470 return 3;
21471 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21472 return 4;
21473 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21474 return 5;
21475 return 0;
21476 }
21477 _ACEOF
21478 if ac_fn_c_try_run "$LINENO"; then :
21479 :
21480 else
21481 gl_cv_func_pthread_sigmask_unblock_works=no
21482 fi
21483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21484 conftest.$ac_objext conftest.beam conftest.$ac_ext
21485 fi
21486
21487 LIBS="$gl_save_LIBS"
21488
21489 fi
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21491 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21492 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21493 *no)
21494 REPLACE_PTHREAD_SIGMASK=1
21495
21496 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21497
21498 ;;
21499 esac
21500 fi
21501
21502 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21503
21504
21505
21506
21507
21508
21509
21510
21511 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21512
21513
21514 if test $HAVE_PTHREAD_SIGMASK = 1; then
21515
21516 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21517
21518 fi
21519
21520 fi
21521
21522
21523
21524
21525
21526 GNULIB_PTHREAD_SIGMASK=1
21527
21528
21529
21530
21531
21532
21533
21534
21535 if test $ac_cv_func_readlink = no; then
21536 HAVE_READLINK=0
21537 else
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21539 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21540 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21541 $as_echo_n "(cached) " >&6
21542 else
21543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h. */
21545 #include <unistd.h>
21546 /* Cause compilation failure if original declaration has wrong type. */
21547 ssize_t readlink (const char *, char *, size_t);
21548 int
21549 main ()
21550 {
21551
21552 ;
21553 return 0;
21554 }
21555 _ACEOF
21556 if ac_fn_c_try_compile "$LINENO"; then :
21557 gl_cv_decl_readlink_works=yes
21558 else
21559 gl_cv_decl_readlink_works=no
21560 fi
21561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562 fi
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21564 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21566 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21567 if test "${gl_cv_func_readlink_works+set}" = set; then :
21568 $as_echo_n "(cached) " >&6
21569 else
21570 # We have readlink, so assume ln -s works.
21571 ln -s conftest.no-such conftest.link
21572 ln -s conftest.link conftest.lnk2
21573 if test "$cross_compiling" = yes; then :
21574 case "$host_os" in
21575 # Guess yes on glibc systems.
21576 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
21577 # If we don't know, assume the worst.
21578 *) gl_cv_func_readlink_works="guessing no" ;;
21579 esac
21580
21581 else
21582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h. */
21584 #include <unistd.h>
21585
21586 int
21587 main ()
21588 {
21589 char buf[20];
21590 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21591 ;
21592 return 0;
21593 }
21594 _ACEOF
21595 if ac_fn_c_try_run "$LINENO"; then :
21596 gl_cv_func_readlink_works=yes
21597 else
21598 gl_cv_func_readlink_works=no
21599 fi
21600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21601 conftest.$ac_objext conftest.beam conftest.$ac_ext
21602 fi
21603
21604 rm -f conftest.link conftest.lnk2
21605 fi
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21607 $as_echo "$gl_cv_func_readlink_works" >&6; }
21608 case "$gl_cv_func_readlink_works" in
21609 *yes)
21610 if test "$gl_cv_decl_readlink_works" != yes; then
21611 REPLACE_READLINK=1
21612 fi
21613 ;;
21614 *)
21615
21616 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21617
21618 REPLACE_READLINK=1
21619 ;;
21620 esac
21621 fi
21622
21623 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21624
21625
21626
21627
21628
21629
21630
21631
21632 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
21633
21634
21635 :
21636
21637 fi
21638
21639
21640
21641
21642
21643 GNULIB_READLINK=1
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660 if test $gl_cv_have_include_next = yes; then
21661 gl_cv_next_signal_h='<'signal.h'>'
21662 else
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21664 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21665 if test "${gl_cv_next_signal_h+set}" = set; then :
21666 $as_echo_n "(cached) " >&6
21667 else
21668
21669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670 /* end confdefs.h. */
21671 #include <signal.h>
21672
21673 _ACEOF
21674 case "$host_os" in
21675 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21676 *) gl_absname_cpp="$ac_cpp" ;;
21677 esac
21678
21679 case "$host_os" in
21680 mingw*)
21681 gl_dirsep_regex='[/\\]'
21682 ;;
21683 *)
21684 gl_dirsep_regex='\/'
21685 ;;
21686 esac
21687 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21688
21689 gl_header_literal_regex=`echo 'signal.h' \
21690 | sed -e "$gl_make_literal_regex_sed"`
21691 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21692 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21693 s|^/[^/]|//&|
21694 p
21695 q
21696 }'
21697 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21698 sed -n "$gl_absolute_header_sed"`'"'
21699
21700
21701 fi
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21703 $as_echo "$gl_cv_next_signal_h" >&6; }
21704 fi
21705 NEXT_SIGNAL_H=$gl_cv_next_signal_h
21706
21707 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21709 gl_next_as_first_directive='<'signal.h'>'
21710 else
21711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21712 gl_next_as_first_directive=$gl_cv_next_signal_h
21713 fi
21714 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21715
21716
21717
21718
21719
21720 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21721 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21722 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21723 #include <signal.h>
21724
21725 "
21726 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
21727
21728 else
21729 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21730 fi
21731
21732
21733
21734
21735
21736
21737
21738 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21739 #include <signal.h>
21740
21741 "
21742 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
21743
21744 else
21745 HAVE_SIGHANDLER_T=0
21746 fi
21747
21748
21749
21750
21751 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21752 /* <sys/types.h> is not needed according to POSIX, but the
21753 <sys/socket.h> in i386-unknown-freebsd4.10 and
21754 powerpc-apple-darwin5.5 required it. */
21755 #include <sys/types.h>
21756 #if HAVE_SYS_SOCKET_H
21757 # include <sys/socket.h>
21758 #elif HAVE_WS2TCPIP_H
21759 # include <ws2tcpip.h>
21760 #endif
21761
21762 "
21763 if test "x$ac_cv_type_socklen_t" = x""yes; then :
21764
21765 else
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21767 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21768 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21770 else
21771 # Systems have either "struct sockaddr *" or
21772 # "void *" as the second argument to getpeername
21773 gl_cv_socklen_t_equiv=
21774 for arg2 in "struct sockaddr" void; do
21775 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
21776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21777 /* end confdefs.h. */
21778 #include <sys/types.h>
21779 #include <sys/socket.h>
21780
21781 int getpeername (int, $arg2 *, $t *);
21782 int
21783 main ()
21784 {
21785 $t len;
21786 getpeername (0, 0, &len);
21787 ;
21788 return 0;
21789 }
21790 _ACEOF
21791 if ac_fn_c_try_compile "$LINENO"; then :
21792 gl_cv_socklen_t_equiv="$t"
21793 fi
21794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21795 test "$gl_cv_socklen_t_equiv" != "" && break
21796 done
21797 test "$gl_cv_socklen_t_equiv" != "" && break
21798 done
21799
21800 fi
21801
21802 if test "$gl_cv_socklen_t_equiv" = ""; then
21803 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
21804 fi
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21806 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21807
21808 cat >>confdefs.h <<_ACEOF
21809 #define socklen_t $gl_cv_socklen_t_equiv
21810 _ACEOF
21811
21812 fi
21813
21814
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21816 $as_echo_n "checking for ssize_t... " >&6; }
21817 if test "${gt_cv_ssize_t+set}" = set; then :
21818 $as_echo_n "(cached) " >&6
21819 else
21820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21821 /* end confdefs.h. */
21822 #include <sys/types.h>
21823 int
21824 main ()
21825 {
21826 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21827 return !x;
21828 ;
21829 return 0;
21830 }
21831 _ACEOF
21832 if ac_fn_c_try_compile "$LINENO"; then :
21833 gt_cv_ssize_t=yes
21834 else
21835 gt_cv_ssize_t=no
21836 fi
21837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21838 fi
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21840 $as_echo "$gt_cv_ssize_t" >&6; }
21841 if test $gt_cv_ssize_t = no; then
21842
21843 $as_echo "#define ssize_t int" >>confdefs.h
21844
21845 fi
21846
21847
21848
21849
21850
21851 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>
21852 #include <sys/stat.h>
21853 "
21854 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
21855
21856 cat >>confdefs.h <<_ACEOF
21857 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
21858 _ACEOF
21859
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
21861 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
21862 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21864 else
21865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21866 /* end confdefs.h. */
21867
21868 #include <sys/types.h>
21869 #include <sys/stat.h>
21870 #if HAVE_SYS_TIME_H
21871 # include <sys/time.h>
21872 #endif
21873 #include <time.h>
21874 struct timespec ts;
21875 struct stat st;
21876
21877 int
21878 main ()
21879 {
21880
21881 st.st_atim = ts;
21882
21883 ;
21884 return 0;
21885 }
21886 _ACEOF
21887 if ac_fn_c_try_compile "$LINENO"; then :
21888 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
21889 else
21890 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
21891 fi
21892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893 fi
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
21895 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
21896 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
21897
21898 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
21899
21900 fi
21901 else
21902 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>
21903 #include <sys/stat.h>
21904 "
21905 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
21906
21907 cat >>confdefs.h <<_ACEOF
21908 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
21909 _ACEOF
21910
21911
21912 else
21913 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
21914 #include <sys/stat.h>
21915 "
21916 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
21917
21918 cat >>confdefs.h <<_ACEOF
21919 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
21920 _ACEOF
21921
21922
21923 else
21924 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>
21925 #include <sys/stat.h>
21926 "
21927 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
21928
21929 cat >>confdefs.h <<_ACEOF
21930 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
21931 _ACEOF
21932
21933
21934 fi
21935
21936 fi
21937
21938 fi
21939
21940 fi
21941
21942
21943
21944
21945
21946 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>
21947 #include <sys/stat.h>
21948 "
21949 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
21950
21951 cat >>confdefs.h <<_ACEOF
21952 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
21953 _ACEOF
21954
21955
21956 else
21957 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
21958 #include <sys/stat.h>
21959 "
21960 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
21961
21962 cat >>confdefs.h <<_ACEOF
21963 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
21964 _ACEOF
21965
21966
21967 else
21968 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>
21969 #include <sys/stat.h>
21970 "
21971 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
21972
21973 cat >>confdefs.h <<_ACEOF
21974 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
21975 _ACEOF
21976
21977
21978 fi
21979
21980 fi
21981
21982 fi
21983
21984
21985
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
21987 $as_echo_n "checking for working stdalign.h... " >&6; }
21988 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
21989 $as_echo_n "(cached) " >&6
21990 else
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h. */
21993 #include <stdalign.h>
21994 #include <stddef.h>
21995
21996 /* Test that alignof yields a result consistent with offsetof.
21997 This catches GCC bug 52023
21998 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
21999 #ifdef __cplusplus
22000 template <class t> struct alignof_helper { char a; t b; };
22001 # define ao(type) offsetof (alignof_helper<type>, b)
22002 #else
22003 # define ao(type) offsetof (struct { char a; type b; }, b)
22004 #endif
22005 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22006 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22007 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22008
22009 /* Test _Alignas only on platforms where gnulib can help. */
22010 #if \
22011 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22012 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22013 int alignas (8) alignas_int = 1;
22014 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22015 #endif
22016
22017 int
22018 main ()
22019 {
22020
22021 ;
22022 return 0;
22023 }
22024 _ACEOF
22025 if ac_fn_c_try_compile "$LINENO"; then :
22026 gl_cv_header_working_stdalign_h=yes
22027 else
22028 gl_cv_header_working_stdalign_h=no
22029 fi
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 fi
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22033 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22034
22035 if test $gl_cv_header_working_stdalign_h = yes; then
22036 STDALIGN_H=''
22037 else
22038 STDALIGN_H='stdalign.h'
22039 fi
22040
22041
22042 if test -n "$STDALIGN_H"; then
22043 GL_GENERATE_STDALIGN_H_TRUE=
22044 GL_GENERATE_STDALIGN_H_FALSE='#'
22045 else
22046 GL_GENERATE_STDALIGN_H_TRUE='#'
22047 GL_GENERATE_STDALIGN_H_FALSE=
22048 fi
22049
22050
22051
22052 STDARG_H=''
22053 NEXT_STDARG_H='<stdarg.h>'
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22055 $as_echo_n "checking for va_copy... " >&6; }
22056 if test "${gl_cv_func_va_copy+set}" = set; then :
22057 $as_echo_n "(cached) " >&6
22058 else
22059
22060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h. */
22062 #include <stdarg.h>
22063 int
22064 main ()
22065 {
22066
22067 #ifndef va_copy
22068 void (*func) (va_list, va_list) = va_copy;
22069 #endif
22070
22071 ;
22072 return 0;
22073 }
22074 _ACEOF
22075 if ac_fn_c_try_compile "$LINENO"; then :
22076 gl_cv_func_va_copy=yes
22077 else
22078 gl_cv_func_va_copy=no
22079 fi
22080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 fi
22082
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22084 $as_echo "$gl_cv_func_va_copy" >&6; }
22085 if test $gl_cv_func_va_copy = no; then
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22088 #if defined _AIX && !defined __GNUC__
22089 AIX vaccine
22090 #endif
22091
22092 _ACEOF
22093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22094 $EGREP "vaccine" >/dev/null 2>&1; then :
22095 gl_aixcc=yes
22096 else
22097 gl_aixcc=no
22098 fi
22099 rm -f conftest*
22100
22101 if test $gl_aixcc = yes; then
22102 STDARG_H=stdarg.h
22103
22104
22105
22106
22107
22108
22109
22110
22111 if test $gl_cv_have_include_next = yes; then
22112 gl_cv_next_stdarg_h='<'stdarg.h'>'
22113 else
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22115 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22116 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22117 $as_echo_n "(cached) " >&6
22118 else
22119
22120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22121 /* end confdefs.h. */
22122 #include <stdarg.h>
22123
22124 _ACEOF
22125 case "$host_os" in
22126 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22127 *) gl_absname_cpp="$ac_cpp" ;;
22128 esac
22129
22130 case "$host_os" in
22131 mingw*)
22132 gl_dirsep_regex='[/\\]'
22133 ;;
22134 *)
22135 gl_dirsep_regex='\/'
22136 ;;
22137 esac
22138 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22139
22140 gl_header_literal_regex=`echo 'stdarg.h' \
22141 | sed -e "$gl_make_literal_regex_sed"`
22142 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22143 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22144 s|^/[^/]|//&|
22145 p
22146 q
22147 }'
22148 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22149 sed -n "$gl_absolute_header_sed"`'"'
22150
22151
22152 fi
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22154 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22155 fi
22156 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22157
22158 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22160 gl_next_as_first_directive='<'stdarg.h'>'
22161 else
22162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22163 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22164 fi
22165 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22166
22167
22168
22169
22170 if test "$gl_cv_next_stdarg_h" = '""'; then
22171 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22172 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22173 fi
22174 else
22175
22176 saved_as_echo_n="$as_echo_n"
22177 as_echo_n=':'
22178 if test "${gl_cv_func___va_copy+set}" = set; then :
22179 $as_echo_n "(cached) " >&6
22180 else
22181
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22184 #include <stdarg.h>
22185 int
22186 main ()
22187 {
22188
22189 #ifndef __va_copy
22190 error, bail out
22191 #endif
22192
22193 ;
22194 return 0;
22195 }
22196 _ACEOF
22197 if ac_fn_c_try_compile "$LINENO"; then :
22198 gl_cv_func___va_copy=yes
22199 else
22200 gl_cv_func___va_copy=no
22201 fi
22202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203 fi
22204
22205 as_echo_n="$saved_as_echo_n"
22206
22207 if test $gl_cv_func___va_copy = yes; then
22208
22209 $as_echo "#define va_copy __va_copy" >>confdefs.h
22210
22211 else
22212
22213
22214 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22215
22216 fi
22217 fi
22218 fi
22219
22220 if test -n "$STDARG_H"; then
22221 GL_GENERATE_STDARG_H_TRUE=
22222 GL_GENERATE_STDARG_H_FALSE='#'
22223 else
22224 GL_GENERATE_STDARG_H_TRUE='#'
22225 GL_GENERATE_STDARG_H_FALSE=
22226 fi
22227
22228
22229
22230
22231
22232
22233 # Define two additional variables used in the Makefile substitution.
22234
22235 if test "$ac_cv_header_stdbool_h" = yes; then
22236 STDBOOL_H=''
22237 else
22238 STDBOOL_H='stdbool.h'
22239 fi
22240
22241 if test -n "$STDBOOL_H"; then
22242 GL_GENERATE_STDBOOL_H_TRUE=
22243 GL_GENERATE_STDBOOL_H_FALSE='#'
22244 else
22245 GL_GENERATE_STDBOOL_H_TRUE='#'
22246 GL_GENERATE_STDBOOL_H_FALSE=
22247 fi
22248
22249
22250 if test "$ac_cv_type__Bool" = yes; then
22251 HAVE__BOOL=1
22252 else
22253 HAVE__BOOL=0
22254 fi
22255
22256
22257
22258
22259
22260 STDDEF_H=
22261 if test $gt_cv_c_wchar_t = no; then
22262 HAVE_WCHAR_T=0
22263 STDDEF_H=stddef.h
22264 fi
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22266 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22267 if test "${gl_cv_decl_null_works+set}" = set; then :
22268 $as_echo_n "(cached) " >&6
22269 else
22270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h. */
22272 #include <stddef.h>
22273 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22274
22275 int
22276 main ()
22277 {
22278
22279 ;
22280 return 0;
22281 }
22282 _ACEOF
22283 if ac_fn_c_try_compile "$LINENO"; then :
22284 gl_cv_decl_null_works=yes
22285 else
22286 gl_cv_decl_null_works=no
22287 fi
22288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22289 fi
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22291 $as_echo "$gl_cv_decl_null_works" >&6; }
22292 if test $gl_cv_decl_null_works = no; then
22293 REPLACE_NULL=1
22294 STDDEF_H=stddef.h
22295 fi
22296
22297 if test -n "$STDDEF_H"; then
22298 GL_GENERATE_STDDEF_H_TRUE=
22299 GL_GENERATE_STDDEF_H_FALSE='#'
22300 else
22301 GL_GENERATE_STDDEF_H_TRUE='#'
22302 GL_GENERATE_STDDEF_H_FALSE=
22303 fi
22304
22305 if test -n "$STDDEF_H"; then
22306
22307
22308
22309
22310
22311
22312
22313
22314 if test $gl_cv_have_include_next = yes; then
22315 gl_cv_next_stddef_h='<'stddef.h'>'
22316 else
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22318 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22319 if test "${gl_cv_next_stddef_h+set}" = set; then :
22320 $as_echo_n "(cached) " >&6
22321 else
22322
22323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22324 /* end confdefs.h. */
22325 #include <stddef.h>
22326
22327 _ACEOF
22328 case "$host_os" in
22329 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22330 *) gl_absname_cpp="$ac_cpp" ;;
22331 esac
22332
22333 case "$host_os" in
22334 mingw*)
22335 gl_dirsep_regex='[/\\]'
22336 ;;
22337 *)
22338 gl_dirsep_regex='\/'
22339 ;;
22340 esac
22341 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22342
22343 gl_header_literal_regex=`echo 'stddef.h' \
22344 | sed -e "$gl_make_literal_regex_sed"`
22345 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22346 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22347 s|^/[^/]|//&|
22348 p
22349 q
22350 }'
22351 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22352 sed -n "$gl_absolute_header_sed"`'"'
22353
22354
22355 fi
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22357 $as_echo "$gl_cv_next_stddef_h" >&6; }
22358 fi
22359 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22360
22361 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22362 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22363 gl_next_as_first_directive='<'stddef.h'>'
22364 else
22365 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22366 gl_next_as_first_directive=$gl_cv_next_stddef_h
22367 fi
22368 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22369
22370
22371
22372
22373 fi
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387 if test $gl_cv_have_include_next = yes; then
22388 gl_cv_next_stdio_h='<'stdio.h'>'
22389 else
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22391 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22392 if test "${gl_cv_next_stdio_h+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22394 else
22395
22396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397 /* end confdefs.h. */
22398 #include <stdio.h>
22399
22400 _ACEOF
22401 case "$host_os" in
22402 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22403 *) gl_absname_cpp="$ac_cpp" ;;
22404 esac
22405
22406 case "$host_os" in
22407 mingw*)
22408 gl_dirsep_regex='[/\\]'
22409 ;;
22410 *)
22411 gl_dirsep_regex='\/'
22412 ;;
22413 esac
22414 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22415
22416 gl_header_literal_regex=`echo 'stdio.h' \
22417 | sed -e "$gl_make_literal_regex_sed"`
22418 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22419 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22420 s|^/[^/]|//&|
22421 p
22422 q
22423 }'
22424 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22425 sed -n "$gl_absolute_header_sed"`'"'
22426
22427
22428 fi
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22430 $as_echo "$gl_cv_next_stdio_h" >&6; }
22431 fi
22432 NEXT_STDIO_H=$gl_cv_next_stdio_h
22433
22434 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22435 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22436 gl_next_as_first_directive='<'stdio.h'>'
22437 else
22438 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22439 gl_next_as_first_directive=$gl_cv_next_stdio_h
22440 fi
22441 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22442
22443
22444
22445
22446
22447 GNULIB_FSCANF=1
22448
22449
22450 cat >>confdefs.h <<_ACEOF
22451 #define GNULIB_FSCANF 1
22452 _ACEOF
22453
22454
22455 GNULIB_SCANF=1
22456
22457
22458 cat >>confdefs.h <<_ACEOF
22459 #define GNULIB_SCANF 1
22460 _ACEOF
22461
22462
22463 GNULIB_FGETC=1
22464 GNULIB_GETC=1
22465 GNULIB_GETCHAR=1
22466 GNULIB_FGETS=1
22467 GNULIB_FREAD=1
22468
22469
22470 GNULIB_FPRINTF=1
22471 GNULIB_PRINTF=1
22472 GNULIB_VFPRINTF=1
22473 GNULIB_VPRINTF=1
22474 GNULIB_FPUTC=1
22475 GNULIB_PUTC=1
22476 GNULIB_PUTCHAR=1
22477 GNULIB_FPUTS=1
22478 GNULIB_PUTS=1
22479 GNULIB_FWRITE=1
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495 if test $gl_cv_have_include_next = yes; then
22496 gl_cv_next_stdlib_h='<'stdlib.h'>'
22497 else
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22499 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22500 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22501 $as_echo_n "(cached) " >&6
22502 else
22503
22504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22506 #include <stdlib.h>
22507
22508 _ACEOF
22509 case "$host_os" in
22510 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22511 *) gl_absname_cpp="$ac_cpp" ;;
22512 esac
22513
22514 case "$host_os" in
22515 mingw*)
22516 gl_dirsep_regex='[/\\]'
22517 ;;
22518 *)
22519 gl_dirsep_regex='\/'
22520 ;;
22521 esac
22522 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22523
22524 gl_header_literal_regex=`echo 'stdlib.h' \
22525 | sed -e "$gl_make_literal_regex_sed"`
22526 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22527 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22528 s|^/[^/]|//&|
22529 p
22530 q
22531 }'
22532 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22533 sed -n "$gl_absolute_header_sed"`'"'
22534
22535
22536 fi
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22538 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22539 fi
22540 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22541
22542 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22543 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22544 gl_next_as_first_directive='<'stdlib.h'>'
22545 else
22546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22547 gl_next_as_first_directive=$gl_cv_next_stdlib_h
22548 fi
22549 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22560
22561
22562
22563
22564
22565
22566
22567 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22568
22569
22570
22571
22572
22573
22574
22575
22576 if test "$ac_cv_have_decl_strtoimax" != yes; then
22577 HAVE_DECL_STRTOIMAX=0
22578 fi
22579
22580 if test $ac_cv_func_strtoimax = yes; then
22581 HAVE_STRTOIMAX=1
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22583 $as_echo_n "checking whether strtoimax works... " >&6; }
22584 if test "${gl_cv_func_strtoimax+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22586 else
22587 if test "$cross_compiling" = yes; then :
22588 case "$host_os" in
22589 # Guess no on AIX 5.
22590 aix5*) gl_cv_func_strtoimax="guessing no" ;;
22591 # Guess yes otherwise.
22592 *) gl_cv_func_strtoimax="guessing yes" ;;
22593 esac
22594
22595 else
22596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22597 /* end confdefs.h. */
22598
22599 #include <errno.h>
22600 #include <string.h>
22601 #include <inttypes.h>
22602 int main ()
22603 {
22604 if (sizeof (intmax_t) > sizeof (int))
22605 {
22606 const char *s = "4294967295";
22607 char *p;
22608 intmax_t res;
22609 errno = 0;
22610 res = strtoimax (s, &p, 10);
22611 if (p != s + strlen (s))
22612 return 1;
22613 if (errno != 0)
22614 return 2;
22615 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22616 return 3;
22617 }
22618 else
22619 {
22620 const char *s = "2147483647";
22621 char *p;
22622 intmax_t res;
22623 errno = 0;
22624 res = strtoimax (s, &p, 10);
22625 if (p != s + strlen (s))
22626 return 1;
22627 if (errno != 0)
22628 return 2;
22629 if (res != 2147483647)
22630 return 3;
22631 }
22632 return 0;
22633 }
22634
22635 _ACEOF
22636 if ac_fn_c_try_run "$LINENO"; then :
22637 gl_cv_func_strtoimax=yes
22638 else
22639 gl_cv_func_strtoimax=no
22640 fi
22641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22642 conftest.$ac_objext conftest.beam conftest.$ac_ext
22643 fi
22644
22645
22646 fi
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
22648 $as_echo "$gl_cv_func_strtoimax" >&6; }
22649 case "$gl_cv_func_strtoimax" in
22650 *no) REPLACE_STRTOIMAX=1 ;;
22651 esac
22652 else
22653 HAVE_STRTOIMAX=0
22654 fi
22655
22656 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
22657
22658
22659
22660
22661
22662
22663
22664
22665 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
22666
22667
22668 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
22669 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
22670 ac_have_decl=1
22671 else
22672 ac_have_decl=0
22673 fi
22674
22675 cat >>confdefs.h <<_ACEOF
22676 #define HAVE_DECL_STRTOLL $ac_have_decl
22677 _ACEOF
22678
22679
22680
22681 fi
22682
22683
22684
22685
22686
22687 GNULIB_STRTOIMAX=1
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697 if test "$ac_cv_have_decl_strtoumax" != yes; then
22698 HAVE_DECL_STRTOUMAX=0
22699 fi
22700
22701 if test $ac_cv_func_strtoumax = no; then
22702
22703
22704
22705
22706
22707
22708
22709
22710 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
22711
22712
22713 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
22714 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
22715 ac_have_decl=1
22716 else
22717 ac_have_decl=0
22718 fi
22719
22720 cat >>confdefs.h <<_ACEOF
22721 #define HAVE_DECL_STRTOULL $ac_have_decl
22722 _ACEOF
22723
22724
22725
22726 fi
22727
22728
22729
22730
22731
22732 GNULIB_STRTOUMAX=1
22733
22734
22735
22736
22737
22738
22739
22740 if test $ac_cv_func_symlink = no; then
22741 HAVE_SYMLINK=0
22742 else
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22744 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22745 if test "${gl_cv_func_symlink_works+set}" = set; then :
22746 $as_echo_n "(cached) " >&6
22747 else
22748 if test "$cross_compiling" = yes; then :
22749 case "$host_os" in
22750 # Guess yes on glibc systems.
22751 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
22752 # If we don't know, assume the worst.
22753 *) gl_cv_func_symlink_works="guessing no" ;;
22754 esac
22755
22756 else
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22759 #include <unistd.h>
22760
22761 int
22762 main ()
22763 {
22764 int result = 0;
22765 if (!symlink ("a", "conftest.link/"))
22766 result |= 1;
22767 if (symlink ("conftest.f", "conftest.lnk2"))
22768 result |= 2;
22769 else if (!symlink ("a", "conftest.lnk2/"))
22770 result |= 4;
22771 return result;
22772
22773 ;
22774 return 0;
22775 }
22776 _ACEOF
22777 if ac_fn_c_try_run "$LINENO"; then :
22778 gl_cv_func_symlink_works=yes
22779 else
22780 gl_cv_func_symlink_works=no
22781 fi
22782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22783 conftest.$ac_objext conftest.beam conftest.$ac_ext
22784 fi
22785
22786 rm -f conftest.f conftest.link conftest.lnk2
22787 fi
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22789 $as_echo "$gl_cv_func_symlink_works" >&6; }
22790 case "$gl_cv_func_symlink_works" in
22791 *yes) ;;
22792 *)
22793 REPLACE_SYMLINK=1
22794 ;;
22795 esac
22796 fi
22797
22798 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
22799
22800
22801
22802
22803
22804
22805
22806
22807 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
22808
22809 fi
22810
22811
22812
22813
22814
22815 GNULIB_SYMLINK=1
22816
22817
22818
22819
22820
22821
22822
22823
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
22825 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
22826 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
22827 $as_echo_n "(cached) " >&6
22828 else
22829
22830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h. */
22832 #include <sys/select.h>
22833 int
22834 main ()
22835 {
22836 struct timeval b;
22837 ;
22838 return 0;
22839 }
22840 _ACEOF
22841 if ac_fn_c_try_compile "$LINENO"; then :
22842 gl_cv_header_sys_select_h_selfcontained=yes
22843 else
22844 gl_cv_header_sys_select_h_selfcontained=no
22845 fi
22846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22847 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22850 #include <sys/select.h>
22851 int
22852 main ()
22853 {
22854 int memset; int bzero;
22855 ;
22856 return 0;
22857 }
22858
22859 _ACEOF
22860 if ac_fn_c_try_compile "$LINENO"; then :
22861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22862 /* end confdefs.h. */
22863 #include <sys/select.h>
22864 int
22865 main ()
22866 {
22867
22868 #undef memset
22869 #define memset nonexistent_memset
22870 extern
22871 #ifdef __cplusplus
22872 "C"
22873 #endif
22874 void *memset (void *, int, unsigned long);
22875 #undef bzero
22876 #define bzero nonexistent_bzero
22877 extern
22878 #ifdef __cplusplus
22879 "C"
22880 #endif
22881 void bzero (void *, unsigned long);
22882 fd_set fds;
22883 FD_ZERO (&fds);
22884
22885 ;
22886 return 0;
22887 }
22888
22889 _ACEOF
22890 if ac_fn_c_try_link "$LINENO"; then :
22891
22892 else
22893 gl_cv_header_sys_select_h_selfcontained=no
22894 fi
22895 rm -f core conftest.err conftest.$ac_objext \
22896 conftest$ac_exeext conftest.$ac_ext
22897
22898 fi
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 fi
22901
22902 fi
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
22904 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914 if test $gl_cv_have_include_next = yes; then
22915 gl_cv_next_sys_select_h='<'sys/select.h'>'
22916 else
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
22918 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
22919 if test "${gl_cv_next_sys_select_h+set}" = set; then :
22920 $as_echo_n "(cached) " >&6
22921 else
22922
22923 if test $ac_cv_header_sys_select_h = yes; then
22924
22925
22926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h. */
22928 #include <sys/select.h>
22929
22930 _ACEOF
22931 case "$host_os" in
22932 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22933 *) gl_absname_cpp="$ac_cpp" ;;
22934 esac
22935
22936 case "$host_os" in
22937 mingw*)
22938 gl_dirsep_regex='[/\\]'
22939 ;;
22940 *)
22941 gl_dirsep_regex='\/'
22942 ;;
22943 esac
22944 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22945
22946 gl_header_literal_regex=`echo 'sys/select.h' \
22947 | sed -e "$gl_make_literal_regex_sed"`
22948 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22949 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22950 s|^/[^/]|//&|
22951 p
22952 q
22953 }'
22954 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22955 sed -n "$gl_absolute_header_sed"`'"'
22956 else
22957 gl_cv_next_sys_select_h='<'sys/select.h'>'
22958 fi
22959
22960
22961 fi
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
22963 $as_echo "$gl_cv_next_sys_select_h" >&6; }
22964 fi
22965 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
22966
22967 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22969 gl_next_as_first_directive='<'sys/select.h'>'
22970 else
22971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22972 gl_next_as_first_directive=$gl_cv_next_sys_select_h
22973 fi
22974 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
22975
22976
22977
22978
22979 if test $ac_cv_header_sys_select_h = yes; then
22980 HAVE_SYS_SELECT_H=1
22981 else
22982 HAVE_SYS_SELECT_H=0
22983 fi
22984
22985
22986
22987
22988
22989 if test $ac_cv_header_sys_socket_h != yes; then
22990 for ac_header in winsock2.h
22991 do :
22992 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22993 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
22994 cat >>confdefs.h <<_ACEOF
22995 #define HAVE_WINSOCK2_H 1
22996 _ACEOF
22997
22998 fi
22999
23000 done
23001
23002 fi
23003 if test "$ac_cv_header_winsock2_h" = yes; then
23004 HAVE_WINSOCK2_H=1
23005 UNISTD_H_HAVE_WINSOCK2_H=1
23006 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23007 else
23008 HAVE_WINSOCK2_H=0
23009 fi
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032 if test $gl_cv_have_include_next = yes; then
23033 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23034 else
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23036 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23037 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23038 $as_echo_n "(cached) " >&6
23039 else
23040
23041 if test $ac_cv_header_sys_stat_h = yes; then
23042
23043
23044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23045 /* end confdefs.h. */
23046 #include <sys/stat.h>
23047
23048 _ACEOF
23049 case "$host_os" in
23050 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23051 *) gl_absname_cpp="$ac_cpp" ;;
23052 esac
23053
23054 case "$host_os" in
23055 mingw*)
23056 gl_dirsep_regex='[/\\]'
23057 ;;
23058 *)
23059 gl_dirsep_regex='\/'
23060 ;;
23061 esac
23062 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23063
23064 gl_header_literal_regex=`echo 'sys/stat.h' \
23065 | sed -e "$gl_make_literal_regex_sed"`
23066 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23068 s|^/[^/]|//&|
23069 p
23070 q
23071 }'
23072 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23073 sed -n "$gl_absolute_header_sed"`'"'
23074 else
23075 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23076 fi
23077
23078
23079 fi
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23081 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23082 fi
23083 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23084
23085 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23087 gl_next_as_first_directive='<'sys/stat.h'>'
23088 else
23089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23090 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23091 fi
23092 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23105
23106 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23107
23108 fi
23109
23110 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23111 #include <sys/stat.h>
23112 "
23113 if test "x$ac_cv_type_nlink_t" = x""yes; then :
23114
23115 else
23116
23117 $as_echo "#define nlink_t int" >>confdefs.h
23118
23119 fi
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23139 "
23140 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
23141 ac_have_decl=1
23142 else
23143 ac_have_decl=0
23144 fi
23145
23146 cat >>confdefs.h <<_ACEOF
23147 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23148 _ACEOF
23149
23150 if test $ac_cv_have_decl_localtime_r = no; then
23151 HAVE_DECL_LOCALTIME_R=0
23152 fi
23153
23154
23155 if test $ac_cv_func_localtime_r = yes; then
23156 HAVE_LOCALTIME_R=1
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23158 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23159 if test "${gl_cv_time_r_posix+set}" = set; then :
23160 $as_echo_n "(cached) " >&6
23161 else
23162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23163 /* end confdefs.h. */
23164 #include <time.h>
23165 int
23166 main ()
23167 {
23168 /* We don't need to append 'restrict's to the argument types,
23169 even though the POSIX signature has the 'restrict's,
23170 since C99 says they can't affect type compatibility. */
23171 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23172 if (ptr) return 0;
23173 /* Check the return type is a pointer.
23174 On HP-UX 10 it is 'int'. */
23175 *localtime_r (0, 0);
23176 ;
23177 return 0;
23178 }
23179
23180 _ACEOF
23181 if ac_fn_c_try_compile "$LINENO"; then :
23182 gl_cv_time_r_posix=yes
23183 else
23184 gl_cv_time_r_posix=no
23185 fi
23186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23187
23188 fi
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23190 $as_echo "$gl_cv_time_r_posix" >&6; }
23191 if test $gl_cv_time_r_posix = yes; then
23192 REPLACE_LOCALTIME_R=0
23193 else
23194 REPLACE_LOCALTIME_R=1
23195 fi
23196 else
23197 HAVE_LOCALTIME_R=0
23198 fi
23199
23200 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
23201
23202
23203
23204
23205
23206
23207
23208
23209 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
23210
23211
23212 :
23213
23214 fi
23215
23216
23217
23218
23219
23220 GNULIB_TIME_R=1
23221
23222
23223
23224
23225
23226 :
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240 if test $gl_cv_have_include_next = yes; then
23241 gl_cv_next_unistd_h='<'unistd.h'>'
23242 else
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23244 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23245 if test "${gl_cv_next_unistd_h+set}" = set; then :
23246 $as_echo_n "(cached) " >&6
23247 else
23248
23249 if test $ac_cv_header_unistd_h = yes; then
23250
23251
23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h. */
23254 #include <unistd.h>
23255
23256 _ACEOF
23257 case "$host_os" in
23258 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23259 *) gl_absname_cpp="$ac_cpp" ;;
23260 esac
23261
23262 case "$host_os" in
23263 mingw*)
23264 gl_dirsep_regex='[/\\]'
23265 ;;
23266 *)
23267 gl_dirsep_regex='\/'
23268 ;;
23269 esac
23270 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23271
23272 gl_header_literal_regex=`echo 'unistd.h' \
23273 | sed -e "$gl_make_literal_regex_sed"`
23274 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23275 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23276 s|^/[^/]|//&|
23277 p
23278 q
23279 }'
23280 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23281 sed -n "$gl_absolute_header_sed"`'"'
23282 else
23283 gl_cv_next_unistd_h='<'unistd.h'>'
23284 fi
23285
23286
23287 fi
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23289 $as_echo "$gl_cv_next_unistd_h" >&6; }
23290 fi
23291 NEXT_UNISTD_H=$gl_cv_next_unistd_h
23292
23293 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23295 gl_next_as_first_directive='<'unistd.h'>'
23296 else
23297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23298 gl_next_as_first_directive=$gl_cv_next_unistd_h
23299 fi
23300 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23301
23302
23303
23304
23305 if test $ac_cv_header_unistd_h = yes; then
23306 HAVE_UNISTD_H=1
23307 else
23308 HAVE_UNISTD_H=0
23309 fi
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23326 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23327 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23328 $as_echo_n "(cached) " >&6
23329 else
23330 touch conftest.file
23331 if test "$cross_compiling" = yes; then :
23332 case "$host_os" in
23333 # Guess yes on glibc systems.
23334 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
23335 # If we don't know, assume the worst.
23336 *) gl_cv_func_futimesat_works="guessing no" ;;
23337 esac
23338
23339 else
23340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23341 /* end confdefs.h. */
23342
23343 #include <stddef.h>
23344 #include <sys/times.h>
23345 #include <fcntl.h>
23346
23347 int
23348 main ()
23349 {
23350 int fd = open ("conftest.file", O_RDWR);
23351 if (fd < 0) return 1;
23352 if (futimesat (fd, NULL, NULL)) return 2;
23353
23354 ;
23355 return 0;
23356 }
23357 _ACEOF
23358 if ac_fn_c_try_run "$LINENO"; then :
23359 gl_cv_func_futimesat_works=yes
23360 else
23361 gl_cv_func_futimesat_works=no
23362 fi
23363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23364 conftest.$ac_objext conftest.beam conftest.$ac_ext
23365 fi
23366
23367 rm -f conftest.file
23368 fi
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23370 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23371 case "$gl_cv_func_futimesat_works" in
23372 *yes) ;;
23373 *)
23374
23375 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23376
23377 ;;
23378 esac
23379 fi
23380
23381 gl_gnulib_enabled_dosname=false
23382 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
23383 gl_gnulib_enabled_pathmax=false
23384 gl_gnulib_enabled_stat=false
23385 gl_gnulib_enabled_strtoll=false
23386 gl_gnulib_enabled_strtoull=false
23387 gl_gnulib_enabled_verify=false
23388 func_gl_gnulib_m4code_dosname ()
23389 {
23390 if ! $gl_gnulib_enabled_dosname; then
23391 gl_gnulib_enabled_dosname=true
23392 fi
23393 }
23394 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
23395 {
23396 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23397
23398
23399 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
23400 fi
23401 }
23402 func_gl_gnulib_m4code_pathmax ()
23403 {
23404 if ! $gl_gnulib_enabled_pathmax; then
23405
23406
23407
23408 gl_gnulib_enabled_pathmax=true
23409 fi
23410 }
23411 func_gl_gnulib_m4code_stat ()
23412 {
23413 if ! $gl_gnulib_enabled_stat; then
23414
23415
23416
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23418 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23419 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23420 $as_echo_n "(cached) " >&6
23421 else
23422 if test "$cross_compiling" = yes; then :
23423 case $host_os in
23424 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23425 *) gl_cv_func_stat_dir_slash="guessing yes";;
23426 esac
23427 else
23428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23429 /* end confdefs.h. */
23430 #include <sys/stat.h>
23431
23432 int
23433 main ()
23434 {
23435 struct stat st; return stat (".", &st) != stat ("./", &st);
23436 ;
23437 return 0;
23438 }
23439 _ACEOF
23440 if ac_fn_c_try_run "$LINENO"; then :
23441 gl_cv_func_stat_dir_slash=yes
23442 else
23443 gl_cv_func_stat_dir_slash=no
23444 fi
23445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23446 conftest.$ac_objext conftest.beam conftest.$ac_ext
23447 fi
23448
23449 fi
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23451 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23453 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23454 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23456 else
23457 touch conftest.tmp
23458 # Assume that if we have lstat, we can also check symlinks.
23459 if test $ac_cv_func_lstat = yes; then
23460 ln -s conftest.tmp conftest.lnk
23461 fi
23462 if test "$cross_compiling" = yes; then :
23463 case "$host_os" in
23464 # Guess yes on glibc systems.
23465 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23466 # If we don't know, assume the worst.
23467 *) gl_cv_func_stat_file_slash="guessing no" ;;
23468 esac
23469
23470 else
23471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h. */
23473 #include <sys/stat.h>
23474
23475 int
23476 main ()
23477 {
23478 int result = 0;
23479 struct stat st;
23480 if (!stat ("conftest.tmp/", &st))
23481 result |= 1;
23482 #if HAVE_LSTAT
23483 if (!stat ("conftest.lnk/", &st))
23484 result |= 2;
23485 #endif
23486 return result;
23487
23488 ;
23489 return 0;
23490 }
23491 _ACEOF
23492 if ac_fn_c_try_run "$LINENO"; then :
23493 gl_cv_func_stat_file_slash=yes
23494 else
23495 gl_cv_func_stat_file_slash=no
23496 fi
23497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23498 conftest.$ac_objext conftest.beam conftest.$ac_ext
23499 fi
23500
23501 rm -f conftest.tmp conftest.lnk
23502 fi
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23504 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23505 case $gl_cv_func_stat_dir_slash in
23506 *no) REPLACE_STAT=1
23507
23508 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23509 ;;
23510 esac
23511 case $gl_cv_func_stat_file_slash in
23512 *no) REPLACE_STAT=1
23513
23514 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23515 ;;
23516 esac
23517
23518 if test $REPLACE_STAT = 1; then
23519
23520
23521
23522
23523
23524
23525
23526
23527 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23528
23529
23530
23531 :
23532
23533 fi
23534
23535
23536
23537
23538
23539 GNULIB_STAT=1
23540
23541
23542
23543
23544
23545 gl_gnulib_enabled_stat=true
23546 if test $REPLACE_STAT = 1; then
23547 func_gl_gnulib_m4code_dosname
23548 fi
23549 if test $REPLACE_STAT = 1; then
23550 func_gl_gnulib_m4code_pathmax
23551 fi
23552 if test $REPLACE_STAT = 1; then
23553 func_gl_gnulib_m4code_verify
23554 fi
23555 fi
23556 }
23557 func_gl_gnulib_m4code_strtoll ()
23558 {
23559 if ! $gl_gnulib_enabled_strtoll; then
23560
23561
23562
23563 if test "$ac_cv_type_long_long_int" = yes; then
23564 for ac_func in strtoll
23565 do :
23566 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
23567 if test "x$ac_cv_func_strtoll" = x""yes; then :
23568 cat >>confdefs.h <<_ACEOF
23569 #define HAVE_STRTOLL 1
23570 _ACEOF
23571
23572 fi
23573 done
23574
23575 if test $ac_cv_func_strtoll = no; then
23576 HAVE_STRTOLL=0
23577 fi
23578 fi
23579
23580 if test $HAVE_STRTOLL = 0; then
23581
23582
23583
23584
23585
23586
23587
23588
23589 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
23590
23591
23592 :
23593
23594 fi
23595
23596
23597
23598
23599
23600 GNULIB_STRTOLL=1
23601
23602
23603
23604
23605
23606 gl_gnulib_enabled_strtoll=true
23607 fi
23608 }
23609 func_gl_gnulib_m4code_strtoull ()
23610 {
23611 if ! $gl_gnulib_enabled_strtoull; then
23612
23613
23614
23615 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23616 for ac_func in strtoull
23617 do :
23618 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
23619 if test "x$ac_cv_func_strtoull" = x""yes; then :
23620 cat >>confdefs.h <<_ACEOF
23621 #define HAVE_STRTOULL 1
23622 _ACEOF
23623
23624 fi
23625 done
23626
23627 if test $ac_cv_func_strtoull = no; then
23628 HAVE_STRTOULL=0
23629 fi
23630 fi
23631
23632 if test $HAVE_STRTOULL = 0; then
23633
23634
23635
23636
23637
23638
23639
23640
23641 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
23642
23643
23644 :
23645
23646 fi
23647
23648
23649
23650
23651
23652 GNULIB_STRTOULL=1
23653
23654
23655
23656
23657
23658 gl_gnulib_enabled_strtoull=true
23659 fi
23660 }
23661 func_gl_gnulib_m4code_verify ()
23662 {
23663 if ! $gl_gnulib_enabled_verify; then
23664 gl_gnulib_enabled_verify=true
23665 fi
23666 }
23667 if test $REPLACE_GETOPT = 1; then
23668 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
23669 fi
23670 if test $REPLACE_LSTAT = 1; then
23671 func_gl_gnulib_m4code_dosname
23672 fi
23673 if test $REPLACE_LSTAT = 1; then
23674 func_gl_gnulib_m4code_stat
23675 fi
23676 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23677 func_gl_gnulib_m4code_stat
23678 fi
23679 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
23680 func_gl_gnulib_m4code_strtoll
23681 fi
23682 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23683 func_gl_gnulib_m4code_verify
23684 fi
23685 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
23686 func_gl_gnulib_m4code_strtoull
23687 fi
23688 if test $ac_cv_func_strtoumax = no; then
23689 func_gl_gnulib_m4code_verify
23690 fi
23691
23692 if $gl_gnulib_enabled_dosname; then
23693 gl_GNULIB_ENABLED_dosname_TRUE=
23694 gl_GNULIB_ENABLED_dosname_FALSE='#'
23695 else
23696 gl_GNULIB_ENABLED_dosname_TRUE='#'
23697 gl_GNULIB_ENABLED_dosname_FALSE=
23698 fi
23699
23700 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23701 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
23702 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
23703 else
23704 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
23705 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
23706 fi
23707
23708 if $gl_gnulib_enabled_pathmax; then
23709 gl_GNULIB_ENABLED_pathmax_TRUE=
23710 gl_GNULIB_ENABLED_pathmax_FALSE='#'
23711 else
23712 gl_GNULIB_ENABLED_pathmax_TRUE='#'
23713 gl_GNULIB_ENABLED_pathmax_FALSE=
23714 fi
23715
23716 if $gl_gnulib_enabled_stat; then
23717 gl_GNULIB_ENABLED_stat_TRUE=
23718 gl_GNULIB_ENABLED_stat_FALSE='#'
23719 else
23720 gl_GNULIB_ENABLED_stat_TRUE='#'
23721 gl_GNULIB_ENABLED_stat_FALSE=
23722 fi
23723
23724 if $gl_gnulib_enabled_strtoll; then
23725 gl_GNULIB_ENABLED_strtoll_TRUE=
23726 gl_GNULIB_ENABLED_strtoll_FALSE='#'
23727 else
23728 gl_GNULIB_ENABLED_strtoll_TRUE='#'
23729 gl_GNULIB_ENABLED_strtoll_FALSE=
23730 fi
23731
23732 if $gl_gnulib_enabled_strtoull; then
23733 gl_GNULIB_ENABLED_strtoull_TRUE=
23734 gl_GNULIB_ENABLED_strtoull_FALSE='#'
23735 else
23736 gl_GNULIB_ENABLED_strtoull_TRUE='#'
23737 gl_GNULIB_ENABLED_strtoull_FALSE=
23738 fi
23739
23740 if $gl_gnulib_enabled_verify; then
23741 gl_GNULIB_ENABLED_verify_TRUE=
23742 gl_GNULIB_ENABLED_verify_FALSE='#'
23743 else
23744 gl_GNULIB_ENABLED_verify_TRUE='#'
23745 gl_GNULIB_ENABLED_verify_FALSE=
23746 fi
23747
23748 # End of code from modules
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758 gltests_libdeps=
23759 gltests_ltlibdeps=
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769 gl_source_base='tests'
23770 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
23771
23772 gl_module_indicator_condition=$gltests_WITNESS
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783 LIBGNU_LIBDEPS="$gl_libdeps"
23784
23785 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
23786
23787
23788 CFLAGS=$SAVE_CFLAGS
23789 LIBS=$SAVE_LIBS
23790
23791 case "$opsys" in
23792 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
23793
23794 darwin)
23795 ## The -headerpad option tells ld (see man page) to leave room at the
23796 ## end of the header for adding load commands. Needed for dumping.
23797 ## 0x690 is the total size of 30 segment load commands (at 56
23798 ## each); under Cocoa 31 commands are required.
23799 if test "$HAVE_NS" = "yes"; then
23800 libs_nsgui="-framework AppKit"
23801 headerpad_extra=6C8
23802 else
23803 libs_nsgui=
23804 headerpad_extra=690
23805 fi
23806 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23807
23808 ## This is here because src/Makefile.in did some extra fiddling around
23809 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23810 ## #ifndef LD_SWITCH_SYSTEM
23811 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23812 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23813 ## not using gcc, darwin.
23814 ## Because this was done in src/Makefile.in, the resulting part of
23815 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23816 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23817 ## rather than LD_SWITCH_SYSTEM.
23818 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
23819 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
23820 ;;
23821
23822 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
23823 ## find X at run-time.
23824 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
23825 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
23826 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
23827 ## had different values in configure (in ac_link) and src/Makefile.in.
23828 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
23829 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
23830
23831 *) LD_SWITCH_SYSTEM_TEMACS= ;;
23832 esac
23833
23834 if test "$NS_IMPL_GNUSTEP" = "yes"; then
23835 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
23836 fi
23837
23838
23839
23840
23841 LD_FIRSTFLAG=
23842 ORDINARY_LINK=
23843 case "$opsys" in
23844 ## gnu: GNU needs its own crt0.
23845 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
23846
23847 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23848 ## library search parth, i.e. it won't search /usr/lib for libc and
23849 ## friends. Using -nostartfiles instead avoids this problem, and
23850 ## will also work on earlier NetBSD releases.
23851 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
23852
23853 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23854 ## MkLinux/LinuxPPC needs this.
23855 ## s390x-* only supports opsys = gnu-linux so it can be added here.
23856 gnu-*)
23857 case "$canonical" in
23858 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
23859 esac
23860 ;;
23861 esac
23862
23863
23864 if test "x$ORDINARY_LINK" = "xyes"; then
23865
23866 LD_FIRSTFLAG=""
23867
23868 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
23869
23870
23871 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
23872 ## freebsd, gnu-* not on powerpc*|s390x*.
23873 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
23874
23875 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
23876 ## places that are difficult to figure out at make time. Fortunately,
23877 ## these same versions allow you to pass arbitrary flags on to the
23878 ## linker, so there is no reason not to use it as a linker.
23879 ##
23880 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
23881 ## searching for libraries in its internal directories, so we have to
23882 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
23883 LD_FIRSTFLAG="-nostdlib"
23884 fi
23885
23886 ## FIXME? What setting of EDIT_LDFLAGS should this have?
23887 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
23888
23889
23890
23891
23892 ## FIXME? The logic here is not precisely the same as that above.
23893 ## There is no check here for a pre-defined LD_FIRSTFLAG.
23894 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
23895 LIB_GCC=
23896 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
23897
23898 case "$opsys" in
23899 freebsd|netbsd|openbsd) LIB_GCC= ;;
23900
23901 gnu-*)
23902 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
23903 ## build on ARM EABI under GNU/Linux. (Bug#5518)
23904 case $host_cpu in
23905 arm*)
23906 LIB_GCC="-lgcc_s"
23907 ;;
23908 *)
23909 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
23910 ## immediately undefine it again and redefine it to empty.
23911 ## Was the C_SWITCH_X_SITE part really necessary?
23912 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
23913 LIB_GCC=
23914 ;;
23915 esac
23916 ;;
23917
23918 ## Ask GCC where to find libgcc.a.
23919 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
23920 esac
23921 fi
23922
23923
23924 ## If we're using X11/GNUstep, define some consequences.
23925 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
23926
23927 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23928
23929
23930 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23931
23932 fi
23933
23934
23935
23936
23937 #### Report on what we decided to do.
23938 #### Report GTK as a toolkit, even if it doesn't use Xt.
23939 #### It makes printing result more understandable as using GTK sets
23940 #### toolkit_scroll_bars to yes by default.
23941 if test "${HAVE_GTK}" = "yes"; then
23942 if test "${with_gtk3}" = "yes"; then
23943 USE_X_TOOLKIT=GTK3
23944 else
23945 USE_X_TOOLKIT=GTK
23946 fi
23947 fi
23948
23949 echo "
23950 Configured for \`${canonical}'.
23951
23952 Where should the build process find the source code? ${srcdir}
23953 What compiler should emacs be built with? ${CC} ${CFLAGS}
23954 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23955 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23956 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23957 What window system should Emacs use? ${window_system}
23958 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23959
23960 if test -n "${x_includes}"; then
23961 echo " Where do we find X Windows header files? ${x_includes}"
23962 else
23963 echo " Where do we find X Windows header files? Standard dirs"
23964 fi
23965 if test -n "${x_libraries}"; then
23966 echo " Where do we find X Windows libraries? ${x_libraries}"
23967 else
23968 echo " Where do we find X Windows libraries? Standard dirs"
23969 fi
23970
23971 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23972 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23973 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23974 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23975 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23976 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23977 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23978 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23979
23980 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23981 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23982 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23983 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23984 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23985 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23986 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23987
23988 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23989 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23990 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23991 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23992
23993 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23994 echo
23995
23996 if test -n "${EMACSDATA}"; then
23997 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23998 fi
23999 if test -n "${EMACSDOC}"; then
24000 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24001 fi
24002
24003 echo
24004
24005 if test "$HAVE_NS" = "yes"; then
24006 echo
24007 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24008 The installed application will go to nextstep/Emacs.app and can be
24009 run or moved from there."
24010 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24011 echo "The application will be fully self-contained."
24012 else
24013 echo "The lisp resources for the application will be installed under ${prefix}.
24014 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24015 to run if these resources are not installed."
24016 fi
24017 echo
24018 fi
24019
24020 if test "${opsys}" = "cygwin"; then
24021 case `uname -r` in
24022 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24023 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24024 echo
24025 ;;
24026 esac
24027 fi
24028
24029 # Remove any trailing slashes in these variables.
24030 test "${prefix}" != NONE &&
24031 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24032 test "${exec_prefix}" != NONE &&
24033 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24034
24035 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"
24036
24037 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"
24038
24039
24040 opt_makefile=test/automated/Makefile
24041
24042 if test -f $srcdir/${opt_makefile}.in; then
24043 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24044 ac_config_files="$ac_config_files test/automated/Makefile"
24045
24046 fi
24047
24048
24049 opt_makefile=admin/unidata/Makefile
24050
24051 if test -f $srcdir/${opt_makefile}.in; then
24052 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24053 ac_config_files="$ac_config_files admin/unidata/Makefile"
24054
24055 fi
24056
24057
24058 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24059
24060
24061
24062 ac_config_commands="$ac_config_commands mkdirs"
24063
24064
24065 ac_config_commands="$ac_config_commands epaths"
24066
24067
24068 ac_config_commands="$ac_config_commands gdbinit"
24069
24070
24071 cat >confcache <<\_ACEOF
24072 # This file is a shell script that caches the results of configure
24073 # tests run on this system so they can be shared between configure
24074 # scripts and configure runs, see configure's option --config-cache.
24075 # It is not useful on other systems. If it contains results you don't
24076 # want to keep, you may remove or edit it.
24077 #
24078 # config.status only pays attention to the cache file if you give it
24079 # the --recheck option to rerun configure.
24080 #
24081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24083 # following values.
24084
24085 _ACEOF
24086
24087 # The following way of writing the cache mishandles newlines in values,
24088 # but we know of no workaround that is simple, portable, and efficient.
24089 # So, we kill variables containing newlines.
24090 # Ultrix sh set writes to stderr and can't be redirected directly,
24091 # and sets the high bit in the cache file unless we assign to the vars.
24092 (
24093 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24094 eval ac_val=\$$ac_var
24095 case $ac_val in #(
24096 *${as_nl}*)
24097 case $ac_var in #(
24098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24100 esac
24101 case $ac_var in #(
24102 _ | IFS | as_nl) ;; #(
24103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24104 *) { eval $ac_var=; unset $ac_var;} ;;
24105 esac ;;
24106 esac
24107 done
24108
24109 (set) 2>&1 |
24110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24111 *${as_nl}ac_space=\ *)
24112 # `set' does not quote correctly, so add quotes: double-quote
24113 # substitution turns \\\\ into \\, and sed turns \\ into \.
24114 sed -n \
24115 "s/'/'\\\\''/g;
24116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24117 ;; #(
24118 *)
24119 # `set' quotes correctly as required by POSIX, so do not add quotes.
24120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24121 ;;
24122 esac |
24123 sort
24124 ) |
24125 sed '
24126 /^ac_cv_env_/b end
24127 t clear
24128 :clear
24129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24130 t end
24131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24132 :end' >>confcache
24133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24134 if test -w "$cache_file"; then
24135 test "x$cache_file" != "x/dev/null" &&
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24137 $as_echo "$as_me: updating cache $cache_file" >&6;}
24138 cat confcache >$cache_file
24139 else
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24141 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24142 fi
24143 fi
24144 rm -f confcache
24145
24146 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24147 # Let make expand exec_prefix.
24148 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24149
24150 DEFS=-DHAVE_CONFIG_H
24151
24152 ac_libobjs=
24153 ac_ltlibobjs=
24154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24155 # 1. Remove the extension, and $U if already installed.
24156 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24157 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24158 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24159 # will be set to the directory where LIBOBJS objects are built.
24160 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24161 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24162 done
24163 LIBOBJS=$ac_libobjs
24164
24165 LTLIBOBJS=$ac_ltlibobjs
24166
24167
24168 if test -n "$EXEEXT"; then
24169 am__EXEEXT_TRUE=
24170 am__EXEEXT_FALSE='#'
24171 else
24172 am__EXEEXT_TRUE='#'
24173 am__EXEEXT_FALSE=
24174 fi
24175
24176 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24177 as_fn_error "conditional \"AMDEP\" was never defined.
24178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24179 fi
24180 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24181 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24183 fi
24184 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24185 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24187 fi
24188 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24189 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24191 fi
24192
24193 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24194 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24196 fi
24197 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24198 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24200 fi
24201 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24202 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24204 fi
24205 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24206 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24208 fi
24209 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24210 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24212 fi
24213 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24214 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24216 fi
24217 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24218 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24220 fi
24221 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24222 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24224 fi
24225 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24226 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24228 fi
24229 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24230 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24232 fi
24233 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24234 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24236 fi
24237 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24238 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24240 fi
24241
24242 gl_libobjs=
24243 gl_ltlibobjs=
24244 if test -n "$gl_LIBOBJS"; then
24245 # Remove the extension.
24246 sed_drop_objext='s/\.o$//;s/\.obj$//'
24247 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24248 gl_libobjs="$gl_libobjs $i.$ac_objext"
24249 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24250 done
24251 fi
24252 gl_LIBOBJS=$gl_libobjs
24253
24254 gl_LTLIBOBJS=$gl_ltlibobjs
24255
24256
24257
24258 gltests_libobjs=
24259 gltests_ltlibobjs=
24260 if test -n "$gltests_LIBOBJS"; then
24261 # Remove the extension.
24262 sed_drop_objext='s/\.o$//;s/\.obj$//'
24263 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24264 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24265 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24266 done
24267 fi
24268 gltests_LIBOBJS=$gltests_libobjs
24269
24270 gltests_LTLIBOBJS=$gltests_ltlibobjs
24271
24272
24273
24274 : ${CONFIG_STATUS=./config.status}
24275 ac_write_fail=0
24276 ac_clean_files_save=$ac_clean_files
24277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24279 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24280 as_write_fail=0
24281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24282 #! $SHELL
24283 # Generated by $as_me.
24284 # Run this file to recreate the current configuration.
24285 # Compiler output produced by configure, useful for debugging
24286 # configure, is in config.log if it exists.
24287
24288 debug=false
24289 ac_cs_recheck=false
24290 ac_cs_silent=false
24291
24292 SHELL=\${CONFIG_SHELL-$SHELL}
24293 export SHELL
24294 _ASEOF
24295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24296 ## -------------------- ##
24297 ## M4sh Initialization. ##
24298 ## -------------------- ##
24299
24300 # Be more Bourne compatible
24301 DUALCASE=1; export DUALCASE # for MKS sh
24302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24303 emulate sh
24304 NULLCMD=:
24305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24306 # is contrary to our usage. Disable this feature.
24307 alias -g '${1+"$@"}'='"$@"'
24308 setopt NO_GLOB_SUBST
24309 else
24310 case `(set -o) 2>/dev/null` in #(
24311 *posix*) :
24312 set -o posix ;; #(
24313 *) :
24314 ;;
24315 esac
24316 fi
24317
24318
24319 as_nl='
24320 '
24321 export as_nl
24322 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24323 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24325 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24326 # Prefer a ksh shell builtin over an external printf program on Solaris,
24327 # but without wasting forks for bash or zsh.
24328 if test -z "$BASH_VERSION$ZSH_VERSION" \
24329 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24330 as_echo='print -r --'
24331 as_echo_n='print -rn --'
24332 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24333 as_echo='printf %s\n'
24334 as_echo_n='printf %s'
24335 else
24336 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24337 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24338 as_echo_n='/usr/ucb/echo -n'
24339 else
24340 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24341 as_echo_n_body='eval
24342 arg=$1;
24343 case $arg in #(
24344 *"$as_nl"*)
24345 expr "X$arg" : "X\\(.*\\)$as_nl";
24346 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24347 esac;
24348 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24349 '
24350 export as_echo_n_body
24351 as_echo_n='sh -c $as_echo_n_body as_echo'
24352 fi
24353 export as_echo_body
24354 as_echo='sh -c $as_echo_body as_echo'
24355 fi
24356
24357 # The user is always right.
24358 if test "${PATH_SEPARATOR+set}" != set; then
24359 PATH_SEPARATOR=:
24360 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24361 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24362 PATH_SEPARATOR=';'
24363 }
24364 fi
24365
24366
24367 # IFS
24368 # We need space, tab and new line, in precisely that order. Quoting is
24369 # there to prevent editors from complaining about space-tab.
24370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24371 # splitting by setting IFS to empty value.)
24372 IFS=" "" $as_nl"
24373
24374 # Find who we are. Look in the path if we contain no directory separator.
24375 case $0 in #((
24376 *[\\/]* ) as_myself=$0 ;;
24377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24378 for as_dir in $PATH
24379 do
24380 IFS=$as_save_IFS
24381 test -z "$as_dir" && as_dir=.
24382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24383 done
24384 IFS=$as_save_IFS
24385
24386 ;;
24387 esac
24388 # We did not find ourselves, most probably we were run as `sh COMMAND'
24389 # in which case we are not to be found in the path.
24390 if test "x$as_myself" = x; then
24391 as_myself=$0
24392 fi
24393 if test ! -f "$as_myself"; then
24394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24395 exit 1
24396 fi
24397
24398 # Unset variables that we do not need and which cause bugs (e.g. in
24399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24400 # suppresses any "Segmentation fault" message there. '((' could
24401 # trigger a bug in pdksh 5.2.14.
24402 for as_var in BASH_ENV ENV MAIL MAILPATH
24403 do eval test x\${$as_var+set} = xset \
24404 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24405 done
24406 PS1='$ '
24407 PS2='> '
24408 PS4='+ '
24409
24410 # NLS nuisances.
24411 LC_ALL=C
24412 export LC_ALL
24413 LANGUAGE=C
24414 export LANGUAGE
24415
24416 # CDPATH.
24417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24418
24419
24420 # as_fn_error ERROR [LINENO LOG_FD]
24421 # ---------------------------------
24422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24424 # script with status $?, using 1 if that was 0.
24425 as_fn_error ()
24426 {
24427 as_status=$?; test $as_status -eq 0 && as_status=1
24428 if test "$3"; then
24429 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24431 fi
24432 $as_echo "$as_me: error: $1" >&2
24433 as_fn_exit $as_status
24434 } # as_fn_error
24435
24436
24437 # as_fn_set_status STATUS
24438 # -----------------------
24439 # Set $? to STATUS, without forking.
24440 as_fn_set_status ()
24441 {
24442 return $1
24443 } # as_fn_set_status
24444
24445 # as_fn_exit STATUS
24446 # -----------------
24447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24448 as_fn_exit ()
24449 {
24450 set +e
24451 as_fn_set_status $1
24452 exit $1
24453 } # as_fn_exit
24454
24455 # as_fn_unset VAR
24456 # ---------------
24457 # Portably unset VAR.
24458 as_fn_unset ()
24459 {
24460 { eval $1=; unset $1;}
24461 }
24462 as_unset=as_fn_unset
24463 # as_fn_append VAR VALUE
24464 # ----------------------
24465 # Append the text in VALUE to the end of the definition contained in VAR. Take
24466 # advantage of any shell optimizations that allow amortized linear growth over
24467 # repeated appends, instead of the typical quadratic growth present in naive
24468 # implementations.
24469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24470 eval 'as_fn_append ()
24471 {
24472 eval $1+=\$2
24473 }'
24474 else
24475 as_fn_append ()
24476 {
24477 eval $1=\$$1\$2
24478 }
24479 fi # as_fn_append
24480
24481 # as_fn_arith ARG...
24482 # ------------------
24483 # Perform arithmetic evaluation on the ARGs, and store the result in the
24484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24485 # must be portable across $(()) and expr.
24486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24487 eval 'as_fn_arith ()
24488 {
24489 as_val=$(( $* ))
24490 }'
24491 else
24492 as_fn_arith ()
24493 {
24494 as_val=`expr "$@" || test $? -eq 1`
24495 }
24496 fi # as_fn_arith
24497
24498
24499 if expr a : '\(a\)' >/dev/null 2>&1 &&
24500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24501 as_expr=expr
24502 else
24503 as_expr=false
24504 fi
24505
24506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24507 as_basename=basename
24508 else
24509 as_basename=false
24510 fi
24511
24512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24513 as_dirname=dirname
24514 else
24515 as_dirname=false
24516 fi
24517
24518 as_me=`$as_basename -- "$0" ||
24519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24520 X"$0" : 'X\(//\)$' \| \
24521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24522 $as_echo X/"$0" |
24523 sed '/^.*\/\([^/][^/]*\)\/*$/{
24524 s//\1/
24525 q
24526 }
24527 /^X\/\(\/\/\)$/{
24528 s//\1/
24529 q
24530 }
24531 /^X\/\(\/\).*/{
24532 s//\1/
24533 q
24534 }
24535 s/.*/./; q'`
24536
24537 # Avoid depending upon Character Ranges.
24538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24541 as_cr_digits='0123456789'
24542 as_cr_alnum=$as_cr_Letters$as_cr_digits
24543
24544 ECHO_C= ECHO_N= ECHO_T=
24545 case `echo -n x` in #(((((
24546 -n*)
24547 case `echo 'xy\c'` in
24548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24549 xy) ECHO_C='\c';;
24550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24551 ECHO_T=' ';;
24552 esac;;
24553 *)
24554 ECHO_N='-n';;
24555 esac
24556
24557 rm -f conf$$ conf$$.exe conf$$.file
24558 if test -d conf$$.dir; then
24559 rm -f conf$$.dir/conf$$.file
24560 else
24561 rm -f conf$$.dir
24562 mkdir conf$$.dir 2>/dev/null
24563 fi
24564 if (echo >conf$$.file) 2>/dev/null; then
24565 if ln -s conf$$.file conf$$ 2>/dev/null; then
24566 as_ln_s='ln -s'
24567 # ... but there are two gotchas:
24568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24570 # In both cases, we have to default to `cp -p'.
24571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24572 as_ln_s='cp -p'
24573 elif ln conf$$.file conf$$ 2>/dev/null; then
24574 as_ln_s=ln
24575 else
24576 as_ln_s='cp -p'
24577 fi
24578 else
24579 as_ln_s='cp -p'
24580 fi
24581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24582 rmdir conf$$.dir 2>/dev/null
24583
24584
24585 # as_fn_mkdir_p
24586 # -------------
24587 # Create "$as_dir" as a directory, including parents if necessary.
24588 as_fn_mkdir_p ()
24589 {
24590
24591 case $as_dir in #(
24592 -*) as_dir=./$as_dir;;
24593 esac
24594 test -d "$as_dir" || eval $as_mkdir_p || {
24595 as_dirs=
24596 while :; do
24597 case $as_dir in #(
24598 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24599 *) as_qdir=$as_dir;;
24600 esac
24601 as_dirs="'$as_qdir' $as_dirs"
24602 as_dir=`$as_dirname -- "$as_dir" ||
24603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24604 X"$as_dir" : 'X\(//\)[^/]' \| \
24605 X"$as_dir" : 'X\(//\)$' \| \
24606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24607 $as_echo X"$as_dir" |
24608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24609 s//\1/
24610 q
24611 }
24612 /^X\(\/\/\)[^/].*/{
24613 s//\1/
24614 q
24615 }
24616 /^X\(\/\/\)$/{
24617 s//\1/
24618 q
24619 }
24620 /^X\(\/\).*/{
24621 s//\1/
24622 q
24623 }
24624 s/.*/./; q'`
24625 test -d "$as_dir" && break
24626 done
24627 test -z "$as_dirs" || eval "mkdir $as_dirs"
24628 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24629
24630
24631 } # as_fn_mkdir_p
24632 if mkdir -p . 2>/dev/null; then
24633 as_mkdir_p='mkdir -p "$as_dir"'
24634 else
24635 test -d ./-p && rmdir ./-p
24636 as_mkdir_p=false
24637 fi
24638
24639 if test -x / >/dev/null 2>&1; then
24640 as_test_x='test -x'
24641 else
24642 if ls -dL / >/dev/null 2>&1; then
24643 as_ls_L_option=L
24644 else
24645 as_ls_L_option=
24646 fi
24647 as_test_x='
24648 eval sh -c '\''
24649 if test -d "$1"; then
24650 test -d "$1/.";
24651 else
24652 case $1 in #(
24653 -*)set "./$1";;
24654 esac;
24655 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24656 ???[sx]*):;;*)false;;esac;fi
24657 '\'' sh
24658 '
24659 fi
24660 as_executable_p=$as_test_x
24661
24662 # Sed expression to map a string onto a valid CPP name.
24663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24664
24665 # Sed expression to map a string onto a valid variable name.
24666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24667
24668
24669 exec 6>&1
24670 ## ----------------------------------- ##
24671 ## Main body of $CONFIG_STATUS script. ##
24672 ## ----------------------------------- ##
24673 _ASEOF
24674 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24675
24676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24677 # Save the log message, to keep $0 and so on meaningful, and to
24678 # report actual input values of CONFIG_FILES etc. instead of their
24679 # values after options handling.
24680 ac_log="
24681 This file was extended by emacs $as_me 24.2.50, which was
24682 generated by GNU Autoconf 2.65. Invocation command line was
24683
24684 CONFIG_FILES = $CONFIG_FILES
24685 CONFIG_HEADERS = $CONFIG_HEADERS
24686 CONFIG_LINKS = $CONFIG_LINKS
24687 CONFIG_COMMANDS = $CONFIG_COMMANDS
24688 $ $0 $@
24689
24690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24691 "
24692
24693 _ACEOF
24694
24695 case $ac_config_files in *"
24696 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24697 esac
24698
24699 case $ac_config_headers in *"
24700 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24701 esac
24702
24703
24704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24705 # Files that config.status was made for.
24706 config_files="$ac_config_files"
24707 config_headers="$ac_config_headers"
24708 config_commands="$ac_config_commands"
24709
24710 _ACEOF
24711
24712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24713 ac_cs_usage="\
24714 \`$as_me' instantiates files and other configuration actions
24715 from templates according to the current configuration. Unless the files
24716 and actions are specified as TAGs, all are instantiated by default.
24717
24718 Usage: $0 [OPTION]... [TAG]...
24719
24720 -h, --help print this help, then exit
24721 -V, --version print version number and configuration settings, then exit
24722 --config print configuration, then exit
24723 -q, --quiet, --silent
24724 do not print progress messages
24725 -d, --debug don't remove temporary files
24726 --recheck update $as_me by reconfiguring in the same conditions
24727 --file=FILE[:TEMPLATE]
24728 instantiate the configuration file FILE
24729 --header=FILE[:TEMPLATE]
24730 instantiate the configuration header FILE
24731
24732 Configuration files:
24733 $config_files
24734
24735 Configuration headers:
24736 $config_headers
24737
24738 Configuration commands:
24739 $config_commands
24740
24741 Report bugs to the package provider."
24742
24743 _ACEOF
24744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24745 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24746 ac_cs_version="\\
24747 emacs config.status 24.2.50
24748 configured by $0, generated by GNU Autoconf 2.65,
24749 with options \\"\$ac_cs_config\\"
24750
24751 Copyright (C) 2009 Free Software Foundation, Inc.
24752 This config.status script is free software; the Free Software Foundation
24753 gives unlimited permission to copy, distribute and modify it."
24754
24755 ac_pwd='$ac_pwd'
24756 srcdir='$srcdir'
24757 INSTALL='$INSTALL'
24758 MKDIR_P='$MKDIR_P'
24759 AWK='$AWK'
24760 test -n "\$AWK" || AWK=awk
24761 _ACEOF
24762
24763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24764 # The default lists apply if the user does not specify any file.
24765 ac_need_defaults=:
24766 while test $# != 0
24767 do
24768 case $1 in
24769 --*=*)
24770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24771 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24772 ac_shift=:
24773 ;;
24774 *)
24775 ac_option=$1
24776 ac_optarg=$2
24777 ac_shift=shift
24778 ;;
24779 esac
24780
24781 case $ac_option in
24782 # Handling of the options.
24783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24784 ac_cs_recheck=: ;;
24785 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24786 $as_echo "$ac_cs_version"; exit ;;
24787 --config | --confi | --conf | --con | --co | --c )
24788 $as_echo "$ac_cs_config"; exit ;;
24789 --debug | --debu | --deb | --de | --d | -d )
24790 debug=: ;;
24791 --file | --fil | --fi | --f )
24792 $ac_shift
24793 case $ac_optarg in
24794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24795 esac
24796 as_fn_append CONFIG_FILES " '$ac_optarg'"
24797 ac_need_defaults=false;;
24798 --header | --heade | --head | --hea )
24799 $ac_shift
24800 case $ac_optarg in
24801 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24802 esac
24803 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24804 ac_need_defaults=false;;
24805 --he | --h)
24806 # Conflict between --help and --header
24807 as_fn_error "ambiguous option: \`$1'
24808 Try \`$0 --help' for more information.";;
24809 --help | --hel | -h )
24810 $as_echo "$ac_cs_usage"; exit ;;
24811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24812 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24813 ac_cs_silent=: ;;
24814
24815 # This is an error.
24816 -*) as_fn_error "unrecognized option: \`$1'
24817 Try \`$0 --help' for more information." ;;
24818
24819 *) as_fn_append ac_config_targets " $1"
24820 ac_need_defaults=false ;;
24821
24822 esac
24823 shift
24824 done
24825
24826 ac_configure_extra_args=
24827
24828 if $ac_cs_silent; then
24829 exec 6>/dev/null
24830 ac_configure_extra_args="$ac_configure_extra_args --silent"
24831 fi
24832
24833 _ACEOF
24834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24835 if \$ac_cs_recheck; then
24836 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24837 shift
24838 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24839 CONFIG_SHELL='$SHELL'
24840 export CONFIG_SHELL
24841 exec "\$@"
24842 fi
24843
24844 _ACEOF
24845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24846 exec 5>>config.log
24847 {
24848 echo
24849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24850 ## Running $as_me. ##
24851 _ASBOX
24852 $as_echo "$ac_log"
24853 } >&5
24854
24855 _ACEOF
24856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24857 #
24858 # INIT-COMMANDS
24859 #
24860 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24861 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
24862
24863 _ACEOF
24864
24865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24866
24867 # Handling of arguments.
24868 for ac_config_target in $ac_config_targets
24869 do
24870 case $ac_config_target in
24871 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24872 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24873 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24874 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24875 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
24876 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24877 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24878 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24879 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24880 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24881 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24882 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24883 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24884 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24885 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
24886 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
24887 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
24888 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
24889 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
24890
24891 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24892 esac
24893 done
24894
24895
24896 # If the user did not use the arguments to specify the items to instantiate,
24897 # then the envvar interface is used. Set only those that are not.
24898 # We use the long form for the default assignment because of an extremely
24899 # bizarre bug on SunOS 4.1.3.
24900 if $ac_need_defaults; then
24901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24904 fi
24905
24906 # Have a temporary directory for convenience. Make it in the build tree
24907 # simply because there is no reason against having it here, and in addition,
24908 # creating and moving files from /tmp can sometimes cause problems.
24909 # Hook for its removal unless debugging.
24910 # Note that there is a small window in which the directory will not be cleaned:
24911 # after its creation but before its name has been assigned to `$tmp'.
24912 $debug ||
24913 {
24914 tmp=
24915 trap 'exit_status=$?
24916 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24917 ' 0
24918 trap 'as_fn_exit 1' 1 2 13 15
24919 }
24920 # Create a (secure) tmp directory for tmp files.
24921
24922 {
24923 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24924 test -n "$tmp" && test -d "$tmp"
24925 } ||
24926 {
24927 tmp=./conf$$-$RANDOM
24928 (umask 077 && mkdir "$tmp")
24929 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
24930
24931 # Set up the scripts for CONFIG_FILES section.
24932 # No need to generate them if there are no CONFIG_FILES.
24933 # This happens for instance with `./config.status config.h'.
24934 if test -n "$CONFIG_FILES"; then
24935
24936 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
24937 ac_cs_awk_getline=:
24938 ac_cs_awk_pipe_init=
24939 ac_cs_awk_read_file='
24940 while ((getline aline < (F[key])) > 0)
24941 print(aline)
24942 close(F[key])'
24943 ac_cs_awk_pipe_fini=
24944 else
24945 ac_cs_awk_getline=false
24946 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
24947 ac_cs_awk_read_file='
24948 print "|#_!!_#|"
24949 print "cat " F[key] " &&"
24950 '$ac_cs_awk_pipe_init
24951 # The final `:' finishes the AND list.
24952 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
24953 fi
24954 ac_cr=`echo X | tr X '\015'`
24955 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24956 # But we know of no other shell where ac_cr would be empty at this
24957 # point, so we can use a bashism as a fallback.
24958 if test "x$ac_cr" = x; then
24959 eval ac_cr=\$\'\\r\'
24960 fi
24961 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24962 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24963 ac_cs_awk_cr='\r'
24964 else
24965 ac_cs_awk_cr=$ac_cr
24966 fi
24967
24968 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24969 _ACEOF
24970
24971 # Create commands to substitute file output variables.
24972 {
24973 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24974 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24975 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24976 echo "_ACAWK" &&
24977 echo "_ACEOF"
24978 } >conf$$files.sh &&
24979 . ./conf$$files.sh ||
24980 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24981 rm -f conf$$files.sh
24982
24983 {
24984 echo "cat >conf$$subs.awk <<_ACEOF" &&
24985 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24986 echo "_ACEOF"
24987 } >conf$$subs.sh ||
24988 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24989 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24990 ac_delim='%!_!# '
24991 for ac_last_try in false false false false false :; do
24992 . ./conf$$subs.sh ||
24993 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24994
24995 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24996 if test $ac_delim_n = $ac_delim_num; then
24997 break
24998 elif $ac_last_try; then
24999 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25000 else
25001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25002 fi
25003 done
25004 rm -f conf$$subs.sh
25005
25006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25007 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25008 _ACEOF
25009 sed -n '
25010 h
25011 s/^/S["/; s/!.*/"]=/
25012 p
25013 g
25014 s/^[^!]*!//
25015 :repl
25016 t repl
25017 s/'"$ac_delim"'$//
25018 t delim
25019 :nl
25020 h
25021 s/\(.\{148\}\)..*/\1/
25022 t more1
25023 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25024 p
25025 n
25026 b repl
25027 :more1
25028 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25029 p
25030 g
25031 s/.\{148\}//
25032 t nl
25033 :delim
25034 h
25035 s/\(.\{148\}\)..*/\1/
25036 t more2
25037 s/["\\]/\\&/g; s/^/"/; s/$/"/
25038 p
25039 b
25040 :more2
25041 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25042 p
25043 g
25044 s/.\{148\}//
25045 t delim
25046 ' <conf$$subs.awk | sed '
25047 /^[^""]/{
25048 N
25049 s/\n//
25050 }
25051 ' >>$CONFIG_STATUS || ac_write_fail=1
25052 rm -f conf$$subs.awk
25053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25054 _ACAWK
25055 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25056 for (key in S) S_is_set[key] = 1
25057 FS = "\a"
25058 \$ac_cs_awk_pipe_init
25059 }
25060 {
25061 line = $ 0
25062 nfields = split(line, field, "@")
25063 substed = 0
25064 len = length(field[1])
25065 for (i = 2; i < nfields; i++) {
25066 key = field[i]
25067 keylen = length(key)
25068 if (S_is_set[key]) {
25069 value = S[key]
25070 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25071 len += length(value) + length(field[++i])
25072 substed = 1
25073 } else
25074 len += 1 + keylen
25075 }
25076 if (nfields == 3 && !substed) {
25077 key = field[2]
25078 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25079 \$ac_cs_awk_read_file
25080 next
25081 }
25082 }
25083 print line
25084 }
25085 \$ac_cs_awk_pipe_fini
25086 _ACAWK
25087 _ACEOF
25088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25089 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25090 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25091 else
25092 cat
25093 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25094 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25095 _ACEOF
25096
25097 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25098 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25099 # trailing colons and then remove the whole line if VPATH becomes empty
25100 # (actually we leave an empty line to preserve line numbers).
25101 if test "x$srcdir" = x.; then
25102 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25103 s/:*\$(srcdir):*/:/
25104 s/:*\${srcdir}:*/:/
25105 s/:*@srcdir@:*/:/
25106 s/^\([^=]*=[ ]*\):*/\1/
25107 s/:*$//
25108 s/^[^=]*=[ ]*$//
25109 }'
25110 fi
25111
25112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25113 fi # test -n "$CONFIG_FILES"
25114
25115 # Set up the scripts for CONFIG_HEADERS section.
25116 # No need to generate them if there are no CONFIG_HEADERS.
25117 # This happens for instance with `./config.status Makefile'.
25118 if test -n "$CONFIG_HEADERS"; then
25119 cat >"$tmp/defines.awk" <<\_ACAWK ||
25120 BEGIN {
25121 _ACEOF
25122
25123 # Transform confdefs.h into an awk script `defines.awk', embedded as
25124 # here-document in config.status, that substitutes the proper values into
25125 # config.h.in to produce config.h.
25126
25127 # Create a delimiter string that does not exist in confdefs.h, to ease
25128 # handling of long lines.
25129 ac_delim='%!_!# '
25130 for ac_last_try in false false :; do
25131 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25132 if test -z "$ac_t"; then
25133 break
25134 elif $ac_last_try; then
25135 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25136 else
25137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25138 fi
25139 done
25140
25141 # For the awk script, D is an array of macro values keyed by name,
25142 # likewise P contains macro parameters if any. Preserve backslash
25143 # newline sequences.
25144
25145 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25146 sed -n '
25147 s/.\{148\}/&'"$ac_delim"'/g
25148 t rset
25149 :rset
25150 s/^[ ]*#[ ]*define[ ][ ]*/ /
25151 t def
25152 d
25153 :def
25154 s/\\$//
25155 t bsnl
25156 s/["\\]/\\&/g
25157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25158 D["\1"]=" \3"/p
25159 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25160 d
25161 :bsnl
25162 s/["\\]/\\&/g
25163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25164 D["\1"]=" \3\\\\\\n"\\/p
25165 t cont
25166 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25167 t cont
25168 d
25169 :cont
25170 n
25171 s/.\{148\}/&'"$ac_delim"'/g
25172 t clear
25173 :clear
25174 s/\\$//
25175 t bsnlc
25176 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25177 d
25178 :bsnlc
25179 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25180 b cont
25181 ' <confdefs.h | sed '
25182 s/'"$ac_delim"'/"\\\
25183 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25184
25185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25186 for (key in D) D_is_set[key] = 1
25187 FS = "\a"
25188 }
25189 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25190 line = \$ 0
25191 split(line, arg, " ")
25192 if (arg[1] == "#") {
25193 defundef = arg[2]
25194 mac1 = arg[3]
25195 } else {
25196 defundef = substr(arg[1], 2)
25197 mac1 = arg[2]
25198 }
25199 split(mac1, mac2, "(") #)
25200 macro = mac2[1]
25201 prefix = substr(line, 1, index(line, defundef) - 1)
25202 if (D_is_set[macro]) {
25203 # Preserve the white space surrounding the "#".
25204 print prefix "define", macro P[macro] D[macro]
25205 next
25206 } else {
25207 # Replace #undef with comments. This is necessary, for example,
25208 # in the case of _POSIX_SOURCE, which is predefined and required
25209 # on some systems where configure will not decide to define it.
25210 if (defundef == "undef") {
25211 print "/*", prefix defundef, macro, "*/"
25212 next
25213 }
25214 }
25215 }
25216 { print }
25217 _ACAWK
25218 _ACEOF
25219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25220 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25221 fi # test -n "$CONFIG_HEADERS"
25222
25223
25224 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25225 shift
25226 for ac_tag
25227 do
25228 case $ac_tag in
25229 :[FHLC]) ac_mode=$ac_tag; continue;;
25230 esac
25231 case $ac_mode$ac_tag in
25232 :[FHL]*:*);;
25233 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25234 :[FH]-) ac_tag=-:-;;
25235 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25236 esac
25237 ac_save_IFS=$IFS
25238 IFS=:
25239 set x $ac_tag
25240 IFS=$ac_save_IFS
25241 shift
25242 ac_file=$1
25243 shift
25244
25245 case $ac_mode in
25246 :L) ac_source=$1;;
25247 :[FH])
25248 ac_file_inputs=
25249 for ac_f
25250 do
25251 case $ac_f in
25252 -) ac_f="$tmp/stdin";;
25253 *) # Look for the file first in the build tree, then in the source tree
25254 # (if the path is not absolute). The absolute path cannot be DOS-style,
25255 # because $ac_f cannot contain `:'.
25256 test -f "$ac_f" ||
25257 case $ac_f in
25258 [\\/$]*) false;;
25259 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25260 esac ||
25261 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25262 esac
25263 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25264 as_fn_append ac_file_inputs " '$ac_f'"
25265 done
25266
25267 # Let's still pretend it is `configure' which instantiates (i.e., don't
25268 # use $as_me), people would be surprised to read:
25269 # /* config.h. Generated by config.status. */
25270 configure_input='Generated from '`
25271 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25272 `' by configure.'
25273 if test x"$ac_file" != x-; then
25274 configure_input="$ac_file. $configure_input"
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25276 $as_echo "$as_me: creating $ac_file" >&6;}
25277 fi
25278 # Neutralize special characters interpreted by sed in replacement strings.
25279 case $configure_input in #(
25280 *\&* | *\|* | *\\* )
25281 ac_sed_conf_input=`$as_echo "$configure_input" |
25282 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25283 *) ac_sed_conf_input=$configure_input;;
25284 esac
25285
25286 case $ac_tag in
25287 *:-:* | *:-) cat >"$tmp/stdin" \
25288 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25289 esac
25290 ;;
25291 esac
25292
25293 ac_dir=`$as_dirname -- "$ac_file" ||
25294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25295 X"$ac_file" : 'X\(//\)[^/]' \| \
25296 X"$ac_file" : 'X\(//\)$' \| \
25297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25298 $as_echo X"$ac_file" |
25299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25300 s//\1/
25301 q
25302 }
25303 /^X\(\/\/\)[^/].*/{
25304 s//\1/
25305 q
25306 }
25307 /^X\(\/\/\)$/{
25308 s//\1/
25309 q
25310 }
25311 /^X\(\/\).*/{
25312 s//\1/
25313 q
25314 }
25315 s/.*/./; q'`
25316 as_dir="$ac_dir"; as_fn_mkdir_p
25317 ac_builddir=.
25318
25319 case "$ac_dir" in
25320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25321 *)
25322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25323 # A ".." for each directory in $ac_dir_suffix.
25324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25325 case $ac_top_builddir_sub in
25326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25328 esac ;;
25329 esac
25330 ac_abs_top_builddir=$ac_pwd
25331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25332 # for backward compatibility:
25333 ac_top_builddir=$ac_top_build_prefix
25334
25335 case $srcdir in
25336 .) # We are building in place.
25337 ac_srcdir=.
25338 ac_top_srcdir=$ac_top_builddir_sub
25339 ac_abs_top_srcdir=$ac_pwd ;;
25340 [\\/]* | ?:[\\/]* ) # Absolute name.
25341 ac_srcdir=$srcdir$ac_dir_suffix;
25342 ac_top_srcdir=$srcdir
25343 ac_abs_top_srcdir=$srcdir ;;
25344 *) # Relative name.
25345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25346 ac_top_srcdir=$ac_top_build_prefix$srcdir
25347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25348 esac
25349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25350
25351
25352 case $ac_mode in
25353 :F)
25354 #
25355 # CONFIG_FILE
25356 #
25357
25358 case $INSTALL in
25359 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25360 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25361 esac
25362 ac_MKDIR_P=$MKDIR_P
25363 case $MKDIR_P in
25364 [\\/$]* | ?:[\\/]* ) ;;
25365 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25366 esac
25367 _ACEOF
25368
25369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25370 # If the template does not know about datarootdir, expand it.
25371 # FIXME: This hack should be removed a few years after 2.60.
25372 ac_datarootdir_hack=; ac_datarootdir_seen=
25373 ac_sed_dataroot='
25374 /datarootdir/ {
25375 p
25376 q
25377 }
25378 /@datadir@/p
25379 /@docdir@/p
25380 /@infodir@/p
25381 /@localedir@/p
25382 /@mandir@/p'
25383 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25384 *datarootdir*) ac_datarootdir_seen=yes;;
25385 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25387 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25388 _ACEOF
25389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25390 ac_datarootdir_hack='
25391 s&@datadir@&$datadir&g
25392 s&@docdir@&$docdir&g
25393 s&@infodir@&$infodir&g
25394 s&@localedir@&$localedir&g
25395 s&@mandir@&$mandir&g
25396 s&\\\${datarootdir}&$datarootdir&g' ;;
25397 esac
25398 _ACEOF
25399
25400 # Neutralize VPATH when `$srcdir' = `.'.
25401 # Shell code in configure.ac might set extrasub.
25402 # FIXME: do we really want to maintain this feature?
25403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25404 ac_sed_extra="$ac_vpsub
25405 $extrasub
25406 _ACEOF
25407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25408 :t
25409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25410 s|@configure_input@|$ac_sed_conf_input|;t t
25411 s&@top_builddir@&$ac_top_builddir_sub&;t t
25412 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25413 s&@srcdir@&$ac_srcdir&;t t
25414 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25415 s&@top_srcdir@&$ac_top_srcdir&;t t
25416 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25417 s&@builddir@&$ac_builddir&;t t
25418 s&@abs_builddir@&$ac_abs_builddir&;t t
25419 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25420 s&@INSTALL@&$ac_INSTALL&;t t
25421 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25422 $ac_datarootdir_hack
25423 "
25424 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25425 if $ac_cs_awk_getline; then
25426 $AWK -f "$tmp/subs.awk"
25427 else
25428 $AWK -f "$tmp/subs.awk" | $SHELL
25429 fi >$tmp/out \
25430 || as_fn_error "could not create $ac_file" "$LINENO" 5
25431
25432 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25433 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25436 which seems to be undefined. Please make sure it is defined." >&5
25437 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25438 which seems to be undefined. Please make sure it is defined." >&2;}
25439
25440 rm -f "$tmp/stdin"
25441 case $ac_file in
25442 -) cat "$tmp/out" && rm -f "$tmp/out";;
25443 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25444 esac \
25445 || as_fn_error "could not create $ac_file" "$LINENO" 5
25446 ;;
25447 :H)
25448 #
25449 # CONFIG_HEADER
25450 #
25451 if test x"$ac_file" != x-; then
25452 {
25453 $as_echo "/* $configure_input */" \
25454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25455 } >"$tmp/config.h" \
25456 || as_fn_error "could not create $ac_file" "$LINENO" 5
25457 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25459 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25460 else
25461 rm -f "$ac_file"
25462 mv "$tmp/config.h" "$ac_file" \
25463 || as_fn_error "could not create $ac_file" "$LINENO" 5
25464 fi
25465 else
25466 $as_echo "/* $configure_input */" \
25467 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25468 || as_fn_error "could not create -" "$LINENO" 5
25469 fi
25470 # Compute "$ac_file"'s index in $config_headers.
25471 _am_arg="$ac_file"
25472 _am_stamp_count=1
25473 for _am_header in $config_headers :; do
25474 case $_am_header in
25475 $_am_arg | $_am_arg:* )
25476 break ;;
25477 * )
25478 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25479 esac
25480 done
25481 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25482 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25483 X"$_am_arg" : 'X\(//\)[^/]' \| \
25484 X"$_am_arg" : 'X\(//\)$' \| \
25485 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25486 $as_echo X"$_am_arg" |
25487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25488 s//\1/
25489 q
25490 }
25491 /^X\(\/\/\)[^/].*/{
25492 s//\1/
25493 q
25494 }
25495 /^X\(\/\/\)$/{
25496 s//\1/
25497 q
25498 }
25499 /^X\(\/\).*/{
25500 s//\1/
25501 q
25502 }
25503 s/.*/./; q'`/stamp-h$_am_stamp_count
25504 ;;
25505
25506 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25507 $as_echo "$as_me: executing $ac_file commands" >&6;}
25508 ;;
25509 esac
25510
25511
25512 case $ac_file$ac_mode in
25513 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25514 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25515 # are listed without --file. Let's play safe and only enable the eval
25516 # if we detect the quoting.
25517 case $CONFIG_FILES in
25518 *\'*) eval set x "$CONFIG_FILES" ;;
25519 *) set x $CONFIG_FILES ;;
25520 esac
25521 shift
25522 for mf
25523 do
25524 # Strip MF so we end up with the name of the file.
25525 mf=`echo "$mf" | sed -e 's/:.*$//'`
25526 # Check whether this is an Automake generated Makefile or not.
25527 # We used to match only the files named `Makefile.in', but
25528 # some people rename them; so instead we look at the file content.
25529 # Grep'ing the first line is not enough: some people post-process
25530 # each Makefile.in and add a new line on top of each file to say so.
25531 # Grep'ing the whole file is not good either: AIX grep has a line
25532 # limit of 2048, but all sed's we know have understand at least 4000.
25533 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25534 dirpart=`$as_dirname -- "$mf" ||
25535 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25536 X"$mf" : 'X\(//\)[^/]' \| \
25537 X"$mf" : 'X\(//\)$' \| \
25538 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25539 $as_echo X"$mf" |
25540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25541 s//\1/
25542 q
25543 }
25544 /^X\(\/\/\)[^/].*/{
25545 s//\1/
25546 q
25547 }
25548 /^X\(\/\/\)$/{
25549 s//\1/
25550 q
25551 }
25552 /^X\(\/\).*/{
25553 s//\1/
25554 q
25555 }
25556 s/.*/./; q'`
25557 else
25558 continue
25559 fi
25560 # Extract the definition of DEPDIR, am__include, and am__quote
25561 # from the Makefile without running `make'.
25562 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25563 test -z "$DEPDIR" && continue
25564 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25565 test -z "am__include" && continue
25566 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25567 # When using ansi2knr, U may be empty or an underscore; expand it
25568 U=`sed -n 's/^U = //p' < "$mf"`
25569 # Find all dependency output files, they are included files with
25570 # $(DEPDIR) in their names. We invoke sed twice because it is the
25571 # simplest approach to changing $(DEPDIR) to its actual value in the
25572 # expansion.
25573 for file in `sed -n "
25574 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25575 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25576 # Make sure the directory exists.
25577 test -f "$dirpart/$file" && continue
25578 fdir=`$as_dirname -- "$file" ||
25579 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25580 X"$file" : 'X\(//\)[^/]' \| \
25581 X"$file" : 'X\(//\)$' \| \
25582 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25583 $as_echo X"$file" |
25584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25585 s//\1/
25586 q
25587 }
25588 /^X\(\/\/\)[^/].*/{
25589 s//\1/
25590 q
25591 }
25592 /^X\(\/\/\)$/{
25593 s//\1/
25594 q
25595 }
25596 /^X\(\/\).*/{
25597 s//\1/
25598 q
25599 }
25600 s/.*/./; q'`
25601 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25602 # echo "creating $dirpart/$file"
25603 echo '# dummy' > "$dirpart/$file"
25604 done
25605 done
25606 }
25607 ;;
25608 "mkdirs":C)
25609 for dir in etc lisp ; do
25610 test -d ${dir} || mkdir ${dir}
25611 done
25612 ;;
25613 "epaths":C)
25614 echo creating src/epaths.h
25615 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
25616 ;;
25617 "gdbinit":C)
25618 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25619 echo creating src/.gdbinit
25620 echo source $srcdir/src/.gdbinit > src/.gdbinit
25621 fi
25622 ;;
25623
25624 esac
25625 done # for ac_tag
25626
25627
25628 as_fn_exit 0
25629 _ACEOF
25630 ac_clean_files=$ac_clean_files_save
25631
25632 test $ac_write_fail = 0 ||
25633 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25634
25635
25636 # configure is writing to config.log, and then calls config.status.
25637 # config.status does its own redirection, appending to config.log.
25638 # Unfortunately, on DOS this fails, as config.log is still kept open
25639 # by configure, so config.status won't be able to write to it; its
25640 # output is simply discarded. So we exec the FD to /dev/null,
25641 # effectively closing config.log, so it can be properly (re)opened and
25642 # appended to by config.status. When coming back to configure, we
25643 # need to make the FD available again.
25644 if test "$no_create" != yes; then
25645 ac_cs_success=:
25646 ac_config_status_args=
25647 test "$silent" = yes &&
25648 ac_config_status_args="$ac_config_status_args --quiet"
25649 exec 5>/dev/null
25650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25651 exec 5>>config.log
25652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25653 # would make configure fail if this is the last instruction.
25654 $ac_cs_success || as_fn_exit $?
25655 fi
25656 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25658 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25659 fi
25660