Auto-commit of generated files.
[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.1.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.1.50'
553 PACKAGE_STRING='emacs 24.1.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 S_FILE
1123 X_TOOLKIT_TYPE
1124 GNUSTEP_CFLAGS
1125 C_SWITCH_X_SITE
1126 LD_SWITCH_X_SITE
1127 gameuser
1128 gamedir
1129 bitmapdir
1130 archlibdir
1131 etcdir
1132 x_default_search_path
1133 lisppath
1134 locallisppath
1135 standardlisppath
1136 leimdir
1137 lispdir
1138 srcdir
1139 canonical
1140 configuration
1141 version
1142 KRB4LIB
1143 DESLIB
1144 KRB5LIB
1145 CRYPTOLIB
1146 COM_ERRLIB
1147 LIBRESOLV
1148 LIBHESIOD
1149 TERMCAP_OBJ
1150 LIBS_TERMCAP
1151 BLESSMAIL_TARGET
1152 LIBS_MAIL
1153 liblockfile
1154 LIBXML2_LIBS
1155 LIBXML2_CFLAGS
1156 LIBXSM
1157 LIBGPM
1158 LIBGIF
1159 LIBTIFF
1160 LIBPNG
1161 LIBJPEG
1162 LIBXPM
1163 M17N_FLT_LIBS
1164 M17N_FLT_CFLAGS
1165 LIBOTF_LIBS
1166 LIBOTF_CFLAGS
1167 FREETYPE_LIBS
1168 FREETYPE_CFLAGS
1169 XFT_LIBS
1170 XFT_CFLAGS
1171 FONTCONFIG_LIBS
1172 FONTCONFIG_CFLAGS
1173 LIBXMU
1174 LIBXTR6
1175 LIBGNUTLS_LIBS
1176 LIBGNUTLS_CFLAGS
1177 LIBSELINUX_LIBS
1178 SETTINGS_LIBS
1179 SETTINGS_CFLAGS
1180 GCONF_LIBS
1181 GCONF_CFLAGS
1182 GSETTINGS_LIBS
1183 GSETTINGS_CFLAGS
1184 DBUS_OBJ
1185 DBUS_LIBS
1186 DBUS_CFLAGS
1187 GTK_OBJ
1188 GTK_LIBS
1189 GTK_CFLAGS
1190 IMAGEMAGICK_LIBS
1191 IMAGEMAGICK_CFLAGS
1192 RSVG_LIBS
1193 RSVG_CFLAGS
1194 LIB_PTHREAD
1195 VMLIMIT_OBJ
1196 GMALLOC_OBJ
1197 HAVE_XSERVER
1198 LIB_STANDARD
1199 NS_OBJC_OBJ
1200 NS_OBJ
1201 ns_self_contained
1202 INSTALL_ARCH_INDEP_EXTRA
1203 TEMACS_LDFLAGS2
1204 LD_SWITCH_X_SITE_RPATH
1205 XMKMF
1206 DEPFLAGS
1207 MKDEPDIR
1208 CFLAGS_SOUND
1209 ALSA_LIBS
1210 ALSA_CFLAGS
1211 LIBSOUND
1212 PKG_CONFIG
1213 CRT_DIR
1214 START_FILES
1215 LIB_MATH
1216 LIBS_SYSTEM
1217 C_SWITCH_SYSTEM
1218 UNEXEC_OBJ
1219 C_SWITCH_MACHINE
1220 LD_SWITCH_SYSTEM
1221 CANNOT_DUMP
1222 INFO_OPTS
1223 INFO_EXT
1224 HAVE_MAKEINFO
1225 PAXCTL
1226 GZIP_PROG
1227 INSTALL_INFO
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_pop
1331 with_kerberos
1332 with_kerberos5
1333 with_hesiod
1334 with_mmdf
1335 with_mail_unlink
1336 with_mailhost
1337 with_sound
1338 with_sync_input
1339 with_x_toolkit
1340 with_wide_int
1341 with_xpm
1342 with_jpeg
1343 with_tiff
1344 with_gif
1345 with_png
1346 with_rsvg
1347 with_xml2
1348 with_imagemagick
1349 with_xft
1350 with_libotf
1351 with_m17n_flt
1352 with_toolkit_scroll_bars
1353 with_xaw3d
1354 with_xim
1355 with_ns
1356 with_gpm
1357 with_dbus
1358 with_gconf
1359 with_gsettings
1360 with_selinux
1361 with_gnutls
1362 with_makeinfo
1363 with_compress_info
1364 with_pkg_config_prog
1365 with_crt_dir
1366 with_gameuser
1367 with_gnustep_conf
1368 enable_ns_self_contained
1369 enable_locallisppath
1370 enable_checking
1371 enable_check_lisp_object_type
1372 enable_profiling
1373 enable_autodepend
1374 enable_dependency_tracking
1375 enable_largefile
1376 enable_gcc_warnings
1377 enable_link_time_optimization
1378 with_x
1379 '
1380 ac_precious_vars='build_alias
1381 host_alias
1382 target_alias
1383 CC
1384 CFLAGS
1385 LDFLAGS
1386 LIBS
1387 CPPFLAGS
1388 CPP
1389 XMKMF'
1390
1391
1392 # Initialize some variables set by options.
1393 ac_init_help=
1394 ac_init_version=false
1395 ac_unrecognized_opts=
1396 ac_unrecognized_sep=
1397 # The variables have the same names as the options, with
1398 # dashes changed to underlines.
1399 cache_file=/dev/null
1400 exec_prefix=NONE
1401 no_create=
1402 no_recursion=
1403 prefix=NONE
1404 program_prefix=NONE
1405 program_suffix=NONE
1406 program_transform_name=s,x,x,
1407 silent=
1408 site=
1409 srcdir=
1410 verbose=
1411 x_includes=NONE
1412 x_libraries=NONE
1413
1414 # Installation directory options.
1415 # These are left unexpanded so users can "make install exec_prefix=/foo"
1416 # and all the variables that are supposed to be based on exec_prefix
1417 # by default will actually change.
1418 # Use braces instead of parens because sh, perl, etc. also accept them.
1419 # (The list follows the same order as the GNU Coding Standards.)
1420 bindir='${exec_prefix}/bin'
1421 sbindir='${exec_prefix}/sbin'
1422 libexecdir='${exec_prefix}/libexec'
1423 datarootdir='${prefix}/share'
1424 datadir='${datarootdir}'
1425 sysconfdir='${prefix}/etc'
1426 sharedstatedir='${prefix}/com'
1427 localstatedir='${prefix}/var'
1428 includedir='${prefix}/include'
1429 oldincludedir='/usr/include'
1430 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1431 infodir='${datarootdir}/info'
1432 htmldir='${docdir}'
1433 dvidir='${docdir}'
1434 pdfdir='${docdir}'
1435 psdir='${docdir}'
1436 libdir='${exec_prefix}/lib'
1437 localedir='${datarootdir}/locale'
1438 mandir='${datarootdir}/man'
1439
1440 ac_prev=
1441 ac_dashdash=
1442 for ac_option
1443 do
1444 # If the previous option needs an argument, assign it.
1445 if test -n "$ac_prev"; then
1446 eval $ac_prev=\$ac_option
1447 ac_prev=
1448 continue
1449 fi
1450
1451 case $ac_option in
1452 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1453 *) ac_optarg=yes ;;
1454 esac
1455
1456 # Accept the important Cygnus configure options, so we can diagnose typos.
1457
1458 case $ac_dashdash$ac_option in
1459 --)
1460 ac_dashdash=yes ;;
1461
1462 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1463 ac_prev=bindir ;;
1464 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1465 bindir=$ac_optarg ;;
1466
1467 -build | --build | --buil | --bui | --bu)
1468 ac_prev=build_alias ;;
1469 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1470 build_alias=$ac_optarg ;;
1471
1472 -cache-file | --cache-file | --cache-fil | --cache-fi \
1473 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1474 ac_prev=cache_file ;;
1475 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1476 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1477 cache_file=$ac_optarg ;;
1478
1479 --config-cache | -C)
1480 cache_file=config.cache ;;
1481
1482 -datadir | --datadir | --datadi | --datad)
1483 ac_prev=datadir ;;
1484 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1485 datadir=$ac_optarg ;;
1486
1487 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1488 | --dataroo | --dataro | --datar)
1489 ac_prev=datarootdir ;;
1490 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1491 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1492 datarootdir=$ac_optarg ;;
1493
1494 -disable-* | --disable-*)
1495 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1496 # Reject names that are not valid shell variable names.
1497 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1498 as_fn_error "invalid feature name: $ac_useropt"
1499 ac_useropt_orig=$ac_useropt
1500 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1501 case $ac_user_opts in
1502 *"
1503 "enable_$ac_useropt"
1504 "*) ;;
1505 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1506 ac_unrecognized_sep=', ';;
1507 esac
1508 eval enable_$ac_useropt=no ;;
1509
1510 -docdir | --docdir | --docdi | --doc | --do)
1511 ac_prev=docdir ;;
1512 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1513 docdir=$ac_optarg ;;
1514
1515 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1516 ac_prev=dvidir ;;
1517 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1518 dvidir=$ac_optarg ;;
1519
1520 -enable-* | --enable-*)
1521 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1522 # Reject names that are not valid shell variable names.
1523 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1524 as_fn_error "invalid feature name: $ac_useropt"
1525 ac_useropt_orig=$ac_useropt
1526 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1528 *"
1529 "enable_$ac_useropt"
1530 "*) ;;
1531 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1532 ac_unrecognized_sep=', ';;
1533 esac
1534 eval enable_$ac_useropt=\$ac_optarg ;;
1535
1536 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1537 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1538 | --exec | --exe | --ex)
1539 ac_prev=exec_prefix ;;
1540 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1541 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1542 | --exec=* | --exe=* | --ex=*)
1543 exec_prefix=$ac_optarg ;;
1544
1545 -gas | --gas | --ga | --g)
1546 # Obsolete; use --with-gas.
1547 with_gas=yes ;;
1548
1549 -help | --help | --hel | --he | -h)
1550 ac_init_help=long ;;
1551 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1552 ac_init_help=recursive ;;
1553 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1554 ac_init_help=short ;;
1555
1556 -host | --host | --hos | --ho)
1557 ac_prev=host_alias ;;
1558 -host=* | --host=* | --hos=* | --ho=*)
1559 host_alias=$ac_optarg ;;
1560
1561 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1562 ac_prev=htmldir ;;
1563 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1564 | --ht=*)
1565 htmldir=$ac_optarg ;;
1566
1567 -includedir | --includedir | --includedi | --included | --include \
1568 | --includ | --inclu | --incl | --inc)
1569 ac_prev=includedir ;;
1570 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1571 | --includ=* | --inclu=* | --incl=* | --inc=*)
1572 includedir=$ac_optarg ;;
1573
1574 -infodir | --infodir | --infodi | --infod | --info | --inf)
1575 ac_prev=infodir ;;
1576 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1577 infodir=$ac_optarg ;;
1578
1579 -libdir | --libdir | --libdi | --libd)
1580 ac_prev=libdir ;;
1581 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1582 libdir=$ac_optarg ;;
1583
1584 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1585 | --libexe | --libex | --libe)
1586 ac_prev=libexecdir ;;
1587 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1588 | --libexe=* | --libex=* | --libe=*)
1589 libexecdir=$ac_optarg ;;
1590
1591 -localedir | --localedir | --localedi | --localed | --locale)
1592 ac_prev=localedir ;;
1593 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1594 localedir=$ac_optarg ;;
1595
1596 -localstatedir | --localstatedir | --localstatedi | --localstated \
1597 | --localstate | --localstat | --localsta | --localst | --locals)
1598 ac_prev=localstatedir ;;
1599 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1600 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1601 localstatedir=$ac_optarg ;;
1602
1603 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1604 ac_prev=mandir ;;
1605 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1606 mandir=$ac_optarg ;;
1607
1608 -nfp | --nfp | --nf)
1609 # Obsolete; use --without-fp.
1610 with_fp=no ;;
1611
1612 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1613 | --no-cr | --no-c | -n)
1614 no_create=yes ;;
1615
1616 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1617 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1618 no_recursion=yes ;;
1619
1620 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1621 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1622 | --oldin | --oldi | --old | --ol | --o)
1623 ac_prev=oldincludedir ;;
1624 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1625 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1626 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1627 oldincludedir=$ac_optarg ;;
1628
1629 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1630 ac_prev=prefix ;;
1631 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1632 prefix=$ac_optarg ;;
1633
1634 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1635 | --program-pre | --program-pr | --program-p)
1636 ac_prev=program_prefix ;;
1637 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1638 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1639 program_prefix=$ac_optarg ;;
1640
1641 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1642 | --program-suf | --program-su | --program-s)
1643 ac_prev=program_suffix ;;
1644 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1645 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1646 program_suffix=$ac_optarg ;;
1647
1648 -program-transform-name | --program-transform-name \
1649 | --program-transform-nam | --program-transform-na \
1650 | --program-transform-n | --program-transform- \
1651 | --program-transform | --program-transfor \
1652 | --program-transfo | --program-transf \
1653 | --program-trans | --program-tran \
1654 | --progr-tra | --program-tr | --program-t)
1655 ac_prev=program_transform_name ;;
1656 -program-transform-name=* | --program-transform-name=* \
1657 | --program-transform-nam=* | --program-transform-na=* \
1658 | --program-transform-n=* | --program-transform-=* \
1659 | --program-transform=* | --program-transfor=* \
1660 | --program-transfo=* | --program-transf=* \
1661 | --program-trans=* | --program-tran=* \
1662 | --progr-tra=* | --program-tr=* | --program-t=*)
1663 program_transform_name=$ac_optarg ;;
1664
1665 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1666 ac_prev=pdfdir ;;
1667 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1668 pdfdir=$ac_optarg ;;
1669
1670 -psdir | --psdir | --psdi | --psd | --ps)
1671 ac_prev=psdir ;;
1672 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1673 psdir=$ac_optarg ;;
1674
1675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676 | -silent | --silent | --silen | --sile | --sil)
1677 silent=yes ;;
1678
1679 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1680 ac_prev=sbindir ;;
1681 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1682 | --sbi=* | --sb=*)
1683 sbindir=$ac_optarg ;;
1684
1685 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1686 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1687 | --sharedst | --shareds | --shared | --share | --shar \
1688 | --sha | --sh)
1689 ac_prev=sharedstatedir ;;
1690 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1691 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1692 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1693 | --sha=* | --sh=*)
1694 sharedstatedir=$ac_optarg ;;
1695
1696 -site | --site | --sit)
1697 ac_prev=site ;;
1698 -site=* | --site=* | --sit=*)
1699 site=$ac_optarg ;;
1700
1701 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1702 ac_prev=srcdir ;;
1703 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1704 srcdir=$ac_optarg ;;
1705
1706 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1707 | --syscon | --sysco | --sysc | --sys | --sy)
1708 ac_prev=sysconfdir ;;
1709 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1710 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1711 sysconfdir=$ac_optarg ;;
1712
1713 -target | --target | --targe | --targ | --tar | --ta | --t)
1714 ac_prev=target_alias ;;
1715 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1716 target_alias=$ac_optarg ;;
1717
1718 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1719 verbose=yes ;;
1720
1721 -version | --version | --versio | --versi | --vers | -V)
1722 ac_init_version=: ;;
1723
1724 -with-* | --with-*)
1725 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1726 # Reject names that are not valid shell variable names.
1727 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1728 as_fn_error "invalid package name: $ac_useropt"
1729 ac_useropt_orig=$ac_useropt
1730 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1731 case $ac_user_opts in
1732 *"
1733 "with_$ac_useropt"
1734 "*) ;;
1735 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1736 ac_unrecognized_sep=', ';;
1737 esac
1738 eval with_$ac_useropt=\$ac_optarg ;;
1739
1740 -without-* | --without-*)
1741 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1742 # Reject names that are not valid shell variable names.
1743 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1744 as_fn_error "invalid package name: $ac_useropt"
1745 ac_useropt_orig=$ac_useropt
1746 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1747 case $ac_user_opts in
1748 *"
1749 "with_$ac_useropt"
1750 "*) ;;
1751 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1752 ac_unrecognized_sep=', ';;
1753 esac
1754 eval with_$ac_useropt=no ;;
1755
1756 --x)
1757 # Obsolete; use --with-x.
1758 with_x=yes ;;
1759
1760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1761 | --x-incl | --x-inc | --x-in | --x-i)
1762 ac_prev=x_includes ;;
1763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1765 x_includes=$ac_optarg ;;
1766
1767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1769 ac_prev=x_libraries ;;
1770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1772 x_libraries=$ac_optarg ;;
1773
1774 -*) as_fn_error "unrecognized option: \`$ac_option'
1775 Try \`$0 --help' for more information."
1776 ;;
1777
1778 *=*)
1779 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1780 # Reject names that are not valid shell variable names.
1781 case $ac_envvar in #(
1782 '' | [0-9]* | *[!_$as_cr_alnum]* )
1783 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1784 esac
1785 eval $ac_envvar=\$ac_optarg
1786 export $ac_envvar ;;
1787
1788 *)
1789 # FIXME: should be removed in autoconf 3.0.
1790 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1791 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1792 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1793 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1794 ;;
1795
1796 esac
1797 done
1798
1799 if test -n "$ac_prev"; then
1800 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1801 as_fn_error "missing argument to $ac_option"
1802 fi
1803
1804 if test -n "$ac_unrecognized_opts"; then
1805 case $enable_option_checking in
1806 no) ;;
1807 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1808 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1809 esac
1810 fi
1811
1812 # Check all directory arguments for consistency.
1813 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1814 datadir sysconfdir sharedstatedir localstatedir includedir \
1815 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1816 libdir localedir mandir
1817 do
1818 eval ac_val=\$$ac_var
1819 # Remove trailing slashes.
1820 case $ac_val in
1821 */ )
1822 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1823 eval $ac_var=\$ac_val;;
1824 esac
1825 # Be sure to have absolute directory names.
1826 case $ac_val in
1827 [\\/$]* | ?:[\\/]* ) continue;;
1828 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1829 esac
1830 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1831 done
1832
1833 # There might be people who depend on the old broken behavior: `$host'
1834 # used to hold the argument of --host etc.
1835 # FIXME: To remove some day.
1836 build=$build_alias
1837 host=$host_alias
1838 target=$target_alias
1839
1840 # FIXME: To remove some day.
1841 if test "x$host_alias" != x; then
1842 if test "x$build_alias" = x; then
1843 cross_compiling=maybe
1844 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1845 If a cross compiler is detected then cross compile mode will be used." >&2
1846 elif test "x$build_alias" != "x$host_alias"; then
1847 cross_compiling=yes
1848 fi
1849 fi
1850
1851 ac_tool_prefix=
1852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1853
1854 test "$silent" = yes && exec 6>/dev/null
1855
1856
1857 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1858 ac_ls_di=`ls -di .` &&
1859 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1860 as_fn_error "working directory cannot be determined"
1861 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1862 as_fn_error "pwd does not report name of working directory"
1863
1864
1865 # Find the source files, if location was not specified.
1866 if test -z "$srcdir"; then
1867 ac_srcdir_defaulted=yes
1868 # Try the directory containing this script, then the parent directory.
1869 ac_confdir=`$as_dirname -- "$as_myself" ||
1870 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1871 X"$as_myself" : 'X\(//\)[^/]' \| \
1872 X"$as_myself" : 'X\(//\)$' \| \
1873 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1874 $as_echo X"$as_myself" |
1875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1876 s//\1/
1877 q
1878 }
1879 /^X\(\/\/\)[^/].*/{
1880 s//\1/
1881 q
1882 }
1883 /^X\(\/\/\)$/{
1884 s//\1/
1885 q
1886 }
1887 /^X\(\/\).*/{
1888 s//\1/
1889 q
1890 }
1891 s/.*/./; q'`
1892 srcdir=$ac_confdir
1893 if test ! -r "$srcdir/$ac_unique_file"; then
1894 srcdir=..
1895 fi
1896 else
1897 ac_srcdir_defaulted=no
1898 fi
1899 if test ! -r "$srcdir/$ac_unique_file"; then
1900 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1901 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1902 fi
1903 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1904 ac_abs_confdir=`(
1905 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1906 pwd)`
1907 # When building in place, set srcdir=.
1908 if test "$ac_abs_confdir" = "$ac_pwd"; then
1909 srcdir=.
1910 fi
1911 # Remove unnecessary trailing slashes from srcdir.
1912 # Double slashes in file names in object file debugging info
1913 # mess up M-x gdb in Emacs.
1914 case $srcdir in
1915 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1916 esac
1917 for ac_var in $ac_precious_vars; do
1918 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1919 eval ac_env_${ac_var}_value=\$${ac_var}
1920 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1921 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1922 done
1923
1924 #
1925 # Report the --help message.
1926 #
1927 if test "$ac_init_help" = "long"; then
1928 # Omit some internal or obsolete options to make the list less imposing.
1929 # This message is too long to be a string in the A/UX 3.1 sh.
1930 cat <<_ACEOF
1931 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1932
1933 Usage: $0 [OPTION]... [VAR=VALUE]...
1934
1935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1936 VAR=VALUE. See below for descriptions of some of the useful variables.
1937
1938 Defaults for the options are specified in brackets.
1939
1940 Configuration:
1941 -h, --help display this help and exit
1942 --help=short display options specific to this package
1943 --help=recursive display the short help of all the included packages
1944 -V, --version display version information and exit
1945 -q, --quiet, --silent do not print \`checking...' messages
1946 --cache-file=FILE cache test results in FILE [disabled]
1947 -C, --config-cache alias for \`--cache-file=config.cache'
1948 -n, --no-create do not create output files
1949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1950
1951 Installation directories:
1952 --prefix=PREFIX install architecture-independent files in PREFIX
1953 [$ac_default_prefix]
1954 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1955 [PREFIX]
1956
1957 By default, \`make install' will install all the files in
1958 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1959 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1960 for instance \`--prefix=\$HOME'.
1961
1962 For better control, use the options below.
1963
1964 Fine tuning of the installation directories:
1965 --bindir=DIR user executables [EPREFIX/bin]
1966 --sbindir=DIR system admin executables [EPREFIX/sbin]
1967 --libexecdir=DIR program executables [EPREFIX/libexec]
1968 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1969 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1970 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1971 --libdir=DIR object code libraries [EPREFIX/lib]
1972 --includedir=DIR C header files [PREFIX/include]
1973 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1974 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1975 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1976 --infodir=DIR info documentation [DATAROOTDIR/info]
1977 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1978 --mandir=DIR man documentation [DATAROOTDIR/man]
1979 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1980 --htmldir=DIR html documentation [DOCDIR]
1981 --dvidir=DIR dvi documentation [DOCDIR]
1982 --pdfdir=DIR pdf documentation [DOCDIR]
1983 --psdir=DIR ps documentation [DOCDIR]
1984 _ACEOF
1985
1986 cat <<\_ACEOF
1987
1988 Program names:
1989 --program-prefix=PREFIX prepend PREFIX to installed program names
1990 --program-suffix=SUFFIX append SUFFIX to installed program names
1991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1992
1993 X features:
1994 --x-includes=DIR X include files are in DIR
1995 --x-libraries=DIR X library files are in DIR
1996
1997 System types:
1998 --build=BUILD configure for building on BUILD [guessed]
1999 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2000 _ACEOF
2001 fi
2002
2003 if test -n "$ac_init_help"; then
2004 case $ac_init_help in
2005 short | recursive ) echo "Configuration of emacs 24.1.50:";;
2006 esac
2007 cat <<\_ACEOF
2008
2009 Optional Features:
2010 --disable-option-checking ignore unrecognized --enable/--with options
2011 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2012 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2013 --disable-ns-self-contained
2014 disable self contained build under NeXTstep
2015 --enable-locallisppath=PATH
2016 directories Emacs should search for lisp files
2017 specific to this site
2018 --enable-checking[=LIST]
2019 enable expensive run-time checks. With LIST, enable
2020 only specific categories of checks. Categories are:
2021 all,yes,no. Flags are: stringbytes, stringoverrun,
2022 stringfreelist, xmallocoverrun, conslist, glyphs
2023 --enable-check-lisp-object-type
2024 enable compile time checks for the Lisp_Object data
2025 type. This is useful for development for catching
2026 certain types of bugs.
2027 --enable-profiling build emacs with profiling support. This might not
2028 work on all platforms
2029 --enable-autodepend automatically generate dependencies to .h-files.
2030 Requires GNU Make and Gcc. Enabled if GNU Make and
2031 Gcc is found
2032 --disable-dependency-tracking speeds up one-time build
2033 --enable-dependency-tracking do not reject slow dependency extractors
2034 --disable-largefile omit support for large files
2035 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2036 developers, and may generate false alarms when used
2037 with older or non-GNU development tools.
2038 --enable-link-time-optimization
2039 build emacs with link-time optimization. This is
2040 supported only for GCC since 4.5.0.
2041
2042 Optional Packages:
2043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2045 --without-pop don't support POP mail retrieval with movemail
2046 --with-kerberos support Kerberos-authenticated POP
2047 --with-kerberos5 support Kerberos version 5 authenticated POP
2048 --with-hesiod support Hesiod to get the POP server host
2049 --with-mmdf support MMDF mailboxes
2050 --with-mail-unlink unlink, rather than empty, mail spool after reading
2051 --with-mailhost=HOSTNAME
2052 string giving default POP mail host
2053 --without-sound don't compile with sound support
2054 --without-sync-input process async input synchronously
2055 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2056 lucid or athena, motif, no)
2057 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2058 --without-xpm don't compile with XPM image support
2059 --without-jpeg don't compile with JPEG image support
2060 --without-tiff don't compile with TIFF image support
2061 --without-gif don't compile with GIF image support
2062 --without-png don't compile with PNG image support
2063 --without-rsvg don't compile with SVG image support
2064 --without-xml2 don't compile with XML parsing support
2065 --without-imagemagick don't compile with ImageMagick image support
2066 --without-xft don't use XFT for anti aliased fonts
2067 --without-libotf don't use libotf for OpenType font support
2068 --without-m17n-flt don't use m17n-flt for text shaping
2069 --without-toolkit-scroll-bars
2070 don't use Motif or Xaw3d scroll bars
2071 --without-xaw3d don't use Xaw3d
2072 --without-xim don't use X11 XIM
2073 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2074 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2075 console
2076 --without-dbus don't compile with D-Bus support
2077 --without-gconf don't compile with GConf support
2078 --without-gsettings don't compile with GSettings support
2079 --without-selinux don't compile with SELinux support
2080 --without-gnutls don't use -lgnutls for SSL/TLS support
2081 --without-makeinfo don't require makeinfo for building manuals
2082 --without-compress-info don't compress the installed Info pages
2083 --with-pkg-config-prog=PATH
2084 path to pkg-config for finding GTK and librsvg
2085 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2086 /usr/lib, or /usr/lib64 on some platforms.
2087 --with-gameuser=USER user for shared game score files
2088 --with-gnustep-conf=PATH
2089 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2090 or /etc/GNUstep/GNUstep.conf
2091 --with-x use the X Window System
2092
2093 Some influential environment variables:
2094 CC C compiler command
2095 CFLAGS C compiler flags
2096 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2097 nonstandard directory <lib dir>
2098 LIBS libraries to pass to the linker, e.g. -l<library>
2099 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2100 you have headers in a nonstandard directory <include dir>
2101 CPP C preprocessor
2102 XMKMF Path to xmkmf, Makefile generator for X Window System
2103
2104 Use these variables to override the choices made by `configure' or to help
2105 it to find libraries and programs with nonstandard names/locations.
2106
2107 Report bugs to the package provider.
2108 _ACEOF
2109 ac_status=$?
2110 fi
2111
2112 if test "$ac_init_help" = "recursive"; then
2113 # If there are subdirs, report their specific --help.
2114 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2115 test -d "$ac_dir" ||
2116 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2117 continue
2118 ac_builddir=.
2119
2120 case "$ac_dir" in
2121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2122 *)
2123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2124 # A ".." for each directory in $ac_dir_suffix.
2125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2126 case $ac_top_builddir_sub in
2127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2129 esac ;;
2130 esac
2131 ac_abs_top_builddir=$ac_pwd
2132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2133 # for backward compatibility:
2134 ac_top_builddir=$ac_top_build_prefix
2135
2136 case $srcdir in
2137 .) # We are building in place.
2138 ac_srcdir=.
2139 ac_top_srcdir=$ac_top_builddir_sub
2140 ac_abs_top_srcdir=$ac_pwd ;;
2141 [\\/]* | ?:[\\/]* ) # Absolute name.
2142 ac_srcdir=$srcdir$ac_dir_suffix;
2143 ac_top_srcdir=$srcdir
2144 ac_abs_top_srcdir=$srcdir ;;
2145 *) # Relative name.
2146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2147 ac_top_srcdir=$ac_top_build_prefix$srcdir
2148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2149 esac
2150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2151
2152 cd "$ac_dir" || { ac_status=$?; continue; }
2153 # Check for guested configure.
2154 if test -f "$ac_srcdir/configure.gnu"; then
2155 echo &&
2156 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2157 elif test -f "$ac_srcdir/configure"; then
2158 echo &&
2159 $SHELL "$ac_srcdir/configure" --help=recursive
2160 else
2161 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2162 fi || ac_status=$?
2163 cd "$ac_pwd" || { ac_status=$?; break; }
2164 done
2165 fi
2166
2167 test -n "$ac_init_help" && exit $ac_status
2168 if $ac_init_version; then
2169 cat <<\_ACEOF
2170 emacs configure 24.1.50
2171 generated by GNU Autoconf 2.65
2172
2173 Copyright (C) 2009 Free Software Foundation, Inc.
2174 This configure script is free software; the Free Software Foundation
2175 gives unlimited permission to copy, distribute and modify it.
2176 _ACEOF
2177 exit
2178 fi
2179
2180 ## ------------------------ ##
2181 ## Autoconf initialization. ##
2182 ## ------------------------ ##
2183
2184 # ac_fn_c_try_compile LINENO
2185 # --------------------------
2186 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_c_try_compile ()
2188 {
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 rm -f conftest.$ac_objext
2191 if { { ac_try="$ac_compile"
2192 case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_compile") 2>conftest.err
2199 ac_status=$?
2200 if test -s conftest.err; then
2201 grep -v '^ *+' conftest.err >conftest.er1
2202 cat conftest.er1 >&5
2203 mv -f conftest.er1 conftest.err
2204 fi
2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206 test $ac_status = 0; } && {
2207 test -z "$ac_c_werror_flag" ||
2208 test ! -s conftest.err
2209 } && test -s conftest.$ac_objext; then :
2210 ac_retval=0
2211 else
2212 $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 ac_retval=1
2216 fi
2217 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218 as_fn_set_status $ac_retval
2219
2220 } # ac_fn_c_try_compile
2221
2222 # ac_fn_c_try_cpp LINENO
2223 # ----------------------
2224 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_c_try_cpp ()
2226 {
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { { ac_try="$ac_cpp conftest.$ac_ext"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2236 ac_status=$?
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2241 fi
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } >/dev/null && {
2244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2245 test ! -s conftest.err
2246 }; then :
2247 ac_retval=0
2248 else
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_retval=1
2253 fi
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 as_fn_set_status $ac_retval
2256
2257 } # ac_fn_c_try_cpp
2258
2259 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2260 # -------------------------------------------------------
2261 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2262 # the include files in INCLUDES and setting the cache variable VAR
2263 # accordingly.
2264 ac_fn_c_check_header_mongrel ()
2265 {
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 $as_echo_n "(cached) " >&6
2272 fi
2273 eval ac_res=\$$3
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 else
2277 # Is the header compilable?
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2279 $as_echo_n "checking $2 usability... " >&6; }
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2282 $4
2283 #include <$2>
2284 _ACEOF
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286 ac_header_compiler=yes
2287 else
2288 ac_header_compiler=no
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2292 $as_echo "$ac_header_compiler" >&6; }
2293
2294 # Is the header present?
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2296 $as_echo_n "checking $2 presence... " >&6; }
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2299 #include <$2>
2300 _ACEOF
2301 if ac_fn_c_try_cpp "$LINENO"; then :
2302 ac_header_preproc=yes
2303 else
2304 ac_header_preproc=no
2305 fi
2306 rm -f conftest.err conftest.$ac_ext
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2308 $as_echo "$ac_header_preproc" >&6; }
2309
2310 # So? What about this header?
2311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2312 yes:no: )
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2314 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2316 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2317 ;;
2318 no:yes:* )
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2320 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2322 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2324 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2326 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2328 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2329 ;;
2330 esac
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 eval "$3=\$ac_header_compiler"
2337 fi
2338 eval ac_res=\$$3
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 fi
2342 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343
2344 } # ac_fn_c_check_header_mongrel
2345
2346 # ac_fn_c_try_run LINENO
2347 # ----------------------
2348 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2349 # that executables *can* be run.
2350 ac_fn_c_try_run ()
2351 {
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 if { { ac_try="$ac_link"
2354 case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357 esac
2358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2359 $as_echo "$ac_try_echo"; } >&5
2360 (eval "$ac_link") 2>&5
2361 ac_status=$?
2362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2364 { { case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_try") 2>&5
2371 ac_status=$?
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; }; }; then :
2374 ac_retval=0
2375 else
2376 $as_echo "$as_me: program exited with status $ac_status" >&5
2377 $as_echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 ac_retval=$ac_status
2381 fi
2382 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384 as_fn_set_status $ac_retval
2385
2386 } # ac_fn_c_try_run
2387
2388 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2389 # -------------------------------------------------------
2390 # Tests whether HEADER exists and can be compiled using the include files in
2391 # INCLUDES, setting the cache variable VAR accordingly.
2392 ac_fn_c_check_header_compile ()
2393 {
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 $4
2403 #include <$2>
2404 _ACEOF
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406 eval "$3=yes"
2407 else
2408 eval "$3=no"
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 eval ac_res=\$$3
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2416
2417 } # ac_fn_c_check_header_compile
2418
2419 # ac_fn_c_try_link LINENO
2420 # -----------------------
2421 # Try to link conftest.$ac_ext, and return whether this succeeded.
2422 ac_fn_c_try_link ()
2423 {
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 rm -f conftest.$ac_objext conftest$ac_exeext
2426 if { { ac_try="$ac_link"
2427 case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430 esac
2431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2432 $as_echo "$ac_try_echo"; } >&5
2433 (eval "$ac_link") 2>conftest.err
2434 ac_status=$?
2435 if test -s conftest.err; then
2436 grep -v '^ *+' conftest.err >conftest.er1
2437 cat conftest.er1 >&5
2438 mv -f conftest.er1 conftest.err
2439 fi
2440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441 test $ac_status = 0; } && {
2442 test -z "$ac_c_werror_flag" ||
2443 test ! -s conftest.err
2444 } && test -s conftest$ac_exeext && {
2445 test "$cross_compiling" = yes ||
2446 $as_test_x conftest$ac_exeext
2447 }; then :
2448 ac_retval=0
2449 else
2450 $as_echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 ac_retval=1
2454 fi
2455 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2456 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2457 # interfere with the next link command; also delete a directory that is
2458 # left behind by Apple's compiler. We do this before executing the actions.
2459 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 as_fn_set_status $ac_retval
2462
2463 } # ac_fn_c_try_link
2464
2465 # ac_fn_c_check_decl LINENO SYMBOL VAR
2466 # ------------------------------------
2467 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2468 ac_fn_c_check_decl ()
2469 {
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2472 $as_echo_n "checking whether $2 is declared... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 $4
2479 int
2480 main ()
2481 {
2482 #ifndef $2
2483 (void) $2;
2484 #endif
2485
2486 ;
2487 return 0;
2488 }
2489 _ACEOF
2490 if ac_fn_c_try_compile "$LINENO"; then :
2491 eval "$3=yes"
2492 else
2493 eval "$3=no"
2494 fi
2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496 fi
2497 eval ac_res=\$$3
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2501
2502 } # ac_fn_c_check_decl
2503
2504 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2505 # ----------------------------------------------
2506 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2507 ac_fn_c_check_header_preproc ()
2508 {
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2517 #include <$2>
2518 _ACEOF
2519 if ac_fn_c_try_cpp "$LINENO"; then :
2520 eval "$3=yes"
2521 else
2522 eval "$3=no"
2523 fi
2524 rm -f conftest.err conftest.$ac_ext
2525 fi
2526 eval ac_res=\$$3
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2530
2531 } # ac_fn_c_check_header_preproc
2532
2533 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2534 # ----------------------------------------------------
2535 # Tries to find if the field MEMBER exists in type AGGR, after including
2536 # INCLUDES, setting cache variable VAR accordingly.
2537 ac_fn_c_check_member ()
2538 {
2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2541 $as_echo_n "checking for $2.$3... " >&6; }
2542 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2547 $5
2548 int
2549 main ()
2550 {
2551 static $2 ac_aggr;
2552 if (ac_aggr.$3)
2553 return 0;
2554 ;
2555 return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_c_try_compile "$LINENO"; then :
2559 eval "$4=yes"
2560 else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 $5
2564 int
2565 main ()
2566 {
2567 static $2 ac_aggr;
2568 if (sizeof ac_aggr.$3)
2569 return 0;
2570 ;
2571 return 0;
2572 }
2573 _ACEOF
2574 if ac_fn_c_try_compile "$LINENO"; then :
2575 eval "$4=yes"
2576 else
2577 eval "$4=no"
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 fi
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 fi
2583 eval ac_res=\$$4
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585 $as_echo "$ac_res" >&6; }
2586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2587
2588 } # ac_fn_c_check_member
2589
2590 # ac_fn_c_check_func LINENO FUNC VAR
2591 # ----------------------------------
2592 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2593 ac_fn_c_check_func ()
2594 {
2595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2597 $as_echo_n "checking for $2... " >&6; }
2598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2603 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2605 #define $2 innocuous_$2
2606
2607 /* System header to define __stub macros and hopefully few prototypes,
2608 which can conflict with char $2 (); below.
2609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2610 <limits.h> exists even on freestanding compilers. */
2611
2612 #ifdef __STDC__
2613 # include <limits.h>
2614 #else
2615 # include <assert.h>
2616 #endif
2617
2618 #undef $2
2619
2620 /* Override any GCC internal prototype to avoid an error.
2621 Use char because int might match the return type of a GCC
2622 builtin and then its argument prototype would still apply. */
2623 #ifdef __cplusplus
2624 extern "C"
2625 #endif
2626 char $2 ();
2627 /* The GNU C library defines this for functions which it implements
2628 to always fail with ENOSYS. Some functions are actually named
2629 something starting with __ and the normal name is an alias. */
2630 #if defined __stub_$2 || defined __stub___$2
2631 choke me
2632 #endif
2633
2634 int
2635 main ()
2636 {
2637 return $2 ();
2638 ;
2639 return 0;
2640 }
2641 _ACEOF
2642 if ac_fn_c_try_link "$LINENO"; then :
2643 eval "$3=yes"
2644 else
2645 eval "$3=no"
2646 fi
2647 rm -f core conftest.err conftest.$ac_objext \
2648 conftest$ac_exeext conftest.$ac_ext
2649 fi
2650 eval ac_res=\$$3
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2652 $as_echo "$ac_res" >&6; }
2653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654
2655 } # ac_fn_c_check_func
2656
2657 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2658 # -------------------------------------------
2659 # Tests whether TYPE exists after having included INCLUDES, setting cache
2660 # variable VAR accordingly.
2661 ac_fn_c_check_type ()
2662 {
2663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2665 $as_echo_n "checking for $2... " >&6; }
2666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 eval "$3=no"
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2672 $4
2673 int
2674 main ()
2675 {
2676 if (sizeof ($2))
2677 return 0;
2678 ;
2679 return 0;
2680 }
2681 _ACEOF
2682 if ac_fn_c_try_compile "$LINENO"; then :
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2685 $4
2686 int
2687 main ()
2688 {
2689 if (sizeof (($2)))
2690 return 0;
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 if ac_fn_c_try_compile "$LINENO"; then :
2696
2697 else
2698 eval "$3=yes"
2699 fi
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 fi
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704 eval ac_res=\$$3
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2708
2709 } # ac_fn_c_check_type
2710
2711 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2712 # --------------------------------------------
2713 # Tries to find the compile-time value of EXPR in a program that includes
2714 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2715 # computed
2716 ac_fn_c_compute_int ()
2717 {
2718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2719 if test "$cross_compiling" = yes; then
2720 # Depending upon the size, compute the lo and hi bounds.
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2723 $4
2724 int
2725 main ()
2726 {
2727 static int test_array [1 - 2 * !(($2) >= 0)];
2728 test_array [0] = 0
2729
2730 ;
2731 return 0;
2732 }
2733 _ACEOF
2734 if ac_fn_c_try_compile "$LINENO"; then :
2735 ac_lo=0 ac_mid=0
2736 while :; do
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 $4
2740 int
2741 main ()
2742 {
2743 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2744 test_array [0] = 0
2745
2746 ;
2747 return 0;
2748 }
2749 _ACEOF
2750 if ac_fn_c_try_compile "$LINENO"; then :
2751 ac_hi=$ac_mid; break
2752 else
2753 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2754 if test $ac_lo -le $ac_mid; then
2755 ac_lo= ac_hi=
2756 break
2757 fi
2758 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2759 fi
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 done
2762 else
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764 /* end confdefs.h. */
2765 $4
2766 int
2767 main ()
2768 {
2769 static int test_array [1 - 2 * !(($2) < 0)];
2770 test_array [0] = 0
2771
2772 ;
2773 return 0;
2774 }
2775 _ACEOF
2776 if ac_fn_c_try_compile "$LINENO"; then :
2777 ac_hi=-1 ac_mid=-1
2778 while :; do
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2781 $4
2782 int
2783 main ()
2784 {
2785 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2786 test_array [0] = 0
2787
2788 ;
2789 return 0;
2790 }
2791 _ACEOF
2792 if ac_fn_c_try_compile "$LINENO"; then :
2793 ac_lo=$ac_mid; break
2794 else
2795 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2796 if test $ac_mid -le $ac_hi; then
2797 ac_lo= ac_hi=
2798 break
2799 fi
2800 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2801 fi
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 done
2804 else
2805 ac_lo= ac_hi=
2806 fi
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 fi
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 # Binary search between lo and hi bounds.
2811 while test "x$ac_lo" != "x$ac_hi"; do
2812 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814 /* end confdefs.h. */
2815 $4
2816 int
2817 main ()
2818 {
2819 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2820 test_array [0] = 0
2821
2822 ;
2823 return 0;
2824 }
2825 _ACEOF
2826 if ac_fn_c_try_compile "$LINENO"; then :
2827 ac_hi=$ac_mid
2828 else
2829 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2830 fi
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 done
2833 case $ac_lo in #((
2834 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2835 '') ac_retval=1 ;;
2836 esac
2837 else
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2840 $4
2841 static long int longval () { return $2; }
2842 static unsigned long int ulongval () { return $2; }
2843 #include <stdio.h>
2844 #include <stdlib.h>
2845 int
2846 main ()
2847 {
2848
2849 FILE *f = fopen ("conftest.val", "w");
2850 if (! f)
2851 return 1;
2852 if (($2) < 0)
2853 {
2854 long int i = longval ();
2855 if (i != ($2))
2856 return 1;
2857 fprintf (f, "%ld", i);
2858 }
2859 else
2860 {
2861 unsigned long int i = ulongval ();
2862 if (i != ($2))
2863 return 1;
2864 fprintf (f, "%lu", i);
2865 }
2866 /* Do not output a trailing newline, as this causes \r\n confusion
2867 on some platforms. */
2868 return ferror (f) || fclose (f) != 0;
2869
2870 ;
2871 return 0;
2872 }
2873 _ACEOF
2874 if ac_fn_c_try_run "$LINENO"; then :
2875 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2876 else
2877 ac_retval=1
2878 fi
2879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2880 conftest.$ac_objext conftest.beam conftest.$ac_ext
2881 rm -f conftest.val
2882
2883 fi
2884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2885 as_fn_set_status $ac_retval
2886
2887 } # ac_fn_c_compute_int
2888 cat >config.log <<_ACEOF
2889 This file contains any messages produced by compilers while
2890 running configure, to aid debugging if configure makes a mistake.
2891
2892 It was created by emacs $as_me 24.1.50, which was
2893 generated by GNU Autoconf 2.65. Invocation command line was
2894
2895 $ $0 $@
2896
2897 _ACEOF
2898 exec 5>>config.log
2899 {
2900 cat <<_ASUNAME
2901 ## --------- ##
2902 ## Platform. ##
2903 ## --------- ##
2904
2905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2910
2911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2912 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2913
2914 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2915 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2917 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2918 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2919 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2920 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2921
2922 _ASUNAME
2923
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 $as_echo "PATH: $as_dir"
2930 done
2931 IFS=$as_save_IFS
2932
2933 } >&5
2934
2935 cat >&5 <<_ACEOF
2936
2937
2938 ## ----------- ##
2939 ## Core tests. ##
2940 ## ----------- ##
2941
2942 _ACEOF
2943
2944
2945 # Keep a trace of the command line.
2946 # Strip out --no-create and --no-recursion so they do not pile up.
2947 # Strip out --silent because we don't want to record it for future runs.
2948 # Also quote any args containing shell meta-characters.
2949 # Make two passes to allow for proper duplicate-argument suppression.
2950 ac_configure_args=
2951 ac_configure_args0=
2952 ac_configure_args1=
2953 ac_must_keep_next=false
2954 for ac_pass in 1 2
2955 do
2956 for ac_arg
2957 do
2958 case $ac_arg in
2959 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2961 | -silent | --silent | --silen | --sile | --sil)
2962 continue ;;
2963 *\'*)
2964 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2965 esac
2966 case $ac_pass in
2967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2968 2)
2969 as_fn_append ac_configure_args1 " '$ac_arg'"
2970 if test $ac_must_keep_next = true; then
2971 ac_must_keep_next=false # Got value, back to normal.
2972 else
2973 case $ac_arg in
2974 *=* | --config-cache | -C | -disable-* | --disable-* \
2975 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2976 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2977 | -with-* | --with-* | -without-* | --without-* | --x)
2978 case "$ac_configure_args0 " in
2979 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2980 esac
2981 ;;
2982 -* ) ac_must_keep_next=true ;;
2983 esac
2984 fi
2985 as_fn_append ac_configure_args " '$ac_arg'"
2986 ;;
2987 esac
2988 done
2989 done
2990 { ac_configure_args0=; unset ac_configure_args0;}
2991 { ac_configure_args1=; unset ac_configure_args1;}
2992
2993 # When interrupted or exit'd, cleanup temporary files, and complete
2994 # config.log. We remove comments because anyway the quotes in there
2995 # would cause problems or look ugly.
2996 # WARNING: Use '\'' to represent an apostrophe within the trap.
2997 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2998 trap 'exit_status=$?
2999 # Save into config.log some information that might help in debugging.
3000 {
3001 echo
3002
3003 cat <<\_ASBOX
3004 ## ---------------- ##
3005 ## Cache variables. ##
3006 ## ---------------- ##
3007 _ASBOX
3008 echo
3009 # The following way of writing the cache mishandles newlines in values,
3010 (
3011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3012 eval ac_val=\$$ac_var
3013 case $ac_val in #(
3014 *${as_nl}*)
3015 case $ac_var in #(
3016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3018 esac
3019 case $ac_var in #(
3020 _ | IFS | as_nl) ;; #(
3021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3022 *) { eval $ac_var=; unset $ac_var;} ;;
3023 esac ;;
3024 esac
3025 done
3026 (set) 2>&1 |
3027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3028 *${as_nl}ac_space=\ *)
3029 sed -n \
3030 "s/'\''/'\''\\\\'\'''\''/g;
3031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3032 ;; #(
3033 *)
3034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3035 ;;
3036 esac |
3037 sort
3038 )
3039 echo
3040
3041 cat <<\_ASBOX
3042 ## ----------------- ##
3043 ## Output variables. ##
3044 ## ----------------- ##
3045 _ASBOX
3046 echo
3047 for ac_var in $ac_subst_vars
3048 do
3049 eval ac_val=\$$ac_var
3050 case $ac_val in
3051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3052 esac
3053 $as_echo "$ac_var='\''$ac_val'\''"
3054 done | sort
3055 echo
3056
3057 if test -n "$ac_subst_files"; then
3058 cat <<\_ASBOX
3059 ## ------------------- ##
3060 ## File substitutions. ##
3061 ## ------------------- ##
3062 _ASBOX
3063 echo
3064 for ac_var in $ac_subst_files
3065 do
3066 eval ac_val=\$$ac_var
3067 case $ac_val in
3068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3069 esac
3070 $as_echo "$ac_var='\''$ac_val'\''"
3071 done | sort
3072 echo
3073 fi
3074
3075 if test -s confdefs.h; then
3076 cat <<\_ASBOX
3077 ## ----------- ##
3078 ## confdefs.h. ##
3079 ## ----------- ##
3080 _ASBOX
3081 echo
3082 cat confdefs.h
3083 echo
3084 fi
3085 test "$ac_signal" != 0 &&
3086 $as_echo "$as_me: caught signal $ac_signal"
3087 $as_echo "$as_me: exit $exit_status"
3088 } >&5
3089 rm -f core *.core core.conftest.* &&
3090 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3091 exit $exit_status
3092 ' 0
3093 for ac_signal in 1 2 13 15; do
3094 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3095 done
3096 ac_signal=0
3097
3098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3099 rm -f -r conftest* confdefs.h
3100
3101 $as_echo "/* confdefs.h */" > confdefs.h
3102
3103 # Predefined preprocessor variables.
3104
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE_NAME "$PACKAGE_NAME"
3107 _ACEOF
3108
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3111 _ACEOF
3112
3113 cat >>confdefs.h <<_ACEOF
3114 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3115 _ACEOF
3116
3117 cat >>confdefs.h <<_ACEOF
3118 #define PACKAGE_STRING "$PACKAGE_STRING"
3119 _ACEOF
3120
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3123 _ACEOF
3124
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_URL "$PACKAGE_URL"
3127 _ACEOF
3128
3129
3130 # Let the site file select an alternate cache file if it wants to.
3131 # Prefer an explicitly selected file to automatically selected ones.
3132 ac_site_file1=NONE
3133 ac_site_file2=NONE
3134 if test -n "$CONFIG_SITE"; then
3135 ac_site_file1=$CONFIG_SITE
3136 elif test "x$prefix" != xNONE; then
3137 ac_site_file1=$prefix/share/config.site
3138 ac_site_file2=$prefix/etc/config.site
3139 else
3140 ac_site_file1=$ac_default_prefix/share/config.site
3141 ac_site_file2=$ac_default_prefix/etc/config.site
3142 fi
3143 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3144 do
3145 test "x$ac_site_file" = xNONE && continue
3146 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3148 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3149 sed 's/^/| /' "$ac_site_file" >&5
3150 . "$ac_site_file"
3151 fi
3152 done
3153
3154 if test -r "$cache_file"; then
3155 # Some versions of bash will fail to source /dev/null (special files
3156 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3157 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3159 $as_echo "$as_me: loading cache $cache_file" >&6;}
3160 case $cache_file in
3161 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3162 *) . "./$cache_file";;
3163 esac
3164 fi
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3167 $as_echo "$as_me: creating cache $cache_file" >&6;}
3168 >$cache_file
3169 fi
3170
3171 as_fn_append ac_header_list " linux/version.h"
3172 as_fn_append ac_header_list " sys/systeminfo.h"
3173 as_fn_append ac_header_list " stdio_ext.h"
3174 as_fn_append ac_header_list " fcntl.h"
3175 as_fn_append ac_header_list " coff.h"
3176 as_fn_append ac_header_list " pty.h"
3177 as_fn_append ac_header_list " sys/vlimit.h"
3178 as_fn_append ac_header_list " sys/resource.h"
3179 as_fn_append ac_header_list " sys/utsname.h"
3180 as_fn_append ac_header_list " pwd.h"
3181 as_fn_append ac_header_list " utmp.h"
3182 as_fn_append ac_header_list " dirent.h"
3183 as_fn_append ac_header_list " util.h"
3184 as_fn_append ac_header_list " sys/socket.h"
3185 as_fn_append ac_header_list " stdlib.h"
3186 as_fn_append ac_header_list " unistd.h"
3187 as_fn_append ac_header_list " sys/param.h"
3188 as_fn_append ac_header_list " pthread.h"
3189 as_fn_append ac_header_list " malloc/malloc.h"
3190 as_fn_append ac_header_list " maillock.h"
3191 as_fn_append ac_header_list " sys/un.h"
3192 as_fn_append ac_func_list " tzset"
3193 as_fn_append ac_func_list " readlinkat"
3194 gl_getopt_required=GNU
3195 as_fn_append ac_header_list " getopt.h"
3196 as_fn_append ac_func_list " gettimeofday"
3197 as_fn_append ac_func_list " nanotime"
3198 as_fn_append ac_header_list " sys/time.h"
3199 as_fn_append ac_header_list " wchar.h"
3200 as_fn_append ac_header_list " stdint.h"
3201 as_fn_append ac_header_list " inttypes.h"
3202 as_fn_append ac_func_list " lstat"
3203 as_fn_append ac_func_list " alarm"
3204 as_fn_append ac_header_list " sys/select.h"
3205 as_fn_append ac_func_list " pselect"
3206 as_fn_append ac_func_list " pthread_sigmask"
3207 as_fn_append ac_func_list " readlink"
3208 as_fn_append ac_func_list " strtoimax"
3209 as_fn_append ac_func_list " strtoumax"
3210 as_fn_append ac_func_list " symlink"
3211 as_fn_append ac_header_list " sys/stat.h"
3212 as_fn_append ac_func_list " localtime_r"
3213 as_fn_append ac_header_list " utime.h"
3214 as_fn_append ac_func_list " futimes"
3215 as_fn_append ac_func_list " futimesat"
3216 as_fn_append ac_func_list " futimens"
3217 as_fn_append ac_func_list " utimensat"
3218 as_fn_append ac_func_list " lutimes"
3219 # Check that the precious variables saved in the cache have kept the same
3220 # value.
3221 ac_cache_corrupted=false
3222 for ac_var in $ac_precious_vars; do
3223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3224 eval ac_new_set=\$ac_env_${ac_var}_set
3225 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3226 eval ac_new_val=\$ac_env_${ac_var}_value
3227 case $ac_old_set,$ac_new_set in
3228 set,)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3230 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3231 ac_cache_corrupted=: ;;
3232 ,set)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3234 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3235 ac_cache_corrupted=: ;;
3236 ,);;
3237 *)
3238 if test "x$ac_old_val" != "x$ac_new_val"; then
3239 # differences in whitespace do not lead to failure.
3240 ac_old_val_w=`echo x $ac_old_val`
3241 ac_new_val_w=`echo x $ac_new_val`
3242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3245 ac_cache_corrupted=:
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3249 eval $ac_var=\$ac_old_val
3250 fi
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3252 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3254 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3255 fi;;
3256 esac
3257 # Pass precious variables to config.status.
3258 if test "$ac_new_set" = set; then
3259 case $ac_new_val in
3260 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3261 *) ac_arg=$ac_var=$ac_new_val ;;
3262 esac
3263 case " $ac_configure_args " in
3264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3265 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3266 esac
3267 fi
3268 done
3269 if $ac_cache_corrupted; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3273 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3274 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3275 fi
3276 ## -------------------- ##
3277 ## Main body of script. ##
3278 ## -------------------- ##
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285
3286
3287 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3288
3289
3290 ac_aux_dir=
3291 for ac_dir in build-aux "$srcdir"/build-aux; do
3292 for ac_t in install-sh install.sh shtool; do
3293 if test -f "$ac_dir/$ac_t"; then
3294 ac_aux_dir=$ac_dir
3295 ac_install_sh="$ac_aux_dir/$ac_t -c"
3296 break 2
3297 fi
3298 done
3299 done
3300 if test -z "$ac_aux_dir"; then
3301 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3302 fi
3303
3304 # These three variables are undocumented and unsupported,
3305 # and are intended to be withdrawn in a future Autoconf release.
3306 # They can cause serious problems if a builder's source tree is in a directory
3307 # whose full name contains unusual characters.
3308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3311
3312
3313 am__api_version='1.11'
3314
3315 # Find a good install program. We prefer a C program (faster),
3316 # so one script is as good as another. But avoid the broken or
3317 # incompatible versions:
3318 # SysV /etc/install, /usr/sbin/install
3319 # SunOS /usr/etc/install
3320 # IRIX /sbin/install
3321 # AIX /bin/install
3322 # AmigaOS /C/install, which installs bootblocks on floppy discs
3323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3326 # OS/2's system install, which has a completely different semantic
3327 # ./install, which can be erroneously created by make from ./install.sh.
3328 # Reject install programs that cannot install multiple files.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3331 if test -z "$INSTALL"; then
3332 if test "${ac_cv_path_install+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 # Account for people who put trailing slashes in PATH elements.
3341 case $as_dir/ in #((
3342 ./ | .// | /[cC]/* | \
3343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3344 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3345 /usr/ucb/* ) ;;
3346 *)
3347 # OSF1 and SCO ODT 3.0 have their own names for install.
3348 # Don't use installbsd from OSF since it installs stuff as root
3349 # by default.
3350 for ac_prog in ginstall scoinst install; do
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3353 if test $ac_prog = install &&
3354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3355 # AIX install. It has an incompatible calling convention.
3356 :
3357 elif test $ac_prog = install &&
3358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3359 # program-specific install script used by HP pwplus--don't use.
3360 :
3361 else
3362 rm -rf conftest.one conftest.two conftest.dir
3363 echo one > conftest.one
3364 echo two > conftest.two
3365 mkdir conftest.dir
3366 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3367 test -s conftest.one && test -s conftest.two &&
3368 test -s conftest.dir/conftest.one &&
3369 test -s conftest.dir/conftest.two
3370 then
3371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3372 break 3
3373 fi
3374 fi
3375 fi
3376 done
3377 done
3378 ;;
3379 esac
3380
3381 done
3382 IFS=$as_save_IFS
3383
3384 rm -rf conftest.one conftest.two conftest.dir
3385
3386 fi
3387 if test "${ac_cv_path_install+set}" = set; then
3388 INSTALL=$ac_cv_path_install
3389 else
3390 # As a last resort, use the slow shell script. Don't cache a
3391 # value for INSTALL within a source directory, because that will
3392 # break other packages using the cache if that directory is
3393 # removed, or if the value is a relative name.
3394 INSTALL=$ac_install_sh
3395 fi
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3398 $as_echo "$INSTALL" >&6; }
3399
3400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401 # It thinks the first close brace ends the variable substitution.
3402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3403
3404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3405
3406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3407
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3409 $as_echo_n "checking whether build environment is sane... " >&6; }
3410 # Just in case
3411 sleep 1
3412 echo timestamp > conftest.file
3413 # Reject unsafe characters in $srcdir or the absolute working directory
3414 # name. Accept space and tab only in the latter.
3415 am_lf='
3416 '
3417 case `pwd` in
3418 *[\\\"\#\$\&\'\`$am_lf]*)
3419 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3420 esac
3421 case $srcdir in
3422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3423 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3424 esac
3425
3426 # Do `set' in a subshell so we don't clobber the current shell's
3427 # arguments. Must try -L first in case configure is actually a
3428 # symlink; some systems play weird games with the mod time of symlinks
3429 # (eg FreeBSD returns the mod time of the symlink's containing
3430 # directory).
3431 if (
3432 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3433 if test "$*" = "X"; then
3434 # -L didn't work.
3435 set X `ls -t "$srcdir/configure" conftest.file`
3436 fi
3437 rm -f conftest.file
3438 if test "$*" != "X $srcdir/configure conftest.file" \
3439 && test "$*" != "X conftest.file $srcdir/configure"; then
3440
3441 # If neither matched, then we have a broken ls. This can happen
3442 # if, for instance, CONFIG_SHELL is bash and it inherits a
3443 # broken ls alias from the environment. This has actually
3444 # happened. Such a system could not be considered "sane".
3445 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3446 alias in your environment" "$LINENO" 5
3447 fi
3448
3449 test "$2" = conftest.file
3450 )
3451 then
3452 # Ok.
3453 :
3454 else
3455 as_fn_error "newly created file is older than distributed files!
3456 Check your system clock" "$LINENO" 5
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3460 test "$program_prefix" != NONE &&
3461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3462 # Use a double $ so make ignores it.
3463 test "$program_suffix" != NONE &&
3464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3465 # Double any \ or $.
3466 # By default was `s,x,x', remove it if useless.
3467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3469
3470 # expand $ac_aux_dir to an absolute path
3471 am_aux_dir=`cd $ac_aux_dir && pwd`
3472
3473 if test x"${MISSING+set}" != xset; then
3474 case $am_aux_dir in
3475 *\ * | *\ *)
3476 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3477 *)
3478 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3479 esac
3480 fi
3481 # Use eval to expand $SHELL
3482 if eval "$MISSING --run true"; then
3483 am_missing_run="$MISSING --run "
3484 else
3485 am_missing_run=
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3488 fi
3489
3490 if test x"${install_sh}" != xset; then
3491 case $am_aux_dir in
3492 *\ * | *\ *)
3493 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3494 *)
3495 install_sh="\${SHELL} $am_aux_dir/install-sh"
3496 esac
3497 fi
3498
3499 # Installed binaries are usually stripped using `strip' when the user
3500 # run `make install-strip'. However `strip' might not be the right
3501 # tool to use in cross-compilation environments, therefore Automake
3502 # will honor the `STRIP' environment variable to overrule this program.
3503 if test "$cross_compiling" != no; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3506 set dummy ${ac_tool_prefix}strip; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if test "${ac_cv_prog_STRIP+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test -n "$STRIP"; then
3513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526 done
3527 done
3528 IFS=$as_save_IFS
3529
3530 fi
3531 fi
3532 STRIP=$ac_cv_prog_STRIP
3533 if test -n "$STRIP"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3535 $as_echo "$STRIP" >&6; }
3536 else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542 fi
3543 if test -z "$ac_cv_prog_STRIP"; then
3544 ac_ct_STRIP=$STRIP
3545 # Extract the first word of "strip", so it can be a program name with args.
3546 set dummy strip; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$ac_ct_STRIP"; then
3553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_ac_ct_STRIP="strip"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3573 if test -n "$ac_ct_STRIP"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3575 $as_echo "$ac_ct_STRIP" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 fi
3580
3581 if test "x$ac_ct_STRIP" = x; then
3582 STRIP=":"
3583 else
3584 case $cross_compiling:$ac_tool_warned in
3585 yes:)
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588 ac_tool_warned=yes ;;
3589 esac
3590 STRIP=$ac_ct_STRIP
3591 fi
3592 else
3593 STRIP="$ac_cv_prog_STRIP"
3594 fi
3595
3596 fi
3597 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3598
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3601 if test -z "$MKDIR_P"; then
3602 if test "${ac_cv_path_mkdir+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3607 do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_prog in mkdir gmkdir; do
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3613 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3614 'mkdir (GNU coreutils) '* | \
3615 'mkdir (coreutils) '* | \
3616 'mkdir (fileutils) '4.1*)
3617 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3618 break 3;;
3619 esac
3620 done
3621 done
3622 done
3623 IFS=$as_save_IFS
3624
3625 fi
3626
3627 test -d ./--version && rmdir ./--version
3628 if test "${ac_cv_path_mkdir+set}" = set; then
3629 MKDIR_P="$ac_cv_path_mkdir -p"
3630 else
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for MKDIR_P within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 MKDIR_P="$ac_install_sh -d"
3636 fi
3637 fi
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3639 $as_echo "$MKDIR_P" >&6; }
3640
3641
3642 mkdir_p="$MKDIR_P"
3643 case $mkdir_p in
3644 [\\/$]* | ?:[\\/]*) ;;
3645 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3646 esac
3647
3648 for ac_prog in gawk mawk nawk awk
3649 do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_AWK+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$AWK"; then
3658 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_AWK="$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 AWK=$ac_cv_prog_AWK
3678 if test -n "$AWK"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3680 $as_echo "$AWK" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687 test -n "$AWK" && break
3688 done
3689
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3691 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3692 set x ${MAKE-make}
3693 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3694 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 cat >conftest.make <<\_ACEOF
3698 SHELL = /bin/sh
3699 all:
3700 @echo '@@@%%%=$(MAKE)=@@@%%%'
3701 _ACEOF
3702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3704 *@@@%%%=?*=@@@%%%*)
3705 eval ac_cv_prog_make_${ac_make}_set=yes;;
3706 *)
3707 eval ac_cv_prog_make_${ac_make}_set=no;;
3708 esac
3709 rm -f conftest.make
3710 fi
3711 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3714 SET_MAKE=
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 SET_MAKE="MAKE=${MAKE-make}"
3719 fi
3720
3721 rm -rf .tst 2>/dev/null
3722 mkdir .tst 2>/dev/null
3723 if test -d .tst; then
3724 am__leading_dot=.
3725 else
3726 am__leading_dot=_
3727 fi
3728 rmdir .tst 2>/dev/null
3729
3730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3732 # is not polluted with repeated "-I."
3733 am__isrc=' -I$(srcdir)'
3734 # test to see if srcdir already configured
3735 if test -f $srcdir/config.status; then
3736 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3737 fi
3738 fi
3739
3740 # test whether we have cygpath
3741 if test -z "$CYGPATH_W"; then
3742 if (cygpath --version) >/dev/null 2>/dev/null; then
3743 CYGPATH_W='cygpath -w'
3744 else
3745 CYGPATH_W=echo
3746 fi
3747 fi
3748
3749
3750 # Define the identity of the package.
3751 PACKAGE='emacs'
3752 VERSION='24.1.50'
3753
3754
3755 cat >>confdefs.h <<_ACEOF
3756 #define PACKAGE "$PACKAGE"
3757 _ACEOF
3758
3759
3760 cat >>confdefs.h <<_ACEOF
3761 #define VERSION "$VERSION"
3762 _ACEOF
3763
3764 # Some tools Automake needs.
3765
3766 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3767
3768
3769 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3770
3771
3772 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3773
3774
3775 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3776
3777
3778 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3779
3780 # We need awk for the "check" target. The system "awk" is bad on
3781 # some platforms.
3782 # Always define AMTAR for backward compatibility.
3783
3784 AMTAR=${AMTAR-"${am_missing_run}tar"}
3785
3786 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3787
3788
3789
3790
3791
3792
3793
3794
3795 lispdir='${datadir}/emacs/${version}/lisp'
3796 leimdir='${datadir}/emacs/${version}/leim'
3797 standardlisppath='${lispdir}:${leimdir}'
3798 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3799 '${datadir}/emacs/site-lisp'
3800 lisppath='${locallisppath}:${standardlisppath}'
3801 etcdir='${datadir}/emacs/${version}/etc'
3802 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3803 docdir='${datadir}/emacs/${version}/etc'
3804 gamedir='${localstatedir}/games/emacs'
3805
3806
3807
3808
3809 # Check whether --with-pop was given.
3810 if test "${with_pop+set}" = set; then :
3811 withval=$with_pop;
3812 else
3813 with_pop=yes
3814 fi
3815
3816 if test "$with_pop" = yes; then
3817 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3818
3819 fi
3820
3821
3822 # Check whether --with-kerberos was given.
3823 if test "${with_kerberos+set}" = set; then :
3824 withval=$with_kerberos;
3825 else
3826 with_kerberos=no
3827 fi
3828
3829 if test "$with_kerberos" != no; then
3830 $as_echo "#define KERBEROS 1" >>confdefs.h
3831
3832 fi
3833
3834
3835 # Check whether --with-kerberos5 was given.
3836 if test "${with_kerberos5+set}" = set; then :
3837 withval=$with_kerberos5;
3838 else
3839 with_kerberos5=no
3840 fi
3841
3842 if test "${with_kerberos5}" != no; then
3843 if test "${with_kerberos}" = no; then
3844 with_kerberos=yes
3845 $as_echo "#define KERBEROS 1" >>confdefs.h
3846
3847 fi
3848
3849 $as_echo "#define KERBEROS5 1" >>confdefs.h
3850
3851 fi
3852
3853
3854 # Check whether --with-hesiod was given.
3855 if test "${with_hesiod+set}" = set; then :
3856 withval=$with_hesiod;
3857 else
3858 with_hesiod=no
3859 fi
3860
3861 if test "$with_hesiod" != no; then
3862
3863 $as_echo "#define HESIOD 1" >>confdefs.h
3864
3865 fi
3866
3867
3868 # Check whether --with-mmdf was given.
3869 if test "${with_mmdf+set}" = set; then :
3870 withval=$with_mmdf;
3871 else
3872 with_mmdf=no
3873 fi
3874
3875 if test "$with_mmdf" != no; then
3876
3877 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3878
3879 fi
3880
3881
3882 # Check whether --with-mail-unlink was given.
3883 if test "${with_mail_unlink+set}" = set; then :
3884 withval=$with_mail_unlink;
3885 else
3886 with_mail_unlink=no
3887 fi
3888
3889 if test "$with_mail_unlink" != no; then
3890
3891 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3892
3893 fi
3894
3895
3896 # Check whether --with-mailhost was given.
3897 if test "${with_mailhost+set}" = set; then :
3898 withval=$with_mailhost;
3899 cat >>confdefs.h <<_ACEOF
3900 #define MAILHOST "$withval"
3901 _ACEOF
3902
3903 fi
3904
3905
3906
3907 # Check whether --with-sound was given.
3908 if test "${with_sound+set}" = set; then :
3909 withval=$with_sound;
3910 else
3911 with_sound=yes
3912 fi
3913
3914
3915
3916 # Check whether --with-sync-input was given.
3917 if test "${with_sync_input+set}" = set; then :
3918 withval=$with_sync_input;
3919 else
3920 with_sync_input=yes
3921 fi
3922
3923 if test "$with_sync_input" = yes; then
3924
3925 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3926
3927 fi
3928
3929
3930 # Check whether --with-x-toolkit was given.
3931 if test "${with_x_toolkit+set}" = set; then :
3932 withval=$with_x_toolkit; case "${withval}" in
3933 y | ye | yes ) val=gtk ;;
3934 n | no ) val=no ;;
3935 l | lu | luc | luci | lucid ) val=lucid ;;
3936 a | at | ath | athe | athen | athena ) val=athena ;;
3937 m | mo | mot | moti | motif ) val=motif ;;
3938 g | gt | gtk ) val=gtk ;;
3939 gtk3 ) val=gtk3 ;;
3940 * )
3941 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3942 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3943 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3944 ;;
3945 esac
3946 with_x_toolkit=$val
3947
3948 fi
3949
3950
3951
3952 # Check whether --with-wide-int was given.
3953 if test "${with_wide_int+set}" = set; then :
3954 withval=$with_wide_int;
3955 else
3956 with_wide_int=no
3957 fi
3958
3959 if test "$with_wide_int" = yes; then
3960
3961 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3962
3963 fi
3964
3965
3966 # Check whether --with-xpm was given.
3967 if test "${with_xpm+set}" = set; then :
3968 withval=$with_xpm;
3969 else
3970 with_xpm=yes
3971 fi
3972
3973
3974 # Check whether --with-jpeg was given.
3975 if test "${with_jpeg+set}" = set; then :
3976 withval=$with_jpeg;
3977 else
3978 with_jpeg=yes
3979 fi
3980
3981
3982 # Check whether --with-tiff was given.
3983 if test "${with_tiff+set}" = set; then :
3984 withval=$with_tiff;
3985 else
3986 with_tiff=yes
3987 fi
3988
3989
3990 # Check whether --with-gif was given.
3991 if test "${with_gif+set}" = set; then :
3992 withval=$with_gif;
3993 else
3994 with_gif=yes
3995 fi
3996
3997
3998 # Check whether --with-png was given.
3999 if test "${with_png+set}" = set; then :
4000 withval=$with_png;
4001 else
4002 with_png=yes
4003 fi
4004
4005
4006 # Check whether --with-rsvg was given.
4007 if test "${with_rsvg+set}" = set; then :
4008 withval=$with_rsvg;
4009 else
4010 with_rsvg=yes
4011 fi
4012
4013
4014 # Check whether --with-xml2 was given.
4015 if test "${with_xml2+set}" = set; then :
4016 withval=$with_xml2;
4017 else
4018 with_xml2=yes
4019 fi
4020
4021
4022 # Check whether --with-imagemagick was given.
4023 if test "${with_imagemagick+set}" = set; then :
4024 withval=$with_imagemagick;
4025 else
4026 with_imagemagick=yes
4027 fi
4028
4029
4030
4031 # Check whether --with-xft was given.
4032 if test "${with_xft+set}" = set; then :
4033 withval=$with_xft;
4034 else
4035 with_xft=yes
4036 fi
4037
4038
4039 # Check whether --with-libotf was given.
4040 if test "${with_libotf+set}" = set; then :
4041 withval=$with_libotf;
4042 else
4043 with_libotf=yes
4044 fi
4045
4046
4047 # Check whether --with-m17n-flt was given.
4048 if test "${with_m17n_flt+set}" = set; then :
4049 withval=$with_m17n_flt;
4050 else
4051 with_m17n_flt=yes
4052 fi
4053
4054
4055
4056 # Check whether --with-toolkit-scroll-bars was given.
4057 if test "${with_toolkit_scroll_bars+set}" = set; then :
4058 withval=$with_toolkit_scroll_bars;
4059 else
4060 with_toolkit_scroll_bars=yes
4061 fi
4062
4063
4064 # Check whether --with-xaw3d was given.
4065 if test "${with_xaw3d+set}" = set; then :
4066 withval=$with_xaw3d;
4067 else
4068 with_xaw3d=yes
4069 fi
4070
4071
4072 # Check whether --with-xim was given.
4073 if test "${with_xim+set}" = set; then :
4074 withval=$with_xim;
4075 else
4076 with_xim=yes
4077 fi
4078
4079
4080 # Check whether --with-ns was given.
4081 if test "${with_ns+set}" = set; then :
4082 withval=$with_ns;
4083 else
4084 with_ns=no
4085 fi
4086
4087
4088
4089 # Check whether --with-gpm was given.
4090 if test "${with_gpm+set}" = set; then :
4091 withval=$with_gpm;
4092 else
4093 with_gpm=yes
4094 fi
4095
4096
4097 # Check whether --with-dbus was given.
4098 if test "${with_dbus+set}" = set; then :
4099 withval=$with_dbus;
4100 else
4101 with_dbus=yes
4102 fi
4103
4104
4105 # Check whether --with-gconf was given.
4106 if test "${with_gconf+set}" = set; then :
4107 withval=$with_gconf;
4108 else
4109 with_gconf=yes
4110 fi
4111
4112
4113 # Check whether --with-gsettings was given.
4114 if test "${with_gsettings+set}" = set; then :
4115 withval=$with_gsettings;
4116 else
4117 with_gsettings=yes
4118 fi
4119
4120
4121 # Check whether --with-selinux was given.
4122 if test "${with_selinux+set}" = set; then :
4123 withval=$with_selinux;
4124 else
4125 with_selinux=yes
4126 fi
4127
4128
4129 # Check whether --with-gnutls was given.
4130 if test "${with_gnutls+set}" = set; then :
4131 withval=$with_gnutls;
4132 else
4133 with_gnutls=yes
4134 fi
4135
4136
4137 ## For the times when you want to build Emacs but don't have
4138 ## a suitable makeinfo, and can live without the manuals.
4139
4140 # Check whether --with-makeinfo was given.
4141 if test "${with_makeinfo+set}" = set; then :
4142 withval=$with_makeinfo;
4143 else
4144 with_makeinfo=yes
4145 fi
4146
4147
4148 ## Makefile.in needs the cache file name.
4149
4150
4151 ## This is an option because I do not know if all info/man support
4152 ## compressed files, nor how to test if they do so.
4153
4154 # Check whether --with-compress-info was given.
4155 if test "${with_compress_info+set}" = set; then :
4156 withval=$with_compress_info;
4157 else
4158 with_compress_info=yes
4159 fi
4160
4161 if test $with_compress_info = yes; then
4162 GZIP_INFO=yes
4163 else
4164 GZIP_INFO=
4165 fi
4166
4167
4168
4169 # Check whether --with-pkg-config-prog was given.
4170 if test "${with_pkg_config_prog+set}" = set; then :
4171 withval=$with_pkg_config_prog;
4172 fi
4173
4174 if test "X${with_pkg_config_prog}" != X; then
4175 if test "${with_pkg_config_prog}" != yes; then
4176 PKG_CONFIG="${with_pkg_config_prog}"
4177 fi
4178 fi
4179
4180 CRT_DIR=
4181
4182 # Check whether --with-crt-dir was given.
4183 if test "${with_crt_dir+set}" = set; then :
4184 withval=$with_crt_dir;
4185 fi
4186
4187 CRT_DIR="${with_crt_dir}"
4188
4189
4190 # Check whether --with-gameuser was given.
4191 if test "${with_gameuser+set}" = set; then :
4192 withval=$with_gameuser;
4193 fi
4194
4195 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4196 && gameuser="${with_gameuser}"
4197 test "X$gameuser" = X && gameuser=games
4198
4199
4200 # Check whether --with-gnustep-conf was given.
4201 if test "${with_gnustep_conf+set}" = set; then :
4202 withval=$with_gnustep_conf;
4203 fi
4204
4205 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4206 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4207 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4208 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4209
4210 # Check whether --enable-ns-self-contained was given.
4211 if test "${enable_ns_self_contained+set}" = set; then :
4212 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4213 else
4214 EN_NS_SELF_CONTAINED=yes
4215 fi
4216
4217
4218 # Check whether --enable-locallisppath was given.
4219 if test "${enable_locallisppath+set}" = set; then :
4220 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4221 locallisppath=
4222 elif test "${enableval}" != "yes"; then
4223 locallisppath=${enableval}
4224 fi
4225 fi
4226
4227
4228 # Check whether --enable-checking was given.
4229 if test "${enable_checking+set}" = set; then :
4230 enableval=$enable_checking; ac_checking_flags="${enableval}"
4231 fi
4232
4233 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4234 for check in $ac_checking_flags
4235 do
4236 case $check in
4237 # these set all the flags to specific states
4238 yes) ac_enable_checking=1 ;;
4239 no) ac_enable_checking= ;
4240 ac_gc_check_stringbytes= ;
4241 ac_gc_check_string_overrun= ;
4242 ac_gc_check_string_free_list= ;
4243 ac_xmalloc_overrun= ;
4244 ac_gc_check_cons_list= ;
4245 ac_glyphs_debug= ;;
4246 all) ac_enable_checking=1 ;
4247 ac_gc_check_stringbytes=1 ;
4248 ac_gc_check_string_overrun=1 ;
4249 ac_gc_check_string_free_list=1 ;
4250 ac_xmalloc_overrun=1 ;
4251 ac_gc_check_cons_list=1 ;
4252 ac_glyphs_debug=1 ;;
4253 # these enable particular checks
4254 stringbytes) ac_gc_check_stringbytes=1 ;;
4255 stringoverrun) ac_gc_check_string_overrun=1 ;;
4256 stringfreelist) ac_gc_check_string_free_list=1 ;;
4257 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4258 conslist) ac_gc_check_cons_list=1 ;;
4259 glyphs) ac_glyphs_debug=1 ;;
4260 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4261 esac
4262 done
4263 IFS="$ac_save_IFS"
4264
4265 if test x$ac_enable_checking != x ; then
4266
4267 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4268
4269 fi
4270 if test x$ac_gc_check_stringbytes != x ; then
4271
4272 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4273
4274 fi
4275 if test x$ac_gc_check_string_overrun != x ; then
4276
4277 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4278
4279 fi
4280 if test x$ac_gc_check_string_free_list != x ; then
4281
4282 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4283
4284 fi
4285 if test x$ac_xmalloc_overrun != x ; then
4286
4287 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4288
4289 fi
4290 if test x$ac_gc_check_cons_list != x ; then
4291
4292 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4293
4294 fi
4295 if test x$ac_glyphs_debug != x ; then
4296
4297 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4298
4299 fi
4300
4301 # Check whether --enable-check-lisp-object-type was given.
4302 if test "${enable_check_lisp_object_type+set}" = set; then :
4303 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4304
4305 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4306
4307 fi
4308 fi
4309
4310
4311
4312 # Check whether --enable-profiling was given.
4313 if test "${enable_profiling+set}" = set; then :
4314 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4315 fi
4316
4317 if test x$ac_enable_profiling != x ; then
4318 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4319 else
4320 PROFILING_CFLAGS=
4321 fi
4322
4323
4324 # Check whether --enable-autodepend was given.
4325 if test "${enable_autodepend+set}" = set; then :
4326 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4327 else
4328 ac_enable_autodepend=yes
4329 fi
4330
4331
4332 #### Make srcdir absolute, if it isn't already. It's important to
4333 #### avoid running the path through pwd unnecessarily, since pwd can
4334 #### give you automounter prefixes, which can go away. We do all this
4335 #### so Emacs can find its files when run uninstalled.
4336 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4337 unset CDPATH
4338 case "${srcdir}" in
4339 /* ) ;;
4340 . )
4341 ## We may be able to use the $PWD environment variable to make this
4342 ## absolute. But sometimes PWD is inaccurate.
4343 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4344 ## but that tested only for a well-formed and valid PWD,
4345 ## it did not object when PWD was well-formed and valid but just wrong.
4346 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4347 then
4348 srcdir="$PWD"
4349 else
4350 srcdir="`(cd ${srcdir}; pwd)`"
4351 fi
4352 ;;
4353 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4354 esac
4355
4356 #### Given the configuration name, set opsysfile to the
4357 #### name of s/*.h file we should use.
4358
4359 ### Canonicalize the configuration name.
4360
4361 # Make sure we can run config.sub.
4362 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4363 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4366 $as_echo_n "checking build system type... " >&6; }
4367 if test "${ac_cv_build+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 ac_build_alias=$build_alias
4371 test "x$ac_build_alias" = x &&
4372 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4373 test "x$ac_build_alias" = x &&
4374 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4375 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4376 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4377
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4380 $as_echo "$ac_cv_build" >&6; }
4381 case $ac_cv_build in
4382 *-*-*) ;;
4383 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4384 esac
4385 build=$ac_cv_build
4386 ac_save_IFS=$IFS; IFS='-'
4387 set x $ac_cv_build
4388 shift
4389 build_cpu=$1
4390 build_vendor=$2
4391 shift; shift
4392 # Remember, the first character of IFS is used to create $*,
4393 # except with old shells:
4394 build_os=$*
4395 IFS=$ac_save_IFS
4396 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4397
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4400 $as_echo_n "checking host system type... " >&6; }
4401 if test "${ac_cv_host+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test "x$host_alias" = x; then
4405 ac_cv_host=$ac_cv_build
4406 else
4407 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4408 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4409 fi
4410
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4413 $as_echo "$ac_cv_host" >&6; }
4414 case $ac_cv_host in
4415 *-*-*) ;;
4416 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4417 esac
4418 host=$ac_cv_host
4419 ac_save_IFS=$IFS; IFS='-'
4420 set x $ac_cv_host
4421 shift
4422 host_cpu=$1
4423 host_vendor=$2
4424 shift; shift
4425 # Remember, the first character of IFS is used to create $*,
4426 # except with old shells:
4427 host_os=$*
4428 IFS=$ac_save_IFS
4429 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4430
4431
4432 canonical=$host
4433 configuration=${host_alias-${build_alias-$host}}
4434
4435
4436
4437 ### If you add support for a new configuration, add code to this
4438 ### switch statement to recognize your configuration name and select
4439 ### the appropriate operating system file.
4440
4441 ### You would hope that you could choose an s/*.h
4442 ### file based on the operating system portion. However, it turns out
4443 ### that each s/*.h file is pretty manufacturer-specific.
4444 ### So we basically have to have a special case for each
4445 ### configuration name.
4446 ###
4447 ### As far as handling version numbers on operating systems is
4448 ### concerned, make sure things will fail in a fixable way. If
4449 ### /etc/MACHINES doesn't say anything about version numbers, be
4450 ### prepared to handle anything reasonably. If version numbers
4451 ### matter, be sure /etc/MACHINES says something about it.
4452
4453 opsys='' unported=no
4454 case "${canonical}" in
4455
4456 ## GNU/Linux and similar ports
4457 *-*-linux* )
4458 opsys=gnu-linux
4459 ;;
4460
4461 ## FreeBSD ports
4462 *-*-freebsd* )
4463 opsys=freebsd
4464 ;;
4465
4466 ## FreeBSD kernel + glibc based userland
4467 *-*-kfreebsd*gnu* )
4468 opsys=gnu-kfreebsd
4469 ;;
4470
4471 ## NetBSD ports
4472 *-*-netbsd* )
4473 opsys=netbsd
4474 ;;
4475
4476 ## OpenBSD ports
4477 *-*-openbsd* )
4478 opsys=openbsd
4479 ;;
4480
4481 ## Apple Darwin / Mac OS X
4482 *-apple-darwin* )
4483 case "${canonical}" in
4484 i[3456]86-* ) ;;
4485 powerpc-* ) ;;
4486 x86_64-* ) ;;
4487 * ) unported=yes ;;
4488 esac
4489 opsys=darwin
4490 ## Use fink packages if available.
4491 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4492 ## if test -d /sw/include && test -d /sw/lib; then
4493 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4494 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4495 ## fi
4496 ;;
4497
4498 ## HP 9000 series 700 and 800, running HP/UX
4499 hppa*-hp-hpux10.2* )
4500 opsys=hpux10-20
4501 ;;
4502 hppa*-hp-hpux1[1-9]* )
4503 opsys=hpux11
4504 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4505 ;;
4506
4507 ## IBM machines
4508 rs6000-ibm-aix4.[23]* )
4509 opsys=aix4-2
4510 ;;
4511 powerpc-ibm-aix4.[23]* )
4512 opsys=aix4-2
4513 ;;
4514 rs6000-ibm-aix[56]* )
4515 opsys=aix4-2
4516 ;;
4517 powerpc-ibm-aix[56]* )
4518 opsys=aix4-2
4519 ;;
4520
4521 ## Silicon Graphics machines
4522 ## Iris 4D
4523 mips-sgi-irix6.5 )
4524 opsys=irix6-5
4525 # Without defining _LANGUAGE_C, things get masked out in the headers
4526 # so that, for instance, grepping for `free' in stdlib.h fails and
4527 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4528 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4529 ;;
4530
4531 ## Suns
4532 *-sun-solaris* \
4533 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4534 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4535 case "${canonical}" in
4536 i[3456]86-*-* ) ;;
4537 amd64-*-*|x86_64-*-*) ;;
4538 sparc* ) ;;
4539 * ) unported=yes ;;
4540 esac
4541 case "${canonical}" in
4542 *-sunos5.6* | *-solaris2.6* )
4543 opsys=sol2-6
4544 RANLIB="ar -ts"
4545 ;;
4546 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4547 opsys=sol2-6
4548 emacs_check_sunpro_c=yes
4549 ;;
4550 *-sunos5* | *-solaris* )
4551 opsys=sol2-10
4552 emacs_check_sunpro_c=yes
4553 ;;
4554 esac
4555 ## Watch out for a compiler that we know will not work.
4556 case "${canonical}" in
4557 *-solaris* | *-sunos5* )
4558 if [ "x$CC" = x/usr/ucb/cc ]; then
4559 ## /usr/ucb/cc doesn't work;
4560 ## we should find some other compiler that does work.
4561 unset CC
4562 fi
4563 ;;
4564 *) ;;
4565 esac
4566 ;;
4567
4568 ## Intel 386 machines where we don't care about the manufacturer.
4569 i[3456]86-*-* )
4570 case "${canonical}" in
4571 *-cygwin ) opsys=cygwin ;;
4572 *-darwin* ) opsys=darwin ;;
4573 *-sysv4.2uw* ) opsys=unixware ;;
4574 *-sysv5uw* ) opsys=unixware ;;
4575 *-sysv5OpenUNIX* ) opsys=unixware ;;
4576 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4577 esac
4578 ;;
4579
4580 * )
4581 unported=yes
4582 ;;
4583 esac
4584
4585 ### If the code above didn't choose an operating system, just choose
4586 ### an operating system based on the configuration name. You really
4587 ### only want to use this when you have no idea what the right
4588 ### operating system is; if you know what operating systems a machine
4589 ### runs, it's cleaner to make it explicit in the case statement
4590 ### above.
4591 if test x"${opsys}" = x; then
4592 case "${canonical}" in
4593 *-gnu* ) opsys=gnu ;;
4594 * )
4595 unported=yes
4596 ;;
4597 esac
4598 fi
4599
4600
4601
4602 if test $unported = yes; then
4603 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4604 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4605 fi
4606
4607 opsysfile="s/${opsys}.h"
4608
4609
4610 #### Choose a compiler.
4611
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4653
4654
4655 fi
4656 if test -z "$ac_cv_prog_CC"; then
4657 ac_ct_CC=$CC
4658 # Extract the first word of "gcc", so it can be a program name with args.
4659 set dummy gcc; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CC="gcc"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4688 $as_echo "$ac_ct_CC" >&6; }
4689 else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4692 fi
4693
4694 if test "x$ac_ct_CC" = x; then
4695 CC=""
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703 CC=$ac_ct_CC
4704 fi
4705 else
4706 CC="$ac_cv_prog_CC"
4707 fi
4708
4709 if test -z "$CC"; then
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}cc; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_CC+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$CC"; then
4719 ac_cv_prog_CC="$CC" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_CC="${ac_tool_prefix}cc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 CC=$ac_cv_prog_CC
4739 if test -n "$CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741 $as_echo "$CC" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747
4748 fi
4749 fi
4750 if test -z "$CC"; then
4751 # Extract the first word of "cc", so it can be a program name with args.
4752 set dummy cc; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_CC+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$CC"; then
4759 ac_cv_prog_CC="$CC" # Let the user override the test.
4760 else
4761 ac_prog_rejected=no
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4770 ac_prog_rejected=yes
4771 continue
4772 fi
4773 ac_cv_prog_CC="cc"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 if test $ac_prog_rejected = yes; then
4782 # We found a bogon in the path, so make sure we never use it.
4783 set dummy $ac_cv_prog_CC
4784 shift
4785 if test $# != 0; then
4786 # We chose a different compiler from the bogus one.
4787 # However, it has the same basename, so the bogon will be chosen
4788 # first if we set CC to just the basename; use the full file name.
4789 shift
4790 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4791 fi
4792 fi
4793 fi
4794 fi
4795 CC=$ac_cv_prog_CC
4796 if test -n "$CC"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4798 $as_echo "$CC" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4802 fi
4803
4804
4805 fi
4806 if test -z "$CC"; then
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog in cl.exe
4809 do
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$CC"; then
4818 ac_cv_prog_CC="$CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845
4846
4847 test -n "$CC" && break
4848 done
4849 fi
4850 if test -z "$CC"; then
4851 ac_ct_CC=$CC
4852 for ac_prog in cl.exe
4853 do
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_CC"; then
4862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_CC="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4882 if test -n "$ac_ct_CC"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4884 $as_echo "$ac_ct_CC" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890
4891 test -n "$ac_ct_CC" && break
4892 done
4893
4894 if test "x$ac_ct_CC" = x; then
4895 CC=""
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903 CC=$ac_ct_CC
4904 fi
4905 fi
4906
4907 fi
4908
4909
4910 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4912 as_fn_error "no acceptable C compiler found in \$PATH
4913 See \`config.log' for more details." "$LINENO" 5; }
4914
4915 # Provide some information about the compiler.
4916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4917 set X $ac_compile
4918 ac_compiler=$2
4919 for ac_option in --version -v -V -qversion; do
4920 { { ac_try="$ac_compiler $ac_option >&5"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4926 $as_echo "$ac_try_echo"; } >&5
4927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4928 ac_status=$?
4929 if test -s conftest.err; then
4930 sed '10a\
4931 ... rest of stderr output deleted ...
4932 10q' conftest.err >conftest.er1
4933 cat conftest.er1 >&5
4934 fi
4935 rm -f conftest.er1 conftest.err
4936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }
4938 done
4939
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942
4943 int
4944 main ()
4945 {
4946
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 ac_clean_files_save=$ac_clean_files
4952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4953 # Try to create an executable without -o first, disregard a.out.
4954 # It will help us diagnose broken compilers, and finding out an intuition
4955 # of exeext.
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4957 $as_echo_n "checking whether the C compiler works... " >&6; }
4958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4959
4960 # The possible output files:
4961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4962
4963 ac_rmfiles=
4964 for ac_file in $ac_files
4965 do
4966 case $ac_file in
4967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4968 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4969 esac
4970 done
4971 rm -f $ac_rmfiles
4972
4973 if { { ac_try="$ac_link_default"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_link_default") 2>&5
4981 ac_status=$?
4982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }; then :
4984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4987 # so that the user can short-circuit this test for compilers unknown to
4988 # Autoconf.
4989 for ac_file in $ac_files ''
4990 do
4991 test -f "$ac_file" || continue
4992 case $ac_file in
4993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4994 ;;
4995 [ab].out )
4996 # We found the default executable, but exeext='' is most
4997 # certainly right.
4998 break;;
4999 *.* )
5000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5001 then :; else
5002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5003 fi
5004 # We set ac_cv_exeext here because the later test for it is not
5005 # safe: cross compilers may not add the suffix if given an `-o'
5006 # argument, so we may need to know it at that point already.
5007 # Even if this section looks crufty: it has the advantage of
5008 # actually working.
5009 break;;
5010 * )
5011 break;;
5012 esac
5013 done
5014 test "$ac_cv_exeext" = no && ac_cv_exeext=
5015
5016 else
5017 ac_file=''
5018 fi
5019 if test -z "$ac_file"; then :
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 $as_echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 { as_fn_set_status 77
5028 as_fn_error "C compiler cannot create executables
5029 See \`config.log' for more details." "$LINENO" 5; }; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032 $as_echo "yes" >&6; }
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5035 $as_echo_n "checking for C compiler default output file name... " >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5037 $as_echo "$ac_file" >&6; }
5038 ac_exeext=$ac_cv_exeext
5039
5040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5041 ac_clean_files=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5043 $as_echo_n "checking for suffix of executables... " >&6; }
5044 if { { ac_try="$ac_link"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050 $as_echo "$ac_try_echo"; } >&5
5051 (eval "$ac_link") 2>&5
5052 ac_status=$?
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; then :
5055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5057 # work properly (i.e., refer to `conftest.exe'), while it won't with
5058 # `rm'.
5059 for ac_file in conftest.exe conftest conftest.*; do
5060 test -f "$ac_file" || continue
5061 case $ac_file in
5062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5064 break;;
5065 * ) break;;
5066 esac
5067 done
5068 else
5069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5071 as_fn_error "cannot compute suffix of executables: cannot compile and link
5072 See \`config.log' for more details." "$LINENO" 5; }
5073 fi
5074 rm -f conftest conftest$ac_cv_exeext
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5076 $as_echo "$ac_cv_exeext" >&6; }
5077
5078 rm -f conftest.$ac_ext
5079 EXEEXT=$ac_cv_exeext
5080 ac_exeext=$EXEEXT
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #include <stdio.h>
5084 int
5085 main ()
5086 {
5087 FILE *f = fopen ("conftest.out", "w");
5088 return ferror (f) || fclose (f) != 0;
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 ac_clean_files="$ac_clean_files conftest.out"
5095 # Check that the compiler produces executables we can run. If not, either
5096 # the compiler is broken, or we cross compile.
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5098 $as_echo_n "checking whether we are cross compiling... " >&6; }
5099 if test "$cross_compiling" != yes; then
5100 { { ac_try="$ac_link"
5101 case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104 esac
5105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106 $as_echo "$ac_try_echo"; } >&5
5107 (eval "$ac_link") 2>&5
5108 ac_status=$?
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }
5111 if { ac_try='./conftest$ac_cv_exeext'
5112 { { case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117 $as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_try") 2>&5
5119 ac_status=$?
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; }; then
5122 cross_compiling=no
5123 else
5124 if test "$cross_compiling" = maybe; then
5125 cross_compiling=yes
5126 else
5127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5129 as_fn_error "cannot run C compiled programs.
5130 If you meant to cross compile, use \`--host'.
5131 See \`config.log' for more details." "$LINENO" 5; }
5132 fi
5133 fi
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5136 $as_echo "$cross_compiling" >&6; }
5137
5138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5139 ac_clean_files=$ac_clean_files_save
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5141 $as_echo_n "checking for suffix of object files... " >&6; }
5142 if test "${ac_cv_objext+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147
5148 int
5149 main ()
5150 {
5151
5152 ;
5153 return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.o conftest.obj
5157 if { { ac_try="$ac_compile"
5158 case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161 esac
5162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5163 $as_echo "$ac_try_echo"; } >&5
5164 (eval "$ac_compile") 2>&5
5165 ac_status=$?
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then :
5168 for ac_file in conftest.o conftest.obj conftest.*; do
5169 test -f "$ac_file" || continue;
5170 case $ac_file in
5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5173 break;;
5174 esac
5175 done
5176 else
5177 $as_echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error "cannot compute suffix of object files: cannot compile
5183 See \`config.log' for more details." "$LINENO" 5; }
5184 fi
5185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5188 $as_echo "$ac_cv_objext" >&6; }
5189 OBJEXT=$ac_cv_objext
5190 ac_objext=$OBJEXT
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 int
5200 main ()
5201 {
5202 #ifndef __GNUC__
5203 choke me
5204 #endif
5205
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 ac_compiler_gnu=yes
5212 else
5213 ac_compiler_gnu=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5217
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5221 if test $ac_compiler_gnu = yes; then
5222 GCC=yes
5223 else
5224 GCC=
5225 fi
5226 ac_test_CFLAGS=${CFLAGS+set}
5227 ac_save_CFLAGS=$CFLAGS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5230 if test "${ac_cv_prog_cc_g+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 ac_save_c_werror_flag=$ac_c_werror_flag
5234 ac_c_werror_flag=yes
5235 ac_cv_prog_cc_g=no
5236 CFLAGS="-g"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239
5240 int
5241 main ()
5242 {
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_cv_prog_cc_g=yes
5250 else
5251 CFLAGS=""
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254
5255 int
5256 main ()
5257 {
5258
5259 ;
5260 return 0;
5261 }
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264
5265 else
5266 ac_c_werror_flag=$ac_save_c_werror_flag
5267 CFLAGS="-g"
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270
5271 int
5272 main ()
5273 {
5274
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_prog_cc_g=yes
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_c_werror_flag=$ac_save_c_werror_flag
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5290 $as_echo "$ac_cv_prog_cc_g" >&6; }
5291 if test "$ac_test_CFLAGS" = set; then
5292 CFLAGS=$ac_save_CFLAGS
5293 elif test $ac_cv_prog_cc_g = yes; then
5294 if test "$GCC" = yes; then
5295 CFLAGS="-g -O2"
5296 else
5297 CFLAGS="-g"
5298 fi
5299 else
5300 if test "$GCC" = yes; then
5301 CFLAGS="-O2"
5302 else
5303 CFLAGS=
5304 fi
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 ac_cv_prog_cc_c89=no
5312 ac_save_CC=$CC
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include <stdarg.h>
5316 #include <stdio.h>
5317 #include <sys/types.h>
5318 #include <sys/stat.h>
5319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5320 struct buf { int x; };
5321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5322 static char *e (p, i)
5323 char **p;
5324 int i;
5325 {
5326 return p[i];
5327 }
5328 static char *f (char * (*g) (char **, int), char **p, ...)
5329 {
5330 char *s;
5331 va_list v;
5332 va_start (v,p);
5333 s = g (p, va_arg (v,int));
5334 va_end (v);
5335 return s;
5336 }
5337
5338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5339 function prototypes and stuff, but not '\xHH' hex character constants.
5340 These don't provoke an error unfortunately, instead are silently treated
5341 as 'x'. The following induces an error, until -std is added to get
5342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5343 array size at least. It's necessary to write '\x00'==0 to get something
5344 that's true only with -std. */
5345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5346
5347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5348 inside strings and character constants. */
5349 #define FOO(x) 'x'
5350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5351
5352 int test (int i, double x);
5353 struct s1 {int (*f) (int a);};
5354 struct s2 {int (*f) (double a);};
5355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5356 int argc;
5357 char **argv;
5358 int
5359 main ()
5360 {
5361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5368 do
5369 CC="$ac_save_CC $ac_arg"
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_prog_cc_c89=$ac_arg
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext
5374 test "x$ac_cv_prog_cc_c89" != "xno" && break
5375 done
5376 rm -f conftest.$ac_ext
5377 CC=$ac_save_CC
5378
5379 fi
5380 # AC_CACHE_VAL
5381 case "x$ac_cv_prog_cc_c89" in
5382 x)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5384 $as_echo "none needed" >&6; } ;;
5385 xno)
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5387 $as_echo "unsupported" >&6; } ;;
5388 *)
5389 CC="$CC $ac_cv_prog_cc_c89"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5392 esac
5393 if test "x$ac_cv_prog_cc_c89" != xno; then :
5394
5395 fi
5396
5397 ac_ext=c
5398 ac_cpp='$CPP $CPPFLAGS'
5399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402 DEPDIR="${am__leading_dot}deps"
5403
5404 ac_config_commands="$ac_config_commands depfiles"
5405
5406
5407 am_make=${MAKE-make}
5408 cat > confinc << 'END'
5409 am__doit:
5410 @echo this is the am__doit target
5411 .PHONY: am__doit
5412 END
5413 # If we don't find an include directive, just comment out the code.
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5416 am__include="#"
5417 am__quote=
5418 _am_result=none
5419 # First try GNU make style include.
5420 echo "include confinc" > confmf
5421 # Ignore all kinds of additional output from `make'.
5422 case `$am_make -s -f confmf 2> /dev/null` in #(
5423 *the\ am__doit\ target*)
5424 am__include=include
5425 am__quote=
5426 _am_result=GNU
5427 ;;
5428 esac
5429 # Now try BSD make style include.
5430 if test "$am__include" = "#"; then
5431 echo '.include "confinc"' > confmf
5432 case `$am_make -s -f confmf 2> /dev/null` in #(
5433 *the\ am__doit\ target*)
5434 am__include=.include
5435 am__quote="\""
5436 _am_result=BSD
5437 ;;
5438 esac
5439 fi
5440
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5443 $as_echo "$_am_result" >&6; }
5444 rm -f confinc confmf
5445
5446 # Check whether --enable-dependency-tracking was given.
5447 if test "${enable_dependency_tracking+set}" = set; then :
5448 enableval=$enable_dependency_tracking;
5449 fi
5450
5451 if test "x$enable_dependency_tracking" != xno; then
5452 am_depcomp="$ac_aux_dir/depcomp"
5453 AMDEPBACKSLASH='\'
5454 fi
5455 if test "x$enable_dependency_tracking" != xno; then
5456 AMDEP_TRUE=
5457 AMDEP_FALSE='#'
5458 else
5459 AMDEP_TRUE='#'
5460 AMDEP_FALSE=
5461 fi
5462
5463
5464
5465 depcc="$CC" am_compiler_list=
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5468 $as_echo_n "checking dependency style of $depcc... " >&6; }
5469 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5473 # We make a subdir and do the tests there. Otherwise we can end up
5474 # making bogus files that we don't know about and never remove. For
5475 # instance it was reported that on HP-UX the gcc test will end up
5476 # making a dummy file named `D' -- because `-MD' means `put the output
5477 # in D'.
5478 mkdir conftest.dir
5479 # Copy depcomp to subdir because otherwise we won't find it if we're
5480 # using a relative directory.
5481 cp "$am_depcomp" conftest.dir
5482 cd conftest.dir
5483 # We will build objects and dependencies in a subdirectory because
5484 # it helps to detect inapplicable dependency modes. For instance
5485 # both Tru64's cc and ICC support -MD to output dependencies as a
5486 # side effect of compilation, but ICC will put the dependencies in
5487 # the current directory while Tru64 will put them in the object
5488 # directory.
5489 mkdir sub
5490
5491 am_cv_CC_dependencies_compiler_type=none
5492 if test "$am_compiler_list" = ""; then
5493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5494 fi
5495 am__universal=false
5496 case " $depcc " in #(
5497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5498 esac
5499
5500 for depmode in $am_compiler_list; do
5501 # Setup a source with many dependencies, because some compilers
5502 # like to wrap large dependency lists on column 80 (with \), and
5503 # we should not choose a depcomp mode which is confused by this.
5504 #
5505 # We need to recreate these files for each test, as the compiler may
5506 # overwrite some of them when testing with obscure command lines.
5507 # This happens at least with the AIX C compiler.
5508 : > sub/conftest.c
5509 for i in 1 2 3 4 5 6; do
5510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5512 # Solaris 8's {/usr,}/bin/sh.
5513 touch sub/conftst$i.h
5514 done
5515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5516
5517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5518 # mode. It turns out that the SunPro C++ compiler does not properly
5519 # handle `-M -o', and we need to detect this. Also, some Intel
5520 # versions had trouble with output in subdirs
5521 am__obj=sub/conftest.${OBJEXT-o}
5522 am__minus_obj="-o $am__obj"
5523 case $depmode in
5524 gcc)
5525 # This depmode causes a compiler race in universal mode.
5526 test "$am__universal" = false || continue
5527 ;;
5528 nosideeffect)
5529 # after this tag, mechanisms are not by side-effect, so they'll
5530 # only be used when explicitly requested
5531 if test "x$enable_dependency_tracking" = xyes; then
5532 continue
5533 else
5534 break
5535 fi
5536 ;;
5537 msvisualcpp | msvcmsys)
5538 # This compiler won't grok `-c -o', but also, the minuso test has
5539 # not run yet. These depmodes are late enough in the game, and
5540 # so weak that their functioning should not be impacted.
5541 am__obj=conftest.${OBJEXT-o}
5542 am__minus_obj=
5543 ;;
5544 none) break ;;
5545 esac
5546 if depmode=$depmode \
5547 source=sub/conftest.c object=$am__obj \
5548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5550 >/dev/null 2>conftest.err &&
5551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5555 # icc doesn't choke on unknown options, it will just issue warnings
5556 # or remarks (even with -Werror). So we grep stderr for any message
5557 # that says an option was ignored or not supported.
5558 # When given -MP, icc 7.0 and 7.1 complain thusly:
5559 # icc: Command line warning: ignoring option '-M'; no argument required
5560 # The diagnosis changed in icc 8.0:
5561 # icc: Command line remark: option '-MP' not supported
5562 if (grep 'ignoring option' conftest.err ||
5563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5564 am_cv_CC_dependencies_compiler_type=$depmode
5565 break
5566 fi
5567 fi
5568 done
5569
5570 cd ..
5571 rm -rf conftest.dir
5572 else
5573 am_cv_CC_dependencies_compiler_type=none
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5580
5581 if
5582 test "x$enable_dependency_tracking" != xno \
5583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5584 am__fastdepCC_TRUE=
5585 am__fastdepCC_FALSE='#'
5586 else
5587 am__fastdepCC_TRUE='#'
5588 am__fastdepCC_FALSE=
5589 fi
5590
5591
5592 if test "x$CC" != xcc; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5594 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5597 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5598 fi
5599 set dummy $CC; ac_cc=`$as_echo "$2" |
5600 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5601 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606
5607 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 # Make sure it works both with $CC and with simple cc.
5616 # We do the test twice because some compilers refuse to overwrite an
5617 # existing .o file with -o, though they will create one.
5618 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5619 rm -f conftest2.*
5620 if { { case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5625 $as_echo "$ac_try_echo"; } >&5
5626 (eval "$ac_try") 2>&5
5627 ac_status=$?
5628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; } &&
5630 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633 esac
5634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_try") 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; };
5640 then
5641 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5642 if test "x$CC" != xcc; then
5643 # Test first that cc exists at all.
5644 if { ac_try='cc -c conftest.$ac_ext >&5'
5645 { { case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; }; }; then
5655 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5656 rm -f conftest2.*
5657 if { { case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5662 $as_echo "$ac_try_echo"; } >&5
5663 (eval "$ac_try") 2>&5
5664 ac_status=$?
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; } &&
5667 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; };
5677 then
5678 # cc works too.
5679 :
5680 else
5681 # cc exists but doesn't like -o.
5682 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5683 fi
5684 fi
5685 fi
5686 else
5687 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5688 fi
5689 rm -f core conftest*
5690
5691 fi
5692 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5694 $as_echo "yes" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698
5699 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5700
5701 fi
5702
5703 # FIXME: we rely on the cache variable name because
5704 # there is no other way.
5705 set dummy $CC
5706 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5707 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5708 if test "$am_t" != yes; then
5709 # Losing compiler, so override with the script.
5710 # FIXME: It is wrong to rewrite CC.
5711 # But if we don't then we get into trouble of one sort or another.
5712 # A longer-term fix would be to have automake use am__CC in this case,
5713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5714 CC="$am_aux_dir/compile $CC"
5715 fi
5716
5717
5718
5719 if test x$GCC = xyes; then
5720 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5721 else
5722 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5723 fi
5724
5725 # Initialize gnulib right after choosing the compiler.
5726
5727 ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5734 # On Suns, sometimes $CPP names a directory.
5735 if test -n "$CPP" && test -d "$CPP"; then
5736 CPP=
5737 fi
5738 if test -z "$CPP"; then
5739 if test "${ac_cv_prog_CPP+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 # Double quotes because CPP needs to be expanded
5743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5744 do
5745 ac_preproc_ok=false
5746 for ac_c_preproc_warn_flag in '' yes
5747 do
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #ifdef __STDC__
5757 # include <limits.h>
5758 #else
5759 # include <assert.h>
5760 #endif
5761 Syntax error
5762 _ACEOF
5763 if ac_fn_c_try_cpp "$LINENO"; then :
5764
5765 else
5766 # Broken: fails on valid input.
5767 continue
5768 fi
5769 rm -f conftest.err conftest.$ac_ext
5770
5771 # OK, works on sane cases. Now check whether nonexistent headers
5772 # can be detected and how.
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <ac_nonexistent.h>
5776 _ACEOF
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5778 # Broken: success on invalid input.
5779 continue
5780 else
5781 # Passes both tests.
5782 ac_preproc_ok=:
5783 break
5784 fi
5785 rm -f conftest.err conftest.$ac_ext
5786
5787 done
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.err conftest.$ac_ext
5790 if $ac_preproc_ok; then :
5791 break
5792 fi
5793
5794 done
5795 ac_cv_prog_CPP=$CPP
5796
5797 fi
5798 CPP=$ac_cv_prog_CPP
5799 else
5800 ac_cv_prog_CPP=$CPP
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5803 $as_echo "$CPP" >&6; }
5804 ac_preproc_ok=false
5805 for ac_c_preproc_warn_flag in '' yes
5806 do
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #ifdef __STDC__
5816 # include <limits.h>
5817 #else
5818 # include <assert.h>
5819 #endif
5820 Syntax error
5821 _ACEOF
5822 if ac_fn_c_try_cpp "$LINENO"; then :
5823
5824 else
5825 # Broken: fails on valid input.
5826 continue
5827 fi
5828 rm -f conftest.err conftest.$ac_ext
5829
5830 # OK, works on sane cases. Now check whether nonexistent headers
5831 # can be detected and how.
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <ac_nonexistent.h>
5835 _ACEOF
5836 if ac_fn_c_try_cpp "$LINENO"; then :
5837 # Broken: success on invalid input.
5838 continue
5839 else
5840 # Passes both tests.
5841 ac_preproc_ok=:
5842 break
5843 fi
5844 rm -f conftest.err conftest.$ac_ext
5845
5846 done
5847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5848 rm -f conftest.err conftest.$ac_ext
5849 if $ac_preproc_ok; then :
5850
5851 else
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5855 See \`config.log' for more details." "$LINENO" 5; }
5856 fi
5857
5858 ac_ext=c
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5866 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5867 if test "${ac_cv_path_GREP+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if test -z "$GREP"; then
5871 ac_path_GREP_found=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5875 do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_prog in grep ggrep; do
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5881 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5882 # Check for GNU ac_path_GREP and select it if it is found.
5883 # Check for GNU $ac_path_GREP
5884 case `"$ac_path_GREP" --version 2>&1` in
5885 *GNU*)
5886 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5887 *)
5888 ac_count=0
5889 $as_echo_n 0123456789 >"conftest.in"
5890 while :
5891 do
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo 'GREP' >> "conftest.nl"
5896 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5898 as_fn_arith $ac_count + 1 && ac_count=$as_val
5899 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_GREP="$ac_path_GREP"
5902 ac_path_GREP_max=$ac_count
5903 fi
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5906 done
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908 esac
5909
5910 $ac_path_GREP_found && break 3
5911 done
5912 done
5913 done
5914 IFS=$as_save_IFS
5915 if test -z "$ac_cv_path_GREP"; then
5916 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5917 fi
5918 else
5919 ac_cv_path_GREP=$GREP
5920 fi
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5924 $as_echo "$ac_cv_path_GREP" >&6; }
5925 GREP="$ac_cv_path_GREP"
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5929 $as_echo_n "checking for egrep... " >&6; }
5930 if test "${ac_cv_path_EGREP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5934 then ac_cv_path_EGREP="$GREP -E"
5935 else
5936 if test -z "$EGREP"; then
5937 ac_path_EGREP_found=false
5938 # Loop through the user's path and test for each of PROGNAME-LIST
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_prog in egrep; do
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5948 # Check for GNU ac_path_EGREP and select it if it is found.
5949 # Check for GNU $ac_path_EGREP
5950 case `"$ac_path_EGREP" --version 2>&1` in
5951 *GNU*)
5952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5953 *)
5954 ac_count=0
5955 $as_echo_n 0123456789 >"conftest.in"
5956 while :
5957 do
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 $as_echo 'EGREP' >> "conftest.nl"
5962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5964 as_fn_arith $ac_count + 1 && ac_count=$as_val
5965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_EGREP="$ac_path_EGREP"
5968 ac_path_EGREP_max=$ac_count
5969 fi
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5972 done
5973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5974 esac
5975
5976 $ac_path_EGREP_found && break 3
5977 done
5978 done
5979 done
5980 IFS=$as_save_IFS
5981 if test -z "$ac_cv_path_EGREP"; then
5982 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5983 fi
5984 else
5985 ac_cv_path_EGREP=$EGREP
5986 fi
5987
5988 fi
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5991 $as_echo "$ac_cv_path_EGREP" >&6; }
5992 EGREP="$ac_cv_path_EGREP"
5993
5994
5995
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5998 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5999 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005
6006 #ifdef __ACK__
6007 Amsterdam
6008 #endif
6009
6010 _ACEOF
6011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6013 gl_cv_c_amsterdam_compiler=yes
6014 else
6015 gl_cv_c_amsterdam_compiler=no
6016 fi
6017 rm -f conftest*
6018
6019
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6022 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6023 if test -z "$AR"; then
6024 if test $gl_cv_c_amsterdam_compiler = yes; then
6025 AR='cc -c.a'
6026 if test -z "$ARFLAGS"; then
6027 ARFLAGS='-o'
6028 fi
6029 else
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}ar; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_AR+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR="$AR" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_AR="${ac_tool_prefix}ar"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 AR=$ac_cv_prog_AR
6059 if test -n "$AR"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067
6068 fi
6069 if test -z "$ac_cv_prog_AR"; then
6070 ac_ct_AR=$AR
6071 # Extract the first word of "ar", so it can be a program name with args.
6072 set dummy ar; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_AR="ar"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092 done
6093 done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107 if test "x$ac_ct_AR" = x; then
6108 AR="ar"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116 AR=$ac_ct_AR
6117 fi
6118 else
6119 AR="$ac_cv_prog_AR"
6120 fi
6121
6122 if test -z "$ARFLAGS"; then
6123 ARFLAGS='cru'
6124 fi
6125 fi
6126 else
6127 if test -z "$ARFLAGS"; then
6128 ARFLAGS='cru'
6129 fi
6130 fi
6131
6132
6133 if test -z "$RANLIB"; then
6134 if test $gl_cv_c_amsterdam_compiler = yes; then
6135 RANLIB=':'
6136 else
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$RANLIB"; then
6146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 RANLIB=$ac_cv_prog_RANLIB
6166 if test -n "$RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6168 $as_echo "$RANLIB" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174
6175 fi
6176 if test -z "$ac_cv_prog_RANLIB"; then
6177 ac_ct_RANLIB=$RANLIB
6178 # Extract the first word of "ranlib", so it can be a program name with args.
6179 set dummy ranlib; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if test -n "$ac_ct_RANLIB"; then
6186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_RANLIB="ranlib"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6206 if test -n "$ac_ct_RANLIB"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6208 $as_echo "$ac_ct_RANLIB" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214 if test "x$ac_ct_RANLIB" = x; then
6215 RANLIB=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 RANLIB=$ac_ct_RANLIB
6224 fi
6225 else
6226 RANLIB="$ac_cv_prog_RANLIB"
6227 fi
6228
6229 fi
6230 fi
6231
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6234 $as_echo_n "checking for ANSI C header files... " >&6; }
6235 if test "${ac_cv_header_stdc+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 #include <stdlib.h>
6241 #include <stdarg.h>
6242 #include <string.h>
6243 #include <float.h>
6244
6245 int
6246 main ()
6247 {
6248
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 if ac_fn_c_try_compile "$LINENO"; then :
6254 ac_cv_header_stdc=yes
6255 else
6256 ac_cv_header_stdc=no
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 #include <string.h>
6265
6266 _ACEOF
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "memchr" >/dev/null 2>&1; then :
6269
6270 else
6271 ac_cv_header_stdc=no
6272 fi
6273 rm -f conftest*
6274
6275 fi
6276
6277 if test $ac_cv_header_stdc = yes; then
6278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <stdlib.h>
6282
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev/null 2>&1; then :
6286
6287 else
6288 ac_cv_header_stdc=no
6289 fi
6290 rm -f conftest*
6291
6292 fi
6293
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then :
6297 :
6298 else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <ctype.h>
6302 #include <stdlib.h>
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6306 #else
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6312 #endif
6313
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6315 int
6316 main ()
6317 {
6318 int i;
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6322 return 2;
6323 return 0;
6324 }
6325 _ACEOF
6326 if ac_fn_c_try_run "$LINENO"; then :
6327
6328 else
6329 ac_cv_header_stdc=no
6330 fi
6331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6332 conftest.$ac_objext conftest.beam conftest.$ac_ext
6333 fi
6334
6335 fi
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6338 $as_echo "$ac_cv_header_stdc" >&6; }
6339 if test $ac_cv_header_stdc = yes; then
6340
6341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6342
6343 fi
6344
6345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6346 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6347 inttypes.h stdint.h unistd.h
6348 do :
6349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6351 "
6352 eval as_val=\$$as_ac_Header
6353 if test "x$as_val" = x""yes; then :
6354 cat >>confdefs.h <<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6356 _ACEOF
6357
6358 fi
6359
6360 done
6361
6362
6363
6364
6365
6366 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6367 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6368 MINIX=yes
6369 else
6370 MINIX=
6371 fi
6372
6373
6374 if test "$MINIX" = yes; then
6375
6376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6377
6378
6379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6380
6381
6382 $as_echo "#define _MINIX 1" >>confdefs.h
6383
6384 fi
6385
6386 case "$host_os" in
6387 hpux*)
6388
6389 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6390
6391 ;;
6392 esac
6393
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6396 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6397 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402
6403 # define __EXTENSIONS__ 1
6404 $ac_includes_default
6405 int
6406 main ()
6407 {
6408
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 ac_cv_safe_to_define___extensions__=yes
6415 else
6416 ac_cv_safe_to_define___extensions__=no
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 fi
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6421 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6422 test $ac_cv_safe_to_define___extensions__ = yes &&
6423 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6424
6425 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6426
6427 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6428
6429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6430
6431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6432
6433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6434
6435
6436
6437
6438
6439
6440
6441
6442 # Check whether --enable-largefile was given.
6443 if test "${enable_largefile+set}" = set; then :
6444 enableval=$enable_largefile;
6445 fi
6446
6447 if test "$enable_largefile" != no; then
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6450 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6451 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 ac_cv_sys_largefile_CC=no
6455 if test "$GCC" != yes; then
6456 ac_save_CC=$CC
6457 while :; do
6458 # IRIX 6.2 and later do not support large files by default,
6459 # so use the C compiler's -n32 option if that helps.
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <sys/types.h>
6463 /* Check that off_t can represent 2**63 - 1 correctly.
6464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6465 since some C++ compilers masquerading as C compilers
6466 incorrectly reject 9223372036854775807. */
6467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6469 && LARGE_OFF_T % 2147483647 == 1)
6470 ? 1 : -1];
6471 int
6472 main ()
6473 {
6474
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 break
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext
6483 CC="$CC -n32"
6484 if ac_fn_c_try_compile "$LINENO"; then :
6485 ac_cv_sys_largefile_CC=' -n32'; break
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext
6488 break
6489 done
6490 CC=$ac_save_CC
6491 rm -f conftest.$ac_ext
6492 fi
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6495 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6496 if test "$ac_cv_sys_largefile_CC" != no; then
6497 CC=$CC$ac_cv_sys_largefile_CC
6498 fi
6499
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6501 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6502 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 while :; do
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <sys/types.h>
6509 /* Check that off_t can represent 2**63 - 1 correctly.
6510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6511 since some C++ compilers masquerading as C compilers
6512 incorrectly reject 9223372036854775807. */
6513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6515 && LARGE_OFF_T % 2147483647 == 1)
6516 ? 1 : -1];
6517 int
6518 main ()
6519 {
6520
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 ac_cv_sys_file_offset_bits=no; break
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #define _FILE_OFFSET_BITS 64
6532 #include <sys/types.h>
6533 /* Check that off_t can represent 2**63 - 1 correctly.
6534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6535 since some C++ compilers masquerading as C compilers
6536 incorrectly reject 9223372036854775807. */
6537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6539 && LARGE_OFF_T % 2147483647 == 1)
6540 ? 1 : -1];
6541 int
6542 main ()
6543 {
6544
6545 ;
6546 return 0;
6547 }
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550 ac_cv_sys_file_offset_bits=64; break
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 ac_cv_sys_file_offset_bits=unknown
6554 break
6555 done
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6558 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6559 case $ac_cv_sys_file_offset_bits in #(
6560 no | unknown) ;;
6561 *)
6562 cat >>confdefs.h <<_ACEOF
6563 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6564 _ACEOF
6565 ;;
6566 esac
6567 rm -rf conftest*
6568 if test $ac_cv_sys_file_offset_bits = unknown; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6570 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6571 if test "${ac_cv_sys_large_files+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 while :; do
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <sys/types.h>
6578 /* Check that off_t can represent 2**63 - 1 correctly.
6579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6580 since some C++ compilers masquerading as C compilers
6581 incorrectly reject 9223372036854775807. */
6582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6584 && LARGE_OFF_T % 2147483647 == 1)
6585 ? 1 : -1];
6586 int
6587 main ()
6588 {
6589
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"; then :
6595 ac_cv_sys_large_files=no; break
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #define _LARGE_FILES 1
6601 #include <sys/types.h>
6602 /* Check that off_t can represent 2**63 - 1 correctly.
6603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6604 since some C++ compilers masquerading as C compilers
6605 incorrectly reject 9223372036854775807. */
6606 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6608 && LARGE_OFF_T % 2147483647 == 1)
6609 ? 1 : -1];
6610 int
6611 main ()
6612 {
6613
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619 ac_cv_sys_large_files=1; break
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cv_sys_large_files=unknown
6623 break
6624 done
6625 fi
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6627 $as_echo "$ac_cv_sys_large_files" >&6; }
6628 case $ac_cv_sys_large_files in #(
6629 no | unknown) ;;
6630 *)
6631 cat >>confdefs.h <<_ACEOF
6632 #define _LARGE_FILES $ac_cv_sys_large_files
6633 _ACEOF
6634 ;;
6635 esac
6636 rm -rf conftest*
6637 fi
6638
6639
6640 fi
6641
6642 case $ac_cv_prog_cc_stdc in #(
6643 no) :
6644 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6645 *) :
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6647 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6648 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 ac_cv_prog_cc_c99=no
6652 ac_save_CC=$CC
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 #include <stdarg.h>
6656 #include <stdbool.h>
6657 #include <stdlib.h>
6658 #include <wchar.h>
6659 #include <stdio.h>
6660
6661 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6662 #define debug(...) fprintf (stderr, __VA_ARGS__)
6663 #define showlist(...) puts (#__VA_ARGS__)
6664 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6665 static void
6666 test_varargs_macros (void)
6667 {
6668 int x = 1234;
6669 int y = 5678;
6670 debug ("Flag");
6671 debug ("X = %d\n", x);
6672 showlist (The first, second, and third items.);
6673 report (x>y, "x is %d but y is %d", x, y);
6674 }
6675
6676 // Check long long types.
6677 #define BIG64 18446744073709551615ull
6678 #define BIG32 4294967295ul
6679 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6680 #if !BIG_OK
6681 your preprocessor is broken;
6682 #endif
6683 #if BIG_OK
6684 #else
6685 your preprocessor is broken;
6686 #endif
6687 static long long int bignum = -9223372036854775807LL;
6688 static unsigned long long int ubignum = BIG64;
6689
6690 struct incomplete_array
6691 {
6692 int datasize;
6693 double data[];
6694 };
6695
6696 struct named_init {
6697 int number;
6698 const wchar_t *name;
6699 double average;
6700 };
6701
6702 typedef const char *ccp;
6703
6704 static inline int
6705 test_restrict (ccp restrict text)
6706 {
6707 // See if C++-style comments work.
6708 // Iterate through items via the restricted pointer.
6709 // Also check for declarations in for loops.
6710 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6711 continue;
6712 return 0;
6713 }
6714
6715 // Check varargs and va_copy.
6716 static void
6717 test_varargs (const char *format, ...)
6718 {
6719 va_list args;
6720 va_start (args, format);
6721 va_list args_copy;
6722 va_copy (args_copy, args);
6723
6724 const char *str;
6725 int number;
6726 float fnumber;
6727
6728 while (*format)
6729 {
6730 switch (*format++)
6731 {
6732 case 's': // string
6733 str = va_arg (args_copy, const char *);
6734 break;
6735 case 'd': // int
6736 number = va_arg (args_copy, int);
6737 break;
6738 case 'f': // float
6739 fnumber = va_arg (args_copy, double);
6740 break;
6741 default:
6742 break;
6743 }
6744 }
6745 va_end (args_copy);
6746 va_end (args);
6747 }
6748
6749 int
6750 main ()
6751 {
6752
6753 // Check bool.
6754 _Bool success = false;
6755
6756 // Check restrict.
6757 if (test_restrict ("String literal") == 0)
6758 success = true;
6759 char *restrict newvar = "Another string";
6760
6761 // Check varargs.
6762 test_varargs ("s, d' f .", "string", 65, 34.234);
6763 test_varargs_macros ();
6764
6765 // Check flexible array members.
6766 struct incomplete_array *ia =
6767 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6768 ia->datasize = 10;
6769 for (int i = 0; i < ia->datasize; ++i)
6770 ia->data[i] = i * 1.234;
6771
6772 // Check named initializers.
6773 struct named_init ni = {
6774 .number = 34,
6775 .name = L"Test wide string",
6776 .average = 543.34343,
6777 };
6778
6779 ni.number = 58;
6780
6781 int dynamic_array[ni.number];
6782 dynamic_array[ni.number - 1] = 543;
6783
6784 // work around unused variable warnings
6785 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6786 || dynamic_array[ni.number - 1] != 543);
6787
6788 ;
6789 return 0;
6790 }
6791 _ACEOF
6792 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6793 do
6794 CC="$ac_save_CC $ac_arg"
6795 if ac_fn_c_try_compile "$LINENO"; then :
6796 ac_cv_prog_cc_c99=$ac_arg
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext
6799 test "x$ac_cv_prog_cc_c99" != "xno" && break
6800 done
6801 rm -f conftest.$ac_ext
6802 CC=$ac_save_CC
6803
6804 fi
6805 # AC_CACHE_VAL
6806 case "x$ac_cv_prog_cc_c99" in
6807 x)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6809 $as_echo "none needed" >&6; } ;;
6810 xno)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6812 $as_echo "unsupported" >&6; } ;;
6813 *)
6814 CC="$CC $ac_cv_prog_cc_c99"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6816 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6817 esac
6818 if test "x$ac_cv_prog_cc_c99" != xno; then :
6819 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6823 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 ac_cv_prog_cc_c89=no
6827 ac_save_CC=$CC
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 #include <stdarg.h>
6831 #include <stdio.h>
6832 #include <sys/types.h>
6833 #include <sys/stat.h>
6834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6835 struct buf { int x; };
6836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6837 static char *e (p, i)
6838 char **p;
6839 int i;
6840 {
6841 return p[i];
6842 }
6843 static char *f (char * (*g) (char **, int), char **p, ...)
6844 {
6845 char *s;
6846 va_list v;
6847 va_start (v,p);
6848 s = g (p, va_arg (v,int));
6849 va_end (v);
6850 return s;
6851 }
6852
6853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6854 function prototypes and stuff, but not '\xHH' hex character constants.
6855 These don't provoke an error unfortunately, instead are silently treated
6856 as 'x'. The following induces an error, until -std is added to get
6857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6858 array size at least. It's necessary to write '\x00'==0 to get something
6859 that's true only with -std. */
6860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6861
6862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6863 inside strings and character constants. */
6864 #define FOO(x) 'x'
6865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6866
6867 int test (int i, double x);
6868 struct s1 {int (*f) (int a);};
6869 struct s2 {int (*f) (double a);};
6870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6871 int argc;
6872 char **argv;
6873 int
6874 main ()
6875 {
6876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6883 do
6884 CC="$ac_save_CC $ac_arg"
6885 if ac_fn_c_try_compile "$LINENO"; then :
6886 ac_cv_prog_cc_c89=$ac_arg
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext
6889 test "x$ac_cv_prog_cc_c89" != "xno" && break
6890 done
6891 rm -f conftest.$ac_ext
6892 CC=$ac_save_CC
6893
6894 fi
6895 # AC_CACHE_VAL
6896 case "x$ac_cv_prog_cc_c89" in
6897 x)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6899 $as_echo "none needed" >&6; } ;;
6900 xno)
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6902 $as_echo "unsupported" >&6; } ;;
6903 *)
6904 CC="$CC $ac_cv_prog_cc_c89"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6906 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6907 esac
6908 if test "x$ac_cv_prog_cc_c89" != xno; then :
6909 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6910 else
6911 ac_cv_prog_cc_stdc=no
6912 fi
6913
6914 fi
6915 ;;
6916 esac
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6918 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6919 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 fi
6922
6923 case $ac_cv_prog_cc_stdc in #(
6924 no) :
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6926 $as_echo "unsupported" >&6; } ;; #(
6927 '') :
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6929 $as_echo "none needed" >&6; } ;; #(
6930 *) :
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6932 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6933 esac
6934
6935
6936
6937 # Code from module alloca-opt:
6938 # Code from module allocator:
6939 # Code from module c-ctype:
6940 # Code from module c-strcase:
6941 # Code from module careadlinkat:
6942 # Code from module clock-time:
6943 # Code from module crypto/md5:
6944 # Code from module crypto/sha1:
6945 # Code from module crypto/sha256:
6946 # Code from module crypto/sha512:
6947 # Code from module dosname:
6948 # Code from module dtoastr:
6949 # Code from module dtotimespec:
6950 # Code from module dup2:
6951 # Code from module environ:
6952 # Code from module extensions:
6953
6954 # Code from module filemode:
6955 # Code from module getloadavg:
6956 # Code from module getopt-gnu:
6957 # Code from module getopt-posix:
6958 # Code from module gettext-h:
6959 # Code from module gettime:
6960 # Code from module gettimeofday:
6961 # Code from module ignore-value:
6962 # Code from module include_next:
6963 # Code from module intprops:
6964 # Code from module inttypes-incomplete:
6965 # Code from module largefile:
6966
6967 # Code from module lstat:
6968 # Code from module manywarnings:
6969 # Code from module mktime:
6970 # Code from module multiarch:
6971 # Code from module nocrash:
6972 # Code from module pathmax:
6973 # Code from module pselect:
6974 # Code from module pthread_sigmask:
6975 # Code from module readlink:
6976 # Code from module signal-h:
6977 # Code from module snippet/_Noreturn:
6978 # Code from module snippet/arg-nonnull:
6979 # Code from module snippet/c++defs:
6980 # Code from module snippet/warn-on-use:
6981 # Code from module socklen:
6982 # Code from module ssize_t:
6983 # Code from module stat:
6984 # Code from module stat-time:
6985 # Code from module stdalign:
6986 # Code from module stdarg:
6987
6988
6989
6990 # Code from module stdbool:
6991 # Code from module stddef:
6992 # Code from module stdint:
6993 # Code from module stdio:
6994 # Code from module stdlib:
6995 # Code from module strftime:
6996 # Code from module strtoimax:
6997 # Code from module strtoll:
6998 # Code from module strtoull:
6999 # Code from module strtoumax:
7000 # Code from module symlink:
7001 # Code from module sys_select:
7002 # Code from module sys_stat:
7003 # Code from module sys_time:
7004 # Code from module time:
7005 # Code from module time_r:
7006 # Code from module timespec:
7007 # Code from module timespec-add:
7008 # Code from module timespec-sub:
7009 # Code from module u64:
7010 # Code from module unistd:
7011 # Code from module utimens:
7012 # Code from module verify:
7013 # Code from module warnings:
7014
7015
7016 # Check whether --enable-gcc-warnings was given.
7017 if test "${enable_gcc_warnings+set}" = set; then :
7018 enableval=$enable_gcc_warnings; case $enableval in
7019 yes|no) ;;
7020 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7021 esac
7022 gl_gcc_warnings=$enableval
7023 else
7024 gl_gcc_warnings=no
7025
7026 fi
7027
7028
7029 # Check whether --enable-link-time-optimization was given.
7030 if test "${enable_link_time_optimization+set}" = set; then :
7031 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7033 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7034 ac_lto_supported=no
7035 if test x$GCC = xyes; then
7036 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7037 if test x$CPUS != x; then
7038 LTO="-flto=$CPUS"
7039 else
7040 LTO="-flto"
7041 fi
7042 old_CFLAGS=$CFLAGS
7043 CFLAGS="$CFLAGS $LTO"
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046
7047 int
7048 main ()
7049 {
7050
7051 ;
7052 return 0;
7053 }
7054 _ACEOF
7055 if ac_fn_c_try_compile "$LINENO"; then :
7056 ac_lto_supported=yes
7057 else
7058 ac_lto_supported=no
7059 fi
7060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 CFLAGS="$old_CFLAGS"
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7064 $as_echo "$ac_lto_supported" >&6; }
7065 if test "$ac_lto_supported" = "yes"; then
7066 CFLAGS="$CFLAGS $LTO"
7067 fi
7068 fi
7069 fi
7070
7071
7072 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7073 # ------------------------------------------------
7074 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7075 # Otherwise, run RUN-IF-NOT-FOUND.
7076
7077
7078 # When compiling with GCC, prefer -isystem to -I when including system
7079 # include files, to avoid generating useless diagnostics for the files.
7080 if test "$gl_gcc_warnings" != yes; then
7081 isystem='-I'
7082 else
7083 isystem='-isystem '
7084
7085 # This, $nw, is the list of warnings we disable.
7086 nw=
7087
7088 case $with_x_toolkit in
7089 lucid | athena | motif)
7090 # Old toolkits mishandle 'const'.
7091 nw="$nw -Wwrite-strings"
7092 ;;
7093 *)
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7095 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7096 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099
7100 gl_save_compiler_FLAGS="$CFLAGS"
7101 as_fn_append CFLAGS " -Werror"
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104
7105 int
7106 main ()
7107 {
7108
7109 ;
7110 return 0;
7111 }
7112 _ACEOF
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114 gl_cv_warn_c__Werror=yes
7115 else
7116 gl_cv_warn_c__Werror=no
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 CFLAGS="$gl_save_compiler_FLAGS"
7120
7121 fi
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7123 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7124 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7125 as_fn_append WERROR_CFLAGS " -Werror"
7126 fi
7127
7128
7129 ;;
7130 esac
7131
7132
7133 nw="$nw -Waggregate-return" # anachronistic
7134 nw="$nw -Wlong-long" # C90 is anachronistic
7135 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7136 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7137 nw="$nw -Wtraditional" # Warns on #elif which we use often
7138 nw="$nw -Wcast-qual" # Too many warnings for now
7139 nw="$nw -Wconversion" # Too many warnings for now
7140 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7141 nw="$nw -Wsign-conversion" # Too many warnings for now
7142 nw="$nw -Woverlength-strings" # Not a problem these days
7143 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7144 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7145 nw="$nw -Wpadded" # Our structs are not padded
7146 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7147 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7148 nw="$nw -Wformat-nonliteral" # we do this a lot
7149 nw="$nw -Wvla" # warnings in gettext.h
7150 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7151 nw="$nw -Wswitch-enum" # Too many warnings for now
7152 nw="$nw -Wswitch-default" # Too many warnings for now
7153 nw="$nw -Wfloat-equal" # warns about high-quality code
7154 nw="$nw -Winline" # OK to ignore 'inline'
7155 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7156 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7157
7158 # Emacs doesn't care about shadowing; see
7159 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7160 nw="$nw -Wshadow"
7161
7162 # The following lines should be removable at some point.
7163 nw="$nw -Wstack-protector"
7164 nw="$nw -Wstrict-overflow"
7165 nw="$nw -Wsuggest-attribute=pure"
7166
7167
7168
7169 if test -n "$GCC"; then
7170
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7172 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7173 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176
7177 gl_save_CFLAGS="$CFLAGS"
7178 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181
7182 int
7183 main ()
7184 {
7185
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"; then :
7191 gl_cv_cc_nomfi_supported=yes
7192 else
7193 gl_cv_cc_nomfi_supported=no
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 CFLAGS="$gl_save_CFLAGS"
7197 fi
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7200 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7201
7202 if test "$gl_cv_cc_nomfi_supported" = yes; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7204 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7205 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208
7209 gl_save_CFLAGS="$CFLAGS"
7210 CFLAGS="$CFLAGS -W -Werror"
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 void f (void)
7214 {
7215 typedef struct { int a; int b; } s_t;
7216 s_t s1 = { 0, };
7217 }
7218
7219 int
7220 main ()
7221 {
7222
7223 ;
7224 return 0;
7225 }
7226 _ACEOF
7227 if ac_fn_c_try_compile "$LINENO"; then :
7228 gl_cv_cc_nomfi_needed=no
7229 else
7230 gl_cv_cc_nomfi_needed=yes
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 CFLAGS="$gl_save_CFLAGS"
7234
7235 fi
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7238 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7239 fi
7240 fi
7241
7242 gl_manywarn_set=
7243 for gl_manywarn_item in \
7244 -Wall \
7245 -W \
7246 -Wformat-y2k \
7247 -Wformat-nonliteral \
7248 -Wformat-security \
7249 -Winit-self \
7250 -Wmissing-include-dirs \
7251 -Wswitch-default \
7252 -Wswitch-enum \
7253 -Wunused \
7254 -Wunknown-pragmas \
7255 -Wstrict-aliasing \
7256 -Wstrict-overflow \
7257 -Wsystem-headers \
7258 -Wfloat-equal \
7259 -Wtraditional \
7260 -Wtraditional-conversion \
7261 -Wdeclaration-after-statement \
7262 -Wundef \
7263 -Wshadow \
7264 -Wunsafe-loop-optimizations \
7265 -Wpointer-arith \
7266 -Wbad-function-cast \
7267 -Wc++-compat \
7268 -Wcast-qual \
7269 -Wcast-align \
7270 -Wwrite-strings \
7271 -Wconversion \
7272 -Wsign-conversion \
7273 -Wlogical-op \
7274 -Waggregate-return \
7275 -Wstrict-prototypes \
7276 -Wold-style-definition \
7277 -Wmissing-prototypes \
7278 -Wmissing-declarations \
7279 -Wmissing-noreturn \
7280 -Wmissing-format-attribute \
7281 -Wpacked \
7282 -Wpadded \
7283 -Wredundant-decls \
7284 -Wnested-externs \
7285 -Wunreachable-code \
7286 -Winline \
7287 -Winvalid-pch \
7288 -Wlong-long \
7289 -Wvla \
7290 -Wvolatile-register-var \
7291 -Wdisabled-optimization \
7292 -Wstack-protector \
7293 -Woverlength-strings \
7294 -Wbuiltin-macro-redefined \
7295 -Wmudflap \
7296 -Wpacked-bitfield-compat \
7297 -Wsync-nand \
7298 ; do
7299 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7300 done
7301 # The following are not documented in the manual but are included in
7302 # output from gcc --help=warnings.
7303 for gl_manywarn_item in \
7304 -Wattributes \
7305 -Wcoverage-mismatch \
7306 -Wunused-macros \
7307 ; do
7308 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7309 done
7310 # More warnings from gcc 4.6.2 --help=warnings.
7311 for gl_manywarn_item in \
7312 -Wabi \
7313 -Wcpp \
7314 -Wdeprecated \
7315 -Wdeprecated-declarations \
7316 -Wdiv-by-zero \
7317 -Wdouble-promotion \
7318 -Wendif-labels \
7319 -Wextra \
7320 -Wformat-contains-nul \
7321 -Wformat-extra-args \
7322 -Wformat-zero-length \
7323 -Wformat=2 \
7324 -Wmultichar \
7325 -Wnormalized=nfc \
7326 -Woverflow \
7327 -Wpointer-to-int-cast \
7328 -Wpragmas \
7329 -Wsuggest-attribute=const \
7330 -Wsuggest-attribute=noreturn \
7331 -Wsuggest-attribute=pure \
7332 -Wtrampolines \
7333 ; do
7334 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7335 done
7336
7337 # Disable the missing-field-initializers warning if needed
7338 if test "$gl_cv_cc_nomfi_needed" = yes; then
7339 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7340 fi
7341
7342 ws=$gl_manywarn_set
7343
7344
7345 gl_warn_set=
7346 set x $ws; shift
7347 for gl_warn_item
7348 do
7349 case " $nw " in
7350 *" $gl_warn_item "*)
7351 ;;
7352 *)
7353 gl_warn_set="$gl_warn_set $gl_warn_item"
7354 ;;
7355 esac
7356 done
7357 ws=$gl_warn_set
7358
7359 for w in $ws; do
7360 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7362 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7363 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366
7367 gl_save_compiler_FLAGS="$CFLAGS"
7368 as_fn_append CFLAGS " $w"
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371
7372 int
7373 main ()
7374 {
7375
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"; then :
7381 eval "$as_gl_Warn=yes"
7382 else
7383 eval "$as_gl_Warn=no"
7384 fi
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 CFLAGS="$gl_save_compiler_FLAGS"
7387
7388 fi
7389 eval ac_res=\$$as_gl_Warn
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7391 $as_echo "$ac_res" >&6; }
7392 eval as_val=\$$as_gl_Warn
7393 if test "x$as_val" = x""yes; then :
7394 as_fn_append WARN_CFLAGS " $w"
7395 fi
7396
7397
7398 done
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7400 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7401 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404
7405 gl_save_compiler_FLAGS="$CFLAGS"
7406 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409
7410 int
7411 main ()
7412 {
7413
7414 ;
7415 return 0;
7416 }
7417 _ACEOF
7418 if ac_fn_c_try_compile "$LINENO"; then :
7419 gl_cv_warn_c__Wno_missing_field_initializers=yes
7420 else
7421 gl_cv_warn_c__Wno_missing_field_initializers=no
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 CFLAGS="$gl_save_compiler_FLAGS"
7425
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7428 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7429 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7430 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7431 fi
7432
7433 # We need this one
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7435 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7436 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439
7440 gl_save_compiler_FLAGS="$CFLAGS"
7441 as_fn_append CFLAGS " -Wno-sign-compare"
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444
7445 int
7446 main ()
7447 {
7448
7449 ;
7450 return 0;
7451 }
7452 _ACEOF
7453 if ac_fn_c_try_compile "$LINENO"; then :
7454 gl_cv_warn_c__Wno_sign_compare=yes
7455 else
7456 gl_cv_warn_c__Wno_sign_compare=no
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 CFLAGS="$gl_save_compiler_FLAGS"
7460
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7463 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7464 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7465 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7466 fi
7467
7468 # Too many warnings for now
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7470 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7471 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474
7475 gl_save_compiler_FLAGS="$CFLAGS"
7476 as_fn_append CFLAGS " -Wno-type-limits"
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479
7480 int
7481 main ()
7482 {
7483
7484 ;
7485 return 0;
7486 }
7487 _ACEOF
7488 if ac_fn_c_try_compile "$LINENO"; then :
7489 gl_cv_warn_c__Wno_type_limits=yes
7490 else
7491 gl_cv_warn_c__Wno_type_limits=no
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 CFLAGS="$gl_save_compiler_FLAGS"
7495
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7498 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7499 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7500 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7501 fi
7502
7503 # Too many warnings for now
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7505 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7506 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509
7510 gl_save_compiler_FLAGS="$CFLAGS"
7511 as_fn_append CFLAGS " -Wno-switch"
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7514
7515 int
7516 main ()
7517 {
7518
7519 ;
7520 return 0;
7521 }
7522 _ACEOF
7523 if ac_fn_c_try_compile "$LINENO"; then :
7524 gl_cv_warn_c__Wno_switch=yes
7525 else
7526 gl_cv_warn_c__Wno_switch=no
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 CFLAGS="$gl_save_compiler_FLAGS"
7530
7531 fi
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7533 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7534 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7535 as_fn_append WARN_CFLAGS " -Wno-switch"
7536 fi
7537
7538 # Too many warnings for now
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7540 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7541 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544
7545 gl_save_compiler_FLAGS="$CFLAGS"
7546 as_fn_append CFLAGS " -Wno-unused-parameter"
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549
7550 int
7551 main ()
7552 {
7553
7554 ;
7555 return 0;
7556 }
7557 _ACEOF
7558 if ac_fn_c_try_compile "$LINENO"; then :
7559 gl_cv_warn_c__Wno_unused_parameter=yes
7560 else
7561 gl_cv_warn_c__Wno_unused_parameter=no
7562 fi
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 CFLAGS="$gl_save_compiler_FLAGS"
7565
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7568 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7569 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7570 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7571 fi
7572
7573 # Too many warnings for now
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7575 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7576 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579
7580 gl_save_compiler_FLAGS="$CFLAGS"
7581 as_fn_append CFLAGS " -Wno-format-nonliteral"
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7584
7585 int
7586 main ()
7587 {
7588
7589 ;
7590 return 0;
7591 }
7592 _ACEOF
7593 if ac_fn_c_try_compile "$LINENO"; then :
7594 gl_cv_warn_c__Wno_format_nonliteral=yes
7595 else
7596 gl_cv_warn_c__Wno_format_nonliteral=no
7597 fi
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 CFLAGS="$gl_save_compiler_FLAGS"
7600
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7603 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7604 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7605 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7606 fi
7607
7608
7609
7610 # In spite of excluding -Wlogical-op above, it is enabled, as of
7611 # gcc 4.5.0 20090517.
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7613 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7614 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617
7618 gl_save_compiler_FLAGS="$CFLAGS"
7619 as_fn_append CFLAGS " -Wno-logical-op"
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622
7623 int
7624 main ()
7625 {
7626
7627 ;
7628 return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_c_try_compile "$LINENO"; then :
7632 gl_cv_warn_c__Wno_logical_op=yes
7633 else
7634 gl_cv_warn_c__Wno_logical_op=no
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637 CFLAGS="$gl_save_compiler_FLAGS"
7638
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7641 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7642 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7643 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7644 fi
7645
7646
7647
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7649 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7650 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653
7654 gl_save_compiler_FLAGS="$CFLAGS"
7655 as_fn_append CFLAGS " -fdiagnostics-show-option"
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658
7659 int
7660 main ()
7661 {
7662
7663 ;
7664 return 0;
7665 }
7666 _ACEOF
7667 if ac_fn_c_try_compile "$LINENO"; then :
7668 gl_cv_warn_c__fdiagnostics_show_option=yes
7669 else
7670 gl_cv_warn_c__fdiagnostics_show_option=no
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 CFLAGS="$gl_save_compiler_FLAGS"
7674
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7677 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7678 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7679 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7680 fi
7681
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7684 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7685 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688
7689 gl_save_compiler_FLAGS="$CFLAGS"
7690 as_fn_append CFLAGS " -funit-at-a-time"
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693
7694 int
7695 main ()
7696 {
7697
7698 ;
7699 return 0;
7700 }
7701 _ACEOF
7702 if ac_fn_c_try_compile "$LINENO"; then :
7703 gl_cv_warn_c__funit_at_a_time=yes
7704 else
7705 gl_cv_warn_c__funit_at_a_time=no
7706 fi
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 CFLAGS="$gl_save_compiler_FLAGS"
7709
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7712 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7713 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7714 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7715 fi
7716
7717
7718
7719
7720 $as_echo "#define lint 1" >>confdefs.h
7721
7722
7723 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7724
7725
7726 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7727
7728
7729 # We use a slightly smaller set of warning options for lib/.
7730 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7731 nw=
7732 nw="$nw -Wunused-macros"
7733
7734
7735 gl_warn_set=
7736 set x $WARN_CFLAGS; shift
7737 for gl_warn_item
7738 do
7739 case " $nw " in
7740 *" $gl_warn_item "*)
7741 ;;
7742 *)
7743 gl_warn_set="$gl_warn_set $gl_warn_item"
7744 ;;
7745 esac
7746 done
7747 GNULIB_WARN_CFLAGS=$gl_warn_set
7748
7749
7750 fi
7751
7752
7753
7754
7755 # Extract the first word of "install-info", so it can be a program name with args.
7756 set dummy install-info; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 case $INSTALL_INFO in
7763 [\\/]* | ?:[\\/]*)
7764 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7765 ;;
7766 *)
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7783 ;;
7784 esac
7785 fi
7786 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7787 if test -n "$INSTALL_INFO"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7789 $as_echo "$INSTALL_INFO" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794
7795
7796 # Extract the first word of "gzip", so it can be a program name with args.
7797 set dummy gzip; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 case $GZIP_PROG in
7804 [\\/]* | ?:[\\/]*)
7805 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7806 ;;
7807 *)
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819 done
7820 done
7821 IFS=$as_save_IFS
7822
7823 ;;
7824 esac
7825 fi
7826 GZIP_PROG=$ac_cv_path_GZIP_PROG
7827 if test -n "$GZIP_PROG"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7829 $as_echo "$GZIP_PROG" >&6; }
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 fi
7834
7835
7836
7837 if test $opsys = gnu-linux; then
7838 # Extract the first word of "paxctl", so it can be a program name with args.
7839 set dummy paxctl; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 case $PAXCTL in
7846 [\\/]* | ?:[\\/]*)
7847 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7848 ;;
7849 *)
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7852 do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7860 fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865 ;;
7866 esac
7867 fi
7868 PAXCTL=$ac_cv_path_PAXCTL
7869 if test -n "$PAXCTL"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7871 $as_echo "$PAXCTL" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877
7878 fi
7879
7880 ## Need makeinfo >= 4.7 (?) to build the manuals.
7881 # Extract the first word of "makeinfo", so it can be a program name with args.
7882 set dummy makeinfo; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 case $MAKEINFO in
7889 [\\/]* | ?:[\\/]*)
7890 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7891 ;;
7892 *)
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7895 do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904 done
7905 done
7906 IFS=$as_save_IFS
7907
7908 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7909 ;;
7910 esac
7911 fi
7912 MAKEINFO=$ac_cv_path_MAKEINFO
7913 if test -n "$MAKEINFO"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7915 $as_echo "$MAKEINFO" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921
7922 if test "$MAKEINFO" != "no" && \
7923 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
7924 MAKEINFO=no
7925 fi
7926
7927 ## Makeinfo is unusual. For a released Emacs, the manuals are
7928 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7929 ## therefore in the category of "special tools" not normally required, which
7930 ## configure does not have to check for (eg autoconf itself).
7931 ## In a Bazaar checkout on the other hand, the manuals are not included.
7932 ## So makeinfo is a requirement to build from Bazaar, and configure
7933 ## should test for it as it does for any other build requirement.
7934 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7935 ## with pre-built manuals, from a Bazaar checkout.
7936 HAVE_MAKEINFO=yes
7937
7938 if test "$MAKEINFO" = "no"; then
7939 MAKEINFO=makeinfo
7940 if test "x${with_makeinfo}" = "xno"; then
7941 HAVE_MAKEINFO=no
7942 elif test ! -e $srcdir/info/emacs; then
7943 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7944 source tree does not seem to have pre-built manuals in the \`info' directory.
7945 Either install a suitable version of makeinfo, or re-run configure
7946 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7947 fi
7948 fi
7949
7950
7951 INFO_EXT=.info
7952 INFO_OPTS=--no-split
7953
7954
7955
7956
7957 if test x$GCC = xyes; then
7958 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7959 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7960 else
7961 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7962 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7963 fi
7964
7965
7966 late_LDFLAGS=$LDFLAGS
7967 if test x$GCC = xyes; then
7968 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7969 else
7970 LDFLAGS="$LDFLAGS -znocombreloc"
7971 fi
7972
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7974 $as_echo_n "checking for -znocombreloc... " >&6; }
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977
7978 int
7979 main ()
7980 {
7981
7982 ;
7983 return 0;
7984 }
7985 _ACEOF
7986 if ac_fn_c_try_link "$LINENO"; then :
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7988 $as_echo "yes" >&6; }
7989 else
7990 LDFLAGS=$late_LDFLAGS
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993 fi
7994 rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996
7997
7998 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7999 case "$opsys" in
8000 your-opsys-here) CANNOT_DUMP=yes ;;
8001 esac
8002
8003 test "$CANNOT_DUMP" = "yes" && \
8004
8005 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8006
8007
8008
8009
8010
8011 UNEXEC_OBJ=unexelf.o
8012 case "$opsys" in
8013 # MSDOS uses unexcoff.o
8014 # MSWindows uses unexw32.o
8015 aix4-2)
8016 UNEXEC_OBJ=unexaix.o
8017 ;;
8018 cygwin)
8019 UNEXEC_OBJ=unexcw.o
8020 ;;
8021 darwin)
8022 UNEXEC_OBJ=unexmacosx.o
8023 ;;
8024 hpux10-20 | hpux11)
8025 UNEXEC_OBJ=unexhp9k800.o
8026 ;;
8027 sol2-10)
8028 # Use the Solaris dldump() function, called from unexsol.c, to dump
8029 # emacs, instead of the generic ELF dump code found in unexelf.c.
8030 # The resulting binary has a complete symbol table, and is better
8031 # for debugging and other observability tools (debuggers, pstack, etc).
8032 #
8033 # If you encounter a problem using dldump(), please consider sending
8034 # a message to the OpenSolaris tools-linking mailing list:
8035 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8036 #
8037 # It is likely that dldump() works with older Solaris too, but this has
8038 # not been tested, so for now this change is for Solaris 10 or newer.
8039 UNEXEC_OBJ=unexsol.o
8040 ;;
8041 esac
8042
8043 LD_SWITCH_SYSTEM=
8044 case "$opsys" in
8045 freebsd)
8046 ## Let `ld' find image libs and similar things in /usr/local/lib.
8047 ## The system compiler, GCC, has apparently been modified to not
8048 ## look there, contrary to what a stock GCC would do.
8049 ### It's not our place to do this. See bug#10313#17.
8050 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8051 :
8052 ;;
8053
8054 gnu-linux)
8055 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8056 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8057 ;;
8058
8059 netbsd)
8060 ### It's not our place to do this. See bug#10313#17.
8061 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8062 :
8063 ;;
8064
8065 openbsd)
8066 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8067 ## otherwise Emacs dumps core on elf systems.
8068 LD_SWITCH_SYSTEM="-Z"
8069 ;;
8070 esac
8071
8072
8073 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8074
8075 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8076 ## which has not been defined yet. When this was handled with cpp,
8077 ## it was expanded to null when configure sourced the s/*.h file.
8078 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8079 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8080 ## (or somesuch), but because it is supposed to go at the _front_
8081 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8082 ## Compare with the gnu-linux case below, which added to the end
8083 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8084 ## LD_SWITCH_SYSTEM_TEMACS.
8085 case "$opsys" in
8086 netbsd|openbsd)
8087 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8088 esac
8089
8090
8091 C_SWITCH_MACHINE=
8092 case $canonical in
8093 alpha*)
8094 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8095 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8096
8097 fi
8098
8099 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8100 ## With ELF, make sure that all common symbols get allocated to in the
8101 ## data section. Otherwise, the dump of temacs may miss variables in
8102 ## the shared library that have been initialized. For example, with
8103 ## GNU libc, __malloc_initialized would normally be resolved to the
8104 ## shared library's .bss section, which is fatal.
8105 if test "x$GCC" = "xyes"; then
8106 C_SWITCH_MACHINE="-fno-common"
8107 else
8108 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8109 fi
8110 else
8111 UNEXEC_OBJ=unexalpha.o
8112 fi
8113 ;;
8114 esac
8115
8116
8117
8118
8119 C_SWITCH_SYSTEM=
8120 ## Some programs in src produce warnings saying certain subprograms
8121 ## are too complex and need a MAXMEM value greater than 2000 for
8122 ## additional optimization. --nils@exp-math.uni-essen.de
8123 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8124 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8125 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8126 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8127
8128
8129
8130 LIBS_SYSTEM=
8131 case "$opsys" in
8132 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8133 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8134
8135 freebsd) LIBS_SYSTEM="-lutil" ;;
8136
8137 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8138
8139 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8140
8141 ## Motif needs -lgen.
8142 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8143 esac
8144
8145
8146
8147 ### Make sure subsequent tests use flags consistent with the build flags.
8148
8149 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8150 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8151 else
8152 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8153 fi
8154
8155 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8156
8157 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8158
8159
8160
8161 LIB_MATH=-lm
8162 LIB_STANDARD=
8163 START_FILES=
8164 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8165
8166 case $opsys in
8167 cygwin )
8168 LIB_MATH=
8169 START_FILES='pre-crt0.o'
8170 ;;
8171 darwin )
8172 ## Adding -lm confuses the dynamic linker, so omit it.
8173 LIB_MATH=
8174 START_FILES='pre-crt0.o'
8175 ;;
8176 freebsd )
8177 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8178 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8179 SYSTEM_TYPE=berkeley-unix
8180 ;;
8181 gnu-linux | gnu-kfreebsd )
8182 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8183 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8184 ;;
8185 hpux10-20 | hpux11 )
8186 LIB_STANDARD=-lc
8187 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8188 ;;
8189 netbsd | openbsd )
8190 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8191 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8192 SYSTEM_TYPE=berkeley-unix
8193 ;;
8194
8195 sol2* | unixware )
8196 SYSTEM_TYPE=usg-unix-v
8197 ;;
8198
8199 esac
8200
8201
8202
8203
8204 cat >>confdefs.h <<_ACEOF
8205 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8206 _ACEOF
8207
8208
8209 crt_files=
8210
8211 for file in x $LIB_STANDARD $START_FILES; do
8212 case "$file" in
8213 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8214 esac
8215 done
8216
8217 if test "x$crt_files" != x; then
8218
8219 ## If user specified a crt-dir, use that unconditionally.
8220 crt_gcc=no
8221
8222 if test "X$CRT_DIR" = "X"; then
8223
8224 CRT_DIR=/usr/lib # default
8225
8226 case "$canonical" in
8227 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8228 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8229 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8230 ## For anything else (eg /usr/lib32), it is up the user to specify
8231 ## the location (bug#5655).
8232 ## Test for crtn.o, not just the directory, because sometimes the
8233 ## directory exists but does not have the relevant files (bug#1287).
8234 ## FIXME better to test for binary compatibility somehow.
8235 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8236 ;;
8237
8238 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8239 esac
8240
8241 case "$opsys" in
8242 hpux10-20) CRT_DIR=/lib ;;
8243 esac
8244
8245 test "x${GCC}" = xyes && crt_gcc=yes
8246
8247 fi # CRT_DIR = ""
8248
8249 crt_missing=
8250
8251 for file in $crt_files; do
8252
8253 ## If we're using gcc, try to determine it automatically by asking
8254 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8255 ## system-dependent default from above.]
8256 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8257
8258 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8259 case "$crt_file" in
8260 */*)
8261 CRT_DIR=`$as_dirname -- "$crt_file" ||
8262 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8263 X"$crt_file" : 'X\(//\)[^/]' \| \
8264 X"$crt_file" : 'X\(//\)$' \| \
8265 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8266 $as_echo X"$crt_file" |
8267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8268 s//\1/
8269 q
8270 }
8271 /^X\(\/\/\)[^/].*/{
8272 s//\1/
8273 q
8274 }
8275 /^X\(\/\/\)$/{
8276 s//\1/
8277 q
8278 }
8279 /^X\(\/\).*/{
8280 s//\1/
8281 q
8282 }
8283 s/.*/./; q'`
8284 ;;
8285 esac
8286 fi
8287
8288 crt_gcc=no
8289
8290 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8291 done # $crt_files
8292
8293 test "x$crt_missing" = x || \
8294 as_fn_error "Required file(s) not found:$crt_missing
8295 Try using the --with-crt-dir option." "$LINENO" 5
8296
8297 fi # crt_files != ""
8298
8299
8300
8301 case $opsys in
8302 netbsd | openbsd )
8303 if test -f $CRT_DIR/crti.o; then
8304
8305 test -f $CRT_DIR/crtn.o || \
8306 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8307
8308 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8309 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8310 fi
8311 ;;
8312 esac
8313
8314
8315 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8316 pre_PKG_CONFIG_LIBS=$LIBS
8317
8318 # Extract the first word of "pkg-config", so it can be a program name with args.
8319 set dummy pkg-config; ac_word=$2
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 $as_echo_n "checking for $ac_word... " >&6; }
8322 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 case $PKG_CONFIG in
8326 [\\/]* | ?:[\\/]*)
8327 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8328 ;;
8329 *)
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8337 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8346 ;;
8347 esac
8348 fi
8349 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8350 if test -n "$PKG_CONFIG"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8352 $as_echo "$PKG_CONFIG" >&6; }
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358
8359
8360
8361
8362
8363 if test "${with_sound}" != "no"; then
8364 # Sound support for GNU/Linux and the free BSDs.
8365 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8366 do :
8367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8369 eval as_val=\$$as_ac_Header
8370 if test "x$as_val" = x""yes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8373 _ACEOF
8374 have_sound_header=yes
8375 fi
8376
8377 done
8378
8379 # Emulation library used on NetBSD.
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8381 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8382 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 ac_check_lib_save_LIBS=$LIBS
8386 LIBS="-lossaudio $LIBS"
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389
8390 /* Override any GCC internal prototype to avoid an error.
8391 Use char because int might match the return type of a GCC
8392 builtin and then its argument prototype would still apply. */
8393 #ifdef __cplusplus
8394 extern "C"
8395 #endif
8396 char _oss_ioctl ();
8397 int
8398 main ()
8399 {
8400 return _oss_ioctl ();
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 if ac_fn_c_try_link "$LINENO"; then :
8406 ac_cv_lib_ossaudio__oss_ioctl=yes
8407 else
8408 ac_cv_lib_ossaudio__oss_ioctl=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
8412 LIBS=$ac_check_lib_save_LIBS
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8415 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8416 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8417 LIBSOUND=-lossaudio
8418 else
8419 LIBSOUND=
8420 fi
8421
8422
8423
8424 ALSA_REQUIRED=1.0.0
8425 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8426
8427 succeeded=no
8428
8429 if test "$PKG_CONFIG" = "no" ; then
8430 HAVE_ALSA=no
8431 else
8432 PKG_CONFIG_MIN_VERSION=0.9.0
8433 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8435 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8436
8437 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8438 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8439 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8440 edit_cflags="
8441 s,///*,/,g
8442 s/^/ /
8443 s/ -I/ $isystem/g
8444 s/^ //
8445 "
8446 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8447 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8449 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8450 succeeded=yes
8451 else
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8454 ALSA_CFLAGS=""
8455 ALSA_LIBS=""
8456 ## If we have a custom action on failure, don't print errors, but
8457 ## do set a variable so people can do so.
8458 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8459
8460 fi
8461
8462
8463
8464 else
8465 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8466 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8467 fi
8468 fi
8469
8470 if test $succeeded = yes; then
8471 HAVE_ALSA=yes
8472 else
8473 HAVE_ALSA=no
8474 fi
8475
8476 if test $HAVE_ALSA = yes; then
8477 SAVE_CFLAGS="$CFLAGS"
8478 SAVE_LIBS="$LIBS"
8479 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8480 LIBS="$ALSA_LIBS $LIBS"
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483 #include <asoundlib.h>
8484 int
8485 main ()
8486 {
8487 snd_lib_error_set_handler (0);
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 emacs_alsa_normal=yes
8494 else
8495 emacs_alsa_normal=no
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498 if test "$emacs_alsa_normal" != yes; then
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <alsa/asoundlib.h>
8502 int
8503 main ()
8504 {
8505 snd_lib_error_set_handler (0);
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 if ac_fn_c_try_compile "$LINENO"; then :
8511 emacs_alsa_subdir=yes
8512 else
8513 emacs_alsa_subdir=no
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 if test "$emacs_alsa_subdir" != yes; then
8517 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8518 fi
8519 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8520 fi
8521
8522 CFLAGS="$SAVE_CFLAGS"
8523 LIBS="$SAVE_LIBS"
8524 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8525 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8526
8527 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8528
8529 fi
8530
8531 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8532 case "$opsys" in
8533 gnu-linux|freebsd|netbsd)
8534
8535 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8536
8537 ;;
8538 esac
8539 fi
8540
8541
8542 fi
8543
8544
8545
8546
8547 for ac_header in $ac_header_list
8548 do :
8549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8550 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8551 "
8552 eval as_val=\$$as_ac_Header
8553 if test "x$as_val" = x""yes; then :
8554 cat >>confdefs.h <<_ACEOF
8555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8556 _ACEOF
8557
8558 fi
8559
8560 done
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8591 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8594 #include <sys/personality.h>
8595 int
8596 main ()
8597 {
8598 personality (PER_LINUX32)
8599 ;
8600 return 0;
8601 }
8602 _ACEOF
8603 if ac_fn_c_try_compile "$LINENO"; then :
8604 emacs_cv_personality_linux32=yes
8605 else
8606 emacs_cv_personality_linux32=no
8607 fi
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8610 $as_echo "$emacs_cv_personality_linux32" >&6; }
8611
8612 if test $emacs_cv_personality_linux32 = yes; then
8613
8614 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8615
8616 fi
8617
8618 for ac_header in term.h
8619 do :
8620 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8621 if test "x$ac_cv_header_term_h" = x""yes; then :
8622 cat >>confdefs.h <<_ACEOF
8623 #define HAVE_TERM_H 1
8624 _ACEOF
8625
8626 fi
8627
8628 done
8629
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8631 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8632 if test "${ac_cv_header_time+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <sys/types.h>
8638 #include <sys/time.h>
8639 #include <time.h>
8640
8641 int
8642 main ()
8643 {
8644 if ((struct tm *) 0)
8645 return 0;
8646 ;
8647 return 0;
8648 }
8649 _ACEOF
8650 if ac_fn_c_try_compile "$LINENO"; then :
8651 ac_cv_header_time=yes
8652 else
8653 ac_cv_header_time=no
8654 fi
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 fi
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8658 $as_echo "$ac_cv_header_time" >&6; }
8659 if test $ac_cv_header_time = yes; then
8660
8661 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8662
8663 fi
8664
8665 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8666 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8667 ac_have_decl=1
8668 else
8669 ac_have_decl=0
8670 fi
8671
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8674 _ACEOF
8675
8676 if test $ac_cv_have_decl_sys_siglist != yes; then
8677 # For Tru64, at least:
8678 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8679 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8680 ac_have_decl=1
8681 else
8682 ac_have_decl=0
8683 fi
8684
8685 cat >>confdefs.h <<_ACEOF
8686 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8687 _ACEOF
8688
8689 if test $ac_cv_have_decl___sys_siglist = yes; then
8690
8691 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8692
8693 fi
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8696 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8697 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 #include <sys/types.h>
8703 #include <sys/wait.h>
8704 #ifndef WEXITSTATUS
8705 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8706 #endif
8707 #ifndef WIFEXITED
8708 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8709 #endif
8710
8711 int
8712 main ()
8713 {
8714 int s;
8715 wait (&s);
8716 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8717 ;
8718 return 0;
8719 }
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"; then :
8722 ac_cv_header_sys_wait_h=yes
8723 else
8724 ac_cv_header_sys_wait_h=no
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 fi
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8729 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8730 if test $ac_cv_header_sys_wait_h = yes; then
8731
8732 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8733
8734 fi
8735
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8738 $as_echo_n "checking for speed_t... " >&6; }
8739 if test "${emacs_cv_speed_t+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 <termios.h>
8745 int
8746 main ()
8747 {
8748 speed_t x = 1;
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 if ac_fn_c_try_compile "$LINENO"; then :
8754 emacs_cv_speed_t=yes
8755 else
8756 emacs_cv_speed_t=no
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 fi
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8761 $as_echo "$emacs_cv_speed_t" >&6; }
8762 if test $emacs_cv_speed_t = yes; then
8763
8764 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8765
8766 fi
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8769 $as_echo_n "checking for struct exception... " >&6; }
8770 if test "${emacs_cv_struct_exception+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 #include <math.h>
8776 int
8777 main ()
8778 {
8779 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8780 ;
8781 return 0;
8782 }
8783 _ACEOF
8784 if ac_fn_c_try_compile "$LINENO"; then :
8785 emacs_cv_struct_exception=yes
8786 else
8787 emacs_cv_struct_exception=no
8788 fi
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 fi
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8792 $as_echo "$emacs_cv_struct_exception" >&6; }
8793 HAVE_EXCEPTION=$emacs_cv_struct_exception
8794 if test $emacs_cv_struct_exception != yes || test $opsys = darwin; then
8795
8796 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8797
8798 fi
8799
8800
8801
8802
8803 for ac_header in net/if.h
8804 do :
8805 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8806 #if HAVE_SYS_SOCKET_H
8807 #include <sys/socket.h>
8808 #endif
8809 "
8810 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8811 cat >>confdefs.h <<_ACEOF
8812 #define HAVE_NET_IF_H 1
8813 _ACEOF
8814
8815 fi
8816
8817 done
8818
8819 for ac_header in ifaddrs.h
8820 do :
8821 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8822 #if HAVE_SYS_SOCKET_H
8823 #include <sys/socket.h>
8824 #endif
8825 "
8826 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8827 cat >>confdefs.h <<_ACEOF
8828 #define HAVE_IFADDRS_H 1
8829 _ACEOF
8830
8831 fi
8832
8833 done
8834
8835 for ac_header in net/if_dl.h
8836 do :
8837 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8838 #if HAVE_SYS_SOCKET_H
8839 #include <sys/socket.h>
8840 #endif
8841 "
8842 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8843 cat >>confdefs.h <<_ACEOF
8844 #define HAVE_NET_IF_DL_H 1
8845 _ACEOF
8846
8847 fi
8848
8849 done
8850
8851
8852 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8853 #if HAVE_SYS_SOCKET_H
8854 #include <sys/socket.h>
8855 #endif
8856 #if HAVE_NET_IF_H
8857 #include <net/if.h>
8858 #endif
8859 "
8860 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8861
8862 cat >>confdefs.h <<_ACEOF
8863 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8864 _ACEOF
8865
8866
8867 fi
8868 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8869 #if HAVE_SYS_SOCKET_H
8870 #include <sys/socket.h>
8871 #endif
8872 #if HAVE_NET_IF_H
8873 #include <net/if.h>
8874 #endif
8875 "
8876 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8877
8878 cat >>confdefs.h <<_ACEOF
8879 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8880 _ACEOF
8881
8882
8883 fi
8884 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8885 #if HAVE_SYS_SOCKET_H
8886 #include <sys/socket.h>
8887 #endif
8888 #if HAVE_NET_IF_H
8889 #include <net/if.h>
8890 #endif
8891 "
8892 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8893
8894 cat >>confdefs.h <<_ACEOF
8895 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8896 _ACEOF
8897
8898
8899 fi
8900 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8901 #if HAVE_SYS_SOCKET_H
8902 #include <sys/socket.h>
8903 #endif
8904 #if HAVE_NET_IF_H
8905 #include <net/if.h>
8906 #endif
8907 "
8908 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8909
8910 cat >>confdefs.h <<_ACEOF
8911 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8912 _ACEOF
8913
8914
8915 fi
8916 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8917 #if HAVE_SYS_SOCKET_H
8918 #include <sys/socket.h>
8919 #endif
8920 #if HAVE_NET_IF_H
8921 #include <net/if.h>
8922 #endif
8923 "
8924 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8925
8926 cat >>confdefs.h <<_ACEOF
8927 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8928 _ACEOF
8929
8930
8931 fi
8932 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8933 #if HAVE_SYS_SOCKET_H
8934 #include <sys/socket.h>
8935 #endif
8936 #if HAVE_NET_IF_H
8937 #include <net/if.h>
8938 #endif
8939 "
8940 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8941
8942 cat >>confdefs.h <<_ACEOF
8943 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8944 _ACEOF
8945
8946
8947 fi
8948
8949
8950
8951
8952 DEPFLAGS=
8953 MKDEPDIR=":"
8954 deps_frag=deps.mk
8955 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8957 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8958 HAVE_GNU_MAKE=no
8959 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
8960 if test "x$testval" != x; then
8961 HAVE_GNU_MAKE=yes
8962 else
8963 ac_enable_autodepend=no
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8966 $as_echo "$HAVE_GNU_MAKE" >&6; }
8967 if test $HAVE_GNU_MAKE = yes; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8969 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8970 SAVE_CFLAGS="$CFLAGS"
8971 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974
8975 int
8976 main ()
8977 {
8978
8979 ;
8980 return 0;
8981 }
8982 _ACEOF
8983 if ac_fn_c_try_compile "$LINENO"; then :
8984
8985 else
8986 ac_enable_autodepend=no
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 CFLAGS="$SAVE_CFLAGS"
8990 test -f deps.d || ac_enable_autodepend=no
8991 rm -rf deps.d
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8993 $as_echo "$ac_enable_autodepend" >&6; }
8994 fi
8995 if test $ac_enable_autodepend = yes; then
8996 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
8997 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
8998 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
8999 deps_frag=autodeps.mk
9000 fi
9001 fi
9002 deps_frag=$srcdir/src/$deps_frag
9003
9004
9005
9006
9007
9008 lisp_frag=$srcdir/src/lisp.mk
9009
9010
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9013 $as_echo_n "checking for long file names... " >&6; }
9014 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 ac_cv_sys_long_file_names=yes
9018 # Test for long file names in all the places we know might matter:
9019 # . the current directory, where building will happen
9020 # $prefix/lib where we will be installing things
9021 # $exec_prefix/lib likewise
9022 # $TMPDIR if set, where it might want to write temporary files
9023 # /tmp where it might want to write temporary files
9024 # /var/tmp likewise
9025 # /usr/tmp likewise
9026 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9027 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9028 # in the usual case where exec_prefix is '${prefix}'.
9029 case $ac_dir in #(
9030 . | /* | ?:[\\/]*) ;; #(
9031 *) continue;;
9032 esac
9033 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9034 ac_xdir=$ac_dir/cf$$
9035 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9036 ac_tf1=$ac_xdir/conftest9012345
9037 ac_tf2=$ac_xdir/conftest9012346
9038 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9039 ac_cv_sys_long_file_names=no
9040 rm -f -r "$ac_xdir" 2>/dev/null
9041 test $ac_cv_sys_long_file_names = no && break
9042 done
9043 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9045 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9046 if test $ac_cv_sys_long_file_names = yes; then
9047
9048 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9049
9050 fi
9051
9052
9053 #### Choose a window system.
9054
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9056 $as_echo_n "checking for X... " >&6; }
9057
9058
9059 # Check whether --with-x was given.
9060 if test "${with_x+set}" = set; then :
9061 withval=$with_x;
9062 fi
9063
9064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9065 if test "x$with_x" = xno; then
9066 # The user explicitly disabled X.
9067 have_x=disabled
9068 else
9069 case $x_includes,$x_libraries in #(
9070 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9071 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 # One or both of the vars are not set, and there is no cached value.
9075 ac_x_includes=no ac_x_libraries=no
9076 rm -f -r conftest.dir
9077 if mkdir conftest.dir; then
9078 cd conftest.dir
9079 cat >Imakefile <<'_ACEOF'
9080 incroot:
9081 @echo incroot='${INCROOT}'
9082 usrlibdir:
9083 @echo usrlibdir='${USRLIBDIR}'
9084 libdir:
9085 @echo libdir='${LIBDIR}'
9086 _ACEOF
9087 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9088 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9089 for ac_var in incroot usrlibdir libdir; do
9090 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9091 done
9092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9093 for ac_extension in a so sl dylib la dll; do
9094 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9095 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9096 ac_im_usrlibdir=$ac_im_libdir; break
9097 fi
9098 done
9099 # Screen out bogus values from the imake configuration. They are
9100 # bogus both because they are the default anyway, and because
9101 # using them would break gcc on systems where it needs fixed includes.
9102 case $ac_im_incroot in
9103 /usr/include) ac_x_includes= ;;
9104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9105 esac
9106 case $ac_im_usrlibdir in
9107 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9109 esac
9110 fi
9111 cd ..
9112 rm -f -r conftest.dir
9113 fi
9114
9115 # Standard set of common directories for X headers.
9116 # Check X11 before X11Rn because it is often a symlink to the current release.
9117 ac_x_header_dirs='
9118 /usr/X11/include
9119 /usr/X11R7/include
9120 /usr/X11R6/include
9121 /usr/X11R5/include
9122 /usr/X11R4/include
9123
9124 /usr/include/X11
9125 /usr/include/X11R7
9126 /usr/include/X11R6
9127 /usr/include/X11R5
9128 /usr/include/X11R4
9129
9130 /usr/local/X11/include
9131 /usr/local/X11R7/include
9132 /usr/local/X11R6/include
9133 /usr/local/X11R5/include
9134 /usr/local/X11R4/include
9135
9136 /usr/local/include/X11
9137 /usr/local/include/X11R7
9138 /usr/local/include/X11R6
9139 /usr/local/include/X11R5
9140 /usr/local/include/X11R4
9141
9142 /usr/X386/include
9143 /usr/x386/include
9144 /usr/XFree86/include/X11
9145
9146 /usr/include
9147 /usr/local/include
9148 /usr/unsupported/include
9149 /usr/athena/include
9150 /usr/local/x11r5/include
9151 /usr/lpp/Xamples/include
9152
9153 /usr/openwin/include
9154 /usr/openwin/share/include'
9155
9156 if test "$ac_x_includes" = no; then
9157 # Guess where to find include files, by looking for Xlib.h.
9158 # First, try using that file with no special directory specified.
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 #include <X11/Xlib.h>
9162 _ACEOF
9163 if ac_fn_c_try_cpp "$LINENO"; then :
9164 # We can compile using X headers with no special include directory.
9165 ac_x_includes=
9166 else
9167 for ac_dir in $ac_x_header_dirs; do
9168 if test -r "$ac_dir/X11/Xlib.h"; then
9169 ac_x_includes=$ac_dir
9170 break
9171 fi
9172 done
9173 fi
9174 rm -f conftest.err conftest.$ac_ext
9175 fi # $ac_x_includes = no
9176
9177 if test "$ac_x_libraries" = no; then
9178 # Check for the libraries.
9179 # See if we find them without any special options.
9180 # Don't add to $LIBS permanently.
9181 ac_save_LIBS=$LIBS
9182 LIBS="-lX11 $LIBS"
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185 #include <X11/Xlib.h>
9186 int
9187 main ()
9188 {
9189 XrmInitialize ()
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 if ac_fn_c_try_link "$LINENO"; then :
9195 LIBS=$ac_save_LIBS
9196 # We can link X programs with no special library path.
9197 ac_x_libraries=
9198 else
9199 LIBS=$ac_save_LIBS
9200 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9201 do
9202 # Don't even attempt the hair of trying to link an X program!
9203 for ac_extension in a so sl dylib la dll; do
9204 if test -r "$ac_dir/libX11.$ac_extension"; then
9205 ac_x_libraries=$ac_dir
9206 break 2
9207 fi
9208 done
9209 done
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213 fi # $ac_x_libraries = no
9214
9215 case $ac_x_includes,$ac_x_libraries in #(
9216 no,* | *,no | *\'*)
9217 # Didn't find X, or a directory has "'" in its name.
9218 ac_cv_have_x="have_x=no";; #(
9219 *)
9220 # Record where we found X for the cache.
9221 ac_cv_have_x="have_x=yes\
9222 ac_x_includes='$ac_x_includes'\
9223 ac_x_libraries='$ac_x_libraries'"
9224 esac
9225 fi
9226 ;; #(
9227 *) have_x=yes;;
9228 esac
9229 eval "$ac_cv_have_x"
9230 fi # $with_x != no
9231
9232 if test "$have_x" != yes; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9234 $as_echo "$have_x" >&6; }
9235 no_x=yes
9236 else
9237 # If each of the values was on the command line, it overrides each guess.
9238 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9239 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9240 # Update the cache value to reflect the command line values.
9241 ac_cv_have_x="have_x=yes\
9242 ac_x_includes='$x_includes'\
9243 ac_x_libraries='$x_libraries'"
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9245 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9246 fi
9247
9248 if test "$no_x" = yes; then
9249 window_system=none
9250 else
9251 window_system=x11
9252 fi
9253
9254 LD_SWITCH_X_SITE_RPATH=
9255 if test "${x_libraries}" != NONE; then
9256 if test -n "${x_libraries}"; then
9257 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9258 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9259 fi
9260 x_default_search_path=""
9261 x_search_path=${x_libraries}
9262 if test -z "${x_search_path}"; then
9263 x_search_path=/usr/lib
9264 fi
9265 for x_library in `echo ${x_search_path}: | \
9266 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9267 x_search_path="\
9268 ${x_library}/X11/%L/%T/%N%C%S:\
9269 ${x_library}/X11/%l/%T/%N%C%S:\
9270 ${x_library}/X11/%T/%N%C%S:\
9271 ${x_library}/X11/%L/%T/%N%S:\
9272 ${x_library}/X11/%l/%T/%N%S:\
9273 ${x_library}/X11/%T/%N%S"
9274 if test x"${x_default_search_path}" = x; then
9275 x_default_search_path=${x_search_path}
9276 else
9277 x_default_search_path="${x_search_path}:${x_default_search_path}"
9278 fi
9279 done
9280 fi
9281
9282
9283 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9284 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9285 fi
9286
9287 if test x"${x_includes}" = x; then
9288 bitmapdir=/usr/include/X11/bitmaps
9289 else
9290 # accumulate include directories that have X11 bitmap subdirectories
9291 bmd_acc="dummyval"
9292 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9293 if test -d "${bmd}/X11/bitmaps"; then
9294 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9295 fi
9296 if test -d "${bmd}/bitmaps"; then
9297 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9298 fi
9299 done
9300 if test ${bmd_acc} != "dummyval"; then
9301 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9302 fi
9303 fi
9304
9305 HAVE_NS=no
9306 NS_IMPL_COCOA=no
9307 NS_IMPL_GNUSTEP=no
9308 tmp_CPPFLAGS="$CPPFLAGS"
9309 tmp_CFLAGS="$CFLAGS"
9310 CPPFLAGS="$CPPFLAGS -x objective-c"
9311 CFLAGS="$CFLAGS -x objective-c"
9312 TEMACS_LDFLAGS2="\${LDFLAGS}"
9313 GNU_OBJC_CFLAGS=
9314 if test "${with_ns}" != no; then
9315 if test "${opsys}" = darwin; then
9316 NS_IMPL_COCOA=yes
9317 ns_appdir=`pwd`/nextstep/Emacs.app
9318 ns_appbindir=${ns_appdir}/Contents/MacOS
9319 ns_appresdir=${ns_appdir}/Contents/Resources
9320 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9321 elif test -f $GNUSTEP_CONFIG_FILE; then
9322 NS_IMPL_GNUSTEP=yes
9323 ns_appdir=`pwd`/nextstep/Emacs.app
9324 ns_appbindir=${ns_appdir}
9325 ns_appresdir=${ns_appdir}/Resources
9326 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9327 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9328 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9329 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9330 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9331 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9332 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9333 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9334 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9335 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9336 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9337 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9338 LIB_STANDARD=
9339 START_FILES=
9340 TEMACS_LDFLAGS2=
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9342 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9343 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 #include <GNUstepBase/GSConfig.h>
9349 int
9350 main ()
9351 {
9352 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9353 1;
9354 #else
9355 fail;
9356 #endif
9357 ;
9358 return 0;
9359 }
9360 _ACEOF
9361 if ac_fn_c_try_compile "$LINENO"; then :
9362 emacs_cv_objc_exceptions=yes
9363 else
9364 emacs_cv_objc_exceptions=no
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9369 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9370 if test $emacs_cv_objc_exceptions = yes; then
9371
9372 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9373
9374 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9375 fi
9376 fi
9377
9378 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9379
9380 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9381 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9382 HAVE_NS=yes
9383 else
9384 as_fn_error "\`--with-ns' was specified, but the include
9385 files are missing or cannot be compiled." "$LINENO" 5
9386 fi
9387
9388
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 #include <Foundation/NSObjCRuntime.h>
9392 int
9393 main ()
9394 {
9395 NSInteger i;
9396 ;
9397 return 0;
9398 }
9399 _ACEOF
9400 if ac_fn_c_try_compile "$LINENO"; then :
9401 ns_have_nsinteger=yes
9402 else
9403 ns_have_nsinteger=no
9404 fi
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 if test $ns_have_nsinteger = yes; then
9407
9408 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9409
9410 fi
9411 fi
9412
9413
9414 INSTALL_ARCH_INDEP_EXTRA=install-etc
9415 ns_self_contained=no
9416 ns_frag=/dev/null
9417 NS_OBJ=
9418 NS_OBJC_OBJ=
9419 if test "${HAVE_NS}" = yes; then
9420 if test "$with_toolkit_scroll_bars" = "no"; then
9421 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9422 fi
9423
9424 window_system=nextstep
9425 with_xft=no
9426 # set up packaging dirs
9427 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9428 ns_self_contained=yes
9429 prefix=${ns_appresdir}
9430 exec_prefix=${ns_appbindir}
9431 libexecdir="\${ns_appbindir}/libexec"
9432 archlibdir="\${ns_appbindir}/libexec"
9433 docdir="\${ns_appresdir}/etc"
9434 etcdir="\${ns_appresdir}/etc"
9435 infodir="\${ns_appresdir}/info"
9436 mandir="\${ns_appresdir}/man"
9437 lispdir="\${ns_appresdir}/lisp"
9438 leimdir="\${ns_appresdir}/leim"
9439 INSTALL_ARCH_INDEP_EXTRA=
9440 fi
9441 ns_frag=$srcdir/src/ns.mk
9442 NS_OBJ="fontset.o fringe.o image.o"
9443 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9444 fi
9445 CFLAGS="$tmp_CFLAGS"
9446 CPPFLAGS="$tmp_CPPFLAGS"
9447
9448
9449
9450
9451
9452
9453
9454 case "${window_system}" in
9455 x11 )
9456 HAVE_X_WINDOWS=yes
9457 HAVE_X11=yes
9458 case "${with_x_toolkit}" in
9459 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9460 motif ) USE_X_TOOLKIT=MOTIF ;;
9461 gtk ) with_gtk=yes
9462 USE_X_TOOLKIT=none ;;
9463 gtk3 ) with_gtk3=yes
9464 USE_X_TOOLKIT=none ;;
9465 no ) USE_X_TOOLKIT=none ;;
9466 * ) USE_X_TOOLKIT=maybe ;;
9467 esac
9468 ;;
9469 nextstep | none )
9470 HAVE_X_WINDOWS=no
9471 HAVE_X11=no
9472 USE_X_TOOLKIT=none
9473 ;;
9474 esac
9475
9476 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9477 # Extract the first word of "X", so it can be a program name with args.
9478 set dummy X; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 if test -n "$HAVE_XSERVER"; then
9485 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9486 else
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in $PATH
9489 do
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9494 ac_cv_prog_HAVE_XSERVER="true"
9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496 break 2
9497 fi
9498 done
9499 done
9500 IFS=$as_save_IFS
9501
9502 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9503 fi
9504 fi
9505 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9506 if test -n "$HAVE_XSERVER"; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9508 $as_echo "$HAVE_XSERVER" >&6; }
9509 else
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511 $as_echo "no" >&6; }
9512 fi
9513
9514
9515 if test "$HAVE_XSERVER" = true ||
9516 test -n "$DISPLAY" ||
9517 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9518 as_fn_error "You seem to be running X, but no X development libraries
9519 were found. You should install the relevant development files for X
9520 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9521 sure you have development files for image handling, i.e.
9522 tiff, gif, jpeg, png and xpm.
9523 If you are sure you want Emacs compiled without X window support, pass
9524 --without-x
9525 to configure." "$LINENO" 5
9526 fi
9527 fi
9528
9529 ### If we're using X11, we should use the X menu package.
9530 HAVE_MENUS=no
9531 case ${HAVE_X11} in
9532 yes ) HAVE_MENUS=yes ;;
9533 esac
9534
9535 # Does the opsystem file prohibit the use of the GNU malloc?
9536 # Assume not, until told otherwise.
9537 GNU_MALLOC=yes
9538
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9540 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9541 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546 #include <malloc.h>
9547 static void hook (void) {}
9548 int
9549 main ()
9550 {
9551 malloc_set_state (malloc_get_state ());
9552 __after_morecore_hook = hook;
9553 __malloc_initialize_hook = hook;
9554 ;
9555 return 0;
9556 }
9557 _ACEOF
9558 if ac_fn_c_try_link "$LINENO"; then :
9559 emacs_cv_var_doug_lea_malloc=yes
9560 else
9561 emacs_cv_var_doug_lea_malloc=no
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565 fi
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9567 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9568 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9569
9570
9571 system_malloc=no
9572 case "$opsys" in
9573 ## darwin ld insists on the use of malloc routines in the System framework.
9574 darwin|sol2-10) system_malloc=yes ;;
9575 esac
9576
9577 if test "${system_malloc}" = "yes"; then
9578
9579 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9580
9581 GNU_MALLOC=no
9582 GNU_MALLOC_reason="
9583 (The GNU allocators don't work with this system configuration.)"
9584 GMALLOC_OBJ=
9585 VMLIMIT_OBJ=
9586 else
9587 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9588 VMLIMIT_OBJ=vm-limit.o
9589 fi
9590
9591
9592
9593 if test "$doug_lea_malloc" = "yes" ; then
9594 if test "$GNU_MALLOC" = yes ; then
9595 GNU_MALLOC_reason="
9596 (Using Doug Lea's new malloc from the GNU C Library.)"
9597 fi
9598
9599 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9600
9601
9602 ## Use mmap directly for allocating larger buffers.
9603 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9604 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9605 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9606 case "$opsys" in
9607 gnu*) REL_ALLOC=no ;;
9608 esac
9609 fi
9610
9611 if test x"${REL_ALLOC}" = x; then
9612 REL_ALLOC=${GNU_MALLOC}
9613 fi
9614
9615 use_mmap_for_buffers=no
9616 case "$opsys" in
9617 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9618 esac
9619
9620
9621
9622
9623
9624
9625
9626
9627 for ac_func in getpagesize
9628 do :
9629 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9630 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9631 cat >>confdefs.h <<_ACEOF
9632 #define HAVE_GETPAGESIZE 1
9633 _ACEOF
9634
9635 fi
9636 done
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9639 $as_echo_n "checking for working mmap... " >&6; }
9640 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 if test "$cross_compiling" = yes; then :
9644 ac_cv_func_mmap_fixed_mapped=no
9645 else
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 $ac_includes_default
9649 /* malloc might have been renamed as rpl_malloc. */
9650 #undef malloc
9651
9652 /* Thanks to Mike Haertel and Jim Avera for this test.
9653 Here is a matrix of mmap possibilities:
9654 mmap private not fixed
9655 mmap private fixed at somewhere currently unmapped
9656 mmap private fixed at somewhere already mapped
9657 mmap shared not fixed
9658 mmap shared fixed at somewhere currently unmapped
9659 mmap shared fixed at somewhere already mapped
9660 For private mappings, we should verify that changes cannot be read()
9661 back from the file, nor mmap's back from the file at a different
9662 address. (There have been systems where private was not correctly
9663 implemented like the infamous i386 svr4.0, and systems where the
9664 VM page cache was not coherent with the file system buffer cache
9665 like early versions of FreeBSD and possibly contemporary NetBSD.)
9666 For shared mappings, we should conversely verify that changes get
9667 propagated back to all the places they're supposed to be.
9668
9669 Grep wants private fixed already mapped.
9670 The main things grep needs to know about mmap are:
9671 * does it exist and is it safe to write into the mmap'd area
9672 * how to use it (BSD variants) */
9673
9674 #include <fcntl.h>
9675 #include <sys/mman.h>
9676
9677 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9678 char *malloc ();
9679 #endif
9680
9681 /* This mess was copied from the GNU getpagesize.h. */
9682 #ifndef HAVE_GETPAGESIZE
9683 # ifdef _SC_PAGESIZE
9684 # define getpagesize() sysconf(_SC_PAGESIZE)
9685 # else /* no _SC_PAGESIZE */
9686 # ifdef HAVE_SYS_PARAM_H
9687 # include <sys/param.h>
9688 # ifdef EXEC_PAGESIZE
9689 # define getpagesize() EXEC_PAGESIZE
9690 # else /* no EXEC_PAGESIZE */
9691 # ifdef NBPG
9692 # define getpagesize() NBPG * CLSIZE
9693 # ifndef CLSIZE
9694 # define CLSIZE 1
9695 # endif /* no CLSIZE */
9696 # else /* no NBPG */
9697 # ifdef NBPC
9698 # define getpagesize() NBPC
9699 # else /* no NBPC */
9700 # ifdef PAGESIZE
9701 # define getpagesize() PAGESIZE
9702 # endif /* PAGESIZE */
9703 # endif /* no NBPC */
9704 # endif /* no NBPG */
9705 # endif /* no EXEC_PAGESIZE */
9706 # else /* no HAVE_SYS_PARAM_H */
9707 # define getpagesize() 8192 /* punt totally */
9708 # endif /* no HAVE_SYS_PARAM_H */
9709 # endif /* no _SC_PAGESIZE */
9710
9711 #endif /* no HAVE_GETPAGESIZE */
9712
9713 int
9714 main ()
9715 {
9716 char *data, *data2, *data3;
9717 const char *cdata2;
9718 int i, pagesize;
9719 int fd, fd2;
9720
9721 pagesize = getpagesize ();
9722
9723 /* First, make a file with some known garbage in it. */
9724 data = (char *) malloc (pagesize);
9725 if (!data)
9726 return 1;
9727 for (i = 0; i < pagesize; ++i)
9728 *(data + i) = rand ();
9729 umask (0);
9730 fd = creat ("conftest.mmap", 0600);
9731 if (fd < 0)
9732 return 2;
9733 if (write (fd, data, pagesize) != pagesize)
9734 return 3;
9735 close (fd);
9736
9737 /* Next, check that the tail of a page is zero-filled. File must have
9738 non-zero length, otherwise we risk SIGBUS for entire page. */
9739 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9740 if (fd2 < 0)
9741 return 4;
9742 cdata2 = "";
9743 if (write (fd2, cdata2, 1) != 1)
9744 return 5;
9745 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9746 if (data2 == MAP_FAILED)
9747 return 6;
9748 for (i = 0; i < pagesize; ++i)
9749 if (*(data2 + i))
9750 return 7;
9751 close (fd2);
9752 if (munmap (data2, pagesize))
9753 return 8;
9754
9755 /* Next, try to mmap the file at a fixed address which already has
9756 something else allocated at it. If we can, also make sure that
9757 we see the same garbage. */
9758 fd = open ("conftest.mmap", O_RDWR);
9759 if (fd < 0)
9760 return 9;
9761 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9762 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9763 return 10;
9764 for (i = 0; i < pagesize; ++i)
9765 if (*(data + i) != *(data2 + i))
9766 return 11;
9767
9768 /* Finally, make sure that changes to the mapped area do not
9769 percolate back to the file as seen by read(). (This is a bug on
9770 some variants of i386 svr4.0.) */
9771 for (i = 0; i < pagesize; ++i)
9772 *(data2 + i) = *(data2 + i) + 1;
9773 data3 = (char *) malloc (pagesize);
9774 if (!data3)
9775 return 12;
9776 if (read (fd, data3, pagesize) != pagesize)
9777 return 13;
9778 for (i = 0; i < pagesize; ++i)
9779 if (*(data + i) != *(data3 + i))
9780 return 14;
9781 close (fd);
9782 return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_run "$LINENO"; then :
9786 ac_cv_func_mmap_fixed_mapped=yes
9787 else
9788 ac_cv_func_mmap_fixed_mapped=no
9789 fi
9790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9791 conftest.$ac_objext conftest.beam conftest.$ac_ext
9792 fi
9793
9794 fi
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9796 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9797 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9798
9799 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9800
9801 fi
9802 rm -f conftest.mmap conftest.txt
9803
9804 if test $use_mmap_for_buffers = yes; then
9805
9806 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9807
9808 REL_ALLOC=no
9809 fi
9810
9811 LIBS="$LIBS_SYSTEM $LIBS"
9812
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9814 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9815 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 ac_check_lib_save_LIBS=$LIBS
9819 LIBS="-ldnet $LIBS"
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822
9823 /* Override any GCC internal prototype to avoid an error.
9824 Use char because int might match the return type of a GCC
9825 builtin and then its argument prototype would still apply. */
9826 #ifdef __cplusplus
9827 extern "C"
9828 #endif
9829 char dnet_ntoa ();
9830 int
9831 main ()
9832 {
9833 return dnet_ntoa ();
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"; then :
9839 ac_cv_lib_dnet_dnet_ntoa=yes
9840 else
9841 ac_cv_lib_dnet_dnet_ntoa=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 LIBS=$ac_check_lib_save_LIBS
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9848 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9849 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9850 cat >>confdefs.h <<_ACEOF
9851 #define HAVE_LIBDNET 1
9852 _ACEOF
9853
9854 LIBS="-ldnet $LIBS"
9855
9856 fi
9857
9858
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9860 $as_echo_n "checking for main in -lXbsd... " >&6; }
9861 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 ac_check_lib_save_LIBS=$LIBS
9865 LIBS="-lXbsd $LIBS"
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868
9869
9870 int
9871 main ()
9872 {
9873 return main ();
9874 ;
9875 return 0;
9876 }
9877 _ACEOF
9878 if ac_fn_c_try_link "$LINENO"; then :
9879 ac_cv_lib_Xbsd_main=yes
9880 else
9881 ac_cv_lib_Xbsd_main=no
9882 fi
9883 rm -f core conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9886 fi
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9888 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9889 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9890 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9891 fi
9892
9893
9894 LIB_PTHREAD=
9895
9896
9897
9898 if test "$ac_cv_header_pthread_h"; then
9899 if test "$GMALLOC_OBJ" = gmalloc.o; then
9900 emacs_pthread_function=pthread_atfork
9901 else
9902 emacs_pthread_function=pthread_self
9903 fi
9904 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9906 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9907 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 ac_check_lib_save_LIBS=$LIBS
9911 LIBS="-lpthread $LIBS"
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914
9915 /* Override any GCC internal prototype to avoid an error.
9916 Use char because int might match the return type of a GCC
9917 builtin and then its argument prototype would still apply. */
9918 #ifdef __cplusplus
9919 extern "C"
9920 #endif
9921 char $emacs_pthread_function ();
9922 int
9923 main ()
9924 {
9925 return $emacs_pthread_function ();
9926 ;
9927 return 0;
9928 }
9929 _ACEOF
9930 if ac_fn_c_try_link "$LINENO"; then :
9931 eval "$as_ac_Lib=yes"
9932 else
9933 eval "$as_ac_Lib=no"
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937 LIBS=$ac_check_lib_save_LIBS
9938 fi
9939 eval ac_res=\$$as_ac_Lib
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9941 $as_echo "$ac_res" >&6; }
9942 eval as_val=\$$as_ac_Lib
9943 if test "x$as_val" = x""yes; then :
9944 HAVE_PTHREAD=yes
9945 fi
9946
9947 fi
9948 if test "$HAVE_PTHREAD" = yes; then
9949 case "${canonical}" in
9950 *-hpux*) ;;
9951 *) LIB_PTHREAD="-lpthread"
9952 LIBS="$LIB_PTHREAD $LIBS" ;;
9953 esac
9954
9955 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9956
9957 fi
9958
9959
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9961 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9962 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9963 $as_echo_n "(cached) " >&6
9964 else
9965 ac_check_lib_save_LIBS=$LIBS
9966 LIBS="-lpthreads $LIBS"
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9969
9970 /* Override any GCC internal prototype to avoid an error.
9971 Use char because int might match the return type of a GCC
9972 builtin and then its argument prototype would still apply. */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 char cma_open ();
9977 int
9978 main ()
9979 {
9980 return cma_open ();
9981 ;
9982 return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_link "$LINENO"; then :
9986 ac_cv_lib_pthreads_cma_open=yes
9987 else
9988 ac_cv_lib_pthreads_cma_open=no
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9993 fi
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9995 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9996 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9997 cat >>confdefs.h <<_ACEOF
9998 #define HAVE_LIBPTHREADS 1
9999 _ACEOF
10000
10001 LIBS="-lpthreads $LIBS"
10002
10003 fi
10004
10005
10006 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10007 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10008 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10009 ## added to LIBS in configure would never contain the pthreads part,
10010 ## but the value used in Makefiles might. FIXME?
10011 ##
10012 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10013 ## be harmless on older versions of X where it happens to exist.
10014 test "$opsys" = "aix4-2" && \
10015 test $ac_cv_lib_pthreads_cma_open = yes && \
10016 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10017
10018
10019 case ${host_os} in
10020 aix*)
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10022 $as_echo_n "checking for -bbigtoc option... " >&6; }
10023 if test "${gdb_cv_bigtoc+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026
10027 case $GCC in
10028 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10029 *) gdb_cv_bigtoc=-bbigtoc ;;
10030 esac
10031
10032 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10035
10036 int
10037 main ()
10038 {
10039 int i;
10040 ;
10041 return 0;
10042 }
10043 _ACEOF
10044 if ac_fn_c_try_link "$LINENO"; then :
10045
10046 else
10047 gdb_cv_bigtoc=
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10054 $as_echo "$gdb_cv_bigtoc" >&6; }
10055 ;;
10056 esac
10057
10058 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10059 # used for the tests that follow. We set them back to REAL_CFLAGS and
10060 # REAL_CPPFLAGS later on.
10061
10062 REAL_CFLAGS="$CFLAGS"
10063 REAL_CPPFLAGS="$CPPFLAGS"
10064
10065 if test "${HAVE_X11}" = "yes"; then
10066 DEFS="$C_SWITCH_X_SITE $DEFS"
10067 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10068 LIBS="-lX11 $LIBS"
10069 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10070 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10071
10072 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10073 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10074 # but it's more convenient here to set LD_RUN_PATH since this
10075 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10076 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10077 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10078 export LD_RUN_PATH
10079 fi
10080
10081 if test "${opsys}" = "gnu-linux"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10083 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086
10087 int
10088 main ()
10089 {
10090 XOpenDisplay ("foo");
10091 ;
10092 return 0;
10093 }
10094 _ACEOF
10095 if ac_fn_c_try_link "$LINENO"; then :
10096 xgnu_linux_first_failure=no
10097 else
10098 xgnu_linux_first_failure=yes
10099 fi
10100 rm -f core conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102 if test "${xgnu_linux_first_failure}" = "yes"; then
10103 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10104 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10105 OLD_CPPFLAGS="$CPPFLAGS"
10106 OLD_LIBS="$LIBS"
10107 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10108 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10109 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10110 LIBS="$LIBS -b i486-linuxaout"
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113
10114 int
10115 main ()
10116 {
10117 XOpenDisplay ("foo");
10118 ;
10119 return 0;
10120 }
10121 _ACEOF
10122 if ac_fn_c_try_link "$LINENO"; then :
10123 xgnu_linux_second_failure=no
10124 else
10125 xgnu_linux_second_failure=yes
10126 fi
10127 rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10129 if test "${xgnu_linux_second_failure}" = "yes"; then
10130 # If we get the same failure with -b, there is no use adding -b.
10131 # So take it out. This plays safe.
10132 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10133 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10134 CPPFLAGS="$OLD_CPPFLAGS"
10135 LIBS="$OLD_LIBS"
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 else
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10140 $as_echo "yes" >&6; }
10141 fi
10142 else
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10145 fi
10146 fi
10147
10148 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10149 # header files included from there.
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10151 $as_echo_n "checking for Xkb... " >&6; }
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10154 #include <X11/Xlib.h>
10155 #include <X11/XKBlib.h>
10156 int
10157 main ()
10158 {
10159 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10160 ;
10161 return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_link "$LINENO"; then :
10165 emacs_xkb=yes
10166 else
10167 emacs_xkb=no
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10172 $as_echo "$emacs_xkb" >&6; }
10173 if test $emacs_xkb = yes; then
10174
10175 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10176
10177 fi
10178
10179 for ac_func in XrmSetDatabase XScreenResourceString \
10180 XScreenNumberOfScreen
10181 do :
10182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10184 eval as_val=\$$as_ac_var
10185 if test "x$as_val" = x""yes; then :
10186 cat >>confdefs.h <<_ACEOF
10187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10188 _ACEOF
10189
10190 fi
10191 done
10192
10193 fi
10194
10195 if test "${window_system}" = "x11"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10197 $as_echo_n "checking X11 version 6... " >&6; }
10198 if test "${emacs_cv_x11_version_6+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 #include <X11/Xlib.h>
10204 int
10205 main ()
10206 {
10207 #if XlibSpecificationRelease < 6
10208 fail;
10209 #endif
10210
10211 ;
10212 return 0;
10213 }
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"; then :
10216 emacs_cv_x11_version_6=yes
10217 else
10218 emacs_cv_x11_version_6=no
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 fi
10223
10224 if test $emacs_cv_x11_version_6 = yes; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10226 $as_echo "6 or newer" >&6; }
10227
10228 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10229
10230
10231 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10232
10233 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10234 ## XIM support.
10235 case "$opsys" in
10236 sol2-*) : ;;
10237 *)
10238 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10239
10240 ;;
10241 esac
10242 else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10244 $as_echo "before 6" >&6; }
10245 fi
10246 fi
10247
10248
10249 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10250 HAVE_RSVG=no
10251 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10252 if test "${with_rsvg}" != "no"; then
10253 RSVG_REQUIRED=2.11.0
10254 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10255
10256
10257 succeeded=no
10258
10259 if test "$PKG_CONFIG" = "no" ; then
10260 :
10261 else
10262 PKG_CONFIG_MIN_VERSION=0.9.0
10263 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10265 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10266
10267 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10268 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10269 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10270 edit_cflags="
10271 s,///*,/,g
10272 s/^/ /
10273 s/ -I/ $isystem/g
10274 s/^ //
10275 "
10276 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10277 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10279 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10280 succeeded=yes
10281 else
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 $as_echo "no" >&6; }
10284 RSVG_CFLAGS=""
10285 RSVG_LIBS=""
10286 ## If we have a custom action on failure, don't print errors, but
10287 ## do set a variable so people can do so.
10288 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10289
10290 fi
10291
10292
10293
10294 else
10295 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10296 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10297 fi
10298 fi
10299
10300 if test $succeeded = yes; then
10301 HAVE_RSVG=yes
10302 else
10303 :
10304 fi
10305
10306
10307
10308
10309 if test $HAVE_RSVG = yes; then
10310
10311 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10312
10313 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10314 LIBS="$RSVG_LIBS $LIBS"
10315 fi
10316 fi
10317 fi
10318
10319 HAVE_IMAGEMAGICK=no
10320 if test "${HAVE_X11}" = "yes"; then
10321 if test "${with_imagemagick}" != "no"; then
10322 ## 6.2.8 is the earliest version known to work, but earlier versions
10323 ## might work - let us know if you find one.
10324 ## 6.0.7 does not work. See bug#7955.
10325 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10326
10327 succeeded=no
10328
10329 if test "$PKG_CONFIG" = "no" ; then
10330 :
10331 else
10332 PKG_CONFIG_MIN_VERSION=0.9.0
10333 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10335 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10336
10337 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10338 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10339 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10340 edit_cflags="
10341 s,///*,/,g
10342 s/^/ /
10343 s/ -I/ $isystem/g
10344 s/^ //
10345 "
10346 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10347 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10349 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10350 succeeded=yes
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10354 IMAGEMAGICK_CFLAGS=""
10355 IMAGEMAGICK_LIBS=""
10356 ## If we have a custom action on failure, don't print errors, but
10357 ## do set a variable so people can do so.
10358 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10359
10360 fi
10361
10362
10363
10364 else
10365 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10366 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10367 fi
10368 fi
10369
10370 if test $succeeded = yes; then
10371 HAVE_IMAGEMAGICK=yes
10372 else
10373 :
10374 fi
10375
10376
10377
10378
10379 if test $HAVE_IMAGEMAGICK = yes; then
10380
10381 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10382
10383 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10384 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10385 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10386 do :
10387 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10388 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10389 eval as_val=\$$as_ac_var
10390 if test "x$as_val" = x""yes; then :
10391 cat >>confdefs.h <<_ACEOF
10392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10393 _ACEOF
10394
10395 fi
10396 done
10397
10398 fi
10399 fi
10400 fi
10401
10402
10403 HAVE_GTK=no
10404 GTK_OBJ=
10405 if test "${with_gtk3}" = "yes"; then
10406 GLIB_REQUIRED=2.28
10407 GTK_REQUIRED=3.0
10408 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10409
10410
10411 succeeded=no
10412
10413 if test "$PKG_CONFIG" = "no" ; then
10414 pkg_check_gtk=no
10415 else
10416 PKG_CONFIG_MIN_VERSION=0.9.0
10417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10419 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10420
10421 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10422 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10423 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10424 edit_cflags="
10425 s,///*,/,g
10426 s/^/ /
10427 s/ -I/ $isystem/g
10428 s/^ //
10429 "
10430 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10431 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10433 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10434 succeeded=yes
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438 GTK_CFLAGS=""
10439 GTK_LIBS=""
10440 ## If we have a custom action on failure, don't print errors, but
10441 ## do set a variable so people can do so.
10442 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10443
10444 fi
10445
10446
10447
10448 else
10449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10451 fi
10452 fi
10453
10454 if test $succeeded = yes; then
10455 pkg_check_gtk=yes
10456 else
10457 pkg_check_gtk=no
10458 fi
10459
10460 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10461 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10462 fi
10463
10464 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10465
10466 GTK_OBJ=emacsgtkfixed.o
10467 fi
10468
10469 if test "$pkg_check_gtk" != "yes"; then
10470 HAVE_GTK=no
10471 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10472 GLIB_REQUIRED=2.10
10473 GTK_REQUIRED=2.10
10474 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10475
10476
10477 succeeded=no
10478
10479 if test "$PKG_CONFIG" = "no" ; then
10480 pkg_check_gtk=no
10481 else
10482 PKG_CONFIG_MIN_VERSION=0.9.0
10483 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10485 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10486
10487 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10488 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10489 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10490 edit_cflags="
10491 s,///*,/,g
10492 s/^/ /
10493 s/ -I/ $isystem/g
10494 s/^ //
10495 "
10496 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10497 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10499 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10500 succeeded=yes
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10504 GTK_CFLAGS=""
10505 GTK_LIBS=""
10506 ## If we have a custom action on failure, don't print errors, but
10507 ## do set a variable so people can do so.
10508 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10509
10510 fi
10511
10512
10513
10514 else
10515 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10516 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10517 fi
10518 fi
10519
10520 if test $succeeded = yes; then
10521 pkg_check_gtk=yes
10522 else
10523 pkg_check_gtk=no
10524 fi
10525
10526 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10527 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10528 fi
10529 fi
10530 fi
10531
10532 if test x"$pkg_check_gtk" = xyes; then
10533
10534
10535
10536 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10537 CFLAGS="$CFLAGS $GTK_CFLAGS"
10538 LIBS="$GTK_LIBS $LIBS"
10539 GTK_COMPILES=no
10540 for ac_func in gtk_main
10541 do :
10542 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10543 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_GTK_MAIN 1
10546 _ACEOF
10547 GTK_COMPILES=yes
10548 fi
10549 done
10550
10551 if test "${GTK_COMPILES}" != "yes"; then
10552 if test "$USE_X_TOOLKIT" != "maybe"; then
10553 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10554 fi
10555 else
10556 HAVE_GTK=yes
10557
10558 $as_echo "#define USE_GTK 1" >>confdefs.h
10559
10560 GTK_OBJ="gtkutil.o $GTK_OBJ"
10561 USE_X_TOOLKIT=none
10562 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10563 :
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10566 closing open displays. This is no problem if you just use
10567 one display, but if you use more than one and close one of them
10568 Emacs may crash." >&5
10569 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10570 closing open displays. This is no problem if you just use
10571 one display, but if you use more than one and close one of them
10572 Emacs may crash." >&2;}
10573 sleep 3
10574 fi
10575 fi
10576
10577 fi
10578
10579
10580
10581 if test "${HAVE_GTK}" = "yes"; then
10582
10583 if test "$with_toolkit_scroll_bars" != no; then
10584 with_toolkit_scroll_bars=yes
10585 fi
10586
10587 HAVE_GTK_FILE_SELECTION=no
10588 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10589 #include <gtk/gtk.h>
10590 "
10591 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10592 HAVE_GTK_FILE_SELECTION=yes
10593 else
10594 HAVE_GTK_FILE_SELECTION=no
10595 fi
10596
10597 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10598 for ac_func in gtk_file_selection_new
10599 do :
10600 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10601 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10602 cat >>confdefs.h <<_ACEOF
10603 #define HAVE_GTK_FILE_SELECTION_NEW 1
10604 _ACEOF
10605
10606 fi
10607 done
10608
10609 fi
10610
10611
10612 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10613 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10614 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10615 gtk_orientable_set_orientation \
10616 gtk_window_set_has_resize_grip
10617 do :
10618 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10619 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10620 eval as_val=\$$as_ac_var
10621 if test "x$as_val" = x""yes; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10624 _ACEOF
10625
10626 fi
10627 done
10628
10629 fi
10630
10631 HAVE_DBUS=no
10632 DBUS_OBJ=
10633 if test "${with_dbus}" = "yes"; then
10634
10635 succeeded=no
10636
10637 if test "$PKG_CONFIG" = "no" ; then
10638 HAVE_DBUS=no
10639 else
10640 PKG_CONFIG_MIN_VERSION=0.9.0
10641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10643 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10644
10645 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10646 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10647 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10648 edit_cflags="
10649 s,///*,/,g
10650 s/^/ /
10651 s/ -I/ $isystem/g
10652 s/^ //
10653 "
10654 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10655 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10657 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10658 succeeded=yes
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10662 DBUS_CFLAGS=""
10663 DBUS_LIBS=""
10664 ## If we have a custom action on failure, don't print errors, but
10665 ## do set a variable so people can do so.
10666 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10667
10668 fi
10669
10670
10671
10672 else
10673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10675 fi
10676 fi
10677
10678 if test $succeeded = yes; then
10679 HAVE_DBUS=yes
10680 else
10681 HAVE_DBUS=no
10682 fi
10683
10684 if test "$HAVE_DBUS" = yes; then
10685 LIBS="$LIBS $DBUS_LIBS"
10686
10687 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10688
10689 for ac_func in dbus_watch_get_unix_fd \
10690 dbus_type_is_valid \
10691 dbus_validate_bus_name \
10692 dbus_validate_path \
10693 dbus_validate_interface \
10694 dbus_validate_member
10695 do :
10696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10698 eval as_val=\$$as_ac_var
10699 if test "x$as_val" = x""yes; then :
10700 cat >>confdefs.h <<_ACEOF
10701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10702 _ACEOF
10703
10704 fi
10705 done
10706
10707 DBUS_OBJ=dbusbind.o
10708 fi
10709 fi
10710
10711
10712 HAVE_GSETTINGS=no
10713 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10714
10715 succeeded=no
10716
10717 if test "$PKG_CONFIG" = "no" ; then
10718 HAVE_GSETTINGS=no
10719 else
10720 PKG_CONFIG_MIN_VERSION=0.9.0
10721 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10723 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10724
10725 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10726 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10727 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10728 edit_cflags="
10729 s,///*,/,g
10730 s/^/ /
10731 s/ -I/ $isystem/g
10732 s/^ //
10733 "
10734 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10735 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10737 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10738 succeeded=yes
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10742 GSETTINGS_CFLAGS=""
10743 GSETTINGS_LIBS=""
10744 ## If we have a custom action on failure, don't print errors, but
10745 ## do set a variable so people can do so.
10746 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10747
10748 fi
10749
10750
10751
10752 else
10753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10755 fi
10756 fi
10757
10758 if test $succeeded = yes; then
10759 HAVE_GSETTINGS=yes
10760 else
10761 HAVE_GSETTINGS=no
10762 fi
10763
10764 if test "$HAVE_GSETTINGS" = "yes"; then
10765
10766 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10767
10768 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10769 SETTINGS_LIBS="$GSETTINGS_LIBS"
10770 fi
10771 fi
10772
10773 HAVE_GCONF=no
10774 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10775
10776 succeeded=no
10777
10778 if test "$PKG_CONFIG" = "no" ; then
10779 HAVE_GCONF=no
10780 else
10781 PKG_CONFIG_MIN_VERSION=0.9.0
10782 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10784 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10785
10786 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10787 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10788 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10789 edit_cflags="
10790 s,///*,/,g
10791 s/^/ /
10792 s/ -I/ $isystem/g
10793 s/^ //
10794 "
10795 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10796 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10798 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10799 succeeded=yes
10800 else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10803 GCONF_CFLAGS=""
10804 GCONF_LIBS=""
10805 ## If we have a custom action on failure, don't print errors, but
10806 ## do set a variable so people can do so.
10807 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10808
10809 fi
10810
10811
10812
10813 else
10814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10816 fi
10817 fi
10818
10819 if test $succeeded = yes; then
10820 HAVE_GCONF=yes
10821 else
10822 HAVE_GCONF=no
10823 fi
10824
10825 if test "$HAVE_GCONF" = yes; then
10826
10827 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10828
10829 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10830 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10831 fi
10832 fi
10833
10834 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10835 SAVE_CFLAGS="$CFLAGS"
10836 SAVE_LIBS="$LIBS"
10837 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
10838 LIBS="$SETTINGS_LIBS $LIBS"
10839 for ac_func in g_type_init
10840 do :
10841 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10842 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10843 cat >>confdefs.h <<_ACEOF
10844 #define HAVE_G_TYPE_INIT 1
10845 _ACEOF
10846
10847 fi
10848 done
10849
10850 CFLAGS="$SAVE_CFLAGS"
10851 LIBS="$SAVE_LIBS"
10852 fi
10853
10854
10855
10856
10857 HAVE_LIBSELINUX=no
10858 LIBSELINUX_LIBS=
10859 if test "${with_selinux}" = "yes"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10861 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10862 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 ac_check_lib_save_LIBS=$LIBS
10866 LIBS="-lselinux $LIBS"
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10869
10870 /* Override any GCC internal prototype to avoid an error.
10871 Use char because int might match the return type of a GCC
10872 builtin and then its argument prototype would still apply. */
10873 #ifdef __cplusplus
10874 extern "C"
10875 #endif
10876 char lgetfilecon ();
10877 int
10878 main ()
10879 {
10880 return lgetfilecon ();
10881 ;
10882 return 0;
10883 }
10884 _ACEOF
10885 if ac_fn_c_try_link "$LINENO"; then :
10886 ac_cv_lib_selinux_lgetfilecon=yes
10887 else
10888 ac_cv_lib_selinux_lgetfilecon=no
10889 fi
10890 rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10893 fi
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10895 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10896 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10897 HAVE_LIBSELINUX=yes
10898 else
10899 HAVE_LIBSELINUX=no
10900 fi
10901
10902 if test "$HAVE_LIBSELINUX" = yes; then
10903
10904 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10905
10906 LIBSELINUX_LIBS=-lselinux
10907 fi
10908 fi
10909
10910
10911 HAVE_GNUTLS=no
10912 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
10913 if test "${with_gnutls}" = "yes" ; then
10914
10915 succeeded=no
10916
10917 if test "$PKG_CONFIG" = "no" ; then
10918 HAVE_GNUTLS=no
10919 else
10920 PKG_CONFIG_MIN_VERSION=0.9.0
10921 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
10923 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
10924
10925 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
10926 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
10927 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
10928 edit_cflags="
10929 s,///*,/,g
10930 s/^/ /
10931 s/ -I/ $isystem/g
10932 s/^ //
10933 "
10934 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
10935 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
10937 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
10938 succeeded=yes
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941 $as_echo "no" >&6; }
10942 LIBGNUTLS_CFLAGS=""
10943 LIBGNUTLS_LIBS=""
10944 ## If we have a custom action on failure, don't print errors, but
10945 ## do set a variable so people can do so.
10946 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
10947
10948 fi
10949
10950
10951
10952 else
10953 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10954 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10955 fi
10956 fi
10957
10958 if test $succeeded = yes; then
10959 HAVE_GNUTLS=yes
10960 else
10961 HAVE_GNUTLS=no
10962 fi
10963
10964 if test "${HAVE_GNUTLS}" = "yes"; then
10965
10966 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10967
10968 fi
10969
10970 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
10971 LIBS="$LIBGNUTLS_LIBS $LIBS"
10972 for ac_func in gnutls_certificate_set_verify_function
10973 do :
10974 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
10975 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
10978 _ACEOF
10979 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
10980 fi
10981 done
10982
10983
10984 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
10985
10986 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
10987
10988 fi
10989 fi
10990
10991
10992
10993
10994 HAVE_XAW3D=no
10995 LUCID_LIBW=
10996 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10997 if test "$with_xaw3d" != no; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10999 $as_echo_n "checking for xaw3d... " >&6; }
11000 if test "${emacs_cv_xaw3d+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005
11006 #include <X11/Intrinsic.h>
11007 #include <X11/Xaw3d/Simple.h>
11008 int
11009 main ()
11010 {
11011
11012 ;
11013 return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11018 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11019 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 ac_check_lib_save_LIBS=$LIBS
11023 LIBS="-lXaw3d $LIBS"
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11026
11027 /* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 char XawScrollbarSetThumb ();
11034 int
11035 main ()
11036 {
11037 return XawScrollbarSetThumb ();
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 if ac_fn_c_try_link "$LINENO"; then :
11043 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11044 else
11045 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11046 fi
11047 rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11050 fi
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11052 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11053 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11054 emacs_cv_xaw3d=yes
11055 else
11056 emacs_cv_xaw3d=no
11057 fi
11058
11059 else
11060 emacs_cv_xaw3d=no
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 fi
11065
11066 else
11067 emacs_cv_xaw3d=no
11068 fi
11069 if test $emacs_cv_xaw3d = yes; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11071 $as_echo "yes; using Lucid toolkit" >&6; }
11072 USE_X_TOOLKIT=LUCID
11073 HAVE_XAW3D=yes
11074 LUCID_LIBW=-lXaw3d
11075
11076 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11077
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11082 $as_echo_n "checking for libXaw... " >&6; }
11083 if test "${emacs_cv_xaw+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11088
11089 #include <X11/Intrinsic.h>
11090 #include <X11/Xaw/Simple.h>
11091 int
11092 main ()
11093 {
11094
11095 ;
11096 return 0;
11097 }
11098 _ACEOF
11099 if ac_fn_c_try_link "$LINENO"; then :
11100 emacs_cv_xaw=yes
11101 else
11102 emacs_cv_xaw=no
11103 fi
11104 rm -f core conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106 fi
11107
11108 if test $emacs_cv_xaw = yes; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11110 $as_echo "yes; using Lucid toolkit" >&6; }
11111 USE_X_TOOLKIT=LUCID
11112 LUCID_LIBW=-lXaw
11113 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11114 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11115 else
11116 as_fn_error "No X toolkit could be found.
11117 If you are sure you want Emacs compiled without an X toolkit, pass
11118 --with-x-toolkit=no
11119 to configure. Otherwise, install the development libraries for the toolkit
11120 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11121 fi
11122 fi
11123 fi
11124
11125 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11126
11127 LIBXTR6=
11128 if test "${USE_X_TOOLKIT}" != "none"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11130 $as_echo_n "checking X11 toolkit version... " >&6; }
11131 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136 #include <X11/Intrinsic.h>
11137 int
11138 main ()
11139 {
11140 #if XtSpecificationRelease < 6
11141 fail;
11142 #endif
11143
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 if ac_fn_c_try_link "$LINENO"; then :
11149 emacs_cv_x11_toolkit_version_6=yes
11150 else
11151 emacs_cv_x11_toolkit_version_6=no
11152 fi
11153 rm -f core conftest.err conftest.$ac_objext \
11154 conftest$ac_exeext conftest.$ac_ext
11155 fi
11156
11157 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11158 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11160 $as_echo "6 or newer" >&6; }
11161
11162 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11163
11164 LIBXTR6="-lSM -lICE"
11165 case "$opsys" in
11166 ## Use libw.a along with X11R6 Xt.
11167 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11168 esac
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11171 $as_echo "before 6" >&6; }
11172 fi
11173
11174 OLDLIBS="$LIBS"
11175 if test x$HAVE_X11XTR6 = xyes; then
11176 LIBS="-lXt -lSM -lICE $LIBS"
11177 else
11178 LIBS="-lXt $LIBS"
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11181 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11182 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 ac_check_lib_save_LIBS=$LIBS
11186 LIBS="-lXmu $LIBS"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189
11190 /* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 char XmuConvertStandardSelection ();
11197 int
11198 main ()
11199 {
11200 return XmuConvertStandardSelection ();
11201 ;
11202 return 0;
11203 }
11204 _ACEOF
11205 if ac_fn_c_try_link "$LINENO"; then :
11206 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11207 else
11208 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11209 fi
11210 rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11212 LIBS=$ac_check_lib_save_LIBS
11213 fi
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11215 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11216 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11217 cat >>confdefs.h <<_ACEOF
11218 #define HAVE_LIBXMU 1
11219 _ACEOF
11220
11221 LIBS="-lXmu $LIBS"
11222
11223 fi
11224
11225 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11226 fi
11227
11228
11229 LIBXMU=-lXmu
11230 case $opsys in
11231 ## These systems don't supply Xmu.
11232 hpux* | aix4-2 )
11233 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11234 ;;
11235 esac
11236
11237
11238 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11239 if test "${HAVE_X11}" = "yes"; then
11240 if test "${USE_X_TOOLKIT}" != "none"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11242 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11243 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 ac_check_lib_save_LIBS=$LIBS
11247 LIBS="-lXext $LIBS"
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250
11251 /* Override any GCC internal prototype to avoid an error.
11252 Use char because int might match the return type of a GCC
11253 builtin and then its argument prototype would still apply. */
11254 #ifdef __cplusplus
11255 extern "C"
11256 #endif
11257 char XShapeQueryExtension ();
11258 int
11259 main ()
11260 {
11261 return XShapeQueryExtension ();
11262 ;
11263 return 0;
11264 }
11265 _ACEOF
11266 if ac_fn_c_try_link "$LINENO"; then :
11267 ac_cv_lib_Xext_XShapeQueryExtension=yes
11268 else
11269 ac_cv_lib_Xext_XShapeQueryExtension=no
11270 fi
11271 rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11273 LIBS=$ac_check_lib_save_LIBS
11274 fi
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11276 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11277 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11278 cat >>confdefs.h <<_ACEOF
11279 #define HAVE_LIBXEXT 1
11280 _ACEOF
11281
11282 LIBS="-lXext $LIBS"
11283
11284 fi
11285
11286 fi
11287 fi
11288
11289 LIBXP=
11290 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11292 $as_echo_n "checking for Motif version 2.1... " >&6; }
11293 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11298 #include <Xm/Xm.h>
11299 int
11300 main ()
11301 {
11302 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11303 int x = 5;
11304 #else
11305 Motif version prior to 2.1.
11306 #endif
11307 ;
11308 return 0;
11309 }
11310 _ACEOF
11311 if ac_fn_c_try_compile "$LINENO"; then :
11312 emacs_cv_motif_version_2_1=yes
11313 else
11314 emacs_cv_motif_version_2_1=no
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11319 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11320 if test $emacs_cv_motif_version_2_1 = yes; then
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11322 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11323 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326 ac_check_lib_save_LIBS=$LIBS
11327 LIBS="-lXp $LIBS"
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330
11331 /* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11334 #ifdef __cplusplus
11335 extern "C"
11336 #endif
11337 char XpCreateContext ();
11338 int
11339 main ()
11340 {
11341 return XpCreateContext ();
11342 ;
11343 return 0;
11344 }
11345 _ACEOF
11346 if ac_fn_c_try_link "$LINENO"; then :
11347 ac_cv_lib_Xp_XpCreateContext=yes
11348 else
11349 ac_cv_lib_Xp_XpCreateContext=no
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext \
11352 conftest$ac_exeext conftest.$ac_ext
11353 LIBS=$ac_check_lib_save_LIBS
11354 fi
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11356 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11357 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11358 LIBXP=-lXp
11359 fi
11360
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11363 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11364 if test "${emacs_cv_lesstif+set}" = set; then :
11365 $as_echo_n "(cached) " >&6
11366 else
11367 # We put this in CFLAGS temporarily to precede other -I options
11368 # that might be in CFLAGS temporarily.
11369 # We put this in CPPFLAGS where it precedes the other -I options.
11370 OLD_CPPFLAGS=$CPPFLAGS
11371 OLD_CFLAGS=$CFLAGS
11372 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11373 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11377 int
11378 main ()
11379 {
11380 int x = 5;
11381 ;
11382 return 0;
11383 }
11384 _ACEOF
11385 if ac_fn_c_try_compile "$LINENO"; then :
11386 emacs_cv_lesstif=yes
11387 else
11388 emacs_cv_lesstif=no
11389 fi
11390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11393 $as_echo "$emacs_cv_lesstif" >&6; }
11394 if test $emacs_cv_lesstif = yes; then
11395 # Make sure this -I option remains in CPPFLAGS after it is set
11396 # back to REAL_CPPFLAGS.
11397 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11398 # have those other -I options anyway. Ultimately, having this
11399 # directory ultimately in CPPFLAGS will be enough.
11400 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11401 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11402 else
11403 CFLAGS=$OLD_CFLAGS
11404 CPPFLAGS=$OLD_CPPFLAGS
11405 fi
11406 fi
11407 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11408 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11409
11410 else
11411 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11412 fi
11413
11414
11415 fi
11416
11417
11418 USE_TOOLKIT_SCROLL_BARS=no
11419 if test "${with_toolkit_scroll_bars}" != "no"; then
11420 if test "${USE_X_TOOLKIT}" != "none"; then
11421 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11422 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11423
11424 HAVE_XAW3D=no
11425 USE_TOOLKIT_SCROLL_BARS=yes
11426 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11427 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11428
11429 USE_TOOLKIT_SCROLL_BARS=yes
11430 fi
11431 elif test "${HAVE_GTK}" = "yes"; then
11432 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11433
11434 USE_TOOLKIT_SCROLL_BARS=yes
11435 elif test "${HAVE_NS}" = "yes"; then
11436 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11437
11438 USE_TOOLKIT_SCROLL_BARS=yes
11439 fi
11440 fi
11441
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444
11445 #include <X11/Xlib.h>
11446 #include <X11/Xresource.h>
11447 int
11448 main ()
11449 {
11450 XIMProc callback;
11451 ;
11452 return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_compile "$LINENO"; then :
11456 HAVE_XIM=yes
11457
11458 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11459
11460 else
11461 HAVE_XIM=no
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464
11465
11466 if test "${with_xim}" != "no"; then
11467
11468 $as_echo "#define USE_XIM 1" >>confdefs.h
11469
11470 fi
11471
11472
11473 if test "${HAVE_XIM}" != "no"; then
11474 late_CFLAGS=$CFLAGS
11475 if test "$GCC" = yes; then
11476 CFLAGS="$CFLAGS --pedantic-errors"
11477 fi
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480
11481 #include <X11/Xlib.h>
11482 #include <X11/Xresource.h>
11483 int
11484 main ()
11485 {
11486 Display *display;
11487 XrmDatabase db;
11488 char *res_name;
11489 char *res_class;
11490 XIMProc callback;
11491 XPointer *client_data;
11492 #ifndef __GNUC__
11493 /* If we're not using GCC, it's probably not XFree86, and this is
11494 probably right, but we can't use something like --pedantic-errors. */
11495 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11496 char*, XIMProc, XPointer*);
11497 #endif
11498 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11499 client_data);
11500 ;
11501 return 0;
11502 }
11503 _ACEOF
11504 if ac_fn_c_try_compile "$LINENO"; then :
11505 emacs_cv_arg6_star=yes
11506 fi
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508 if test "$emacs_cv_arg6_star" = yes; then
11509 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11510
11511 else
11512 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11513
11514 fi
11515 CFLAGS=$late_CFLAGS
11516 fi
11517
11518 ### Start of font-backend (under any platform) section.
11519 # (nothing here yet -- this is a placeholder)
11520 ### End of font-backend (under any platform) section.
11521
11522 ### Start of font-backend (under X11) section.
11523 if test "${HAVE_X11}" = "yes"; then
11524
11525 succeeded=no
11526
11527 if test "$PKG_CONFIG" = "no" ; then
11528 HAVE_FC=no
11529 else
11530 PKG_CONFIG_MIN_VERSION=0.9.0
11531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11533 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11534
11535 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11536 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11537 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11538 edit_cflags="
11539 s,///*,/,g
11540 s/^/ /
11541 s/ -I/ $isystem/g
11542 s/^ //
11543 "
11544 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11545 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11547 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11548 succeeded=yes
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 FONTCONFIG_CFLAGS=""
11553 FONTCONFIG_LIBS=""
11554 ## If we have a custom action on failure, don't print errors, but
11555 ## do set a variable so people can do so.
11556 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11557
11558 fi
11559
11560
11561
11562 else
11563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11565 fi
11566 fi
11567
11568 if test $succeeded = yes; then
11569 HAVE_FC=yes
11570 else
11571 HAVE_FC=no
11572 fi
11573
11574
11575 ## Use -lXft if available, unless `--with-xft=no'.
11576 HAVE_XFT=maybe
11577 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11578 with_xft="no";
11579 fi
11580 if test "x${with_xft}" != "xno"; then
11581
11582
11583 succeeded=no
11584
11585 if test "$PKG_CONFIG" = "no" ; then
11586 HAVE_XFT=no
11587 else
11588 PKG_CONFIG_MIN_VERSION=0.9.0
11589 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11591 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11592
11593 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11594 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11595 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11596 edit_cflags="
11597 s,///*,/,g
11598 s/^/ /
11599 s/ -I/ $isystem/g
11600 s/^ //
11601 "
11602 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11603 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11605 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11606 succeeded=yes
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11610 XFT_CFLAGS=""
11611 XFT_LIBS=""
11612 ## If we have a custom action on failure, don't print errors, but
11613 ## do set a variable so people can do so.
11614 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11615
11616 fi
11617
11618
11619
11620 else
11621 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11622 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11623 fi
11624 fi
11625
11626 if test $succeeded = yes; then
11627 :
11628 else
11629 HAVE_XFT=no
11630 fi
11631
11632 ## Because xftfont.c uses XRenderQueryExtension, we also
11633 ## need to link to -lXrender.
11634 HAVE_XRENDER=no
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11636 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11637 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-lXrender $LIBS"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11644
11645 /* Override any GCC internal prototype to avoid an error.
11646 Use char because int might match the return type of a GCC
11647 builtin and then its argument prototype would still apply. */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char XRenderQueryExtension ();
11652 int
11653 main ()
11654 {
11655 return XRenderQueryExtension ();
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11662 else
11663 ac_cv_lib_Xrender_XRenderQueryExtension=no
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11670 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11671 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11672 HAVE_XRENDER=yes
11673 fi
11674
11675 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11676 OLD_CPPFLAGS="$CPPFLAGS"
11677 OLD_CFLAGS="$CFLAGS"
11678 OLD_LIBS="$LIBS"
11679 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11680 CFLAGS="$CFLAGS $XFT_CFLAGS"
11681 XFT_LIBS="-lXrender $XFT_LIBS"
11682 LIBS="$XFT_LIBS $LIBS"
11683 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11684 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11686 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11687 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 ac_check_lib_save_LIBS=$LIBS
11691 LIBS="-lXft $XFT_LIBS $LIBS"
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11694
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char XftFontOpen ();
11702 int
11703 main ()
11704 {
11705 return XftFontOpen ();
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 if ac_fn_c_try_link "$LINENO"; then :
11711 ac_cv_lib_Xft_XftFontOpen=yes
11712 else
11713 ac_cv_lib_Xft_XftFontOpen=no
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717 LIBS=$ac_check_lib_save_LIBS
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11720 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11721 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11722 HAVE_XFT=yes
11723 fi
11724
11725 fi
11726
11727
11728
11729 if test "${HAVE_XFT}" = "yes"; then
11730
11731 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11732
11733
11734 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11735 else
11736 CPPFLAGS="$OLD_CPPFLAGS"
11737 CFLAGS="$OLD_CFLAGS"
11738 LIBS="$OLD_LIBS"
11739 fi # "${HAVE_XFT}" = "yes"
11740 fi # "$HAVE_XFT" != no
11741 fi # "x${with_xft}" != "xno"
11742
11743 ## We used to allow building with FreeType and without Xft.
11744 ## However, the ftx font backend driver is not in good shape.
11745 if test "$HAVE_XFT" != "yes"; then
11746 HAVE_XFT=no
11747 HAVE_FREETYPE=no
11748 else
11749
11750 succeeded=no
11751
11752 if test "$PKG_CONFIG" = "no" ; then
11753 HAVE_FREETYPE=no
11754 else
11755 PKG_CONFIG_MIN_VERSION=0.9.0
11756 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11758 $as_echo_n "checking for freetype2... " >&6; }
11759
11760 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11761 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11762 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11763 edit_cflags="
11764 s,///*,/,g
11765 s/^/ /
11766 s/ -I/ $isystem/g
11767 s/^ //
11768 "
11769 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11770 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11772 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11773 succeeded=yes
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11777 FREETYPE_CFLAGS=""
11778 FREETYPE_LIBS=""
11779 ## If we have a custom action on failure, don't print errors, but
11780 ## do set a variable so people can do so.
11781 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11782
11783 fi
11784
11785
11786
11787 else
11788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11790 fi
11791 fi
11792
11793 if test $succeeded = yes; then
11794 HAVE_FREETYPE=yes
11795 else
11796 HAVE_FREETYPE=no
11797 fi
11798
11799
11800 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11801 fi
11802
11803 HAVE_LIBOTF=no
11804 if test "${HAVE_FREETYPE}" = "yes"; then
11805
11806 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11807
11808 if test "${with_libotf}" != "no"; then
11809
11810 succeeded=no
11811
11812 if test "$PKG_CONFIG" = "no" ; then
11813 HAVE_LIBOTF=no
11814 else
11815 PKG_CONFIG_MIN_VERSION=0.9.0
11816 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11818 $as_echo_n "checking for libotf... " >&6; }
11819
11820 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11821 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11822 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11823 edit_cflags="
11824 s,///*,/,g
11825 s/^/ /
11826 s/ -I/ $isystem/g
11827 s/^ //
11828 "
11829 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11830 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11832 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11833 succeeded=yes
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11837 LIBOTF_CFLAGS=""
11838 LIBOTF_LIBS=""
11839 ## If we have a custom action on failure, don't print errors, but
11840 ## do set a variable so people can do so.
11841 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11842
11843 fi
11844
11845
11846
11847 else
11848 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11849 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11850 fi
11851 fi
11852
11853 if test $succeeded = yes; then
11854 HAVE_LIBOTF=yes
11855 else
11856 HAVE_LIBOTF=no
11857 fi
11858
11859 if test "$HAVE_LIBOTF" = "yes"; then
11860
11861 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11862
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11864 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11865 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 ac_check_lib_save_LIBS=$LIBS
11869 LIBS="-lotf $LIBS"
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11872
11873 /* Override any GCC internal prototype to avoid an error.
11874 Use char because int might match the return type of a GCC
11875 builtin and then its argument prototype would still apply. */
11876 #ifdef __cplusplus
11877 extern "C"
11878 #endif
11879 char OTF_get_variation_glyphs ();
11880 int
11881 main ()
11882 {
11883 return OTF_get_variation_glyphs ();
11884 ;
11885 return 0;
11886 }
11887 _ACEOF
11888 if ac_fn_c_try_link "$LINENO"; then :
11889 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11890 else
11891 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11892 fi
11893 rm -f core conftest.err conftest.$ac_objext \
11894 conftest$ac_exeext conftest.$ac_ext
11895 LIBS=$ac_check_lib_save_LIBS
11896 fi
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11898 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11899 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11900 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11901 else
11902 HAVE_OTF_GET_VARIATION_GLYPHS=no
11903 fi
11904
11905 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11906
11907 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11908
11909 fi
11910 fi
11911 fi
11912 fi
11913
11914 HAVE_M17N_FLT=no
11915 if test "${HAVE_LIBOTF}" = yes; then
11916 if test "${with_m17n_flt}" != "no"; then
11917
11918 succeeded=no
11919
11920 if test "$PKG_CONFIG" = "no" ; then
11921 HAVE_M17N_FLT=no
11922 else
11923 PKG_CONFIG_MIN_VERSION=0.9.0
11924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11926 $as_echo_n "checking for m17n-flt... " >&6; }
11927
11928 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
11929 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
11930 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
11931 edit_cflags="
11932 s,///*,/,g
11933 s/^/ /
11934 s/ -I/ $isystem/g
11935 s/^ //
11936 "
11937 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
11938 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
11940 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
11941 succeeded=yes
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 M17N_FLT_CFLAGS=""
11946 M17N_FLT_LIBS=""
11947 ## If we have a custom action on failure, don't print errors, but
11948 ## do set a variable so people can do so.
11949 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11950
11951 fi
11952
11953
11954
11955 else
11956 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11957 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11958 fi
11959 fi
11960
11961 if test $succeeded = yes; then
11962 HAVE_M17N_FLT=yes
11963 else
11964 HAVE_M17N_FLT=no
11965 fi
11966
11967 if test "$HAVE_M17N_FLT" = "yes"; then
11968
11969 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11970
11971 fi
11972 fi
11973 fi
11974 else
11975 HAVE_XFT=no
11976 HAVE_FREETYPE=no
11977 HAVE_LIBOTF=no
11978 HAVE_M17N_FLT=no
11979 fi
11980
11981 ### End of font-backend (under X11) section.
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 ### Use -lXpm if available, unless `--with-xpm=no'.
11993 HAVE_XPM=no
11994 LIBXPM=
11995 if test "${HAVE_X11}" = "yes"; then
11996 if test "${with_xpm}" != "no"; then
11997 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11998 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12000 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12001 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-lXpm -lX11 $LIBS"
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12008
12009 /* Override any GCC internal prototype to avoid an error.
12010 Use char because int might match the return type of a GCC
12011 builtin and then its argument prototype would still apply. */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 char XpmReadFileToPixmap ();
12016 int
12017 main ()
12018 {
12019 return XpmReadFileToPixmap ();
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 if ac_fn_c_try_link "$LINENO"; then :
12025 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12026 else
12027 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12028 fi
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12031 LIBS=$ac_check_lib_save_LIBS
12032 fi
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12034 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12035 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12036 HAVE_XPM=yes
12037 fi
12038
12039 fi
12040
12041
12042 if test "${HAVE_XPM}" = "yes"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12044 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047 #include "X11/xpm.h"
12048 #ifndef XpmReturnAllocPixels
12049 no_return_alloc_pixels
12050 #endif
12051
12052 _ACEOF
12053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12054 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12055 HAVE_XPM=no
12056 else
12057 HAVE_XPM=yes
12058 fi
12059 rm -f conftest*
12060
12061
12062 if test "${HAVE_XPM}" = "yes"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12064 $as_echo "yes" >&6; }
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12068 fi
12069 fi
12070 fi
12071
12072 if test "${HAVE_XPM}" = "yes"; then
12073
12074 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12075
12076 LIBXPM=-lXpm
12077 fi
12078 fi
12079
12080
12081 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12082 HAVE_JPEG=no
12083 LIBJPEG=
12084 if test "${HAVE_X11}" = "yes"; then
12085 if test "${with_jpeg}" != "no"; then
12086 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12087 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12089 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12090 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 ac_check_lib_save_LIBS=$LIBS
12094 LIBS="-ljpeg $LIBS"
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12097
12098 /* Override any GCC internal prototype to avoid an error.
12099 Use char because int might match the return type of a GCC
12100 builtin and then its argument prototype would still apply. */
12101 #ifdef __cplusplus
12102 extern "C"
12103 #endif
12104 char jpeg_destroy_compress ();
12105 int
12106 main ()
12107 {
12108 return jpeg_destroy_compress ();
12109 ;
12110 return 0;
12111 }
12112 _ACEOF
12113 if ac_fn_c_try_link "$LINENO"; then :
12114 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12115 else
12116 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12117 fi
12118 rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120 LIBS=$ac_check_lib_save_LIBS
12121 fi
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12123 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12124 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12125 HAVE_JPEG=yes
12126 fi
12127
12128 fi
12129
12130
12131 fi
12132
12133 if test "${HAVE_JPEG}" = "yes"; then
12134 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12135
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138 #include <jpeglib.h>
12139 version=JPEG_LIB_VERSION
12140
12141 _ACEOF
12142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12143 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12144 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12145
12146 else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12148 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12149 HAVE_JPEG=no
12150 fi
12151 rm -f conftest*
12152
12153 fi
12154 if test "${HAVE_JPEG}" = "yes"; then
12155 LIBJPEG=-ljpeg
12156 fi
12157 fi
12158
12159
12160 ### Use -lpng if available, unless `--with-png=no'.
12161 HAVE_PNG=no
12162 LIBPNG=
12163 if test "${HAVE_X11}" = "yes"; then
12164 if test "${with_png}" != "no"; then
12165 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12166 # in /usr/include/libpng.
12167 for ac_header in png.h libpng/png.h
12168 do :
12169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12171 eval as_val=\$$as_ac_Header
12172 if test "x$as_val" = x""yes; then :
12173 cat >>confdefs.h <<_ACEOF
12174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12175 _ACEOF
12176 break
12177 fi
12178
12179 done
12180
12181 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12183 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12184 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 ac_check_lib_save_LIBS=$LIBS
12188 LIBS="-lpng -lz -lm $LIBS"
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12191
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 char png_get_channels ();
12199 int
12200 main ()
12201 {
12202 return png_get_channels ();
12203 ;
12204 return 0;
12205 }
12206 _ACEOF
12207 if ac_fn_c_try_link "$LINENO"; then :
12208 ac_cv_lib_png_png_get_channels=yes
12209 else
12210 ac_cv_lib_png_png_get_channels=no
12211 fi
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12217 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12218 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12219 HAVE_PNG=yes
12220 fi
12221
12222 fi
12223 fi
12224
12225 if test "${HAVE_PNG}" = "yes"; then
12226
12227 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12228
12229 LIBPNG="-lpng -lz -lm"
12230
12231 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12232 # include <libpng/png.h>
12233 #else
12234 # include <png.h>
12235 #endif
12236
12237 "
12238 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12239
12240 else
12241
12242 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12243
12244 fi
12245
12246 fi
12247 fi
12248
12249
12250 ### Use -ltiff if available, unless `--with-tiff=no'.
12251 HAVE_TIFF=no
12252 LIBTIFF=
12253 if test "${HAVE_X11}" = "yes"; then
12254 if test "${with_tiff}" != "no"; then
12255 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12256 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12257 tifflibs="-lz -lm"
12258 # At least one tiff package requires the jpeg library.
12259 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12261 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12262 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-ltiff $tifflibs $LIBS"
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12269
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char TIFFGetVersion ();
12277 int
12278 main ()
12279 {
12280 return TIFFGetVersion ();
12281 ;
12282 return 0;
12283 }
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_lib_tiff_TIFFGetVersion=yes
12287 else
12288 ac_cv_lib_tiff_TIFFGetVersion=no
12289 fi
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12293 fi
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12295 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12296 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12297 HAVE_TIFF=yes
12298 fi
12299
12300 fi
12301
12302
12303 fi
12304
12305 if test "${HAVE_TIFF}" = "yes"; then
12306
12307 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12308
12309 LIBTIFF=-ltiff
12310 fi
12311 fi
12312
12313
12314 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12315 HAVE_GIF=no
12316 LIBGIF=
12317 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12318 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12319 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12320 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12321 # Earlier versions can crash Emacs.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12323 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12324 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 ac_check_lib_save_LIBS=$LIBS
12328 LIBS="-lgif $LIBS"
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331
12332 /* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 char EGifPutExtensionLast ();
12339 int
12340 main ()
12341 {
12342 return EGifPutExtensionLast ();
12343 ;
12344 return 0;
12345 }
12346 _ACEOF
12347 if ac_fn_c_try_link "$LINENO"; then :
12348 ac_cv_lib_gif_EGifPutExtensionLast=yes
12349 else
12350 ac_cv_lib_gif_EGifPutExtensionLast=no
12351 fi
12352 rm -f core conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12357 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12358 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12359 HAVE_GIF=yes
12360 else
12361 HAVE_GIF=maybe
12362 fi
12363
12364 fi
12365
12366
12367
12368 if test "$HAVE_GIF" = yes; then
12369 LIBGIF=-lgif
12370 elif test "$HAVE_GIF" = maybe; then
12371 # If gif_lib.h but no libgif, try libungif.
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12373 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12374 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 ac_check_lib_save_LIBS=$LIBS
12378 LIBS="-lungif $LIBS"
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12381
12382 /* Override any GCC internal prototype to avoid an error.
12383 Use char because int might match the return type of a GCC
12384 builtin and then its argument prototype would still apply. */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 char EGifPutExtensionLast ();
12389 int
12390 main ()
12391 {
12392 return EGifPutExtensionLast ();
12393 ;
12394 return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_link "$LINENO"; then :
12398 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12399 else
12400 ac_cv_lib_ungif_EGifPutExtensionLast=no
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12405 fi
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12407 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12408 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12409 HAVE_GIF=yes
12410 else
12411 HAVE_GIF=no
12412 fi
12413
12414 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12415 fi
12416
12417 if test "${HAVE_GIF}" = "yes"; then
12418
12419 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12420
12421 fi
12422 fi
12423
12424
12425 if test "${HAVE_X11}" = "yes"; then
12426 MISSING=""
12427 WITH_NO=""
12428 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12429 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12430 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12431 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12432 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12433 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12434 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12435 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12436 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12437 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12438
12439 if test "X${MISSING}" != X; then
12440 as_fn_error "The following required libraries were not found:
12441 $MISSING
12442 Maybe some development libraries/packages are missing?
12443 If you don't want to link with them give
12444 $WITH_NO
12445 as options to configure" "$LINENO" 5
12446 fi
12447 fi
12448
12449 ### Use -lgpm if available, unless `--with-gpm=no'.
12450 HAVE_GPM=no
12451 LIBGPM=
12452 if test "${with_gpm}" != "no"; then
12453 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12454 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12456 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12457 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 ac_check_lib_save_LIBS=$LIBS
12461 LIBS="-lgpm $LIBS"
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464
12465 /* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12468 #ifdef __cplusplus
12469 extern "C"
12470 #endif
12471 char Gpm_Open ();
12472 int
12473 main ()
12474 {
12475 return Gpm_Open ();
12476 ;
12477 return 0;
12478 }
12479 _ACEOF
12480 if ac_fn_c_try_link "$LINENO"; then :
12481 ac_cv_lib_gpm_Gpm_Open=yes
12482 else
12483 ac_cv_lib_gpm_Gpm_Open=no
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS
12488 fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12490 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12491 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12492 HAVE_GPM=yes
12493 fi
12494
12495 fi
12496
12497
12498
12499 if test "${HAVE_GPM}" = "yes"; then
12500
12501 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12502
12503 LIBGPM=-lgpm
12504 fi
12505 fi
12506
12507
12508
12509
12510
12511
12512 GNUSTEP_CFLAGS=
12513 ### Use NeXTstep API to implement GUI.
12514 if test "${HAVE_NS}" = "yes"; then
12515
12516 $as_echo "#define HAVE_NS 1" >>confdefs.h
12517
12518 if test "${NS_IMPL_COCOA}" = "yes"; then
12519
12520 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12521
12522 fi
12523 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12524
12525 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12526
12527 # See also .m.o rule in Makefile.in */
12528 # FIXME: are all these flags really needed? Document here why. */
12529 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12530 ## Extra CFLAGS applied to src/*.m files.
12531 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"
12532 fi
12533 # We also have mouse menus.
12534 HAVE_MENUS=yes
12535 OTHER_FILES=ns-app
12536 fi
12537
12538
12539 ### Use session management (-lSM -lICE) if available
12540 HAVE_X_SM=no
12541 LIBXSM=
12542 if test "${HAVE_X11}" = "yes"; then
12543 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12544 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12546 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12547 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 ac_check_lib_save_LIBS=$LIBS
12551 LIBS="-lSM -lICE $LIBS"
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12558 #ifdef __cplusplus
12559 extern "C"
12560 #endif
12561 char SmcOpenConnection ();
12562 int
12563 main ()
12564 {
12565 return SmcOpenConnection ();
12566 ;
12567 return 0;
12568 }
12569 _ACEOF
12570 if ac_fn_c_try_link "$LINENO"; then :
12571 ac_cv_lib_SM_SmcOpenConnection=yes
12572 else
12573 ac_cv_lib_SM_SmcOpenConnection=no
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12580 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12581 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12582 HAVE_X_SM=yes
12583 fi
12584
12585 fi
12586
12587
12588
12589 if test "${HAVE_X_SM}" = "yes"; then
12590
12591 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12592
12593 LIBXSM="-lSM -lICE"
12594 case "$LIBS" in
12595 *-lSM*) ;;
12596 *) LIBS="$LIBXSM $LIBS" ;;
12597 esac
12598 fi
12599 fi
12600
12601
12602 ### Use libxml (-lxml2) if available
12603 HAVE_LIBXML2=no
12604 if test "${with_xml2}" != "no"; then
12605 ### I'm not sure what the version number should be, so I just guessed.
12606
12607 succeeded=no
12608
12609 if test "$PKG_CONFIG" = "no" ; then
12610 HAVE_LIBXML2=no
12611 else
12612 PKG_CONFIG_MIN_VERSION=0.9.0
12613 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12615 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12616
12617 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12618 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12619 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12620 edit_cflags="
12621 s,///*,/,g
12622 s/^/ /
12623 s/ -I/ $isystem/g
12624 s/^ //
12625 "
12626 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12627 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12629 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12630 succeeded=yes
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12634 LIBXML2_CFLAGS=""
12635 LIBXML2_LIBS=""
12636 ## If we have a custom action on failure, don't print errors, but
12637 ## do set a variable so people can do so.
12638 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12639
12640 fi
12641
12642
12643
12644 else
12645 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12646 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12647 fi
12648 fi
12649
12650 if test $succeeded = yes; then
12651 HAVE_LIBXML2=yes
12652 else
12653 HAVE_LIBXML2=no
12654 fi
12655
12656 if test "${HAVE_LIBXML2}" = "yes"; then
12657 LIBS="$LIBXML2_LIBS $LIBS"
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12659 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12660 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lxml2 $LIBS"
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12671 #ifdef __cplusplus
12672 extern "C"
12673 #endif
12674 char htmlReadMemory ();
12675 int
12676 main ()
12677 {
12678 return htmlReadMemory ();
12679 ;
12680 return 0;
12681 }
12682 _ACEOF
12683 if ac_fn_c_try_link "$LINENO"; then :
12684 ac_cv_lib_xml2_htmlReadMemory=yes
12685 else
12686 ac_cv_lib_xml2_htmlReadMemory=no
12687 fi
12688 rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12690 LIBS=$ac_check_lib_save_LIBS
12691 fi
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12693 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12694 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12695 HAVE_LIBXML2=yes
12696 else
12697 HAVE_LIBXML2=no
12698 fi
12699
12700 if test "${HAVE_LIBXML2}" = "yes"; then
12701
12702 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12703
12704 else
12705 LIBXML2_LIBS=""
12706 LIBXML2_CFLAGS=""
12707 fi
12708 fi
12709 fi
12710
12711
12712
12713 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12715 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12716 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 #include <netdb.h>
12722 int
12723 main ()
12724 {
12725 return h_errno;
12726 ;
12727 return 0;
12728 }
12729 _ACEOF
12730 if ac_fn_c_try_link "$LINENO"; then :
12731 emacs_cv_netdb_declares_h_errno=yes
12732 else
12733 emacs_cv_netdb_declares_h_errno=no
12734 fi
12735 rm -f core conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12739 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12740 if test $emacs_cv_netdb_declares_h_errno = yes; then
12741
12742 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12743
12744 fi
12745
12746 # fmod, logb, and frexp are found in -lm on most systems.
12747 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12749 $as_echo_n "checking for sqrt in -lm... " >&6; }
12750 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 ac_check_lib_save_LIBS=$LIBS
12754 LIBS="-lm $LIBS"
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char sqrt ();
12765 int
12766 main ()
12767 {
12768 return sqrt ();
12769 ;
12770 return 0;
12771 }
12772 _ACEOF
12773 if ac_fn_c_try_link "$LINENO"; then :
12774 ac_cv_lib_m_sqrt=yes
12775 else
12776 ac_cv_lib_m_sqrt=no
12777 fi
12778 rm -f core conftest.err conftest.$ac_objext \
12779 conftest$ac_exeext conftest.$ac_ext
12780 LIBS=$ac_check_lib_save_LIBS
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12783 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12784 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12785 cat >>confdefs.h <<_ACEOF
12786 #define HAVE_LIBM 1
12787 _ACEOF
12788
12789 LIBS="-lm $LIBS"
12790
12791 fi
12792
12793
12794 # Check for mail-locking functions in a "mail" library. Probably this should
12795 # have the same check as for liblockfile below.
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12797 $as_echo_n "checking for maillock in -lmail... " >&6; }
12798 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 ac_check_lib_save_LIBS=$LIBS
12802 LIBS="-lmail $LIBS"
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805
12806 /* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12809 #ifdef __cplusplus
12810 extern "C"
12811 #endif
12812 char maillock ();
12813 int
12814 main ()
12815 {
12816 return maillock ();
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 if ac_fn_c_try_link "$LINENO"; then :
12822 ac_cv_lib_mail_maillock=yes
12823 else
12824 ac_cv_lib_mail_maillock=no
12825 fi
12826 rm -f core conftest.err conftest.$ac_objext \
12827 conftest$ac_exeext conftest.$ac_ext
12828 LIBS=$ac_check_lib_save_LIBS
12829 fi
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12831 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12832 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
12833 have_mail=yes
12834 else
12835 have_mail=no
12836 fi
12837
12838 if test $have_mail = yes; then
12839 LIBS_MAIL=-lmail
12840 LIBS="$LIBS_MAIL $LIBS"
12841
12842 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12843
12844 else
12845 LIBS_MAIL=
12846 fi
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12848 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12849 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 ac_check_lib_save_LIBS=$LIBS
12853 LIBS="-llockfile $LIBS"
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 char maillock ();
12864 int
12865 main ()
12866 {
12867 return maillock ();
12868 ;
12869 return 0;
12870 }
12871 _ACEOF
12872 if ac_fn_c_try_link "$LINENO"; then :
12873 ac_cv_lib_lockfile_maillock=yes
12874 else
12875 ac_cv_lib_lockfile_maillock=no
12876 fi
12877 rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12880 fi
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12882 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12883 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
12884 have_lockfile=yes
12885 else
12886 have_lockfile=no
12887 fi
12888
12889 if test $have_lockfile = yes; then
12890 LIBS_MAIL=-llockfile
12891 LIBS="$LIBS_MAIL $LIBS"
12892
12893 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12894
12895 else
12896 # If we have the shared liblockfile, assume we must use it for mail
12897 # locking (e.g. Debian). If we couldn't link against liblockfile
12898 # (no liblockfile.a installed), ensure that we don't need to.
12899 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12900 set dummy liblockfile.so; ac_word=$2
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 if test -n "$liblockfile"; then
12907 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12908 else
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12911 for as_dir in $as_dummy
12912 do
12913 IFS=$as_save_IFS
12914 test -z "$as_dir" && as_dir=.
12915 for ac_exec_ext in '' $ac_executable_extensions; do
12916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12917 ac_cv_prog_liblockfile="yes"
12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12919 break 2
12920 fi
12921 done
12922 done
12923 IFS=$as_save_IFS
12924
12925 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12926 fi
12927 fi
12928 liblockfile=$ac_cv_prog_liblockfile
12929 if test -n "$liblockfile"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12931 $as_echo "$liblockfile" >&6; }
12932 else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12935 fi
12936
12937
12938 if test $ac_cv_prog_liblockfile = yes; then
12939 as_fn_error "Shared liblockfile found but can't link against it.
12940 This probably means that movemail could lose mail.
12941 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12942 fi
12943 fi
12944
12945
12946
12947
12948
12949 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12950 ## interlock access to the mail spool. The alternative is a lock file named
12951 ## /usr/spool/mail/$USER.lock.
12952 mail_lock=no
12953 case "$opsys" in
12954 aix4-2) mail_lock="lockf" ;;
12955
12956 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12957
12958 ## On GNU/Linux systems, both methods are used by various mail programs.
12959 ## I assume most people are using newer mailers that have heard of flock.
12960 ## Change this if you need to.
12961 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12962 ## configure gets the right answers, and that means *NOT* using flock.
12963 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12964 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12965 ## Debian maintainer hasn't provided a clean fix for Emacs.
12966 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12967 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12968 ## correct logic. -- fx
12969 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12970 ## liblockfile is a Free Software replacement for libmail, used on
12971 ## Debian systems and elsewhere. -rfr.
12972 gnu-*)
12973 mail_lock="flock"
12974 if test $have_mail = yes || test $have_lockfile = yes; then
12975 test $ac_cv_header_maillock_h = yes && mail_lock=no
12976 fi
12977 ;;
12978 esac
12979
12980 BLESSMAIL_TARGET=
12981 case "$mail_lock" in
12982 flock)
12983 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12984 ;;
12985
12986 lockf)
12987 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12988 ;;
12989
12990 *) BLESSMAIL_TARGET="need-blessmail" ;;
12991 esac
12992
12993
12994
12995 for ac_func in gethostname \
12996 closedir getrusage get_current_dir_name \
12997 lrand48 logb frexp fmod cbrt setsid \
12998 fpathconf select euidaccess getpagesize setlocale \
12999 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13000 __fpending strsignal setitimer \
13001 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13002 gai_strerror mkstemp getline getdelim fsync sync \
13003 difftime posix_memalign \
13004 getpwent endpwent getgrent endgrent \
13005 touchlock \
13006 cfmakeraw cfsetspeed copysign __executable_start
13007 do :
13008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13010 eval as_val=\$$as_ac_var
13011 if test "x$as_val" = x""yes; then :
13012 cat >>confdefs.h <<_ACEOF
13013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13014 _ACEOF
13015
13016 fi
13017 done
13018
13019
13020 if test $opsys != unixware; then
13021 for ac_func in getwd
13022 do :
13023 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13024 if test "x$ac_cv_func_getwd" = x""yes; then :
13025 cat >>confdefs.h <<_ACEOF
13026 #define HAVE_GETWD 1
13027 _ACEOF
13028
13029 fi
13030 done
13031
13032 fi
13033
13034 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13035 ## has a broken `rint' in some library versions including math library
13036 ## version number A.09.05.
13037 ## You can fix the math library by installing patch number PHSS_4630.
13038 ## But we can fix it more reliably for Emacs by just not using rint.
13039 ## We also skip HAVE_RANDOM - see comments in src/s/hpux10-20.h.
13040 case $opsys in
13041 hpux*) : ;;
13042 *) for ac_func in random rint
13043 do :
13044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13046 eval as_val=\$$as_ac_var
13047 if test "x$as_val" = x""yes; then :
13048 cat >>confdefs.h <<_ACEOF
13049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 _ACEOF
13051
13052 fi
13053 done
13054 ;;
13055 esac
13056
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13058 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13059 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064
13065 int
13066 main ()
13067 {
13068 __builtin_unwind_init ();
13069 ;
13070 return 0;
13071 }
13072 _ACEOF
13073 if ac_fn_c_try_link "$LINENO"; then :
13074 emacs_cv_func___builtin_unwind_init=yes
13075 else
13076 emacs_cv_func___builtin_unwind_init=no
13077 fi
13078 rm -f core conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13082 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13083 if test $emacs_cv_func___builtin_unwind_init = yes; then
13084
13085 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13086
13087 fi
13088
13089
13090
13091
13092
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13094 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13095 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 while :; do
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13101 #include <sys/types.h> /* for off_t */
13102 #include <stdio.h>
13103 int
13104 main ()
13105 {
13106 int (*fp) (FILE *, off_t, int) = fseeko;
13107 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13108 ;
13109 return 0;
13110 }
13111 _ACEOF
13112 if ac_fn_c_try_link "$LINENO"; then :
13113 ac_cv_sys_largefile_source=no; break
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 #define _LARGEFILE_SOURCE 1
13120 #include <sys/types.h> /* for off_t */
13121 #include <stdio.h>
13122 int
13123 main ()
13124 {
13125 int (*fp) (FILE *, off_t, int) = fseeko;
13126 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13127 ;
13128 return 0;
13129 }
13130 _ACEOF
13131 if ac_fn_c_try_link "$LINENO"; then :
13132 ac_cv_sys_largefile_source=1; break
13133 fi
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 ac_cv_sys_largefile_source=unknown
13137 break
13138 done
13139 fi
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13141 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13142 case $ac_cv_sys_largefile_source in #(
13143 no | unknown) ;;
13144 *)
13145 cat >>confdefs.h <<_ACEOF
13146 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13147 _ACEOF
13148 ;;
13149 esac
13150 rm -rf conftest*
13151
13152 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13153 # in glibc 2.1.3, but that breaks too many other things.
13154 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13155 if test $ac_cv_sys_largefile_source != unknown; then
13156
13157 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13158
13159 fi
13160
13161
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13163 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13164 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 # Use it with a single arg.
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 $ac_includes_default
13171 int
13172 main ()
13173 {
13174 getpgrp (0);
13175 ;
13176 return 0;
13177 }
13178 _ACEOF
13179 if ac_fn_c_try_compile "$LINENO"; then :
13180 ac_cv_func_getpgrp_void=no
13181 else
13182 ac_cv_func_getpgrp_void=yes
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185
13186 fi
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13188 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13189 if test $ac_cv_func_getpgrp_void = yes; then
13190
13191 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13192
13193 fi
13194
13195
13196 # UNIX98 PTYs.
13197 for ac_func in grantpt
13198 do :
13199 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13200 if test "x$ac_cv_func_grantpt" = x""yes; then :
13201 cat >>confdefs.h <<_ACEOF
13202 #define HAVE_GRANTPT 1
13203 _ACEOF
13204
13205 fi
13206 done
13207
13208
13209 # PTY-related GNU extensions.
13210 for ac_func in getpt
13211 do :
13212 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13213 if test "x$ac_cv_func_getpt" = x""yes; then :
13214 cat >>confdefs.h <<_ACEOF
13215 #define HAVE_GETPT 1
13216 _ACEOF
13217
13218 fi
13219 done
13220
13221
13222 # Check this now, so that we will NOT find the above functions in ncurses.
13223 # That is because we have not set up to link ncurses in lib-src.
13224 # It's better to believe a function is not available
13225 # than to expect to find it in ncurses.
13226 # Also we need tputs and friends to be able to build at all.
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13228 $as_echo_n "checking for library containing tputs... " >&6; }
13229 # Run a test program that contains a call to tputs, a call that is
13230 # never executed. This tests whether a pre-'main' dynamic linker
13231 # works with the library. It's too much trouble to actually call
13232 # tputs in the test program, due to portability hassles. When
13233 # cross-compiling, assume the test program will run if it links.
13234
13235 # Maybe curses should be tried earlier?
13236 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13237 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13238 OLIBS=$LIBS
13239 if test -z "$tputs_library"; then
13240 LIBS_TERMCAP=
13241 msg='none required'
13242 else
13243 LIBS_TERMCAP=-l$tputs_library
13244 msg=$LIBS_TERMCAP
13245 LIBS="$LIBS_TERMCAP $LIBS"
13246 fi
13247 if test "$cross_compiling" = yes; then :
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250
13251 extern void tputs (const char *, int, int (*)(int));
13252 int main (int argc, char **argv)
13253 {
13254 if (argc == 10000)
13255 tputs (argv[0], 0, 0);
13256 return 0;
13257 }
13258
13259 _ACEOF
13260 if ac_fn_c_try_link "$LINENO"; then :
13261
13262 else
13263 msg=no
13264 fi
13265 rm -f core conftest.err conftest.$ac_objext \
13266 conftest$ac_exeext conftest.$ac_ext
13267 else
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13270
13271 extern void tputs (const char *, int, int (*)(int));
13272 int main (int argc, char **argv)
13273 {
13274 if (argc == 10000)
13275 tputs (argv[0], 0, 0);
13276 return 0;
13277 }
13278
13279 _ACEOF
13280 if ac_fn_c_try_run "$LINENO"; then :
13281
13282 else
13283 msg=no
13284 fi
13285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13286 conftest.$ac_objext conftest.beam conftest.$ac_ext
13287 fi
13288
13289 LIBS=$OLIBS
13290 if test "X$msg" != Xno; then
13291 break
13292 fi
13293 done
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13295 $as_echo "$msg" >&6; }
13296 if test "X$msg" = Xno; then
13297 as_fn_error "The required function \`tputs' was not found in any library.
13298 The following libraries were tried (in order):
13299 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13300 Please try installing whichever of these libraries is most appropriate
13301 for your system, together with its header files.
13302 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13303 fi
13304
13305 ## Use termcap instead of terminfo?
13306 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13307 TERMINFO=yes
13308 ## FIXME? In the cases below where we unconditionally set
13309 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13310 ## if that was found above to have tputs.
13311 ## Should we use the gnu* logic everywhere?
13312 case "$opsys" in
13313 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13314 ## The ncurses library has been moved out of the System framework in
13315 ## Mac OS X 10.2. So if configure detects it, set the command-line
13316 ## option to use it.
13317 darwin) LIBS_TERMCAP="-lncurses" ;;
13318
13319 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13320
13321 freebsd)
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13323 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13324 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 #include <osreldate.h>
13330 int
13331 main ()
13332 {
13333 #if __FreeBSD_version < 400000
13334 fail;
13335 #endif
13336
13337 ;
13338 return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_c_try_link "$LINENO"; then :
13342 emacs_cv_freebsd_terminfo=yes
13343 else
13344 emacs_cv_freebsd_terminfo=no
13345 fi
13346 rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext conftest.$ac_ext
13348 fi
13349
13350
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13352 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13353
13354 if test $emacs_cv_freebsd_terminfo = yes; then
13355 LIBS_TERMCAP="-lncurses"
13356 else
13357 TERMINFO=no
13358 LIBS_TERMCAP="-ltermcap"
13359 fi
13360 ;;
13361
13362 netbsd)
13363 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13364 TERMINFO=no
13365 LIBS_TERMCAP="-ltermcap"
13366 fi
13367 ;;
13368
13369 openbsd) LIBS_TERMCAP="-lncurses" ;;
13370
13371 ## hpux: Make sure we get select from libc rather than from libcurses
13372 ## because libcurses on HPUX 10.10 has a broken version of select.
13373 ## We used to use -lc -lcurses, but this may be cleaner.
13374 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13375 # set that way, now it uses the default). Isn't this a contradiction?
13376 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13377
13378 esac
13379
13380 TERMCAP_OBJ=tparam.o
13381 if test $TERMINFO = yes; then
13382
13383 $as_echo "#define TERMINFO 1" >>confdefs.h
13384
13385 TERMCAP_OBJ=terminfo.o
13386 fi
13387
13388
13389
13390
13391 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13392 # On Darwin, res_init appears not to be useful: see bug#562 and
13393 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13394 resolv=no
13395
13396 if test $opsys != darwin; then
13397
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 #include <netinet/in.h>
13401 #include <arpa/nameser.h>
13402 #include <resolv.h>
13403 int
13404 main ()
13405 {
13406 return res_init();
13407 ;
13408 return 0;
13409 }
13410 _ACEOF
13411 if ac_fn_c_try_link "$LINENO"; then :
13412 have_res_init=yes
13413 else
13414 have_res_init=no
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418 if test "$have_res_init" = no; then
13419 OLIBS="$LIBS"
13420 LIBS="$LIBS -lresolv"
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13422 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425 #include <netinet/in.h>
13426 #include <arpa/nameser.h>
13427 #include <resolv.h>
13428 int
13429 main ()
13430 {
13431 return res_init();
13432 ;
13433 return 0;
13434 }
13435 _ACEOF
13436 if ac_fn_c_try_link "$LINENO"; then :
13437 have_res_init=yes
13438 else
13439 have_res_init=no
13440 fi
13441 rm -f core conftest.err conftest.$ac_objext \
13442 conftest$ac_exeext conftest.$ac_ext
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13444 $as_echo "$have_res_init" >&6; }
13445 if test "$have_res_init" = yes ; then
13446 resolv=yes
13447 fi
13448 LIBS="$OLIBS"
13449 fi
13450
13451 if test "$have_res_init" = yes; then
13452
13453 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13454
13455 fi
13456 fi
13457 # Do we need the Hesiod library to provide the support routines?
13458 LIBHESIOD=
13459 if test "$with_hesiod" != no ; then
13460 # Don't set $LIBS here -- see comments above. FIXME which comments?
13461 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13462 if test "x$ac_cv_func_res_send" = x""yes; then :
13463
13464 else
13465 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13466 if test "x$ac_cv_func___res_send" = x""yes; then :
13467
13468 else
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13470 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13471 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 ac_check_lib_save_LIBS=$LIBS
13475 LIBS="-lresolv $LIBS"
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478
13479 /* Override any GCC internal prototype to avoid an error.
13480 Use char because int might match the return type of a GCC
13481 builtin and then its argument prototype would still apply. */
13482 #ifdef __cplusplus
13483 extern "C"
13484 #endif
13485 char res_send ();
13486 int
13487 main ()
13488 {
13489 return res_send ();
13490 ;
13491 return 0;
13492 }
13493 _ACEOF
13494 if ac_fn_c_try_link "$LINENO"; then :
13495 ac_cv_lib_resolv_res_send=yes
13496 else
13497 ac_cv_lib_resolv_res_send=no
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext conftest.$ac_ext
13501 LIBS=$ac_check_lib_save_LIBS
13502 fi
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13504 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13505 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13506 resolv=yes
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13509 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13510 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 ac_check_lib_save_LIBS=$LIBS
13514 LIBS="-lresolv $LIBS"
13515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h. */
13517
13518 /* Override any GCC internal prototype to avoid an error.
13519 Use char because int might match the return type of a GCC
13520 builtin and then its argument prototype would still apply. */
13521 #ifdef __cplusplus
13522 extern "C"
13523 #endif
13524 char __res_send ();
13525 int
13526 main ()
13527 {
13528 return __res_send ();
13529 ;
13530 return 0;
13531 }
13532 _ACEOF
13533 if ac_fn_c_try_link "$LINENO"; then :
13534 ac_cv_lib_resolv___res_send=yes
13535 else
13536 ac_cv_lib_resolv___res_send=no
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540 LIBS=$ac_check_lib_save_LIBS
13541 fi
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13543 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13544 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13545 resolv=yes
13546 fi
13547
13548 fi
13549
13550 fi
13551
13552 fi
13553
13554 if test "$resolv" = yes ; then
13555 RESOLVLIB=-lresolv
13556 else
13557 RESOLVLIB=
13558 fi
13559 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13560 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13561
13562 else
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13564 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13565 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13567 else
13568 ac_check_lib_save_LIBS=$LIBS
13569 LIBS="-lhesiod $RESOLVLIB $LIBS"
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13572
13573 /* Override any GCC internal prototype to avoid an error.
13574 Use char because int might match the return type of a GCC
13575 builtin and then its argument prototype would still apply. */
13576 #ifdef __cplusplus
13577 extern "C"
13578 #endif
13579 char hes_getmailhost ();
13580 int
13581 main ()
13582 {
13583 return hes_getmailhost ();
13584 ;
13585 return 0;
13586 }
13587 _ACEOF
13588 if ac_fn_c_try_link "$LINENO"; then :
13589 ac_cv_lib_hesiod_hes_getmailhost=yes
13590 else
13591 ac_cv_lib_hesiod_hes_getmailhost=no
13592 fi
13593 rm -f core conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
13595 LIBS=$ac_check_lib_save_LIBS
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13598 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13599 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13600 hesiod=yes
13601 else
13602 :
13603 fi
13604
13605 fi
13606
13607
13608 if test x"$hesiod" = xyes; then
13609
13610 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13611
13612 LIBHESIOD=-lhesiod
13613 fi
13614 fi
13615
13616
13617 # Do we need libresolv (due to res_init or Hesiod)?
13618 if test "$resolv" = yes && test $opsys != darwin; then
13619
13620 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13621
13622 LIBRESOLV=-lresolv
13623 else
13624 LIBRESOLV=
13625 fi
13626
13627
13628 # These tell us which Kerberos-related libraries to use.
13629 COM_ERRLIB=
13630 CRYPTOLIB=
13631 KRB5LIB=
13632 DESLIB=
13633 KRB4LIB=
13634
13635 if test "${with_kerberos}" != no; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13637 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13638 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 ac_check_lib_save_LIBS=$LIBS
13642 LIBS="-lcom_err $LIBS"
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char com_err ();
13653 int
13654 main ()
13655 {
13656 return com_err ();
13657 ;
13658 return 0;
13659 }
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13662 ac_cv_lib_com_err_com_err=yes
13663 else
13664 ac_cv_lib_com_err_com_err=no
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext \
13667 conftest$ac_exeext conftest.$ac_ext
13668 LIBS=$ac_check_lib_save_LIBS
13669 fi
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13671 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13672 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13673 have_com_err=yes
13674 else
13675 have_com_err=no
13676 fi
13677
13678 if test $have_com_err = yes; then
13679 COM_ERRLIB=-lcom_err
13680 LIBS="$COM_ERRLIB $LIBS"
13681
13682 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13683
13684 fi
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13686 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13687 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 ac_check_lib_save_LIBS=$LIBS
13691 LIBS="-lcrypto $LIBS"
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694
13695 /* Override any GCC internal prototype to avoid an error.
13696 Use char because int might match the return type of a GCC
13697 builtin and then its argument prototype would still apply. */
13698 #ifdef __cplusplus
13699 extern "C"
13700 #endif
13701 char mit_des_cbc_encrypt ();
13702 int
13703 main ()
13704 {
13705 return mit_des_cbc_encrypt ();
13706 ;
13707 return 0;
13708 }
13709 _ACEOF
13710 if ac_fn_c_try_link "$LINENO"; then :
13711 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13712 else
13713 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13718 fi
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13720 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13721 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13722 have_crypto=yes
13723 else
13724 have_crypto=no
13725 fi
13726
13727 if test $have_crypto = yes; then
13728 CRYPTOLIB=-lcrypto
13729 LIBS="$CRYPTOLIB $LIBS"
13730
13731 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13732
13733 fi
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13735 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13736 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 ac_check_lib_save_LIBS=$LIBS
13740 LIBS="-lk5crypto $LIBS"
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
13747 #ifdef __cplusplus
13748 extern "C"
13749 #endif
13750 char mit_des_cbc_encrypt ();
13751 int
13752 main ()
13753 {
13754 return mit_des_cbc_encrypt ();
13755 ;
13756 return 0;
13757 }
13758 _ACEOF
13759 if ac_fn_c_try_link "$LINENO"; then :
13760 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13761 else
13762 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13763 fi
13764 rm -f core conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13766 LIBS=$ac_check_lib_save_LIBS
13767 fi
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13769 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13770 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13771 have_k5crypto=yes
13772 else
13773 have_k5crypto=no
13774 fi
13775
13776 if test $have_k5crypto = yes; then
13777 CRYPTOLIB=-lk5crypto
13778 LIBS="$CRYPTOLIB $LIBS"
13779
13780 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13781
13782 fi
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13784 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13785 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 ac_check_lib_save_LIBS=$LIBS
13789 LIBS="-lkrb5 $LIBS"
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792
13793 /* Override any GCC internal prototype to avoid an error.
13794 Use char because int might match the return type of a GCC
13795 builtin and then its argument prototype would still apply. */
13796 #ifdef __cplusplus
13797 extern "C"
13798 #endif
13799 char krb5_init_context ();
13800 int
13801 main ()
13802 {
13803 return krb5_init_context ();
13804 ;
13805 return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"; then :
13809 ac_cv_lib_krb5_krb5_init_context=yes
13810 else
13811 ac_cv_lib_krb5_krb5_init_context=no
13812 fi
13813 rm -f core conftest.err conftest.$ac_objext \
13814 conftest$ac_exeext conftest.$ac_ext
13815 LIBS=$ac_check_lib_save_LIBS
13816 fi
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13818 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13819 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13820 have_krb5=yes
13821 else
13822 have_krb5=no
13823 fi
13824
13825 if test $have_krb5=yes; then
13826 KRB5LIB=-lkrb5
13827 LIBS="$KRB5LIB $LIBS"
13828
13829 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13830
13831 fi
13832 if test "${with_kerberos5}" = no; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13834 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13835 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838 ac_check_lib_save_LIBS=$LIBS
13839 LIBS="-ldes425 $LIBS"
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13842
13843 /* Override any GCC internal prototype to avoid an error.
13844 Use char because int might match the return type of a GCC
13845 builtin and then its argument prototype would still apply. */
13846 #ifdef __cplusplus
13847 extern "C"
13848 #endif
13849 char des_cbc_encrypt ();
13850 int
13851 main ()
13852 {
13853 return des_cbc_encrypt ();
13854 ;
13855 return 0;
13856 }
13857 _ACEOF
13858 if ac_fn_c_try_link "$LINENO"; then :
13859 ac_cv_lib_des425_des_cbc_encrypt=yes
13860 else
13861 ac_cv_lib_des425_des_cbc_encrypt=no
13862 fi
13863 rm -f core conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 LIBS=$ac_check_lib_save_LIBS
13866 fi
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13868 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13869 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13870 have_des425=yes
13871 else
13872 have_des425=no
13873 fi
13874
13875 if test $have_des425 = yes; then
13876 DESLIB=-ldes425
13877 LIBS="$DESLIB $LIBS"
13878
13879 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13880
13881 else
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13883 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13884 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13885 $as_echo_n "(cached) " >&6
13886 else
13887 ac_check_lib_save_LIBS=$LIBS
13888 LIBS="-ldes $LIBS"
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13891
13892 /* Override any GCC internal prototype to avoid an error.
13893 Use char because int might match the return type of a GCC
13894 builtin and then its argument prototype would still apply. */
13895 #ifdef __cplusplus
13896 extern "C"
13897 #endif
13898 char des_cbc_encrypt ();
13899 int
13900 main ()
13901 {
13902 return des_cbc_encrypt ();
13903 ;
13904 return 0;
13905 }
13906 _ACEOF
13907 if ac_fn_c_try_link "$LINENO"; then :
13908 ac_cv_lib_des_des_cbc_encrypt=yes
13909 else
13910 ac_cv_lib_des_des_cbc_encrypt=no
13911 fi
13912 rm -f core conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13914 LIBS=$ac_check_lib_save_LIBS
13915 fi
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13917 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13918 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13919 have_des=yes
13920 else
13921 have_des=no
13922 fi
13923
13924 if test $have_des = yes; then
13925 DESLIB=-ldes
13926 LIBS="$DESLIB $LIBS"
13927
13928 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13929
13930 fi
13931 fi
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13933 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13934 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-lkrb4 $LIBS"
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13945 #ifdef __cplusplus
13946 extern "C"
13947 #endif
13948 char krb_get_cred ();
13949 int
13950 main ()
13951 {
13952 return krb_get_cred ();
13953 ;
13954 return 0;
13955 }
13956 _ACEOF
13957 if ac_fn_c_try_link "$LINENO"; then :
13958 ac_cv_lib_krb4_krb_get_cred=yes
13959 else
13960 ac_cv_lib_krb4_krb_get_cred=no
13961 fi
13962 rm -f core conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13964 LIBS=$ac_check_lib_save_LIBS
13965 fi
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13967 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13968 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13969 have_krb4=yes
13970 else
13971 have_krb4=no
13972 fi
13973
13974 if test $have_krb4 = yes; then
13975 KRB4LIB=-lkrb4
13976 LIBS="$KRB4LIB $LIBS"
13977
13978 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13979
13980 else
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13982 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13983 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13984 $as_echo_n "(cached) " >&6
13985 else
13986 ac_check_lib_save_LIBS=$LIBS
13987 LIBS="-lkrb $LIBS"
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990
13991 /* Override any GCC internal prototype to avoid an error.
13992 Use char because int might match the return type of a GCC
13993 builtin and then its argument prototype would still apply. */
13994 #ifdef __cplusplus
13995 extern "C"
13996 #endif
13997 char krb_get_cred ();
13998 int
13999 main ()
14000 {
14001 return krb_get_cred ();
14002 ;
14003 return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_c_try_link "$LINENO"; then :
14007 ac_cv_lib_krb_krb_get_cred=yes
14008 else
14009 ac_cv_lib_krb_krb_get_cred=no
14010 fi
14011 rm -f core conftest.err conftest.$ac_objext \
14012 conftest$ac_exeext conftest.$ac_ext
14013 LIBS=$ac_check_lib_save_LIBS
14014 fi
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14016 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14017 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14018 have_krb=yes
14019 else
14020 have_krb=no
14021 fi
14022
14023 if test $have_krb = yes; then
14024 KRB4LIB=-lkrb
14025 LIBS="$KRB4LIB $LIBS"
14026
14027 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14028
14029 fi
14030 fi
14031 fi
14032
14033 if test "${with_kerberos5}" != no; then
14034 for ac_header in krb5.h
14035 do :
14036 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14037 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14038 cat >>confdefs.h <<_ACEOF
14039 #define HAVE_KRB5_H 1
14040 _ACEOF
14041 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14042 "
14043 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14044
14045 cat >>confdefs.h <<_ACEOF
14046 #define HAVE_KRB5_ERROR_TEXT 1
14047 _ACEOF
14048
14049
14050 fi
14051 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14052 "
14053 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14054
14055 cat >>confdefs.h <<_ACEOF
14056 #define HAVE_KRB5_ERROR_E_TEXT 1
14057 _ACEOF
14058
14059
14060 fi
14061
14062 fi
14063
14064 done
14065
14066 else
14067 for ac_header in des.h
14068 do :
14069 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14070 if test "x$ac_cv_header_des_h" = x""yes; then :
14071 cat >>confdefs.h <<_ACEOF
14072 #define HAVE_DES_H 1
14073 _ACEOF
14074
14075 else
14076 for ac_header in kerberosIV/des.h
14077 do :
14078 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14079 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14080 cat >>confdefs.h <<_ACEOF
14081 #define HAVE_KERBEROSIV_DES_H 1
14082 _ACEOF
14083
14084 else
14085 for ac_header in kerberos/des.h
14086 do :
14087 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14088 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14089 cat >>confdefs.h <<_ACEOF
14090 #define HAVE_KERBEROS_DES_H 1
14091 _ACEOF
14092
14093 fi
14094
14095 done
14096
14097 fi
14098
14099 done
14100
14101 fi
14102
14103 done
14104
14105 for ac_header in krb.h
14106 do :
14107 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14108 if test "x$ac_cv_header_krb_h" = x""yes; then :
14109 cat >>confdefs.h <<_ACEOF
14110 #define HAVE_KRB_H 1
14111 _ACEOF
14112
14113 else
14114 for ac_header in kerberosIV/krb.h
14115 do :
14116 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14117 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14118 cat >>confdefs.h <<_ACEOF
14119 #define HAVE_KERBEROSIV_KRB_H 1
14120 _ACEOF
14121
14122 else
14123 for ac_header in kerberos/krb.h
14124 do :
14125 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14126 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_KERBEROS_KRB_H 1
14129 _ACEOF
14130
14131 fi
14132
14133 done
14134
14135 fi
14136
14137 done
14138
14139 fi
14140
14141 done
14142
14143 fi
14144 for ac_header in com_err.h
14145 do :
14146 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14147 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14148 cat >>confdefs.h <<_ACEOF
14149 #define HAVE_COM_ERR_H 1
14150 _ACEOF
14151
14152 fi
14153
14154 done
14155
14156 fi
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167 for ac_func in $ac_func_list
14168 do :
14169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14171 eval as_val=\$$as_ac_var
14172 if test "x$as_val" = x""yes; then :
14173 cat >>confdefs.h <<_ACEOF
14174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14175 _ACEOF
14176
14177 fi
14178 done
14179
14180
14181
14182
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14184 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14185 if test "${emacs_cv_localtime_cache+set}" = set; then :
14186 $as_echo_n "(cached) " >&6
14187 else
14188 if test x$ac_cv_func_tzset = xyes; then
14189 if test "$cross_compiling" = yes; then :
14190 # If we have tzset, assume the worst when cross-compiling.
14191 emacs_cv_localtime_cache=yes
14192 else
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195 #include <time.h>
14196 char TZ_GMT0[] = "TZ=GMT0";
14197 char TZ_PST8[] = "TZ=PST8";
14198 main()
14199 {
14200 time_t now = time ((time_t *) 0);
14201 int hour_GMT0, hour_unset;
14202 if (putenv (TZ_GMT0) != 0)
14203 exit (1);
14204 hour_GMT0 = localtime (&now)->tm_hour;
14205 unsetenv("TZ");
14206 hour_unset = localtime (&now)->tm_hour;
14207 if (putenv (TZ_PST8) != 0)
14208 exit (1);
14209 if (localtime (&now)->tm_hour == hour_GMT0)
14210 exit (1);
14211 unsetenv("TZ");
14212 if (localtime (&now)->tm_hour != hour_unset)
14213 exit (1);
14214 exit (0);
14215 }
14216 _ACEOF
14217 if ac_fn_c_try_run "$LINENO"; then :
14218 emacs_cv_localtime_cache=no
14219 else
14220 emacs_cv_localtime_cache=yes
14221 fi
14222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14223 conftest.$ac_objext conftest.beam conftest.$ac_ext
14224 fi
14225
14226 else
14227 # If we lack tzset, report that localtime does not cache TZ,
14228 # since we can't invalidate the cache if we don't have tzset.
14229 emacs_cv_localtime_cache=no
14230 fi
14231 fi
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14233 $as_echo "$emacs_cv_localtime_cache" >&6; }
14234 if test $emacs_cv_localtime_cache = yes; then
14235
14236 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14237
14238 fi
14239
14240 ok_so_far=yes
14241 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14242 if test "x$ac_cv_func_socket" = x""yes; then :
14243
14244 else
14245 ok_so_far=no
14246 fi
14247
14248 if test $ok_so_far = yes; then
14249 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14250 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14251
14252 else
14253 ok_so_far=no
14254 fi
14255
14256
14257 fi
14258 if test $ok_so_far = yes; then
14259 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14260 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14261
14262 else
14263 ok_so_far=no
14264 fi
14265
14266
14267 fi
14268 if test $ok_so_far = yes; then
14269
14270 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14271
14272 fi
14273
14274 if test -f /usr/lpp/X11/bin/smt.exp; then
14275
14276 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14277
14278 fi
14279
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14281 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14282 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14284 $as_echo "yes" >&6; }
14285
14286 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14287
14288 else
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14291 fi
14292
14293 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14294 if test "x$ac_cv_type_pid_t" = x""yes; then :
14295
14296 else
14297
14298 cat >>confdefs.h <<_ACEOF
14299 #define pid_t int
14300 _ACEOF
14301
14302 fi
14303
14304 for ac_header in vfork.h
14305 do :
14306 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14307 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14308 cat >>confdefs.h <<_ACEOF
14309 #define HAVE_VFORK_H 1
14310 _ACEOF
14311
14312 fi
14313
14314 done
14315
14316 for ac_func in fork vfork
14317 do :
14318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14320 eval as_val=\$$as_ac_var
14321 if test "x$as_val" = x""yes; then :
14322 cat >>confdefs.h <<_ACEOF
14323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14324 _ACEOF
14325
14326 fi
14327 done
14328
14329 if test "x$ac_cv_func_fork" = xyes; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14331 $as_echo_n "checking for working fork... " >&6; }
14332 if test "${ac_cv_func_fork_works+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 if test "$cross_compiling" = yes; then :
14336 ac_cv_func_fork_works=cross
14337 else
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340 $ac_includes_default
14341 int
14342 main ()
14343 {
14344
14345 /* By Ruediger Kuhlmann. */
14346 return fork () < 0;
14347
14348 ;
14349 return 0;
14350 }
14351 _ACEOF
14352 if ac_fn_c_try_run "$LINENO"; then :
14353 ac_cv_func_fork_works=yes
14354 else
14355 ac_cv_func_fork_works=no
14356 fi
14357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14358 conftest.$ac_objext conftest.beam conftest.$ac_ext
14359 fi
14360
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14363 $as_echo "$ac_cv_func_fork_works" >&6; }
14364
14365 else
14366 ac_cv_func_fork_works=$ac_cv_func_fork
14367 fi
14368 if test "x$ac_cv_func_fork_works" = xcross; then
14369 case $host in
14370 *-*-amigaos* | *-*-msdosdjgpp*)
14371 # Override, as these systems have only a dummy fork() stub
14372 ac_cv_func_fork_works=no
14373 ;;
14374 *)
14375 ac_cv_func_fork_works=yes
14376 ;;
14377 esac
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14379 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14380 fi
14381 ac_cv_func_vfork_works=$ac_cv_func_vfork
14382 if test "x$ac_cv_func_vfork" = xyes; then
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14384 $as_echo_n "checking for working vfork... " >&6; }
14385 if test "${ac_cv_func_vfork_works+set}" = set; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 if test "$cross_compiling" = yes; then :
14389 ac_cv_func_vfork_works=cross
14390 else
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 /* Thanks to Paul Eggert for this test. */
14394 $ac_includes_default
14395 #include <sys/wait.h>
14396 #ifdef HAVE_VFORK_H
14397 # include <vfork.h>
14398 #endif
14399 /* On some sparc systems, changes by the child to local and incoming
14400 argument registers are propagated back to the parent. The compiler
14401 is told about this with #include <vfork.h>, but some compilers
14402 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14403 static variable whose address is put into a register that is
14404 clobbered by the vfork. */
14405 static void
14406 #ifdef __cplusplus
14407 sparc_address_test (int arg)
14408 # else
14409 sparc_address_test (arg) int arg;
14410 #endif
14411 {
14412 static pid_t child;
14413 if (!child) {
14414 child = vfork ();
14415 if (child < 0) {
14416 perror ("vfork");
14417 _exit(2);
14418 }
14419 if (!child) {
14420 arg = getpid();
14421 write(-1, "", 0);
14422 _exit (arg);
14423 }
14424 }
14425 }
14426
14427 int
14428 main ()
14429 {
14430 pid_t parent = getpid ();
14431 pid_t child;
14432
14433 sparc_address_test (0);
14434
14435 child = vfork ();
14436
14437 if (child == 0) {
14438 /* Here is another test for sparc vfork register problems. This
14439 test uses lots of local variables, at least as many local
14440 variables as main has allocated so far including compiler
14441 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14442 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14443 reuse the register of parent for one of the local variables,
14444 since it will think that parent can't possibly be used any more
14445 in this routine. Assigning to the local variable will thus
14446 munge parent in the parent process. */
14447 pid_t
14448 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14449 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14450 /* Convince the compiler that p..p7 are live; otherwise, it might
14451 use the same hardware register for all 8 local variables. */
14452 if (p != p1 || p != p2 || p != p3 || p != p4
14453 || p != p5 || p != p6 || p != p7)
14454 _exit(1);
14455
14456 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14457 from child file descriptors. If the child closes a descriptor
14458 before it execs or exits, this munges the parent's descriptor
14459 as well. Test for this by closing stdout in the child. */
14460 _exit(close(fileno(stdout)) != 0);
14461 } else {
14462 int status;
14463 struct stat st;
14464
14465 while (wait(&status) != child)
14466 ;
14467 return (
14468 /* Was there some problem with vforking? */
14469 child < 0
14470
14471 /* Did the child fail? (This shouldn't happen.) */
14472 || status
14473
14474 /* Did the vfork/compiler bug occur? */
14475 || parent != getpid()
14476
14477 /* Did the file descriptor bug occur? */
14478 || fstat(fileno(stdout), &st) != 0
14479 );
14480 }
14481 }
14482 _ACEOF
14483 if ac_fn_c_try_run "$LINENO"; then :
14484 ac_cv_func_vfork_works=yes
14485 else
14486 ac_cv_func_vfork_works=no
14487 fi
14488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14489 conftest.$ac_objext conftest.beam conftest.$ac_ext
14490 fi
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14494 $as_echo "$ac_cv_func_vfork_works" >&6; }
14495
14496 fi;
14497 if test "x$ac_cv_func_fork_works" = xcross; then
14498 ac_cv_func_vfork_works=$ac_cv_func_vfork
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14500 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14501 fi
14502
14503 if test "x$ac_cv_func_vfork_works" = xyes; then
14504
14505 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14506
14507 else
14508
14509 $as_echo "#define vfork fork" >>confdefs.h
14510
14511 fi
14512 if test "x$ac_cv_func_fork_works" = xyes; then
14513
14514 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14515
14516 fi
14517
14518
14519 for ac_func in snprintf
14520 do :
14521 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14522 if test "x$ac_cv_func_snprintf" = x""yes; then :
14523 cat >>confdefs.h <<_ACEOF
14524 #define HAVE_SNPRINTF 1
14525 _ACEOF
14526
14527 fi
14528 done
14529
14530
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14532 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14533 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14534 $as_echo_n "(cached) " >&6
14535 else
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 #include <langinfo.h>
14539 int
14540 main ()
14541 {
14542 char* cs = nl_langinfo(CODESET);
14543 ;
14544 return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_link "$LINENO"; then :
14548 emacs_cv_langinfo_codeset=yes
14549 else
14550 emacs_cv_langinfo_codeset=no
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext \
14553 conftest$ac_exeext conftest.$ac_ext
14554
14555 fi
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14557 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14558 if test $emacs_cv_langinfo_codeset = yes; then
14559
14560 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14561
14562 fi
14563
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14565 $as_echo_n "checking for mbstate_t... " >&6; }
14566 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14571 $ac_includes_default
14572 # include <wchar.h>
14573 int
14574 main ()
14575 {
14576 mbstate_t x; return sizeof x;
14577 ;
14578 return 0;
14579 }
14580 _ACEOF
14581 if ac_fn_c_try_compile "$LINENO"; then :
14582 ac_cv_type_mbstate_t=yes
14583 else
14584 ac_cv_type_mbstate_t=no
14585 fi
14586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14587 fi
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14589 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14590 if test $ac_cv_type_mbstate_t = yes; then
14591
14592 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14593
14594 else
14595
14596 $as_echo "#define mbstate_t int" >>confdefs.h
14597
14598 fi
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14601 $as_echo_n "checking for C restricted array declarations... " >&6; }
14602 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14607 void fred (int x[__restrict]);
14608 int
14609 main ()
14610 {
14611
14612 ;
14613 return 0;
14614 }
14615 _ACEOF
14616 if ac_fn_c_try_compile "$LINENO"; then :
14617 emacs_cv_c_restrict_arr=yes
14618 else
14619 emacs_cv_c_restrict_arr=no
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14624 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14625 if test "$emacs_cv_c_restrict_arr" = yes; then
14626
14627 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14628
14629 fi
14630
14631
14632
14633 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14634
14635
14636 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14637
14638 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14639
14640
14641
14642 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14643
14644
14645
14646
14647
14648 case $opsys in
14649 aix4-2)
14650 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
14651 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14652
14653 fi
14654 ;;
14655
14656 hpux*)
14657 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14658
14659 ;;
14660 esac
14661
14662
14663 case $opsys in
14664 darwin | gnu | hpux* | *bsd )
14665
14666 $as_echo "#define NO_TERMIO 1" >>confdefs.h
14667
14668 ;;
14669
14670 irix6-5 | sol2* | unixware )
14671
14672 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14673
14674 ;;
14675 esac
14676
14677
14678 case $opsys in
14679 hpux* | irix6-5 | openbsd | sol2* | unixware )
14680
14681 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
14682
14683 ;;
14684
14685 aix4-2)
14686
14687 $as_echo "#define BROKEN_FIONREAD 1" >>confdefs.h
14688
14689
14690 $as_echo "#define BROKEN_SIGAIO 1" >>confdefs.h
14691
14692
14693 $as_echo "#define BROKEN_SIGPOLL 1" >>confdefs.h
14694
14695
14696 $as_echo "#define BROKEN_SIGPTY 1" >>confdefs.h
14697
14698
14699
14700 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14701
14702 ;;
14703
14704 freebsd)
14705
14706 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14707
14708 ;;
14709
14710 darwin)
14711
14712 $as_echo "#define NO_ABORT 1" >>confdefs.h
14713
14714 ;;
14715 esac
14716
14717 case $opsys in
14718 gnu-* | sol2-10 )
14719
14720 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14721
14722 ;;
14723 esac
14724
14725 case $opsys in
14726 darwin | freebsd | netbsd | openbsd )
14727
14728 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14729
14730 ;;
14731 esac
14732
14733 case $opsys in
14734 netbsd | openbsd) sound_device="/dev/audio" ;;
14735 *) sound_device="/dev/dsp" ;;
14736 esac
14737
14738
14739 cat >>confdefs.h <<_ACEOF
14740 #define DEFAULT_SOUND_DEVICE "$sound_device"
14741 _ACEOF
14742
14743
14744
14745 case $opsys in
14746 darwin | gnu-linux | gnu-kfreebsd )
14747
14748 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14749
14750 ;;
14751 esac
14752
14753
14754 case $opsys in
14755 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
14756
14757 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14758
14759 ;;
14760 esac
14761
14762
14763
14764
14765
14766
14767
14768
14769 case $opsys in
14770 aix4-2 )
14771 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++) " >>confdefs.h
14772
14773 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\"); " >>confdefs.h
14774
14775 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd)); " >>confdefs.h
14776
14777 ;;
14778
14779 cygwin )
14780 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++) " >>confdefs.h
14781
14782 $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
14783
14784 $as_echo "#define PTY_NAME_SPRINTF " >>confdefs.h
14785
14786 $as_echo "#define PTY_TTY_NAME_SPRINTF " >>confdefs.h
14787
14788 ;;
14789
14790 darwin )
14791 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++) " >>confdefs.h
14792
14793 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14794
14795 $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
14796
14797 $as_echo "#define PTY_NAME_SPRINTF " >>confdefs.h
14798
14799 $as_echo "#define PTY_TTY_NAME_SPRINTF " >>confdefs.h
14800
14801 ;;
14802
14803 gnu | freebsd | netbsd | openbsd )
14804 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14805
14806 ;;
14807
14808 gnu-linux | gnu-kfreebsd )
14809 if test "x$ac_cv_func_grantpt" = xyes; then
14810
14811 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
14812
14813 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++) " >>confdefs.h
14814
14815 $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
14816
14817 if test "x$ac_cv_func_getpt" = xyes; then
14818 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
14819
14820 $as_echo "#define PTY_NAME_SPRINTF " >>confdefs.h
14821
14822 else
14823 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\"); " >>confdefs.h
14824
14825 fi
14826 else
14827 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14828
14829 fi
14830 ;;
14831
14832 hpux*)
14833 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14834
14835 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i); " >>confdefs.h
14836
14837 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i); " >>confdefs.h
14838
14839 ;;
14840
14841 irix6-5 )
14842 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
14843
14844 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
14845
14846 $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
14847
14848 $as_echo "#define PTY_NAME_SPRINTF " >>confdefs.h
14849
14850 $as_echo "#define PTY_TTY_NAME_SPRINTF " >>confdefs.h
14851
14852 ;;
14853
14854 sol2* )
14855 $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
14856
14857 ;;
14858
14859 unixware )
14860 $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
14861
14862 ;;
14863 esac
14864
14865
14866 case $opsys in
14867 sol2* | unixware )
14868 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
14869
14870 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\"); " >>confdefs.h
14871
14872
14873 $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
14874
14875 ;;
14876 esac
14877
14878
14879
14880
14881 case $opsys in
14882 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
14883 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
14884
14885 ;;
14886
14887 gnu-linux | gnu-kfreebsd )
14888
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
14890 $as_echo_n "checking for signals via characters... " >&6; }
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893
14894 #include <linux/version.h>
14895 #if LINUX_VERSION_CODE < 0x20400
14896 # error "Linux version too old"
14897 #endif
14898
14899 int
14900 main ()
14901 {
14902
14903 ;
14904 return 0;
14905 }
14906 _ACEOF
14907 if ac_fn_c_try_cpp "$LINENO"; then :
14908 emacs_signals_via_chars=yes
14909 else
14910 emacs_signals_via_chars=no
14911 fi
14912 rm -f conftest.err conftest.$ac_ext
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
14915 $as_echo "$emacs_signals_via_chars" >&6; }
14916 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
14917
14918 ;;
14919 esac
14920
14921
14922
14923
14924
14925
14926 case $opsys in
14927 cygwin | darwin | freebsd | netbsd | openbsd )
14928 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
14929
14930 ;;
14931
14932 unixware)
14933 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
14934
14935 ;;
14936
14937 gnu | gnu-linux | gnu-kfreebsd )
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
14939 $as_echo_n "checking for style of pending output formalism... " >&6; }
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942
14943 #include <stdio.h>
14944 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
14945 # error "stdio definitions not found"
14946 #endif
14947
14948 int
14949 main ()
14950 {
14951
14952 ;
14953 return 0;
14954 }
14955 _ACEOF
14956 if ac_fn_c_try_cpp "$LINENO"; then :
14957 emacs_pending_output=new
14958 else
14959 emacs_pending_output=unknown
14960 fi
14961 rm -f conftest.err conftest.$ac_ext
14962
14963 if test $emacs_pending_output = unknown; then
14964 case $opsys in
14965 gnu-linux | gnu-kfreebsd)
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968
14969 #include <stdio.h>
14970 #ifndef __UCLIBC__
14971 # error "not using uclibc"
14972 #endif
14973
14974 int
14975 main ()
14976 {
14977
14978 ;
14979 return 0;
14980 }
14981 _ACEOF
14982 if ac_fn_c_try_cpp "$LINENO"; then :
14983 emacs_pending_output=uclibc
14984 else
14985 emacs_pending_output=old
14986 fi
14987 rm -f conftest.err conftest.$ac_ext
14988 ;;
14989 esac
14990 fi
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
14993 $as_echo "$emacs_pending_output" >&6; }
14994
14995 case $emacs_pending_output in
14996 new)
14997 $as_echo "#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
14998
14999 ;;
15000 uclibc)
15001 $as_echo "#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15002
15003 ;;
15004 old)
15005 $as_echo "#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15006
15007 ;;
15008 esac
15009 ;;
15010 esac
15011
15012
15013
15014
15015
15016 case $opsys in
15017 gnu)
15018 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15019
15020 ;;
15021
15022 hpux*)
15023 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15024
15025 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15026
15027 ;;
15028 irix6-5)
15029 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15030
15031 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15032
15033 ;;
15034 esac
15035
15036
15037
15038
15039
15040 case $opsys in
15041 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15042 ;;
15043
15044 gnu | freebsd | netbsd | openbsd )
15045
15046 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15047
15048 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15049
15050 ;;
15051
15052 gnu-linux | gnu-kfreebsd )
15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15055
15056 #ifndef __i386__
15057 # error "not i386"
15058 #endif
15059
15060 int
15061 main ()
15062 {
15063
15064 ;
15065 return 0;
15066 }
15067 _ACEOF
15068 if ac_fn_c_try_cpp "$LINENO"; then :
15069 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15070
15071 fi
15072 rm -f conftest.err conftest.$ac_ext
15073
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15076
15077 #ifndef __ia64__
15078 # error "not ia64"
15079 #endif
15080
15081 int
15082 main ()
15083 {
15084
15085 ;
15086 return 0;
15087 }
15088 _ACEOF
15089 if ac_fn_c_try_cpp "$LINENO"; then :
15090
15091 $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
15092
15093 fi
15094 rm -f conftest.err conftest.$ac_ext
15095 ;;
15096
15097 hpux*)
15098
15099 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15100
15101 ;;
15102
15103 irix6-5)
15104 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15105
15106 ;;
15107 esac
15108
15109
15110
15111
15112
15113
15114
15115 case $opsys in
15116 aix4-2 | hpux* | unixware)
15117 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15118
15119 ;;
15120
15121 gnu-linux | gnu-kfreebsd )
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15124
15125 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15126 || defined __alpha__ || defined __mips__ || defined __s390__ \
15127 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15128 || defined __ia64__ || defined __sh__
15129 /* ok */
15130 #else
15131 # error "setjmp not known to work on this arch"
15132 #endif
15133
15134 int
15135 main ()
15136 {
15137
15138 ;
15139 return 0;
15140 }
15141 _ACEOF
15142 if ac_fn_c_try_cpp "$LINENO"; then :
15143 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15144
15145 else
15146 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15147
15148 fi
15149 rm -f conftest.err conftest.$ac_ext
15150 ;;
15151 esac
15152
15153
15154 if test x$GCC = xyes; then
15155 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15156
15157 else
15158 case $opsys in
15159 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15160 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15161
15162 ;;
15163 esac
15164 fi
15165
15166 case $opsys in
15167 hpux* | sol2* )
15168
15169 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15170
15171 ;;
15172 esac
15173
15174
15175
15176
15177
15178
15179
15180 case $opsys in
15181 aix4-2)
15182 $as_echo "#define USG /**/" >>confdefs.h
15183
15184 $as_echo "#define USG5 /**/" >>confdefs.h
15185
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188
15189 #ifndef _AIX
15190 # error "_AIX not defined"
15191 #endif
15192
15193 int
15194 main ()
15195 {
15196
15197 ;
15198 return 0;
15199 }
15200 _ACEOF
15201 if ac_fn_c_try_cpp "$LINENO"; then :
15202
15203 else
15204
15205 $as_echo "#define _AIX /**/" >>confdefs.h
15206
15207 fi
15208 rm -f conftest.err conftest.$ac_ext
15209 ;;
15210
15211 cygwin)
15212 opsysfile=
15213
15214 $as_echo "#define CYGWIN 1" >>confdefs.h
15215
15216 ;;
15217
15218 darwin)
15219 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15220
15221 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15222
15223
15224 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15225
15226 ;;
15227
15228 freebsd)
15229 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15230
15231
15232 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15233
15234 ;;
15235
15236 gnu | netbsd | openbsd )
15237 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15238
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241
15242 #ifndef BSD_SYSTEM
15243 # error "BSD_SYSTEM not defined"
15244 #endif
15245
15246 int
15247 main ()
15248 {
15249
15250 ;
15251 return 0;
15252 }
15253 _ACEOF
15254 if ac_fn_c_try_cpp "$LINENO"; then :
15255
15256 else
15257 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15258
15259 fi
15260 rm -f conftest.err conftest.$ac_ext
15261 ;;
15262
15263 gnu-linux | gnu-kfreebsd )
15264 $as_echo "#define USG /**/" >>confdefs.h
15265
15266
15267 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15268
15269 ;;
15270
15271 hpux*)
15272 $as_echo "#define USG /**/" >>confdefs.h
15273
15274 $as_echo "#define USG5 /**/" >>confdefs.h
15275
15276
15277 $as_echo "#define HPUX /**/" >>confdefs.h
15278
15279 ;;
15280
15281 irix6-5)
15282 $as_echo "#define USG /**/" >>confdefs.h
15283
15284 $as_echo "#define USG5 /**/" >>confdefs.h
15285
15286
15287 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15288
15289 ;;
15290
15291 sol2*)
15292 $as_echo "#define USG /**/" >>confdefs.h
15293
15294 $as_echo "#define USG5 /**/" >>confdefs.h
15295
15296
15297 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15298
15299 ;;
15300
15301 unixware)
15302 $as_echo "#define USG /**/" >>confdefs.h
15303
15304 $as_echo "#define USG5 /**/" >>confdefs.h
15305
15306 ;;
15307 esac
15308
15309
15310 case $opsys in
15311 cygwin)
15312
15313 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15314
15315 ;;
15316
15317 gnu) opsysfile= ;;
15318
15319 gnu-kfreebsd) opsysfile="s/gnu-linux.h" ;;
15320
15321 hpux11)
15322
15323 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
15324
15325
15326 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15327
15328
15329 opsysfile="s/hpux10-20.h"
15330 ;;
15331
15332 irix6-5)
15333
15334 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15335
15336
15337 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15338
15339 ;;
15340
15341 openbsd) opsysfile="s/netbsd.h" ;;
15342
15343 sol2-10)
15344
15345 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15346
15347 opsysfile="s/sol2-6.h"
15348 ;;
15349 esac
15350
15351 # Set up the CFLAGS for real compilation, so we can substitute it.
15352 CFLAGS="$REAL_CFLAGS"
15353 CPPFLAGS="$REAL_CPPFLAGS"
15354
15355 ## Hack to detect a buggy GCC version.
15356 if test "x$GCC" = xyes \
15357 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15358 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15359 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15360 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15361 fi
15362
15363 version=$PACKAGE_VERSION
15364
15365 ### Specify what sort of things we'll be editing into Makefile and config.h.
15366 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15367
15368
15369 ## Unused?
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15393 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15394 ## end of LIBX_BASE, but nothing ever set it.
15395
15396
15397
15398
15399 ## Used in lwlib/Makefile.in.
15400
15401 if test -n "${opsysfile}"; then
15402 S_FILE="\$(srcdir)/${opsysfile}"
15403 else
15404 S_FILE=
15405 fi
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415 cat >>confdefs.h <<_ACEOF
15416 #define EMACS_CONFIGURATION "${canonical}"
15417 _ACEOF
15418
15419
15420 cat >>confdefs.h <<_ACEOF
15421 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15422 _ACEOF
15423
15424 if test -n "$opsysfile"; then
15425
15426 cat >>confdefs.h <<_ACEOF
15427 #define config_opsysfile "${opsysfile}"
15428 _ACEOF
15429
15430 fi
15431
15432 XMENU_OBJ=
15433 XOBJ=
15434 FONT_OBJ=
15435 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15436
15437 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15438
15439 XMENU_OBJ=xmenu.o
15440 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15441 FONT_OBJ=xfont.o
15442 if test "$HAVE_XFT" = "yes"; then
15443 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15444 elif test "$HAVE_FREETYPE" = "yes"; then
15445 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15446 fi
15447
15448 fi
15449
15450
15451
15452
15453 WIDGET_OBJ=
15454 MOTIF_LIBW=
15455 if test "${USE_X_TOOLKIT}" != "none" ; then
15456 WIDGET_OBJ=widget.o
15457
15458 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15459
15460 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15461
15462 $as_echo "#define USE_LUCID 1" >>confdefs.h
15463
15464 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15465
15466 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15467
15468 MOTIF_LIBW=-lXm
15469 case "$opsys" in
15470 gnu-linux)
15471 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15472 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15473 ;;
15474
15475 unixware)
15476 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15477 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15478 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15479 ;;
15480
15481 aix4-2)
15482 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15483 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15484 ;;
15485 esac
15486 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15487 fi
15488 fi
15489
15490
15491 TOOLKIT_LIBW=
15492 case "$USE_X_TOOLKIT" in
15493 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15494 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15495 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15496 esac
15497
15498
15499 if test "$USE_X_TOOLKIT" = "none"; then
15500 LIBXT_OTHER="\$(LIBXSM)"
15501 OLDXMENU_TARGET="really-oldXMenu"
15502 else
15503 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15504 OLDXMENU_TARGET="really-lwlib"
15505 fi
15506
15507
15508 ## The X Menu stuff is present in the X10 distribution, but missing
15509 ## from X11. If we have X10, just use the installed library;
15510 ## otherwise, use our own copy.
15511 if test "${HAVE_X11}" = "yes" ; then
15512
15513 $as_echo "#define HAVE_X11 1" >>confdefs.h
15514
15515
15516 if test "$USE_X_TOOLKIT" = "none"; then
15517 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15518 else
15519 OLDXMENU="\${lwlibdir}/liblw.a"
15520 fi
15521 LIBXMENU="\$(OLDXMENU)"
15522 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15523 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15524 else
15525 ## For a syntactically valid Makefile; not actually used for anything.
15526 ## See comments in src/Makefile.in.
15527 OLDXMENU=nothing
15528 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15529 if test "${HAVE_X_WINDOWS}" = "yes"; then
15530 LIBXMENU="-lXMenu"
15531 else
15532 LIBXMENU=
15533 fi
15534 LIBX_OTHER=
15535 OLDXMENU_DEPS=
15536 fi
15537
15538 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15539 OLDXMENU_TARGET=
15540 OLDXMENU=nothing
15541 LIBXMENU=
15542 OLDXMENU_DEPS=
15543 fi
15544
15545
15546
15547
15548
15549
15550
15551 if test "${HAVE_MENUS}" = "yes" ; then
15552
15553 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15554
15555 fi
15556
15557 if test "${GNU_MALLOC}" = "yes" ; then
15558
15559 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15560
15561 fi
15562
15563 RALLOC_OBJ=
15564 if test "${REL_ALLOC}" = "yes" ; then
15565
15566 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15567
15568
15569 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15570 fi
15571
15572
15573 if test "$opsys" = "cygwin"; then
15574 CYGWIN_OBJ="sheap.o"
15575 ## Cygwin differs because of its unexec().
15576 PRE_ALLOC_OBJ=
15577 POST_ALLOC_OBJ=lastfile.o
15578 else
15579 CYGWIN_OBJ=
15580 PRE_ALLOC_OBJ=lastfile.o
15581 POST_ALLOC_OBJ=
15582 fi
15583
15584
15585
15586
15587 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
15588 # it temporarily reverts them to their pre-pkg-config values,
15589 # because gnulib needs to work with both src (which uses the
15590 # pkg-config stuff) and lib-src (which does not). For example, gnulib
15591 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
15592 # and it therefore needs to run in an environment where LIBS does not
15593 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
15594 # for some package unrelated to lib-src.
15595 SAVE_CFLAGS=$CFLAGS
15596 SAVE_LIBS=$LIBS
15597 CFLAGS=$pre_PKG_CONFIG_CFLAGS
15598 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610 LIBC_FATAL_STDERR_=1
15611 export LIBC_FATAL_STDERR_
15612
15613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15614 # for constant arguments. Useless!
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15616 $as_echo_n "checking for working alloca.h... " >&6; }
15617 if test "${ac_cv_working_alloca_h+set}" = set; then :
15618 $as_echo_n "(cached) " >&6
15619 else
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622 #include <alloca.h>
15623 int
15624 main ()
15625 {
15626 char *p = (char *) alloca (2 * sizeof (int));
15627 if (p) return 0;
15628 ;
15629 return 0;
15630 }
15631 _ACEOF
15632 if ac_fn_c_try_link "$LINENO"; then :
15633 ac_cv_working_alloca_h=yes
15634 else
15635 ac_cv_working_alloca_h=no
15636 fi
15637 rm -f core conftest.err conftest.$ac_objext \
15638 conftest$ac_exeext conftest.$ac_ext
15639 fi
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15641 $as_echo "$ac_cv_working_alloca_h" >&6; }
15642 if test $ac_cv_working_alloca_h = yes; then
15643
15644 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15645
15646 fi
15647
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15649 $as_echo_n "checking for alloca... " >&6; }
15650 if test "${ac_cv_func_alloca_works+set}" = set; then :
15651 $as_echo_n "(cached) " >&6
15652 else
15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15655 #ifdef __GNUC__
15656 # define alloca __builtin_alloca
15657 #else
15658 # ifdef _MSC_VER
15659 # include <malloc.h>
15660 # define alloca _alloca
15661 # else
15662 # ifdef HAVE_ALLOCA_H
15663 # include <alloca.h>
15664 # else
15665 # ifdef _AIX
15666 #pragma alloca
15667 # else
15668 # ifndef alloca /* predefined by HP cc +Olibcalls */
15669 char *alloca ();
15670 # endif
15671 # endif
15672 # endif
15673 # endif
15674 #endif
15675
15676 int
15677 main ()
15678 {
15679 char *p = (char *) alloca (1);
15680 if (p) return 0;
15681 ;
15682 return 0;
15683 }
15684 _ACEOF
15685 if ac_fn_c_try_link "$LINENO"; then :
15686 ac_cv_func_alloca_works=yes
15687 else
15688 ac_cv_func_alloca_works=no
15689 fi
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
15692 fi
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15694 $as_echo "$ac_cv_func_alloca_works" >&6; }
15695
15696 if test $ac_cv_func_alloca_works = yes; then
15697
15698 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15699
15700 else
15701 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15702 # that cause trouble. Some versions do not even contain alloca or
15703 # contain a buggy version. If you still want to use their alloca,
15704 # use ar to extract alloca.o from them instead of compiling alloca.c.
15705
15706
15707
15708
15709
15710 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15711
15712 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15713
15714
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15716 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15717 if test "${ac_cv_os_cray+set}" = set; then :
15718 $as_echo_n "(cached) " >&6
15719 else
15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h. */
15722 #if defined CRAY && ! defined CRAY2
15723 webecray
15724 #else
15725 wenotbecray
15726 #endif
15727
15728 _ACEOF
15729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15730 $EGREP "webecray" >/dev/null 2>&1; then :
15731 ac_cv_os_cray=yes
15732 else
15733 ac_cv_os_cray=no
15734 fi
15735 rm -f conftest*
15736
15737 fi
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15739 $as_echo "$ac_cv_os_cray" >&6; }
15740 if test $ac_cv_os_cray = yes; then
15741 for ac_func in _getb67 GETB67 getb67; do
15742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15743 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15744 eval as_val=\$$as_ac_var
15745 if test "x$as_val" = x""yes; then :
15746
15747 cat >>confdefs.h <<_ACEOF
15748 #define CRAY_STACKSEG_END $ac_func
15749 _ACEOF
15750
15751 break
15752 fi
15753
15754 done
15755 fi
15756
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15758 $as_echo_n "checking stack direction for C alloca... " >&6; }
15759 if test "${ac_cv_c_stack_direction+set}" = set; then :
15760 $as_echo_n "(cached) " >&6
15761 else
15762 if test "$cross_compiling" = yes; then :
15763 ac_cv_c_stack_direction=0
15764 else
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767 $ac_includes_default
15768 int
15769 find_stack_direction (int *addr, int depth)
15770 {
15771 int dir, dummy = 0;
15772 if (! addr)
15773 addr = &dummy;
15774 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15775 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15776 return dir + dummy;
15777 }
15778
15779 int
15780 main (int argc, char **argv)
15781 {
15782 return find_stack_direction (0, argc + !argv + 20) < 0;
15783 }
15784 _ACEOF
15785 if ac_fn_c_try_run "$LINENO"; then :
15786 ac_cv_c_stack_direction=1
15787 else
15788 ac_cv_c_stack_direction=-1
15789 fi
15790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15791 conftest.$ac_objext conftest.beam conftest.$ac_ext
15792 fi
15793
15794 fi
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15796 $as_echo "$ac_cv_c_stack_direction" >&6; }
15797 cat >>confdefs.h <<_ACEOF
15798 #define STACK_DIRECTION $ac_cv_c_stack_direction
15799 _ACEOF
15800
15801
15802 fi
15803
15804
15805
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15808 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15809 if test "${ac_cv_c_bigendian+set}" = set; then :
15810 $as_echo_n "(cached) " >&6
15811 else
15812 ac_cv_c_bigendian=unknown
15813 # See if we're dealing with a universal compiler.
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 #ifndef __APPLE_CC__
15817 not a universal capable compiler
15818 #endif
15819 typedef int dummy;
15820
15821 _ACEOF
15822 if ac_fn_c_try_compile "$LINENO"; then :
15823
15824 # Check for potential -arch flags. It is not universal unless
15825 # there are at least two -arch flags with different values.
15826 ac_arch=
15827 ac_prev=
15828 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15829 if test -n "$ac_prev"; then
15830 case $ac_word in
15831 i?86 | x86_64 | ppc | ppc64)
15832 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15833 ac_arch=$ac_word
15834 else
15835 ac_cv_c_bigendian=universal
15836 break
15837 fi
15838 ;;
15839 esac
15840 ac_prev=
15841 elif test "x$ac_word" = "x-arch"; then
15842 ac_prev=arch
15843 fi
15844 done
15845 fi
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 if test $ac_cv_c_bigendian = unknown; then
15848 # See if sys/param.h defines the BYTE_ORDER macro.
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851 #include <sys/types.h>
15852 #include <sys/param.h>
15853
15854 int
15855 main ()
15856 {
15857 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15858 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15859 && LITTLE_ENDIAN)
15860 bogus endian macros
15861 #endif
15862
15863 ;
15864 return 0;
15865 }
15866 _ACEOF
15867 if ac_fn_c_try_compile "$LINENO"; then :
15868 # It does; now see whether it defined to BIG_ENDIAN or not.
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15871 #include <sys/types.h>
15872 #include <sys/param.h>
15873
15874 int
15875 main ()
15876 {
15877 #if BYTE_ORDER != BIG_ENDIAN
15878 not big endian
15879 #endif
15880
15881 ;
15882 return 0;
15883 }
15884 _ACEOF
15885 if ac_fn_c_try_compile "$LINENO"; then :
15886 ac_cv_c_bigendian=yes
15887 else
15888 ac_cv_c_bigendian=no
15889 fi
15890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 fi
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893 fi
15894 if test $ac_cv_c_bigendian = unknown; then
15895 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 #include <limits.h>
15899
15900 int
15901 main ()
15902 {
15903 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15904 bogus endian macros
15905 #endif
15906
15907 ;
15908 return 0;
15909 }
15910 _ACEOF
15911 if ac_fn_c_try_compile "$LINENO"; then :
15912 # It does; now see whether it defined to _BIG_ENDIAN or not.
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 #include <limits.h>
15916
15917 int
15918 main ()
15919 {
15920 #ifndef _BIG_ENDIAN
15921 not big endian
15922 #endif
15923
15924 ;
15925 return 0;
15926 }
15927 _ACEOF
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929 ac_cv_c_bigendian=yes
15930 else
15931 ac_cv_c_bigendian=no
15932 fi
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 fi
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936 fi
15937 if test $ac_cv_c_bigendian = unknown; then
15938 # Compile a test program.
15939 if test "$cross_compiling" = yes; then :
15940 # Try to guess by grepping values from an object file.
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 short int ascii_mm[] =
15944 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15945 short int ascii_ii[] =
15946 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15947 int use_ascii (int i) {
15948 return ascii_mm[i] + ascii_ii[i];
15949 }
15950 short int ebcdic_ii[] =
15951 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15952 short int ebcdic_mm[] =
15953 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15954 int use_ebcdic (int i) {
15955 return ebcdic_mm[i] + ebcdic_ii[i];
15956 }
15957 extern int foo;
15958
15959 int
15960 main ()
15961 {
15962 return use_ascii (foo) == use_ebcdic (foo);
15963 ;
15964 return 0;
15965 }
15966 _ACEOF
15967 if ac_fn_c_try_compile "$LINENO"; then :
15968 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15969 ac_cv_c_bigendian=yes
15970 fi
15971 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15972 if test "$ac_cv_c_bigendian" = unknown; then
15973 ac_cv_c_bigendian=no
15974 else
15975 # finding both strings is unlikely to happen, but who knows?
15976 ac_cv_c_bigendian=unknown
15977 fi
15978 fi
15979 fi
15980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981 else
15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15984 $ac_includes_default
15985 int
15986 main ()
15987 {
15988
15989 /* Are we little or big endian? From Harbison&Steele. */
15990 union
15991 {
15992 long int l;
15993 char c[sizeof (long int)];
15994 } u;
15995 u.l = 1;
15996 return u.c[sizeof (long int) - 1] == 1;
15997
15998 ;
15999 return 0;
16000 }
16001 _ACEOF
16002 if ac_fn_c_try_run "$LINENO"; then :
16003 ac_cv_c_bigendian=no
16004 else
16005 ac_cv_c_bigendian=yes
16006 fi
16007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16008 conftest.$ac_objext conftest.beam conftest.$ac_ext
16009 fi
16010
16011 fi
16012 fi
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16014 $as_echo "$ac_cv_c_bigendian" >&6; }
16015 case $ac_cv_c_bigendian in #(
16016 yes)
16017 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16018 ;; #(
16019 no)
16020 ;; #(
16021 universal)
16022
16023 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16024
16025 ;; #(
16026 *)
16027 as_fn_error "unknown endianness
16028 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16029 esac
16030
16031
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16033 $as_echo_n "checking for inline... " >&6; }
16034 if test "${ac_cv_c_inline+set}" = set; then :
16035 $as_echo_n "(cached) " >&6
16036 else
16037 ac_cv_c_inline=no
16038 for ac_kw in inline __inline__ __inline; do
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16041 #ifndef __cplusplus
16042 typedef int foo_t;
16043 static $ac_kw foo_t static_foo () {return 0; }
16044 $ac_kw foo_t foo () {return 0; }
16045 #endif
16046
16047 _ACEOF
16048 if ac_fn_c_try_compile "$LINENO"; then :
16049 ac_cv_c_inline=$ac_kw
16050 fi
16051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16052 test "$ac_cv_c_inline" != no && break
16053 done
16054
16055 fi
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16057 $as_echo "$ac_cv_c_inline" >&6; }
16058
16059 case $ac_cv_c_inline in
16060 inline | yes) ;;
16061 *)
16062 case $ac_cv_c_inline in
16063 no) ac_val=;;
16064 *) ac_val=$ac_cv_c_inline;;
16065 esac
16066 cat >>confdefs.h <<_ACEOF
16067 #ifndef __cplusplus
16068 #define inline $ac_val
16069 #endif
16070 _ACEOF
16071 ;;
16072 esac
16073
16074
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16076 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16077 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16078 $as_echo_n "(cached) " >&6
16079 else
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 /* On HP-UX before 11.23, strtold returns a struct instead of
16083 long double. Reject implementations like that, by requiring
16084 compatibility with the C99 prototype. */
16085 #include <stdlib.h>
16086 static long double (*p) (char const *, char **) = strtold;
16087 static long double
16088 test (char const *nptr, char **endptr)
16089 {
16090 long double r;
16091 r = strtold (nptr, endptr);
16092 return r;
16093 }
16094 int
16095 main ()
16096 {
16097 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16098 ;
16099 return 0;
16100 }
16101 _ACEOF
16102 if ac_fn_c_try_link "$LINENO"; then :
16103 gl_cv_func_c99_strtold=yes
16104 else
16105 gl_cv_func_c99_strtold=no
16106 fi
16107 rm -f core conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
16109 fi
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16111 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16112 if test $gl_cv_func_c99_strtold = yes; then
16113
16114 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16115
16116 fi
16117
16118
16119 GNULIB_CHDIR=0;
16120 GNULIB_CHOWN=0;
16121 GNULIB_CLOSE=0;
16122 GNULIB_DUP=0;
16123 GNULIB_DUP2=0;
16124 GNULIB_DUP3=0;
16125 GNULIB_ENVIRON=0;
16126 GNULIB_EUIDACCESS=0;
16127 GNULIB_FACCESSAT=0;
16128 GNULIB_FCHDIR=0;
16129 GNULIB_FCHOWNAT=0;
16130 GNULIB_FDATASYNC=0;
16131 GNULIB_FSYNC=0;
16132 GNULIB_FTRUNCATE=0;
16133 GNULIB_GETCWD=0;
16134 GNULIB_GETDOMAINNAME=0;
16135 GNULIB_GETDTABLESIZE=0;
16136 GNULIB_GETGROUPS=0;
16137 GNULIB_GETHOSTNAME=0;
16138 GNULIB_GETLOGIN=0;
16139 GNULIB_GETLOGIN_R=0;
16140 GNULIB_GETPAGESIZE=0;
16141 GNULIB_GETUSERSHELL=0;
16142 GNULIB_GROUP_MEMBER=0;
16143 GNULIB_ISATTY=0;
16144 GNULIB_LCHOWN=0;
16145 GNULIB_LINK=0;
16146 GNULIB_LINKAT=0;
16147 GNULIB_LSEEK=0;
16148 GNULIB_PIPE=0;
16149 GNULIB_PIPE2=0;
16150 GNULIB_PREAD=0;
16151 GNULIB_PWRITE=0;
16152 GNULIB_READ=0;
16153 GNULIB_READLINK=0;
16154 GNULIB_READLINKAT=0;
16155 GNULIB_RMDIR=0;
16156 GNULIB_SETHOSTNAME=0;
16157 GNULIB_SLEEP=0;
16158 GNULIB_SYMLINK=0;
16159 GNULIB_SYMLINKAT=0;
16160 GNULIB_TTYNAME_R=0;
16161 GNULIB_UNISTD_H_NONBLOCKING=0;
16162 GNULIB_UNISTD_H_SIGPIPE=0;
16163 GNULIB_UNLINK=0;
16164 GNULIB_UNLINKAT=0;
16165 GNULIB_USLEEP=0;
16166 GNULIB_WRITE=0;
16167 HAVE_CHOWN=1;
16168 HAVE_DUP2=1;
16169 HAVE_DUP3=1;
16170 HAVE_EUIDACCESS=1;
16171 HAVE_FACCESSAT=1;
16172 HAVE_FCHDIR=1;
16173 HAVE_FCHOWNAT=1;
16174 HAVE_FDATASYNC=1;
16175 HAVE_FSYNC=1;
16176 HAVE_FTRUNCATE=1;
16177 HAVE_GETDTABLESIZE=1;
16178 HAVE_GETGROUPS=1;
16179 HAVE_GETHOSTNAME=1;
16180 HAVE_GETLOGIN=1;
16181 HAVE_GETPAGESIZE=1;
16182 HAVE_GROUP_MEMBER=1;
16183 HAVE_LCHOWN=1;
16184 HAVE_LINK=1;
16185 HAVE_LINKAT=1;
16186 HAVE_PIPE=1;
16187 HAVE_PIPE2=1;
16188 HAVE_PREAD=1;
16189 HAVE_PWRITE=1;
16190 HAVE_READLINK=1;
16191 HAVE_READLINKAT=1;
16192 HAVE_SETHOSTNAME=1;
16193 HAVE_SLEEP=1;
16194 HAVE_SYMLINK=1;
16195 HAVE_SYMLINKAT=1;
16196 HAVE_UNLINKAT=1;
16197 HAVE_USLEEP=1;
16198 HAVE_DECL_ENVIRON=1;
16199 HAVE_DECL_FCHDIR=1;
16200 HAVE_DECL_FDATASYNC=1;
16201 HAVE_DECL_GETDOMAINNAME=1;
16202 HAVE_DECL_GETLOGIN_R=1;
16203 HAVE_DECL_GETPAGESIZE=1;
16204 HAVE_DECL_GETUSERSHELL=1;
16205 HAVE_DECL_SETHOSTNAME=1;
16206 HAVE_DECL_TTYNAME_R=1;
16207 HAVE_OS_H=0;
16208 HAVE_SYS_PARAM_H=0;
16209 REPLACE_CHOWN=0;
16210 REPLACE_CLOSE=0;
16211 REPLACE_DUP=0;
16212 REPLACE_DUP2=0;
16213 REPLACE_FCHOWNAT=0;
16214 REPLACE_FTRUNCATE=0;
16215 REPLACE_GETCWD=0;
16216 REPLACE_GETDOMAINNAME=0;
16217 REPLACE_GETLOGIN_R=0;
16218 REPLACE_GETGROUPS=0;
16219 REPLACE_GETPAGESIZE=0;
16220 REPLACE_ISATTY=0;
16221 REPLACE_LCHOWN=0;
16222 REPLACE_LINK=0;
16223 REPLACE_LINKAT=0;
16224 REPLACE_LSEEK=0;
16225 REPLACE_PREAD=0;
16226 REPLACE_PWRITE=0;
16227 REPLACE_READ=0;
16228 REPLACE_READLINK=0;
16229 REPLACE_RMDIR=0;
16230 REPLACE_SLEEP=0;
16231 REPLACE_SYMLINK=0;
16232 REPLACE_TTYNAME_R=0;
16233 REPLACE_UNLINK=0;
16234 REPLACE_UNLINKAT=0;
16235 REPLACE_USLEEP=0;
16236 REPLACE_WRITE=0;
16237 UNISTD_H_HAVE_WINSOCK2_H=0;
16238 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16249 $as_echo_n "checking if environ is properly declared... " >&6; }
16250 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256 #if HAVE_UNISTD_H
16257 #include <unistd.h>
16258 #endif
16259 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16260 #include <stdlib.h>
16261
16262 extern struct { int foo; } environ;
16263 int
16264 main ()
16265 {
16266 environ.foo = 1;
16267 ;
16268 return 0;
16269 }
16270 _ACEOF
16271 if ac_fn_c_try_compile "$LINENO"; then :
16272 gt_cv_var_environ_declaration=no
16273 else
16274 gt_cv_var_environ_declaration=yes
16275 fi
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 fi
16278
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16280 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16281 if test $gt_cv_var_environ_declaration = yes; then
16282
16283 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16284
16285 fi
16286
16287
16288 if test $gt_cv_var_environ_declaration != yes; then
16289 HAVE_DECL_ENVIRON=0
16290 fi
16291
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16293 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16294 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16295 $as_echo_n "(cached) " >&6
16296 else
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16299
16300 #include <sys/types.h>
16301 #include <sys/stat.h>
16302 int
16303 main ()
16304 {
16305 struct stat s; s.st_dm_mode;
16306 ;
16307 return 0;
16308 }
16309 _ACEOF
16310 if ac_fn_c_try_compile "$LINENO"; then :
16311 ac_cv_struct_st_dm_mode=yes
16312 else
16313 ac_cv_struct_st_dm_mode=no
16314 fi
16315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16316 fi
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16318 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16319
16320 if test $ac_cv_struct_st_dm_mode = yes; then
16321
16322 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16323
16324 fi
16325
16326
16327 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16328 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16329 ac_have_decl=1
16330 else
16331 ac_have_decl=0
16332 fi
16333
16334 cat >>confdefs.h <<_ACEOF
16335 #define HAVE_DECL_STRMODE $ac_have_decl
16336 _ACEOF
16337
16338
16339 GNULIB__EXIT=0;
16340 GNULIB_ATOLL=0;
16341 GNULIB_CALLOC_POSIX=0;
16342 GNULIB_CANONICALIZE_FILE_NAME=0;
16343 GNULIB_GETLOADAVG=0;
16344 GNULIB_GETSUBOPT=0;
16345 GNULIB_GRANTPT=0;
16346 GNULIB_MALLOC_POSIX=0;
16347 GNULIB_MBTOWC=0;
16348 GNULIB_MKDTEMP=0;
16349 GNULIB_MKOSTEMP=0;
16350 GNULIB_MKOSTEMPS=0;
16351 GNULIB_MKSTEMP=0;
16352 GNULIB_MKSTEMPS=0;
16353 GNULIB_POSIX_OPENPT=0;
16354 GNULIB_PTSNAME=0;
16355 GNULIB_PTSNAME_R=0;
16356 GNULIB_PUTENV=0;
16357 GNULIB_RANDOM=0;
16358 GNULIB_RANDOM_R=0;
16359 GNULIB_REALLOC_POSIX=0;
16360 GNULIB_REALPATH=0;
16361 GNULIB_RPMATCH=0;
16362 GNULIB_SETENV=0;
16363 GNULIB_STRTOD=0;
16364 GNULIB_STRTOLL=0;
16365 GNULIB_STRTOULL=0;
16366 GNULIB_SYSTEM_POSIX=0;
16367 GNULIB_UNLOCKPT=0;
16368 GNULIB_UNSETENV=0;
16369 GNULIB_WCTOMB=0;
16370 HAVE__EXIT=1;
16371 HAVE_ATOLL=1;
16372 HAVE_CANONICALIZE_FILE_NAME=1;
16373 HAVE_DECL_GETLOADAVG=1;
16374 HAVE_GETSUBOPT=1;
16375 HAVE_GRANTPT=1;
16376 HAVE_MKDTEMP=1;
16377 HAVE_MKOSTEMP=1;
16378 HAVE_MKOSTEMPS=1;
16379 HAVE_MKSTEMP=1;
16380 HAVE_MKSTEMPS=1;
16381 HAVE_POSIX_OPENPT=1;
16382 HAVE_PTSNAME=1;
16383 HAVE_PTSNAME_R=1;
16384 HAVE_RANDOM=1;
16385 HAVE_RANDOM_H=1;
16386 HAVE_RANDOM_R=1;
16387 HAVE_REALPATH=1;
16388 HAVE_RPMATCH=1;
16389 HAVE_SETENV=1;
16390 HAVE_DECL_SETENV=1;
16391 HAVE_STRTOD=1;
16392 HAVE_STRTOLL=1;
16393 HAVE_STRTOULL=1;
16394 HAVE_STRUCT_RANDOM_DATA=1;
16395 HAVE_SYS_LOADAVG_H=0;
16396 HAVE_UNLOCKPT=1;
16397 HAVE_DECL_UNSETENV=1;
16398 REPLACE_CALLOC=0;
16399 REPLACE_CANONICALIZE_FILE_NAME=0;
16400 REPLACE_MALLOC=0;
16401 REPLACE_MBTOWC=0;
16402 REPLACE_MKSTEMP=0;
16403 REPLACE_PTSNAME_R=0;
16404 REPLACE_PUTENV=0;
16405 REPLACE_RANDOM_R=0;
16406 REPLACE_REALLOC=0;
16407 REPLACE_REALPATH=0;
16408 REPLACE_SETENV=0;
16409 REPLACE_STRTOD=0;
16410 REPLACE_UNSETENV=0;
16411 REPLACE_WCTOMB=0;
16412
16413
16414
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16416 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16417 if test "${gl_cv_have_include_next+set}" = set; then :
16418 $as_echo_n "(cached) " >&6
16419 else
16420 rm -rf conftestd1a conftestd1b conftestd2
16421 mkdir conftestd1a conftestd1b conftestd2
16422 cat <<EOF > conftestd1a/conftest.h
16423 #define DEFINED_IN_CONFTESTD1
16424 #include_next <conftest.h>
16425 #ifdef DEFINED_IN_CONFTESTD2
16426 int foo;
16427 #else
16428 #error "include_next doesn't work"
16429 #endif
16430 EOF
16431 cat <<EOF > conftestd1b/conftest.h
16432 #define DEFINED_IN_CONFTESTD1
16433 #include <stdio.h>
16434 #include_next <conftest.h>
16435 #ifdef DEFINED_IN_CONFTESTD2
16436 int foo;
16437 #else
16438 #error "include_next doesn't work"
16439 #endif
16440 EOF
16441 cat <<EOF > conftestd2/conftest.h
16442 #ifndef DEFINED_IN_CONFTESTD1
16443 #error "include_next test doesn't work"
16444 #endif
16445 #define DEFINED_IN_CONFTESTD2
16446 EOF
16447 gl_save_CPPFLAGS="$CPPFLAGS"
16448 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16451 #include <conftest.h>
16452 _ACEOF
16453 if ac_fn_c_try_compile "$LINENO"; then :
16454 gl_cv_have_include_next=yes
16455 else
16456 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16459 #include <conftest.h>
16460 _ACEOF
16461 if ac_fn_c_try_compile "$LINENO"; then :
16462 gl_cv_have_include_next=buggy
16463 else
16464 gl_cv_have_include_next=no
16465 fi
16466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467
16468 fi
16469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 CPPFLAGS="$gl_save_CPPFLAGS"
16471 rm -rf conftestd1a conftestd1b conftestd2
16472
16473 fi
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16475 $as_echo "$gl_cv_have_include_next" >&6; }
16476 PRAGMA_SYSTEM_HEADER=
16477 if test $gl_cv_have_include_next = yes; then
16478 INCLUDE_NEXT=include_next
16479 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16480 if test -n "$GCC"; then
16481 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16482 fi
16483 else
16484 if test $gl_cv_have_include_next = buggy; then
16485 INCLUDE_NEXT=include
16486 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16487 else
16488 INCLUDE_NEXT=include
16489 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16490 fi
16491 fi
16492
16493
16494
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16496 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16497 if test "${gl_cv_pragma_columns+set}" = set; then :
16498 $as_echo_n "(cached) " >&6
16499 else
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502
16503 #ifdef __TANDEM
16504 choke me
16505 #endif
16506
16507 _ACEOF
16508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16509 $EGREP "choke me" >/dev/null 2>&1; then :
16510 gl_cv_pragma_columns=yes
16511 else
16512 gl_cv_pragma_columns=no
16513 fi
16514 rm -f conftest*
16515
16516
16517 fi
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16519 $as_echo "$gl_cv_pragma_columns" >&6; }
16520 if test $gl_cv_pragma_columns = yes; then
16521 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16522 else
16523 PRAGMA_COLUMNS=
16524 fi
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542 if test $gl_cv_have_include_next = yes; then
16543 gl_cv_next_getopt_h='<'getopt.h'>'
16544 else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16546 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16547 if test "${gl_cv_next_getopt_h+set}" = set; then :
16548 $as_echo_n "(cached) " >&6
16549 else
16550
16551 if test $ac_cv_header_getopt_h = yes; then
16552
16553
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <getopt.h>
16557
16558 _ACEOF
16559 case "$host_os" in
16560 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16561 *) gl_absname_cpp="$ac_cpp" ;;
16562 esac
16563
16564 case "$host_os" in
16565 mingw*)
16566 gl_dirsep_regex='[/\\]'
16567 ;;
16568 *)
16569 gl_dirsep_regex='\/'
16570 ;;
16571 esac
16572 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16573
16574 gl_header_literal_regex=`echo 'getopt.h' \
16575 | sed -e "$gl_make_literal_regex_sed"`
16576 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16577 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16578 s|^/[^/]|//&|
16579 p
16580 q
16581 }'
16582 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16583 sed -n "$gl_absolute_header_sed"`'"'
16584 else
16585 gl_cv_next_getopt_h='<'getopt.h'>'
16586 fi
16587
16588
16589 fi
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16591 $as_echo "$gl_cv_next_getopt_h" >&6; }
16592 fi
16593 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16594
16595 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16596 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16597 gl_next_as_first_directive='<'getopt.h'>'
16598 else
16599 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16600 gl_next_as_first_directive=$gl_cv_next_getopt_h
16601 fi
16602 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16603
16604
16605
16606
16607 if test $ac_cv_header_getopt_h = yes; then
16608 HAVE_GETOPT_H=1
16609 else
16610 HAVE_GETOPT_H=0
16611 fi
16612
16613
16614 gl_replace_getopt=
16615
16616 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16617 for ac_header in getopt.h
16618 do :
16619 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16620 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16621 cat >>confdefs.h <<_ACEOF
16622 #define HAVE_GETOPT_H 1
16623 _ACEOF
16624
16625 else
16626 gl_replace_getopt=yes
16627 fi
16628
16629 done
16630
16631 fi
16632
16633 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16634 for ac_func in getopt_long_only
16635 do :
16636 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16637 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16638 cat >>confdefs.h <<_ACEOF
16639 #define HAVE_GETOPT_LONG_ONLY 1
16640 _ACEOF
16641
16642 else
16643 gl_replace_getopt=yes
16644 fi
16645 done
16646
16647 fi
16648
16649 if test -z "$gl_replace_getopt"; then
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16651 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16652 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16653 $as_echo_n "(cached) " >&6
16654 else
16655
16656 if test $cross_compiling = no; then
16657 if test "$cross_compiling" = yes; then :
16658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16660 as_fn_error "cannot run test program while cross compiling
16661 See \`config.log' for more details." "$LINENO" 5; }
16662 else
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665
16666 #include <unistd.h>
16667 #include <stdlib.h>
16668 #include <string.h>
16669
16670 int
16671 main ()
16672 {
16673 static char program[] = "program";
16674 static char a[] = "-a";
16675 static char foo[] = "foo";
16676 static char bar[] = "bar";
16677 char *argv[] = { program, a, foo, bar, NULL };
16678 int c;
16679
16680 c = getopt (4, argv, "ab");
16681 if (!(c == 'a'))
16682 return 1;
16683 c = getopt (4, argv, "ab");
16684 if (!(c == -1))
16685 return 2;
16686 if (!(optind == 2))
16687 return 3;
16688 return 0;
16689 }
16690
16691 _ACEOF
16692 if ac_fn_c_try_run "$LINENO"; then :
16693 gl_cv_func_getopt_posix=maybe
16694 else
16695 gl_cv_func_getopt_posix=no
16696 fi
16697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16698 conftest.$ac_objext conftest.beam conftest.$ac_ext
16699 fi
16700
16701 if test $gl_cv_func_getopt_posix = maybe; then
16702 if test "$cross_compiling" = yes; then :
16703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16705 as_fn_error "cannot run test program while cross compiling
16706 See \`config.log' for more details." "$LINENO" 5; }
16707 else
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16710
16711 #include <unistd.h>
16712 #include <stdlib.h>
16713 #include <string.h>
16714
16715 int
16716 main ()
16717 {
16718 static char program[] = "program";
16719 static char donald[] = "donald";
16720 static char p[] = "-p";
16721 static char billy[] = "billy";
16722 static char duck[] = "duck";
16723 static char a[] = "-a";
16724 static char bar[] = "bar";
16725 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16726 int c;
16727
16728 c = getopt (7, argv, "+abp:q:");
16729 if (!(c == -1))
16730 return 4;
16731 if (!(strcmp (argv[0], "program") == 0))
16732 return 5;
16733 if (!(strcmp (argv[1], "donald") == 0))
16734 return 6;
16735 if (!(strcmp (argv[2], "-p") == 0))
16736 return 7;
16737 if (!(strcmp (argv[3], "billy") == 0))
16738 return 8;
16739 if (!(strcmp (argv[4], "duck") == 0))
16740 return 9;
16741 if (!(strcmp (argv[5], "-a") == 0))
16742 return 10;
16743 if (!(strcmp (argv[6], "bar") == 0))
16744 return 11;
16745 if (!(optind == 1))
16746 return 12;
16747 return 0;
16748 }
16749
16750 _ACEOF
16751 if ac_fn_c_try_run "$LINENO"; then :
16752 gl_cv_func_getopt_posix=maybe
16753 else
16754 gl_cv_func_getopt_posix=no
16755 fi
16756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16757 conftest.$ac_objext conftest.beam conftest.$ac_ext
16758 fi
16759
16760 fi
16761 if test $gl_cv_func_getopt_posix = maybe; then
16762 if test "$cross_compiling" = yes; then :
16763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16765 as_fn_error "cannot run test program while cross compiling
16766 See \`config.log' for more details." "$LINENO" 5; }
16767 else
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16770
16771 #include <unistd.h>
16772 #include <stdlib.h>
16773 #include <string.h>
16774
16775 int
16776 main ()
16777 {
16778 static char program[] = "program";
16779 static char ab[] = "-ab";
16780 char *argv[3] = { program, ab, NULL };
16781 if (getopt (2, argv, "ab:") != 'a')
16782 return 13;
16783 if (getopt (2, argv, "ab:") != '?')
16784 return 14;
16785 if (optopt != 'b')
16786 return 15;
16787 if (optind != 2)
16788 return 16;
16789 return 0;
16790 }
16791
16792 _ACEOF
16793 if ac_fn_c_try_run "$LINENO"; then :
16794 gl_cv_func_getopt_posix=yes
16795 else
16796 gl_cv_func_getopt_posix=no
16797 fi
16798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16799 conftest.$ac_objext conftest.beam conftest.$ac_ext
16800 fi
16801
16802 fi
16803 else
16804 case "$host_os" in
16805 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
16806 *) gl_cv_func_getopt_posix="guessing yes";;
16807 esac
16808 fi
16809
16810 fi
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16812 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16813 case "$gl_cv_func_getopt_posix" in
16814 *no) gl_replace_getopt=yes ;;
16815 esac
16816 fi
16817
16818 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16820 $as_echo_n "checking for working GNU getopt function... " >&6; }
16821 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16822 $as_echo_n "(cached) " >&6
16823 else
16824 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16825 # optstring is necessary for programs like m4 that have POSIX-mandated
16826 # semantics for supporting options interspersed with files.
16827 # Also, since getopt_long is a GNU extension, we require optind=0.
16828 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16829 # so take care to revert to the correct (non-)export state.
16830 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16831 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16832 xx) gl_had_POSIXLY_CORRECT=exported ;;
16833 x) gl_had_POSIXLY_CORRECT=yes ;;
16834 *) gl_had_POSIXLY_CORRECT= ;;
16835 esac
16836 POSIXLY_CORRECT=1
16837 export POSIXLY_CORRECT
16838 if test "$cross_compiling" = yes; then :
16839 gl_cv_func_getopt_gnu="guessing no"
16840
16841 else
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16844 #include <getopt.h>
16845 #include <stddef.h>
16846 #include <string.h>
16847
16848 #include <stdlib.h>
16849 #if defined __MACH__ && defined __APPLE__
16850 /* Avoid a crash on Mac OS X. */
16851 #include <mach/mach.h>
16852 #include <mach/mach_error.h>
16853 #include <mach/thread_status.h>
16854 #include <mach/exception.h>
16855 #include <mach/task.h>
16856 #include <pthread.h>
16857 /* The exception port on which our thread listens. */
16858 static mach_port_t our_exception_port;
16859 /* The main function of the thread listening for exceptions of type
16860 EXC_BAD_ACCESS. */
16861 static void *
16862 mach_exception_thread (void *arg)
16863 {
16864 /* Buffer for a message to be received. */
16865 struct {
16866 mach_msg_header_t head;
16867 mach_msg_body_t msgh_body;
16868 char data[1024];
16869 } msg;
16870 mach_msg_return_t retval;
16871 /* Wait for a message on the exception port. */
16872 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16873 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16874 if (retval != MACH_MSG_SUCCESS)
16875 abort ();
16876 exit (1);
16877 }
16878 static void
16879 nocrash_init (void)
16880 {
16881 mach_port_t self = mach_task_self ();
16882 /* Allocate a port on which the thread shall listen for exceptions. */
16883 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16884 == KERN_SUCCESS) {
16885 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16886 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16887 MACH_MSG_TYPE_MAKE_SEND)
16888 == KERN_SUCCESS) {
16889 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16890 for us. */
16891 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16892 /* Create the thread listening on the exception port. */
16893 pthread_attr_t attr;
16894 pthread_t thread;
16895 if (pthread_attr_init (&attr) == 0
16896 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16897 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16898 pthread_attr_destroy (&attr);
16899 /* Replace the exception port info for these exceptions with our own.
16900 Note that we replace the exception port for the entire task, not only
16901 for a particular thread. This has the effect that when our exception
16902 port gets the message, the thread specific exception port has already
16903 been asked, and we don't need to bother about it.
16904 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16905 task_set_exception_ports (self, mask, our_exception_port,
16906 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16907 }
16908 }
16909 }
16910 }
16911 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16912 /* Avoid a crash on native Windows. */
16913 #define WIN32_LEAN_AND_MEAN
16914 #include <windows.h>
16915 #include <winerror.h>
16916 static LONG WINAPI
16917 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16918 {
16919 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16920 {
16921 case EXCEPTION_ACCESS_VIOLATION:
16922 case EXCEPTION_IN_PAGE_ERROR:
16923 case EXCEPTION_STACK_OVERFLOW:
16924 case EXCEPTION_GUARD_PAGE:
16925 case EXCEPTION_PRIV_INSTRUCTION:
16926 case EXCEPTION_ILLEGAL_INSTRUCTION:
16927 case EXCEPTION_DATATYPE_MISALIGNMENT:
16928 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16929 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16930 exit (1);
16931 }
16932 return EXCEPTION_CONTINUE_SEARCH;
16933 }
16934 static void
16935 nocrash_init (void)
16936 {
16937 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16938 }
16939 #else
16940 /* Avoid a crash on POSIX systems. */
16941 #include <signal.h>
16942 /* A POSIX signal handler. */
16943 static void
16944 exception_handler (int sig)
16945 {
16946 exit (1);
16947 }
16948 static void
16949 nocrash_init (void)
16950 {
16951 #ifdef SIGSEGV
16952 signal (SIGSEGV, exception_handler);
16953 #endif
16954 #ifdef SIGBUS
16955 signal (SIGBUS, exception_handler);
16956 #endif
16957 }
16958 #endif
16959
16960
16961 int
16962 main ()
16963 {
16964
16965 int result = 0;
16966
16967 nocrash_init();
16968
16969 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16970 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16971 OSF/1 5.1, Solaris 10. */
16972 {
16973 static char conftest[] = "conftest";
16974 static char plus[] = "-+";
16975 char *argv[3] = { conftest, plus, NULL };
16976 opterr = 0;
16977 if (getopt (2, argv, "+a") != '?')
16978 result |= 1;
16979 }
16980 /* This code succeeds on glibc 2.8, mingw,
16981 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16982 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16983 {
16984 static char program[] = "program";
16985 static char p[] = "-p";
16986 static char foo[] = "foo";
16987 static char bar[] = "bar";
16988 char *argv[] = { program, p, foo, bar, NULL };
16989
16990 optind = 1;
16991 if (getopt (4, argv, "p::") != 'p')
16992 result |= 2;
16993 else if (optarg != NULL)
16994 result |= 4;
16995 else if (getopt (4, argv, "p::") != -1)
16996 result |= 6;
16997 else if (optind != 2)
16998 result |= 8;
16999 }
17000 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17001 {
17002 static char program[] = "program";
17003 static char foo[] = "foo";
17004 static char p[] = "-p";
17005 char *argv[] = { program, foo, p, NULL };
17006 optind = 0;
17007 if (getopt (3, argv, "-p") != 1)
17008 result |= 16;
17009 else if (getopt (3, argv, "-p") != 'p')
17010 result |= 16;
17011 }
17012 /* This code fails on glibc 2.11. */
17013 {
17014 static char program[] = "program";
17015 static char b[] = "-b";
17016 static char a[] = "-a";
17017 char *argv[] = { program, b, a, NULL };
17018 optind = opterr = 0;
17019 if (getopt (3, argv, "+:a:b") != 'b')
17020 result |= 32;
17021 else if (getopt (3, argv, "+:a:b") != ':')
17022 result |= 32;
17023 }
17024 /* This code dumps core on glibc 2.14. */
17025 {
17026 static char program[] = "program";
17027 static char w[] = "-W";
17028 static char dummy[] = "dummy";
17029 char *argv[] = { program, w, dummy, NULL };
17030 optind = opterr = 1;
17031 if (getopt (3, argv, "W;") != 'W')
17032 result |= 64;
17033 }
17034 return result;
17035
17036 ;
17037 return 0;
17038 }
17039 _ACEOF
17040 if ac_fn_c_try_run "$LINENO"; then :
17041 gl_cv_func_getopt_gnu=yes
17042 else
17043 gl_cv_func_getopt_gnu=no
17044 fi
17045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17046 conftest.$ac_objext conftest.beam conftest.$ac_ext
17047 fi
17048
17049 case $gl_had_POSIXLY_CORRECT in
17050 exported) ;;
17051 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17052 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17053 esac
17054
17055 fi
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17057 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17058 if test "$gl_cv_func_getopt_gnu" != yes; then
17059 gl_replace_getopt=yes
17060 else
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17062 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17063 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17064 $as_echo_n "(cached) " >&6
17065 else
17066 if test "$cross_compiling" = yes; then :
17067 case "$host_os" in
17068 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17069 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17070 esac
17071
17072 else
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17075 #include <getopt.h>
17076 #include <stddef.h>
17077 #include <string.h>
17078
17079 int
17080 main ()
17081 {
17082 static const struct option long_options[] =
17083 {
17084 { "xtremely-",no_argument, NULL, 1003 },
17085 { "xtra", no_argument, NULL, 1001 },
17086 { "xtreme", no_argument, NULL, 1002 },
17087 { "xtremely", no_argument, NULL, 1003 },
17088 { NULL, 0, NULL, 0 }
17089 };
17090 /* This code fails on OpenBSD 5.0. */
17091 {
17092 static char program[] = "program";
17093 static char xtremel[] = "--xtremel";
17094 char *argv[] = { program, xtremel, NULL };
17095 int option_index;
17096 optind = 1; opterr = 0;
17097 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17098 return 1;
17099 }
17100 return 0;
17101
17102 ;
17103 return 0;
17104 }
17105 _ACEOF
17106 if ac_fn_c_try_run "$LINENO"; then :
17107 gl_cv_func_getopt_long_gnu=yes
17108 else
17109 gl_cv_func_getopt_long_gnu=no
17110 fi
17111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17112 conftest.$ac_objext conftest.beam conftest.$ac_ext
17113 fi
17114
17115
17116 fi
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17118 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17119 case "$gl_cv_func_getopt_long_gnu" in
17120 *yes) ;;
17121 *) gl_replace_getopt=yes ;;
17122 esac
17123 fi
17124 fi
17125
17126
17127
17128
17129
17130
17131 REPLACE_GETOPT=0
17132 if test -n "$gl_replace_getopt"; then
17133 REPLACE_GETOPT=1
17134 fi
17135
17136 if test $REPLACE_GETOPT = 1; then
17137
17138 GETOPT_H=getopt.h
17139
17140 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17141
17142
17143
17144 fi
17145
17146 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17147 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17148 ac_have_decl=1
17149 else
17150 ac_have_decl=0
17151 fi
17152
17153 cat >>confdefs.h <<_ACEOF
17154 #define HAVE_DECL_GETENV $ac_have_decl
17155 _ACEOF
17156
17157
17158
17159
17160
17161
17162
17163
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17165 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17166 if test "${ac_cv_c_restrict+set}" = set; then :
17167 $as_echo_n "(cached) " >&6
17168 else
17169 ac_cv_c_restrict=no
17170 # The order here caters to the fact that C++ does not require restrict.
17171 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17173 /* end confdefs.h. */
17174 typedef int * int_ptr;
17175 int foo (int_ptr $ac_kw ip) {
17176 return ip[0];
17177 }
17178 int
17179 main ()
17180 {
17181 int s[1];
17182 int * $ac_kw t = s;
17183 t[0] = 0;
17184 return foo(t)
17185 ;
17186 return 0;
17187 }
17188 _ACEOF
17189 if ac_fn_c_try_compile "$LINENO"; then :
17190 ac_cv_c_restrict=$ac_kw
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193 test "$ac_cv_c_restrict" != no && break
17194 done
17195
17196 fi
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17198 $as_echo "$ac_cv_c_restrict" >&6; }
17199
17200 case $ac_cv_c_restrict in
17201 restrict) ;;
17202 no) $as_echo "#define restrict /**/" >>confdefs.h
17203 ;;
17204 *) cat >>confdefs.h <<_ACEOF
17205 #define restrict $ac_cv_c_restrict
17206 _ACEOF
17207 ;;
17208 esac
17209
17210
17211 GNULIB_GETTIMEOFDAY=0;
17212 HAVE_GETTIMEOFDAY=1;
17213 HAVE_STRUCT_TIMEVAL=1;
17214 HAVE_SYS_TIME_H=1;
17215 REPLACE_GETTIMEOFDAY=0;
17216 REPLACE_STRUCT_TIMEVAL=0;
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233 if test $gl_cv_have_include_next = yes; then
17234 gl_cv_next_sys_time_h='<'sys/time.h'>'
17235 else
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17237 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17238 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241
17242 if test $ac_cv_header_sys_time_h = yes; then
17243
17244
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247 #include <sys/time.h>
17248
17249 _ACEOF
17250 case "$host_os" in
17251 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17252 *) gl_absname_cpp="$ac_cpp" ;;
17253 esac
17254
17255 case "$host_os" in
17256 mingw*)
17257 gl_dirsep_regex='[/\\]'
17258 ;;
17259 *)
17260 gl_dirsep_regex='\/'
17261 ;;
17262 esac
17263 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17264
17265 gl_header_literal_regex=`echo 'sys/time.h' \
17266 | sed -e "$gl_make_literal_regex_sed"`
17267 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17268 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17269 s|^/[^/]|//&|
17270 p
17271 q
17272 }'
17273 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17274 sed -n "$gl_absolute_header_sed"`'"'
17275 else
17276 gl_cv_next_sys_time_h='<'sys/time.h'>'
17277 fi
17278
17279
17280 fi
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17282 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17283 fi
17284 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17285
17286 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17287 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17288 gl_next_as_first_directive='<'sys/time.h'>'
17289 else
17290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17291 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17292 fi
17293 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17294
17295
17296
17297
17298
17299 if test $ac_cv_header_sys_time_h != yes; then
17300 HAVE_SYS_TIME_H=0
17301 fi
17302
17303
17304
17305
17306
17307 if test $ac_cv_header_sys_socket_h != yes; then
17308 for ac_header in winsock2.h
17309 do :
17310 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17311 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17312 cat >>confdefs.h <<_ACEOF
17313 #define HAVE_WINSOCK2_H 1
17314 _ACEOF
17315
17316 fi
17317
17318 done
17319
17320 fi
17321 if test "$ac_cv_header_winsock2_h" = yes; then
17322 HAVE_WINSOCK2_H=1
17323 UNISTD_H_HAVE_WINSOCK2_H=1
17324 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17325 else
17326 HAVE_WINSOCK2_H=0
17327 fi
17328
17329
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17331 $as_echo_n "checking for struct timeval... " >&6; }
17332 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17333 $as_echo_n "(cached) " >&6
17334 else
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17337 #if HAVE_SYS_TIME_H
17338 #include <sys/time.h>
17339 #endif
17340 #include <time.h>
17341 #if HAVE_WINSOCK2_H
17342 # include <winsock2.h>
17343 #endif
17344
17345 int
17346 main ()
17347 {
17348 static struct timeval x; x.tv_sec = x.tv_usec;
17349 ;
17350 return 0;
17351 }
17352 _ACEOF
17353 if ac_fn_c_try_compile "$LINENO"; then :
17354 gl_cv_sys_struct_timeval=yes
17355 else
17356 gl_cv_sys_struct_timeval=no
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359
17360 fi
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17362 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17363 if test $gl_cv_sys_struct_timeval != yes; then
17364 HAVE_STRUCT_TIMEVAL=0
17365 else
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17367 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17368 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17369 $as_echo_n "(cached) " >&6
17370 else
17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h. */
17373 #if HAVE_SYS_TIME_H
17374 #include <sys/time.h>
17375 #endif
17376 #include <time.h>
17377 #if HAVE_WINSOCK2_H
17378 # include <winsock2.h>
17379 #endif
17380
17381 int
17382 main ()
17383 {
17384 static struct timeval x;
17385 typedef int verify_tv_sec_type[
17386 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17387 ];
17388
17389 ;
17390 return 0;
17391 }
17392 _ACEOF
17393 if ac_fn_c_try_compile "$LINENO"; then :
17394 gl_cv_sys_struct_timeval_tv_sec=yes
17395 else
17396 gl_cv_sys_struct_timeval_tv_sec=no
17397 fi
17398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17399
17400 fi
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17402 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17403 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17404 REPLACE_STRUCT_TIMEVAL=1
17405 fi
17406 fi
17407
17408
17409
17410
17411
17412
17413
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17415 $as_echo_n "checking for unsigned long long int... " >&6; }
17416 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17417 $as_echo_n "(cached) " >&6
17418 else
17419 ac_cv_type_unsigned_long_long_int=yes
17420 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17423
17424 /* For now, do not test the preprocessor; as of 2007 there are too many
17425 implementations with broken preprocessors. Perhaps this can
17426 be revisited in 2012. In the meantime, code should not expect
17427 #if to work with literals wider than 32 bits. */
17428 /* Test literals. */
17429 long long int ll = 9223372036854775807ll;
17430 long long int nll = -9223372036854775807LL;
17431 unsigned long long int ull = 18446744073709551615ULL;
17432 /* Test constant expressions. */
17433 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17434 ? 1 : -1)];
17435 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17436 ? 1 : -1)];
17437 int i = 63;
17438 int
17439 main ()
17440 {
17441 /* Test availability of runtime routines for shift and division. */
17442 long long int llmax = 9223372036854775807ll;
17443 unsigned long long int ullmax = 18446744073709551615ull;
17444 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17445 | (llmax / ll) | (llmax % ll)
17446 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17447 | (ullmax / ull) | (ullmax % ull));
17448 ;
17449 return 0;
17450 }
17451
17452 _ACEOF
17453 if ac_fn_c_try_link "$LINENO"; then :
17454
17455 else
17456 ac_cv_type_unsigned_long_long_int=no
17457 fi
17458 rm -f core conftest.err conftest.$ac_objext \
17459 conftest$ac_exeext conftest.$ac_ext
17460 fi
17461 fi
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17463 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17464 if test $ac_cv_type_unsigned_long_long_int = yes; then
17465
17466 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17467
17468 fi
17469
17470
17471
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17473 $as_echo_n "checking for long long int... " >&6; }
17474 if test "${ac_cv_type_long_long_int+set}" = set; then :
17475 $as_echo_n "(cached) " >&6
17476 else
17477 ac_cv_type_long_long_int=yes
17478 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17479 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17480 if test $ac_cv_type_long_long_int = yes; then
17481 if test "$cross_compiling" = yes; then :
17482 :
17483 else
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486 #include <limits.h>
17487 #ifndef LLONG_MAX
17488 # define HALF \
17489 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17490 # define LLONG_MAX (HALF - 1 + HALF)
17491 #endif
17492 int
17493 main ()
17494 {
17495 long long int n = 1;
17496 int i;
17497 for (i = 0; ; i++)
17498 {
17499 long long int m = n << i;
17500 if (m >> i != n)
17501 return 1;
17502 if (LLONG_MAX / 2 < m)
17503 break;
17504 }
17505 return 0;
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_run "$LINENO"; then :
17511
17512 else
17513 ac_cv_type_long_long_int=no
17514 fi
17515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17516 conftest.$ac_objext conftest.beam conftest.$ac_ext
17517 fi
17518
17519 fi
17520 fi
17521 fi
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17523 $as_echo "$ac_cv_type_long_long_int" >&6; }
17524 if test $ac_cv_type_long_long_int = yes; then
17525
17526 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17527
17528 fi
17529
17530
17531
17532
17533
17534
17535 gl_cv_c_multiarch=no
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17538 #ifndef __APPLE_CC__
17539 not a universal capable compiler
17540 #endif
17541 typedef int dummy;
17542
17543 _ACEOF
17544 if ac_fn_c_try_compile "$LINENO"; then :
17545
17546 arch=
17547 prev=
17548 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17549 if test -n "$prev"; then
17550 case $word in
17551 i?86 | x86_64 | ppc | ppc64)
17552 if test -z "$arch" || test "$arch" = "$word"; then
17553 arch="$word"
17554 else
17555 gl_cv_c_multiarch=yes
17556 fi
17557 ;;
17558 esac
17559 prev=
17560 else
17561 if test "x$word" = "x-arch"; then
17562 prev=arch
17563 fi
17564 fi
17565 done
17566
17567 fi
17568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17569 if test $gl_cv_c_multiarch = yes; then
17570 APPLE_UNIVERSAL_BUILD=1
17571 else
17572 APPLE_UNIVERSAL_BUILD=0
17573 fi
17574
17575
17576
17577
17578
17579 if test $ac_cv_type_long_long_int = yes; then
17580 HAVE_LONG_LONG_INT=1
17581 else
17582 HAVE_LONG_LONG_INT=0
17583 fi
17584
17585
17586 if test $ac_cv_type_unsigned_long_long_int = yes; then
17587 HAVE_UNSIGNED_LONG_LONG_INT=1
17588 else
17589 HAVE_UNSIGNED_LONG_LONG_INT=0
17590 fi
17591
17592
17593
17594 if test $ac_cv_header_wchar_h = yes; then
17595 HAVE_WCHAR_H=1
17596 else
17597 HAVE_WCHAR_H=0
17598 fi
17599
17600
17601 if test $ac_cv_header_inttypes_h = yes; then
17602 HAVE_INTTYPES_H=1
17603 else
17604 HAVE_INTTYPES_H=0
17605 fi
17606
17607
17608 if test $ac_cv_header_sys_types_h = yes; then
17609 HAVE_SYS_TYPES_H=1
17610 else
17611 HAVE_SYS_TYPES_H=0
17612 fi
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624 if test $gl_cv_have_include_next = yes; then
17625 gl_cv_next_stdint_h='<'stdint.h'>'
17626 else
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17628 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17629 if test "${gl_cv_next_stdint_h+set}" = set; then :
17630 $as_echo_n "(cached) " >&6
17631 else
17632
17633 if test $ac_cv_header_stdint_h = yes; then
17634
17635
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17638 #include <stdint.h>
17639
17640 _ACEOF
17641 case "$host_os" in
17642 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17643 *) gl_absname_cpp="$ac_cpp" ;;
17644 esac
17645
17646 case "$host_os" in
17647 mingw*)
17648 gl_dirsep_regex='[/\\]'
17649 ;;
17650 *)
17651 gl_dirsep_regex='\/'
17652 ;;
17653 esac
17654 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17655
17656 gl_header_literal_regex=`echo 'stdint.h' \
17657 | sed -e "$gl_make_literal_regex_sed"`
17658 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17659 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17660 s|^/[^/]|//&|
17661 p
17662 q
17663 }'
17664 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17665 sed -n "$gl_absolute_header_sed"`'"'
17666 else
17667 gl_cv_next_stdint_h='<'stdint.h'>'
17668 fi
17669
17670
17671 fi
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17673 $as_echo "$gl_cv_next_stdint_h" >&6; }
17674 fi
17675 NEXT_STDINT_H=$gl_cv_next_stdint_h
17676
17677 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17679 gl_next_as_first_directive='<'stdint.h'>'
17680 else
17681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17682 gl_next_as_first_directive=$gl_cv_next_stdint_h
17683 fi
17684 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17685
17686
17687
17688
17689 if test $ac_cv_header_stdint_h = yes; then
17690 HAVE_STDINT_H=1
17691 else
17692 HAVE_STDINT_H=0
17693 fi
17694
17695
17696 if test $ac_cv_header_stdint_h = yes; then
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17698 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17699 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702 gl_cv_header_working_stdint_h=no
17703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17705
17706
17707 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17708 #include <stdint.h>
17709 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17710 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17711 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17712 #endif
17713
17714
17715 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17716 included before <wchar.h>. */
17717 #include <stddef.h>
17718 #include <signal.h>
17719 #if HAVE_WCHAR_H
17720 # include <stdio.h>
17721 # include <time.h>
17722 # include <wchar.h>
17723 #endif
17724
17725
17726 #ifdef INT8_MAX
17727 int8_t a1 = INT8_MAX;
17728 int8_t a1min = INT8_MIN;
17729 #endif
17730 #ifdef INT16_MAX
17731 int16_t a2 = INT16_MAX;
17732 int16_t a2min = INT16_MIN;
17733 #endif
17734 #ifdef INT32_MAX
17735 int32_t a3 = INT32_MAX;
17736 int32_t a3min = INT32_MIN;
17737 #endif
17738 #ifdef INT64_MAX
17739 int64_t a4 = INT64_MAX;
17740 int64_t a4min = INT64_MIN;
17741 #endif
17742 #ifdef UINT8_MAX
17743 uint8_t b1 = UINT8_MAX;
17744 #else
17745 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17746 #endif
17747 #ifdef UINT16_MAX
17748 uint16_t b2 = UINT16_MAX;
17749 #endif
17750 #ifdef UINT32_MAX
17751 uint32_t b3 = UINT32_MAX;
17752 #endif
17753 #ifdef UINT64_MAX
17754 uint64_t b4 = UINT64_MAX;
17755 #endif
17756 int_least8_t c1 = INT8_C (0x7f);
17757 int_least8_t c1max = INT_LEAST8_MAX;
17758 int_least8_t c1min = INT_LEAST8_MIN;
17759 int_least16_t c2 = INT16_C (0x7fff);
17760 int_least16_t c2max = INT_LEAST16_MAX;
17761 int_least16_t c2min = INT_LEAST16_MIN;
17762 int_least32_t c3 = INT32_C (0x7fffffff);
17763 int_least32_t c3max = INT_LEAST32_MAX;
17764 int_least32_t c3min = INT_LEAST32_MIN;
17765 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17766 int_least64_t c4max = INT_LEAST64_MAX;
17767 int_least64_t c4min = INT_LEAST64_MIN;
17768 uint_least8_t d1 = UINT8_C (0xff);
17769 uint_least8_t d1max = UINT_LEAST8_MAX;
17770 uint_least16_t d2 = UINT16_C (0xffff);
17771 uint_least16_t d2max = UINT_LEAST16_MAX;
17772 uint_least32_t d3 = UINT32_C (0xffffffff);
17773 uint_least32_t d3max = UINT_LEAST32_MAX;
17774 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17775 uint_least64_t d4max = UINT_LEAST64_MAX;
17776 int_fast8_t e1 = INT_FAST8_MAX;
17777 int_fast8_t e1min = INT_FAST8_MIN;
17778 int_fast16_t e2 = INT_FAST16_MAX;
17779 int_fast16_t e2min = INT_FAST16_MIN;
17780 int_fast32_t e3 = INT_FAST32_MAX;
17781 int_fast32_t e3min = INT_FAST32_MIN;
17782 int_fast64_t e4 = INT_FAST64_MAX;
17783 int_fast64_t e4min = INT_FAST64_MIN;
17784 uint_fast8_t f1 = UINT_FAST8_MAX;
17785 uint_fast16_t f2 = UINT_FAST16_MAX;
17786 uint_fast32_t f3 = UINT_FAST32_MAX;
17787 uint_fast64_t f4 = UINT_FAST64_MAX;
17788 #ifdef INTPTR_MAX
17789 intptr_t g = INTPTR_MAX;
17790 intptr_t gmin = INTPTR_MIN;
17791 #endif
17792 #ifdef UINTPTR_MAX
17793 uintptr_t h = UINTPTR_MAX;
17794 #endif
17795 intmax_t i = INTMAX_MAX;
17796 uintmax_t j = UINTMAX_MAX;
17797
17798 #include <limits.h> /* for CHAR_BIT */
17799 #define TYPE_MINIMUM(t) \
17800 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17801 #define TYPE_MAXIMUM(t) \
17802 ((t) ((t) 0 < (t) -1 \
17803 ? (t) -1 \
17804 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17805 struct s {
17806 int check_PTRDIFF:
17807 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17808 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17809 ? 1 : -1;
17810 /* Detect bug in FreeBSD 6.0 / ia64. */
17811 int check_SIG_ATOMIC:
17812 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17813 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17814 ? 1 : -1;
17815 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17816 int check_WCHAR:
17817 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17818 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17819 ? 1 : -1;
17820 /* Detect bug in mingw. */
17821 int check_WINT:
17822 WINT_MIN == TYPE_MINIMUM (wint_t)
17823 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17824 ? 1 : -1;
17825
17826 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17827 int check_UINT8_C:
17828 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17829 int check_UINT16_C:
17830 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17831
17832 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17833 #ifdef UINT8_MAX
17834 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17835 #endif
17836 #ifdef UINT16_MAX
17837 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17838 #endif
17839 #ifdef UINT32_MAX
17840 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17841 #endif
17842 #ifdef UINT64_MAX
17843 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17844 #endif
17845 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17846 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17847 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17848 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17849 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17850 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17851 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17852 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17853 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17854 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17855 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17856 };
17857
17858 int
17859 main ()
17860 {
17861
17862 ;
17863 return 0;
17864 }
17865 _ACEOF
17866 if ac_fn_c_try_compile "$LINENO"; then :
17867 if test "$cross_compiling" = yes; then :
17868 gl_cv_header_working_stdint_h=yes
17869
17870 else
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873
17874
17875 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17876 #include <stdint.h>
17877
17878
17879 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17880 included before <wchar.h>. */
17881 #include <stddef.h>
17882 #include <signal.h>
17883 #if HAVE_WCHAR_H
17884 # include <stdio.h>
17885 # include <time.h>
17886 # include <wchar.h>
17887 #endif
17888
17889
17890 #include <stdio.h>
17891 #include <string.h>
17892 #define MVAL(macro) MVAL1(macro)
17893 #define MVAL1(expression) #expression
17894 static const char *macro_values[] =
17895 {
17896 #ifdef INT8_MAX
17897 MVAL (INT8_MAX),
17898 #endif
17899 #ifdef INT16_MAX
17900 MVAL (INT16_MAX),
17901 #endif
17902 #ifdef INT32_MAX
17903 MVAL (INT32_MAX),
17904 #endif
17905 #ifdef INT64_MAX
17906 MVAL (INT64_MAX),
17907 #endif
17908 #ifdef UINT8_MAX
17909 MVAL (UINT8_MAX),
17910 #endif
17911 #ifdef UINT16_MAX
17912 MVAL (UINT16_MAX),
17913 #endif
17914 #ifdef UINT32_MAX
17915 MVAL (UINT32_MAX),
17916 #endif
17917 #ifdef UINT64_MAX
17918 MVAL (UINT64_MAX),
17919 #endif
17920 NULL
17921 };
17922
17923 int
17924 main ()
17925 {
17926
17927 const char **mv;
17928 for (mv = macro_values; *mv != NULL; mv++)
17929 {
17930 const char *value = *mv;
17931 /* Test whether it looks like a cast expression. */
17932 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17933 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17934 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17935 || strncmp (value, "((int)"/*)*/, 6) == 0
17936 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17937 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17938 return mv - macro_values + 1;
17939 }
17940 return 0;
17941
17942 ;
17943 return 0;
17944 }
17945 _ACEOF
17946 if ac_fn_c_try_run "$LINENO"; then :
17947 gl_cv_header_working_stdint_h=yes
17948 fi
17949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17950 conftest.$ac_objext conftest.beam conftest.$ac_ext
17951 fi
17952
17953
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956
17957 fi
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17959 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17960 fi
17961 if test "$gl_cv_header_working_stdint_h" = yes; then
17962 STDINT_H=
17963 else
17964 for ac_header in sys/inttypes.h sys/bitypes.h
17965 do :
17966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17967 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17968 eval as_val=\$$as_ac_Header
17969 if test "x$as_val" = x""yes; then :
17970 cat >>confdefs.h <<_ACEOF
17971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17972 _ACEOF
17973
17974 fi
17975
17976 done
17977
17978 if test $ac_cv_header_sys_inttypes_h = yes; then
17979 HAVE_SYS_INTTYPES_H=1
17980 else
17981 HAVE_SYS_INTTYPES_H=0
17982 fi
17983
17984 if test $ac_cv_header_sys_bitypes_h = yes; then
17985 HAVE_SYS_BITYPES_H=1
17986 else
17987 HAVE_SYS_BITYPES_H=0
17988 fi
17989
17990
17991
17992
17993 if test $APPLE_UNIVERSAL_BUILD = 0; then
17994
17995
17996 for gltype in ptrdiff_t size_t ; do
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17998 $as_echo_n "checking for bit size of $gltype... " >&6; }
17999 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18000 $as_echo_n "(cached) " >&6
18001 else
18002 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18003 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18004 included before <wchar.h>. */
18005 #include <stddef.h>
18006 #include <signal.h>
18007 #if HAVE_WCHAR_H
18008 # include <stdio.h>
18009 # include <time.h>
18010 # include <wchar.h>
18011 #endif
18012
18013 #include <limits.h>"; then :
18014
18015 else
18016 result=unknown
18017 fi
18018
18019 eval gl_cv_bitsizeof_${gltype}=\$result
18020
18021 fi
18022 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18024 $as_echo "$ac_res" >&6; }
18025 eval result=\$gl_cv_bitsizeof_${gltype}
18026 if test $result = unknown; then
18027 result=0
18028 fi
18029 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18030 cat >>confdefs.h <<_ACEOF
18031 #define BITSIZEOF_${GLTYPE} $result
18032 _ACEOF
18033
18034 eval BITSIZEOF_${GLTYPE}=\$result
18035 done
18036
18037
18038 fi
18039
18040
18041 for gltype in sig_atomic_t wchar_t wint_t ; do
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18043 $as_echo_n "checking for bit size of $gltype... " >&6; }
18044 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18045 $as_echo_n "(cached) " >&6
18046 else
18047 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18048 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18049 included before <wchar.h>. */
18050 #include <stddef.h>
18051 #include <signal.h>
18052 #if HAVE_WCHAR_H
18053 # include <stdio.h>
18054 # include <time.h>
18055 # include <wchar.h>
18056 #endif
18057
18058 #include <limits.h>"; then :
18059
18060 else
18061 result=unknown
18062 fi
18063
18064 eval gl_cv_bitsizeof_${gltype}=\$result
18065
18066 fi
18067 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18069 $as_echo "$ac_res" >&6; }
18070 eval result=\$gl_cv_bitsizeof_${gltype}
18071 if test $result = unknown; then
18072 result=0
18073 fi
18074 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18075 cat >>confdefs.h <<_ACEOF
18076 #define BITSIZEOF_${GLTYPE} $result
18077 _ACEOF
18078
18079 eval BITSIZEOF_${GLTYPE}=\$result
18080 done
18081
18082
18083
18084
18085 for gltype in sig_atomic_t wchar_t wint_t ; do
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18087 $as_echo_n "checking whether $gltype is signed... " >&6; }
18088 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18089 $as_echo_n "(cached) " >&6
18090 else
18091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h. */
18093
18094 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18095 included before <wchar.h>. */
18096 #include <stddef.h>
18097 #include <signal.h>
18098 #if HAVE_WCHAR_H
18099 # include <stdio.h>
18100 # include <time.h>
18101 # include <wchar.h>
18102 #endif
18103
18104 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18105 int
18106 main ()
18107 {
18108
18109 ;
18110 return 0;
18111 }
18112 _ACEOF
18113 if ac_fn_c_try_compile "$LINENO"; then :
18114 result=yes
18115 else
18116 result=no
18117 fi
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 eval gl_cv_type_${gltype}_signed=\$result
18120
18121 fi
18122 eval ac_res=\$gl_cv_type_${gltype}_signed
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18124 $as_echo "$ac_res" >&6; }
18125 eval result=\$gl_cv_type_${gltype}_signed
18126 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18127 if test "$result" = yes; then
18128 cat >>confdefs.h <<_ACEOF
18129 #define HAVE_SIGNED_${GLTYPE} 1
18130 _ACEOF
18131
18132 eval HAVE_SIGNED_${GLTYPE}=1
18133 else
18134 eval HAVE_SIGNED_${GLTYPE}=0
18135 fi
18136 done
18137
18138
18139 gl_cv_type_ptrdiff_t_signed=yes
18140 gl_cv_type_size_t_signed=no
18141 if test $APPLE_UNIVERSAL_BUILD = 0; then
18142
18143
18144 for gltype in ptrdiff_t size_t ; do
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18146 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18147 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18148 $as_echo_n "(cached) " >&6
18149 else
18150 eval gl_cv_type_${gltype}_suffix=no
18151 eval result=\$gl_cv_type_${gltype}_signed
18152 if test "$result" = yes; then
18153 glsufu=
18154 else
18155 glsufu=u
18156 fi
18157 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18158 case $glsuf in
18159 '') gltype1='int';;
18160 l) gltype1='long int';;
18161 ll) gltype1='long long int';;
18162 i64) gltype1='__int64';;
18163 u) gltype1='unsigned int';;
18164 ul) gltype1='unsigned long int';;
18165 ull) gltype1='unsigned long long int';;
18166 ui64)gltype1='unsigned __int64';;
18167 esac
18168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169 /* end confdefs.h. */
18170
18171 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18172 included before <wchar.h>. */
18173 #include <stddef.h>
18174 #include <signal.h>
18175 #if HAVE_WCHAR_H
18176 # include <stdio.h>
18177 # include <time.h>
18178 # include <wchar.h>
18179 #endif
18180
18181 extern $gltype foo;
18182 extern $gltype1 foo;
18183 int
18184 main ()
18185 {
18186
18187 ;
18188 return 0;
18189 }
18190 _ACEOF
18191 if ac_fn_c_try_compile "$LINENO"; then :
18192 eval gl_cv_type_${gltype}_suffix=\$glsuf
18193 fi
18194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18195 eval result=\$gl_cv_type_${gltype}_suffix
18196 test "$result" != no && break
18197 done
18198 fi
18199 eval ac_res=\$gl_cv_type_${gltype}_suffix
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18201 $as_echo "$ac_res" >&6; }
18202 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18203 eval result=\$gl_cv_type_${gltype}_suffix
18204 test "$result" = no && result=
18205 eval ${GLTYPE}_SUFFIX=\$result
18206 cat >>confdefs.h <<_ACEOF
18207 #define ${GLTYPE}_SUFFIX $result
18208 _ACEOF
18209
18210 done
18211
18212
18213 fi
18214
18215
18216 for gltype in sig_atomic_t wchar_t wint_t ; do
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18218 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18219 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18220 $as_echo_n "(cached) " >&6
18221 else
18222 eval gl_cv_type_${gltype}_suffix=no
18223 eval result=\$gl_cv_type_${gltype}_signed
18224 if test "$result" = yes; then
18225 glsufu=
18226 else
18227 glsufu=u
18228 fi
18229 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18230 case $glsuf in
18231 '') gltype1='int';;
18232 l) gltype1='long int';;
18233 ll) gltype1='long long int';;
18234 i64) gltype1='__int64';;
18235 u) gltype1='unsigned int';;
18236 ul) gltype1='unsigned long int';;
18237 ull) gltype1='unsigned long long int';;
18238 ui64)gltype1='unsigned __int64';;
18239 esac
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18242
18243 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18244 included before <wchar.h>. */
18245 #include <stddef.h>
18246 #include <signal.h>
18247 #if HAVE_WCHAR_H
18248 # include <stdio.h>
18249 # include <time.h>
18250 # include <wchar.h>
18251 #endif
18252
18253 extern $gltype foo;
18254 extern $gltype1 foo;
18255 int
18256 main ()
18257 {
18258
18259 ;
18260 return 0;
18261 }
18262 _ACEOF
18263 if ac_fn_c_try_compile "$LINENO"; then :
18264 eval gl_cv_type_${gltype}_suffix=\$glsuf
18265 fi
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 eval result=\$gl_cv_type_${gltype}_suffix
18268 test "$result" != no && break
18269 done
18270 fi
18271 eval ac_res=\$gl_cv_type_${gltype}_suffix
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18273 $as_echo "$ac_res" >&6; }
18274 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18275 eval result=\$gl_cv_type_${gltype}_suffix
18276 test "$result" = no && result=
18277 eval ${GLTYPE}_SUFFIX=\$result
18278 cat >>confdefs.h <<_ACEOF
18279 #define ${GLTYPE}_SUFFIX $result
18280 _ACEOF
18281
18282 done
18283
18284
18285
18286 if test $BITSIZEOF_WINT_T -lt 32; then
18287 BITSIZEOF_WINT_T=32
18288 fi
18289
18290 STDINT_H=stdint.h
18291 fi
18292
18293 if test -n "$STDINT_H"; then
18294 GL_GENERATE_STDINT_H_TRUE=
18295 GL_GENERATE_STDINT_H_FALSE='#'
18296 else
18297 GL_GENERATE_STDINT_H_TRUE='#'
18298 GL_GENERATE_STDINT_H_FALSE=
18299 fi
18300
18301
18302
18303
18304
18305 GNULIB_IMAXABS=0;
18306 GNULIB_IMAXDIV=0;
18307 GNULIB_STRTOIMAX=0;
18308 GNULIB_STRTOUMAX=0;
18309 HAVE_DECL_IMAXABS=1;
18310 HAVE_DECL_IMAXDIV=1;
18311 HAVE_DECL_STRTOIMAX=1;
18312 HAVE_DECL_STRTOUMAX=1;
18313 REPLACE_STRTOIMAX=0;
18314 INT32_MAX_LT_INTMAX_MAX=1;
18315 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18316 PRI_MACROS_BROKEN=0;
18317 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18318 UINT32_MAX_LT_UINTMAX_MAX=1;
18319 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335 if test $gl_cv_have_include_next = yes; then
18336 gl_cv_next_inttypes_h='<'inttypes.h'>'
18337 else
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18339 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18340 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18341 $as_echo_n "(cached) " >&6
18342 else
18343
18344 if test $ac_cv_header_inttypes_h = yes; then
18345
18346
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18349 #include <inttypes.h>
18350
18351 _ACEOF
18352 case "$host_os" in
18353 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18354 *) gl_absname_cpp="$ac_cpp" ;;
18355 esac
18356
18357 case "$host_os" in
18358 mingw*)
18359 gl_dirsep_regex='[/\\]'
18360 ;;
18361 *)
18362 gl_dirsep_regex='\/'
18363 ;;
18364 esac
18365 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18366
18367 gl_header_literal_regex=`echo 'inttypes.h' \
18368 | sed -e "$gl_make_literal_regex_sed"`
18369 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18370 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18371 s|^/[^/]|//&|
18372 p
18373 q
18374 }'
18375 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18376 sed -n "$gl_absolute_header_sed"`'"'
18377 else
18378 gl_cv_next_inttypes_h='<'inttypes.h'>'
18379 fi
18380
18381
18382 fi
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18384 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18385 fi
18386 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18387
18388 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18389 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18390 gl_next_as_first_directive='<'inttypes.h'>'
18391 else
18392 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18393 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18394 fi
18395 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407 case "$host_os" in
18408 mingw*)
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18410 $as_echo_n "checking for 64-bit off_t... " >&6; }
18411 if test "${gl_cv_type_off_t_64+set}" = set; then :
18412 $as_echo_n "(cached) " >&6
18413 else
18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18416 #include <sys/types.h>
18417 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18418
18419 int
18420 main ()
18421 {
18422
18423 ;
18424 return 0;
18425 }
18426 _ACEOF
18427 if ac_fn_c_try_compile "$LINENO"; then :
18428 gl_cv_type_off_t_64=yes
18429 else
18430 gl_cv_type_off_t_64=no
18431 fi
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433
18434 fi
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18436 $as_echo "$gl_cv_type_off_t_64" >&6; }
18437 if test $gl_cv_type_off_t_64 = no; then
18438 WINDOWS_64_BIT_OFF_T=1
18439 else
18440 WINDOWS_64_BIT_OFF_T=0
18441 fi
18442 WINDOWS_64_BIT_ST_SIZE=1
18443 ;;
18444 *)
18445 WINDOWS_64_BIT_OFF_T=0
18446 WINDOWS_64_BIT_ST_SIZE=0
18447 ;;
18448 esac
18449
18450
18451 GNULIB_FCHMODAT=0;
18452 GNULIB_FSTAT=0;
18453 GNULIB_FSTATAT=0;
18454 GNULIB_FUTIMENS=0;
18455 GNULIB_LCHMOD=0;
18456 GNULIB_LSTAT=0;
18457 GNULIB_MKDIRAT=0;
18458 GNULIB_MKFIFO=0;
18459 GNULIB_MKFIFOAT=0;
18460 GNULIB_MKNOD=0;
18461 GNULIB_MKNODAT=0;
18462 GNULIB_STAT=0;
18463 GNULIB_UTIMENSAT=0;
18464 HAVE_FCHMODAT=1;
18465 HAVE_FSTATAT=1;
18466 HAVE_FUTIMENS=1;
18467 HAVE_LCHMOD=1;
18468 HAVE_LSTAT=1;
18469 HAVE_MKDIRAT=1;
18470 HAVE_MKFIFO=1;
18471 HAVE_MKFIFOAT=1;
18472 HAVE_MKNOD=1;
18473 HAVE_MKNODAT=1;
18474 HAVE_UTIMENSAT=1;
18475 REPLACE_FSTAT=0;
18476 REPLACE_FSTATAT=0;
18477 REPLACE_FUTIMENS=0;
18478 REPLACE_LSTAT=0;
18479 REPLACE_MKDIR=0;
18480 REPLACE_MKFIFO=0;
18481 REPLACE_MKNOD=0;
18482 REPLACE_STAT=0;
18483 REPLACE_UTIMENSAT=0;
18484
18485
18486
18487
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18489 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18490 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18493 rm -f conftest.sym conftest.file
18494 echo >conftest.file
18495 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18496 if test "$cross_compiling" = yes; then :
18497 case "$host_os" in
18498 # Guess yes on glibc systems.
18499 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18500 # If we don't know, assume the worst.
18501 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18502 esac
18503
18504 else
18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506 /* end confdefs.h. */
18507 $ac_includes_default
18508 int
18509 main ()
18510 {
18511 struct stat sbuf;
18512 /* Linux will dereference the symlink and fail, as required by
18513 POSIX. That is better in the sense that it means we will not
18514 have to compile and use the lstat wrapper. */
18515 return lstat ("conftest.sym/", &sbuf) == 0;
18516
18517 ;
18518 return 0;
18519 }
18520 _ACEOF
18521 if ac_fn_c_try_run "$LINENO"; then :
18522 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18523 else
18524 gl_cv_func_lstat_dereferences_slashed_symlink=no
18525 fi
18526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18527 conftest.$ac_objext conftest.beam conftest.$ac_ext
18528 fi
18529
18530 else
18531 # If the 'ln -s' command failed, then we probably don't even
18532 # have an lstat function.
18533 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18534 fi
18535 rm -f conftest.sym conftest.file
18536
18537 fi
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18539 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18540 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18541 *yes)
18542
18543 cat >>confdefs.h <<_ACEOF
18544 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18545 _ACEOF
18546
18547 ;;
18548 esac
18549
18550
18551 GNULIB_MKTIME=0;
18552 GNULIB_NANOSLEEP=0;
18553 GNULIB_STRPTIME=0;
18554 GNULIB_TIMEGM=0;
18555 GNULIB_TIME_R=0;
18556 HAVE_DECL_LOCALTIME_R=1;
18557 HAVE_NANOSLEEP=1;
18558 HAVE_STRPTIME=1;
18559 HAVE_TIMEGM=1;
18560 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18561 REPLACE_MKTIME=GNULIB_PORTCHECK;
18562 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18563 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18564
18565
18566
18567
18568 GNULIB_PSELECT=0;
18569 GNULIB_SELECT=0;
18570 HAVE_PSELECT=1;
18571 REPLACE_PSELECT=0;
18572 REPLACE_SELECT=0;
18573
18574
18575
18576
18577
18578
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
18580 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
18581 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
18582 $as_echo_n "(cached) " >&6
18583 else
18584
18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h. */
18587 #include <sys/select.h>
18588 int
18589 main ()
18590 {
18591 struct timeval b;
18592 ;
18593 return 0;
18594 }
18595 _ACEOF
18596 if ac_fn_c_try_compile "$LINENO"; then :
18597 gl_cv_header_sys_select_h_selfcontained=yes
18598 else
18599 gl_cv_header_sys_select_h_selfcontained=no
18600 fi
18601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18602 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
18603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18604 /* end confdefs.h. */
18605 #include <sys/select.h>
18606 int
18607 main ()
18608 {
18609 int memset; int bzero;
18610 ;
18611 return 0;
18612 }
18613
18614 _ACEOF
18615 if ac_fn_c_try_compile "$LINENO"; then :
18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617 /* end confdefs.h. */
18618 #include <sys/select.h>
18619 int
18620 main ()
18621 {
18622
18623 #undef memset
18624 #define memset nonexistent_memset
18625 extern
18626 #ifdef __cplusplus
18627 "C"
18628 #endif
18629 void *memset (void *, int, unsigned long);
18630 #undef bzero
18631 #define bzero nonexistent_bzero
18632 extern
18633 #ifdef __cplusplus
18634 "C"
18635 #endif
18636 void bzero (void *, unsigned long);
18637 fd_set fds;
18638 FD_ZERO (&fds);
18639
18640 ;
18641 return 0;
18642 }
18643
18644 _ACEOF
18645 if ac_fn_c_try_link "$LINENO"; then :
18646
18647 else
18648 gl_cv_header_sys_select_h_selfcontained=no
18649 fi
18650 rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652
18653 fi
18654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18655 fi
18656
18657 fi
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
18659 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669 if test $gl_cv_have_include_next = yes; then
18670 gl_cv_next_sys_select_h='<'sys/select.h'>'
18671 else
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
18673 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
18674 if test "${gl_cv_next_sys_select_h+set}" = set; then :
18675 $as_echo_n "(cached) " >&6
18676 else
18677
18678 if test $ac_cv_header_sys_select_h = yes; then
18679
18680
18681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h. */
18683 #include <sys/select.h>
18684
18685 _ACEOF
18686 case "$host_os" in
18687 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18688 *) gl_absname_cpp="$ac_cpp" ;;
18689 esac
18690
18691 case "$host_os" in
18692 mingw*)
18693 gl_dirsep_regex='[/\\]'
18694 ;;
18695 *)
18696 gl_dirsep_regex='\/'
18697 ;;
18698 esac
18699 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18700
18701 gl_header_literal_regex=`echo 'sys/select.h' \
18702 | sed -e "$gl_make_literal_regex_sed"`
18703 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18704 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18705 s|^/[^/]|//&|
18706 p
18707 q
18708 }'
18709 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18710 sed -n "$gl_absolute_header_sed"`'"'
18711 else
18712 gl_cv_next_sys_select_h='<'sys/select.h'>'
18713 fi
18714
18715
18716 fi
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
18718 $as_echo "$gl_cv_next_sys_select_h" >&6; }
18719 fi
18720 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
18721
18722 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18724 gl_next_as_first_directive='<'sys/select.h'>'
18725 else
18726 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18727 gl_next_as_first_directive=$gl_cv_next_sys_select_h
18728 fi
18729 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
18730
18731
18732
18733
18734 if test $ac_cv_header_sys_select_h = yes; then
18735 HAVE_SYS_SELECT_H=1
18736 else
18737 HAVE_SYS_SELECT_H=0
18738 fi
18739
18740
18741
18742
18743
18744 if test $ac_cv_header_sys_socket_h != yes; then
18745 for ac_header in winsock2.h
18746 do :
18747 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18748 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18749 cat >>confdefs.h <<_ACEOF
18750 #define HAVE_WINSOCK2_H 1
18751 _ACEOF
18752
18753 fi
18754
18755 done
18756
18757 fi
18758 if test "$ac_cv_header_winsock2_h" = yes; then
18759 HAVE_WINSOCK2_H=1
18760 UNISTD_H_HAVE_WINSOCK2_H=1
18761 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18762 else
18763 HAVE_WINSOCK2_H=0
18764 fi
18765
18766
18767
18768
18769
18770
18771
18772
18773 GNULIB_PTHREAD_SIGMASK=0;
18774 GNULIB_RAISE=0;
18775 GNULIB_SIGNAL_H_SIGPIPE=0;
18776 GNULIB_SIGPROCMASK=0;
18777 GNULIB_SIGACTION=0;
18778 HAVE_POSIX_SIGNALBLOCKING=1;
18779 HAVE_PTHREAD_SIGMASK=1;
18780 HAVE_RAISE=1;
18781 HAVE_SIGSET_T=1;
18782 HAVE_SIGINFO_T=1;
18783 HAVE_SIGACTION=1;
18784 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18785
18786 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18787
18788 HAVE_SIGHANDLER_T=1;
18789 REPLACE_PTHREAD_SIGMASK=0;
18790 REPLACE_RAISE=0;
18791
18792
18793
18794
18795
18796
18797 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18798 #include <signal.h>
18799 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18800 #include <sys/types.h>
18801
18802 "
18803 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18804
18805 cat >>confdefs.h <<_ACEOF
18806 #define HAVE_SIGSET_T 1
18807 _ACEOF
18808
18809 gl_cv_type_sigset_t=yes
18810 else
18811 gl_cv_type_sigset_t=no
18812 fi
18813
18814 if test $gl_cv_type_sigset_t != yes; then
18815 HAVE_SIGSET_T=0
18816 fi
18817
18818
18819
18820 if test $ac_cv_header_sys_socket_h = no; then
18821 for ac_header in ws2tcpip.h
18822 do :
18823 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18824 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18825 cat >>confdefs.h <<_ACEOF
18826 #define HAVE_WS2TCPIP_H 1
18827 _ACEOF
18828
18829 fi
18830
18831 done
18832
18833 fi
18834
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18836 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18837 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18838 $as_echo_n "(cached) " >&6
18839 else
18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h. */
18842
18843 #include <stdbool.h>
18844 #ifndef bool
18845 "error: bool is not defined"
18846 #endif
18847 #ifndef false
18848 "error: false is not defined"
18849 #endif
18850 #if false
18851 "error: false is not 0"
18852 #endif
18853 #ifndef true
18854 "error: true is not defined"
18855 #endif
18856 #if true != 1
18857 "error: true is not 1"
18858 #endif
18859 #ifndef __bool_true_false_are_defined
18860 "error: __bool_true_false_are_defined is not defined"
18861 #endif
18862
18863 struct s { _Bool s: 1; _Bool t; } s;
18864
18865 char a[true == 1 ? 1 : -1];
18866 char b[false == 0 ? 1 : -1];
18867 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18868 char d[(bool) 0.5 == true ? 1 : -1];
18869 /* See body of main program for 'e'. */
18870 char f[(_Bool) 0.0 == false ? 1 : -1];
18871 char g[true];
18872 char h[sizeof (_Bool)];
18873 char i[sizeof s.t];
18874 enum { j = false, k = true, l = false * true, m = true * 256 };
18875 /* The following fails for
18876 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18877 _Bool n[m];
18878 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18879 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18880 /* Catch a bug in an HP-UX C compiler. See
18881 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18882 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18883 */
18884 _Bool q = true;
18885 _Bool *pq = &q;
18886
18887 int
18888 main ()
18889 {
18890
18891 bool e = &s;
18892 *pq |= q;
18893 *pq |= ! q;
18894 /* Refer to every declared value, to avoid compiler optimizations. */
18895 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18896 + !m + !n + !o + !p + !q + !pq);
18897
18898 ;
18899 return 0;
18900 }
18901 _ACEOF
18902 if ac_fn_c_try_compile "$LINENO"; then :
18903 ac_cv_header_stdbool_h=yes
18904 else
18905 ac_cv_header_stdbool_h=no
18906 fi
18907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18908 fi
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18910 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18911 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18912 if test "x$ac_cv_type__Bool" = x""yes; then :
18913
18914 cat >>confdefs.h <<_ACEOF
18915 #define HAVE__BOOL 1
18916 _ACEOF
18917
18918
18919 fi
18920
18921
18922
18923 REPLACE_NULL=0;
18924 HAVE_WCHAR_T=1;
18925
18926
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18928 $as_echo_n "checking for wchar_t... " >&6; }
18929 if test "${gt_cv_c_wchar_t+set}" = set; then :
18930 $as_echo_n "(cached) " >&6
18931 else
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18934 #include <stddef.h>
18935 wchar_t foo = (wchar_t)'\0';
18936 int
18937 main ()
18938 {
18939
18940 ;
18941 return 0;
18942 }
18943 _ACEOF
18944 if ac_fn_c_try_compile "$LINENO"; then :
18945 gt_cv_c_wchar_t=yes
18946 else
18947 gt_cv_c_wchar_t=no
18948 fi
18949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18950 fi
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18952 $as_echo "$gt_cv_c_wchar_t" >&6; }
18953 if test $gt_cv_c_wchar_t = yes; then
18954
18955 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18956
18957 fi
18958
18959
18960 GNULIB_DPRINTF=0;
18961 GNULIB_FCLOSE=0;
18962 GNULIB_FDOPEN=0;
18963 GNULIB_FFLUSH=0;
18964 GNULIB_FGETC=0;
18965 GNULIB_FGETS=0;
18966 GNULIB_FOPEN=0;
18967 GNULIB_FPRINTF=0;
18968 GNULIB_FPRINTF_POSIX=0;
18969 GNULIB_FPURGE=0;
18970 GNULIB_FPUTC=0;
18971 GNULIB_FPUTS=0;
18972 GNULIB_FREAD=0;
18973 GNULIB_FREOPEN=0;
18974 GNULIB_FSCANF=0;
18975 GNULIB_FSEEK=0;
18976 GNULIB_FSEEKO=0;
18977 GNULIB_FTELL=0;
18978 GNULIB_FTELLO=0;
18979 GNULIB_FWRITE=0;
18980 GNULIB_GETC=0;
18981 GNULIB_GETCHAR=0;
18982 GNULIB_GETDELIM=0;
18983 GNULIB_GETLINE=0;
18984 GNULIB_OBSTACK_PRINTF=0;
18985 GNULIB_OBSTACK_PRINTF_POSIX=0;
18986 GNULIB_PCLOSE=0;
18987 GNULIB_PERROR=0;
18988 GNULIB_POPEN=0;
18989 GNULIB_PRINTF=0;
18990 GNULIB_PRINTF_POSIX=0;
18991 GNULIB_PUTC=0;
18992 GNULIB_PUTCHAR=0;
18993 GNULIB_PUTS=0;
18994 GNULIB_REMOVE=0;
18995 GNULIB_RENAME=0;
18996 GNULIB_RENAMEAT=0;
18997 GNULIB_SCANF=0;
18998 GNULIB_SNPRINTF=0;
18999 GNULIB_SPRINTF_POSIX=0;
19000 GNULIB_STDIO_H_NONBLOCKING=0;
19001 GNULIB_STDIO_H_SIGPIPE=0;
19002 GNULIB_TMPFILE=0;
19003 GNULIB_VASPRINTF=0;
19004 GNULIB_VFSCANF=0;
19005 GNULIB_VSCANF=0;
19006 GNULIB_VDPRINTF=0;
19007 GNULIB_VFPRINTF=0;
19008 GNULIB_VFPRINTF_POSIX=0;
19009 GNULIB_VPRINTF=0;
19010 GNULIB_VPRINTF_POSIX=0;
19011 GNULIB_VSNPRINTF=0;
19012 GNULIB_VSPRINTF_POSIX=0;
19013 HAVE_DECL_FPURGE=1;
19014 HAVE_DECL_FSEEKO=1;
19015 HAVE_DECL_FTELLO=1;
19016 HAVE_DECL_GETDELIM=1;
19017 HAVE_DECL_GETLINE=1;
19018 HAVE_DECL_OBSTACK_PRINTF=1;
19019 HAVE_DECL_SNPRINTF=1;
19020 HAVE_DECL_VSNPRINTF=1;
19021 HAVE_DPRINTF=1;
19022 HAVE_FSEEKO=1;
19023 HAVE_FTELLO=1;
19024 HAVE_PCLOSE=1;
19025 HAVE_POPEN=1;
19026 HAVE_RENAMEAT=1;
19027 HAVE_VASPRINTF=1;
19028 HAVE_VDPRINTF=1;
19029 REPLACE_DPRINTF=0;
19030 REPLACE_FCLOSE=0;
19031 REPLACE_FDOPEN=0;
19032 REPLACE_FFLUSH=0;
19033 REPLACE_FOPEN=0;
19034 REPLACE_FPRINTF=0;
19035 REPLACE_FPURGE=0;
19036 REPLACE_FREOPEN=0;
19037 REPLACE_FSEEK=0;
19038 REPLACE_FSEEKO=0;
19039 REPLACE_FTELL=0;
19040 REPLACE_FTELLO=0;
19041 REPLACE_GETDELIM=0;
19042 REPLACE_GETLINE=0;
19043 REPLACE_OBSTACK_PRINTF=0;
19044 REPLACE_PERROR=0;
19045 REPLACE_POPEN=0;
19046 REPLACE_PRINTF=0;
19047 REPLACE_REMOVE=0;
19048 REPLACE_RENAME=0;
19049 REPLACE_RENAMEAT=0;
19050 REPLACE_SNPRINTF=0;
19051 REPLACE_SPRINTF=0;
19052 REPLACE_STDIO_READ_FUNCS=0;
19053 REPLACE_STDIO_WRITE_FUNCS=0;
19054 REPLACE_TMPFILE=0;
19055 REPLACE_VASPRINTF=0;
19056 REPLACE_VDPRINTF=0;
19057 REPLACE_VFPRINTF=0;
19058 REPLACE_VPRINTF=0;
19059 REPLACE_VSNPRINTF=0;
19060 REPLACE_VSPRINTF=0;
19061
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19063 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19064 if test "${ac_cv_struct_tm+set}" = set; then :
19065 $as_echo_n "(cached) " >&6
19066 else
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h. */
19069 #include <sys/types.h>
19070 #include <time.h>
19071
19072 int
19073 main ()
19074 {
19075 struct tm tm;
19076 int *p = &tm.tm_sec;
19077 return !p;
19078 ;
19079 return 0;
19080 }
19081 _ACEOF
19082 if ac_fn_c_try_compile "$LINENO"; then :
19083 ac_cv_struct_tm=time.h
19084 else
19085 ac_cv_struct_tm=sys/time.h
19086 fi
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088 fi
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19090 $as_echo "$ac_cv_struct_tm" >&6; }
19091 if test $ac_cv_struct_tm = sys/time.h; then
19092
19093 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19094
19095 fi
19096
19097 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19098 #include <$ac_cv_struct_tm>
19099
19100 "
19101 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19102
19103 cat >>confdefs.h <<_ACEOF
19104 #define HAVE_STRUCT_TM_TM_ZONE 1
19105 _ACEOF
19106
19107
19108 fi
19109
19110 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19111
19112 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19113
19114 else
19115 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19116 "
19117 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19118 ac_have_decl=1
19119 else
19120 ac_have_decl=0
19121 fi
19122
19123 cat >>confdefs.h <<_ACEOF
19124 #define HAVE_DECL_TZNAME $ac_have_decl
19125 _ACEOF
19126
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19128 $as_echo_n "checking for tzname... " >&6; }
19129 if test "${ac_cv_var_tzname+set}" = set; then :
19130 $as_echo_n "(cached) " >&6
19131 else
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19134 #include <time.h>
19135 #if !HAVE_DECL_TZNAME
19136 extern char *tzname[];
19137 #endif
19138
19139 int
19140 main ()
19141 {
19142 return tzname[0][0];
19143 ;
19144 return 0;
19145 }
19146 _ACEOF
19147 if ac_fn_c_try_link "$LINENO"; then :
19148 ac_cv_var_tzname=yes
19149 else
19150 ac_cv_var_tzname=no
19151 fi
19152 rm -f core conftest.err conftest.$ac_objext \
19153 conftest$ac_exeext conftest.$ac_ext
19154 fi
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19156 $as_echo "$ac_cv_var_tzname" >&6; }
19157 if test $ac_cv_var_tzname = yes; then
19158
19159 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19160
19161 fi
19162 fi
19163
19164
19165 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19166 "
19167 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19168
19169 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19170
19171 fi
19172
19173
19174
19175
19176 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19177 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19178 ac_have_decl=1
19179 else
19180 ac_have_decl=0
19181 fi
19182
19183 cat >>confdefs.h <<_ACEOF
19184 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19185 _ACEOF
19186
19187
19188
19189 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19190 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19191 ac_have_decl=1
19192 else
19193 ac_have_decl=0
19194 fi
19195
19196 cat >>confdefs.h <<_ACEOF
19197 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19198 _ACEOF
19199
19200
19201
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19203 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19204 if test "${ac_cv_header_stat_broken+set}" = set; then :
19205 $as_echo_n "(cached) " >&6
19206 else
19207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208 /* end confdefs.h. */
19209 #include <sys/types.h>
19210 #include <sys/stat.h>
19211
19212 #if defined S_ISBLK && defined S_IFDIR
19213 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19214 #endif
19215
19216 #if defined S_ISBLK && defined S_IFCHR
19217 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19218 #endif
19219
19220 #if defined S_ISLNK && defined S_IFREG
19221 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19222 #endif
19223
19224 #if defined S_ISSOCK && defined S_IFREG
19225 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19226 #endif
19227
19228 _ACEOF
19229 if ac_fn_c_try_compile "$LINENO"; then :
19230 ac_cv_header_stat_broken=no
19231 else
19232 ac_cv_header_stat_broken=yes
19233 fi
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235 fi
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19237 $as_echo "$ac_cv_header_stat_broken" >&6; }
19238 if test $ac_cv_header_stat_broken = yes; then
19239
19240 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19241
19242 fi
19243
19244
19245
19246 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19247 if test "x$ac_cv_type_mode_t" = x""yes; then :
19248
19249 else
19250
19251 cat >>confdefs.h <<_ACEOF
19252 #define mode_t int
19253 _ACEOF
19254
19255 fi
19256
19257
19258
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19260 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19261 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19262 $as_echo_n "(cached) " >&6
19263 else
19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19266 #include <time.h>
19267
19268 int
19269 main ()
19270 {
19271 static struct timespec x; x.tv_sec = x.tv_nsec;
19272 ;
19273 return 0;
19274 }
19275 _ACEOF
19276 if ac_fn_c_try_compile "$LINENO"; then :
19277 gl_cv_sys_struct_timespec_in_time_h=yes
19278 else
19279 gl_cv_sys_struct_timespec_in_time_h=no
19280 fi
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 fi
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19284 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19285
19286 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19287 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19288 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19289 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19290 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19291 else
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19293 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19294 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19295 $as_echo_n "(cached) " >&6
19296 else
19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19299 #include <sys/time.h>
19300
19301 int
19302 main ()
19303 {
19304 static struct timespec x; x.tv_sec = x.tv_nsec;
19305 ;
19306 return 0;
19307 }
19308 _ACEOF
19309 if ac_fn_c_try_compile "$LINENO"; then :
19310 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19311 else
19312 gl_cv_sys_struct_timespec_in_sys_time_h=no
19313 fi
19314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19315 fi
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19317 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19318 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19319 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19320 else
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19322 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19323 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19324 $as_echo_n "(cached) " >&6
19325 else
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19328 #include <pthread.h>
19329
19330 int
19331 main ()
19332 {
19333 static struct timespec x; x.tv_sec = x.tv_nsec;
19334 ;
19335 return 0;
19336 }
19337 _ACEOF
19338 if ac_fn_c_try_compile "$LINENO"; then :
19339 gl_cv_sys_struct_timespec_in_pthread_h=yes
19340 else
19341 gl_cv_sys_struct_timespec_in_pthread_h=no
19342 fi
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19344 fi
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19346 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19347 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19348 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19349 fi
19350 fi
19351 fi
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367 if test $gl_cv_have_include_next = yes; then
19368 gl_cv_next_time_h='<'time.h'>'
19369 else
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19371 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19372 if test "${gl_cv_next_time_h+set}" = set; then :
19373 $as_echo_n "(cached) " >&6
19374 else
19375
19376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19378 #include <time.h>
19379
19380 _ACEOF
19381 case "$host_os" in
19382 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19383 *) gl_absname_cpp="$ac_cpp" ;;
19384 esac
19385
19386 case "$host_os" in
19387 mingw*)
19388 gl_dirsep_regex='[/\\]'
19389 ;;
19390 *)
19391 gl_dirsep_regex='\/'
19392 ;;
19393 esac
19394 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19395
19396 gl_header_literal_regex=`echo 'time.h' \
19397 | sed -e "$gl_make_literal_regex_sed"`
19398 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19399 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19400 s|^/[^/]|//&|
19401 p
19402 q
19403 }'
19404 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19405 sed -n "$gl_absolute_header_sed"`'"'
19406
19407
19408 fi
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19410 $as_echo "$gl_cv_next_time_h" >&6; }
19411 fi
19412 NEXT_TIME_H=$gl_cv_next_time_h
19413
19414 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19415 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19416 gl_next_as_first_directive='<'time.h'>'
19417 else
19418 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19419 gl_next_as_first_directive=$gl_cv_next_time_h
19420 fi
19421 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19438 $as_echo_n "checking whether the utimes function works... " >&6; }
19439 if test "${gl_cv_func_working_utimes+set}" = set; then :
19440 $as_echo_n "(cached) " >&6
19441 else
19442
19443 if test "$cross_compiling" = yes; then :
19444 gl_cv_func_working_utimes=no
19445 else
19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h. */
19448
19449 #include <sys/types.h>
19450 #include <sys/stat.h>
19451 #include <fcntl.h>
19452 #include <sys/time.h>
19453 #include <time.h>
19454 #include <unistd.h>
19455 #include <stdlib.h>
19456 #include <stdio.h>
19457 #include <utime.h>
19458
19459 static int
19460 inorder (time_t a, time_t b, time_t c)
19461 {
19462 return a <= b && b <= c;
19463 }
19464
19465 int
19466 main ()
19467 {
19468 int result = 0;
19469 char const *file = "conftest.utimes";
19470 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19471
19472 /* Test whether utimes() essentially works. */
19473 {
19474 struct stat sbuf;
19475 FILE *f = fopen (file, "w");
19476 if (f == NULL)
19477 result |= 1;
19478 else if (fclose (f) != 0)
19479 result |= 1;
19480 else if (utimes (file, timeval) != 0)
19481 result |= 2;
19482 else if (lstat (file, &sbuf) != 0)
19483 result |= 1;
19484 else if (!(sbuf.st_atime == timeval[0].tv_sec
19485 && sbuf.st_mtime == timeval[1].tv_sec))
19486 result |= 4;
19487 if (unlink (file) != 0)
19488 result |= 1;
19489 }
19490
19491 /* Test whether utimes() with a NULL argument sets the file's timestamp
19492 to the current time. Use 'fstat' as well as 'time' to
19493 determine the "current" time, to accommodate NFS file systems
19494 if there is a time skew between the host and the NFS server. */
19495 {
19496 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19497 if (fd < 0)
19498 result |= 1;
19499 else
19500 {
19501 time_t t0, t2;
19502 struct stat st0, st1, st2;
19503 if (time (&t0) == (time_t) -1)
19504 result |= 1;
19505 else if (fstat (fd, &st0) != 0)
19506 result |= 1;
19507 else if (utimes (file, timeval) != 0)
19508 result |= 2;
19509 else if (utimes (file, NULL) != 0)
19510 result |= 8;
19511 else if (fstat (fd, &st1) != 0)
19512 result |= 1;
19513 else if (write (fd, "\n", 1) != 1)
19514 result |= 1;
19515 else if (fstat (fd, &st2) != 0)
19516 result |= 1;
19517 else if (time (&t2) == (time_t) -1)
19518 result |= 1;
19519 else
19520 {
19521 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19522 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19523 if (! (st1.st_atime == st1.st_mtime))
19524 result |= 16;
19525 if (! (m_ok_POSIX || m_ok_NFS))
19526 result |= 32;
19527 }
19528 if (close (fd) != 0)
19529 result |= 1;
19530 }
19531 if (unlink (file) != 0)
19532 result |= 1;
19533 }
19534
19535 /* Test whether utimes() with a NULL argument works on read-only files. */
19536 {
19537 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19538 if (fd < 0)
19539 result |= 1;
19540 else if (close (fd) != 0)
19541 result |= 1;
19542 else if (utimes (file, NULL) != 0)
19543 result |= 64;
19544 if (unlink (file) != 0)
19545 result |= 1;
19546 }
19547
19548 return result;
19549 }
19550
19551 _ACEOF
19552 if ac_fn_c_try_run "$LINENO"; then :
19553 gl_cv_func_working_utimes=yes
19554 else
19555 gl_cv_func_working_utimes=no
19556 fi
19557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19558 conftest.$ac_objext conftest.beam conftest.$ac_ext
19559 fi
19560
19561 fi
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
19563 $as_echo "$gl_cv_func_working_utimes" >&6; }
19564
19565 if test $gl_cv_func_working_utimes = yes; then
19566
19567 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
19568
19569 fi
19570
19571
19572
19573
19574
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
19576 $as_echo_n "checking for struct utimbuf... " >&6; }
19577 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
19578 $as_echo_n "(cached) " >&6
19579 else
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19582 #if HAVE_SYS_TIME_H
19583 #include <sys/time.h>
19584 #endif
19585 #include <time.h>
19586 #ifdef HAVE_UTIME_H
19587 #include <utime.h>
19588 #endif
19589
19590 int
19591 main ()
19592 {
19593 static struct utimbuf x; x.actime = x.modtime;
19594 ;
19595 return 0;
19596 }
19597 _ACEOF
19598 if ac_fn_c_try_compile "$LINENO"; then :
19599 gl_cv_sys_struct_utimbuf=yes
19600 else
19601 gl_cv_sys_struct_utimbuf=no
19602 fi
19603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19604 fi
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
19606 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
19607
19608 if test $gl_cv_sys_struct_utimbuf = yes; then
19609
19610 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
19611
19612 fi
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625 if false; then
19626 GL_COND_LIBTOOL_TRUE=
19627 GL_COND_LIBTOOL_FALSE='#'
19628 else
19629 GL_COND_LIBTOOL_TRUE='#'
19630 GL_COND_LIBTOOL_FALSE=
19631 fi
19632
19633 gl_cond_libtool=false
19634 gl_libdeps=
19635 gl_ltlibdeps=
19636 gl_m4_base='m4'
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646 gl_source_base='lib'
19647
19648
19649 if test $ac_cv_func_alloca_works = no; then
19650 :
19651 fi
19652
19653 # Define an additional variable used in the Makefile substitution.
19654 if test $ac_cv_working_alloca_h = yes; then
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19656 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19657 if test "${gl_cv_rpl_alloca+set}" = set; then :
19658 $as_echo_n "(cached) " >&6
19659 else
19660
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19663
19664 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19665 Need own alloca
19666 #endif
19667
19668 _ACEOF
19669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19670 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19671 gl_cv_rpl_alloca=yes
19672 else
19673 gl_cv_rpl_alloca=no
19674 fi
19675 rm -f conftest*
19676
19677
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19680 $as_echo "$gl_cv_rpl_alloca" >&6; }
19681 if test $gl_cv_rpl_alloca = yes; then
19682
19683 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19684
19685 ALLOCA_H=alloca.h
19686 else
19687 ALLOCA_H=
19688 fi
19689 else
19690 ALLOCA_H=alloca.h
19691 fi
19692
19693 if test -n "$ALLOCA_H"; then
19694 GL_GENERATE_ALLOCA_H_TRUE=
19695 GL_GENERATE_ALLOCA_H_FALSE='#'
19696 else
19697 GL_GENERATE_ALLOCA_H_TRUE='#'
19698 GL_GENERATE_ALLOCA_H_FALSE=
19699 fi
19700
19701
19702
19703
19704
19705
19706 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19707 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19708
19709 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
19710 # programs in the package would end up linked with that potentially-shared
19711 # library, inducing unnecessary run-time overhead.
19712 LIB_CLOCK_GETTIME=
19713
19714 gl_saved_libs=$LIBS
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19716 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19717 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19718 $as_echo_n "(cached) " >&6
19719 else
19720 ac_func_search_save_LIBS=$LIBS
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19723
19724 /* Override any GCC internal prototype to avoid an error.
19725 Use char because int might match the return type of a GCC
19726 builtin and then its argument prototype would still apply. */
19727 #ifdef __cplusplus
19728 extern "C"
19729 #endif
19730 char clock_gettime ();
19731 int
19732 main ()
19733 {
19734 return clock_gettime ();
19735 ;
19736 return 0;
19737 }
19738 _ACEOF
19739 for ac_lib in '' rt posix4; do
19740 if test -z "$ac_lib"; then
19741 ac_res="none required"
19742 else
19743 ac_res=-l$ac_lib
19744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19745 fi
19746 if ac_fn_c_try_link "$LINENO"; then :
19747 ac_cv_search_clock_gettime=$ac_res
19748 fi
19749 rm -f core conftest.err conftest.$ac_objext \
19750 conftest$ac_exeext
19751 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19752 break
19753 fi
19754 done
19755 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19756
19757 else
19758 ac_cv_search_clock_gettime=no
19759 fi
19760 rm conftest.$ac_ext
19761 LIBS=$ac_func_search_save_LIBS
19762 fi
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19764 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19765 ac_res=$ac_cv_search_clock_gettime
19766 if test "$ac_res" != no; then :
19767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19768 test "$ac_cv_search_clock_gettime" = "none required" ||
19769 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
19770 fi
19771
19772 for ac_func in clock_gettime clock_settime
19773 do :
19774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19776 eval as_val=\$$as_ac_var
19777 if test "x$as_val" = x""yes; then :
19778 cat >>confdefs.h <<_ACEOF
19779 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19780 _ACEOF
19781
19782 fi
19783 done
19784
19785 LIBS=$gl_saved_libs
19786
19787
19788
19789
19790 :
19791
19792
19793
19794
19795 :
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19812
19813
19814 if test $HAVE_DUP2 = 1; then
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19816 $as_echo_n "checking whether dup2 works... " >&6; }
19817 if test "${gl_cv_func_dup2_works+set}" = set; then :
19818 $as_echo_n "(cached) " >&6
19819 else
19820 if test "$cross_compiling" = yes; then :
19821 case "$host_os" in
19822 mingw*) # on this platform, dup2 always returns 0 for success
19823 gl_cv_func_dup2_works="guessing no" ;;
19824 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19825 gl_cv_func_dup2_works="guessing no" ;;
19826 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19827 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19828 gl_cv_func_dup2_works="guessing no" ;;
19829 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19830 gl_cv_func_dup2_works="guessing no" ;;
19831 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19832 gl_cv_func_dup2_works="guessing no" ;;
19833 *) gl_cv_func_dup2_works="guessing yes" ;;
19834 esac
19835 else
19836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19837 /* end confdefs.h. */
19838
19839 #include <unistd.h>
19840 #include <fcntl.h>
19841 #include <errno.h>
19842 int
19843 main ()
19844 {
19845 int result = 0;
19846 #ifdef FD_CLOEXEC
19847 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19848 result |= 1;
19849 #endif
19850 if (dup2 (1, 1) == 0)
19851 result |= 2;
19852 #ifdef FD_CLOEXEC
19853 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19854 result |= 4;
19855 #endif
19856 close (0);
19857 if (dup2 (0, 0) != -1)
19858 result |= 8;
19859 /* Many gnulib modules require POSIX conformance of EBADF. */
19860 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19861 result |= 16;
19862 return result;
19863
19864 ;
19865 return 0;
19866 }
19867
19868 _ACEOF
19869 if ac_fn_c_try_run "$LINENO"; then :
19870 gl_cv_func_dup2_works=yes
19871 else
19872 gl_cv_func_dup2_works=no
19873 fi
19874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19875 conftest.$ac_objext conftest.beam conftest.$ac_ext
19876 fi
19877
19878
19879 fi
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19881 $as_echo "$gl_cv_func_dup2_works" >&6; }
19882 case "$gl_cv_func_dup2_works" in
19883 *yes) ;;
19884 *)
19885 REPLACE_DUP2=1
19886 ;;
19887 esac
19888 fi
19889
19890
19891 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19892
19893
19894
19895
19896
19897
19898
19899
19900 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19901
19902
19903 fi
19904
19905
19906
19907
19908
19909 GNULIB_DUP2=1
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921 GNULIB_ENVIRON=1
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933 # Persuade glibc <stdlib.h> to declare getloadavg().
19934
19935
19936 gl_save_LIBS=$LIBS
19937
19938 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
19939 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19940 HAVE_GETLOADAVG=1
19941 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19942 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19943
19944 else
19945 gl_func_getloadavg_done=no
19946
19947 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19948 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19949 # to get the right answer into the cache.
19950 # For kstat on solaris, we need to test for libelf and libkvm to force the
19951 # definition of SVR4 below.
19952 if test $gl_func_getloadavg_done = no; then
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19954 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19955 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19956 $as_echo_n "(cached) " >&6
19957 else
19958 ac_check_lib_save_LIBS=$LIBS
19959 LIBS="-lelf $LIBS"
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19962
19963 /* Override any GCC internal prototype to avoid an error.
19964 Use char because int might match the return type of a GCC
19965 builtin and then its argument prototype would still apply. */
19966 #ifdef __cplusplus
19967 extern "C"
19968 #endif
19969 char elf_begin ();
19970 int
19971 main ()
19972 {
19973 return elf_begin ();
19974 ;
19975 return 0;
19976 }
19977 _ACEOF
19978 if ac_fn_c_try_link "$LINENO"; then :
19979 ac_cv_lib_elf_elf_begin=yes
19980 else
19981 ac_cv_lib_elf_elf_begin=no
19982 fi
19983 rm -f core conftest.err conftest.$ac_objext \
19984 conftest$ac_exeext conftest.$ac_ext
19985 LIBS=$ac_check_lib_save_LIBS
19986 fi
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19988 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19989 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19990 LIBS="-lelf $LIBS"
19991 fi
19992
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19994 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19995 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19996 $as_echo_n "(cached) " >&6
19997 else
19998 ac_check_lib_save_LIBS=$LIBS
19999 LIBS="-lkvm $LIBS"
20000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20001 /* end confdefs.h. */
20002
20003 /* Override any GCC internal prototype to avoid an error.
20004 Use char because int might match the return type of a GCC
20005 builtin and then its argument prototype would still apply. */
20006 #ifdef __cplusplus
20007 extern "C"
20008 #endif
20009 char kvm_open ();
20010 int
20011 main ()
20012 {
20013 return kvm_open ();
20014 ;
20015 return 0;
20016 }
20017 _ACEOF
20018 if ac_fn_c_try_link "$LINENO"; then :
20019 ac_cv_lib_kvm_kvm_open=yes
20020 else
20021 ac_cv_lib_kvm_kvm_open=no
20022 fi
20023 rm -f core conftest.err conftest.$ac_objext \
20024 conftest$ac_exeext conftest.$ac_ext
20025 LIBS=$ac_check_lib_save_LIBS
20026 fi
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20028 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20029 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20030 LIBS="-lkvm $LIBS"
20031 fi
20032
20033 # Check for the 4.4BSD definition of getloadavg.
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20035 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20036 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20037 $as_echo_n "(cached) " >&6
20038 else
20039 ac_check_lib_save_LIBS=$LIBS
20040 LIBS="-lutil $LIBS"
20041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20043
20044 /* Override any GCC internal prototype to avoid an error.
20045 Use char because int might match the return type of a GCC
20046 builtin and then its argument prototype would still apply. */
20047 #ifdef __cplusplus
20048 extern "C"
20049 #endif
20050 char getloadavg ();
20051 int
20052 main ()
20053 {
20054 return getloadavg ();
20055 ;
20056 return 0;
20057 }
20058 _ACEOF
20059 if ac_fn_c_try_link "$LINENO"; then :
20060 ac_cv_lib_util_getloadavg=yes
20061 else
20062 ac_cv_lib_util_getloadavg=no
20063 fi
20064 rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20066 LIBS=$ac_check_lib_save_LIBS
20067 fi
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20069 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20070 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20071 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20072 fi
20073
20074 fi
20075
20076 if test $gl_func_getloadavg_done = no; then
20077 # There is a commonly available library for RS/6000 AIX.
20078 # Since it is not a standard part of AIX, it might be installed locally.
20079 gl_getloadavg_LIBS=$LIBS
20080 LIBS="-L/usr/local/lib $LIBS"
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20082 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20083 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20084 $as_echo_n "(cached) " >&6
20085 else
20086 ac_check_lib_save_LIBS=$LIBS
20087 LIBS="-lgetloadavg $LIBS"
20088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20089 /* end confdefs.h. */
20090
20091 /* Override any GCC internal prototype to avoid an error.
20092 Use char because int might match the return type of a GCC
20093 builtin and then its argument prototype would still apply. */
20094 #ifdef __cplusplus
20095 extern "C"
20096 #endif
20097 char getloadavg ();
20098 int
20099 main ()
20100 {
20101 return getloadavg ();
20102 ;
20103 return 0;
20104 }
20105 _ACEOF
20106 if ac_fn_c_try_link "$LINENO"; then :
20107 ac_cv_lib_getloadavg_getloadavg=yes
20108 else
20109 ac_cv_lib_getloadavg_getloadavg=no
20110 fi
20111 rm -f core conftest.err conftest.$ac_objext \
20112 conftest$ac_exeext conftest.$ac_ext
20113 LIBS=$ac_check_lib_save_LIBS
20114 fi
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20116 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20117 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20118 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20119 else
20120 LIBS=$gl_getloadavg_LIBS
20121 fi
20122
20123 fi
20124
20125 # Set up the replacement function if necessary.
20126 if test $gl_func_getloadavg_done = no; then
20127 HAVE_GETLOADAVG=0
20128
20129 # Solaris has libkstat which does not require root.
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20131 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20132 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20133 $as_echo_n "(cached) " >&6
20134 else
20135 ac_check_lib_save_LIBS=$LIBS
20136 LIBS="-lkstat $LIBS"
20137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138 /* end confdefs.h. */
20139
20140 /* Override any GCC internal prototype to avoid an error.
20141 Use char because int might match the return type of a GCC
20142 builtin and then its argument prototype would still apply. */
20143 #ifdef __cplusplus
20144 extern "C"
20145 #endif
20146 char kstat_open ();
20147 int
20148 main ()
20149 {
20150 return kstat_open ();
20151 ;
20152 return 0;
20153 }
20154 _ACEOF
20155 if ac_fn_c_try_link "$LINENO"; then :
20156 ac_cv_lib_kstat_kstat_open=yes
20157 else
20158 ac_cv_lib_kstat_kstat_open=no
20159 fi
20160 rm -f core conftest.err conftest.$ac_objext \
20161 conftest$ac_exeext conftest.$ac_ext
20162 LIBS=$ac_check_lib_save_LIBS
20163 fi
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20165 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20166 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20167 cat >>confdefs.h <<_ACEOF
20168 #define HAVE_LIBKSTAT 1
20169 _ACEOF
20170
20171 LIBS="-lkstat $LIBS"
20172
20173 fi
20174
20175 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20176
20177 # AIX has libperfstat which does not require root
20178 if test $gl_func_getloadavg_done = no; then
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20180 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20181 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20182 $as_echo_n "(cached) " >&6
20183 else
20184 ac_check_lib_save_LIBS=$LIBS
20185 LIBS="-lperfstat $LIBS"
20186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20187 /* end confdefs.h. */
20188
20189 /* Override any GCC internal prototype to avoid an error.
20190 Use char because int might match the return type of a GCC
20191 builtin and then its argument prototype would still apply. */
20192 #ifdef __cplusplus
20193 extern "C"
20194 #endif
20195 char perfstat_cpu_total ();
20196 int
20197 main ()
20198 {
20199 return perfstat_cpu_total ();
20200 ;
20201 return 0;
20202 }
20203 _ACEOF
20204 if ac_fn_c_try_link "$LINENO"; then :
20205 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20206 else
20207 ac_cv_lib_perfstat_perfstat_cpu_total=no
20208 fi
20209 rm -f core conftest.err conftest.$ac_objext \
20210 conftest$ac_exeext conftest.$ac_ext
20211 LIBS=$ac_check_lib_save_LIBS
20212 fi
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20214 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20215 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_LIBPERFSTAT 1
20218 _ACEOF
20219
20220 LIBS="-lperfstat $LIBS"
20221
20222 fi
20223
20224 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20225 fi
20226
20227 if test $gl_func_getloadavg_done = no; then
20228 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20229 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20230 gl_func_getloadavg_done=yes
20231
20232 $as_echo "#define DGUX 1" >>confdefs.h
20233
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20235 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20236 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20237 $as_echo_n "(cached) " >&6
20238 else
20239 ac_check_lib_save_LIBS=$LIBS
20240 LIBS="-ldgc $LIBS"
20241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h. */
20243
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 char dg_sys_info ();
20251 int
20252 main ()
20253 {
20254 return dg_sys_info ();
20255 ;
20256 return 0;
20257 }
20258 _ACEOF
20259 if ac_fn_c_try_link "$LINENO"; then :
20260 ac_cv_lib_dgc_dg_sys_info=yes
20261 else
20262 ac_cv_lib_dgc_dg_sys_info=no
20263 fi
20264 rm -f core conftest.err conftest.$ac_objext \
20265 conftest$ac_exeext conftest.$ac_ext
20266 LIBS=$ac_check_lib_save_LIBS
20267 fi
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20269 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20270 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20271 cat >>confdefs.h <<_ACEOF
20272 #define HAVE_LIBDGC 1
20273 _ACEOF
20274
20275 LIBS="-ldgc $LIBS"
20276
20277 fi
20278
20279 fi
20280
20281
20282 fi
20283 fi
20284 fi
20285
20286
20287 if test "x$gl_save_LIBS" = x; then
20288 GETLOADAVG_LIBS=$LIBS
20289 else
20290 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20291 fi
20292 LIBS=$gl_save_LIBS
20293
20294
20295 # Test whether the system declares getloadavg. Solaris has the function
20296 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20297 for ac_header in sys/loadavg.h
20298 do :
20299 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20300 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20301 cat >>confdefs.h <<_ACEOF
20302 #define HAVE_SYS_LOADAVG_H 1
20303 _ACEOF
20304
20305 fi
20306
20307 done
20308
20309 if test $ac_cv_header_sys_loadavg_h = yes; then
20310 HAVE_SYS_LOADAVG_H=1
20311 else
20312 HAVE_SYS_LOADAVG_H=0
20313 fi
20314 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20315 # include <sys/loadavg.h>
20316 #endif
20317 #include <stdlib.h>
20318 "
20319 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20320
20321 else
20322 HAVE_DECL_GETLOADAVG=0
20323 fi
20324
20325
20326 if test $HAVE_GETLOADAVG = 0; then
20327
20328
20329
20330
20331
20332
20333
20334
20335 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20336
20337
20338 # Figure out what our getloadavg.c needs.
20339
20340
20341
20342 # On HPUX9, an unprivileged user can get load averages this way.
20343 if test $gl_func_getloadavg_done = no; then
20344 for ac_func in pstat_getdynamic
20345 do :
20346 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20347 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20348 cat >>confdefs.h <<_ACEOF
20349 #define HAVE_PSTAT_GETDYNAMIC 1
20350 _ACEOF
20351 gl_func_getloadavg_done=yes
20352 fi
20353 done
20354
20355 fi
20356
20357 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20358 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20359 # Irix 4.0.5F has the header but not the library.
20360 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20361 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20362 gl_func_getloadavg_done=yes
20363
20364 $as_echo "#define SVR4 1" >>confdefs.h
20365
20366 fi
20367
20368 if test $gl_func_getloadavg_done = no; then
20369 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20370 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20371 gl_func_getloadavg_done=yes
20372
20373 $as_echo "#define UMAX 1" >>confdefs.h
20374
20375
20376 $as_echo "#define UMAX4_3 1" >>confdefs.h
20377
20378 fi
20379
20380
20381 fi
20382
20383 if test $gl_func_getloadavg_done = no; then
20384 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20385 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20386 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20387
20388 fi
20389
20390
20391 fi
20392
20393 if test $gl_func_getloadavg_done = no; then
20394 for ac_header in mach/mach.h
20395 do :
20396 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20397 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20398 cat >>confdefs.h <<_ACEOF
20399 #define HAVE_MACH_MACH_H 1
20400 _ACEOF
20401
20402 fi
20403
20404 done
20405
20406 fi
20407
20408 for ac_header in nlist.h
20409 do :
20410 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20411 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20412 cat >>confdefs.h <<_ACEOF
20413 #define HAVE_NLIST_H 1
20414 _ACEOF
20415 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20416 "
20417 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20418
20419 cat >>confdefs.h <<_ACEOF
20420 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20421 _ACEOF
20422
20423
20424 fi
20425
20426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20427 /* end confdefs.h. */
20428 #include <nlist.h>
20429 int
20430 main ()
20431 {
20432 struct nlist x;
20433 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20434 x.n_un.n_name = "";
20435 #else
20436 x.n_name = "";
20437 #endif
20438 ;
20439 return 0;
20440 }
20441 _ACEOF
20442 if ac_fn_c_try_link "$LINENO"; then :
20443
20444 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20445
20446 fi
20447 rm -f core conftest.err conftest.$ac_objext \
20448 conftest$ac_exeext conftest.$ac_ext
20449
20450 fi
20451
20452 done
20453
20454 fi
20455
20456
20457
20458
20459
20460 GNULIB_GETLOADAVG=1
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471 if test $REPLACE_GETOPT = 1; then
20472
20473
20474
20475
20476
20477
20478
20479
20480 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20491
20492
20493
20494
20495 GNULIB_GL_UNISTD_H_GETOPT=1
20496 fi
20497
20498
20499
20500
20501
20502
20503
20504 REPLACE_GETOPT=0
20505 if test -n "$gl_replace_getopt"; then
20506 REPLACE_GETOPT=1
20507 fi
20508
20509 if test $REPLACE_GETOPT = 1; then
20510
20511 GETOPT_H=getopt.h
20512
20513 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20514
20515
20516
20517 fi
20518
20519 if test $REPLACE_GETOPT = 1; then
20520
20521
20522
20523
20524
20525
20526
20527
20528 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20539
20540
20541
20542
20543 GNULIB_GL_UNISTD_H_GETOPT=1
20544 fi
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557 gl_gettimeofday_timezone=void
20558 if test $ac_cv_func_gettimeofday != yes; then
20559 HAVE_GETTIMEOFDAY=0
20560 else
20561
20562
20563
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20565 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20566 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
20567 $as_echo_n "(cached) " >&6
20568 else
20569 if test "$cross_compiling" = yes; then :
20570 # When cross-compiling:
20571 case "$host_os" in
20572 # Guess all is fine on glibc systems.
20573 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
20574 # If we don't know, assume the worst.
20575 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
20576 esac
20577
20578 else
20579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580 /* end confdefs.h. */
20581 #include <string.h>
20582 #include <sys/time.h>
20583 #include <time.h>
20584 #include <stdlib.h>
20585
20586 int
20587 main ()
20588 {
20589
20590 time_t t = 0;
20591 struct tm *lt;
20592 struct tm saved_lt;
20593 struct timeval tv;
20594 lt = localtime (&t);
20595 saved_lt = *lt;
20596 gettimeofday (&tv, NULL);
20597 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20598
20599 ;
20600 return 0;
20601 }
20602 _ACEOF
20603 if ac_fn_c_try_run "$LINENO"; then :
20604 gl_cv_func_gettimeofday_clobber=no
20605 else
20606 gl_cv_func_gettimeofday_clobber=yes
20607 fi
20608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20609 conftest.$ac_objext conftest.beam conftest.$ac_ext
20610 fi
20611
20612 fi
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20614 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20615
20616 case "$gl_cv_func_gettimeofday_clobber" in
20617 *yes)
20618 REPLACE_GETTIMEOFDAY=1
20619
20620
20621 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
20622
20623
20624 $as_echo "#define localtime rpl_localtime" >>confdefs.h
20625
20626
20627
20628 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20629
20630 ;;
20631 esac
20632
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20634 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20635 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
20636 $as_echo_n "(cached) " >&6
20637 else
20638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20640 #include <sys/time.h>
20641 struct timeval c;
20642 int gettimeofday (struct timeval *restrict, void *restrict);
20643
20644 int
20645 main ()
20646 {
20647 /* glibc uses struct timezone * rather than the POSIX void *
20648 if _GNU_SOURCE is defined. However, since the only portable
20649 use of gettimeofday uses NULL as the second parameter, and
20650 since the glibc definition is actually more typesafe, it is
20651 not worth wrapping this to get a compliant signature. */
20652 int (*f) (struct timeval *restrict, void *restrict)
20653 = gettimeofday;
20654 int x = f (&c, 0);
20655 return !(x | c.tv_sec | c.tv_usec);
20656
20657 ;
20658 return 0;
20659 }
20660 _ACEOF
20661 if ac_fn_c_try_compile "$LINENO"; then :
20662 gl_cv_func_gettimeofday_posix_signature=yes
20663 else
20664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20666 #include <sys/time.h>
20667 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20668
20669 int
20670 main ()
20671 {
20672
20673 ;
20674 return 0;
20675 }
20676 _ACEOF
20677 if ac_fn_c_try_compile "$LINENO"; then :
20678 gl_cv_func_gettimeofday_posix_signature=almost
20679 else
20680 gl_cv_func_gettimeofday_posix_signature=no
20681 fi
20682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683 fi
20684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685 fi
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20687 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20688 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
20689 gl_gettimeofday_timezone='struct timezone'
20690 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20691 REPLACE_GETTIMEOFDAY=1
20692 fi
20693 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20694 REPLACE_GETTIMEOFDAY=1
20695 fi
20696
20697 fi
20698
20699 cat >>confdefs.h <<_ACEOF
20700 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20701 _ACEOF
20702
20703
20704 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
20705
20706
20707
20708
20709
20710
20711
20712
20713 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
20714
20715
20716 for ac_header in sys/timeb.h
20717 do :
20718 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
20719 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
20720 cat >>confdefs.h <<_ACEOF
20721 #define HAVE_SYS_TIMEB_H 1
20722 _ACEOF
20723
20724 fi
20725
20726 done
20727
20728 for ac_func in _ftime
20729 do :
20730 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
20731 if test "x$ac_cv_func__ftime" = x""yes; then :
20732 cat >>confdefs.h <<_ACEOF
20733 #define HAVE__FTIME 1
20734 _ACEOF
20735
20736 fi
20737 done
20738
20739
20740 fi
20741
20742
20743
20744
20745
20746 GNULIB_GETTIMEOFDAY=1
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758 if test $ac_cv_func_lstat = yes; then
20759
20760 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
20761 *no)
20762 REPLACE_LSTAT=1
20763 ;;
20764 esac
20765 else
20766 HAVE_LSTAT=0
20767 fi
20768
20769 if test $REPLACE_LSTAT = 1; then
20770
20771
20772
20773
20774
20775
20776
20777
20778 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20779
20780
20781
20782 :
20783
20784 fi
20785
20786
20787
20788
20789
20790 GNULIB_LSTAT=1
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802 if test $APPLE_UNIVERSAL_BUILD = 1; then
20803 # A universal build on Apple Mac OS X platforms.
20804 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20805 # But we need a configuration result that is valid in both modes.
20806 gl_cv_func_working_mktime=no
20807 fi
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20809 $as_echo_n "checking for working mktime... " >&6; }
20810 if test "${gl_cv_func_working_mktime+set}" = set; then :
20811 $as_echo_n "(cached) " >&6
20812 else
20813 if test "$cross_compiling" = yes; then :
20814 gl_cv_func_working_mktime=no
20815 else
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20818 /* Test program from Paul Eggert and Tony Leneis. */
20819 #include <limits.h>
20820 #include <stdlib.h>
20821 #include <time.h>
20822
20823 #ifdef HAVE_UNISTD_H
20824 # include <unistd.h>
20825 #endif
20826
20827 #ifndef HAVE_ALARM
20828 # define alarm(X) /* empty */
20829 #endif
20830
20831 /* Work around redefinition to rpl_putenv by other config tests. */
20832 #undef putenv
20833
20834 static time_t time_t_max;
20835 static time_t time_t_min;
20836
20837 /* Values we'll use to set the TZ environment variable. */
20838 static char *tz_strings[] = {
20839 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20840 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20841 };
20842 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20843
20844 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20845 Based on a problem report from Andreas Jaeger. */
20846 static int
20847 spring_forward_gap ()
20848 {
20849 /* glibc (up to about 1998-10-07) failed this test. */
20850 struct tm tm;
20851
20852 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20853 instead of "TZ=America/Vancouver" in order to detect the bug even
20854 on systems that don't support the Olson extension, or don't have the
20855 full zoneinfo tables installed. */
20856 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20857
20858 tm.tm_year = 98;
20859 tm.tm_mon = 3;
20860 tm.tm_mday = 5;
20861 tm.tm_hour = 2;
20862 tm.tm_min = 0;
20863 tm.tm_sec = 0;
20864 tm.tm_isdst = -1;
20865 return mktime (&tm) != (time_t) -1;
20866 }
20867
20868 static int
20869 mktime_test1 (time_t now)
20870 {
20871 struct tm *lt;
20872 return ! (lt = localtime (&now)) || mktime (lt) == now;
20873 }
20874
20875 static int
20876 mktime_test (time_t now)
20877 {
20878 return (mktime_test1 (now)
20879 && mktime_test1 ((time_t) (time_t_max - now))
20880 && mktime_test1 ((time_t) (time_t_min + now)));
20881 }
20882
20883 static int
20884 irix_6_4_bug ()
20885 {
20886 /* Based on code from Ariel Faigon. */
20887 struct tm tm;
20888 tm.tm_year = 96;
20889 tm.tm_mon = 3;
20890 tm.tm_mday = 0;
20891 tm.tm_hour = 0;
20892 tm.tm_min = 0;
20893 tm.tm_sec = 0;
20894 tm.tm_isdst = -1;
20895 mktime (&tm);
20896 return tm.tm_mon == 2 && tm.tm_mday == 31;
20897 }
20898
20899 static int
20900 bigtime_test (int j)
20901 {
20902 struct tm tm;
20903 time_t now;
20904 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20905 now = mktime (&tm);
20906 if (now != (time_t) -1)
20907 {
20908 struct tm *lt = localtime (&now);
20909 if (! (lt
20910 && lt->tm_year == tm.tm_year
20911 && lt->tm_mon == tm.tm_mon
20912 && lt->tm_mday == tm.tm_mday
20913 && lt->tm_hour == tm.tm_hour
20914 && lt->tm_min == tm.tm_min
20915 && lt->tm_sec == tm.tm_sec
20916 && lt->tm_yday == tm.tm_yday
20917 && lt->tm_wday == tm.tm_wday
20918 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20919 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20920 return 0;
20921 }
20922 return 1;
20923 }
20924
20925 static int
20926 year_2050_test ()
20927 {
20928 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20929 ignoring leap seconds. */
20930 unsigned long int answer = 2527315200UL;
20931
20932 struct tm tm;
20933 time_t t;
20934 tm.tm_year = 2050 - 1900;
20935 tm.tm_mon = 2 - 1;
20936 tm.tm_mday = 1;
20937 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20938 tm.tm_isdst = -1;
20939
20940 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20941 instead of "TZ=America/Vancouver" in order to detect the bug even
20942 on systems that don't support the Olson extension, or don't have the
20943 full zoneinfo tables installed. */
20944 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20945
20946 t = mktime (&tm);
20947
20948 /* Check that the result is either a failure, or close enough
20949 to the correct answer that we can assume the discrepancy is
20950 due to leap seconds. */
20951 return (t == (time_t) -1
20952 || (0 < t && answer - 120 <= t && t <= answer + 120));
20953 }
20954
20955 int
20956 main ()
20957 {
20958 int result = 0;
20959 time_t t, delta;
20960 int i, j;
20961 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20962 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20963
20964 /* This test makes some buggy mktime implementations loop.
20965 Give up after 60 seconds; a mktime slower than that
20966 isn't worth using anyway. */
20967 alarm (60);
20968
20969 time_t_max = (! time_t_signed
20970 ? (time_t) -1
20971 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20972 * 2 + 1));
20973 time_t_min = (! time_t_signed
20974 ? (time_t) 0
20975 : time_t_signed_magnitude
20976 ? ~ (time_t) 0
20977 : ~ time_t_max);
20978
20979 delta = time_t_max / 997; /* a suitable prime number */
20980 for (i = 0; i < N_STRINGS; i++)
20981 {
20982 if (tz_strings[i])
20983 putenv (tz_strings[i]);
20984
20985 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
20986 if (! mktime_test (t))
20987 result |= 1;
20988 if ((result & 2) == 0
20989 && ! (mktime_test ((time_t) 1)
20990 && mktime_test ((time_t) (60 * 60))
20991 && mktime_test ((time_t) (60 * 60 * 24))))
20992 result |= 2;
20993
20994 for (j = 1; (result & 4) == 0; j <<= 1)
20995 {
20996 if (! bigtime_test (j))
20997 result |= 4;
20998 if (INT_MAX / 2 < j)
20999 break;
21000 }
21001 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21002 result |= 8;
21003 }
21004 if (! irix_6_4_bug ())
21005 result |= 16;
21006 if (! spring_forward_gap ())
21007 result |= 32;
21008 if (! year_2050_test ())
21009 result |= 64;
21010 return result;
21011 }
21012 _ACEOF
21013 if ac_fn_c_try_run "$LINENO"; then :
21014 gl_cv_func_working_mktime=yes
21015 else
21016 gl_cv_func_working_mktime=no
21017 fi
21018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21019 conftest.$ac_objext conftest.beam conftest.$ac_ext
21020 fi
21021
21022
21023 fi
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21025 $as_echo "$gl_cv_func_working_mktime" >&6; }
21026
21027 if test $gl_cv_func_working_mktime = no; then
21028 REPLACE_MKTIME=1
21029 else
21030 REPLACE_MKTIME=0
21031 fi
21032
21033 if test $REPLACE_MKTIME = 1; then
21034
21035
21036
21037
21038
21039
21040
21041
21042 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
21043
21044
21045
21046
21047 fi
21048
21049
21050
21051
21052
21053 GNULIB_MKTIME=1
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065 if test $ac_cv_func_pselect = yes; then
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21067 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21068 if test "${gl_cv_sig_pselect+set}" = set; then :
21069 $as_echo_n "(cached) " >&6
21070 else
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21073 #include <sys/select.h>
21074
21075 int
21076 main ()
21077 {
21078 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21079 struct timespec const *restrict,
21080 sigset_t const *restrict) = pselect;
21081 return !p;
21082 ;
21083 return 0;
21084 }
21085 _ACEOF
21086 if ac_fn_c_try_link "$LINENO"; then :
21087 gl_cv_sig_pselect=yes
21088 else
21089 gl_cv_sig_pselect=no
21090 fi
21091 rm -f core conftest.err conftest.$ac_objext \
21092 conftest$ac_exeext conftest.$ac_ext
21093 fi
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21095 $as_echo "$gl_cv_sig_pselect" >&6; }
21096 fi
21097
21098 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
21099 REPLACE_PSELECT=1
21100 fi
21101
21102 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
21103
21104
21105
21106
21107
21108
21109
21110
21111 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
21112
21113 fi
21114
21115
21116
21117
21118
21119 GNULIB_PSELECT=1
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129 LIB_PTHREAD_SIGMASK=
21130
21131
21132 if test $ac_cv_func_pthread_sigmask = yes; then
21133 :
21134 else
21135 HAVE_PTHREAD_SIGMASK=0
21136 REPLACE_PTHREAD_SIGMASK=1
21137 fi
21138
21139
21140
21141
21142 if test $HAVE_PTHREAD_SIGMASK = 1; then
21143
21144
21145 if test -z "$LIB_PTHREAD_SIGMASK"; then
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21147 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21148 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21149 $as_echo_n "(cached) " >&6
21150 else
21151
21152 if test "$cross_compiling" = yes; then :
21153
21154 case "$host_os" in
21155 freebsd* | hpux* | solaris | solaris2.[2-9]*)
21156 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
21157 *)
21158 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
21159 esac
21160
21161 else
21162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21163 /* end confdefs.h. */
21164
21165 #include <pthread.h>
21166 #include <signal.h>
21167 #include <stddef.h>
21168 int main ()
21169 {
21170 sigset_t set;
21171 sigemptyset (&set);
21172 return pthread_sigmask (1729, &set, NULL) != 0;
21173 }
21174 _ACEOF
21175 if ac_fn_c_try_run "$LINENO"; then :
21176 gl_cv_func_pthread_sigmask_in_libc_works=no
21177 else
21178 gl_cv_func_pthread_sigmask_in_libc_works=yes
21179 fi
21180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21181 conftest.$ac_objext conftest.beam conftest.$ac_ext
21182 fi
21183
21184
21185 fi
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21187 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21188 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21189 *no)
21190 REPLACE_PTHREAD_SIGMASK=1
21191
21192 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21193
21194 ;;
21195 esac
21196 fi
21197
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21199 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21200 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21201 $as_echo_n "(cached) " >&6
21202 else
21203
21204 gl_save_LIBS="$LIBS"
21205 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
21206 if test "$cross_compiling" = yes; then :
21207 case "$host_os" in
21208 cygwin*)
21209 gl_cv_func_pthread_sigmask_return_works="guessing no";;
21210 *)
21211 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
21212 esac
21213
21214 else
21215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21217
21218 #include <pthread.h>
21219 #include <signal.h>
21220 #include <stddef.h>
21221 int main ()
21222 {
21223 sigset_t set;
21224 sigemptyset (&set);
21225 if (pthread_sigmask (1729, &set, NULL) == -1)
21226 return 1;
21227 return 0;
21228 }
21229 _ACEOF
21230 if ac_fn_c_try_run "$LINENO"; then :
21231 gl_cv_func_pthread_sigmask_return_works=yes
21232 else
21233 gl_cv_func_pthread_sigmask_return_works=no
21234 fi
21235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21236 conftest.$ac_objext conftest.beam conftest.$ac_ext
21237 fi
21238
21239 LIBS="$gl_save_LIBS"
21240
21241 fi
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21243 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21244 case "$gl_cv_func_pthread_sigmask_return_works" in
21245 *no)
21246 REPLACE_PTHREAD_SIGMASK=1
21247
21248 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21249
21250 ;;
21251 esac
21252
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21254 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21255 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21256 $as_echo_n "(cached) " >&6
21257 else
21258
21259 case "$host_os" in
21260 irix*)
21261 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21262 *)
21263 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21264 esac
21265 gl_save_LIBS="$LIBS"
21266 LIBS="$LIBS $LIBMULTITHREAD"
21267 if test "$cross_compiling" = yes; then :
21268 :
21269 else
21270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271 /* end confdefs.h. */
21272
21273 #include <pthread.h>
21274 #include <signal.h>
21275 #include <stdio.h>
21276 #include <stdlib.h>
21277 #include <unistd.h>
21278 static volatile int sigint_occurred;
21279 static void
21280 sigint_handler (int sig)
21281 {
21282 sigint_occurred++;
21283 }
21284 int main ()
21285 {
21286 sigset_t set;
21287 int pid = getpid ();
21288 char command[80];
21289 signal (SIGINT, sigint_handler);
21290 sigemptyset (&set);
21291 sigaddset (&set, SIGINT);
21292 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21293 return 1;
21294 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21295 if (!(system (command) == 0))
21296 return 2;
21297 sleep (2);
21298 if (!(sigint_occurred == 0))
21299 return 3;
21300 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21301 return 4;
21302 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21303 return 5;
21304 return 0;
21305 }
21306 _ACEOF
21307 if ac_fn_c_try_run "$LINENO"; then :
21308 :
21309 else
21310 gl_cv_func_pthread_sigmask_unblock_works=no
21311 fi
21312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21313 conftest.$ac_objext conftest.beam conftest.$ac_ext
21314 fi
21315
21316 LIBS="$gl_save_LIBS"
21317
21318 fi
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21320 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21321 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21322 *no)
21323 REPLACE_PTHREAD_SIGMASK=1
21324
21325 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21326
21327 ;;
21328 esac
21329 fi
21330
21331 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21332
21333
21334
21335
21336
21337
21338
21339
21340 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21341
21342
21343 if test $HAVE_PTHREAD_SIGMASK = 1; then
21344
21345 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21346
21347 fi
21348
21349 fi
21350
21351
21352
21353
21354
21355 GNULIB_PTHREAD_SIGMASK=1
21356
21357
21358
21359
21360
21361
21362
21363
21364 if test $ac_cv_func_readlink = no; then
21365 HAVE_READLINK=0
21366 else
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21368 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21369 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21370 $as_echo_n "(cached) " >&6
21371 else
21372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21373 /* end confdefs.h. */
21374 #include <unistd.h>
21375 /* Cause compilation failure if original declaration has wrong type. */
21376 ssize_t readlink (const char *, char *, size_t);
21377 int
21378 main ()
21379 {
21380
21381 ;
21382 return 0;
21383 }
21384 _ACEOF
21385 if ac_fn_c_try_compile "$LINENO"; then :
21386 gl_cv_decl_readlink_works=yes
21387 else
21388 gl_cv_decl_readlink_works=no
21389 fi
21390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21391 fi
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21393 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21395 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21396 if test "${gl_cv_func_readlink_works+set}" = set; then :
21397 $as_echo_n "(cached) " >&6
21398 else
21399 # We have readlink, so assume ln -s works.
21400 ln -s conftest.no-such conftest.link
21401 ln -s conftest.link conftest.lnk2
21402 if test "$cross_compiling" = yes; then :
21403 case "$host_os" in
21404 # Guess yes on glibc systems.
21405 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
21406 # If we don't know, assume the worst.
21407 *) gl_cv_func_readlink_works="guessing no" ;;
21408 esac
21409
21410 else
21411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21412 /* end confdefs.h. */
21413 #include <unistd.h>
21414
21415 int
21416 main ()
21417 {
21418 char buf[20];
21419 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21420 ;
21421 return 0;
21422 }
21423 _ACEOF
21424 if ac_fn_c_try_run "$LINENO"; then :
21425 gl_cv_func_readlink_works=yes
21426 else
21427 gl_cv_func_readlink_works=no
21428 fi
21429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21430 conftest.$ac_objext conftest.beam conftest.$ac_ext
21431 fi
21432
21433 rm -f conftest.link conftest.lnk2
21434 fi
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21436 $as_echo "$gl_cv_func_readlink_works" >&6; }
21437 case "$gl_cv_func_readlink_works" in
21438 *yes)
21439 if test "$gl_cv_decl_readlink_works" != yes; then
21440 REPLACE_READLINK=1
21441 fi
21442 ;;
21443 *)
21444
21445 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21446
21447 REPLACE_READLINK=1
21448 ;;
21449 esac
21450 fi
21451
21452 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21453
21454
21455
21456
21457
21458
21459
21460
21461 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
21462
21463
21464 :
21465
21466 fi
21467
21468
21469
21470
21471
21472 GNULIB_READLINK=1
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489 if test $gl_cv_have_include_next = yes; then
21490 gl_cv_next_signal_h='<'signal.h'>'
21491 else
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21493 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21494 if test "${gl_cv_next_signal_h+set}" = set; then :
21495 $as_echo_n "(cached) " >&6
21496 else
21497
21498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21499 /* end confdefs.h. */
21500 #include <signal.h>
21501
21502 _ACEOF
21503 case "$host_os" in
21504 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21505 *) gl_absname_cpp="$ac_cpp" ;;
21506 esac
21507
21508 case "$host_os" in
21509 mingw*)
21510 gl_dirsep_regex='[/\\]'
21511 ;;
21512 *)
21513 gl_dirsep_regex='\/'
21514 ;;
21515 esac
21516 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21517
21518 gl_header_literal_regex=`echo 'signal.h' \
21519 | sed -e "$gl_make_literal_regex_sed"`
21520 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21521 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21522 s|^/[^/]|//&|
21523 p
21524 q
21525 }'
21526 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21527 sed -n "$gl_absolute_header_sed"`'"'
21528
21529
21530 fi
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21532 $as_echo "$gl_cv_next_signal_h" >&6; }
21533 fi
21534 NEXT_SIGNAL_H=$gl_cv_next_signal_h
21535
21536 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21538 gl_next_as_first_directive='<'signal.h'>'
21539 else
21540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21541 gl_next_as_first_directive=$gl_cv_next_signal_h
21542 fi
21543 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21544
21545
21546
21547
21548
21549 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21550 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21551 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21552 #include <signal.h>
21553
21554 "
21555 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
21556
21557 else
21558 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21559 fi
21560
21561
21562
21563
21564
21565
21566
21567 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21568 #include <signal.h>
21569
21570 "
21571 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
21572
21573 else
21574 HAVE_SIGHANDLER_T=0
21575 fi
21576
21577
21578
21579
21580 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21581 /* <sys/types.h> is not needed according to POSIX, but the
21582 <sys/socket.h> in i386-unknown-freebsd4.10 and
21583 powerpc-apple-darwin5.5 required it. */
21584 #include <sys/types.h>
21585 #if HAVE_SYS_SOCKET_H
21586 # include <sys/socket.h>
21587 #elif HAVE_WS2TCPIP_H
21588 # include <ws2tcpip.h>
21589 #endif
21590
21591 "
21592 if test "x$ac_cv_type_socklen_t" = x""yes; then :
21593
21594 else
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21596 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21597 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21598 $as_echo_n "(cached) " >&6
21599 else
21600 # Systems have either "struct sockaddr *" or
21601 # "void *" as the second argument to getpeername
21602 gl_cv_socklen_t_equiv=
21603 for arg2 in "struct sockaddr" void; do
21604 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
21605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h. */
21607 #include <sys/types.h>
21608 #include <sys/socket.h>
21609
21610 int getpeername (int, $arg2 *, $t *);
21611 int
21612 main ()
21613 {
21614 $t len;
21615 getpeername (0, 0, &len);
21616 ;
21617 return 0;
21618 }
21619 _ACEOF
21620 if ac_fn_c_try_compile "$LINENO"; then :
21621 gl_cv_socklen_t_equiv="$t"
21622 fi
21623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21624 test "$gl_cv_socklen_t_equiv" != "" && break
21625 done
21626 test "$gl_cv_socklen_t_equiv" != "" && break
21627 done
21628
21629 fi
21630
21631 if test "$gl_cv_socklen_t_equiv" = ""; then
21632 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
21633 fi
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21635 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21636
21637 cat >>confdefs.h <<_ACEOF
21638 #define socklen_t $gl_cv_socklen_t_equiv
21639 _ACEOF
21640
21641 fi
21642
21643
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21645 $as_echo_n "checking for ssize_t... " >&6; }
21646 if test "${gt_cv_ssize_t+set}" = set; then :
21647 $as_echo_n "(cached) " >&6
21648 else
21649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21650 /* end confdefs.h. */
21651 #include <sys/types.h>
21652 int
21653 main ()
21654 {
21655 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21656 return !x;
21657 ;
21658 return 0;
21659 }
21660 _ACEOF
21661 if ac_fn_c_try_compile "$LINENO"; then :
21662 gt_cv_ssize_t=yes
21663 else
21664 gt_cv_ssize_t=no
21665 fi
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21667 fi
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21669 $as_echo "$gt_cv_ssize_t" >&6; }
21670 if test $gt_cv_ssize_t = no; then
21671
21672 $as_echo "#define ssize_t int" >>confdefs.h
21673
21674 fi
21675
21676
21677
21678
21679
21680
21681 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>
21682 #include <sys/stat.h>
21683 "
21684 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
21685
21686 cat >>confdefs.h <<_ACEOF
21687 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
21688 _ACEOF
21689
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
21691 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
21692 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21694 else
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21697
21698 #include <sys/types.h>
21699 #include <sys/stat.h>
21700 #if HAVE_SYS_TIME_H
21701 # include <sys/time.h>
21702 #endif
21703 #include <time.h>
21704 struct timespec ts;
21705 struct stat st;
21706
21707 int
21708 main ()
21709 {
21710
21711 st.st_atim = ts;
21712
21713 ;
21714 return 0;
21715 }
21716 _ACEOF
21717 if ac_fn_c_try_compile "$LINENO"; then :
21718 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
21719 else
21720 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
21721 fi
21722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21723 fi
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
21725 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
21726 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
21727
21728 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
21729
21730 fi
21731 else
21732 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>
21733 #include <sys/stat.h>
21734 "
21735 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
21736
21737 cat >>confdefs.h <<_ACEOF
21738 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
21739 _ACEOF
21740
21741
21742 else
21743 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
21744 #include <sys/stat.h>
21745 "
21746 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
21747
21748 cat >>confdefs.h <<_ACEOF
21749 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
21750 _ACEOF
21751
21752
21753 else
21754 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>
21755 #include <sys/stat.h>
21756 "
21757 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
21758
21759 cat >>confdefs.h <<_ACEOF
21760 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
21761 _ACEOF
21762
21763
21764 fi
21765
21766 fi
21767
21768 fi
21769
21770 fi
21771
21772
21773
21774
21775
21776
21777 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>
21778 #include <sys/stat.h>
21779 "
21780 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
21781
21782 cat >>confdefs.h <<_ACEOF
21783 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
21784 _ACEOF
21785
21786
21787 else
21788 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
21789 #include <sys/stat.h>
21790 "
21791 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
21792
21793 cat >>confdefs.h <<_ACEOF
21794 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
21795 _ACEOF
21796
21797
21798 else
21799 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>
21800 #include <sys/stat.h>
21801 "
21802 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
21803
21804 cat >>confdefs.h <<_ACEOF
21805 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
21806 _ACEOF
21807
21808
21809 fi
21810
21811 fi
21812
21813 fi
21814
21815
21816
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
21818 $as_echo_n "checking for working stdalign.h... " >&6; }
21819 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
21820 $as_echo_n "(cached) " >&6
21821 else
21822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21823 /* end confdefs.h. */
21824 #include <stdalign.h>
21825 #include <stddef.h>
21826
21827 /* Test that alignof yields a result consistent with offsetof.
21828 This catches GCC bug 52023
21829 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
21830 #ifdef __cplusplus
21831 template <class t> struct alignof_helper { char a; t b; };
21832 # define ao(type) offsetof (alignof_helper<type>, b)
21833 #else
21834 # define ao(type) offsetof (struct { char a; type b; }, b)
21835 #endif
21836 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
21837 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
21838 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
21839
21840 /* Test _Alignas only on platforms where gnulib can help. */
21841 #if \
21842 (__GNUC__ || __IBMC__ || __IBMCPP__ \
21843 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
21844 int alignas (8) alignas_int = 1;
21845 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
21846 #endif
21847
21848 int
21849 main ()
21850 {
21851
21852 ;
21853 return 0;
21854 }
21855 _ACEOF
21856 if ac_fn_c_try_compile "$LINENO"; then :
21857 gl_cv_header_working_stdalign_h=yes
21858 else
21859 gl_cv_header_working_stdalign_h=no
21860 fi
21861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21862 fi
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
21864 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
21865
21866 if test $gl_cv_header_working_stdalign_h = yes; then
21867 STDALIGN_H=''
21868 else
21869 STDALIGN_H='stdalign.h'
21870 fi
21871
21872
21873 if test -n "$STDALIGN_H"; then
21874 GL_GENERATE_STDALIGN_H_TRUE=
21875 GL_GENERATE_STDALIGN_H_FALSE='#'
21876 else
21877 GL_GENERATE_STDALIGN_H_TRUE='#'
21878 GL_GENERATE_STDALIGN_H_FALSE=
21879 fi
21880
21881
21882
21883 STDARG_H=''
21884 NEXT_STDARG_H='<stdarg.h>'
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21886 $as_echo_n "checking for va_copy... " >&6; }
21887 if test "${gl_cv_func_va_copy+set}" = set; then :
21888 $as_echo_n "(cached) " >&6
21889 else
21890
21891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21892 /* end confdefs.h. */
21893 #include <stdarg.h>
21894 int
21895 main ()
21896 {
21897
21898 #ifndef va_copy
21899 void (*func) (va_list, va_list) = va_copy;
21900 #endif
21901
21902 ;
21903 return 0;
21904 }
21905 _ACEOF
21906 if ac_fn_c_try_compile "$LINENO"; then :
21907 gl_cv_func_va_copy=yes
21908 else
21909 gl_cv_func_va_copy=no
21910 fi
21911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21912 fi
21913
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21915 $as_echo "$gl_cv_func_va_copy" >&6; }
21916 if test $gl_cv_func_va_copy = no; then
21917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h. */
21919 #if defined _AIX && !defined __GNUC__
21920 AIX vaccine
21921 #endif
21922
21923 _ACEOF
21924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21925 $EGREP "vaccine" >/dev/null 2>&1; then :
21926 gl_aixcc=yes
21927 else
21928 gl_aixcc=no
21929 fi
21930 rm -f conftest*
21931
21932 if test $gl_aixcc = yes; then
21933 STDARG_H=stdarg.h
21934
21935
21936
21937
21938
21939
21940
21941
21942 if test $gl_cv_have_include_next = yes; then
21943 gl_cv_next_stdarg_h='<'stdarg.h'>'
21944 else
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21946 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21947 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21948 $as_echo_n "(cached) " >&6
21949 else
21950
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21953 #include <stdarg.h>
21954
21955 _ACEOF
21956 case "$host_os" in
21957 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21958 *) gl_absname_cpp="$ac_cpp" ;;
21959 esac
21960
21961 case "$host_os" in
21962 mingw*)
21963 gl_dirsep_regex='[/\\]'
21964 ;;
21965 *)
21966 gl_dirsep_regex='\/'
21967 ;;
21968 esac
21969 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21970
21971 gl_header_literal_regex=`echo 'stdarg.h' \
21972 | sed -e "$gl_make_literal_regex_sed"`
21973 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21974 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21975 s|^/[^/]|//&|
21976 p
21977 q
21978 }'
21979 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21980 sed -n "$gl_absolute_header_sed"`'"'
21981
21982
21983 fi
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21985 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21986 fi
21987 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21988
21989 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21991 gl_next_as_first_directive='<'stdarg.h'>'
21992 else
21993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21994 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21995 fi
21996 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21997
21998
21999
22000
22001 if test "$gl_cv_next_stdarg_h" = '""'; then
22002 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22003 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22004 fi
22005 else
22006
22007 saved_as_echo_n="$as_echo_n"
22008 as_echo_n=':'
22009 if test "${gl_cv_func___va_copy+set}" = set; then :
22010 $as_echo_n "(cached) " >&6
22011 else
22012
22013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014 /* end confdefs.h. */
22015 #include <stdarg.h>
22016 int
22017 main ()
22018 {
22019
22020 #ifndef __va_copy
22021 error, bail out
22022 #endif
22023
22024 ;
22025 return 0;
22026 }
22027 _ACEOF
22028 if ac_fn_c_try_compile "$LINENO"; then :
22029 gl_cv_func___va_copy=yes
22030 else
22031 gl_cv_func___va_copy=no
22032 fi
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22034 fi
22035
22036 as_echo_n="$saved_as_echo_n"
22037
22038 if test $gl_cv_func___va_copy = yes; then
22039
22040 $as_echo "#define va_copy __va_copy" >>confdefs.h
22041
22042 else
22043
22044
22045 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22046
22047 fi
22048 fi
22049 fi
22050
22051 if test -n "$STDARG_H"; then
22052 GL_GENERATE_STDARG_H_TRUE=
22053 GL_GENERATE_STDARG_H_FALSE='#'
22054 else
22055 GL_GENERATE_STDARG_H_TRUE='#'
22056 GL_GENERATE_STDARG_H_FALSE=
22057 fi
22058
22059
22060
22061
22062
22063
22064 # Define two additional variables used in the Makefile substitution.
22065
22066 if test "$ac_cv_header_stdbool_h" = yes; then
22067 STDBOOL_H=''
22068 else
22069 STDBOOL_H='stdbool.h'
22070 fi
22071
22072 if test -n "$STDBOOL_H"; then
22073 GL_GENERATE_STDBOOL_H_TRUE=
22074 GL_GENERATE_STDBOOL_H_FALSE='#'
22075 else
22076 GL_GENERATE_STDBOOL_H_TRUE='#'
22077 GL_GENERATE_STDBOOL_H_FALSE=
22078 fi
22079
22080
22081 if test "$ac_cv_type__Bool" = yes; then
22082 HAVE__BOOL=1
22083 else
22084 HAVE__BOOL=0
22085 fi
22086
22087
22088
22089
22090
22091 STDDEF_H=
22092 if test $gt_cv_c_wchar_t = no; then
22093 HAVE_WCHAR_T=0
22094 STDDEF_H=stddef.h
22095 fi
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22097 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22098 if test "${gl_cv_decl_null_works+set}" = set; then :
22099 $as_echo_n "(cached) " >&6
22100 else
22101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102 /* end confdefs.h. */
22103 #include <stddef.h>
22104 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22105
22106 int
22107 main ()
22108 {
22109
22110 ;
22111 return 0;
22112 }
22113 _ACEOF
22114 if ac_fn_c_try_compile "$LINENO"; then :
22115 gl_cv_decl_null_works=yes
22116 else
22117 gl_cv_decl_null_works=no
22118 fi
22119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120 fi
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22122 $as_echo "$gl_cv_decl_null_works" >&6; }
22123 if test $gl_cv_decl_null_works = no; then
22124 REPLACE_NULL=1
22125 STDDEF_H=stddef.h
22126 fi
22127
22128 if test -n "$STDDEF_H"; then
22129 GL_GENERATE_STDDEF_H_TRUE=
22130 GL_GENERATE_STDDEF_H_FALSE='#'
22131 else
22132 GL_GENERATE_STDDEF_H_TRUE='#'
22133 GL_GENERATE_STDDEF_H_FALSE=
22134 fi
22135
22136 if test -n "$STDDEF_H"; then
22137
22138
22139
22140
22141
22142
22143
22144
22145 if test $gl_cv_have_include_next = yes; then
22146 gl_cv_next_stddef_h='<'stddef.h'>'
22147 else
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22149 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22150 if test "${gl_cv_next_stddef_h+set}" = set; then :
22151 $as_echo_n "(cached) " >&6
22152 else
22153
22154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22155 /* end confdefs.h. */
22156 #include <stddef.h>
22157
22158 _ACEOF
22159 case "$host_os" in
22160 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22161 *) gl_absname_cpp="$ac_cpp" ;;
22162 esac
22163
22164 case "$host_os" in
22165 mingw*)
22166 gl_dirsep_regex='[/\\]'
22167 ;;
22168 *)
22169 gl_dirsep_regex='\/'
22170 ;;
22171 esac
22172 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22173
22174 gl_header_literal_regex=`echo 'stddef.h' \
22175 | sed -e "$gl_make_literal_regex_sed"`
22176 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22177 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22178 s|^/[^/]|//&|
22179 p
22180 q
22181 }'
22182 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22183 sed -n "$gl_absolute_header_sed"`'"'
22184
22185
22186 fi
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22188 $as_echo "$gl_cv_next_stddef_h" >&6; }
22189 fi
22190 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22191
22192 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22194 gl_next_as_first_directive='<'stddef.h'>'
22195 else
22196 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22197 gl_next_as_first_directive=$gl_cv_next_stddef_h
22198 fi
22199 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22200
22201
22202
22203
22204 fi
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218 if test $gl_cv_have_include_next = yes; then
22219 gl_cv_next_stdio_h='<'stdio.h'>'
22220 else
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22222 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22223 if test "${gl_cv_next_stdio_h+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22225 else
22226
22227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22228 /* end confdefs.h. */
22229 #include <stdio.h>
22230
22231 _ACEOF
22232 case "$host_os" in
22233 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22234 *) gl_absname_cpp="$ac_cpp" ;;
22235 esac
22236
22237 case "$host_os" in
22238 mingw*)
22239 gl_dirsep_regex='[/\\]'
22240 ;;
22241 *)
22242 gl_dirsep_regex='\/'
22243 ;;
22244 esac
22245 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22246
22247 gl_header_literal_regex=`echo 'stdio.h' \
22248 | sed -e "$gl_make_literal_regex_sed"`
22249 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22250 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22251 s|^/[^/]|//&|
22252 p
22253 q
22254 }'
22255 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22256 sed -n "$gl_absolute_header_sed"`'"'
22257
22258
22259 fi
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22261 $as_echo "$gl_cv_next_stdio_h" >&6; }
22262 fi
22263 NEXT_STDIO_H=$gl_cv_next_stdio_h
22264
22265 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22266 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22267 gl_next_as_first_directive='<'stdio.h'>'
22268 else
22269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22270 gl_next_as_first_directive=$gl_cv_next_stdio_h
22271 fi
22272 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22273
22274
22275
22276
22277
22278 GNULIB_FSCANF=1
22279
22280
22281 cat >>confdefs.h <<_ACEOF
22282 #define GNULIB_FSCANF 1
22283 _ACEOF
22284
22285
22286 GNULIB_SCANF=1
22287
22288
22289 cat >>confdefs.h <<_ACEOF
22290 #define GNULIB_SCANF 1
22291 _ACEOF
22292
22293
22294 GNULIB_FGETC=1
22295 GNULIB_GETC=1
22296 GNULIB_GETCHAR=1
22297 GNULIB_FGETS=1
22298 GNULIB_FREAD=1
22299
22300
22301 GNULIB_FPRINTF=1
22302 GNULIB_PRINTF=1
22303 GNULIB_VFPRINTF=1
22304 GNULIB_VPRINTF=1
22305 GNULIB_FPUTC=1
22306 GNULIB_PUTC=1
22307 GNULIB_PUTCHAR=1
22308 GNULIB_FPUTS=1
22309 GNULIB_PUTS=1
22310 GNULIB_FWRITE=1
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326 if test $gl_cv_have_include_next = yes; then
22327 gl_cv_next_stdlib_h='<'stdlib.h'>'
22328 else
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22330 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22331 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22332 $as_echo_n "(cached) " >&6
22333 else
22334
22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h. */
22337 #include <stdlib.h>
22338
22339 _ACEOF
22340 case "$host_os" in
22341 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22342 *) gl_absname_cpp="$ac_cpp" ;;
22343 esac
22344
22345 case "$host_os" in
22346 mingw*)
22347 gl_dirsep_regex='[/\\]'
22348 ;;
22349 *)
22350 gl_dirsep_regex='\/'
22351 ;;
22352 esac
22353 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22354
22355 gl_header_literal_regex=`echo 'stdlib.h' \
22356 | sed -e "$gl_make_literal_regex_sed"`
22357 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22358 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22359 s|^/[^/]|//&|
22360 p
22361 q
22362 }'
22363 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22364 sed -n "$gl_absolute_header_sed"`'"'
22365
22366
22367 fi
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22369 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22370 fi
22371 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22372
22373 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22374 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22375 gl_next_as_first_directive='<'stdlib.h'>'
22376 else
22377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22378 gl_next_as_first_directive=$gl_cv_next_stdlib_h
22379 fi
22380 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22391
22392
22393
22394
22395
22396
22397
22398 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22399
22400
22401
22402
22403
22404
22405
22406
22407 if test "$ac_cv_have_decl_strtoimax" != yes; then
22408 HAVE_DECL_STRTOIMAX=0
22409 fi
22410
22411 if test $ac_cv_func_strtoimax = yes; then
22412 HAVE_STRTOIMAX=1
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22414 $as_echo_n "checking whether strtoimax works... " >&6; }
22415 if test "${gl_cv_func_strtoimax+set}" = set; then :
22416 $as_echo_n "(cached) " >&6
22417 else
22418 if test "$cross_compiling" = yes; then :
22419 case "$host_os" in
22420 # Guess no on AIX 5.
22421 aix5*) gl_cv_func_strtoimax="guessing no" ;;
22422 # Guess yes otherwise.
22423 *) gl_cv_func_strtoimax="guessing yes" ;;
22424 esac
22425
22426 else
22427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h. */
22429
22430 #include <errno.h>
22431 #include <string.h>
22432 #include <inttypes.h>
22433 int main ()
22434 {
22435 if (sizeof (intmax_t) > sizeof (int))
22436 {
22437 const char *s = "4294967295";
22438 char *p;
22439 intmax_t res;
22440 errno = 0;
22441 res = strtoimax (s, &p, 10);
22442 if (p != s + strlen (s))
22443 return 1;
22444 if (errno != 0)
22445 return 2;
22446 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22447 return 3;
22448 }
22449 else
22450 {
22451 const char *s = "2147483647";
22452 char *p;
22453 intmax_t res;
22454 errno = 0;
22455 res = strtoimax (s, &p, 10);
22456 if (p != s + strlen (s))
22457 return 1;
22458 if (errno != 0)
22459 return 2;
22460 if (res != 2147483647)
22461 return 3;
22462 }
22463 return 0;
22464 }
22465
22466 _ACEOF
22467 if ac_fn_c_try_run "$LINENO"; then :
22468 gl_cv_func_strtoimax=yes
22469 else
22470 gl_cv_func_strtoimax=no
22471 fi
22472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22473 conftest.$ac_objext conftest.beam conftest.$ac_ext
22474 fi
22475
22476
22477 fi
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
22479 $as_echo "$gl_cv_func_strtoimax" >&6; }
22480 case "$gl_cv_func_strtoimax" in
22481 *no) REPLACE_STRTOIMAX=1 ;;
22482 esac
22483 else
22484 HAVE_STRTOIMAX=0
22485 fi
22486
22487 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
22488
22489
22490
22491
22492
22493
22494
22495
22496 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
22497
22498
22499 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
22500 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
22501 ac_have_decl=1
22502 else
22503 ac_have_decl=0
22504 fi
22505
22506 cat >>confdefs.h <<_ACEOF
22507 #define HAVE_DECL_STRTOLL $ac_have_decl
22508 _ACEOF
22509
22510
22511
22512 fi
22513
22514
22515
22516
22517
22518 GNULIB_STRTOIMAX=1
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528 if test "$ac_cv_have_decl_strtoumax" != yes; then
22529 HAVE_DECL_STRTOUMAX=0
22530 fi
22531
22532 if test $ac_cv_func_strtoumax = no; then
22533
22534
22535
22536
22537
22538
22539
22540
22541 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
22542
22543
22544 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
22545 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
22546 ac_have_decl=1
22547 else
22548 ac_have_decl=0
22549 fi
22550
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE_DECL_STRTOULL $ac_have_decl
22553 _ACEOF
22554
22555
22556
22557 fi
22558
22559
22560
22561
22562
22563 GNULIB_STRTOUMAX=1
22564
22565
22566
22567
22568
22569
22570
22571 if test $ac_cv_func_symlink = no; then
22572 HAVE_SYMLINK=0
22573 else
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22575 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22576 if test "${gl_cv_func_symlink_works+set}" = set; then :
22577 $as_echo_n "(cached) " >&6
22578 else
22579 if test "$cross_compiling" = yes; then :
22580 case "$host_os" in
22581 # Guess yes on glibc systems.
22582 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
22583 # If we don't know, assume the worst.
22584 *) gl_cv_func_symlink_works="guessing no" ;;
22585 esac
22586
22587 else
22588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589 /* end confdefs.h. */
22590 #include <unistd.h>
22591
22592 int
22593 main ()
22594 {
22595 int result = 0;
22596 if (!symlink ("a", "conftest.link/"))
22597 result |= 1;
22598 if (symlink ("conftest.f", "conftest.lnk2"))
22599 result |= 2;
22600 else if (!symlink ("a", "conftest.lnk2/"))
22601 result |= 4;
22602 return result;
22603
22604 ;
22605 return 0;
22606 }
22607 _ACEOF
22608 if ac_fn_c_try_run "$LINENO"; then :
22609 gl_cv_func_symlink_works=yes
22610 else
22611 gl_cv_func_symlink_works=no
22612 fi
22613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22614 conftest.$ac_objext conftest.beam conftest.$ac_ext
22615 fi
22616
22617 rm -f conftest.f conftest.link conftest.lnk2
22618 fi
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22620 $as_echo "$gl_cv_func_symlink_works" >&6; }
22621 case "$gl_cv_func_symlink_works" in
22622 *yes) ;;
22623 *)
22624 REPLACE_SYMLINK=1
22625 ;;
22626 esac
22627 fi
22628
22629 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
22630
22631
22632
22633
22634
22635
22636
22637
22638 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
22639
22640 fi
22641
22642
22643
22644
22645
22646 GNULIB_SYMLINK=1
22647
22648
22649
22650
22651
22652
22653
22654
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
22656 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
22657 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
22658 $as_echo_n "(cached) " >&6
22659 else
22660
22661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22662 /* end confdefs.h. */
22663 #include <sys/select.h>
22664 int
22665 main ()
22666 {
22667 struct timeval b;
22668 ;
22669 return 0;
22670 }
22671 _ACEOF
22672 if ac_fn_c_try_compile "$LINENO"; then :
22673 gl_cv_header_sys_select_h_selfcontained=yes
22674 else
22675 gl_cv_header_sys_select_h_selfcontained=no
22676 fi
22677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22678 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h. */
22681 #include <sys/select.h>
22682 int
22683 main ()
22684 {
22685 int memset; int bzero;
22686 ;
22687 return 0;
22688 }
22689
22690 _ACEOF
22691 if ac_fn_c_try_compile "$LINENO"; then :
22692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22693 /* end confdefs.h. */
22694 #include <sys/select.h>
22695 int
22696 main ()
22697 {
22698
22699 #undef memset
22700 #define memset nonexistent_memset
22701 extern
22702 #ifdef __cplusplus
22703 "C"
22704 #endif
22705 void *memset (void *, int, unsigned long);
22706 #undef bzero
22707 #define bzero nonexistent_bzero
22708 extern
22709 #ifdef __cplusplus
22710 "C"
22711 #endif
22712 void bzero (void *, unsigned long);
22713 fd_set fds;
22714 FD_ZERO (&fds);
22715
22716 ;
22717 return 0;
22718 }
22719
22720 _ACEOF
22721 if ac_fn_c_try_link "$LINENO"; then :
22722
22723 else
22724 gl_cv_header_sys_select_h_selfcontained=no
22725 fi
22726 rm -f core conftest.err conftest.$ac_objext \
22727 conftest$ac_exeext conftest.$ac_ext
22728
22729 fi
22730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22731 fi
22732
22733 fi
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
22735 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745 if test $gl_cv_have_include_next = yes; then
22746 gl_cv_next_sys_select_h='<'sys/select.h'>'
22747 else
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
22749 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
22750 if test "${gl_cv_next_sys_select_h+set}" = set; then :
22751 $as_echo_n "(cached) " >&6
22752 else
22753
22754 if test $ac_cv_header_sys_select_h = yes; then
22755
22756
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22759 #include <sys/select.h>
22760
22761 _ACEOF
22762 case "$host_os" in
22763 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22764 *) gl_absname_cpp="$ac_cpp" ;;
22765 esac
22766
22767 case "$host_os" in
22768 mingw*)
22769 gl_dirsep_regex='[/\\]'
22770 ;;
22771 *)
22772 gl_dirsep_regex='\/'
22773 ;;
22774 esac
22775 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22776
22777 gl_header_literal_regex=`echo 'sys/select.h' \
22778 | sed -e "$gl_make_literal_regex_sed"`
22779 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22781 s|^/[^/]|//&|
22782 p
22783 q
22784 }'
22785 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22786 sed -n "$gl_absolute_header_sed"`'"'
22787 else
22788 gl_cv_next_sys_select_h='<'sys/select.h'>'
22789 fi
22790
22791
22792 fi
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
22794 $as_echo "$gl_cv_next_sys_select_h" >&6; }
22795 fi
22796 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
22797
22798 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22799 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22800 gl_next_as_first_directive='<'sys/select.h'>'
22801 else
22802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22803 gl_next_as_first_directive=$gl_cv_next_sys_select_h
22804 fi
22805 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
22806
22807
22808
22809
22810 if test $ac_cv_header_sys_select_h = yes; then
22811 HAVE_SYS_SELECT_H=1
22812 else
22813 HAVE_SYS_SELECT_H=0
22814 fi
22815
22816
22817
22818
22819
22820 if test $ac_cv_header_sys_socket_h != yes; then
22821 for ac_header in winsock2.h
22822 do :
22823 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22824 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
22825 cat >>confdefs.h <<_ACEOF
22826 #define HAVE_WINSOCK2_H 1
22827 _ACEOF
22828
22829 fi
22830
22831 done
22832
22833 fi
22834 if test "$ac_cv_header_winsock2_h" = yes; then
22835 HAVE_WINSOCK2_H=1
22836 UNISTD_H_HAVE_WINSOCK2_H=1
22837 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22838 else
22839 HAVE_WINSOCK2_H=0
22840 fi
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863 if test $gl_cv_have_include_next = yes; then
22864 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22865 else
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22867 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22868 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22869 $as_echo_n "(cached) " >&6
22870 else
22871
22872 if test $ac_cv_header_sys_stat_h = yes; then
22873
22874
22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h. */
22877 #include <sys/stat.h>
22878
22879 _ACEOF
22880 case "$host_os" in
22881 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22882 *) gl_absname_cpp="$ac_cpp" ;;
22883 esac
22884
22885 case "$host_os" in
22886 mingw*)
22887 gl_dirsep_regex='[/\\]'
22888 ;;
22889 *)
22890 gl_dirsep_regex='\/'
22891 ;;
22892 esac
22893 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22894
22895 gl_header_literal_regex=`echo 'sys/stat.h' \
22896 | sed -e "$gl_make_literal_regex_sed"`
22897 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22898 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22899 s|^/[^/]|//&|
22900 p
22901 q
22902 }'
22903 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22904 sed -n "$gl_absolute_header_sed"`'"'
22905 else
22906 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22907 fi
22908
22909
22910 fi
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22912 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22913 fi
22914 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
22915
22916 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22918 gl_next_as_first_directive='<'sys/stat.h'>'
22919 else
22920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22921 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
22922 fi
22923 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
22936
22937 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
22938
22939 fi
22940
22941 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22942 #include <sys/stat.h>
22943 "
22944 if test "x$ac_cv_type_nlink_t" = x""yes; then :
22945
22946 else
22947
22948 $as_echo "#define nlink_t int" >>confdefs.h
22949
22950 fi
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
22970 "
22971 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
22972 ac_have_decl=1
22973 else
22974 ac_have_decl=0
22975 fi
22976
22977 cat >>confdefs.h <<_ACEOF
22978 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
22979 _ACEOF
22980
22981 if test $ac_cv_have_decl_localtime_r = no; then
22982 HAVE_DECL_LOCALTIME_R=0
22983 fi
22984
22985
22986 if test $ac_cv_func_localtime_r = yes; then
22987 HAVE_LOCALTIME_R=1
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
22989 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
22990 if test "${gl_cv_time_r_posix+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22994 /* end confdefs.h. */
22995 #include <time.h>
22996 int
22997 main ()
22998 {
22999 /* We don't need to append 'restrict's to the argument types,
23000 even though the POSIX signature has the 'restrict's,
23001 since C99 says they can't affect type compatibility. */
23002 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23003 if (ptr) return 0;
23004 /* Check the return type is a pointer.
23005 On HP-UX 10 it is 'int'. */
23006 *localtime_r (0, 0);
23007 ;
23008 return 0;
23009 }
23010
23011 _ACEOF
23012 if ac_fn_c_try_compile "$LINENO"; then :
23013 gl_cv_time_r_posix=yes
23014 else
23015 gl_cv_time_r_posix=no
23016 fi
23017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018
23019 fi
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23021 $as_echo "$gl_cv_time_r_posix" >&6; }
23022 if test $gl_cv_time_r_posix = yes; then
23023 REPLACE_LOCALTIME_R=0
23024 else
23025 REPLACE_LOCALTIME_R=1
23026 fi
23027 else
23028 HAVE_LOCALTIME_R=0
23029 fi
23030
23031 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
23032
23033
23034
23035
23036
23037
23038
23039
23040 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
23041
23042
23043 :
23044
23045 fi
23046
23047
23048
23049
23050
23051 GNULIB_TIME_R=1
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074 if test $gl_cv_have_include_next = yes; then
23075 gl_cv_next_unistd_h='<'unistd.h'>'
23076 else
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23078 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23079 if test "${gl_cv_next_unistd_h+set}" = set; then :
23080 $as_echo_n "(cached) " >&6
23081 else
23082
23083 if test $ac_cv_header_unistd_h = yes; then
23084
23085
23086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23087 /* end confdefs.h. */
23088 #include <unistd.h>
23089
23090 _ACEOF
23091 case "$host_os" in
23092 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23093 *) gl_absname_cpp="$ac_cpp" ;;
23094 esac
23095
23096 case "$host_os" in
23097 mingw*)
23098 gl_dirsep_regex='[/\\]'
23099 ;;
23100 *)
23101 gl_dirsep_regex='\/'
23102 ;;
23103 esac
23104 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23105
23106 gl_header_literal_regex=`echo 'unistd.h' \
23107 | sed -e "$gl_make_literal_regex_sed"`
23108 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23109 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23110 s|^/[^/]|//&|
23111 p
23112 q
23113 }'
23114 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23115 sed -n "$gl_absolute_header_sed"`'"'
23116 else
23117 gl_cv_next_unistd_h='<'unistd.h'>'
23118 fi
23119
23120
23121 fi
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23123 $as_echo "$gl_cv_next_unistd_h" >&6; }
23124 fi
23125 NEXT_UNISTD_H=$gl_cv_next_unistd_h
23126
23127 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23128 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23129 gl_next_as_first_directive='<'unistd.h'>'
23130 else
23131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23132 gl_next_as_first_directive=$gl_cv_next_unistd_h
23133 fi
23134 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23135
23136
23137
23138
23139 if test $ac_cv_header_unistd_h = yes; then
23140 HAVE_UNISTD_H=1
23141 else
23142 HAVE_UNISTD_H=0
23143 fi
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23160 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23161 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23162 $as_echo_n "(cached) " >&6
23163 else
23164 touch conftest.file
23165 if test "$cross_compiling" = yes; then :
23166 case "$host_os" in
23167 # Guess yes on glibc systems.
23168 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
23169 # If we don't know, assume the worst.
23170 *) gl_cv_func_futimesat_works="guessing no" ;;
23171 esac
23172
23173 else
23174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175 /* end confdefs.h. */
23176
23177 #include <stddef.h>
23178 #include <sys/times.h>
23179 #include <fcntl.h>
23180
23181 int
23182 main ()
23183 {
23184 int fd = open ("conftest.file", O_RDWR);
23185 if (fd < 0) return 1;
23186 if (futimesat (fd, NULL, NULL)) return 2;
23187
23188 ;
23189 return 0;
23190 }
23191 _ACEOF
23192 if ac_fn_c_try_run "$LINENO"; then :
23193 gl_cv_func_futimesat_works=yes
23194 else
23195 gl_cv_func_futimesat_works=no
23196 fi
23197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23198 conftest.$ac_objext conftest.beam conftest.$ac_ext
23199 fi
23200
23201 rm -f conftest.file
23202 fi
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23204 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23205 case "$gl_cv_func_futimesat_works" in
23206 *yes) ;;
23207 *)
23208
23209 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23210
23211 ;;
23212 esac
23213 fi
23214
23215 gl_gnulib_enabled_dosname=false
23216 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
23217 gl_gnulib_enabled_pathmax=false
23218 gl_gnulib_enabled_stat=false
23219 gl_gnulib_enabled_strtoll=false
23220 gl_gnulib_enabled_strtoull=false
23221 gl_gnulib_enabled_verify=false
23222 func_gl_gnulib_m4code_dosname ()
23223 {
23224 if ! $gl_gnulib_enabled_dosname; then
23225 gl_gnulib_enabled_dosname=true
23226 fi
23227 }
23228 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
23229 {
23230 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23231
23232
23233 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
23234 fi
23235 }
23236 func_gl_gnulib_m4code_pathmax ()
23237 {
23238 if ! $gl_gnulib_enabled_pathmax; then
23239
23240
23241
23242 gl_gnulib_enabled_pathmax=true
23243 fi
23244 }
23245 func_gl_gnulib_m4code_stat ()
23246 {
23247 if ! $gl_gnulib_enabled_stat; then
23248
23249
23250
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23252 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23253 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23254 $as_echo_n "(cached) " >&6
23255 else
23256 if test "$cross_compiling" = yes; then :
23257 case $host_os in
23258 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23259 *) gl_cv_func_stat_dir_slash="guessing yes";;
23260 esac
23261 else
23262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23263 /* end confdefs.h. */
23264 #include <sys/stat.h>
23265
23266 int
23267 main ()
23268 {
23269 struct stat st; return stat (".", &st) != stat ("./", &st);
23270 ;
23271 return 0;
23272 }
23273 _ACEOF
23274 if ac_fn_c_try_run "$LINENO"; then :
23275 gl_cv_func_stat_dir_slash=yes
23276 else
23277 gl_cv_func_stat_dir_slash=no
23278 fi
23279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23280 conftest.$ac_objext conftest.beam conftest.$ac_ext
23281 fi
23282
23283 fi
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23285 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23287 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23288 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23289 $as_echo_n "(cached) " >&6
23290 else
23291 touch conftest.tmp
23292 # Assume that if we have lstat, we can also check symlinks.
23293 if test $ac_cv_func_lstat = yes; then
23294 ln -s conftest.tmp conftest.lnk
23295 fi
23296 if test "$cross_compiling" = yes; then :
23297 case "$host_os" in
23298 # Guess yes on glibc systems.
23299 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23300 # If we don't know, assume the worst.
23301 *) gl_cv_func_stat_file_slash="guessing no" ;;
23302 esac
23303
23304 else
23305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23306 /* end confdefs.h. */
23307 #include <sys/stat.h>
23308
23309 int
23310 main ()
23311 {
23312 int result = 0;
23313 struct stat st;
23314 if (!stat ("conftest.tmp/", &st))
23315 result |= 1;
23316 #if HAVE_LSTAT
23317 if (!stat ("conftest.lnk/", &st))
23318 result |= 2;
23319 #endif
23320 return result;
23321
23322 ;
23323 return 0;
23324 }
23325 _ACEOF
23326 if ac_fn_c_try_run "$LINENO"; then :
23327 gl_cv_func_stat_file_slash=yes
23328 else
23329 gl_cv_func_stat_file_slash=no
23330 fi
23331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23332 conftest.$ac_objext conftest.beam conftest.$ac_ext
23333 fi
23334
23335 rm -f conftest.tmp conftest.lnk
23336 fi
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23338 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23339 case $gl_cv_func_stat_dir_slash in
23340 *no) REPLACE_STAT=1
23341
23342 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23343 ;;
23344 esac
23345 case $gl_cv_func_stat_file_slash in
23346 *no) REPLACE_STAT=1
23347
23348 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23349 ;;
23350 esac
23351
23352 if test $REPLACE_STAT = 1; then
23353
23354
23355
23356
23357
23358
23359
23360
23361 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23362
23363
23364
23365 :
23366
23367 fi
23368
23369
23370
23371
23372
23373 GNULIB_STAT=1
23374
23375
23376
23377
23378
23379 gl_gnulib_enabled_stat=true
23380 if test $REPLACE_STAT = 1; then
23381 func_gl_gnulib_m4code_dosname
23382 fi
23383 if test $REPLACE_STAT = 1; then
23384 func_gl_gnulib_m4code_pathmax
23385 fi
23386 if test $REPLACE_STAT = 1; then
23387 func_gl_gnulib_m4code_verify
23388 fi
23389 fi
23390 }
23391 func_gl_gnulib_m4code_strtoll ()
23392 {
23393 if ! $gl_gnulib_enabled_strtoll; then
23394
23395
23396
23397 if test "$ac_cv_type_long_long_int" = yes; then
23398 for ac_func in strtoll
23399 do :
23400 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
23401 if test "x$ac_cv_func_strtoll" = x""yes; then :
23402 cat >>confdefs.h <<_ACEOF
23403 #define HAVE_STRTOLL 1
23404 _ACEOF
23405
23406 fi
23407 done
23408
23409 if test $ac_cv_func_strtoll = no; then
23410 HAVE_STRTOLL=0
23411 fi
23412 fi
23413
23414 if test $HAVE_STRTOLL = 0; then
23415
23416
23417
23418
23419
23420
23421
23422
23423 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
23424
23425
23426 :
23427
23428 fi
23429
23430
23431
23432
23433
23434 GNULIB_STRTOLL=1
23435
23436
23437
23438
23439
23440 gl_gnulib_enabled_strtoll=true
23441 fi
23442 }
23443 func_gl_gnulib_m4code_strtoull ()
23444 {
23445 if ! $gl_gnulib_enabled_strtoull; then
23446
23447
23448
23449 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23450 for ac_func in strtoull
23451 do :
23452 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
23453 if test "x$ac_cv_func_strtoull" = x""yes; then :
23454 cat >>confdefs.h <<_ACEOF
23455 #define HAVE_STRTOULL 1
23456 _ACEOF
23457
23458 fi
23459 done
23460
23461 if test $ac_cv_func_strtoull = no; then
23462 HAVE_STRTOULL=0
23463 fi
23464 fi
23465
23466 if test $HAVE_STRTOULL = 0; then
23467
23468
23469
23470
23471
23472
23473
23474
23475 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
23476
23477
23478 :
23479
23480 fi
23481
23482
23483
23484
23485
23486 GNULIB_STRTOULL=1
23487
23488
23489
23490
23491
23492 gl_gnulib_enabled_strtoull=true
23493 fi
23494 }
23495 func_gl_gnulib_m4code_verify ()
23496 {
23497 if ! $gl_gnulib_enabled_verify; then
23498 gl_gnulib_enabled_verify=true
23499 fi
23500 }
23501 if test $REPLACE_GETOPT = 1; then
23502 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
23503 fi
23504 if test $REPLACE_LSTAT = 1; then
23505 func_gl_gnulib_m4code_dosname
23506 fi
23507 if test $REPLACE_LSTAT = 1; then
23508 func_gl_gnulib_m4code_stat
23509 fi
23510 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23511 func_gl_gnulib_m4code_stat
23512 fi
23513 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
23514 func_gl_gnulib_m4code_strtoll
23515 fi
23516 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23517 func_gl_gnulib_m4code_verify
23518 fi
23519 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
23520 func_gl_gnulib_m4code_strtoull
23521 fi
23522 if test $ac_cv_func_strtoumax = no; then
23523 func_gl_gnulib_m4code_verify
23524 fi
23525
23526 if $gl_gnulib_enabled_dosname; then
23527 gl_GNULIB_ENABLED_dosname_TRUE=
23528 gl_GNULIB_ENABLED_dosname_FALSE='#'
23529 else
23530 gl_GNULIB_ENABLED_dosname_TRUE='#'
23531 gl_GNULIB_ENABLED_dosname_FALSE=
23532 fi
23533
23534 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23535 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
23536 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
23537 else
23538 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
23539 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
23540 fi
23541
23542 if $gl_gnulib_enabled_pathmax; then
23543 gl_GNULIB_ENABLED_pathmax_TRUE=
23544 gl_GNULIB_ENABLED_pathmax_FALSE='#'
23545 else
23546 gl_GNULIB_ENABLED_pathmax_TRUE='#'
23547 gl_GNULIB_ENABLED_pathmax_FALSE=
23548 fi
23549
23550 if $gl_gnulib_enabled_stat; then
23551 gl_GNULIB_ENABLED_stat_TRUE=
23552 gl_GNULIB_ENABLED_stat_FALSE='#'
23553 else
23554 gl_GNULIB_ENABLED_stat_TRUE='#'
23555 gl_GNULIB_ENABLED_stat_FALSE=
23556 fi
23557
23558 if $gl_gnulib_enabled_strtoll; then
23559 gl_GNULIB_ENABLED_strtoll_TRUE=
23560 gl_GNULIB_ENABLED_strtoll_FALSE='#'
23561 else
23562 gl_GNULIB_ENABLED_strtoll_TRUE='#'
23563 gl_GNULIB_ENABLED_strtoll_FALSE=
23564 fi
23565
23566 if $gl_gnulib_enabled_strtoull; then
23567 gl_GNULIB_ENABLED_strtoull_TRUE=
23568 gl_GNULIB_ENABLED_strtoull_FALSE='#'
23569 else
23570 gl_GNULIB_ENABLED_strtoull_TRUE='#'
23571 gl_GNULIB_ENABLED_strtoull_FALSE=
23572 fi
23573
23574 if $gl_gnulib_enabled_verify; then
23575 gl_GNULIB_ENABLED_verify_TRUE=
23576 gl_GNULIB_ENABLED_verify_FALSE='#'
23577 else
23578 gl_GNULIB_ENABLED_verify_TRUE='#'
23579 gl_GNULIB_ENABLED_verify_FALSE=
23580 fi
23581
23582 # End of code from modules
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592 gltests_libdeps=
23593 gltests_ltlibdeps=
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603 gl_source_base='tests'
23604 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
23605
23606 gl_module_indicator_condition=$gltests_WITNESS
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617 LIBGNU_LIBDEPS="$gl_libdeps"
23618
23619 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
23620
23621
23622 CFLAGS=$SAVE_CFLAGS
23623 LIBS=$SAVE_LIBS
23624
23625 case "$opsys" in
23626 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
23627
23628 darwin)
23629 ## The -headerpad option tells ld (see man page) to leave room at the
23630 ## end of the header for adding load commands. Needed for dumping.
23631 ## 0x690 is the total size of 30 segment load commands (at 56
23632 ## each); under Cocoa 31 commands are required.
23633 if test "$HAVE_NS" = "yes"; then
23634 libs_nsgui="-framework AppKit"
23635 headerpad_extra=6C8
23636 else
23637 libs_nsgui=
23638 headerpad_extra=690
23639 fi
23640 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23641
23642 ## This is here because src/Makefile.in did some extra fiddling around
23643 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23644 ## #ifndef LD_SWITCH_SYSTEM
23645 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23646 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23647 ## not using gcc, darwin.
23648 ## Because this was done in src/Makefile.in, the resulting part of
23649 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23650 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23651 ## rather than LD_SWITCH_SYSTEM.
23652 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
23653 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
23654 ;;
23655
23656 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
23657 ## find X at run-time.
23658 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
23659 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
23660 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
23661 ## had different values in configure (in ac_link) and src/Makefile.in.
23662 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
23663 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
23664
23665 *) LD_SWITCH_SYSTEM_TEMACS= ;;
23666 esac
23667
23668 if test "$NS_IMPL_GNUSTEP" = "yes"; then
23669 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
23670 fi
23671
23672
23673
23674
23675 LD_FIRSTFLAG=
23676 ORDINARY_LINK=
23677 case "$opsys" in
23678 ## gnu: GNU needs its own crt0.
23679 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
23680
23681 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23682 ## library search parth, i.e. it won't search /usr/lib for libc and
23683 ## friends. Using -nostartfiles instead avoids this problem, and
23684 ## will also work on earlier NetBSD releases.
23685 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
23686
23687 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23688 ## MkLinux/LinuxPPC needs this.
23689 ## s390x-* only supports opsys = gnu-linux so it can be added here.
23690 gnu-*)
23691 case "$canonical" in
23692 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
23693 esac
23694 ;;
23695 esac
23696
23697
23698 if test "x$ORDINARY_LINK" = "xyes"; then
23699
23700 LD_FIRSTFLAG=""
23701
23702 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
23703
23704
23705 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
23706 ## freebsd, gnu-* not on powerpc*|s390x*.
23707 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
23708
23709 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
23710 ## places that are difficult to figure out at make time. Fortunately,
23711 ## these same versions allow you to pass arbitrary flags on to the
23712 ## linker, so there is no reason not to use it as a linker.
23713 ##
23714 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
23715 ## searching for libraries in its internal directories, so we have to
23716 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
23717 LD_FIRSTFLAG="-nostdlib"
23718 fi
23719
23720 ## FIXME? What setting of EDIT_LDFLAGS should this have?
23721 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
23722
23723
23724
23725
23726 ## FIXME? The logic here is not precisely the same as that above.
23727 ## There is no check here for a pre-defined LD_FIRSTFLAG.
23728 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
23729 LIB_GCC=
23730 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
23731
23732 case "$opsys" in
23733 freebsd|netbsd|openbsd) LIB_GCC= ;;
23734
23735 gnu-*)
23736 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
23737 ## build on ARM EABI under GNU/Linux. (Bug#5518)
23738 case $host_cpu in
23739 arm*)
23740 LIB_GCC="-lgcc_s"
23741 ;;
23742 *)
23743 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
23744 ## immediately undefine it again and redefine it to empty.
23745 ## Was the C_SWITCH_X_SITE part really necessary?
23746 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
23747 LIB_GCC=
23748 ;;
23749 esac
23750 ;;
23751
23752 ## Ask GCC where to find libgcc.a.
23753 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
23754 esac
23755 fi
23756
23757
23758 ## If we're using X11/GNUstep, define some consequences.
23759 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
23760
23761 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23762
23763
23764 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23765
23766 fi
23767
23768
23769
23770
23771 #### Report on what we decided to do.
23772 #### Report GTK as a toolkit, even if it doesn't use Xt.
23773 #### It makes printing result more understandable as using GTK sets
23774 #### toolkit_scroll_bars to yes by default.
23775 if test "${HAVE_GTK}" = "yes"; then
23776 if test "${with_gtk3}" = "yes"; then
23777 USE_X_TOOLKIT=GTK3
23778 else
23779 USE_X_TOOLKIT=GTK
23780 fi
23781 fi
23782
23783 echo "
23784 Configured for \`${canonical}'.
23785
23786 Where should the build process find the source code? ${srcdir}
23787 What operating system file should Emacs use? ${opsysfile-none}
23788 What compiler should emacs be built with? ${CC} ${CFLAGS}
23789 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23790 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23791 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23792 What window system should Emacs use? ${window_system}
23793 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23794
23795 if test -n "${x_includes}"; then
23796 echo " Where do we find X Windows header files? ${x_includes}"
23797 else
23798 echo " Where do we find X Windows header files? Standard dirs"
23799 fi
23800 if test -n "${x_libraries}"; then
23801 echo " Where do we find X Windows libraries? ${x_libraries}"
23802 else
23803 echo " Where do we find X Windows libraries? Standard dirs"
23804 fi
23805
23806 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23807 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23808 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23809 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23810 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23811 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23812 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23813 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23814
23815 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23816 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23817 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23818 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23819 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23820 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23821 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23822
23823 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23824 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23825 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23826 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23827
23828 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23829 echo
23830
23831 if test -n "${EMACSDATA}"; then
23832 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23833 fi
23834 if test -n "${EMACSDOC}"; then
23835 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23836 fi
23837
23838 echo
23839
23840 if test "$HAVE_NS" = "yes"; then
23841 echo
23842 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23843 The installed application will go to nextstep/Emacs.app and can be
23844 run or moved from there."
23845 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23846 echo "The application will be fully self-contained."
23847 else
23848 echo "The lisp resources for the application will be installed under ${prefix}.
23849 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23850 to run if these resources are not installed."
23851 fi
23852 echo
23853 fi
23854
23855 if test "${opsys}" = "cygwin"; then
23856 case `uname -r` in
23857 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23858 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23859 echo
23860 ;;
23861 esac
23862 fi
23863
23864 # Remove any trailing slashes in these variables.
23865 test "${prefix}" != NONE &&
23866 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23867 test "${exec_prefix}" != NONE &&
23868 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23869
23870 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"
23871
23872 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"
23873
23874
23875 opt_makefile=test/automated/Makefile
23876
23877 if test -f $srcdir/${opt_makefile}.in; then
23878 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23879 ac_config_files="$ac_config_files test/automated/Makefile"
23880
23881 fi
23882
23883
23884 opt_makefile=admin/unidata/Makefile
23885
23886 if test -f $srcdir/${opt_makefile}.in; then
23887 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23888 ac_config_files="$ac_config_files admin/unidata/Makefile"
23889
23890 fi
23891
23892
23893 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23894
23895
23896
23897 ac_config_commands="$ac_config_commands mkdirs"
23898
23899
23900 ac_config_commands="$ac_config_commands epaths"
23901
23902
23903 ac_config_commands="$ac_config_commands gdbinit"
23904
23905
23906 cat >confcache <<\_ACEOF
23907 # This file is a shell script that caches the results of configure
23908 # tests run on this system so they can be shared between configure
23909 # scripts and configure runs, see configure's option --config-cache.
23910 # It is not useful on other systems. If it contains results you don't
23911 # want to keep, you may remove or edit it.
23912 #
23913 # config.status only pays attention to the cache file if you give it
23914 # the --recheck option to rerun configure.
23915 #
23916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23918 # following values.
23919
23920 _ACEOF
23921
23922 # The following way of writing the cache mishandles newlines in values,
23923 # but we know of no workaround that is simple, portable, and efficient.
23924 # So, we kill variables containing newlines.
23925 # Ultrix sh set writes to stderr and can't be redirected directly,
23926 # and sets the high bit in the cache file unless we assign to the vars.
23927 (
23928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23929 eval ac_val=\$$ac_var
23930 case $ac_val in #(
23931 *${as_nl}*)
23932 case $ac_var in #(
23933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23935 esac
23936 case $ac_var in #(
23937 _ | IFS | as_nl) ;; #(
23938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23939 *) { eval $ac_var=; unset $ac_var;} ;;
23940 esac ;;
23941 esac
23942 done
23943
23944 (set) 2>&1 |
23945 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23946 *${as_nl}ac_space=\ *)
23947 # `set' does not quote correctly, so add quotes: double-quote
23948 # substitution turns \\\\ into \\, and sed turns \\ into \.
23949 sed -n \
23950 "s/'/'\\\\''/g;
23951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23952 ;; #(
23953 *)
23954 # `set' quotes correctly as required by POSIX, so do not add quotes.
23955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23956 ;;
23957 esac |
23958 sort
23959 ) |
23960 sed '
23961 /^ac_cv_env_/b end
23962 t clear
23963 :clear
23964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23965 t end
23966 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23967 :end' >>confcache
23968 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23969 if test -w "$cache_file"; then
23970 test "x$cache_file" != "x/dev/null" &&
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23972 $as_echo "$as_me: updating cache $cache_file" >&6;}
23973 cat confcache >$cache_file
23974 else
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23976 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23977 fi
23978 fi
23979 rm -f confcache
23980
23981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23982 # Let make expand exec_prefix.
23983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23984
23985 DEFS=-DHAVE_CONFIG_H
23986
23987 ac_libobjs=
23988 ac_ltlibobjs=
23989 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23990 # 1. Remove the extension, and $U if already installed.
23991 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23992 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23993 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23994 # will be set to the directory where LIBOBJS objects are built.
23995 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23996 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23997 done
23998 LIBOBJS=$ac_libobjs
23999
24000 LTLIBOBJS=$ac_ltlibobjs
24001
24002
24003 if test -n "$EXEEXT"; then
24004 am__EXEEXT_TRUE=
24005 am__EXEEXT_FALSE='#'
24006 else
24007 am__EXEEXT_TRUE='#'
24008 am__EXEEXT_FALSE=
24009 fi
24010
24011 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24012 as_fn_error "conditional \"AMDEP\" was never defined.
24013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24014 fi
24015 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24016 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24018 fi
24019 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24020 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24022 fi
24023 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24024 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24026 fi
24027
24028 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24029 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24031 fi
24032 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24033 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24035 fi
24036 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24037 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24039 fi
24040 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24041 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24043 fi
24044 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24045 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24047 fi
24048 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24049 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24051 fi
24052 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24053 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24055 fi
24056 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24057 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24059 fi
24060 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24061 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24063 fi
24064 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24065 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24067 fi
24068 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24069 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24071 fi
24072 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24073 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24075 fi
24076
24077 gl_libobjs=
24078 gl_ltlibobjs=
24079 if test -n "$gl_LIBOBJS"; then
24080 # Remove the extension.
24081 sed_drop_objext='s/\.o$//;s/\.obj$//'
24082 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24083 gl_libobjs="$gl_libobjs $i.$ac_objext"
24084 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24085 done
24086 fi
24087 gl_LIBOBJS=$gl_libobjs
24088
24089 gl_LTLIBOBJS=$gl_ltlibobjs
24090
24091
24092
24093 gltests_libobjs=
24094 gltests_ltlibobjs=
24095 if test -n "$gltests_LIBOBJS"; then
24096 # Remove the extension.
24097 sed_drop_objext='s/\.o$//;s/\.obj$//'
24098 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24099 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24100 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24101 done
24102 fi
24103 gltests_LIBOBJS=$gltests_libobjs
24104
24105 gltests_LTLIBOBJS=$gltests_ltlibobjs
24106
24107
24108
24109 : ${CONFIG_STATUS=./config.status}
24110 ac_write_fail=0
24111 ac_clean_files_save=$ac_clean_files
24112 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24114 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24115 as_write_fail=0
24116 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24117 #! $SHELL
24118 # Generated by $as_me.
24119 # Run this file to recreate the current configuration.
24120 # Compiler output produced by configure, useful for debugging
24121 # configure, is in config.log if it exists.
24122
24123 debug=false
24124 ac_cs_recheck=false
24125 ac_cs_silent=false
24126
24127 SHELL=\${CONFIG_SHELL-$SHELL}
24128 export SHELL
24129 _ASEOF
24130 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24131 ## -------------------- ##
24132 ## M4sh Initialization. ##
24133 ## -------------------- ##
24134
24135 # Be more Bourne compatible
24136 DUALCASE=1; export DUALCASE # for MKS sh
24137 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24138 emulate sh
24139 NULLCMD=:
24140 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24141 # is contrary to our usage. Disable this feature.
24142 alias -g '${1+"$@"}'='"$@"'
24143 setopt NO_GLOB_SUBST
24144 else
24145 case `(set -o) 2>/dev/null` in #(
24146 *posix*) :
24147 set -o posix ;; #(
24148 *) :
24149 ;;
24150 esac
24151 fi
24152
24153
24154 as_nl='
24155 '
24156 export as_nl
24157 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24158 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24161 # Prefer a ksh shell builtin over an external printf program on Solaris,
24162 # but without wasting forks for bash or zsh.
24163 if test -z "$BASH_VERSION$ZSH_VERSION" \
24164 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24165 as_echo='print -r --'
24166 as_echo_n='print -rn --'
24167 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24168 as_echo='printf %s\n'
24169 as_echo_n='printf %s'
24170 else
24171 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24172 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24173 as_echo_n='/usr/ucb/echo -n'
24174 else
24175 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24176 as_echo_n_body='eval
24177 arg=$1;
24178 case $arg in #(
24179 *"$as_nl"*)
24180 expr "X$arg" : "X\\(.*\\)$as_nl";
24181 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24182 esac;
24183 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24184 '
24185 export as_echo_n_body
24186 as_echo_n='sh -c $as_echo_n_body as_echo'
24187 fi
24188 export as_echo_body
24189 as_echo='sh -c $as_echo_body as_echo'
24190 fi
24191
24192 # The user is always right.
24193 if test "${PATH_SEPARATOR+set}" != set; then
24194 PATH_SEPARATOR=:
24195 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24196 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24197 PATH_SEPARATOR=';'
24198 }
24199 fi
24200
24201
24202 # IFS
24203 # We need space, tab and new line, in precisely that order. Quoting is
24204 # there to prevent editors from complaining about space-tab.
24205 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24206 # splitting by setting IFS to empty value.)
24207 IFS=" "" $as_nl"
24208
24209 # Find who we are. Look in the path if we contain no directory separator.
24210 case $0 in #((
24211 *[\\/]* ) as_myself=$0 ;;
24212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24213 for as_dir in $PATH
24214 do
24215 IFS=$as_save_IFS
24216 test -z "$as_dir" && as_dir=.
24217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24218 done
24219 IFS=$as_save_IFS
24220
24221 ;;
24222 esac
24223 # We did not find ourselves, most probably we were run as `sh COMMAND'
24224 # in which case we are not to be found in the path.
24225 if test "x$as_myself" = x; then
24226 as_myself=$0
24227 fi
24228 if test ! -f "$as_myself"; then
24229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24230 exit 1
24231 fi
24232
24233 # Unset variables that we do not need and which cause bugs (e.g. in
24234 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24235 # suppresses any "Segmentation fault" message there. '((' could
24236 # trigger a bug in pdksh 5.2.14.
24237 for as_var in BASH_ENV ENV MAIL MAILPATH
24238 do eval test x\${$as_var+set} = xset \
24239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24240 done
24241 PS1='$ '
24242 PS2='> '
24243 PS4='+ '
24244
24245 # NLS nuisances.
24246 LC_ALL=C
24247 export LC_ALL
24248 LANGUAGE=C
24249 export LANGUAGE
24250
24251 # CDPATH.
24252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24253
24254
24255 # as_fn_error ERROR [LINENO LOG_FD]
24256 # ---------------------------------
24257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24259 # script with status $?, using 1 if that was 0.
24260 as_fn_error ()
24261 {
24262 as_status=$?; test $as_status -eq 0 && as_status=1
24263 if test "$3"; then
24264 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24266 fi
24267 $as_echo "$as_me: error: $1" >&2
24268 as_fn_exit $as_status
24269 } # as_fn_error
24270
24271
24272 # as_fn_set_status STATUS
24273 # -----------------------
24274 # Set $? to STATUS, without forking.
24275 as_fn_set_status ()
24276 {
24277 return $1
24278 } # as_fn_set_status
24279
24280 # as_fn_exit STATUS
24281 # -----------------
24282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24283 as_fn_exit ()
24284 {
24285 set +e
24286 as_fn_set_status $1
24287 exit $1
24288 } # as_fn_exit
24289
24290 # as_fn_unset VAR
24291 # ---------------
24292 # Portably unset VAR.
24293 as_fn_unset ()
24294 {
24295 { eval $1=; unset $1;}
24296 }
24297 as_unset=as_fn_unset
24298 # as_fn_append VAR VALUE
24299 # ----------------------
24300 # Append the text in VALUE to the end of the definition contained in VAR. Take
24301 # advantage of any shell optimizations that allow amortized linear growth over
24302 # repeated appends, instead of the typical quadratic growth present in naive
24303 # implementations.
24304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24305 eval 'as_fn_append ()
24306 {
24307 eval $1+=\$2
24308 }'
24309 else
24310 as_fn_append ()
24311 {
24312 eval $1=\$$1\$2
24313 }
24314 fi # as_fn_append
24315
24316 # as_fn_arith ARG...
24317 # ------------------
24318 # Perform arithmetic evaluation on the ARGs, and store the result in the
24319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24320 # must be portable across $(()) and expr.
24321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24322 eval 'as_fn_arith ()
24323 {
24324 as_val=$(( $* ))
24325 }'
24326 else
24327 as_fn_arith ()
24328 {
24329 as_val=`expr "$@" || test $? -eq 1`
24330 }
24331 fi # as_fn_arith
24332
24333
24334 if expr a : '\(a\)' >/dev/null 2>&1 &&
24335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24336 as_expr=expr
24337 else
24338 as_expr=false
24339 fi
24340
24341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24342 as_basename=basename
24343 else
24344 as_basename=false
24345 fi
24346
24347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24348 as_dirname=dirname
24349 else
24350 as_dirname=false
24351 fi
24352
24353 as_me=`$as_basename -- "$0" ||
24354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24355 X"$0" : 'X\(//\)$' \| \
24356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24357 $as_echo X/"$0" |
24358 sed '/^.*\/\([^/][^/]*\)\/*$/{
24359 s//\1/
24360 q
24361 }
24362 /^X\/\(\/\/\)$/{
24363 s//\1/
24364 q
24365 }
24366 /^X\/\(\/\).*/{
24367 s//\1/
24368 q
24369 }
24370 s/.*/./; q'`
24371
24372 # Avoid depending upon Character Ranges.
24373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24376 as_cr_digits='0123456789'
24377 as_cr_alnum=$as_cr_Letters$as_cr_digits
24378
24379 ECHO_C= ECHO_N= ECHO_T=
24380 case `echo -n x` in #(((((
24381 -n*)
24382 case `echo 'xy\c'` in
24383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24384 xy) ECHO_C='\c';;
24385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24386 ECHO_T=' ';;
24387 esac;;
24388 *)
24389 ECHO_N='-n';;
24390 esac
24391
24392 rm -f conf$$ conf$$.exe conf$$.file
24393 if test -d conf$$.dir; then
24394 rm -f conf$$.dir/conf$$.file
24395 else
24396 rm -f conf$$.dir
24397 mkdir conf$$.dir 2>/dev/null
24398 fi
24399 if (echo >conf$$.file) 2>/dev/null; then
24400 if ln -s conf$$.file conf$$ 2>/dev/null; then
24401 as_ln_s='ln -s'
24402 # ... but there are two gotchas:
24403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24405 # In both cases, we have to default to `cp -p'.
24406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24407 as_ln_s='cp -p'
24408 elif ln conf$$.file conf$$ 2>/dev/null; then
24409 as_ln_s=ln
24410 else
24411 as_ln_s='cp -p'
24412 fi
24413 else
24414 as_ln_s='cp -p'
24415 fi
24416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24417 rmdir conf$$.dir 2>/dev/null
24418
24419
24420 # as_fn_mkdir_p
24421 # -------------
24422 # Create "$as_dir" as a directory, including parents if necessary.
24423 as_fn_mkdir_p ()
24424 {
24425
24426 case $as_dir in #(
24427 -*) as_dir=./$as_dir;;
24428 esac
24429 test -d "$as_dir" || eval $as_mkdir_p || {
24430 as_dirs=
24431 while :; do
24432 case $as_dir in #(
24433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24434 *) as_qdir=$as_dir;;
24435 esac
24436 as_dirs="'$as_qdir' $as_dirs"
24437 as_dir=`$as_dirname -- "$as_dir" ||
24438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24439 X"$as_dir" : 'X\(//\)[^/]' \| \
24440 X"$as_dir" : 'X\(//\)$' \| \
24441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24442 $as_echo X"$as_dir" |
24443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24444 s//\1/
24445 q
24446 }
24447 /^X\(\/\/\)[^/].*/{
24448 s//\1/
24449 q
24450 }
24451 /^X\(\/\/\)$/{
24452 s//\1/
24453 q
24454 }
24455 /^X\(\/\).*/{
24456 s//\1/
24457 q
24458 }
24459 s/.*/./; q'`
24460 test -d "$as_dir" && break
24461 done
24462 test -z "$as_dirs" || eval "mkdir $as_dirs"
24463 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24464
24465
24466 } # as_fn_mkdir_p
24467 if mkdir -p . 2>/dev/null; then
24468 as_mkdir_p='mkdir -p "$as_dir"'
24469 else
24470 test -d ./-p && rmdir ./-p
24471 as_mkdir_p=false
24472 fi
24473
24474 if test -x / >/dev/null 2>&1; then
24475 as_test_x='test -x'
24476 else
24477 if ls -dL / >/dev/null 2>&1; then
24478 as_ls_L_option=L
24479 else
24480 as_ls_L_option=
24481 fi
24482 as_test_x='
24483 eval sh -c '\''
24484 if test -d "$1"; then
24485 test -d "$1/.";
24486 else
24487 case $1 in #(
24488 -*)set "./$1";;
24489 esac;
24490 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24491 ???[sx]*):;;*)false;;esac;fi
24492 '\'' sh
24493 '
24494 fi
24495 as_executable_p=$as_test_x
24496
24497 # Sed expression to map a string onto a valid CPP name.
24498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24499
24500 # Sed expression to map a string onto a valid variable name.
24501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24502
24503
24504 exec 6>&1
24505 ## ----------------------------------- ##
24506 ## Main body of $CONFIG_STATUS script. ##
24507 ## ----------------------------------- ##
24508 _ASEOF
24509 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24510
24511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24512 # Save the log message, to keep $0 and so on meaningful, and to
24513 # report actual input values of CONFIG_FILES etc. instead of their
24514 # values after options handling.
24515 ac_log="
24516 This file was extended by emacs $as_me 24.1.50, which was
24517 generated by GNU Autoconf 2.65. Invocation command line was
24518
24519 CONFIG_FILES = $CONFIG_FILES
24520 CONFIG_HEADERS = $CONFIG_HEADERS
24521 CONFIG_LINKS = $CONFIG_LINKS
24522 CONFIG_COMMANDS = $CONFIG_COMMANDS
24523 $ $0 $@
24524
24525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24526 "
24527
24528 _ACEOF
24529
24530 case $ac_config_files in *"
24531 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24532 esac
24533
24534 case $ac_config_headers in *"
24535 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24536 esac
24537
24538
24539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24540 # Files that config.status was made for.
24541 config_files="$ac_config_files"
24542 config_headers="$ac_config_headers"
24543 config_commands="$ac_config_commands"
24544
24545 _ACEOF
24546
24547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24548 ac_cs_usage="\
24549 \`$as_me' instantiates files and other configuration actions
24550 from templates according to the current configuration. Unless the files
24551 and actions are specified as TAGs, all are instantiated by default.
24552
24553 Usage: $0 [OPTION]... [TAG]...
24554
24555 -h, --help print this help, then exit
24556 -V, --version print version number and configuration settings, then exit
24557 --config print configuration, then exit
24558 -q, --quiet, --silent
24559 do not print progress messages
24560 -d, --debug don't remove temporary files
24561 --recheck update $as_me by reconfiguring in the same conditions
24562 --file=FILE[:TEMPLATE]
24563 instantiate the configuration file FILE
24564 --header=FILE[:TEMPLATE]
24565 instantiate the configuration header FILE
24566
24567 Configuration files:
24568 $config_files
24569
24570 Configuration headers:
24571 $config_headers
24572
24573 Configuration commands:
24574 $config_commands
24575
24576 Report bugs to the package provider."
24577
24578 _ACEOF
24579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24580 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24581 ac_cs_version="\\
24582 emacs config.status 24.1.50
24583 configured by $0, generated by GNU Autoconf 2.65,
24584 with options \\"\$ac_cs_config\\"
24585
24586 Copyright (C) 2009 Free Software Foundation, Inc.
24587 This config.status script is free software; the Free Software Foundation
24588 gives unlimited permission to copy, distribute and modify it."
24589
24590 ac_pwd='$ac_pwd'
24591 srcdir='$srcdir'
24592 INSTALL='$INSTALL'
24593 MKDIR_P='$MKDIR_P'
24594 AWK='$AWK'
24595 test -n "\$AWK" || AWK=awk
24596 _ACEOF
24597
24598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24599 # The default lists apply if the user does not specify any file.
24600 ac_need_defaults=:
24601 while test $# != 0
24602 do
24603 case $1 in
24604 --*=*)
24605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24607 ac_shift=:
24608 ;;
24609 *)
24610 ac_option=$1
24611 ac_optarg=$2
24612 ac_shift=shift
24613 ;;
24614 esac
24615
24616 case $ac_option in
24617 # Handling of the options.
24618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24619 ac_cs_recheck=: ;;
24620 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24621 $as_echo "$ac_cs_version"; exit ;;
24622 --config | --confi | --conf | --con | --co | --c )
24623 $as_echo "$ac_cs_config"; exit ;;
24624 --debug | --debu | --deb | --de | --d | -d )
24625 debug=: ;;
24626 --file | --fil | --fi | --f )
24627 $ac_shift
24628 case $ac_optarg in
24629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24630 esac
24631 as_fn_append CONFIG_FILES " '$ac_optarg'"
24632 ac_need_defaults=false;;
24633 --header | --heade | --head | --hea )
24634 $ac_shift
24635 case $ac_optarg in
24636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24637 esac
24638 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24639 ac_need_defaults=false;;
24640 --he | --h)
24641 # Conflict between --help and --header
24642 as_fn_error "ambiguous option: \`$1'
24643 Try \`$0 --help' for more information.";;
24644 --help | --hel | -h )
24645 $as_echo "$ac_cs_usage"; exit ;;
24646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24647 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24648 ac_cs_silent=: ;;
24649
24650 # This is an error.
24651 -*) as_fn_error "unrecognized option: \`$1'
24652 Try \`$0 --help' for more information." ;;
24653
24654 *) as_fn_append ac_config_targets " $1"
24655 ac_need_defaults=false ;;
24656
24657 esac
24658 shift
24659 done
24660
24661 ac_configure_extra_args=
24662
24663 if $ac_cs_silent; then
24664 exec 6>/dev/null
24665 ac_configure_extra_args="$ac_configure_extra_args --silent"
24666 fi
24667
24668 _ACEOF
24669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24670 if \$ac_cs_recheck; then
24671 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24672 shift
24673 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24674 CONFIG_SHELL='$SHELL'
24675 export CONFIG_SHELL
24676 exec "\$@"
24677 fi
24678
24679 _ACEOF
24680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24681 exec 5>>config.log
24682 {
24683 echo
24684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24685 ## Running $as_me. ##
24686 _ASBOX
24687 $as_echo "$ac_log"
24688 } >&5
24689
24690 _ACEOF
24691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24692 #
24693 # INIT-COMMANDS
24694 #
24695 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24696 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
24697
24698 _ACEOF
24699
24700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24701
24702 # Handling of arguments.
24703 for ac_config_target in $ac_config_targets
24704 do
24705 case $ac_config_target in
24706 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24707 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24708 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24709 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24710 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
24711 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24712 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24713 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24714 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24715 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24716 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24717 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24718 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24719 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24720 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
24721 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
24722 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
24723 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
24724 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
24725
24726 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24727 esac
24728 done
24729
24730
24731 # If the user did not use the arguments to specify the items to instantiate,
24732 # then the envvar interface is used. Set only those that are not.
24733 # We use the long form for the default assignment because of an extremely
24734 # bizarre bug on SunOS 4.1.3.
24735 if $ac_need_defaults; then
24736 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24737 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24739 fi
24740
24741 # Have a temporary directory for convenience. Make it in the build tree
24742 # simply because there is no reason against having it here, and in addition,
24743 # creating and moving files from /tmp can sometimes cause problems.
24744 # Hook for its removal unless debugging.
24745 # Note that there is a small window in which the directory will not be cleaned:
24746 # after its creation but before its name has been assigned to `$tmp'.
24747 $debug ||
24748 {
24749 tmp=
24750 trap 'exit_status=$?
24751 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24752 ' 0
24753 trap 'as_fn_exit 1' 1 2 13 15
24754 }
24755 # Create a (secure) tmp directory for tmp files.
24756
24757 {
24758 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24759 test -n "$tmp" && test -d "$tmp"
24760 } ||
24761 {
24762 tmp=./conf$$-$RANDOM
24763 (umask 077 && mkdir "$tmp")
24764 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
24765
24766 # Set up the scripts for CONFIG_FILES section.
24767 # No need to generate them if there are no CONFIG_FILES.
24768 # This happens for instance with `./config.status config.h'.
24769 if test -n "$CONFIG_FILES"; then
24770
24771 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
24772 ac_cs_awk_getline=:
24773 ac_cs_awk_pipe_init=
24774 ac_cs_awk_read_file='
24775 while ((getline aline < (F[key])) > 0)
24776 print(aline)
24777 close(F[key])'
24778 ac_cs_awk_pipe_fini=
24779 else
24780 ac_cs_awk_getline=false
24781 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
24782 ac_cs_awk_read_file='
24783 print "|#_!!_#|"
24784 print "cat " F[key] " &&"
24785 '$ac_cs_awk_pipe_init
24786 # The final `:' finishes the AND list.
24787 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
24788 fi
24789 ac_cr=`echo X | tr X '\015'`
24790 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24791 # But we know of no other shell where ac_cr would be empty at this
24792 # point, so we can use a bashism as a fallback.
24793 if test "x$ac_cr" = x; then
24794 eval ac_cr=\$\'\\r\'
24795 fi
24796 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24797 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24798 ac_cs_awk_cr='\r'
24799 else
24800 ac_cs_awk_cr=$ac_cr
24801 fi
24802
24803 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24804 _ACEOF
24805
24806 # Create commands to substitute file output variables.
24807 {
24808 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24809 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24810 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24811 echo "_ACAWK" &&
24812 echo "_ACEOF"
24813 } >conf$$files.sh &&
24814 . ./conf$$files.sh ||
24815 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24816 rm -f conf$$files.sh
24817
24818 {
24819 echo "cat >conf$$subs.awk <<_ACEOF" &&
24820 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24821 echo "_ACEOF"
24822 } >conf$$subs.sh ||
24823 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24824 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24825 ac_delim='%!_!# '
24826 for ac_last_try in false false false false false :; do
24827 . ./conf$$subs.sh ||
24828 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24829
24830 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24831 if test $ac_delim_n = $ac_delim_num; then
24832 break
24833 elif $ac_last_try; then
24834 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24835 else
24836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24837 fi
24838 done
24839 rm -f conf$$subs.sh
24840
24841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24842 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24843 _ACEOF
24844 sed -n '
24845 h
24846 s/^/S["/; s/!.*/"]=/
24847 p
24848 g
24849 s/^[^!]*!//
24850 :repl
24851 t repl
24852 s/'"$ac_delim"'$//
24853 t delim
24854 :nl
24855 h
24856 s/\(.\{148\}\)..*/\1/
24857 t more1
24858 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24859 p
24860 n
24861 b repl
24862 :more1
24863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24864 p
24865 g
24866 s/.\{148\}//
24867 t nl
24868 :delim
24869 h
24870 s/\(.\{148\}\)..*/\1/
24871 t more2
24872 s/["\\]/\\&/g; s/^/"/; s/$/"/
24873 p
24874 b
24875 :more2
24876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24877 p
24878 g
24879 s/.\{148\}//
24880 t delim
24881 ' <conf$$subs.awk | sed '
24882 /^[^""]/{
24883 N
24884 s/\n//
24885 }
24886 ' >>$CONFIG_STATUS || ac_write_fail=1
24887 rm -f conf$$subs.awk
24888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24889 _ACAWK
24890 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24891 for (key in S) S_is_set[key] = 1
24892 FS = "\a"
24893 \$ac_cs_awk_pipe_init
24894 }
24895 {
24896 line = $ 0
24897 nfields = split(line, field, "@")
24898 substed = 0
24899 len = length(field[1])
24900 for (i = 2; i < nfields; i++) {
24901 key = field[i]
24902 keylen = length(key)
24903 if (S_is_set[key]) {
24904 value = S[key]
24905 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24906 len += length(value) + length(field[++i])
24907 substed = 1
24908 } else
24909 len += 1 + keylen
24910 }
24911 if (nfields == 3 && !substed) {
24912 key = field[2]
24913 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24914 \$ac_cs_awk_read_file
24915 next
24916 }
24917 }
24918 print line
24919 }
24920 \$ac_cs_awk_pipe_fini
24921 _ACAWK
24922 _ACEOF
24923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24924 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24925 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24926 else
24927 cat
24928 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24929 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24930 _ACEOF
24931
24932 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24933 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24934 # trailing colons and then remove the whole line if VPATH becomes empty
24935 # (actually we leave an empty line to preserve line numbers).
24936 if test "x$srcdir" = x.; then
24937 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24938 s/:*\$(srcdir):*/:/
24939 s/:*\${srcdir}:*/:/
24940 s/:*@srcdir@:*/:/
24941 s/^\([^=]*=[ ]*\):*/\1/
24942 s/:*$//
24943 s/^[^=]*=[ ]*$//
24944 }'
24945 fi
24946
24947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24948 fi # test -n "$CONFIG_FILES"
24949
24950 # Set up the scripts for CONFIG_HEADERS section.
24951 # No need to generate them if there are no CONFIG_HEADERS.
24952 # This happens for instance with `./config.status Makefile'.
24953 if test -n "$CONFIG_HEADERS"; then
24954 cat >"$tmp/defines.awk" <<\_ACAWK ||
24955 BEGIN {
24956 _ACEOF
24957
24958 # Transform confdefs.h into an awk script `defines.awk', embedded as
24959 # here-document in config.status, that substitutes the proper values into
24960 # config.h.in to produce config.h.
24961
24962 # Create a delimiter string that does not exist in confdefs.h, to ease
24963 # handling of long lines.
24964 ac_delim='%!_!# '
24965 for ac_last_try in false false :; do
24966 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24967 if test -z "$ac_t"; then
24968 break
24969 elif $ac_last_try; then
24970 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24971 else
24972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24973 fi
24974 done
24975
24976 # For the awk script, D is an array of macro values keyed by name,
24977 # likewise P contains macro parameters if any. Preserve backslash
24978 # newline sequences.
24979
24980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24981 sed -n '
24982 s/.\{148\}/&'"$ac_delim"'/g
24983 t rset
24984 :rset
24985 s/^[ ]*#[ ]*define[ ][ ]*/ /
24986 t def
24987 d
24988 :def
24989 s/\\$//
24990 t bsnl
24991 s/["\\]/\\&/g
24992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24993 D["\1"]=" \3"/p
24994 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24995 d
24996 :bsnl
24997 s/["\\]/\\&/g
24998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24999 D["\1"]=" \3\\\\\\n"\\/p
25000 t cont
25001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25002 t cont
25003 d
25004 :cont
25005 n
25006 s/.\{148\}/&'"$ac_delim"'/g
25007 t clear
25008 :clear
25009 s/\\$//
25010 t bsnlc
25011 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25012 d
25013 :bsnlc
25014 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25015 b cont
25016 ' <confdefs.h | sed '
25017 s/'"$ac_delim"'/"\\\
25018 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25019
25020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25021 for (key in D) D_is_set[key] = 1
25022 FS = "\a"
25023 }
25024 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25025 line = \$ 0
25026 split(line, arg, " ")
25027 if (arg[1] == "#") {
25028 defundef = arg[2]
25029 mac1 = arg[3]
25030 } else {
25031 defundef = substr(arg[1], 2)
25032 mac1 = arg[2]
25033 }
25034 split(mac1, mac2, "(") #)
25035 macro = mac2[1]
25036 prefix = substr(line, 1, index(line, defundef) - 1)
25037 if (D_is_set[macro]) {
25038 # Preserve the white space surrounding the "#".
25039 print prefix "define", macro P[macro] D[macro]
25040 next
25041 } else {
25042 # Replace #undef with comments. This is necessary, for example,
25043 # in the case of _POSIX_SOURCE, which is predefined and required
25044 # on some systems where configure will not decide to define it.
25045 if (defundef == "undef") {
25046 print "/*", prefix defundef, macro, "*/"
25047 next
25048 }
25049 }
25050 }
25051 { print }
25052 _ACAWK
25053 _ACEOF
25054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25055 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25056 fi # test -n "$CONFIG_HEADERS"
25057
25058
25059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25060 shift
25061 for ac_tag
25062 do
25063 case $ac_tag in
25064 :[FHLC]) ac_mode=$ac_tag; continue;;
25065 esac
25066 case $ac_mode$ac_tag in
25067 :[FHL]*:*);;
25068 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25069 :[FH]-) ac_tag=-:-;;
25070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25071 esac
25072 ac_save_IFS=$IFS
25073 IFS=:
25074 set x $ac_tag
25075 IFS=$ac_save_IFS
25076 shift
25077 ac_file=$1
25078 shift
25079
25080 case $ac_mode in
25081 :L) ac_source=$1;;
25082 :[FH])
25083 ac_file_inputs=
25084 for ac_f
25085 do
25086 case $ac_f in
25087 -) ac_f="$tmp/stdin";;
25088 *) # Look for the file first in the build tree, then in the source tree
25089 # (if the path is not absolute). The absolute path cannot be DOS-style,
25090 # because $ac_f cannot contain `:'.
25091 test -f "$ac_f" ||
25092 case $ac_f in
25093 [\\/$]*) false;;
25094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25095 esac ||
25096 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25097 esac
25098 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25099 as_fn_append ac_file_inputs " '$ac_f'"
25100 done
25101
25102 # Let's still pretend it is `configure' which instantiates (i.e., don't
25103 # use $as_me), people would be surprised to read:
25104 # /* config.h. Generated by config.status. */
25105 configure_input='Generated from '`
25106 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25107 `' by configure.'
25108 if test x"$ac_file" != x-; then
25109 configure_input="$ac_file. $configure_input"
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25111 $as_echo "$as_me: creating $ac_file" >&6;}
25112 fi
25113 # Neutralize special characters interpreted by sed in replacement strings.
25114 case $configure_input in #(
25115 *\&* | *\|* | *\\* )
25116 ac_sed_conf_input=`$as_echo "$configure_input" |
25117 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25118 *) ac_sed_conf_input=$configure_input;;
25119 esac
25120
25121 case $ac_tag in
25122 *:-:* | *:-) cat >"$tmp/stdin" \
25123 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25124 esac
25125 ;;
25126 esac
25127
25128 ac_dir=`$as_dirname -- "$ac_file" ||
25129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25130 X"$ac_file" : 'X\(//\)[^/]' \| \
25131 X"$ac_file" : 'X\(//\)$' \| \
25132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25133 $as_echo X"$ac_file" |
25134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25135 s//\1/
25136 q
25137 }
25138 /^X\(\/\/\)[^/].*/{
25139 s//\1/
25140 q
25141 }
25142 /^X\(\/\/\)$/{
25143 s//\1/
25144 q
25145 }
25146 /^X\(\/\).*/{
25147 s//\1/
25148 q
25149 }
25150 s/.*/./; q'`
25151 as_dir="$ac_dir"; as_fn_mkdir_p
25152 ac_builddir=.
25153
25154 case "$ac_dir" in
25155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25156 *)
25157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25158 # A ".." for each directory in $ac_dir_suffix.
25159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25160 case $ac_top_builddir_sub in
25161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25163 esac ;;
25164 esac
25165 ac_abs_top_builddir=$ac_pwd
25166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25167 # for backward compatibility:
25168 ac_top_builddir=$ac_top_build_prefix
25169
25170 case $srcdir in
25171 .) # We are building in place.
25172 ac_srcdir=.
25173 ac_top_srcdir=$ac_top_builddir_sub
25174 ac_abs_top_srcdir=$ac_pwd ;;
25175 [\\/]* | ?:[\\/]* ) # Absolute name.
25176 ac_srcdir=$srcdir$ac_dir_suffix;
25177 ac_top_srcdir=$srcdir
25178 ac_abs_top_srcdir=$srcdir ;;
25179 *) # Relative name.
25180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25181 ac_top_srcdir=$ac_top_build_prefix$srcdir
25182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25183 esac
25184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25185
25186
25187 case $ac_mode in
25188 :F)
25189 #
25190 # CONFIG_FILE
25191 #
25192
25193 case $INSTALL in
25194 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25195 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25196 esac
25197 ac_MKDIR_P=$MKDIR_P
25198 case $MKDIR_P in
25199 [\\/$]* | ?:[\\/]* ) ;;
25200 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25201 esac
25202 _ACEOF
25203
25204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25205 # If the template does not know about datarootdir, expand it.
25206 # FIXME: This hack should be removed a few years after 2.60.
25207 ac_datarootdir_hack=; ac_datarootdir_seen=
25208 ac_sed_dataroot='
25209 /datarootdir/ {
25210 p
25211 q
25212 }
25213 /@datadir@/p
25214 /@docdir@/p
25215 /@infodir@/p
25216 /@localedir@/p
25217 /@mandir@/p'
25218 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25219 *datarootdir*) ac_datarootdir_seen=yes;;
25220 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25222 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25223 _ACEOF
25224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25225 ac_datarootdir_hack='
25226 s&@datadir@&$datadir&g
25227 s&@docdir@&$docdir&g
25228 s&@infodir@&$infodir&g
25229 s&@localedir@&$localedir&g
25230 s&@mandir@&$mandir&g
25231 s&\\\${datarootdir}&$datarootdir&g' ;;
25232 esac
25233 _ACEOF
25234
25235 # Neutralize VPATH when `$srcdir' = `.'.
25236 # Shell code in configure.ac might set extrasub.
25237 # FIXME: do we really want to maintain this feature?
25238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25239 ac_sed_extra="$ac_vpsub
25240 $extrasub
25241 _ACEOF
25242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25243 :t
25244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25245 s|@configure_input@|$ac_sed_conf_input|;t t
25246 s&@top_builddir@&$ac_top_builddir_sub&;t t
25247 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25248 s&@srcdir@&$ac_srcdir&;t t
25249 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25250 s&@top_srcdir@&$ac_top_srcdir&;t t
25251 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25252 s&@builddir@&$ac_builddir&;t t
25253 s&@abs_builddir@&$ac_abs_builddir&;t t
25254 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25255 s&@INSTALL@&$ac_INSTALL&;t t
25256 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25257 $ac_datarootdir_hack
25258 "
25259 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25260 if $ac_cs_awk_getline; then
25261 $AWK -f "$tmp/subs.awk"
25262 else
25263 $AWK -f "$tmp/subs.awk" | $SHELL
25264 fi >$tmp/out \
25265 || as_fn_error "could not create $ac_file" "$LINENO" 5
25266
25267 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25268 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25269 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25271 which seems to be undefined. Please make sure it is defined." >&5
25272 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25273 which seems to be undefined. Please make sure it is defined." >&2;}
25274
25275 rm -f "$tmp/stdin"
25276 case $ac_file in
25277 -) cat "$tmp/out" && rm -f "$tmp/out";;
25278 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25279 esac \
25280 || as_fn_error "could not create $ac_file" "$LINENO" 5
25281 ;;
25282 :H)
25283 #
25284 # CONFIG_HEADER
25285 #
25286 if test x"$ac_file" != x-; then
25287 {
25288 $as_echo "/* $configure_input */" \
25289 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25290 } >"$tmp/config.h" \
25291 || as_fn_error "could not create $ac_file" "$LINENO" 5
25292 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25294 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25295 else
25296 rm -f "$ac_file"
25297 mv "$tmp/config.h" "$ac_file" \
25298 || as_fn_error "could not create $ac_file" "$LINENO" 5
25299 fi
25300 else
25301 $as_echo "/* $configure_input */" \
25302 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25303 || as_fn_error "could not create -" "$LINENO" 5
25304 fi
25305 # Compute "$ac_file"'s index in $config_headers.
25306 _am_arg="$ac_file"
25307 _am_stamp_count=1
25308 for _am_header in $config_headers :; do
25309 case $_am_header in
25310 $_am_arg | $_am_arg:* )
25311 break ;;
25312 * )
25313 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25314 esac
25315 done
25316 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25317 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25318 X"$_am_arg" : 'X\(//\)[^/]' \| \
25319 X"$_am_arg" : 'X\(//\)$' \| \
25320 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25321 $as_echo X"$_am_arg" |
25322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25323 s//\1/
25324 q
25325 }
25326 /^X\(\/\/\)[^/].*/{
25327 s//\1/
25328 q
25329 }
25330 /^X\(\/\/\)$/{
25331 s//\1/
25332 q
25333 }
25334 /^X\(\/\).*/{
25335 s//\1/
25336 q
25337 }
25338 s/.*/./; q'`/stamp-h$_am_stamp_count
25339 ;;
25340
25341 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25342 $as_echo "$as_me: executing $ac_file commands" >&6;}
25343 ;;
25344 esac
25345
25346
25347 case $ac_file$ac_mode in
25348 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25349 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25350 # are listed without --file. Let's play safe and only enable the eval
25351 # if we detect the quoting.
25352 case $CONFIG_FILES in
25353 *\'*) eval set x "$CONFIG_FILES" ;;
25354 *) set x $CONFIG_FILES ;;
25355 esac
25356 shift
25357 for mf
25358 do
25359 # Strip MF so we end up with the name of the file.
25360 mf=`echo "$mf" | sed -e 's/:.*$//'`
25361 # Check whether this is an Automake generated Makefile or not.
25362 # We used to match only the files named `Makefile.in', but
25363 # some people rename them; so instead we look at the file content.
25364 # Grep'ing the first line is not enough: some people post-process
25365 # each Makefile.in and add a new line on top of each file to say so.
25366 # Grep'ing the whole file is not good either: AIX grep has a line
25367 # limit of 2048, but all sed's we know have understand at least 4000.
25368 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25369 dirpart=`$as_dirname -- "$mf" ||
25370 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25371 X"$mf" : 'X\(//\)[^/]' \| \
25372 X"$mf" : 'X\(//\)$' \| \
25373 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25374 $as_echo X"$mf" |
25375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25376 s//\1/
25377 q
25378 }
25379 /^X\(\/\/\)[^/].*/{
25380 s//\1/
25381 q
25382 }
25383 /^X\(\/\/\)$/{
25384 s//\1/
25385 q
25386 }
25387 /^X\(\/\).*/{
25388 s//\1/
25389 q
25390 }
25391 s/.*/./; q'`
25392 else
25393 continue
25394 fi
25395 # Extract the definition of DEPDIR, am__include, and am__quote
25396 # from the Makefile without running `make'.
25397 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25398 test -z "$DEPDIR" && continue
25399 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25400 test -z "am__include" && continue
25401 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25402 # When using ansi2knr, U may be empty or an underscore; expand it
25403 U=`sed -n 's/^U = //p' < "$mf"`
25404 # Find all dependency output files, they are included files with
25405 # $(DEPDIR) in their names. We invoke sed twice because it is the
25406 # simplest approach to changing $(DEPDIR) to its actual value in the
25407 # expansion.
25408 for file in `sed -n "
25409 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25410 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25411 # Make sure the directory exists.
25412 test -f "$dirpart/$file" && continue
25413 fdir=`$as_dirname -- "$file" ||
25414 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25415 X"$file" : 'X\(//\)[^/]' \| \
25416 X"$file" : 'X\(//\)$' \| \
25417 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25418 $as_echo X"$file" |
25419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25420 s//\1/
25421 q
25422 }
25423 /^X\(\/\/\)[^/].*/{
25424 s//\1/
25425 q
25426 }
25427 /^X\(\/\/\)$/{
25428 s//\1/
25429 q
25430 }
25431 /^X\(\/\).*/{
25432 s//\1/
25433 q
25434 }
25435 s/.*/./; q'`
25436 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25437 # echo "creating $dirpart/$file"
25438 echo '# dummy' > "$dirpart/$file"
25439 done
25440 done
25441 }
25442 ;;
25443 "mkdirs":C)
25444 for dir in etc lisp ; do
25445 test -d ${dir} || mkdir ${dir}
25446 done
25447 ;;
25448 "epaths":C)
25449 echo creating src/epaths.h
25450 ${MAKE-make} epaths-force
25451 ;;
25452 "gdbinit":C)
25453 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25454 echo creating src/.gdbinit
25455 echo source $srcdir/src/.gdbinit > src/.gdbinit
25456 fi
25457 ;;
25458
25459 esac
25460 done # for ac_tag
25461
25462
25463 as_fn_exit 0
25464 _ACEOF
25465 ac_clean_files=$ac_clean_files_save
25466
25467 test $ac_write_fail = 0 ||
25468 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25469
25470
25471 # configure is writing to config.log, and then calls config.status.
25472 # config.status does its own redirection, appending to config.log.
25473 # Unfortunately, on DOS this fails, as config.log is still kept open
25474 # by configure, so config.status won't be able to write to it; its
25475 # output is simply discarded. So we exec the FD to /dev/null,
25476 # effectively closing config.log, so it can be properly (re)opened and
25477 # appended to by config.status. When coming back to configure, we
25478 # need to make the FD available again.
25479 if test "$no_create" != yes; then
25480 ac_cs_success=:
25481 ac_config_status_args=
25482 test "$silent" = yes &&
25483 ac_config_status_args="$ac_config_status_args --quiet"
25484 exec 5>/dev/null
25485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25486 exec 5>>config.log
25487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25488 # would make configure fail if this is the last instruction.
25489 $ac_cs_success || as_fn_exit $?
25490 fi
25491 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25493 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25494 fi
25495