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_func_list=
595 ac_header_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 POST_ALLOC_OBJ
611 PRE_ALLOC_OBJ
612 CYGWIN_OBJ
613 RALLOC_OBJ
614 OLDXMENU_DEPS
615 LIBX_OTHER
616 LIBXMENU
617 OLDXMENU
618 OLDXMENU_TARGET
619 LIBXT_OTHER
620 TOOLKIT_LIBW
621 WIDGET_OBJ
622 XOBJ
623 XMENU_OBJ
624 FONT_OBJ
625 OTHER_FILES
626 GNU_OBJC_CFLAGS
627 ns_appsrc
628 ns_appresdir
629 ns_appbindir
630 ns_appdir
631 S_FILE
632 X_TOOLKIT_TYPE
633 GNUSTEP_CFLAGS
634 C_SWITCH_X_SITE
635 LD_SWITCH_X_SITE
636 gameuser
637 gamedir
638 bitmapdir
639 archlibdir
640 etcdir
641 x_default_search_path
642 lisppath
643 locallisppath
644 standardlisppath
645 leimdir
646 lispdir
647 srcdir
648 canonical
649 configuration
650 version
651 KRB4LIB
652 DESLIB
653 KRB5LIB
654 CRYPTOLIB
655 COM_ERRLIB
656 LIBRESOLV
657 LIBHESIOD
658 TERMCAP_OBJ
659 LIBS_TERMCAP
660 BLESSMAIL_TARGET
661 LIBS_MAIL
662 liblockfile
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 M17N_FLT_LIBS
673 M17N_FLT_CFLAGS
674 LIBOTF_LIBS
675 LIBOTF_CFLAGS
676 FREETYPE_LIBS
677 FREETYPE_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 SETTINGS_LIBS
688 SETTINGS_CFLAGS
689 GCONF_LIBS
690 GCONF_CFLAGS
691 GSETTINGS_LIBS
692 GSETTINGS_CFLAGS
693 DBUS_OBJ
694 DBUS_LIBS
695 DBUS_CFLAGS
696 GTK_OBJ
697 GTK_LIBS
698 GTK_CFLAGS
699 IMAGEMAGICK_LIBS
700 IMAGEMAGICK_CFLAGS
701 RSVG_LIBS
702 RSVG_CFLAGS
703 LIB_PTHREAD
704 VMLIMIT_OBJ
705 GMALLOC_OBJ
706 HAVE_XSERVER
707 LIB_STANDARD
708 NS_OBJC_OBJ
709 NS_OBJ
710 ns_self_contained
711 INSTALL_ARCH_INDEP_EXTRA
712 TEMACS_LDFLAGS2
713 LD_SWITCH_X_SITE_RPATH
714 XMKMF
715 DEPFLAGS
716 MKDEPDIR
717 CFLAGS_SOUND
718 ALSA_LIBS
719 ALSA_CFLAGS
720 LIBSOUND
721 PKG_CONFIG
722 LIBGNU_LTLIBDEPS
723 LIBGNU_LIBDEPS
724 gltests_WITNESS
725 gl_GNULIB_ENABLED_verify_FALSE
726 gl_GNULIB_ENABLED_verify_TRUE
727 gl_GNULIB_ENABLED_strtoull_FALSE
728 gl_GNULIB_ENABLED_strtoull_TRUE
729 gl_GNULIB_ENABLED_strtoll_FALSE
730 gl_GNULIB_ENABLED_strtoll_TRUE
731 gl_GNULIB_ENABLED_stat_FALSE
732 gl_GNULIB_ENABLED_stat_TRUE
733 gl_GNULIB_ENABLED_pathmax_FALSE
734 gl_GNULIB_ENABLED_pathmax_TRUE
735 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
736 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
737 gl_GNULIB_ENABLED_dosname_FALSE
738 gl_GNULIB_ENABLED_dosname_TRUE
739 LTLIBINTL
740 LIBINTL
741 WINDOWS_64_BIT_OFF_T
742 HAVE_UNISTD_H
743 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
744 NEXT_UNISTD_H
745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
746 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
747 TIME_H_DEFINES_STRUCT_TIMESPEC
748 NEXT_AS_FIRST_DIRECTIVE_TIME_H
749 NEXT_TIME_H
750 WINDOWS_64_BIT_ST_SIZE
751 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
752 NEXT_SYS_STAT_H
753 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
754 NEXT_STDLIB_H
755 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
756 NEXT_STDIO_H
757 REPLACE_VSPRINTF
758 REPLACE_VSNPRINTF
759 REPLACE_VPRINTF
760 REPLACE_VFPRINTF
761 REPLACE_VDPRINTF
762 REPLACE_VASPRINTF
763 REPLACE_TMPFILE
764 REPLACE_STDIO_WRITE_FUNCS
765 REPLACE_STDIO_READ_FUNCS
766 REPLACE_SPRINTF
767 REPLACE_SNPRINTF
768 REPLACE_RENAMEAT
769 REPLACE_RENAME
770 REPLACE_REMOVE
771 REPLACE_PRINTF
772 REPLACE_POPEN
773 REPLACE_PERROR
774 REPLACE_OBSTACK_PRINTF
775 REPLACE_GETLINE
776 REPLACE_GETDELIM
777 REPLACE_FTELLO
778 REPLACE_FTELL
779 REPLACE_FSEEKO
780 REPLACE_FSEEK
781 REPLACE_FREOPEN
782 REPLACE_FPURGE
783 REPLACE_FPRINTF
784 REPLACE_FOPEN
785 REPLACE_FFLUSH
786 REPLACE_FDOPEN
787 REPLACE_FCLOSE
788 REPLACE_DPRINTF
789 HAVE_VDPRINTF
790 HAVE_VASPRINTF
791 HAVE_RENAMEAT
792 HAVE_POPEN
793 HAVE_PCLOSE
794 HAVE_FTELLO
795 HAVE_FSEEKO
796 HAVE_DPRINTF
797 HAVE_DECL_VSNPRINTF
798 HAVE_DECL_SNPRINTF
799 HAVE_DECL_OBSTACK_PRINTF
800 HAVE_DECL_GETLINE
801 HAVE_DECL_GETDELIM
802 HAVE_DECL_FTELLO
803 HAVE_DECL_FSEEKO
804 HAVE_DECL_FPURGE
805 GNULIB_VSPRINTF_POSIX
806 GNULIB_VSNPRINTF
807 GNULIB_VPRINTF_POSIX
808 GNULIB_VPRINTF
809 GNULIB_VFPRINTF_POSIX
810 GNULIB_VFPRINTF
811 GNULIB_VDPRINTF
812 GNULIB_VSCANF
813 GNULIB_VFSCANF
814 GNULIB_VASPRINTF
815 GNULIB_TMPFILE
816 GNULIB_STDIO_H_SIGPIPE
817 GNULIB_STDIO_H_NONBLOCKING
818 GNULIB_SPRINTF_POSIX
819 GNULIB_SNPRINTF
820 GNULIB_SCANF
821 GNULIB_RENAMEAT
822 GNULIB_RENAME
823 GNULIB_REMOVE
824 GNULIB_PUTS
825 GNULIB_PUTCHAR
826 GNULIB_PUTC
827 GNULIB_PRINTF_POSIX
828 GNULIB_PRINTF
829 GNULIB_POPEN
830 GNULIB_PERROR
831 GNULIB_PCLOSE
832 GNULIB_OBSTACK_PRINTF_POSIX
833 GNULIB_OBSTACK_PRINTF
834 GNULIB_GETLINE
835 GNULIB_GETDELIM
836 GNULIB_GETCHAR
837 GNULIB_GETC
838 GNULIB_FWRITE
839 GNULIB_FTELLO
840 GNULIB_FTELL
841 GNULIB_FSEEKO
842 GNULIB_FSEEK
843 GNULIB_FSCANF
844 GNULIB_FREOPEN
845 GNULIB_FREAD
846 GNULIB_FPUTS
847 GNULIB_FPUTC
848 GNULIB_FPURGE
849 GNULIB_FPRINTF_POSIX
850 GNULIB_FPRINTF
851 GNULIB_FOPEN
852 GNULIB_FGETS
853 GNULIB_FGETC
854 GNULIB_FFLUSH
855 GNULIB_FDOPEN
856 GNULIB_FCLOSE
857 GNULIB_DPRINTF
858 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
859 NEXT_STDDEF_H
860 GL_GENERATE_STDDEF_H_FALSE
861 GL_GENERATE_STDDEF_H_TRUE
862 STDDEF_H
863 HAVE_WCHAR_T
864 REPLACE_NULL
865 HAVE__BOOL
866 GL_GENERATE_STDBOOL_H_FALSE
867 GL_GENERATE_STDBOOL_H_TRUE
868 STDBOOL_H
869 GL_GENERATE_STDARG_H_FALSE
870 GL_GENERATE_STDARG_H_TRUE
871 STDARG_H
872 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
873 NEXT_STDARG_H
874 GL_GENERATE_STDALIGN_H_FALSE
875 GL_GENERATE_STDALIGN_H_TRUE
876 STDALIGN_H
877 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
878 NEXT_SIGNAL_H
879 LIB_PTHREAD_SIGMASK
880 REPLACE_RAISE
881 REPLACE_PTHREAD_SIGMASK
882 HAVE_SIGHANDLER_T
883 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
884 HAVE_STRUCT_SIGACTION_SA_SIGACTION
885 HAVE_SIGACTION
886 HAVE_SIGINFO_T
887 HAVE_SIGSET_T
888 HAVE_RAISE
889 HAVE_PTHREAD_SIGMASK
890 HAVE_POSIX_SIGNALBLOCKING
891 GNULIB_SIGACTION
892 GNULIB_SIGPROCMASK
893 GNULIB_SIGNAL_H_SIGPIPE
894 GNULIB_RAISE
895 GNULIB_PTHREAD_SIGMASK
896 HAVE_SYS_SELECT_H
897 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
898 NEXT_SYS_SELECT_H
899 REPLACE_SELECT
900 REPLACE_PSELECT
901 HAVE_PSELECT
902 GNULIB_SELECT
903 GNULIB_PSELECT
904 REPLACE_TIMEGM
905 REPLACE_NANOSLEEP
906 REPLACE_MKTIME
907 REPLACE_LOCALTIME_R
908 HAVE_TIMEGM
909 HAVE_STRPTIME
910 HAVE_NANOSLEEP
911 HAVE_DECL_LOCALTIME_R
912 GNULIB_TIME_R
913 GNULIB_TIMEGM
914 GNULIB_STRPTIME
915 GNULIB_NANOSLEEP
916 GNULIB_MKTIME
917 REPLACE_UTIMENSAT
918 REPLACE_STAT
919 REPLACE_MKNOD
920 REPLACE_MKFIFO
921 REPLACE_MKDIR
922 REPLACE_LSTAT
923 REPLACE_FUTIMENS
924 REPLACE_FSTATAT
925 REPLACE_FSTAT
926 HAVE_UTIMENSAT
927 HAVE_MKNODAT
928 HAVE_MKNOD
929 HAVE_MKFIFOAT
930 HAVE_MKFIFO
931 HAVE_MKDIRAT
932 HAVE_LSTAT
933 HAVE_LCHMOD
934 HAVE_FUTIMENS
935 HAVE_FSTATAT
936 HAVE_FCHMODAT
937 GNULIB_UTIMENSAT
938 GNULIB_STAT
939 GNULIB_MKNODAT
940 GNULIB_MKNOD
941 GNULIB_MKFIFOAT
942 GNULIB_MKFIFO
943 GNULIB_MKDIRAT
944 GNULIB_LSTAT
945 GNULIB_LCHMOD
946 GNULIB_FUTIMENS
947 GNULIB_FSTATAT
948 GNULIB_FSTAT
949 GNULIB_FCHMODAT
950 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
951 NEXT_INTTYPES_H
952 UINT64_MAX_EQ_ULONG_MAX
953 UINT32_MAX_LT_UINTMAX_MAX
954 PRIPTR_PREFIX
955 PRI_MACROS_BROKEN
956 INT64_MAX_EQ_LONG_MAX
957 INT32_MAX_LT_INTMAX_MAX
958 REPLACE_STRTOIMAX
959 HAVE_DECL_STRTOUMAX
960 HAVE_DECL_STRTOIMAX
961 HAVE_DECL_IMAXDIV
962 HAVE_DECL_IMAXABS
963 GNULIB_STRTOUMAX
964 GNULIB_STRTOIMAX
965 GNULIB_IMAXDIV
966 GNULIB_IMAXABS
967 GL_GENERATE_STDINT_H_FALSE
968 GL_GENERATE_STDINT_H_TRUE
969 STDINT_H
970 WINT_T_SUFFIX
971 WCHAR_T_SUFFIX
972 SIG_ATOMIC_T_SUFFIX
973 SIZE_T_SUFFIX
974 PTRDIFF_T_SUFFIX
975 HAVE_SIGNED_WINT_T
976 HAVE_SIGNED_WCHAR_T
977 HAVE_SIGNED_SIG_ATOMIC_T
978 BITSIZEOF_WINT_T
979 BITSIZEOF_WCHAR_T
980 BITSIZEOF_SIG_ATOMIC_T
981 BITSIZEOF_SIZE_T
982 BITSIZEOF_PTRDIFF_T
983 APPLE_UNIVERSAL_BUILD
984 HAVE_SYS_BITYPES_H
985 HAVE_SYS_INTTYPES_H
986 HAVE_STDINT_H
987 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
988 NEXT_STDINT_H
989 HAVE_SYS_TYPES_H
990 HAVE_INTTYPES_H
991 HAVE_WCHAR_H
992 HAVE_UNSIGNED_LONG_LONG_INT
993 HAVE_LONG_LONG_INT
994 HAVE_WINSOCK2_H
995 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
996 NEXT_SYS_TIME_H
997 REPLACE_STRUCT_TIMEVAL
998 REPLACE_GETTIMEOFDAY
999 HAVE_SYS_TIME_H
1000 HAVE_STRUCT_TIMEVAL
1001 HAVE_GETTIMEOFDAY
1002 GNULIB_GETTIMEOFDAY
1003 GNULIB_GL_UNISTD_H_GETOPT
1004 GETOPT_H
1005 HAVE_GETOPT_H
1006 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1007 NEXT_GETOPT_H
1008 PRAGMA_COLUMNS
1009 PRAGMA_SYSTEM_HEADER
1010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1011 INCLUDE_NEXT
1012 GETLOADAVG_LIBS
1013 REPLACE_WCTOMB
1014 REPLACE_UNSETENV
1015 REPLACE_STRTOD
1016 REPLACE_SETENV
1017 REPLACE_REALPATH
1018 REPLACE_REALLOC
1019 REPLACE_RANDOM_R
1020 REPLACE_PUTENV
1021 REPLACE_PTSNAME_R
1022 REPLACE_MKSTEMP
1023 REPLACE_MBTOWC
1024 REPLACE_MALLOC
1025 REPLACE_CANONICALIZE_FILE_NAME
1026 REPLACE_CALLOC
1027 HAVE_DECL_UNSETENV
1028 HAVE_UNLOCKPT
1029 HAVE_SYS_LOADAVG_H
1030 HAVE_STRUCT_RANDOM_DATA
1031 HAVE_STRTOULL
1032 HAVE_STRTOLL
1033 HAVE_STRTOD
1034 HAVE_DECL_SETENV
1035 HAVE_SETENV
1036 HAVE_RPMATCH
1037 HAVE_REALPATH
1038 HAVE_RANDOM_R
1039 HAVE_RANDOM_H
1040 HAVE_RANDOM
1041 HAVE_PTSNAME_R
1042 HAVE_PTSNAME
1043 HAVE_POSIX_OPENPT
1044 HAVE_MKSTEMPS
1045 HAVE_MKSTEMP
1046 HAVE_MKOSTEMPS
1047 HAVE_MKOSTEMP
1048 HAVE_MKDTEMP
1049 HAVE_GRANTPT
1050 HAVE_GETSUBOPT
1051 HAVE_DECL_GETLOADAVG
1052 HAVE_CANONICALIZE_FILE_NAME
1053 HAVE_ATOLL
1054 HAVE__EXIT
1055 GNULIB_WCTOMB
1056 GNULIB_UNSETENV
1057 GNULIB_UNLOCKPT
1058 GNULIB_SYSTEM_POSIX
1059 GNULIB_STRTOULL
1060 GNULIB_STRTOLL
1061 GNULIB_STRTOD
1062 GNULIB_SETENV
1063 GNULIB_RPMATCH
1064 GNULIB_REALPATH
1065 GNULIB_REALLOC_POSIX
1066 GNULIB_RANDOM_R
1067 GNULIB_RANDOM
1068 GNULIB_PUTENV
1069 GNULIB_PTSNAME_R
1070 GNULIB_PTSNAME
1071 GNULIB_POSIX_OPENPT
1072 GNULIB_MKSTEMPS
1073 GNULIB_MKSTEMP
1074 GNULIB_MKOSTEMPS
1075 GNULIB_MKOSTEMP
1076 GNULIB_MKDTEMP
1077 GNULIB_MBTOWC
1078 GNULIB_MALLOC_POSIX
1079 GNULIB_GRANTPT
1080 GNULIB_GETSUBOPT
1081 GNULIB_GETLOADAVG
1082 GNULIB_CANONICALIZE_FILE_NAME
1083 GNULIB_CALLOC_POSIX
1084 GNULIB_ATOLL
1085 GNULIB__EXIT
1086 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1087 UNISTD_H_HAVE_WINSOCK2_H
1088 REPLACE_WRITE
1089 REPLACE_USLEEP
1090 REPLACE_UNLINKAT
1091 REPLACE_UNLINK
1092 REPLACE_TTYNAME_R
1093 REPLACE_SYMLINK
1094 REPLACE_SLEEP
1095 REPLACE_RMDIR
1096 REPLACE_READLINK
1097 REPLACE_READ
1098 REPLACE_PWRITE
1099 REPLACE_PREAD
1100 REPLACE_LSEEK
1101 REPLACE_LINKAT
1102 REPLACE_LINK
1103 REPLACE_LCHOWN
1104 REPLACE_ISATTY
1105 REPLACE_GETPAGESIZE
1106 REPLACE_GETGROUPS
1107 REPLACE_GETLOGIN_R
1108 REPLACE_GETDOMAINNAME
1109 REPLACE_GETCWD
1110 REPLACE_FTRUNCATE
1111 REPLACE_FCHOWNAT
1112 REPLACE_DUP2
1113 REPLACE_DUP
1114 REPLACE_CLOSE
1115 REPLACE_CHOWN
1116 HAVE_SYS_PARAM_H
1117 HAVE_OS_H
1118 HAVE_DECL_TTYNAME_R
1119 HAVE_DECL_SETHOSTNAME
1120 HAVE_DECL_GETUSERSHELL
1121 HAVE_DECL_GETPAGESIZE
1122 HAVE_DECL_GETLOGIN_R
1123 HAVE_DECL_GETDOMAINNAME
1124 HAVE_DECL_FDATASYNC
1125 HAVE_DECL_FCHDIR
1126 HAVE_DECL_ENVIRON
1127 HAVE_USLEEP
1128 HAVE_UNLINKAT
1129 HAVE_SYMLINKAT
1130 HAVE_SYMLINK
1131 HAVE_SLEEP
1132 HAVE_SETHOSTNAME
1133 HAVE_READLINKAT
1134 HAVE_READLINK
1135 HAVE_PWRITE
1136 HAVE_PREAD
1137 HAVE_PIPE2
1138 HAVE_PIPE
1139 HAVE_LINKAT
1140 HAVE_LINK
1141 HAVE_LCHOWN
1142 HAVE_GROUP_MEMBER
1143 HAVE_GETPAGESIZE
1144 HAVE_GETLOGIN
1145 HAVE_GETHOSTNAME
1146 HAVE_GETGROUPS
1147 HAVE_GETDTABLESIZE
1148 HAVE_FTRUNCATE
1149 HAVE_FSYNC
1150 HAVE_FDATASYNC
1151 HAVE_FCHOWNAT
1152 HAVE_FCHDIR
1153 HAVE_FACCESSAT
1154 HAVE_EUIDACCESS
1155 HAVE_DUP3
1156 HAVE_DUP2
1157 HAVE_CHOWN
1158 GNULIB_WRITE
1159 GNULIB_USLEEP
1160 GNULIB_UNLINKAT
1161 GNULIB_UNLINK
1162 GNULIB_UNISTD_H_SIGPIPE
1163 GNULIB_UNISTD_H_NONBLOCKING
1164 GNULIB_TTYNAME_R
1165 GNULIB_SYMLINKAT
1166 GNULIB_SYMLINK
1167 GNULIB_SLEEP
1168 GNULIB_SETHOSTNAME
1169 GNULIB_RMDIR
1170 GNULIB_READLINKAT
1171 GNULIB_READLINK
1172 GNULIB_READ
1173 GNULIB_PWRITE
1174 GNULIB_PREAD
1175 GNULIB_PIPE2
1176 GNULIB_PIPE
1177 GNULIB_LSEEK
1178 GNULIB_LINKAT
1179 GNULIB_LINK
1180 GNULIB_LCHOWN
1181 GNULIB_ISATTY
1182 GNULIB_GROUP_MEMBER
1183 GNULIB_GETUSERSHELL
1184 GNULIB_GETPAGESIZE
1185 GNULIB_GETLOGIN_R
1186 GNULIB_GETLOGIN
1187 GNULIB_GETHOSTNAME
1188 GNULIB_GETGROUPS
1189 GNULIB_GETDTABLESIZE
1190 GNULIB_GETDOMAINNAME
1191 GNULIB_GETCWD
1192 GNULIB_FTRUNCATE
1193 GNULIB_FSYNC
1194 GNULIB_FDATASYNC
1195 GNULIB_FCHOWNAT
1196 GNULIB_FCHDIR
1197 GNULIB_FACCESSAT
1198 GNULIB_EUIDACCESS
1199 GNULIB_ENVIRON
1200 GNULIB_DUP3
1201 GNULIB_DUP2
1202 GNULIB_DUP
1203 GNULIB_CLOSE
1204 GNULIB_CHOWN
1205 GNULIB_CHDIR
1206 LIB_CLOCK_GETTIME
1207 GL_GENERATE_ALLOCA_H_FALSE
1208 GL_GENERATE_ALLOCA_H_TRUE
1209 ALLOCA_H
1210 ALLOCA
1211 GL_COND_LIBTOOL_FALSE
1212 GL_COND_LIBTOOL_TRUE
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_func LINENO FUNC VAR
2505 # ----------------------------------
2506 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2507 ac_fn_c_check_func ()
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 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2519 #define $2 innocuous_$2
2520
2521 /* System header to define __stub macros and hopefully few prototypes,
2522 which can conflict with char $2 (); below.
2523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2524 <limits.h> exists even on freestanding compilers. */
2525
2526 #ifdef __STDC__
2527 # include <limits.h>
2528 #else
2529 # include <assert.h>
2530 #endif
2531
2532 #undef $2
2533
2534 /* Override any GCC internal prototype to avoid an error.
2535 Use char because int might match the return type of a GCC
2536 builtin and then its argument prototype would still apply. */
2537 #ifdef __cplusplus
2538 extern "C"
2539 #endif
2540 char $2 ();
2541 /* The GNU C library defines this for functions which it implements
2542 to always fail with ENOSYS. Some functions are actually named
2543 something starting with __ and the normal name is an alias. */
2544 #if defined __stub_$2 || defined __stub___$2
2545 choke me
2546 #endif
2547
2548 int
2549 main ()
2550 {
2551 return $2 ();
2552 ;
2553 return 0;
2554 }
2555 _ACEOF
2556 if ac_fn_c_try_link "$LINENO"; then :
2557 eval "$3=yes"
2558 else
2559 eval "$3=no"
2560 fi
2561 rm -f core conftest.err conftest.$ac_objext \
2562 conftest$ac_exeext conftest.$ac_ext
2563 fi
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2568
2569 } # ac_fn_c_check_func
2570
2571 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2572 # ----------------------------------------------------
2573 # Tries to find if the field MEMBER exists in type AGGR, after including
2574 # INCLUDES, setting cache variable VAR accordingly.
2575 ac_fn_c_check_member ()
2576 {
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2579 $as_echo_n "checking for $2.$3... " >&6; }
2580 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2585 $5
2586 int
2587 main ()
2588 {
2589 static $2 ac_aggr;
2590 if (ac_aggr.$3)
2591 return 0;
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 if ac_fn_c_try_compile "$LINENO"; then :
2597 eval "$4=yes"
2598 else
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2601 $5
2602 int
2603 main ()
2604 {
2605 static $2 ac_aggr;
2606 if (sizeof ac_aggr.$3)
2607 return 0;
2608 ;
2609 return 0;
2610 }
2611 _ACEOF
2612 if ac_fn_c_try_compile "$LINENO"; then :
2613 eval "$4=yes"
2614 else
2615 eval "$4=no"
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 fi
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 fi
2621 eval ac_res=\$$4
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623 $as_echo "$ac_res" >&6; }
2624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2625
2626 } # ac_fn_c_check_member
2627
2628 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2629 # --------------------------------------------
2630 # Tries to find the compile-time value of EXPR in a program that includes
2631 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2632 # computed
2633 ac_fn_c_compute_int ()
2634 {
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 if test "$cross_compiling" = yes; then
2637 # Depending upon the size, compute the lo and hi bounds.
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2640 $4
2641 int
2642 main ()
2643 {
2644 static int test_array [1 - 2 * !(($2) >= 0)];
2645 test_array [0] = 0
2646
2647 ;
2648 return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_c_try_compile "$LINENO"; then :
2652 ac_lo=0 ac_mid=0
2653 while :; do
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h. */
2656 $4
2657 int
2658 main ()
2659 {
2660 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2661 test_array [0] = 0
2662
2663 ;
2664 return 0;
2665 }
2666 _ACEOF
2667 if ac_fn_c_try_compile "$LINENO"; then :
2668 ac_hi=$ac_mid; break
2669 else
2670 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2671 if test $ac_lo -le $ac_mid; then
2672 ac_lo= ac_hi=
2673 break
2674 fi
2675 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2676 fi
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 done
2679 else
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2682 $4
2683 int
2684 main ()
2685 {
2686 static int test_array [1 - 2 * !(($2) < 0)];
2687 test_array [0] = 0
2688
2689 ;
2690 return 0;
2691 }
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694 ac_hi=-1 ac_mid=-1
2695 while :; do
2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h. */
2698 $4
2699 int
2700 main ()
2701 {
2702 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2703 test_array [0] = 0
2704
2705 ;
2706 return 0;
2707 }
2708 _ACEOF
2709 if ac_fn_c_try_compile "$LINENO"; then :
2710 ac_lo=$ac_mid; break
2711 else
2712 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2713 if test $ac_mid -le $ac_hi; then
2714 ac_lo= ac_hi=
2715 break
2716 fi
2717 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 done
2721 else
2722 ac_lo= ac_hi=
2723 fi
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 fi
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 # Binary search between lo and hi bounds.
2728 while test "x$ac_lo" != "x$ac_hi"; do
2729 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2732 $4
2733 int
2734 main ()
2735 {
2736 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2737 test_array [0] = 0
2738
2739 ;
2740 return 0;
2741 }
2742 _ACEOF
2743 if ac_fn_c_try_compile "$LINENO"; then :
2744 ac_hi=$ac_mid
2745 else
2746 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2747 fi
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 done
2750 case $ac_lo in #((
2751 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2752 '') ac_retval=1 ;;
2753 esac
2754 else
2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h. */
2757 $4
2758 static long int longval () { return $2; }
2759 static unsigned long int ulongval () { return $2; }
2760 #include <stdio.h>
2761 #include <stdlib.h>
2762 int
2763 main ()
2764 {
2765
2766 FILE *f = fopen ("conftest.val", "w");
2767 if (! f)
2768 return 1;
2769 if (($2) < 0)
2770 {
2771 long int i = longval ();
2772 if (i != ($2))
2773 return 1;
2774 fprintf (f, "%ld", i);
2775 }
2776 else
2777 {
2778 unsigned long int i = ulongval ();
2779 if (i != ($2))
2780 return 1;
2781 fprintf (f, "%lu", i);
2782 }
2783 /* Do not output a trailing newline, as this causes \r\n confusion
2784 on some platforms. */
2785 return ferror (f) || fclose (f) != 0;
2786
2787 ;
2788 return 0;
2789 }
2790 _ACEOF
2791 if ac_fn_c_try_run "$LINENO"; then :
2792 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2793 else
2794 ac_retval=1
2795 fi
2796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2797 conftest.$ac_objext conftest.beam conftest.$ac_ext
2798 rm -f conftest.val
2799
2800 fi
2801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2802 as_fn_set_status $ac_retval
2803
2804 } # ac_fn_c_compute_int
2805
2806 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2807 # -------------------------------------------
2808 # Tests whether TYPE exists after having included INCLUDES, setting cache
2809 # variable VAR accordingly.
2810 ac_fn_c_check_type ()
2811 {
2812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2814 $as_echo_n "checking for $2... " >&6; }
2815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 eval "$3=no"
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2821 $4
2822 int
2823 main ()
2824 {
2825 if (sizeof ($2))
2826 return 0;
2827 ;
2828 return 0;
2829 }
2830 _ACEOF
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2834 $4
2835 int
2836 main ()
2837 {
2838 if (sizeof (($2)))
2839 return 0;
2840 ;
2841 return 0;
2842 }
2843 _ACEOF
2844 if ac_fn_c_try_compile "$LINENO"; then :
2845
2846 else
2847 eval "$3=yes"
2848 fi
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 fi
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 fi
2853 eval ac_res=\$$3
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2857
2858 } # ac_fn_c_check_type
2859
2860 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2861 # ----------------------------------------------
2862 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2863 ac_fn_c_check_header_preproc ()
2864 {
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2873 #include <$2>
2874 _ACEOF
2875 if ac_fn_c_try_cpp "$LINENO"; then :
2876 eval "$3=yes"
2877 else
2878 eval "$3=no"
2879 fi
2880 rm -f conftest.err conftest.$ac_ext
2881 fi
2882 eval ac_res=\$$3
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2884 $as_echo "$ac_res" >&6; }
2885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2886
2887 } # ac_fn_c_check_header_preproc
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_func_list " readlinkat"
3172 as_fn_append ac_header_list " sys/param.h"
3173 gl_getopt_required=GNU
3174 as_fn_append ac_header_list " getopt.h"
3175 as_fn_append ac_func_list " gettimeofday"
3176 as_fn_append ac_func_list " nanotime"
3177 as_fn_append ac_header_list " sys/time.h"
3178 as_fn_append ac_header_list " sys/socket.h"
3179 as_fn_append ac_header_list " wchar.h"
3180 as_fn_append ac_header_list " stdint.h"
3181 as_fn_append ac_header_list " inttypes.h"
3182 as_fn_append ac_func_list " lstat"
3183 as_fn_append ac_header_list " unistd.h"
3184 as_fn_append ac_func_list " alarm"
3185 as_fn_append ac_header_list " sys/select.h"
3186 as_fn_append ac_func_list " pselect"
3187 as_fn_append ac_func_list " pthread_sigmask"
3188 as_fn_append ac_func_list " readlink"
3189 as_fn_append ac_func_list " tzset"
3190 as_fn_append ac_func_list " strtoimax"
3191 as_fn_append ac_func_list " strtoumax"
3192 as_fn_append ac_func_list " symlink"
3193 as_fn_append ac_header_list " sys/stat.h"
3194 as_fn_append ac_func_list " localtime_r"
3195 as_fn_append ac_header_list " utime.h"
3196 as_fn_append ac_func_list " futimes"
3197 as_fn_append ac_func_list " futimesat"
3198 as_fn_append ac_func_list " futimens"
3199 as_fn_append ac_func_list " utimensat"
3200 as_fn_append ac_func_list " lutimes"
3201 as_fn_append ac_header_list " linux/version.h"
3202 as_fn_append ac_header_list " sys/systeminfo.h"
3203 as_fn_append ac_header_list " stdio_ext.h"
3204 as_fn_append ac_header_list " fcntl.h"
3205 as_fn_append ac_header_list " coff.h"
3206 as_fn_append ac_header_list " pty.h"
3207 as_fn_append ac_header_list " sys/vlimit.h"
3208 as_fn_append ac_header_list " sys/resource.h"
3209 as_fn_append ac_header_list " sys/utsname.h"
3210 as_fn_append ac_header_list " pwd.h"
3211 as_fn_append ac_header_list " utmp.h"
3212 as_fn_append ac_header_list " dirent.h"
3213 as_fn_append ac_header_list " util.h"
3214 as_fn_append ac_header_list " stdlib.h"
3215 as_fn_append ac_header_list " pthread.h"
3216 as_fn_append ac_header_list " malloc/malloc.h"
3217 as_fn_append ac_header_list " maillock.h"
3218 as_fn_append ac_header_list " sys/un.h"
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 extensions:
6952
6953 # Code from module filemode:
6954 # Code from module getloadavg:
6955 # Code from module getopt-gnu:
6956 # Code from module getopt-posix:
6957 # Code from module gettext-h:
6958 # Code from module gettime:
6959 # Code from module gettimeofday:
6960 # Code from module ignore-value:
6961 # Code from module include_next:
6962 # Code from module intprops:
6963 # Code from module inttypes-incomplete:
6964 # Code from module largefile:
6965
6966 # Code from module lstat:
6967 # Code from module manywarnings:
6968 # Code from module mktime:
6969 # Code from module multiarch:
6970 # Code from module nocrash:
6971 # Code from module pathmax:
6972 # Code from module pselect:
6973 # Code from module pthread_sigmask:
6974 # Code from module readlink:
6975 # Code from module signal-h:
6976 # Code from module snippet/_Noreturn:
6977 # Code from module snippet/arg-nonnull:
6978 # Code from module snippet/c++defs:
6979 # Code from module snippet/warn-on-use:
6980 # Code from module socklen:
6981 # Code from module ssize_t:
6982 # Code from module stat:
6983 # Code from module stat-time:
6984 # Code from module stdalign:
6985 # Code from module stdarg:
6986
6987
6988
6989 # Code from module stdbool:
6990 # Code from module stddef:
6991 # Code from module stdint:
6992 # Code from module stdio:
6993 # Code from module stdlib:
6994 # Code from module strftime:
6995 # Code from module strtoimax:
6996 # Code from module strtoll:
6997 # Code from module strtoull:
6998 # Code from module strtoumax:
6999 # Code from module symlink:
7000 # Code from module sys_select:
7001 # Code from module sys_stat:
7002 # Code from module sys_time:
7003 # Code from module time:
7004 # Code from module time_r:
7005 # Code from module timespec:
7006 # Code from module timespec-add:
7007 # Code from module timespec-sub:
7008 # Code from module u64:
7009 # Code from module unistd:
7010 # Code from module utimens:
7011 # Code from module verify:
7012 # Code from module warnings:
7013
7014
7015 # Check whether --enable-gcc-warnings was given.
7016 if test "${enable_gcc_warnings+set}" = set; then :
7017 enableval=$enable_gcc_warnings; case $enableval in
7018 yes|no) ;;
7019 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7020 esac
7021 gl_gcc_warnings=$enableval
7022 else
7023 gl_gcc_warnings=no
7024
7025 fi
7026
7027
7028 # Check whether --enable-link-time-optimization was given.
7029 if test "${enable_link_time_optimization+set}" = set; then :
7030 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7032 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7033 ac_lto_supported=no
7034 if test x$GCC = xyes; then
7035 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7036 if test x$CPUS != x; then
7037 LTO="-flto=$CPUS"
7038 else
7039 LTO="-flto"
7040 fi
7041 old_CFLAGS=$CFLAGS
7042 CFLAGS="$CFLAGS $LTO"
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045
7046 int
7047 main ()
7048 {
7049
7050 ;
7051 return 0;
7052 }
7053 _ACEOF
7054 if ac_fn_c_try_compile "$LINENO"; then :
7055 ac_lto_supported=yes
7056 else
7057 ac_lto_supported=no
7058 fi
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 CFLAGS="$old_CFLAGS"
7061 fi
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7063 $as_echo "$ac_lto_supported" >&6; }
7064 if test "$ac_lto_supported" = "yes"; then
7065 CFLAGS="$CFLAGS $LTO"
7066 fi
7067 fi
7068 fi
7069
7070
7071 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7072 # ------------------------------------------------
7073 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7074 # Otherwise, run RUN-IF-NOT-FOUND.
7075
7076
7077 # When compiling with GCC, prefer -isystem to -I when including system
7078 # include files, to avoid generating useless diagnostics for the files.
7079 if test "$gl_gcc_warnings" != yes; then
7080 isystem='-I'
7081 else
7082 isystem='-isystem '
7083
7084 # This, $nw, is the list of warnings we disable.
7085 nw=
7086
7087 case $with_x_toolkit in
7088 lucid | athena | motif)
7089 # Old toolkits mishandle 'const'.
7090 nw="$nw -Wwrite-strings"
7091 ;;
7092 *)
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7094 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7095 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098
7099 gl_save_compiler_FLAGS="$CFLAGS"
7100 as_fn_append CFLAGS " -Werror"
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7103
7104 int
7105 main ()
7106 {
7107
7108 ;
7109 return 0;
7110 }
7111 _ACEOF
7112 if ac_fn_c_try_compile "$LINENO"; then :
7113 gl_cv_warn_c__Werror=yes
7114 else
7115 gl_cv_warn_c__Werror=no
7116 fi
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118 CFLAGS="$gl_save_compiler_FLAGS"
7119
7120 fi
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7122 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7123 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7124 as_fn_append WERROR_CFLAGS " -Werror"
7125 fi
7126
7127
7128 ;;
7129 esac
7130
7131
7132 nw="$nw -Waggregate-return" # anachronistic
7133 nw="$nw -Wlong-long" # C90 is anachronistic
7134 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7135 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7136 nw="$nw -Wtraditional" # Warns on #elif which we use often
7137 nw="$nw -Wcast-qual" # Too many warnings for now
7138 nw="$nw -Wconversion" # Too many warnings for now
7139 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7140 nw="$nw -Wsign-conversion" # Too many warnings for now
7141 nw="$nw -Woverlength-strings" # Not a problem these days
7142 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7143 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7144 nw="$nw -Wpadded" # Our structs are not padded
7145 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7146 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7147 nw="$nw -Wformat-nonliteral" # we do this a lot
7148 nw="$nw -Wvla" # warnings in gettext.h
7149 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7150 nw="$nw -Wswitch-enum" # Too many warnings for now
7151 nw="$nw -Wswitch-default" # Too many warnings for now
7152 nw="$nw -Wfloat-equal" # warns about high-quality code
7153 nw="$nw -Winline" # OK to ignore 'inline'
7154 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7155 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7156
7157 # Emacs doesn't care about shadowing; see
7158 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7159 nw="$nw -Wshadow"
7160
7161 # The following lines should be removable at some point.
7162 nw="$nw -Wstack-protector"
7163 nw="$nw -Wstrict-overflow"
7164 nw="$nw -Wsuggest-attribute=pure"
7165
7166
7167
7168 if test -n "$GCC"; then
7169
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7171 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7172 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175
7176 gl_save_CFLAGS="$CFLAGS"
7177 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180
7181 int
7182 main ()
7183 {
7184
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 if ac_fn_c_try_compile "$LINENO"; then :
7190 gl_cv_cc_nomfi_supported=yes
7191 else
7192 gl_cv_cc_nomfi_supported=no
7193 fi
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 CFLAGS="$gl_save_CFLAGS"
7196 fi
7197
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7199 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7200
7201 if test "$gl_cv_cc_nomfi_supported" = yes; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7203 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7204 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207
7208 gl_save_CFLAGS="$CFLAGS"
7209 CFLAGS="$CFLAGS -W -Werror"
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 void f (void)
7213 {
7214 typedef struct { int a; int b; } s_t;
7215 s_t s1 = { 0, };
7216 }
7217
7218 int
7219 main ()
7220 {
7221
7222 ;
7223 return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"; then :
7227 gl_cv_cc_nomfi_needed=no
7228 else
7229 gl_cv_cc_nomfi_needed=yes
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 CFLAGS="$gl_save_CFLAGS"
7233
7234 fi
7235
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7237 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7238 fi
7239 fi
7240
7241 gl_manywarn_set=
7242 for gl_manywarn_item in \
7243 -Wall \
7244 -W \
7245 -Wformat-y2k \
7246 -Wformat-nonliteral \
7247 -Wformat-security \
7248 -Winit-self \
7249 -Wmissing-include-dirs \
7250 -Wswitch-default \
7251 -Wswitch-enum \
7252 -Wunused \
7253 -Wunknown-pragmas \
7254 -Wstrict-aliasing \
7255 -Wstrict-overflow \
7256 -Wsystem-headers \
7257 -Wfloat-equal \
7258 -Wtraditional \
7259 -Wtraditional-conversion \
7260 -Wdeclaration-after-statement \
7261 -Wundef \
7262 -Wshadow \
7263 -Wunsafe-loop-optimizations \
7264 -Wpointer-arith \
7265 -Wbad-function-cast \
7266 -Wc++-compat \
7267 -Wcast-qual \
7268 -Wcast-align \
7269 -Wwrite-strings \
7270 -Wconversion \
7271 -Wsign-conversion \
7272 -Wlogical-op \
7273 -Waggregate-return \
7274 -Wstrict-prototypes \
7275 -Wold-style-definition \
7276 -Wmissing-prototypes \
7277 -Wmissing-declarations \
7278 -Wmissing-noreturn \
7279 -Wmissing-format-attribute \
7280 -Wpacked \
7281 -Wpadded \
7282 -Wredundant-decls \
7283 -Wnested-externs \
7284 -Wunreachable-code \
7285 -Winline \
7286 -Winvalid-pch \
7287 -Wlong-long \
7288 -Wvla \
7289 -Wvolatile-register-var \
7290 -Wdisabled-optimization \
7291 -Wstack-protector \
7292 -Woverlength-strings \
7293 -Wbuiltin-macro-redefined \
7294 -Wmudflap \
7295 -Wpacked-bitfield-compat \
7296 -Wsync-nand \
7297 ; do
7298 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7299 done
7300 # The following are not documented in the manual but are included in
7301 # output from gcc --help=warnings.
7302 for gl_manywarn_item in \
7303 -Wattributes \
7304 -Wcoverage-mismatch \
7305 -Wunused-macros \
7306 ; do
7307 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7308 done
7309 # More warnings from gcc 4.6.2 --help=warnings.
7310 for gl_manywarn_item in \
7311 -Wabi \
7312 -Wcpp \
7313 -Wdeprecated \
7314 -Wdeprecated-declarations \
7315 -Wdiv-by-zero \
7316 -Wdouble-promotion \
7317 -Wendif-labels \
7318 -Wextra \
7319 -Wformat-contains-nul \
7320 -Wformat-extra-args \
7321 -Wformat-zero-length \
7322 -Wformat=2 \
7323 -Wmultichar \
7324 -Wnormalized=nfc \
7325 -Woverflow \
7326 -Wpointer-to-int-cast \
7327 -Wpragmas \
7328 -Wsuggest-attribute=const \
7329 -Wsuggest-attribute=noreturn \
7330 -Wsuggest-attribute=pure \
7331 -Wtrampolines \
7332 ; do
7333 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7334 done
7335
7336 # Disable the missing-field-initializers warning if needed
7337 if test "$gl_cv_cc_nomfi_needed" = yes; then
7338 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7339 fi
7340
7341 ws=$gl_manywarn_set
7342
7343
7344 gl_warn_set=
7345 set x $ws; shift
7346 for gl_warn_item
7347 do
7348 case " $nw " in
7349 *" $gl_warn_item "*)
7350 ;;
7351 *)
7352 gl_warn_set="$gl_warn_set $gl_warn_item"
7353 ;;
7354 esac
7355 done
7356 ws=$gl_warn_set
7357
7358 for w in $ws; do
7359 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7361 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7362 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365
7366 gl_save_compiler_FLAGS="$CFLAGS"
7367 as_fn_append CFLAGS " $w"
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370
7371 int
7372 main ()
7373 {
7374
7375 ;
7376 return 0;
7377 }
7378 _ACEOF
7379 if ac_fn_c_try_compile "$LINENO"; then :
7380 eval "$as_gl_Warn=yes"
7381 else
7382 eval "$as_gl_Warn=no"
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 CFLAGS="$gl_save_compiler_FLAGS"
7386
7387 fi
7388 eval ac_res=\$$as_gl_Warn
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7390 $as_echo "$ac_res" >&6; }
7391 eval as_val=\$$as_gl_Warn
7392 if test "x$as_val" = x""yes; then :
7393 as_fn_append WARN_CFLAGS " $w"
7394 fi
7395
7396
7397 done
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7399 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7400 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403
7404 gl_save_compiler_FLAGS="$CFLAGS"
7405 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408
7409 int
7410 main ()
7411 {
7412
7413 ;
7414 return 0;
7415 }
7416 _ACEOF
7417 if ac_fn_c_try_compile "$LINENO"; then :
7418 gl_cv_warn_c__Wno_missing_field_initializers=yes
7419 else
7420 gl_cv_warn_c__Wno_missing_field_initializers=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 CFLAGS="$gl_save_compiler_FLAGS"
7424
7425 fi
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7427 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7428 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7429 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7430 fi
7431
7432 # We need this one
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7434 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7435 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438
7439 gl_save_compiler_FLAGS="$CFLAGS"
7440 as_fn_append CFLAGS " -Wno-sign-compare"
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443
7444 int
7445 main ()
7446 {
7447
7448 ;
7449 return 0;
7450 }
7451 _ACEOF
7452 if ac_fn_c_try_compile "$LINENO"; then :
7453 gl_cv_warn_c__Wno_sign_compare=yes
7454 else
7455 gl_cv_warn_c__Wno_sign_compare=no
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 CFLAGS="$gl_save_compiler_FLAGS"
7459
7460 fi
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7462 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7463 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7464 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7465 fi
7466
7467 # Too many warnings for now
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7469 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7470 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473
7474 gl_save_compiler_FLAGS="$CFLAGS"
7475 as_fn_append CFLAGS " -Wno-type-limits"
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478
7479 int
7480 main ()
7481 {
7482
7483 ;
7484 return 0;
7485 }
7486 _ACEOF
7487 if ac_fn_c_try_compile "$LINENO"; then :
7488 gl_cv_warn_c__Wno_type_limits=yes
7489 else
7490 gl_cv_warn_c__Wno_type_limits=no
7491 fi
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 CFLAGS="$gl_save_compiler_FLAGS"
7494
7495 fi
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7497 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7498 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7499 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7500 fi
7501
7502 # Too many warnings for now
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7504 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7505 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508
7509 gl_save_compiler_FLAGS="$CFLAGS"
7510 as_fn_append CFLAGS " -Wno-switch"
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513
7514 int
7515 main ()
7516 {
7517
7518 ;
7519 return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 gl_cv_warn_c__Wno_switch=yes
7524 else
7525 gl_cv_warn_c__Wno_switch=no
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 CFLAGS="$gl_save_compiler_FLAGS"
7529
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7532 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7533 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7534 as_fn_append WARN_CFLAGS " -Wno-switch"
7535 fi
7536
7537 # Too many warnings for now
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7539 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7540 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543
7544 gl_save_compiler_FLAGS="$CFLAGS"
7545 as_fn_append CFLAGS " -Wno-unused-parameter"
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548
7549 int
7550 main ()
7551 {
7552
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558 gl_cv_warn_c__Wno_unused_parameter=yes
7559 else
7560 gl_cv_warn_c__Wno_unused_parameter=no
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 CFLAGS="$gl_save_compiler_FLAGS"
7564
7565 fi
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7567 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7568 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7569 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7570 fi
7571
7572 # Too many warnings for now
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7574 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7575 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578
7579 gl_save_compiler_FLAGS="$CFLAGS"
7580 as_fn_append CFLAGS " -Wno-format-nonliteral"
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583
7584 int
7585 main ()
7586 {
7587
7588 ;
7589 return 0;
7590 }
7591 _ACEOF
7592 if ac_fn_c_try_compile "$LINENO"; then :
7593 gl_cv_warn_c__Wno_format_nonliteral=yes
7594 else
7595 gl_cv_warn_c__Wno_format_nonliteral=no
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 CFLAGS="$gl_save_compiler_FLAGS"
7599
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7602 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7603 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7604 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7605 fi
7606
7607
7608
7609 # In spite of excluding -Wlogical-op above, it is enabled, as of
7610 # gcc 4.5.0 20090517.
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7612 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7613 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616
7617 gl_save_compiler_FLAGS="$CFLAGS"
7618 as_fn_append CFLAGS " -Wno-logical-op"
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621
7622 int
7623 main ()
7624 {
7625
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 if ac_fn_c_try_compile "$LINENO"; then :
7631 gl_cv_warn_c__Wno_logical_op=yes
7632 else
7633 gl_cv_warn_c__Wno_logical_op=no
7634 fi
7635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 CFLAGS="$gl_save_compiler_FLAGS"
7637
7638 fi
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7640 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7641 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7642 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7643 fi
7644
7645
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7648 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7649 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652
7653 gl_save_compiler_FLAGS="$CFLAGS"
7654 as_fn_append CFLAGS " -fdiagnostics-show-option"
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657
7658 int
7659 main ()
7660 {
7661
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667 gl_cv_warn_c__fdiagnostics_show_option=yes
7668 else
7669 gl_cv_warn_c__fdiagnostics_show_option=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 CFLAGS="$gl_save_compiler_FLAGS"
7673
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7676 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7677 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7678 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7679 fi
7680
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7683 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7684 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687
7688 gl_save_compiler_FLAGS="$CFLAGS"
7689 as_fn_append CFLAGS " -funit-at-a-time"
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7692
7693 int
7694 main ()
7695 {
7696
7697 ;
7698 return 0;
7699 }
7700 _ACEOF
7701 if ac_fn_c_try_compile "$LINENO"; then :
7702 gl_cv_warn_c__funit_at_a_time=yes
7703 else
7704 gl_cv_warn_c__funit_at_a_time=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707 CFLAGS="$gl_save_compiler_FLAGS"
7708
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7711 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7712 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7713 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7714 fi
7715
7716
7717
7718
7719 $as_echo "#define lint 1" >>confdefs.h
7720
7721
7722 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7723
7724
7725 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7726
7727
7728 # We use a slightly smaller set of warning options for lib/.
7729 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7730 nw=
7731 nw="$nw -Wunused-macros"
7732
7733
7734 gl_warn_set=
7735 set x $WARN_CFLAGS; shift
7736 for gl_warn_item
7737 do
7738 case " $nw " in
7739 *" $gl_warn_item "*)
7740 ;;
7741 *)
7742 gl_warn_set="$gl_warn_set $gl_warn_item"
7743 ;;
7744 esac
7745 done
7746 GNULIB_WARN_CFLAGS=$gl_warn_set
7747
7748
7749 fi
7750
7751
7752
7753
7754 # Extract the first word of "install-info", so it can be a program name with args.
7755 set dummy install-info; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 case $INSTALL_INFO in
7762 [\\/]* | ?:[\\/]*)
7763 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7764 ;;
7765 *)
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7768 do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777 done
7778 done
7779 IFS=$as_save_IFS
7780
7781 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7782 ;;
7783 esac
7784 fi
7785 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7786 if test -n "$INSTALL_INFO"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7788 $as_echo "$INSTALL_INFO" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795 # Extract the first word of "gzip", so it can be a program name with args.
7796 set dummy gzip; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 case $GZIP_PROG in
7803 [\\/]* | ?:[\\/]*)
7804 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7805 ;;
7806 *)
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 ;;
7823 esac
7824 fi
7825 GZIP_PROG=$ac_cv_path_GZIP_PROG
7826 if test -n "$GZIP_PROG"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7828 $as_echo "$GZIP_PROG" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834
7835
7836 if test $opsys = gnu-linux; then
7837 # Extract the first word of "paxctl", so it can be a program name with args.
7838 set dummy paxctl; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 case $PAXCTL in
7845 [\\/]* | ?:[\\/]*)
7846 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7847 ;;
7848 *)
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7851 do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864 ;;
7865 esac
7866 fi
7867 PAXCTL=$ac_cv_path_PAXCTL
7868 if test -n "$PAXCTL"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7870 $as_echo "$PAXCTL" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877 fi
7878
7879 ## Need makeinfo >= 4.7 (?) to build the manuals.
7880 # Extract the first word of "makeinfo", so it can be a program name with args.
7881 set dummy makeinfo; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 case $MAKEINFO in
7888 [\\/]* | ?:[\\/]*)
7889 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7890 ;;
7891 *)
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7902 fi
7903 done
7904 done
7905 IFS=$as_save_IFS
7906
7907 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7908 ;;
7909 esac
7910 fi
7911 MAKEINFO=$ac_cv_path_MAKEINFO
7912 if test -n "$MAKEINFO"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7914 $as_echo "$MAKEINFO" >&6; }
7915 else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920
7921 if test "$MAKEINFO" != "no" && \
7922 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
7923 MAKEINFO=no
7924 fi
7925
7926 ## Makeinfo is unusual. For a released Emacs, the manuals are
7927 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7928 ## therefore in the category of "special tools" not normally required, which
7929 ## configure does not have to check for (eg autoconf itself).
7930 ## In a Bazaar checkout on the other hand, the manuals are not included.
7931 ## So makeinfo is a requirement to build from Bazaar, and configure
7932 ## should test for it as it does for any other build requirement.
7933 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7934 ## with pre-built manuals, from a Bazaar checkout.
7935 HAVE_MAKEINFO=yes
7936
7937 if test "$MAKEINFO" = "no"; then
7938 MAKEINFO=makeinfo
7939 if test "x${with_makeinfo}" = "xno"; then
7940 HAVE_MAKEINFO=no
7941 elif test ! -e $srcdir/info/emacs; then
7942 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7943 source tree does not seem to have pre-built manuals in the \`info' directory.
7944 Either install a suitable version of makeinfo, or re-run configure
7945 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7946 fi
7947 fi
7948
7949
7950 INFO_EXT=.info
7951 INFO_OPTS=--no-split
7952
7953
7954
7955
7956 if test x$GCC = xyes; then
7957 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7958 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7959 else
7960 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7961 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7962 fi
7963
7964
7965 late_LDFLAGS=$LDFLAGS
7966 if test x$GCC = xyes; then
7967 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7968 else
7969 LDFLAGS="$LDFLAGS -znocombreloc"
7970 fi
7971
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7973 $as_echo_n "checking for -znocombreloc... " >&6; }
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976
7977 int
7978 main ()
7979 {
7980
7981 ;
7982 return 0;
7983 }
7984 _ACEOF
7985 if ac_fn_c_try_link "$LINENO"; then :
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987 $as_echo "yes" >&6; }
7988 else
7989 LDFLAGS=$late_LDFLAGS
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993 rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7995
7996
7997 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7998 case "$opsys" in
7999 your-opsys-here) CANNOT_DUMP=yes ;;
8000 esac
8001
8002 test "$CANNOT_DUMP" = "yes" && \
8003
8004 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8005
8006
8007
8008
8009
8010 UNEXEC_OBJ=unexelf.o
8011 case "$opsys" in
8012 # MSDOS uses unexcoff.o
8013 # MSWindows uses unexw32.o
8014 aix4-2)
8015 UNEXEC_OBJ=unexaix.o
8016 ;;
8017 cygwin)
8018 UNEXEC_OBJ=unexcw.o
8019 ;;
8020 darwin)
8021 UNEXEC_OBJ=unexmacosx.o
8022 ;;
8023 hpux10-20 | hpux11)
8024 UNEXEC_OBJ=unexhp9k800.o
8025 ;;
8026 sol2-10)
8027 # Use the Solaris dldump() function, called from unexsol.c, to dump
8028 # emacs, instead of the generic ELF dump code found in unexelf.c.
8029 # The resulting binary has a complete symbol table, and is better
8030 # for debugging and other observability tools (debuggers, pstack, etc).
8031 #
8032 # If you encounter a problem using dldump(), please consider sending
8033 # a message to the OpenSolaris tools-linking mailing list:
8034 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8035 #
8036 # It is likely that dldump() works with older Solaris too, but this has
8037 # not been tested, so for now this change is for Solaris 10 or newer.
8038 UNEXEC_OBJ=unexsol.o
8039 ;;
8040 esac
8041
8042 LD_SWITCH_SYSTEM=
8043 case "$opsys" in
8044 freebsd)
8045 ## Let `ld' find image libs and similar things in /usr/local/lib.
8046 ## The system compiler, GCC, has apparently been modified to not
8047 ## look there, contrary to what a stock GCC would do.
8048 ### It's not our place to do this. See bug#10313#17.
8049 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8050 :
8051 ;;
8052
8053 gnu-linux)
8054 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8055 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8056 ;;
8057
8058 netbsd)
8059 ### It's not our place to do this. See bug#10313#17.
8060 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8061 :
8062 ;;
8063
8064 openbsd)
8065 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8066 ## otherwise Emacs dumps core on elf systems.
8067 LD_SWITCH_SYSTEM="-Z"
8068 ;;
8069 esac
8070
8071
8072 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8073
8074 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8075 ## which has not been defined yet. When this was handled with cpp,
8076 ## it was expanded to null when configure sourced the s/*.h file.
8077 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8078 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8079 ## (or somesuch), but because it is supposed to go at the _front_
8080 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8081 ## Compare with the gnu-linux case below, which added to the end
8082 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8083 ## LD_SWITCH_SYSTEM_TEMACS.
8084 case "$opsys" in
8085 netbsd|openbsd)
8086 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8087 esac
8088
8089
8090 C_SWITCH_MACHINE=
8091 case $canonical in
8092 alpha*)
8093 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8094 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8095
8096 fi
8097
8098 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8099 ## With ELF, make sure that all common symbols get allocated to in the
8100 ## data section. Otherwise, the dump of temacs may miss variables in
8101 ## the shared library that have been initialized. For example, with
8102 ## GNU libc, __malloc_initialized would normally be resolved to the
8103 ## shared library's .bss section, which is fatal.
8104 if test "x$GCC" = "xyes"; then
8105 C_SWITCH_MACHINE="-fno-common"
8106 else
8107 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8108 fi
8109 else
8110 UNEXEC_OBJ=unexalpha.o
8111 fi
8112 ;;
8113 esac
8114
8115
8116
8117
8118 C_SWITCH_SYSTEM=
8119 ## Some programs in src produce warnings saying certain subprograms
8120 ## are too complex and need a MAXMEM value greater than 2000 for
8121 ## additional optimization. --nils@exp-math.uni-essen.de
8122 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8123 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8124 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8125 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8126
8127
8128
8129 LIBS_SYSTEM=
8130 case "$opsys" in
8131 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8132 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8133
8134 freebsd) LIBS_SYSTEM="-lutil" ;;
8135
8136 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8137
8138 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8139
8140 ## Motif needs -lgen.
8141 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8142 esac
8143
8144
8145
8146 ### Make sure subsequent tests use flags consistent with the build flags.
8147
8148 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8149 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8150 else
8151 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8152 fi
8153
8154 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8155
8156 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8157
8158
8159
8160 LIB_MATH=-lm
8161 LIB_STANDARD=
8162 START_FILES=
8163 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8164
8165 case $opsys in
8166 cygwin )
8167 LIB_MATH=
8168 START_FILES='pre-crt0.o'
8169 ;;
8170 darwin )
8171 ## Adding -lm confuses the dynamic linker, so omit it.
8172 LIB_MATH=
8173 START_FILES='pre-crt0.o'
8174 ;;
8175 freebsd )
8176 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8177 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8178 SYSTEM_TYPE=berkeley-unix
8179 ;;
8180 gnu-linux | gnu-kfreebsd )
8181 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8182 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8183 ;;
8184 hpux10-20 | hpux11 )
8185 LIB_STANDARD=-lc
8186 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8187 ;;
8188 netbsd | openbsd )
8189 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8190 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8191 SYSTEM_TYPE=berkeley-unix
8192 ;;
8193
8194 sol2* | unixware )
8195 SYSTEM_TYPE=usg-unix-v
8196 ;;
8197
8198 esac
8199
8200
8201
8202
8203 cat >>confdefs.h <<_ACEOF
8204 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8205 _ACEOF
8206
8207
8208 crt_files=
8209
8210 for file in x $LIB_STANDARD $START_FILES; do
8211 case "$file" in
8212 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8213 esac
8214 done
8215
8216 if test "x$crt_files" != x; then
8217
8218 ## If user specified a crt-dir, use that unconditionally.
8219 crt_gcc=no
8220
8221 if test "X$CRT_DIR" = "X"; then
8222
8223 CRT_DIR=/usr/lib # default
8224
8225 case "$canonical" in
8226 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8227 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8228 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8229 ## For anything else (eg /usr/lib32), it is up the user to specify
8230 ## the location (bug#5655).
8231 ## Test for crtn.o, not just the directory, because sometimes the
8232 ## directory exists but does not have the relevant files (bug#1287).
8233 ## FIXME better to test for binary compatibility somehow.
8234 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8235 ;;
8236
8237 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8238 esac
8239
8240 case "$opsys" in
8241 hpux10-20) CRT_DIR=/lib ;;
8242 esac
8243
8244 test "x${GCC}" = xyes && crt_gcc=yes
8245
8246 fi # CRT_DIR = ""
8247
8248 crt_missing=
8249
8250 for file in $crt_files; do
8251
8252 ## If we're using gcc, try to determine it automatically by asking
8253 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8254 ## system-dependent default from above.]
8255 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8256
8257 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8258 case "$crt_file" in
8259 */*)
8260 CRT_DIR=`$as_dirname -- "$crt_file" ||
8261 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8262 X"$crt_file" : 'X\(//\)[^/]' \| \
8263 X"$crt_file" : 'X\(//\)$' \| \
8264 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8265 $as_echo X"$crt_file" |
8266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8267 s//\1/
8268 q
8269 }
8270 /^X\(\/\/\)[^/].*/{
8271 s//\1/
8272 q
8273 }
8274 /^X\(\/\/\)$/{
8275 s//\1/
8276 q
8277 }
8278 /^X\(\/\).*/{
8279 s//\1/
8280 q
8281 }
8282 s/.*/./; q'`
8283 ;;
8284 esac
8285 fi
8286
8287 crt_gcc=no
8288
8289 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8290 done # $crt_files
8291
8292 test "x$crt_missing" = x || \
8293 as_fn_error "Required file(s) not found:$crt_missing
8294 Try using the --with-crt-dir option." "$LINENO" 5
8295
8296 fi # crt_files != ""
8297
8298
8299
8300 case $opsys in
8301 netbsd | openbsd )
8302 if test -f $CRT_DIR/crti.o; then
8303
8304 test -f $CRT_DIR/crtn.o || \
8305 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8306
8307 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8308 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8309 fi
8310 ;;
8311 esac
8312
8313
8314 # Configure gnulib before invoking PKG_CHECK_MODULES, as the latter might
8315 # for example add -lrt to RSVG_LIBS, which would then cause gnulib to
8316 # incorrectly conclude that -lrt is not needed to link clock_gettime.
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328 LIBC_FATAL_STDERR_=1
8329 export LIBC_FATAL_STDERR_
8330
8331 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8332 # for constant arguments. Useless!
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8334 $as_echo_n "checking for working alloca.h... " >&6; }
8335 if test "${ac_cv_working_alloca_h+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #include <alloca.h>
8341 int
8342 main ()
8343 {
8344 char *p = (char *) alloca (2 * sizeof (int));
8345 if (p) return 0;
8346 ;
8347 return 0;
8348 }
8349 _ACEOF
8350 if ac_fn_c_try_link "$LINENO"; then :
8351 ac_cv_working_alloca_h=yes
8352 else
8353 ac_cv_working_alloca_h=no
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8359 $as_echo "$ac_cv_working_alloca_h" >&6; }
8360 if test $ac_cv_working_alloca_h = yes; then
8361
8362 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8363
8364 fi
8365
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8367 $as_echo_n "checking for alloca... " >&6; }
8368 if test "${ac_cv_func_alloca_works+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 #ifdef __GNUC__
8374 # define alloca __builtin_alloca
8375 #else
8376 # ifdef _MSC_VER
8377 # include <malloc.h>
8378 # define alloca _alloca
8379 # else
8380 # ifdef HAVE_ALLOCA_H
8381 # include <alloca.h>
8382 # else
8383 # ifdef _AIX
8384 #pragma alloca
8385 # else
8386 # ifndef alloca /* predefined by HP cc +Olibcalls */
8387 char *alloca ();
8388 # endif
8389 # endif
8390 # endif
8391 # endif
8392 #endif
8393
8394 int
8395 main ()
8396 {
8397 char *p = (char *) alloca (1);
8398 if (p) return 0;
8399 ;
8400 return 0;
8401 }
8402 _ACEOF
8403 if ac_fn_c_try_link "$LINENO"; then :
8404 ac_cv_func_alloca_works=yes
8405 else
8406 ac_cv_func_alloca_works=no
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8412 $as_echo "$ac_cv_func_alloca_works" >&6; }
8413
8414 if test $ac_cv_func_alloca_works = yes; then
8415
8416 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8417
8418 else
8419 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8420 # that cause trouble. Some versions do not even contain alloca or
8421 # contain a buggy version. If you still want to use their alloca,
8422 # use ar to extract alloca.o from them instead of compiling alloca.c.
8423
8424
8425
8426
8427
8428 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8429
8430 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8431
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
8434 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
8435 if test "${ac_cv_os_cray+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #if defined CRAY && ! defined CRAY2
8441 webecray
8442 #else
8443 wenotbecray
8444 #endif
8445
8446 _ACEOF
8447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8448 $EGREP "webecray" >/dev/null 2>&1; then :
8449 ac_cv_os_cray=yes
8450 else
8451 ac_cv_os_cray=no
8452 fi
8453 rm -f conftest*
8454
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8457 $as_echo "$ac_cv_os_cray" >&6; }
8458 if test $ac_cv_os_cray = yes; then
8459 for ac_func in _getb67 GETB67 getb67; do
8460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8461 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8462 eval as_val=\$$as_ac_var
8463 if test "x$as_val" = x""yes; then :
8464
8465 cat >>confdefs.h <<_ACEOF
8466 #define CRAY_STACKSEG_END $ac_func
8467 _ACEOF
8468
8469 break
8470 fi
8471
8472 done
8473 fi
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8476 $as_echo_n "checking stack direction for C alloca... " >&6; }
8477 if test "${ac_cv_c_stack_direction+set}" = set; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 if test "$cross_compiling" = yes; then :
8481 ac_cv_c_stack_direction=0
8482 else
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 $ac_includes_default
8486 int
8487 find_stack_direction (int *addr, int depth)
8488 {
8489 int dir, dummy = 0;
8490 if (! addr)
8491 addr = &dummy;
8492 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8493 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8494 return dir + dummy;
8495 }
8496
8497 int
8498 main (int argc, char **argv)
8499 {
8500 return find_stack_direction (0, argc + !argv + 20) < 0;
8501 }
8502 _ACEOF
8503 if ac_fn_c_try_run "$LINENO"; then :
8504 ac_cv_c_stack_direction=1
8505 else
8506 ac_cv_c_stack_direction=-1
8507 fi
8508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8509 conftest.$ac_objext conftest.beam conftest.$ac_ext
8510 fi
8511
8512 fi
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8514 $as_echo "$ac_cv_c_stack_direction" >&6; }
8515 cat >>confdefs.h <<_ACEOF
8516 #define STACK_DIRECTION $ac_cv_c_stack_direction
8517 _ACEOF
8518
8519
8520 fi
8521
8522
8523
8524
8525 for ac_func in $ac_func_list
8526 do :
8527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8529 eval as_val=\$$as_ac_var
8530 if test "x$as_val" = x""yes; then :
8531 cat >>confdefs.h <<_ACEOF
8532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8533 _ACEOF
8534
8535 fi
8536 done
8537
8538
8539
8540
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8542 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8543 if test "${ac_cv_c_bigendian+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 ac_cv_c_bigendian=unknown
8547 # See if we're dealing with a universal compiler.
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #ifndef __APPLE_CC__
8551 not a universal capable compiler
8552 #endif
8553 typedef int dummy;
8554
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557
8558 # Check for potential -arch flags. It is not universal unless
8559 # there are at least two -arch flags with different values.
8560 ac_arch=
8561 ac_prev=
8562 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8563 if test -n "$ac_prev"; then
8564 case $ac_word in
8565 i?86 | x86_64 | ppc | ppc64)
8566 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8567 ac_arch=$ac_word
8568 else
8569 ac_cv_c_bigendian=universal
8570 break
8571 fi
8572 ;;
8573 esac
8574 ac_prev=
8575 elif test "x$ac_word" = "x-arch"; then
8576 ac_prev=arch
8577 fi
8578 done
8579 fi
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 if test $ac_cv_c_bigendian = unknown; then
8582 # See if sys/param.h defines the BYTE_ORDER macro.
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585 #include <sys/types.h>
8586 #include <sys/param.h>
8587
8588 int
8589 main ()
8590 {
8591 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8592 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8593 && LITTLE_ENDIAN)
8594 bogus endian macros
8595 #endif
8596
8597 ;
8598 return 0;
8599 }
8600 _ACEOF
8601 if ac_fn_c_try_compile "$LINENO"; then :
8602 # It does; now see whether it defined to BIG_ENDIAN or not.
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 #include <sys/types.h>
8606 #include <sys/param.h>
8607
8608 int
8609 main ()
8610 {
8611 #if BYTE_ORDER != BIG_ENDIAN
8612 not big endian
8613 #endif
8614
8615 ;
8616 return 0;
8617 }
8618 _ACEOF
8619 if ac_fn_c_try_compile "$LINENO"; then :
8620 ac_cv_c_bigendian=yes
8621 else
8622 ac_cv_c_bigendian=no
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 fi
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 fi
8628 if test $ac_cv_c_bigendian = unknown; then
8629 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <limits.h>
8633
8634 int
8635 main ()
8636 {
8637 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8638 bogus endian macros
8639 #endif
8640
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"; then :
8646 # It does; now see whether it defined to _BIG_ENDIAN or not.
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 #include <limits.h>
8650
8651 int
8652 main ()
8653 {
8654 #ifndef _BIG_ENDIAN
8655 not big endian
8656 #endif
8657
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_compile "$LINENO"; then :
8663 ac_cv_c_bigendian=yes
8664 else
8665 ac_cv_c_bigendian=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 fi
8671 if test $ac_cv_c_bigendian = unknown; then
8672 # Compile a test program.
8673 if test "$cross_compiling" = yes; then :
8674 # Try to guess by grepping values from an object file.
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 short int ascii_mm[] =
8678 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8679 short int ascii_ii[] =
8680 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8681 int use_ascii (int i) {
8682 return ascii_mm[i] + ascii_ii[i];
8683 }
8684 short int ebcdic_ii[] =
8685 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8686 short int ebcdic_mm[] =
8687 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8688 int use_ebcdic (int i) {
8689 return ebcdic_mm[i] + ebcdic_ii[i];
8690 }
8691 extern int foo;
8692
8693 int
8694 main ()
8695 {
8696 return use_ascii (foo) == use_ebcdic (foo);
8697 ;
8698 return 0;
8699 }
8700 _ACEOF
8701 if ac_fn_c_try_compile "$LINENO"; then :
8702 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8703 ac_cv_c_bigendian=yes
8704 fi
8705 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8706 if test "$ac_cv_c_bigendian" = unknown; then
8707 ac_cv_c_bigendian=no
8708 else
8709 # finding both strings is unlikely to happen, but who knows?
8710 ac_cv_c_bigendian=unknown
8711 fi
8712 fi
8713 fi
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 else
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 $ac_includes_default
8719 int
8720 main ()
8721 {
8722
8723 /* Are we little or big endian? From Harbison&Steele. */
8724 union
8725 {
8726 long int l;
8727 char c[sizeof (long int)];
8728 } u;
8729 u.l = 1;
8730 return u.c[sizeof (long int) - 1] == 1;
8731
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_run "$LINENO"; then :
8737 ac_cv_c_bigendian=no
8738 else
8739 ac_cv_c_bigendian=yes
8740 fi
8741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8742 conftest.$ac_objext conftest.beam conftest.$ac_ext
8743 fi
8744
8745 fi
8746 fi
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8748 $as_echo "$ac_cv_c_bigendian" >&6; }
8749 case $ac_cv_c_bigendian in #(
8750 yes)
8751 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8752 ;; #(
8753 no)
8754 ;; #(
8755 universal)
8756
8757 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8758
8759 ;; #(
8760 *)
8761 as_fn_error "unknown endianness
8762 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8763 esac
8764
8765
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8767 $as_echo_n "checking for inline... " >&6; }
8768 if test "${ac_cv_c_inline+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 ac_cv_c_inline=no
8772 for ac_kw in inline __inline__ __inline; do
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 #ifndef __cplusplus
8776 typedef int foo_t;
8777 static $ac_kw foo_t static_foo () {return 0; }
8778 $ac_kw foo_t foo () {return 0; }
8779 #endif
8780
8781 _ACEOF
8782 if ac_fn_c_try_compile "$LINENO"; then :
8783 ac_cv_c_inline=$ac_kw
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 test "$ac_cv_c_inline" != no && break
8787 done
8788
8789 fi
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8791 $as_echo "$ac_cv_c_inline" >&6; }
8792
8793 case $ac_cv_c_inline in
8794 inline | yes) ;;
8795 *)
8796 case $ac_cv_c_inline in
8797 no) ac_val=;;
8798 *) ac_val=$ac_cv_c_inline;;
8799 esac
8800 cat >>confdefs.h <<_ACEOF
8801 #ifndef __cplusplus
8802 #define inline $ac_val
8803 #endif
8804 _ACEOF
8805 ;;
8806 esac
8807
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
8810 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
8811 if test "${gl_cv_func_c99_strtold+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816 /* On HP-UX before 11.23, strtold returns a struct instead of
8817 long double. Reject implementations like that, by requiring
8818 compatibility with the C99 prototype. */
8819 #include <stdlib.h>
8820 static long double (*p) (char const *, char **) = strtold;
8821 static long double
8822 test (char const *nptr, char **endptr)
8823 {
8824 long double r;
8825 r = strtold (nptr, endptr);
8826 return r;
8827 }
8828 int
8829 main ()
8830 {
8831 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
8832 ;
8833 return 0;
8834 }
8835 _ACEOF
8836 if ac_fn_c_try_link "$LINENO"; then :
8837 gl_cv_func_c99_strtold=yes
8838 else
8839 gl_cv_func_c99_strtold=no
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8843 fi
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
8845 $as_echo "$gl_cv_func_c99_strtold" >&6; }
8846 if test $gl_cv_func_c99_strtold = yes; then
8847
8848 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
8849
8850 fi
8851
8852
8853 GNULIB_CHDIR=0;
8854 GNULIB_CHOWN=0;
8855 GNULIB_CLOSE=0;
8856 GNULIB_DUP=0;
8857 GNULIB_DUP2=0;
8858 GNULIB_DUP3=0;
8859 GNULIB_ENVIRON=0;
8860 GNULIB_EUIDACCESS=0;
8861 GNULIB_FACCESSAT=0;
8862 GNULIB_FCHDIR=0;
8863 GNULIB_FCHOWNAT=0;
8864 GNULIB_FDATASYNC=0;
8865 GNULIB_FSYNC=0;
8866 GNULIB_FTRUNCATE=0;
8867 GNULIB_GETCWD=0;
8868 GNULIB_GETDOMAINNAME=0;
8869 GNULIB_GETDTABLESIZE=0;
8870 GNULIB_GETGROUPS=0;
8871 GNULIB_GETHOSTNAME=0;
8872 GNULIB_GETLOGIN=0;
8873 GNULIB_GETLOGIN_R=0;
8874 GNULIB_GETPAGESIZE=0;
8875 GNULIB_GETUSERSHELL=0;
8876 GNULIB_GROUP_MEMBER=0;
8877 GNULIB_ISATTY=0;
8878 GNULIB_LCHOWN=0;
8879 GNULIB_LINK=0;
8880 GNULIB_LINKAT=0;
8881 GNULIB_LSEEK=0;
8882 GNULIB_PIPE=0;
8883 GNULIB_PIPE2=0;
8884 GNULIB_PREAD=0;
8885 GNULIB_PWRITE=0;
8886 GNULIB_READ=0;
8887 GNULIB_READLINK=0;
8888 GNULIB_READLINKAT=0;
8889 GNULIB_RMDIR=0;
8890 GNULIB_SETHOSTNAME=0;
8891 GNULIB_SLEEP=0;
8892 GNULIB_SYMLINK=0;
8893 GNULIB_SYMLINKAT=0;
8894 GNULIB_TTYNAME_R=0;
8895 GNULIB_UNISTD_H_NONBLOCKING=0;
8896 GNULIB_UNISTD_H_SIGPIPE=0;
8897 GNULIB_UNLINK=0;
8898 GNULIB_UNLINKAT=0;
8899 GNULIB_USLEEP=0;
8900 GNULIB_WRITE=0;
8901 HAVE_CHOWN=1;
8902 HAVE_DUP2=1;
8903 HAVE_DUP3=1;
8904 HAVE_EUIDACCESS=1;
8905 HAVE_FACCESSAT=1;
8906 HAVE_FCHDIR=1;
8907 HAVE_FCHOWNAT=1;
8908 HAVE_FDATASYNC=1;
8909 HAVE_FSYNC=1;
8910 HAVE_FTRUNCATE=1;
8911 HAVE_GETDTABLESIZE=1;
8912 HAVE_GETGROUPS=1;
8913 HAVE_GETHOSTNAME=1;
8914 HAVE_GETLOGIN=1;
8915 HAVE_GETPAGESIZE=1;
8916 HAVE_GROUP_MEMBER=1;
8917 HAVE_LCHOWN=1;
8918 HAVE_LINK=1;
8919 HAVE_LINKAT=1;
8920 HAVE_PIPE=1;
8921 HAVE_PIPE2=1;
8922 HAVE_PREAD=1;
8923 HAVE_PWRITE=1;
8924 HAVE_READLINK=1;
8925 HAVE_READLINKAT=1;
8926 HAVE_SETHOSTNAME=1;
8927 HAVE_SLEEP=1;
8928 HAVE_SYMLINK=1;
8929 HAVE_SYMLINKAT=1;
8930 HAVE_UNLINKAT=1;
8931 HAVE_USLEEP=1;
8932 HAVE_DECL_ENVIRON=1;
8933 HAVE_DECL_FCHDIR=1;
8934 HAVE_DECL_FDATASYNC=1;
8935 HAVE_DECL_GETDOMAINNAME=1;
8936 HAVE_DECL_GETLOGIN_R=1;
8937 HAVE_DECL_GETPAGESIZE=1;
8938 HAVE_DECL_GETUSERSHELL=1;
8939 HAVE_DECL_SETHOSTNAME=1;
8940 HAVE_DECL_TTYNAME_R=1;
8941 HAVE_OS_H=0;
8942 HAVE_SYS_PARAM_H=0;
8943 REPLACE_CHOWN=0;
8944 REPLACE_CLOSE=0;
8945 REPLACE_DUP=0;
8946 REPLACE_DUP2=0;
8947 REPLACE_FCHOWNAT=0;
8948 REPLACE_FTRUNCATE=0;
8949 REPLACE_GETCWD=0;
8950 REPLACE_GETDOMAINNAME=0;
8951 REPLACE_GETLOGIN_R=0;
8952 REPLACE_GETGROUPS=0;
8953 REPLACE_GETPAGESIZE=0;
8954 REPLACE_ISATTY=0;
8955 REPLACE_LCHOWN=0;
8956 REPLACE_LINK=0;
8957 REPLACE_LINKAT=0;
8958 REPLACE_LSEEK=0;
8959 REPLACE_PREAD=0;
8960 REPLACE_PWRITE=0;
8961 REPLACE_READ=0;
8962 REPLACE_READLINK=0;
8963 REPLACE_RMDIR=0;
8964 REPLACE_SLEEP=0;
8965 REPLACE_SYMLINK=0;
8966 REPLACE_TTYNAME_R=0;
8967 REPLACE_UNLINK=0;
8968 REPLACE_UNLINKAT=0;
8969 REPLACE_USLEEP=0;
8970 REPLACE_WRITE=0;
8971 UNISTD_H_HAVE_WINSOCK2_H=0;
8972 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
8973
8974
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
8976 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
8977 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982
8983 #include <sys/types.h>
8984 #include <sys/stat.h>
8985 int
8986 main ()
8987 {
8988 struct stat s; s.st_dm_mode;
8989 ;
8990 return 0;
8991 }
8992 _ACEOF
8993 if ac_fn_c_try_compile "$LINENO"; then :
8994 ac_cv_struct_st_dm_mode=yes
8995 else
8996 ac_cv_struct_st_dm_mode=no
8997 fi
8998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
9001 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
9002
9003 if test $ac_cv_struct_st_dm_mode = yes; then
9004
9005 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
9006
9007 fi
9008
9009
9010 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
9011 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
9012 ac_have_decl=1
9013 else
9014 ac_have_decl=0
9015 fi
9016
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_DECL_STRMODE $ac_have_decl
9019 _ACEOF
9020
9021
9022 GNULIB__EXIT=0;
9023 GNULIB_ATOLL=0;
9024 GNULIB_CALLOC_POSIX=0;
9025 GNULIB_CANONICALIZE_FILE_NAME=0;
9026 GNULIB_GETLOADAVG=0;
9027 GNULIB_GETSUBOPT=0;
9028 GNULIB_GRANTPT=0;
9029 GNULIB_MALLOC_POSIX=0;
9030 GNULIB_MBTOWC=0;
9031 GNULIB_MKDTEMP=0;
9032 GNULIB_MKOSTEMP=0;
9033 GNULIB_MKOSTEMPS=0;
9034 GNULIB_MKSTEMP=0;
9035 GNULIB_MKSTEMPS=0;
9036 GNULIB_POSIX_OPENPT=0;
9037 GNULIB_PTSNAME=0;
9038 GNULIB_PTSNAME_R=0;
9039 GNULIB_PUTENV=0;
9040 GNULIB_RANDOM=0;
9041 GNULIB_RANDOM_R=0;
9042 GNULIB_REALLOC_POSIX=0;
9043 GNULIB_REALPATH=0;
9044 GNULIB_RPMATCH=0;
9045 GNULIB_SETENV=0;
9046 GNULIB_STRTOD=0;
9047 GNULIB_STRTOLL=0;
9048 GNULIB_STRTOULL=0;
9049 GNULIB_SYSTEM_POSIX=0;
9050 GNULIB_UNLOCKPT=0;
9051 GNULIB_UNSETENV=0;
9052 GNULIB_WCTOMB=0;
9053 HAVE__EXIT=1;
9054 HAVE_ATOLL=1;
9055 HAVE_CANONICALIZE_FILE_NAME=1;
9056 HAVE_DECL_GETLOADAVG=1;
9057 HAVE_GETSUBOPT=1;
9058 HAVE_GRANTPT=1;
9059 HAVE_MKDTEMP=1;
9060 HAVE_MKOSTEMP=1;
9061 HAVE_MKOSTEMPS=1;
9062 HAVE_MKSTEMP=1;
9063 HAVE_MKSTEMPS=1;
9064 HAVE_POSIX_OPENPT=1;
9065 HAVE_PTSNAME=1;
9066 HAVE_PTSNAME_R=1;
9067 HAVE_RANDOM=1;
9068 HAVE_RANDOM_H=1;
9069 HAVE_RANDOM_R=1;
9070 HAVE_REALPATH=1;
9071 HAVE_RPMATCH=1;
9072 HAVE_SETENV=1;
9073 HAVE_DECL_SETENV=1;
9074 HAVE_STRTOD=1;
9075 HAVE_STRTOLL=1;
9076 HAVE_STRTOULL=1;
9077 HAVE_STRUCT_RANDOM_DATA=1;
9078 HAVE_SYS_LOADAVG_H=0;
9079 HAVE_UNLOCKPT=1;
9080 HAVE_DECL_UNSETENV=1;
9081 REPLACE_CALLOC=0;
9082 REPLACE_CANONICALIZE_FILE_NAME=0;
9083 REPLACE_MALLOC=0;
9084 REPLACE_MBTOWC=0;
9085 REPLACE_MKSTEMP=0;
9086 REPLACE_PTSNAME_R=0;
9087 REPLACE_PUTENV=0;
9088 REPLACE_RANDOM_R=0;
9089 REPLACE_REALLOC=0;
9090 REPLACE_REALPATH=0;
9091 REPLACE_SETENV=0;
9092 REPLACE_STRTOD=0;
9093 REPLACE_UNSETENV=0;
9094 REPLACE_WCTOMB=0;
9095
9096
9097
9098
9099 for ac_header in $ac_header_list
9100 do :
9101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9102 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9103 "
9104 eval as_val=\$$as_ac_Header
9105 if test "x$as_val" = x""yes; then :
9106 cat >>confdefs.h <<_ACEOF
9107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9108 _ACEOF
9109
9110 fi
9111
9112 done
9113
9114
9115
9116
9117
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9119 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9120 if test "${gl_cv_have_include_next+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 rm -rf conftestd1a conftestd1b conftestd2
9124 mkdir conftestd1a conftestd1b conftestd2
9125 cat <<EOF > conftestd1a/conftest.h
9126 #define DEFINED_IN_CONFTESTD1
9127 #include_next <conftest.h>
9128 #ifdef DEFINED_IN_CONFTESTD2
9129 int foo;
9130 #else
9131 #error "include_next doesn't work"
9132 #endif
9133 EOF
9134 cat <<EOF > conftestd1b/conftest.h
9135 #define DEFINED_IN_CONFTESTD1
9136 #include <stdio.h>
9137 #include_next <conftest.h>
9138 #ifdef DEFINED_IN_CONFTESTD2
9139 int foo;
9140 #else
9141 #error "include_next doesn't work"
9142 #endif
9143 EOF
9144 cat <<EOF > conftestd2/conftest.h
9145 #ifndef DEFINED_IN_CONFTESTD1
9146 #error "include_next test doesn't work"
9147 #endif
9148 #define DEFINED_IN_CONFTESTD2
9149 EOF
9150 gl_save_CPPFLAGS="$CPPFLAGS"
9151 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 #include <conftest.h>
9155 _ACEOF
9156 if ac_fn_c_try_compile "$LINENO"; then :
9157 gl_cv_have_include_next=yes
9158 else
9159 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 #include <conftest.h>
9163 _ACEOF
9164 if ac_fn_c_try_compile "$LINENO"; then :
9165 gl_cv_have_include_next=buggy
9166 else
9167 gl_cv_have_include_next=no
9168 fi
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173 CPPFLAGS="$gl_save_CPPFLAGS"
9174 rm -rf conftestd1a conftestd1b conftestd2
9175
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9178 $as_echo "$gl_cv_have_include_next" >&6; }
9179 PRAGMA_SYSTEM_HEADER=
9180 if test $gl_cv_have_include_next = yes; then
9181 INCLUDE_NEXT=include_next
9182 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9183 if test -n "$GCC"; then
9184 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
9185 fi
9186 else
9187 if test $gl_cv_have_include_next = buggy; then
9188 INCLUDE_NEXT=include
9189 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9190 else
9191 INCLUDE_NEXT=include
9192 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
9193 fi
9194 fi
9195
9196
9197
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9199 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9200 if test "${gl_cv_pragma_columns+set}" = set; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205
9206 #ifdef __TANDEM
9207 choke me
9208 #endif
9209
9210 _ACEOF
9211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9212 $EGREP "choke me" >/dev/null 2>&1; then :
9213 gl_cv_pragma_columns=yes
9214 else
9215 gl_cv_pragma_columns=no
9216 fi
9217 rm -f conftest*
9218
9219
9220 fi
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9222 $as_echo "$gl_cv_pragma_columns" >&6; }
9223 if test $gl_cv_pragma_columns = yes; then
9224 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
9225 else
9226 PRAGMA_COLUMNS=
9227 fi
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245 if test $gl_cv_have_include_next = yes; then
9246 gl_cv_next_getopt_h='<'getopt.h'>'
9247 else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9249 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9250 if test "${gl_cv_next_getopt_h+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253
9254 if test $ac_cv_header_getopt_h = yes; then
9255
9256
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 #include <getopt.h>
9260
9261 _ACEOF
9262 case "$host_os" in
9263 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9264 *) gl_absname_cpp="$ac_cpp" ;;
9265 esac
9266
9267 case "$host_os" in
9268 mingw*)
9269 gl_dirsep_regex='[/\\]'
9270 ;;
9271 *)
9272 gl_dirsep_regex='\/'
9273 ;;
9274 esac
9275 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9276
9277 gl_header_literal_regex=`echo 'getopt.h' \
9278 | sed -e "$gl_make_literal_regex_sed"`
9279 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9280 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9281 s|^/[^/]|//&|
9282 p
9283 q
9284 }'
9285 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9286 sed -n "$gl_absolute_header_sed"`'"'
9287 else
9288 gl_cv_next_getopt_h='<'getopt.h'>'
9289 fi
9290
9291
9292 fi
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9294 $as_echo "$gl_cv_next_getopt_h" >&6; }
9295 fi
9296 NEXT_GETOPT_H=$gl_cv_next_getopt_h
9297
9298 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9299 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9300 gl_next_as_first_directive='<'getopt.h'>'
9301 else
9302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9303 gl_next_as_first_directive=$gl_cv_next_getopt_h
9304 fi
9305 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
9306
9307
9308
9309
9310 if test $ac_cv_header_getopt_h = yes; then
9311 HAVE_GETOPT_H=1
9312 else
9313 HAVE_GETOPT_H=0
9314 fi
9315
9316
9317 gl_replace_getopt=
9318
9319 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9320 for ac_header in getopt.h
9321 do :
9322 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9323 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9324 cat >>confdefs.h <<_ACEOF
9325 #define HAVE_GETOPT_H 1
9326 _ACEOF
9327
9328 else
9329 gl_replace_getopt=yes
9330 fi
9331
9332 done
9333
9334 fi
9335
9336 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9337 for ac_func in getopt_long_only
9338 do :
9339 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9340 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
9341 cat >>confdefs.h <<_ACEOF
9342 #define HAVE_GETOPT_LONG_ONLY 1
9343 _ACEOF
9344
9345 else
9346 gl_replace_getopt=yes
9347 fi
9348 done
9349
9350 fi
9351
9352 if test -z "$gl_replace_getopt"; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9354 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9355 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358
9359 if test $cross_compiling = no; then
9360 if test "$cross_compiling" = yes; then :
9361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9363 as_fn_error "cannot run test program while cross compiling
9364 See \`config.log' for more details." "$LINENO" 5; }
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368
9369 #include <unistd.h>
9370 #include <stdlib.h>
9371 #include <string.h>
9372
9373 int
9374 main ()
9375 {
9376 static char program[] = "program";
9377 static char a[] = "-a";
9378 static char foo[] = "foo";
9379 static char bar[] = "bar";
9380 char *argv[] = { program, a, foo, bar, NULL };
9381 int c;
9382
9383 c = getopt (4, argv, "ab");
9384 if (!(c == 'a'))
9385 return 1;
9386 c = getopt (4, argv, "ab");
9387 if (!(c == -1))
9388 return 2;
9389 if (!(optind == 2))
9390 return 3;
9391 return 0;
9392 }
9393
9394 _ACEOF
9395 if ac_fn_c_try_run "$LINENO"; then :
9396 gl_cv_func_getopt_posix=maybe
9397 else
9398 gl_cv_func_getopt_posix=no
9399 fi
9400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9401 conftest.$ac_objext conftest.beam conftest.$ac_ext
9402 fi
9403
9404 if test $gl_cv_func_getopt_posix = maybe; then
9405 if test "$cross_compiling" = yes; then :
9406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9408 as_fn_error "cannot run test program while cross compiling
9409 See \`config.log' for more details." "$LINENO" 5; }
9410 else
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413
9414 #include <unistd.h>
9415 #include <stdlib.h>
9416 #include <string.h>
9417
9418 int
9419 main ()
9420 {
9421 static char program[] = "program";
9422 static char donald[] = "donald";
9423 static char p[] = "-p";
9424 static char billy[] = "billy";
9425 static char duck[] = "duck";
9426 static char a[] = "-a";
9427 static char bar[] = "bar";
9428 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
9429 int c;
9430
9431 c = getopt (7, argv, "+abp:q:");
9432 if (!(c == -1))
9433 return 4;
9434 if (!(strcmp (argv[0], "program") == 0))
9435 return 5;
9436 if (!(strcmp (argv[1], "donald") == 0))
9437 return 6;
9438 if (!(strcmp (argv[2], "-p") == 0))
9439 return 7;
9440 if (!(strcmp (argv[3], "billy") == 0))
9441 return 8;
9442 if (!(strcmp (argv[4], "duck") == 0))
9443 return 9;
9444 if (!(strcmp (argv[5], "-a") == 0))
9445 return 10;
9446 if (!(strcmp (argv[6], "bar") == 0))
9447 return 11;
9448 if (!(optind == 1))
9449 return 12;
9450 return 0;
9451 }
9452
9453 _ACEOF
9454 if ac_fn_c_try_run "$LINENO"; then :
9455 gl_cv_func_getopt_posix=maybe
9456 else
9457 gl_cv_func_getopt_posix=no
9458 fi
9459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9460 conftest.$ac_objext conftest.beam conftest.$ac_ext
9461 fi
9462
9463 fi
9464 if test $gl_cv_func_getopt_posix = maybe; then
9465 if test "$cross_compiling" = yes; then :
9466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9468 as_fn_error "cannot run test program while cross compiling
9469 See \`config.log' for more details." "$LINENO" 5; }
9470 else
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473
9474 #include <unistd.h>
9475 #include <stdlib.h>
9476 #include <string.h>
9477
9478 int
9479 main ()
9480 {
9481 static char program[] = "program";
9482 static char ab[] = "-ab";
9483 char *argv[3] = { program, ab, NULL };
9484 if (getopt (2, argv, "ab:") != 'a')
9485 return 13;
9486 if (getopt (2, argv, "ab:") != '?')
9487 return 14;
9488 if (optopt != 'b')
9489 return 15;
9490 if (optind != 2)
9491 return 16;
9492 return 0;
9493 }
9494
9495 _ACEOF
9496 if ac_fn_c_try_run "$LINENO"; then :
9497 gl_cv_func_getopt_posix=yes
9498 else
9499 gl_cv_func_getopt_posix=no
9500 fi
9501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9502 conftest.$ac_objext conftest.beam conftest.$ac_ext
9503 fi
9504
9505 fi
9506 else
9507 case "$host_os" in
9508 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
9509 *) gl_cv_func_getopt_posix="guessing yes";;
9510 esac
9511 fi
9512
9513 fi
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9515 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9516 case "$gl_cv_func_getopt_posix" in
9517 *no) gl_replace_getopt=yes ;;
9518 esac
9519 fi
9520
9521 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9523 $as_echo_n "checking for working GNU getopt function... " >&6; }
9524 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
9528 # optstring is necessary for programs like m4 that have POSIX-mandated
9529 # semantics for supporting options interspersed with files.
9530 # Also, since getopt_long is a GNU extension, we require optind=0.
9531 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
9532 # so take care to revert to the correct (non-)export state.
9533 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
9534 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
9535 xx) gl_had_POSIXLY_CORRECT=exported ;;
9536 x) gl_had_POSIXLY_CORRECT=yes ;;
9537 *) gl_had_POSIXLY_CORRECT= ;;
9538 esac
9539 POSIXLY_CORRECT=1
9540 export POSIXLY_CORRECT
9541 if test "$cross_compiling" = yes; then :
9542 gl_cv_func_getopt_gnu="guessing no"
9543
9544 else
9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546 /* end confdefs.h. */
9547 #include <getopt.h>
9548 #include <stddef.h>
9549 #include <string.h>
9550
9551 #include <stdlib.h>
9552 #if defined __MACH__ && defined __APPLE__
9553 /* Avoid a crash on Mac OS X. */
9554 #include <mach/mach.h>
9555 #include <mach/mach_error.h>
9556 #include <mach/thread_status.h>
9557 #include <mach/exception.h>
9558 #include <mach/task.h>
9559 #include <pthread.h>
9560 /* The exception port on which our thread listens. */
9561 static mach_port_t our_exception_port;
9562 /* The main function of the thread listening for exceptions of type
9563 EXC_BAD_ACCESS. */
9564 static void *
9565 mach_exception_thread (void *arg)
9566 {
9567 /* Buffer for a message to be received. */
9568 struct {
9569 mach_msg_header_t head;
9570 mach_msg_body_t msgh_body;
9571 char data[1024];
9572 } msg;
9573 mach_msg_return_t retval;
9574 /* Wait for a message on the exception port. */
9575 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9576 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9577 if (retval != MACH_MSG_SUCCESS)
9578 abort ();
9579 exit (1);
9580 }
9581 static void
9582 nocrash_init (void)
9583 {
9584 mach_port_t self = mach_task_self ();
9585 /* Allocate a port on which the thread shall listen for exceptions. */
9586 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9587 == KERN_SUCCESS) {
9588 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9589 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9590 MACH_MSG_TYPE_MAKE_SEND)
9591 == KERN_SUCCESS) {
9592 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9593 for us. */
9594 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9595 /* Create the thread listening on the exception port. */
9596 pthread_attr_t attr;
9597 pthread_t thread;
9598 if (pthread_attr_init (&attr) == 0
9599 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9600 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9601 pthread_attr_destroy (&attr);
9602 /* Replace the exception port info for these exceptions with our own.
9603 Note that we replace the exception port for the entire task, not only
9604 for a particular thread. This has the effect that when our exception
9605 port gets the message, the thread specific exception port has already
9606 been asked, and we don't need to bother about it.
9607 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9608 task_set_exception_ports (self, mask, our_exception_port,
9609 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9610 }
9611 }
9612 }
9613 }
9614 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9615 /* Avoid a crash on native Windows. */
9616 #define WIN32_LEAN_AND_MEAN
9617 #include <windows.h>
9618 #include <winerror.h>
9619 static LONG WINAPI
9620 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9621 {
9622 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9623 {
9624 case EXCEPTION_ACCESS_VIOLATION:
9625 case EXCEPTION_IN_PAGE_ERROR:
9626 case EXCEPTION_STACK_OVERFLOW:
9627 case EXCEPTION_GUARD_PAGE:
9628 case EXCEPTION_PRIV_INSTRUCTION:
9629 case EXCEPTION_ILLEGAL_INSTRUCTION:
9630 case EXCEPTION_DATATYPE_MISALIGNMENT:
9631 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9632 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9633 exit (1);
9634 }
9635 return EXCEPTION_CONTINUE_SEARCH;
9636 }
9637 static void
9638 nocrash_init (void)
9639 {
9640 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9641 }
9642 #else
9643 /* Avoid a crash on POSIX systems. */
9644 #include <signal.h>
9645 /* A POSIX signal handler. */
9646 static void
9647 exception_handler (int sig)
9648 {
9649 exit (1);
9650 }
9651 static void
9652 nocrash_init (void)
9653 {
9654 #ifdef SIGSEGV
9655 signal (SIGSEGV, exception_handler);
9656 #endif
9657 #ifdef SIGBUS
9658 signal (SIGBUS, exception_handler);
9659 #endif
9660 }
9661 #endif
9662
9663
9664 int
9665 main ()
9666 {
9667
9668 int result = 0;
9669
9670 nocrash_init();
9671
9672 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9673 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9674 OSF/1 5.1, Solaris 10. */
9675 {
9676 static char conftest[] = "conftest";
9677 static char plus[] = "-+";
9678 char *argv[3] = { conftest, plus, NULL };
9679 opterr = 0;
9680 if (getopt (2, argv, "+a") != '?')
9681 result |= 1;
9682 }
9683 /* This code succeeds on glibc 2.8, mingw,
9684 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9685 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
9686 {
9687 static char program[] = "program";
9688 static char p[] = "-p";
9689 static char foo[] = "foo";
9690 static char bar[] = "bar";
9691 char *argv[] = { program, p, foo, bar, NULL };
9692
9693 optind = 1;
9694 if (getopt (4, argv, "p::") != 'p')
9695 result |= 2;
9696 else if (optarg != NULL)
9697 result |= 4;
9698 else if (getopt (4, argv, "p::") != -1)
9699 result |= 6;
9700 else if (optind != 2)
9701 result |= 8;
9702 }
9703 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
9704 {
9705 static char program[] = "program";
9706 static char foo[] = "foo";
9707 static char p[] = "-p";
9708 char *argv[] = { program, foo, p, NULL };
9709 optind = 0;
9710 if (getopt (3, argv, "-p") != 1)
9711 result |= 16;
9712 else if (getopt (3, argv, "-p") != 'p')
9713 result |= 16;
9714 }
9715 /* This code fails on glibc 2.11. */
9716 {
9717 static char program[] = "program";
9718 static char b[] = "-b";
9719 static char a[] = "-a";
9720 char *argv[] = { program, b, a, NULL };
9721 optind = opterr = 0;
9722 if (getopt (3, argv, "+:a:b") != 'b')
9723 result |= 32;
9724 else if (getopt (3, argv, "+:a:b") != ':')
9725 result |= 32;
9726 }
9727 /* This code dumps core on glibc 2.14. */
9728 {
9729 static char program[] = "program";
9730 static char w[] = "-W";
9731 static char dummy[] = "dummy";
9732 char *argv[] = { program, w, dummy, NULL };
9733 optind = opterr = 1;
9734 if (getopt (3, argv, "W;") != 'W')
9735 result |= 64;
9736 }
9737 return result;
9738
9739 ;
9740 return 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_run "$LINENO"; then :
9744 gl_cv_func_getopt_gnu=yes
9745 else
9746 gl_cv_func_getopt_gnu=no
9747 fi
9748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9749 conftest.$ac_objext conftest.beam conftest.$ac_ext
9750 fi
9751
9752 case $gl_had_POSIXLY_CORRECT in
9753 exported) ;;
9754 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
9755 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
9756 esac
9757
9758 fi
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9760 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9761 if test "$gl_cv_func_getopt_gnu" != yes; then
9762 gl_replace_getopt=yes
9763 else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
9765 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
9766 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 if test "$cross_compiling" = yes; then :
9770 case "$host_os" in
9771 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
9772 *) gl_cv_func_getopt_long_gnu="guessing yes";;
9773 esac
9774
9775 else
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 #include <getopt.h>
9779 #include <stddef.h>
9780 #include <string.h>
9781
9782 int
9783 main ()
9784 {
9785 static const struct option long_options[] =
9786 {
9787 { "xtremely-",no_argument, NULL, 1003 },
9788 { "xtra", no_argument, NULL, 1001 },
9789 { "xtreme", no_argument, NULL, 1002 },
9790 { "xtremely", no_argument, NULL, 1003 },
9791 { NULL, 0, NULL, 0 }
9792 };
9793 /* This code fails on OpenBSD 5.0. */
9794 {
9795 static char program[] = "program";
9796 static char xtremel[] = "--xtremel";
9797 char *argv[] = { program, xtremel, NULL };
9798 int option_index;
9799 optind = 1; opterr = 0;
9800 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
9801 return 1;
9802 }
9803 return 0;
9804
9805 ;
9806 return 0;
9807 }
9808 _ACEOF
9809 if ac_fn_c_try_run "$LINENO"; then :
9810 gl_cv_func_getopt_long_gnu=yes
9811 else
9812 gl_cv_func_getopt_long_gnu=no
9813 fi
9814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9815 conftest.$ac_objext conftest.beam conftest.$ac_ext
9816 fi
9817
9818
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
9821 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
9822 case "$gl_cv_func_getopt_long_gnu" in
9823 *yes) ;;
9824 *) gl_replace_getopt=yes ;;
9825 esac
9826 fi
9827 fi
9828
9829
9830
9831
9832
9833
9834 REPLACE_GETOPT=0
9835 if test -n "$gl_replace_getopt"; then
9836 REPLACE_GETOPT=1
9837 fi
9838
9839 if test $REPLACE_GETOPT = 1; then
9840
9841 GETOPT_H=getopt.h
9842
9843 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9844
9845
9846
9847 fi
9848
9849 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9850 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
9851 ac_have_decl=1
9852 else
9853 ac_have_decl=0
9854 fi
9855
9856 cat >>confdefs.h <<_ACEOF
9857 #define HAVE_DECL_GETENV $ac_have_decl
9858 _ACEOF
9859
9860
9861
9862
9863
9864
9865
9866
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9868 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9869 if test "${ac_cv_c_restrict+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 ac_cv_c_restrict=no
9873 # The order here caters to the fact that C++ does not require restrict.
9874 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877 typedef int * int_ptr;
9878 int foo (int_ptr $ac_kw ip) {
9879 return ip[0];
9880 }
9881 int
9882 main ()
9883 {
9884 int s[1];
9885 int * $ac_kw t = s;
9886 t[0] = 0;
9887 return foo(t)
9888 ;
9889 return 0;
9890 }
9891 _ACEOF
9892 if ac_fn_c_try_compile "$LINENO"; then :
9893 ac_cv_c_restrict=$ac_kw
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 test "$ac_cv_c_restrict" != no && break
9897 done
9898
9899 fi
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9901 $as_echo "$ac_cv_c_restrict" >&6; }
9902
9903 case $ac_cv_c_restrict in
9904 restrict) ;;
9905 no) $as_echo "#define restrict /**/" >>confdefs.h
9906 ;;
9907 *) cat >>confdefs.h <<_ACEOF
9908 #define restrict $ac_cv_c_restrict
9909 _ACEOF
9910 ;;
9911 esac
9912
9913
9914 GNULIB_GETTIMEOFDAY=0;
9915 HAVE_GETTIMEOFDAY=1;
9916 HAVE_STRUCT_TIMEVAL=1;
9917 HAVE_SYS_TIME_H=1;
9918 REPLACE_GETTIMEOFDAY=0;
9919 REPLACE_STRUCT_TIMEVAL=0;
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938 if test $gl_cv_have_include_next = yes; then
9939 gl_cv_next_sys_time_h='<'sys/time.h'>'
9940 else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9942 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9943 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9944 $as_echo_n "(cached) " >&6
9945 else
9946
9947 if test $ac_cv_header_sys_time_h = yes; then
9948
9949
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9952 #include <sys/time.h>
9953
9954 _ACEOF
9955 case "$host_os" in
9956 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9957 *) gl_absname_cpp="$ac_cpp" ;;
9958 esac
9959
9960 case "$host_os" in
9961 mingw*)
9962 gl_dirsep_regex='[/\\]'
9963 ;;
9964 *)
9965 gl_dirsep_regex='\/'
9966 ;;
9967 esac
9968 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9969
9970 gl_header_literal_regex=`echo 'sys/time.h' \
9971 | sed -e "$gl_make_literal_regex_sed"`
9972 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9973 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9974 s|^/[^/]|//&|
9975 p
9976 q
9977 }'
9978 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9979 sed -n "$gl_absolute_header_sed"`'"'
9980 else
9981 gl_cv_next_sys_time_h='<'sys/time.h'>'
9982 fi
9983
9984
9985 fi
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9987 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9988 fi
9989 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9990
9991 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9993 gl_next_as_first_directive='<'sys/time.h'>'
9994 else
9995 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9996 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9997 fi
9998 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9999
10000
10001
10002
10003
10004 if test $ac_cv_header_sys_time_h != yes; then
10005 HAVE_SYS_TIME_H=0
10006 fi
10007
10008
10009
10010
10011
10012 if test $ac_cv_header_sys_socket_h != yes; then
10013 for ac_header in winsock2.h
10014 do :
10015 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10016 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
10017 cat >>confdefs.h <<_ACEOF
10018 #define HAVE_WINSOCK2_H 1
10019 _ACEOF
10020
10021 fi
10022
10023 done
10024
10025 fi
10026 if test "$ac_cv_header_winsock2_h" = yes; then
10027 HAVE_WINSOCK2_H=1
10028 UNISTD_H_HAVE_WINSOCK2_H=1
10029 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10030 else
10031 HAVE_WINSOCK2_H=0
10032 fi
10033
10034
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10036 $as_echo_n "checking for struct timeval... " >&6; }
10037 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 #if HAVE_SYS_TIME_H
10043 #include <sys/time.h>
10044 #endif
10045 #include <time.h>
10046 #if HAVE_WINSOCK2_H
10047 # include <winsock2.h>
10048 #endif
10049
10050 int
10051 main ()
10052 {
10053 static struct timeval x; x.tv_sec = x.tv_usec;
10054 ;
10055 return 0;
10056 }
10057 _ACEOF
10058 if ac_fn_c_try_compile "$LINENO"; then :
10059 gl_cv_sys_struct_timeval=yes
10060 else
10061 gl_cv_sys_struct_timeval=no
10062 fi
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064
10065 fi
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10067 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10068 if test $gl_cv_sys_struct_timeval != yes; then
10069 HAVE_STRUCT_TIMEVAL=0
10070 else
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10072 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10073 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10078 #if HAVE_SYS_TIME_H
10079 #include <sys/time.h>
10080 #endif
10081 #include <time.h>
10082 #if HAVE_WINSOCK2_H
10083 # include <winsock2.h>
10084 #endif
10085
10086 int
10087 main ()
10088 {
10089 static struct timeval x;
10090 typedef int verify_tv_sec_type[
10091 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10092 ];
10093
10094 ;
10095 return 0;
10096 }
10097 _ACEOF
10098 if ac_fn_c_try_compile "$LINENO"; then :
10099 gl_cv_sys_struct_timeval_tv_sec=yes
10100 else
10101 gl_cv_sys_struct_timeval_tv_sec=no
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104
10105 fi
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10107 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10108 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10109 REPLACE_STRUCT_TIMEVAL=1
10110 fi
10111 fi
10112
10113
10114
10115
10116
10117
10118
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10120 $as_echo_n "checking for unsigned long long int... " >&6; }
10121 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 ac_cv_type_unsigned_long_long_int=yes
10125 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128
10129 /* For now, do not test the preprocessor; as of 2007 there are too many
10130 implementations with broken preprocessors. Perhaps this can
10131 be revisited in 2012. In the meantime, code should not expect
10132 #if to work with literals wider than 32 bits. */
10133 /* Test literals. */
10134 long long int ll = 9223372036854775807ll;
10135 long long int nll = -9223372036854775807LL;
10136 unsigned long long int ull = 18446744073709551615ULL;
10137 /* Test constant expressions. */
10138 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10139 ? 1 : -1)];
10140 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10141 ? 1 : -1)];
10142 int i = 63;
10143 int
10144 main ()
10145 {
10146 /* Test availability of runtime routines for shift and division. */
10147 long long int llmax = 9223372036854775807ll;
10148 unsigned long long int ullmax = 18446744073709551615ull;
10149 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10150 | (llmax / ll) | (llmax % ll)
10151 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10152 | (ullmax / ull) | (ullmax % ull));
10153 ;
10154 return 0;
10155 }
10156
10157 _ACEOF
10158 if ac_fn_c_try_link "$LINENO"; then :
10159
10160 else
10161 ac_cv_type_unsigned_long_long_int=no
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 fi
10166 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10168 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10169 if test $ac_cv_type_unsigned_long_long_int = yes; then
10170
10171 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10172
10173 fi
10174
10175
10176
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10178 $as_echo_n "checking for long long int... " >&6; }
10179 if test "${ac_cv_type_long_long_int+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 ac_cv_type_long_long_int=yes
10183 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10184 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10185 if test $ac_cv_type_long_long_int = yes; then
10186 if test "$cross_compiling" = yes; then :
10187 :
10188 else
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 #include <limits.h>
10192 #ifndef LLONG_MAX
10193 # define HALF \
10194 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10195 # define LLONG_MAX (HALF - 1 + HALF)
10196 #endif
10197 int
10198 main ()
10199 {
10200 long long int n = 1;
10201 int i;
10202 for (i = 0; ; i++)
10203 {
10204 long long int m = n << i;
10205 if (m >> i != n)
10206 return 1;
10207 if (LLONG_MAX / 2 < m)
10208 break;
10209 }
10210 return 0;
10211 ;
10212 return 0;
10213 }
10214 _ACEOF
10215 if ac_fn_c_try_run "$LINENO"; then :
10216
10217 else
10218 ac_cv_type_long_long_int=no
10219 fi
10220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10221 conftest.$ac_objext conftest.beam conftest.$ac_ext
10222 fi
10223
10224 fi
10225 fi
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10228 $as_echo "$ac_cv_type_long_long_int" >&6; }
10229 if test $ac_cv_type_long_long_int = yes; then
10230
10231 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10232
10233 fi
10234
10235
10236
10237
10238
10239
10240 gl_cv_c_multiarch=no
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 #ifndef __APPLE_CC__
10244 not a universal capable compiler
10245 #endif
10246 typedef int dummy;
10247
10248 _ACEOF
10249 if ac_fn_c_try_compile "$LINENO"; then :
10250
10251 arch=
10252 prev=
10253 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10254 if test -n "$prev"; then
10255 case $word in
10256 i?86 | x86_64 | ppc | ppc64)
10257 if test -z "$arch" || test "$arch" = "$word"; then
10258 arch="$word"
10259 else
10260 gl_cv_c_multiarch=yes
10261 fi
10262 ;;
10263 esac
10264 prev=
10265 else
10266 if test "x$word" = "x-arch"; then
10267 prev=arch
10268 fi
10269 fi
10270 done
10271
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 if test $gl_cv_c_multiarch = yes; then
10275 APPLE_UNIVERSAL_BUILD=1
10276 else
10277 APPLE_UNIVERSAL_BUILD=0
10278 fi
10279
10280
10281
10282
10283
10284 if test $ac_cv_type_long_long_int = yes; then
10285 HAVE_LONG_LONG_INT=1
10286 else
10287 HAVE_LONG_LONG_INT=0
10288 fi
10289
10290
10291 if test $ac_cv_type_unsigned_long_long_int = yes; then
10292 HAVE_UNSIGNED_LONG_LONG_INT=1
10293 else
10294 HAVE_UNSIGNED_LONG_LONG_INT=0
10295 fi
10296
10297
10298
10299 if test $ac_cv_header_wchar_h = yes; then
10300 HAVE_WCHAR_H=1
10301 else
10302 HAVE_WCHAR_H=0
10303 fi
10304
10305
10306 if test $ac_cv_header_inttypes_h = yes; then
10307 HAVE_INTTYPES_H=1
10308 else
10309 HAVE_INTTYPES_H=0
10310 fi
10311
10312
10313 if test $ac_cv_header_sys_types_h = yes; then
10314 HAVE_SYS_TYPES_H=1
10315 else
10316 HAVE_SYS_TYPES_H=0
10317 fi
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329 if test $gl_cv_have_include_next = yes; then
10330 gl_cv_next_stdint_h='<'stdint.h'>'
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10333 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10334 if test "${gl_cv_next_stdint_h+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337
10338 if test $ac_cv_header_stdint_h = yes; then
10339
10340
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 #include <stdint.h>
10344
10345 _ACEOF
10346 case "$host_os" in
10347 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10348 *) gl_absname_cpp="$ac_cpp" ;;
10349 esac
10350
10351 case "$host_os" in
10352 mingw*)
10353 gl_dirsep_regex='[/\\]'
10354 ;;
10355 *)
10356 gl_dirsep_regex='\/'
10357 ;;
10358 esac
10359 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10360
10361 gl_header_literal_regex=`echo 'stdint.h' \
10362 | sed -e "$gl_make_literal_regex_sed"`
10363 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10364 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10365 s|^/[^/]|//&|
10366 p
10367 q
10368 }'
10369 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10370 sed -n "$gl_absolute_header_sed"`'"'
10371 else
10372 gl_cv_next_stdint_h='<'stdint.h'>'
10373 fi
10374
10375
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10378 $as_echo "$gl_cv_next_stdint_h" >&6; }
10379 fi
10380 NEXT_STDINT_H=$gl_cv_next_stdint_h
10381
10382 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10383 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10384 gl_next_as_first_directive='<'stdint.h'>'
10385 else
10386 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10387 gl_next_as_first_directive=$gl_cv_next_stdint_h
10388 fi
10389 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
10390
10391
10392
10393
10394 if test $ac_cv_header_stdint_h = yes; then
10395 HAVE_STDINT_H=1
10396 else
10397 HAVE_STDINT_H=0
10398 fi
10399
10400
10401 if test $ac_cv_header_stdint_h = yes; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10403 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10404 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 gl_cv_header_working_stdint_h=no
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410
10411
10412 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10413 #include <stdint.h>
10414 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10415 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10416 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10417 #endif
10418
10419
10420 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10421 included before <wchar.h>. */
10422 #include <stddef.h>
10423 #include <signal.h>
10424 #if HAVE_WCHAR_H
10425 # include <stdio.h>
10426 # include <time.h>
10427 # include <wchar.h>
10428 #endif
10429
10430
10431 #ifdef INT8_MAX
10432 int8_t a1 = INT8_MAX;
10433 int8_t a1min = INT8_MIN;
10434 #endif
10435 #ifdef INT16_MAX
10436 int16_t a2 = INT16_MAX;
10437 int16_t a2min = INT16_MIN;
10438 #endif
10439 #ifdef INT32_MAX
10440 int32_t a3 = INT32_MAX;
10441 int32_t a3min = INT32_MIN;
10442 #endif
10443 #ifdef INT64_MAX
10444 int64_t a4 = INT64_MAX;
10445 int64_t a4min = INT64_MIN;
10446 #endif
10447 #ifdef UINT8_MAX
10448 uint8_t b1 = UINT8_MAX;
10449 #else
10450 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10451 #endif
10452 #ifdef UINT16_MAX
10453 uint16_t b2 = UINT16_MAX;
10454 #endif
10455 #ifdef UINT32_MAX
10456 uint32_t b3 = UINT32_MAX;
10457 #endif
10458 #ifdef UINT64_MAX
10459 uint64_t b4 = UINT64_MAX;
10460 #endif
10461 int_least8_t c1 = INT8_C (0x7f);
10462 int_least8_t c1max = INT_LEAST8_MAX;
10463 int_least8_t c1min = INT_LEAST8_MIN;
10464 int_least16_t c2 = INT16_C (0x7fff);
10465 int_least16_t c2max = INT_LEAST16_MAX;
10466 int_least16_t c2min = INT_LEAST16_MIN;
10467 int_least32_t c3 = INT32_C (0x7fffffff);
10468 int_least32_t c3max = INT_LEAST32_MAX;
10469 int_least32_t c3min = INT_LEAST32_MIN;
10470 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10471 int_least64_t c4max = INT_LEAST64_MAX;
10472 int_least64_t c4min = INT_LEAST64_MIN;
10473 uint_least8_t d1 = UINT8_C (0xff);
10474 uint_least8_t d1max = UINT_LEAST8_MAX;
10475 uint_least16_t d2 = UINT16_C (0xffff);
10476 uint_least16_t d2max = UINT_LEAST16_MAX;
10477 uint_least32_t d3 = UINT32_C (0xffffffff);
10478 uint_least32_t d3max = UINT_LEAST32_MAX;
10479 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10480 uint_least64_t d4max = UINT_LEAST64_MAX;
10481 int_fast8_t e1 = INT_FAST8_MAX;
10482 int_fast8_t e1min = INT_FAST8_MIN;
10483 int_fast16_t e2 = INT_FAST16_MAX;
10484 int_fast16_t e2min = INT_FAST16_MIN;
10485 int_fast32_t e3 = INT_FAST32_MAX;
10486 int_fast32_t e3min = INT_FAST32_MIN;
10487 int_fast64_t e4 = INT_FAST64_MAX;
10488 int_fast64_t e4min = INT_FAST64_MIN;
10489 uint_fast8_t f1 = UINT_FAST8_MAX;
10490 uint_fast16_t f2 = UINT_FAST16_MAX;
10491 uint_fast32_t f3 = UINT_FAST32_MAX;
10492 uint_fast64_t f4 = UINT_FAST64_MAX;
10493 #ifdef INTPTR_MAX
10494 intptr_t g = INTPTR_MAX;
10495 intptr_t gmin = INTPTR_MIN;
10496 #endif
10497 #ifdef UINTPTR_MAX
10498 uintptr_t h = UINTPTR_MAX;
10499 #endif
10500 intmax_t i = INTMAX_MAX;
10501 uintmax_t j = UINTMAX_MAX;
10502
10503 #include <limits.h> /* for CHAR_BIT */
10504 #define TYPE_MINIMUM(t) \
10505 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10506 #define TYPE_MAXIMUM(t) \
10507 ((t) ((t) 0 < (t) -1 \
10508 ? (t) -1 \
10509 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10510 struct s {
10511 int check_PTRDIFF:
10512 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10513 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10514 ? 1 : -1;
10515 /* Detect bug in FreeBSD 6.0 / ia64. */
10516 int check_SIG_ATOMIC:
10517 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10518 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10519 ? 1 : -1;
10520 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10521 int check_WCHAR:
10522 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10523 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10524 ? 1 : -1;
10525 /* Detect bug in mingw. */
10526 int check_WINT:
10527 WINT_MIN == TYPE_MINIMUM (wint_t)
10528 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10529 ? 1 : -1;
10530
10531 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10532 int check_UINT8_C:
10533 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10534 int check_UINT16_C:
10535 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10536
10537 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10538 #ifdef UINT8_MAX
10539 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10540 #endif
10541 #ifdef UINT16_MAX
10542 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10543 #endif
10544 #ifdef UINT32_MAX
10545 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10546 #endif
10547 #ifdef UINT64_MAX
10548 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10549 #endif
10550 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10551 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10552 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10553 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10554 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10555 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10556 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10557 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10558 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10559 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10560 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10561 };
10562
10563 int
10564 main ()
10565 {
10566
10567 ;
10568 return 0;
10569 }
10570 _ACEOF
10571 if ac_fn_c_try_compile "$LINENO"; then :
10572 if test "$cross_compiling" = yes; then :
10573 gl_cv_header_working_stdint_h=yes
10574
10575 else
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10578
10579
10580 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10581 #include <stdint.h>
10582
10583
10584 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10585 included before <wchar.h>. */
10586 #include <stddef.h>
10587 #include <signal.h>
10588 #if HAVE_WCHAR_H
10589 # include <stdio.h>
10590 # include <time.h>
10591 # include <wchar.h>
10592 #endif
10593
10594
10595 #include <stdio.h>
10596 #include <string.h>
10597 #define MVAL(macro) MVAL1(macro)
10598 #define MVAL1(expression) #expression
10599 static const char *macro_values[] =
10600 {
10601 #ifdef INT8_MAX
10602 MVAL (INT8_MAX),
10603 #endif
10604 #ifdef INT16_MAX
10605 MVAL (INT16_MAX),
10606 #endif
10607 #ifdef INT32_MAX
10608 MVAL (INT32_MAX),
10609 #endif
10610 #ifdef INT64_MAX
10611 MVAL (INT64_MAX),
10612 #endif
10613 #ifdef UINT8_MAX
10614 MVAL (UINT8_MAX),
10615 #endif
10616 #ifdef UINT16_MAX
10617 MVAL (UINT16_MAX),
10618 #endif
10619 #ifdef UINT32_MAX
10620 MVAL (UINT32_MAX),
10621 #endif
10622 #ifdef UINT64_MAX
10623 MVAL (UINT64_MAX),
10624 #endif
10625 NULL
10626 };
10627
10628 int
10629 main ()
10630 {
10631
10632 const char **mv;
10633 for (mv = macro_values; *mv != NULL; mv++)
10634 {
10635 const char *value = *mv;
10636 /* Test whether it looks like a cast expression. */
10637 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10638 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10639 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10640 || strncmp (value, "((int)"/*)*/, 6) == 0
10641 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10642 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10643 return mv - macro_values + 1;
10644 }
10645 return 0;
10646
10647 ;
10648 return 0;
10649 }
10650 _ACEOF
10651 if ac_fn_c_try_run "$LINENO"; then :
10652 gl_cv_header_working_stdint_h=yes
10653 fi
10654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10655 conftest.$ac_objext conftest.beam conftest.$ac_ext
10656 fi
10657
10658
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661
10662 fi
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10664 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10665 fi
10666 if test "$gl_cv_header_working_stdint_h" = yes; then
10667 STDINT_H=
10668 else
10669 for ac_header in sys/inttypes.h sys/bitypes.h
10670 do :
10671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10672 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10673 eval as_val=\$$as_ac_Header
10674 if test "x$as_val" = x""yes; then :
10675 cat >>confdefs.h <<_ACEOF
10676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10677 _ACEOF
10678
10679 fi
10680
10681 done
10682
10683 if test $ac_cv_header_sys_inttypes_h = yes; then
10684 HAVE_SYS_INTTYPES_H=1
10685 else
10686 HAVE_SYS_INTTYPES_H=0
10687 fi
10688
10689 if test $ac_cv_header_sys_bitypes_h = yes; then
10690 HAVE_SYS_BITYPES_H=1
10691 else
10692 HAVE_SYS_BITYPES_H=0
10693 fi
10694
10695
10696
10697
10698 if test $APPLE_UNIVERSAL_BUILD = 0; then
10699
10700
10701 for gltype in ptrdiff_t size_t ; do
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10703 $as_echo_n "checking for bit size of $gltype... " >&6; }
10704 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10708 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10709 included before <wchar.h>. */
10710 #include <stddef.h>
10711 #include <signal.h>
10712 #if HAVE_WCHAR_H
10713 # include <stdio.h>
10714 # include <time.h>
10715 # include <wchar.h>
10716 #endif
10717
10718 #include <limits.h>"; then :
10719
10720 else
10721 result=unknown
10722 fi
10723
10724 eval gl_cv_bitsizeof_${gltype}=\$result
10725
10726 fi
10727 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10729 $as_echo "$ac_res" >&6; }
10730 eval result=\$gl_cv_bitsizeof_${gltype}
10731 if test $result = unknown; then
10732 result=0
10733 fi
10734 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10735 cat >>confdefs.h <<_ACEOF
10736 #define BITSIZEOF_${GLTYPE} $result
10737 _ACEOF
10738
10739 eval BITSIZEOF_${GLTYPE}=\$result
10740 done
10741
10742
10743 fi
10744
10745
10746 for gltype in sig_atomic_t wchar_t wint_t ; do
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10748 $as_echo_n "checking for bit size of $gltype... " >&6; }
10749 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10753 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10754 included before <wchar.h>. */
10755 #include <stddef.h>
10756 #include <signal.h>
10757 #if HAVE_WCHAR_H
10758 # include <stdio.h>
10759 # include <time.h>
10760 # include <wchar.h>
10761 #endif
10762
10763 #include <limits.h>"; then :
10764
10765 else
10766 result=unknown
10767 fi
10768
10769 eval gl_cv_bitsizeof_${gltype}=\$result
10770
10771 fi
10772 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10774 $as_echo "$ac_res" >&6; }
10775 eval result=\$gl_cv_bitsizeof_${gltype}
10776 if test $result = unknown; then
10777 result=0
10778 fi
10779 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10780 cat >>confdefs.h <<_ACEOF
10781 #define BITSIZEOF_${GLTYPE} $result
10782 _ACEOF
10783
10784 eval BITSIZEOF_${GLTYPE}=\$result
10785 done
10786
10787
10788
10789
10790 for gltype in sig_atomic_t wchar_t wint_t ; do
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10792 $as_echo_n "checking whether $gltype is signed... " >&6; }
10793 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798
10799 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10800 included before <wchar.h>. */
10801 #include <stddef.h>
10802 #include <signal.h>
10803 #if HAVE_WCHAR_H
10804 # include <stdio.h>
10805 # include <time.h>
10806 # include <wchar.h>
10807 #endif
10808
10809 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10810 int
10811 main ()
10812 {
10813
10814 ;
10815 return 0;
10816 }
10817 _ACEOF
10818 if ac_fn_c_try_compile "$LINENO"; then :
10819 result=yes
10820 else
10821 result=no
10822 fi
10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824 eval gl_cv_type_${gltype}_signed=\$result
10825
10826 fi
10827 eval ac_res=\$gl_cv_type_${gltype}_signed
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10829 $as_echo "$ac_res" >&6; }
10830 eval result=\$gl_cv_type_${gltype}_signed
10831 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10832 if test "$result" = yes; then
10833 cat >>confdefs.h <<_ACEOF
10834 #define HAVE_SIGNED_${GLTYPE} 1
10835 _ACEOF
10836
10837 eval HAVE_SIGNED_${GLTYPE}=1
10838 else
10839 eval HAVE_SIGNED_${GLTYPE}=0
10840 fi
10841 done
10842
10843
10844 gl_cv_type_ptrdiff_t_signed=yes
10845 gl_cv_type_size_t_signed=no
10846 if test $APPLE_UNIVERSAL_BUILD = 0; then
10847
10848
10849 for gltype in ptrdiff_t size_t ; do
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10851 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10852 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 eval gl_cv_type_${gltype}_suffix=no
10856 eval result=\$gl_cv_type_${gltype}_signed
10857 if test "$result" = yes; then
10858 glsufu=
10859 else
10860 glsufu=u
10861 fi
10862 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10863 case $glsuf in
10864 '') gltype1='int';;
10865 l) gltype1='long int';;
10866 ll) gltype1='long long int';;
10867 i64) gltype1='__int64';;
10868 u) gltype1='unsigned int';;
10869 ul) gltype1='unsigned long int';;
10870 ull) gltype1='unsigned long long int';;
10871 ui64)gltype1='unsigned __int64';;
10872 esac
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875
10876 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10877 included before <wchar.h>. */
10878 #include <stddef.h>
10879 #include <signal.h>
10880 #if HAVE_WCHAR_H
10881 # include <stdio.h>
10882 # include <time.h>
10883 # include <wchar.h>
10884 #endif
10885
10886 extern $gltype foo;
10887 extern $gltype1 foo;
10888 int
10889 main ()
10890 {
10891
10892 ;
10893 return 0;
10894 }
10895 _ACEOF
10896 if ac_fn_c_try_compile "$LINENO"; then :
10897 eval gl_cv_type_${gltype}_suffix=\$glsuf
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 eval result=\$gl_cv_type_${gltype}_suffix
10901 test "$result" != no && break
10902 done
10903 fi
10904 eval ac_res=\$gl_cv_type_${gltype}_suffix
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10906 $as_echo "$ac_res" >&6; }
10907 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10908 eval result=\$gl_cv_type_${gltype}_suffix
10909 test "$result" = no && result=
10910 eval ${GLTYPE}_SUFFIX=\$result
10911 cat >>confdefs.h <<_ACEOF
10912 #define ${GLTYPE}_SUFFIX $result
10913 _ACEOF
10914
10915 done
10916
10917
10918 fi
10919
10920
10921 for gltype in sig_atomic_t wchar_t wint_t ; do
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10923 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10924 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 eval gl_cv_type_${gltype}_suffix=no
10928 eval result=\$gl_cv_type_${gltype}_signed
10929 if test "$result" = yes; then
10930 glsufu=
10931 else
10932 glsufu=u
10933 fi
10934 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10935 case $glsuf in
10936 '') gltype1='int';;
10937 l) gltype1='long int';;
10938 ll) gltype1='long long int';;
10939 i64) gltype1='__int64';;
10940 u) gltype1='unsigned int';;
10941 ul) gltype1='unsigned long int';;
10942 ull) gltype1='unsigned long long int';;
10943 ui64)gltype1='unsigned __int64';;
10944 esac
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10947
10948 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10949 included before <wchar.h>. */
10950 #include <stddef.h>
10951 #include <signal.h>
10952 #if HAVE_WCHAR_H
10953 # include <stdio.h>
10954 # include <time.h>
10955 # include <wchar.h>
10956 #endif
10957
10958 extern $gltype foo;
10959 extern $gltype1 foo;
10960 int
10961 main ()
10962 {
10963
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_c_try_compile "$LINENO"; then :
10969 eval gl_cv_type_${gltype}_suffix=\$glsuf
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 eval result=\$gl_cv_type_${gltype}_suffix
10973 test "$result" != no && break
10974 done
10975 fi
10976 eval ac_res=\$gl_cv_type_${gltype}_suffix
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10978 $as_echo "$ac_res" >&6; }
10979 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10980 eval result=\$gl_cv_type_${gltype}_suffix
10981 test "$result" = no && result=
10982 eval ${GLTYPE}_SUFFIX=\$result
10983 cat >>confdefs.h <<_ACEOF
10984 #define ${GLTYPE}_SUFFIX $result
10985 _ACEOF
10986
10987 done
10988
10989
10990
10991 if test $BITSIZEOF_WINT_T -lt 32; then
10992 BITSIZEOF_WINT_T=32
10993 fi
10994
10995 STDINT_H=stdint.h
10996 fi
10997
10998 if test -n "$STDINT_H"; then
10999 GL_GENERATE_STDINT_H_TRUE=
11000 GL_GENERATE_STDINT_H_FALSE='#'
11001 else
11002 GL_GENERATE_STDINT_H_TRUE='#'
11003 GL_GENERATE_STDINT_H_FALSE=
11004 fi
11005
11006
11007
11008
11009
11010 GNULIB_IMAXABS=0;
11011 GNULIB_IMAXDIV=0;
11012 GNULIB_STRTOIMAX=0;
11013 GNULIB_STRTOUMAX=0;
11014 HAVE_DECL_IMAXABS=1;
11015 HAVE_DECL_IMAXDIV=1;
11016 HAVE_DECL_STRTOIMAX=1;
11017 HAVE_DECL_STRTOUMAX=1;
11018 REPLACE_STRTOIMAX=0;
11019 INT32_MAX_LT_INTMAX_MAX=1;
11020 INT64_MAX_EQ_LONG_MAX='defined _LP64';
11021 PRI_MACROS_BROKEN=0;
11022 PRIPTR_PREFIX=__PRIPTR_PREFIX;
11023 UINT32_MAX_LT_UINTMAX_MAX=1;
11024 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040 if test $gl_cv_have_include_next = yes; then
11041 gl_cv_next_inttypes_h='<'inttypes.h'>'
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11044 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11045 if test "${gl_cv_next_inttypes_h+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048
11049 if test $ac_cv_header_inttypes_h = yes; then
11050
11051
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11054 #include <inttypes.h>
11055
11056 _ACEOF
11057 case "$host_os" in
11058 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11059 *) gl_absname_cpp="$ac_cpp" ;;
11060 esac
11061
11062 case "$host_os" in
11063 mingw*)
11064 gl_dirsep_regex='[/\\]'
11065 ;;
11066 *)
11067 gl_dirsep_regex='\/'
11068 ;;
11069 esac
11070 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11071
11072 gl_header_literal_regex=`echo 'inttypes.h' \
11073 | sed -e "$gl_make_literal_regex_sed"`
11074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11076 s|^/[^/]|//&|
11077 p
11078 q
11079 }'
11080 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11081 sed -n "$gl_absolute_header_sed"`'"'
11082 else
11083 gl_cv_next_inttypes_h='<'inttypes.h'>'
11084 fi
11085
11086
11087 fi
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11089 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11090 fi
11091 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
11092
11093 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11094 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11095 gl_next_as_first_directive='<'inttypes.h'>'
11096 else
11097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11098 gl_next_as_first_directive=$gl_cv_next_inttypes_h
11099 fi
11100 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112 case "$host_os" in
11113 mingw*)
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11115 $as_echo_n "checking for 64-bit off_t... " >&6; }
11116 if test "${gl_cv_type_off_t_64+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11121 #include <sys/types.h>
11122 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11123
11124 int
11125 main ()
11126 {
11127
11128 ;
11129 return 0;
11130 }
11131 _ACEOF
11132 if ac_fn_c_try_compile "$LINENO"; then :
11133 gl_cv_type_off_t_64=yes
11134 else
11135 gl_cv_type_off_t_64=no
11136 fi
11137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138
11139 fi
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11141 $as_echo "$gl_cv_type_off_t_64" >&6; }
11142 if test $gl_cv_type_off_t_64 = no; then
11143 WINDOWS_64_BIT_OFF_T=1
11144 else
11145 WINDOWS_64_BIT_OFF_T=0
11146 fi
11147 WINDOWS_64_BIT_ST_SIZE=1
11148 ;;
11149 *)
11150 WINDOWS_64_BIT_OFF_T=0
11151 WINDOWS_64_BIT_ST_SIZE=0
11152 ;;
11153 esac
11154
11155
11156 GNULIB_FCHMODAT=0;
11157 GNULIB_FSTAT=0;
11158 GNULIB_FSTATAT=0;
11159 GNULIB_FUTIMENS=0;
11160 GNULIB_LCHMOD=0;
11161 GNULIB_LSTAT=0;
11162 GNULIB_MKDIRAT=0;
11163 GNULIB_MKFIFO=0;
11164 GNULIB_MKFIFOAT=0;
11165 GNULIB_MKNOD=0;
11166 GNULIB_MKNODAT=0;
11167 GNULIB_STAT=0;
11168 GNULIB_UTIMENSAT=0;
11169 HAVE_FCHMODAT=1;
11170 HAVE_FSTATAT=1;
11171 HAVE_FUTIMENS=1;
11172 HAVE_LCHMOD=1;
11173 HAVE_LSTAT=1;
11174 HAVE_MKDIRAT=1;
11175 HAVE_MKFIFO=1;
11176 HAVE_MKFIFOAT=1;
11177 HAVE_MKNOD=1;
11178 HAVE_MKNODAT=1;
11179 HAVE_UTIMENSAT=1;
11180 REPLACE_FSTAT=0;
11181 REPLACE_FSTATAT=0;
11182 REPLACE_FUTIMENS=0;
11183 REPLACE_LSTAT=0;
11184 REPLACE_MKDIR=0;
11185 REPLACE_MKFIFO=0;
11186 REPLACE_MKNOD=0;
11187 REPLACE_STAT=0;
11188 REPLACE_UTIMENSAT=0;
11189
11190
11191
11192
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11194 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11195 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 rm -f conftest.sym conftest.file
11199 echo >conftest.file
11200 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11201 if test "$cross_compiling" = yes; then :
11202 case "$host_os" in
11203 # Guess yes on glibc systems.
11204 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
11205 # If we don't know, assume the worst.
11206 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
11207 esac
11208
11209 else
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11212 $ac_includes_default
11213 int
11214 main ()
11215 {
11216 struct stat sbuf;
11217 /* Linux will dereference the symlink and fail, as required by
11218 POSIX. That is better in the sense that it means we will not
11219 have to compile and use the lstat wrapper. */
11220 return lstat ("conftest.sym/", &sbuf) == 0;
11221
11222 ;
11223 return 0;
11224 }
11225 _ACEOF
11226 if ac_fn_c_try_run "$LINENO"; then :
11227 gl_cv_func_lstat_dereferences_slashed_symlink=yes
11228 else
11229 gl_cv_func_lstat_dereferences_slashed_symlink=no
11230 fi
11231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11232 conftest.$ac_objext conftest.beam conftest.$ac_ext
11233 fi
11234
11235 else
11236 # If the 'ln -s' command failed, then we probably don't even
11237 # have an lstat function.
11238 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
11239 fi
11240 rm -f conftest.sym conftest.file
11241
11242 fi
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
11244 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11245 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
11246 *yes)
11247
11248 cat >>confdefs.h <<_ACEOF
11249 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11250 _ACEOF
11251
11252 ;;
11253 esac
11254
11255
11256 GNULIB_MKTIME=0;
11257 GNULIB_NANOSLEEP=0;
11258 GNULIB_STRPTIME=0;
11259 GNULIB_TIMEGM=0;
11260 GNULIB_TIME_R=0;
11261 HAVE_DECL_LOCALTIME_R=1;
11262 HAVE_NANOSLEEP=1;
11263 HAVE_STRPTIME=1;
11264 HAVE_TIMEGM=1;
11265 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11266 REPLACE_MKTIME=GNULIB_PORTCHECK;
11267 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11268 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11269
11270
11271
11272
11273
11274
11275 GNULIB_PSELECT=0;
11276 GNULIB_SELECT=0;
11277 HAVE_PSELECT=1;
11278 REPLACE_PSELECT=0;
11279 REPLACE_SELECT=0;
11280
11281
11282
11283
11284
11285
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
11287 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
11288 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294 #include <sys/select.h>
11295 int
11296 main ()
11297 {
11298 struct timeval b;
11299 ;
11300 return 0;
11301 }
11302 _ACEOF
11303 if ac_fn_c_try_compile "$LINENO"; then :
11304 gl_cv_header_sys_select_h_selfcontained=yes
11305 else
11306 gl_cv_header_sys_select_h_selfcontained=no
11307 fi
11308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312 #include <sys/select.h>
11313 int
11314 main ()
11315 {
11316 int memset; int bzero;
11317 ;
11318 return 0;
11319 }
11320
11321 _ACEOF
11322 if ac_fn_c_try_compile "$LINENO"; then :
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325 #include <sys/select.h>
11326 int
11327 main ()
11328 {
11329
11330 #undef memset
11331 #define memset nonexistent_memset
11332 extern
11333 #ifdef __cplusplus
11334 "C"
11335 #endif
11336 void *memset (void *, int, unsigned long);
11337 #undef bzero
11338 #define bzero nonexistent_bzero
11339 extern
11340 #ifdef __cplusplus
11341 "C"
11342 #endif
11343 void bzero (void *, unsigned long);
11344 fd_set fds;
11345 FD_ZERO (&fds);
11346
11347 ;
11348 return 0;
11349 }
11350
11351 _ACEOF
11352 if ac_fn_c_try_link "$LINENO"; then :
11353
11354 else
11355 gl_cv_header_sys_select_h_selfcontained=no
11356 fi
11357 rm -f core conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext conftest.$ac_ext
11359
11360 fi
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 fi
11363
11364 fi
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
11366 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376 if test $gl_cv_have_include_next = yes; then
11377 gl_cv_next_sys_select_h='<'sys/select.h'>'
11378 else
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
11380 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
11381 if test "${gl_cv_next_sys_select_h+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384
11385 if test $ac_cv_header_sys_select_h = yes; then
11386
11387
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11390 #include <sys/select.h>
11391
11392 _ACEOF
11393 case "$host_os" in
11394 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11395 *) gl_absname_cpp="$ac_cpp" ;;
11396 esac
11397
11398 case "$host_os" in
11399 mingw*)
11400 gl_dirsep_regex='[/\\]'
11401 ;;
11402 *)
11403 gl_dirsep_regex='\/'
11404 ;;
11405 esac
11406 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11407
11408 gl_header_literal_regex=`echo 'sys/select.h' \
11409 | sed -e "$gl_make_literal_regex_sed"`
11410 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11411 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11412 s|^/[^/]|//&|
11413 p
11414 q
11415 }'
11416 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11417 sed -n "$gl_absolute_header_sed"`'"'
11418 else
11419 gl_cv_next_sys_select_h='<'sys/select.h'>'
11420 fi
11421
11422
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
11425 $as_echo "$gl_cv_next_sys_select_h" >&6; }
11426 fi
11427 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
11428
11429 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11430 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11431 gl_next_as_first_directive='<'sys/select.h'>'
11432 else
11433 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11434 gl_next_as_first_directive=$gl_cv_next_sys_select_h
11435 fi
11436 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
11437
11438
11439
11440
11441 if test $ac_cv_header_sys_select_h = yes; then
11442 HAVE_SYS_SELECT_H=1
11443 else
11444 HAVE_SYS_SELECT_H=0
11445 fi
11446
11447
11448
11449
11450
11451 if test $ac_cv_header_sys_socket_h != yes; then
11452 for ac_header in winsock2.h
11453 do :
11454 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11455 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
11456 cat >>confdefs.h <<_ACEOF
11457 #define HAVE_WINSOCK2_H 1
11458 _ACEOF
11459
11460 fi
11461
11462 done
11463
11464 fi
11465 if test "$ac_cv_header_winsock2_h" = yes; then
11466 HAVE_WINSOCK2_H=1
11467 UNISTD_H_HAVE_WINSOCK2_H=1
11468 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
11469 else
11470 HAVE_WINSOCK2_H=0
11471 fi
11472
11473
11474
11475
11476
11477
11478
11479
11480 GNULIB_PTHREAD_SIGMASK=0;
11481 GNULIB_RAISE=0;
11482 GNULIB_SIGNAL_H_SIGPIPE=0;
11483 GNULIB_SIGPROCMASK=0;
11484 GNULIB_SIGACTION=0;
11485 HAVE_POSIX_SIGNALBLOCKING=1;
11486 HAVE_PTHREAD_SIGMASK=1;
11487 HAVE_RAISE=1;
11488 HAVE_SIGSET_T=1;
11489 HAVE_SIGINFO_T=1;
11490 HAVE_SIGACTION=1;
11491 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11492
11493 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11494
11495 HAVE_SIGHANDLER_T=1;
11496 REPLACE_PTHREAD_SIGMASK=0;
11497 REPLACE_RAISE=0;
11498
11499
11500
11501
11502
11503
11504 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11505 #include <signal.h>
11506 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11507 #include <sys/types.h>
11508
11509 "
11510 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11511
11512 cat >>confdefs.h <<_ACEOF
11513 #define HAVE_SIGSET_T 1
11514 _ACEOF
11515
11516 gl_cv_type_sigset_t=yes
11517 else
11518 gl_cv_type_sigset_t=no
11519 fi
11520
11521 if test $gl_cv_type_sigset_t != yes; then
11522 HAVE_SIGSET_T=0
11523 fi
11524
11525 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11526 if test "x$ac_cv_type_pid_t" = x""yes; then :
11527
11528 else
11529
11530 cat >>confdefs.h <<_ACEOF
11531 #define pid_t int
11532 _ACEOF
11533
11534 fi
11535
11536
11537
11538 if test $ac_cv_header_sys_socket_h = no; then
11539 for ac_header in ws2tcpip.h
11540 do :
11541 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11542 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
11543 cat >>confdefs.h <<_ACEOF
11544 #define HAVE_WS2TCPIP_H 1
11545 _ACEOF
11546
11547 fi
11548
11549 done
11550
11551 fi
11552
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11554 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11555 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560
11561 #include <stdbool.h>
11562 #ifndef bool
11563 "error: bool is not defined"
11564 #endif
11565 #ifndef false
11566 "error: false is not defined"
11567 #endif
11568 #if false
11569 "error: false is not 0"
11570 #endif
11571 #ifndef true
11572 "error: true is not defined"
11573 #endif
11574 #if true != 1
11575 "error: true is not 1"
11576 #endif
11577 #ifndef __bool_true_false_are_defined
11578 "error: __bool_true_false_are_defined is not defined"
11579 #endif
11580
11581 struct s { _Bool s: 1; _Bool t; } s;
11582
11583 char a[true == 1 ? 1 : -1];
11584 char b[false == 0 ? 1 : -1];
11585 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11586 char d[(bool) 0.5 == true ? 1 : -1];
11587 /* See body of main program for 'e'. */
11588 char f[(_Bool) 0.0 == false ? 1 : -1];
11589 char g[true];
11590 char h[sizeof (_Bool)];
11591 char i[sizeof s.t];
11592 enum { j = false, k = true, l = false * true, m = true * 256 };
11593 /* The following fails for
11594 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11595 _Bool n[m];
11596 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11597 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11598 /* Catch a bug in an HP-UX C compiler. See
11599 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11600 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11601 */
11602 _Bool q = true;
11603 _Bool *pq = &q;
11604
11605 int
11606 main ()
11607 {
11608
11609 bool e = &s;
11610 *pq |= q;
11611 *pq |= ! q;
11612 /* Refer to every declared value, to avoid compiler optimizations. */
11613 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11614 + !m + !n + !o + !p + !q + !pq);
11615
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_compile "$LINENO"; then :
11621 ac_cv_header_stdbool_h=yes
11622 else
11623 ac_cv_header_stdbool_h=no
11624 fi
11625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11626 fi
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11628 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11629 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11630 if test "x$ac_cv_type__Bool" = x""yes; then :
11631
11632 cat >>confdefs.h <<_ACEOF
11633 #define HAVE__BOOL 1
11634 _ACEOF
11635
11636
11637 fi
11638
11639
11640
11641 REPLACE_NULL=0;
11642 HAVE_WCHAR_T=1;
11643
11644
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11646 $as_echo_n "checking for wchar_t... " >&6; }
11647 if test "${gt_cv_c_wchar_t+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 #include <stddef.h>
11653 wchar_t foo = (wchar_t)'\0';
11654 int
11655 main ()
11656 {
11657
11658 ;
11659 return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_compile "$LINENO"; then :
11663 gt_cv_c_wchar_t=yes
11664 else
11665 gt_cv_c_wchar_t=no
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11670 $as_echo "$gt_cv_c_wchar_t" >&6; }
11671 if test $gt_cv_c_wchar_t = yes; then
11672
11673 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11674
11675 fi
11676
11677
11678 GNULIB_DPRINTF=0;
11679 GNULIB_FCLOSE=0;
11680 GNULIB_FDOPEN=0;
11681 GNULIB_FFLUSH=0;
11682 GNULIB_FGETC=0;
11683 GNULIB_FGETS=0;
11684 GNULIB_FOPEN=0;
11685 GNULIB_FPRINTF=0;
11686 GNULIB_FPRINTF_POSIX=0;
11687 GNULIB_FPURGE=0;
11688 GNULIB_FPUTC=0;
11689 GNULIB_FPUTS=0;
11690 GNULIB_FREAD=0;
11691 GNULIB_FREOPEN=0;
11692 GNULIB_FSCANF=0;
11693 GNULIB_FSEEK=0;
11694 GNULIB_FSEEKO=0;
11695 GNULIB_FTELL=0;
11696 GNULIB_FTELLO=0;
11697 GNULIB_FWRITE=0;
11698 GNULIB_GETC=0;
11699 GNULIB_GETCHAR=0;
11700 GNULIB_GETDELIM=0;
11701 GNULIB_GETLINE=0;
11702 GNULIB_OBSTACK_PRINTF=0;
11703 GNULIB_OBSTACK_PRINTF_POSIX=0;
11704 GNULIB_PCLOSE=0;
11705 GNULIB_PERROR=0;
11706 GNULIB_POPEN=0;
11707 GNULIB_PRINTF=0;
11708 GNULIB_PRINTF_POSIX=0;
11709 GNULIB_PUTC=0;
11710 GNULIB_PUTCHAR=0;
11711 GNULIB_PUTS=0;
11712 GNULIB_REMOVE=0;
11713 GNULIB_RENAME=0;
11714 GNULIB_RENAMEAT=0;
11715 GNULIB_SCANF=0;
11716 GNULIB_SNPRINTF=0;
11717 GNULIB_SPRINTF_POSIX=0;
11718 GNULIB_STDIO_H_NONBLOCKING=0;
11719 GNULIB_STDIO_H_SIGPIPE=0;
11720 GNULIB_TMPFILE=0;
11721 GNULIB_VASPRINTF=0;
11722 GNULIB_VFSCANF=0;
11723 GNULIB_VSCANF=0;
11724 GNULIB_VDPRINTF=0;
11725 GNULIB_VFPRINTF=0;
11726 GNULIB_VFPRINTF_POSIX=0;
11727 GNULIB_VPRINTF=0;
11728 GNULIB_VPRINTF_POSIX=0;
11729 GNULIB_VSNPRINTF=0;
11730 GNULIB_VSPRINTF_POSIX=0;
11731 HAVE_DECL_FPURGE=1;
11732 HAVE_DECL_FSEEKO=1;
11733 HAVE_DECL_FTELLO=1;
11734 HAVE_DECL_GETDELIM=1;
11735 HAVE_DECL_GETLINE=1;
11736 HAVE_DECL_OBSTACK_PRINTF=1;
11737 HAVE_DECL_SNPRINTF=1;
11738 HAVE_DECL_VSNPRINTF=1;
11739 HAVE_DPRINTF=1;
11740 HAVE_FSEEKO=1;
11741 HAVE_FTELLO=1;
11742 HAVE_PCLOSE=1;
11743 HAVE_POPEN=1;
11744 HAVE_RENAMEAT=1;
11745 HAVE_VASPRINTF=1;
11746 HAVE_VDPRINTF=1;
11747 REPLACE_DPRINTF=0;
11748 REPLACE_FCLOSE=0;
11749 REPLACE_FDOPEN=0;
11750 REPLACE_FFLUSH=0;
11751 REPLACE_FOPEN=0;
11752 REPLACE_FPRINTF=0;
11753 REPLACE_FPURGE=0;
11754 REPLACE_FREOPEN=0;
11755 REPLACE_FSEEK=0;
11756 REPLACE_FSEEKO=0;
11757 REPLACE_FTELL=0;
11758 REPLACE_FTELLO=0;
11759 REPLACE_GETDELIM=0;
11760 REPLACE_GETLINE=0;
11761 REPLACE_OBSTACK_PRINTF=0;
11762 REPLACE_PERROR=0;
11763 REPLACE_POPEN=0;
11764 REPLACE_PRINTF=0;
11765 REPLACE_REMOVE=0;
11766 REPLACE_RENAME=0;
11767 REPLACE_RENAMEAT=0;
11768 REPLACE_SNPRINTF=0;
11769 REPLACE_SPRINTF=0;
11770 REPLACE_STDIO_READ_FUNCS=0;
11771 REPLACE_STDIO_WRITE_FUNCS=0;
11772 REPLACE_TMPFILE=0;
11773 REPLACE_VASPRINTF=0;
11774 REPLACE_VDPRINTF=0;
11775 REPLACE_VFPRINTF=0;
11776 REPLACE_VPRINTF=0;
11777 REPLACE_VSNPRINTF=0;
11778 REPLACE_VSPRINTF=0;
11779
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11781 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11782 if test "${ac_cv_struct_tm+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <sys/types.h>
11788 #include <time.h>
11789
11790 int
11791 main ()
11792 {
11793 struct tm tm;
11794 int *p = &tm.tm_sec;
11795 return !p;
11796 ;
11797 return 0;
11798 }
11799 _ACEOF
11800 if ac_fn_c_try_compile "$LINENO"; then :
11801 ac_cv_struct_tm=time.h
11802 else
11803 ac_cv_struct_tm=sys/time.h
11804 fi
11805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11808 $as_echo "$ac_cv_struct_tm" >&6; }
11809 if test $ac_cv_struct_tm = sys/time.h; then
11810
11811 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11812
11813 fi
11814
11815 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11816 #include <$ac_cv_struct_tm>
11817
11818 "
11819 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
11820
11821 cat >>confdefs.h <<_ACEOF
11822 #define HAVE_STRUCT_TM_TM_ZONE 1
11823 _ACEOF
11824
11825
11826 fi
11827
11828 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11829
11830 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11831
11832 else
11833 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
11834 "
11835 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
11836 ac_have_decl=1
11837 else
11838 ac_have_decl=0
11839 fi
11840
11841 cat >>confdefs.h <<_ACEOF
11842 #define HAVE_DECL_TZNAME $ac_have_decl
11843 _ACEOF
11844
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11846 $as_echo_n "checking for tzname... " >&6; }
11847 if test "${ac_cv_var_tzname+set}" = set; then :
11848 $as_echo_n "(cached) " >&6
11849 else
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852 #include <time.h>
11853 #if !HAVE_DECL_TZNAME
11854 extern char *tzname[];
11855 #endif
11856
11857 int
11858 main ()
11859 {
11860 return tzname[0][0];
11861 ;
11862 return 0;
11863 }
11864 _ACEOF
11865 if ac_fn_c_try_link "$LINENO"; then :
11866 ac_cv_var_tzname=yes
11867 else
11868 ac_cv_var_tzname=no
11869 fi
11870 rm -f core conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11872 fi
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11874 $as_echo "$ac_cv_var_tzname" >&6; }
11875 if test $ac_cv_var_tzname = yes; then
11876
11877 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11878
11879 fi
11880 fi
11881
11882
11883 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
11884 "
11885 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
11886
11887 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
11888
11889 fi
11890
11891
11892
11893
11894
11895
11896 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
11897 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
11898 ac_have_decl=1
11899 else
11900 ac_have_decl=0
11901 fi
11902
11903 cat >>confdefs.h <<_ACEOF
11904 #define HAVE_DECL_STRTOIMAX $ac_have_decl
11905 _ACEOF
11906
11907
11908
11909 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
11910 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
11911 ac_have_decl=1
11912 else
11913 ac_have_decl=0
11914 fi
11915
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_DECL_STRTOUMAX $ac_have_decl
11918 _ACEOF
11919
11920
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11923 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11924 if test "${ac_cv_header_stat_broken+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929 #include <sys/types.h>
11930 #include <sys/stat.h>
11931
11932 #if defined S_ISBLK && defined S_IFDIR
11933 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11934 #endif
11935
11936 #if defined S_ISBLK && defined S_IFCHR
11937 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11938 #endif
11939
11940 #if defined S_ISLNK && defined S_IFREG
11941 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11942 #endif
11943
11944 #if defined S_ISSOCK && defined S_IFREG
11945 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11946 #endif
11947
11948 _ACEOF
11949 if ac_fn_c_try_compile "$LINENO"; then :
11950 ac_cv_header_stat_broken=no
11951 else
11952 ac_cv_header_stat_broken=yes
11953 fi
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11957 $as_echo "$ac_cv_header_stat_broken" >&6; }
11958 if test $ac_cv_header_stat_broken = yes; then
11959
11960 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11961
11962 fi
11963
11964
11965
11966 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11967 if test "x$ac_cv_type_mode_t" = x""yes; then :
11968
11969 else
11970
11971 cat >>confdefs.h <<_ACEOF
11972 #define mode_t int
11973 _ACEOF
11974
11975 fi
11976
11977
11978
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11980 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11981 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11986 #include <time.h>
11987
11988 int
11989 main ()
11990 {
11991 static struct timespec x; x.tv_sec = x.tv_nsec;
11992 ;
11993 return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_compile "$LINENO"; then :
11997 gl_cv_sys_struct_timespec_in_time_h=yes
11998 else
11999 gl_cv_sys_struct_timespec_in_time_h=no
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 fi
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12004 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12005
12006 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12007 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12008 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12009 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12010 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12013 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12014 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019 #include <sys/time.h>
12020
12021 int
12022 main ()
12023 {
12024 static struct timespec x; x.tv_sec = x.tv_nsec;
12025 ;
12026 return 0;
12027 }
12028 _ACEOF
12029 if ac_fn_c_try_compile "$LINENO"; then :
12030 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12031 else
12032 gl_cv_sys_struct_timespec_in_sys_time_h=no
12033 fi
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12037 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12038 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12039 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12042 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12043 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12048 #include <pthread.h>
12049
12050 int
12051 main ()
12052 {
12053 static struct timespec x; x.tv_sec = x.tv_nsec;
12054 ;
12055 return 0;
12056 }
12057 _ACEOF
12058 if ac_fn_c_try_compile "$LINENO"; then :
12059 gl_cv_sys_struct_timespec_in_pthread_h=yes
12060 else
12061 gl_cv_sys_struct_timespec_in_pthread_h=no
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064 fi
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12066 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12067 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12068 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12069 fi
12070 fi
12071 fi
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087 if test $gl_cv_have_include_next = yes; then
12088 gl_cv_next_time_h='<'time.h'>'
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12091 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12092 if test "${gl_cv_next_time_h+set}" = set; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12098 #include <time.h>
12099
12100 _ACEOF
12101 case "$host_os" in
12102 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12103 *) gl_absname_cpp="$ac_cpp" ;;
12104 esac
12105
12106 case "$host_os" in
12107 mingw*)
12108 gl_dirsep_regex='[/\\]'
12109 ;;
12110 *)
12111 gl_dirsep_regex='\/'
12112 ;;
12113 esac
12114 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12115
12116 gl_header_literal_regex=`echo 'time.h' \
12117 | sed -e "$gl_make_literal_regex_sed"`
12118 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12119 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12120 s|^/[^/]|//&|
12121 p
12122 q
12123 }'
12124 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12125 sed -n "$gl_absolute_header_sed"`'"'
12126
12127
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12130 $as_echo "$gl_cv_next_time_h" >&6; }
12131 fi
12132 NEXT_TIME_H=$gl_cv_next_time_h
12133
12134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12136 gl_next_as_first_directive='<'time.h'>'
12137 else
12138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12139 gl_next_as_first_directive=$gl_cv_next_time_h
12140 fi
12141 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
12158 $as_echo_n "checking whether the utimes function works... " >&6; }
12159 if test "${gl_cv_func_working_utimes+set}" = set; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162
12163 if test "$cross_compiling" = yes; then :
12164 gl_cv_func_working_utimes=no
12165 else
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168
12169 #include <sys/types.h>
12170 #include <sys/stat.h>
12171 #include <fcntl.h>
12172 #include <sys/time.h>
12173 #include <time.h>
12174 #include <unistd.h>
12175 #include <stdlib.h>
12176 #include <stdio.h>
12177 #include <utime.h>
12178
12179 static int
12180 inorder (time_t a, time_t b, time_t c)
12181 {
12182 return a <= b && b <= c;
12183 }
12184
12185 int
12186 main ()
12187 {
12188 int result = 0;
12189 char const *file = "conftest.utimes";
12190 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
12191
12192 /* Test whether utimes() essentially works. */
12193 {
12194 struct stat sbuf;
12195 FILE *f = fopen (file, "w");
12196 if (f == NULL)
12197 result |= 1;
12198 else if (fclose (f) != 0)
12199 result |= 1;
12200 else if (utimes (file, timeval) != 0)
12201 result |= 2;
12202 else if (lstat (file, &sbuf) != 0)
12203 result |= 1;
12204 else if (!(sbuf.st_atime == timeval[0].tv_sec
12205 && sbuf.st_mtime == timeval[1].tv_sec))
12206 result |= 4;
12207 if (unlink (file) != 0)
12208 result |= 1;
12209 }
12210
12211 /* Test whether utimes() with a NULL argument sets the file's timestamp
12212 to the current time. Use 'fstat' as well as 'time' to
12213 determine the "current" time, to accommodate NFS file systems
12214 if there is a time skew between the host and the NFS server. */
12215 {
12216 int fd = open (file, O_WRONLY|O_CREAT, 0644);
12217 if (fd < 0)
12218 result |= 1;
12219 else
12220 {
12221 time_t t0, t2;
12222 struct stat st0, st1, st2;
12223 if (time (&t0) == (time_t) -1)
12224 result |= 1;
12225 else if (fstat (fd, &st0) != 0)
12226 result |= 1;
12227 else if (utimes (file, timeval) != 0)
12228 result |= 2;
12229 else if (utimes (file, NULL) != 0)
12230 result |= 8;
12231 else if (fstat (fd, &st1) != 0)
12232 result |= 1;
12233 else if (write (fd, "\n", 1) != 1)
12234 result |= 1;
12235 else if (fstat (fd, &st2) != 0)
12236 result |= 1;
12237 else if (time (&t2) == (time_t) -1)
12238 result |= 1;
12239 else
12240 {
12241 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
12242 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
12243 if (! (st1.st_atime == st1.st_mtime))
12244 result |= 16;
12245 if (! (m_ok_POSIX || m_ok_NFS))
12246 result |= 32;
12247 }
12248 if (close (fd) != 0)
12249 result |= 1;
12250 }
12251 if (unlink (file) != 0)
12252 result |= 1;
12253 }
12254
12255 /* Test whether utimes() with a NULL argument works on read-only files. */
12256 {
12257 int fd = open (file, O_WRONLY|O_CREAT, 0444);
12258 if (fd < 0)
12259 result |= 1;
12260 else if (close (fd) != 0)
12261 result |= 1;
12262 else if (utimes (file, NULL) != 0)
12263 result |= 64;
12264 if (unlink (file) != 0)
12265 result |= 1;
12266 }
12267
12268 return result;
12269 }
12270
12271 _ACEOF
12272 if ac_fn_c_try_run "$LINENO"; then :
12273 gl_cv_func_working_utimes=yes
12274 else
12275 gl_cv_func_working_utimes=no
12276 fi
12277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12278 conftest.$ac_objext conftest.beam conftest.$ac_ext
12279 fi
12280
12281 fi
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
12283 $as_echo "$gl_cv_func_working_utimes" >&6; }
12284
12285 if test $gl_cv_func_working_utimes = yes; then
12286
12287 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
12288
12289 fi
12290
12291
12292
12293
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
12296 $as_echo_n "checking for struct utimbuf... " >&6; }
12297 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12302 #if HAVE_SYS_TIME_H
12303 #include <sys/time.h>
12304 #endif
12305 #include <time.h>
12306 #ifdef HAVE_UTIME_H
12307 #include <utime.h>
12308 #endif
12309
12310 int
12311 main ()
12312 {
12313 static struct utimbuf x; x.actime = x.modtime;
12314 ;
12315 return 0;
12316 }
12317 _ACEOF
12318 if ac_fn_c_try_compile "$LINENO"; then :
12319 gl_cv_sys_struct_utimbuf=yes
12320 else
12321 gl_cv_sys_struct_utimbuf=no
12322 fi
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
12326 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
12327
12328 if test $gl_cv_sys_struct_utimbuf = yes; then
12329
12330 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
12331
12332 fi
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345 if false; then
12346 GL_COND_LIBTOOL_TRUE=
12347 GL_COND_LIBTOOL_FALSE='#'
12348 else
12349 GL_COND_LIBTOOL_TRUE='#'
12350 GL_COND_LIBTOOL_FALSE=
12351 fi
12352
12353 gl_cond_libtool=false
12354 gl_libdeps=
12355 gl_ltlibdeps=
12356 gl_m4_base='m4'
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366 gl_source_base='lib'
12367
12368
12369 if test $ac_cv_func_alloca_works = no; then
12370 :
12371 fi
12372
12373 # Define an additional variable used in the Makefile substitution.
12374 if test $ac_cv_working_alloca_h = yes; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12376 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12377 if test "${gl_cv_rpl_alloca+set}" = set; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383
12384 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12385 Need own alloca
12386 #endif
12387
12388 _ACEOF
12389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12390 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12391 gl_cv_rpl_alloca=yes
12392 else
12393 gl_cv_rpl_alloca=no
12394 fi
12395 rm -f conftest*
12396
12397
12398 fi
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12400 $as_echo "$gl_cv_rpl_alloca" >&6; }
12401 if test $gl_cv_rpl_alloca = yes; then
12402
12403 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12404
12405 ALLOCA_H=alloca.h
12406 else
12407 ALLOCA_H=
12408 fi
12409 else
12410 ALLOCA_H=alloca.h
12411 fi
12412
12413 if test -n "$ALLOCA_H"; then
12414 GL_GENERATE_ALLOCA_H_TRUE=
12415 GL_GENERATE_ALLOCA_H_FALSE='#'
12416 else
12417 GL_GENERATE_ALLOCA_H_TRUE='#'
12418 GL_GENERATE_ALLOCA_H_FALSE=
12419 fi
12420
12421
12422
12423
12424
12425
12426 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12427 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12428
12429 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
12430 # programs in the package would end up linked with that potentially-shared
12431 # library, inducing unnecessary run-time overhead.
12432 LIB_CLOCK_GETTIME=
12433
12434 gl_saved_libs=$LIBS
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12436 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12437 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 ac_func_search_save_LIBS=$LIBS
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12447 #ifdef __cplusplus
12448 extern "C"
12449 #endif
12450 char clock_gettime ();
12451 int
12452 main ()
12453 {
12454 return clock_gettime ();
12455 ;
12456 return 0;
12457 }
12458 _ACEOF
12459 for ac_lib in '' rt posix4; do
12460 if test -z "$ac_lib"; then
12461 ac_res="none required"
12462 else
12463 ac_res=-l$ac_lib
12464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12465 fi
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_search_clock_gettime=$ac_res
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext
12471 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12472 break
12473 fi
12474 done
12475 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12476
12477 else
12478 ac_cv_search_clock_gettime=no
12479 fi
12480 rm conftest.$ac_ext
12481 LIBS=$ac_func_search_save_LIBS
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12484 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12485 ac_res=$ac_cv_search_clock_gettime
12486 if test "$ac_res" != no; then :
12487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12488 test "$ac_cv_search_clock_gettime" = "none required" ||
12489 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
12490 fi
12491
12492 for ac_func in clock_gettime clock_settime
12493 do :
12494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12496 eval as_val=\$$as_ac_var
12497 if test "x$as_val" = x""yes; then :
12498 cat >>confdefs.h <<_ACEOF
12499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12500 _ACEOF
12501
12502 fi
12503 done
12504
12505 LIBS=$gl_saved_libs
12506
12507
12508
12509
12510 :
12511
12512
12513
12514
12515 :
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12532
12533
12534 if test $HAVE_DUP2 = 1; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12536 $as_echo_n "checking whether dup2 works... " >&6; }
12537 if test "${gl_cv_func_dup2_works+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 if test "$cross_compiling" = yes; then :
12541 case "$host_os" in
12542 mingw*) # on this platform, dup2 always returns 0 for success
12543 gl_cv_func_dup2_works="guessing no" ;;
12544 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
12545 gl_cv_func_dup2_works="guessing no" ;;
12546 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12547 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12548 gl_cv_func_dup2_works="guessing no" ;;
12549 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12550 gl_cv_func_dup2_works="guessing no" ;;
12551 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
12552 gl_cv_func_dup2_works="guessing no" ;;
12553 *) gl_cv_func_dup2_works="guessing yes" ;;
12554 esac
12555 else
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558
12559 #include <unistd.h>
12560 #include <fcntl.h>
12561 #include <errno.h>
12562 int
12563 main ()
12564 {
12565 int result = 0;
12566 #ifdef FD_CLOEXEC
12567 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
12568 result |= 1;
12569 #endif
12570 if (dup2 (1, 1) == 0)
12571 result |= 2;
12572 #ifdef FD_CLOEXEC
12573 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
12574 result |= 4;
12575 #endif
12576 close (0);
12577 if (dup2 (0, 0) != -1)
12578 result |= 8;
12579 /* Many gnulib modules require POSIX conformance of EBADF. */
12580 if (dup2 (2, 1000000) == -1 && errno != EBADF)
12581 result |= 16;
12582 return result;
12583
12584 ;
12585 return 0;
12586 }
12587
12588 _ACEOF
12589 if ac_fn_c_try_run "$LINENO"; then :
12590 gl_cv_func_dup2_works=yes
12591 else
12592 gl_cv_func_dup2_works=no
12593 fi
12594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12595 conftest.$ac_objext conftest.beam conftest.$ac_ext
12596 fi
12597
12598
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12601 $as_echo "$gl_cv_func_dup2_works" >&6; }
12602 case "$gl_cv_func_dup2_works" in
12603 *yes) ;;
12604 *)
12605 REPLACE_DUP2=1
12606 ;;
12607 esac
12608 fi
12609
12610
12611 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
12612
12613
12614
12615
12616
12617
12618
12619
12620 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
12621
12622
12623 fi
12624
12625
12626
12627
12628
12629 GNULIB_DUP2=1
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641 # Persuade glibc <stdlib.h> to declare getloadavg().
12642
12643
12644 gl_save_LIBS=$LIBS
12645
12646 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
12647 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
12648 HAVE_GETLOADAVG=1
12649 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12650 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12651
12652 else
12653 gl_func_getloadavg_done=no
12654
12655 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12656 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12657 # to get the right answer into the cache.
12658 # For kstat on solaris, we need to test for libelf and libkvm to force the
12659 # definition of SVR4 below.
12660 if test $gl_func_getloadavg_done = no; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12662 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12663 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 ac_check_lib_save_LIBS=$LIBS
12667 LIBS="-lelf $LIBS"
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670
12671 /* Override any GCC internal prototype to avoid an error.
12672 Use char because int might match the return type of a GCC
12673 builtin and then its argument prototype would still apply. */
12674 #ifdef __cplusplus
12675 extern "C"
12676 #endif
12677 char elf_begin ();
12678 int
12679 main ()
12680 {
12681 return elf_begin ();
12682 ;
12683 return 0;
12684 }
12685 _ACEOF
12686 if ac_fn_c_try_link "$LINENO"; then :
12687 ac_cv_lib_elf_elf_begin=yes
12688 else
12689 ac_cv_lib_elf_elf_begin=no
12690 fi
12691 rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12696 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12697 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12698 LIBS="-lelf $LIBS"
12699 fi
12700
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12702 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12703 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 ac_check_lib_save_LIBS=$LIBS
12707 LIBS="-lkvm $LIBS"
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710
12711 /* Override any GCC internal prototype to avoid an error.
12712 Use char because int might match the return type of a GCC
12713 builtin and then its argument prototype would still apply. */
12714 #ifdef __cplusplus
12715 extern "C"
12716 #endif
12717 char kvm_open ();
12718 int
12719 main ()
12720 {
12721 return kvm_open ();
12722 ;
12723 return 0;
12724 }
12725 _ACEOF
12726 if ac_fn_c_try_link "$LINENO"; then :
12727 ac_cv_lib_kvm_kvm_open=yes
12728 else
12729 ac_cv_lib_kvm_kvm_open=no
12730 fi
12731 rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12736 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12737 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12738 LIBS="-lkvm $LIBS"
12739 fi
12740
12741 # Check for the 4.4BSD definition of getloadavg.
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12743 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12744 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 ac_check_lib_save_LIBS=$LIBS
12748 LIBS="-lutil $LIBS"
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751
12752 /* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
12755 #ifdef __cplusplus
12756 extern "C"
12757 #endif
12758 char getloadavg ();
12759 int
12760 main ()
12761 {
12762 return getloadavg ();
12763 ;
12764 return 0;
12765 }
12766 _ACEOF
12767 if ac_fn_c_try_link "$LINENO"; then :
12768 ac_cv_lib_util_getloadavg=yes
12769 else
12770 ac_cv_lib_util_getloadavg=no
12771 fi
12772 rm -f core conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12775 fi
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12777 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12778 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12779 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
12780 fi
12781
12782 fi
12783
12784 if test $gl_func_getloadavg_done = no; then
12785 # There is a commonly available library for RS/6000 AIX.
12786 # Since it is not a standard part of AIX, it might be installed locally.
12787 gl_getloadavg_LIBS=$LIBS
12788 LIBS="-L/usr/local/lib $LIBS"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12790 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12791 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 ac_check_lib_save_LIBS=$LIBS
12795 LIBS="-lgetloadavg $LIBS"
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798
12799 /* Override any GCC internal prototype to avoid an error.
12800 Use char because int might match the return type of a GCC
12801 builtin and then its argument prototype would still apply. */
12802 #ifdef __cplusplus
12803 extern "C"
12804 #endif
12805 char getloadavg ();
12806 int
12807 main ()
12808 {
12809 return getloadavg ();
12810 ;
12811 return 0;
12812 }
12813 _ACEOF
12814 if ac_fn_c_try_link "$LINENO"; then :
12815 ac_cv_lib_getloadavg_getloadavg=yes
12816 else
12817 ac_cv_lib_getloadavg_getloadavg=no
12818 fi
12819 rm -f core conftest.err conftest.$ac_objext \
12820 conftest$ac_exeext conftest.$ac_ext
12821 LIBS=$ac_check_lib_save_LIBS
12822 fi
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12824 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12825 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12826 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
12827 else
12828 LIBS=$gl_getloadavg_LIBS
12829 fi
12830
12831 fi
12832
12833 # Set up the replacement function if necessary.
12834 if test $gl_func_getloadavg_done = no; then
12835 HAVE_GETLOADAVG=0
12836
12837 # Solaris has libkstat which does not require root.
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12839 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12840 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-lkstat $LIBS"
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847
12848 /* Override any GCC internal prototype to avoid an error.
12849 Use char because int might match the return type of a GCC
12850 builtin and then its argument prototype would still apply. */
12851 #ifdef __cplusplus
12852 extern "C"
12853 #endif
12854 char kstat_open ();
12855 int
12856 main ()
12857 {
12858 return kstat_open ();
12859 ;
12860 return 0;
12861 }
12862 _ACEOF
12863 if ac_fn_c_try_link "$LINENO"; then :
12864 ac_cv_lib_kstat_kstat_open=yes
12865 else
12866 ac_cv_lib_kstat_kstat_open=no
12867 fi
12868 rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12870 LIBS=$ac_check_lib_save_LIBS
12871 fi
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12873 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12874 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12875 cat >>confdefs.h <<_ACEOF
12876 #define HAVE_LIBKSTAT 1
12877 _ACEOF
12878
12879 LIBS="-lkstat $LIBS"
12880
12881 fi
12882
12883 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
12884
12885 # AIX has libperfstat which does not require root
12886 if test $gl_func_getloadavg_done = no; then
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
12888 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
12889 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 ac_check_lib_save_LIBS=$LIBS
12893 LIBS="-lperfstat $LIBS"
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12896
12897 /* Override any GCC internal prototype to avoid an error.
12898 Use char because int might match the return type of a GCC
12899 builtin and then its argument prototype would still apply. */
12900 #ifdef __cplusplus
12901 extern "C"
12902 #endif
12903 char perfstat_cpu_total ();
12904 int
12905 main ()
12906 {
12907 return perfstat_cpu_total ();
12908 ;
12909 return 0;
12910 }
12911 _ACEOF
12912 if ac_fn_c_try_link "$LINENO"; then :
12913 ac_cv_lib_perfstat_perfstat_cpu_total=yes
12914 else
12915 ac_cv_lib_perfstat_perfstat_cpu_total=no
12916 fi
12917 rm -f core conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12919 LIBS=$ac_check_lib_save_LIBS
12920 fi
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
12922 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
12923 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_LIBPERFSTAT 1
12926 _ACEOF
12927
12928 LIBS="-lperfstat $LIBS"
12929
12930 fi
12931
12932 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
12933 fi
12934
12935 if test $gl_func_getloadavg_done = no; then
12936 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12937 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12938 gl_func_getloadavg_done=yes
12939
12940 $as_echo "#define DGUX 1" >>confdefs.h
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12943 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12944 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 ac_check_lib_save_LIBS=$LIBS
12948 LIBS="-ldgc $LIBS"
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951
12952 /* Override any GCC internal prototype to avoid an error.
12953 Use char because int might match the return type of a GCC
12954 builtin and then its argument prototype would still apply. */
12955 #ifdef __cplusplus
12956 extern "C"
12957 #endif
12958 char dg_sys_info ();
12959 int
12960 main ()
12961 {
12962 return dg_sys_info ();
12963 ;
12964 return 0;
12965 }
12966 _ACEOF
12967 if ac_fn_c_try_link "$LINENO"; then :
12968 ac_cv_lib_dgc_dg_sys_info=yes
12969 else
12970 ac_cv_lib_dgc_dg_sys_info=no
12971 fi
12972 rm -f core conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext conftest.$ac_ext
12974 LIBS=$ac_check_lib_save_LIBS
12975 fi
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12977 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12978 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12979 cat >>confdefs.h <<_ACEOF
12980 #define HAVE_LIBDGC 1
12981 _ACEOF
12982
12983 LIBS="-ldgc $LIBS"
12984
12985 fi
12986
12987 fi
12988
12989
12990 fi
12991 fi
12992 fi
12993
12994
12995 if test "x$gl_save_LIBS" = x; then
12996 GETLOADAVG_LIBS=$LIBS
12997 else
12998 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
12999 fi
13000 LIBS=$gl_save_LIBS
13001
13002
13003 # Test whether the system declares getloadavg. Solaris has the function
13004 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
13005 for ac_header in sys/loadavg.h
13006 do :
13007 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
13008 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_SYS_LOADAVG_H 1
13011 _ACEOF
13012
13013 fi
13014
13015 done
13016
13017 if test $ac_cv_header_sys_loadavg_h = yes; then
13018 HAVE_SYS_LOADAVG_H=1
13019 else
13020 HAVE_SYS_LOADAVG_H=0
13021 fi
13022 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
13023 # include <sys/loadavg.h>
13024 #endif
13025 #include <stdlib.h>
13026 "
13027 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
13028
13029 else
13030 HAVE_DECL_GETLOADAVG=0
13031 fi
13032
13033
13034 if test $HAVE_GETLOADAVG = 0; then
13035
13036
13037
13038
13039
13040
13041
13042
13043 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
13044
13045
13046 # Figure out what our getloadavg.c needs.
13047
13048
13049
13050 # On HPUX9, an unprivileged user can get load averages this way.
13051 if test $gl_func_getloadavg_done = no; then
13052 for ac_func in pstat_getdynamic
13053 do :
13054 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13055 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
13056 cat >>confdefs.h <<_ACEOF
13057 #define HAVE_PSTAT_GETDYNAMIC 1
13058 _ACEOF
13059 gl_func_getloadavg_done=yes
13060 fi
13061 done
13062
13063 fi
13064
13065 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13066 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13067 # Irix 4.0.5F has the header but not the library.
13068 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13069 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13070 gl_func_getloadavg_done=yes
13071
13072 $as_echo "#define SVR4 1" >>confdefs.h
13073
13074 fi
13075
13076 if test $gl_func_getloadavg_done = no; then
13077 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13078 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
13079 gl_func_getloadavg_done=yes
13080
13081 $as_echo "#define UMAX 1" >>confdefs.h
13082
13083
13084 $as_echo "#define UMAX4_3 1" >>confdefs.h
13085
13086 fi
13087
13088
13089 fi
13090
13091 if test $gl_func_getloadavg_done = no; then
13092 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13093 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
13094 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
13095
13096 fi
13097
13098
13099 fi
13100
13101 if test $gl_func_getloadavg_done = no; then
13102 for ac_header in mach/mach.h
13103 do :
13104 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13105 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
13106 cat >>confdefs.h <<_ACEOF
13107 #define HAVE_MACH_MACH_H 1
13108 _ACEOF
13109
13110 fi
13111
13112 done
13113
13114 fi
13115
13116 for ac_header in nlist.h
13117 do :
13118 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13119 if test "x$ac_cv_header_nlist_h" = x""yes; then :
13120 cat >>confdefs.h <<_ACEOF
13121 #define HAVE_NLIST_H 1
13122 _ACEOF
13123 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13124 "
13125 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
13126
13127 cat >>confdefs.h <<_ACEOF
13128 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13129 _ACEOF
13130
13131
13132 fi
13133
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <nlist.h>
13137 int
13138 main ()
13139 {
13140 struct nlist x;
13141 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
13142 x.n_un.n_name = "";
13143 #else
13144 x.n_name = "";
13145 #endif
13146 ;
13147 return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151
13152 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
13153
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157
13158 fi
13159
13160 done
13161
13162 fi
13163
13164
13165
13166
13167
13168 GNULIB_GETLOADAVG=1
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179 if test $REPLACE_GETOPT = 1; then
13180
13181
13182
13183
13184
13185
13186
13187
13188 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13199
13200
13201
13202
13203 GNULIB_GL_UNISTD_H_GETOPT=1
13204 fi
13205
13206
13207
13208
13209
13210
13211
13212 REPLACE_GETOPT=0
13213 if test -n "$gl_replace_getopt"; then
13214 REPLACE_GETOPT=1
13215 fi
13216
13217 if test $REPLACE_GETOPT = 1; then
13218
13219 GETOPT_H=getopt.h
13220
13221 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13222
13223
13224
13225 fi
13226
13227 if test $REPLACE_GETOPT = 1; then
13228
13229
13230
13231
13232
13233
13234
13235
13236 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13247
13248
13249
13250
13251 GNULIB_GL_UNISTD_H_GETOPT=1
13252 fi
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265 gl_gettimeofday_timezone=void
13266 if test $ac_cv_func_gettimeofday != yes; then
13267 HAVE_GETTIMEOFDAY=0
13268 else
13269
13270
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13273 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13274 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 if test "$cross_compiling" = yes; then :
13278 # When cross-compiling:
13279 case "$host_os" in
13280 # Guess all is fine on glibc systems.
13281 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13282 # If we don't know, assume the worst.
13283 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13284 esac
13285
13286 else
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 #include <string.h>
13290 #include <sys/time.h>
13291 #include <time.h>
13292 #include <stdlib.h>
13293
13294 int
13295 main ()
13296 {
13297
13298 time_t t = 0;
13299 struct tm *lt;
13300 struct tm saved_lt;
13301 struct timeval tv;
13302 lt = localtime (&t);
13303 saved_lt = *lt;
13304 gettimeofday (&tv, NULL);
13305 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13306
13307 ;
13308 return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_run "$LINENO"; then :
13312 gl_cv_func_gettimeofday_clobber=no
13313 else
13314 gl_cv_func_gettimeofday_clobber=yes
13315 fi
13316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13317 conftest.$ac_objext conftest.beam conftest.$ac_ext
13318 fi
13319
13320 fi
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13322 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13323
13324 case "$gl_cv_func_gettimeofday_clobber" in
13325 *yes)
13326 REPLACE_GETTIMEOFDAY=1
13327
13328
13329 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13330
13331
13332 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13333
13334
13335
13336 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13337
13338 ;;
13339 esac
13340
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13342 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13343 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348 #include <sys/time.h>
13349 struct timeval c;
13350 int gettimeofday (struct timeval *restrict, void *restrict);
13351
13352 int
13353 main ()
13354 {
13355 /* glibc uses struct timezone * rather than the POSIX void *
13356 if _GNU_SOURCE is defined. However, since the only portable
13357 use of gettimeofday uses NULL as the second parameter, and
13358 since the glibc definition is actually more typesafe, it is
13359 not worth wrapping this to get a compliant signature. */
13360 int (*f) (struct timeval *restrict, void *restrict)
13361 = gettimeofday;
13362 int x = f (&c, 0);
13363 return !(x | c.tv_sec | c.tv_usec);
13364
13365 ;
13366 return 0;
13367 }
13368 _ACEOF
13369 if ac_fn_c_try_compile "$LINENO"; then :
13370 gl_cv_func_gettimeofday_posix_signature=yes
13371 else
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 #include <sys/time.h>
13375 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13376
13377 int
13378 main ()
13379 {
13380
13381 ;
13382 return 0;
13383 }
13384 _ACEOF
13385 if ac_fn_c_try_compile "$LINENO"; then :
13386 gl_cv_func_gettimeofday_posix_signature=almost
13387 else
13388 gl_cv_func_gettimeofday_posix_signature=no
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 fi
13392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393 fi
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13395 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13396 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13397 gl_gettimeofday_timezone='struct timezone'
13398 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13399 REPLACE_GETTIMEOFDAY=1
13400 fi
13401 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13402 REPLACE_GETTIMEOFDAY=1
13403 fi
13404
13405 fi
13406
13407 cat >>confdefs.h <<_ACEOF
13408 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13409 _ACEOF
13410
13411
13412 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13413
13414
13415
13416
13417
13418
13419
13420
13421 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13422
13423
13424 for ac_header in sys/timeb.h
13425 do :
13426 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13427 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13428 cat >>confdefs.h <<_ACEOF
13429 #define HAVE_SYS_TIMEB_H 1
13430 _ACEOF
13431
13432 fi
13433
13434 done
13435
13436 for ac_func in _ftime
13437 do :
13438 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13439 if test "x$ac_cv_func__ftime" = x""yes; then :
13440 cat >>confdefs.h <<_ACEOF
13441 #define HAVE__FTIME 1
13442 _ACEOF
13443
13444 fi
13445 done
13446
13447
13448 fi
13449
13450
13451
13452
13453
13454 GNULIB_GETTIMEOFDAY=1
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466 if test $ac_cv_func_lstat = yes; then
13467
13468 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13469 *no)
13470 REPLACE_LSTAT=1
13471 ;;
13472 esac
13473 else
13474 HAVE_LSTAT=0
13475 fi
13476
13477 if test $REPLACE_LSTAT = 1; then
13478
13479
13480
13481
13482
13483
13484
13485
13486 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13487
13488
13489
13490 :
13491
13492 fi
13493
13494
13495
13496
13497
13498 GNULIB_LSTAT=1
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510 if test $APPLE_UNIVERSAL_BUILD = 1; then
13511 # A universal build on Apple Mac OS X platforms.
13512 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
13513 # But we need a configuration result that is valid in both modes.
13514 gl_cv_func_working_mktime=no
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13517 $as_echo_n "checking for working mktime... " >&6; }
13518 if test "${gl_cv_func_working_mktime+set}" = set; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 if test "$cross_compiling" = yes; then :
13522 gl_cv_func_working_mktime=no
13523 else
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 /* Test program from Paul Eggert and Tony Leneis. */
13527 #include <limits.h>
13528 #include <stdlib.h>
13529 #include <time.h>
13530
13531 #ifdef HAVE_UNISTD_H
13532 # include <unistd.h>
13533 #endif
13534
13535 #ifndef HAVE_ALARM
13536 # define alarm(X) /* empty */
13537 #endif
13538
13539 /* Work around redefinition to rpl_putenv by other config tests. */
13540 #undef putenv
13541
13542 static time_t time_t_max;
13543 static time_t time_t_min;
13544
13545 /* Values we'll use to set the TZ environment variable. */
13546 static char *tz_strings[] = {
13547 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13548 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13549 };
13550 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13551
13552 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13553 Based on a problem report from Andreas Jaeger. */
13554 static int
13555 spring_forward_gap ()
13556 {
13557 /* glibc (up to about 1998-10-07) failed this test. */
13558 struct tm tm;
13559
13560 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13561 instead of "TZ=America/Vancouver" in order to detect the bug even
13562 on systems that don't support the Olson extension, or don't have the
13563 full zoneinfo tables installed. */
13564 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13565
13566 tm.tm_year = 98;
13567 tm.tm_mon = 3;
13568 tm.tm_mday = 5;
13569 tm.tm_hour = 2;
13570 tm.tm_min = 0;
13571 tm.tm_sec = 0;
13572 tm.tm_isdst = -1;
13573 return mktime (&tm) != (time_t) -1;
13574 }
13575
13576 static int
13577 mktime_test1 (time_t now)
13578 {
13579 struct tm *lt;
13580 return ! (lt = localtime (&now)) || mktime (lt) == now;
13581 }
13582
13583 static int
13584 mktime_test (time_t now)
13585 {
13586 return (mktime_test1 (now)
13587 && mktime_test1 ((time_t) (time_t_max - now))
13588 && mktime_test1 ((time_t) (time_t_min + now)));
13589 }
13590
13591 static int
13592 irix_6_4_bug ()
13593 {
13594 /* Based on code from Ariel Faigon. */
13595 struct tm tm;
13596 tm.tm_year = 96;
13597 tm.tm_mon = 3;
13598 tm.tm_mday = 0;
13599 tm.tm_hour = 0;
13600 tm.tm_min = 0;
13601 tm.tm_sec = 0;
13602 tm.tm_isdst = -1;
13603 mktime (&tm);
13604 return tm.tm_mon == 2 && tm.tm_mday == 31;
13605 }
13606
13607 static int
13608 bigtime_test (int j)
13609 {
13610 struct tm tm;
13611 time_t now;
13612 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13613 now = mktime (&tm);
13614 if (now != (time_t) -1)
13615 {
13616 struct tm *lt = localtime (&now);
13617 if (! (lt
13618 && lt->tm_year == tm.tm_year
13619 && lt->tm_mon == tm.tm_mon
13620 && lt->tm_mday == tm.tm_mday
13621 && lt->tm_hour == tm.tm_hour
13622 && lt->tm_min == tm.tm_min
13623 && lt->tm_sec == tm.tm_sec
13624 && lt->tm_yday == tm.tm_yday
13625 && lt->tm_wday == tm.tm_wday
13626 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13627 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13628 return 0;
13629 }
13630 return 1;
13631 }
13632
13633 static int
13634 year_2050_test ()
13635 {
13636 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13637 ignoring leap seconds. */
13638 unsigned long int answer = 2527315200UL;
13639
13640 struct tm tm;
13641 time_t t;
13642 tm.tm_year = 2050 - 1900;
13643 tm.tm_mon = 2 - 1;
13644 tm.tm_mday = 1;
13645 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13646 tm.tm_isdst = -1;
13647
13648 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13649 instead of "TZ=America/Vancouver" in order to detect the bug even
13650 on systems that don't support the Olson extension, or don't have the
13651 full zoneinfo tables installed. */
13652 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13653
13654 t = mktime (&tm);
13655
13656 /* Check that the result is either a failure, or close enough
13657 to the correct answer that we can assume the discrepancy is
13658 due to leap seconds. */
13659 return (t == (time_t) -1
13660 || (0 < t && answer - 120 <= t && t <= answer + 120));
13661 }
13662
13663 int
13664 main ()
13665 {
13666 int result = 0;
13667 time_t t, delta;
13668 int i, j;
13669 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
13670 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
13671
13672 /* This test makes some buggy mktime implementations loop.
13673 Give up after 60 seconds; a mktime slower than that
13674 isn't worth using anyway. */
13675 alarm (60);
13676
13677 time_t_max = (! time_t_signed
13678 ? (time_t) -1
13679 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
13680 * 2 + 1));
13681 time_t_min = (! time_t_signed
13682 ? (time_t) 0
13683 : time_t_signed_magnitude
13684 ? ~ (time_t) 0
13685 : ~ time_t_max);
13686
13687 delta = time_t_max / 997; /* a suitable prime number */
13688 for (i = 0; i < N_STRINGS; i++)
13689 {
13690 if (tz_strings[i])
13691 putenv (tz_strings[i]);
13692
13693 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
13694 if (! mktime_test (t))
13695 result |= 1;
13696 if ((result & 2) == 0
13697 && ! (mktime_test ((time_t) 1)
13698 && mktime_test ((time_t) (60 * 60))
13699 && mktime_test ((time_t) (60 * 60 * 24))))
13700 result |= 2;
13701
13702 for (j = 1; (result & 4) == 0; j <<= 1)
13703 {
13704 if (! bigtime_test (j))
13705 result |= 4;
13706 if (INT_MAX / 2 < j)
13707 break;
13708 }
13709 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
13710 result |= 8;
13711 }
13712 if (! irix_6_4_bug ())
13713 result |= 16;
13714 if (! spring_forward_gap ())
13715 result |= 32;
13716 if (! year_2050_test ())
13717 result |= 64;
13718 return result;
13719 }
13720 _ACEOF
13721 if ac_fn_c_try_run "$LINENO"; then :
13722 gl_cv_func_working_mktime=yes
13723 else
13724 gl_cv_func_working_mktime=no
13725 fi
13726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13727 conftest.$ac_objext conftest.beam conftest.$ac_ext
13728 fi
13729
13730
13731 fi
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
13733 $as_echo "$gl_cv_func_working_mktime" >&6; }
13734
13735 if test $gl_cv_func_working_mktime = no; then
13736 REPLACE_MKTIME=1
13737 else
13738 REPLACE_MKTIME=0
13739 fi
13740
13741 if test $REPLACE_MKTIME = 1; then
13742
13743
13744
13745
13746
13747
13748
13749
13750 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
13751
13752
13753
13754
13755 fi
13756
13757
13758
13759
13760
13761 GNULIB_MKTIME=1
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773 if test $ac_cv_func_pselect = yes; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
13775 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
13776 if test "${gl_cv_sig_pselect+set}" = set; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781 #include <sys/select.h>
13782
13783 int
13784 main ()
13785 {
13786 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
13787 struct timespec const *restrict,
13788 sigset_t const *restrict) = pselect;
13789 return !p;
13790 ;
13791 return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_link "$LINENO"; then :
13795 gl_cv_sig_pselect=yes
13796 else
13797 gl_cv_sig_pselect=no
13798 fi
13799 rm -f core conftest.err conftest.$ac_objext \
13800 conftest$ac_exeext conftest.$ac_ext
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
13803 $as_echo "$gl_cv_sig_pselect" >&6; }
13804 fi
13805
13806 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
13807 REPLACE_PSELECT=1
13808 fi
13809
13810 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
13811
13812
13813
13814
13815
13816
13817
13818
13819 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
13820
13821 fi
13822
13823
13824
13825
13826
13827 GNULIB_PSELECT=1
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837 LIB_PTHREAD_SIGMASK=
13838
13839
13840 if test $ac_cv_func_pthread_sigmask = yes; then
13841 :
13842 else
13843 HAVE_PTHREAD_SIGMASK=0
13844 REPLACE_PTHREAD_SIGMASK=1
13845 fi
13846
13847
13848
13849
13850 if test $HAVE_PTHREAD_SIGMASK = 1; then
13851
13852
13853 if test -z "$LIB_PTHREAD_SIGMASK"; then
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
13855 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
13856 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859
13860 if test "$cross_compiling" = yes; then :
13861
13862 case "$host_os" in
13863 freebsd* | hpux* | solaris | solaris2.[2-9]*)
13864 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
13865 *)
13866 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
13867 esac
13868
13869 else
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872
13873 #include <pthread.h>
13874 #include <signal.h>
13875 #include <stddef.h>
13876 int main ()
13877 {
13878 sigset_t set;
13879 sigemptyset (&set);
13880 return pthread_sigmask (1729, &set, NULL) != 0;
13881 }
13882 _ACEOF
13883 if ac_fn_c_try_run "$LINENO"; then :
13884 gl_cv_func_pthread_sigmask_in_libc_works=no
13885 else
13886 gl_cv_func_pthread_sigmask_in_libc_works=yes
13887 fi
13888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13889 conftest.$ac_objext conftest.beam conftest.$ac_ext
13890 fi
13891
13892
13893 fi
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
13895 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
13896 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
13897 *no)
13898 REPLACE_PTHREAD_SIGMASK=1
13899
13900 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
13901
13902 ;;
13903 esac
13904 fi
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
13907 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
13908 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911
13912 gl_save_LIBS="$LIBS"
13913 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
13914 if test "$cross_compiling" = yes; then :
13915 case "$host_os" in
13916 cygwin*)
13917 gl_cv_func_pthread_sigmask_return_works="guessing no";;
13918 *)
13919 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
13920 esac
13921
13922 else
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13925
13926 #include <pthread.h>
13927 #include <signal.h>
13928 #include <stddef.h>
13929 int main ()
13930 {
13931 sigset_t set;
13932 sigemptyset (&set);
13933 if (pthread_sigmask (1729, &set, NULL) == -1)
13934 return 1;
13935 return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_run "$LINENO"; then :
13939 gl_cv_func_pthread_sigmask_return_works=yes
13940 else
13941 gl_cv_func_pthread_sigmask_return_works=no
13942 fi
13943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13944 conftest.$ac_objext conftest.beam conftest.$ac_ext
13945 fi
13946
13947 LIBS="$gl_save_LIBS"
13948
13949 fi
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
13951 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
13952 case "$gl_cv_func_pthread_sigmask_return_works" in
13953 *no)
13954 REPLACE_PTHREAD_SIGMASK=1
13955
13956 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
13957
13958 ;;
13959 esac
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
13962 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
13963 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966
13967 case "$host_os" in
13968 irix*)
13969 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
13970 *)
13971 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
13972 esac
13973 gl_save_LIBS="$LIBS"
13974 LIBS="$LIBS $LIBMULTITHREAD"
13975 if test "$cross_compiling" = yes; then :
13976 :
13977 else
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13980
13981 #include <pthread.h>
13982 #include <signal.h>
13983 #include <stdio.h>
13984 #include <stdlib.h>
13985 #include <unistd.h>
13986 static volatile int sigint_occurred;
13987 static void
13988 sigint_handler (int sig)
13989 {
13990 sigint_occurred++;
13991 }
13992 int main ()
13993 {
13994 sigset_t set;
13995 int pid = getpid ();
13996 char command[80];
13997 signal (SIGINT, sigint_handler);
13998 sigemptyset (&set);
13999 sigaddset (&set, SIGINT);
14000 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
14001 return 1;
14002 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
14003 if (!(system (command) == 0))
14004 return 2;
14005 sleep (2);
14006 if (!(sigint_occurred == 0))
14007 return 3;
14008 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
14009 return 4;
14010 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
14011 return 5;
14012 return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_run "$LINENO"; then :
14016 :
14017 else
14018 gl_cv_func_pthread_sigmask_unblock_works=no
14019 fi
14020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14021 conftest.$ac_objext conftest.beam conftest.$ac_ext
14022 fi
14023
14024 LIBS="$gl_save_LIBS"
14025
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
14028 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
14029 case "$gl_cv_func_pthread_sigmask_unblock_works" in
14030 *no)
14031 REPLACE_PTHREAD_SIGMASK=1
14032
14033 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
14034
14035 ;;
14036 esac
14037 fi
14038
14039 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
14040
14041
14042
14043
14044
14045
14046
14047
14048 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
14049
14050
14051 if test $HAVE_PTHREAD_SIGMASK = 1; then
14052
14053 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
14054
14055 fi
14056
14057 fi
14058
14059
14060
14061
14062
14063 GNULIB_PTHREAD_SIGMASK=1
14064
14065
14066
14067
14068
14069
14070
14071
14072 if test $ac_cv_func_readlink = no; then
14073 HAVE_READLINK=0
14074 else
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14076 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14077 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 #include <unistd.h>
14083 /* Cause compilation failure if original declaration has wrong type. */
14084 ssize_t readlink (const char *, char *, size_t);
14085 int
14086 main ()
14087 {
14088
14089 ;
14090 return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094 gl_cv_decl_readlink_works=yes
14095 else
14096 gl_cv_decl_readlink_works=no
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 fi
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14101 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14103 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14104 if test "${gl_cv_func_readlink_works+set}" = set; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 # We have readlink, so assume ln -s works.
14108 ln -s conftest.no-such conftest.link
14109 ln -s conftest.link conftest.lnk2
14110 if test "$cross_compiling" = yes; then :
14111 case "$host_os" in
14112 # Guess yes on glibc systems.
14113 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14114 # If we don't know, assume the worst.
14115 *) gl_cv_func_readlink_works="guessing no" ;;
14116 esac
14117
14118 else
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 #include <unistd.h>
14122
14123 int
14124 main ()
14125 {
14126 char buf[20];
14127 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14128 ;
14129 return 0;
14130 }
14131 _ACEOF
14132 if ac_fn_c_try_run "$LINENO"; then :
14133 gl_cv_func_readlink_works=yes
14134 else
14135 gl_cv_func_readlink_works=no
14136 fi
14137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14138 conftest.$ac_objext conftest.beam conftest.$ac_ext
14139 fi
14140
14141 rm -f conftest.link conftest.lnk2
14142 fi
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14144 $as_echo "$gl_cv_func_readlink_works" >&6; }
14145 case "$gl_cv_func_readlink_works" in
14146 *yes)
14147 if test "$gl_cv_decl_readlink_works" != yes; then
14148 REPLACE_READLINK=1
14149 fi
14150 ;;
14151 *)
14152
14153 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14154
14155 REPLACE_READLINK=1
14156 ;;
14157 esac
14158 fi
14159
14160 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
14161
14162
14163
14164
14165
14166
14167
14168
14169 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
14170
14171
14172 :
14173
14174 fi
14175
14176
14177
14178
14179
14180 GNULIB_READLINK=1
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197 if test $gl_cv_have_include_next = yes; then
14198 gl_cv_next_signal_h='<'signal.h'>'
14199 else
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
14201 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
14202 if test "${gl_cv_next_signal_h+set}" = set; then :
14203 $as_echo_n "(cached) " >&6
14204 else
14205
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 #include <signal.h>
14209
14210 _ACEOF
14211 case "$host_os" in
14212 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14213 *) gl_absname_cpp="$ac_cpp" ;;
14214 esac
14215
14216 case "$host_os" in
14217 mingw*)
14218 gl_dirsep_regex='[/\\]'
14219 ;;
14220 *)
14221 gl_dirsep_regex='\/'
14222 ;;
14223 esac
14224 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14225
14226 gl_header_literal_regex=`echo 'signal.h' \
14227 | sed -e "$gl_make_literal_regex_sed"`
14228 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14230 s|^/[^/]|//&|
14231 p
14232 q
14233 }'
14234 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14235 sed -n "$gl_absolute_header_sed"`'"'
14236
14237
14238 fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
14240 $as_echo "$gl_cv_next_signal_h" >&6; }
14241 fi
14242 NEXT_SIGNAL_H=$gl_cv_next_signal_h
14243
14244 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14246 gl_next_as_first_directive='<'signal.h'>'
14247 else
14248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14249 gl_next_as_first_directive=$gl_cv_next_signal_h
14250 fi
14251 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
14252
14253
14254
14255
14256
14257 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
14258 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
14259 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
14260 #include <signal.h>
14261
14262 "
14263 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
14264
14265 else
14266 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
14267 fi
14268
14269
14270
14271
14272
14273
14274
14275 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
14276 #include <signal.h>
14277
14278 "
14279 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
14280
14281 else
14282 HAVE_SIGHANDLER_T=0
14283 fi
14284
14285
14286
14287
14288 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14289 /* <sys/types.h> is not needed according to POSIX, but the
14290 <sys/socket.h> in i386-unknown-freebsd4.10 and
14291 powerpc-apple-darwin5.5 required it. */
14292 #include <sys/types.h>
14293 #if HAVE_SYS_SOCKET_H
14294 # include <sys/socket.h>
14295 #elif HAVE_WS2TCPIP_H
14296 # include <ws2tcpip.h>
14297 #endif
14298
14299 "
14300 if test "x$ac_cv_type_socklen_t" = x""yes; then :
14301
14302 else
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14304 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14305 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 # Systems have either "struct sockaddr *" or
14309 # "void *" as the second argument to getpeername
14310 gl_cv_socklen_t_equiv=
14311 for arg2 in "struct sockaddr" void; do
14312 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315 #include <sys/types.h>
14316 #include <sys/socket.h>
14317
14318 int getpeername (int, $arg2 *, $t *);
14319 int
14320 main ()
14321 {
14322 $t len;
14323 getpeername (0, 0, &len);
14324 ;
14325 return 0;
14326 }
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329 gl_cv_socklen_t_equiv="$t"
14330 fi
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332 test "$gl_cv_socklen_t_equiv" != "" && break
14333 done
14334 test "$gl_cv_socklen_t_equiv" != "" && break
14335 done
14336
14337 fi
14338
14339 if test "$gl_cv_socklen_t_equiv" = ""; then
14340 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14343 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14344
14345 cat >>confdefs.h <<_ACEOF
14346 #define socklen_t $gl_cv_socklen_t_equiv
14347 _ACEOF
14348
14349 fi
14350
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14353 $as_echo_n "checking for ssize_t... " >&6; }
14354 if test "${gt_cv_ssize_t+set}" = set; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14359 #include <sys/types.h>
14360 int
14361 main ()
14362 {
14363 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14364 return !x;
14365 ;
14366 return 0;
14367 }
14368 _ACEOF
14369 if ac_fn_c_try_compile "$LINENO"; then :
14370 gt_cv_ssize_t=yes
14371 else
14372 gt_cv_ssize_t=no
14373 fi
14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14377 $as_echo "$gt_cv_ssize_t" >&6; }
14378 if test $gt_cv_ssize_t = no; then
14379
14380 $as_echo "#define ssize_t int" >>confdefs.h
14381
14382 fi
14383
14384
14385
14386
14387
14388
14389 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>
14390 #include <sys/stat.h>
14391 "
14392 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
14393
14394 cat >>confdefs.h <<_ACEOF
14395 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14396 _ACEOF
14397
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14399 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14400 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405
14406 #include <sys/types.h>
14407 #include <sys/stat.h>
14408 #if HAVE_SYS_TIME_H
14409 # include <sys/time.h>
14410 #endif
14411 #include <time.h>
14412 struct timespec ts;
14413 struct stat st;
14414
14415 int
14416 main ()
14417 {
14418
14419 st.st_atim = ts;
14420
14421 ;
14422 return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_c_try_compile "$LINENO"; then :
14426 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
14427 else
14428 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
14429 fi
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14433 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14434 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14435
14436 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14437
14438 fi
14439 else
14440 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>
14441 #include <sys/stat.h>
14442 "
14443 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
14444
14445 cat >>confdefs.h <<_ACEOF
14446 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14447 _ACEOF
14448
14449
14450 else
14451 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14452 #include <sys/stat.h>
14453 "
14454 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
14455
14456 cat >>confdefs.h <<_ACEOF
14457 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14458 _ACEOF
14459
14460
14461 else
14462 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>
14463 #include <sys/stat.h>
14464 "
14465 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
14466
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14469 _ACEOF
14470
14471
14472 fi
14473
14474 fi
14475
14476 fi
14477
14478 fi
14479
14480
14481
14482
14483
14484
14485 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>
14486 #include <sys/stat.h>
14487 "
14488 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
14489
14490 cat >>confdefs.h <<_ACEOF
14491 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
14492 _ACEOF
14493
14494
14495 else
14496 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
14497 #include <sys/stat.h>
14498 "
14499 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
14500
14501 cat >>confdefs.h <<_ACEOF
14502 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
14503 _ACEOF
14504
14505
14506 else
14507 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>
14508 #include <sys/stat.h>
14509 "
14510 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
14511
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
14514 _ACEOF
14515
14516
14517 fi
14518
14519 fi
14520
14521 fi
14522
14523
14524
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
14526 $as_echo_n "checking for working stdalign.h... " >&6; }
14527 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
14528 $as_echo_n "(cached) " >&6
14529 else
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <stdalign.h>
14533 #include <stddef.h>
14534
14535 /* Test that alignof yields a result consistent with offsetof.
14536 This catches GCC bug 52023
14537 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
14538 #ifdef __cplusplus
14539 template <class t> struct alignof_helper { char a; t b; };
14540 # define ao(type) offsetof (alignof_helper<type>, b)
14541 #else
14542 # define ao(type) offsetof (struct { char a; type b; }, b)
14543 #endif
14544 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
14545 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
14546 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
14547
14548 /* Test _Alignas only on platforms where gnulib can help. */
14549 #if \
14550 (__GNUC__ || __IBMC__ || __IBMCPP__ \
14551 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
14552 int alignas (8) alignas_int = 1;
14553 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
14554 #endif
14555
14556 int
14557 main ()
14558 {
14559
14560 ;
14561 return 0;
14562 }
14563 _ACEOF
14564 if ac_fn_c_try_compile "$LINENO"; then :
14565 gl_cv_header_working_stdalign_h=yes
14566 else
14567 gl_cv_header_working_stdalign_h=no
14568 fi
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570 fi
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
14572 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
14573
14574 if test $gl_cv_header_working_stdalign_h = yes; then
14575 STDALIGN_H=''
14576 else
14577 STDALIGN_H='stdalign.h'
14578 fi
14579
14580
14581 if test -n "$STDALIGN_H"; then
14582 GL_GENERATE_STDALIGN_H_TRUE=
14583 GL_GENERATE_STDALIGN_H_FALSE='#'
14584 else
14585 GL_GENERATE_STDALIGN_H_TRUE='#'
14586 GL_GENERATE_STDALIGN_H_FALSE=
14587 fi
14588
14589
14590
14591 STDARG_H=''
14592 NEXT_STDARG_H='<stdarg.h>'
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14594 $as_echo_n "checking for va_copy... " >&6; }
14595 if test "${gl_cv_func_va_copy+set}" = set; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601 #include <stdarg.h>
14602 int
14603 main ()
14604 {
14605
14606 #ifndef va_copy
14607 void (*func) (va_list, va_list) = va_copy;
14608 #endif
14609
14610 ;
14611 return 0;
14612 }
14613 _ACEOF
14614 if ac_fn_c_try_compile "$LINENO"; then :
14615 gl_cv_func_va_copy=yes
14616 else
14617 gl_cv_func_va_copy=no
14618 fi
14619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620 fi
14621
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
14623 $as_echo "$gl_cv_func_va_copy" >&6; }
14624 if test $gl_cv_func_va_copy = no; then
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14627 #if defined _AIX && !defined __GNUC__
14628 AIX vaccine
14629 #endif
14630
14631 _ACEOF
14632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14633 $EGREP "vaccine" >/dev/null 2>&1; then :
14634 gl_aixcc=yes
14635 else
14636 gl_aixcc=no
14637 fi
14638 rm -f conftest*
14639
14640 if test $gl_aixcc = yes; then
14641 STDARG_H=stdarg.h
14642
14643
14644
14645
14646
14647
14648
14649
14650 if test $gl_cv_have_include_next = yes; then
14651 gl_cv_next_stdarg_h='<'stdarg.h'>'
14652 else
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
14654 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
14655 if test "${gl_cv_next_stdarg_h+set}" = set; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14661 #include <stdarg.h>
14662
14663 _ACEOF
14664 case "$host_os" in
14665 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14666 *) gl_absname_cpp="$ac_cpp" ;;
14667 esac
14668
14669 case "$host_os" in
14670 mingw*)
14671 gl_dirsep_regex='[/\\]'
14672 ;;
14673 *)
14674 gl_dirsep_regex='\/'
14675 ;;
14676 esac
14677 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14678
14679 gl_header_literal_regex=`echo 'stdarg.h' \
14680 | sed -e "$gl_make_literal_regex_sed"`
14681 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14682 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14683 s|^/[^/]|//&|
14684 p
14685 q
14686 }'
14687 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14688 sed -n "$gl_absolute_header_sed"`'"'
14689
14690
14691 fi
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
14693 $as_echo "$gl_cv_next_stdarg_h" >&6; }
14694 fi
14695 NEXT_STDARG_H=$gl_cv_next_stdarg_h
14696
14697 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14698 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14699 gl_next_as_first_directive='<'stdarg.h'>'
14700 else
14701 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14702 gl_next_as_first_directive=$gl_cv_next_stdarg_h
14703 fi
14704 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
14705
14706
14707
14708
14709 if test "$gl_cv_next_stdarg_h" = '""'; then
14710 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
14711 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
14712 fi
14713 else
14714
14715 saved_as_echo_n="$as_echo_n"
14716 as_echo_n=':'
14717 if test "${gl_cv_func___va_copy+set}" = set; then :
14718 $as_echo_n "(cached) " >&6
14719 else
14720
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14723 #include <stdarg.h>
14724 int
14725 main ()
14726 {
14727
14728 #ifndef __va_copy
14729 error, bail out
14730 #endif
14731
14732 ;
14733 return 0;
14734 }
14735 _ACEOF
14736 if ac_fn_c_try_compile "$LINENO"; then :
14737 gl_cv_func___va_copy=yes
14738 else
14739 gl_cv_func___va_copy=no
14740 fi
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 fi
14743
14744 as_echo_n="$saved_as_echo_n"
14745
14746 if test $gl_cv_func___va_copy = yes; then
14747
14748 $as_echo "#define va_copy __va_copy" >>confdefs.h
14749
14750 else
14751
14752
14753 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
14754
14755 fi
14756 fi
14757 fi
14758
14759 if test -n "$STDARG_H"; then
14760 GL_GENERATE_STDARG_H_TRUE=
14761 GL_GENERATE_STDARG_H_FALSE='#'
14762 else
14763 GL_GENERATE_STDARG_H_TRUE='#'
14764 GL_GENERATE_STDARG_H_FALSE=
14765 fi
14766
14767
14768
14769
14770
14771
14772 # Define two additional variables used in the Makefile substitution.
14773
14774 if test "$ac_cv_header_stdbool_h" = yes; then
14775 STDBOOL_H=''
14776 else
14777 STDBOOL_H='stdbool.h'
14778 fi
14779
14780 if test -n "$STDBOOL_H"; then
14781 GL_GENERATE_STDBOOL_H_TRUE=
14782 GL_GENERATE_STDBOOL_H_FALSE='#'
14783 else
14784 GL_GENERATE_STDBOOL_H_TRUE='#'
14785 GL_GENERATE_STDBOOL_H_FALSE=
14786 fi
14787
14788
14789 if test "$ac_cv_type__Bool" = yes; then
14790 HAVE__BOOL=1
14791 else
14792 HAVE__BOOL=0
14793 fi
14794
14795
14796
14797
14798
14799 STDDEF_H=
14800 if test $gt_cv_c_wchar_t = no; then
14801 HAVE_WCHAR_T=0
14802 STDDEF_H=stddef.h
14803 fi
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14805 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14806 if test "${gl_cv_decl_null_works+set}" = set; then :
14807 $as_echo_n "(cached) " >&6
14808 else
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811 #include <stddef.h>
14812 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14813
14814 int
14815 main ()
14816 {
14817
14818 ;
14819 return 0;
14820 }
14821 _ACEOF
14822 if ac_fn_c_try_compile "$LINENO"; then :
14823 gl_cv_decl_null_works=yes
14824 else
14825 gl_cv_decl_null_works=no
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 fi
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14830 $as_echo "$gl_cv_decl_null_works" >&6; }
14831 if test $gl_cv_decl_null_works = no; then
14832 REPLACE_NULL=1
14833 STDDEF_H=stddef.h
14834 fi
14835
14836 if test -n "$STDDEF_H"; then
14837 GL_GENERATE_STDDEF_H_TRUE=
14838 GL_GENERATE_STDDEF_H_FALSE='#'
14839 else
14840 GL_GENERATE_STDDEF_H_TRUE='#'
14841 GL_GENERATE_STDDEF_H_FALSE=
14842 fi
14843
14844 if test -n "$STDDEF_H"; then
14845
14846
14847
14848
14849
14850
14851
14852
14853 if test $gl_cv_have_include_next = yes; then
14854 gl_cv_next_stddef_h='<'stddef.h'>'
14855 else
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14857 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14858 if test "${gl_cv_next_stddef_h+set}" = set; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14864 #include <stddef.h>
14865
14866 _ACEOF
14867 case "$host_os" in
14868 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14869 *) gl_absname_cpp="$ac_cpp" ;;
14870 esac
14871
14872 case "$host_os" in
14873 mingw*)
14874 gl_dirsep_regex='[/\\]'
14875 ;;
14876 *)
14877 gl_dirsep_regex='\/'
14878 ;;
14879 esac
14880 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14881
14882 gl_header_literal_regex=`echo 'stddef.h' \
14883 | sed -e "$gl_make_literal_regex_sed"`
14884 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14885 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14886 s|^/[^/]|//&|
14887 p
14888 q
14889 }'
14890 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14891 sed -n "$gl_absolute_header_sed"`'"'
14892
14893
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14896 $as_echo "$gl_cv_next_stddef_h" >&6; }
14897 fi
14898 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14899
14900 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14902 gl_next_as_first_directive='<'stddef.h'>'
14903 else
14904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14905 gl_next_as_first_directive=$gl_cv_next_stddef_h
14906 fi
14907 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14908
14909
14910
14911
14912 fi
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926 if test $gl_cv_have_include_next = yes; then
14927 gl_cv_next_stdio_h='<'stdio.h'>'
14928 else
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
14930 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
14931 if test "${gl_cv_next_stdio_h+set}" = set; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14937 #include <stdio.h>
14938
14939 _ACEOF
14940 case "$host_os" in
14941 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14942 *) gl_absname_cpp="$ac_cpp" ;;
14943 esac
14944
14945 case "$host_os" in
14946 mingw*)
14947 gl_dirsep_regex='[/\\]'
14948 ;;
14949 *)
14950 gl_dirsep_regex='\/'
14951 ;;
14952 esac
14953 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14954
14955 gl_header_literal_regex=`echo 'stdio.h' \
14956 | sed -e "$gl_make_literal_regex_sed"`
14957 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14958 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14959 s|^/[^/]|//&|
14960 p
14961 q
14962 }'
14963 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14964 sed -n "$gl_absolute_header_sed"`'"'
14965
14966
14967 fi
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14969 $as_echo "$gl_cv_next_stdio_h" >&6; }
14970 fi
14971 NEXT_STDIO_H=$gl_cv_next_stdio_h
14972
14973 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14975 gl_next_as_first_directive='<'stdio.h'>'
14976 else
14977 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14978 gl_next_as_first_directive=$gl_cv_next_stdio_h
14979 fi
14980 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
14981
14982
14983
14984
14985
14986 GNULIB_FSCANF=1
14987
14988
14989 cat >>confdefs.h <<_ACEOF
14990 #define GNULIB_FSCANF 1
14991 _ACEOF
14992
14993
14994 GNULIB_SCANF=1
14995
14996
14997 cat >>confdefs.h <<_ACEOF
14998 #define GNULIB_SCANF 1
14999 _ACEOF
15000
15001
15002 GNULIB_FGETC=1
15003 GNULIB_GETC=1
15004 GNULIB_GETCHAR=1
15005 GNULIB_FGETS=1
15006 GNULIB_FREAD=1
15007
15008
15009 GNULIB_FPRINTF=1
15010 GNULIB_PRINTF=1
15011 GNULIB_VFPRINTF=1
15012 GNULIB_VPRINTF=1
15013 GNULIB_FPUTC=1
15014 GNULIB_PUTC=1
15015 GNULIB_PUTCHAR=1
15016 GNULIB_FPUTS=1
15017 GNULIB_PUTS=1
15018 GNULIB_FWRITE=1
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034 if test $gl_cv_have_include_next = yes; then
15035 gl_cv_next_stdlib_h='<'stdlib.h'>'
15036 else
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15038 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15039 if test "${gl_cv_next_stdlib_h+set}" = set; then :
15040 $as_echo_n "(cached) " >&6
15041 else
15042
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045 #include <stdlib.h>
15046
15047 _ACEOF
15048 case "$host_os" in
15049 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15050 *) gl_absname_cpp="$ac_cpp" ;;
15051 esac
15052
15053 case "$host_os" in
15054 mingw*)
15055 gl_dirsep_regex='[/\\]'
15056 ;;
15057 *)
15058 gl_dirsep_regex='\/'
15059 ;;
15060 esac
15061 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15062
15063 gl_header_literal_regex=`echo 'stdlib.h' \
15064 | sed -e "$gl_make_literal_regex_sed"`
15065 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15066 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15067 s|^/[^/]|//&|
15068 p
15069 q
15070 }'
15071 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15072 sed -n "$gl_absolute_header_sed"`'"'
15073
15074
15075 fi
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15077 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15078 fi
15079 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15080
15081 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15083 gl_next_as_first_directive='<'stdlib.h'>'
15084 else
15085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15086 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15087 fi
15088 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15099
15100
15101
15102
15103
15104
15105
15106 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15107
15108
15109
15110
15111
15112
15113
15114
15115 if test "$ac_cv_have_decl_strtoimax" != yes; then
15116 HAVE_DECL_STRTOIMAX=0
15117 fi
15118
15119 if test $ac_cv_func_strtoimax = yes; then
15120 HAVE_STRTOIMAX=1
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
15122 $as_echo_n "checking whether strtoimax works... " >&6; }
15123 if test "${gl_cv_func_strtoimax+set}" = set; then :
15124 $as_echo_n "(cached) " >&6
15125 else
15126 if test "$cross_compiling" = yes; then :
15127 case "$host_os" in
15128 # Guess no on AIX 5.
15129 aix5*) gl_cv_func_strtoimax="guessing no" ;;
15130 # Guess yes otherwise.
15131 *) gl_cv_func_strtoimax="guessing yes" ;;
15132 esac
15133
15134 else
15135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15137
15138 #include <errno.h>
15139 #include <string.h>
15140 #include <inttypes.h>
15141 int main ()
15142 {
15143 if (sizeof (intmax_t) > sizeof (int))
15144 {
15145 const char *s = "4294967295";
15146 char *p;
15147 intmax_t res;
15148 errno = 0;
15149 res = strtoimax (s, &p, 10);
15150 if (p != s + strlen (s))
15151 return 1;
15152 if (errno != 0)
15153 return 2;
15154 if (res != (intmax_t) 65535 * (intmax_t) 65537)
15155 return 3;
15156 }
15157 else
15158 {
15159 const char *s = "2147483647";
15160 char *p;
15161 intmax_t res;
15162 errno = 0;
15163 res = strtoimax (s, &p, 10);
15164 if (p != s + strlen (s))
15165 return 1;
15166 if (errno != 0)
15167 return 2;
15168 if (res != 2147483647)
15169 return 3;
15170 }
15171 return 0;
15172 }
15173
15174 _ACEOF
15175 if ac_fn_c_try_run "$LINENO"; then :
15176 gl_cv_func_strtoimax=yes
15177 else
15178 gl_cv_func_strtoimax=no
15179 fi
15180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15181 conftest.$ac_objext conftest.beam conftest.$ac_ext
15182 fi
15183
15184
15185 fi
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
15187 $as_echo "$gl_cv_func_strtoimax" >&6; }
15188 case "$gl_cv_func_strtoimax" in
15189 *no) REPLACE_STRTOIMAX=1 ;;
15190 esac
15191 else
15192 HAVE_STRTOIMAX=0
15193 fi
15194
15195 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
15196
15197
15198
15199
15200
15201
15202
15203
15204 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
15205
15206
15207 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
15208 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
15209 ac_have_decl=1
15210 else
15211 ac_have_decl=0
15212 fi
15213
15214 cat >>confdefs.h <<_ACEOF
15215 #define HAVE_DECL_STRTOLL $ac_have_decl
15216 _ACEOF
15217
15218
15219
15220 fi
15221
15222
15223
15224
15225
15226 GNULIB_STRTOIMAX=1
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236 if test "$ac_cv_have_decl_strtoumax" != yes; then
15237 HAVE_DECL_STRTOUMAX=0
15238 fi
15239
15240 if test $ac_cv_func_strtoumax = no; then
15241
15242
15243
15244
15245
15246
15247
15248
15249 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
15250
15251
15252 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
15253 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
15254 ac_have_decl=1
15255 else
15256 ac_have_decl=0
15257 fi
15258
15259 cat >>confdefs.h <<_ACEOF
15260 #define HAVE_DECL_STRTOULL $ac_have_decl
15261 _ACEOF
15262
15263
15264
15265 fi
15266
15267
15268
15269
15270
15271 GNULIB_STRTOUMAX=1
15272
15273
15274
15275
15276
15277
15278
15279 if test $ac_cv_func_symlink = no; then
15280 HAVE_SYMLINK=0
15281 else
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
15283 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
15284 if test "${gl_cv_func_symlink_works+set}" = set; then :
15285 $as_echo_n "(cached) " >&6
15286 else
15287 if test "$cross_compiling" = yes; then :
15288 case "$host_os" in
15289 # Guess yes on glibc systems.
15290 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
15291 # If we don't know, assume the worst.
15292 *) gl_cv_func_symlink_works="guessing no" ;;
15293 esac
15294
15295 else
15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297 /* end confdefs.h. */
15298 #include <unistd.h>
15299
15300 int
15301 main ()
15302 {
15303 int result = 0;
15304 if (!symlink ("a", "conftest.link/"))
15305 result |= 1;
15306 if (symlink ("conftest.f", "conftest.lnk2"))
15307 result |= 2;
15308 else if (!symlink ("a", "conftest.lnk2/"))
15309 result |= 4;
15310 return result;
15311
15312 ;
15313 return 0;
15314 }
15315 _ACEOF
15316 if ac_fn_c_try_run "$LINENO"; then :
15317 gl_cv_func_symlink_works=yes
15318 else
15319 gl_cv_func_symlink_works=no
15320 fi
15321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15322 conftest.$ac_objext conftest.beam conftest.$ac_ext
15323 fi
15324
15325 rm -f conftest.f conftest.link conftest.lnk2
15326 fi
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
15328 $as_echo "$gl_cv_func_symlink_works" >&6; }
15329 case "$gl_cv_func_symlink_works" in
15330 *yes) ;;
15331 *)
15332 REPLACE_SYMLINK=1
15333 ;;
15334 esac
15335 fi
15336
15337 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
15338
15339
15340
15341
15342
15343
15344
15345
15346 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
15347
15348 fi
15349
15350
15351
15352
15353
15354 GNULIB_SYMLINK=1
15355
15356
15357
15358
15359
15360
15361
15362
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
15364 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
15365 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
15366 $as_echo_n "(cached) " >&6
15367 else
15368
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15371 #include <sys/select.h>
15372 int
15373 main ()
15374 {
15375 struct timeval b;
15376 ;
15377 return 0;
15378 }
15379 _ACEOF
15380 if ac_fn_c_try_compile "$LINENO"; then :
15381 gl_cv_header_sys_select_h_selfcontained=yes
15382 else
15383 gl_cv_header_sys_select_h_selfcontained=no
15384 fi
15385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389 #include <sys/select.h>
15390 int
15391 main ()
15392 {
15393 int memset; int bzero;
15394 ;
15395 return 0;
15396 }
15397
15398 _ACEOF
15399 if ac_fn_c_try_compile "$LINENO"; then :
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 #include <sys/select.h>
15403 int
15404 main ()
15405 {
15406
15407 #undef memset
15408 #define memset nonexistent_memset
15409 extern
15410 #ifdef __cplusplus
15411 "C"
15412 #endif
15413 void *memset (void *, int, unsigned long);
15414 #undef bzero
15415 #define bzero nonexistent_bzero
15416 extern
15417 #ifdef __cplusplus
15418 "C"
15419 #endif
15420 void bzero (void *, unsigned long);
15421 fd_set fds;
15422 FD_ZERO (&fds);
15423
15424 ;
15425 return 0;
15426 }
15427
15428 _ACEOF
15429 if ac_fn_c_try_link "$LINENO"; then :
15430
15431 else
15432 gl_cv_header_sys_select_h_selfcontained=no
15433 fi
15434 rm -f core conftest.err conftest.$ac_objext \
15435 conftest$ac_exeext conftest.$ac_ext
15436
15437 fi
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 fi
15440
15441 fi
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
15443 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453 if test $gl_cv_have_include_next = yes; then
15454 gl_cv_next_sys_select_h='<'sys/select.h'>'
15455 else
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
15457 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
15458 if test "${gl_cv_next_sys_select_h+set}" = set; then :
15459 $as_echo_n "(cached) " >&6
15460 else
15461
15462 if test $ac_cv_header_sys_select_h = yes; then
15463
15464
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467 #include <sys/select.h>
15468
15469 _ACEOF
15470 case "$host_os" in
15471 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15472 *) gl_absname_cpp="$ac_cpp" ;;
15473 esac
15474
15475 case "$host_os" in
15476 mingw*)
15477 gl_dirsep_regex='[/\\]'
15478 ;;
15479 *)
15480 gl_dirsep_regex='\/'
15481 ;;
15482 esac
15483 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15484
15485 gl_header_literal_regex=`echo 'sys/select.h' \
15486 | sed -e "$gl_make_literal_regex_sed"`
15487 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15488 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15489 s|^/[^/]|//&|
15490 p
15491 q
15492 }'
15493 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15494 sed -n "$gl_absolute_header_sed"`'"'
15495 else
15496 gl_cv_next_sys_select_h='<'sys/select.h'>'
15497 fi
15498
15499
15500 fi
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
15502 $as_echo "$gl_cv_next_sys_select_h" >&6; }
15503 fi
15504 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
15505
15506 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15507 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15508 gl_next_as_first_directive='<'sys/select.h'>'
15509 else
15510 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15511 gl_next_as_first_directive=$gl_cv_next_sys_select_h
15512 fi
15513 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
15514
15515
15516
15517
15518 if test $ac_cv_header_sys_select_h = yes; then
15519 HAVE_SYS_SELECT_H=1
15520 else
15521 HAVE_SYS_SELECT_H=0
15522 fi
15523
15524
15525
15526
15527
15528 if test $ac_cv_header_sys_socket_h != yes; then
15529 for ac_header in winsock2.h
15530 do :
15531 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15532 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
15533 cat >>confdefs.h <<_ACEOF
15534 #define HAVE_WINSOCK2_H 1
15535 _ACEOF
15536
15537 fi
15538
15539 done
15540
15541 fi
15542 if test "$ac_cv_header_winsock2_h" = yes; then
15543 HAVE_WINSOCK2_H=1
15544 UNISTD_H_HAVE_WINSOCK2_H=1
15545 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
15546 else
15547 HAVE_WINSOCK2_H=0
15548 fi
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571 if test $gl_cv_have_include_next = yes; then
15572 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15573 else
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15575 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15576 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15577 $as_echo_n "(cached) " >&6
15578 else
15579
15580 if test $ac_cv_header_sys_stat_h = yes; then
15581
15582
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585 #include <sys/stat.h>
15586
15587 _ACEOF
15588 case "$host_os" in
15589 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15590 *) gl_absname_cpp="$ac_cpp" ;;
15591 esac
15592
15593 case "$host_os" in
15594 mingw*)
15595 gl_dirsep_regex='[/\\]'
15596 ;;
15597 *)
15598 gl_dirsep_regex='\/'
15599 ;;
15600 esac
15601 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15602
15603 gl_header_literal_regex=`echo 'sys/stat.h' \
15604 | sed -e "$gl_make_literal_regex_sed"`
15605 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15606 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15607 s|^/[^/]|//&|
15608 p
15609 q
15610 }'
15611 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15612 sed -n "$gl_absolute_header_sed"`'"'
15613 else
15614 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15615 fi
15616
15617
15618 fi
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15620 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15621 fi
15622 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15623
15624 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15625 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15626 gl_next_as_first_directive='<'sys/stat.h'>'
15627 else
15628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15629 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15630 fi
15631 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15644
15645 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15646
15647 fi
15648
15649 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15650 #include <sys/stat.h>
15651 "
15652 if test "x$ac_cv_type_nlink_t" = x""yes; then :
15653
15654 else
15655
15656 $as_echo "#define nlink_t int" >>confdefs.h
15657
15658 fi
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
15678 "
15679 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15680 ac_have_decl=1
15681 else
15682 ac_have_decl=0
15683 fi
15684
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15687 _ACEOF
15688
15689 if test $ac_cv_have_decl_localtime_r = no; then
15690 HAVE_DECL_LOCALTIME_R=0
15691 fi
15692
15693
15694 if test $ac_cv_func_localtime_r = yes; then
15695 HAVE_LOCALTIME_R=1
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15697 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15698 if test "${gl_cv_time_r_posix+set}" = set; then :
15699 $as_echo_n "(cached) " >&6
15700 else
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 #include <time.h>
15704 int
15705 main ()
15706 {
15707 /* We don't need to append 'restrict's to the argument types,
15708 even though the POSIX signature has the 'restrict's,
15709 since C99 says they can't affect type compatibility. */
15710 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15711 if (ptr) return 0;
15712 /* Check the return type is a pointer.
15713 On HP-UX 10 it is 'int'. */
15714 *localtime_r (0, 0);
15715 ;
15716 return 0;
15717 }
15718
15719 _ACEOF
15720 if ac_fn_c_try_compile "$LINENO"; then :
15721 gl_cv_time_r_posix=yes
15722 else
15723 gl_cv_time_r_posix=no
15724 fi
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726
15727 fi
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15729 $as_echo "$gl_cv_time_r_posix" >&6; }
15730 if test $gl_cv_time_r_posix = yes; then
15731 REPLACE_LOCALTIME_R=0
15732 else
15733 REPLACE_LOCALTIME_R=1
15734 fi
15735 else
15736 HAVE_LOCALTIME_R=0
15737 fi
15738
15739 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15740
15741
15742
15743
15744
15745
15746
15747
15748 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15749
15750
15751 :
15752
15753 fi
15754
15755
15756
15757
15758
15759 GNULIB_TIME_R=1
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782 if test $gl_cv_have_include_next = yes; then
15783 gl_cv_next_unistd_h='<'unistd.h'>'
15784 else
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15786 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15787 if test "${gl_cv_next_unistd_h+set}" = set; then :
15788 $as_echo_n "(cached) " >&6
15789 else
15790
15791 if test $ac_cv_header_unistd_h = yes; then
15792
15793
15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15796 #include <unistd.h>
15797
15798 _ACEOF
15799 case "$host_os" in
15800 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15801 *) gl_absname_cpp="$ac_cpp" ;;
15802 esac
15803
15804 case "$host_os" in
15805 mingw*)
15806 gl_dirsep_regex='[/\\]'
15807 ;;
15808 *)
15809 gl_dirsep_regex='\/'
15810 ;;
15811 esac
15812 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15813
15814 gl_header_literal_regex=`echo 'unistd.h' \
15815 | sed -e "$gl_make_literal_regex_sed"`
15816 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15817 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15818 s|^/[^/]|//&|
15819 p
15820 q
15821 }'
15822 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15823 sed -n "$gl_absolute_header_sed"`'"'
15824 else
15825 gl_cv_next_unistd_h='<'unistd.h'>'
15826 fi
15827
15828
15829 fi
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15831 $as_echo "$gl_cv_next_unistd_h" >&6; }
15832 fi
15833 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15834
15835 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15836 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15837 gl_next_as_first_directive='<'unistd.h'>'
15838 else
15839 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15840 gl_next_as_first_directive=$gl_cv_next_unistd_h
15841 fi
15842 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15843
15844
15845
15846
15847 if test $ac_cv_header_unistd_h = yes; then
15848 HAVE_UNISTD_H=1
15849 else
15850 HAVE_UNISTD_H=0
15851 fi
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
15868 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
15869 if test "${gl_cv_func_futimesat_works+set}" = set; then :
15870 $as_echo_n "(cached) " >&6
15871 else
15872 touch conftest.file
15873 if test "$cross_compiling" = yes; then :
15874 case "$host_os" in
15875 # Guess yes on glibc systems.
15876 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
15877 # If we don't know, assume the worst.
15878 *) gl_cv_func_futimesat_works="guessing no" ;;
15879 esac
15880
15881 else
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884
15885 #include <stddef.h>
15886 #include <sys/times.h>
15887 #include <fcntl.h>
15888
15889 int
15890 main ()
15891 {
15892 int fd = open ("conftest.file", O_RDWR);
15893 if (fd < 0) return 1;
15894 if (futimesat (fd, NULL, NULL)) return 2;
15895
15896 ;
15897 return 0;
15898 }
15899 _ACEOF
15900 if ac_fn_c_try_run "$LINENO"; then :
15901 gl_cv_func_futimesat_works=yes
15902 else
15903 gl_cv_func_futimesat_works=no
15904 fi
15905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15906 conftest.$ac_objext conftest.beam conftest.$ac_ext
15907 fi
15908
15909 rm -f conftest.file
15910 fi
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
15912 $as_echo "$gl_cv_func_futimesat_works" >&6; }
15913 case "$gl_cv_func_futimesat_works" in
15914 *yes) ;;
15915 *)
15916
15917 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
15918
15919 ;;
15920 esac
15921 fi
15922
15923 gl_gnulib_enabled_dosname=false
15924 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
15925 gl_gnulib_enabled_pathmax=false
15926 gl_gnulib_enabled_stat=false
15927 gl_gnulib_enabled_strtoll=false
15928 gl_gnulib_enabled_strtoull=false
15929 gl_gnulib_enabled_verify=false
15930 func_gl_gnulib_m4code_dosname ()
15931 {
15932 if ! $gl_gnulib_enabled_dosname; then
15933 gl_gnulib_enabled_dosname=true
15934 fi
15935 }
15936 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
15937 {
15938 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
15939
15940
15941 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
15942 fi
15943 }
15944 func_gl_gnulib_m4code_pathmax ()
15945 {
15946 if ! $gl_gnulib_enabled_pathmax; then
15947
15948
15949
15950 gl_gnulib_enabled_pathmax=true
15951 fi
15952 }
15953 func_gl_gnulib_m4code_stat ()
15954 {
15955 if ! $gl_gnulib_enabled_stat; then
15956
15957
15958
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15960 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15961 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15962 $as_echo_n "(cached) " >&6
15963 else
15964 if test "$cross_compiling" = yes; then :
15965 case $host_os in
15966 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15967 *) gl_cv_func_stat_dir_slash="guessing yes";;
15968 esac
15969 else
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <sys/stat.h>
15973
15974 int
15975 main ()
15976 {
15977 struct stat st; return stat (".", &st) != stat ("./", &st);
15978 ;
15979 return 0;
15980 }
15981 _ACEOF
15982 if ac_fn_c_try_run "$LINENO"; then :
15983 gl_cv_func_stat_dir_slash=yes
15984 else
15985 gl_cv_func_stat_dir_slash=no
15986 fi
15987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15988 conftest.$ac_objext conftest.beam conftest.$ac_ext
15989 fi
15990
15991 fi
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15993 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15995 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15996 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15997 $as_echo_n "(cached) " >&6
15998 else
15999 touch conftest.tmp
16000 # Assume that if we have lstat, we can also check symlinks.
16001 if test $ac_cv_func_lstat = yes; then
16002 ln -s conftest.tmp conftest.lnk
16003 fi
16004 if test "$cross_compiling" = yes; then :
16005 case "$host_os" in
16006 # Guess yes on glibc systems.
16007 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16008 # If we don't know, assume the worst.
16009 *) gl_cv_func_stat_file_slash="guessing no" ;;
16010 esac
16011
16012 else
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 #include <sys/stat.h>
16016
16017 int
16018 main ()
16019 {
16020 int result = 0;
16021 struct stat st;
16022 if (!stat ("conftest.tmp/", &st))
16023 result |= 1;
16024 #if HAVE_LSTAT
16025 if (!stat ("conftest.lnk/", &st))
16026 result |= 2;
16027 #endif
16028 return result;
16029
16030 ;
16031 return 0;
16032 }
16033 _ACEOF
16034 if ac_fn_c_try_run "$LINENO"; then :
16035 gl_cv_func_stat_file_slash=yes
16036 else
16037 gl_cv_func_stat_file_slash=no
16038 fi
16039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16040 conftest.$ac_objext conftest.beam conftest.$ac_ext
16041 fi
16042
16043 rm -f conftest.tmp conftest.lnk
16044 fi
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16046 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16047 case $gl_cv_func_stat_dir_slash in
16048 *no) REPLACE_STAT=1
16049
16050 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16051 ;;
16052 esac
16053 case $gl_cv_func_stat_file_slash in
16054 *no) REPLACE_STAT=1
16055
16056 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16057 ;;
16058 esac
16059
16060 if test $REPLACE_STAT = 1; then
16061
16062
16063
16064
16065
16066
16067
16068
16069 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16070
16071
16072
16073 :
16074
16075 fi
16076
16077
16078
16079
16080
16081 GNULIB_STAT=1
16082
16083
16084
16085
16086
16087 gl_gnulib_enabled_stat=true
16088 if test $REPLACE_STAT = 1; then
16089 func_gl_gnulib_m4code_dosname
16090 fi
16091 if test $REPLACE_STAT = 1; then
16092 func_gl_gnulib_m4code_pathmax
16093 fi
16094 if test $REPLACE_STAT = 1; then
16095 func_gl_gnulib_m4code_verify
16096 fi
16097 fi
16098 }
16099 func_gl_gnulib_m4code_strtoll ()
16100 {
16101 if ! $gl_gnulib_enabled_strtoll; then
16102
16103
16104
16105 if test "$ac_cv_type_long_long_int" = yes; then
16106 for ac_func in strtoll
16107 do :
16108 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
16109 if test "x$ac_cv_func_strtoll" = x""yes; then :
16110 cat >>confdefs.h <<_ACEOF
16111 #define HAVE_STRTOLL 1
16112 _ACEOF
16113
16114 fi
16115 done
16116
16117 if test $ac_cv_func_strtoll = no; then
16118 HAVE_STRTOLL=0
16119 fi
16120 fi
16121
16122 if test $HAVE_STRTOLL = 0; then
16123
16124
16125
16126
16127
16128
16129
16130
16131 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
16132
16133
16134 :
16135
16136 fi
16137
16138
16139
16140
16141
16142 GNULIB_STRTOLL=1
16143
16144
16145
16146
16147
16148 gl_gnulib_enabled_strtoll=true
16149 fi
16150 }
16151 func_gl_gnulib_m4code_strtoull ()
16152 {
16153 if ! $gl_gnulib_enabled_strtoull; then
16154
16155
16156
16157 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
16158 for ac_func in strtoull
16159 do :
16160 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
16161 if test "x$ac_cv_func_strtoull" = x""yes; then :
16162 cat >>confdefs.h <<_ACEOF
16163 #define HAVE_STRTOULL 1
16164 _ACEOF
16165
16166 fi
16167 done
16168
16169 if test $ac_cv_func_strtoull = no; then
16170 HAVE_STRTOULL=0
16171 fi
16172 fi
16173
16174 if test $HAVE_STRTOULL = 0; then
16175
16176
16177
16178
16179
16180
16181
16182
16183 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
16184
16185
16186 :
16187
16188 fi
16189
16190
16191
16192
16193
16194 GNULIB_STRTOULL=1
16195
16196
16197
16198
16199
16200 gl_gnulib_enabled_strtoull=true
16201 fi
16202 }
16203 func_gl_gnulib_m4code_verify ()
16204 {
16205 if ! $gl_gnulib_enabled_verify; then
16206 gl_gnulib_enabled_verify=true
16207 fi
16208 }
16209 if test $REPLACE_GETOPT = 1; then
16210 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
16211 fi
16212 if test $REPLACE_LSTAT = 1; then
16213 func_gl_gnulib_m4code_dosname
16214 fi
16215 if test $REPLACE_LSTAT = 1; then
16216 func_gl_gnulib_m4code_stat
16217 fi
16218 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16219 func_gl_gnulib_m4code_stat
16220 fi
16221 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
16222 func_gl_gnulib_m4code_strtoll
16223 fi
16224 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
16225 func_gl_gnulib_m4code_verify
16226 fi
16227 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
16228 func_gl_gnulib_m4code_strtoull
16229 fi
16230 if test $ac_cv_func_strtoumax = no; then
16231 func_gl_gnulib_m4code_verify
16232 fi
16233
16234 if $gl_gnulib_enabled_dosname; then
16235 gl_GNULIB_ENABLED_dosname_TRUE=
16236 gl_GNULIB_ENABLED_dosname_FALSE='#'
16237 else
16238 gl_GNULIB_ENABLED_dosname_TRUE='#'
16239 gl_GNULIB_ENABLED_dosname_FALSE=
16240 fi
16241
16242 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
16243 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
16244 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
16245 else
16246 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
16247 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
16248 fi
16249
16250 if $gl_gnulib_enabled_pathmax; then
16251 gl_GNULIB_ENABLED_pathmax_TRUE=
16252 gl_GNULIB_ENABLED_pathmax_FALSE='#'
16253 else
16254 gl_GNULIB_ENABLED_pathmax_TRUE='#'
16255 gl_GNULIB_ENABLED_pathmax_FALSE=
16256 fi
16257
16258 if $gl_gnulib_enabled_stat; then
16259 gl_GNULIB_ENABLED_stat_TRUE=
16260 gl_GNULIB_ENABLED_stat_FALSE='#'
16261 else
16262 gl_GNULIB_ENABLED_stat_TRUE='#'
16263 gl_GNULIB_ENABLED_stat_FALSE=
16264 fi
16265
16266 if $gl_gnulib_enabled_strtoll; then
16267 gl_GNULIB_ENABLED_strtoll_TRUE=
16268 gl_GNULIB_ENABLED_strtoll_FALSE='#'
16269 else
16270 gl_GNULIB_ENABLED_strtoll_TRUE='#'
16271 gl_GNULIB_ENABLED_strtoll_FALSE=
16272 fi
16273
16274 if $gl_gnulib_enabled_strtoull; then
16275 gl_GNULIB_ENABLED_strtoull_TRUE=
16276 gl_GNULIB_ENABLED_strtoull_FALSE='#'
16277 else
16278 gl_GNULIB_ENABLED_strtoull_TRUE='#'
16279 gl_GNULIB_ENABLED_strtoull_FALSE=
16280 fi
16281
16282 if $gl_gnulib_enabled_verify; then
16283 gl_GNULIB_ENABLED_verify_TRUE=
16284 gl_GNULIB_ENABLED_verify_FALSE='#'
16285 else
16286 gl_GNULIB_ENABLED_verify_TRUE='#'
16287 gl_GNULIB_ENABLED_verify_FALSE=
16288 fi
16289
16290 # End of code from modules
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300 gltests_libdeps=
16301 gltests_ltlibdeps=
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311 gl_source_base='tests'
16312 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
16313
16314 gl_module_indicator_condition=$gltests_WITNESS
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325 LIBGNU_LIBDEPS="$gl_libdeps"
16326
16327 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16328
16329
16330
16331 # Extract the first word of "pkg-config", so it can be a program name with args.
16332 set dummy pkg-config; ac_word=$2
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16334 $as_echo_n "checking for $ac_word... " >&6; }
16335 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16336 $as_echo_n "(cached) " >&6
16337 else
16338 case $PKG_CONFIG in
16339 [\\/]* | ?:[\\/]*)
16340 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16341 ;;
16342 *)
16343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16344 for as_dir in $PATH
16345 do
16346 IFS=$as_save_IFS
16347 test -z "$as_dir" && as_dir=.
16348 for ac_exec_ext in '' $ac_executable_extensions; do
16349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16350 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16352 break 2
16353 fi
16354 done
16355 done
16356 IFS=$as_save_IFS
16357
16358 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16359 ;;
16360 esac
16361 fi
16362 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16363 if test -n "$PKG_CONFIG"; then
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16365 $as_echo "$PKG_CONFIG" >&6; }
16366 else
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16368 $as_echo "no" >&6; }
16369 fi
16370
16371
16372
16373
16374
16375
16376 if test "${with_sound}" != "no"; then
16377 # Sound support for GNU/Linux and the free BSDs.
16378 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
16379 do :
16380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16381 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16382 eval as_val=\$$as_ac_Header
16383 if test "x$as_val" = x""yes; then :
16384 cat >>confdefs.h <<_ACEOF
16385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16386 _ACEOF
16387 have_sound_header=yes
16388 fi
16389
16390 done
16391
16392 # Emulation library used on NetBSD.
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
16394 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
16395 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
16396 $as_echo_n "(cached) " >&6
16397 else
16398 ac_check_lib_save_LIBS=$LIBS
16399 LIBS="-lossaudio $LIBS"
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h. */
16402
16403 /* Override any GCC internal prototype to avoid an error.
16404 Use char because int might match the return type of a GCC
16405 builtin and then its argument prototype would still apply. */
16406 #ifdef __cplusplus
16407 extern "C"
16408 #endif
16409 char _oss_ioctl ();
16410 int
16411 main ()
16412 {
16413 return _oss_ioctl ();
16414 ;
16415 return 0;
16416 }
16417 _ACEOF
16418 if ac_fn_c_try_link "$LINENO"; then :
16419 ac_cv_lib_ossaudio__oss_ioctl=yes
16420 else
16421 ac_cv_lib_ossaudio__oss_ioctl=no
16422 fi
16423 rm -f core conftest.err conftest.$ac_objext \
16424 conftest$ac_exeext conftest.$ac_ext
16425 LIBS=$ac_check_lib_save_LIBS
16426 fi
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
16428 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
16429 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
16430 LIBSOUND=-lossaudio
16431 else
16432 LIBSOUND=
16433 fi
16434
16435
16436
16437 ALSA_REQUIRED=1.0.0
16438 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
16439
16440 succeeded=no
16441
16442 if test "$PKG_CONFIG" = "no" ; then
16443 HAVE_ALSA=no
16444 else
16445 PKG_CONFIG_MIN_VERSION=0.9.0
16446 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
16448 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
16449
16450 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
16451 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
16452 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
16453 edit_cflags="
16454 s,///*,/,g
16455 s/^/ /
16456 s/ -I/ $isystem/g
16457 s/^ //
16458 "
16459 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
16460 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
16462 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
16463 succeeded=yes
16464 else
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16466 $as_echo "no" >&6; }
16467 ALSA_CFLAGS=""
16468 ALSA_LIBS=""
16469 ## If we have a custom action on failure, don't print errors, but
16470 ## do set a variable so people can do so.
16471 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
16472
16473 fi
16474
16475
16476
16477 else
16478 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16479 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16480 fi
16481 fi
16482
16483 if test $succeeded = yes; then
16484 HAVE_ALSA=yes
16485 else
16486 HAVE_ALSA=no
16487 fi
16488
16489 if test $HAVE_ALSA = yes; then
16490 SAVE_CFLAGS="$CFLAGS"
16491 SAVE_LIBS="$LIBS"
16492 CFLAGS="$ALSA_CFLAGS $CFLAGS"
16493 LIBS="$ALSA_LIBS $LIBS"
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16496 #include <asoundlib.h>
16497 int
16498 main ()
16499 {
16500 snd_lib_error_set_handler (0);
16501 ;
16502 return 0;
16503 }
16504 _ACEOF
16505 if ac_fn_c_try_compile "$LINENO"; then :
16506 emacs_alsa_normal=yes
16507 else
16508 emacs_alsa_normal=no
16509 fi
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 if test "$emacs_alsa_normal" != yes; then
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16514 #include <alsa/asoundlib.h>
16515 int
16516 main ()
16517 {
16518 snd_lib_error_set_handler (0);
16519 ;
16520 return 0;
16521 }
16522 _ACEOF
16523 if ac_fn_c_try_compile "$LINENO"; then :
16524 emacs_alsa_subdir=yes
16525 else
16526 emacs_alsa_subdir=no
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 if test "$emacs_alsa_subdir" != yes; then
16530 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
16531 fi
16532 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
16533 fi
16534
16535 CFLAGS="$SAVE_CFLAGS"
16536 LIBS="$SAVE_LIBS"
16537 LIBSOUND="$LIBSOUND $ALSA_LIBS"
16538 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
16539
16540 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
16541
16542 fi
16543
16544 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
16545 case "$opsys" in
16546 gnu-linux|freebsd|netbsd)
16547
16548 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
16549
16550 ;;
16551 esac
16552 fi
16553
16554
16555 fi
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
16586 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16589 #include <sys/personality.h>
16590 int
16591 main ()
16592 {
16593 personality (PER_LINUX32)
16594 ;
16595 return 0;
16596 }
16597 _ACEOF
16598 if ac_fn_c_try_compile "$LINENO"; then :
16599 emacs_cv_personality_linux32=yes
16600 else
16601 emacs_cv_personality_linux32=no
16602 fi
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
16605 $as_echo "$emacs_cv_personality_linux32" >&6; }
16606
16607 if test $emacs_cv_personality_linux32 = yes; then
16608
16609 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
16610
16611 fi
16612
16613 for ac_header in term.h
16614 do :
16615 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
16616 if test "x$ac_cv_header_term_h" = x""yes; then :
16617 cat >>confdefs.h <<_ACEOF
16618 #define HAVE_TERM_H 1
16619 _ACEOF
16620
16621 fi
16622
16623 done
16624
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16626 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16627 if test "${ac_cv_header_time+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16629 else
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16632 #include <sys/types.h>
16633 #include <sys/time.h>
16634 #include <time.h>
16635
16636 int
16637 main ()
16638 {
16639 if ((struct tm *) 0)
16640 return 0;
16641 ;
16642 return 0;
16643 }
16644 _ACEOF
16645 if ac_fn_c_try_compile "$LINENO"; then :
16646 ac_cv_header_time=yes
16647 else
16648 ac_cv_header_time=no
16649 fi
16650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16651 fi
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16653 $as_echo "$ac_cv_header_time" >&6; }
16654 if test $ac_cv_header_time = yes; then
16655
16656 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16657
16658 fi
16659
16660 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
16661 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16662 ac_have_decl=1
16663 else
16664 ac_have_decl=0
16665 fi
16666
16667 cat >>confdefs.h <<_ACEOF
16668 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16669 _ACEOF
16670
16671 if test $ac_cv_have_decl_sys_siglist != yes; then
16672 # For Tru64, at least:
16673 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
16674 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16675 ac_have_decl=1
16676 else
16677 ac_have_decl=0
16678 fi
16679
16680 cat >>confdefs.h <<_ACEOF
16681 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16682 _ACEOF
16683
16684 if test $ac_cv_have_decl___sys_siglist = yes; then
16685
16686 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
16687
16688 fi
16689 fi
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16691 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16692 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16693 $as_echo_n "(cached) " >&6
16694 else
16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696 /* end confdefs.h. */
16697 #include <sys/types.h>
16698 #include <sys/wait.h>
16699 #ifndef WEXITSTATUS
16700 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16701 #endif
16702 #ifndef WIFEXITED
16703 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16704 #endif
16705
16706 int
16707 main ()
16708 {
16709 int s;
16710 wait (&s);
16711 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16712 ;
16713 return 0;
16714 }
16715 _ACEOF
16716 if ac_fn_c_try_compile "$LINENO"; then :
16717 ac_cv_header_sys_wait_h=yes
16718 else
16719 ac_cv_header_sys_wait_h=no
16720 fi
16721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722 fi
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16724 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16725 if test $ac_cv_header_sys_wait_h = yes; then
16726
16727 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16728
16729 fi
16730
16731
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
16733 $as_echo_n "checking for speed_t... " >&6; }
16734 if test "${emacs_cv_speed_t+set}" = set; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h. */
16739 #include <termios.h>
16740 int
16741 main ()
16742 {
16743 speed_t x = 1;
16744 ;
16745 return 0;
16746 }
16747 _ACEOF
16748 if ac_fn_c_try_compile "$LINENO"; then :
16749 emacs_cv_speed_t=yes
16750 else
16751 emacs_cv_speed_t=no
16752 fi
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754 fi
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
16756 $as_echo "$emacs_cv_speed_t" >&6; }
16757 if test $emacs_cv_speed_t = yes; then
16758
16759 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
16760
16761 fi
16762
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
16764 $as_echo_n "checking for struct exception... " >&6; }
16765 if test "${emacs_cv_struct_exception+set}" = set; then :
16766 $as_echo_n "(cached) " >&6
16767 else
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16770 #include <math.h>
16771 int
16772 main ()
16773 {
16774 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
16775 ;
16776 return 0;
16777 }
16778 _ACEOF
16779 if ac_fn_c_try_compile "$LINENO"; then :
16780 emacs_cv_struct_exception=yes
16781 else
16782 emacs_cv_struct_exception=no
16783 fi
16784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 fi
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
16787 $as_echo "$emacs_cv_struct_exception" >&6; }
16788 HAVE_EXCEPTION=$emacs_cv_struct_exception
16789 if test $emacs_cv_struct_exception != yes || test $opsys = darwin; then
16790
16791 $as_echo "#define NO_MATHERR 1" >>confdefs.h
16792
16793 fi
16794
16795
16796 for ac_header in net/if.h
16797 do :
16798 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16799 #if HAVE_SYS_SOCKET_H
16800 #include <sys/socket.h>
16801 #endif
16802 "
16803 if test "x$ac_cv_header_net_if_h" = x""yes; then :
16804 cat >>confdefs.h <<_ACEOF
16805 #define HAVE_NET_IF_H 1
16806 _ACEOF
16807
16808 fi
16809
16810 done
16811
16812 for ac_header in ifaddrs.h
16813 do :
16814 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
16815 #if HAVE_SYS_SOCKET_H
16816 #include <sys/socket.h>
16817 #endif
16818 "
16819 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
16820 cat >>confdefs.h <<_ACEOF
16821 #define HAVE_IFADDRS_H 1
16822 _ACEOF
16823
16824 fi
16825
16826 done
16827
16828 for ac_header in net/if_dl.h
16829 do :
16830 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
16831 #if HAVE_SYS_SOCKET_H
16832 #include <sys/socket.h>
16833 #endif
16834 "
16835 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
16836 cat >>confdefs.h <<_ACEOF
16837 #define HAVE_NET_IF_DL_H 1
16838 _ACEOF
16839
16840 fi
16841
16842 done
16843
16844
16845 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
16846 #if HAVE_SYS_SOCKET_H
16847 #include <sys/socket.h>
16848 #endif
16849 #if HAVE_NET_IF_H
16850 #include <net/if.h>
16851 #endif
16852 "
16853 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
16854
16855 cat >>confdefs.h <<_ACEOF
16856 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
16857 _ACEOF
16858
16859
16860 fi
16861 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
16862 #if HAVE_SYS_SOCKET_H
16863 #include <sys/socket.h>
16864 #endif
16865 #if HAVE_NET_IF_H
16866 #include <net/if.h>
16867 #endif
16868 "
16869 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
16870
16871 cat >>confdefs.h <<_ACEOF
16872 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16873 _ACEOF
16874
16875
16876 fi
16877 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
16878 #if HAVE_SYS_SOCKET_H
16879 #include <sys/socket.h>
16880 #endif
16881 #if HAVE_NET_IF_H
16882 #include <net/if.h>
16883 #endif
16884 "
16885 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
16886
16887 cat >>confdefs.h <<_ACEOF
16888 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
16889 _ACEOF
16890
16891
16892 fi
16893 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
16894 #if HAVE_SYS_SOCKET_H
16895 #include <sys/socket.h>
16896 #endif
16897 #if HAVE_NET_IF_H
16898 #include <net/if.h>
16899 #endif
16900 "
16901 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
16902
16903 cat >>confdefs.h <<_ACEOF
16904 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
16905 _ACEOF
16906
16907
16908 fi
16909 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
16910 #if HAVE_SYS_SOCKET_H
16911 #include <sys/socket.h>
16912 #endif
16913 #if HAVE_NET_IF_H
16914 #include <net/if.h>
16915 #endif
16916 "
16917 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
16918
16919 cat >>confdefs.h <<_ACEOF
16920 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
16921 _ACEOF
16922
16923
16924 fi
16925 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
16926 #if HAVE_SYS_SOCKET_H
16927 #include <sys/socket.h>
16928 #endif
16929 #if HAVE_NET_IF_H
16930 #include <net/if.h>
16931 #endif
16932 "
16933 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
16934
16935 cat >>confdefs.h <<_ACEOF
16936 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
16937 _ACEOF
16938
16939
16940 fi
16941
16942
16943
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
16945 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
16946 if test "${emacs_cv_attribute_aligned+set}" = set; then :
16947 $as_echo_n "(cached) " >&6
16948 else
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16951 char __attribute__ ((__aligned__ (1 << 3))) c;
16952 int
16953 main ()
16954 {
16955
16956 ;
16957 return 0;
16958 }
16959 _ACEOF
16960 if ac_fn_c_try_compile "$LINENO"; then :
16961 emacs_cv_attribute_aligned=yes
16962 else
16963 emacs_cv_attribute_aligned=no
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
16968 $as_echo "$emacs_cv_attribute_aligned" >&6; }
16969 if test $emacs_cv_attribute_aligned = yes; then
16970
16971 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
16972
16973 fi
16974
16975
16976 DEPFLAGS=
16977 MKDEPDIR=":"
16978 deps_frag=deps.mk
16979 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
16981 $as_echo_n "checking whether we are using GNU Make... " >&6; }
16982 HAVE_GNU_MAKE=no
16983 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
16984 if test "x$testval" != x; then
16985 HAVE_GNU_MAKE=yes
16986 else
16987 ac_enable_autodepend=no
16988 fi
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
16990 $as_echo "$HAVE_GNU_MAKE" >&6; }
16991 if test $HAVE_GNU_MAKE = yes; then
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
16993 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
16994 SAVE_CFLAGS="$CFLAGS"
16995 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998
16999 int
17000 main ()
17001 {
17002
17003 ;
17004 return 0;
17005 }
17006 _ACEOF
17007 if ac_fn_c_try_compile "$LINENO"; then :
17008
17009 else
17010 ac_enable_autodepend=no
17011 fi
17012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17013 CFLAGS="$SAVE_CFLAGS"
17014 test -f deps.d || ac_enable_autodepend=no
17015 rm -rf deps.d
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
17017 $as_echo "$ac_enable_autodepend" >&6; }
17018 fi
17019 if test $ac_enable_autodepend = yes; then
17020 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
17021 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
17022 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
17023 deps_frag=autodeps.mk
17024 fi
17025 fi
17026 deps_frag=$srcdir/src/$deps_frag
17027
17028
17029
17030
17031
17032 lisp_frag=$srcdir/src/lisp.mk
17033
17034
17035
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
17037 $as_echo_n "checking for long file names... " >&6; }
17038 if test "${ac_cv_sys_long_file_names+set}" = set; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 ac_cv_sys_long_file_names=yes
17042 # Test for long file names in all the places we know might matter:
17043 # . the current directory, where building will happen
17044 # $prefix/lib where we will be installing things
17045 # $exec_prefix/lib likewise
17046 # $TMPDIR if set, where it might want to write temporary files
17047 # /tmp where it might want to write temporary files
17048 # /var/tmp likewise
17049 # /usr/tmp likewise
17050 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
17051 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
17052 # in the usual case where exec_prefix is '${prefix}'.
17053 case $ac_dir in #(
17054 . | /* | ?:[\\/]*) ;; #(
17055 *) continue;;
17056 esac
17057 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
17058 ac_xdir=$ac_dir/cf$$
17059 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
17060 ac_tf1=$ac_xdir/conftest9012345
17061 ac_tf2=$ac_xdir/conftest9012346
17062 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
17063 ac_cv_sys_long_file_names=no
17064 rm -f -r "$ac_xdir" 2>/dev/null
17065 test $ac_cv_sys_long_file_names = no && break
17066 done
17067 fi
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
17069 $as_echo "$ac_cv_sys_long_file_names" >&6; }
17070 if test $ac_cv_sys_long_file_names = yes; then
17071
17072 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
17073
17074 fi
17075
17076
17077 #### Choose a window system.
17078
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17080 $as_echo_n "checking for X... " >&6; }
17081
17082
17083 # Check whether --with-x was given.
17084 if test "${with_x+set}" = set; then :
17085 withval=$with_x;
17086 fi
17087
17088 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17089 if test "x$with_x" = xno; then
17090 # The user explicitly disabled X.
17091 have_x=disabled
17092 else
17093 case $x_includes,$x_libraries in #(
17094 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
17095 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
17096 $as_echo_n "(cached) " >&6
17097 else
17098 # One or both of the vars are not set, and there is no cached value.
17099 ac_x_includes=no ac_x_libraries=no
17100 rm -f -r conftest.dir
17101 if mkdir conftest.dir; then
17102 cd conftest.dir
17103 cat >Imakefile <<'_ACEOF'
17104 incroot:
17105 @echo incroot='${INCROOT}'
17106 usrlibdir:
17107 @echo usrlibdir='${USRLIBDIR}'
17108 libdir:
17109 @echo libdir='${LIBDIR}'
17110 _ACEOF
17111 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17112 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17113 for ac_var in incroot usrlibdir libdir; do
17114 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17115 done
17116 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17117 for ac_extension in a so sl dylib la dll; do
17118 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17119 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17120 ac_im_usrlibdir=$ac_im_libdir; break
17121 fi
17122 done
17123 # Screen out bogus values from the imake configuration. They are
17124 # bogus both because they are the default anyway, and because
17125 # using them would break gcc on systems where it needs fixed includes.
17126 case $ac_im_incroot in
17127 /usr/include) ac_x_includes= ;;
17128 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17129 esac
17130 case $ac_im_usrlibdir in
17131 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17132 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17133 esac
17134 fi
17135 cd ..
17136 rm -f -r conftest.dir
17137 fi
17138
17139 # Standard set of common directories for X headers.
17140 # Check X11 before X11Rn because it is often a symlink to the current release.
17141 ac_x_header_dirs='
17142 /usr/X11/include
17143 /usr/X11R7/include
17144 /usr/X11R6/include
17145 /usr/X11R5/include
17146 /usr/X11R4/include
17147
17148 /usr/include/X11
17149 /usr/include/X11R7
17150 /usr/include/X11R6
17151 /usr/include/X11R5
17152 /usr/include/X11R4
17153
17154 /usr/local/X11/include
17155 /usr/local/X11R7/include
17156 /usr/local/X11R6/include
17157 /usr/local/X11R5/include
17158 /usr/local/X11R4/include
17159
17160 /usr/local/include/X11
17161 /usr/local/include/X11R7
17162 /usr/local/include/X11R6
17163 /usr/local/include/X11R5
17164 /usr/local/include/X11R4
17165
17166 /usr/X386/include
17167 /usr/x386/include
17168 /usr/XFree86/include/X11
17169
17170 /usr/include
17171 /usr/local/include
17172 /usr/unsupported/include
17173 /usr/athena/include
17174 /usr/local/x11r5/include
17175 /usr/lpp/Xamples/include
17176
17177 /usr/openwin/include
17178 /usr/openwin/share/include'
17179
17180 if test "$ac_x_includes" = no; then
17181 # Guess where to find include files, by looking for Xlib.h.
17182 # First, try using that file with no special directory specified.
17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17185 #include <X11/Xlib.h>
17186 _ACEOF
17187 if ac_fn_c_try_cpp "$LINENO"; then :
17188 # We can compile using X headers with no special include directory.
17189 ac_x_includes=
17190 else
17191 for ac_dir in $ac_x_header_dirs; do
17192 if test -r "$ac_dir/X11/Xlib.h"; then
17193 ac_x_includes=$ac_dir
17194 break
17195 fi
17196 done
17197 fi
17198 rm -f conftest.err conftest.$ac_ext
17199 fi # $ac_x_includes = no
17200
17201 if test "$ac_x_libraries" = no; then
17202 # Check for the libraries.
17203 # See if we find them without any special options.
17204 # Don't add to $LIBS permanently.
17205 ac_save_LIBS=$LIBS
17206 LIBS="-lX11 $LIBS"
17207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17208 /* end confdefs.h. */
17209 #include <X11/Xlib.h>
17210 int
17211 main ()
17212 {
17213 XrmInitialize ()
17214 ;
17215 return 0;
17216 }
17217 _ACEOF
17218 if ac_fn_c_try_link "$LINENO"; then :
17219 LIBS=$ac_save_LIBS
17220 # We can link X programs with no special library path.
17221 ac_x_libraries=
17222 else
17223 LIBS=$ac_save_LIBS
17224 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17225 do
17226 # Don't even attempt the hair of trying to link an X program!
17227 for ac_extension in a so sl dylib la dll; do
17228 if test -r "$ac_dir/libX11.$ac_extension"; then
17229 ac_x_libraries=$ac_dir
17230 break 2
17231 fi
17232 done
17233 done
17234 fi
17235 rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17237 fi # $ac_x_libraries = no
17238
17239 case $ac_x_includes,$ac_x_libraries in #(
17240 no,* | *,no | *\'*)
17241 # Didn't find X, or a directory has "'" in its name.
17242 ac_cv_have_x="have_x=no";; #(
17243 *)
17244 # Record where we found X for the cache.
17245 ac_cv_have_x="have_x=yes\
17246 ac_x_includes='$ac_x_includes'\
17247 ac_x_libraries='$ac_x_libraries'"
17248 esac
17249 fi
17250 ;; #(
17251 *) have_x=yes;;
17252 esac
17253 eval "$ac_cv_have_x"
17254 fi # $with_x != no
17255
17256 if test "$have_x" != yes; then
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17258 $as_echo "$have_x" >&6; }
17259 no_x=yes
17260 else
17261 # If each of the values was on the command line, it overrides each guess.
17262 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17263 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17264 # Update the cache value to reflect the command line values.
17265 ac_cv_have_x="have_x=yes\
17266 ac_x_includes='$x_includes'\
17267 ac_x_libraries='$x_libraries'"
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17269 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17270 fi
17271
17272 if test "$no_x" = yes; then
17273 window_system=none
17274 else
17275 window_system=x11
17276 fi
17277
17278 LD_SWITCH_X_SITE_RPATH=
17279 if test "${x_libraries}" != NONE; then
17280 if test -n "${x_libraries}"; then
17281 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
17282 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
17283 fi
17284 x_default_search_path=""
17285 x_search_path=${x_libraries}
17286 if test -z "${x_search_path}"; then
17287 x_search_path=/usr/lib
17288 fi
17289 for x_library in `echo ${x_search_path}: | \
17290 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
17291 x_search_path="\
17292 ${x_library}/X11/%L/%T/%N%C%S:\
17293 ${x_library}/X11/%l/%T/%N%C%S:\
17294 ${x_library}/X11/%T/%N%C%S:\
17295 ${x_library}/X11/%L/%T/%N%S:\
17296 ${x_library}/X11/%l/%T/%N%S:\
17297 ${x_library}/X11/%T/%N%S"
17298 if test x"${x_default_search_path}" = x; then
17299 x_default_search_path=${x_search_path}
17300 else
17301 x_default_search_path="${x_search_path}:${x_default_search_path}"
17302 fi
17303 done
17304 fi
17305
17306
17307 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
17308 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
17309 fi
17310
17311 if test x"${x_includes}" = x; then
17312 bitmapdir=/usr/include/X11/bitmaps
17313 else
17314 # accumulate include directories that have X11 bitmap subdirectories
17315 bmd_acc="dummyval"
17316 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
17317 if test -d "${bmd}/X11/bitmaps"; then
17318 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
17319 fi
17320 if test -d "${bmd}/bitmaps"; then
17321 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
17322 fi
17323 done
17324 if test ${bmd_acc} != "dummyval"; then
17325 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
17326 fi
17327 fi
17328
17329 HAVE_NS=no
17330 NS_IMPL_COCOA=no
17331 NS_IMPL_GNUSTEP=no
17332 tmp_CPPFLAGS="$CPPFLAGS"
17333 tmp_CFLAGS="$CFLAGS"
17334 CPPFLAGS="$CPPFLAGS -x objective-c"
17335 CFLAGS="$CFLAGS -x objective-c"
17336 TEMACS_LDFLAGS2="\${LDFLAGS}"
17337 GNU_OBJC_CFLAGS=
17338 if test "${with_ns}" != no; then
17339 if test "${opsys}" = darwin; then
17340 NS_IMPL_COCOA=yes
17341 ns_appdir=`pwd`/nextstep/Emacs.app
17342 ns_appbindir=${ns_appdir}/Contents/MacOS
17343 ns_appresdir=${ns_appdir}/Contents/Resources
17344 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
17345 elif test -f $GNUSTEP_CONFIG_FILE; then
17346 NS_IMPL_GNUSTEP=yes
17347 ns_appdir=`pwd`/nextstep/Emacs.app
17348 ns_appbindir=${ns_appdir}
17349 ns_appresdir=${ns_appdir}/Resources
17350 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
17351 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
17352 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
17353 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
17354 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
17355 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
17356 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
17357 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
17358 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
17359 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17360 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17361 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
17362 LIB_STANDARD=
17363 START_FILES=
17364 TEMACS_LDFLAGS2=
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
17366 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
17367 if test "${emacs_cv_objc_exceptions+set}" = set; then :
17368 $as_echo_n "(cached) " >&6
17369 else
17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17372 #include <GNUstepBase/GSConfig.h>
17373 int
17374 main ()
17375 {
17376 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
17377 1;
17378 #else
17379 fail;
17380 #endif
17381 ;
17382 return 0;
17383 }
17384 _ACEOF
17385 if ac_fn_c_try_compile "$LINENO"; then :
17386 emacs_cv_objc_exceptions=yes
17387 else
17388 emacs_cv_objc_exceptions=no
17389 fi
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 fi
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
17393 $as_echo "$emacs_cv_objc_exceptions" >&6; }
17394 if test $emacs_cv_objc_exceptions = yes; then
17395
17396 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
17397
17398 GNU_OBJC_CFLAGS="-fobjc-exceptions"
17399 fi
17400 fi
17401
17402 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
17403
17404 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
17405 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
17406 HAVE_NS=yes
17407 else
17408 as_fn_error "\`--with-ns' was specified, but the include
17409 files are missing or cannot be compiled." "$LINENO" 5
17410 fi
17411
17412
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17415 #include <Foundation/NSObjCRuntime.h>
17416 int
17417 main ()
17418 {
17419 NSInteger i;
17420 ;
17421 return 0;
17422 }
17423 _ACEOF
17424 if ac_fn_c_try_compile "$LINENO"; then :
17425 ns_have_nsinteger=yes
17426 else
17427 ns_have_nsinteger=no
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430 if test $ns_have_nsinteger = yes; then
17431
17432 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
17433
17434 fi
17435 fi
17436
17437
17438 INSTALL_ARCH_INDEP_EXTRA=install-etc
17439 ns_self_contained=no
17440 ns_frag=/dev/null
17441 NS_OBJ=
17442 NS_OBJC_OBJ=
17443 if test "${HAVE_NS}" = yes; then
17444 if test "$with_toolkit_scroll_bars" = "no"; then
17445 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
17446 fi
17447
17448 window_system=nextstep
17449 with_xft=no
17450 # set up packaging dirs
17451 if test "${EN_NS_SELF_CONTAINED}" = yes; then
17452 ns_self_contained=yes
17453 prefix=${ns_appresdir}
17454 exec_prefix=${ns_appbindir}
17455 libexecdir="\${ns_appbindir}/libexec"
17456 archlibdir="\${ns_appbindir}/libexec"
17457 docdir="\${ns_appresdir}/etc"
17458 etcdir="\${ns_appresdir}/etc"
17459 infodir="\${ns_appresdir}/info"
17460 mandir="\${ns_appresdir}/man"
17461 lispdir="\${ns_appresdir}/lisp"
17462 leimdir="\${ns_appresdir}/leim"
17463 INSTALL_ARCH_INDEP_EXTRA=
17464 fi
17465 ns_frag=$srcdir/src/ns.mk
17466 NS_OBJ="fontset.o fringe.o image.o"
17467 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
17468 fi
17469 CFLAGS="$tmp_CFLAGS"
17470 CPPFLAGS="$tmp_CPPFLAGS"
17471
17472
17473
17474
17475
17476
17477
17478 case "${window_system}" in
17479 x11 )
17480 HAVE_X_WINDOWS=yes
17481 HAVE_X11=yes
17482 case "${with_x_toolkit}" in
17483 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
17484 motif ) USE_X_TOOLKIT=MOTIF ;;
17485 gtk ) with_gtk=yes
17486 USE_X_TOOLKIT=none ;;
17487 gtk3 ) with_gtk3=yes
17488 USE_X_TOOLKIT=none ;;
17489 no ) USE_X_TOOLKIT=none ;;
17490 * ) USE_X_TOOLKIT=maybe ;;
17491 esac
17492 ;;
17493 nextstep | none )
17494 HAVE_X_WINDOWS=no
17495 HAVE_X11=no
17496 USE_X_TOOLKIT=none
17497 ;;
17498 esac
17499
17500 if test "$window_system" = none && test "X$with_x" != "Xno"; then
17501 # Extract the first word of "X", so it can be a program name with args.
17502 set dummy X; ac_word=$2
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17504 $as_echo_n "checking for $ac_word... " >&6; }
17505 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 if test -n "$HAVE_XSERVER"; then
17509 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
17510 else
17511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512 for as_dir in $PATH
17513 do
17514 IFS=$as_save_IFS
17515 test -z "$as_dir" && as_dir=.
17516 for ac_exec_ext in '' $ac_executable_extensions; do
17517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17518 ac_cv_prog_HAVE_XSERVER="true"
17519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17520 break 2
17521 fi
17522 done
17523 done
17524 IFS=$as_save_IFS
17525
17526 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
17527 fi
17528 fi
17529 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
17530 if test -n "$HAVE_XSERVER"; then
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
17532 $as_echo "$HAVE_XSERVER" >&6; }
17533 else
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17535 $as_echo "no" >&6; }
17536 fi
17537
17538
17539 if test "$HAVE_XSERVER" = true ||
17540 test -n "$DISPLAY" ||
17541 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
17542 as_fn_error "You seem to be running X, but no X development libraries
17543 were found. You should install the relevant development files for X
17544 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
17545 sure you have development files for image handling, i.e.
17546 tiff, gif, jpeg, png and xpm.
17547 If you are sure you want Emacs compiled without X window support, pass
17548 --without-x
17549 to configure." "$LINENO" 5
17550 fi
17551 fi
17552
17553 ### If we're using X11, we should use the X menu package.
17554 HAVE_MENUS=no
17555 case ${HAVE_X11} in
17556 yes ) HAVE_MENUS=yes ;;
17557 esac
17558
17559 # Does the opsystem file prohibit the use of the GNU malloc?
17560 # Assume not, until told otherwise.
17561 GNU_MALLOC=yes
17562
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
17564 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
17565 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
17566 $as_echo_n "(cached) " >&6
17567 else
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17570 #include <malloc.h>
17571 static void hook (void) {}
17572 int
17573 main ()
17574 {
17575 malloc_set_state (malloc_get_state ());
17576 __after_morecore_hook = hook;
17577 __malloc_initialize_hook = hook;
17578 ;
17579 return 0;
17580 }
17581 _ACEOF
17582 if ac_fn_c_try_link "$LINENO"; then :
17583 emacs_cv_var_doug_lea_malloc=yes
17584 else
17585 emacs_cv_var_doug_lea_malloc=no
17586 fi
17587 rm -f core conftest.err conftest.$ac_objext \
17588 conftest$ac_exeext conftest.$ac_ext
17589 fi
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
17591 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
17592 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
17593
17594
17595 system_malloc=no
17596 case "$opsys" in
17597 ## darwin ld insists on the use of malloc routines in the System framework.
17598 darwin|sol2-10) system_malloc=yes ;;
17599 esac
17600
17601 if test "${system_malloc}" = "yes"; then
17602
17603 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
17604
17605 GNU_MALLOC=no
17606 GNU_MALLOC_reason="
17607 (The GNU allocators don't work with this system configuration.)"
17608 GMALLOC_OBJ=
17609 VMLIMIT_OBJ=
17610 else
17611 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
17612 VMLIMIT_OBJ=vm-limit.o
17613 fi
17614
17615
17616
17617 if test "$doug_lea_malloc" = "yes" ; then
17618 if test "$GNU_MALLOC" = yes ; then
17619 GNU_MALLOC_reason="
17620 (Using Doug Lea's new malloc from the GNU C Library.)"
17621 fi
17622
17623 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
17624
17625
17626 ## Use mmap directly for allocating larger buffers.
17627 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
17628 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
17629 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
17630 case "$opsys" in
17631 gnu*) REL_ALLOC=no ;;
17632 esac
17633 fi
17634
17635 if test x"${REL_ALLOC}" = x; then
17636 REL_ALLOC=${GNU_MALLOC}
17637 fi
17638
17639 use_mmap_for_buffers=no
17640 case "$opsys" in
17641 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
17642 esac
17643
17644
17645
17646
17647 for ac_func in getpagesize
17648 do :
17649 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17650 if test "x$ac_cv_func_getpagesize" = x""yes; then :
17651 cat >>confdefs.h <<_ACEOF
17652 #define HAVE_GETPAGESIZE 1
17653 _ACEOF
17654
17655 fi
17656 done
17657
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17659 $as_echo_n "checking for working mmap... " >&6; }
17660 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
17661 $as_echo_n "(cached) " >&6
17662 else
17663 if test "$cross_compiling" = yes; then :
17664 ac_cv_func_mmap_fixed_mapped=no
17665 else
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17668 $ac_includes_default
17669 /* malloc might have been renamed as rpl_malloc. */
17670 #undef malloc
17671
17672 /* Thanks to Mike Haertel and Jim Avera for this test.
17673 Here is a matrix of mmap possibilities:
17674 mmap private not fixed
17675 mmap private fixed at somewhere currently unmapped
17676 mmap private fixed at somewhere already mapped
17677 mmap shared not fixed
17678 mmap shared fixed at somewhere currently unmapped
17679 mmap shared fixed at somewhere already mapped
17680 For private mappings, we should verify that changes cannot be read()
17681 back from the file, nor mmap's back from the file at a different
17682 address. (There have been systems where private was not correctly
17683 implemented like the infamous i386 svr4.0, and systems where the
17684 VM page cache was not coherent with the file system buffer cache
17685 like early versions of FreeBSD and possibly contemporary NetBSD.)
17686 For shared mappings, we should conversely verify that changes get
17687 propagated back to all the places they're supposed to be.
17688
17689 Grep wants private fixed already mapped.
17690 The main things grep needs to know about mmap are:
17691 * does it exist and is it safe to write into the mmap'd area
17692 * how to use it (BSD variants) */
17693
17694 #include <fcntl.h>
17695 #include <sys/mman.h>
17696
17697 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17698 char *malloc ();
17699 #endif
17700
17701 /* This mess was copied from the GNU getpagesize.h. */
17702 #ifndef HAVE_GETPAGESIZE
17703 # ifdef _SC_PAGESIZE
17704 # define getpagesize() sysconf(_SC_PAGESIZE)
17705 # else /* no _SC_PAGESIZE */
17706 # ifdef HAVE_SYS_PARAM_H
17707 # include <sys/param.h>
17708 # ifdef EXEC_PAGESIZE
17709 # define getpagesize() EXEC_PAGESIZE
17710 # else /* no EXEC_PAGESIZE */
17711 # ifdef NBPG
17712 # define getpagesize() NBPG * CLSIZE
17713 # ifndef CLSIZE
17714 # define CLSIZE 1
17715 # endif /* no CLSIZE */
17716 # else /* no NBPG */
17717 # ifdef NBPC
17718 # define getpagesize() NBPC
17719 # else /* no NBPC */
17720 # ifdef PAGESIZE
17721 # define getpagesize() PAGESIZE
17722 # endif /* PAGESIZE */
17723 # endif /* no NBPC */
17724 # endif /* no NBPG */
17725 # endif /* no EXEC_PAGESIZE */
17726 # else /* no HAVE_SYS_PARAM_H */
17727 # define getpagesize() 8192 /* punt totally */
17728 # endif /* no HAVE_SYS_PARAM_H */
17729 # endif /* no _SC_PAGESIZE */
17730
17731 #endif /* no HAVE_GETPAGESIZE */
17732
17733 int
17734 main ()
17735 {
17736 char *data, *data2, *data3;
17737 const char *cdata2;
17738 int i, pagesize;
17739 int fd, fd2;
17740
17741 pagesize = getpagesize ();
17742
17743 /* First, make a file with some known garbage in it. */
17744 data = (char *) malloc (pagesize);
17745 if (!data)
17746 return 1;
17747 for (i = 0; i < pagesize; ++i)
17748 *(data + i) = rand ();
17749 umask (0);
17750 fd = creat ("conftest.mmap", 0600);
17751 if (fd < 0)
17752 return 2;
17753 if (write (fd, data, pagesize) != pagesize)
17754 return 3;
17755 close (fd);
17756
17757 /* Next, check that the tail of a page is zero-filled. File must have
17758 non-zero length, otherwise we risk SIGBUS for entire page. */
17759 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17760 if (fd2 < 0)
17761 return 4;
17762 cdata2 = "";
17763 if (write (fd2, cdata2, 1) != 1)
17764 return 5;
17765 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17766 if (data2 == MAP_FAILED)
17767 return 6;
17768 for (i = 0; i < pagesize; ++i)
17769 if (*(data2 + i))
17770 return 7;
17771 close (fd2);
17772 if (munmap (data2, pagesize))
17773 return 8;
17774
17775 /* Next, try to mmap the file at a fixed address which already has
17776 something else allocated at it. If we can, also make sure that
17777 we see the same garbage. */
17778 fd = open ("conftest.mmap", O_RDWR);
17779 if (fd < 0)
17780 return 9;
17781 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17782 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17783 return 10;
17784 for (i = 0; i < pagesize; ++i)
17785 if (*(data + i) != *(data2 + i))
17786 return 11;
17787
17788 /* Finally, make sure that changes to the mapped area do not
17789 percolate back to the file as seen by read(). (This is a bug on
17790 some variants of i386 svr4.0.) */
17791 for (i = 0; i < pagesize; ++i)
17792 *(data2 + i) = *(data2 + i) + 1;
17793 data3 = (char *) malloc (pagesize);
17794 if (!data3)
17795 return 12;
17796 if (read (fd, data3, pagesize) != pagesize)
17797 return 13;
17798 for (i = 0; i < pagesize; ++i)
17799 if (*(data + i) != *(data3 + i))
17800 return 14;
17801 close (fd);
17802 return 0;
17803 }
17804 _ACEOF
17805 if ac_fn_c_try_run "$LINENO"; then :
17806 ac_cv_func_mmap_fixed_mapped=yes
17807 else
17808 ac_cv_func_mmap_fixed_mapped=no
17809 fi
17810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17811 conftest.$ac_objext conftest.beam conftest.$ac_ext
17812 fi
17813
17814 fi
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17816 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17817 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17818
17819 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17820
17821 fi
17822 rm -f conftest.mmap conftest.txt
17823
17824 if test $use_mmap_for_buffers = yes; then
17825
17826 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
17827
17828 REL_ALLOC=no
17829 fi
17830
17831 LIBS="$LIBS_SYSTEM $LIBS"
17832
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17834 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17835 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
17836 $as_echo_n "(cached) " >&6
17837 else
17838 ac_check_lib_save_LIBS=$LIBS
17839 LIBS="-ldnet $LIBS"
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17842
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 char dnet_ntoa ();
17850 int
17851 main ()
17852 {
17853 return dnet_ntoa ();
17854 ;
17855 return 0;
17856 }
17857 _ACEOF
17858 if ac_fn_c_try_link "$LINENO"; then :
17859 ac_cv_lib_dnet_dnet_ntoa=yes
17860 else
17861 ac_cv_lib_dnet_dnet_ntoa=no
17862 fi
17863 rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17866 fi
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17868 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17869 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
17870 cat >>confdefs.h <<_ACEOF
17871 #define HAVE_LIBDNET 1
17872 _ACEOF
17873
17874 LIBS="-ldnet $LIBS"
17875
17876 fi
17877
17878
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
17880 $as_echo_n "checking for main in -lXbsd... " >&6; }
17881 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
17882 $as_echo_n "(cached) " >&6
17883 else
17884 ac_check_lib_save_LIBS=$LIBS
17885 LIBS="-lXbsd $LIBS"
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17888
17889
17890 int
17891 main ()
17892 {
17893 return main ();
17894 ;
17895 return 0;
17896 }
17897 _ACEOF
17898 if ac_fn_c_try_link "$LINENO"; then :
17899 ac_cv_lib_Xbsd_main=yes
17900 else
17901 ac_cv_lib_Xbsd_main=no
17902 fi
17903 rm -f core conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17905 LIBS=$ac_check_lib_save_LIBS
17906 fi
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
17908 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
17909 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
17910 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
17911 fi
17912
17913
17914 LIB_PTHREAD=
17915
17916
17917
17918 if test "$ac_cv_header_pthread_h"; then
17919 if test "$GMALLOC_OBJ" = gmalloc.o; then
17920 emacs_pthread_function=pthread_atfork
17921 else
17922 emacs_pthread_function=pthread_self
17923 fi
17924 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
17926 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
17927 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17928 $as_echo_n "(cached) " >&6
17929 else
17930 ac_check_lib_save_LIBS=$LIBS
17931 LIBS="-lpthread $LIBS"
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934
17935 /* Override any GCC internal prototype to avoid an error.
17936 Use char because int might match the return type of a GCC
17937 builtin and then its argument prototype would still apply. */
17938 #ifdef __cplusplus
17939 extern "C"
17940 #endif
17941 char $emacs_pthread_function ();
17942 int
17943 main ()
17944 {
17945 return $emacs_pthread_function ();
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 if ac_fn_c_try_link "$LINENO"; then :
17951 eval "$as_ac_Lib=yes"
17952 else
17953 eval "$as_ac_Lib=no"
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17957 LIBS=$ac_check_lib_save_LIBS
17958 fi
17959 eval ac_res=\$$as_ac_Lib
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17961 $as_echo "$ac_res" >&6; }
17962 eval as_val=\$$as_ac_Lib
17963 if test "x$as_val" = x""yes; then :
17964 HAVE_PTHREAD=yes
17965 fi
17966
17967 fi
17968 if test "$HAVE_PTHREAD" = yes; then
17969 case "${canonical}" in
17970 *-hpux*) ;;
17971 *) LIB_PTHREAD="-lpthread"
17972 LIBS="$LIB_PTHREAD $LIBS" ;;
17973 esac
17974
17975 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17976
17977 fi
17978
17979
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
17981 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
17982 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
17983 $as_echo_n "(cached) " >&6
17984 else
17985 ac_check_lib_save_LIBS=$LIBS
17986 LIBS="-lpthreads $LIBS"
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17989
17990 /* Override any GCC internal prototype to avoid an error.
17991 Use char because int might match the return type of a GCC
17992 builtin and then its argument prototype would still apply. */
17993 #ifdef __cplusplus
17994 extern "C"
17995 #endif
17996 char cma_open ();
17997 int
17998 main ()
17999 {
18000 return cma_open ();
18001 ;
18002 return 0;
18003 }
18004 _ACEOF
18005 if ac_fn_c_try_link "$LINENO"; then :
18006 ac_cv_lib_pthreads_cma_open=yes
18007 else
18008 ac_cv_lib_pthreads_cma_open=no
18009 fi
18010 rm -f core conftest.err conftest.$ac_objext \
18011 conftest$ac_exeext conftest.$ac_ext
18012 LIBS=$ac_check_lib_save_LIBS
18013 fi
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
18015 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
18016 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
18017 cat >>confdefs.h <<_ACEOF
18018 #define HAVE_LIBPTHREADS 1
18019 _ACEOF
18020
18021 LIBS="-lpthreads $LIBS"
18022
18023 fi
18024
18025
18026 ## Note: when using cpp in s/aix4.2.h, this definition depended on
18027 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
18028 ## the system file was sourced. Hence the value of LIBS_SYSTEM
18029 ## added to LIBS in configure would never contain the pthreads part,
18030 ## but the value used in Makefiles might. FIXME?
18031 ##
18032 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
18033 ## be harmless on older versions of X where it happens to exist.
18034 test "$opsys" = "aix4-2" && \
18035 test $ac_cv_lib_pthreads_cma_open = yes && \
18036 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
18037
18038
18039 case ${host_os} in
18040 aix*)
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
18042 $as_echo_n "checking for -bbigtoc option... " >&6; }
18043 if test "${gdb_cv_bigtoc+set}" = set; then :
18044 $as_echo_n "(cached) " >&6
18045 else
18046
18047 case $GCC in
18048 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
18049 *) gdb_cv_bigtoc=-bbigtoc ;;
18050 esac
18051
18052 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054 /* end confdefs.h. */
18055
18056 int
18057 main ()
18058 {
18059 int i;
18060 ;
18061 return 0;
18062 }
18063 _ACEOF
18064 if ac_fn_c_try_link "$LINENO"; then :
18065
18066 else
18067 gdb_cv_bigtoc=
18068 fi
18069 rm -f core conftest.err conftest.$ac_objext \
18070 conftest$ac_exeext conftest.$ac_ext
18071
18072 fi
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
18074 $as_echo "$gdb_cv_bigtoc" >&6; }
18075 ;;
18076 esac
18077
18078 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
18079 # used for the tests that follow. We set them back to REAL_CFLAGS and
18080 # REAL_CPPFLAGS later on.
18081
18082 REAL_CFLAGS="$CFLAGS"
18083 REAL_CPPFLAGS="$CPPFLAGS"
18084
18085 if test "${HAVE_X11}" = "yes"; then
18086 DEFS="$C_SWITCH_X_SITE $DEFS"
18087 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
18088 LIBS="-lX11 $LIBS"
18089 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
18090 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
18091
18092 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
18093 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
18094 # but it's more convenient here to set LD_RUN_PATH since this
18095 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
18096 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
18097 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
18098 export LD_RUN_PATH
18099 fi
18100
18101 if test "${opsys}" = "gnu-linux"; then
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
18103 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18106
18107 int
18108 main ()
18109 {
18110 XOpenDisplay ("foo");
18111 ;
18112 return 0;
18113 }
18114 _ACEOF
18115 if ac_fn_c_try_link "$LINENO"; then :
18116 xgnu_linux_first_failure=no
18117 else
18118 xgnu_linux_first_failure=yes
18119 fi
18120 rm -f core conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18122 if test "${xgnu_linux_first_failure}" = "yes"; then
18123 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
18124 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
18125 OLD_CPPFLAGS="$CPPFLAGS"
18126 OLD_LIBS="$LIBS"
18127 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
18128 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
18129 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
18130 LIBS="$LIBS -b i486-linuxaout"
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18133
18134 int
18135 main ()
18136 {
18137 XOpenDisplay ("foo");
18138 ;
18139 return 0;
18140 }
18141 _ACEOF
18142 if ac_fn_c_try_link "$LINENO"; then :
18143 xgnu_linux_second_failure=no
18144 else
18145 xgnu_linux_second_failure=yes
18146 fi
18147 rm -f core conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
18149 if test "${xgnu_linux_second_failure}" = "yes"; then
18150 # If we get the same failure with -b, there is no use adding -b.
18151 # So take it out. This plays safe.
18152 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
18153 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
18154 CPPFLAGS="$OLD_CPPFLAGS"
18155 LIBS="$OLD_LIBS"
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18157 $as_echo "no" >&6; }
18158 else
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18160 $as_echo "yes" >&6; }
18161 fi
18162 else
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18164 $as_echo "no" >&6; }
18165 fi
18166 fi
18167
18168 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
18169 # header files included from there.
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
18171 $as_echo_n "checking for Xkb... " >&6; }
18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h. */
18174 #include <X11/Xlib.h>
18175 #include <X11/XKBlib.h>
18176 int
18177 main ()
18178 {
18179 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
18180 ;
18181 return 0;
18182 }
18183 _ACEOF
18184 if ac_fn_c_try_link "$LINENO"; then :
18185 emacs_xkb=yes
18186 else
18187 emacs_xkb=no
18188 fi
18189 rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
18192 $as_echo "$emacs_xkb" >&6; }
18193 if test $emacs_xkb = yes; then
18194
18195 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
18196
18197 fi
18198
18199 for ac_func in XrmSetDatabase XScreenResourceString \
18200 XScreenNumberOfScreen
18201 do :
18202 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18203 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18204 eval as_val=\$$as_ac_var
18205 if test "x$as_val" = x""yes; then :
18206 cat >>confdefs.h <<_ACEOF
18207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18208 _ACEOF
18209
18210 fi
18211 done
18212
18213 fi
18214
18215 if test "${window_system}" = "x11"; then
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
18217 $as_echo_n "checking X11 version 6... " >&6; }
18218 if test "${emacs_cv_x11_version_6+set}" = set; then :
18219 $as_echo_n "(cached) " >&6
18220 else
18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h. */
18223 #include <X11/Xlib.h>
18224 int
18225 main ()
18226 {
18227 #if XlibSpecificationRelease < 6
18228 fail;
18229 #endif
18230
18231 ;
18232 return 0;
18233 }
18234 _ACEOF
18235 if ac_fn_c_try_link "$LINENO"; then :
18236 emacs_cv_x11_version_6=yes
18237 else
18238 emacs_cv_x11_version_6=no
18239 fi
18240 rm -f core conftest.err conftest.$ac_objext \
18241 conftest$ac_exeext conftest.$ac_ext
18242 fi
18243
18244 if test $emacs_cv_x11_version_6 = yes; then
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
18246 $as_echo "6 or newer" >&6; }
18247
18248 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
18249
18250
18251 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
18252
18253 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
18254 ## XIM support.
18255 case "$opsys" in
18256 sol2-*) : ;;
18257 *)
18258 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
18259
18260 ;;
18261 esac
18262 else
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
18264 $as_echo "before 6" >&6; }
18265 fi
18266 fi
18267
18268
18269 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
18270 HAVE_RSVG=no
18271 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
18272 if test "${with_rsvg}" != "no"; then
18273 RSVG_REQUIRED=2.11.0
18274 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
18275
18276
18277 succeeded=no
18278
18279 if test "$PKG_CONFIG" = "no" ; then
18280 :
18281 else
18282 PKG_CONFIG_MIN_VERSION=0.9.0
18283 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
18285 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
18286
18287 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
18288 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
18289 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
18290 edit_cflags="
18291 s,///*,/,g
18292 s/^/ /
18293 s/ -I/ $isystem/g
18294 s/^ //
18295 "
18296 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
18297 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
18299 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
18300 succeeded=yes
18301 else
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18303 $as_echo "no" >&6; }
18304 RSVG_CFLAGS=""
18305 RSVG_LIBS=""
18306 ## If we have a custom action on failure, don't print errors, but
18307 ## do set a variable so people can do so.
18308 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
18309
18310 fi
18311
18312
18313
18314 else
18315 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18316 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18317 fi
18318 fi
18319
18320 if test $succeeded = yes; then
18321 HAVE_RSVG=yes
18322 else
18323 :
18324 fi
18325
18326
18327
18328
18329 if test $HAVE_RSVG = yes; then
18330
18331 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
18332
18333 CFLAGS="$CFLAGS $RSVG_CFLAGS"
18334 LIBS="$RSVG_LIBS $LIBS"
18335 fi
18336 fi
18337 fi
18338
18339 HAVE_IMAGEMAGICK=no
18340 if test "${HAVE_X11}" = "yes"; then
18341 if test "${with_imagemagick}" != "no"; then
18342 ## 6.2.8 is the earliest version known to work, but earlier versions
18343 ## might work - let us know if you find one.
18344 ## 6.0.7 does not work. See bug#7955.
18345 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
18346
18347 succeeded=no
18348
18349 if test "$PKG_CONFIG" = "no" ; then
18350 :
18351 else
18352 PKG_CONFIG_MIN_VERSION=0.9.0
18353 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
18355 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
18356
18357 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
18358 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
18359 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
18360 edit_cflags="
18361 s,///*,/,g
18362 s/^/ /
18363 s/ -I/ $isystem/g
18364 s/^ //
18365 "
18366 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
18367 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
18369 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
18370 succeeded=yes
18371 else
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18373 $as_echo "no" >&6; }
18374 IMAGEMAGICK_CFLAGS=""
18375 IMAGEMAGICK_LIBS=""
18376 ## If we have a custom action on failure, don't print errors, but
18377 ## do set a variable so people can do so.
18378 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
18379
18380 fi
18381
18382
18383
18384 else
18385 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18386 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18387 fi
18388 fi
18389
18390 if test $succeeded = yes; then
18391 HAVE_IMAGEMAGICK=yes
18392 else
18393 :
18394 fi
18395
18396
18397
18398
18399 if test $HAVE_IMAGEMAGICK = yes; then
18400
18401 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
18402
18403 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
18404 LIBS="$IMAGEMAGICK_LIBS $LIBS"
18405 for ac_func in MagickExportImagePixels MagickMergeImageLayers
18406 do :
18407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18409 eval as_val=\$$as_ac_var
18410 if test "x$as_val" = x""yes; then :
18411 cat >>confdefs.h <<_ACEOF
18412 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18413 _ACEOF
18414
18415 fi
18416 done
18417
18418 fi
18419 fi
18420 fi
18421
18422
18423 HAVE_GTK=no
18424 GTK_OBJ=
18425 if test "${with_gtk3}" = "yes"; then
18426 GLIB_REQUIRED=2.28
18427 GTK_REQUIRED=3.0
18428 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18429
18430
18431 succeeded=no
18432
18433 if test "$PKG_CONFIG" = "no" ; then
18434 pkg_check_gtk=no
18435 else
18436 PKG_CONFIG_MIN_VERSION=0.9.0
18437 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18439 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18440
18441 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18442 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18443 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18444 edit_cflags="
18445 s,///*,/,g
18446 s/^/ /
18447 s/ -I/ $isystem/g
18448 s/^ //
18449 "
18450 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18451 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18453 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18454 succeeded=yes
18455 else
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18457 $as_echo "no" >&6; }
18458 GTK_CFLAGS=""
18459 GTK_LIBS=""
18460 ## If we have a custom action on failure, don't print errors, but
18461 ## do set a variable so people can do so.
18462 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18463
18464 fi
18465
18466
18467
18468 else
18469 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18470 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18471 fi
18472 fi
18473
18474 if test $succeeded = yes; then
18475 pkg_check_gtk=yes
18476 else
18477 pkg_check_gtk=no
18478 fi
18479
18480 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18481 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18482 fi
18483
18484 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
18485
18486 GTK_OBJ=emacsgtkfixed.o
18487 fi
18488
18489 if test "$pkg_check_gtk" != "yes"; then
18490 HAVE_GTK=no
18491 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
18492 GLIB_REQUIRED=2.10
18493 GTK_REQUIRED=2.10
18494 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18495
18496
18497 succeeded=no
18498
18499 if test "$PKG_CONFIG" = "no" ; then
18500 pkg_check_gtk=no
18501 else
18502 PKG_CONFIG_MIN_VERSION=0.9.0
18503 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18505 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18506
18507 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18508 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18509 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18510 edit_cflags="
18511 s,///*,/,g
18512 s/^/ /
18513 s/ -I/ $isystem/g
18514 s/^ //
18515 "
18516 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18517 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18519 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18520 succeeded=yes
18521 else
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523 $as_echo "no" >&6; }
18524 GTK_CFLAGS=""
18525 GTK_LIBS=""
18526 ## If we have a custom action on failure, don't print errors, but
18527 ## do set a variable so people can do so.
18528 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18529
18530 fi
18531
18532
18533
18534 else
18535 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18536 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18537 fi
18538 fi
18539
18540 if test $succeeded = yes; then
18541 pkg_check_gtk=yes
18542 else
18543 pkg_check_gtk=no
18544 fi
18545
18546 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18547 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18548 fi
18549 fi
18550 fi
18551
18552 if test x"$pkg_check_gtk" = xyes; then
18553
18554
18555
18556 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
18557 CFLAGS="$CFLAGS $GTK_CFLAGS"
18558 LIBS="$GTK_LIBS $LIBS"
18559 GTK_COMPILES=no
18560 for ac_func in gtk_main
18561 do :
18562 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
18563 if test "x$ac_cv_func_gtk_main" = x""yes; then :
18564 cat >>confdefs.h <<_ACEOF
18565 #define HAVE_GTK_MAIN 1
18566 _ACEOF
18567 GTK_COMPILES=yes
18568 fi
18569 done
18570
18571 if test "${GTK_COMPILES}" != "yes"; then
18572 if test "$USE_X_TOOLKIT" != "maybe"; then
18573 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
18574 fi
18575 else
18576 HAVE_GTK=yes
18577
18578 $as_echo "#define USE_GTK 1" >>confdefs.h
18579
18580 GTK_OBJ="gtkutil.o $GTK_OBJ"
18581 USE_X_TOOLKIT=none
18582 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
18583 :
18584 else
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
18586 closing open displays. This is no problem if you just use
18587 one display, but if you use more than one and close one of them
18588 Emacs may crash." >&5
18589 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
18590 closing open displays. This is no problem if you just use
18591 one display, but if you use more than one and close one of them
18592 Emacs may crash." >&2;}
18593 sleep 3
18594 fi
18595 fi
18596
18597 fi
18598
18599
18600
18601 if test "${HAVE_GTK}" = "yes"; then
18602
18603 if test "$with_toolkit_scroll_bars" != no; then
18604 with_toolkit_scroll_bars=yes
18605 fi
18606
18607 HAVE_GTK_FILE_SELECTION=no
18608 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
18609 #include <gtk/gtk.h>
18610 "
18611 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
18612 HAVE_GTK_FILE_SELECTION=yes
18613 else
18614 HAVE_GTK_FILE_SELECTION=no
18615 fi
18616
18617 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
18618 for ac_func in gtk_file_selection_new
18619 do :
18620 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
18621 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
18622 cat >>confdefs.h <<_ACEOF
18623 #define HAVE_GTK_FILE_SELECTION_NEW 1
18624 _ACEOF
18625
18626 fi
18627 done
18628
18629 fi
18630
18631
18632 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
18633 gtk_dialog_get_action_area gtk_widget_get_sensitive \
18634 gtk_widget_get_mapped gtk_adjustment_get_page_size \
18635 gtk_orientable_set_orientation \
18636 gtk_window_set_has_resize_grip
18637 do :
18638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18640 eval as_val=\$$as_ac_var
18641 if test "x$as_val" = x""yes; then :
18642 cat >>confdefs.h <<_ACEOF
18643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18644 _ACEOF
18645
18646 fi
18647 done
18648
18649 fi
18650
18651 HAVE_DBUS=no
18652 DBUS_OBJ=
18653 if test "${with_dbus}" = "yes"; then
18654
18655 succeeded=no
18656
18657 if test "$PKG_CONFIG" = "no" ; then
18658 HAVE_DBUS=no
18659 else
18660 PKG_CONFIG_MIN_VERSION=0.9.0
18661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
18663 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
18664
18665 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
18666 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
18667 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
18668 edit_cflags="
18669 s,///*,/,g
18670 s/^/ /
18671 s/ -I/ $isystem/g
18672 s/^ //
18673 "
18674 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
18675 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
18677 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
18678 succeeded=yes
18679 else
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18681 $as_echo "no" >&6; }
18682 DBUS_CFLAGS=""
18683 DBUS_LIBS=""
18684 ## If we have a custom action on failure, don't print errors, but
18685 ## do set a variable so people can do so.
18686 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
18687
18688 fi
18689
18690
18691
18692 else
18693 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18694 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18695 fi
18696 fi
18697
18698 if test $succeeded = yes; then
18699 HAVE_DBUS=yes
18700 else
18701 HAVE_DBUS=no
18702 fi
18703
18704 if test "$HAVE_DBUS" = yes; then
18705 LIBS="$LIBS $DBUS_LIBS"
18706
18707 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
18708
18709 for ac_func in dbus_watch_get_unix_fd \
18710 dbus_type_is_valid \
18711 dbus_validate_bus_name \
18712 dbus_validate_path \
18713 dbus_validate_interface \
18714 dbus_validate_member
18715 do :
18716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18717 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18718 eval as_val=\$$as_ac_var
18719 if test "x$as_val" = x""yes; then :
18720 cat >>confdefs.h <<_ACEOF
18721 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18722 _ACEOF
18723
18724 fi
18725 done
18726
18727 DBUS_OBJ=dbusbind.o
18728 fi
18729 fi
18730
18731
18732 HAVE_GSETTINGS=no
18733 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
18734
18735 succeeded=no
18736
18737 if test "$PKG_CONFIG" = "no" ; then
18738 HAVE_GSETTINGS=no
18739 else
18740 PKG_CONFIG_MIN_VERSION=0.9.0
18741 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
18743 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
18744
18745 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
18746 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
18747 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
18748 edit_cflags="
18749 s,///*,/,g
18750 s/^/ /
18751 s/ -I/ $isystem/g
18752 s/^ //
18753 "
18754 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
18755 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
18757 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
18758 succeeded=yes
18759 else
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761 $as_echo "no" >&6; }
18762 GSETTINGS_CFLAGS=""
18763 GSETTINGS_LIBS=""
18764 ## If we have a custom action on failure, don't print errors, but
18765 ## do set a variable so people can do so.
18766 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
18767
18768 fi
18769
18770
18771
18772 else
18773 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18774 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18775 fi
18776 fi
18777
18778 if test $succeeded = yes; then
18779 HAVE_GSETTINGS=yes
18780 else
18781 HAVE_GSETTINGS=no
18782 fi
18783
18784 if test "$HAVE_GSETTINGS" = "yes"; then
18785
18786 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
18787
18788 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
18789 SETTINGS_LIBS="$GSETTINGS_LIBS"
18790 fi
18791 fi
18792
18793 HAVE_GCONF=no
18794 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
18795
18796 succeeded=no
18797
18798 if test "$PKG_CONFIG" = "no" ; then
18799 HAVE_GCONF=no
18800 else
18801 PKG_CONFIG_MIN_VERSION=0.9.0
18802 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
18804 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
18805
18806 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
18807 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
18808 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
18809 edit_cflags="
18810 s,///*,/,g
18811 s/^/ /
18812 s/ -I/ $isystem/g
18813 s/^ //
18814 "
18815 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
18816 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
18818 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
18819 succeeded=yes
18820 else
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18822 $as_echo "no" >&6; }
18823 GCONF_CFLAGS=""
18824 GCONF_LIBS=""
18825 ## If we have a custom action on failure, don't print errors, but
18826 ## do set a variable so people can do so.
18827 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
18828
18829 fi
18830
18831
18832
18833 else
18834 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18835 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18836 fi
18837 fi
18838
18839 if test $succeeded = yes; then
18840 HAVE_GCONF=yes
18841 else
18842 HAVE_GCONF=no
18843 fi
18844
18845 if test "$HAVE_GCONF" = yes; then
18846
18847 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
18848
18849 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
18850 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
18851 fi
18852 fi
18853
18854 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
18855 SAVE_CFLAGS="$CFLAGS"
18856 SAVE_LIBS="$LIBS"
18857 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
18858 LIBS="$SETTINGS_LIBS $LIBS"
18859 for ac_func in g_type_init
18860 do :
18861 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
18862 if test "x$ac_cv_func_g_type_init" = x""yes; then :
18863 cat >>confdefs.h <<_ACEOF
18864 #define HAVE_G_TYPE_INIT 1
18865 _ACEOF
18866
18867 fi
18868 done
18869
18870 CFLAGS="$SAVE_CFLAGS"
18871 LIBS="$SAVE_LIBS"
18872 fi
18873
18874
18875
18876
18877 HAVE_LIBSELINUX=no
18878 LIBSELINUX_LIBS=
18879 if test "${with_selinux}" = "yes"; then
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
18881 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
18882 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
18883 $as_echo_n "(cached) " >&6
18884 else
18885 ac_check_lib_save_LIBS=$LIBS
18886 LIBS="-lselinux $LIBS"
18887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h. */
18889
18890 /* Override any GCC internal prototype to avoid an error.
18891 Use char because int might match the return type of a GCC
18892 builtin and then its argument prototype would still apply. */
18893 #ifdef __cplusplus
18894 extern "C"
18895 #endif
18896 char lgetfilecon ();
18897 int
18898 main ()
18899 {
18900 return lgetfilecon ();
18901 ;
18902 return 0;
18903 }
18904 _ACEOF
18905 if ac_fn_c_try_link "$LINENO"; then :
18906 ac_cv_lib_selinux_lgetfilecon=yes
18907 else
18908 ac_cv_lib_selinux_lgetfilecon=no
18909 fi
18910 rm -f core conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_check_lib_save_LIBS
18913 fi
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
18915 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
18916 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
18917 HAVE_LIBSELINUX=yes
18918 else
18919 HAVE_LIBSELINUX=no
18920 fi
18921
18922 if test "$HAVE_LIBSELINUX" = yes; then
18923
18924 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18925
18926 LIBSELINUX_LIBS=-lselinux
18927 fi
18928 fi
18929
18930
18931 HAVE_GNUTLS=no
18932 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
18933 if test "${with_gnutls}" = "yes" ; then
18934
18935 succeeded=no
18936
18937 if test "$PKG_CONFIG" = "no" ; then
18938 HAVE_GNUTLS=no
18939 else
18940 PKG_CONFIG_MIN_VERSION=0.9.0
18941 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
18943 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
18944
18945 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
18946 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
18947 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
18948 edit_cflags="
18949 s,///*,/,g
18950 s/^/ /
18951 s/ -I/ $isystem/g
18952 s/^ //
18953 "
18954 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
18955 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
18957 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
18958 succeeded=yes
18959 else
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18961 $as_echo "no" >&6; }
18962 LIBGNUTLS_CFLAGS=""
18963 LIBGNUTLS_LIBS=""
18964 ## If we have a custom action on failure, don't print errors, but
18965 ## do set a variable so people can do so.
18966 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
18967
18968 fi
18969
18970
18971
18972 else
18973 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18974 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18975 fi
18976 fi
18977
18978 if test $succeeded = yes; then
18979 HAVE_GNUTLS=yes
18980 else
18981 HAVE_GNUTLS=no
18982 fi
18983
18984 if test "${HAVE_GNUTLS}" = "yes"; then
18985
18986 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
18987
18988 fi
18989
18990 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
18991 LIBS="$LIBGNUTLS_LIBS $LIBS"
18992 for ac_func in gnutls_certificate_set_verify_function
18993 do :
18994 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
18995 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
18996 cat >>confdefs.h <<_ACEOF
18997 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
18998 _ACEOF
18999 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
19000 fi
19001 done
19002
19003
19004 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
19005
19006 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
19007
19008 fi
19009 fi
19010
19011
19012
19013
19014 HAVE_XAW3D=no
19015 LUCID_LIBW=
19016 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
19017 if test "$with_xaw3d" != no; then
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
19019 $as_echo_n "checking for xaw3d... " >&6; }
19020 if test "${emacs_cv_xaw3d+set}" = set; then :
19021 $as_echo_n "(cached) " >&6
19022 else
19023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19025
19026 #include <X11/Intrinsic.h>
19027 #include <X11/Xaw3d/Simple.h>
19028 int
19029 main ()
19030 {
19031
19032 ;
19033 return 0;
19034 }
19035 _ACEOF
19036 if ac_fn_c_try_link "$LINENO"; then :
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
19038 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
19039 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
19040 $as_echo_n "(cached) " >&6
19041 else
19042 ac_check_lib_save_LIBS=$LIBS
19043 LIBS="-lXaw3d $LIBS"
19044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h. */
19046
19047 /* Override any GCC internal prototype to avoid an error.
19048 Use char because int might match the return type of a GCC
19049 builtin and then its argument prototype would still apply. */
19050 #ifdef __cplusplus
19051 extern "C"
19052 #endif
19053 char XawScrollbarSetThumb ();
19054 int
19055 main ()
19056 {
19057 return XawScrollbarSetThumb ();
19058 ;
19059 return 0;
19060 }
19061 _ACEOF
19062 if ac_fn_c_try_link "$LINENO"; then :
19063 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
19064 else
19065 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
19066 fi
19067 rm -f core conftest.err conftest.$ac_objext \
19068 conftest$ac_exeext conftest.$ac_ext
19069 LIBS=$ac_check_lib_save_LIBS
19070 fi
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
19072 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
19073 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
19074 emacs_cv_xaw3d=yes
19075 else
19076 emacs_cv_xaw3d=no
19077 fi
19078
19079 else
19080 emacs_cv_xaw3d=no
19081 fi
19082 rm -f core conftest.err conftest.$ac_objext \
19083 conftest$ac_exeext conftest.$ac_ext
19084 fi
19085
19086 else
19087 emacs_cv_xaw3d=no
19088 fi
19089 if test $emacs_cv_xaw3d = yes; then
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19091 $as_echo "yes; using Lucid toolkit" >&6; }
19092 USE_X_TOOLKIT=LUCID
19093 HAVE_XAW3D=yes
19094 LUCID_LIBW=-lXaw3d
19095
19096 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
19097
19098 else
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19100 $as_echo "no" >&6; }
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
19102 $as_echo_n "checking for libXaw... " >&6; }
19103 if test "${emacs_cv_xaw+set}" = set; then :
19104 $as_echo_n "(cached) " >&6
19105 else
19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19108
19109 #include <X11/Intrinsic.h>
19110 #include <X11/Xaw/Simple.h>
19111 int
19112 main ()
19113 {
19114
19115 ;
19116 return 0;
19117 }
19118 _ACEOF
19119 if ac_fn_c_try_link "$LINENO"; then :
19120 emacs_cv_xaw=yes
19121 else
19122 emacs_cv_xaw=no
19123 fi
19124 rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19126 fi
19127
19128 if test $emacs_cv_xaw = yes; then
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19130 $as_echo "yes; using Lucid toolkit" >&6; }
19131 USE_X_TOOLKIT=LUCID
19132 LUCID_LIBW=-lXaw
19133 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
19134 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
19135 else
19136 as_fn_error "No X toolkit could be found.
19137 If you are sure you want Emacs compiled without an X toolkit, pass
19138 --with-x-toolkit=no
19139 to configure. Otherwise, install the development libraries for the toolkit
19140 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
19141 fi
19142 fi
19143 fi
19144
19145 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
19146
19147 LIBXTR6=
19148 if test "${USE_X_TOOLKIT}" != "none"; then
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
19150 $as_echo_n "checking X11 toolkit version... " >&6; }
19151 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
19152 $as_echo_n "(cached) " >&6
19153 else
19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19156 #include <X11/Intrinsic.h>
19157 int
19158 main ()
19159 {
19160 #if XtSpecificationRelease < 6
19161 fail;
19162 #endif
19163
19164 ;
19165 return 0;
19166 }
19167 _ACEOF
19168 if ac_fn_c_try_link "$LINENO"; then :
19169 emacs_cv_x11_toolkit_version_6=yes
19170 else
19171 emacs_cv_x11_toolkit_version_6=no
19172 fi
19173 rm -f core conftest.err conftest.$ac_objext \
19174 conftest$ac_exeext conftest.$ac_ext
19175 fi
19176
19177 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
19178 if test $emacs_cv_x11_toolkit_version_6 = yes; then
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
19180 $as_echo "6 or newer" >&6; }
19181
19182 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
19183
19184 LIBXTR6="-lSM -lICE"
19185 case "$opsys" in
19186 ## Use libw.a along with X11R6 Xt.
19187 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
19188 esac
19189 else
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
19191 $as_echo "before 6" >&6; }
19192 fi
19193
19194 OLDLIBS="$LIBS"
19195 if test x$HAVE_X11XTR6 = xyes; then
19196 LIBS="-lXt -lSM -lICE $LIBS"
19197 else
19198 LIBS="-lXt $LIBS"
19199 fi
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
19201 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
19202 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
19203 $as_echo_n "(cached) " >&6
19204 else
19205 ac_check_lib_save_LIBS=$LIBS
19206 LIBS="-lXmu $LIBS"
19207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208 /* end confdefs.h. */
19209
19210 /* Override any GCC internal prototype to avoid an error.
19211 Use char because int might match the return type of a GCC
19212 builtin and then its argument prototype would still apply. */
19213 #ifdef __cplusplus
19214 extern "C"
19215 #endif
19216 char XmuConvertStandardSelection ();
19217 int
19218 main ()
19219 {
19220 return XmuConvertStandardSelection ();
19221 ;
19222 return 0;
19223 }
19224 _ACEOF
19225 if ac_fn_c_try_link "$LINENO"; then :
19226 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
19227 else
19228 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
19229 fi
19230 rm -f core conftest.err conftest.$ac_objext \
19231 conftest$ac_exeext conftest.$ac_ext
19232 LIBS=$ac_check_lib_save_LIBS
19233 fi
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
19235 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
19236 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
19237 cat >>confdefs.h <<_ACEOF
19238 #define HAVE_LIBXMU 1
19239 _ACEOF
19240
19241 LIBS="-lXmu $LIBS"
19242
19243 fi
19244
19245 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
19246 fi
19247
19248
19249 LIBXMU=-lXmu
19250 case $opsys in
19251 ## These systems don't supply Xmu.
19252 hpux* | aix4-2 )
19253 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
19254 ;;
19255 esac
19256
19257
19258 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
19259 if test "${HAVE_X11}" = "yes"; then
19260 if test "${USE_X_TOOLKIT}" != "none"; then
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
19262 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
19263 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
19264 $as_echo_n "(cached) " >&6
19265 else
19266 ac_check_lib_save_LIBS=$LIBS
19267 LIBS="-lXext $LIBS"
19268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269 /* end confdefs.h. */
19270
19271 /* Override any GCC internal prototype to avoid an error.
19272 Use char because int might match the return type of a GCC
19273 builtin and then its argument prototype would still apply. */
19274 #ifdef __cplusplus
19275 extern "C"
19276 #endif
19277 char XShapeQueryExtension ();
19278 int
19279 main ()
19280 {
19281 return XShapeQueryExtension ();
19282 ;
19283 return 0;
19284 }
19285 _ACEOF
19286 if ac_fn_c_try_link "$LINENO"; then :
19287 ac_cv_lib_Xext_XShapeQueryExtension=yes
19288 else
19289 ac_cv_lib_Xext_XShapeQueryExtension=no
19290 fi
19291 rm -f core conftest.err conftest.$ac_objext \
19292 conftest$ac_exeext conftest.$ac_ext
19293 LIBS=$ac_check_lib_save_LIBS
19294 fi
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
19296 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
19297 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
19298 cat >>confdefs.h <<_ACEOF
19299 #define HAVE_LIBXEXT 1
19300 _ACEOF
19301
19302 LIBS="-lXext $LIBS"
19303
19304 fi
19305
19306 fi
19307 fi
19308
19309 LIBXP=
19310 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
19312 $as_echo_n "checking for Motif version 2.1... " >&6; }
19313 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
19314 $as_echo_n "(cached) " >&6
19315 else
19316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h. */
19318 #include <Xm/Xm.h>
19319 int
19320 main ()
19321 {
19322 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
19323 int x = 5;
19324 #else
19325 Motif version prior to 2.1.
19326 #endif
19327 ;
19328 return 0;
19329 }
19330 _ACEOF
19331 if ac_fn_c_try_compile "$LINENO"; then :
19332 emacs_cv_motif_version_2_1=yes
19333 else
19334 emacs_cv_motif_version_2_1=no
19335 fi
19336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337 fi
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
19339 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
19340 if test $emacs_cv_motif_version_2_1 = yes; then
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
19342 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
19343 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
19344 $as_echo_n "(cached) " >&6
19345 else
19346 ac_check_lib_save_LIBS=$LIBS
19347 LIBS="-lXp $LIBS"
19348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19350
19351 /* Override any GCC internal prototype to avoid an error.
19352 Use char because int might match the return type of a GCC
19353 builtin and then its argument prototype would still apply. */
19354 #ifdef __cplusplus
19355 extern "C"
19356 #endif
19357 char XpCreateContext ();
19358 int
19359 main ()
19360 {
19361 return XpCreateContext ();
19362 ;
19363 return 0;
19364 }
19365 _ACEOF
19366 if ac_fn_c_try_link "$LINENO"; then :
19367 ac_cv_lib_Xp_XpCreateContext=yes
19368 else
19369 ac_cv_lib_Xp_XpCreateContext=no
19370 fi
19371 rm -f core conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext conftest.$ac_ext
19373 LIBS=$ac_check_lib_save_LIBS
19374 fi
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
19376 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
19377 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
19378 LIBXP=-lXp
19379 fi
19380
19381 else
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
19383 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
19384 if test "${emacs_cv_lesstif+set}" = set; then :
19385 $as_echo_n "(cached) " >&6
19386 else
19387 # We put this in CFLAGS temporarily to precede other -I options
19388 # that might be in CFLAGS temporarily.
19389 # We put this in CPPFLAGS where it precedes the other -I options.
19390 OLD_CPPFLAGS=$CPPFLAGS
19391 OLD_CFLAGS=$CFLAGS
19392 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
19393 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
19394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19395 /* end confdefs.h. */
19396 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
19397 int
19398 main ()
19399 {
19400 int x = 5;
19401 ;
19402 return 0;
19403 }
19404 _ACEOF
19405 if ac_fn_c_try_compile "$LINENO"; then :
19406 emacs_cv_lesstif=yes
19407 else
19408 emacs_cv_lesstif=no
19409 fi
19410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19411 fi
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
19413 $as_echo "$emacs_cv_lesstif" >&6; }
19414 if test $emacs_cv_lesstif = yes; then
19415 # Make sure this -I option remains in CPPFLAGS after it is set
19416 # back to REAL_CPPFLAGS.
19417 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
19418 # have those other -I options anyway. Ultimately, having this
19419 # directory ultimately in CPPFLAGS will be enough.
19420 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
19421 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
19422 else
19423 CFLAGS=$OLD_CFLAGS
19424 CPPFLAGS=$OLD_CPPFLAGS
19425 fi
19426 fi
19427 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
19428 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
19429
19430 else
19431 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
19432 fi
19433
19434
19435 fi
19436
19437
19438 USE_TOOLKIT_SCROLL_BARS=no
19439 if test "${with_toolkit_scroll_bars}" != "no"; then
19440 if test "${USE_X_TOOLKIT}" != "none"; then
19441 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19442 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19443
19444 HAVE_XAW3D=no
19445 USE_TOOLKIT_SCROLL_BARS=yes
19446 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
19447 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19448
19449 USE_TOOLKIT_SCROLL_BARS=yes
19450 fi
19451 elif test "${HAVE_GTK}" = "yes"; then
19452 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19453
19454 USE_TOOLKIT_SCROLL_BARS=yes
19455 elif test "${HAVE_NS}" = "yes"; then
19456 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19457
19458 USE_TOOLKIT_SCROLL_BARS=yes
19459 fi
19460 fi
19461
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464
19465 #include <X11/Xlib.h>
19466 #include <X11/Xresource.h>
19467 int
19468 main ()
19469 {
19470 XIMProc callback;
19471 ;
19472 return 0;
19473 }
19474 _ACEOF
19475 if ac_fn_c_try_compile "$LINENO"; then :
19476 HAVE_XIM=yes
19477
19478 $as_echo "#define HAVE_XIM 1" >>confdefs.h
19479
19480 else
19481 HAVE_XIM=no
19482 fi
19483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19484
19485
19486 if test "${with_xim}" != "no"; then
19487
19488 $as_echo "#define USE_XIM 1" >>confdefs.h
19489
19490 fi
19491
19492
19493 if test "${HAVE_XIM}" != "no"; then
19494 late_CFLAGS=$CFLAGS
19495 if test "$GCC" = yes; then
19496 CFLAGS="$CFLAGS --pedantic-errors"
19497 fi
19498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19499 /* end confdefs.h. */
19500
19501 #include <X11/Xlib.h>
19502 #include <X11/Xresource.h>
19503 int
19504 main ()
19505 {
19506 Display *display;
19507 XrmDatabase db;
19508 char *res_name;
19509 char *res_class;
19510 XIMProc callback;
19511 XPointer *client_data;
19512 #ifndef __GNUC__
19513 /* If we're not using GCC, it's probably not XFree86, and this is
19514 probably right, but we can't use something like --pedantic-errors. */
19515 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
19516 char*, XIMProc, XPointer*);
19517 #endif
19518 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
19519 client_data);
19520 ;
19521 return 0;
19522 }
19523 _ACEOF
19524 if ac_fn_c_try_compile "$LINENO"; then :
19525 emacs_cv_arg6_star=yes
19526 fi
19527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19528 if test "$emacs_cv_arg6_star" = yes; then
19529 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
19530
19531 else
19532 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
19533
19534 fi
19535 CFLAGS=$late_CFLAGS
19536 fi
19537
19538 ### Start of font-backend (under any platform) section.
19539 # (nothing here yet -- this is a placeholder)
19540 ### End of font-backend (under any platform) section.
19541
19542 ### Start of font-backend (under X11) section.
19543 if test "${HAVE_X11}" = "yes"; then
19544
19545 succeeded=no
19546
19547 if test "$PKG_CONFIG" = "no" ; then
19548 HAVE_FC=no
19549 else
19550 PKG_CONFIG_MIN_VERSION=0.9.0
19551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
19553 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
19554
19555 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
19556 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
19557 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
19558 edit_cflags="
19559 s,///*,/,g
19560 s/^/ /
19561 s/ -I/ $isystem/g
19562 s/^ //
19563 "
19564 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
19565 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
19567 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
19568 succeeded=yes
19569 else
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19571 $as_echo "no" >&6; }
19572 FONTCONFIG_CFLAGS=""
19573 FONTCONFIG_LIBS=""
19574 ## If we have a custom action on failure, don't print errors, but
19575 ## do set a variable so people can do so.
19576 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
19577
19578 fi
19579
19580
19581
19582 else
19583 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19584 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19585 fi
19586 fi
19587
19588 if test $succeeded = yes; then
19589 HAVE_FC=yes
19590 else
19591 HAVE_FC=no
19592 fi
19593
19594
19595 ## Use -lXft if available, unless `--with-xft=no'.
19596 HAVE_XFT=maybe
19597 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
19598 with_xft="no";
19599 fi
19600 if test "x${with_xft}" != "xno"; then
19601
19602
19603 succeeded=no
19604
19605 if test "$PKG_CONFIG" = "no" ; then
19606 HAVE_XFT=no
19607 else
19608 PKG_CONFIG_MIN_VERSION=0.9.0
19609 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
19611 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
19612
19613 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
19614 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
19615 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
19616 edit_cflags="
19617 s,///*,/,g
19618 s/^/ /
19619 s/ -I/ $isystem/g
19620 s/^ //
19621 "
19622 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
19623 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
19625 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
19626 succeeded=yes
19627 else
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19629 $as_echo "no" >&6; }
19630 XFT_CFLAGS=""
19631 XFT_LIBS=""
19632 ## If we have a custom action on failure, don't print errors, but
19633 ## do set a variable so people can do so.
19634 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
19635
19636 fi
19637
19638
19639
19640 else
19641 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19642 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19643 fi
19644 fi
19645
19646 if test $succeeded = yes; then
19647 :
19648 else
19649 HAVE_XFT=no
19650 fi
19651
19652 ## Because xftfont.c uses XRenderQueryExtension, we also
19653 ## need to link to -lXrender.
19654 HAVE_XRENDER=no
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19656 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19657 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19658 $as_echo_n "(cached) " >&6
19659 else
19660 ac_check_lib_save_LIBS=$LIBS
19661 LIBS="-lXrender $LIBS"
19662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h. */
19664
19665 /* Override any GCC internal prototype to avoid an error.
19666 Use char because int might match the return type of a GCC
19667 builtin and then its argument prototype would still apply. */
19668 #ifdef __cplusplus
19669 extern "C"
19670 #endif
19671 char XRenderQueryExtension ();
19672 int
19673 main ()
19674 {
19675 return XRenderQueryExtension ();
19676 ;
19677 return 0;
19678 }
19679 _ACEOF
19680 if ac_fn_c_try_link "$LINENO"; then :
19681 ac_cv_lib_Xrender_XRenderQueryExtension=yes
19682 else
19683 ac_cv_lib_Xrender_XRenderQueryExtension=no
19684 fi
19685 rm -f core conftest.err conftest.$ac_objext \
19686 conftest$ac_exeext conftest.$ac_ext
19687 LIBS=$ac_check_lib_save_LIBS
19688 fi
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19690 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19691 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
19692 HAVE_XRENDER=yes
19693 fi
19694
19695 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
19696 OLD_CPPFLAGS="$CPPFLAGS"
19697 OLD_CFLAGS="$CFLAGS"
19698 OLD_LIBS="$LIBS"
19699 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
19700 CFLAGS="$CFLAGS $XFT_CFLAGS"
19701 XFT_LIBS="-lXrender $XFT_LIBS"
19702 LIBS="$XFT_LIBS $LIBS"
19703 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
19704 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
19706 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
19707 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
19708 $as_echo_n "(cached) " >&6
19709 else
19710 ac_check_lib_save_LIBS=$LIBS
19711 LIBS="-lXft $XFT_LIBS $LIBS"
19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h. */
19714
19715 /* Override any GCC internal prototype to avoid an error.
19716 Use char because int might match the return type of a GCC
19717 builtin and then its argument prototype would still apply. */
19718 #ifdef __cplusplus
19719 extern "C"
19720 #endif
19721 char XftFontOpen ();
19722 int
19723 main ()
19724 {
19725 return XftFontOpen ();
19726 ;
19727 return 0;
19728 }
19729 _ACEOF
19730 if ac_fn_c_try_link "$LINENO"; then :
19731 ac_cv_lib_Xft_XftFontOpen=yes
19732 else
19733 ac_cv_lib_Xft_XftFontOpen=no
19734 fi
19735 rm -f core conftest.err conftest.$ac_objext \
19736 conftest$ac_exeext conftest.$ac_ext
19737 LIBS=$ac_check_lib_save_LIBS
19738 fi
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
19740 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
19741 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
19742 HAVE_XFT=yes
19743 fi
19744
19745 fi
19746
19747
19748
19749 if test "${HAVE_XFT}" = "yes"; then
19750
19751 $as_echo "#define HAVE_XFT 1" >>confdefs.h
19752
19753
19754 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
19755 else
19756 CPPFLAGS="$OLD_CPPFLAGS"
19757 CFLAGS="$OLD_CFLAGS"
19758 LIBS="$OLD_LIBS"
19759 fi # "${HAVE_XFT}" = "yes"
19760 fi # "$HAVE_XFT" != no
19761 fi # "x${with_xft}" != "xno"
19762
19763 ## We used to allow building with FreeType and without Xft.
19764 ## However, the ftx font backend driver is not in good shape.
19765 if test "$HAVE_XFT" != "yes"; then
19766 HAVE_XFT=no
19767 HAVE_FREETYPE=no
19768 else
19769
19770 succeeded=no
19771
19772 if test "$PKG_CONFIG" = "no" ; then
19773 HAVE_FREETYPE=no
19774 else
19775 PKG_CONFIG_MIN_VERSION=0.9.0
19776 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19778 $as_echo_n "checking for freetype2... " >&6; }
19779
19780 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
19781 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
19782 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
19783 edit_cflags="
19784 s,///*,/,g
19785 s/^/ /
19786 s/ -I/ $isystem/g
19787 s/^ //
19788 "
19789 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
19790 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
19792 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
19793 succeeded=yes
19794 else
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19796 $as_echo "no" >&6; }
19797 FREETYPE_CFLAGS=""
19798 FREETYPE_LIBS=""
19799 ## If we have a custom action on failure, don't print errors, but
19800 ## do set a variable so people can do so.
19801 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19802
19803 fi
19804
19805
19806
19807 else
19808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19810 fi
19811 fi
19812
19813 if test $succeeded = yes; then
19814 HAVE_FREETYPE=yes
19815 else
19816 HAVE_FREETYPE=no
19817 fi
19818
19819
19820 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
19821 fi
19822
19823 HAVE_LIBOTF=no
19824 if test "${HAVE_FREETYPE}" = "yes"; then
19825
19826 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
19827
19828 if test "${with_libotf}" != "no"; then
19829
19830 succeeded=no
19831
19832 if test "$PKG_CONFIG" = "no" ; then
19833 HAVE_LIBOTF=no
19834 else
19835 PKG_CONFIG_MIN_VERSION=0.9.0
19836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
19838 $as_echo_n "checking for libotf... " >&6; }
19839
19840 if $PKG_CONFIG --exists "libotf" 2>&5 &&
19841 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
19842 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
19843 edit_cflags="
19844 s,///*,/,g
19845 s/^/ /
19846 s/ -I/ $isystem/g
19847 s/^ //
19848 "
19849 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
19850 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
19852 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
19853 succeeded=yes
19854 else
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19856 $as_echo "no" >&6; }
19857 LIBOTF_CFLAGS=""
19858 LIBOTF_LIBS=""
19859 ## If we have a custom action on failure, don't print errors, but
19860 ## do set a variable so people can do so.
19861 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
19862
19863 fi
19864
19865
19866
19867 else
19868 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19869 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19870 fi
19871 fi
19872
19873 if test $succeeded = yes; then
19874 HAVE_LIBOTF=yes
19875 else
19876 HAVE_LIBOTF=no
19877 fi
19878
19879 if test "$HAVE_LIBOTF" = "yes"; then
19880
19881 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
19882
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
19884 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
19885 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
19886 $as_echo_n "(cached) " >&6
19887 else
19888 ac_check_lib_save_LIBS=$LIBS
19889 LIBS="-lotf $LIBS"
19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19891 /* end confdefs.h. */
19892
19893 /* Override any GCC internal prototype to avoid an error.
19894 Use char because int might match the return type of a GCC
19895 builtin and then its argument prototype would still apply. */
19896 #ifdef __cplusplus
19897 extern "C"
19898 #endif
19899 char OTF_get_variation_glyphs ();
19900 int
19901 main ()
19902 {
19903 return OTF_get_variation_glyphs ();
19904 ;
19905 return 0;
19906 }
19907 _ACEOF
19908 if ac_fn_c_try_link "$LINENO"; then :
19909 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
19910 else
19911 ac_cv_lib_otf_OTF_get_variation_glyphs=no
19912 fi
19913 rm -f core conftest.err conftest.$ac_objext \
19914 conftest$ac_exeext conftest.$ac_ext
19915 LIBS=$ac_check_lib_save_LIBS
19916 fi
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
19918 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
19919 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
19920 HAVE_OTF_GET_VARIATION_GLYPHS=yes
19921 else
19922 HAVE_OTF_GET_VARIATION_GLYPHS=no
19923 fi
19924
19925 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
19926
19927 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
19928
19929 fi
19930 fi
19931 fi
19932 fi
19933
19934 HAVE_M17N_FLT=no
19935 if test "${HAVE_LIBOTF}" = yes; then
19936 if test "${with_m17n_flt}" != "no"; then
19937
19938 succeeded=no
19939
19940 if test "$PKG_CONFIG" = "no" ; then
19941 HAVE_M17N_FLT=no
19942 else
19943 PKG_CONFIG_MIN_VERSION=0.9.0
19944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
19946 $as_echo_n "checking for m17n-flt... " >&6; }
19947
19948 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
19949 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
19950 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
19951 edit_cflags="
19952 s,///*,/,g
19953 s/^/ /
19954 s/ -I/ $isystem/g
19955 s/^ //
19956 "
19957 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
19958 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
19960 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
19961 succeeded=yes
19962 else
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964 $as_echo "no" >&6; }
19965 M17N_FLT_CFLAGS=""
19966 M17N_FLT_LIBS=""
19967 ## If we have a custom action on failure, don't print errors, but
19968 ## do set a variable so people can do so.
19969 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
19970
19971 fi
19972
19973
19974
19975 else
19976 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19977 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19978 fi
19979 fi
19980
19981 if test $succeeded = yes; then
19982 HAVE_M17N_FLT=yes
19983 else
19984 HAVE_M17N_FLT=no
19985 fi
19986
19987 if test "$HAVE_M17N_FLT" = "yes"; then
19988
19989 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
19990
19991 fi
19992 fi
19993 fi
19994 else
19995 HAVE_XFT=no
19996 HAVE_FREETYPE=no
19997 HAVE_LIBOTF=no
19998 HAVE_M17N_FLT=no
19999 fi
20000
20001 ### End of font-backend (under X11) section.
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012 ### Use -lXpm if available, unless `--with-xpm=no'.
20013 HAVE_XPM=no
20014 LIBXPM=
20015 if test "${HAVE_X11}" = "yes"; then
20016 if test "${with_xpm}" != "no"; then
20017 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
20018 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
20020 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
20021 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
20022 $as_echo_n "(cached) " >&6
20023 else
20024 ac_check_lib_save_LIBS=$LIBS
20025 LIBS="-lXpm -lX11 $LIBS"
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20028
20029 /* Override any GCC internal prototype to avoid an error.
20030 Use char because int might match the return type of a GCC
20031 builtin and then its argument prototype would still apply. */
20032 #ifdef __cplusplus
20033 extern "C"
20034 #endif
20035 char XpmReadFileToPixmap ();
20036 int
20037 main ()
20038 {
20039 return XpmReadFileToPixmap ();
20040 ;
20041 return 0;
20042 }
20043 _ACEOF
20044 if ac_fn_c_try_link "$LINENO"; then :
20045 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
20046 else
20047 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
20048 fi
20049 rm -f core conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20052 fi
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
20054 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
20055 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
20056 HAVE_XPM=yes
20057 fi
20058
20059 fi
20060
20061
20062 if test "${HAVE_XPM}" = "yes"; then
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
20064 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066 /* end confdefs.h. */
20067 #include "X11/xpm.h"
20068 #ifndef XpmReturnAllocPixels
20069 no_return_alloc_pixels
20070 #endif
20071
20072 _ACEOF
20073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20074 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
20075 HAVE_XPM=no
20076 else
20077 HAVE_XPM=yes
20078 fi
20079 rm -f conftest*
20080
20081
20082 if test "${HAVE_XPM}" = "yes"; then
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084 $as_echo "yes" >&6; }
20085 else
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20087 $as_echo "no" >&6; }
20088 fi
20089 fi
20090 fi
20091
20092 if test "${HAVE_XPM}" = "yes"; then
20093
20094 $as_echo "#define HAVE_XPM 1" >>confdefs.h
20095
20096 LIBXPM=-lXpm
20097 fi
20098 fi
20099
20100
20101 ### Use -ljpeg if available, unless `--with-jpeg=no'.
20102 HAVE_JPEG=no
20103 LIBJPEG=
20104 if test "${HAVE_X11}" = "yes"; then
20105 if test "${with_jpeg}" != "no"; then
20106 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
20107 if test "x$ac_cv_header_jerror_h" = x""yes; then :
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
20109 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
20110 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
20111 $as_echo_n "(cached) " >&6
20112 else
20113 ac_check_lib_save_LIBS=$LIBS
20114 LIBS="-ljpeg $LIBS"
20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h. */
20117
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20121 #ifdef __cplusplus
20122 extern "C"
20123 #endif
20124 char jpeg_destroy_compress ();
20125 int
20126 main ()
20127 {
20128 return jpeg_destroy_compress ();
20129 ;
20130 return 0;
20131 }
20132 _ACEOF
20133 if ac_fn_c_try_link "$LINENO"; then :
20134 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
20135 else
20136 ac_cv_lib_jpeg_jpeg_destroy_compress=no
20137 fi
20138 rm -f core conftest.err conftest.$ac_objext \
20139 conftest$ac_exeext conftest.$ac_ext
20140 LIBS=$ac_check_lib_save_LIBS
20141 fi
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
20143 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
20144 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
20145 HAVE_JPEG=yes
20146 fi
20147
20148 fi
20149
20150
20151 fi
20152
20153 if test "${HAVE_JPEG}" = "yes"; then
20154 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20155
20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20158 #include <jpeglib.h>
20159 version=JPEG_LIB_VERSION
20160
20161 _ACEOF
20162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20163 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
20164 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20165
20166 else
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
20168 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
20169 HAVE_JPEG=no
20170 fi
20171 rm -f conftest*
20172
20173 fi
20174 if test "${HAVE_JPEG}" = "yes"; then
20175 LIBJPEG=-ljpeg
20176 fi
20177 fi
20178
20179
20180 ### Use -lpng if available, unless `--with-png=no'.
20181 HAVE_PNG=no
20182 LIBPNG=
20183 if test "${HAVE_X11}" = "yes"; then
20184 if test "${with_png}" != "no"; then
20185 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
20186 # in /usr/include/libpng.
20187 for ac_header in png.h libpng/png.h
20188 do :
20189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20190 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20191 eval as_val=\$$as_ac_Header
20192 if test "x$as_val" = x""yes; then :
20193 cat >>confdefs.h <<_ACEOF
20194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20195 _ACEOF
20196 break
20197 fi
20198
20199 done
20200
20201 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
20203 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
20204 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
20205 $as_echo_n "(cached) " >&6
20206 else
20207 ac_check_lib_save_LIBS=$LIBS
20208 LIBS="-lpng -lz -lm $LIBS"
20209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h. */
20211
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20215 #ifdef __cplusplus
20216 extern "C"
20217 #endif
20218 char png_get_channels ();
20219 int
20220 main ()
20221 {
20222 return png_get_channels ();
20223 ;
20224 return 0;
20225 }
20226 _ACEOF
20227 if ac_fn_c_try_link "$LINENO"; then :
20228 ac_cv_lib_png_png_get_channels=yes
20229 else
20230 ac_cv_lib_png_png_get_channels=no
20231 fi
20232 rm -f core conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20234 LIBS=$ac_check_lib_save_LIBS
20235 fi
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
20237 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
20238 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
20239 HAVE_PNG=yes
20240 fi
20241
20242 fi
20243 fi
20244
20245 if test "${HAVE_PNG}" = "yes"; then
20246
20247 $as_echo "#define HAVE_PNG 1" >>confdefs.h
20248
20249 LIBPNG="-lpng -lz -lm"
20250
20251 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
20252 # include <libpng/png.h>
20253 #else
20254 # include <png.h>
20255 #endif
20256
20257 "
20258 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
20259
20260 else
20261
20262 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
20263
20264 fi
20265
20266 fi
20267 fi
20268
20269
20270 ### Use -ltiff if available, unless `--with-tiff=no'.
20271 HAVE_TIFF=no
20272 LIBTIFF=
20273 if test "${HAVE_X11}" = "yes"; then
20274 if test "${with_tiff}" != "no"; then
20275 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
20276 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
20277 tifflibs="-lz -lm"
20278 # At least one tiff package requires the jpeg library.
20279 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
20281 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
20282 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
20283 $as_echo_n "(cached) " >&6
20284 else
20285 ac_check_lib_save_LIBS=$LIBS
20286 LIBS="-ltiff $tifflibs $LIBS"
20287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288 /* end confdefs.h. */
20289
20290 /* Override any GCC internal prototype to avoid an error.
20291 Use char because int might match the return type of a GCC
20292 builtin and then its argument prototype would still apply. */
20293 #ifdef __cplusplus
20294 extern "C"
20295 #endif
20296 char TIFFGetVersion ();
20297 int
20298 main ()
20299 {
20300 return TIFFGetVersion ();
20301 ;
20302 return 0;
20303 }
20304 _ACEOF
20305 if ac_fn_c_try_link "$LINENO"; then :
20306 ac_cv_lib_tiff_TIFFGetVersion=yes
20307 else
20308 ac_cv_lib_tiff_TIFFGetVersion=no
20309 fi
20310 rm -f core conftest.err conftest.$ac_objext \
20311 conftest$ac_exeext conftest.$ac_ext
20312 LIBS=$ac_check_lib_save_LIBS
20313 fi
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
20315 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
20316 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
20317 HAVE_TIFF=yes
20318 fi
20319
20320 fi
20321
20322
20323 fi
20324
20325 if test "${HAVE_TIFF}" = "yes"; then
20326
20327 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
20328
20329 LIBTIFF=-ltiff
20330 fi
20331 fi
20332
20333
20334 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
20335 HAVE_GIF=no
20336 LIBGIF=
20337 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
20338 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
20339 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
20340 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
20341 # Earlier versions can crash Emacs.
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
20343 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
20344 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
20345 $as_echo_n "(cached) " >&6
20346 else
20347 ac_check_lib_save_LIBS=$LIBS
20348 LIBS="-lgif $LIBS"
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351
20352 /* Override any GCC internal prototype to avoid an error.
20353 Use char because int might match the return type of a GCC
20354 builtin and then its argument prototype would still apply. */
20355 #ifdef __cplusplus
20356 extern "C"
20357 #endif
20358 char EGifPutExtensionLast ();
20359 int
20360 main ()
20361 {
20362 return EGifPutExtensionLast ();
20363 ;
20364 return 0;
20365 }
20366 _ACEOF
20367 if ac_fn_c_try_link "$LINENO"; then :
20368 ac_cv_lib_gif_EGifPutExtensionLast=yes
20369 else
20370 ac_cv_lib_gif_EGifPutExtensionLast=no
20371 fi
20372 rm -f core conftest.err conftest.$ac_objext \
20373 conftest$ac_exeext conftest.$ac_ext
20374 LIBS=$ac_check_lib_save_LIBS
20375 fi
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
20377 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
20378 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
20379 HAVE_GIF=yes
20380 else
20381 HAVE_GIF=maybe
20382 fi
20383
20384 fi
20385
20386
20387
20388 if test "$HAVE_GIF" = yes; then
20389 LIBGIF=-lgif
20390 elif test "$HAVE_GIF" = maybe; then
20391 # If gif_lib.h but no libgif, try libungif.
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
20393 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
20394 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
20395 $as_echo_n "(cached) " >&6
20396 else
20397 ac_check_lib_save_LIBS=$LIBS
20398 LIBS="-lungif $LIBS"
20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h. */
20401
20402 /* Override any GCC internal prototype to avoid an error.
20403 Use char because int might match the return type of a GCC
20404 builtin and then its argument prototype would still apply. */
20405 #ifdef __cplusplus
20406 extern "C"
20407 #endif
20408 char EGifPutExtensionLast ();
20409 int
20410 main ()
20411 {
20412 return EGifPutExtensionLast ();
20413 ;
20414 return 0;
20415 }
20416 _ACEOF
20417 if ac_fn_c_try_link "$LINENO"; then :
20418 ac_cv_lib_ungif_EGifPutExtensionLast=yes
20419 else
20420 ac_cv_lib_ungif_EGifPutExtensionLast=no
20421 fi
20422 rm -f core conftest.err conftest.$ac_objext \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20425 fi
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
20427 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
20428 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
20429 HAVE_GIF=yes
20430 else
20431 HAVE_GIF=no
20432 fi
20433
20434 test "$HAVE_GIF" = yes && LIBGIF=-lungif
20435 fi
20436
20437 if test "${HAVE_GIF}" = "yes"; then
20438
20439 $as_echo "#define HAVE_GIF 1" >>confdefs.h
20440
20441 fi
20442 fi
20443
20444
20445 if test "${HAVE_X11}" = "yes"; then
20446 MISSING=""
20447 WITH_NO=""
20448 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
20449 MISSING="libXpm" && WITH_NO="--with-xpm=no"
20450 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
20451 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
20452 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
20453 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
20454 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
20455 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
20456 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
20457 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
20458
20459 if test "X${MISSING}" != X; then
20460 as_fn_error "The following required libraries were not found:
20461 $MISSING
20462 Maybe some development libraries/packages are missing?
20463 If you don't want to link with them give
20464 $WITH_NO
20465 as options to configure" "$LINENO" 5
20466 fi
20467 fi
20468
20469 ### Use -lgpm if available, unless `--with-gpm=no'.
20470 HAVE_GPM=no
20471 LIBGPM=
20472 if test "${with_gpm}" != "no"; then
20473 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
20474 if test "x$ac_cv_header_gpm_h" = x""yes; then :
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
20476 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
20477 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
20478 $as_echo_n "(cached) " >&6
20479 else
20480 ac_check_lib_save_LIBS=$LIBS
20481 LIBS="-lgpm $LIBS"
20482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h. */
20484
20485 /* Override any GCC internal prototype to avoid an error.
20486 Use char because int might match the return type of a GCC
20487 builtin and then its argument prototype would still apply. */
20488 #ifdef __cplusplus
20489 extern "C"
20490 #endif
20491 char Gpm_Open ();
20492 int
20493 main ()
20494 {
20495 return Gpm_Open ();
20496 ;
20497 return 0;
20498 }
20499 _ACEOF
20500 if ac_fn_c_try_link "$LINENO"; then :
20501 ac_cv_lib_gpm_Gpm_Open=yes
20502 else
20503 ac_cv_lib_gpm_Gpm_Open=no
20504 fi
20505 rm -f core conftest.err conftest.$ac_objext \
20506 conftest$ac_exeext conftest.$ac_ext
20507 LIBS=$ac_check_lib_save_LIBS
20508 fi
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
20510 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
20511 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
20512 HAVE_GPM=yes
20513 fi
20514
20515 fi
20516
20517
20518
20519 if test "${HAVE_GPM}" = "yes"; then
20520
20521 $as_echo "#define HAVE_GPM 1" >>confdefs.h
20522
20523 LIBGPM=-lgpm
20524 fi
20525 fi
20526
20527
20528
20529
20530
20531
20532 GNUSTEP_CFLAGS=
20533 ### Use NeXTstep API to implement GUI.
20534 if test "${HAVE_NS}" = "yes"; then
20535
20536 $as_echo "#define HAVE_NS 1" >>confdefs.h
20537
20538 if test "${NS_IMPL_COCOA}" = "yes"; then
20539
20540 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
20541
20542 fi
20543 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
20544
20545 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
20546
20547 # See also .m.o rule in Makefile.in */
20548 # FIXME: are all these flags really needed? Document here why. */
20549 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
20550 ## Extra CFLAGS applied to src/*.m files.
20551 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"
20552 fi
20553 # We also have mouse menus.
20554 HAVE_MENUS=yes
20555 OTHER_FILES=ns-app
20556 fi
20557
20558
20559 ### Use session management (-lSM -lICE) if available
20560 HAVE_X_SM=no
20561 LIBXSM=
20562 if test "${HAVE_X11}" = "yes"; then
20563 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
20564 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
20566 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
20567 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
20568 $as_echo_n "(cached) " >&6
20569 else
20570 ac_check_lib_save_LIBS=$LIBS
20571 LIBS="-lSM -lICE $LIBS"
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20574
20575 /* Override any GCC internal prototype to avoid an error.
20576 Use char because int might match the return type of a GCC
20577 builtin and then its argument prototype would still apply. */
20578 #ifdef __cplusplus
20579 extern "C"
20580 #endif
20581 char SmcOpenConnection ();
20582 int
20583 main ()
20584 {
20585 return SmcOpenConnection ();
20586 ;
20587 return 0;
20588 }
20589 _ACEOF
20590 if ac_fn_c_try_link "$LINENO"; then :
20591 ac_cv_lib_SM_SmcOpenConnection=yes
20592 else
20593 ac_cv_lib_SM_SmcOpenConnection=no
20594 fi
20595 rm -f core conftest.err conftest.$ac_objext \
20596 conftest$ac_exeext conftest.$ac_ext
20597 LIBS=$ac_check_lib_save_LIBS
20598 fi
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
20600 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
20601 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
20602 HAVE_X_SM=yes
20603 fi
20604
20605 fi
20606
20607
20608
20609 if test "${HAVE_X_SM}" = "yes"; then
20610
20611 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
20612
20613 LIBXSM="-lSM -lICE"
20614 case "$LIBS" in
20615 *-lSM*) ;;
20616 *) LIBS="$LIBXSM $LIBS" ;;
20617 esac
20618 fi
20619 fi
20620
20621
20622 ### Use libxml (-lxml2) if available
20623 HAVE_LIBXML2=no
20624 if test "${with_xml2}" != "no"; then
20625 ### I'm not sure what the version number should be, so I just guessed.
20626
20627 succeeded=no
20628
20629 if test "$PKG_CONFIG" = "no" ; then
20630 HAVE_LIBXML2=no
20631 else
20632 PKG_CONFIG_MIN_VERSION=0.9.0
20633 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
20635 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
20636
20637 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
20638 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
20639 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
20640 edit_cflags="
20641 s,///*,/,g
20642 s/^/ /
20643 s/ -I/ $isystem/g
20644 s/^ //
20645 "
20646 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
20647 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
20649 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
20650 succeeded=yes
20651 else
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653 $as_echo "no" >&6; }
20654 LIBXML2_CFLAGS=""
20655 LIBXML2_LIBS=""
20656 ## If we have a custom action on failure, don't print errors, but
20657 ## do set a variable so people can do so.
20658 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
20659
20660 fi
20661
20662
20663
20664 else
20665 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20666 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20667 fi
20668 fi
20669
20670 if test $succeeded = yes; then
20671 HAVE_LIBXML2=yes
20672 else
20673 HAVE_LIBXML2=no
20674 fi
20675
20676 if test "${HAVE_LIBXML2}" = "yes"; then
20677 LIBS="$LIBXML2_LIBS $LIBS"
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
20679 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
20680 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
20681 $as_echo_n "(cached) " >&6
20682 else
20683 ac_check_lib_save_LIBS=$LIBS
20684 LIBS="-lxml2 $LIBS"
20685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20686 /* end confdefs.h. */
20687
20688 /* Override any GCC internal prototype to avoid an error.
20689 Use char because int might match the return type of a GCC
20690 builtin and then its argument prototype would still apply. */
20691 #ifdef __cplusplus
20692 extern "C"
20693 #endif
20694 char htmlReadMemory ();
20695 int
20696 main ()
20697 {
20698 return htmlReadMemory ();
20699 ;
20700 return 0;
20701 }
20702 _ACEOF
20703 if ac_fn_c_try_link "$LINENO"; then :
20704 ac_cv_lib_xml2_htmlReadMemory=yes
20705 else
20706 ac_cv_lib_xml2_htmlReadMemory=no
20707 fi
20708 rm -f core conftest.err conftest.$ac_objext \
20709 conftest$ac_exeext conftest.$ac_ext
20710 LIBS=$ac_check_lib_save_LIBS
20711 fi
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
20713 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
20714 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
20715 HAVE_LIBXML2=yes
20716 else
20717 HAVE_LIBXML2=no
20718 fi
20719
20720 if test "${HAVE_LIBXML2}" = "yes"; then
20721
20722 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
20723
20724 else
20725 LIBXML2_LIBS=""
20726 LIBXML2_CFLAGS=""
20727 fi
20728 fi
20729 fi
20730
20731
20732
20733 # If netdb.h doesn't declare h_errno, we must declare it by hand.
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
20735 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
20736 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
20737 $as_echo_n "(cached) " >&6
20738 else
20739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20740 /* end confdefs.h. */
20741 #include <netdb.h>
20742 int
20743 main ()
20744 {
20745 return h_errno;
20746 ;
20747 return 0;
20748 }
20749 _ACEOF
20750 if ac_fn_c_try_link "$LINENO"; then :
20751 emacs_cv_netdb_declares_h_errno=yes
20752 else
20753 emacs_cv_netdb_declares_h_errno=no
20754 fi
20755 rm -f core conftest.err conftest.$ac_objext \
20756 conftest$ac_exeext conftest.$ac_ext
20757 fi
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
20759 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
20760 if test $emacs_cv_netdb_declares_h_errno = yes; then
20761
20762 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
20763
20764 fi
20765
20766 # fmod, logb, and frexp are found in -lm on most systems.
20767 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
20769 $as_echo_n "checking for sqrt in -lm... " >&6; }
20770 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
20771 $as_echo_n "(cached) " >&6
20772 else
20773 ac_check_lib_save_LIBS=$LIBS
20774 LIBS="-lm $LIBS"
20775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20776 /* end confdefs.h. */
20777
20778 /* Override any GCC internal prototype to avoid an error.
20779 Use char because int might match the return type of a GCC
20780 builtin and then its argument prototype would still apply. */
20781 #ifdef __cplusplus
20782 extern "C"
20783 #endif
20784 char sqrt ();
20785 int
20786 main ()
20787 {
20788 return sqrt ();
20789 ;
20790 return 0;
20791 }
20792 _ACEOF
20793 if ac_fn_c_try_link "$LINENO"; then :
20794 ac_cv_lib_m_sqrt=yes
20795 else
20796 ac_cv_lib_m_sqrt=no
20797 fi
20798 rm -f core conftest.err conftest.$ac_objext \
20799 conftest$ac_exeext conftest.$ac_ext
20800 LIBS=$ac_check_lib_save_LIBS
20801 fi
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
20803 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
20804 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_LIBM 1
20807 _ACEOF
20808
20809 LIBS="-lm $LIBS"
20810
20811 fi
20812
20813
20814 # Check for mail-locking functions in a "mail" library. Probably this should
20815 # have the same check as for liblockfile below.
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
20817 $as_echo_n "checking for maillock in -lmail... " >&6; }
20818 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
20819 $as_echo_n "(cached) " >&6
20820 else
20821 ac_check_lib_save_LIBS=$LIBS
20822 LIBS="-lmail $LIBS"
20823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h. */
20825
20826 /* Override any GCC internal prototype to avoid an error.
20827 Use char because int might match the return type of a GCC
20828 builtin and then its argument prototype would still apply. */
20829 #ifdef __cplusplus
20830 extern "C"
20831 #endif
20832 char maillock ();
20833 int
20834 main ()
20835 {
20836 return maillock ();
20837 ;
20838 return 0;
20839 }
20840 _ACEOF
20841 if ac_fn_c_try_link "$LINENO"; then :
20842 ac_cv_lib_mail_maillock=yes
20843 else
20844 ac_cv_lib_mail_maillock=no
20845 fi
20846 rm -f core conftest.err conftest.$ac_objext \
20847 conftest$ac_exeext conftest.$ac_ext
20848 LIBS=$ac_check_lib_save_LIBS
20849 fi
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
20851 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
20852 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
20853 have_mail=yes
20854 else
20855 have_mail=no
20856 fi
20857
20858 if test $have_mail = yes; then
20859 LIBS_MAIL=-lmail
20860 LIBS="$LIBS_MAIL $LIBS"
20861
20862 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
20863
20864 else
20865 LIBS_MAIL=
20866 fi
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
20868 $as_echo_n "checking for maillock in -llockfile... " >&6; }
20869 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
20870 $as_echo_n "(cached) " >&6
20871 else
20872 ac_check_lib_save_LIBS=$LIBS
20873 LIBS="-llockfile $LIBS"
20874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20875 /* end confdefs.h. */
20876
20877 /* Override any GCC internal prototype to avoid an error.
20878 Use char because int might match the return type of a GCC
20879 builtin and then its argument prototype would still apply. */
20880 #ifdef __cplusplus
20881 extern "C"
20882 #endif
20883 char maillock ();
20884 int
20885 main ()
20886 {
20887 return maillock ();
20888 ;
20889 return 0;
20890 }
20891 _ACEOF
20892 if ac_fn_c_try_link "$LINENO"; then :
20893 ac_cv_lib_lockfile_maillock=yes
20894 else
20895 ac_cv_lib_lockfile_maillock=no
20896 fi
20897 rm -f core conftest.err conftest.$ac_objext \
20898 conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS
20900 fi
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
20902 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
20903 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
20904 have_lockfile=yes
20905 else
20906 have_lockfile=no
20907 fi
20908
20909 if test $have_lockfile = yes; then
20910 LIBS_MAIL=-llockfile
20911 LIBS="$LIBS_MAIL $LIBS"
20912
20913 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
20914
20915 else
20916 # If we have the shared liblockfile, assume we must use it for mail
20917 # locking (e.g. Debian). If we couldn't link against liblockfile
20918 # (no liblockfile.a installed), ensure that we don't need to.
20919 # Extract the first word of "liblockfile.so", so it can be a program name with args.
20920 set dummy liblockfile.so; ac_word=$2
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20922 $as_echo_n "checking for $ac_word... " >&6; }
20923 if test "${ac_cv_prog_liblockfile+set}" = set; then :
20924 $as_echo_n "(cached) " >&6
20925 else
20926 if test -n "$liblockfile"; then
20927 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
20928 else
20929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20930 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
20931 for as_dir in $as_dummy
20932 do
20933 IFS=$as_save_IFS
20934 test -z "$as_dir" && as_dir=.
20935 for ac_exec_ext in '' $ac_executable_extensions; do
20936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20937 ac_cv_prog_liblockfile="yes"
20938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20939 break 2
20940 fi
20941 done
20942 done
20943 IFS=$as_save_IFS
20944
20945 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
20946 fi
20947 fi
20948 liblockfile=$ac_cv_prog_liblockfile
20949 if test -n "$liblockfile"; then
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
20951 $as_echo "$liblockfile" >&6; }
20952 else
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20954 $as_echo "no" >&6; }
20955 fi
20956
20957
20958 if test $ac_cv_prog_liblockfile = yes; then
20959 as_fn_error "Shared liblockfile found but can't link against it.
20960 This probably means that movemail could lose mail.
20961 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
20962 fi
20963 fi
20964
20965
20966
20967
20968
20969 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
20970 ## interlock access to the mail spool. The alternative is a lock file named
20971 ## /usr/spool/mail/$USER.lock.
20972 mail_lock=no
20973 case "$opsys" in
20974 aix4-2) mail_lock="lockf" ;;
20975
20976 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
20977
20978 ## On GNU/Linux systems, both methods are used by various mail programs.
20979 ## I assume most people are using newer mailers that have heard of flock.
20980 ## Change this if you need to.
20981 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
20982 ## configure gets the right answers, and that means *NOT* using flock.
20983 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
20984 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
20985 ## Debian maintainer hasn't provided a clean fix for Emacs.
20986 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
20987 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
20988 ## correct logic. -- fx
20989 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
20990 ## liblockfile is a Free Software replacement for libmail, used on
20991 ## Debian systems and elsewhere. -rfr.
20992 gnu-*)
20993 mail_lock="flock"
20994 if test $have_mail = yes || test $have_lockfile = yes; then
20995 test $ac_cv_header_maillock_h = yes && mail_lock=no
20996 fi
20997 ;;
20998 esac
20999
21000 BLESSMAIL_TARGET=
21001 case "$mail_lock" in
21002 flock)
21003 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
21004 ;;
21005
21006 lockf)
21007 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
21008 ;;
21009
21010 *) BLESSMAIL_TARGET="need-blessmail" ;;
21011 esac
21012
21013
21014
21015 for ac_func in gethostname \
21016 closedir getrusage get_current_dir_name \
21017 lrand48 logb frexp fmod cbrt setsid \
21018 fpathconf select euidaccess getpagesize setlocale \
21019 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
21020 __fpending strsignal setitimer \
21021 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
21022 gai_strerror mkstemp getline getdelim fsync sync \
21023 difftime posix_memalign \
21024 getpwent endpwent getgrent endgrent \
21025 touchlock \
21026 cfmakeraw cfsetspeed copysign __executable_start
21027 do :
21028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21029 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21030 eval as_val=\$$as_ac_var
21031 if test "x$as_val" = x""yes; then :
21032 cat >>confdefs.h <<_ACEOF
21033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21034 _ACEOF
21035
21036 fi
21037 done
21038
21039
21040 if test $opsys != unixware; then
21041 for ac_func in getwd
21042 do :
21043 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
21044 if test "x$ac_cv_func_getwd" = x""yes; then :
21045 cat >>confdefs.h <<_ACEOF
21046 #define HAVE_GETWD 1
21047 _ACEOF
21048
21049 fi
21050 done
21051
21052 fi
21053
21054 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
21055 ## has a broken `rint' in some library versions including math library
21056 ## version number A.09.05.
21057 ## You can fix the math library by installing patch number PHSS_4630.
21058 ## But we can fix it more reliably for Emacs by just not using rint.
21059 ## We also skip HAVE_RANDOM - see comments in src/s/hpux10-20.h.
21060 case $opsys in
21061 hpux*) : ;;
21062 *) for ac_func in random rint
21063 do :
21064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21065 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21066 eval as_val=\$$as_ac_var
21067 if test "x$as_val" = x""yes; then :
21068 cat >>confdefs.h <<_ACEOF
21069 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21070 _ACEOF
21071
21072 fi
21073 done
21074 ;;
21075 esac
21076
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
21078 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
21079 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
21080 $as_echo_n "(cached) " >&6
21081 else
21082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21083 /* end confdefs.h. */
21084
21085 int
21086 main ()
21087 {
21088 __builtin_unwind_init ();
21089 ;
21090 return 0;
21091 }
21092 _ACEOF
21093 if ac_fn_c_try_link "$LINENO"; then :
21094 emacs_cv_func___builtin_unwind_init=yes
21095 else
21096 emacs_cv_func___builtin_unwind_init=no
21097 fi
21098 rm -f core conftest.err conftest.$ac_objext \
21099 conftest$ac_exeext conftest.$ac_ext
21100 fi
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
21102 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
21103 if test $emacs_cv_func___builtin_unwind_init = yes; then
21104
21105 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
21106
21107 fi
21108
21109
21110
21111
21112
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21114 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21115 if test "${ac_cv_sys_largefile_source+set}" = set; then :
21116 $as_echo_n "(cached) " >&6
21117 else
21118 while :; do
21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21121 #include <sys/types.h> /* for off_t */
21122 #include <stdio.h>
21123 int
21124 main ()
21125 {
21126 int (*fp) (FILE *, off_t, int) = fseeko;
21127 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21128 ;
21129 return 0;
21130 }
21131 _ACEOF
21132 if ac_fn_c_try_link "$LINENO"; then :
21133 ac_cv_sys_largefile_source=no; break
21134 fi
21135 rm -f core conftest.err conftest.$ac_objext \
21136 conftest$ac_exeext conftest.$ac_ext
21137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21138 /* end confdefs.h. */
21139 #define _LARGEFILE_SOURCE 1
21140 #include <sys/types.h> /* for off_t */
21141 #include <stdio.h>
21142 int
21143 main ()
21144 {
21145 int (*fp) (FILE *, off_t, int) = fseeko;
21146 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21147 ;
21148 return 0;
21149 }
21150 _ACEOF
21151 if ac_fn_c_try_link "$LINENO"; then :
21152 ac_cv_sys_largefile_source=1; break
21153 fi
21154 rm -f core conftest.err conftest.$ac_objext \
21155 conftest$ac_exeext conftest.$ac_ext
21156 ac_cv_sys_largefile_source=unknown
21157 break
21158 done
21159 fi
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21161 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21162 case $ac_cv_sys_largefile_source in #(
21163 no | unknown) ;;
21164 *)
21165 cat >>confdefs.h <<_ACEOF
21166 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21167 _ACEOF
21168 ;;
21169 esac
21170 rm -rf conftest*
21171
21172 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21173 # in glibc 2.1.3, but that breaks too many other things.
21174 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21175 if test $ac_cv_sys_largefile_source != unknown; then
21176
21177 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21178
21179 fi
21180
21181
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
21183 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21184 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
21185 $as_echo_n "(cached) " >&6
21186 else
21187 # Use it with a single arg.
21188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21189 /* end confdefs.h. */
21190 $ac_includes_default
21191 int
21192 main ()
21193 {
21194 getpgrp (0);
21195 ;
21196 return 0;
21197 }
21198 _ACEOF
21199 if ac_fn_c_try_compile "$LINENO"; then :
21200 ac_cv_func_getpgrp_void=no
21201 else
21202 ac_cv_func_getpgrp_void=yes
21203 fi
21204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21205
21206 fi
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
21208 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21209 if test $ac_cv_func_getpgrp_void = yes; then
21210
21211 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
21212
21213 fi
21214
21215
21216 # UNIX98 PTYs.
21217 for ac_func in grantpt
21218 do :
21219 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
21220 if test "x$ac_cv_func_grantpt" = x""yes; then :
21221 cat >>confdefs.h <<_ACEOF
21222 #define HAVE_GRANTPT 1
21223 _ACEOF
21224
21225 fi
21226 done
21227
21228
21229 # PTY-related GNU extensions.
21230 for ac_func in getpt
21231 do :
21232 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21233 if test "x$ac_cv_func_getpt" = x""yes; then :
21234 cat >>confdefs.h <<_ACEOF
21235 #define HAVE_GETPT 1
21236 _ACEOF
21237
21238 fi
21239 done
21240
21241
21242 # Check this now, so that we will NOT find the above functions in ncurses.
21243 # That is because we have not set up to link ncurses in lib-src.
21244 # It's better to believe a function is not available
21245 # than to expect to find it in ncurses.
21246 # Also we need tputs and friends to be able to build at all.
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21248 $as_echo_n "checking for library containing tputs... " >&6; }
21249 # Run a test program that contains a call to tputs, a call that is
21250 # never executed. This tests whether a pre-'main' dynamic linker
21251 # works with the library. It's too much trouble to actually call
21252 # tputs in the test program, due to portability hassles. When
21253 # cross-compiling, assume the test program will run if it links.
21254
21255 # Maybe curses should be tried earlier?
21256 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
21257 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
21258 OLIBS=$LIBS
21259 if test -z "$tputs_library"; then
21260 LIBS_TERMCAP=
21261 msg='none required'
21262 else
21263 LIBS_TERMCAP=-l$tputs_library
21264 msg=$LIBS_TERMCAP
21265 LIBS="$LIBS_TERMCAP $LIBS"
21266 fi
21267 if test "$cross_compiling" = yes; then :
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h. */
21270
21271 extern void tputs (const char *, int, int (*)(int));
21272 int main (int argc, char **argv)
21273 {
21274 if (argc == 10000)
21275 tputs (argv[0], 0, 0);
21276 return 0;
21277 }
21278
21279 _ACEOF
21280 if ac_fn_c_try_link "$LINENO"; then :
21281
21282 else
21283 msg=no
21284 fi
21285 rm -f core conftest.err conftest.$ac_objext \
21286 conftest$ac_exeext conftest.$ac_ext
21287 else
21288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289 /* end confdefs.h. */
21290
21291 extern void tputs (const char *, int, int (*)(int));
21292 int main (int argc, char **argv)
21293 {
21294 if (argc == 10000)
21295 tputs (argv[0], 0, 0);
21296 return 0;
21297 }
21298
21299 _ACEOF
21300 if ac_fn_c_try_run "$LINENO"; then :
21301
21302 else
21303 msg=no
21304 fi
21305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21306 conftest.$ac_objext conftest.beam conftest.$ac_ext
21307 fi
21308
21309 LIBS=$OLIBS
21310 if test "X$msg" != Xno; then
21311 break
21312 fi
21313 done
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
21315 $as_echo "$msg" >&6; }
21316 if test "X$msg" = Xno; then
21317 as_fn_error "The required function \`tputs' was not found in any library.
21318 The following libraries were tried (in order):
21319 libtinfo, libncurses, libterminfo, libtermcap, libcurses
21320 Please try installing whichever of these libraries is most appropriate
21321 for your system, together with its header files.
21322 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
21323 fi
21324
21325 ## Use termcap instead of terminfo?
21326 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
21327 TERMINFO=yes
21328 ## FIXME? In the cases below where we unconditionally set
21329 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
21330 ## if that was found above to have tputs.
21331 ## Should we use the gnu* logic everywhere?
21332 case "$opsys" in
21333 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21334 ## The ncurses library has been moved out of the System framework in
21335 ## Mac OS X 10.2. So if configure detects it, set the command-line
21336 ## option to use it.
21337 darwin) LIBS_TERMCAP="-lncurses" ;;
21338
21339 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
21340
21341 freebsd)
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21343 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21344 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21345 $as_echo_n "(cached) " >&6
21346 else
21347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h. */
21349 #include <osreldate.h>
21350 int
21351 main ()
21352 {
21353 #if __FreeBSD_version < 400000
21354 fail;
21355 #endif
21356
21357 ;
21358 return 0;
21359 }
21360 _ACEOF
21361 if ac_fn_c_try_link "$LINENO"; then :
21362 emacs_cv_freebsd_terminfo=yes
21363 else
21364 emacs_cv_freebsd_terminfo=no
21365 fi
21366 rm -f core conftest.err conftest.$ac_objext \
21367 conftest$ac_exeext conftest.$ac_ext
21368 fi
21369
21370
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
21372 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21373
21374 if test $emacs_cv_freebsd_terminfo = yes; then
21375 LIBS_TERMCAP="-lncurses"
21376 else
21377 TERMINFO=no
21378 LIBS_TERMCAP="-ltermcap"
21379 fi
21380 ;;
21381
21382 netbsd)
21383 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
21384 TERMINFO=no
21385 LIBS_TERMCAP="-ltermcap"
21386 fi
21387 ;;
21388
21389 openbsd) LIBS_TERMCAP="-lncurses" ;;
21390
21391 ## hpux: Make sure we get select from libc rather than from libcurses
21392 ## because libcurses on HPUX 10.10 has a broken version of select.
21393 ## We used to use -lc -lcurses, but this may be cleaner.
21394 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
21395 # set that way, now it uses the default). Isn't this a contradiction?
21396 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21397
21398 esac
21399
21400 TERMCAP_OBJ=tparam.o
21401 if test $TERMINFO = yes; then
21402
21403 $as_echo "#define TERMINFO 1" >>confdefs.h
21404
21405 TERMCAP_OBJ=terminfo.o
21406 fi
21407
21408
21409
21410
21411 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21412 # On Darwin, res_init appears not to be useful: see bug#562 and
21413 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
21414 resolv=no
21415
21416 if test $opsys != darwin; then
21417
21418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h. */
21420 #include <netinet/in.h>
21421 #include <arpa/nameser.h>
21422 #include <resolv.h>
21423 int
21424 main ()
21425 {
21426 return res_init();
21427 ;
21428 return 0;
21429 }
21430 _ACEOF
21431 if ac_fn_c_try_link "$LINENO"; then :
21432 have_res_init=yes
21433 else
21434 have_res_init=no
21435 fi
21436 rm -f core conftest.err conftest.$ac_objext \
21437 conftest$ac_exeext conftest.$ac_ext
21438 if test "$have_res_init" = no; then
21439 OLIBS="$LIBS"
21440 LIBS="$LIBS -lresolv"
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21442 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21444 /* end confdefs.h. */
21445 #include <netinet/in.h>
21446 #include <arpa/nameser.h>
21447 #include <resolv.h>
21448 int
21449 main ()
21450 {
21451 return res_init();
21452 ;
21453 return 0;
21454 }
21455 _ACEOF
21456 if ac_fn_c_try_link "$LINENO"; then :
21457 have_res_init=yes
21458 else
21459 have_res_init=no
21460 fi
21461 rm -f core conftest.err conftest.$ac_objext \
21462 conftest$ac_exeext conftest.$ac_ext
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21464 $as_echo "$have_res_init" >&6; }
21465 if test "$have_res_init" = yes ; then
21466 resolv=yes
21467 fi
21468 LIBS="$OLIBS"
21469 fi
21470
21471 if test "$have_res_init" = yes; then
21472
21473 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21474
21475 fi
21476 fi
21477 # Do we need the Hesiod library to provide the support routines?
21478 LIBHESIOD=
21479 if test "$with_hesiod" != no ; then
21480 # Don't set $LIBS here -- see comments above. FIXME which comments?
21481 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21482 if test "x$ac_cv_func_res_send" = x""yes; then :
21483
21484 else
21485 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21486 if test "x$ac_cv_func___res_send" = x""yes; then :
21487
21488 else
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21490 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21491 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21492 $as_echo_n "(cached) " >&6
21493 else
21494 ac_check_lib_save_LIBS=$LIBS
21495 LIBS="-lresolv $LIBS"
21496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21497 /* end confdefs.h. */
21498
21499 /* Override any GCC internal prototype to avoid an error.
21500 Use char because int might match the return type of a GCC
21501 builtin and then its argument prototype would still apply. */
21502 #ifdef __cplusplus
21503 extern "C"
21504 #endif
21505 char res_send ();
21506 int
21507 main ()
21508 {
21509 return res_send ();
21510 ;
21511 return 0;
21512 }
21513 _ACEOF
21514 if ac_fn_c_try_link "$LINENO"; then :
21515 ac_cv_lib_resolv_res_send=yes
21516 else
21517 ac_cv_lib_resolv_res_send=no
21518 fi
21519 rm -f core conftest.err conftest.$ac_objext \
21520 conftest$ac_exeext conftest.$ac_ext
21521 LIBS=$ac_check_lib_save_LIBS
21522 fi
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21524 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21525 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21526 resolv=yes
21527 else
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21529 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21530 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21531 $as_echo_n "(cached) " >&6
21532 else
21533 ac_check_lib_save_LIBS=$LIBS
21534 LIBS="-lresolv $LIBS"
21535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21536 /* end confdefs.h. */
21537
21538 /* Override any GCC internal prototype to avoid an error.
21539 Use char because int might match the return type of a GCC
21540 builtin and then its argument prototype would still apply. */
21541 #ifdef __cplusplus
21542 extern "C"
21543 #endif
21544 char __res_send ();
21545 int
21546 main ()
21547 {
21548 return __res_send ();
21549 ;
21550 return 0;
21551 }
21552 _ACEOF
21553 if ac_fn_c_try_link "$LINENO"; then :
21554 ac_cv_lib_resolv___res_send=yes
21555 else
21556 ac_cv_lib_resolv___res_send=no
21557 fi
21558 rm -f core conftest.err conftest.$ac_objext \
21559 conftest$ac_exeext conftest.$ac_ext
21560 LIBS=$ac_check_lib_save_LIBS
21561 fi
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21563 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21564 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21565 resolv=yes
21566 fi
21567
21568 fi
21569
21570 fi
21571
21572 fi
21573
21574 if test "$resolv" = yes ; then
21575 RESOLVLIB=-lresolv
21576 else
21577 RESOLVLIB=
21578 fi
21579 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21580 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21581
21582 else
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21584 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21585 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21586 $as_echo_n "(cached) " >&6
21587 else
21588 ac_check_lib_save_LIBS=$LIBS
21589 LIBS="-lhesiod $RESOLVLIB $LIBS"
21590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21591 /* end confdefs.h. */
21592
21593 /* Override any GCC internal prototype to avoid an error.
21594 Use char because int might match the return type of a GCC
21595 builtin and then its argument prototype would still apply. */
21596 #ifdef __cplusplus
21597 extern "C"
21598 #endif
21599 char hes_getmailhost ();
21600 int
21601 main ()
21602 {
21603 return hes_getmailhost ();
21604 ;
21605 return 0;
21606 }
21607 _ACEOF
21608 if ac_fn_c_try_link "$LINENO"; then :
21609 ac_cv_lib_hesiod_hes_getmailhost=yes
21610 else
21611 ac_cv_lib_hesiod_hes_getmailhost=no
21612 fi
21613 rm -f core conftest.err conftest.$ac_objext \
21614 conftest$ac_exeext conftest.$ac_ext
21615 LIBS=$ac_check_lib_save_LIBS
21616 fi
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21618 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21619 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21620 hesiod=yes
21621 else
21622 :
21623 fi
21624
21625 fi
21626
21627
21628 if test x"$hesiod" = xyes; then
21629
21630 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21631
21632 LIBHESIOD=-lhesiod
21633 fi
21634 fi
21635
21636
21637 # Do we need libresolv (due to res_init or Hesiod)?
21638 if test "$resolv" = yes && test $opsys != darwin; then
21639
21640 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21641
21642 LIBRESOLV=-lresolv
21643 else
21644 LIBRESOLV=
21645 fi
21646
21647
21648 # These tell us which Kerberos-related libraries to use.
21649 COM_ERRLIB=
21650 CRYPTOLIB=
21651 KRB5LIB=
21652 DESLIB=
21653 KRB4LIB=
21654
21655 if test "${with_kerberos}" != no; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21657 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21658 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21659 $as_echo_n "(cached) " >&6
21660 else
21661 ac_check_lib_save_LIBS=$LIBS
21662 LIBS="-lcom_err $LIBS"
21663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21664 /* end confdefs.h. */
21665
21666 /* Override any GCC internal prototype to avoid an error.
21667 Use char because int might match the return type of a GCC
21668 builtin and then its argument prototype would still apply. */
21669 #ifdef __cplusplus
21670 extern "C"
21671 #endif
21672 char com_err ();
21673 int
21674 main ()
21675 {
21676 return com_err ();
21677 ;
21678 return 0;
21679 }
21680 _ACEOF
21681 if ac_fn_c_try_link "$LINENO"; then :
21682 ac_cv_lib_com_err_com_err=yes
21683 else
21684 ac_cv_lib_com_err_com_err=no
21685 fi
21686 rm -f core conftest.err conftest.$ac_objext \
21687 conftest$ac_exeext conftest.$ac_ext
21688 LIBS=$ac_check_lib_save_LIBS
21689 fi
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21691 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21692 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21693 have_com_err=yes
21694 else
21695 have_com_err=no
21696 fi
21697
21698 if test $have_com_err = yes; then
21699 COM_ERRLIB=-lcom_err
21700 LIBS="$COM_ERRLIB $LIBS"
21701
21702 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21703
21704 fi
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21706 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21707 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21709 else
21710 ac_check_lib_save_LIBS=$LIBS
21711 LIBS="-lcrypto $LIBS"
21712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713 /* end confdefs.h. */
21714
21715 /* Override any GCC internal prototype to avoid an error.
21716 Use char because int might match the return type of a GCC
21717 builtin and then its argument prototype would still apply. */
21718 #ifdef __cplusplus
21719 extern "C"
21720 #endif
21721 char mit_des_cbc_encrypt ();
21722 int
21723 main ()
21724 {
21725 return mit_des_cbc_encrypt ();
21726 ;
21727 return 0;
21728 }
21729 _ACEOF
21730 if ac_fn_c_try_link "$LINENO"; then :
21731 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21732 else
21733 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21734 fi
21735 rm -f core conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
21737 LIBS=$ac_check_lib_save_LIBS
21738 fi
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21740 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21741 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
21742 have_crypto=yes
21743 else
21744 have_crypto=no
21745 fi
21746
21747 if test $have_crypto = yes; then
21748 CRYPTOLIB=-lcrypto
21749 LIBS="$CRYPTOLIB $LIBS"
21750
21751 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21752
21753 fi
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21755 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21756 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21757 $as_echo_n "(cached) " >&6
21758 else
21759 ac_check_lib_save_LIBS=$LIBS
21760 LIBS="-lk5crypto $LIBS"
21761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h. */
21763
21764 /* Override any GCC internal prototype to avoid an error.
21765 Use char because int might match the return type of a GCC
21766 builtin and then its argument prototype would still apply. */
21767 #ifdef __cplusplus
21768 extern "C"
21769 #endif
21770 char mit_des_cbc_encrypt ();
21771 int
21772 main ()
21773 {
21774 return mit_des_cbc_encrypt ();
21775 ;
21776 return 0;
21777 }
21778 _ACEOF
21779 if ac_fn_c_try_link "$LINENO"; then :
21780 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21781 else
21782 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21783 fi
21784 rm -f core conftest.err conftest.$ac_objext \
21785 conftest$ac_exeext conftest.$ac_ext
21786 LIBS=$ac_check_lib_save_LIBS
21787 fi
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21789 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21790 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
21791 have_k5crypto=yes
21792 else
21793 have_k5crypto=no
21794 fi
21795
21796 if test $have_k5crypto = yes; then
21797 CRYPTOLIB=-lk5crypto
21798 LIBS="$CRYPTOLIB $LIBS"
21799
21800 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21801
21802 fi
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21804 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21805 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21806 $as_echo_n "(cached) " >&6
21807 else
21808 ac_check_lib_save_LIBS=$LIBS
21809 LIBS="-lkrb5 $LIBS"
21810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h. */
21812
21813 /* Override any GCC internal prototype to avoid an error.
21814 Use char because int might match the return type of a GCC
21815 builtin and then its argument prototype would still apply. */
21816 #ifdef __cplusplus
21817 extern "C"
21818 #endif
21819 char krb5_init_context ();
21820 int
21821 main ()
21822 {
21823 return krb5_init_context ();
21824 ;
21825 return 0;
21826 }
21827 _ACEOF
21828 if ac_fn_c_try_link "$LINENO"; then :
21829 ac_cv_lib_krb5_krb5_init_context=yes
21830 else
21831 ac_cv_lib_krb5_krb5_init_context=no
21832 fi
21833 rm -f core conftest.err conftest.$ac_objext \
21834 conftest$ac_exeext conftest.$ac_ext
21835 LIBS=$ac_check_lib_save_LIBS
21836 fi
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21838 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21839 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
21840 have_krb5=yes
21841 else
21842 have_krb5=no
21843 fi
21844
21845 if test $have_krb5=yes; then
21846 KRB5LIB=-lkrb5
21847 LIBS="$KRB5LIB $LIBS"
21848
21849 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21850
21851 fi
21852 if test "${with_kerberos5}" = no; then
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21854 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21855 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21856 $as_echo_n "(cached) " >&6
21857 else
21858 ac_check_lib_save_LIBS=$LIBS
21859 LIBS="-ldes425 $LIBS"
21860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21861 /* end confdefs.h. */
21862
21863 /* Override any GCC internal prototype to avoid an error.
21864 Use char because int might match the return type of a GCC
21865 builtin and then its argument prototype would still apply. */
21866 #ifdef __cplusplus
21867 extern "C"
21868 #endif
21869 char des_cbc_encrypt ();
21870 int
21871 main ()
21872 {
21873 return des_cbc_encrypt ();
21874 ;
21875 return 0;
21876 }
21877 _ACEOF
21878 if ac_fn_c_try_link "$LINENO"; then :
21879 ac_cv_lib_des425_des_cbc_encrypt=yes
21880 else
21881 ac_cv_lib_des425_des_cbc_encrypt=no
21882 fi
21883 rm -f core conftest.err conftest.$ac_objext \
21884 conftest$ac_exeext conftest.$ac_ext
21885 LIBS=$ac_check_lib_save_LIBS
21886 fi
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21888 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21889 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
21890 have_des425=yes
21891 else
21892 have_des425=no
21893 fi
21894
21895 if test $have_des425 = yes; then
21896 DESLIB=-ldes425
21897 LIBS="$DESLIB $LIBS"
21898
21899 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21900
21901 else
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21903 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21904 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21905 $as_echo_n "(cached) " >&6
21906 else
21907 ac_check_lib_save_LIBS=$LIBS
21908 LIBS="-ldes $LIBS"
21909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21910 /* end confdefs.h. */
21911
21912 /* Override any GCC internal prototype to avoid an error.
21913 Use char because int might match the return type of a GCC
21914 builtin and then its argument prototype would still apply. */
21915 #ifdef __cplusplus
21916 extern "C"
21917 #endif
21918 char des_cbc_encrypt ();
21919 int
21920 main ()
21921 {
21922 return des_cbc_encrypt ();
21923 ;
21924 return 0;
21925 }
21926 _ACEOF
21927 if ac_fn_c_try_link "$LINENO"; then :
21928 ac_cv_lib_des_des_cbc_encrypt=yes
21929 else
21930 ac_cv_lib_des_des_cbc_encrypt=no
21931 fi
21932 rm -f core conftest.err conftest.$ac_objext \
21933 conftest$ac_exeext conftest.$ac_ext
21934 LIBS=$ac_check_lib_save_LIBS
21935 fi
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21937 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21938 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
21939 have_des=yes
21940 else
21941 have_des=no
21942 fi
21943
21944 if test $have_des = yes; then
21945 DESLIB=-ldes
21946 LIBS="$DESLIB $LIBS"
21947
21948 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21949
21950 fi
21951 fi
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21953 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21954 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21955 $as_echo_n "(cached) " >&6
21956 else
21957 ac_check_lib_save_LIBS=$LIBS
21958 LIBS="-lkrb4 $LIBS"
21959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21960 /* end confdefs.h. */
21961
21962 /* Override any GCC internal prototype to avoid an error.
21963 Use char because int might match the return type of a GCC
21964 builtin and then its argument prototype would still apply. */
21965 #ifdef __cplusplus
21966 extern "C"
21967 #endif
21968 char krb_get_cred ();
21969 int
21970 main ()
21971 {
21972 return krb_get_cred ();
21973 ;
21974 return 0;
21975 }
21976 _ACEOF
21977 if ac_fn_c_try_link "$LINENO"; then :
21978 ac_cv_lib_krb4_krb_get_cred=yes
21979 else
21980 ac_cv_lib_krb4_krb_get_cred=no
21981 fi
21982 rm -f core conftest.err conftest.$ac_objext \
21983 conftest$ac_exeext conftest.$ac_ext
21984 LIBS=$ac_check_lib_save_LIBS
21985 fi
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21987 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21988 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
21989 have_krb4=yes
21990 else
21991 have_krb4=no
21992 fi
21993
21994 if test $have_krb4 = yes; then
21995 KRB4LIB=-lkrb4
21996 LIBS="$KRB4LIB $LIBS"
21997
21998 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
21999
22000 else
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22002 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22003 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22005 else
22006 ac_check_lib_save_LIBS=$LIBS
22007 LIBS="-lkrb $LIBS"
22008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22009 /* end confdefs.h. */
22010
22011 /* Override any GCC internal prototype to avoid an error.
22012 Use char because int might match the return type of a GCC
22013 builtin and then its argument prototype would still apply. */
22014 #ifdef __cplusplus
22015 extern "C"
22016 #endif
22017 char krb_get_cred ();
22018 int
22019 main ()
22020 {
22021 return krb_get_cred ();
22022 ;
22023 return 0;
22024 }
22025 _ACEOF
22026 if ac_fn_c_try_link "$LINENO"; then :
22027 ac_cv_lib_krb_krb_get_cred=yes
22028 else
22029 ac_cv_lib_krb_krb_get_cred=no
22030 fi
22031 rm -f core conftest.err conftest.$ac_objext \
22032 conftest$ac_exeext conftest.$ac_ext
22033 LIBS=$ac_check_lib_save_LIBS
22034 fi
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
22036 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22037 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
22038 have_krb=yes
22039 else
22040 have_krb=no
22041 fi
22042
22043 if test $have_krb = yes; then
22044 KRB4LIB=-lkrb
22045 LIBS="$KRB4LIB $LIBS"
22046
22047 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
22048
22049 fi
22050 fi
22051 fi
22052
22053 if test "${with_kerberos5}" != no; then
22054 for ac_header in krb5.h
22055 do :
22056 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22057 if test "x$ac_cv_header_krb5_h" = x""yes; then :
22058 cat >>confdefs.h <<_ACEOF
22059 #define HAVE_KRB5_H 1
22060 _ACEOF
22061 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
22062 "
22063 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
22064
22065 cat >>confdefs.h <<_ACEOF
22066 #define HAVE_KRB5_ERROR_TEXT 1
22067 _ACEOF
22068
22069
22070 fi
22071 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
22072 "
22073 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
22074
22075 cat >>confdefs.h <<_ACEOF
22076 #define HAVE_KRB5_ERROR_E_TEXT 1
22077 _ACEOF
22078
22079
22080 fi
22081
22082 fi
22083
22084 done
22085
22086 else
22087 for ac_header in des.h
22088 do :
22089 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
22090 if test "x$ac_cv_header_des_h" = x""yes; then :
22091 cat >>confdefs.h <<_ACEOF
22092 #define HAVE_DES_H 1
22093 _ACEOF
22094
22095 else
22096 for ac_header in kerberosIV/des.h
22097 do :
22098 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
22099 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
22100 cat >>confdefs.h <<_ACEOF
22101 #define HAVE_KERBEROSIV_DES_H 1
22102 _ACEOF
22103
22104 else
22105 for ac_header in kerberos/des.h
22106 do :
22107 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
22108 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
22109 cat >>confdefs.h <<_ACEOF
22110 #define HAVE_KERBEROS_DES_H 1
22111 _ACEOF
22112
22113 fi
22114
22115 done
22116
22117 fi
22118
22119 done
22120
22121 fi
22122
22123 done
22124
22125 for ac_header in krb.h
22126 do :
22127 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22128 if test "x$ac_cv_header_krb_h" = x""yes; then :
22129 cat >>confdefs.h <<_ACEOF
22130 #define HAVE_KRB_H 1
22131 _ACEOF
22132
22133 else
22134 for ac_header in kerberosIV/krb.h
22135 do :
22136 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22137 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
22138 cat >>confdefs.h <<_ACEOF
22139 #define HAVE_KERBEROSIV_KRB_H 1
22140 _ACEOF
22141
22142 else
22143 for ac_header in kerberos/krb.h
22144 do :
22145 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22146 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
22147 cat >>confdefs.h <<_ACEOF
22148 #define HAVE_KERBEROS_KRB_H 1
22149 _ACEOF
22150
22151 fi
22152
22153 done
22154
22155 fi
22156
22157 done
22158
22159 fi
22160
22161 done
22162
22163 fi
22164 for ac_header in com_err.h
22165 do :
22166 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22167 if test "x$ac_cv_header_com_err_h" = x""yes; then :
22168 cat >>confdefs.h <<_ACEOF
22169 #define HAVE_COM_ERR_H 1
22170 _ACEOF
22171
22172 fi
22173
22174 done
22175
22176 fi
22177
22178
22179
22180
22181
22182
22183
22184
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22186 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22187 if test "${emacs_cv_localtime_cache+set}" = set; then :
22188 $as_echo_n "(cached) " >&6
22189 else
22190 if test x$ac_cv_func_tzset = xyes; then
22191 if test "$cross_compiling" = yes; then :
22192 # If we have tzset, assume the worst when cross-compiling.
22193 emacs_cv_localtime_cache=yes
22194 else
22195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22196 /* end confdefs.h. */
22197 #include <time.h>
22198 char TZ_GMT0[] = "TZ=GMT0";
22199 char TZ_PST8[] = "TZ=PST8";
22200 main()
22201 {
22202 time_t now = time ((time_t *) 0);
22203 int hour_GMT0, hour_unset;
22204 if (putenv (TZ_GMT0) != 0)
22205 exit (1);
22206 hour_GMT0 = localtime (&now)->tm_hour;
22207 unsetenv("TZ");
22208 hour_unset = localtime (&now)->tm_hour;
22209 if (putenv (TZ_PST8) != 0)
22210 exit (1);
22211 if (localtime (&now)->tm_hour == hour_GMT0)
22212 exit (1);
22213 unsetenv("TZ");
22214 if (localtime (&now)->tm_hour != hour_unset)
22215 exit (1);
22216 exit (0);
22217 }
22218 _ACEOF
22219 if ac_fn_c_try_run "$LINENO"; then :
22220 emacs_cv_localtime_cache=no
22221 else
22222 emacs_cv_localtime_cache=yes
22223 fi
22224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22225 conftest.$ac_objext conftest.beam conftest.$ac_ext
22226 fi
22227
22228 else
22229 # If we lack tzset, report that localtime does not cache TZ,
22230 # since we can't invalidate the cache if we don't have tzset.
22231 emacs_cv_localtime_cache=no
22232 fi
22233 fi
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22235 $as_echo "$emacs_cv_localtime_cache" >&6; }
22236 if test $emacs_cv_localtime_cache = yes; then
22237
22238 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22239
22240 fi
22241
22242 ok_so_far=yes
22243 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22244 if test "x$ac_cv_func_socket" = x""yes; then :
22245
22246 else
22247 ok_so_far=no
22248 fi
22249
22250 if test $ok_so_far = yes; then
22251 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22252 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
22253
22254 else
22255 ok_so_far=no
22256 fi
22257
22258
22259 fi
22260 if test $ok_so_far = yes; then
22261 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22262 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
22263
22264 else
22265 ok_so_far=no
22266 fi
22267
22268
22269 fi
22270 if test $ok_so_far = yes; then
22271
22272 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
22273
22274 fi
22275
22276 if test -f /usr/lpp/X11/bin/smt.exp; then
22277
22278 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
22279
22280 fi
22281
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
22283 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
22284 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22286 $as_echo "yes" >&6; }
22287
22288 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
22289
22290 else
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22292 $as_echo "no" >&6; }
22293 fi
22294
22295 for ac_header in vfork.h
22296 do :
22297 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22298 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22299 cat >>confdefs.h <<_ACEOF
22300 #define HAVE_VFORK_H 1
22301 _ACEOF
22302
22303 fi
22304
22305 done
22306
22307 for ac_func in fork vfork
22308 do :
22309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22310 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22311 eval as_val=\$$as_ac_var
22312 if test "x$as_val" = x""yes; then :
22313 cat >>confdefs.h <<_ACEOF
22314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22315 _ACEOF
22316
22317 fi
22318 done
22319
22320 if test "x$ac_cv_func_fork" = xyes; then
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22322 $as_echo_n "checking for working fork... " >&6; }
22323 if test "${ac_cv_func_fork_works+set}" = set; then :
22324 $as_echo_n "(cached) " >&6
22325 else
22326 if test "$cross_compiling" = yes; then :
22327 ac_cv_func_fork_works=cross
22328 else
22329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h. */
22331 $ac_includes_default
22332 int
22333 main ()
22334 {
22335
22336 /* By Ruediger Kuhlmann. */
22337 return fork () < 0;
22338
22339 ;
22340 return 0;
22341 }
22342 _ACEOF
22343 if ac_fn_c_try_run "$LINENO"; then :
22344 ac_cv_func_fork_works=yes
22345 else
22346 ac_cv_func_fork_works=no
22347 fi
22348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22349 conftest.$ac_objext conftest.beam conftest.$ac_ext
22350 fi
22351
22352 fi
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22354 $as_echo "$ac_cv_func_fork_works" >&6; }
22355
22356 else
22357 ac_cv_func_fork_works=$ac_cv_func_fork
22358 fi
22359 if test "x$ac_cv_func_fork_works" = xcross; then
22360 case $host in
22361 *-*-amigaos* | *-*-msdosdjgpp*)
22362 # Override, as these systems have only a dummy fork() stub
22363 ac_cv_func_fork_works=no
22364 ;;
22365 *)
22366 ac_cv_func_fork_works=yes
22367 ;;
22368 esac
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22370 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22371 fi
22372 ac_cv_func_vfork_works=$ac_cv_func_vfork
22373 if test "x$ac_cv_func_vfork" = xyes; then
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22375 $as_echo_n "checking for working vfork... " >&6; }
22376 if test "${ac_cv_func_vfork_works+set}" = set; then :
22377 $as_echo_n "(cached) " >&6
22378 else
22379 if test "$cross_compiling" = yes; then :
22380 ac_cv_func_vfork_works=cross
22381 else
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22384 /* Thanks to Paul Eggert for this test. */
22385 $ac_includes_default
22386 #include <sys/wait.h>
22387 #ifdef HAVE_VFORK_H
22388 # include <vfork.h>
22389 #endif
22390 /* On some sparc systems, changes by the child to local and incoming
22391 argument registers are propagated back to the parent. The compiler
22392 is told about this with #include <vfork.h>, but some compilers
22393 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22394 static variable whose address is put into a register that is
22395 clobbered by the vfork. */
22396 static void
22397 #ifdef __cplusplus
22398 sparc_address_test (int arg)
22399 # else
22400 sparc_address_test (arg) int arg;
22401 #endif
22402 {
22403 static pid_t child;
22404 if (!child) {
22405 child = vfork ();
22406 if (child < 0) {
22407 perror ("vfork");
22408 _exit(2);
22409 }
22410 if (!child) {
22411 arg = getpid();
22412 write(-1, "", 0);
22413 _exit (arg);
22414 }
22415 }
22416 }
22417
22418 int
22419 main ()
22420 {
22421 pid_t parent = getpid ();
22422 pid_t child;
22423
22424 sparc_address_test (0);
22425
22426 child = vfork ();
22427
22428 if (child == 0) {
22429 /* Here is another test for sparc vfork register problems. This
22430 test uses lots of local variables, at least as many local
22431 variables as main has allocated so far including compiler
22432 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22433 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22434 reuse the register of parent for one of the local variables,
22435 since it will think that parent can't possibly be used any more
22436 in this routine. Assigning to the local variable will thus
22437 munge parent in the parent process. */
22438 pid_t
22439 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22440 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22441 /* Convince the compiler that p..p7 are live; otherwise, it might
22442 use the same hardware register for all 8 local variables. */
22443 if (p != p1 || p != p2 || p != p3 || p != p4
22444 || p != p5 || p != p6 || p != p7)
22445 _exit(1);
22446
22447 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22448 from child file descriptors. If the child closes a descriptor
22449 before it execs or exits, this munges the parent's descriptor
22450 as well. Test for this by closing stdout in the child. */
22451 _exit(close(fileno(stdout)) != 0);
22452 } else {
22453 int status;
22454 struct stat st;
22455
22456 while (wait(&status) != child)
22457 ;
22458 return (
22459 /* Was there some problem with vforking? */
22460 child < 0
22461
22462 /* Did the child fail? (This shouldn't happen.) */
22463 || status
22464
22465 /* Did the vfork/compiler bug occur? */
22466 || parent != getpid()
22467
22468 /* Did the file descriptor bug occur? */
22469 || fstat(fileno(stdout), &st) != 0
22470 );
22471 }
22472 }
22473 _ACEOF
22474 if ac_fn_c_try_run "$LINENO"; then :
22475 ac_cv_func_vfork_works=yes
22476 else
22477 ac_cv_func_vfork_works=no
22478 fi
22479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22480 conftest.$ac_objext conftest.beam conftest.$ac_ext
22481 fi
22482
22483 fi
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22485 $as_echo "$ac_cv_func_vfork_works" >&6; }
22486
22487 fi;
22488 if test "x$ac_cv_func_fork_works" = xcross; then
22489 ac_cv_func_vfork_works=$ac_cv_func_vfork
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22491 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22492 fi
22493
22494 if test "x$ac_cv_func_vfork_works" = xyes; then
22495
22496 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22497
22498 else
22499
22500 $as_echo "#define vfork fork" >>confdefs.h
22501
22502 fi
22503 if test "x$ac_cv_func_fork_works" = xyes; then
22504
22505 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22506
22507 fi
22508
22509
22510 for ac_func in snprintf
22511 do :
22512 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22513 if test "x$ac_cv_func_snprintf" = x""yes; then :
22514 cat >>confdefs.h <<_ACEOF
22515 #define HAVE_SNPRINTF 1
22516 _ACEOF
22517
22518 fi
22519 done
22520
22521
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22523 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22524 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22528 /* end confdefs.h. */
22529 #include <langinfo.h>
22530 int
22531 main ()
22532 {
22533 char* cs = nl_langinfo(CODESET);
22534 ;
22535 return 0;
22536 }
22537 _ACEOF
22538 if ac_fn_c_try_link "$LINENO"; then :
22539 emacs_cv_langinfo_codeset=yes
22540 else
22541 emacs_cv_langinfo_codeset=no
22542 fi
22543 rm -f core conftest.err conftest.$ac_objext \
22544 conftest$ac_exeext conftest.$ac_ext
22545
22546 fi
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22548 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22549 if test $emacs_cv_langinfo_codeset = yes; then
22550
22551 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22552
22553 fi
22554
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22556 $as_echo_n "checking for mbstate_t... " >&6; }
22557 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22558 $as_echo_n "(cached) " >&6
22559 else
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22562 $ac_includes_default
22563 # include <wchar.h>
22564 int
22565 main ()
22566 {
22567 mbstate_t x; return sizeof x;
22568 ;
22569 return 0;
22570 }
22571 _ACEOF
22572 if ac_fn_c_try_compile "$LINENO"; then :
22573 ac_cv_type_mbstate_t=yes
22574 else
22575 ac_cv_type_mbstate_t=no
22576 fi
22577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578 fi
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22580 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22581 if test $ac_cv_type_mbstate_t = yes; then
22582
22583 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22584
22585 else
22586
22587 $as_echo "#define mbstate_t int" >>confdefs.h
22588
22589 fi
22590
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22592 $as_echo_n "checking for C restricted array declarations... " >&6; }
22593 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22594 $as_echo_n "(cached) " >&6
22595 else
22596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22597 /* end confdefs.h. */
22598 void fred (int x[__restrict]);
22599 int
22600 main ()
22601 {
22602
22603 ;
22604 return 0;
22605 }
22606 _ACEOF
22607 if ac_fn_c_try_compile "$LINENO"; then :
22608 emacs_cv_c_restrict_arr=yes
22609 else
22610 emacs_cv_c_restrict_arr=no
22611 fi
22612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 fi
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22615 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22616 if test "$emacs_cv_c_restrict_arr" = yes; then
22617
22618 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22619
22620 fi
22621
22622
22623
22624 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
22625
22626
22627 ## Note: PTYs are broken on darwin <6. Use at your own risk.
22628
22629 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
22630
22631
22632
22633 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
22634
22635
22636
22637
22638
22639 case $opsys in
22640 aix4-2)
22641 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
22642 $as_echo "#define NO_EDITRES 1" >>confdefs.h
22643
22644 fi
22645 ;;
22646
22647 hpux*)
22648 $as_echo "#define NO_EDITRES 1" >>confdefs.h
22649
22650 ;;
22651 esac
22652
22653
22654 case $opsys in
22655 darwin | gnu | hpux* | *bsd )
22656
22657 $as_echo "#define NO_TERMIO 1" >>confdefs.h
22658
22659 ;;
22660
22661 irix6-5 | sol2* | unixware )
22662
22663 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
22664
22665 ;;
22666 esac
22667
22668
22669 case $opsys in
22670 hpux* | irix6-5 | openbsd | sol2* | unixware )
22671
22672 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
22673
22674 ;;
22675
22676 aix4-2)
22677
22678 $as_echo "#define BROKEN_FIONREAD 1" >>confdefs.h
22679
22680
22681 $as_echo "#define BROKEN_SIGAIO 1" >>confdefs.h
22682
22683
22684 $as_echo "#define BROKEN_SIGPOLL 1" >>confdefs.h
22685
22686
22687 $as_echo "#define BROKEN_SIGPTY 1" >>confdefs.h
22688
22689
22690
22691 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
22692
22693 ;;
22694
22695 freebsd)
22696
22697 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
22698
22699 ;;
22700
22701 darwin)
22702
22703 $as_echo "#define NO_ABORT 1" >>confdefs.h
22704
22705 ;;
22706 esac
22707
22708 case $opsys in
22709 gnu-* | sol2-10 )
22710
22711 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
22712
22713 ;;
22714 esac
22715
22716 case $opsys in
22717 darwin | freebsd | netbsd | openbsd )
22718
22719 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
22720
22721 ;;
22722 esac
22723
22724 case $opsys in
22725 netbsd | openbsd) sound_device="/dev/audio" ;;
22726 *) sound_device="/dev/dsp" ;;
22727 esac
22728
22729
22730 cat >>confdefs.h <<_ACEOF
22731 #define DEFAULT_SOUND_DEVICE "$sound_device"
22732 _ACEOF
22733
22734
22735
22736 case $opsys in
22737 darwin | gnu-linux | gnu-kfreebsd )
22738
22739 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
22740
22741 ;;
22742 esac
22743
22744
22745 case $opsys in
22746 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
22747
22748 $as_echo "#define NARROWPROTO 1" >>confdefs.h
22749
22750 ;;
22751 esac
22752
22753
22754
22755
22756
22757
22758
22759
22760 case $opsys in
22761 aix4-2 )
22762 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++) " >>confdefs.h
22763
22764 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\"); " >>confdefs.h
22765
22766 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd)); " >>confdefs.h
22767
22768 ;;
22769
22770 cygwin )
22771 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++) " >>confdefs.h
22772
22773 $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
22774
22775 $as_echo "#define PTY_NAME_SPRINTF " >>confdefs.h
22776
22777 $as_echo "#define PTY_TTY_NAME_SPRINTF " >>confdefs.h
22778
22779 ;;
22780
22781 darwin )
22782 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++) " >>confdefs.h
22783
22784 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
22785
22786 $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
22787
22788 $as_echo "#define PTY_NAME_SPRINTF " >>confdefs.h
22789
22790 $as_echo "#define PTY_TTY_NAME_SPRINTF " >>confdefs.h
22791
22792 ;;
22793
22794 gnu | freebsd | netbsd | openbsd )
22795 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
22796
22797 ;;
22798
22799 gnu-linux | gnu-kfreebsd )
22800 if test "x$ac_cv_func_grantpt" = xyes; then
22801
22802 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
22803
22804 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++) " >>confdefs.h
22805
22806 $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
22807
22808 if test "x$ac_cv_func_getpt" = xyes; then
22809 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
22810
22811 $as_echo "#define PTY_NAME_SPRINTF " >>confdefs.h
22812
22813 else
22814 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\"); " >>confdefs.h
22815
22816 fi
22817 else
22818 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
22819
22820 fi
22821 ;;
22822
22823 hpux*)
22824 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
22825
22826 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i); " >>confdefs.h
22827
22828 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i); " >>confdefs.h
22829
22830 ;;
22831
22832 irix6-5 )
22833 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
22834
22835 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
22836
22837 $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
22838
22839 $as_echo "#define PTY_NAME_SPRINTF " >>confdefs.h
22840
22841 $as_echo "#define PTY_TTY_NAME_SPRINTF " >>confdefs.h
22842
22843 ;;
22844
22845 sol2* )
22846 $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
22847
22848 ;;
22849
22850 unixware )
22851 $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
22852
22853 ;;
22854 esac
22855
22856
22857 case $opsys in
22858 sol2* | unixware )
22859 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
22860
22861 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\"); " >>confdefs.h
22862
22863
22864 $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
22865
22866 ;;
22867 esac
22868
22869
22870
22871
22872 case $opsys in
22873 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
22874 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
22875
22876 ;;
22877
22878 gnu-linux | gnu-kfreebsd )
22879
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
22881 $as_echo_n "checking for signals via characters... " >&6; }
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22884
22885 #include <linux/version.h>
22886 #if LINUX_VERSION_CODE < 0x20400
22887 # error "Linux version too old"
22888 #endif
22889
22890 int
22891 main ()
22892 {
22893
22894 ;
22895 return 0;
22896 }
22897 _ACEOF
22898 if ac_fn_c_try_cpp "$LINENO"; then :
22899 emacs_signals_via_chars=yes
22900 else
22901 emacs_signals_via_chars=no
22902 fi
22903 rm -f conftest.err conftest.$ac_ext
22904
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
22906 $as_echo "$emacs_signals_via_chars" >&6; }
22907 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
22908
22909 ;;
22910 esac
22911
22912
22913
22914
22915
22916
22917 case $opsys in
22918 cygwin | darwin | freebsd | netbsd | openbsd )
22919 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
22920
22921 ;;
22922
22923 unixware)
22924 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
22925
22926 ;;
22927
22928 gnu | gnu-linux | gnu-kfreebsd )
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
22930 $as_echo_n "checking for style of pending output formalism... " >&6; }
22931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22932 /* end confdefs.h. */
22933
22934 #include <stdio.h>
22935 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
22936 # error "stdio definitions not found"
22937 #endif
22938
22939 int
22940 main ()
22941 {
22942
22943 ;
22944 return 0;
22945 }
22946 _ACEOF
22947 if ac_fn_c_try_cpp "$LINENO"; then :
22948 emacs_pending_output=new
22949 else
22950 emacs_pending_output=unknown
22951 fi
22952 rm -f conftest.err conftest.$ac_ext
22953
22954 if test $emacs_pending_output = unknown; then
22955 case $opsys in
22956 gnu-linux | gnu-kfreebsd)
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22959
22960 #include <stdio.h>
22961 #ifndef __UCLIBC__
22962 # error "not using uclibc"
22963 #endif
22964
22965 int
22966 main ()
22967 {
22968
22969 ;
22970 return 0;
22971 }
22972 _ACEOF
22973 if ac_fn_c_try_cpp "$LINENO"; then :
22974 emacs_pending_output=uclibc
22975 else
22976 emacs_pending_output=old
22977 fi
22978 rm -f conftest.err conftest.$ac_ext
22979 ;;
22980 esac
22981 fi
22982
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
22984 $as_echo "$emacs_pending_output" >&6; }
22985
22986 case $emacs_pending_output in
22987 new)
22988 $as_echo "#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
22989
22990 ;;
22991 uclibc)
22992 $as_echo "#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
22993
22994 ;;
22995 old)
22996 $as_echo "#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
22997
22998 ;;
22999 esac
23000 ;;
23001 esac
23002
23003
23004
23005
23006
23007 case $opsys in
23008 gnu)
23009 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
23010
23011 ;;
23012
23013 hpux*)
23014 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
23015
23016 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
23017
23018 ;;
23019 irix6-5)
23020 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
23021
23022 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
23023
23024 ;;
23025 esac
23026
23027
23028
23029
23030
23031 case $opsys in
23032 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
23033 ;;
23034
23035 gnu | freebsd | netbsd | openbsd )
23036
23037 $as_echo "#define TABDLY OXTABS" >>confdefs.h
23038
23039 $as_echo "#define TAB3 OXTABS" >>confdefs.h
23040
23041 ;;
23042
23043 gnu-linux | gnu-kfreebsd )
23044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23045 /* end confdefs.h. */
23046
23047 #ifndef __i386__
23048 # error "not i386"
23049 #endif
23050
23051 int
23052 main ()
23053 {
23054
23055 ;
23056 return 0;
23057 }
23058 _ACEOF
23059 if ac_fn_c_try_cpp "$LINENO"; then :
23060 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
23061
23062 fi
23063 rm -f conftest.err conftest.$ac_ext
23064
23065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23066 /* end confdefs.h. */
23067
23068 #ifndef __ia64__
23069 # error "not ia64"
23070 #endif
23071
23072 int
23073 main ()
23074 {
23075
23076 ;
23077 return 0;
23078 }
23079 _ACEOF
23080 if ac_fn_c_try_cpp "$LINENO"; then :
23081
23082 $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
23083
23084 fi
23085 rm -f conftest.err conftest.$ac_ext
23086 ;;
23087
23088 hpux*)
23089
23090 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
23091
23092 ;;
23093
23094 irix6-5)
23095 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
23096
23097 ;;
23098 esac
23099
23100
23101
23102
23103
23104
23105
23106 case $opsys in
23107 aix4-2 | hpux* | unixware)
23108 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
23109
23110 ;;
23111
23112 gnu-linux | gnu-kfreebsd )
23113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114 /* end confdefs.h. */
23115
23116 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
23117 || defined __alpha__ || defined __mips__ || defined __s390__ \
23118 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
23119 || defined __ia64__ || defined __sh__
23120 /* ok */
23121 #else
23122 # error "setjmp not known to work on this arch"
23123 #endif
23124
23125 int
23126 main ()
23127 {
23128
23129 ;
23130 return 0;
23131 }
23132 _ACEOF
23133 if ac_fn_c_try_cpp "$LINENO"; then :
23134 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
23135
23136 else
23137 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
23138
23139 fi
23140 rm -f conftest.err conftest.$ac_ext
23141 ;;
23142 esac
23143
23144
23145 if test x$GCC = xyes; then
23146 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
23147
23148 else
23149 case $opsys in
23150 freebsd | netbsd | openbsd | irix6-5 | sol2* )
23151 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
23152
23153 ;;
23154 esac
23155 fi
23156
23157 case $opsys in
23158 hpux* | sol2* )
23159
23160 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
23161
23162 ;;
23163 esac
23164
23165
23166
23167
23168
23169
23170
23171 case $opsys in
23172 aix4-2)
23173 $as_echo "#define USG /**/" >>confdefs.h
23174
23175 $as_echo "#define USG5 /**/" >>confdefs.h
23176
23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 /* end confdefs.h. */
23179
23180 #ifndef _AIX
23181 # error "_AIX not defined"
23182 #endif
23183
23184 int
23185 main ()
23186 {
23187
23188 ;
23189 return 0;
23190 }
23191 _ACEOF
23192 if ac_fn_c_try_cpp "$LINENO"; then :
23193
23194 else
23195
23196 $as_echo "#define _AIX /**/" >>confdefs.h
23197
23198 fi
23199 rm -f conftest.err conftest.$ac_ext
23200 ;;
23201
23202 cygwin)
23203 opsysfile=
23204
23205 $as_echo "#define CYGWIN 1" >>confdefs.h
23206
23207 ;;
23208
23209 darwin)
23210 $as_echo "#define BSD4_2 /**/" >>confdefs.h
23211
23212 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
23213
23214
23215 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
23216
23217 ;;
23218
23219 freebsd)
23220 $as_echo "#define BSD4_2 /**/" >>confdefs.h
23221
23222
23223 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
23224
23225 ;;
23226
23227 gnu | netbsd | openbsd )
23228 $as_echo "#define BSD4_2 /**/" >>confdefs.h
23229
23230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23231 /* end confdefs.h. */
23232
23233 #ifndef BSD_SYSTEM
23234 # error "BSD_SYSTEM not defined"
23235 #endif
23236
23237 int
23238 main ()
23239 {
23240
23241 ;
23242 return 0;
23243 }
23244 _ACEOF
23245 if ac_fn_c_try_cpp "$LINENO"; then :
23246
23247 else
23248 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
23249
23250 fi
23251 rm -f conftest.err conftest.$ac_ext
23252 ;;
23253
23254 gnu-linux | gnu-kfreebsd )
23255 $as_echo "#define USG /**/" >>confdefs.h
23256
23257
23258 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
23259
23260 ;;
23261
23262 hpux*)
23263 $as_echo "#define USG /**/" >>confdefs.h
23264
23265 $as_echo "#define USG5 /**/" >>confdefs.h
23266
23267
23268 $as_echo "#define HPUX /**/" >>confdefs.h
23269
23270 ;;
23271
23272 irix6-5)
23273 $as_echo "#define USG /**/" >>confdefs.h
23274
23275 $as_echo "#define USG5 /**/" >>confdefs.h
23276
23277
23278 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
23279
23280 ;;
23281
23282 sol2*)
23283 $as_echo "#define USG /**/" >>confdefs.h
23284
23285 $as_echo "#define USG5 /**/" >>confdefs.h
23286
23287
23288 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
23289
23290 ;;
23291
23292 unixware)
23293 $as_echo "#define USG /**/" >>confdefs.h
23294
23295 $as_echo "#define USG5 /**/" >>confdefs.h
23296
23297 ;;
23298 esac
23299
23300
23301 case $opsys in
23302 cygwin)
23303
23304 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
23305
23306 ;;
23307
23308 gnu) opsysfile= ;;
23309
23310 gnu-kfreebsd) opsysfile="s/gnu-linux.h" ;;
23311
23312 hpux11)
23313
23314 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
23315
23316
23317 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
23318
23319
23320 opsysfile="s/hpux10-20.h"
23321 ;;
23322
23323 irix6-5)
23324
23325 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
23326
23327
23328 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
23329
23330 ;;
23331
23332 openbsd) opsysfile="s/netbsd.h" ;;
23333
23334 sol2-10)
23335
23336 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
23337
23338 opsysfile="s/sol2-6.h"
23339 ;;
23340 esac
23341
23342 # Set up the CFLAGS for real compilation, so we can substitute it.
23343 CFLAGS="$REAL_CFLAGS"
23344 CPPFLAGS="$REAL_CPPFLAGS"
23345
23346 ## Hack to detect a buggy GCC version.
23347 if test "x$GCC" = xyes \
23348 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
23349 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
23350 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
23351 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
23352 fi
23353
23354 version=$PACKAGE_VERSION
23355
23356 ### Specify what sort of things we'll be editing into Makefile and config.h.
23357 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23358
23359
23360 ## Unused?
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
23384 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
23385 ## end of LIBX_BASE, but nothing ever set it.
23386
23387
23388
23389
23390 ## Used in lwlib/Makefile.in.
23391
23392 if test -n "${opsysfile}"; then
23393 S_FILE="\$(srcdir)/${opsysfile}"
23394 else
23395 S_FILE=
23396 fi
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406 cat >>confdefs.h <<_ACEOF
23407 #define EMACS_CONFIGURATION "${canonical}"
23408 _ACEOF
23409
23410
23411 cat >>confdefs.h <<_ACEOF
23412 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23413 _ACEOF
23414
23415 if test -n "$opsysfile"; then
23416
23417 cat >>confdefs.h <<_ACEOF
23418 #define config_opsysfile "${opsysfile}"
23419 _ACEOF
23420
23421 fi
23422
23423 XMENU_OBJ=
23424 XOBJ=
23425 FONT_OBJ=
23426 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23427
23428 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
23429
23430 XMENU_OBJ=xmenu.o
23431 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
23432 FONT_OBJ=xfont.o
23433 if test "$HAVE_XFT" = "yes"; then
23434 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
23435 elif test "$HAVE_FREETYPE" = "yes"; then
23436 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
23437 fi
23438
23439 fi
23440
23441
23442
23443
23444 WIDGET_OBJ=
23445 MOTIF_LIBW=
23446 if test "${USE_X_TOOLKIT}" != "none" ; then
23447 WIDGET_OBJ=widget.o
23448
23449 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
23450
23451 if test "${USE_X_TOOLKIT}" = "LUCID"; then
23452
23453 $as_echo "#define USE_LUCID 1" >>confdefs.h
23454
23455 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
23456
23457 $as_echo "#define USE_MOTIF 1" >>confdefs.h
23458
23459 MOTIF_LIBW=-lXm
23460 case "$opsys" in
23461 gnu-linux)
23462 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
23463 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
23464 ;;
23465
23466 unixware)
23467 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
23468 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
23469 MOTIF_LIBW="MOTIF_LIBW -lXimp"
23470 ;;
23471
23472 aix4-2)
23473 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
23474 MOTIF_LIBW="$MOTIF_LIBW -li18n"
23475 ;;
23476 esac
23477 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
23478 fi
23479 fi
23480
23481
23482 TOOLKIT_LIBW=
23483 case "$USE_X_TOOLKIT" in
23484 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
23485 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
23486 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
23487 esac
23488
23489
23490 if test "$USE_X_TOOLKIT" = "none"; then
23491 LIBXT_OTHER="\$(LIBXSM)"
23492 OLDXMENU_TARGET="really-oldXMenu"
23493 else
23494 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
23495 OLDXMENU_TARGET="really-lwlib"
23496 fi
23497
23498
23499 ## The X Menu stuff is present in the X10 distribution, but missing
23500 ## from X11. If we have X10, just use the installed library;
23501 ## otherwise, use our own copy.
23502 if test "${HAVE_X11}" = "yes" ; then
23503
23504 $as_echo "#define HAVE_X11 1" >>confdefs.h
23505
23506
23507 if test "$USE_X_TOOLKIT" = "none"; then
23508 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
23509 else
23510 OLDXMENU="\${lwlibdir}/liblw.a"
23511 fi
23512 LIBXMENU="\$(OLDXMENU)"
23513 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
23514 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
23515 else
23516 ## For a syntactically valid Makefile; not actually used for anything.
23517 ## See comments in src/Makefile.in.
23518 OLDXMENU=nothing
23519 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
23520 if test "${HAVE_X_WINDOWS}" = "yes"; then
23521 LIBXMENU="-lXMenu"
23522 else
23523 LIBXMENU=
23524 fi
23525 LIBX_OTHER=
23526 OLDXMENU_DEPS=
23527 fi
23528
23529 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
23530 OLDXMENU_TARGET=
23531 OLDXMENU=nothing
23532 LIBXMENU=
23533 OLDXMENU_DEPS=
23534 fi
23535
23536
23537
23538
23539
23540
23541
23542 if test "${HAVE_MENUS}" = "yes" ; then
23543
23544 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
23545
23546 fi
23547
23548 if test "${GNU_MALLOC}" = "yes" ; then
23549
23550 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
23551
23552 fi
23553
23554 RALLOC_OBJ=
23555 if test "${REL_ALLOC}" = "yes" ; then
23556
23557 $as_echo "#define REL_ALLOC 1" >>confdefs.h
23558
23559
23560 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
23561 fi
23562
23563
23564 if test "$opsys" = "cygwin"; then
23565 CYGWIN_OBJ="sheap.o"
23566 ## Cygwin differs because of its unexec().
23567 PRE_ALLOC_OBJ=
23568 POST_ALLOC_OBJ=lastfile.o
23569 else
23570 CYGWIN_OBJ=
23571 PRE_ALLOC_OBJ=lastfile.o
23572 POST_ALLOC_OBJ=
23573 fi
23574
23575
23576
23577
23578 case "$opsys" in
23579 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
23580
23581 darwin)
23582 ## The -headerpad option tells ld (see man page) to leave room at the
23583 ## end of the header for adding load commands. Needed for dumping.
23584 ## 0x690 is the total size of 30 segment load commands (at 56
23585 ## each); under Cocoa 31 commands are required.
23586 if test "$HAVE_NS" = "yes"; then
23587 libs_nsgui="-framework AppKit"
23588 headerpad_extra=6C8
23589 else
23590 libs_nsgui=
23591 headerpad_extra=690
23592 fi
23593 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23594
23595 ## This is here because src/Makefile.in did some extra fiddling around
23596 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23597 ## #ifndef LD_SWITCH_SYSTEM
23598 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23599 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23600 ## not using gcc, darwin.
23601 ## Because this was done in src/Makefile.in, the resulting part of
23602 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23603 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23604 ## rather than LD_SWITCH_SYSTEM.
23605 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
23606 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
23607 ;;
23608
23609 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
23610 ## find X at run-time.
23611 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
23612 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
23613 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
23614 ## had different values in configure (in ac_link) and src/Makefile.in.
23615 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
23616 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
23617
23618 *) LD_SWITCH_SYSTEM_TEMACS= ;;
23619 esac
23620
23621 if test "$NS_IMPL_GNUSTEP" = "yes"; then
23622 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
23623 fi
23624
23625
23626
23627
23628 LD_FIRSTFLAG=
23629 ORDINARY_LINK=
23630 case "$opsys" in
23631 ## gnu: GNU needs its own crt0.
23632 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
23633
23634 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23635 ## library search parth, i.e. it won't search /usr/lib for libc and
23636 ## friends. Using -nostartfiles instead avoids this problem, and
23637 ## will also work on earlier NetBSD releases.
23638 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
23639
23640 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23641 ## MkLinux/LinuxPPC needs this.
23642 ## s390x-* only supports opsys = gnu-linux so it can be added here.
23643 gnu-*)
23644 case "$canonical" in
23645 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
23646 esac
23647 ;;
23648 esac
23649
23650
23651 if test "x$ORDINARY_LINK" = "xyes"; then
23652
23653 LD_FIRSTFLAG=""
23654
23655 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
23656
23657
23658 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
23659 ## freebsd, gnu-* not on powerpc*|s390x*.
23660 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
23661
23662 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
23663 ## places that are difficult to figure out at make time. Fortunately,
23664 ## these same versions allow you to pass arbitrary flags on to the
23665 ## linker, so there is no reason not to use it as a linker.
23666 ##
23667 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
23668 ## searching for libraries in its internal directories, so we have to
23669 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
23670 LD_FIRSTFLAG="-nostdlib"
23671 fi
23672
23673 ## FIXME? What setting of EDIT_LDFLAGS should this have?
23674 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
23675
23676
23677
23678
23679 ## FIXME? The logic here is not precisely the same as that above.
23680 ## There is no check here for a pre-defined LD_FIRSTFLAG.
23681 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
23682 LIB_GCC=
23683 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
23684
23685 case "$opsys" in
23686 freebsd|netbsd|openbsd) LIB_GCC= ;;
23687
23688 gnu-*)
23689 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
23690 ## build on ARM EABI under GNU/Linux. (Bug#5518)
23691 case $host_cpu in
23692 arm*)
23693 LIB_GCC="-lgcc_s"
23694 ;;
23695 *)
23696 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
23697 ## immediately undefine it again and redefine it to empty.
23698 ## Was the C_SWITCH_X_SITE part really necessary?
23699 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
23700 LIB_GCC=
23701 ;;
23702 esac
23703 ;;
23704
23705 ## Ask GCC where to find libgcc.a.
23706 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
23707 esac
23708 fi
23709
23710
23711 ## If we're using X11/GNUstep, define some consequences.
23712 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
23713
23714 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23715
23716
23717 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23718
23719 fi
23720
23721
23722
23723
23724 #### Report on what we decided to do.
23725 #### Report GTK as a toolkit, even if it doesn't use Xt.
23726 #### It makes printing result more understandable as using GTK sets
23727 #### toolkit_scroll_bars to yes by default.
23728 if test "${HAVE_GTK}" = "yes"; then
23729 USE_X_TOOLKIT=GTK
23730 fi
23731
23732 echo "
23733 Configured for \`${canonical}'.
23734
23735 Where should the build process find the source code? ${srcdir}
23736 What operating system file should Emacs use? ${opsysfile-none}
23737 What compiler should emacs be built with? ${CC} ${CFLAGS}
23738 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23739 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23740 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23741 What window system should Emacs use? ${window_system}
23742 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23743
23744 if test -n "${x_includes}"; then
23745 echo " Where do we find X Windows header files? ${x_includes}"
23746 else
23747 echo " Where do we find X Windows header files? Standard dirs"
23748 fi
23749 if test -n "${x_libraries}"; then
23750 echo " Where do we find X Windows libraries? ${x_libraries}"
23751 else
23752 echo " Where do we find X Windows libraries? Standard dirs"
23753 fi
23754
23755 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23756 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23757 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23758 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23759 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23760 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23761 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23762 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23763
23764 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23765 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23766 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23767 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23768 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23769 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23770 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23771
23772 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23773 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23774 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23775 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23776
23777 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23778 echo
23779
23780 if test -n "${EMACSDATA}"; then
23781 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23782 fi
23783 if test -n "${EMACSDOC}"; then
23784 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23785 fi
23786
23787 echo
23788
23789 if test "$HAVE_NS" = "yes"; then
23790 echo
23791 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23792 The installed application will go to nextstep/Emacs.app and can be
23793 run or moved from there."
23794 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23795 echo "The application will be fully self-contained."
23796 else
23797 echo "The lisp resources for the application will be installed under ${prefix}.
23798 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23799 to run if these resources are not installed."
23800 fi
23801 echo
23802 fi
23803
23804 if test "${opsys}" = "cygwin"; then
23805 case `uname -r` in
23806 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23807 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23808 echo
23809 ;;
23810 esac
23811 fi
23812
23813 # Remove any trailing slashes in these variables.
23814 test "${prefix}" != NONE &&
23815 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23816 test "${exec_prefix}" != NONE &&
23817 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23818
23819 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"
23820
23821 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"
23822
23823
23824 opt_makefile=test/automated/Makefile
23825
23826 if test -f $srcdir/${opt_makefile}.in; then
23827 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23828 ac_config_files="$ac_config_files test/automated/Makefile"
23829
23830 fi
23831
23832
23833 opt_makefile=admin/unidata/Makefile
23834
23835 if test -f $srcdir/${opt_makefile}.in; then
23836 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23837 ac_config_files="$ac_config_files admin/unidata/Makefile"
23838
23839 fi
23840
23841
23842 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23843
23844
23845
23846 ac_config_commands="$ac_config_commands mkdirs"
23847
23848
23849 ac_config_commands="$ac_config_commands epaths"
23850
23851
23852 ac_config_commands="$ac_config_commands gdbinit"
23853
23854
23855 cat >confcache <<\_ACEOF
23856 # This file is a shell script that caches the results of configure
23857 # tests run on this system so they can be shared between configure
23858 # scripts and configure runs, see configure's option --config-cache.
23859 # It is not useful on other systems. If it contains results you don't
23860 # want to keep, you may remove or edit it.
23861 #
23862 # config.status only pays attention to the cache file if you give it
23863 # the --recheck option to rerun configure.
23864 #
23865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23867 # following values.
23868
23869 _ACEOF
23870
23871 # The following way of writing the cache mishandles newlines in values,
23872 # but we know of no workaround that is simple, portable, and efficient.
23873 # So, we kill variables containing newlines.
23874 # Ultrix sh set writes to stderr and can't be redirected directly,
23875 # and sets the high bit in the cache file unless we assign to the vars.
23876 (
23877 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23878 eval ac_val=\$$ac_var
23879 case $ac_val in #(
23880 *${as_nl}*)
23881 case $ac_var in #(
23882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23884 esac
23885 case $ac_var in #(
23886 _ | IFS | as_nl) ;; #(
23887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23888 *) { eval $ac_var=; unset $ac_var;} ;;
23889 esac ;;
23890 esac
23891 done
23892
23893 (set) 2>&1 |
23894 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23895 *${as_nl}ac_space=\ *)
23896 # `set' does not quote correctly, so add quotes: double-quote
23897 # substitution turns \\\\ into \\, and sed turns \\ into \.
23898 sed -n \
23899 "s/'/'\\\\''/g;
23900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23901 ;; #(
23902 *)
23903 # `set' quotes correctly as required by POSIX, so do not add quotes.
23904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23905 ;;
23906 esac |
23907 sort
23908 ) |
23909 sed '
23910 /^ac_cv_env_/b end
23911 t clear
23912 :clear
23913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23914 t end
23915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23916 :end' >>confcache
23917 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23918 if test -w "$cache_file"; then
23919 test "x$cache_file" != "x/dev/null" &&
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23921 $as_echo "$as_me: updating cache $cache_file" >&6;}
23922 cat confcache >$cache_file
23923 else
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23925 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23926 fi
23927 fi
23928 rm -f confcache
23929
23930 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23931 # Let make expand exec_prefix.
23932 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23933
23934 DEFS=-DHAVE_CONFIG_H
23935
23936 ac_libobjs=
23937 ac_ltlibobjs=
23938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23939 # 1. Remove the extension, and $U if already installed.
23940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23943 # will be set to the directory where LIBOBJS objects are built.
23944 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23945 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23946 done
23947 LIBOBJS=$ac_libobjs
23948
23949 LTLIBOBJS=$ac_ltlibobjs
23950
23951
23952 if test -n "$EXEEXT"; then
23953 am__EXEEXT_TRUE=
23954 am__EXEEXT_FALSE='#'
23955 else
23956 am__EXEEXT_TRUE='#'
23957 am__EXEEXT_FALSE=
23958 fi
23959
23960 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23961 as_fn_error "conditional \"AMDEP\" was never defined.
23962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23963 fi
23964 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23965 as_fn_error "conditional \"am__fastdepCC\" was never defined.
23966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23967 fi
23968 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23969 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
23970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23971 fi
23972 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23973 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23975 fi
23976
23977 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23978 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
23979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23980 fi
23981 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
23982 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
23983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23984 fi
23985 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23986 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
23987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23988 fi
23989 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23990 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23992 fi
23993 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23994 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23996 fi
23997 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23998 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24000 fi
24001 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24002 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24004 fi
24005 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24006 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24008 fi
24009 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24010 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24012 fi
24013 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24014 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24016 fi
24017 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24018 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24020 fi
24021 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24022 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24024 fi
24025
24026 gl_libobjs=
24027 gl_ltlibobjs=
24028 if test -n "$gl_LIBOBJS"; then
24029 # Remove the extension.
24030 sed_drop_objext='s/\.o$//;s/\.obj$//'
24031 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24032 gl_libobjs="$gl_libobjs $i.$ac_objext"
24033 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24034 done
24035 fi
24036 gl_LIBOBJS=$gl_libobjs
24037
24038 gl_LTLIBOBJS=$gl_ltlibobjs
24039
24040
24041
24042 gltests_libobjs=
24043 gltests_ltlibobjs=
24044 if test -n "$gltests_LIBOBJS"; then
24045 # Remove the extension.
24046 sed_drop_objext='s/\.o$//;s/\.obj$//'
24047 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24048 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24049 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24050 done
24051 fi
24052 gltests_LIBOBJS=$gltests_libobjs
24053
24054 gltests_LTLIBOBJS=$gltests_ltlibobjs
24055
24056
24057
24058 : ${CONFIG_STATUS=./config.status}
24059 ac_write_fail=0
24060 ac_clean_files_save=$ac_clean_files
24061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24063 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24064 as_write_fail=0
24065 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24066 #! $SHELL
24067 # Generated by $as_me.
24068 # Run this file to recreate the current configuration.
24069 # Compiler output produced by configure, useful for debugging
24070 # configure, is in config.log if it exists.
24071
24072 debug=false
24073 ac_cs_recheck=false
24074 ac_cs_silent=false
24075
24076 SHELL=\${CONFIG_SHELL-$SHELL}
24077 export SHELL
24078 _ASEOF
24079 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24080 ## -------------------- ##
24081 ## M4sh Initialization. ##
24082 ## -------------------- ##
24083
24084 # Be more Bourne compatible
24085 DUALCASE=1; export DUALCASE # for MKS sh
24086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24087 emulate sh
24088 NULLCMD=:
24089 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24090 # is contrary to our usage. Disable this feature.
24091 alias -g '${1+"$@"}'='"$@"'
24092 setopt NO_GLOB_SUBST
24093 else
24094 case `(set -o) 2>/dev/null` in #(
24095 *posix*) :
24096 set -o posix ;; #(
24097 *) :
24098 ;;
24099 esac
24100 fi
24101
24102
24103 as_nl='
24104 '
24105 export as_nl
24106 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24107 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24108 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24109 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24110 # Prefer a ksh shell builtin over an external printf program on Solaris,
24111 # but without wasting forks for bash or zsh.
24112 if test -z "$BASH_VERSION$ZSH_VERSION" \
24113 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24114 as_echo='print -r --'
24115 as_echo_n='print -rn --'
24116 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24117 as_echo='printf %s\n'
24118 as_echo_n='printf %s'
24119 else
24120 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24121 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24122 as_echo_n='/usr/ucb/echo -n'
24123 else
24124 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24125 as_echo_n_body='eval
24126 arg=$1;
24127 case $arg in #(
24128 *"$as_nl"*)
24129 expr "X$arg" : "X\\(.*\\)$as_nl";
24130 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24131 esac;
24132 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24133 '
24134 export as_echo_n_body
24135 as_echo_n='sh -c $as_echo_n_body as_echo'
24136 fi
24137 export as_echo_body
24138 as_echo='sh -c $as_echo_body as_echo'
24139 fi
24140
24141 # The user is always right.
24142 if test "${PATH_SEPARATOR+set}" != set; then
24143 PATH_SEPARATOR=:
24144 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24145 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24146 PATH_SEPARATOR=';'
24147 }
24148 fi
24149
24150
24151 # IFS
24152 # We need space, tab and new line, in precisely that order. Quoting is
24153 # there to prevent editors from complaining about space-tab.
24154 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24155 # splitting by setting IFS to empty value.)
24156 IFS=" "" $as_nl"
24157
24158 # Find who we are. Look in the path if we contain no directory separator.
24159 case $0 in #((
24160 *[\\/]* ) as_myself=$0 ;;
24161 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24162 for as_dir in $PATH
24163 do
24164 IFS=$as_save_IFS
24165 test -z "$as_dir" && as_dir=.
24166 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24167 done
24168 IFS=$as_save_IFS
24169
24170 ;;
24171 esac
24172 # We did not find ourselves, most probably we were run as `sh COMMAND'
24173 # in which case we are not to be found in the path.
24174 if test "x$as_myself" = x; then
24175 as_myself=$0
24176 fi
24177 if test ! -f "$as_myself"; then
24178 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24179 exit 1
24180 fi
24181
24182 # Unset variables that we do not need and which cause bugs (e.g. in
24183 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24184 # suppresses any "Segmentation fault" message there. '((' could
24185 # trigger a bug in pdksh 5.2.14.
24186 for as_var in BASH_ENV ENV MAIL MAILPATH
24187 do eval test x\${$as_var+set} = xset \
24188 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24189 done
24190 PS1='$ '
24191 PS2='> '
24192 PS4='+ '
24193
24194 # NLS nuisances.
24195 LC_ALL=C
24196 export LC_ALL
24197 LANGUAGE=C
24198 export LANGUAGE
24199
24200 # CDPATH.
24201 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24202
24203
24204 # as_fn_error ERROR [LINENO LOG_FD]
24205 # ---------------------------------
24206 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24207 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24208 # script with status $?, using 1 if that was 0.
24209 as_fn_error ()
24210 {
24211 as_status=$?; test $as_status -eq 0 && as_status=1
24212 if test "$3"; then
24213 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24214 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24215 fi
24216 $as_echo "$as_me: error: $1" >&2
24217 as_fn_exit $as_status
24218 } # as_fn_error
24219
24220
24221 # as_fn_set_status STATUS
24222 # -----------------------
24223 # Set $? to STATUS, without forking.
24224 as_fn_set_status ()
24225 {
24226 return $1
24227 } # as_fn_set_status
24228
24229 # as_fn_exit STATUS
24230 # -----------------
24231 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24232 as_fn_exit ()
24233 {
24234 set +e
24235 as_fn_set_status $1
24236 exit $1
24237 } # as_fn_exit
24238
24239 # as_fn_unset VAR
24240 # ---------------
24241 # Portably unset VAR.
24242 as_fn_unset ()
24243 {
24244 { eval $1=; unset $1;}
24245 }
24246 as_unset=as_fn_unset
24247 # as_fn_append VAR VALUE
24248 # ----------------------
24249 # Append the text in VALUE to the end of the definition contained in VAR. Take
24250 # advantage of any shell optimizations that allow amortized linear growth over
24251 # repeated appends, instead of the typical quadratic growth present in naive
24252 # implementations.
24253 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24254 eval 'as_fn_append ()
24255 {
24256 eval $1+=\$2
24257 }'
24258 else
24259 as_fn_append ()
24260 {
24261 eval $1=\$$1\$2
24262 }
24263 fi # as_fn_append
24264
24265 # as_fn_arith ARG...
24266 # ------------------
24267 # Perform arithmetic evaluation on the ARGs, and store the result in the
24268 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24269 # must be portable across $(()) and expr.
24270 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24271 eval 'as_fn_arith ()
24272 {
24273 as_val=$(( $* ))
24274 }'
24275 else
24276 as_fn_arith ()
24277 {
24278 as_val=`expr "$@" || test $? -eq 1`
24279 }
24280 fi # as_fn_arith
24281
24282
24283 if expr a : '\(a\)' >/dev/null 2>&1 &&
24284 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24285 as_expr=expr
24286 else
24287 as_expr=false
24288 fi
24289
24290 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24291 as_basename=basename
24292 else
24293 as_basename=false
24294 fi
24295
24296 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24297 as_dirname=dirname
24298 else
24299 as_dirname=false
24300 fi
24301
24302 as_me=`$as_basename -- "$0" ||
24303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24304 X"$0" : 'X\(//\)$' \| \
24305 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24306 $as_echo X/"$0" |
24307 sed '/^.*\/\([^/][^/]*\)\/*$/{
24308 s//\1/
24309 q
24310 }
24311 /^X\/\(\/\/\)$/{
24312 s//\1/
24313 q
24314 }
24315 /^X\/\(\/\).*/{
24316 s//\1/
24317 q
24318 }
24319 s/.*/./; q'`
24320
24321 # Avoid depending upon Character Ranges.
24322 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24323 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24324 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24325 as_cr_digits='0123456789'
24326 as_cr_alnum=$as_cr_Letters$as_cr_digits
24327
24328 ECHO_C= ECHO_N= ECHO_T=
24329 case `echo -n x` in #(((((
24330 -n*)
24331 case `echo 'xy\c'` in
24332 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24333 xy) ECHO_C='\c';;
24334 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24335 ECHO_T=' ';;
24336 esac;;
24337 *)
24338 ECHO_N='-n';;
24339 esac
24340
24341 rm -f conf$$ conf$$.exe conf$$.file
24342 if test -d conf$$.dir; then
24343 rm -f conf$$.dir/conf$$.file
24344 else
24345 rm -f conf$$.dir
24346 mkdir conf$$.dir 2>/dev/null
24347 fi
24348 if (echo >conf$$.file) 2>/dev/null; then
24349 if ln -s conf$$.file conf$$ 2>/dev/null; then
24350 as_ln_s='ln -s'
24351 # ... but there are two gotchas:
24352 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24353 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24354 # In both cases, we have to default to `cp -p'.
24355 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24356 as_ln_s='cp -p'
24357 elif ln conf$$.file conf$$ 2>/dev/null; then
24358 as_ln_s=ln
24359 else
24360 as_ln_s='cp -p'
24361 fi
24362 else
24363 as_ln_s='cp -p'
24364 fi
24365 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24366 rmdir conf$$.dir 2>/dev/null
24367
24368
24369 # as_fn_mkdir_p
24370 # -------------
24371 # Create "$as_dir" as a directory, including parents if necessary.
24372 as_fn_mkdir_p ()
24373 {
24374
24375 case $as_dir in #(
24376 -*) as_dir=./$as_dir;;
24377 esac
24378 test -d "$as_dir" || eval $as_mkdir_p || {
24379 as_dirs=
24380 while :; do
24381 case $as_dir in #(
24382 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24383 *) as_qdir=$as_dir;;
24384 esac
24385 as_dirs="'$as_qdir' $as_dirs"
24386 as_dir=`$as_dirname -- "$as_dir" ||
24387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24388 X"$as_dir" : 'X\(//\)[^/]' \| \
24389 X"$as_dir" : 'X\(//\)$' \| \
24390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24391 $as_echo X"$as_dir" |
24392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24393 s//\1/
24394 q
24395 }
24396 /^X\(\/\/\)[^/].*/{
24397 s//\1/
24398 q
24399 }
24400 /^X\(\/\/\)$/{
24401 s//\1/
24402 q
24403 }
24404 /^X\(\/\).*/{
24405 s//\1/
24406 q
24407 }
24408 s/.*/./; q'`
24409 test -d "$as_dir" && break
24410 done
24411 test -z "$as_dirs" || eval "mkdir $as_dirs"
24412 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24413
24414
24415 } # as_fn_mkdir_p
24416 if mkdir -p . 2>/dev/null; then
24417 as_mkdir_p='mkdir -p "$as_dir"'
24418 else
24419 test -d ./-p && rmdir ./-p
24420 as_mkdir_p=false
24421 fi
24422
24423 if test -x / >/dev/null 2>&1; then
24424 as_test_x='test -x'
24425 else
24426 if ls -dL / >/dev/null 2>&1; then
24427 as_ls_L_option=L
24428 else
24429 as_ls_L_option=
24430 fi
24431 as_test_x='
24432 eval sh -c '\''
24433 if test -d "$1"; then
24434 test -d "$1/.";
24435 else
24436 case $1 in #(
24437 -*)set "./$1";;
24438 esac;
24439 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24440 ???[sx]*):;;*)false;;esac;fi
24441 '\'' sh
24442 '
24443 fi
24444 as_executable_p=$as_test_x
24445
24446 # Sed expression to map a string onto a valid CPP name.
24447 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24448
24449 # Sed expression to map a string onto a valid variable name.
24450 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24451
24452
24453 exec 6>&1
24454 ## ----------------------------------- ##
24455 ## Main body of $CONFIG_STATUS script. ##
24456 ## ----------------------------------- ##
24457 _ASEOF
24458 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24459
24460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24461 # Save the log message, to keep $0 and so on meaningful, and to
24462 # report actual input values of CONFIG_FILES etc. instead of their
24463 # values after options handling.
24464 ac_log="
24465 This file was extended by emacs $as_me 24.1.50, which was
24466 generated by GNU Autoconf 2.65. Invocation command line was
24467
24468 CONFIG_FILES = $CONFIG_FILES
24469 CONFIG_HEADERS = $CONFIG_HEADERS
24470 CONFIG_LINKS = $CONFIG_LINKS
24471 CONFIG_COMMANDS = $CONFIG_COMMANDS
24472 $ $0 $@
24473
24474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24475 "
24476
24477 _ACEOF
24478
24479 case $ac_config_files in *"
24480 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24481 esac
24482
24483 case $ac_config_headers in *"
24484 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24485 esac
24486
24487
24488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24489 # Files that config.status was made for.
24490 config_files="$ac_config_files"
24491 config_headers="$ac_config_headers"
24492 config_commands="$ac_config_commands"
24493
24494 _ACEOF
24495
24496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24497 ac_cs_usage="\
24498 \`$as_me' instantiates files and other configuration actions
24499 from templates according to the current configuration. Unless the files
24500 and actions are specified as TAGs, all are instantiated by default.
24501
24502 Usage: $0 [OPTION]... [TAG]...
24503
24504 -h, --help print this help, then exit
24505 -V, --version print version number and configuration settings, then exit
24506 --config print configuration, then exit
24507 -q, --quiet, --silent
24508 do not print progress messages
24509 -d, --debug don't remove temporary files
24510 --recheck update $as_me by reconfiguring in the same conditions
24511 --file=FILE[:TEMPLATE]
24512 instantiate the configuration file FILE
24513 --header=FILE[:TEMPLATE]
24514 instantiate the configuration header FILE
24515
24516 Configuration files:
24517 $config_files
24518
24519 Configuration headers:
24520 $config_headers
24521
24522 Configuration commands:
24523 $config_commands
24524
24525 Report bugs to the package provider."
24526
24527 _ACEOF
24528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24529 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24530 ac_cs_version="\\
24531 emacs config.status 24.1.50
24532 configured by $0, generated by GNU Autoconf 2.65,
24533 with options \\"\$ac_cs_config\\"
24534
24535 Copyright (C) 2009 Free Software Foundation, Inc.
24536 This config.status script is free software; the Free Software Foundation
24537 gives unlimited permission to copy, distribute and modify it."
24538
24539 ac_pwd='$ac_pwd'
24540 srcdir='$srcdir'
24541 INSTALL='$INSTALL'
24542 MKDIR_P='$MKDIR_P'
24543 AWK='$AWK'
24544 test -n "\$AWK" || AWK=awk
24545 _ACEOF
24546
24547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24548 # The default lists apply if the user does not specify any file.
24549 ac_need_defaults=:
24550 while test $# != 0
24551 do
24552 case $1 in
24553 --*=*)
24554 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24555 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24556 ac_shift=:
24557 ;;
24558 *)
24559 ac_option=$1
24560 ac_optarg=$2
24561 ac_shift=shift
24562 ;;
24563 esac
24564
24565 case $ac_option in
24566 # Handling of the options.
24567 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24568 ac_cs_recheck=: ;;
24569 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24570 $as_echo "$ac_cs_version"; exit ;;
24571 --config | --confi | --conf | --con | --co | --c )
24572 $as_echo "$ac_cs_config"; exit ;;
24573 --debug | --debu | --deb | --de | --d | -d )
24574 debug=: ;;
24575 --file | --fil | --fi | --f )
24576 $ac_shift
24577 case $ac_optarg in
24578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24579 esac
24580 as_fn_append CONFIG_FILES " '$ac_optarg'"
24581 ac_need_defaults=false;;
24582 --header | --heade | --head | --hea )
24583 $ac_shift
24584 case $ac_optarg in
24585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24586 esac
24587 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24588 ac_need_defaults=false;;
24589 --he | --h)
24590 # Conflict between --help and --header
24591 as_fn_error "ambiguous option: \`$1'
24592 Try \`$0 --help' for more information.";;
24593 --help | --hel | -h )
24594 $as_echo "$ac_cs_usage"; exit ;;
24595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24596 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24597 ac_cs_silent=: ;;
24598
24599 # This is an error.
24600 -*) as_fn_error "unrecognized option: \`$1'
24601 Try \`$0 --help' for more information." ;;
24602
24603 *) as_fn_append ac_config_targets " $1"
24604 ac_need_defaults=false ;;
24605
24606 esac
24607 shift
24608 done
24609
24610 ac_configure_extra_args=
24611
24612 if $ac_cs_silent; then
24613 exec 6>/dev/null
24614 ac_configure_extra_args="$ac_configure_extra_args --silent"
24615 fi
24616
24617 _ACEOF
24618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24619 if \$ac_cs_recheck; then
24620 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24621 shift
24622 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24623 CONFIG_SHELL='$SHELL'
24624 export CONFIG_SHELL
24625 exec "\$@"
24626 fi
24627
24628 _ACEOF
24629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24630 exec 5>>config.log
24631 {
24632 echo
24633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24634 ## Running $as_me. ##
24635 _ASBOX
24636 $as_echo "$ac_log"
24637 } >&5
24638
24639 _ACEOF
24640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24641 #
24642 # INIT-COMMANDS
24643 #
24644 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24645 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
24646
24647 _ACEOF
24648
24649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24650
24651 # Handling of arguments.
24652 for ac_config_target in $ac_config_targets
24653 do
24654 case $ac_config_target in
24655 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24656 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24657 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24658 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24659 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
24660 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24661 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24662 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24663 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24664 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24665 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24666 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24667 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24668 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24669 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
24670 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
24671 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
24672 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
24673 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
24674
24675 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24676 esac
24677 done
24678
24679
24680 # If the user did not use the arguments to specify the items to instantiate,
24681 # then the envvar interface is used. Set only those that are not.
24682 # We use the long form for the default assignment because of an extremely
24683 # bizarre bug on SunOS 4.1.3.
24684 if $ac_need_defaults; then
24685 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24686 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24687 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24688 fi
24689
24690 # Have a temporary directory for convenience. Make it in the build tree
24691 # simply because there is no reason against having it here, and in addition,
24692 # creating and moving files from /tmp can sometimes cause problems.
24693 # Hook for its removal unless debugging.
24694 # Note that there is a small window in which the directory will not be cleaned:
24695 # after its creation but before its name has been assigned to `$tmp'.
24696 $debug ||
24697 {
24698 tmp=
24699 trap 'exit_status=$?
24700 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24701 ' 0
24702 trap 'as_fn_exit 1' 1 2 13 15
24703 }
24704 # Create a (secure) tmp directory for tmp files.
24705
24706 {
24707 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24708 test -n "$tmp" && test -d "$tmp"
24709 } ||
24710 {
24711 tmp=./conf$$-$RANDOM
24712 (umask 077 && mkdir "$tmp")
24713 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
24714
24715 # Set up the scripts for CONFIG_FILES section.
24716 # No need to generate them if there are no CONFIG_FILES.
24717 # This happens for instance with `./config.status config.h'.
24718 if test -n "$CONFIG_FILES"; then
24719
24720 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
24721 ac_cs_awk_getline=:
24722 ac_cs_awk_pipe_init=
24723 ac_cs_awk_read_file='
24724 while ((getline aline < (F[key])) > 0)
24725 print(aline)
24726 close(F[key])'
24727 ac_cs_awk_pipe_fini=
24728 else
24729 ac_cs_awk_getline=false
24730 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
24731 ac_cs_awk_read_file='
24732 print "|#_!!_#|"
24733 print "cat " F[key] " &&"
24734 '$ac_cs_awk_pipe_init
24735 # The final `:' finishes the AND list.
24736 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
24737 fi
24738 ac_cr=`echo X | tr X '\015'`
24739 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24740 # But we know of no other shell where ac_cr would be empty at this
24741 # point, so we can use a bashism as a fallback.
24742 if test "x$ac_cr" = x; then
24743 eval ac_cr=\$\'\\r\'
24744 fi
24745 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24746 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24747 ac_cs_awk_cr='\r'
24748 else
24749 ac_cs_awk_cr=$ac_cr
24750 fi
24751
24752 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24753 _ACEOF
24754
24755 # Create commands to substitute file output variables.
24756 {
24757 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24758 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24759 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24760 echo "_ACAWK" &&
24761 echo "_ACEOF"
24762 } >conf$$files.sh &&
24763 . ./conf$$files.sh ||
24764 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24765 rm -f conf$$files.sh
24766
24767 {
24768 echo "cat >conf$$subs.awk <<_ACEOF" &&
24769 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24770 echo "_ACEOF"
24771 } >conf$$subs.sh ||
24772 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24773 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24774 ac_delim='%!_!# '
24775 for ac_last_try in false false false false false :; do
24776 . ./conf$$subs.sh ||
24777 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24778
24779 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24780 if test $ac_delim_n = $ac_delim_num; then
24781 break
24782 elif $ac_last_try; then
24783 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24784 else
24785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24786 fi
24787 done
24788 rm -f conf$$subs.sh
24789
24790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24791 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24792 _ACEOF
24793 sed -n '
24794 h
24795 s/^/S["/; s/!.*/"]=/
24796 p
24797 g
24798 s/^[^!]*!//
24799 :repl
24800 t repl
24801 s/'"$ac_delim"'$//
24802 t delim
24803 :nl
24804 h
24805 s/\(.\{148\}\)..*/\1/
24806 t more1
24807 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24808 p
24809 n
24810 b repl
24811 :more1
24812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24813 p
24814 g
24815 s/.\{148\}//
24816 t nl
24817 :delim
24818 h
24819 s/\(.\{148\}\)..*/\1/
24820 t more2
24821 s/["\\]/\\&/g; s/^/"/; s/$/"/
24822 p
24823 b
24824 :more2
24825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24826 p
24827 g
24828 s/.\{148\}//
24829 t delim
24830 ' <conf$$subs.awk | sed '
24831 /^[^""]/{
24832 N
24833 s/\n//
24834 }
24835 ' >>$CONFIG_STATUS || ac_write_fail=1
24836 rm -f conf$$subs.awk
24837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24838 _ACAWK
24839 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24840 for (key in S) S_is_set[key] = 1
24841 FS = "\a"
24842 \$ac_cs_awk_pipe_init
24843 }
24844 {
24845 line = $ 0
24846 nfields = split(line, field, "@")
24847 substed = 0
24848 len = length(field[1])
24849 for (i = 2; i < nfields; i++) {
24850 key = field[i]
24851 keylen = length(key)
24852 if (S_is_set[key]) {
24853 value = S[key]
24854 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24855 len += length(value) + length(field[++i])
24856 substed = 1
24857 } else
24858 len += 1 + keylen
24859 }
24860 if (nfields == 3 && !substed) {
24861 key = field[2]
24862 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24863 \$ac_cs_awk_read_file
24864 next
24865 }
24866 }
24867 print line
24868 }
24869 \$ac_cs_awk_pipe_fini
24870 _ACAWK
24871 _ACEOF
24872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24873 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24874 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24875 else
24876 cat
24877 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24878 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24879 _ACEOF
24880
24881 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24882 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24883 # trailing colons and then remove the whole line if VPATH becomes empty
24884 # (actually we leave an empty line to preserve line numbers).
24885 if test "x$srcdir" = x.; then
24886 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24887 s/:*\$(srcdir):*/:/
24888 s/:*\${srcdir}:*/:/
24889 s/:*@srcdir@:*/:/
24890 s/^\([^=]*=[ ]*\):*/\1/
24891 s/:*$//
24892 s/^[^=]*=[ ]*$//
24893 }'
24894 fi
24895
24896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24897 fi # test -n "$CONFIG_FILES"
24898
24899 # Set up the scripts for CONFIG_HEADERS section.
24900 # No need to generate them if there are no CONFIG_HEADERS.
24901 # This happens for instance with `./config.status Makefile'.
24902 if test -n "$CONFIG_HEADERS"; then
24903 cat >"$tmp/defines.awk" <<\_ACAWK ||
24904 BEGIN {
24905 _ACEOF
24906
24907 # Transform confdefs.h into an awk script `defines.awk', embedded as
24908 # here-document in config.status, that substitutes the proper values into
24909 # config.h.in to produce config.h.
24910
24911 # Create a delimiter string that does not exist in confdefs.h, to ease
24912 # handling of long lines.
24913 ac_delim='%!_!# '
24914 for ac_last_try in false false :; do
24915 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24916 if test -z "$ac_t"; then
24917 break
24918 elif $ac_last_try; then
24919 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24920 else
24921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24922 fi
24923 done
24924
24925 # For the awk script, D is an array of macro values keyed by name,
24926 # likewise P contains macro parameters if any. Preserve backslash
24927 # newline sequences.
24928
24929 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24930 sed -n '
24931 s/.\{148\}/&'"$ac_delim"'/g
24932 t rset
24933 :rset
24934 s/^[ ]*#[ ]*define[ ][ ]*/ /
24935 t def
24936 d
24937 :def
24938 s/\\$//
24939 t bsnl
24940 s/["\\]/\\&/g
24941 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24942 D["\1"]=" \3"/p
24943 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24944 d
24945 :bsnl
24946 s/["\\]/\\&/g
24947 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24948 D["\1"]=" \3\\\\\\n"\\/p
24949 t cont
24950 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24951 t cont
24952 d
24953 :cont
24954 n
24955 s/.\{148\}/&'"$ac_delim"'/g
24956 t clear
24957 :clear
24958 s/\\$//
24959 t bsnlc
24960 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24961 d
24962 :bsnlc
24963 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24964 b cont
24965 ' <confdefs.h | sed '
24966 s/'"$ac_delim"'/"\\\
24967 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24968
24969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24970 for (key in D) D_is_set[key] = 1
24971 FS = "\a"
24972 }
24973 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24974 line = \$ 0
24975 split(line, arg, " ")
24976 if (arg[1] == "#") {
24977 defundef = arg[2]
24978 mac1 = arg[3]
24979 } else {
24980 defundef = substr(arg[1], 2)
24981 mac1 = arg[2]
24982 }
24983 split(mac1, mac2, "(") #)
24984 macro = mac2[1]
24985 prefix = substr(line, 1, index(line, defundef) - 1)
24986 if (D_is_set[macro]) {
24987 # Preserve the white space surrounding the "#".
24988 print prefix "define", macro P[macro] D[macro]
24989 next
24990 } else {
24991 # Replace #undef with comments. This is necessary, for example,
24992 # in the case of _POSIX_SOURCE, which is predefined and required
24993 # on some systems where configure will not decide to define it.
24994 if (defundef == "undef") {
24995 print "/*", prefix defundef, macro, "*/"
24996 next
24997 }
24998 }
24999 }
25000 { print }
25001 _ACAWK
25002 _ACEOF
25003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25004 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25005 fi # test -n "$CONFIG_HEADERS"
25006
25007
25008 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25009 shift
25010 for ac_tag
25011 do
25012 case $ac_tag in
25013 :[FHLC]) ac_mode=$ac_tag; continue;;
25014 esac
25015 case $ac_mode$ac_tag in
25016 :[FHL]*:*);;
25017 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25018 :[FH]-) ac_tag=-:-;;
25019 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25020 esac
25021 ac_save_IFS=$IFS
25022 IFS=:
25023 set x $ac_tag
25024 IFS=$ac_save_IFS
25025 shift
25026 ac_file=$1
25027 shift
25028
25029 case $ac_mode in
25030 :L) ac_source=$1;;
25031 :[FH])
25032 ac_file_inputs=
25033 for ac_f
25034 do
25035 case $ac_f in
25036 -) ac_f="$tmp/stdin";;
25037 *) # Look for the file first in the build tree, then in the source tree
25038 # (if the path is not absolute). The absolute path cannot be DOS-style,
25039 # because $ac_f cannot contain `:'.
25040 test -f "$ac_f" ||
25041 case $ac_f in
25042 [\\/$]*) false;;
25043 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25044 esac ||
25045 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25046 esac
25047 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25048 as_fn_append ac_file_inputs " '$ac_f'"
25049 done
25050
25051 # Let's still pretend it is `configure' which instantiates (i.e., don't
25052 # use $as_me), people would be surprised to read:
25053 # /* config.h. Generated by config.status. */
25054 configure_input='Generated from '`
25055 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25056 `' by configure.'
25057 if test x"$ac_file" != x-; then
25058 configure_input="$ac_file. $configure_input"
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25060 $as_echo "$as_me: creating $ac_file" >&6;}
25061 fi
25062 # Neutralize special characters interpreted by sed in replacement strings.
25063 case $configure_input in #(
25064 *\&* | *\|* | *\\* )
25065 ac_sed_conf_input=`$as_echo "$configure_input" |
25066 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25067 *) ac_sed_conf_input=$configure_input;;
25068 esac
25069
25070 case $ac_tag in
25071 *:-:* | *:-) cat >"$tmp/stdin" \
25072 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25073 esac
25074 ;;
25075 esac
25076
25077 ac_dir=`$as_dirname -- "$ac_file" ||
25078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25079 X"$ac_file" : 'X\(//\)[^/]' \| \
25080 X"$ac_file" : 'X\(//\)$' \| \
25081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25082 $as_echo X"$ac_file" |
25083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25084 s//\1/
25085 q
25086 }
25087 /^X\(\/\/\)[^/].*/{
25088 s//\1/
25089 q
25090 }
25091 /^X\(\/\/\)$/{
25092 s//\1/
25093 q
25094 }
25095 /^X\(\/\).*/{
25096 s//\1/
25097 q
25098 }
25099 s/.*/./; q'`
25100 as_dir="$ac_dir"; as_fn_mkdir_p
25101 ac_builddir=.
25102
25103 case "$ac_dir" in
25104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25105 *)
25106 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25107 # A ".." for each directory in $ac_dir_suffix.
25108 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25109 case $ac_top_builddir_sub in
25110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25112 esac ;;
25113 esac
25114 ac_abs_top_builddir=$ac_pwd
25115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25116 # for backward compatibility:
25117 ac_top_builddir=$ac_top_build_prefix
25118
25119 case $srcdir in
25120 .) # We are building in place.
25121 ac_srcdir=.
25122 ac_top_srcdir=$ac_top_builddir_sub
25123 ac_abs_top_srcdir=$ac_pwd ;;
25124 [\\/]* | ?:[\\/]* ) # Absolute name.
25125 ac_srcdir=$srcdir$ac_dir_suffix;
25126 ac_top_srcdir=$srcdir
25127 ac_abs_top_srcdir=$srcdir ;;
25128 *) # Relative name.
25129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25130 ac_top_srcdir=$ac_top_build_prefix$srcdir
25131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25132 esac
25133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25134
25135
25136 case $ac_mode in
25137 :F)
25138 #
25139 # CONFIG_FILE
25140 #
25141
25142 case $INSTALL in
25143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25144 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25145 esac
25146 ac_MKDIR_P=$MKDIR_P
25147 case $MKDIR_P in
25148 [\\/$]* | ?:[\\/]* ) ;;
25149 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25150 esac
25151 _ACEOF
25152
25153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25154 # If the template does not know about datarootdir, expand it.
25155 # FIXME: This hack should be removed a few years after 2.60.
25156 ac_datarootdir_hack=; ac_datarootdir_seen=
25157 ac_sed_dataroot='
25158 /datarootdir/ {
25159 p
25160 q
25161 }
25162 /@datadir@/p
25163 /@docdir@/p
25164 /@infodir@/p
25165 /@localedir@/p
25166 /@mandir@/p'
25167 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25168 *datarootdir*) ac_datarootdir_seen=yes;;
25169 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25171 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25172 _ACEOF
25173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25174 ac_datarootdir_hack='
25175 s&@datadir@&$datadir&g
25176 s&@docdir@&$docdir&g
25177 s&@infodir@&$infodir&g
25178 s&@localedir@&$localedir&g
25179 s&@mandir@&$mandir&g
25180 s&\\\${datarootdir}&$datarootdir&g' ;;
25181 esac
25182 _ACEOF
25183
25184 # Neutralize VPATH when `$srcdir' = `.'.
25185 # Shell code in configure.ac might set extrasub.
25186 # FIXME: do we really want to maintain this feature?
25187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25188 ac_sed_extra="$ac_vpsub
25189 $extrasub
25190 _ACEOF
25191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25192 :t
25193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25194 s|@configure_input@|$ac_sed_conf_input|;t t
25195 s&@top_builddir@&$ac_top_builddir_sub&;t t
25196 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25197 s&@srcdir@&$ac_srcdir&;t t
25198 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25199 s&@top_srcdir@&$ac_top_srcdir&;t t
25200 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25201 s&@builddir@&$ac_builddir&;t t
25202 s&@abs_builddir@&$ac_abs_builddir&;t t
25203 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25204 s&@INSTALL@&$ac_INSTALL&;t t
25205 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25206 $ac_datarootdir_hack
25207 "
25208 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25209 if $ac_cs_awk_getline; then
25210 $AWK -f "$tmp/subs.awk"
25211 else
25212 $AWK -f "$tmp/subs.awk" | $SHELL
25213 fi >$tmp/out \
25214 || as_fn_error "could not create $ac_file" "$LINENO" 5
25215
25216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25217 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25218 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25220 which seems to be undefined. Please make sure it is defined." >&5
25221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25222 which seems to be undefined. Please make sure it is defined." >&2;}
25223
25224 rm -f "$tmp/stdin"
25225 case $ac_file in
25226 -) cat "$tmp/out" && rm -f "$tmp/out";;
25227 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25228 esac \
25229 || as_fn_error "could not create $ac_file" "$LINENO" 5
25230 ;;
25231 :H)
25232 #
25233 # CONFIG_HEADER
25234 #
25235 if test x"$ac_file" != x-; then
25236 {
25237 $as_echo "/* $configure_input */" \
25238 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25239 } >"$tmp/config.h" \
25240 || as_fn_error "could not create $ac_file" "$LINENO" 5
25241 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25243 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25244 else
25245 rm -f "$ac_file"
25246 mv "$tmp/config.h" "$ac_file" \
25247 || as_fn_error "could not create $ac_file" "$LINENO" 5
25248 fi
25249 else
25250 $as_echo "/* $configure_input */" \
25251 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25252 || as_fn_error "could not create -" "$LINENO" 5
25253 fi
25254 # Compute "$ac_file"'s index in $config_headers.
25255 _am_arg="$ac_file"
25256 _am_stamp_count=1
25257 for _am_header in $config_headers :; do
25258 case $_am_header in
25259 $_am_arg | $_am_arg:* )
25260 break ;;
25261 * )
25262 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25263 esac
25264 done
25265 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25266 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25267 X"$_am_arg" : 'X\(//\)[^/]' \| \
25268 X"$_am_arg" : 'X\(//\)$' \| \
25269 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25270 $as_echo X"$_am_arg" |
25271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25272 s//\1/
25273 q
25274 }
25275 /^X\(\/\/\)[^/].*/{
25276 s//\1/
25277 q
25278 }
25279 /^X\(\/\/\)$/{
25280 s//\1/
25281 q
25282 }
25283 /^X\(\/\).*/{
25284 s//\1/
25285 q
25286 }
25287 s/.*/./; q'`/stamp-h$_am_stamp_count
25288 ;;
25289
25290 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25291 $as_echo "$as_me: executing $ac_file commands" >&6;}
25292 ;;
25293 esac
25294
25295
25296 case $ac_file$ac_mode in
25297 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25298 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25299 # are listed without --file. Let's play safe and only enable the eval
25300 # if we detect the quoting.
25301 case $CONFIG_FILES in
25302 *\'*) eval set x "$CONFIG_FILES" ;;
25303 *) set x $CONFIG_FILES ;;
25304 esac
25305 shift
25306 for mf
25307 do
25308 # Strip MF so we end up with the name of the file.
25309 mf=`echo "$mf" | sed -e 's/:.*$//'`
25310 # Check whether this is an Automake generated Makefile or not.
25311 # We used to match only the files named `Makefile.in', but
25312 # some people rename them; so instead we look at the file content.
25313 # Grep'ing the first line is not enough: some people post-process
25314 # each Makefile.in and add a new line on top of each file to say so.
25315 # Grep'ing the whole file is not good either: AIX grep has a line
25316 # limit of 2048, but all sed's we know have understand at least 4000.
25317 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25318 dirpart=`$as_dirname -- "$mf" ||
25319 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25320 X"$mf" : 'X\(//\)[^/]' \| \
25321 X"$mf" : 'X\(//\)$' \| \
25322 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25323 $as_echo X"$mf" |
25324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25325 s//\1/
25326 q
25327 }
25328 /^X\(\/\/\)[^/].*/{
25329 s//\1/
25330 q
25331 }
25332 /^X\(\/\/\)$/{
25333 s//\1/
25334 q
25335 }
25336 /^X\(\/\).*/{
25337 s//\1/
25338 q
25339 }
25340 s/.*/./; q'`
25341 else
25342 continue
25343 fi
25344 # Extract the definition of DEPDIR, am__include, and am__quote
25345 # from the Makefile without running `make'.
25346 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25347 test -z "$DEPDIR" && continue
25348 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25349 test -z "am__include" && continue
25350 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25351 # When using ansi2knr, U may be empty or an underscore; expand it
25352 U=`sed -n 's/^U = //p' < "$mf"`
25353 # Find all dependency output files, they are included files with
25354 # $(DEPDIR) in their names. We invoke sed twice because it is the
25355 # simplest approach to changing $(DEPDIR) to its actual value in the
25356 # expansion.
25357 for file in `sed -n "
25358 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25359 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25360 # Make sure the directory exists.
25361 test -f "$dirpart/$file" && continue
25362 fdir=`$as_dirname -- "$file" ||
25363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25364 X"$file" : 'X\(//\)[^/]' \| \
25365 X"$file" : 'X\(//\)$' \| \
25366 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25367 $as_echo X"$file" |
25368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25369 s//\1/
25370 q
25371 }
25372 /^X\(\/\/\)[^/].*/{
25373 s//\1/
25374 q
25375 }
25376 /^X\(\/\/\)$/{
25377 s//\1/
25378 q
25379 }
25380 /^X\(\/\).*/{
25381 s//\1/
25382 q
25383 }
25384 s/.*/./; q'`
25385 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25386 # echo "creating $dirpart/$file"
25387 echo '# dummy' > "$dirpart/$file"
25388 done
25389 done
25390 }
25391 ;;
25392 "mkdirs":C)
25393 for dir in etc lisp ; do
25394 test -d ${dir} || mkdir ${dir}
25395 done
25396 ;;
25397 "epaths":C)
25398 echo creating src/epaths.h
25399 ${MAKE-make} epaths-force
25400 ;;
25401 "gdbinit":C)
25402 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25403 echo creating src/.gdbinit
25404 echo source $srcdir/src/.gdbinit > src/.gdbinit
25405 fi
25406 ;;
25407
25408 esac
25409 done # for ac_tag
25410
25411
25412 as_fn_exit 0
25413 _ACEOF
25414 ac_clean_files=$ac_clean_files_save
25415
25416 test $ac_write_fail = 0 ||
25417 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25418
25419
25420 # configure is writing to config.log, and then calls config.status.
25421 # config.status does its own redirection, appending to config.log.
25422 # Unfortunately, on DOS this fails, as config.log is still kept open
25423 # by configure, so config.status won't be able to write to it; its
25424 # output is simply discarded. So we exec the FD to /dev/null,
25425 # effectively closing config.log, so it can be properly (re)opened and
25426 # appended to by config.status. When coming back to configure, we
25427 # need to make the FD available again.
25428 if test "$no_create" != yes; then
25429 ac_cs_success=:
25430 ac_config_status_args=
25431 test "$silent" = yes &&
25432 ac_config_status_args="$ac_config_status_args --quiet"
25433 exec 5>/dev/null
25434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25435 exec 5>>config.log
25436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25437 # would make configure fail if this is the last instruction.
25438 $ac_cs_success || as_fn_exit $?
25439 fi
25440 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25442 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25443 fi
25444