* tmm.el (tmm-prompt): Use string-prefix-p.
[bpt/emacs.git] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.1.50'
553 PACKAGE_STRING='emacs 24.1.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
629 LTLIBINTL
630 LIBINTL
631 HAVE_UNISTD_H
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 NEXT_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
638 NEXT_TIME_H
639 WINDOWS_64_BIT_OFF_T
640 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
641 NEXT_SYS_TYPES_H
642 WINDOWS_64_BIT_ST_SIZE
643 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
644 NEXT_SYS_STAT_H
645 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
646 NEXT_STDLIB_H
647 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
648 NEXT_STDIO_H
649 REPLACE_VSPRINTF
650 REPLACE_VSNPRINTF
651 REPLACE_VPRINTF
652 REPLACE_VFPRINTF
653 REPLACE_VDPRINTF
654 REPLACE_VASPRINTF
655 REPLACE_TMPFILE
656 REPLACE_STDIO_WRITE_FUNCS
657 REPLACE_STDIO_READ_FUNCS
658 REPLACE_SPRINTF
659 REPLACE_SNPRINTF
660 REPLACE_RENAMEAT
661 REPLACE_RENAME
662 REPLACE_REMOVE
663 REPLACE_PRINTF
664 REPLACE_POPEN
665 REPLACE_PERROR
666 REPLACE_OBSTACK_PRINTF
667 REPLACE_GETLINE
668 REPLACE_GETDELIM
669 REPLACE_FTELLO
670 REPLACE_FTELL
671 REPLACE_FSEEKO
672 REPLACE_FSEEK
673 REPLACE_FREOPEN
674 REPLACE_FPURGE
675 REPLACE_FPRINTF
676 REPLACE_FOPEN
677 REPLACE_FFLUSH
678 REPLACE_FDOPEN
679 REPLACE_FCLOSE
680 REPLACE_DPRINTF
681 HAVE_VDPRINTF
682 HAVE_VASPRINTF
683 HAVE_RENAMEAT
684 HAVE_POPEN
685 HAVE_PCLOSE
686 HAVE_FTELLO
687 HAVE_FSEEKO
688 HAVE_DPRINTF
689 HAVE_DECL_VSNPRINTF
690 HAVE_DECL_SNPRINTF
691 HAVE_DECL_OBSTACK_PRINTF
692 HAVE_DECL_GETLINE
693 HAVE_DECL_GETDELIM
694 HAVE_DECL_FTELLO
695 HAVE_DECL_FSEEKO
696 HAVE_DECL_FPURGE
697 GNULIB_VSPRINTF_POSIX
698 GNULIB_VSNPRINTF
699 GNULIB_VPRINTF_POSIX
700 GNULIB_VPRINTF
701 GNULIB_VFPRINTF_POSIX
702 GNULIB_VFPRINTF
703 GNULIB_VDPRINTF
704 GNULIB_VSCANF
705 GNULIB_VFSCANF
706 GNULIB_VASPRINTF
707 GNULIB_TMPFILE
708 GNULIB_STDIO_H_SIGPIPE
709 GNULIB_STDIO_H_NONBLOCKING
710 GNULIB_SPRINTF_POSIX
711 GNULIB_SNPRINTF
712 GNULIB_SCANF
713 GNULIB_RENAMEAT
714 GNULIB_RENAME
715 GNULIB_REMOVE
716 GNULIB_PUTS
717 GNULIB_PUTCHAR
718 GNULIB_PUTC
719 GNULIB_PRINTF_POSIX
720 GNULIB_PRINTF
721 GNULIB_POPEN
722 GNULIB_PERROR
723 GNULIB_PCLOSE
724 GNULIB_OBSTACK_PRINTF_POSIX
725 GNULIB_OBSTACK_PRINTF
726 GNULIB_GETLINE
727 GNULIB_GETDELIM
728 GNULIB_GETCHAR
729 GNULIB_GETC
730 GNULIB_FWRITE
731 GNULIB_FTELLO
732 GNULIB_FTELL
733 GNULIB_FSEEKO
734 GNULIB_FSEEK
735 GNULIB_FSCANF
736 GNULIB_FREOPEN
737 GNULIB_FREAD
738 GNULIB_FPUTS
739 GNULIB_FPUTC
740 GNULIB_FPURGE
741 GNULIB_FPRINTF_POSIX
742 GNULIB_FPRINTF
743 GNULIB_FOPEN
744 GNULIB_FGETS
745 GNULIB_FGETC
746 GNULIB_FFLUSH
747 GNULIB_FDOPEN
748 GNULIB_FCLOSE
749 GNULIB_DPRINTF
750 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
751 NEXT_STDDEF_H
752 GL_GENERATE_STDDEF_H_FALSE
753 GL_GENERATE_STDDEF_H_TRUE
754 STDDEF_H
755 HAVE_WCHAR_T
756 REPLACE_NULL
757 HAVE__BOOL
758 GL_GENERATE_STDBOOL_H_FALSE
759 GL_GENERATE_STDBOOL_H_TRUE
760 STDBOOL_H
761 GL_GENERATE_STDARG_H_FALSE
762 GL_GENERATE_STDARG_H_TRUE
763 STDARG_H
764 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
765 NEXT_STDARG_H
766 GL_GENERATE_STDALIGN_H_FALSE
767 GL_GENERATE_STDALIGN_H_TRUE
768 STDALIGN_H
769 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
770 NEXT_SIGNAL_H
771 LIB_PTHREAD_SIGMASK
772 REPLACE_RAISE
773 REPLACE_PTHREAD_SIGMASK
774 HAVE_SIGHANDLER_T
775 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
776 HAVE_STRUCT_SIGACTION_SA_SIGACTION
777 HAVE_SIGACTION
778 HAVE_SIGINFO_T
779 HAVE_SIGSET_T
780 HAVE_RAISE
781 HAVE_PTHREAD_SIGMASK
782 HAVE_POSIX_SIGNALBLOCKING
783 GNULIB_SIGACTION
784 GNULIB_SIGPROCMASK
785 GNULIB_SIGNAL_H_SIGPIPE
786 GNULIB_RAISE
787 GNULIB_PTHREAD_SIGMASK
788 REPLACE_TIMEGM
789 REPLACE_NANOSLEEP
790 REPLACE_MKTIME
791 REPLACE_LOCALTIME_R
792 HAVE_TIMEGM
793 HAVE_STRPTIME
794 HAVE_NANOSLEEP
795 HAVE_DECL_LOCALTIME_R
796 GNULIB_TIME_R
797 GNULIB_TIMEGM
798 GNULIB_STRPTIME
799 GNULIB_NANOSLEEP
800 GNULIB_MKTIME
801 REPLACE_UTIMENSAT
802 REPLACE_STAT
803 REPLACE_MKNOD
804 REPLACE_MKFIFO
805 REPLACE_MKDIR
806 REPLACE_LSTAT
807 REPLACE_FUTIMENS
808 REPLACE_FSTATAT
809 REPLACE_FSTAT
810 HAVE_UTIMENSAT
811 HAVE_MKNODAT
812 HAVE_MKNOD
813 HAVE_MKFIFOAT
814 HAVE_MKFIFO
815 HAVE_MKDIRAT
816 HAVE_LSTAT
817 HAVE_LCHMOD
818 HAVE_FUTIMENS
819 HAVE_FSTATAT
820 HAVE_FCHMODAT
821 GNULIB_UTIMENSAT
822 GNULIB_STAT
823 GNULIB_MKNODAT
824 GNULIB_MKNOD
825 GNULIB_MKFIFOAT
826 GNULIB_MKFIFO
827 GNULIB_MKDIRAT
828 GNULIB_LSTAT
829 GNULIB_LCHMOD
830 GNULIB_FUTIMENS
831 GNULIB_FSTATAT
832 GNULIB_FSTAT
833 GNULIB_FCHMODAT
834 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
835 NEXT_INTTYPES_H
836 UINT64_MAX_EQ_ULONG_MAX
837 UINT32_MAX_LT_UINTMAX_MAX
838 PRIPTR_PREFIX
839 PRI_MACROS_BROKEN
840 INT64_MAX_EQ_LONG_MAX
841 INT32_MAX_LT_INTMAX_MAX
842 REPLACE_STRTOIMAX
843 HAVE_DECL_STRTOUMAX
844 HAVE_DECL_STRTOIMAX
845 HAVE_DECL_IMAXDIV
846 HAVE_DECL_IMAXABS
847 GNULIB_STRTOUMAX
848 GNULIB_STRTOIMAX
849 GNULIB_IMAXDIV
850 GNULIB_IMAXABS
851 GL_GENERATE_STDINT_H_FALSE
852 GL_GENERATE_STDINT_H_TRUE
853 STDINT_H
854 WINT_T_SUFFIX
855 WCHAR_T_SUFFIX
856 SIG_ATOMIC_T_SUFFIX
857 SIZE_T_SUFFIX
858 PTRDIFF_T_SUFFIX
859 HAVE_SIGNED_WINT_T
860 HAVE_SIGNED_WCHAR_T
861 HAVE_SIGNED_SIG_ATOMIC_T
862 BITSIZEOF_WINT_T
863 BITSIZEOF_WCHAR_T
864 BITSIZEOF_SIG_ATOMIC_T
865 BITSIZEOF_SIZE_T
866 BITSIZEOF_PTRDIFF_T
867 APPLE_UNIVERSAL_BUILD
868 HAVE_SYS_BITYPES_H
869 HAVE_SYS_INTTYPES_H
870 HAVE_STDINT_H
871 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
872 NEXT_STDINT_H
873 HAVE_SYS_TYPES_H
874 HAVE_INTTYPES_H
875 HAVE_WCHAR_H
876 HAVE_UNSIGNED_LONG_LONG_INT
877 HAVE_LONG_LONG_INT
878 GNULIB_GL_UNISTD_H_GETOPT
879 GETOPT_H
880 HAVE_GETOPT_H
881 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
882 NEXT_GETOPT_H
883 PRAGMA_COLUMNS
884 PRAGMA_SYSTEM_HEADER
885 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
886 INCLUDE_NEXT
887 GETLOADAVG_LIBS
888 REPLACE_WCTOMB
889 REPLACE_UNSETENV
890 REPLACE_STRTOD
891 REPLACE_SETENV
892 REPLACE_REALPATH
893 REPLACE_REALLOC
894 REPLACE_RANDOM_R
895 REPLACE_PUTENV
896 REPLACE_PTSNAME_R
897 REPLACE_MKSTEMP
898 REPLACE_MBTOWC
899 REPLACE_MALLOC
900 REPLACE_CANONICALIZE_FILE_NAME
901 REPLACE_CALLOC
902 HAVE_DECL_UNSETENV
903 HAVE_UNLOCKPT
904 HAVE_SYS_LOADAVG_H
905 HAVE_STRUCT_RANDOM_DATA
906 HAVE_STRTOULL
907 HAVE_STRTOLL
908 HAVE_STRTOD
909 HAVE_DECL_SETENV
910 HAVE_SETENV
911 HAVE_RPMATCH
912 HAVE_REALPATH
913 HAVE_RANDOM_R
914 HAVE_RANDOM_H
915 HAVE_RANDOM
916 HAVE_PTSNAME_R
917 HAVE_PTSNAME
918 HAVE_POSIX_OPENPT
919 HAVE_MKSTEMPS
920 HAVE_MKSTEMP
921 HAVE_MKOSTEMPS
922 HAVE_MKOSTEMP
923 HAVE_MKDTEMP
924 HAVE_GRANTPT
925 HAVE_GETSUBOPT
926 HAVE_DECL_GETLOADAVG
927 HAVE_CANONICALIZE_FILE_NAME
928 HAVE_ATOLL
929 HAVE__EXIT
930 GNULIB_WCTOMB
931 GNULIB_UNSETENV
932 GNULIB_UNLOCKPT
933 GNULIB_SYSTEM_POSIX
934 GNULIB_STRTOULL
935 GNULIB_STRTOLL
936 GNULIB_STRTOD
937 GNULIB_SETENV
938 GNULIB_RPMATCH
939 GNULIB_REALPATH
940 GNULIB_REALLOC_POSIX
941 GNULIB_RANDOM_R
942 GNULIB_RANDOM
943 GNULIB_PUTENV
944 GNULIB_PTSNAME_R
945 GNULIB_PTSNAME
946 GNULIB_POSIX_OPENPT
947 GNULIB_MKSTEMPS
948 GNULIB_MKSTEMP
949 GNULIB_MKOSTEMPS
950 GNULIB_MKOSTEMP
951 GNULIB_MKDTEMP
952 GNULIB_MBTOWC
953 GNULIB_MALLOC_POSIX
954 GNULIB_GRANTPT
955 GNULIB_GETSUBOPT
956 GNULIB_GETLOADAVG
957 GNULIB_CANONICALIZE_FILE_NAME
958 GNULIB_CALLOC_POSIX
959 GNULIB_ATOLL
960 GNULIB__EXIT
961 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
962 UNISTD_H_HAVE_WINSOCK2_H
963 REPLACE_WRITE
964 REPLACE_USLEEP
965 REPLACE_UNLINKAT
966 REPLACE_UNLINK
967 REPLACE_TTYNAME_R
968 REPLACE_SYMLINK
969 REPLACE_SLEEP
970 REPLACE_RMDIR
971 REPLACE_READLINK
972 REPLACE_READ
973 REPLACE_PWRITE
974 REPLACE_PREAD
975 REPLACE_LSEEK
976 REPLACE_LINKAT
977 REPLACE_LINK
978 REPLACE_LCHOWN
979 REPLACE_ISATTY
980 REPLACE_GETPAGESIZE
981 REPLACE_GETGROUPS
982 REPLACE_GETLOGIN_R
983 REPLACE_GETDOMAINNAME
984 REPLACE_GETCWD
985 REPLACE_FTRUNCATE
986 REPLACE_FCHOWNAT
987 REPLACE_DUP2
988 REPLACE_DUP
989 REPLACE_CLOSE
990 REPLACE_CHOWN
991 HAVE_SYS_PARAM_H
992 HAVE_OS_H
993 HAVE_DECL_TTYNAME_R
994 HAVE_DECL_SETHOSTNAME
995 HAVE_DECL_GETUSERSHELL
996 HAVE_DECL_GETPAGESIZE
997 HAVE_DECL_GETLOGIN_R
998 HAVE_DECL_GETDOMAINNAME
999 HAVE_DECL_FDATASYNC
1000 HAVE_DECL_FCHDIR
1001 HAVE_DECL_ENVIRON
1002 HAVE_USLEEP
1003 HAVE_UNLINKAT
1004 HAVE_SYMLINKAT
1005 HAVE_SYMLINK
1006 HAVE_SLEEP
1007 HAVE_SETHOSTNAME
1008 HAVE_READLINKAT
1009 HAVE_READLINK
1010 HAVE_PWRITE
1011 HAVE_PREAD
1012 HAVE_PIPE2
1013 HAVE_PIPE
1014 HAVE_LINKAT
1015 HAVE_LINK
1016 HAVE_LCHOWN
1017 HAVE_GROUP_MEMBER
1018 HAVE_GETPAGESIZE
1019 HAVE_GETLOGIN
1020 HAVE_GETHOSTNAME
1021 HAVE_GETGROUPS
1022 HAVE_GETDTABLESIZE
1023 HAVE_FTRUNCATE
1024 HAVE_FSYNC
1025 HAVE_FDATASYNC
1026 HAVE_FCHOWNAT
1027 HAVE_FCHDIR
1028 HAVE_FACCESSAT
1029 HAVE_EUIDACCESS
1030 HAVE_DUP3
1031 HAVE_DUP2
1032 HAVE_CHOWN
1033 GNULIB_WRITE
1034 GNULIB_USLEEP
1035 GNULIB_UNLINKAT
1036 GNULIB_UNLINK
1037 GNULIB_UNISTD_H_SIGPIPE
1038 GNULIB_UNISTD_H_NONBLOCKING
1039 GNULIB_TTYNAME_R
1040 GNULIB_SYMLINKAT
1041 GNULIB_SYMLINK
1042 GNULIB_SLEEP
1043 GNULIB_SETHOSTNAME
1044 GNULIB_RMDIR
1045 GNULIB_READLINKAT
1046 GNULIB_READLINK
1047 GNULIB_READ
1048 GNULIB_PWRITE
1049 GNULIB_PREAD
1050 GNULIB_PIPE2
1051 GNULIB_PIPE
1052 GNULIB_LSEEK
1053 GNULIB_LINKAT
1054 GNULIB_LINK
1055 GNULIB_LCHOWN
1056 GNULIB_ISATTY
1057 GNULIB_GROUP_MEMBER
1058 GNULIB_GETUSERSHELL
1059 GNULIB_GETPAGESIZE
1060 GNULIB_GETLOGIN_R
1061 GNULIB_GETLOGIN
1062 GNULIB_GETHOSTNAME
1063 GNULIB_GETGROUPS
1064 GNULIB_GETDTABLESIZE
1065 GNULIB_GETDOMAINNAME
1066 GNULIB_GETCWD
1067 GNULIB_FTRUNCATE
1068 GNULIB_FSYNC
1069 GNULIB_FDATASYNC
1070 GNULIB_FCHOWNAT
1071 GNULIB_FCHDIR
1072 GNULIB_FACCESSAT
1073 GNULIB_EUIDACCESS
1074 GNULIB_ENVIRON
1075 GNULIB_DUP3
1076 GNULIB_DUP2
1077 GNULIB_DUP
1078 GNULIB_CLOSE
1079 GNULIB_CHOWN
1080 GNULIB_CHDIR
1081 GL_GENERATE_ALLOCA_H_FALSE
1082 GL_GENERATE_ALLOCA_H_TRUE
1083 ALLOCA_H
1084 ALLOCA
1085 GL_COND_LIBTOOL_FALSE
1086 GL_COND_LIBTOOL_TRUE
1087 POST_ALLOC_OBJ
1088 PRE_ALLOC_OBJ
1089 CYGWIN_OBJ
1090 RALLOC_OBJ
1091 OLDXMENU_DEPS
1092 LIBX_OTHER
1093 LIBXMENU
1094 OLDXMENU
1095 OLDXMENU_TARGET
1096 LIBXT_OTHER
1097 TOOLKIT_LIBW
1098 WIDGET_OBJ
1099 XOBJ
1100 XMENU_OBJ
1101 FONT_OBJ
1102 OTHER_FILES
1103 GNU_OBJC_CFLAGS
1104 ns_appsrc
1105 ns_appresdir
1106 ns_appbindir
1107 ns_appdir
1108 S_FILE
1109 X_TOOLKIT_TYPE
1110 GNUSTEP_CFLAGS
1111 C_SWITCH_X_SITE
1112 LD_SWITCH_X_SITE
1113 gameuser
1114 gamedir
1115 bitmapdir
1116 archlibdir
1117 etcdir
1118 x_default_search_path
1119 lisppath
1120 locallisppath
1121 leimdir
1122 lispdir
1123 srcdir
1124 canonical
1125 configuration
1126 version
1127 KRB4LIB
1128 DESLIB
1129 KRB5LIB
1130 CRYPTOLIB
1131 COM_ERRLIB
1132 LIBRESOLV
1133 LIBHESIOD
1134 TERMCAP_OBJ
1135 LIBS_TERMCAP
1136 BLESSMAIL_TARGET
1137 LIBS_MAIL
1138 liblockfile
1139 LIBXML2_LIBS
1140 LIBXML2_CFLAGS
1141 LIBXSM
1142 LIBGPM
1143 LIBGIF
1144 LIBTIFF
1145 LIBPNG
1146 LIBJPEG
1147 LIBXPM
1148 M17N_FLT_LIBS
1149 M17N_FLT_CFLAGS
1150 LIBOTF_LIBS
1151 LIBOTF_CFLAGS
1152 FREETYPE_LIBS
1153 FREETYPE_CFLAGS
1154 XFT_LIBS
1155 XFT_CFLAGS
1156 FONTCONFIG_LIBS
1157 FONTCONFIG_CFLAGS
1158 LIBXMU
1159 LIBXTR6
1160 LIBGNUTLS_LIBS
1161 LIBGNUTLS_CFLAGS
1162 LIBSELINUX_LIBS
1163 SETTINGS_LIBS
1164 SETTINGS_CFLAGS
1165 GCONF_LIBS
1166 GCONF_CFLAGS
1167 GSETTINGS_LIBS
1168 GSETTINGS_CFLAGS
1169 DBUS_OBJ
1170 DBUS_LIBS
1171 DBUS_CFLAGS
1172 GTK_OBJ
1173 GTK_LIBS
1174 GTK_CFLAGS
1175 IMAGEMAGICK_LIBS
1176 IMAGEMAGICK_CFLAGS
1177 RSVG_LIBS
1178 RSVG_CFLAGS
1179 LIB_PTHREAD
1180 VMLIMIT_OBJ
1181 GMALLOC_OBJ
1182 HAVE_XSERVER
1183 LIB_STANDARD
1184 NS_OBJC_OBJ
1185 NS_OBJ
1186 ns_self_contained
1187 INSTALL_ARCH_INDEP_EXTRA
1188 TEMACS_LDFLAGS2
1189 LD_SWITCH_X_SITE_RPATH
1190 XMKMF
1191 DEPFLAGS
1192 MKDEPDIR
1193 CFLAGS_SOUND
1194 ALSA_LIBS
1195 ALSA_CFLAGS
1196 LIBSOUND
1197 PKG_CONFIG
1198 CRT_DIR
1199 START_FILES
1200 LIB_MATH
1201 LIBS_SYSTEM
1202 C_SWITCH_SYSTEM
1203 UNEXEC_OBJ
1204 C_SWITCH_MACHINE
1205 LD_SWITCH_SYSTEM
1206 CANNOT_DUMP
1207 INFO_OPTS
1208 INFO_EXT
1209 HAVE_MAKEINFO
1210 PAXCTL
1211 GZIP_PROG
1212 INSTALL_INFO
1213 GNULIB_WARN_CFLAGS
1214 WARN_CFLAGS
1215 WERROR_CFLAGS
1216 RANLIB
1217 ARFLAGS
1218 AR
1219 EGREP
1220 GREP
1221 CPP
1222 am__fastdepCC_FALSE
1223 am__fastdepCC_TRUE
1224 CCDEPMODE
1225 AMDEPBACKSLASH
1226 AMDEP_FALSE
1227 AMDEP_TRUE
1228 am__quote
1229 am__include
1230 DEPDIR
1231 OBJEXT
1232 EXEEXT
1233 ac_ct_CC
1234 CPPFLAGS
1235 LDFLAGS
1236 CFLAGS
1237 CC
1238 host_os
1239 host_vendor
1240 host_cpu
1241 host
1242 build_os
1243 build_vendor
1244 build_cpu
1245 build
1246 PROFILING_CFLAGS
1247 GZIP_INFO
1248 cache_file
1249 am__untar
1250 am__tar
1251 AMTAR
1252 am__leading_dot
1253 SET_MAKE
1254 AWK
1255 mkdir_p
1256 MKDIR_P
1257 INSTALL_STRIP_PROGRAM
1258 STRIP
1259 install_sh
1260 MAKEINFO
1261 AUTOHEADER
1262 AUTOMAKE
1263 AUTOCONF
1264 ACLOCAL
1265 VERSION
1266 PACKAGE
1267 CYGPATH_W
1268 am__isrc
1269 INSTALL_DATA
1270 INSTALL_SCRIPT
1271 INSTALL_PROGRAM
1272 target_alias
1273 host_alias
1274 build_alias
1275 LIBS
1276 ECHO_T
1277 ECHO_N
1278 ECHO_C
1279 DEFS
1280 mandir
1281 localedir
1282 libdir
1283 psdir
1284 pdfdir
1285 dvidir
1286 htmldir
1287 infodir
1288 docdir
1289 oldincludedir
1290 includedir
1291 localstatedir
1292 sharedstatedir
1293 sysconfdir
1294 datadir
1295 datarootdir
1296 libexecdir
1297 sbindir
1298 bindir
1299 program_transform_name
1300 prefix
1301 exec_prefix
1302 PACKAGE_URL
1303 PACKAGE_BUGREPORT
1304 PACKAGE_STRING
1305 PACKAGE_VERSION
1306 PACKAGE_TARNAME
1307 PACKAGE_NAME
1308 PATH_SEPARATOR
1309 SHELL'
1310 ac_subst_files='deps_frag
1311 lisp_frag
1312 ns_frag'
1313 ac_user_opts='
1314 enable_option_checking
1315 with_pop
1316 with_kerberos
1317 with_kerberos5
1318 with_hesiod
1319 with_mmdf
1320 with_mail_unlink
1321 with_mailhost
1322 with_sound
1323 with_sync_input
1324 with_x_toolkit
1325 with_wide_int
1326 with_xpm
1327 with_jpeg
1328 with_tiff
1329 with_gif
1330 with_png
1331 with_rsvg
1332 with_xml2
1333 with_imagemagick
1334 with_xft
1335 with_libotf
1336 with_m17n_flt
1337 with_toolkit_scroll_bars
1338 with_xaw3d
1339 with_xim
1340 with_ns
1341 with_gpm
1342 with_dbus
1343 with_gconf
1344 with_gsettings
1345 with_selinux
1346 with_gnutls
1347 with_makeinfo
1348 with_compress_info
1349 with_pkg_config_prog
1350 with_crt_dir
1351 with_gameuser
1352 with_gnustep_conf
1353 enable_ns_self_contained
1354 enable_asserts
1355 enable_locallisppath
1356 enable_checking
1357 enable_use_lisp_union_type
1358 enable_profiling
1359 enable_autodepend
1360 enable_dependency_tracking
1361 enable_largefile
1362 enable_gcc_warnings
1363 with_x
1364 '
1365 ac_precious_vars='build_alias
1366 host_alias
1367 target_alias
1368 CC
1369 CFLAGS
1370 LDFLAGS
1371 LIBS
1372 CPPFLAGS
1373 CPP
1374 XMKMF'
1375
1376
1377 # Initialize some variables set by options.
1378 ac_init_help=
1379 ac_init_version=false
1380 ac_unrecognized_opts=
1381 ac_unrecognized_sep=
1382 # The variables have the same names as the options, with
1383 # dashes changed to underlines.
1384 cache_file=/dev/null
1385 exec_prefix=NONE
1386 no_create=
1387 no_recursion=
1388 prefix=NONE
1389 program_prefix=NONE
1390 program_suffix=NONE
1391 program_transform_name=s,x,x,
1392 silent=
1393 site=
1394 srcdir=
1395 verbose=
1396 x_includes=NONE
1397 x_libraries=NONE
1398
1399 # Installation directory options.
1400 # These are left unexpanded so users can "make install exec_prefix=/foo"
1401 # and all the variables that are supposed to be based on exec_prefix
1402 # by default will actually change.
1403 # Use braces instead of parens because sh, perl, etc. also accept them.
1404 # (The list follows the same order as the GNU Coding Standards.)
1405 bindir='${exec_prefix}/bin'
1406 sbindir='${exec_prefix}/sbin'
1407 libexecdir='${exec_prefix}/libexec'
1408 datarootdir='${prefix}/share'
1409 datadir='${datarootdir}'
1410 sysconfdir='${prefix}/etc'
1411 sharedstatedir='${prefix}/com'
1412 localstatedir='${prefix}/var'
1413 includedir='${prefix}/include'
1414 oldincludedir='/usr/include'
1415 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1416 infodir='${datarootdir}/info'
1417 htmldir='${docdir}'
1418 dvidir='${docdir}'
1419 pdfdir='${docdir}'
1420 psdir='${docdir}'
1421 libdir='${exec_prefix}/lib'
1422 localedir='${datarootdir}/locale'
1423 mandir='${datarootdir}/man'
1424
1425 ac_prev=
1426 ac_dashdash=
1427 for ac_option
1428 do
1429 # If the previous option needs an argument, assign it.
1430 if test -n "$ac_prev"; then
1431 eval $ac_prev=\$ac_option
1432 ac_prev=
1433 continue
1434 fi
1435
1436 case $ac_option in
1437 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1438 *) ac_optarg=yes ;;
1439 esac
1440
1441 # Accept the important Cygnus configure options, so we can diagnose typos.
1442
1443 case $ac_dashdash$ac_option in
1444 --)
1445 ac_dashdash=yes ;;
1446
1447 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1448 ac_prev=bindir ;;
1449 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1450 bindir=$ac_optarg ;;
1451
1452 -build | --build | --buil | --bui | --bu)
1453 ac_prev=build_alias ;;
1454 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1455 build_alias=$ac_optarg ;;
1456
1457 -cache-file | --cache-file | --cache-fil | --cache-fi \
1458 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1459 ac_prev=cache_file ;;
1460 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1461 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1462 cache_file=$ac_optarg ;;
1463
1464 --config-cache | -C)
1465 cache_file=config.cache ;;
1466
1467 -datadir | --datadir | --datadi | --datad)
1468 ac_prev=datadir ;;
1469 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1470 datadir=$ac_optarg ;;
1471
1472 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1473 | --dataroo | --dataro | --datar)
1474 ac_prev=datarootdir ;;
1475 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1476 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1477 datarootdir=$ac_optarg ;;
1478
1479 -disable-* | --disable-*)
1480 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1481 # Reject names that are not valid shell variable names.
1482 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1483 as_fn_error "invalid feature name: $ac_useropt"
1484 ac_useropt_orig=$ac_useropt
1485 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1486 case $ac_user_opts in
1487 *"
1488 "enable_$ac_useropt"
1489 "*) ;;
1490 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1491 ac_unrecognized_sep=', ';;
1492 esac
1493 eval enable_$ac_useropt=no ;;
1494
1495 -docdir | --docdir | --docdi | --doc | --do)
1496 ac_prev=docdir ;;
1497 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1498 docdir=$ac_optarg ;;
1499
1500 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1501 ac_prev=dvidir ;;
1502 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1503 dvidir=$ac_optarg ;;
1504
1505 -enable-* | --enable-*)
1506 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1507 # Reject names that are not valid shell variable names.
1508 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1509 as_fn_error "invalid feature name: $ac_useropt"
1510 ac_useropt_orig=$ac_useropt
1511 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1512 case $ac_user_opts in
1513 *"
1514 "enable_$ac_useropt"
1515 "*) ;;
1516 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1517 ac_unrecognized_sep=', ';;
1518 esac
1519 eval enable_$ac_useropt=\$ac_optarg ;;
1520
1521 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1522 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1523 | --exec | --exe | --ex)
1524 ac_prev=exec_prefix ;;
1525 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1526 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1527 | --exec=* | --exe=* | --ex=*)
1528 exec_prefix=$ac_optarg ;;
1529
1530 -gas | --gas | --ga | --g)
1531 # Obsolete; use --with-gas.
1532 with_gas=yes ;;
1533
1534 -help | --help | --hel | --he | -h)
1535 ac_init_help=long ;;
1536 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1537 ac_init_help=recursive ;;
1538 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1539 ac_init_help=short ;;
1540
1541 -host | --host | --hos | --ho)
1542 ac_prev=host_alias ;;
1543 -host=* | --host=* | --hos=* | --ho=*)
1544 host_alias=$ac_optarg ;;
1545
1546 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1547 ac_prev=htmldir ;;
1548 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1549 | --ht=*)
1550 htmldir=$ac_optarg ;;
1551
1552 -includedir | --includedir | --includedi | --included | --include \
1553 | --includ | --inclu | --incl | --inc)
1554 ac_prev=includedir ;;
1555 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1556 | --includ=* | --inclu=* | --incl=* | --inc=*)
1557 includedir=$ac_optarg ;;
1558
1559 -infodir | --infodir | --infodi | --infod | --info | --inf)
1560 ac_prev=infodir ;;
1561 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1562 infodir=$ac_optarg ;;
1563
1564 -libdir | --libdir | --libdi | --libd)
1565 ac_prev=libdir ;;
1566 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1567 libdir=$ac_optarg ;;
1568
1569 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1570 | --libexe | --libex | --libe)
1571 ac_prev=libexecdir ;;
1572 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1573 | --libexe=* | --libex=* | --libe=*)
1574 libexecdir=$ac_optarg ;;
1575
1576 -localedir | --localedir | --localedi | --localed | --locale)
1577 ac_prev=localedir ;;
1578 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1579 localedir=$ac_optarg ;;
1580
1581 -localstatedir | --localstatedir | --localstatedi | --localstated \
1582 | --localstate | --localstat | --localsta | --localst | --locals)
1583 ac_prev=localstatedir ;;
1584 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1585 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1586 localstatedir=$ac_optarg ;;
1587
1588 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1589 ac_prev=mandir ;;
1590 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1591 mandir=$ac_optarg ;;
1592
1593 -nfp | --nfp | --nf)
1594 # Obsolete; use --without-fp.
1595 with_fp=no ;;
1596
1597 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1598 | --no-cr | --no-c | -n)
1599 no_create=yes ;;
1600
1601 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1602 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1603 no_recursion=yes ;;
1604
1605 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1606 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1607 | --oldin | --oldi | --old | --ol | --o)
1608 ac_prev=oldincludedir ;;
1609 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1610 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1611 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1612 oldincludedir=$ac_optarg ;;
1613
1614 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1615 ac_prev=prefix ;;
1616 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1617 prefix=$ac_optarg ;;
1618
1619 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1620 | --program-pre | --program-pr | --program-p)
1621 ac_prev=program_prefix ;;
1622 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1623 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1624 program_prefix=$ac_optarg ;;
1625
1626 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1627 | --program-suf | --program-su | --program-s)
1628 ac_prev=program_suffix ;;
1629 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1630 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1631 program_suffix=$ac_optarg ;;
1632
1633 -program-transform-name | --program-transform-name \
1634 | --program-transform-nam | --program-transform-na \
1635 | --program-transform-n | --program-transform- \
1636 | --program-transform | --program-transfor \
1637 | --program-transfo | --program-transf \
1638 | --program-trans | --program-tran \
1639 | --progr-tra | --program-tr | --program-t)
1640 ac_prev=program_transform_name ;;
1641 -program-transform-name=* | --program-transform-name=* \
1642 | --program-transform-nam=* | --program-transform-na=* \
1643 | --program-transform-n=* | --program-transform-=* \
1644 | --program-transform=* | --program-transfor=* \
1645 | --program-transfo=* | --program-transf=* \
1646 | --program-trans=* | --program-tran=* \
1647 | --progr-tra=* | --program-tr=* | --program-t=*)
1648 program_transform_name=$ac_optarg ;;
1649
1650 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1651 ac_prev=pdfdir ;;
1652 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1653 pdfdir=$ac_optarg ;;
1654
1655 -psdir | --psdir | --psdi | --psd | --ps)
1656 ac_prev=psdir ;;
1657 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1658 psdir=$ac_optarg ;;
1659
1660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661 | -silent | --silent | --silen | --sile | --sil)
1662 silent=yes ;;
1663
1664 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1665 ac_prev=sbindir ;;
1666 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1667 | --sbi=* | --sb=*)
1668 sbindir=$ac_optarg ;;
1669
1670 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1671 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1672 | --sharedst | --shareds | --shared | --share | --shar \
1673 | --sha | --sh)
1674 ac_prev=sharedstatedir ;;
1675 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1676 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1677 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1678 | --sha=* | --sh=*)
1679 sharedstatedir=$ac_optarg ;;
1680
1681 -site | --site | --sit)
1682 ac_prev=site ;;
1683 -site=* | --site=* | --sit=*)
1684 site=$ac_optarg ;;
1685
1686 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1687 ac_prev=srcdir ;;
1688 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1689 srcdir=$ac_optarg ;;
1690
1691 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1692 | --syscon | --sysco | --sysc | --sys | --sy)
1693 ac_prev=sysconfdir ;;
1694 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1695 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1696 sysconfdir=$ac_optarg ;;
1697
1698 -target | --target | --targe | --targ | --tar | --ta | --t)
1699 ac_prev=target_alias ;;
1700 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1701 target_alias=$ac_optarg ;;
1702
1703 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1704 verbose=yes ;;
1705
1706 -version | --version | --versio | --versi | --vers | -V)
1707 ac_init_version=: ;;
1708
1709 -with-* | --with-*)
1710 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1711 # Reject names that are not valid shell variable names.
1712 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1713 as_fn_error "invalid package name: $ac_useropt"
1714 ac_useropt_orig=$ac_useropt
1715 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716 case $ac_user_opts in
1717 *"
1718 "with_$ac_useropt"
1719 "*) ;;
1720 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1721 ac_unrecognized_sep=', ';;
1722 esac
1723 eval with_$ac_useropt=\$ac_optarg ;;
1724
1725 -without-* | --without-*)
1726 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1727 # Reject names that are not valid shell variable names.
1728 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1729 as_fn_error "invalid package name: $ac_useropt"
1730 ac_useropt_orig=$ac_useropt
1731 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1732 case $ac_user_opts in
1733 *"
1734 "with_$ac_useropt"
1735 "*) ;;
1736 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1737 ac_unrecognized_sep=', ';;
1738 esac
1739 eval with_$ac_useropt=no ;;
1740
1741 --x)
1742 # Obsolete; use --with-x.
1743 with_x=yes ;;
1744
1745 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1746 | --x-incl | --x-inc | --x-in | --x-i)
1747 ac_prev=x_includes ;;
1748 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1749 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1750 x_includes=$ac_optarg ;;
1751
1752 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1753 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1754 ac_prev=x_libraries ;;
1755 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1756 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1757 x_libraries=$ac_optarg ;;
1758
1759 -*) as_fn_error "unrecognized option: \`$ac_option'
1760 Try \`$0 --help' for more information."
1761 ;;
1762
1763 *=*)
1764 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1765 # Reject names that are not valid shell variable names.
1766 case $ac_envvar in #(
1767 '' | [0-9]* | *[!_$as_cr_alnum]* )
1768 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1769 esac
1770 eval $ac_envvar=\$ac_optarg
1771 export $ac_envvar ;;
1772
1773 *)
1774 # FIXME: should be removed in autoconf 3.0.
1775 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1776 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1777 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1778 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1779 ;;
1780
1781 esac
1782 done
1783
1784 if test -n "$ac_prev"; then
1785 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1786 as_fn_error "missing argument to $ac_option"
1787 fi
1788
1789 if test -n "$ac_unrecognized_opts"; then
1790 case $enable_option_checking in
1791 no) ;;
1792 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1793 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1794 esac
1795 fi
1796
1797 # Check all directory arguments for consistency.
1798 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1799 datadir sysconfdir sharedstatedir localstatedir includedir \
1800 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1801 libdir localedir mandir
1802 do
1803 eval ac_val=\$$ac_var
1804 # Remove trailing slashes.
1805 case $ac_val in
1806 */ )
1807 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1808 eval $ac_var=\$ac_val;;
1809 esac
1810 # Be sure to have absolute directory names.
1811 case $ac_val in
1812 [\\/$]* | ?:[\\/]* ) continue;;
1813 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1814 esac
1815 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1816 done
1817
1818 # There might be people who depend on the old broken behavior: `$host'
1819 # used to hold the argument of --host etc.
1820 # FIXME: To remove some day.
1821 build=$build_alias
1822 host=$host_alias
1823 target=$target_alias
1824
1825 # FIXME: To remove some day.
1826 if test "x$host_alias" != x; then
1827 if test "x$build_alias" = x; then
1828 cross_compiling=maybe
1829 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1830 If a cross compiler is detected then cross compile mode will be used." >&2
1831 elif test "x$build_alias" != "x$host_alias"; then
1832 cross_compiling=yes
1833 fi
1834 fi
1835
1836 ac_tool_prefix=
1837 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1838
1839 test "$silent" = yes && exec 6>/dev/null
1840
1841
1842 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1843 ac_ls_di=`ls -di .` &&
1844 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1845 as_fn_error "working directory cannot be determined"
1846 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1847 as_fn_error "pwd does not report name of working directory"
1848
1849
1850 # Find the source files, if location was not specified.
1851 if test -z "$srcdir"; then
1852 ac_srcdir_defaulted=yes
1853 # Try the directory containing this script, then the parent directory.
1854 ac_confdir=`$as_dirname -- "$as_myself" ||
1855 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1856 X"$as_myself" : 'X\(//\)[^/]' \| \
1857 X"$as_myself" : 'X\(//\)$' \| \
1858 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1859 $as_echo X"$as_myself" |
1860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1861 s//\1/
1862 q
1863 }
1864 /^X\(\/\/\)[^/].*/{
1865 s//\1/
1866 q
1867 }
1868 /^X\(\/\/\)$/{
1869 s//\1/
1870 q
1871 }
1872 /^X\(\/\).*/{
1873 s//\1/
1874 q
1875 }
1876 s/.*/./; q'`
1877 srcdir=$ac_confdir
1878 if test ! -r "$srcdir/$ac_unique_file"; then
1879 srcdir=..
1880 fi
1881 else
1882 ac_srcdir_defaulted=no
1883 fi
1884 if test ! -r "$srcdir/$ac_unique_file"; then
1885 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1886 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1887 fi
1888 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1889 ac_abs_confdir=`(
1890 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1891 pwd)`
1892 # When building in place, set srcdir=.
1893 if test "$ac_abs_confdir" = "$ac_pwd"; then
1894 srcdir=.
1895 fi
1896 # Remove unnecessary trailing slashes from srcdir.
1897 # Double slashes in file names in object file debugging info
1898 # mess up M-x gdb in Emacs.
1899 case $srcdir in
1900 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1901 esac
1902 for ac_var in $ac_precious_vars; do
1903 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1904 eval ac_env_${ac_var}_value=\$${ac_var}
1905 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1906 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1907 done
1908
1909 #
1910 # Report the --help message.
1911 #
1912 if test "$ac_init_help" = "long"; then
1913 # Omit some internal or obsolete options to make the list less imposing.
1914 # This message is too long to be a string in the A/UX 3.1 sh.
1915 cat <<_ACEOF
1916 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1917
1918 Usage: $0 [OPTION]... [VAR=VALUE]...
1919
1920 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1921 VAR=VALUE. See below for descriptions of some of the useful variables.
1922
1923 Defaults for the options are specified in brackets.
1924
1925 Configuration:
1926 -h, --help display this help and exit
1927 --help=short display options specific to this package
1928 --help=recursive display the short help of all the included packages
1929 -V, --version display version information and exit
1930 -q, --quiet, --silent do not print \`checking...' messages
1931 --cache-file=FILE cache test results in FILE [disabled]
1932 -C, --config-cache alias for \`--cache-file=config.cache'
1933 -n, --no-create do not create output files
1934 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1935
1936 Installation directories:
1937 --prefix=PREFIX install architecture-independent files in PREFIX
1938 [$ac_default_prefix]
1939 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1940 [PREFIX]
1941
1942 By default, \`make install' will install all the files in
1943 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1944 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1945 for instance \`--prefix=\$HOME'.
1946
1947 For better control, use the options below.
1948
1949 Fine tuning of the installation directories:
1950 --bindir=DIR user executables [EPREFIX/bin]
1951 --sbindir=DIR system admin executables [EPREFIX/sbin]
1952 --libexecdir=DIR program executables [EPREFIX/libexec]
1953 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1954 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1955 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1956 --libdir=DIR object code libraries [EPREFIX/lib]
1957 --includedir=DIR C header files [PREFIX/include]
1958 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1959 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1960 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1961 --infodir=DIR info documentation [DATAROOTDIR/info]
1962 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1963 --mandir=DIR man documentation [DATAROOTDIR/man]
1964 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1965 --htmldir=DIR html documentation [DOCDIR]
1966 --dvidir=DIR dvi documentation [DOCDIR]
1967 --pdfdir=DIR pdf documentation [DOCDIR]
1968 --psdir=DIR ps documentation [DOCDIR]
1969 _ACEOF
1970
1971 cat <<\_ACEOF
1972
1973 Program names:
1974 --program-prefix=PREFIX prepend PREFIX to installed program names
1975 --program-suffix=SUFFIX append SUFFIX to installed program names
1976 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1977
1978 X features:
1979 --x-includes=DIR X include files are in DIR
1980 --x-libraries=DIR X library files are in DIR
1981
1982 System types:
1983 --build=BUILD configure for building on BUILD [guessed]
1984 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1985 _ACEOF
1986 fi
1987
1988 if test -n "$ac_init_help"; then
1989 case $ac_init_help in
1990 short | recursive ) echo "Configuration of emacs 24.1.50:";;
1991 esac
1992 cat <<\_ACEOF
1993
1994 Optional Features:
1995 --disable-option-checking ignore unrecognized --enable/--with options
1996 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1997 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1998 --disable-ns-self-contained
1999 disable self contained build under NeXTstep
2000 --enable-asserts compile code with asserts enabled
2001 --enable-locallisppath=PATH
2002 directories Emacs should search for lisp files
2003 specific to this site
2004 --enable-checking[=LIST]
2005 enable expensive run-time checks. With LIST, enable
2006 only specific categories of checks. Categories are:
2007 all,yes,no. Flags are: stringbytes, stringoverrun,
2008 stringfreelist, xmallocoverrun, conslist
2009 --enable-use-lisp-union-type
2010 use a union for the Lisp_Object data type. This is
2011 only useful for development for catching certain
2012 types of bugs.
2013 --enable-profiling build emacs with profiling support. This might not
2014 work on all platforms
2015 --enable-autodepend automatically generate dependencies to .h-files.
2016 Requires GNU Make and Gcc. Enabled if GNU Make and
2017 Gcc is found
2018 --disable-dependency-tracking speeds up one-time build
2019 --enable-dependency-tracking do not reject slow dependency extractors
2020 --disable-largefile omit support for large files
2021 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2022
2023 Optional Packages:
2024 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2025 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2026 --without-pop don't support POP mail retrieval with movemail
2027 --with-kerberos support Kerberos-authenticated POP
2028 --with-kerberos5 support Kerberos version 5 authenticated POP
2029 --with-hesiod support Hesiod to get the POP server host
2030 --with-mmdf support MMDF mailboxes
2031 --with-mail-unlink unlink, rather than empty, mail spool after reading
2032 --with-mailhost=HOSTNAME
2033 string giving default POP mail host
2034 --without-sound don't compile with sound support
2035 --without-sync-input process async input synchronously
2036 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2037 lucid or athena, motif, no)
2038 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2039 --without-xpm don't compile with XPM image support
2040 --without-jpeg don't compile with JPEG image support
2041 --without-tiff don't compile with TIFF image support
2042 --without-gif don't compile with GIF image support
2043 --without-png don't compile with PNG image support
2044 --without-rsvg don't compile with SVG image support
2045 --without-xml2 don't compile with XML parsing support
2046 --without-imagemagick don't compile with ImageMagick image support
2047 --without-xft don't use XFT for anti aliased fonts
2048 --without-libotf don't use libotf for OpenType font support
2049 --without-m17n-flt don't use m17n-flt for text shaping
2050 --without-toolkit-scroll-bars
2051 don't use Motif or Xaw3d scroll bars
2052 --without-xaw3d don't use Xaw3d
2053 --without-xim don't use X11 XIM
2054 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2055 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2056 console
2057 --without-dbus don't compile with D-Bus support
2058 --without-gconf don't compile with GConf support
2059 --without-gsettings don't compile with GSettings support
2060 --without-selinux don't compile with SELinux support
2061 --without-gnutls don't use -lgnutls for SSL/TLS support
2062 --without-makeinfo don't require makeinfo for building manuals
2063 --without-compress-info don't compress the installed Info pages
2064 --with-pkg-config-prog=PATH
2065 path to pkg-config for finding GTK and librsvg
2066 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2067 /usr/lib, or /usr/lib64 on some platforms.
2068 --with-gameuser=USER user for shared game score files
2069 --with-gnustep-conf=PATH
2070 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2071 or /etc/GNUstep/GNUstep.conf
2072 --with-x use the X Window System
2073
2074 Some influential environment variables:
2075 CC C compiler command
2076 CFLAGS C compiler flags
2077 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2078 nonstandard directory <lib dir>
2079 LIBS libraries to pass to the linker, e.g. -l<library>
2080 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2081 you have headers in a nonstandard directory <include dir>
2082 CPP C preprocessor
2083 XMKMF Path to xmkmf, Makefile generator for X Window System
2084
2085 Use these variables to override the choices made by `configure' or to help
2086 it to find libraries and programs with nonstandard names/locations.
2087
2088 Report bugs to the package provider.
2089 _ACEOF
2090 ac_status=$?
2091 fi
2092
2093 if test "$ac_init_help" = "recursive"; then
2094 # If there are subdirs, report their specific --help.
2095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2096 test -d "$ac_dir" ||
2097 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2098 continue
2099 ac_builddir=.
2100
2101 case "$ac_dir" in
2102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2103 *)
2104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2105 # A ".." for each directory in $ac_dir_suffix.
2106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2107 case $ac_top_builddir_sub in
2108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2110 esac ;;
2111 esac
2112 ac_abs_top_builddir=$ac_pwd
2113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2114 # for backward compatibility:
2115 ac_top_builddir=$ac_top_build_prefix
2116
2117 case $srcdir in
2118 .) # We are building in place.
2119 ac_srcdir=.
2120 ac_top_srcdir=$ac_top_builddir_sub
2121 ac_abs_top_srcdir=$ac_pwd ;;
2122 [\\/]* | ?:[\\/]* ) # Absolute name.
2123 ac_srcdir=$srcdir$ac_dir_suffix;
2124 ac_top_srcdir=$srcdir
2125 ac_abs_top_srcdir=$srcdir ;;
2126 *) # Relative name.
2127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2128 ac_top_srcdir=$ac_top_build_prefix$srcdir
2129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2130 esac
2131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2132
2133 cd "$ac_dir" || { ac_status=$?; continue; }
2134 # Check for guested configure.
2135 if test -f "$ac_srcdir/configure.gnu"; then
2136 echo &&
2137 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2138 elif test -f "$ac_srcdir/configure"; then
2139 echo &&
2140 $SHELL "$ac_srcdir/configure" --help=recursive
2141 else
2142 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2143 fi || ac_status=$?
2144 cd "$ac_pwd" || { ac_status=$?; break; }
2145 done
2146 fi
2147
2148 test -n "$ac_init_help" && exit $ac_status
2149 if $ac_init_version; then
2150 cat <<\_ACEOF
2151 emacs configure 24.1.50
2152 generated by GNU Autoconf 2.65
2153
2154 Copyright (C) 2009 Free Software Foundation, Inc.
2155 This configure script is free software; the Free Software Foundation
2156 gives unlimited permission to copy, distribute and modify it.
2157 _ACEOF
2158 exit
2159 fi
2160
2161 ## ------------------------ ##
2162 ## Autoconf initialization. ##
2163 ## ------------------------ ##
2164
2165 # ac_fn_c_try_compile LINENO
2166 # --------------------------
2167 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2168 ac_fn_c_try_compile ()
2169 {
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 rm -f conftest.$ac_objext
2172 if { { ac_try="$ac_compile"
2173 case "(($ac_try" in
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2176 esac
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_compile") 2>conftest.err
2180 ac_status=$?
2181 if test -s conftest.err; then
2182 grep -v '^ *+' conftest.err >conftest.er1
2183 cat conftest.er1 >&5
2184 mv -f conftest.er1 conftest.err
2185 fi
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && {
2188 test -z "$ac_c_werror_flag" ||
2189 test ! -s conftest.err
2190 } && test -s conftest.$ac_objext; then :
2191 ac_retval=0
2192 else
2193 $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 ac_retval=1
2197 fi
2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199 as_fn_set_status $ac_retval
2200
2201 } # ac_fn_c_try_compile
2202
2203 # ac_fn_c_try_cpp LINENO
2204 # ----------------------
2205 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2206 ac_fn_c_try_cpp ()
2207 {
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 if { { ac_try="$ac_cpp conftest.$ac_ext"
2210 case "(($ac_try" in
2211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212 *) ac_try_echo=$ac_try;;
2213 esac
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 $as_echo "$ac_try_echo"; } >&5
2216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2217 ac_status=$?
2218 if test -s conftest.err; then
2219 grep -v '^ *+' conftest.err >conftest.er1
2220 cat conftest.er1 >&5
2221 mv -f conftest.er1 conftest.err
2222 fi
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } >/dev/null && {
2225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2226 test ! -s conftest.err
2227 }; then :
2228 ac_retval=0
2229 else
2230 $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 ac_retval=1
2234 fi
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 as_fn_set_status $ac_retval
2237
2238 } # ac_fn_c_try_cpp
2239
2240 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2241 # -------------------------------------------------------
2242 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2243 # the include files in INCLUDES and setting the cache variable VAR
2244 # accordingly.
2245 ac_fn_c_check_header_mongrel ()
2246 {
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2252 $as_echo_n "(cached) " >&6
2253 fi
2254 eval ac_res=\$$3
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 else
2258 # Is the header compilable?
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2260 $as_echo_n "checking $2 usability... " >&6; }
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2263 $4
2264 #include <$2>
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 ac_header_compiler=yes
2268 else
2269 ac_header_compiler=no
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2273 $as_echo "$ac_header_compiler" >&6; }
2274
2275 # Is the header present?
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2277 $as_echo_n "checking $2 presence... " >&6; }
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 #include <$2>
2281 _ACEOF
2282 if ac_fn_c_try_cpp "$LINENO"; then :
2283 ac_header_preproc=yes
2284 else
2285 ac_header_preproc=no
2286 fi
2287 rm -f conftest.err conftest.$ac_ext
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2289 $as_echo "$ac_header_preproc" >&6; }
2290
2291 # So? What about this header?
2292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2293 yes:no: )
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2295 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2297 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2298 ;;
2299 no:yes:* )
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2301 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2303 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2305 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2307 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2309 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2310 ;;
2311 esac
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 eval "$3=\$ac_header_compiler"
2318 fi
2319 eval ac_res=\$$3
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322 fi
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324
2325 } # ac_fn_c_check_header_mongrel
2326
2327 # ac_fn_c_try_run LINENO
2328 # ----------------------
2329 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2330 # that executables *can* be run.
2331 ac_fn_c_try_run ()
2332 {
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { { ac_try="$ac_link"
2335 case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338 esac
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>&5
2342 ac_status=$?
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2345 { { case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348 esac
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_try") 2>&5
2352 ac_status=$?
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; }; }; then :
2355 ac_retval=0
2356 else
2357 $as_echo "$as_me: program exited with status $ac_status" >&5
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 ac_retval=$ac_status
2362 fi
2363 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 as_fn_set_status $ac_retval
2366
2367 } # ac_fn_c_try_run
2368
2369 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2370 # -------------------------------------------------------
2371 # Tests whether HEADER exists and can be compiled using the include files in
2372 # INCLUDES, setting the cache variable VAR accordingly.
2373 ac_fn_c_check_header_compile ()
2374 {
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377 $as_echo_n "checking for $2... " >&6; }
2378 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2383 $4
2384 #include <$2>
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$3=yes"
2388 else
2389 eval "$3=no"
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397
2398 } # ac_fn_c_check_header_compile
2399
2400 # ac_fn_c_try_link LINENO
2401 # -----------------------
2402 # Try to link conftest.$ac_ext, and return whether this succeeded.
2403 ac_fn_c_try_link ()
2404 {
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2408 case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411 esac
2412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413 $as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_c_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest$ac_exeext
2428 }; then :
2429 ac_retval=0
2430 else
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 ac_retval=1
2435 fi
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 as_fn_set_status $ac_retval
2443
2444 } # ac_fn_c_try_link
2445
2446 # ac_fn_c_check_decl LINENO SYMBOL VAR
2447 # ------------------------------------
2448 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2449 ac_fn_c_check_decl ()
2450 {
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2453 $as_echo_n "checking whether $2 is declared... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2459 $4
2460 int
2461 main ()
2462 {
2463 #ifndef $2
2464 (void) $2;
2465 #endif
2466
2467 ;
2468 return 0;
2469 }
2470 _ACEOF
2471 if ac_fn_c_try_compile "$LINENO"; then :
2472 eval "$3=yes"
2473 else
2474 eval "$3=no"
2475 fi
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 fi
2478 eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2482
2483 } # ac_fn_c_check_decl
2484
2485 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2486 # ----------------------------------------------
2487 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2488 ac_fn_c_check_header_preproc ()
2489 {
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 #include <$2>
2499 _ACEOF
2500 if ac_fn_c_try_cpp "$LINENO"; then :
2501 eval "$3=yes"
2502 else
2503 eval "$3=no"
2504 fi
2505 rm -f conftest.err conftest.$ac_ext
2506 fi
2507 eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511
2512 } # ac_fn_c_check_header_preproc
2513
2514 # ac_fn_c_check_func LINENO FUNC VAR
2515 # ----------------------------------
2516 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2517 ac_fn_c_check_func ()
2518 {
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2529 #define $2 innocuous_$2
2530
2531 /* System header to define __stub macros and hopefully few prototypes,
2532 which can conflict with char $2 (); below.
2533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2534 <limits.h> exists even on freestanding compilers. */
2535
2536 #ifdef __STDC__
2537 # include <limits.h>
2538 #else
2539 # include <assert.h>
2540 #endif
2541
2542 #undef $2
2543
2544 /* Override any GCC internal prototype to avoid an error.
2545 Use char because int might match the return type of a GCC
2546 builtin and then its argument prototype would still apply. */
2547 #ifdef __cplusplus
2548 extern "C"
2549 #endif
2550 char $2 ();
2551 /* The GNU C library defines this for functions which it implements
2552 to always fail with ENOSYS. Some functions are actually named
2553 something starting with __ and the normal name is an alias. */
2554 #if defined __stub_$2 || defined __stub___$2
2555 choke me
2556 #endif
2557
2558 int
2559 main ()
2560 {
2561 return $2 ();
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_c_try_link "$LINENO"; then :
2567 eval "$3=yes"
2568 else
2569 eval "$3=no"
2570 fi
2571 rm -f core conftest.err conftest.$ac_objext \
2572 conftest$ac_exeext conftest.$ac_ext
2573 fi
2574 eval ac_res=\$$3
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578
2579 } # ac_fn_c_check_func
2580
2581 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2582 # ----------------------------------------------------
2583 # Tries to find if the field MEMBER exists in type AGGR, after including
2584 # INCLUDES, setting cache variable VAR accordingly.
2585 ac_fn_c_check_member ()
2586 {
2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2589 $as_echo_n "checking for $2.$3... " >&6; }
2590 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2591 $as_echo_n "(cached) " >&6
2592 else
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h. */
2595 $5
2596 int
2597 main ()
2598 {
2599 static $2 ac_aggr;
2600 if (ac_aggr.$3)
2601 return 0;
2602 ;
2603 return 0;
2604 }
2605 _ACEOF
2606 if ac_fn_c_try_compile "$LINENO"; then :
2607 eval "$4=yes"
2608 else
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2611 $5
2612 int
2613 main ()
2614 {
2615 static $2 ac_aggr;
2616 if (sizeof ac_aggr.$3)
2617 return 0;
2618 ;
2619 return 0;
2620 }
2621 _ACEOF
2622 if ac_fn_c_try_compile "$LINENO"; then :
2623 eval "$4=yes"
2624 else
2625 eval "$4=no"
2626 fi
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 fi
2631 eval ac_res=\$$4
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635
2636 } # ac_fn_c_check_member
2637
2638 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2639 # -------------------------------------------
2640 # Tests whether TYPE exists after having included INCLUDES, setting cache
2641 # variable VAR accordingly.
2642 ac_fn_c_check_type ()
2643 {
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2646 $as_echo_n "checking for $2... " >&6; }
2647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 eval "$3=no"
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2653 $4
2654 int
2655 main ()
2656 {
2657 if (sizeof ($2))
2658 return 0;
2659 ;
2660 return 0;
2661 }
2662 _ACEOF
2663 if ac_fn_c_try_compile "$LINENO"; then :
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2666 $4
2667 int
2668 main ()
2669 {
2670 if (sizeof (($2)))
2671 return 0;
2672 ;
2673 return 0;
2674 }
2675 _ACEOF
2676 if ac_fn_c_try_compile "$LINENO"; then :
2677
2678 else
2679 eval "$3=yes"
2680 fi
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 fi
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685 eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689
2690 } # ac_fn_c_check_type
2691
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2696 # computed
2697 ac_fn_c_compute_int ()
2698 {
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if test "$cross_compiling" = yes; then
2701 # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2704 $4
2705 int
2706 main ()
2707 {
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2709 test_array [0] = 0
2710
2711 ;
2712 return 0;
2713 }
2714 _ACEOF
2715 if ac_fn_c_try_compile "$LINENO"; then :
2716 ac_lo=0 ac_mid=0
2717 while :; do
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2720 $4
2721 int
2722 main ()
2723 {
2724 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2725 test_array [0] = 0
2726
2727 ;
2728 return 0;
2729 }
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732 ac_hi=$ac_mid; break
2733 else
2734 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2735 if test $ac_lo -le $ac_mid; then
2736 ac_lo= ac_hi=
2737 break
2738 fi
2739 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2740 fi
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 done
2743 else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2746 $4
2747 int
2748 main ()
2749 {
2750 static int test_array [1 - 2 * !(($2) < 0)];
2751 test_array [0] = 0
2752
2753 ;
2754 return 0;
2755 }
2756 _ACEOF
2757 if ac_fn_c_try_compile "$LINENO"; then :
2758 ac_hi=-1 ac_mid=-1
2759 while :; do
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2762 $4
2763 int
2764 main ()
2765 {
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2767 test_array [0] = 0
2768
2769 ;
2770 return 0;
2771 }
2772 _ACEOF
2773 if ac_fn_c_try_compile "$LINENO"; then :
2774 ac_lo=$ac_mid; break
2775 else
2776 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2777 if test $ac_mid -le $ac_hi; then
2778 ac_lo= ac_hi=
2779 break
2780 fi
2781 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785 else
2786 ac_lo= ac_hi=
2787 fi
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 # Binary search between lo and hi bounds.
2792 while test "x$ac_lo" != "x$ac_hi"; do
2793 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2796 $4
2797 int
2798 main ()
2799 {
2800 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2801 test_array [0] = 0
2802
2803 ;
2804 return 0;
2805 }
2806 _ACEOF
2807 if ac_fn_c_try_compile "$LINENO"; then :
2808 ac_hi=$ac_mid
2809 else
2810 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2811 fi
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 done
2814 case $ac_lo in #((
2815 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2816 '') ac_retval=1 ;;
2817 esac
2818 else
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2821 $4
2822 static long int longval () { return $2; }
2823 static unsigned long int ulongval () { return $2; }
2824 #include <stdio.h>
2825 #include <stdlib.h>
2826 int
2827 main ()
2828 {
2829
2830 FILE *f = fopen ("conftest.val", "w");
2831 if (! f)
2832 return 1;
2833 if (($2) < 0)
2834 {
2835 long int i = longval ();
2836 if (i != ($2))
2837 return 1;
2838 fprintf (f, "%ld", i);
2839 }
2840 else
2841 {
2842 unsigned long int i = ulongval ();
2843 if (i != ($2))
2844 return 1;
2845 fprintf (f, "%lu", i);
2846 }
2847 /* Do not output a trailing newline, as this causes \r\n confusion
2848 on some platforms. */
2849 return ferror (f) || fclose (f) != 0;
2850
2851 ;
2852 return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_c_try_run "$LINENO"; then :
2856 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2857 else
2858 ac_retval=1
2859 fi
2860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2861 conftest.$ac_objext conftest.beam conftest.$ac_ext
2862 rm -f conftest.val
2863
2864 fi
2865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2866 as_fn_set_status $ac_retval
2867
2868 } # ac_fn_c_compute_int
2869 cat >config.log <<_ACEOF
2870 This file contains any messages produced by compilers while
2871 running configure, to aid debugging if configure makes a mistake.
2872
2873 It was created by emacs $as_me 24.1.50, which was
2874 generated by GNU Autoconf 2.65. Invocation command line was
2875
2876 $ $0 $@
2877
2878 _ACEOF
2879 exec 5>>config.log
2880 {
2881 cat <<_ASUNAME
2882 ## --------- ##
2883 ## Platform. ##
2884 ## --------- ##
2885
2886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2891
2892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2894
2895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2902
2903 _ASUNAME
2904
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 $as_echo "PATH: $as_dir"
2911 done
2912 IFS=$as_save_IFS
2913
2914 } >&5
2915
2916 cat >&5 <<_ACEOF
2917
2918
2919 ## ----------- ##
2920 ## Core tests. ##
2921 ## ----------- ##
2922
2923 _ACEOF
2924
2925
2926 # Keep a trace of the command line.
2927 # Strip out --no-create and --no-recursion so they do not pile up.
2928 # Strip out --silent because we don't want to record it for future runs.
2929 # Also quote any args containing shell meta-characters.
2930 # Make two passes to allow for proper duplicate-argument suppression.
2931 ac_configure_args=
2932 ac_configure_args0=
2933 ac_configure_args1=
2934 ac_must_keep_next=false
2935 for ac_pass in 1 2
2936 do
2937 for ac_arg
2938 do
2939 case $ac_arg in
2940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2942 | -silent | --silent | --silen | --sile | --sil)
2943 continue ;;
2944 *\'*)
2945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2946 esac
2947 case $ac_pass in
2948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2949 2)
2950 as_fn_append ac_configure_args1 " '$ac_arg'"
2951 if test $ac_must_keep_next = true; then
2952 ac_must_keep_next=false # Got value, back to normal.
2953 else
2954 case $ac_arg in
2955 *=* | --config-cache | -C | -disable-* | --disable-* \
2956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2958 | -with-* | --with-* | -without-* | --without-* | --x)
2959 case "$ac_configure_args0 " in
2960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2961 esac
2962 ;;
2963 -* ) ac_must_keep_next=true ;;
2964 esac
2965 fi
2966 as_fn_append ac_configure_args " '$ac_arg'"
2967 ;;
2968 esac
2969 done
2970 done
2971 { ac_configure_args0=; unset ac_configure_args0;}
2972 { ac_configure_args1=; unset ac_configure_args1;}
2973
2974 # When interrupted or exit'd, cleanup temporary files, and complete
2975 # config.log. We remove comments because anyway the quotes in there
2976 # would cause problems or look ugly.
2977 # WARNING: Use '\'' to represent an apostrophe within the trap.
2978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2979 trap 'exit_status=$?
2980 # Save into config.log some information that might help in debugging.
2981 {
2982 echo
2983
2984 cat <<\_ASBOX
2985 ## ---------------- ##
2986 ## Cache variables. ##
2987 ## ---------------- ##
2988 _ASBOX
2989 echo
2990 # The following way of writing the cache mishandles newlines in values,
2991 (
2992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2993 eval ac_val=\$$ac_var
2994 case $ac_val in #(
2995 *${as_nl}*)
2996 case $ac_var in #(
2997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2999 esac
3000 case $ac_var in #(
3001 _ | IFS | as_nl) ;; #(
3002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3003 *) { eval $ac_var=; unset $ac_var;} ;;
3004 esac ;;
3005 esac
3006 done
3007 (set) 2>&1 |
3008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3009 *${as_nl}ac_space=\ *)
3010 sed -n \
3011 "s/'\''/'\''\\\\'\'''\''/g;
3012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3013 ;; #(
3014 *)
3015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3016 ;;
3017 esac |
3018 sort
3019 )
3020 echo
3021
3022 cat <<\_ASBOX
3023 ## ----------------- ##
3024 ## Output variables. ##
3025 ## ----------------- ##
3026 _ASBOX
3027 echo
3028 for ac_var in $ac_subst_vars
3029 do
3030 eval ac_val=\$$ac_var
3031 case $ac_val in
3032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3033 esac
3034 $as_echo "$ac_var='\''$ac_val'\''"
3035 done | sort
3036 echo
3037
3038 if test -n "$ac_subst_files"; then
3039 cat <<\_ASBOX
3040 ## ------------------- ##
3041 ## File substitutions. ##
3042 ## ------------------- ##
3043 _ASBOX
3044 echo
3045 for ac_var in $ac_subst_files
3046 do
3047 eval ac_val=\$$ac_var
3048 case $ac_val in
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3050 esac
3051 $as_echo "$ac_var='\''$ac_val'\''"
3052 done | sort
3053 echo
3054 fi
3055
3056 if test -s confdefs.h; then
3057 cat <<\_ASBOX
3058 ## ----------- ##
3059 ## confdefs.h. ##
3060 ## ----------- ##
3061 _ASBOX
3062 echo
3063 cat confdefs.h
3064 echo
3065 fi
3066 test "$ac_signal" != 0 &&
3067 $as_echo "$as_me: caught signal $ac_signal"
3068 $as_echo "$as_me: exit $exit_status"
3069 } >&5
3070 rm -f core *.core core.conftest.* &&
3071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3072 exit $exit_status
3073 ' 0
3074 for ac_signal in 1 2 13 15; do
3075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3076 done
3077 ac_signal=0
3078
3079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3080 rm -f -r conftest* confdefs.h
3081
3082 $as_echo "/* confdefs.h */" > confdefs.h
3083
3084 # Predefined preprocessor variables.
3085
3086 cat >>confdefs.h <<_ACEOF
3087 #define PACKAGE_NAME "$PACKAGE_NAME"
3088 _ACEOF
3089
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3092 _ACEOF
3093
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3096 _ACEOF
3097
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE_STRING "$PACKAGE_STRING"
3100 _ACEOF
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3104 _ACEOF
3105
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_URL "$PACKAGE_URL"
3108 _ACEOF
3109
3110
3111 # Let the site file select an alternate cache file if it wants to.
3112 # Prefer an explicitly selected file to automatically selected ones.
3113 ac_site_file1=NONE
3114 ac_site_file2=NONE
3115 if test -n "$CONFIG_SITE"; then
3116 ac_site_file1=$CONFIG_SITE
3117 elif test "x$prefix" != xNONE; then
3118 ac_site_file1=$prefix/share/config.site
3119 ac_site_file2=$prefix/etc/config.site
3120 else
3121 ac_site_file1=$ac_default_prefix/share/config.site
3122 ac_site_file2=$ac_default_prefix/etc/config.site
3123 fi
3124 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3125 do
3126 test "x$ac_site_file" = xNONE && continue
3127 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3129 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3130 sed 's/^/| /' "$ac_site_file" >&5
3131 . "$ac_site_file"
3132 fi
3133 done
3134
3135 if test -r "$cache_file"; then
3136 # Some versions of bash will fail to source /dev/null (special files
3137 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3138 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3140 $as_echo "$as_me: loading cache $cache_file" >&6;}
3141 case $cache_file in
3142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3143 *) . "./$cache_file";;
3144 esac
3145 fi
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3148 $as_echo "$as_me: creating cache $cache_file" >&6;}
3149 >$cache_file
3150 fi
3151
3152 as_fn_append ac_header_list " sys/select.h"
3153 as_fn_append ac_header_list " sys/time.h"
3154 as_fn_append ac_header_list " utime.h"
3155 as_fn_append ac_header_list " linux/version.h"
3156 as_fn_append ac_header_list " sys/systeminfo.h"
3157 as_fn_append ac_header_list " stdio_ext.h"
3158 as_fn_append ac_header_list " fcntl.h"
3159 as_fn_append ac_header_list " coff.h"
3160 as_fn_append ac_header_list " pty.h"
3161 as_fn_append ac_header_list " sys/vlimit.h"
3162 as_fn_append ac_header_list " sys/resource.h"
3163 as_fn_append ac_header_list " sys/utsname.h"
3164 as_fn_append ac_header_list " pwd.h"
3165 as_fn_append ac_header_list " utmp.h"
3166 as_fn_append ac_header_list " dirent.h"
3167 as_fn_append ac_header_list " util.h"
3168 as_fn_append ac_header_list " sys/socket.h"
3169 as_fn_append ac_header_list " stdlib.h"
3170 as_fn_append ac_header_list " unistd.h"
3171 as_fn_append ac_header_list " sys/param.h"
3172 as_fn_append ac_header_list " pthread.h"
3173 as_fn_append ac_header_list " malloc/malloc.h"
3174 as_fn_append ac_header_list " maillock.h"
3175 as_fn_append ac_header_list " sys/un.h"
3176 as_fn_append ac_func_list " tzset"
3177 as_fn_append ac_func_list " readlinkat"
3178 gl_getopt_required=GNU
3179 as_fn_append ac_header_list " getopt.h"
3180 as_fn_append ac_header_list " wchar.h"
3181 as_fn_append ac_header_list " stdint.h"
3182 as_fn_append ac_header_list " inttypes.h"
3183 as_fn_append ac_func_list " lstat"
3184 as_fn_append ac_func_list " alarm"
3185 as_fn_append ac_func_list " pthread_sigmask"
3186 as_fn_append ac_func_list " readlink"
3187 as_fn_append ac_func_list " strtoimax"
3188 as_fn_append ac_func_list " strtoumax"
3189 as_fn_append ac_func_list " symlink"
3190 as_fn_append ac_header_list " sys/stat.h"
3191 as_fn_append ac_func_list " localtime_r"
3192 # Check that the precious variables saved in the cache have kept the same
3193 # value.
3194 ac_cache_corrupted=false
3195 for ac_var in $ac_precious_vars; do
3196 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3197 eval ac_new_set=\$ac_env_${ac_var}_set
3198 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3199 eval ac_new_val=\$ac_env_${ac_var}_value
3200 case $ac_old_set,$ac_new_set in
3201 set,)
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3204 ac_cache_corrupted=: ;;
3205 ,set)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3208 ac_cache_corrupted=: ;;
3209 ,);;
3210 *)
3211 if test "x$ac_old_val" != "x$ac_new_val"; then
3212 # differences in whitespace do not lead to failure.
3213 ac_old_val_w=`echo x $ac_old_val`
3214 ac_new_val_w=`echo x $ac_new_val`
3215 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3218 ac_cache_corrupted=:
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3222 eval $ac_var=\$ac_old_val
3223 fi
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3228 fi;;
3229 esac
3230 # Pass precious variables to config.status.
3231 if test "$ac_new_set" = set; then
3232 case $ac_new_val in
3233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3234 *) ac_arg=$ac_var=$ac_new_val ;;
3235 esac
3236 case " $ac_configure_args " in
3237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3238 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3239 esac
3240 fi
3241 done
3242 if $ac_cache_corrupted; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3247 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3248 fi
3249 ## -------------------- ##
3250 ## Main body of script. ##
3251 ## -------------------- ##
3252
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258
3259
3260 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3261
3262
3263 ac_aux_dir=
3264 for ac_dir in build-aux "$srcdir"/build-aux; do
3265 for ac_t in install-sh install.sh shtool; do
3266 if test -f "$ac_dir/$ac_t"; then
3267 ac_aux_dir=$ac_dir
3268 ac_install_sh="$ac_aux_dir/$ac_t -c"
3269 break 2
3270 fi
3271 done
3272 done
3273 if test -z "$ac_aux_dir"; then
3274 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3275 fi
3276
3277 # These three variables are undocumented and unsupported,
3278 # and are intended to be withdrawn in a future Autoconf release.
3279 # They can cause serious problems if a builder's source tree is in a directory
3280 # whose full name contains unusual characters.
3281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3283 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3284
3285
3286 am__api_version='1.11'
3287
3288 # Find a good install program. We prefer a C program (faster),
3289 # so one script is as good as another. But avoid the broken or
3290 # incompatible versions:
3291 # SysV /etc/install, /usr/sbin/install
3292 # SunOS /usr/etc/install
3293 # IRIX /sbin/install
3294 # AIX /bin/install
3295 # AmigaOS /C/install, which installs bootblocks on floppy discs
3296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3299 # OS/2's system install, which has a completely different semantic
3300 # ./install, which can be erroneously created by make from ./install.sh.
3301 # Reject install programs that cannot install multiple files.
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3303 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3304 if test -z "$INSTALL"; then
3305 if test "${ac_cv_path_install+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 # Account for people who put trailing slashes in PATH elements.
3314 case $as_dir/ in #((
3315 ./ | .// | /[cC]/* | \
3316 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3317 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3318 /usr/ucb/* ) ;;
3319 *)
3320 # OSF1 and SCO ODT 3.0 have their own names for install.
3321 # Don't use installbsd from OSF since it installs stuff as root
3322 # by default.
3323 for ac_prog in ginstall scoinst install; do
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3326 if test $ac_prog = install &&
3327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3328 # AIX install. It has an incompatible calling convention.
3329 :
3330 elif test $ac_prog = install &&
3331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3332 # program-specific install script used by HP pwplus--don't use.
3333 :
3334 else
3335 rm -rf conftest.one conftest.two conftest.dir
3336 echo one > conftest.one
3337 echo two > conftest.two
3338 mkdir conftest.dir
3339 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3340 test -s conftest.one && test -s conftest.two &&
3341 test -s conftest.dir/conftest.one &&
3342 test -s conftest.dir/conftest.two
3343 then
3344 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3345 break 3
3346 fi
3347 fi
3348 fi
3349 done
3350 done
3351 ;;
3352 esac
3353
3354 done
3355 IFS=$as_save_IFS
3356
3357 rm -rf conftest.one conftest.two conftest.dir
3358
3359 fi
3360 if test "${ac_cv_path_install+set}" = set; then
3361 INSTALL=$ac_cv_path_install
3362 else
3363 # As a last resort, use the slow shell script. Don't cache a
3364 # value for INSTALL within a source directory, because that will
3365 # break other packages using the cache if that directory is
3366 # removed, or if the value is a relative name.
3367 INSTALL=$ac_install_sh
3368 fi
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3371 $as_echo "$INSTALL" >&6; }
3372
3373 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3374 # It thinks the first close brace ends the variable substitution.
3375 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3376
3377 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3378
3379 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3380
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3382 $as_echo_n "checking whether build environment is sane... " >&6; }
3383 # Just in case
3384 sleep 1
3385 echo timestamp > conftest.file
3386 # Reject unsafe characters in $srcdir or the absolute working directory
3387 # name. Accept space and tab only in the latter.
3388 am_lf='
3389 '
3390 case `pwd` in
3391 *[\\\"\#\$\&\'\`$am_lf]*)
3392 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3393 esac
3394 case $srcdir in
3395 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3396 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3397 esac
3398
3399 # Do `set' in a subshell so we don't clobber the current shell's
3400 # arguments. Must try -L first in case configure is actually a
3401 # symlink; some systems play weird games with the mod time of symlinks
3402 # (eg FreeBSD returns the mod time of the symlink's containing
3403 # directory).
3404 if (
3405 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3406 if test "$*" = "X"; then
3407 # -L didn't work.
3408 set X `ls -t "$srcdir/configure" conftest.file`
3409 fi
3410 rm -f conftest.file
3411 if test "$*" != "X $srcdir/configure conftest.file" \
3412 && test "$*" != "X conftest.file $srcdir/configure"; then
3413
3414 # If neither matched, then we have a broken ls. This can happen
3415 # if, for instance, CONFIG_SHELL is bash and it inherits a
3416 # broken ls alias from the environment. This has actually
3417 # happened. Such a system could not be considered "sane".
3418 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3419 alias in your environment" "$LINENO" 5
3420 fi
3421
3422 test "$2" = conftest.file
3423 )
3424 then
3425 # Ok.
3426 :
3427 else
3428 as_fn_error "newly created file is older than distributed files!
3429 Check your system clock" "$LINENO" 5
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432 $as_echo "yes" >&6; }
3433 test "$program_prefix" != NONE &&
3434 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3435 # Use a double $ so make ignores it.
3436 test "$program_suffix" != NONE &&
3437 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3438 # Double any \ or $.
3439 # By default was `s,x,x', remove it if useless.
3440 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3441 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3442
3443 # expand $ac_aux_dir to an absolute path
3444 am_aux_dir=`cd $ac_aux_dir && pwd`
3445
3446 if test x"${MISSING+set}" != xset; then
3447 case $am_aux_dir in
3448 *\ * | *\ *)
3449 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3450 *)
3451 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3452 esac
3453 fi
3454 # Use eval to expand $SHELL
3455 if eval "$MISSING --run true"; then
3456 am_missing_run="$MISSING --run "
3457 else
3458 am_missing_run=
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3460 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3461 fi
3462
3463 if test x"${install_sh}" != xset; then
3464 case $am_aux_dir in
3465 *\ * | *\ *)
3466 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3467 *)
3468 install_sh="\${SHELL} $am_aux_dir/install-sh"
3469 esac
3470 fi
3471
3472 # Installed binaries are usually stripped using `strip' when the user
3473 # run `make install-strip'. However `strip' might not be the right
3474 # tool to use in cross-compilation environments, therefore Automake
3475 # will honor the `STRIP' environment variable to overrule this program.
3476 if test "$cross_compiling" != no; then
3477 if test -n "$ac_tool_prefix"; then
3478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3479 set dummy ${ac_tool_prefix}strip; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_STRIP+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$STRIP"; then
3486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499 done
3500 done
3501 IFS=$as_save_IFS
3502
3503 fi
3504 fi
3505 STRIP=$ac_cv_prog_STRIP
3506 if test -n "$STRIP"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3508 $as_echo "$STRIP" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 fi
3513
3514
3515 fi
3516 if test -z "$ac_cv_prog_STRIP"; then
3517 ac_ct_STRIP=$STRIP
3518 # Extract the first word of "strip", so it can be a program name with args.
3519 set dummy strip; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$ac_ct_STRIP"; then
3526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_ac_ct_STRIP="strip"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539 done
3540 done
3541 IFS=$as_save_IFS
3542
3543 fi
3544 fi
3545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3546 if test -n "$ac_ct_STRIP"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3548 $as_echo "$ac_ct_STRIP" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3552 fi
3553
3554 if test "x$ac_ct_STRIP" = x; then
3555 STRIP=":"
3556 else
3557 case $cross_compiling:$ac_tool_warned in
3558 yes:)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned=yes ;;
3562 esac
3563 STRIP=$ac_ct_STRIP
3564 fi
3565 else
3566 STRIP="$ac_cv_prog_STRIP"
3567 fi
3568
3569 fi
3570 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3571
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3573 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3574 if test -z "$MKDIR_P"; then
3575 if test "${ac_cv_path_mkdir+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3580 do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_prog in mkdir gmkdir; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3586 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3587 'mkdir (GNU coreutils) '* | \
3588 'mkdir (coreutils) '* | \
3589 'mkdir (fileutils) '4.1*)
3590 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3591 break 3;;
3592 esac
3593 done
3594 done
3595 done
3596 IFS=$as_save_IFS
3597
3598 fi
3599
3600 test -d ./--version && rmdir ./--version
3601 if test "${ac_cv_path_mkdir+set}" = set; then
3602 MKDIR_P="$ac_cv_path_mkdir -p"
3603 else
3604 # As a last resort, use the slow shell script. Don't cache a
3605 # value for MKDIR_P within a source directory, because that will
3606 # break other packages using the cache if that directory is
3607 # removed, or if the value is a relative name.
3608 MKDIR_P="$ac_install_sh -d"
3609 fi
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3612 $as_echo "$MKDIR_P" >&6; }
3613
3614
3615 mkdir_p="$MKDIR_P"
3616 case $mkdir_p in
3617 [\\/$]* | ?:[\\/]*) ;;
3618 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3619 esac
3620
3621 for ac_prog in gawk mawk nawk awk
3622 do
3623 # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set dummy $ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_AWK+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 if test -n "$AWK"; then
3631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_AWK="$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644 done
3645 done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 AWK=$ac_cv_prog_AWK
3651 if test -n "$AWK"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3653 $as_echo "$AWK" >&6; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660 test -n "$AWK" && break
3661 done
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3665 set x ${MAKE-make}
3666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3667 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat >conftest.make <<\_ACEOF
3671 SHELL = /bin/sh
3672 all:
3673 @echo '@@@%%%=$(MAKE)=@@@%%%'
3674 _ACEOF
3675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3677 *@@@%%%=?*=@@@%%%*)
3678 eval ac_cv_prog_make_${ac_make}_set=yes;;
3679 *)
3680 eval ac_cv_prog_make_${ac_make}_set=no;;
3681 esac
3682 rm -f conftest.make
3683 fi
3684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 $as_echo "yes" >&6; }
3687 SET_MAKE=
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3691 SET_MAKE="MAKE=${MAKE-make}"
3692 fi
3693
3694 rm -rf .tst 2>/dev/null
3695 mkdir .tst 2>/dev/null
3696 if test -d .tst; then
3697 am__leading_dot=.
3698 else
3699 am__leading_dot=_
3700 fi
3701 rmdir .tst 2>/dev/null
3702
3703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3704 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3705 # is not polluted with repeated "-I."
3706 am__isrc=' -I$(srcdir)'
3707 # test to see if srcdir already configured
3708 if test -f $srcdir/config.status; then
3709 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3710 fi
3711 fi
3712
3713 # test whether we have cygpath
3714 if test -z "$CYGPATH_W"; then
3715 if (cygpath --version) >/dev/null 2>/dev/null; then
3716 CYGPATH_W='cygpath -w'
3717 else
3718 CYGPATH_W=echo
3719 fi
3720 fi
3721
3722
3723 # Define the identity of the package.
3724 PACKAGE='emacs'
3725 VERSION='24.1.50'
3726
3727
3728 cat >>confdefs.h <<_ACEOF
3729 #define PACKAGE "$PACKAGE"
3730 _ACEOF
3731
3732
3733 cat >>confdefs.h <<_ACEOF
3734 #define VERSION "$VERSION"
3735 _ACEOF
3736
3737 # Some tools Automake needs.
3738
3739 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3740
3741
3742 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3743
3744
3745 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3746
3747
3748 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3749
3750
3751 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3752
3753 # We need awk for the "check" target. The system "awk" is bad on
3754 # some platforms.
3755 # Always define AMTAR for backward compatibility.
3756
3757 AMTAR=${AMTAR-"${am_missing_run}tar"}
3758
3759 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3760
3761
3762
3763
3764
3765
3766
3767
3768 lispdir='${datadir}/emacs/${version}/lisp'
3769 leimdir='${datadir}/emacs/${version}/leim'
3770 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3771 '${datadir}/emacs/site-lisp'
3772 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3773 etcdir='${datadir}/emacs/${version}/etc'
3774 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3775 docdir='${datadir}/emacs/${version}/etc'
3776 gamedir='${localstatedir}/games/emacs'
3777
3778
3779
3780
3781 # Check whether --with-pop was given.
3782 if test "${with_pop+set}" = set; then :
3783 withval=$with_pop;
3784 else
3785 with_pop=yes
3786 fi
3787
3788 if test "$with_pop" = yes; then
3789 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3790
3791 fi
3792
3793
3794 # Check whether --with-kerberos was given.
3795 if test "${with_kerberos+set}" = set; then :
3796 withval=$with_kerberos;
3797 else
3798 with_kerberos=no
3799 fi
3800
3801 if test "$with_kerberos" != no; then
3802 $as_echo "#define KERBEROS 1" >>confdefs.h
3803
3804 fi
3805
3806
3807 # Check whether --with-kerberos5 was given.
3808 if test "${with_kerberos5+set}" = set; then :
3809 withval=$with_kerberos5;
3810 else
3811 with_kerberos5=no
3812 fi
3813
3814 if test "${with_kerberos5}" != no; then
3815 if test "${with_kerberos}" = no; then
3816 with_kerberos=yes
3817 $as_echo "#define KERBEROS 1" >>confdefs.h
3818
3819 fi
3820
3821 $as_echo "#define KERBEROS5 1" >>confdefs.h
3822
3823 fi
3824
3825
3826 # Check whether --with-hesiod was given.
3827 if test "${with_hesiod+set}" = set; then :
3828 withval=$with_hesiod;
3829 else
3830 with_hesiod=no
3831 fi
3832
3833 if test "$with_hesiod" != no; then
3834
3835 $as_echo "#define HESIOD 1" >>confdefs.h
3836
3837 fi
3838
3839
3840 # Check whether --with-mmdf was given.
3841 if test "${with_mmdf+set}" = set; then :
3842 withval=$with_mmdf;
3843 else
3844 with_mmdf=no
3845 fi
3846
3847 if test "$with_mmdf" != no; then
3848
3849 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3850
3851 fi
3852
3853
3854 # Check whether --with-mail-unlink was given.
3855 if test "${with_mail_unlink+set}" = set; then :
3856 withval=$with_mail_unlink;
3857 else
3858 with_mail_unlink=no
3859 fi
3860
3861 if test "$with_mail_unlink" != no; then
3862
3863 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3864
3865 fi
3866
3867
3868 # Check whether --with-mailhost was given.
3869 if test "${with_mailhost+set}" = set; then :
3870 withval=$with_mailhost;
3871 cat >>confdefs.h <<_ACEOF
3872 #define MAILHOST "$withval"
3873 _ACEOF
3874
3875 fi
3876
3877
3878
3879 # Check whether --with-sound was given.
3880 if test "${with_sound+set}" = set; then :
3881 withval=$with_sound;
3882 else
3883 with_sound=yes
3884 fi
3885
3886
3887
3888 # Check whether --with-sync-input was given.
3889 if test "${with_sync_input+set}" = set; then :
3890 withval=$with_sync_input;
3891 else
3892 with_sync_input=yes
3893 fi
3894
3895 if test "$with_sync_input" = yes; then
3896
3897 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3898
3899 fi
3900
3901
3902 # Check whether --with-x-toolkit was given.
3903 if test "${with_x_toolkit+set}" = set; then :
3904 withval=$with_x_toolkit; case "${withval}" in
3905 y | ye | yes ) val=gtk ;;
3906 n | no ) val=no ;;
3907 l | lu | luc | luci | lucid ) val=lucid ;;
3908 a | at | ath | athe | athen | athena ) val=athena ;;
3909 m | mo | mot | moti | motif ) val=motif ;;
3910 g | gt | gtk ) val=gtk ;;
3911 gtk3 ) val=gtk3 ;;
3912 * )
3913 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3914 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3915 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3916 ;;
3917 esac
3918 with_x_toolkit=$val
3919
3920 fi
3921
3922
3923
3924 # Check whether --with-wide-int was given.
3925 if test "${with_wide_int+set}" = set; then :
3926 withval=$with_wide_int;
3927 else
3928 with_wide_int=no
3929 fi
3930
3931 if test "$with_wide_int" = yes; then
3932
3933 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3934
3935 fi
3936
3937
3938 # Check whether --with-xpm was given.
3939 if test "${with_xpm+set}" = set; then :
3940 withval=$with_xpm;
3941 else
3942 with_xpm=yes
3943 fi
3944
3945
3946 # Check whether --with-jpeg was given.
3947 if test "${with_jpeg+set}" = set; then :
3948 withval=$with_jpeg;
3949 else
3950 with_jpeg=yes
3951 fi
3952
3953
3954 # Check whether --with-tiff was given.
3955 if test "${with_tiff+set}" = set; then :
3956 withval=$with_tiff;
3957 else
3958 with_tiff=yes
3959 fi
3960
3961
3962 # Check whether --with-gif was given.
3963 if test "${with_gif+set}" = set; then :
3964 withval=$with_gif;
3965 else
3966 with_gif=yes
3967 fi
3968
3969
3970 # Check whether --with-png was given.
3971 if test "${with_png+set}" = set; then :
3972 withval=$with_png;
3973 else
3974 with_png=yes
3975 fi
3976
3977
3978 # Check whether --with-rsvg was given.
3979 if test "${with_rsvg+set}" = set; then :
3980 withval=$with_rsvg;
3981 else
3982 with_rsvg=yes
3983 fi
3984
3985
3986 # Check whether --with-xml2 was given.
3987 if test "${with_xml2+set}" = set; then :
3988 withval=$with_xml2;
3989 else
3990 with_xml2=yes
3991 fi
3992
3993
3994 # Check whether --with-imagemagick was given.
3995 if test "${with_imagemagick+set}" = set; then :
3996 withval=$with_imagemagick;
3997 else
3998 with_imagemagick=yes
3999 fi
4000
4001
4002
4003 # Check whether --with-xft was given.
4004 if test "${with_xft+set}" = set; then :
4005 withval=$with_xft;
4006 else
4007 with_xft=yes
4008 fi
4009
4010
4011 # Check whether --with-libotf was given.
4012 if test "${with_libotf+set}" = set; then :
4013 withval=$with_libotf;
4014 else
4015 with_libotf=yes
4016 fi
4017
4018
4019 # Check whether --with-m17n-flt was given.
4020 if test "${with_m17n_flt+set}" = set; then :
4021 withval=$with_m17n_flt;
4022 else
4023 with_m17n_flt=yes
4024 fi
4025
4026
4027
4028 # Check whether --with-toolkit-scroll-bars was given.
4029 if test "${with_toolkit_scroll_bars+set}" = set; then :
4030 withval=$with_toolkit_scroll_bars;
4031 else
4032 with_toolkit_scroll_bars=yes
4033 fi
4034
4035
4036 # Check whether --with-xaw3d was given.
4037 if test "${with_xaw3d+set}" = set; then :
4038 withval=$with_xaw3d;
4039 else
4040 with_xaw3d=yes
4041 fi
4042
4043
4044 # Check whether --with-xim was given.
4045 if test "${with_xim+set}" = set; then :
4046 withval=$with_xim;
4047 else
4048 with_xim=yes
4049 fi
4050
4051
4052 # Check whether --with-ns was given.
4053 if test "${with_ns+set}" = set; then :
4054 withval=$with_ns;
4055 else
4056 with_ns=no
4057 fi
4058
4059
4060
4061 # Check whether --with-gpm was given.
4062 if test "${with_gpm+set}" = set; then :
4063 withval=$with_gpm;
4064 else
4065 with_gpm=yes
4066 fi
4067
4068
4069 # Check whether --with-dbus was given.
4070 if test "${with_dbus+set}" = set; then :
4071 withval=$with_dbus;
4072 else
4073 with_dbus=yes
4074 fi
4075
4076
4077 # Check whether --with-gconf was given.
4078 if test "${with_gconf+set}" = set; then :
4079 withval=$with_gconf;
4080 else
4081 with_gconf=yes
4082 fi
4083
4084
4085 # Check whether --with-gsettings was given.
4086 if test "${with_gsettings+set}" = set; then :
4087 withval=$with_gsettings;
4088 else
4089 with_gsettings=yes
4090 fi
4091
4092
4093 # Check whether --with-selinux was given.
4094 if test "${with_selinux+set}" = set; then :
4095 withval=$with_selinux;
4096 else
4097 with_selinux=yes
4098 fi
4099
4100
4101 # Check whether --with-gnutls was given.
4102 if test "${with_gnutls+set}" = set; then :
4103 withval=$with_gnutls;
4104 else
4105 with_gnutls=yes
4106 fi
4107
4108
4109 ## For the times when you want to build Emacs but don't have
4110 ## a suitable makeinfo, and can live without the manuals.
4111
4112 # Check whether --with-makeinfo was given.
4113 if test "${with_makeinfo+set}" = set; then :
4114 withval=$with_makeinfo;
4115 else
4116 with_makeinfo=yes
4117 fi
4118
4119
4120 ## Makefile.in needs the cache file name.
4121
4122
4123 ## This is an option because I do not know if all info/man support
4124 ## compressed files, nor how to test if they do so.
4125
4126 # Check whether --with-compress-info was given.
4127 if test "${with_compress_info+set}" = set; then :
4128 withval=$with_compress_info;
4129 else
4130 with_compress_info=yes
4131 fi
4132
4133 if test $with_compress_info = yes; then
4134 GZIP_INFO=yes
4135 else
4136 GZIP_INFO=
4137 fi
4138
4139
4140
4141 # Check whether --with-pkg-config-prog was given.
4142 if test "${with_pkg_config_prog+set}" = set; then :
4143 withval=$with_pkg_config_prog;
4144 fi
4145
4146 if test "X${with_pkg_config_prog}" != X; then
4147 if test "${with_pkg_config_prog}" != yes; then
4148 PKG_CONFIG="${with_pkg_config_prog}"
4149 fi
4150 fi
4151
4152 CRT_DIR=
4153
4154 # Check whether --with-crt-dir was given.
4155 if test "${with_crt_dir+set}" = set; then :
4156 withval=$with_crt_dir;
4157 fi
4158
4159 CRT_DIR="${with_crt_dir}"
4160
4161
4162 # Check whether --with-gameuser was given.
4163 if test "${with_gameuser+set}" = set; then :
4164 withval=$with_gameuser;
4165 fi
4166
4167 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4168 && gameuser="${with_gameuser}"
4169 test "X$gameuser" = X && gameuser=games
4170
4171
4172 # Check whether --with-gnustep-conf was given.
4173 if test "${with_gnustep_conf+set}" = set; then :
4174 withval=$with_gnustep_conf;
4175 fi
4176
4177 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4178 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4179 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4180 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4181
4182 # Check whether --enable-ns-self-contained was given.
4183 if test "${enable_ns_self_contained+set}" = set; then :
4184 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4185 else
4186 EN_NS_SELF_CONTAINED=yes
4187 fi
4188
4189
4190 # Check whether --enable-asserts was given.
4191 if test "${enable_asserts+set}" = set; then :
4192 enableval=$enable_asserts; USE_XASSERTS=$enableval
4193 else
4194 USE_XASSERTS=no
4195 fi
4196
4197
4198 # Check whether --enable-locallisppath was given.
4199 if test "${enable_locallisppath+set}" = set; then :
4200 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4201 locallisppath=
4202 elif test "${enableval}" != "yes"; then
4203 locallisppath=${enableval}
4204 fi
4205 fi
4206
4207
4208 # Check whether --enable-checking was given.
4209 if test "${enable_checking+set}" = set; then :
4210 enableval=$enable_checking; ac_checking_flags="${enableval}"
4211 fi
4212
4213 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4214 for check in $ac_checking_flags
4215 do
4216 case $check in
4217 # these set all the flags to specific states
4218 yes) ac_enable_checking=1 ;;
4219 no) ac_enable_checking= ;
4220 ac_gc_check_stringbytes= ;
4221 ac_gc_check_string_overrun= ;
4222 ac_gc_check_string_free_list= ;
4223 ac_xmalloc_overrun= ;
4224 ac_gc_check_cons_list= ;;
4225 all) ac_enable_checking=1 ;
4226 ac_gc_check_stringbytes=1 ;
4227 ac_gc_check_string_overrun=1 ;
4228 ac_gc_check_string_free_list=1 ;
4229 ac_xmalloc_overrun=1 ;
4230 ac_gc_check_cons_list=1 ;;
4231 # these enable particular checks
4232 stringbytes) ac_gc_check_stringbytes=1 ;;
4233 stringoverrun) ac_gc_check_string_overrun=1 ;;
4234 stringfreelist) ac_gc_check_string_free_list=1 ;;
4235 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4236 conslist) ac_gc_check_cons_list=1 ;;
4237 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4238 esac
4239 done
4240 IFS="$ac_save_IFS"
4241
4242 if test x$ac_enable_checking != x ; then
4243
4244 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4245
4246 fi
4247 if test x$ac_gc_check_stringbytes != x ; then
4248
4249 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4250
4251 fi
4252 if test x$ac_gc_check_string_overrun != x ; then
4253
4254 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4255
4256 fi
4257 if test x$ac_gc_check_string_free_list != x ; then
4258
4259 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4260
4261 fi
4262 if test x$ac_xmalloc_overrun != x ; then
4263
4264 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4265
4266 fi
4267 if test x$ac_gc_check_cons_list != x ; then
4268
4269 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4270
4271 fi
4272
4273 # Check whether --enable-use-lisp-union-type was given.
4274 if test "${enable_use_lisp_union_type+set}" = set; then :
4275 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4276
4277 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4278
4279 fi
4280 fi
4281
4282
4283
4284 # Check whether --enable-profiling was given.
4285 if test "${enable_profiling+set}" = set; then :
4286 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4287 fi
4288
4289 if test x$ac_enable_profiling != x ; then
4290 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4291 else
4292 PROFILING_CFLAGS=
4293 fi
4294
4295
4296 # Check whether --enable-autodepend was given.
4297 if test "${enable_autodepend+set}" = set; then :
4298 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4299 else
4300 ac_enable_autodepend=yes
4301 fi
4302
4303
4304 #### Make srcdir absolute, if it isn't already. It's important to
4305 #### avoid running the path through pwd unnecessarily, since pwd can
4306 #### give you automounter prefixes, which can go away. We do all this
4307 #### so Emacs can find its files when run uninstalled.
4308 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4309 unset CDPATH
4310 case "${srcdir}" in
4311 /* ) ;;
4312 . )
4313 ## We may be able to use the $PWD environment variable to make this
4314 ## absolute. But sometimes PWD is inaccurate.
4315 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4316 ## but that tested only for a well-formed and valid PWD,
4317 ## it did not object when PWD was well-formed and valid but just wrong.
4318 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4319 then
4320 srcdir="$PWD"
4321 else
4322 srcdir="`(cd ${srcdir}; pwd)`"
4323 fi
4324 ;;
4325 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4326 esac
4327
4328 #### Given the configuration name, set opsysfile to the
4329 #### name of s/*.h file we should use.
4330
4331 ### Canonicalize the configuration name.
4332
4333 # Make sure we can run config.sub.
4334 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4335 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4338 $as_echo_n "checking build system type... " >&6; }
4339 if test "${ac_cv_build+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 ac_build_alias=$build_alias
4343 test "x$ac_build_alias" = x &&
4344 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4345 test "x$ac_build_alias" = x &&
4346 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4347 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4348 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4349
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4352 $as_echo "$ac_cv_build" >&6; }
4353 case $ac_cv_build in
4354 *-*-*) ;;
4355 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4356 esac
4357 build=$ac_cv_build
4358 ac_save_IFS=$IFS; IFS='-'
4359 set x $ac_cv_build
4360 shift
4361 build_cpu=$1
4362 build_vendor=$2
4363 shift; shift
4364 # Remember, the first character of IFS is used to create $*,
4365 # except with old shells:
4366 build_os=$*
4367 IFS=$ac_save_IFS
4368 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4369
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4372 $as_echo_n "checking host system type... " >&6; }
4373 if test "${ac_cv_host+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test "x$host_alias" = x; then
4377 ac_cv_host=$ac_cv_build
4378 else
4379 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4380 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4381 fi
4382
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4385 $as_echo "$ac_cv_host" >&6; }
4386 case $ac_cv_host in
4387 *-*-*) ;;
4388 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4389 esac
4390 host=$ac_cv_host
4391 ac_save_IFS=$IFS; IFS='-'
4392 set x $ac_cv_host
4393 shift
4394 host_cpu=$1
4395 host_vendor=$2
4396 shift; shift
4397 # Remember, the first character of IFS is used to create $*,
4398 # except with old shells:
4399 host_os=$*
4400 IFS=$ac_save_IFS
4401 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4402
4403
4404 canonical=$host
4405 configuration=${host_alias-${build_alias-$host}}
4406
4407
4408
4409 ### If you add support for a new configuration, add code to this
4410 ### switch statement to recognize your configuration name and select
4411 ### the appropriate operating system file.
4412
4413 ### You would hope that you could choose an s/*.h
4414 ### file based on the operating system portion. However, it turns out
4415 ### that each s/*.h file is pretty manufacturer-specific.
4416 ### So we basically have to have a special case for each
4417 ### configuration name.
4418 ###
4419 ### As far as handling version numbers on operating systems is
4420 ### concerned, make sure things will fail in a fixable way. If
4421 ### /etc/MACHINES doesn't say anything about version numbers, be
4422 ### prepared to handle anything reasonably. If version numbers
4423 ### matter, be sure /etc/MACHINES says something about it.
4424
4425 opsys='' unported=no
4426 case "${canonical}" in
4427
4428 ## GNU/Linux and similar ports
4429 *-*-linux* )
4430 opsys=gnu-linux
4431 ;;
4432
4433 ## FreeBSD ports
4434 *-*-freebsd* )
4435 opsys=freebsd
4436 ;;
4437
4438 ## FreeBSD kernel + glibc based userland
4439 *-*-kfreebsd*gnu* )
4440 opsys=gnu-kfreebsd
4441 ;;
4442
4443 ## NetBSD ports
4444 *-*-netbsd* )
4445 opsys=netbsd
4446 ;;
4447
4448 ## OpenBSD ports
4449 *-*-openbsd* )
4450 opsys=openbsd
4451 ;;
4452
4453 ## Apple Darwin / Mac OS X
4454 *-apple-darwin* )
4455 case "${canonical}" in
4456 i[3456]86-* ) ;;
4457 powerpc-* ) ;;
4458 x86_64-* ) ;;
4459 * ) unported=yes ;;
4460 esac
4461 opsys=darwin
4462 ## Use fink packages if available.
4463 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4464 ## if test -d /sw/include && test -d /sw/lib; then
4465 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4466 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4467 ## fi
4468 ;;
4469
4470 ## HP 9000 series 700 and 800, running HP/UX
4471 hppa*-hp-hpux10.2* )
4472 opsys=hpux10-20
4473 ;;
4474 hppa*-hp-hpux1[1-9]* )
4475 opsys=hpux11
4476 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4477 ;;
4478
4479 ## IBM machines
4480 rs6000-ibm-aix4.[23]* )
4481 opsys=aix4-2
4482 ;;
4483 powerpc-ibm-aix4.[23]* )
4484 opsys=aix4-2
4485 ;;
4486 rs6000-ibm-aix[56]* )
4487 opsys=aix4-2
4488 ;;
4489 powerpc-ibm-aix[56]* )
4490 opsys=aix4-2
4491 ;;
4492
4493 ## Silicon Graphics machines
4494 ## Iris 4D
4495 mips-sgi-irix6.5 )
4496 opsys=irix6-5
4497 # Without defining _LANGUAGE_C, things get masked out in the headers
4498 # so that, for instance, grepping for `free' in stdlib.h fails and
4499 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4500 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4501 ;;
4502
4503 ## Suns
4504 *-sun-solaris* \
4505 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4506 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4507 case "${canonical}" in
4508 i[3456]86-*-* ) ;;
4509 amd64-*-*|x86_64-*-*) ;;
4510 sparc* ) ;;
4511 * ) unported=yes ;;
4512 esac
4513 case "${canonical}" in
4514 *-sunos5.6* | *-solaris2.6* )
4515 opsys=sol2-6
4516 RANLIB="ar -ts"
4517 ;;
4518 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4519 opsys=sol2-6
4520 emacs_check_sunpro_c=yes
4521 ;;
4522 *-sunos5* | *-solaris* )
4523 opsys=sol2-10
4524 emacs_check_sunpro_c=yes
4525 ;;
4526 esac
4527 ## Watch out for a compiler that we know will not work.
4528 case "${canonical}" in
4529 *-solaris* | *-sunos5* )
4530 if [ "x$CC" = x/usr/ucb/cc ]; then
4531 ## /usr/ucb/cc doesn't work;
4532 ## we should find some other compiler that does work.
4533 unset CC
4534 fi
4535 ;;
4536 *) ;;
4537 esac
4538 ;;
4539
4540 ## Intel 386 machines where we don't care about the manufacturer.
4541 i[3456]86-*-* )
4542 case "${canonical}" in
4543 *-cygwin ) opsys=cygwin ;;
4544 *-darwin* ) opsys=darwin ;;
4545 *-sysv4.2uw* ) opsys=unixware ;;
4546 *-sysv5uw* ) opsys=unixware ;;
4547 *-sysv5OpenUNIX* ) opsys=unixware ;;
4548 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4549 esac
4550 ;;
4551
4552 * )
4553 unported=yes
4554 ;;
4555 esac
4556
4557 ### If the code above didn't choose an operating system, just choose
4558 ### an operating system based on the configuration name. You really
4559 ### only want to use this when you have no idea what the right
4560 ### operating system is; if you know what operating systems a machine
4561 ### runs, it's cleaner to make it explicit in the case statement
4562 ### above.
4563 if test x"${opsys}" = x; then
4564 case "${canonical}" in
4565 *-gnu* ) opsys=gnu ;;
4566 * )
4567 unported=yes
4568 ;;
4569 esac
4570 fi
4571
4572
4573
4574 if test $unported = yes; then
4575 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4576 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4577 fi
4578
4579 opsysfile="s/${opsys}.h"
4580
4581
4582 #### Choose a compiler.
4583
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if test "${ac_cv_prog_CC+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 CC=$ac_cv_prog_CC
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626
4627 fi
4628 if test -z "$ac_cv_prog_CC"; then
4629 ac_ct_CC=$CC
4630 # Extract the first word of "gcc", so it can be a program name with args.
4631 set dummy gcc; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$ac_ct_CC"; then
4638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_ac_ct_CC="gcc"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4650 fi
4651 done
4652 done
4653 IFS=$as_save_IFS
4654
4655 fi
4656 fi
4657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4658 if test -n "$ac_ct_CC"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4660 $as_echo "$ac_ct_CC" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666 if test "x$ac_ct_CC" = x; then
4667 CC=""
4668 else
4669 case $cross_compiling:$ac_tool_warned in
4670 yes:)
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673 ac_tool_warned=yes ;;
4674 esac
4675 CC=$ac_ct_CC
4676 fi
4677 else
4678 CC="$ac_cv_prog_CC"
4679 fi
4680
4681 if test -z "$CC"; then
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}cc; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_CC+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$CC"; then
4691 ac_cv_prog_CC="$CC" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_CC="${ac_tool_prefix}cc"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 CC=$ac_cv_prog_CC
4711 if test -n "$CC"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4713 $as_echo "$CC" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719
4720 fi
4721 fi
4722 if test -z "$CC"; then
4723 # Extract the first word of "cc", so it can be a program name with args.
4724 set dummy cc; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_prog_CC+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test -n "$CC"; then
4731 ac_cv_prog_CC="$CC" # Let the user override the test.
4732 else
4733 ac_prog_rejected=no
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4742 ac_prog_rejected=yes
4743 continue
4744 fi
4745 ac_cv_prog_CC="cc"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753 if test $ac_prog_rejected = yes; then
4754 # We found a bogon in the path, so make sure we never use it.
4755 set dummy $ac_cv_prog_CC
4756 shift
4757 if test $# != 0; then
4758 # We chose a different compiler from the bogus one.
4759 # However, it has the same basename, so the bogon will be chosen
4760 # first if we set CC to just the basename; use the full file name.
4761 shift
4762 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4763 fi
4764 fi
4765 fi
4766 fi
4767 CC=$ac_cv_prog_CC
4768 if test -n "$CC"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770 $as_echo "$CC" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776
4777 fi
4778 if test -z "$CC"; then
4779 if test -n "$ac_tool_prefix"; then
4780 for ac_prog in cl.exe
4781 do
4782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_CC+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if test -n "$CC"; then
4790 ac_cv_prog_CC="$CC" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803 done
4804 done
4805 IFS=$as_save_IFS
4806
4807 fi
4808 fi
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812 $as_echo "$CC" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819 test -n "$CC" && break
4820 done
4821 fi
4822 if test -z "$CC"; then
4823 ac_ct_CC=$CC
4824 for ac_prog in cl.exe
4825 do
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$ac_ct_CC"; then
4834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_ac_ct_CC="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4846 fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4854 if test -n "$ac_ct_CC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4856 $as_echo "$ac_ct_CC" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862
4863 test -n "$ac_ct_CC" && break
4864 done
4865
4866 if test "x$ac_ct_CC" = x; then
4867 CC=""
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 CC=$ac_ct_CC
4876 fi
4877 fi
4878
4879 fi
4880
4881
4882 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4884 as_fn_error "no acceptable C compiler found in \$PATH
4885 See \`config.log' for more details." "$LINENO" 5; }
4886
4887 # Provide some information about the compiler.
4888 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4889 set X $ac_compile
4890 ac_compiler=$2
4891 for ac_option in --version -v -V -qversion; do
4892 { { ac_try="$ac_compiler $ac_option >&5"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898 $as_echo "$ac_try_echo"; } >&5
4899 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4900 ac_status=$?
4901 if test -s conftest.err; then
4902 sed '10a\
4903 ... rest of stderr output deleted ...
4904 10q' conftest.err >conftest.er1
4905 cat conftest.er1 >&5
4906 fi
4907 rm -f conftest.er1 conftest.err
4908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4909 test $ac_status = 0; }
4910 done
4911
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914
4915 int
4916 main ()
4917 {
4918
4919 ;
4920 return 0;
4921 }
4922 _ACEOF
4923 ac_clean_files_save=$ac_clean_files
4924 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4925 # Try to create an executable without -o first, disregard a.out.
4926 # It will help us diagnose broken compilers, and finding out an intuition
4927 # of exeext.
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4929 $as_echo_n "checking whether the C compiler works... " >&6; }
4930 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4931
4932 # The possible output files:
4933 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4934
4935 ac_rmfiles=
4936 for ac_file in $ac_files
4937 do
4938 case $ac_file in
4939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4940 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4941 esac
4942 done
4943 rm -f $ac_rmfiles
4944
4945 if { { ac_try="$ac_link_default"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4951 $as_echo "$ac_try_echo"; } >&5
4952 (eval "$ac_link_default") 2>&5
4953 ac_status=$?
4954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }; then :
4956 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4957 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4958 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4959 # so that the user can short-circuit this test for compilers unknown to
4960 # Autoconf.
4961 for ac_file in $ac_files ''
4962 do
4963 test -f "$ac_file" || continue
4964 case $ac_file in
4965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4966 ;;
4967 [ab].out )
4968 # We found the default executable, but exeext='' is most
4969 # certainly right.
4970 break;;
4971 *.* )
4972 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4973 then :; else
4974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4975 fi
4976 # We set ac_cv_exeext here because the later test for it is not
4977 # safe: cross compilers may not add the suffix if given an `-o'
4978 # argument, so we may need to know it at that point already.
4979 # Even if this section looks crufty: it has the advantage of
4980 # actually working.
4981 break;;
4982 * )
4983 break;;
4984 esac
4985 done
4986 test "$ac_cv_exeext" = no && ac_cv_exeext=
4987
4988 else
4989 ac_file=''
4990 fi
4991 if test -z "$ac_file"; then :
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 $as_echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4999 { as_fn_set_status 77
5000 as_fn_error "C compiler cannot create executables
5001 See \`config.log' for more details." "$LINENO" 5; }; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004 $as_echo "yes" >&6; }
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5007 $as_echo_n "checking for C compiler default output file name... " >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5009 $as_echo "$ac_file" >&6; }
5010 ac_exeext=$ac_cv_exeext
5011
5012 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5013 ac_clean_files=$ac_clean_files_save
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5015 $as_echo_n "checking for suffix of executables... " >&6; }
5016 if { { ac_try="$ac_link"
5017 case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5020 esac
5021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5022 $as_echo "$ac_try_echo"; } >&5
5023 (eval "$ac_link") 2>&5
5024 ac_status=$?
5025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5026 test $ac_status = 0; }; then :
5027 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5028 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5029 # work properly (i.e., refer to `conftest.exe'), while it won't with
5030 # `rm'.
5031 for ac_file in conftest.exe conftest conftest.*; do
5032 test -f "$ac_file" || continue
5033 case $ac_file in
5034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5036 break;;
5037 * ) break;;
5038 esac
5039 done
5040 else
5041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5043 as_fn_error "cannot compute suffix of executables: cannot compile and link
5044 See \`config.log' for more details." "$LINENO" 5; }
5045 fi
5046 rm -f conftest conftest$ac_cv_exeext
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5048 $as_echo "$ac_cv_exeext" >&6; }
5049
5050 rm -f conftest.$ac_ext
5051 EXEEXT=$ac_cv_exeext
5052 ac_exeext=$EXEEXT
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055 #include <stdio.h>
5056 int
5057 main ()
5058 {
5059 FILE *f = fopen ("conftest.out", "w");
5060 return ferror (f) || fclose (f) != 0;
5061
5062 ;
5063 return 0;
5064 }
5065 _ACEOF
5066 ac_clean_files="$ac_clean_files conftest.out"
5067 # Check that the compiler produces executables we can run. If not, either
5068 # the compiler is broken, or we cross compile.
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5070 $as_echo_n "checking whether we are cross compiling... " >&6; }
5071 if test "$cross_compiling" != yes; then
5072 { { ac_try="$ac_link"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5078 $as_echo "$ac_try_echo"; } >&5
5079 (eval "$ac_link") 2>&5
5080 ac_status=$?
5081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5082 test $ac_status = 0; }
5083 if { ac_try='./conftest$ac_cv_exeext'
5084 { { case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5089 $as_echo "$ac_try_echo"; } >&5
5090 (eval "$ac_try") 2>&5
5091 ac_status=$?
5092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093 test $ac_status = 0; }; }; then
5094 cross_compiling=no
5095 else
5096 if test "$cross_compiling" = maybe; then
5097 cross_compiling=yes
5098 else
5099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101 as_fn_error "cannot run C compiled programs.
5102 If you meant to cross compile, use \`--host'.
5103 See \`config.log' for more details." "$LINENO" 5; }
5104 fi
5105 fi
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5108 $as_echo "$cross_compiling" >&6; }
5109
5110 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5111 ac_clean_files=$ac_clean_files_save
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5113 $as_echo_n "checking for suffix of object files... " >&6; }
5114 if test "${ac_cv_objext+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119
5120 int
5121 main ()
5122 {
5123
5124 ;
5125 return 0;
5126 }
5127 _ACEOF
5128 rm -f conftest.o conftest.obj
5129 if { { ac_try="$ac_compile"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5135 $as_echo "$ac_try_echo"; } >&5
5136 (eval "$ac_compile") 2>&5
5137 ac_status=$?
5138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139 test $ac_status = 0; }; then :
5140 for ac_file in conftest.o conftest.obj conftest.*; do
5141 test -f "$ac_file" || continue;
5142 case $ac_file in
5143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5145 break;;
5146 esac
5147 done
5148 else
5149 $as_echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5154 as_fn_error "cannot compute suffix of object files: cannot compile
5155 See \`config.log' for more details." "$LINENO" 5; }
5156 fi
5157 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5160 $as_echo "$ac_cv_objext" >&6; }
5161 OBJEXT=$ac_cv_objext
5162 ac_objext=$OBJEXT
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5164 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5165 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170
5171 int
5172 main ()
5173 {
5174 #ifndef __GNUC__
5175 choke me
5176 #endif
5177
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 if ac_fn_c_try_compile "$LINENO"; then :
5183 ac_compiler_gnu=yes
5184 else
5185 ac_compiler_gnu=no
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5189
5190 fi
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5192 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5193 if test $ac_compiler_gnu = yes; then
5194 GCC=yes
5195 else
5196 GCC=
5197 fi
5198 ac_test_CFLAGS=${CFLAGS+set}
5199 ac_save_CFLAGS=$CFLAGS
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5201 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5202 if test "${ac_cv_prog_cc_g+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 ac_save_c_werror_flag=$ac_c_werror_flag
5206 ac_c_werror_flag=yes
5207 ac_cv_prog_cc_g=no
5208 CFLAGS="-g"
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211
5212 int
5213 main ()
5214 {
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 ac_cv_prog_cc_g=yes
5222 else
5223 CFLAGS=""
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226
5227 int
5228 main ()
5229 {
5230
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236
5237 else
5238 ac_c_werror_flag=$ac_save_c_werror_flag
5239 CFLAGS="-g"
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242
5243 int
5244 main ()
5245 {
5246
5247 ;
5248 return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252 ac_cv_prog_cc_g=yes
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 ac_c_werror_flag=$ac_save_c_werror_flag
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5262 $as_echo "$ac_cv_prog_cc_g" >&6; }
5263 if test "$ac_test_CFLAGS" = set; then
5264 CFLAGS=$ac_save_CFLAGS
5265 elif test $ac_cv_prog_cc_g = yes; then
5266 if test "$GCC" = yes; then
5267 CFLAGS="-g -O2"
5268 else
5269 CFLAGS="-g"
5270 fi
5271 else
5272 if test "$GCC" = yes; then
5273 CFLAGS="-O2"
5274 else
5275 CFLAGS=
5276 fi
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5279 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5280 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 ac_cv_prog_cc_c89=no
5284 ac_save_CC=$CC
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #include <stdarg.h>
5288 #include <stdio.h>
5289 #include <sys/types.h>
5290 #include <sys/stat.h>
5291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5292 struct buf { int x; };
5293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5294 static char *e (p, i)
5295 char **p;
5296 int i;
5297 {
5298 return p[i];
5299 }
5300 static char *f (char * (*g) (char **, int), char **p, ...)
5301 {
5302 char *s;
5303 va_list v;
5304 va_start (v,p);
5305 s = g (p, va_arg (v,int));
5306 va_end (v);
5307 return s;
5308 }
5309
5310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5311 function prototypes and stuff, but not '\xHH' hex character constants.
5312 These don't provoke an error unfortunately, instead are silently treated
5313 as 'x'. The following induces an error, until -std is added to get
5314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5315 array size at least. It's necessary to write '\x00'==0 to get something
5316 that's true only with -std. */
5317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5318
5319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5320 inside strings and character constants. */
5321 #define FOO(x) 'x'
5322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5323
5324 int test (int i, double x);
5325 struct s1 {int (*f) (int a);};
5326 struct s2 {int (*f) (double a);};
5327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5328 int argc;
5329 char **argv;
5330 int
5331 main ()
5332 {
5333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5340 do
5341 CC="$ac_save_CC $ac_arg"
5342 if ac_fn_c_try_compile "$LINENO"; then :
5343 ac_cv_prog_cc_c89=$ac_arg
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext
5346 test "x$ac_cv_prog_cc_c89" != "xno" && break
5347 done
5348 rm -f conftest.$ac_ext
5349 CC=$ac_save_CC
5350
5351 fi
5352 # AC_CACHE_VAL
5353 case "x$ac_cv_prog_cc_c89" in
5354 x)
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5356 $as_echo "none needed" >&6; } ;;
5357 xno)
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5359 $as_echo "unsupported" >&6; } ;;
5360 *)
5361 CC="$CC $ac_cv_prog_cc_c89"
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5363 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5364 esac
5365 if test "x$ac_cv_prog_cc_c89" != xno; then :
5366
5367 fi
5368
5369 ac_ext=c
5370 ac_cpp='$CPP $CPPFLAGS'
5371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374 DEPDIR="${am__leading_dot}deps"
5375
5376 ac_config_commands="$ac_config_commands depfiles"
5377
5378
5379 am_make=${MAKE-make}
5380 cat > confinc << 'END'
5381 am__doit:
5382 @echo this is the am__doit target
5383 .PHONY: am__doit
5384 END
5385 # If we don't find an include directive, just comment out the code.
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5387 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5388 am__include="#"
5389 am__quote=
5390 _am_result=none
5391 # First try GNU make style include.
5392 echo "include confinc" > confmf
5393 # Ignore all kinds of additional output from `make'.
5394 case `$am_make -s -f confmf 2> /dev/null` in #(
5395 *the\ am__doit\ target*)
5396 am__include=include
5397 am__quote=
5398 _am_result=GNU
5399 ;;
5400 esac
5401 # Now try BSD make style include.
5402 if test "$am__include" = "#"; then
5403 echo '.include "confinc"' > confmf
5404 case `$am_make -s -f confmf 2> /dev/null` in #(
5405 *the\ am__doit\ target*)
5406 am__include=.include
5407 am__quote="\""
5408 _am_result=BSD
5409 ;;
5410 esac
5411 fi
5412
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5415 $as_echo "$_am_result" >&6; }
5416 rm -f confinc confmf
5417
5418 # Check whether --enable-dependency-tracking was given.
5419 if test "${enable_dependency_tracking+set}" = set; then :
5420 enableval=$enable_dependency_tracking;
5421 fi
5422
5423 if test "x$enable_dependency_tracking" != xno; then
5424 am_depcomp="$ac_aux_dir/depcomp"
5425 AMDEPBACKSLASH='\'
5426 fi
5427 if test "x$enable_dependency_tracking" != xno; then
5428 AMDEP_TRUE=
5429 AMDEP_FALSE='#'
5430 else
5431 AMDEP_TRUE='#'
5432 AMDEP_FALSE=
5433 fi
5434
5435
5436
5437 depcc="$CC" am_compiler_list=
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5440 $as_echo_n "checking dependency style of $depcc... " >&6; }
5441 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5445 # We make a subdir and do the tests there. Otherwise we can end up
5446 # making bogus files that we don't know about and never remove. For
5447 # instance it was reported that on HP-UX the gcc test will end up
5448 # making a dummy file named `D' -- because `-MD' means `put the output
5449 # in D'.
5450 mkdir conftest.dir
5451 # Copy depcomp to subdir because otherwise we won't find it if we're
5452 # using a relative directory.
5453 cp "$am_depcomp" conftest.dir
5454 cd conftest.dir
5455 # We will build objects and dependencies in a subdirectory because
5456 # it helps to detect inapplicable dependency modes. For instance
5457 # both Tru64's cc and ICC support -MD to output dependencies as a
5458 # side effect of compilation, but ICC will put the dependencies in
5459 # the current directory while Tru64 will put them in the object
5460 # directory.
5461 mkdir sub
5462
5463 am_cv_CC_dependencies_compiler_type=none
5464 if test "$am_compiler_list" = ""; then
5465 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5466 fi
5467 am__universal=false
5468 case " $depcc " in #(
5469 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5470 esac
5471
5472 for depmode in $am_compiler_list; do
5473 # Setup a source with many dependencies, because some compilers
5474 # like to wrap large dependency lists on column 80 (with \), and
5475 # we should not choose a depcomp mode which is confused by this.
5476 #
5477 # We need to recreate these files for each test, as the compiler may
5478 # overwrite some of them when testing with obscure command lines.
5479 # This happens at least with the AIX C compiler.
5480 : > sub/conftest.c
5481 for i in 1 2 3 4 5 6; do
5482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5484 # Solaris 8's {/usr,}/bin/sh.
5485 touch sub/conftst$i.h
5486 done
5487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5488
5489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5490 # mode. It turns out that the SunPro C++ compiler does not properly
5491 # handle `-M -o', and we need to detect this. Also, some Intel
5492 # versions had trouble with output in subdirs
5493 am__obj=sub/conftest.${OBJEXT-o}
5494 am__minus_obj="-o $am__obj"
5495 case $depmode in
5496 gcc)
5497 # This depmode causes a compiler race in universal mode.
5498 test "$am__universal" = false || continue
5499 ;;
5500 nosideeffect)
5501 # after this tag, mechanisms are not by side-effect, so they'll
5502 # only be used when explicitly requested
5503 if test "x$enable_dependency_tracking" = xyes; then
5504 continue
5505 else
5506 break
5507 fi
5508 ;;
5509 msvisualcpp | msvcmsys)
5510 # This compiler won't grok `-c -o', but also, the minuso test has
5511 # not run yet. These depmodes are late enough in the game, and
5512 # so weak that their functioning should not be impacted.
5513 am__obj=conftest.${OBJEXT-o}
5514 am__minus_obj=
5515 ;;
5516 none) break ;;
5517 esac
5518 if depmode=$depmode \
5519 source=sub/conftest.c object=$am__obj \
5520 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5521 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5522 >/dev/null 2>conftest.err &&
5523 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5525 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5527 # icc doesn't choke on unknown options, it will just issue warnings
5528 # or remarks (even with -Werror). So we grep stderr for any message
5529 # that says an option was ignored or not supported.
5530 # When given -MP, icc 7.0 and 7.1 complain thusly:
5531 # icc: Command line warning: ignoring option '-M'; no argument required
5532 # The diagnosis changed in icc 8.0:
5533 # icc: Command line remark: option '-MP' not supported
5534 if (grep 'ignoring option' conftest.err ||
5535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5536 am_cv_CC_dependencies_compiler_type=$depmode
5537 break
5538 fi
5539 fi
5540 done
5541
5542 cd ..
5543 rm -rf conftest.dir
5544 else
5545 am_cv_CC_dependencies_compiler_type=none
5546 fi
5547
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5550 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5551 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5552
5553 if
5554 test "x$enable_dependency_tracking" != xno \
5555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5556 am__fastdepCC_TRUE=
5557 am__fastdepCC_FALSE='#'
5558 else
5559 am__fastdepCC_TRUE='#'
5560 am__fastdepCC_FALSE=
5561 fi
5562
5563
5564 if test "x$CC" != xcc; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5566 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5569 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5570 fi
5571 set dummy $CC; ac_cc=`$as_echo "$2" |
5572 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5573 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578
5579 int
5580 main ()
5581 {
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 # Make sure it works both with $CC and with simple cc.
5588 # We do the test twice because some compilers refuse to overwrite an
5589 # existing .o file with -o, though they will create one.
5590 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5591 rm -f conftest2.*
5592 if { { case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595 esac
5596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5597 $as_echo "$ac_try_echo"; } >&5
5598 (eval "$ac_try") 2>&5
5599 ac_status=$?
5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; } &&
5602 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5607 $as_echo "$ac_try_echo"; } >&5
5608 (eval "$ac_try") 2>&5
5609 ac_status=$?
5610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5611 test $ac_status = 0; };
5612 then
5613 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5614 if test "x$CC" != xcc; then
5615 # Test first that cc exists at all.
5616 if { ac_try='cc -c conftest.$ac_ext >&5'
5617 { { case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623 (eval "$ac_try") 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; }; }; then
5627 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5628 rm -f conftest2.*
5629 if { { case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5634 $as_echo "$ac_try_echo"; } >&5
5635 (eval "$ac_try") 2>&5
5636 ac_status=$?
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; } &&
5639 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5644 $as_echo "$ac_try_echo"; } >&5
5645 (eval "$ac_try") 2>&5
5646 ac_status=$?
5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648 test $ac_status = 0; };
5649 then
5650 # cc works too.
5651 :
5652 else
5653 # cc exists but doesn't like -o.
5654 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5655 fi
5656 fi
5657 fi
5658 else
5659 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5660 fi
5661 rm -f core conftest*
5662
5663 fi
5664 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5666 $as_echo "yes" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670
5671 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5672
5673 fi
5674
5675 # FIXME: we rely on the cache variable name because
5676 # there is no other way.
5677 set dummy $CC
5678 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5679 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5680 if test "$am_t" != yes; then
5681 # Losing compiler, so override with the script.
5682 # FIXME: It is wrong to rewrite CC.
5683 # But if we don't then we get into trouble of one sort or another.
5684 # A longer-term fix would be to have automake use am__CC in this case,
5685 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5686 CC="$am_aux_dir/compile $CC"
5687 fi
5688
5689
5690
5691 if test x$GCC = xyes; then
5692 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5693 else
5694 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5695 fi
5696
5697 # Initialize gnulib right after choosing the compiler.
5698
5699 ac_ext=c
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5705 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5706 # On Suns, sometimes $CPP names a directory.
5707 if test -n "$CPP" && test -d "$CPP"; then
5708 CPP=
5709 fi
5710 if test -z "$CPP"; then
5711 if test "${ac_cv_prog_CPP+set}" = set; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 # Double quotes because CPP needs to be expanded
5715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5716 do
5717 ac_preproc_ok=false
5718 for ac_c_preproc_warn_flag in '' yes
5719 do
5720 # Use a header file that comes with gcc, so configuring glibc
5721 # with a fresh cross-compiler works.
5722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5723 # <limits.h> exists even on freestanding compilers.
5724 # On the NeXT, cc -E runs the code through the compiler's parser,
5725 # not just through cpp. "Syntax error" is here to catch this case.
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #ifdef __STDC__
5729 # include <limits.h>
5730 #else
5731 # include <assert.h>
5732 #endif
5733 Syntax error
5734 _ACEOF
5735 if ac_fn_c_try_cpp "$LINENO"; then :
5736
5737 else
5738 # Broken: fails on valid input.
5739 continue
5740 fi
5741 rm -f conftest.err conftest.$ac_ext
5742
5743 # OK, works on sane cases. Now check whether nonexistent headers
5744 # can be detected and how.
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <ac_nonexistent.h>
5748 _ACEOF
5749 if ac_fn_c_try_cpp "$LINENO"; then :
5750 # Broken: success on invalid input.
5751 continue
5752 else
5753 # Passes both tests.
5754 ac_preproc_ok=:
5755 break
5756 fi
5757 rm -f conftest.err conftest.$ac_ext
5758
5759 done
5760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5761 rm -f conftest.err conftest.$ac_ext
5762 if $ac_preproc_ok; then :
5763 break
5764 fi
5765
5766 done
5767 ac_cv_prog_CPP=$CPP
5768
5769 fi
5770 CPP=$ac_cv_prog_CPP
5771 else
5772 ac_cv_prog_CPP=$CPP
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5775 $as_echo "$CPP" >&6; }
5776 ac_preproc_ok=false
5777 for ac_c_preproc_warn_flag in '' yes
5778 do
5779 # Use a header file that comes with gcc, so configuring glibc
5780 # with a fresh cross-compiler works.
5781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782 # <limits.h> exists even on freestanding compilers.
5783 # On the NeXT, cc -E runs the code through the compiler's parser,
5784 # not just through cpp. "Syntax error" is here to catch this case.
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #ifdef __STDC__
5788 # include <limits.h>
5789 #else
5790 # include <assert.h>
5791 #endif
5792 Syntax error
5793 _ACEOF
5794 if ac_fn_c_try_cpp "$LINENO"; then :
5795
5796 else
5797 # Broken: fails on valid input.
5798 continue
5799 fi
5800 rm -f conftest.err conftest.$ac_ext
5801
5802 # OK, works on sane cases. Now check whether nonexistent headers
5803 # can be detected and how.
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #include <ac_nonexistent.h>
5807 _ACEOF
5808 if ac_fn_c_try_cpp "$LINENO"; then :
5809 # Broken: success on invalid input.
5810 continue
5811 else
5812 # Passes both tests.
5813 ac_preproc_ok=:
5814 break
5815 fi
5816 rm -f conftest.err conftest.$ac_ext
5817
5818 done
5819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 rm -f conftest.err conftest.$ac_ext
5821 if $ac_preproc_ok; then :
5822
5823 else
5824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5827 See \`config.log' for more details." "$LINENO" 5; }
5828 fi
5829
5830 ac_ext=c
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5835
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5839 if test "${ac_cv_path_GREP+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if test -z "$GREP"; then
5843 ac_path_GREP_found=false
5844 # Loop through the user's path and test for each of PROGNAME-LIST
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5847 do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_prog in grep ggrep; do
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5853 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5854 # Check for GNU ac_path_GREP and select it if it is found.
5855 # Check for GNU $ac_path_GREP
5856 case `"$ac_path_GREP" --version 2>&1` in
5857 *GNU*)
5858 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5859 *)
5860 ac_count=0
5861 $as_echo_n 0123456789 >"conftest.in"
5862 while :
5863 do
5864 cat "conftest.in" "conftest.in" >"conftest.tmp"
5865 mv "conftest.tmp" "conftest.in"
5866 cp "conftest.in" "conftest.nl"
5867 $as_echo 'GREP' >> "conftest.nl"
5868 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5870 as_fn_arith $ac_count + 1 && ac_count=$as_val
5871 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5872 # Best one so far, save it but keep looking for a better one
5873 ac_cv_path_GREP="$ac_path_GREP"
5874 ac_path_GREP_max=$ac_count
5875 fi
5876 # 10*(2^10) chars as input seems more than enough
5877 test $ac_count -gt 10 && break
5878 done
5879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880 esac
5881
5882 $ac_path_GREP_found && break 3
5883 done
5884 done
5885 done
5886 IFS=$as_save_IFS
5887 if test -z "$ac_cv_path_GREP"; then
5888 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5889 fi
5890 else
5891 ac_cv_path_GREP=$GREP
5892 fi
5893
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5896 $as_echo "$ac_cv_path_GREP" >&6; }
5897 GREP="$ac_cv_path_GREP"
5898
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5901 $as_echo_n "checking for egrep... " >&6; }
5902 if test "${ac_cv_path_EGREP+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5906 then ac_cv_path_EGREP="$GREP -E"
5907 else
5908 if test -z "$EGREP"; then
5909 ac_path_EGREP_found=false
5910 # Loop through the user's path and test for each of PROGNAME-LIST
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5913 do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_prog in egrep; do
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5920 # Check for GNU ac_path_EGREP and select it if it is found.
5921 # Check for GNU $ac_path_EGREP
5922 case `"$ac_path_EGREP" --version 2>&1` in
5923 *GNU*)
5924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5925 *)
5926 ac_count=0
5927 $as_echo_n 0123456789 >"conftest.in"
5928 while :
5929 do
5930 cat "conftest.in" "conftest.in" >"conftest.tmp"
5931 mv "conftest.tmp" "conftest.in"
5932 cp "conftest.in" "conftest.nl"
5933 $as_echo 'EGREP' >> "conftest.nl"
5934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5936 as_fn_arith $ac_count + 1 && ac_count=$as_val
5937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5938 # Best one so far, save it but keep looking for a better one
5939 ac_cv_path_EGREP="$ac_path_EGREP"
5940 ac_path_EGREP_max=$ac_count
5941 fi
5942 # 10*(2^10) chars as input seems more than enough
5943 test $ac_count -gt 10 && break
5944 done
5945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5946 esac
5947
5948 $ac_path_EGREP_found && break 3
5949 done
5950 done
5951 done
5952 IFS=$as_save_IFS
5953 if test -z "$ac_cv_path_EGREP"; then
5954 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5955 fi
5956 else
5957 ac_cv_path_EGREP=$EGREP
5958 fi
5959
5960 fi
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5963 $as_echo "$ac_cv_path_EGREP" >&6; }
5964 EGREP="$ac_cv_path_EGREP"
5965
5966
5967
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5970 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5971 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5977
5978 #ifdef __ACK__
5979 Amsterdam
5980 #endif
5981
5982 _ACEOF
5983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5984 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5985 gl_cv_c_amsterdam_compiler=yes
5986 else
5987 gl_cv_c_amsterdam_compiler=no
5988 fi
5989 rm -f conftest*
5990
5991
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5994 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5995 if test -z "$AR"; then
5996 if test $gl_cv_c_amsterdam_compiler = yes; then
5997 AR='cc -c.a'
5998 if test -z "$ARFLAGS"; then
5999 ARFLAGS='-o'
6000 fi
6001 else
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}ar; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_AR+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$AR"; then
6011 ac_cv_prog_AR="$AR" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_AR="${ac_tool_prefix}ar"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 AR=$ac_cv_prog_AR
6031 if test -n "$AR"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6033 $as_echo "$AR" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039
6040 fi
6041 if test -z "$ac_cv_prog_AR"; then
6042 ac_ct_AR=$AR
6043 # Extract the first word of "ar", so it can be a program name with args.
6044 set dummy ar; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if test -n "$ac_ct_AR"; then
6051 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_AR="ar"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6071 if test -n "$ac_ct_AR"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6073 $as_echo "$ac_ct_AR" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079 if test "x$ac_ct_AR" = x; then
6080 AR="ar"
6081 else
6082 case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088 AR=$ac_ct_AR
6089 fi
6090 else
6091 AR="$ac_cv_prog_AR"
6092 fi
6093
6094 if test -z "$ARFLAGS"; then
6095 ARFLAGS='cru'
6096 fi
6097 fi
6098 else
6099 if test -z "$ARFLAGS"; then
6100 ARFLAGS='cru'
6101 fi
6102 fi
6103
6104
6105 if test -z "$RANLIB"; then
6106 if test $gl_cv_c_amsterdam_compiler = yes; then
6107 RANLIB=':'
6108 else
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 if test -n "$RANLIB"; then
6118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6130 fi
6131 done
6132 done
6133 IFS=$as_save_IFS
6134
6135 fi
6136 fi
6137 RANLIB=$ac_cv_prog_RANLIB
6138 if test -n "$RANLIB"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6140 $as_echo "$RANLIB" >&6; }
6141 else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6144 fi
6145
6146
6147 fi
6148 if test -z "$ac_cv_prog_RANLIB"; then
6149 ac_ct_RANLIB=$RANLIB
6150 # Extract the first word of "ranlib", so it can be a program name with args.
6151 set dummy ranlib; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 if test -n "$ac_ct_RANLIB"; then
6158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_ac_ct_RANLIB="ranlib"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 break 2
6170 fi
6171 done
6172 done
6173 IFS=$as_save_IFS
6174
6175 fi
6176 fi
6177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6178 if test -n "$ac_ct_RANLIB"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6180 $as_echo "$ac_ct_RANLIB" >&6; }
6181 else
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6184 fi
6185
6186 if test "x$ac_ct_RANLIB" = x; then
6187 RANLIB=":"
6188 else
6189 case $cross_compiling:$ac_tool_warned in
6190 yes:)
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6193 ac_tool_warned=yes ;;
6194 esac
6195 RANLIB=$ac_ct_RANLIB
6196 fi
6197 else
6198 RANLIB="$ac_cv_prog_RANLIB"
6199 fi
6200
6201 fi
6202 fi
6203
6204
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6206 $as_echo_n "checking for ANSI C header files... " >&6; }
6207 if test "${ac_cv_header_stdc+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <stdlib.h>
6213 #include <stdarg.h>
6214 #include <string.h>
6215 #include <float.h>
6216
6217 int
6218 main ()
6219 {
6220
6221 ;
6222 return 0;
6223 }
6224 _ACEOF
6225 if ac_fn_c_try_compile "$LINENO"; then :
6226 ac_cv_header_stdc=yes
6227 else
6228 ac_cv_header_stdc=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231
6232 if test $ac_cv_header_stdc = yes; then
6233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #include <string.h>
6237
6238 _ACEOF
6239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6240 $EGREP "memchr" >/dev/null 2>&1; then :
6241
6242 else
6243 ac_cv_header_stdc=no
6244 fi
6245 rm -f conftest*
6246
6247 fi
6248
6249 if test $ac_cv_header_stdc = yes; then
6250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253 #include <stdlib.h>
6254
6255 _ACEOF
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 $EGREP "free" >/dev/null 2>&1; then :
6258
6259 else
6260 ac_cv_header_stdc=no
6261 fi
6262 rm -f conftest*
6263
6264 fi
6265
6266 if test $ac_cv_header_stdc = yes; then
6267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6268 if test "$cross_compiling" = yes; then :
6269 :
6270 else
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 #include <ctype.h>
6274 #include <stdlib.h>
6275 #if ((' ' & 0x0FF) == 0x020)
6276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6278 #else
6279 # define ISLOWER(c) \
6280 (('a' <= (c) && (c) <= 'i') \
6281 || ('j' <= (c) && (c) <= 'r') \
6282 || ('s' <= (c) && (c) <= 'z'))
6283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6284 #endif
6285
6286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6287 int
6288 main ()
6289 {
6290 int i;
6291 for (i = 0; i < 256; i++)
6292 if (XOR (islower (i), ISLOWER (i))
6293 || toupper (i) != TOUPPER (i))
6294 return 2;
6295 return 0;
6296 }
6297 _ACEOF
6298 if ac_fn_c_try_run "$LINENO"; then :
6299
6300 else
6301 ac_cv_header_stdc=no
6302 fi
6303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6304 conftest.$ac_objext conftest.beam conftest.$ac_ext
6305 fi
6306
6307 fi
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6310 $as_echo "$ac_cv_header_stdc" >&6; }
6311 if test $ac_cv_header_stdc = yes; then
6312
6313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6314
6315 fi
6316
6317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6319 inttypes.h stdint.h unistd.h
6320 do :
6321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6323 "
6324 eval as_val=\$$as_ac_Header
6325 if test "x$as_val" = x""yes; then :
6326 cat >>confdefs.h <<_ACEOF
6327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6328 _ACEOF
6329
6330 fi
6331
6332 done
6333
6334
6335
6336
6337
6338 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6339 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6340 MINIX=yes
6341 else
6342 MINIX=
6343 fi
6344
6345
6346 if test "$MINIX" = yes; then
6347
6348 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6349
6350
6351 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6352
6353
6354 $as_echo "#define _MINIX 1" >>confdefs.h
6355
6356 fi
6357
6358 case "$host_os" in
6359 hpux*)
6360
6361 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6362
6363 ;;
6364 esac
6365
6366
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6368 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6369 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374
6375 # define __EXTENSIONS__ 1
6376 $ac_includes_default
6377 int
6378 main ()
6379 {
6380
6381 ;
6382 return 0;
6383 }
6384 _ACEOF
6385 if ac_fn_c_try_compile "$LINENO"; then :
6386 ac_cv_safe_to_define___extensions__=yes
6387 else
6388 ac_cv_safe_to_define___extensions__=no
6389 fi
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6393 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6394 test $ac_cv_safe_to_define___extensions__ = yes &&
6395 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6396
6397 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6398
6399 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6400
6401 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6402
6403 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6404
6405 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6406
6407
6408
6409
6410
6411
6412
6413
6414 # Check whether --enable-largefile was given.
6415 if test "${enable_largefile+set}" = set; then :
6416 enableval=$enable_largefile;
6417 fi
6418
6419 if test "$enable_largefile" != no; then
6420
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6422 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6423 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 ac_cv_sys_largefile_CC=no
6427 if test "$GCC" != yes; then
6428 ac_save_CC=$CC
6429 while :; do
6430 # IRIX 6.2 and later do not support large files by default,
6431 # so use the C compiler's -n32 option if that helps.
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <sys/types.h>
6435 /* Check that off_t can represent 2**63 - 1 correctly.
6436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6437 since some C++ compilers masquerading as C compilers
6438 incorrectly reject 9223372036854775807. */
6439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6441 && LARGE_OFF_T % 2147483647 == 1)
6442 ? 1 : -1];
6443 int
6444 main ()
6445 {
6446
6447 ;
6448 return 0;
6449 }
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 break
6453 fi
6454 rm -f core conftest.err conftest.$ac_objext
6455 CC="$CC -n32"
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457 ac_cv_sys_largefile_CC=' -n32'; break
6458 fi
6459 rm -f core conftest.err conftest.$ac_objext
6460 break
6461 done
6462 CC=$ac_save_CC
6463 rm -f conftest.$ac_ext
6464 fi
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6467 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6468 if test "$ac_cv_sys_largefile_CC" != no; then
6469 CC=$CC$ac_cv_sys_largefile_CC
6470 fi
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6473 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6474 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 while :; do
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 #include <sys/types.h>
6481 /* Check that off_t can represent 2**63 - 1 correctly.
6482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6483 since some C++ compilers masquerading as C compilers
6484 incorrectly reject 9223372036854775807. */
6485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6487 && LARGE_OFF_T % 2147483647 == 1)
6488 ? 1 : -1];
6489 int
6490 main ()
6491 {
6492
6493 ;
6494 return 0;
6495 }
6496 _ACEOF
6497 if ac_fn_c_try_compile "$LINENO"; then :
6498 ac_cv_sys_file_offset_bits=no; break
6499 fi
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #define _FILE_OFFSET_BITS 64
6504 #include <sys/types.h>
6505 /* Check that off_t can represent 2**63 - 1 correctly.
6506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6507 since some C++ compilers masquerading as C compilers
6508 incorrectly reject 9223372036854775807. */
6509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6511 && LARGE_OFF_T % 2147483647 == 1)
6512 ? 1 : -1];
6513 int
6514 main ()
6515 {
6516
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 ac_cv_sys_file_offset_bits=64; break
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 ac_cv_sys_file_offset_bits=unknown
6526 break
6527 done
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6530 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6531 case $ac_cv_sys_file_offset_bits in #(
6532 no | unknown) ;;
6533 *)
6534 cat >>confdefs.h <<_ACEOF
6535 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6536 _ACEOF
6537 ;;
6538 esac
6539 rm -rf conftest*
6540 if test $ac_cv_sys_file_offset_bits = unknown; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6542 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6543 if test "${ac_cv_sys_large_files+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 while :; do
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #include <sys/types.h>
6550 /* Check that off_t can represent 2**63 - 1 correctly.
6551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6552 since some C++ compilers masquerading as C compilers
6553 incorrectly reject 9223372036854775807. */
6554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6556 && LARGE_OFF_T % 2147483647 == 1)
6557 ? 1 : -1];
6558 int
6559 main ()
6560 {
6561
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 ac_cv_sys_large_files=no; break
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #define _LARGE_FILES 1
6573 #include <sys/types.h>
6574 /* Check that off_t can represent 2**63 - 1 correctly.
6575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6576 since some C++ compilers masquerading as C compilers
6577 incorrectly reject 9223372036854775807. */
6578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6580 && LARGE_OFF_T % 2147483647 == 1)
6581 ? 1 : -1];
6582 int
6583 main ()
6584 {
6585
6586 ;
6587 return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 ac_cv_sys_large_files=1; break
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 ac_cv_sys_large_files=unknown
6595 break
6596 done
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6599 $as_echo "$ac_cv_sys_large_files" >&6; }
6600 case $ac_cv_sys_large_files in #(
6601 no | unknown) ;;
6602 *)
6603 cat >>confdefs.h <<_ACEOF
6604 #define _LARGE_FILES $ac_cv_sys_large_files
6605 _ACEOF
6606 ;;
6607 esac
6608 rm -rf conftest*
6609 fi
6610
6611
6612 fi
6613
6614 case $ac_cv_prog_cc_stdc in #(
6615 no) :
6616 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6617 *) :
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6619 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6620 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 ac_cv_prog_cc_c99=no
6624 ac_save_CC=$CC
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627 #include <stdarg.h>
6628 #include <stdbool.h>
6629 #include <stdlib.h>
6630 #include <wchar.h>
6631 #include <stdio.h>
6632
6633 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6634 #define debug(...) fprintf (stderr, __VA_ARGS__)
6635 #define showlist(...) puts (#__VA_ARGS__)
6636 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6637 static void
6638 test_varargs_macros (void)
6639 {
6640 int x = 1234;
6641 int y = 5678;
6642 debug ("Flag");
6643 debug ("X = %d\n", x);
6644 showlist (The first, second, and third items.);
6645 report (x>y, "x is %d but y is %d", x, y);
6646 }
6647
6648 // Check long long types.
6649 #define BIG64 18446744073709551615ull
6650 #define BIG32 4294967295ul
6651 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6652 #if !BIG_OK
6653 your preprocessor is broken;
6654 #endif
6655 #if BIG_OK
6656 #else
6657 your preprocessor is broken;
6658 #endif
6659 static long long int bignum = -9223372036854775807LL;
6660 static unsigned long long int ubignum = BIG64;
6661
6662 struct incomplete_array
6663 {
6664 int datasize;
6665 double data[];
6666 };
6667
6668 struct named_init {
6669 int number;
6670 const wchar_t *name;
6671 double average;
6672 };
6673
6674 typedef const char *ccp;
6675
6676 static inline int
6677 test_restrict (ccp restrict text)
6678 {
6679 // See if C++-style comments work.
6680 // Iterate through items via the restricted pointer.
6681 // Also check for declarations in for loops.
6682 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6683 continue;
6684 return 0;
6685 }
6686
6687 // Check varargs and va_copy.
6688 static void
6689 test_varargs (const char *format, ...)
6690 {
6691 va_list args;
6692 va_start (args, format);
6693 va_list args_copy;
6694 va_copy (args_copy, args);
6695
6696 const char *str;
6697 int number;
6698 float fnumber;
6699
6700 while (*format)
6701 {
6702 switch (*format++)
6703 {
6704 case 's': // string
6705 str = va_arg (args_copy, const char *);
6706 break;
6707 case 'd': // int
6708 number = va_arg (args_copy, int);
6709 break;
6710 case 'f': // float
6711 fnumber = va_arg (args_copy, double);
6712 break;
6713 default:
6714 break;
6715 }
6716 }
6717 va_end (args_copy);
6718 va_end (args);
6719 }
6720
6721 int
6722 main ()
6723 {
6724
6725 // Check bool.
6726 _Bool success = false;
6727
6728 // Check restrict.
6729 if (test_restrict ("String literal") == 0)
6730 success = true;
6731 char *restrict newvar = "Another string";
6732
6733 // Check varargs.
6734 test_varargs ("s, d' f .", "string", 65, 34.234);
6735 test_varargs_macros ();
6736
6737 // Check flexible array members.
6738 struct incomplete_array *ia =
6739 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6740 ia->datasize = 10;
6741 for (int i = 0; i < ia->datasize; ++i)
6742 ia->data[i] = i * 1.234;
6743
6744 // Check named initializers.
6745 struct named_init ni = {
6746 .number = 34,
6747 .name = L"Test wide string",
6748 .average = 543.34343,
6749 };
6750
6751 ni.number = 58;
6752
6753 int dynamic_array[ni.number];
6754 dynamic_array[ni.number - 1] = 543;
6755
6756 // work around unused variable warnings
6757 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6758 || dynamic_array[ni.number - 1] != 543);
6759
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6765 do
6766 CC="$ac_save_CC $ac_arg"
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768 ac_cv_prog_cc_c99=$ac_arg
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext
6771 test "x$ac_cv_prog_cc_c99" != "xno" && break
6772 done
6773 rm -f conftest.$ac_ext
6774 CC=$ac_save_CC
6775
6776 fi
6777 # AC_CACHE_VAL
6778 case "x$ac_cv_prog_cc_c99" in
6779 x)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6781 $as_echo "none needed" >&6; } ;;
6782 xno)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6784 $as_echo "unsupported" >&6; } ;;
6785 *)
6786 CC="$CC $ac_cv_prog_cc_c99"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6788 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6789 esac
6790 if test "x$ac_cv_prog_cc_c99" != xno; then :
6791 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6794 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6795 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 ac_cv_prog_cc_c89=no
6799 ac_save_CC=$CC
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 #include <stdarg.h>
6803 #include <stdio.h>
6804 #include <sys/types.h>
6805 #include <sys/stat.h>
6806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6807 struct buf { int x; };
6808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6809 static char *e (p, i)
6810 char **p;
6811 int i;
6812 {
6813 return p[i];
6814 }
6815 static char *f (char * (*g) (char **, int), char **p, ...)
6816 {
6817 char *s;
6818 va_list v;
6819 va_start (v,p);
6820 s = g (p, va_arg (v,int));
6821 va_end (v);
6822 return s;
6823 }
6824
6825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6826 function prototypes and stuff, but not '\xHH' hex character constants.
6827 These don't provoke an error unfortunately, instead are silently treated
6828 as 'x'. The following induces an error, until -std is added to get
6829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6830 array size at least. It's necessary to write '\x00'==0 to get something
6831 that's true only with -std. */
6832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6833
6834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6835 inside strings and character constants. */
6836 #define FOO(x) 'x'
6837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6838
6839 int test (int i, double x);
6840 struct s1 {int (*f) (int a);};
6841 struct s2 {int (*f) (double a);};
6842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6843 int argc;
6844 char **argv;
6845 int
6846 main ()
6847 {
6848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6849 ;
6850 return 0;
6851 }
6852 _ACEOF
6853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6854 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6855 do
6856 CC="$ac_save_CC $ac_arg"
6857 if ac_fn_c_try_compile "$LINENO"; then :
6858 ac_cv_prog_cc_c89=$ac_arg
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext
6861 test "x$ac_cv_prog_cc_c89" != "xno" && break
6862 done
6863 rm -f conftest.$ac_ext
6864 CC=$ac_save_CC
6865
6866 fi
6867 # AC_CACHE_VAL
6868 case "x$ac_cv_prog_cc_c89" in
6869 x)
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6871 $as_echo "none needed" >&6; } ;;
6872 xno)
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6874 $as_echo "unsupported" >&6; } ;;
6875 *)
6876 CC="$CC $ac_cv_prog_cc_c89"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6879 esac
6880 if test "x$ac_cv_prog_cc_c89" != xno; then :
6881 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6882 else
6883 ac_cv_prog_cc_stdc=no
6884 fi
6885
6886 fi
6887 ;;
6888 esac
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6890 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6891 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6893 fi
6894
6895 case $ac_cv_prog_cc_stdc in #(
6896 no) :
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6898 $as_echo "unsupported" >&6; } ;; #(
6899 '') :
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6901 $as_echo "none needed" >&6; } ;; #(
6902 *) :
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6904 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6905 esac
6906
6907
6908
6909 # Code from module alloca-opt:
6910 # Code from module allocator:
6911 # Code from module careadlinkat:
6912 # Code from module crypto/md5:
6913 # Code from module crypto/sha1:
6914 # Code from module crypto/sha256:
6915 # Code from module crypto/sha512:
6916 # Code from module dosname:
6917 # Code from module dtoastr:
6918 # Code from module dup2:
6919 # Code from module extensions:
6920
6921 # Code from module filemode:
6922 # Code from module getloadavg:
6923 # Code from module getopt-gnu:
6924 # Code from module getopt-posix:
6925 # Code from module gettext-h:
6926 # Code from module ignore-value:
6927 # Code from module include_next:
6928 # Code from module intprops:
6929 # Code from module inttypes-incomplete:
6930 # Code from module largefile:
6931
6932 # Code from module lstat:
6933 # Code from module manywarnings:
6934 # Code from module mktime:
6935 # Code from module multiarch:
6936 # Code from module nocrash:
6937 # Code from module pathmax:
6938 # Code from module pthread_sigmask:
6939 # Code from module readlink:
6940 # Code from module signal-h:
6941 # Code from module sigprocmask:
6942 # Code from module snippet/_Noreturn:
6943 # Code from module snippet/arg-nonnull:
6944 # Code from module snippet/c++defs:
6945 # Code from module snippet/warn-on-use:
6946 # Code from module socklen:
6947 # Code from module ssize_t:
6948 # Code from module stat:
6949 # Code from module stdalign:
6950 # Code from module stdarg:
6951
6952
6953
6954 # Code from module stdbool:
6955 # Code from module stddef:
6956 # Code from module stdint:
6957 # Code from module stdio:
6958 # Code from module stdlib:
6959 # Code from module strftime:
6960 # Code from module strtoimax:
6961 # Code from module strtoll:
6962 # Code from module strtoull:
6963 # Code from module strtoumax:
6964 # Code from module symlink:
6965 # Code from module sys_stat:
6966 # Code from module sys_types:
6967 # Code from module time:
6968 # Code from module time_r:
6969 # Code from module u64:
6970 # Code from module unistd:
6971 # Code from module verify:
6972 # Code from module warnings:
6973
6974
6975 # Check whether --enable-gcc-warnings was given.
6976 if test "${enable_gcc_warnings+set}" = set; then :
6977 enableval=$enable_gcc_warnings; case $enableval in
6978 yes|no) ;;
6979 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
6980 esac
6981 gl_gcc_warnings=$enableval
6982 else
6983 gl_gcc_warnings=no
6984
6985 fi
6986
6987
6988 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
6989 # ------------------------------------------------
6990 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
6991 # Otherwise, run RUN-IF-NOT-FOUND.
6992
6993
6994 # When compiling with GCC, prefer -isystem to -I when including system
6995 # include files, to avoid generating useless diagnostics for the files.
6996 if test "$gl_gcc_warnings" != yes; then
6997 isystem='-I'
6998 else
6999 isystem='-isystem '
7000
7001 # This, $nw, is the list of warnings we disable.
7002 nw=
7003
7004 case $with_x_toolkit in
7005 lucid | athena | motif)
7006 # Old toolkits mishandle 'const'.
7007 nw="$nw -Wwrite-strings"
7008 ;;
7009 *)
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7011 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7012 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015
7016 gl_save_compiler_FLAGS="$CFLAGS"
7017 as_fn_append CFLAGS " -Werror"
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020
7021 int
7022 main ()
7023 {
7024
7025 ;
7026 return 0;
7027 }
7028 _ACEOF
7029 if ac_fn_c_try_compile "$LINENO"; then :
7030 gl_cv_warn_c__Werror=yes
7031 else
7032 gl_cv_warn_c__Werror=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 CFLAGS="$gl_save_compiler_FLAGS"
7036
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7039 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7040 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7041 as_fn_append WERROR_CFLAGS " -Werror"
7042 fi
7043
7044
7045 ;;
7046 esac
7047
7048
7049 nw="$nw -Waggregate-return" # anachronistic
7050 nw="$nw -Wlong-long" # C90 is anachronistic
7051 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7052 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7053 nw="$nw -Wtraditional" # Warns on #elif which we use often
7054 nw="$nw -Wcast-qual" # Too many warnings for now
7055 nw="$nw -Wconversion" # Too many warnings for now
7056 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7057 nw="$nw -Wsign-conversion" # Too many warnings for now
7058 nw="$nw -Woverlength-strings" # Not a problem these days
7059 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7060 nw="$nw -Wpadded" # Our structs are not padded
7061 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7062 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7063 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7064 nw="$nw -Wvla" # warnings in gettext.h
7065 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7066 nw="$nw -Wswitch-enum" # Too many warnings for now
7067 nw="$nw -Wswitch-default" # Too many warnings for now
7068 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7069 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7070
7071 # Emacs doesn't care about shadowing; see
7072 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7073 nw="$nw -Wshadow"
7074
7075 # The following lines should be removable at some point.
7076 nw="$nw -Wstack-protector"
7077 nw="$nw -Wstrict-overflow"
7078 nw="$nw -Wsuggest-attribute=const"
7079 nw="$nw -Wsuggest-attribute=pure"
7080
7081
7082
7083 if test -n "$GCC"; then
7084
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7086 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7087 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090
7091 gl_save_CFLAGS="$CFLAGS"
7092 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095
7096 int
7097 main ()
7098 {
7099
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 if ac_fn_c_try_compile "$LINENO"; then :
7105 gl_cv_cc_nomfi_supported=yes
7106 else
7107 gl_cv_cc_nomfi_supported=no
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 CFLAGS="$gl_save_CFLAGS"
7111 fi
7112
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7114 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7115
7116 if test "$gl_cv_cc_nomfi_supported" = yes; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7118 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7119 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122
7123 gl_save_CFLAGS="$CFLAGS"
7124 CFLAGS="$CFLAGS -W -Werror"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 void f (void)
7128 {
7129 typedef struct { int a; int b; } s_t;
7130 s_t s1 = { 0, };
7131 }
7132
7133 int
7134 main ()
7135 {
7136
7137 ;
7138 return 0;
7139 }
7140 _ACEOF
7141 if ac_fn_c_try_compile "$LINENO"; then :
7142 gl_cv_cc_nomfi_needed=no
7143 else
7144 gl_cv_cc_nomfi_needed=yes
7145 fi
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 CFLAGS="$gl_save_CFLAGS"
7148
7149 fi
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7152 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7153 fi
7154 fi
7155
7156 gl_manywarn_set=
7157 for gl_manywarn_item in \
7158 -Wall \
7159 -W \
7160 -Wformat-y2k \
7161 -Wformat-nonliteral \
7162 -Wformat-security \
7163 -Winit-self \
7164 -Wmissing-include-dirs \
7165 -Wswitch-default \
7166 -Wswitch-enum \
7167 -Wunused \
7168 -Wunknown-pragmas \
7169 -Wstrict-aliasing \
7170 -Wstrict-overflow \
7171 -Wsystem-headers \
7172 -Wfloat-equal \
7173 -Wtraditional \
7174 -Wtraditional-conversion \
7175 -Wdeclaration-after-statement \
7176 -Wundef \
7177 -Wshadow \
7178 -Wunsafe-loop-optimizations \
7179 -Wpointer-arith \
7180 -Wbad-function-cast \
7181 -Wc++-compat \
7182 -Wcast-qual \
7183 -Wcast-align \
7184 -Wwrite-strings \
7185 -Wconversion \
7186 -Wsign-conversion \
7187 -Wlogical-op \
7188 -Waggregate-return \
7189 -Wstrict-prototypes \
7190 -Wold-style-definition \
7191 -Wmissing-prototypes \
7192 -Wmissing-declarations \
7193 -Wmissing-noreturn \
7194 -Wmissing-format-attribute \
7195 -Wpacked \
7196 -Wpadded \
7197 -Wredundant-decls \
7198 -Wnested-externs \
7199 -Wunreachable-code \
7200 -Winline \
7201 -Winvalid-pch \
7202 -Wlong-long \
7203 -Wvla \
7204 -Wvolatile-register-var \
7205 -Wdisabled-optimization \
7206 -Wstack-protector \
7207 -Woverlength-strings \
7208 -Wbuiltin-macro-redefined \
7209 -Wmudflap \
7210 -Wpacked-bitfield-compat \
7211 -Wsync-nand \
7212 ; do
7213 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7214 done
7215 # The following are not documented in the manual but are included in
7216 # output from gcc --help=warnings.
7217 for gl_manywarn_item in \
7218 -Wattributes \
7219 -Wcoverage-mismatch \
7220 -Wunused-macros \
7221 ; do
7222 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7223 done
7224 # More warnings from gcc 4.6.2 --help=warnings.
7225 for gl_manywarn_item in \
7226 -Wabi \
7227 -Wcpp \
7228 -Wdeprecated \
7229 -Wdeprecated-declarations \
7230 -Wdiv-by-zero \
7231 -Wdouble-promotion \
7232 -Wendif-labels \
7233 -Wextra \
7234 -Wformat-contains-nul \
7235 -Wformat-extra-args \
7236 -Wformat-zero-length \
7237 -Wformat=2 \
7238 -Wmultichar \
7239 -Wnormalized=nfc \
7240 -Woverflow \
7241 -Wpointer-to-int-cast \
7242 -Wpragmas \
7243 -Wsuggest-attribute=const \
7244 -Wsuggest-attribute=noreturn \
7245 -Wsuggest-attribute=pure \
7246 -Wtrampolines \
7247 ; do
7248 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7249 done
7250
7251 # Disable the missing-field-initializers warning if needed
7252 if test "$gl_cv_cc_nomfi_needed" = yes; then
7253 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7254 fi
7255
7256 ws=$gl_manywarn_set
7257
7258
7259 gl_warn_set=
7260 set x $ws; shift
7261 for gl_warn_item
7262 do
7263 case " $nw " in
7264 *" $gl_warn_item "*)
7265 ;;
7266 *)
7267 gl_warn_set="$gl_warn_set $gl_warn_item"
7268 ;;
7269 esac
7270 done
7271 ws=$gl_warn_set
7272
7273 for w in $ws; do
7274 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7276 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7277 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280
7281 gl_save_compiler_FLAGS="$CFLAGS"
7282 as_fn_append CFLAGS " $w"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285
7286 int
7287 main ()
7288 {
7289
7290 ;
7291 return 0;
7292 }
7293 _ACEOF
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295 eval "$as_gl_Warn=yes"
7296 else
7297 eval "$as_gl_Warn=no"
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 CFLAGS="$gl_save_compiler_FLAGS"
7301
7302 fi
7303 eval ac_res=\$$as_gl_Warn
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7305 $as_echo "$ac_res" >&6; }
7306 eval as_val=\$$as_gl_Warn
7307 if test "x$as_val" = x""yes; then :
7308 as_fn_append WARN_CFLAGS " $w"
7309 fi
7310
7311
7312 done
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7314 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7315 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318
7319 gl_save_compiler_FLAGS="$CFLAGS"
7320 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323
7324 int
7325 main ()
7326 {
7327
7328 ;
7329 return 0;
7330 }
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 gl_cv_warn_c__Wno_missing_field_initializers=yes
7334 else
7335 gl_cv_warn_c__Wno_missing_field_initializers=no
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 CFLAGS="$gl_save_compiler_FLAGS"
7339
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7342 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7343 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7344 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7345 fi
7346
7347 # We need this one
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7349 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7350 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353
7354 gl_save_compiler_FLAGS="$CFLAGS"
7355 as_fn_append CFLAGS " -Wno-sign-compare"
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358
7359 int
7360 main ()
7361 {
7362
7363 ;
7364 return 0;
7365 }
7366 _ACEOF
7367 if ac_fn_c_try_compile "$LINENO"; then :
7368 gl_cv_warn_c__Wno_sign_compare=yes
7369 else
7370 gl_cv_warn_c__Wno_sign_compare=no
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 CFLAGS="$gl_save_compiler_FLAGS"
7374
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7377 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7378 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7379 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7380 fi
7381
7382 # Too many warnings for now
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7384 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7385 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388
7389 gl_save_compiler_FLAGS="$CFLAGS"
7390 as_fn_append CFLAGS " -Wno-type-limits"
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393
7394 int
7395 main ()
7396 {
7397
7398 ;
7399 return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_c_try_compile "$LINENO"; then :
7403 gl_cv_warn_c__Wno_type_limits=yes
7404 else
7405 gl_cv_warn_c__Wno_type_limits=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 CFLAGS="$gl_save_compiler_FLAGS"
7409
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7412 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7413 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7414 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7415 fi
7416
7417 # Too many warnings for now
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7419 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7420 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423
7424 gl_save_compiler_FLAGS="$CFLAGS"
7425 as_fn_append CFLAGS " -Wno-switch"
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428
7429 int
7430 main ()
7431 {
7432
7433 ;
7434 return 0;
7435 }
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"; then :
7438 gl_cv_warn_c__Wno_switch=yes
7439 else
7440 gl_cv_warn_c__Wno_switch=no
7441 fi
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 CFLAGS="$gl_save_compiler_FLAGS"
7444
7445 fi
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7447 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7448 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7449 as_fn_append WARN_CFLAGS " -Wno-switch"
7450 fi
7451
7452 # Too many warnings for now
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7454 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7455 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458
7459 gl_save_compiler_FLAGS="$CFLAGS"
7460 as_fn_append CFLAGS " -Wno-unused-parameter"
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463
7464 int
7465 main ()
7466 {
7467
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473 gl_cv_warn_c__Wno_unused_parameter=yes
7474 else
7475 gl_cv_warn_c__Wno_unused_parameter=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 CFLAGS="$gl_save_compiler_FLAGS"
7479
7480 fi
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7482 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7483 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7484 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7485 fi
7486
7487 # Too many warnings for now
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7489 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7490 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493
7494 gl_save_compiler_FLAGS="$CFLAGS"
7495 as_fn_append CFLAGS " -Wno-format-nonliteral"
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498
7499 int
7500 main ()
7501 {
7502
7503 ;
7504 return 0;
7505 }
7506 _ACEOF
7507 if ac_fn_c_try_compile "$LINENO"; then :
7508 gl_cv_warn_c__Wno_format_nonliteral=yes
7509 else
7510 gl_cv_warn_c__Wno_format_nonliteral=no
7511 fi
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 CFLAGS="$gl_save_compiler_FLAGS"
7514
7515 fi
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7517 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7518 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7519 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7520 fi
7521
7522
7523
7524 # In spite of excluding -Wlogical-op above, it is enabled, as of
7525 # gcc 4.5.0 20090517.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7527 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7528 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531
7532 gl_save_compiler_FLAGS="$CFLAGS"
7533 as_fn_append CFLAGS " -Wno-logical-op"
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536
7537 int
7538 main ()
7539 {
7540
7541 ;
7542 return 0;
7543 }
7544 _ACEOF
7545 if ac_fn_c_try_compile "$LINENO"; then :
7546 gl_cv_warn_c__Wno_logical_op=yes
7547 else
7548 gl_cv_warn_c__Wno_logical_op=no
7549 fi
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 CFLAGS="$gl_save_compiler_FLAGS"
7552
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7555 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7556 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7557 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7558 fi
7559
7560
7561
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7563 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7564 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567
7568 gl_save_compiler_FLAGS="$CFLAGS"
7569 as_fn_append CFLAGS " -fdiagnostics-show-option"
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572
7573 int
7574 main ()
7575 {
7576
7577 ;
7578 return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 gl_cv_warn_c__fdiagnostics_show_option=yes
7583 else
7584 gl_cv_warn_c__fdiagnostics_show_option=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 CFLAGS="$gl_save_compiler_FLAGS"
7588
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7591 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7592 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7593 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7594 fi
7595
7596
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7598 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7599 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602
7603 gl_save_compiler_FLAGS="$CFLAGS"
7604 as_fn_append CFLAGS " -funit-at-a-time"
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607
7608 int
7609 main ()
7610 {
7611
7612 ;
7613 return 0;
7614 }
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617 gl_cv_warn_c__funit_at_a_time=yes
7618 else
7619 gl_cv_warn_c__funit_at_a_time=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 CFLAGS="$gl_save_compiler_FLAGS"
7623
7624 fi
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7626 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7627 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7628 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7629 fi
7630
7631
7632
7633
7634 $as_echo "#define lint 1" >>confdefs.h
7635
7636
7637 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7638
7639
7640 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7641
7642
7643 # We use a slightly smaller set of warning options for lib/.
7644 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7645 nw=
7646 nw="$nw -Wunused-macros"
7647
7648
7649 gl_warn_set=
7650 set x $WARN_CFLAGS; shift
7651 for gl_warn_item
7652 do
7653 case " $nw " in
7654 *" $gl_warn_item "*)
7655 ;;
7656 *)
7657 gl_warn_set="$gl_warn_set $gl_warn_item"
7658 ;;
7659 esac
7660 done
7661 GNULIB_WARN_CFLAGS=$gl_warn_set
7662
7663
7664 fi
7665
7666
7667
7668
7669 # Extract the first word of "install-info", so it can be a program name with args.
7670 set dummy install-info; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 case $INSTALL_INFO in
7677 [\\/]* | ?:[\\/]*)
7678 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7679 ;;
7680 *)
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7683 do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7697 ;;
7698 esac
7699 fi
7700 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7701 if test -n "$INSTALL_INFO"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7703 $as_echo "$INSTALL_INFO" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708
7709
7710 # Extract the first word of "gzip", so it can be a program name with args.
7711 set dummy gzip; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 case $GZIP_PROG in
7718 [\\/]* | ?:[\\/]*)
7719 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7720 ;;
7721 *)
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH
7724 do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7729 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733 done
7734 done
7735 IFS=$as_save_IFS
7736
7737 ;;
7738 esac
7739 fi
7740 GZIP_PROG=$ac_cv_path_GZIP_PROG
7741 if test -n "$GZIP_PROG"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7743 $as_echo "$GZIP_PROG" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748
7749
7750 # Extract the first word of "paxctl", so it can be a program name with args.
7751 set dummy paxctl; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 case $PAXCTL in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7760 ;;
7761 *)
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7764 do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777 ;;
7778 esac
7779 fi
7780 PAXCTL=$ac_cv_path_PAXCTL
7781 if test -n "$PAXCTL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7783 $as_echo "$PAXCTL" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789
7790
7791
7792 ## Need makeinfo >= 4.7 (?) to build the manuals.
7793 # Extract the first word of "makeinfo", so it can be a program name with args.
7794 set dummy makeinfo; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 case $MAKEINFO in
7801 [\\/]* | ?:[\\/]*)
7802 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7803 ;;
7804 *)
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816 done
7817 done
7818 IFS=$as_save_IFS
7819
7820 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7821 ;;
7822 esac
7823 fi
7824 MAKEINFO=$ac_cv_path_MAKEINFO
7825 if test -n "$MAKEINFO"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7827 $as_echo "$MAKEINFO" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833
7834 if test "$MAKEINFO" != "no" && \
7835 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
7836 MAKEINFO=no
7837 fi
7838
7839 ## Makeinfo is unusual. For a released Emacs, the manuals are
7840 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7841 ## therefore in the category of "special tools" not normally required, which
7842 ## configure does not have to check for (eg autoconf itself).
7843 ## In a Bazaar checkout on the other hand, the manuals are not included.
7844 ## So makeinfo is a requirement to build from Bazaar, and configure
7845 ## should test for it as it does for any other build requirement.
7846 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7847 ## with pre-built manuals, from a Bazaar checkout.
7848 HAVE_MAKEINFO=yes
7849
7850 if test "$MAKEINFO" = "no"; then
7851 MAKEINFO=makeinfo
7852 if test "x${with_makeinfo}" = "xno"; then
7853 HAVE_MAKEINFO=no
7854 elif test ! -e $srcdir/info/emacs; then
7855 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7856 source tree does not seem to have pre-built manuals in the \`info' directory.
7857 Either install a suitable version of makeinfo, or re-run configure
7858 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7859 fi
7860 fi
7861
7862
7863 INFO_EXT=.info
7864 INFO_OPTS=--no-split
7865
7866
7867
7868
7869 if test x$GCC = xyes; then
7870 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7871 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7872 else
7873 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7874 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7875 fi
7876
7877
7878 late_LDFLAGS=$LDFLAGS
7879 if test x$GCC = xyes; then
7880 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7881 else
7882 LDFLAGS="$LDFLAGS -znocombreloc"
7883 fi
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7886 $as_echo_n "checking for -znocombreloc... " >&6; }
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7889
7890 int
7891 main ()
7892 {
7893
7894 ;
7895 return 0;
7896 }
7897 _ACEOF
7898 if ac_fn_c_try_link "$LINENO"; then :
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900 $as_echo "yes" >&6; }
7901 else
7902 LDFLAGS=$late_LDFLAGS
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908
7909
7910 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7911 case "$opsys" in
7912 your-opsys-here) CANNOT_DUMP=yes ;;
7913 esac
7914
7915 test "$CANNOT_DUMP" = "yes" && \
7916
7917 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7918
7919
7920
7921
7922
7923 UNEXEC_OBJ=unexelf.o
7924 case "$opsys" in
7925 # MSDOS uses unexcoff.o
7926 # MSWindows uses unexw32.o
7927 aix4-2)
7928 UNEXEC_OBJ=unexaix.o
7929 ;;
7930 cygwin)
7931 UNEXEC_OBJ=unexcw.o
7932 ;;
7933 darwin)
7934 UNEXEC_OBJ=unexmacosx.o
7935 ;;
7936 hpux10-20 | hpux11)
7937 UNEXEC_OBJ=unexhp9k800.o
7938 ;;
7939 sol2-10)
7940 # Use the Solaris dldump() function, called from unexsol.c, to dump
7941 # emacs, instead of the generic ELF dump code found in unexelf.c.
7942 # The resulting binary has a complete symbol table, and is better
7943 # for debugging and other observability tools (debuggers, pstack, etc).
7944 #
7945 # If you encounter a problem using dldump(), please consider sending
7946 # a message to the OpenSolaris tools-linking mailing list:
7947 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7948 #
7949 # It is likely that dldump() works with older Solaris too, but this has
7950 # not been tested, so for now this change is for Solaris 10 or newer.
7951 UNEXEC_OBJ=unexsol.o
7952 ;;
7953 esac
7954
7955 LD_SWITCH_SYSTEM=
7956 case "$opsys" in
7957 freebsd)
7958 ## Let `ld' find image libs and similar things in /usr/local/lib.
7959 ## The system compiler, GCC, has apparently been modified to not
7960 ## look there, contrary to what a stock GCC would do.
7961 ### It's not our place to do this. See bug#10313#17.
7962 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
7963 :
7964 ;;
7965
7966 gnu-linux)
7967 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7968 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7969 ;;
7970
7971 netbsd)
7972 ### It's not our place to do this. See bug#10313#17.
7973 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7974 :
7975 ;;
7976
7977 openbsd)
7978 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7979 ## otherwise Emacs dumps core on elf systems.
7980 LD_SWITCH_SYSTEM="-Z"
7981 ;;
7982 esac
7983
7984
7985 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7986
7987 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
7988 ## which has not been defined yet. When this was handled with cpp,
7989 ## it was expanded to null when configure sourced the s/*.h file.
7990 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7991 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7992 ## (or somesuch), but because it is supposed to go at the _front_
7993 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7994 ## Compare with the gnu-linux case below, which added to the end
7995 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7996 ## LD_SWITCH_SYSTEM_TEMACS.
7997 case "$opsys" in
7998 netbsd|openbsd)
7999 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8000 esac
8001
8002
8003 C_SWITCH_MACHINE=
8004 case $canonical in
8005 alpha*)
8006 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8007 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8008
8009 fi
8010
8011 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8012 ## With ELF, make sure that all common symbols get allocated to in the
8013 ## data section. Otherwise, the dump of temacs may miss variables in
8014 ## the shared library that have been initialized. For example, with
8015 ## GNU libc, __malloc_initialized would normally be resolved to the
8016 ## shared library's .bss section, which is fatal.
8017 if test "x$GCC" = "xyes"; then
8018 C_SWITCH_MACHINE="-fno-common"
8019 else
8020 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8021 fi
8022 else
8023 UNEXEC_OBJ=unexalpha.o
8024 fi
8025 ;;
8026 esac
8027
8028
8029
8030
8031 C_SWITCH_SYSTEM=
8032 ## Some programs in src produce warnings saying certain subprograms
8033 ## are too complex and need a MAXMEM value greater than 2000 for
8034 ## additional optimization. --nils@exp-math.uni-essen.de
8035 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8036 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8037 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8038 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8039
8040
8041
8042 LIBS_SYSTEM=
8043 case "$opsys" in
8044 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8045 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8046
8047 freebsd) LIBS_SYSTEM="-lutil" ;;
8048
8049 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8050
8051 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8052
8053 ## Motif needs -lgen.
8054 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8055 esac
8056
8057
8058
8059 ### Make sure subsequent tests use flags consistent with the build flags.
8060
8061 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8062 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8063 else
8064 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8065 fi
8066
8067 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8068
8069 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8070
8071
8072
8073 LIB_MATH=-lm
8074 LIB_STANDARD=
8075 START_FILES=
8076
8077 case $opsys in
8078 cygwin )
8079 LIB_MATH=
8080 START_FILES='pre-crt0.o'
8081 ;;
8082 darwin )
8083 ## Adding -lm confuses the dynamic linker, so omit it.
8084 LIB_MATH=
8085 START_FILES='pre-crt0.o'
8086 ;;
8087 freebsd )
8088 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8089 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8090 ;;
8091 gnu-linux | gnu-kfreebsd )
8092 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8093 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8094 ;;
8095 hpux10-20 | hpux11 )
8096 LIB_STANDARD=-lc
8097 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8098 ;;
8099 netbsd | openbsd )
8100 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8101 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8102 ;;
8103 esac
8104
8105
8106
8107
8108 crt_files=
8109
8110 for file in x $LIB_STANDARD $START_FILES; do
8111 case "$file" in
8112 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8113 esac
8114 done
8115
8116 if test "x$crt_files" != x; then
8117
8118 ## If user specified a crt-dir, use that unconditionally.
8119 crt_gcc=no
8120
8121 if test "X$CRT_DIR" = "X"; then
8122
8123 CRT_DIR=/usr/lib # default
8124
8125 case "$canonical" in
8126 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8127 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8128 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8129 ## For anything else (eg /usr/lib32), it is up the user to specify
8130 ## the location (bug#5655).
8131 ## Test for crtn.o, not just the directory, because sometimes the
8132 ## directory exists but does not have the relevant files (bug#1287).
8133 ## FIXME better to test for binary compatibility somehow.
8134 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8135 ;;
8136
8137 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8138 esac
8139
8140 case "$opsys" in
8141 hpux10-20) CRT_DIR=/lib ;;
8142 esac
8143
8144 test "x${GCC}" = xyes && crt_gcc=yes
8145
8146 fi # CRT_DIR = ""
8147
8148 crt_missing=
8149
8150 for file in $crt_files; do
8151
8152 ## If we're using gcc, try to determine it automatically by asking
8153 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8154 ## system-dependent default from above.]
8155 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8156
8157 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8158 case "$crt_file" in
8159 */*)
8160 CRT_DIR=`$as_dirname -- "$crt_file" ||
8161 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8162 X"$crt_file" : 'X\(//\)[^/]' \| \
8163 X"$crt_file" : 'X\(//\)$' \| \
8164 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8165 $as_echo X"$crt_file" |
8166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8167 s//\1/
8168 q
8169 }
8170 /^X\(\/\/\)[^/].*/{
8171 s//\1/
8172 q
8173 }
8174 /^X\(\/\/\)$/{
8175 s//\1/
8176 q
8177 }
8178 /^X\(\/\).*/{
8179 s//\1/
8180 q
8181 }
8182 s/.*/./; q'`
8183 ;;
8184 esac
8185 fi
8186
8187 crt_gcc=no
8188
8189 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8190 done # $crt_files
8191
8192 test "x$crt_missing" = x || \
8193 as_fn_error "Required file(s) not found:$crt_missing
8194 Try using the --with-crt-dir option." "$LINENO" 5
8195
8196 fi # crt_files != ""
8197
8198
8199
8200 case $opsys in
8201 netbsd | openbsd )
8202 if test -f $CRT_DIR/crti.o; then
8203
8204 test -f $CRT_DIR/crtn.o || \
8205 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8206
8207 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8208 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8209 fi
8210 ;;
8211 esac
8212
8213
8214 # Extract the first word of "pkg-config", so it can be a program name with args.
8215 set dummy pkg-config; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 case $PKG_CONFIG in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8224 ;;
8225 *)
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8242 ;;
8243 esac
8244 fi
8245 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8246 if test -n "$PKG_CONFIG"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8248 $as_echo "$PKG_CONFIG" >&6; }
8249 else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8253
8254
8255
8256
8257
8258
8259 if test "${with_sound}" != "no"; then
8260 # Sound support for GNU/Linux and the free BSDs.
8261 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8262 do :
8263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8264 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8265 eval as_val=\$$as_ac_Header
8266 if test "x$as_val" = x""yes; then :
8267 cat >>confdefs.h <<_ACEOF
8268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8269 _ACEOF
8270 have_sound_header=yes
8271 fi
8272
8273 done
8274
8275 # Emulation library used on NetBSD.
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8277 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8278 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 ac_check_lib_save_LIBS=$LIBS
8282 LIBS="-lossaudio $LIBS"
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285
8286 /* Override any GCC internal prototype to avoid an error.
8287 Use char because int might match the return type of a GCC
8288 builtin and then its argument prototype would still apply. */
8289 #ifdef __cplusplus
8290 extern "C"
8291 #endif
8292 char _oss_ioctl ();
8293 int
8294 main ()
8295 {
8296 return _oss_ioctl ();
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 if ac_fn_c_try_link "$LINENO"; then :
8302 ac_cv_lib_ossaudio__oss_ioctl=yes
8303 else
8304 ac_cv_lib_ossaudio__oss_ioctl=no
8305 fi
8306 rm -f core conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext conftest.$ac_ext
8308 LIBS=$ac_check_lib_save_LIBS
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8311 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8312 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8313 LIBSOUND=-lossaudio
8314 else
8315 LIBSOUND=
8316 fi
8317
8318
8319
8320 ALSA_REQUIRED=1.0.0
8321 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8322
8323 succeeded=no
8324
8325 if test "$PKG_CONFIG" = "no" ; then
8326 HAVE_ALSA=no
8327 else
8328 PKG_CONFIG_MIN_VERSION=0.9.0
8329 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8331 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8332
8333 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8334 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8335 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8336 edit_cflags="
8337 s,///*,/,g
8338 s/^/ /
8339 s/ -I/ $isystem/g
8340 s/^ //
8341 "
8342 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8343 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8345 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8346 succeeded=yes
8347 else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8350 ALSA_CFLAGS=""
8351 ALSA_LIBS=""
8352 ## If we have a custom action on failure, don't print errors, but
8353 ## do set a variable so people can do so.
8354 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8355
8356 fi
8357
8358
8359
8360 else
8361 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8362 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8363 fi
8364 fi
8365
8366 if test $succeeded = yes; then
8367 HAVE_ALSA=yes
8368 else
8369 HAVE_ALSA=no
8370 fi
8371
8372 if test $HAVE_ALSA = yes; then
8373 SAVE_CFLAGS="$CFLAGS"
8374 SAVE_LIBS="$LIBS"
8375 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8376 LIBS="$ALSA_LIBS $LIBS"
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 #include <asoundlib.h>
8380 int
8381 main ()
8382 {
8383 snd_lib_error_set_handler (0);
8384 ;
8385 return 0;
8386 }
8387 _ACEOF
8388 if ac_fn_c_try_compile "$LINENO"; then :
8389 emacs_alsa_normal=yes
8390 else
8391 emacs_alsa_normal=no
8392 fi
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 if test "$emacs_alsa_normal" != yes; then
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <alsa/asoundlib.h>
8398 int
8399 main ()
8400 {
8401 snd_lib_error_set_handler (0);
8402 ;
8403 return 0;
8404 }
8405 _ACEOF
8406 if ac_fn_c_try_compile "$LINENO"; then :
8407 emacs_alsa_subdir=yes
8408 else
8409 emacs_alsa_subdir=no
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412 if test "$emacs_alsa_subdir" != yes; then
8413 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8414 fi
8415 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8416 fi
8417
8418 CFLAGS="$SAVE_CFLAGS"
8419 LIBS="$SAVE_LIBS"
8420 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8421 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8422
8423 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8424
8425 fi
8426
8427 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8428 case "$opsys" in
8429 gnu-linux|freebsd|netbsd)
8430
8431 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8432
8433 ;;
8434 esac
8435 fi
8436
8437
8438 fi
8439
8440
8441
8442
8443 for ac_header in $ac_header_list
8444 do :
8445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8447 "
8448 eval as_val=\$$as_ac_Header
8449 if test "x$as_val" = x""yes; then :
8450 cat >>confdefs.h <<_ACEOF
8451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8452 _ACEOF
8453
8454 fi
8455
8456 done
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8493 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <sys/personality.h>
8497 int
8498 main ()
8499 {
8500 personality (PER_LINUX32)
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 if ac_fn_c_try_compile "$LINENO"; then :
8506 emacs_cv_personality_linux32=yes
8507 else
8508 emacs_cv_personality_linux32=no
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8512 $as_echo "$emacs_cv_personality_linux32" >&6; }
8513
8514 if test $emacs_cv_personality_linux32 = yes; then
8515
8516 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8517
8518 fi
8519
8520 for ac_header in term.h
8521 do :
8522 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8523 if test "x$ac_cv_header_term_h" = x""yes; then :
8524 cat >>confdefs.h <<_ACEOF
8525 #define HAVE_TERM_H 1
8526 _ACEOF
8527
8528 fi
8529
8530 done
8531
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8533 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8534 if test "${ac_cv_header_time+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 #include <sys/types.h>
8540 #include <sys/time.h>
8541 #include <time.h>
8542
8543 int
8544 main ()
8545 {
8546 if ((struct tm *) 0)
8547 return 0;
8548 ;
8549 return 0;
8550 }
8551 _ACEOF
8552 if ac_fn_c_try_compile "$LINENO"; then :
8553 ac_cv_header_time=yes
8554 else
8555 ac_cv_header_time=no
8556 fi
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 fi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8560 $as_echo "$ac_cv_header_time" >&6; }
8561 if test $ac_cv_header_time = yes; then
8562
8563 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8564
8565 fi
8566
8567 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8568 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8569 ac_have_decl=1
8570 else
8571 ac_have_decl=0
8572 fi
8573
8574 cat >>confdefs.h <<_ACEOF
8575 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8576 _ACEOF
8577
8578 if test $ac_cv_have_decl_sys_siglist != yes; then
8579 # For Tru64, at least:
8580 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8581 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8582 ac_have_decl=1
8583 else
8584 ac_have_decl=0
8585 fi
8586
8587 cat >>confdefs.h <<_ACEOF
8588 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8589 _ACEOF
8590
8591 if test $ac_cv_have_decl___sys_siglist = yes; then
8592
8593 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8594
8595 fi
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8598 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8599 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #include <sys/types.h>
8605 #include <sys/wait.h>
8606 #ifndef WEXITSTATUS
8607 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8608 #endif
8609 #ifndef WIFEXITED
8610 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8611 #endif
8612
8613 int
8614 main ()
8615 {
8616 int s;
8617 wait (&s);
8618 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8619 ;
8620 return 0;
8621 }
8622 _ACEOF
8623 if ac_fn_c_try_compile "$LINENO"; then :
8624 ac_cv_header_sys_wait_h=yes
8625 else
8626 ac_cv_header_sys_wait_h=no
8627 fi
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8631 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8632 if test $ac_cv_header_sys_wait_h = yes; then
8633
8634 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8635
8636 fi
8637
8638
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8640 $as_echo_n "checking for struct utimbuf... " >&6; }
8641 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8646 #ifdef TIME_WITH_SYS_TIME
8647 #include <sys/time.h>
8648 #include <time.h>
8649 #else
8650 #ifdef HAVE_SYS_TIME_H
8651 #include <sys/time.h>
8652 #else
8653 #include <time.h>
8654 #endif
8655 #endif
8656 #ifdef HAVE_UTIME_H
8657 #include <utime.h>
8658 #endif
8659 int
8660 main ()
8661 {
8662 static struct utimbuf x; x.actime = x.modtime;
8663 ;
8664 return 0;
8665 }
8666 _ACEOF
8667 if ac_fn_c_try_compile "$LINENO"; then :
8668 emacs_cv_struct_utimbuf=yes
8669 else
8670 emacs_cv_struct_utimbuf=no
8671 fi
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 fi
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8675 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8676 if test $emacs_cv_struct_utimbuf = yes; then
8677
8678 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8679
8680 fi
8681
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8683 $as_echo_n "checking for speed_t... " >&6; }
8684 if test "${emacs_cv_speed_t+set}" = set; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #include <termios.h>
8690 int
8691 main ()
8692 {
8693 speed_t x = 1;
8694 ;
8695 return 0;
8696 }
8697 _ACEOF
8698 if ac_fn_c_try_compile "$LINENO"; then :
8699 emacs_cv_speed_t=yes
8700 else
8701 emacs_cv_speed_t=no
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8706 $as_echo "$emacs_cv_speed_t" >&6; }
8707 if test $emacs_cv_speed_t = yes; then
8708
8709 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8710
8711 fi
8712
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8714 $as_echo_n "checking for struct timeval... " >&6; }
8715 if test "${emacs_cv_struct_timeval+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #ifdef TIME_WITH_SYS_TIME
8721 #include <sys/time.h>
8722 #include <time.h>
8723 #else
8724 #ifdef HAVE_SYS_TIME_H
8725 #include <sys/time.h>
8726 #else
8727 #include <time.h>
8728 #endif
8729 #endif
8730 int
8731 main ()
8732 {
8733 static struct timeval x; x.tv_sec = x.tv_usec;
8734 ;
8735 return 0;
8736 }
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"; then :
8739 emacs_cv_struct_timeval=yes
8740 else
8741 emacs_cv_struct_timeval=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8746 $as_echo "$emacs_cv_struct_timeval" >&6; }
8747 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8748 if test $emacs_cv_struct_timeval = yes; then
8749
8750 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8751
8752 fi
8753
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8755 $as_echo_n "checking for struct exception... " >&6; }
8756 if test "${emacs_cv_struct_exception+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 #include <math.h>
8762 int
8763 main ()
8764 {
8765 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8766 ;
8767 return 0;
8768 }
8769 _ACEOF
8770 if ac_fn_c_try_compile "$LINENO"; then :
8771 emacs_cv_struct_exception=yes
8772 else
8773 emacs_cv_struct_exception=no
8774 fi
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776 fi
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8778 $as_echo "$emacs_cv_struct_exception" >&6; }
8779 HAVE_EXCEPTION=$emacs_cv_struct_exception
8780 if test $emacs_cv_struct_exception != yes; then
8781
8782 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8783
8784 fi
8785
8786
8787
8788
8789 for ac_header in net/if.h
8790 do :
8791 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8792 #if HAVE_SYS_SOCKET_H
8793 #include <sys/socket.h>
8794 #endif
8795 "
8796 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8797 cat >>confdefs.h <<_ACEOF
8798 #define HAVE_NET_IF_H 1
8799 _ACEOF
8800
8801 fi
8802
8803 done
8804
8805 for ac_header in ifaddrs.h
8806 do :
8807 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8808 #if HAVE_SYS_SOCKET_H
8809 #include <sys/socket.h>
8810 #endif
8811 "
8812 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8813 cat >>confdefs.h <<_ACEOF
8814 #define HAVE_IFADDRS_H 1
8815 _ACEOF
8816
8817 fi
8818
8819 done
8820
8821 for ac_header in net/if_dl.h
8822 do :
8823 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8824 #if HAVE_SYS_SOCKET_H
8825 #include <sys/socket.h>
8826 #endif
8827 "
8828 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8829 cat >>confdefs.h <<_ACEOF
8830 #define HAVE_NET_IF_DL_H 1
8831 _ACEOF
8832
8833 fi
8834
8835 done
8836
8837 for ac_func in getifaddrs freeifaddrs
8838 do :
8839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8841 eval as_val=\$$as_ac_var
8842 if test "x$as_val" = x""yes; then :
8843 cat >>confdefs.h <<_ACEOF
8844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8845 _ACEOF
8846
8847 fi
8848 done
8849
8850
8851 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8852 #if HAVE_SYS_SOCKET_H
8853 #include <sys/socket.h>
8854 #endif
8855 #if HAVE_NET_IF_H
8856 #include <net/if.h>
8857 #endif
8858 "
8859 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8860
8861 cat >>confdefs.h <<_ACEOF
8862 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8863 _ACEOF
8864
8865
8866 fi
8867 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8868 #if HAVE_SYS_SOCKET_H
8869 #include <sys/socket.h>
8870 #endif
8871 #if HAVE_NET_IF_H
8872 #include <net/if.h>
8873 #endif
8874 "
8875 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8876
8877 cat >>confdefs.h <<_ACEOF
8878 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8879 _ACEOF
8880
8881
8882 fi
8883 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8884 #if HAVE_SYS_SOCKET_H
8885 #include <sys/socket.h>
8886 #endif
8887 #if HAVE_NET_IF_H
8888 #include <net/if.h>
8889 #endif
8890 "
8891 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8892
8893 cat >>confdefs.h <<_ACEOF
8894 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8895 _ACEOF
8896
8897
8898 fi
8899 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8900 #if HAVE_SYS_SOCKET_H
8901 #include <sys/socket.h>
8902 #endif
8903 #if HAVE_NET_IF_H
8904 #include <net/if.h>
8905 #endif
8906 "
8907 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8908
8909 cat >>confdefs.h <<_ACEOF
8910 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8911 _ACEOF
8912
8913
8914 fi
8915 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8916 #if HAVE_SYS_SOCKET_H
8917 #include <sys/socket.h>
8918 #endif
8919 #if HAVE_NET_IF_H
8920 #include <net/if.h>
8921 #endif
8922 "
8923 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8924
8925 cat >>confdefs.h <<_ACEOF
8926 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8927 _ACEOF
8928
8929
8930 fi
8931 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8932 #if HAVE_SYS_SOCKET_H
8933 #include <sys/socket.h>
8934 #endif
8935 #if HAVE_NET_IF_H
8936 #include <net/if.h>
8937 #endif
8938 "
8939 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8940
8941 cat >>confdefs.h <<_ACEOF
8942 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8943 _ACEOF
8944
8945
8946 fi
8947
8948
8949
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8951 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8952 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 char __attribute__ ((__aligned__ (1 << 3))) c;
8958 int
8959 main ()
8960 {
8961
8962 ;
8963 return 0;
8964 }
8965 _ACEOF
8966 if ac_fn_c_try_compile "$LINENO"; then :
8967 emacs_cv_attribute_aligned=yes
8968 else
8969 emacs_cv_attribute_aligned=no
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8974 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8975 if test $emacs_cv_attribute_aligned = yes; then
8976
8977 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8978
8979 fi
8980
8981
8982 DEPFLAGS=
8983 MKDEPDIR=":"
8984 deps_frag=deps.mk
8985 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8987 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8988 HAVE_GNU_MAKE=no
8989 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
8990 if test "x$testval" != x; then
8991 HAVE_GNU_MAKE=yes
8992 else
8993 ac_enable_autodepend=no
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8996 $as_echo "$HAVE_GNU_MAKE" >&6; }
8997 if test $HAVE_GNU_MAKE = yes; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8999 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9000 SAVE_CFLAGS="$CFLAGS"
9001 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004
9005 int
9006 main ()
9007 {
9008
9009 ;
9010 return 0;
9011 }
9012 _ACEOF
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014
9015 else
9016 ac_enable_autodepend=no
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 CFLAGS="$SAVE_CFLAGS"
9020 test -f deps.d || ac_enable_autodepend=no
9021 rm -rf deps.d
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9023 $as_echo "$ac_enable_autodepend" >&6; }
9024 fi
9025 if test $ac_enable_autodepend = yes; then
9026 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9027 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9028 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9029 deps_frag=autodeps.mk
9030 fi
9031 fi
9032 deps_frag=$srcdir/src/$deps_frag
9033
9034
9035
9036
9037
9038 lisp_frag=$srcdir/src/lisp.mk
9039
9040
9041
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9043 $as_echo_n "checking for long file names... " >&6; }
9044 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 ac_cv_sys_long_file_names=yes
9048 # Test for long file names in all the places we know might matter:
9049 # . the current directory, where building will happen
9050 # $prefix/lib where we will be installing things
9051 # $exec_prefix/lib likewise
9052 # $TMPDIR if set, where it might want to write temporary files
9053 # /tmp where it might want to write temporary files
9054 # /var/tmp likewise
9055 # /usr/tmp likewise
9056 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9057 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9058 # in the usual case where exec_prefix is '${prefix}'.
9059 case $ac_dir in #(
9060 . | /* | ?:[\\/]*) ;; #(
9061 *) continue;;
9062 esac
9063 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9064 ac_xdir=$ac_dir/cf$$
9065 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9066 ac_tf1=$ac_xdir/conftest9012345
9067 ac_tf2=$ac_xdir/conftest9012346
9068 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9069 ac_cv_sys_long_file_names=no
9070 rm -f -r "$ac_xdir" 2>/dev/null
9071 test $ac_cv_sys_long_file_names = no && break
9072 done
9073 fi
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9075 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9076 if test $ac_cv_sys_long_file_names = yes; then
9077
9078 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9079
9080 fi
9081
9082
9083 #### Choose a window system.
9084
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9086 $as_echo_n "checking for X... " >&6; }
9087
9088
9089 # Check whether --with-x was given.
9090 if test "${with_x+set}" = set; then :
9091 withval=$with_x;
9092 fi
9093
9094 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9095 if test "x$with_x" = xno; then
9096 # The user explicitly disabled X.
9097 have_x=disabled
9098 else
9099 case $x_includes,$x_libraries in #(
9100 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9101 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 # One or both of the vars are not set, and there is no cached value.
9105 ac_x_includes=no ac_x_libraries=no
9106 rm -f -r conftest.dir
9107 if mkdir conftest.dir; then
9108 cd conftest.dir
9109 cat >Imakefile <<'_ACEOF'
9110 incroot:
9111 @echo incroot='${INCROOT}'
9112 usrlibdir:
9113 @echo usrlibdir='${USRLIBDIR}'
9114 libdir:
9115 @echo libdir='${LIBDIR}'
9116 _ACEOF
9117 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9119 for ac_var in incroot usrlibdir libdir; do
9120 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9121 done
9122 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9123 for ac_extension in a so sl dylib la dll; do
9124 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9125 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9126 ac_im_usrlibdir=$ac_im_libdir; break
9127 fi
9128 done
9129 # Screen out bogus values from the imake configuration. They are
9130 # bogus both because they are the default anyway, and because
9131 # using them would break gcc on systems where it needs fixed includes.
9132 case $ac_im_incroot in
9133 /usr/include) ac_x_includes= ;;
9134 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9135 esac
9136 case $ac_im_usrlibdir in
9137 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9138 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9139 esac
9140 fi
9141 cd ..
9142 rm -f -r conftest.dir
9143 fi
9144
9145 # Standard set of common directories for X headers.
9146 # Check X11 before X11Rn because it is often a symlink to the current release.
9147 ac_x_header_dirs='
9148 /usr/X11/include
9149 /usr/X11R7/include
9150 /usr/X11R6/include
9151 /usr/X11R5/include
9152 /usr/X11R4/include
9153
9154 /usr/include/X11
9155 /usr/include/X11R7
9156 /usr/include/X11R6
9157 /usr/include/X11R5
9158 /usr/include/X11R4
9159
9160 /usr/local/X11/include
9161 /usr/local/X11R7/include
9162 /usr/local/X11R6/include
9163 /usr/local/X11R5/include
9164 /usr/local/X11R4/include
9165
9166 /usr/local/include/X11
9167 /usr/local/include/X11R7
9168 /usr/local/include/X11R6
9169 /usr/local/include/X11R5
9170 /usr/local/include/X11R4
9171
9172 /usr/X386/include
9173 /usr/x386/include
9174 /usr/XFree86/include/X11
9175
9176 /usr/include
9177 /usr/local/include
9178 /usr/unsupported/include
9179 /usr/athena/include
9180 /usr/local/x11r5/include
9181 /usr/lpp/Xamples/include
9182
9183 /usr/openwin/include
9184 /usr/openwin/share/include'
9185
9186 if test "$ac_x_includes" = no; then
9187 # Guess where to find include files, by looking for Xlib.h.
9188 # First, try using that file with no special directory specified.
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 #include <X11/Xlib.h>
9192 _ACEOF
9193 if ac_fn_c_try_cpp "$LINENO"; then :
9194 # We can compile using X headers with no special include directory.
9195 ac_x_includes=
9196 else
9197 for ac_dir in $ac_x_header_dirs; do
9198 if test -r "$ac_dir/X11/Xlib.h"; then
9199 ac_x_includes=$ac_dir
9200 break
9201 fi
9202 done
9203 fi
9204 rm -f conftest.err conftest.$ac_ext
9205 fi # $ac_x_includes = no
9206
9207 if test "$ac_x_libraries" = no; then
9208 # Check for the libraries.
9209 # See if we find them without any special options.
9210 # Don't add to $LIBS permanently.
9211 ac_save_LIBS=$LIBS
9212 LIBS="-lX11 $LIBS"
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #include <X11/Xlib.h>
9216 int
9217 main ()
9218 {
9219 XrmInitialize ()
9220 ;
9221 return 0;
9222 }
9223 _ACEOF
9224 if ac_fn_c_try_link "$LINENO"; then :
9225 LIBS=$ac_save_LIBS
9226 # We can link X programs with no special library path.
9227 ac_x_libraries=
9228 else
9229 LIBS=$ac_save_LIBS
9230 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9231 do
9232 # Don't even attempt the hair of trying to link an X program!
9233 for ac_extension in a so sl dylib la dll; do
9234 if test -r "$ac_dir/libX11.$ac_extension"; then
9235 ac_x_libraries=$ac_dir
9236 break 2
9237 fi
9238 done
9239 done
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 fi # $ac_x_libraries = no
9244
9245 case $ac_x_includes,$ac_x_libraries in #(
9246 no,* | *,no | *\'*)
9247 # Didn't find X, or a directory has "'" in its name.
9248 ac_cv_have_x="have_x=no";; #(
9249 *)
9250 # Record where we found X for the cache.
9251 ac_cv_have_x="have_x=yes\
9252 ac_x_includes='$ac_x_includes'\
9253 ac_x_libraries='$ac_x_libraries'"
9254 esac
9255 fi
9256 ;; #(
9257 *) have_x=yes;;
9258 esac
9259 eval "$ac_cv_have_x"
9260 fi # $with_x != no
9261
9262 if test "$have_x" != yes; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9264 $as_echo "$have_x" >&6; }
9265 no_x=yes
9266 else
9267 # If each of the values was on the command line, it overrides each guess.
9268 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9269 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9270 # Update the cache value to reflect the command line values.
9271 ac_cv_have_x="have_x=yes\
9272 ac_x_includes='$x_includes'\
9273 ac_x_libraries='$x_libraries'"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9275 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9276 fi
9277
9278 if test "$no_x" = yes; then
9279 window_system=none
9280 else
9281 window_system=x11
9282 fi
9283
9284 LD_SWITCH_X_SITE_RPATH=
9285 if test "${x_libraries}" != NONE; then
9286 if test -n "${x_libraries}"; then
9287 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9288 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9289 fi
9290 x_default_search_path=""
9291 x_search_path=${x_libraries}
9292 if test -z "${x_search_path}"; then
9293 x_search_path=/usr/lib
9294 fi
9295 for x_library in `echo ${x_search_path}: | \
9296 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9297 x_search_path="\
9298 ${x_library}/X11/%L/%T/%N%C%S:\
9299 ${x_library}/X11/%l/%T/%N%C%S:\
9300 ${x_library}/X11/%T/%N%C%S:\
9301 ${x_library}/X11/%L/%T/%N%S:\
9302 ${x_library}/X11/%l/%T/%N%S:\
9303 ${x_library}/X11/%T/%N%S"
9304 if test x"${x_default_search_path}" = x; then
9305 x_default_search_path=${x_search_path}
9306 else
9307 x_default_search_path="${x_search_path}:${x_default_search_path}"
9308 fi
9309 done
9310 fi
9311
9312
9313 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9314 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9315 fi
9316
9317 if test x"${x_includes}" = x; then
9318 bitmapdir=/usr/include/X11/bitmaps
9319 else
9320 # accumulate include directories that have X11 bitmap subdirectories
9321 bmd_acc="dummyval"
9322 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9323 if test -d "${bmd}/X11/bitmaps"; then
9324 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9325 fi
9326 if test -d "${bmd}/bitmaps"; then
9327 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9328 fi
9329 done
9330 if test ${bmd_acc} != "dummyval"; then
9331 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9332 fi
9333 fi
9334
9335 HAVE_NS=no
9336 NS_IMPL_COCOA=no
9337 NS_IMPL_GNUSTEP=no
9338 tmp_CPPFLAGS="$CPPFLAGS"
9339 tmp_CFLAGS="$CFLAGS"
9340 CPPFLAGS="$CPPFLAGS -x objective-c"
9341 CFLAGS="$CFLAGS -x objective-c"
9342 TEMACS_LDFLAGS2="\${LDFLAGS}"
9343 GNU_OBJC_CFLAGS=
9344 if test "${with_ns}" != no; then
9345 if test "${opsys}" = darwin; then
9346 NS_IMPL_COCOA=yes
9347 ns_appdir=`pwd`/nextstep/Emacs.app
9348 ns_appbindir=${ns_appdir}/Contents/MacOS
9349 ns_appresdir=${ns_appdir}/Contents/Resources
9350 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9351 elif test -f $GNUSTEP_CONFIG_FILE; then
9352 NS_IMPL_GNUSTEP=yes
9353 ns_appdir=`pwd`/nextstep/Emacs.app
9354 ns_appbindir=${ns_appdir}
9355 ns_appresdir=${ns_appdir}/Resources
9356 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9357 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9358 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9359 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9360 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9361 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9362 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9363 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9364 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9365 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9366 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9367 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9368 LIB_STANDARD=
9369 START_FILES=
9370 TEMACS_LDFLAGS2=
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9372 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9373 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 #include <GNUstepBase/GSConfig.h>
9379 int
9380 main ()
9381 {
9382 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9383 1;
9384 #else
9385 fail;
9386 #endif
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_compile "$LINENO"; then :
9392 emacs_cv_objc_exceptions=yes
9393 else
9394 emacs_cv_objc_exceptions=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 fi
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9399 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9400 if test $emacs_cv_objc_exceptions = yes; then
9401
9402 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9403
9404 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9405 fi
9406 fi
9407
9408 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9409
9410 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9411 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9412 HAVE_NS=yes
9413 else
9414 as_fn_error "\`--with-ns' was specified, but the include
9415 files are missing or cannot be compiled." "$LINENO" 5
9416 fi
9417
9418
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 #include <Foundation/NSObjCRuntime.h>
9422 int
9423 main ()
9424 {
9425 NSInteger i;
9426 ;
9427 return 0;
9428 }
9429 _ACEOF
9430 if ac_fn_c_try_compile "$LINENO"; then :
9431 ns_have_nsinteger=yes
9432 else
9433 ns_have_nsinteger=no
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9436 if test $ns_have_nsinteger = yes; then
9437
9438 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9439
9440 fi
9441 fi
9442
9443
9444 INSTALL_ARCH_INDEP_EXTRA=install-etc
9445 ns_self_contained=no
9446 ns_frag=/dev/null
9447 NS_OBJ=
9448 NS_OBJC_OBJ=
9449 if test "${HAVE_NS}" = yes; then
9450 if test "$with_toolkit_scroll_bars" = "no"; then
9451 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9452 fi
9453
9454 window_system=nextstep
9455 with_xft=no
9456 # set up packaging dirs
9457 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9458 ns_self_contained=yes
9459 prefix=${ns_appresdir}
9460 exec_prefix=${ns_appbindir}
9461 libexecdir="\${ns_appbindir}/libexec"
9462 archlibdir="\${ns_appbindir}/libexec"
9463 docdir="\${ns_appresdir}/etc"
9464 etcdir="\${ns_appresdir}/etc"
9465 infodir="\${ns_appresdir}/info"
9466 mandir="\${ns_appresdir}/man"
9467 lispdir="\${ns_appresdir}/lisp"
9468 leimdir="\${ns_appresdir}/leim"
9469 INSTALL_ARCH_INDEP_EXTRA=
9470 fi
9471 ns_frag=$srcdir/src/ns.mk
9472 NS_OBJ="fontset.o fringe.o image.o"
9473 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9474 fi
9475 CFLAGS="$tmp_CFLAGS"
9476 CPPFLAGS="$tmp_CPPFLAGS"
9477
9478
9479
9480
9481
9482
9483
9484 case "${window_system}" in
9485 x11 )
9486 HAVE_X_WINDOWS=yes
9487 HAVE_X11=yes
9488 case "${with_x_toolkit}" in
9489 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9490 motif ) USE_X_TOOLKIT=MOTIF ;;
9491 gtk ) with_gtk=yes
9492 USE_X_TOOLKIT=none ;;
9493 gtk3 ) with_gtk3=yes
9494 USE_X_TOOLKIT=none ;;
9495 no ) USE_X_TOOLKIT=none ;;
9496 * ) USE_X_TOOLKIT=maybe ;;
9497 esac
9498 ;;
9499 nextstep | none )
9500 HAVE_X_WINDOWS=no
9501 HAVE_X11=no
9502 USE_X_TOOLKIT=none
9503 ;;
9504 esac
9505
9506 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9507 # Extract the first word of "X", so it can be a program name with args.
9508 set dummy X; ac_word=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 if test -n "$HAVE_XSERVER"; then
9515 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9516 else
9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518 for as_dir in $PATH
9519 do
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
9523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9524 ac_cv_prog_HAVE_XSERVER="true"
9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 break 2
9527 fi
9528 done
9529 done
9530 IFS=$as_save_IFS
9531
9532 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9533 fi
9534 fi
9535 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9536 if test -n "$HAVE_XSERVER"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9538 $as_echo "$HAVE_XSERVER" >&6; }
9539 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9542 fi
9543
9544
9545 if test "$HAVE_XSERVER" = true ||
9546 test -n "$DISPLAY" ||
9547 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9548 as_fn_error "You seem to be running X, but no X development libraries
9549 were found. You should install the relevant development files for X
9550 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9551 sure you have development files for image handling, i.e.
9552 tiff, gif, jpeg, png and xpm.
9553 If you are sure you want Emacs compiled without X window support, pass
9554 --without-x
9555 to configure." "$LINENO" 5
9556 fi
9557 fi
9558
9559 ### If we're using X11, we should use the X menu package.
9560 HAVE_MENUS=no
9561 case ${HAVE_X11} in
9562 yes ) HAVE_MENUS=yes ;;
9563 esac
9564
9565 # Does the opsystem file prohibit the use of the GNU malloc?
9566 # Assume not, until told otherwise.
9567 GNU_MALLOC=yes
9568
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9570 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9571 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 #include <malloc.h>
9577 static void hook (void) {}
9578 int
9579 main ()
9580 {
9581 malloc_set_state (malloc_get_state ());
9582 __after_morecore_hook = hook;
9583 __malloc_initialize_hook = hook;
9584 ;
9585 return 0;
9586 }
9587 _ACEOF
9588 if ac_fn_c_try_link "$LINENO"; then :
9589 emacs_cv_var_doug_lea_malloc=yes
9590 else
9591 emacs_cv_var_doug_lea_malloc=no
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595 fi
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9597 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9598 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9599
9600
9601 system_malloc=no
9602 case "$opsys" in
9603 ## darwin ld insists on the use of malloc routines in the System framework.
9604 darwin|sol2-10) system_malloc=yes ;;
9605 esac
9606
9607 if test "${system_malloc}" = "yes"; then
9608
9609 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9610
9611 GNU_MALLOC=no
9612 GNU_MALLOC_reason="
9613 (The GNU allocators don't work with this system configuration.)"
9614 GMALLOC_OBJ=
9615 VMLIMIT_OBJ=
9616 else
9617 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9618 VMLIMIT_OBJ=vm-limit.o
9619 fi
9620
9621
9622
9623 if test "$doug_lea_malloc" = "yes" ; then
9624 if test "$GNU_MALLOC" = yes ; then
9625 GNU_MALLOC_reason="
9626 (Using Doug Lea's new malloc from the GNU C Library.)"
9627 fi
9628
9629 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9630
9631
9632 ## Use mmap directly for allocating larger buffers.
9633 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9634 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9635 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9636 case "$opsys" in
9637 gnu*) REL_ALLOC=no ;;
9638 esac
9639 fi
9640
9641 if test x"${REL_ALLOC}" = x; then
9642 REL_ALLOC=${GNU_MALLOC}
9643 fi
9644
9645 use_mmap_for_buffers=no
9646 case "$opsys" in
9647 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9648 esac
9649
9650
9651
9652
9653
9654
9655
9656
9657 for ac_func in getpagesize
9658 do :
9659 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9660 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9661 cat >>confdefs.h <<_ACEOF
9662 #define HAVE_GETPAGESIZE 1
9663 _ACEOF
9664
9665 fi
9666 done
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9669 $as_echo_n "checking for working mmap... " >&6; }
9670 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 if test "$cross_compiling" = yes; then :
9674 ac_cv_func_mmap_fixed_mapped=no
9675 else
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 $ac_includes_default
9679 /* malloc might have been renamed as rpl_malloc. */
9680 #undef malloc
9681
9682 /* Thanks to Mike Haertel and Jim Avera for this test.
9683 Here is a matrix of mmap possibilities:
9684 mmap private not fixed
9685 mmap private fixed at somewhere currently unmapped
9686 mmap private fixed at somewhere already mapped
9687 mmap shared not fixed
9688 mmap shared fixed at somewhere currently unmapped
9689 mmap shared fixed at somewhere already mapped
9690 For private mappings, we should verify that changes cannot be read()
9691 back from the file, nor mmap's back from the file at a different
9692 address. (There have been systems where private was not correctly
9693 implemented like the infamous i386 svr4.0, and systems where the
9694 VM page cache was not coherent with the file system buffer cache
9695 like early versions of FreeBSD and possibly contemporary NetBSD.)
9696 For shared mappings, we should conversely verify that changes get
9697 propagated back to all the places they're supposed to be.
9698
9699 Grep wants private fixed already mapped.
9700 The main things grep needs to know about mmap are:
9701 * does it exist and is it safe to write into the mmap'd area
9702 * how to use it (BSD variants) */
9703
9704 #include <fcntl.h>
9705 #include <sys/mman.h>
9706
9707 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9708 char *malloc ();
9709 #endif
9710
9711 /* This mess was copied from the GNU getpagesize.h. */
9712 #ifndef HAVE_GETPAGESIZE
9713 # ifdef _SC_PAGESIZE
9714 # define getpagesize() sysconf(_SC_PAGESIZE)
9715 # else /* no _SC_PAGESIZE */
9716 # ifdef HAVE_SYS_PARAM_H
9717 # include <sys/param.h>
9718 # ifdef EXEC_PAGESIZE
9719 # define getpagesize() EXEC_PAGESIZE
9720 # else /* no EXEC_PAGESIZE */
9721 # ifdef NBPG
9722 # define getpagesize() NBPG * CLSIZE
9723 # ifndef CLSIZE
9724 # define CLSIZE 1
9725 # endif /* no CLSIZE */
9726 # else /* no NBPG */
9727 # ifdef NBPC
9728 # define getpagesize() NBPC
9729 # else /* no NBPC */
9730 # ifdef PAGESIZE
9731 # define getpagesize() PAGESIZE
9732 # endif /* PAGESIZE */
9733 # endif /* no NBPC */
9734 # endif /* no NBPG */
9735 # endif /* no EXEC_PAGESIZE */
9736 # else /* no HAVE_SYS_PARAM_H */
9737 # define getpagesize() 8192 /* punt totally */
9738 # endif /* no HAVE_SYS_PARAM_H */
9739 # endif /* no _SC_PAGESIZE */
9740
9741 #endif /* no HAVE_GETPAGESIZE */
9742
9743 int
9744 main ()
9745 {
9746 char *data, *data2, *data3;
9747 const char *cdata2;
9748 int i, pagesize;
9749 int fd, fd2;
9750
9751 pagesize = getpagesize ();
9752
9753 /* First, make a file with some known garbage in it. */
9754 data = (char *) malloc (pagesize);
9755 if (!data)
9756 return 1;
9757 for (i = 0; i < pagesize; ++i)
9758 *(data + i) = rand ();
9759 umask (0);
9760 fd = creat ("conftest.mmap", 0600);
9761 if (fd < 0)
9762 return 2;
9763 if (write (fd, data, pagesize) != pagesize)
9764 return 3;
9765 close (fd);
9766
9767 /* Next, check that the tail of a page is zero-filled. File must have
9768 non-zero length, otherwise we risk SIGBUS for entire page. */
9769 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9770 if (fd2 < 0)
9771 return 4;
9772 cdata2 = "";
9773 if (write (fd2, cdata2, 1) != 1)
9774 return 5;
9775 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9776 if (data2 == MAP_FAILED)
9777 return 6;
9778 for (i = 0; i < pagesize; ++i)
9779 if (*(data2 + i))
9780 return 7;
9781 close (fd2);
9782 if (munmap (data2, pagesize))
9783 return 8;
9784
9785 /* Next, try to mmap the file at a fixed address which already has
9786 something else allocated at it. If we can, also make sure that
9787 we see the same garbage. */
9788 fd = open ("conftest.mmap", O_RDWR);
9789 if (fd < 0)
9790 return 9;
9791 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9792 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9793 return 10;
9794 for (i = 0; i < pagesize; ++i)
9795 if (*(data + i) != *(data2 + i))
9796 return 11;
9797
9798 /* Finally, make sure that changes to the mapped area do not
9799 percolate back to the file as seen by read(). (This is a bug on
9800 some variants of i386 svr4.0.) */
9801 for (i = 0; i < pagesize; ++i)
9802 *(data2 + i) = *(data2 + i) + 1;
9803 data3 = (char *) malloc (pagesize);
9804 if (!data3)
9805 return 12;
9806 if (read (fd, data3, pagesize) != pagesize)
9807 return 13;
9808 for (i = 0; i < pagesize; ++i)
9809 if (*(data + i) != *(data3 + i))
9810 return 14;
9811 close (fd);
9812 return 0;
9813 }
9814 _ACEOF
9815 if ac_fn_c_try_run "$LINENO"; then :
9816 ac_cv_func_mmap_fixed_mapped=yes
9817 else
9818 ac_cv_func_mmap_fixed_mapped=no
9819 fi
9820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9821 conftest.$ac_objext conftest.beam conftest.$ac_ext
9822 fi
9823
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9826 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9828
9829 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9830
9831 fi
9832 rm -f conftest.mmap conftest.txt
9833
9834 if test $use_mmap_for_buffers = yes; then
9835
9836 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9837
9838 REL_ALLOC=no
9839 fi
9840
9841 LIBS="$LIBS_SYSTEM $LIBS"
9842
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9844 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9845 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 ac_check_lib_save_LIBS=$LIBS
9849 LIBS="-ldnet $LIBS"
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9856 #ifdef __cplusplus
9857 extern "C"
9858 #endif
9859 char dnet_ntoa ();
9860 int
9861 main ()
9862 {
9863 return dnet_ntoa ();
9864 ;
9865 return 0;
9866 }
9867 _ACEOF
9868 if ac_fn_c_try_link "$LINENO"; then :
9869 ac_cv_lib_dnet_dnet_ntoa=yes
9870 else
9871 ac_cv_lib_dnet_dnet_ntoa=no
9872 fi
9873 rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 LIBS=$ac_check_lib_save_LIBS
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9878 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9879 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9880 cat >>confdefs.h <<_ACEOF
9881 #define HAVE_LIBDNET 1
9882 _ACEOF
9883
9884 LIBS="-ldnet $LIBS"
9885
9886 fi
9887
9888
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9890 $as_echo_n "checking for main in -lXbsd... " >&6; }
9891 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 ac_check_lib_save_LIBS=$LIBS
9895 LIBS="-lXbsd $LIBS"
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898
9899
9900 int
9901 main ()
9902 {
9903 return main ();
9904 ;
9905 return 0;
9906 }
9907 _ACEOF
9908 if ac_fn_c_try_link "$LINENO"; then :
9909 ac_cv_lib_Xbsd_main=yes
9910 else
9911 ac_cv_lib_Xbsd_main=no
9912 fi
9913 rm -f core conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
9915 LIBS=$ac_check_lib_save_LIBS
9916 fi
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9918 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9919 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9920 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9921 fi
9922
9923
9924 LIB_PTHREAD=
9925
9926
9927
9928 if test "$ac_cv_header_pthread_h"; then
9929 if test "$GMALLOC_OBJ" = gmalloc.o; then
9930 emacs_pthread_function=pthread_atfork
9931 else
9932 emacs_pthread_function=pthread_self
9933 fi
9934 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9936 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9937 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-lpthread $LIBS"
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9944
9945 /* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 char $emacs_pthread_function ();
9952 int
9953 main ()
9954 {
9955 return $emacs_pthread_function ();
9956 ;
9957 return 0;
9958 }
9959 _ACEOF
9960 if ac_fn_c_try_link "$LINENO"; then :
9961 eval "$as_ac_Lib=yes"
9962 else
9963 eval "$as_ac_Lib=no"
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9968 fi
9969 eval ac_res=\$$as_ac_Lib
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9971 $as_echo "$ac_res" >&6; }
9972 eval as_val=\$$as_ac_Lib
9973 if test "x$as_val" = x""yes; then :
9974 HAVE_PTHREAD=yes
9975 fi
9976
9977 fi
9978 if test "$HAVE_PTHREAD" = yes; then
9979 case "${canonical}" in
9980 *-hpux*) ;;
9981 *) LIB_PTHREAD="-lpthread"
9982 LIBS="$LIB_PTHREAD $LIBS" ;;
9983 esac
9984
9985 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9986
9987 fi
9988
9989
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9991 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9992 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 ac_check_lib_save_LIBS=$LIBS
9996 LIBS="-lpthreads $LIBS"
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999
10000 /* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
10003 #ifdef __cplusplus
10004 extern "C"
10005 #endif
10006 char cma_open ();
10007 int
10008 main ()
10009 {
10010 return cma_open ();
10011 ;
10012 return 0;
10013 }
10014 _ACEOF
10015 if ac_fn_c_try_link "$LINENO"; then :
10016 ac_cv_lib_pthreads_cma_open=yes
10017 else
10018 ac_cv_lib_pthreads_cma_open=no
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10023 fi
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10025 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10026 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10027 cat >>confdefs.h <<_ACEOF
10028 #define HAVE_LIBPTHREADS 1
10029 _ACEOF
10030
10031 LIBS="-lpthreads $LIBS"
10032
10033 fi
10034
10035
10036 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10037 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10038 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10039 ## added to LIBS in configure would never contain the pthreads part,
10040 ## but the value used in Makefiles might. FIXME?
10041 ##
10042 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10043 ## be harmless on older versions of X where it happens to exist.
10044 test "$opsys" = "aix4-2" && \
10045 test $ac_cv_lib_pthreads_cma_open = yes && \
10046 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10047
10048
10049 case ${host_os} in
10050 aix*)
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10052 $as_echo_n "checking for -bbigtoc option... " >&6; }
10053 if test "${gdb_cv_bigtoc+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056
10057 case $GCC in
10058 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10059 *) gdb_cv_bigtoc=-bbigtoc ;;
10060 esac
10061
10062 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10065
10066 int
10067 main ()
10068 {
10069 int i;
10070 ;
10071 return 0;
10072 }
10073 _ACEOF
10074 if ac_fn_c_try_link "$LINENO"; then :
10075
10076 else
10077 gdb_cv_bigtoc=
10078 fi
10079 rm -f core conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081
10082 fi
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10084 $as_echo "$gdb_cv_bigtoc" >&6; }
10085 ;;
10086 esac
10087
10088 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10089 # used for the tests that follow. We set them back to REAL_CFLAGS and
10090 # REAL_CPPFLAGS later on.
10091
10092 REAL_CFLAGS="$CFLAGS"
10093 REAL_CPPFLAGS="$CPPFLAGS"
10094
10095 if test "${HAVE_X11}" = "yes"; then
10096 DEFS="$C_SWITCH_X_SITE $DEFS"
10097 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10098 LIBS="-lX11 $LIBS"
10099 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10100 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10101
10102 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10103 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10104 # but it's more convenient here to set LD_RUN_PATH since this
10105 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10106 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10107 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10108 export LD_RUN_PATH
10109 fi
10110
10111 if test "${opsys}" = "gnu-linux"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10113 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116
10117 int
10118 main ()
10119 {
10120 XOpenDisplay ("foo");
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_c_try_link "$LINENO"; then :
10126 xgnu_linux_first_failure=no
10127 else
10128 xgnu_linux_first_failure=yes
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 if test "${xgnu_linux_first_failure}" = "yes"; then
10133 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10134 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10135 OLD_CPPFLAGS="$CPPFLAGS"
10136 OLD_LIBS="$LIBS"
10137 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10138 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10139 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10140 LIBS="$LIBS -b i486-linuxaout"
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143
10144 int
10145 main ()
10146 {
10147 XOpenDisplay ("foo");
10148 ;
10149 return 0;
10150 }
10151 _ACEOF
10152 if ac_fn_c_try_link "$LINENO"; then :
10153 xgnu_linux_second_failure=no
10154 else
10155 xgnu_linux_second_failure=yes
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 if test "${xgnu_linux_second_failure}" = "yes"; then
10160 # If we get the same failure with -b, there is no use adding -b.
10161 # So take it out. This plays safe.
10162 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10163 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10164 CPPFLAGS="$OLD_CPPFLAGS"
10165 LIBS="$OLD_LIBS"
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170 $as_echo "yes" >&6; }
10171 fi
10172 else
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10175 fi
10176 fi
10177
10178 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10179 # header files included from there.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10181 $as_echo_n "checking for Xkb... " >&6; }
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 #include <X11/Xlib.h>
10185 #include <X11/XKBlib.h>
10186 int
10187 main ()
10188 {
10189 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"; then :
10195 emacs_xkb=yes
10196 else
10197 emacs_xkb=no
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10202 $as_echo "$emacs_xkb" >&6; }
10203 if test $emacs_xkb = yes; then
10204
10205 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10206
10207 fi
10208
10209 for ac_func in XrmSetDatabase XScreenResourceString \
10210 XScreenNumberOfScreen
10211 do :
10212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10214 eval as_val=\$$as_ac_var
10215 if test "x$as_val" = x""yes; then :
10216 cat >>confdefs.h <<_ACEOF
10217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10218 _ACEOF
10219
10220 fi
10221 done
10222
10223 fi
10224
10225 if test "${window_system}" = "x11"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10227 $as_echo_n "checking X11 version 6... " >&6; }
10228 if test "${emacs_cv_x11_version_6+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233 #include <X11/Xlib.h>
10234 int
10235 main ()
10236 {
10237 #if XlibSpecificationRelease < 6
10238 fail;
10239 #endif
10240
10241 ;
10242 return 0;
10243 }
10244 _ACEOF
10245 if ac_fn_c_try_link "$LINENO"; then :
10246 emacs_cv_x11_version_6=yes
10247 else
10248 emacs_cv_x11_version_6=no
10249 fi
10250 rm -f core conftest.err conftest.$ac_objext \
10251 conftest$ac_exeext conftest.$ac_ext
10252 fi
10253
10254 if test $emacs_cv_x11_version_6 = yes; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10256 $as_echo "6 or newer" >&6; }
10257
10258 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10259
10260
10261 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10262
10263 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10264 ## XIM support.
10265 case "$opsys" in
10266 sol2-*) : ;;
10267 *)
10268 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10269
10270 ;;
10271 esac
10272 else
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10274 $as_echo "before 6" >&6; }
10275 fi
10276 fi
10277
10278
10279 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10280 HAVE_RSVG=no
10281 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10282 if test "${with_rsvg}" != "no"; then
10283 RSVG_REQUIRED=2.11.0
10284 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10285
10286
10287 succeeded=no
10288
10289 if test "$PKG_CONFIG" = "no" ; then
10290 :
10291 else
10292 PKG_CONFIG_MIN_VERSION=0.9.0
10293 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10295 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10296
10297 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10298 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10299 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10300 edit_cflags="
10301 s,///*,/,g
10302 s/^/ /
10303 s/ -I/ $isystem/g
10304 s/^ //
10305 "
10306 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10307 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10309 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10310 succeeded=yes
10311 else
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10314 RSVG_CFLAGS=""
10315 RSVG_LIBS=""
10316 ## If we have a custom action on failure, don't print errors, but
10317 ## do set a variable so people can do so.
10318 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10319
10320 fi
10321
10322
10323
10324 else
10325 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10326 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10327 fi
10328 fi
10329
10330 if test $succeeded = yes; then
10331 HAVE_RSVG=yes
10332 else
10333 :
10334 fi
10335
10336
10337
10338
10339 if test $HAVE_RSVG = yes; then
10340
10341 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10342
10343 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10344 LIBS="$RSVG_LIBS $LIBS"
10345 fi
10346 fi
10347 fi
10348
10349 HAVE_IMAGEMAGICK=no
10350 if test "${HAVE_X11}" = "yes"; then
10351 if test "${with_imagemagick}" != "no"; then
10352 ## 6.2.8 is the earliest version known to work, but earlier versions
10353 ## might work - let us know if you find one.
10354 ## 6.0.7 does not work. See bug#7955.
10355 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10356
10357 succeeded=no
10358
10359 if test "$PKG_CONFIG" = "no" ; then
10360 :
10361 else
10362 PKG_CONFIG_MIN_VERSION=0.9.0
10363 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10365 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10366
10367 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10368 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10369 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10370 edit_cflags="
10371 s,///*,/,g
10372 s/^/ /
10373 s/ -I/ $isystem/g
10374 s/^ //
10375 "
10376 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10377 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10379 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10380 succeeded=yes
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 IMAGEMAGICK_CFLAGS=""
10385 IMAGEMAGICK_LIBS=""
10386 ## If we have a custom action on failure, don't print errors, but
10387 ## do set a variable so people can do so.
10388 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10389
10390 fi
10391
10392
10393
10394 else
10395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10397 fi
10398 fi
10399
10400 if test $succeeded = yes; then
10401 HAVE_IMAGEMAGICK=yes
10402 else
10403 :
10404 fi
10405
10406
10407
10408
10409 if test $HAVE_IMAGEMAGICK = yes; then
10410
10411 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10412
10413 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10414 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10415 for ac_func in MagickExportImagePixels
10416 do :
10417 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10418 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10419 cat >>confdefs.h <<_ACEOF
10420 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10421 _ACEOF
10422
10423 fi
10424 done
10425
10426 fi
10427 fi
10428 fi
10429
10430
10431 HAVE_GTK=no
10432 GTK_OBJ=
10433 if test "${with_gtk3}" = "yes"; then
10434 GLIB_REQUIRED=2.28
10435 GTK_REQUIRED=3.0
10436 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10437
10438
10439 succeeded=no
10440
10441 if test "$PKG_CONFIG" = "no" ; then
10442 pkg_check_gtk=no
10443 else
10444 PKG_CONFIG_MIN_VERSION=0.9.0
10445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10447 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10448
10449 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10450 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10451 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10452 edit_cflags="
10453 s,///*,/,g
10454 s/^/ /
10455 s/ -I/ $isystem/g
10456 s/^ //
10457 "
10458 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10459 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10461 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10462 succeeded=yes
10463 else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10466 GTK_CFLAGS=""
10467 GTK_LIBS=""
10468 ## If we have a custom action on failure, don't print errors, but
10469 ## do set a variable so people can do so.
10470 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10471
10472 fi
10473
10474
10475
10476 else
10477 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10478 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10479 fi
10480 fi
10481
10482 if test $succeeded = yes; then
10483 pkg_check_gtk=yes
10484 else
10485 pkg_check_gtk=no
10486 fi
10487
10488 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10489 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10490 fi
10491
10492 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10493
10494 GTK_OBJ=emacsgtkfixed.o
10495 fi
10496
10497 if test "$pkg_check_gtk" != "yes"; then
10498 HAVE_GTK=no
10499 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10500 GLIB_REQUIRED=2.10
10501 GTK_REQUIRED=2.10
10502 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10503
10504
10505 succeeded=no
10506
10507 if test "$PKG_CONFIG" = "no" ; then
10508 pkg_check_gtk=no
10509 else
10510 PKG_CONFIG_MIN_VERSION=0.9.0
10511 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10513 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10514
10515 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10516 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10517 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10518 edit_cflags="
10519 s,///*,/,g
10520 s/^/ /
10521 s/ -I/ $isystem/g
10522 s/^ //
10523 "
10524 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10525 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10527 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10528 succeeded=yes
10529 else
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10532 GTK_CFLAGS=""
10533 GTK_LIBS=""
10534 ## If we have a custom action on failure, don't print errors, but
10535 ## do set a variable so people can do so.
10536 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10537
10538 fi
10539
10540
10541
10542 else
10543 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10544 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10545 fi
10546 fi
10547
10548 if test $succeeded = yes; then
10549 pkg_check_gtk=yes
10550 else
10551 pkg_check_gtk=no
10552 fi
10553
10554 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10555 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10556 fi
10557 fi
10558 fi
10559
10560 if test x"$pkg_check_gtk" = xyes; then
10561
10562
10563
10564 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10565 CFLAGS="$CFLAGS $GTK_CFLAGS"
10566 LIBS="$GTK_LIBS $LIBS"
10567 GTK_COMPILES=no
10568 for ac_func in gtk_main
10569 do :
10570 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10571 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10572 cat >>confdefs.h <<_ACEOF
10573 #define HAVE_GTK_MAIN 1
10574 _ACEOF
10575 GTK_COMPILES=yes
10576 fi
10577 done
10578
10579 if test "${GTK_COMPILES}" != "yes"; then
10580 if test "$USE_X_TOOLKIT" != "maybe"; then
10581 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10582 fi
10583 else
10584 HAVE_GTK=yes
10585
10586 $as_echo "#define USE_GTK 1" >>confdefs.h
10587
10588 GTK_OBJ="gtkutil.o $GTK_OBJ"
10589 USE_X_TOOLKIT=none
10590 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10591 :
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10594 closing open displays. This is no problem if you just use
10595 one display, but if you use more than one and close one of them
10596 Emacs may crash." >&5
10597 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10598 closing open displays. This is no problem if you just use
10599 one display, but if you use more than one and close one of them
10600 Emacs may crash." >&2;}
10601 sleep 3
10602 fi
10603 fi
10604
10605 fi
10606
10607
10608
10609 if test "${HAVE_GTK}" = "yes"; then
10610
10611 if test "$with_toolkit_scroll_bars" != no; then
10612 with_toolkit_scroll_bars=yes
10613 fi
10614
10615 HAVE_GTK_FILE_SELECTION=no
10616 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10617 #include <gtk/gtk.h>
10618 "
10619 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10620 HAVE_GTK_FILE_SELECTION=yes
10621 else
10622 HAVE_GTK_FILE_SELECTION=no
10623 fi
10624
10625 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10626 for ac_func in gtk_file_selection_new
10627 do :
10628 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10629 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10630 cat >>confdefs.h <<_ACEOF
10631 #define HAVE_GTK_FILE_SELECTION_NEW 1
10632 _ACEOF
10633
10634 fi
10635 done
10636
10637 fi
10638
10639
10640 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10641 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10642 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10643 gtk_orientable_set_orientation \
10644 gtk_window_set_has_resize_grip
10645 do :
10646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10648 eval as_val=\$$as_ac_var
10649 if test "x$as_val" = x""yes; then :
10650 cat >>confdefs.h <<_ACEOF
10651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10652 _ACEOF
10653
10654 fi
10655 done
10656
10657 fi
10658
10659 HAVE_DBUS=no
10660 DBUS_OBJ=
10661 if test "${with_dbus}" = "yes"; then
10662
10663 succeeded=no
10664
10665 if test "$PKG_CONFIG" = "no" ; then
10666 HAVE_DBUS=no
10667 else
10668 PKG_CONFIG_MIN_VERSION=0.9.0
10669 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10671 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10672
10673 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10674 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10675 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10676 edit_cflags="
10677 s,///*,/,g
10678 s/^/ /
10679 s/ -I/ $isystem/g
10680 s/^ //
10681 "
10682 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10683 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10685 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10686 succeeded=yes
10687 else
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10690 DBUS_CFLAGS=""
10691 DBUS_LIBS=""
10692 ## If we have a custom action on failure, don't print errors, but
10693 ## do set a variable so people can do so.
10694 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10695
10696 fi
10697
10698
10699
10700 else
10701 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10702 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10703 fi
10704 fi
10705
10706 if test $succeeded = yes; then
10707 HAVE_DBUS=yes
10708 else
10709 HAVE_DBUS=no
10710 fi
10711
10712 if test "$HAVE_DBUS" = yes; then
10713 LIBS="$LIBS $DBUS_LIBS"
10714
10715 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10716
10717 for ac_func in dbus_watch_get_unix_fd \
10718 dbus_validate_bus_name \
10719 dbus_validate_path \
10720 dbus_validate_interface \
10721 dbus_validate_member
10722 do :
10723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10725 eval as_val=\$$as_ac_var
10726 if test "x$as_val" = x""yes; then :
10727 cat >>confdefs.h <<_ACEOF
10728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10729 _ACEOF
10730
10731 fi
10732 done
10733
10734 DBUS_OBJ=dbusbind.o
10735 fi
10736 fi
10737
10738
10739 HAVE_GSETTINGS=no
10740 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10741
10742 succeeded=no
10743
10744 if test "$PKG_CONFIG" = "no" ; then
10745 HAVE_GSETTINGS=no
10746 else
10747 PKG_CONFIG_MIN_VERSION=0.9.0
10748 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10750 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10751
10752 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10753 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10754 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10755 edit_cflags="
10756 s,///*,/,g
10757 s/^/ /
10758 s/ -I/ $isystem/g
10759 s/^ //
10760 "
10761 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10762 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10764 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10765 succeeded=yes
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10769 GSETTINGS_CFLAGS=""
10770 GSETTINGS_LIBS=""
10771 ## If we have a custom action on failure, don't print errors, but
10772 ## do set a variable so people can do so.
10773 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10774
10775 fi
10776
10777
10778
10779 else
10780 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10781 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10782 fi
10783 fi
10784
10785 if test $succeeded = yes; then
10786 HAVE_GSETTINGS=yes
10787 else
10788 HAVE_GSETTINGS=no
10789 fi
10790
10791 if test "$HAVE_GSETTINGS" = "yes"; then
10792
10793 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10794
10795 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10796 SETTINGS_LIBS="$GSETTINGS_LIBS"
10797 fi
10798 fi
10799
10800 HAVE_GCONF=no
10801 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10802
10803 succeeded=no
10804
10805 if test "$PKG_CONFIG" = "no" ; then
10806 HAVE_GCONF=no
10807 else
10808 PKG_CONFIG_MIN_VERSION=0.9.0
10809 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10811 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10812
10813 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10814 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10815 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10816 edit_cflags="
10817 s,///*,/,g
10818 s/^/ /
10819 s/ -I/ $isystem/g
10820 s/^ //
10821 "
10822 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10823 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10825 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10826 succeeded=yes
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10830 GCONF_CFLAGS=""
10831 GCONF_LIBS=""
10832 ## If we have a custom action on failure, don't print errors, but
10833 ## do set a variable so people can do so.
10834 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10835
10836 fi
10837
10838
10839
10840 else
10841 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10842 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10843 fi
10844 fi
10845
10846 if test $succeeded = yes; then
10847 HAVE_GCONF=yes
10848 else
10849 HAVE_GCONF=no
10850 fi
10851
10852 if test "$HAVE_GCONF" = yes; then
10853
10854 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10855
10856 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10857 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10858 fi
10859 fi
10860
10861 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10862 SAVE_CFLAGS="$CFLAGS"
10863 SAVE_LIBS="$LIBS"
10864 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
10865 LIBS="$SETTINGS_LIBS $LIBS"
10866 for ac_func in g_type_init
10867 do :
10868 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10869 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10870 cat >>confdefs.h <<_ACEOF
10871 #define HAVE_G_TYPE_INIT 1
10872 _ACEOF
10873
10874 fi
10875 done
10876
10877 CFLAGS="$SAVE_CFLAGS"
10878 LIBS="$SAVE_LIBS"
10879 fi
10880
10881
10882
10883
10884 HAVE_LIBSELINUX=no
10885 LIBSELINUX_LIBS=
10886 if test "${with_selinux}" = "yes"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10888 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10889 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-lselinux $LIBS"
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10900 #ifdef __cplusplus
10901 extern "C"
10902 #endif
10903 char lgetfilecon ();
10904 int
10905 main ()
10906 {
10907 return lgetfilecon ();
10908 ;
10909 return 0;
10910 }
10911 _ACEOF
10912 if ac_fn_c_try_link "$LINENO"; then :
10913 ac_cv_lib_selinux_lgetfilecon=yes
10914 else
10915 ac_cv_lib_selinux_lgetfilecon=no
10916 fi
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10920 fi
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10922 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10923 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10924 HAVE_LIBSELINUX=yes
10925 else
10926 HAVE_LIBSELINUX=no
10927 fi
10928
10929 if test "$HAVE_LIBSELINUX" = yes; then
10930
10931 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10932
10933 LIBSELINUX_LIBS=-lselinux
10934 fi
10935 fi
10936
10937
10938 HAVE_GNUTLS=no
10939 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
10940 if test "${with_gnutls}" = "yes" ; then
10941
10942 succeeded=no
10943
10944 if test "$PKG_CONFIG" = "no" ; then
10945 HAVE_GNUTLS=no
10946 else
10947 PKG_CONFIG_MIN_VERSION=0.9.0
10948 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
10950 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
10951
10952 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
10953 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
10954 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
10955 edit_cflags="
10956 s,///*,/,g
10957 s/^/ /
10958 s/ -I/ $isystem/g
10959 s/^ //
10960 "
10961 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
10962 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
10964 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
10965 succeeded=yes
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969 LIBGNUTLS_CFLAGS=""
10970 LIBGNUTLS_LIBS=""
10971 ## If we have a custom action on failure, don't print errors, but
10972 ## do set a variable so people can do so.
10973 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
10974
10975 fi
10976
10977
10978
10979 else
10980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10982 fi
10983 fi
10984
10985 if test $succeeded = yes; then
10986 HAVE_GNUTLS=yes
10987 else
10988 HAVE_GNUTLS=no
10989 fi
10990
10991 if test "${HAVE_GNUTLS}" = "yes"; then
10992
10993 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10994
10995 fi
10996
10997 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
10998 LIBS="$LIBGNUTLS_LIBS $LIBS"
10999 for ac_func in gnutls_certificate_set_verify_function
11000 do :
11001 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11002 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11003 cat >>confdefs.h <<_ACEOF
11004 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11005 _ACEOF
11006 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11007 fi
11008 done
11009
11010
11011 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11012
11013 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11014
11015 fi
11016 fi
11017
11018
11019
11020
11021 HAVE_XAW3D=no
11022 LUCID_LIBW=
11023 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11024 if test "$with_xaw3d" != no; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11026 $as_echo_n "checking for xaw3d... " >&6; }
11027 if test "${emacs_cv_xaw3d+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032
11033 #include <X11/Intrinsic.h>
11034 #include <X11/Xaw3d/Simple.h>
11035 int
11036 main ()
11037 {
11038
11039 ;
11040 return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11045 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11046 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
11048 else
11049 ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-lXaw3d $LIBS"
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11053
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11057 #ifdef __cplusplus
11058 extern "C"
11059 #endif
11060 char XawScrollbarSetThumb ();
11061 int
11062 main ()
11063 {
11064 return XawScrollbarSetThumb ();
11065 ;
11066 return 0;
11067 }
11068 _ACEOF
11069 if ac_fn_c_try_link "$LINENO"; then :
11070 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11071 else
11072 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11073 fi
11074 rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11079 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11080 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11081 emacs_cv_xaw3d=yes
11082 else
11083 emacs_cv_xaw3d=no
11084 fi
11085
11086 else
11087 emacs_cv_xaw3d=no
11088 fi
11089 rm -f core conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11091 fi
11092
11093 else
11094 emacs_cv_xaw3d=no
11095 fi
11096 if test $emacs_cv_xaw3d = yes; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11098 $as_echo "yes; using Lucid toolkit" >&6; }
11099 USE_X_TOOLKIT=LUCID
11100 HAVE_XAW3D=yes
11101 LUCID_LIBW=-lXaw3d
11102
11103 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11104
11105 else
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11109 $as_echo_n "checking for libXaw... " >&6; }
11110 if test "${emacs_cv_xaw+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11115
11116 #include <X11/Intrinsic.h>
11117 #include <X11/Xaw/Simple.h>
11118 int
11119 main ()
11120 {
11121
11122 ;
11123 return 0;
11124 }
11125 _ACEOF
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 emacs_cv_xaw=yes
11128 else
11129 emacs_cv_xaw=no
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 fi
11134
11135 if test $emacs_cv_xaw = yes; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11137 $as_echo "yes; using Lucid toolkit" >&6; }
11138 USE_X_TOOLKIT=LUCID
11139 LUCID_LIBW=-lXaw
11140 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11141 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11142 else
11143 as_fn_error "No X toolkit could be found.
11144 If you are sure you want Emacs compiled without an X toolkit, pass
11145 --with-x-toolkit=no
11146 to configure. Otherwise, install the development libraries for the toolkit
11147 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11148 fi
11149 fi
11150 fi
11151
11152 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11153
11154 LIBXTR6=
11155 if test "${USE_X_TOOLKIT}" != "none"; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11157 $as_echo_n "checking X11 toolkit version... " >&6; }
11158 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11163 #include <X11/Intrinsic.h>
11164 int
11165 main ()
11166 {
11167 #if XtSpecificationRelease < 6
11168 fail;
11169 #endif
11170
11171 ;
11172 return 0;
11173 }
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"; then :
11176 emacs_cv_x11_toolkit_version_6=yes
11177 else
11178 emacs_cv_x11_toolkit_version_6=no
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 fi
11183
11184 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11185 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11187 $as_echo "6 or newer" >&6; }
11188
11189 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11190
11191 LIBXTR6="-lSM -lICE"
11192 case "$opsys" in
11193 ## Use libw.a along with X11R6 Xt.
11194 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11195 esac
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11198 $as_echo "before 6" >&6; }
11199 fi
11200
11201 OLDLIBS="$LIBS"
11202 if test x$HAVE_X11XTR6 = xyes; then
11203 LIBS="-lXt -lSM -lICE $LIBS"
11204 else
11205 LIBS="-lXt $LIBS"
11206 fi
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11208 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11209 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 ac_check_lib_save_LIBS=$LIBS
11213 LIBS="-lXmu $LIBS"
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char XmuConvertStandardSelection ();
11224 int
11225 main ()
11226 {
11227 return XmuConvertStandardSelection ();
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 if ac_fn_c_try_link "$LINENO"; then :
11233 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11234 else
11235 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11236 fi
11237 rm -f core conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11239 LIBS=$ac_check_lib_save_LIBS
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11242 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11243 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11244 cat >>confdefs.h <<_ACEOF
11245 #define HAVE_LIBXMU 1
11246 _ACEOF
11247
11248 LIBS="-lXmu $LIBS"
11249
11250 fi
11251
11252 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11253 fi
11254
11255
11256 LIBXMU=-lXmu
11257 case $opsys in
11258 ## These systems don't supply Xmu.
11259 hpux* | aix4-2 )
11260 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11261 ;;
11262 esac
11263
11264
11265 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11266 if test "${HAVE_X11}" = "yes"; then
11267 if test "${USE_X_TOOLKIT}" != "none"; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11269 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11270 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-lXext $LIBS"
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 char XShapeQueryExtension ();
11285 int
11286 main ()
11287 {
11288 return XShapeQueryExtension ();
11289 ;
11290 return 0;
11291 }
11292 _ACEOF
11293 if ac_fn_c_try_link "$LINENO"; then :
11294 ac_cv_lib_Xext_XShapeQueryExtension=yes
11295 else
11296 ac_cv_lib_Xext_XShapeQueryExtension=no
11297 fi
11298 rm -f core conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11303 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11304 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11305 cat >>confdefs.h <<_ACEOF
11306 #define HAVE_LIBXEXT 1
11307 _ACEOF
11308
11309 LIBS="-lXext $LIBS"
11310
11311 fi
11312
11313 fi
11314 fi
11315
11316 LIBXP=
11317 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11319 $as_echo_n "checking for Motif version 2.1... " >&6; }
11320 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325 #include <Xm/Xm.h>
11326 int
11327 main ()
11328 {
11329 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11330 int x = 5;
11331 #else
11332 Motif version prior to 2.1.
11333 #endif
11334 ;
11335 return 0;
11336 }
11337 _ACEOF
11338 if ac_fn_c_try_compile "$LINENO"; then :
11339 emacs_cv_motif_version_2_1=yes
11340 else
11341 emacs_cv_motif_version_2_1=no
11342 fi
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11346 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11347 if test $emacs_cv_motif_version_2_1 = yes; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11349 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11350 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 ac_check_lib_save_LIBS=$LIBS
11354 LIBS="-lXp $LIBS"
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357
11358 /* Override any GCC internal prototype to avoid an error.
11359 Use char because int might match the return type of a GCC
11360 builtin and then its argument prototype would still apply. */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 char XpCreateContext ();
11365 int
11366 main ()
11367 {
11368 return XpCreateContext ();
11369 ;
11370 return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_link "$LINENO"; then :
11374 ac_cv_lib_Xp_XpCreateContext=yes
11375 else
11376 ac_cv_lib_Xp_XpCreateContext=no
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext \
11379 conftest$ac_exeext conftest.$ac_ext
11380 LIBS=$ac_check_lib_save_LIBS
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11383 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11384 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11385 LIBXP=-lXp
11386 fi
11387
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11390 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11391 if test "${emacs_cv_lesstif+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 # We put this in CFLAGS temporarily to precede other -I options
11395 # that might be in CFLAGS temporarily.
11396 # We put this in CPPFLAGS where it precedes the other -I options.
11397 OLD_CPPFLAGS=$CPPFLAGS
11398 OLD_CFLAGS=$CFLAGS
11399 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11400 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11404 int
11405 main ()
11406 {
11407 int x = 5;
11408 ;
11409 return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_compile "$LINENO"; then :
11413 emacs_cv_lesstif=yes
11414 else
11415 emacs_cv_lesstif=no
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 fi
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11420 $as_echo "$emacs_cv_lesstif" >&6; }
11421 if test $emacs_cv_lesstif = yes; then
11422 # Make sure this -I option remains in CPPFLAGS after it is set
11423 # back to REAL_CPPFLAGS.
11424 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11425 # have those other -I options anyway. Ultimately, having this
11426 # directory ultimately in CPPFLAGS will be enough.
11427 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11428 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11429 else
11430 CFLAGS=$OLD_CFLAGS
11431 CPPFLAGS=$OLD_CPPFLAGS
11432 fi
11433 fi
11434 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11435 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11436
11437 else
11438 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11439 fi
11440
11441
11442 fi
11443
11444
11445 USE_TOOLKIT_SCROLL_BARS=no
11446 if test "${with_toolkit_scroll_bars}" != "no"; then
11447 if test "${USE_X_TOOLKIT}" != "none"; then
11448 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11449 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11450
11451 HAVE_XAW3D=no
11452 USE_TOOLKIT_SCROLL_BARS=yes
11453 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11454 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11455
11456 USE_TOOLKIT_SCROLL_BARS=yes
11457 fi
11458 elif test "${HAVE_GTK}" = "yes"; then
11459 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11460
11461 USE_TOOLKIT_SCROLL_BARS=yes
11462 elif test "${HAVE_NS}" = "yes"; then
11463 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11464
11465 USE_TOOLKIT_SCROLL_BARS=yes
11466 fi
11467 fi
11468
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471
11472 #include <X11/Xlib.h>
11473 #include <X11/Xresource.h>
11474 int
11475 main ()
11476 {
11477 XIMProc callback;
11478 ;
11479 return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_compile "$LINENO"; then :
11483 HAVE_XIM=yes
11484
11485 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11486
11487 else
11488 HAVE_XIM=no
11489 fi
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491
11492
11493 if test "${with_xim}" != "no"; then
11494
11495 $as_echo "#define USE_XIM 1" >>confdefs.h
11496
11497 fi
11498
11499
11500 if test "${HAVE_XIM}" != "no"; then
11501 late_CFLAGS=$CFLAGS
11502 if test "$GCC" = yes; then
11503 CFLAGS="$CFLAGS --pedantic-errors"
11504 fi
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11507
11508 #include <X11/Xlib.h>
11509 #include <X11/Xresource.h>
11510 int
11511 main ()
11512 {
11513 Display *display;
11514 XrmDatabase db;
11515 char *res_name;
11516 char *res_class;
11517 XIMProc callback;
11518 XPointer *client_data;
11519 #ifndef __GNUC__
11520 /* If we're not using GCC, it's probably not XFree86, and this is
11521 probably right, but we can't use something like --pedantic-errors. */
11522 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11523 char*, XIMProc, XPointer*);
11524 #endif
11525 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11526 client_data);
11527 ;
11528 return 0;
11529 }
11530 _ACEOF
11531 if ac_fn_c_try_compile "$LINENO"; then :
11532 emacs_cv_arg6_star=yes
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 if test "$emacs_cv_arg6_star" = yes; then
11536 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11537
11538 else
11539 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11540
11541 fi
11542 CFLAGS=$late_CFLAGS
11543 fi
11544
11545 ### Start of font-backend (under any platform) section.
11546 # (nothing here yet -- this is a placeholder)
11547 ### End of font-backend (under any platform) section.
11548
11549 ### Start of font-backend (under X11) section.
11550 if test "${HAVE_X11}" = "yes"; then
11551
11552 succeeded=no
11553
11554 if test "$PKG_CONFIG" = "no" ; then
11555 HAVE_FC=no
11556 else
11557 PKG_CONFIG_MIN_VERSION=0.9.0
11558 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11560 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11561
11562 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11563 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11564 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11565 edit_cflags="
11566 s,///*,/,g
11567 s/^/ /
11568 s/ -I/ $isystem/g
11569 s/^ //
11570 "
11571 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11572 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11574 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11575 succeeded=yes
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11579 FONTCONFIG_CFLAGS=""
11580 FONTCONFIG_LIBS=""
11581 ## If we have a custom action on failure, don't print errors, but
11582 ## do set a variable so people can do so.
11583 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11584
11585 fi
11586
11587
11588
11589 else
11590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11592 fi
11593 fi
11594
11595 if test $succeeded = yes; then
11596 HAVE_FC=yes
11597 else
11598 HAVE_FC=no
11599 fi
11600
11601
11602 ## Use -lXft if available, unless `--with-xft=no'.
11603 HAVE_XFT=maybe
11604 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11605 with_xft="no";
11606 fi
11607 if test "x${with_xft}" != "xno"; then
11608
11609
11610 succeeded=no
11611
11612 if test "$PKG_CONFIG" = "no" ; then
11613 HAVE_XFT=no
11614 else
11615 PKG_CONFIG_MIN_VERSION=0.9.0
11616 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11618 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11619
11620 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11621 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11622 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11623 edit_cflags="
11624 s,///*,/,g
11625 s/^/ /
11626 s/ -I/ $isystem/g
11627 s/^ //
11628 "
11629 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11630 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11632 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11633 succeeded=yes
11634 else
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11637 XFT_CFLAGS=""
11638 XFT_LIBS=""
11639 ## If we have a custom action on failure, don't print errors, but
11640 ## do set a variable so people can do so.
11641 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11642
11643 fi
11644
11645
11646
11647 else
11648 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11649 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11650 fi
11651 fi
11652
11653 if test $succeeded = yes; then
11654 :
11655 else
11656 HAVE_XFT=no
11657 fi
11658
11659 ## Because xftfont.c uses XRenderQueryExtension, we also
11660 ## need to link to -lXrender.
11661 HAVE_XRENDER=no
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11663 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11664 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 ac_check_lib_save_LIBS=$LIBS
11668 LIBS="-lXrender $LIBS"
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671
11672 /* Override any GCC internal prototype to avoid an error.
11673 Use char because int might match the return type of a GCC
11674 builtin and then its argument prototype would still apply. */
11675 #ifdef __cplusplus
11676 extern "C"
11677 #endif
11678 char XRenderQueryExtension ();
11679 int
11680 main ()
11681 {
11682 return XRenderQueryExtension ();
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 if ac_fn_c_try_link "$LINENO"; then :
11688 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11689 else
11690 ac_cv_lib_Xrender_XRenderQueryExtension=no
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11695 fi
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11697 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11698 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11699 HAVE_XRENDER=yes
11700 fi
11701
11702 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11703 OLD_CPPFLAGS="$CPPFLAGS"
11704 OLD_CFLAGS="$CFLAGS"
11705 OLD_LIBS="$LIBS"
11706 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11707 CFLAGS="$CFLAGS $XFT_CFLAGS"
11708 XFT_LIBS="-lXrender $XFT_LIBS"
11709 LIBS="$XFT_LIBS $LIBS"
11710 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11711 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11713 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11714 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-lXft $XFT_LIBS $LIBS"
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char XftFontOpen ();
11729 int
11730 main ()
11731 {
11732 return XftFontOpen ();
11733 ;
11734 return 0;
11735 }
11736 _ACEOF
11737 if ac_fn_c_try_link "$LINENO"; then :
11738 ac_cv_lib_Xft_XftFontOpen=yes
11739 else
11740 ac_cv_lib_Xft_XftFontOpen=no
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11747 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11748 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11749 HAVE_XFT=yes
11750 fi
11751
11752 fi
11753
11754
11755
11756 if test "${HAVE_XFT}" = "yes"; then
11757
11758 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11759
11760
11761 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11762 else
11763 CPPFLAGS="$OLD_CPPFLAGS"
11764 CFLAGS="$OLD_CFLAGS"
11765 LIBS="$OLD_LIBS"
11766 fi # "${HAVE_XFT}" = "yes"
11767 fi # "$HAVE_XFT" != no
11768 fi # "x${with_xft}" != "xno"
11769
11770 ## We used to allow building with FreeType and without Xft.
11771 ## However, the ftx font backend driver is not in good shape.
11772 if test "$HAVE_XFT" != "yes"; then
11773 HAVE_XFT=no
11774 HAVE_FREETYPE=no
11775 else
11776
11777 succeeded=no
11778
11779 if test "$PKG_CONFIG" = "no" ; then
11780 HAVE_FREETYPE=no
11781 else
11782 PKG_CONFIG_MIN_VERSION=0.9.0
11783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11785 $as_echo_n "checking for freetype2... " >&6; }
11786
11787 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11788 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11789 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11790 edit_cflags="
11791 s,///*,/,g
11792 s/^/ /
11793 s/ -I/ $isystem/g
11794 s/^ //
11795 "
11796 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11797 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11799 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11800 succeeded=yes
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11804 FREETYPE_CFLAGS=""
11805 FREETYPE_LIBS=""
11806 ## If we have a custom action on failure, don't print errors, but
11807 ## do set a variable so people can do so.
11808 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11809
11810 fi
11811
11812
11813
11814 else
11815 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11816 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11817 fi
11818 fi
11819
11820 if test $succeeded = yes; then
11821 HAVE_FREETYPE=yes
11822 else
11823 HAVE_FREETYPE=no
11824 fi
11825
11826
11827 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11828 fi
11829
11830 HAVE_LIBOTF=no
11831 if test "${HAVE_FREETYPE}" = "yes"; then
11832
11833 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11834
11835 if test "${with_libotf}" != "no"; then
11836
11837 succeeded=no
11838
11839 if test "$PKG_CONFIG" = "no" ; then
11840 HAVE_LIBOTF=no
11841 else
11842 PKG_CONFIG_MIN_VERSION=0.9.0
11843 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11845 $as_echo_n "checking for libotf... " >&6; }
11846
11847 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11848 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11849 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11850 edit_cflags="
11851 s,///*,/,g
11852 s/^/ /
11853 s/ -I/ $isystem/g
11854 s/^ //
11855 "
11856 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11857 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11859 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11860 succeeded=yes
11861 else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 LIBOTF_CFLAGS=""
11865 LIBOTF_LIBS=""
11866 ## If we have a custom action on failure, don't print errors, but
11867 ## do set a variable so people can do so.
11868 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11869
11870 fi
11871
11872
11873
11874 else
11875 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11876 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11877 fi
11878 fi
11879
11880 if test $succeeded = yes; then
11881 HAVE_LIBOTF=yes
11882 else
11883 HAVE_LIBOTF=no
11884 fi
11885
11886 if test "$HAVE_LIBOTF" = "yes"; then
11887
11888 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11889
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11891 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11892 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 ac_check_lib_save_LIBS=$LIBS
11896 LIBS="-lotf $LIBS"
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11899
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 char OTF_get_variation_glyphs ();
11907 int
11908 main ()
11909 {
11910 return OTF_get_variation_glyphs ();
11911 ;
11912 return 0;
11913 }
11914 _ACEOF
11915 if ac_fn_c_try_link "$LINENO"; then :
11916 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11917 else
11918 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11919 fi
11920 rm -f core conftest.err conftest.$ac_objext \
11921 conftest$ac_exeext conftest.$ac_ext
11922 LIBS=$ac_check_lib_save_LIBS
11923 fi
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11925 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11926 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11927 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11928 else
11929 HAVE_OTF_GET_VARIATION_GLYPHS=no
11930 fi
11931
11932 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11933
11934 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11935
11936 fi
11937 fi
11938 fi
11939 fi
11940
11941 HAVE_M17N_FLT=no
11942 if test "${HAVE_LIBOTF}" = yes; then
11943 if test "${with_m17n_flt}" != "no"; then
11944
11945 succeeded=no
11946
11947 if test "$PKG_CONFIG" = "no" ; then
11948 HAVE_M17N_FLT=no
11949 else
11950 PKG_CONFIG_MIN_VERSION=0.9.0
11951 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11953 $as_echo_n "checking for m17n-flt... " >&6; }
11954
11955 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
11956 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
11957 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
11958 edit_cflags="
11959 s,///*,/,g
11960 s/^/ /
11961 s/ -I/ $isystem/g
11962 s/^ //
11963 "
11964 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
11965 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
11967 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
11968 succeeded=yes
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11972 M17N_FLT_CFLAGS=""
11973 M17N_FLT_LIBS=""
11974 ## If we have a custom action on failure, don't print errors, but
11975 ## do set a variable so people can do so.
11976 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11977
11978 fi
11979
11980
11981
11982 else
11983 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11984 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11985 fi
11986 fi
11987
11988 if test $succeeded = yes; then
11989 HAVE_M17N_FLT=yes
11990 else
11991 HAVE_M17N_FLT=no
11992 fi
11993
11994 if test "$HAVE_M17N_FLT" = "yes"; then
11995
11996 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11997
11998 fi
11999 fi
12000 fi
12001 else
12002 HAVE_XFT=no
12003 HAVE_FREETYPE=no
12004 HAVE_LIBOTF=no
12005 HAVE_M17N_FLT=no
12006 fi
12007
12008 ### End of font-backend (under X11) section.
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019 ### Use -lXpm if available, unless `--with-xpm=no'.
12020 HAVE_XPM=no
12021 LIBXPM=
12022 if test "${HAVE_X11}" = "yes"; then
12023 if test "${with_xpm}" != "no"; then
12024 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12025 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12027 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12028 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 ac_check_lib_save_LIBS=$LIBS
12032 LIBS="-lXpm -lX11 $LIBS"
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035
12036 /* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12039 #ifdef __cplusplus
12040 extern "C"
12041 #endif
12042 char XpmReadFileToPixmap ();
12043 int
12044 main ()
12045 {
12046 return XpmReadFileToPixmap ();
12047 ;
12048 return 0;
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_link "$LINENO"; then :
12052 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12053 else
12054 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058 LIBS=$ac_check_lib_save_LIBS
12059 fi
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12061 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12062 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12063 HAVE_XPM=yes
12064 fi
12065
12066 fi
12067
12068
12069 if test "${HAVE_XPM}" = "yes"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12071 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #include "X11/xpm.h"
12075 #ifndef XpmReturnAllocPixels
12076 no_return_alloc_pixels
12077 #endif
12078
12079 _ACEOF
12080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12081 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12082 HAVE_XPM=no
12083 else
12084 HAVE_XPM=yes
12085 fi
12086 rm -f conftest*
12087
12088
12089 if test "${HAVE_XPM}" = "yes"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091 $as_echo "yes" >&6; }
12092 else
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12095 fi
12096 fi
12097 fi
12098
12099 if test "${HAVE_XPM}" = "yes"; then
12100
12101 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12102
12103 LIBXPM=-lXpm
12104 fi
12105 fi
12106
12107
12108 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12109 HAVE_JPEG=no
12110 LIBJPEG=
12111 if test "${HAVE_X11}" = "yes"; then
12112 if test "${with_jpeg}" != "no"; then
12113 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12114 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12116 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12117 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-ljpeg $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char jpeg_destroy_compress ();
12132 int
12133 main ()
12134 {
12135 return jpeg_destroy_compress ();
12136 ;
12137 return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12142 else
12143 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12150 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12151 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12152 HAVE_JPEG=yes
12153 fi
12154
12155 fi
12156
12157
12158 fi
12159
12160 if test "${HAVE_JPEG}" = "yes"; then
12161 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12162
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12165 #include <jpeglib.h>
12166 version=JPEG_LIB_VERSION
12167
12168 _ACEOF
12169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12170 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12171 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12172
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12175 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12176 HAVE_JPEG=no
12177 fi
12178 rm -f conftest*
12179
12180 fi
12181 if test "${HAVE_JPEG}" = "yes"; then
12182 LIBJPEG=-ljpeg
12183 fi
12184 fi
12185
12186
12187 ### Use -lpng if available, unless `--with-png=no'.
12188 HAVE_PNG=no
12189 LIBPNG=
12190 if test "${HAVE_X11}" = "yes"; then
12191 if test "${with_png}" != "no"; then
12192 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12193 # in /usr/include/libpng.
12194 for ac_header in png.h libpng/png.h
12195 do :
12196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12197 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12198 eval as_val=\$$as_ac_Header
12199 if test "x$as_val" = x""yes; then :
12200 cat >>confdefs.h <<_ACEOF
12201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12202 _ACEOF
12203
12204 fi
12205
12206 done
12207
12208 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12210 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12211 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-lpng -lz -lm $LIBS"
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char png_get_channels ();
12226 int
12227 main ()
12228 {
12229 return png_get_channels ();
12230 ;
12231 return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_lib_png_png_get_channels=yes
12236 else
12237 ac_cv_lib_png_png_get_channels=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12244 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12245 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12246 HAVE_PNG=yes
12247 fi
12248
12249 fi
12250 fi
12251
12252 if test "${HAVE_PNG}" = "yes"; then
12253
12254 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12255
12256 LIBPNG="-lpng -lz -lm"
12257 fi
12258 fi
12259
12260
12261 ### Use -ltiff if available, unless `--with-tiff=no'.
12262 HAVE_TIFF=no
12263 LIBTIFF=
12264 if test "${HAVE_X11}" = "yes"; then
12265 if test "${with_tiff}" != "no"; then
12266 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12267 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12268 tifflibs="-lz -lm"
12269 # At least one tiff package requires the jpeg library.
12270 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12272 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12273 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-ltiff $tifflibs $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char TIFFGetVersion ();
12288 int
12289 main ()
12290 {
12291 return TIFFGetVersion ();
12292 ;
12293 return 0;
12294 }
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297 ac_cv_lib_tiff_TIFFGetVersion=yes
12298 else
12299 ac_cv_lib_tiff_TIFFGetVersion=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12306 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12307 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12308 HAVE_TIFF=yes
12309 fi
12310
12311 fi
12312
12313
12314 fi
12315
12316 if test "${HAVE_TIFF}" = "yes"; then
12317
12318 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12319
12320 LIBTIFF=-ltiff
12321 fi
12322 fi
12323
12324
12325 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12326 HAVE_GIF=no
12327 LIBGIF=
12328 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12329 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12330 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12331 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12332 # Earlier versions can crash Emacs.
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12334 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12335 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 ac_check_lib_save_LIBS=$LIBS
12339 LIBS="-lgif $LIBS"
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12342
12343 /* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12346 #ifdef __cplusplus
12347 extern "C"
12348 #endif
12349 char EGifPutExtensionLast ();
12350 int
12351 main ()
12352 {
12353 return EGifPutExtensionLast ();
12354 ;
12355 return 0;
12356 }
12357 _ACEOF
12358 if ac_fn_c_try_link "$LINENO"; then :
12359 ac_cv_lib_gif_EGifPutExtensionLast=yes
12360 else
12361 ac_cv_lib_gif_EGifPutExtensionLast=no
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12366 fi
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12368 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12369 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12370 HAVE_GIF=yes
12371 else
12372 HAVE_GIF=maybe
12373 fi
12374
12375 fi
12376
12377
12378
12379 if test "$HAVE_GIF" = yes; then
12380 LIBGIF=-lgif
12381 elif test "$HAVE_GIF" = maybe; then
12382 # If gif_lib.h but no libgif, try libungif.
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12384 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12385 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 ac_check_lib_save_LIBS=$LIBS
12389 LIBS="-lungif $LIBS"
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12392
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char EGifPutExtensionLast ();
12400 int
12401 main ()
12402 {
12403 return EGifPutExtensionLast ();
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_link "$LINENO"; then :
12409 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12410 else
12411 ac_cv_lib_ungif_EGifPutExtensionLast=no
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12416 fi
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12418 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12419 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12420 HAVE_GIF=yes
12421 else
12422 HAVE_GIF=no
12423 fi
12424
12425 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12426 fi
12427
12428 if test "${HAVE_GIF}" = "yes"; then
12429
12430 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12431
12432 fi
12433 fi
12434
12435
12436 if test "${HAVE_X11}" = "yes"; then
12437 MISSING=""
12438 WITH_NO=""
12439 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12440 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12441 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12442 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12443 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12444 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12445 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12446 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12447 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12448 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12449
12450 if test "X${MISSING}" != X; then
12451 as_fn_error "The following required libraries were not found:
12452 $MISSING
12453 Maybe some development libraries/packages are missing?
12454 If you don't want to link with them give
12455 $WITH_NO
12456 as options to configure" "$LINENO" 5
12457 fi
12458 fi
12459
12460 ### Use -lgpm if available, unless `--with-gpm=no'.
12461 HAVE_GPM=no
12462 LIBGPM=
12463 if test "${with_gpm}" != "no"; then
12464 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12465 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12467 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12468 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 ac_check_lib_save_LIBS=$LIBS
12472 LIBS="-lgpm $LIBS"
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12475
12476 /* Override any GCC internal prototype to avoid an error.
12477 Use char because int might match the return type of a GCC
12478 builtin and then its argument prototype would still apply. */
12479 #ifdef __cplusplus
12480 extern "C"
12481 #endif
12482 char Gpm_Open ();
12483 int
12484 main ()
12485 {
12486 return Gpm_Open ();
12487 ;
12488 return 0;
12489 }
12490 _ACEOF
12491 if ac_fn_c_try_link "$LINENO"; then :
12492 ac_cv_lib_gpm_Gpm_Open=yes
12493 else
12494 ac_cv_lib_gpm_Gpm_Open=no
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12499 fi
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12501 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12502 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12503 HAVE_GPM=yes
12504 fi
12505
12506 fi
12507
12508
12509
12510 if test "${HAVE_GPM}" = "yes"; then
12511
12512 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12513
12514 LIBGPM=-lgpm
12515 fi
12516 fi
12517
12518
12519
12520
12521
12522
12523 GNUSTEP_CFLAGS=
12524 ### Use NeXTstep API to implement GUI.
12525 if test "${HAVE_NS}" = "yes"; then
12526
12527 $as_echo "#define HAVE_NS 1" >>confdefs.h
12528
12529 if test "${NS_IMPL_COCOA}" = "yes"; then
12530
12531 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12532
12533 fi
12534 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12535
12536 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12537
12538 # See also .m.o rule in Makefile.in */
12539 # FIXME: are all these flags really needed? Document here why. */
12540 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12541 ## Extra CFLAGS applied to src/*.m files.
12542 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"
12543 fi
12544 # We also have mouse menus.
12545 HAVE_MENUS=yes
12546 OTHER_FILES=ns-app
12547 fi
12548
12549
12550 ### Use session management (-lSM -lICE) if available
12551 HAVE_X_SM=no
12552 LIBXSM=
12553 if test "${HAVE_X11}" = "yes"; then
12554 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12555 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12557 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12558 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-lSM -lICE $LIBS"
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 char SmcOpenConnection ();
12573 int
12574 main ()
12575 {
12576 return SmcOpenConnection ();
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_c_try_link "$LINENO"; then :
12582 ac_cv_lib_SM_SmcOpenConnection=yes
12583 else
12584 ac_cv_lib_SM_SmcOpenConnection=no
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
12588 LIBS=$ac_check_lib_save_LIBS
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12591 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12592 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12593 HAVE_X_SM=yes
12594 fi
12595
12596 fi
12597
12598
12599
12600 if test "${HAVE_X_SM}" = "yes"; then
12601
12602 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12603
12604 LIBXSM="-lSM -lICE"
12605 case "$LIBS" in
12606 *-lSM*) ;;
12607 *) LIBS="$LIBXSM $LIBS" ;;
12608 esac
12609 fi
12610 fi
12611
12612
12613 ### Use libxml (-lxml2) if available
12614 HAVE_LIBXML2=no
12615 if test "${with_xml2}" != "no"; then
12616 ### I'm not sure what the version number should be, so I just guessed.
12617
12618 succeeded=no
12619
12620 if test "$PKG_CONFIG" = "no" ; then
12621 HAVE_LIBXML2=no
12622 else
12623 PKG_CONFIG_MIN_VERSION=0.9.0
12624 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12626 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12627
12628 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12629 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12630 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12631 edit_cflags="
12632 s,///*,/,g
12633 s/^/ /
12634 s/ -I/ $isystem/g
12635 s/^ //
12636 "
12637 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12638 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12640 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12641 succeeded=yes
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12645 LIBXML2_CFLAGS=""
12646 LIBXML2_LIBS=""
12647 ## If we have a custom action on failure, don't print errors, but
12648 ## do set a variable so people can do so.
12649 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12650
12651 fi
12652
12653
12654
12655 else
12656 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12657 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12658 fi
12659 fi
12660
12661 if test $succeeded = yes; then
12662 HAVE_LIBXML2=yes
12663 else
12664 HAVE_LIBXML2=no
12665 fi
12666
12667 if test "${HAVE_LIBXML2}" = "yes"; then
12668 LIBS="$LIBXML2_LIBS $LIBS"
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12670 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12671 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 ac_check_lib_save_LIBS=$LIBS
12675 LIBS="-lxml2 $LIBS"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 char htmlReadMemory ();
12686 int
12687 main ()
12688 {
12689 return htmlReadMemory ();
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 ac_cv_lib_xml2_htmlReadMemory=yes
12696 else
12697 ac_cv_lib_xml2_htmlReadMemory=no
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12704 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12705 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12706 HAVE_LIBXML2=yes
12707 else
12708 HAVE_LIBXML2=no
12709 fi
12710
12711 if test "${HAVE_LIBXML2}" = "yes"; then
12712
12713 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12714
12715 else
12716 LIBXML2_LIBS=""
12717 LIBXML2_CFLAGS=""
12718 fi
12719 fi
12720 fi
12721
12722
12723
12724 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12726 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12727 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732 #include <netdb.h>
12733 int
12734 main ()
12735 {
12736 return h_errno;
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_link "$LINENO"; then :
12742 emacs_cv_netdb_declares_h_errno=yes
12743 else
12744 emacs_cv_netdb_declares_h_errno=no
12745 fi
12746 rm -f core conftest.err conftest.$ac_objext \
12747 conftest$ac_exeext conftest.$ac_ext
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12750 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12751 if test $emacs_cv_netdb_declares_h_errno = yes; then
12752
12753 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12754
12755 fi
12756
12757 # fmod, logb, and frexp are found in -lm on most systems.
12758 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12760 $as_echo_n "checking for sqrt in -lm... " >&6; }
12761 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 ac_check_lib_save_LIBS=$LIBS
12765 LIBS="-lm $LIBS"
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768
12769 /* Override any GCC internal prototype to avoid an error.
12770 Use char because int might match the return type of a GCC
12771 builtin and then its argument prototype would still apply. */
12772 #ifdef __cplusplus
12773 extern "C"
12774 #endif
12775 char sqrt ();
12776 int
12777 main ()
12778 {
12779 return sqrt ();
12780 ;
12781 return 0;
12782 }
12783 _ACEOF
12784 if ac_fn_c_try_link "$LINENO"; then :
12785 ac_cv_lib_m_sqrt=yes
12786 else
12787 ac_cv_lib_m_sqrt=no
12788 fi
12789 rm -f core conftest.err conftest.$ac_objext \
12790 conftest$ac_exeext conftest.$ac_ext
12791 LIBS=$ac_check_lib_save_LIBS
12792 fi
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12794 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12795 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12796 cat >>confdefs.h <<_ACEOF
12797 #define HAVE_LIBM 1
12798 _ACEOF
12799
12800 LIBS="-lm $LIBS"
12801
12802 fi
12803
12804
12805 # Check for mail-locking functions in a "mail" library. Probably this should
12806 # have the same check as for liblockfile below.
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12808 $as_echo_n "checking for maillock in -lmail... " >&6; }
12809 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-lmail $LIBS"
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12816
12817 /* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12820 #ifdef __cplusplus
12821 extern "C"
12822 #endif
12823 char maillock ();
12824 int
12825 main ()
12826 {
12827 return maillock ();
12828 ;
12829 return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_c_try_link "$LINENO"; then :
12833 ac_cv_lib_mail_maillock=yes
12834 else
12835 ac_cv_lib_mail_maillock=no
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext \
12838 conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12842 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12843 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
12844 have_mail=yes
12845 else
12846 have_mail=no
12847 fi
12848
12849 if test $have_mail = yes; then
12850 LIBS_MAIL=-lmail
12851 LIBS="$LIBS_MAIL $LIBS"
12852
12853 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12854
12855 else
12856 LIBS_MAIL=
12857 fi
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12859 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12860 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 ac_check_lib_save_LIBS=$LIBS
12864 LIBS="-llockfile $LIBS"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12871 #ifdef __cplusplus
12872 extern "C"
12873 #endif
12874 char maillock ();
12875 int
12876 main ()
12877 {
12878 return maillock ();
12879 ;
12880 return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"; then :
12884 ac_cv_lib_lockfile_maillock=yes
12885 else
12886 ac_cv_lib_lockfile_maillock=no
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12891 fi
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12893 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12894 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
12895 have_lockfile=yes
12896 else
12897 have_lockfile=no
12898 fi
12899
12900 if test $have_lockfile = yes; then
12901 LIBS_MAIL=-llockfile
12902 LIBS="$LIBS_MAIL $LIBS"
12903
12904 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12905
12906 else
12907 # If we have the shared liblockfile, assume we must use it for mail
12908 # locking (e.g. Debian). If we couldn't link against liblockfile
12909 # (no liblockfile.a installed), ensure that we don't need to.
12910 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12911 set dummy liblockfile.so; ac_word=$2
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12915 $as_echo_n "(cached) " >&6
12916 else
12917 if test -n "$liblockfile"; then
12918 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12919 else
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12922 for as_dir in $as_dummy
12923 do
12924 IFS=$as_save_IFS
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12928 ac_cv_prog_liblockfile="yes"
12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12930 break 2
12931 fi
12932 done
12933 done
12934 IFS=$as_save_IFS
12935
12936 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12937 fi
12938 fi
12939 liblockfile=$ac_cv_prog_liblockfile
12940 if test -n "$liblockfile"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12942 $as_echo "$liblockfile" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12946 fi
12947
12948
12949 if test $ac_cv_prog_liblockfile = yes; then
12950 as_fn_error "Shared liblockfile found but can't link against it.
12951 This probably means that movemail could lose mail.
12952 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12953 fi
12954 fi
12955 for ac_func in touchlock
12956 do :
12957 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12958 if test "x$ac_cv_func_touchlock" = x""yes; then :
12959 cat >>confdefs.h <<_ACEOF
12960 #define HAVE_TOUCHLOCK 1
12961 _ACEOF
12962
12963 fi
12964 done
12965
12966
12967
12968
12969
12970
12971 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12972 ## interlock access to the mail spool. The alternative is a lock file named
12973 ## /usr/spool/mail/$USER.lock.
12974 mail_lock=no
12975 case "$opsys" in
12976 aix4-2) mail_lock="lockf" ;;
12977
12978 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12979
12980 ## On GNU/Linux systems, both methods are used by various mail programs.
12981 ## I assume most people are using newer mailers that have heard of flock.
12982 ## Change this if you need to.
12983 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12984 ## configure gets the right answers, and that means *NOT* using flock.
12985 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12986 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12987 ## Debian maintainer hasn't provided a clean fix for Emacs.
12988 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12989 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12990 ## correct logic. -- fx
12991 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12992 ## liblockfile is a Free Software replacement for libmail, used on
12993 ## Debian systems and elsewhere. -rfr.
12994 gnu-*)
12995 mail_lock="flock"
12996 if test $have_mail = yes || test $have_lockfile = yes; then
12997 test $ac_cv_header_maillock_h = yes && mail_lock=no
12998 fi
12999 ;;
13000 esac
13001
13002 BLESSMAIL_TARGET=
13003 case "$mail_lock" in
13004 flock)
13005 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13006 ;;
13007
13008 lockf)
13009 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13010 ;;
13011
13012 *) BLESSMAIL_TARGET="need-blessmail" ;;
13013 esac
13014
13015
13016
13017 for ac_func in gethostname \
13018 rename closedir mkdir rmdir getrusage get_current_dir_name \
13019 random lrand48 logb frexp fmod rint cbrt setsid \
13020 strerror fpathconf select euidaccess getpagesize setlocale \
13021 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13022 __fpending strsignal setitimer \
13023 sendto recvfrom getsockname getpeername \
13024 gai_strerror mkstemp getline getdelim fsync sync \
13025 difftime posix_memalign \
13026 getpwent endpwent getgrent endgrent \
13027 cfmakeraw cfsetspeed copysign __executable_start
13028 do :
13029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13031 eval as_val=\$$as_ac_var
13032 if test "x$as_val" = x""yes; then :
13033 cat >>confdefs.h <<_ACEOF
13034 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13035 _ACEOF
13036
13037 fi
13038 done
13039
13040
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13042 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13043 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048
13049 int
13050 main ()
13051 {
13052 __builtin_unwind_init ();
13053 ;
13054 return 0;
13055 }
13056 _ACEOF
13057 if ac_fn_c_try_link "$LINENO"; then :
13058 emacs_cv_func___builtin_unwind_init=yes
13059 else
13060 emacs_cv_func___builtin_unwind_init=no
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
13064 fi
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13066 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13067 if test $emacs_cv_func___builtin_unwind_init = yes; then
13068
13069 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13070
13071 fi
13072
13073
13074
13075
13076
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13078 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13079 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 while :; do
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085 #include <sys/types.h> /* for off_t */
13086 #include <stdio.h>
13087 int
13088 main ()
13089 {
13090 int (*fp) (FILE *, off_t, int) = fseeko;
13091 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13092 ;
13093 return 0;
13094 }
13095 _ACEOF
13096 if ac_fn_c_try_link "$LINENO"; then :
13097 ac_cv_sys_largefile_source=no; break
13098 fi
13099 rm -f core conftest.err conftest.$ac_objext \
13100 conftest$ac_exeext conftest.$ac_ext
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103 #define _LARGEFILE_SOURCE 1
13104 #include <sys/types.h> /* for off_t */
13105 #include <stdio.h>
13106 int
13107 main ()
13108 {
13109 int (*fp) (FILE *, off_t, int) = fseeko;
13110 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13111 ;
13112 return 0;
13113 }
13114 _ACEOF
13115 if ac_fn_c_try_link "$LINENO"; then :
13116 ac_cv_sys_largefile_source=1; break
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13120 ac_cv_sys_largefile_source=unknown
13121 break
13122 done
13123 fi
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13125 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13126 case $ac_cv_sys_largefile_source in #(
13127 no | unknown) ;;
13128 *)
13129 cat >>confdefs.h <<_ACEOF
13130 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13131 _ACEOF
13132 ;;
13133 esac
13134 rm -rf conftest*
13135
13136 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13137 # in glibc 2.1.3, but that breaks too many other things.
13138 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13139 if test $ac_cv_sys_largefile_source != unknown; then
13140
13141 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13142
13143 fi
13144
13145
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13147 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13148 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13149 $as_echo_n "(cached) " >&6
13150 else
13151 # Use it with a single arg.
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154 $ac_includes_default
13155 int
13156 main ()
13157 {
13158 getpgrp (0);
13159 ;
13160 return 0;
13161 }
13162 _ACEOF
13163 if ac_fn_c_try_compile "$LINENO"; then :
13164 ac_cv_func_getpgrp_void=no
13165 else
13166 ac_cv_func_getpgrp_void=yes
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169
13170 fi
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13172 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13173 if test $ac_cv_func_getpgrp_void = yes; then
13174
13175 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13176
13177 fi
13178
13179
13180 # UNIX98 PTYs.
13181 for ac_func in grantpt
13182 do :
13183 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13184 if test "x$ac_cv_func_grantpt" = x""yes; then :
13185 cat >>confdefs.h <<_ACEOF
13186 #define HAVE_GRANTPT 1
13187 _ACEOF
13188
13189 fi
13190 done
13191
13192
13193 # PTY-related GNU extensions.
13194 for ac_func in getpt
13195 do :
13196 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13197 if test "x$ac_cv_func_getpt" = x""yes; then :
13198 cat >>confdefs.h <<_ACEOF
13199 #define HAVE_GETPT 1
13200 _ACEOF
13201
13202 fi
13203 done
13204
13205
13206 # Check this now, so that we will NOT find the above functions in ncurses.
13207 # That is because we have not set up to link ncurses in lib-src.
13208 # It's better to believe a function is not available
13209 # than to expect to find it in ncurses.
13210 # Also we need tputs and friends to be able to build at all.
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13212 $as_echo_n "checking for library containing tputs... " >&6; }
13213 # Run a test program that contains a call to tputs, a call that is
13214 # never executed. This tests whether a pre-'main' dynamic linker
13215 # works with the library. It's too much trouble to actually call
13216 # tputs in the test program, due to portability hassles. When
13217 # cross-compiling, assume the test program will run if it links.
13218
13219 # Maybe curses should be tried earlier?
13220 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13221 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13222 OLIBS=$LIBS
13223 if test -z "$tputs_library"; then
13224 LIBS_TERMCAP=
13225 msg='none required'
13226 else
13227 LIBS_TERMCAP=-l$tputs_library
13228 msg=$LIBS_TERMCAP
13229 LIBS="$LIBS_TERMCAP $LIBS"
13230 fi
13231 if test "$cross_compiling" = yes; then :
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235 extern void tputs (const char *, int, int (*)(int));
13236 int main (int argc, char **argv)
13237 {
13238 if (argc == 10000)
13239 tputs (argv[0], 0, 0);
13240 return 0;
13241 }
13242
13243 _ACEOF
13244 if ac_fn_c_try_link "$LINENO"; then :
13245
13246 else
13247 msg=no
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13251 else
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13254
13255 extern void tputs (const char *, int, int (*)(int));
13256 int main (int argc, char **argv)
13257 {
13258 if (argc == 10000)
13259 tputs (argv[0], 0, 0);
13260 return 0;
13261 }
13262
13263 _ACEOF
13264 if ac_fn_c_try_run "$LINENO"; then :
13265
13266 else
13267 msg=no
13268 fi
13269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13270 conftest.$ac_objext conftest.beam conftest.$ac_ext
13271 fi
13272
13273 LIBS=$OLIBS
13274 if test "X$msg" != Xno; then
13275 break
13276 fi
13277 done
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13279 $as_echo "$msg" >&6; }
13280 if test "X$msg" = Xno; then
13281 as_fn_error "The required function \`tputs' was not found in any library.
13282 The following libraries were tried (in order):
13283 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13284 Please try installing whichever of these libraries is most appropriate
13285 for your system, together with its header files.
13286 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13287 fi
13288
13289 ## Use termcap instead of terminfo?
13290 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13291 TERMINFO=yes
13292 ## FIXME? In the cases below where we unconditionally set
13293 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13294 ## if that was found above to have tputs.
13295 ## Should we use the gnu* logic everywhere?
13296 case "$opsys" in
13297 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13298 ## The ncurses library has been moved out of the System framework in
13299 ## Mac OS X 10.2. So if configure detects it, set the command-line
13300 ## option to use it.
13301 darwin) LIBS_TERMCAP="-lncurses" ;;
13302
13303 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13304
13305 freebsd)
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13307 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13308 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313 #include <osreldate.h>
13314 int
13315 main ()
13316 {
13317 #if __FreeBSD_version < 400000
13318 fail;
13319 #endif
13320
13321 ;
13322 return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"; then :
13326 emacs_cv_freebsd_terminfo=yes
13327 else
13328 emacs_cv_freebsd_terminfo=no
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext \
13331 conftest$ac_exeext conftest.$ac_ext
13332 fi
13333
13334
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13336 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13337
13338 if test $emacs_cv_freebsd_terminfo = yes; then
13339 LIBS_TERMCAP="-lncurses"
13340 else
13341 TERMINFO=no
13342 LIBS_TERMCAP="-ltermcap"
13343 fi
13344 ;;
13345
13346 netbsd)
13347 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13348 TERMINFO=no
13349 LIBS_TERMCAP="-ltermcap"
13350 fi
13351 ;;
13352
13353 openbsd) LIBS_TERMCAP="-lncurses" ;;
13354
13355 ## hpux: Make sure we get select from libc rather than from libcurses
13356 ## because libcurses on HPUX 10.10 has a broken version of select.
13357 ## We used to use -lc -lcurses, but this may be cleaner.
13358 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13359 # set that way, now it uses the default). Isn't this a contradiction?
13360 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13361
13362 esac
13363
13364 TERMCAP_OBJ=tparam.o
13365 if test $TERMINFO = yes; then
13366
13367 $as_echo "#define TERMINFO 1" >>confdefs.h
13368
13369 TERMCAP_OBJ=terminfo.o
13370 fi
13371
13372
13373
13374
13375 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13376 resolv=no
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13379 #include <netinet/in.h>
13380 #include <arpa/nameser.h>
13381 #include <resolv.h>
13382 int
13383 main ()
13384 {
13385 return res_init();
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_link "$LINENO"; then :
13391 have_res_init=yes
13392 else
13393 have_res_init=no
13394 fi
13395 rm -f core conftest.err conftest.$ac_objext \
13396 conftest$ac_exeext conftest.$ac_ext
13397 if test "$have_res_init" = no; then
13398 OLIBS="$LIBS"
13399 LIBS="$LIBS -lresolv"
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13401 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404 #include <netinet/in.h>
13405 #include <arpa/nameser.h>
13406 #include <resolv.h>
13407 int
13408 main ()
13409 {
13410 return res_init();
13411 ;
13412 return 0;
13413 }
13414 _ACEOF
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 have_res_init=yes
13417 else
13418 have_res_init=no
13419 fi
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13423 $as_echo "$have_res_init" >&6; }
13424 if test "$have_res_init" = yes ; then
13425 resolv=yes
13426 fi
13427 LIBS="$OLIBS"
13428 fi
13429
13430 if test "$have_res_init" = yes; then
13431
13432 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13433
13434 fi
13435
13436 # Do we need the Hesiod library to provide the support routines?
13437 LIBHESIOD=
13438 if test "$with_hesiod" != no ; then
13439 # Don't set $LIBS here -- see comments above. FIXME which comments?
13440 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13441 if test "x$ac_cv_func_res_send" = x""yes; then :
13442
13443 else
13444 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13445 if test "x$ac_cv_func___res_send" = x""yes; then :
13446
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13449 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13450 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-lresolv $LIBS"
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13457
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461 #ifdef __cplusplus
13462 extern "C"
13463 #endif
13464 char res_send ();
13465 int
13466 main ()
13467 {
13468 return res_send ();
13469 ;
13470 return 0;
13471 }
13472 _ACEOF
13473 if ac_fn_c_try_link "$LINENO"; then :
13474 ac_cv_lib_resolv_res_send=yes
13475 else
13476 ac_cv_lib_resolv_res_send=no
13477 fi
13478 rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480 LIBS=$ac_check_lib_save_LIBS
13481 fi
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13483 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13484 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13485 resolv=yes
13486 else
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13488 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13489 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 ac_check_lib_save_LIBS=$LIBS
13493 LIBS="-lresolv $LIBS"
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13500 #ifdef __cplusplus
13501 extern "C"
13502 #endif
13503 char __res_send ();
13504 int
13505 main ()
13506 {
13507 return __res_send ();
13508 ;
13509 return 0;
13510 }
13511 _ACEOF
13512 if ac_fn_c_try_link "$LINENO"; then :
13513 ac_cv_lib_resolv___res_send=yes
13514 else
13515 ac_cv_lib_resolv___res_send=no
13516 fi
13517 rm -f core conftest.err conftest.$ac_objext \
13518 conftest$ac_exeext conftest.$ac_ext
13519 LIBS=$ac_check_lib_save_LIBS
13520 fi
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13522 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13523 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13524 resolv=yes
13525 fi
13526
13527 fi
13528
13529 fi
13530
13531 fi
13532
13533 if test "$resolv" = yes ; then
13534 RESOLVLIB=-lresolv
13535 else
13536 RESOLVLIB=
13537 fi
13538 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13539 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13540
13541 else
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13543 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13544 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 ac_check_lib_save_LIBS=$LIBS
13548 LIBS="-lhesiod $RESOLVLIB $LIBS"
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551
13552 /* Override any GCC internal prototype to avoid an error.
13553 Use char because int might match the return type of a GCC
13554 builtin and then its argument prototype would still apply. */
13555 #ifdef __cplusplus
13556 extern "C"
13557 #endif
13558 char hes_getmailhost ();
13559 int
13560 main ()
13561 {
13562 return hes_getmailhost ();
13563 ;
13564 return 0;
13565 }
13566 _ACEOF
13567 if ac_fn_c_try_link "$LINENO"; then :
13568 ac_cv_lib_hesiod_hes_getmailhost=yes
13569 else
13570 ac_cv_lib_hesiod_hes_getmailhost=no
13571 fi
13572 rm -f core conftest.err conftest.$ac_objext \
13573 conftest$ac_exeext conftest.$ac_ext
13574 LIBS=$ac_check_lib_save_LIBS
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13577 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13578 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13579 hesiod=yes
13580 else
13581 :
13582 fi
13583
13584 fi
13585
13586
13587 if test x"$hesiod" = xyes; then
13588
13589 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13590
13591 LIBHESIOD=-lhesiod
13592 fi
13593 fi
13594
13595
13596 # Do we need libresolv (due to res_init or Hesiod)?
13597 if test "$resolv" = yes ; then
13598
13599 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13600
13601 LIBRESOLV=-lresolv
13602 else
13603 LIBRESOLV=
13604 fi
13605
13606
13607 # These tell us which Kerberos-related libraries to use.
13608 COM_ERRLIB=
13609 CRYPTOLIB=
13610 KRB5LIB=
13611 DESLIB=
13612 KRB4LIB=
13613
13614 if test "${with_kerberos}" != no; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13616 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13617 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-lcom_err $LIBS"
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13624
13625 /* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13628 #ifdef __cplusplus
13629 extern "C"
13630 #endif
13631 char com_err ();
13632 int
13633 main ()
13634 {
13635 return com_err ();
13636 ;
13637 return 0;
13638 }
13639 _ACEOF
13640 if ac_fn_c_try_link "$LINENO"; then :
13641 ac_cv_lib_com_err_com_err=yes
13642 else
13643 ac_cv_lib_com_err_com_err=no
13644 fi
13645 rm -f core conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13650 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13651 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13652 have_com_err=yes
13653 else
13654 have_com_err=no
13655 fi
13656
13657 if test $have_com_err = yes; then
13658 COM_ERRLIB=-lcom_err
13659 LIBS="$COM_ERRLIB $LIBS"
13660
13661 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13662
13663 fi
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13665 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13666 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-lcrypto $LIBS"
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char mit_des_cbc_encrypt ();
13681 int
13682 main ()
13683 {
13684 return mit_des_cbc_encrypt ();
13685 ;
13686 return 0;
13687 }
13688 _ACEOF
13689 if ac_fn_c_try_link "$LINENO"; then :
13690 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13691 else
13692 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13693 fi
13694 rm -f core conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696 LIBS=$ac_check_lib_save_LIBS
13697 fi
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13699 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13700 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13701 have_crypto=yes
13702 else
13703 have_crypto=no
13704 fi
13705
13706 if test $have_crypto = yes; then
13707 CRYPTOLIB=-lcrypto
13708 LIBS="$CRYPTOLIB $LIBS"
13709
13710 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13711
13712 fi
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13714 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13715 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 ac_check_lib_save_LIBS=$LIBS
13719 LIBS="-lk5crypto $LIBS"
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13726 #ifdef __cplusplus
13727 extern "C"
13728 #endif
13729 char mit_des_cbc_encrypt ();
13730 int
13731 main ()
13732 {
13733 return mit_des_cbc_encrypt ();
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 if ac_fn_c_try_link "$LINENO"; then :
13739 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13740 else
13741 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13746 fi
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13748 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13749 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13750 have_k5crypto=yes
13751 else
13752 have_k5crypto=no
13753 fi
13754
13755 if test $have_k5crypto = yes; then
13756 CRYPTOLIB=-lk5crypto
13757 LIBS="$CRYPTOLIB $LIBS"
13758
13759 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13760
13761 fi
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13763 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13764 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 ac_check_lib_save_LIBS=$LIBS
13768 LIBS="-lkrb5 $LIBS"
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13771
13772 /* Override any GCC internal prototype to avoid an error.
13773 Use char because int might match the return type of a GCC
13774 builtin and then its argument prototype would still apply. */
13775 #ifdef __cplusplus
13776 extern "C"
13777 #endif
13778 char krb5_init_context ();
13779 int
13780 main ()
13781 {
13782 return krb5_init_context ();
13783 ;
13784 return 0;
13785 }
13786 _ACEOF
13787 if ac_fn_c_try_link "$LINENO"; then :
13788 ac_cv_lib_krb5_krb5_init_context=yes
13789 else
13790 ac_cv_lib_krb5_krb5_init_context=no
13791 fi
13792 rm -f core conftest.err conftest.$ac_objext \
13793 conftest$ac_exeext conftest.$ac_ext
13794 LIBS=$ac_check_lib_save_LIBS
13795 fi
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13797 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13798 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13799 have_krb5=yes
13800 else
13801 have_krb5=no
13802 fi
13803
13804 if test $have_krb5=yes; then
13805 KRB5LIB=-lkrb5
13806 LIBS="$KRB5LIB $LIBS"
13807
13808 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13809
13810 fi
13811 if test "${with_kerberos5}" = no; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13813 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13814 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 ac_check_lib_save_LIBS=$LIBS
13818 LIBS="-ldes425 $LIBS"
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821
13822 /* Override any GCC internal prototype to avoid an error.
13823 Use char because int might match the return type of a GCC
13824 builtin and then its argument prototype would still apply. */
13825 #ifdef __cplusplus
13826 extern "C"
13827 #endif
13828 char des_cbc_encrypt ();
13829 int
13830 main ()
13831 {
13832 return des_cbc_encrypt ();
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838 ac_cv_lib_des425_des_cbc_encrypt=yes
13839 else
13840 ac_cv_lib_des425_des_cbc_encrypt=no
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 LIBS=$ac_check_lib_save_LIBS
13845 fi
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13847 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13848 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13849 have_des425=yes
13850 else
13851 have_des425=no
13852 fi
13853
13854 if test $have_des425 = yes; then
13855 DESLIB=-ldes425
13856 LIBS="$DESLIB $LIBS"
13857
13858 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13859
13860 else
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13862 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13863 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 ac_check_lib_save_LIBS=$LIBS
13867 LIBS="-ldes $LIBS"
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13870
13871 /* Override any GCC internal prototype to avoid an error.
13872 Use char because int might match the return type of a GCC
13873 builtin and then its argument prototype would still apply. */
13874 #ifdef __cplusplus
13875 extern "C"
13876 #endif
13877 char des_cbc_encrypt ();
13878 int
13879 main ()
13880 {
13881 return des_cbc_encrypt ();
13882 ;
13883 return 0;
13884 }
13885 _ACEOF
13886 if ac_fn_c_try_link "$LINENO"; then :
13887 ac_cv_lib_des_des_cbc_encrypt=yes
13888 else
13889 ac_cv_lib_des_des_cbc_encrypt=no
13890 fi
13891 rm -f core conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13893 LIBS=$ac_check_lib_save_LIBS
13894 fi
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13896 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13897 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13898 have_des=yes
13899 else
13900 have_des=no
13901 fi
13902
13903 if test $have_des = yes; then
13904 DESLIB=-ldes
13905 LIBS="$DESLIB $LIBS"
13906
13907 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13908
13909 fi
13910 fi
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13912 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13913 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 ac_check_lib_save_LIBS=$LIBS
13917 LIBS="-lkrb4 $LIBS"
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920
13921 /* Override any GCC internal prototype to avoid an error.
13922 Use char because int might match the return type of a GCC
13923 builtin and then its argument prototype would still apply. */
13924 #ifdef __cplusplus
13925 extern "C"
13926 #endif
13927 char krb_get_cred ();
13928 int
13929 main ()
13930 {
13931 return krb_get_cred ();
13932 ;
13933 return 0;
13934 }
13935 _ACEOF
13936 if ac_fn_c_try_link "$LINENO"; then :
13937 ac_cv_lib_krb4_krb_get_cred=yes
13938 else
13939 ac_cv_lib_krb4_krb_get_cred=no
13940 fi
13941 rm -f core conftest.err conftest.$ac_objext \
13942 conftest$ac_exeext conftest.$ac_ext
13943 LIBS=$ac_check_lib_save_LIBS
13944 fi
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13946 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13947 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13948 have_krb4=yes
13949 else
13950 have_krb4=no
13951 fi
13952
13953 if test $have_krb4 = yes; then
13954 KRB4LIB=-lkrb4
13955 LIBS="$KRB4LIB $LIBS"
13956
13957 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13958
13959 else
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13961 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13962 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 ac_check_lib_save_LIBS=$LIBS
13966 LIBS="-lkrb $LIBS"
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969
13970 /* Override any GCC internal prototype to avoid an error.
13971 Use char because int might match the return type of a GCC
13972 builtin and then its argument prototype would still apply. */
13973 #ifdef __cplusplus
13974 extern "C"
13975 #endif
13976 char krb_get_cred ();
13977 int
13978 main ()
13979 {
13980 return krb_get_cred ();
13981 ;
13982 return 0;
13983 }
13984 _ACEOF
13985 if ac_fn_c_try_link "$LINENO"; then :
13986 ac_cv_lib_krb_krb_get_cred=yes
13987 else
13988 ac_cv_lib_krb_krb_get_cred=no
13989 fi
13990 rm -f core conftest.err conftest.$ac_objext \
13991 conftest$ac_exeext conftest.$ac_ext
13992 LIBS=$ac_check_lib_save_LIBS
13993 fi
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13995 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13996 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13997 have_krb=yes
13998 else
13999 have_krb=no
14000 fi
14001
14002 if test $have_krb = yes; then
14003 KRB4LIB=-lkrb
14004 LIBS="$KRB4LIB $LIBS"
14005
14006 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14007
14008 fi
14009 fi
14010 fi
14011
14012 if test "${with_kerberos5}" != no; then
14013 for ac_header in krb5.h
14014 do :
14015 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14016 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_KRB5_H 1
14019 _ACEOF
14020 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14021 "
14022 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14023
14024 cat >>confdefs.h <<_ACEOF
14025 #define HAVE_KRB5_ERROR_TEXT 1
14026 _ACEOF
14027
14028
14029 fi
14030 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14031 "
14032 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14033
14034 cat >>confdefs.h <<_ACEOF
14035 #define HAVE_KRB5_ERROR_E_TEXT 1
14036 _ACEOF
14037
14038
14039 fi
14040
14041 fi
14042
14043 done
14044
14045 else
14046 for ac_header in des.h
14047 do :
14048 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14049 if test "x$ac_cv_header_des_h" = x""yes; then :
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_DES_H 1
14052 _ACEOF
14053
14054 else
14055 for ac_header in kerberosIV/des.h
14056 do :
14057 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14058 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14059 cat >>confdefs.h <<_ACEOF
14060 #define HAVE_KERBEROSIV_DES_H 1
14061 _ACEOF
14062
14063 else
14064 for ac_header in kerberos/des.h
14065 do :
14066 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14067 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14068 cat >>confdefs.h <<_ACEOF
14069 #define HAVE_KERBEROS_DES_H 1
14070 _ACEOF
14071
14072 fi
14073
14074 done
14075
14076 fi
14077
14078 done
14079
14080 fi
14081
14082 done
14083
14084 for ac_header in krb.h
14085 do :
14086 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14087 if test "x$ac_cv_header_krb_h" = x""yes; then :
14088 cat >>confdefs.h <<_ACEOF
14089 #define HAVE_KRB_H 1
14090 _ACEOF
14091
14092 else
14093 for ac_header in kerberosIV/krb.h
14094 do :
14095 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14096 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14097 cat >>confdefs.h <<_ACEOF
14098 #define HAVE_KERBEROSIV_KRB_H 1
14099 _ACEOF
14100
14101 else
14102 for ac_header in kerberos/krb.h
14103 do :
14104 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14105 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14106 cat >>confdefs.h <<_ACEOF
14107 #define HAVE_KERBEROS_KRB_H 1
14108 _ACEOF
14109
14110 fi
14111
14112 done
14113
14114 fi
14115
14116 done
14117
14118 fi
14119
14120 done
14121
14122 fi
14123 for ac_header in com_err.h
14124 do :
14125 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14126 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_COM_ERR_H 1
14129 _ACEOF
14130
14131 fi
14132
14133 done
14134
14135 fi
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146 for ac_func in $ac_func_list
14147 do :
14148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14150 eval as_val=\$$as_ac_var
14151 if test "x$as_val" = x""yes; then :
14152 cat >>confdefs.h <<_ACEOF
14153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14154 _ACEOF
14155
14156 fi
14157 done
14158
14159
14160
14161
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14163 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14164 if test "${emacs_cv_localtime_cache+set}" = set; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 if test x$ac_cv_func_tzset = xyes; then
14168 if test "$cross_compiling" = yes; then :
14169 # If we have tzset, assume the worst when cross-compiling.
14170 emacs_cv_localtime_cache=yes
14171 else
14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14174 #include <time.h>
14175 char TZ_GMT0[] = "TZ=GMT0";
14176 char TZ_PST8[] = "TZ=PST8";
14177 main()
14178 {
14179 time_t now = time ((time_t *) 0);
14180 int hour_GMT0, hour_unset;
14181 if (putenv (TZ_GMT0) != 0)
14182 exit (1);
14183 hour_GMT0 = localtime (&now)->tm_hour;
14184 unsetenv("TZ");
14185 hour_unset = localtime (&now)->tm_hour;
14186 if (putenv (TZ_PST8) != 0)
14187 exit (1);
14188 if (localtime (&now)->tm_hour == hour_GMT0)
14189 exit (1);
14190 unsetenv("TZ");
14191 if (localtime (&now)->tm_hour != hour_unset)
14192 exit (1);
14193 exit (0);
14194 }
14195 _ACEOF
14196 if ac_fn_c_try_run "$LINENO"; then :
14197 emacs_cv_localtime_cache=no
14198 else
14199 emacs_cv_localtime_cache=yes
14200 fi
14201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14202 conftest.$ac_objext conftest.beam conftest.$ac_ext
14203 fi
14204
14205 else
14206 # If we lack tzset, report that localtime does not cache TZ,
14207 # since we can't invalidate the cache if we don't have tzset.
14208 emacs_cv_localtime_cache=no
14209 fi
14210 fi
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14212 $as_echo "$emacs_cv_localtime_cache" >&6; }
14213 if test $emacs_cv_localtime_cache = yes; then
14214
14215 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14216
14217 fi
14218
14219 if test "x$HAVE_TIMEVAL" = xyes; then
14220 for ac_func in gettimeofday
14221 do :
14222 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14223 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14224 cat >>confdefs.h <<_ACEOF
14225 #define HAVE_GETTIMEOFDAY 1
14226 _ACEOF
14227
14228 fi
14229 done
14230
14231 if test $ac_cv_func_gettimeofday = yes; then
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14233 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14234 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14235 $as_echo_n "(cached) " >&6
14236 else
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14239
14240 #ifdef TIME_WITH_SYS_TIME
14241 #include <sys/time.h>
14242 #include <time.h>
14243 #else
14244 #ifdef HAVE_SYS_TIME_H
14245 #include <sys/time.h>
14246 #else
14247 #include <time.h>
14248 #endif
14249 #endif
14250 int
14251 main ()
14252 {
14253 struct timeval time;
14254 gettimeofday (&time, 0);
14255 ;
14256 return 0;
14257 }
14258 _ACEOF
14259 if ac_fn_c_try_compile "$LINENO"; then :
14260 emacs_cv_gettimeofday_two_arguments=yes
14261 else
14262 emacs_cv_gettimeofday_two_arguments=no
14263 fi
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14267 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14268 if test $emacs_cv_gettimeofday_two_arguments = no; then
14269
14270 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14271
14272 fi
14273 fi
14274 fi
14275
14276 ok_so_far=yes
14277 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14278 if test "x$ac_cv_func_socket" = x""yes; then :
14279
14280 else
14281 ok_so_far=no
14282 fi
14283
14284 if test $ok_so_far = yes; then
14285 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14286 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14287
14288 else
14289 ok_so_far=no
14290 fi
14291
14292
14293 fi
14294 if test $ok_so_far = yes; then
14295 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14296 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14297
14298 else
14299 ok_so_far=no
14300 fi
14301
14302
14303 fi
14304 if test $ok_so_far = yes; then
14305
14306 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14307
14308 fi
14309
14310 if test -f /usr/lpp/X11/bin/smt.exp; then
14311
14312 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14313
14314 fi
14315
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14317 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14318 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14320 $as_echo "yes" >&6; }
14321
14322 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14323
14324 else
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14326 $as_echo "no" >&6; }
14327 fi
14328
14329 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14330 if test "x$ac_cv_type_pid_t" = x""yes; then :
14331
14332 else
14333
14334 cat >>confdefs.h <<_ACEOF
14335 #define pid_t int
14336 _ACEOF
14337
14338 fi
14339
14340 for ac_header in vfork.h
14341 do :
14342 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14343 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14344 cat >>confdefs.h <<_ACEOF
14345 #define HAVE_VFORK_H 1
14346 _ACEOF
14347
14348 fi
14349
14350 done
14351
14352 for ac_func in fork vfork
14353 do :
14354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14356 eval as_val=\$$as_ac_var
14357 if test "x$as_val" = x""yes; then :
14358 cat >>confdefs.h <<_ACEOF
14359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14360 _ACEOF
14361
14362 fi
14363 done
14364
14365 if test "x$ac_cv_func_fork" = xyes; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14367 $as_echo_n "checking for working fork... " >&6; }
14368 if test "${ac_cv_func_fork_works+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 if test "$cross_compiling" = yes; then :
14372 ac_cv_func_fork_works=cross
14373 else
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14376 $ac_includes_default
14377 int
14378 main ()
14379 {
14380
14381 /* By Ruediger Kuhlmann. */
14382 return fork () < 0;
14383
14384 ;
14385 return 0;
14386 }
14387 _ACEOF
14388 if ac_fn_c_try_run "$LINENO"; then :
14389 ac_cv_func_fork_works=yes
14390 else
14391 ac_cv_func_fork_works=no
14392 fi
14393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14394 conftest.$ac_objext conftest.beam conftest.$ac_ext
14395 fi
14396
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14399 $as_echo "$ac_cv_func_fork_works" >&6; }
14400
14401 else
14402 ac_cv_func_fork_works=$ac_cv_func_fork
14403 fi
14404 if test "x$ac_cv_func_fork_works" = xcross; then
14405 case $host in
14406 *-*-amigaos* | *-*-msdosdjgpp*)
14407 # Override, as these systems have only a dummy fork() stub
14408 ac_cv_func_fork_works=no
14409 ;;
14410 *)
14411 ac_cv_func_fork_works=yes
14412 ;;
14413 esac
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14415 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14416 fi
14417 ac_cv_func_vfork_works=$ac_cv_func_vfork
14418 if test "x$ac_cv_func_vfork" = xyes; then
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14420 $as_echo_n "checking for working vfork... " >&6; }
14421 if test "${ac_cv_func_vfork_works+set}" = set; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 if test "$cross_compiling" = yes; then :
14425 ac_cv_func_vfork_works=cross
14426 else
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h. */
14429 /* Thanks to Paul Eggert for this test. */
14430 $ac_includes_default
14431 #include <sys/wait.h>
14432 #ifdef HAVE_VFORK_H
14433 # include <vfork.h>
14434 #endif
14435 /* On some sparc systems, changes by the child to local and incoming
14436 argument registers are propagated back to the parent. The compiler
14437 is told about this with #include <vfork.h>, but some compilers
14438 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14439 static variable whose address is put into a register that is
14440 clobbered by the vfork. */
14441 static void
14442 #ifdef __cplusplus
14443 sparc_address_test (int arg)
14444 # else
14445 sparc_address_test (arg) int arg;
14446 #endif
14447 {
14448 static pid_t child;
14449 if (!child) {
14450 child = vfork ();
14451 if (child < 0) {
14452 perror ("vfork");
14453 _exit(2);
14454 }
14455 if (!child) {
14456 arg = getpid();
14457 write(-1, "", 0);
14458 _exit (arg);
14459 }
14460 }
14461 }
14462
14463 int
14464 main ()
14465 {
14466 pid_t parent = getpid ();
14467 pid_t child;
14468
14469 sparc_address_test (0);
14470
14471 child = vfork ();
14472
14473 if (child == 0) {
14474 /* Here is another test for sparc vfork register problems. This
14475 test uses lots of local variables, at least as many local
14476 variables as main has allocated so far including compiler
14477 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14478 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14479 reuse the register of parent for one of the local variables,
14480 since it will think that parent can't possibly be used any more
14481 in this routine. Assigning to the local variable will thus
14482 munge parent in the parent process. */
14483 pid_t
14484 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14485 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14486 /* Convince the compiler that p..p7 are live; otherwise, it might
14487 use the same hardware register for all 8 local variables. */
14488 if (p != p1 || p != p2 || p != p3 || p != p4
14489 || p != p5 || p != p6 || p != p7)
14490 _exit(1);
14491
14492 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14493 from child file descriptors. If the child closes a descriptor
14494 before it execs or exits, this munges the parent's descriptor
14495 as well. Test for this by closing stdout in the child. */
14496 _exit(close(fileno(stdout)) != 0);
14497 } else {
14498 int status;
14499 struct stat st;
14500
14501 while (wait(&status) != child)
14502 ;
14503 return (
14504 /* Was there some problem with vforking? */
14505 child < 0
14506
14507 /* Did the child fail? (This shouldn't happen.) */
14508 || status
14509
14510 /* Did the vfork/compiler bug occur? */
14511 || parent != getpid()
14512
14513 /* Did the file descriptor bug occur? */
14514 || fstat(fileno(stdout), &st) != 0
14515 );
14516 }
14517 }
14518 _ACEOF
14519 if ac_fn_c_try_run "$LINENO"; then :
14520 ac_cv_func_vfork_works=yes
14521 else
14522 ac_cv_func_vfork_works=no
14523 fi
14524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14525 conftest.$ac_objext conftest.beam conftest.$ac_ext
14526 fi
14527
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14530 $as_echo "$ac_cv_func_vfork_works" >&6; }
14531
14532 fi;
14533 if test "x$ac_cv_func_fork_works" = xcross; then
14534 ac_cv_func_vfork_works=$ac_cv_func_vfork
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14536 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14537 fi
14538
14539 if test "x$ac_cv_func_vfork_works" = xyes; then
14540
14541 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14542
14543 else
14544
14545 $as_echo "#define vfork fork" >>confdefs.h
14546
14547 fi
14548 if test "x$ac_cv_func_fork_works" = xyes; then
14549
14550 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14551
14552 fi
14553
14554
14555 for ac_func in snprintf
14556 do :
14557 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14558 if test "x$ac_cv_func_snprintf" = x""yes; then :
14559 cat >>confdefs.h <<_ACEOF
14560 #define HAVE_SNPRINTF 1
14561 _ACEOF
14562
14563 fi
14564 done
14565
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14568 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14569 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14574 #include <langinfo.h>
14575 int
14576 main ()
14577 {
14578 char* cs = nl_langinfo(CODESET);
14579 ;
14580 return 0;
14581 }
14582 _ACEOF
14583 if ac_fn_c_try_link "$LINENO"; then :
14584 emacs_cv_langinfo_codeset=yes
14585 else
14586 emacs_cv_langinfo_codeset=no
14587 fi
14588 rm -f core conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14590
14591 fi
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14593 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14594 if test $emacs_cv_langinfo_codeset = yes; then
14595
14596 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14597
14598 fi
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14601 $as_echo_n "checking for mbstate_t... " >&6; }
14602 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14607 $ac_includes_default
14608 # include <wchar.h>
14609 int
14610 main ()
14611 {
14612 mbstate_t x; return sizeof x;
14613 ;
14614 return 0;
14615 }
14616 _ACEOF
14617 if ac_fn_c_try_compile "$LINENO"; then :
14618 ac_cv_type_mbstate_t=yes
14619 else
14620 ac_cv_type_mbstate_t=no
14621 fi
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623 fi
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14625 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14626 if test $ac_cv_type_mbstate_t = yes; then
14627
14628 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14629
14630 else
14631
14632 $as_echo "#define mbstate_t int" >>confdefs.h
14633
14634 fi
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14637 $as_echo_n "checking for C restricted array declarations... " >&6; }
14638 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
14640 else
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14643 void fred (int x[__restrict]);
14644 int
14645 main ()
14646 {
14647
14648 ;
14649 return 0;
14650 }
14651 _ACEOF
14652 if ac_fn_c_try_compile "$LINENO"; then :
14653 emacs_cv_c_restrict_arr=yes
14654 else
14655 emacs_cv_c_restrict_arr=no
14656 fi
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14660 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14661 if test "$emacs_cv_c_restrict_arr" = yes; then
14662
14663 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14664
14665 fi
14666
14667
14668 # Set up the CFLAGS for real compilation, so we can substitute it.
14669 CFLAGS="$REAL_CFLAGS"
14670 CPPFLAGS="$REAL_CPPFLAGS"
14671
14672 ## Hack to detect a buggy GCC version.
14673 if test "x$GCC" = xyes \
14674 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14675 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14676 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14677 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14678 fi
14679
14680 version=$PACKAGE_VERSION
14681
14682 ### Specify what sort of things we'll be editing into Makefile and config.h.
14683 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14684
14685
14686 ## Unused?
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14709 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14710 ## end of LIBX_BASE, but nothing ever set it.
14711
14712
14713
14714
14715 ## Used in lwlib/Makefile.in.
14716
14717 S_FILE="\$(srcdir)/${opsysfile}"
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727 cat >>confdefs.h <<_ACEOF
14728 #define EMACS_CONFIGURATION "${canonical}"
14729 _ACEOF
14730
14731
14732 cat >>confdefs.h <<_ACEOF
14733 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14734 _ACEOF
14735
14736
14737 cat >>confdefs.h <<_ACEOF
14738 #define config_opsysfile "${opsysfile}"
14739 _ACEOF
14740
14741
14742 XMENU_OBJ=
14743 XOBJ=
14744 FONT_OBJ=
14745 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14746
14747 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14748
14749 XMENU_OBJ=xmenu.o
14750 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14751 FONT_OBJ=xfont.o
14752 if test "$HAVE_XFT" = "yes"; then
14753 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14754 elif test "$HAVE_FREETYPE" = "yes"; then
14755 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14756 fi
14757
14758 fi
14759
14760
14761
14762
14763 WIDGET_OBJ=
14764 MOTIF_LIBW=
14765 if test "${USE_X_TOOLKIT}" != "none" ; then
14766 WIDGET_OBJ=widget.o
14767
14768 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14769
14770 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14771
14772 $as_echo "#define USE_LUCID 1" >>confdefs.h
14773
14774 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14775
14776 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14777
14778 MOTIF_LIBW=-lXm
14779 case "$opsys" in
14780 gnu-linux)
14781 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14782 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14783 ;;
14784
14785 unixware)
14786 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14787 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14788 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14789 ;;
14790
14791 aix4-2)
14792 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14793 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14794 ;;
14795 esac
14796 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14797 fi
14798 fi
14799
14800
14801 TOOLKIT_LIBW=
14802 case "$USE_X_TOOLKIT" in
14803 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14804 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14805 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14806 esac
14807
14808
14809 if test "$USE_X_TOOLKIT" = "none"; then
14810 LIBXT_OTHER="\$(LIBXSM)"
14811 OLDXMENU_TARGET="really-oldXMenu"
14812 else
14813 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14814 OLDXMENU_TARGET="really-lwlib"
14815 fi
14816
14817
14818 ## The X Menu stuff is present in the X10 distribution, but missing
14819 ## from X11. If we have X10, just use the installed library;
14820 ## otherwise, use our own copy.
14821 if test "${HAVE_X11}" = "yes" ; then
14822
14823 $as_echo "#define HAVE_X11 1" >>confdefs.h
14824
14825
14826 if test "$USE_X_TOOLKIT" = "none"; then
14827 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14828 else
14829 OLDXMENU="\${lwlibdir}/liblw.a"
14830 fi
14831 LIBXMENU="\$(OLDXMENU)"
14832 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14833 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14834 else
14835 ## For a syntactically valid Makefile; not actually used for anything.
14836 ## See comments in src/Makefile.in.
14837 OLDXMENU=nothing
14838 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14839 if test "${HAVE_X_WINDOWS}" = "yes"; then
14840 LIBXMENU="-lXMenu"
14841 else
14842 LIBXMENU=
14843 fi
14844 LIBX_OTHER=
14845 OLDXMENU_DEPS=
14846 fi
14847
14848 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14849 OLDXMENU_TARGET=
14850 OLDXMENU=nothing
14851 LIBXMENU=
14852 OLDXMENU_DEPS=
14853 fi
14854
14855
14856
14857
14858
14859
14860
14861 if test "${HAVE_MENUS}" = "yes" ; then
14862
14863 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14864
14865 fi
14866
14867 if test "${GNU_MALLOC}" = "yes" ; then
14868
14869 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14870
14871 fi
14872
14873 RALLOC_OBJ=
14874 if test "${REL_ALLOC}" = "yes" ; then
14875
14876 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14877
14878
14879 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14880 fi
14881
14882
14883 if test "$opsys" = "cygwin"; then
14884 CYGWIN_OBJ="sheap.o"
14885 ## Cygwin differs because of its unexec().
14886 PRE_ALLOC_OBJ=
14887 POST_ALLOC_OBJ=lastfile.o
14888 else
14889 CYGWIN_OBJ=
14890 PRE_ALLOC_OBJ=lastfile.o
14891 POST_ALLOC_OBJ=
14892 fi
14893
14894
14895
14896
14897 # Configure gnulib here, now that we know LIBS.
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909 LIBC_FATAL_STDERR_=1
14910 export LIBC_FATAL_STDERR_
14911
14912 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14913 # for constant arguments. Useless!
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14915 $as_echo_n "checking for working alloca.h... " >&6; }
14916 if test "${ac_cv_working_alloca_h+set}" = set; then :
14917 $as_echo_n "(cached) " >&6
14918 else
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14921 #include <alloca.h>
14922 int
14923 main ()
14924 {
14925 char *p = (char *) alloca (2 * sizeof (int));
14926 if (p) return 0;
14927 ;
14928 return 0;
14929 }
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 ac_cv_working_alloca_h=yes
14933 else
14934 ac_cv_working_alloca_h=no
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 fi
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14940 $as_echo "$ac_cv_working_alloca_h" >&6; }
14941 if test $ac_cv_working_alloca_h = yes; then
14942
14943 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14944
14945 fi
14946
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14948 $as_echo_n "checking for alloca... " >&6; }
14949 if test "${ac_cv_func_alloca_works+set}" = set; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14954 #ifdef __GNUC__
14955 # define alloca __builtin_alloca
14956 #else
14957 # ifdef _MSC_VER
14958 # include <malloc.h>
14959 # define alloca _alloca
14960 # else
14961 # ifdef HAVE_ALLOCA_H
14962 # include <alloca.h>
14963 # else
14964 # ifdef _AIX
14965 #pragma alloca
14966 # else
14967 # ifndef alloca /* predefined by HP cc +Olibcalls */
14968 char *alloca ();
14969 # endif
14970 # endif
14971 # endif
14972 # endif
14973 #endif
14974
14975 int
14976 main ()
14977 {
14978 char *p = (char *) alloca (1);
14979 if (p) return 0;
14980 ;
14981 return 0;
14982 }
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 ac_cv_func_alloca_works=yes
14986 else
14987 ac_cv_func_alloca_works=no
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991 fi
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14993 $as_echo "$ac_cv_func_alloca_works" >&6; }
14994
14995 if test $ac_cv_func_alloca_works = yes; then
14996
14997 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14998
14999 else
15000 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15001 # that cause trouble. Some versions do not even contain alloca or
15002 # contain a buggy version. If you still want to use their alloca,
15003 # use ar to extract alloca.o from them instead of compiling alloca.c.
15004
15005
15006
15007
15008
15009 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15010
15011 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15012
15013
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15015 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15016 if test "${ac_cv_os_cray+set}" = set; then :
15017 $as_echo_n "(cached) " >&6
15018 else
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15021 #if defined CRAY && ! defined CRAY2
15022 webecray
15023 #else
15024 wenotbecray
15025 #endif
15026
15027 _ACEOF
15028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15029 $EGREP "webecray" >/dev/null 2>&1; then :
15030 ac_cv_os_cray=yes
15031 else
15032 ac_cv_os_cray=no
15033 fi
15034 rm -f conftest*
15035
15036 fi
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15038 $as_echo "$ac_cv_os_cray" >&6; }
15039 if test $ac_cv_os_cray = yes; then
15040 for ac_func in _getb67 GETB67 getb67; do
15041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15043 eval as_val=\$$as_ac_var
15044 if test "x$as_val" = x""yes; then :
15045
15046 cat >>confdefs.h <<_ACEOF
15047 #define CRAY_STACKSEG_END $ac_func
15048 _ACEOF
15049
15050 break
15051 fi
15052
15053 done
15054 fi
15055
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15057 $as_echo_n "checking stack direction for C alloca... " >&6; }
15058 if test "${ac_cv_c_stack_direction+set}" = set; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 if test "$cross_compiling" = yes; then :
15062 ac_cv_c_stack_direction=0
15063 else
15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15066 $ac_includes_default
15067 int
15068 find_stack_direction (int *addr, int depth)
15069 {
15070 int dir, dummy = 0;
15071 if (! addr)
15072 addr = &dummy;
15073 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15074 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15075 return dir + dummy;
15076 }
15077
15078 int
15079 main (int argc, char **argv)
15080 {
15081 return find_stack_direction (0, argc + !argv + 20) < 0;
15082 }
15083 _ACEOF
15084 if ac_fn_c_try_run "$LINENO"; then :
15085 ac_cv_c_stack_direction=1
15086 else
15087 ac_cv_c_stack_direction=-1
15088 fi
15089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15090 conftest.$ac_objext conftest.beam conftest.$ac_ext
15091 fi
15092
15093 fi
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15095 $as_echo "$ac_cv_c_stack_direction" >&6; }
15096 cat >>confdefs.h <<_ACEOF
15097 #define STACK_DIRECTION $ac_cv_c_stack_direction
15098 _ACEOF
15099
15100
15101 fi
15102
15103
15104
15105
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15107 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15108 if test "${ac_cv_c_bigendian+set}" = set; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 ac_cv_c_bigendian=unknown
15112 # See if we're dealing with a universal compiler.
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15115 #ifndef __APPLE_CC__
15116 not a universal capable compiler
15117 #endif
15118 typedef int dummy;
15119
15120 _ACEOF
15121 if ac_fn_c_try_compile "$LINENO"; then :
15122
15123 # Check for potential -arch flags. It is not universal unless
15124 # there are at least two -arch flags with different values.
15125 ac_arch=
15126 ac_prev=
15127 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15128 if test -n "$ac_prev"; then
15129 case $ac_word in
15130 i?86 | x86_64 | ppc | ppc64)
15131 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15132 ac_arch=$ac_word
15133 else
15134 ac_cv_c_bigendian=universal
15135 break
15136 fi
15137 ;;
15138 esac
15139 ac_prev=
15140 elif test "x$ac_word" = "x-arch"; then
15141 ac_prev=arch
15142 fi
15143 done
15144 fi
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146 if test $ac_cv_c_bigendian = unknown; then
15147 # See if sys/param.h defines the BYTE_ORDER macro.
15148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h. */
15150 #include <sys/types.h>
15151 #include <sys/param.h>
15152
15153 int
15154 main ()
15155 {
15156 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15157 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15158 && LITTLE_ENDIAN)
15159 bogus endian macros
15160 #endif
15161
15162 ;
15163 return 0;
15164 }
15165 _ACEOF
15166 if ac_fn_c_try_compile "$LINENO"; then :
15167 # It does; now see whether it defined to BIG_ENDIAN or not.
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15170 #include <sys/types.h>
15171 #include <sys/param.h>
15172
15173 int
15174 main ()
15175 {
15176 #if BYTE_ORDER != BIG_ENDIAN
15177 not big endian
15178 #endif
15179
15180 ;
15181 return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_c_try_compile "$LINENO"; then :
15185 ac_cv_c_bigendian=yes
15186 else
15187 ac_cv_c_bigendian=no
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190 fi
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 fi
15193 if test $ac_cv_c_bigendian = unknown; then
15194 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 #include <limits.h>
15198
15199 int
15200 main ()
15201 {
15202 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15203 bogus endian macros
15204 #endif
15205
15206 ;
15207 return 0;
15208 }
15209 _ACEOF
15210 if ac_fn_c_try_compile "$LINENO"; then :
15211 # It does; now see whether it defined to _BIG_ENDIAN or not.
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 #include <limits.h>
15215
15216 int
15217 main ()
15218 {
15219 #ifndef _BIG_ENDIAN
15220 not big endian
15221 #endif
15222
15223 ;
15224 return 0;
15225 }
15226 _ACEOF
15227 if ac_fn_c_try_compile "$LINENO"; then :
15228 ac_cv_c_bigendian=yes
15229 else
15230 ac_cv_c_bigendian=no
15231 fi
15232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15233 fi
15234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15235 fi
15236 if test $ac_cv_c_bigendian = unknown; then
15237 # Compile a test program.
15238 if test "$cross_compiling" = yes; then :
15239 # Try to guess by grepping values from an object file.
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15242 short int ascii_mm[] =
15243 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15244 short int ascii_ii[] =
15245 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15246 int use_ascii (int i) {
15247 return ascii_mm[i] + ascii_ii[i];
15248 }
15249 short int ebcdic_ii[] =
15250 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15251 short int ebcdic_mm[] =
15252 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15253 int use_ebcdic (int i) {
15254 return ebcdic_mm[i] + ebcdic_ii[i];
15255 }
15256 extern int foo;
15257
15258 int
15259 main ()
15260 {
15261 return use_ascii (foo) == use_ebcdic (foo);
15262 ;
15263 return 0;
15264 }
15265 _ACEOF
15266 if ac_fn_c_try_compile "$LINENO"; then :
15267 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15268 ac_cv_c_bigendian=yes
15269 fi
15270 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15271 if test "$ac_cv_c_bigendian" = unknown; then
15272 ac_cv_c_bigendian=no
15273 else
15274 # finding both strings is unlikely to happen, but who knows?
15275 ac_cv_c_bigendian=unknown
15276 fi
15277 fi
15278 fi
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 else
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15283 $ac_includes_default
15284 int
15285 main ()
15286 {
15287
15288 /* Are we little or big endian? From Harbison&Steele. */
15289 union
15290 {
15291 long int l;
15292 char c[sizeof (long int)];
15293 } u;
15294 u.l = 1;
15295 return u.c[sizeof (long int) - 1] == 1;
15296
15297 ;
15298 return 0;
15299 }
15300 _ACEOF
15301 if ac_fn_c_try_run "$LINENO"; then :
15302 ac_cv_c_bigendian=no
15303 else
15304 ac_cv_c_bigendian=yes
15305 fi
15306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15307 conftest.$ac_objext conftest.beam conftest.$ac_ext
15308 fi
15309
15310 fi
15311 fi
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15313 $as_echo "$ac_cv_c_bigendian" >&6; }
15314 case $ac_cv_c_bigendian in #(
15315 yes)
15316 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15317 ;; #(
15318 no)
15319 ;; #(
15320 universal)
15321
15322 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15323
15324 ;; #(
15325 *)
15326 as_fn_error "unknown endianness
15327 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15328 esac
15329
15330
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15332 $as_echo_n "checking for inline... " >&6; }
15333 if test "${ac_cv_c_inline+set}" = set; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336 ac_cv_c_inline=no
15337 for ac_kw in inline __inline__ __inline; do
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #ifndef __cplusplus
15341 typedef int foo_t;
15342 static $ac_kw foo_t static_foo () {return 0; }
15343 $ac_kw foo_t foo () {return 0; }
15344 #endif
15345
15346 _ACEOF
15347 if ac_fn_c_try_compile "$LINENO"; then :
15348 ac_cv_c_inline=$ac_kw
15349 fi
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351 test "$ac_cv_c_inline" != no && break
15352 done
15353
15354 fi
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15356 $as_echo "$ac_cv_c_inline" >&6; }
15357
15358 case $ac_cv_c_inline in
15359 inline | yes) ;;
15360 *)
15361 case $ac_cv_c_inline in
15362 no) ac_val=;;
15363 *) ac_val=$ac_cv_c_inline;;
15364 esac
15365 cat >>confdefs.h <<_ACEOF
15366 #ifndef __cplusplus
15367 #define inline $ac_val
15368 #endif
15369 _ACEOF
15370 ;;
15371 esac
15372
15373
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15375 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15376 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15377 $as_echo_n "(cached) " >&6
15378 else
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15381 /* On HP-UX before 11.23, strtold returns a struct instead of
15382 long double. Reject implementations like that, by requiring
15383 compatibility with the C99 prototype. */
15384 #include <stdlib.h>
15385 static long double (*p) (char const *, char **) = strtold;
15386 static long double
15387 test (char const *nptr, char **endptr)
15388 {
15389 long double r;
15390 r = strtold (nptr, endptr);
15391 return r;
15392 }
15393 int
15394 main ()
15395 {
15396 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15397 ;
15398 return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"; then :
15402 gl_cv_func_c99_strtold=yes
15403 else
15404 gl_cv_func_c99_strtold=no
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15408 fi
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15410 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15411 if test $gl_cv_func_c99_strtold = yes; then
15412
15413 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15414
15415 fi
15416
15417
15418 GNULIB_CHDIR=0;
15419 GNULIB_CHOWN=0;
15420 GNULIB_CLOSE=0;
15421 GNULIB_DUP=0;
15422 GNULIB_DUP2=0;
15423 GNULIB_DUP3=0;
15424 GNULIB_ENVIRON=0;
15425 GNULIB_EUIDACCESS=0;
15426 GNULIB_FACCESSAT=0;
15427 GNULIB_FCHDIR=0;
15428 GNULIB_FCHOWNAT=0;
15429 GNULIB_FDATASYNC=0;
15430 GNULIB_FSYNC=0;
15431 GNULIB_FTRUNCATE=0;
15432 GNULIB_GETCWD=0;
15433 GNULIB_GETDOMAINNAME=0;
15434 GNULIB_GETDTABLESIZE=0;
15435 GNULIB_GETGROUPS=0;
15436 GNULIB_GETHOSTNAME=0;
15437 GNULIB_GETLOGIN=0;
15438 GNULIB_GETLOGIN_R=0;
15439 GNULIB_GETPAGESIZE=0;
15440 GNULIB_GETUSERSHELL=0;
15441 GNULIB_GROUP_MEMBER=0;
15442 GNULIB_ISATTY=0;
15443 GNULIB_LCHOWN=0;
15444 GNULIB_LINK=0;
15445 GNULIB_LINKAT=0;
15446 GNULIB_LSEEK=0;
15447 GNULIB_PIPE=0;
15448 GNULIB_PIPE2=0;
15449 GNULIB_PREAD=0;
15450 GNULIB_PWRITE=0;
15451 GNULIB_READ=0;
15452 GNULIB_READLINK=0;
15453 GNULIB_READLINKAT=0;
15454 GNULIB_RMDIR=0;
15455 GNULIB_SETHOSTNAME=0;
15456 GNULIB_SLEEP=0;
15457 GNULIB_SYMLINK=0;
15458 GNULIB_SYMLINKAT=0;
15459 GNULIB_TTYNAME_R=0;
15460 GNULIB_UNISTD_H_NONBLOCKING=0;
15461 GNULIB_UNISTD_H_SIGPIPE=0;
15462 GNULIB_UNLINK=0;
15463 GNULIB_UNLINKAT=0;
15464 GNULIB_USLEEP=0;
15465 GNULIB_WRITE=0;
15466 HAVE_CHOWN=1;
15467 HAVE_DUP2=1;
15468 HAVE_DUP3=1;
15469 HAVE_EUIDACCESS=1;
15470 HAVE_FACCESSAT=1;
15471 HAVE_FCHDIR=1;
15472 HAVE_FCHOWNAT=1;
15473 HAVE_FDATASYNC=1;
15474 HAVE_FSYNC=1;
15475 HAVE_FTRUNCATE=1;
15476 HAVE_GETDTABLESIZE=1;
15477 HAVE_GETGROUPS=1;
15478 HAVE_GETHOSTNAME=1;
15479 HAVE_GETLOGIN=1;
15480 HAVE_GETPAGESIZE=1;
15481 HAVE_GROUP_MEMBER=1;
15482 HAVE_LCHOWN=1;
15483 HAVE_LINK=1;
15484 HAVE_LINKAT=1;
15485 HAVE_PIPE=1;
15486 HAVE_PIPE2=1;
15487 HAVE_PREAD=1;
15488 HAVE_PWRITE=1;
15489 HAVE_READLINK=1;
15490 HAVE_READLINKAT=1;
15491 HAVE_SETHOSTNAME=1;
15492 HAVE_SLEEP=1;
15493 HAVE_SYMLINK=1;
15494 HAVE_SYMLINKAT=1;
15495 HAVE_UNLINKAT=1;
15496 HAVE_USLEEP=1;
15497 HAVE_DECL_ENVIRON=1;
15498 HAVE_DECL_FCHDIR=1;
15499 HAVE_DECL_FDATASYNC=1;
15500 HAVE_DECL_GETDOMAINNAME=1;
15501 HAVE_DECL_GETLOGIN_R=1;
15502 HAVE_DECL_GETPAGESIZE=1;
15503 HAVE_DECL_GETUSERSHELL=1;
15504 HAVE_DECL_SETHOSTNAME=1;
15505 HAVE_DECL_TTYNAME_R=1;
15506 HAVE_OS_H=0;
15507 HAVE_SYS_PARAM_H=0;
15508 REPLACE_CHOWN=0;
15509 REPLACE_CLOSE=0;
15510 REPLACE_DUP=0;
15511 REPLACE_DUP2=0;
15512 REPLACE_FCHOWNAT=0;
15513 REPLACE_FTRUNCATE=0;
15514 REPLACE_GETCWD=0;
15515 REPLACE_GETDOMAINNAME=0;
15516 REPLACE_GETLOGIN_R=0;
15517 REPLACE_GETGROUPS=0;
15518 REPLACE_GETPAGESIZE=0;
15519 REPLACE_ISATTY=0;
15520 REPLACE_LCHOWN=0;
15521 REPLACE_LINK=0;
15522 REPLACE_LINKAT=0;
15523 REPLACE_LSEEK=0;
15524 REPLACE_PREAD=0;
15525 REPLACE_PWRITE=0;
15526 REPLACE_READ=0;
15527 REPLACE_READLINK=0;
15528 REPLACE_RMDIR=0;
15529 REPLACE_SLEEP=0;
15530 REPLACE_SYMLINK=0;
15531 REPLACE_TTYNAME_R=0;
15532 REPLACE_UNLINK=0;
15533 REPLACE_UNLINKAT=0;
15534 REPLACE_USLEEP=0;
15535 REPLACE_WRITE=0;
15536 UNISTD_H_HAVE_WINSOCK2_H=0;
15537 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15538
15539
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
15541 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
15542 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
15543 $as_echo_n "(cached) " >&6
15544 else
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547
15548 #include <sys/types.h>
15549 #include <sys/stat.h>
15550 int
15551 main ()
15552 {
15553 struct stat s; s.st_dm_mode;
15554 ;
15555 return 0;
15556 }
15557 _ACEOF
15558 if ac_fn_c_try_compile "$LINENO"; then :
15559 ac_cv_struct_st_dm_mode=yes
15560 else
15561 ac_cv_struct_st_dm_mode=no
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564 fi
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
15566 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
15567
15568 if test $ac_cv_struct_st_dm_mode = yes; then
15569
15570 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
15571
15572 fi
15573
15574
15575 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
15576 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
15577 ac_have_decl=1
15578 else
15579 ac_have_decl=0
15580 fi
15581
15582 cat >>confdefs.h <<_ACEOF
15583 #define HAVE_DECL_STRMODE $ac_have_decl
15584 _ACEOF
15585
15586
15587 GNULIB__EXIT=0;
15588 GNULIB_ATOLL=0;
15589 GNULIB_CALLOC_POSIX=0;
15590 GNULIB_CANONICALIZE_FILE_NAME=0;
15591 GNULIB_GETLOADAVG=0;
15592 GNULIB_GETSUBOPT=0;
15593 GNULIB_GRANTPT=0;
15594 GNULIB_MALLOC_POSIX=0;
15595 GNULIB_MBTOWC=0;
15596 GNULIB_MKDTEMP=0;
15597 GNULIB_MKOSTEMP=0;
15598 GNULIB_MKOSTEMPS=0;
15599 GNULIB_MKSTEMP=0;
15600 GNULIB_MKSTEMPS=0;
15601 GNULIB_POSIX_OPENPT=0;
15602 GNULIB_PTSNAME=0;
15603 GNULIB_PTSNAME_R=0;
15604 GNULIB_PUTENV=0;
15605 GNULIB_RANDOM=0;
15606 GNULIB_RANDOM_R=0;
15607 GNULIB_REALLOC_POSIX=0;
15608 GNULIB_REALPATH=0;
15609 GNULIB_RPMATCH=0;
15610 GNULIB_SETENV=0;
15611 GNULIB_STRTOD=0;
15612 GNULIB_STRTOLL=0;
15613 GNULIB_STRTOULL=0;
15614 GNULIB_SYSTEM_POSIX=0;
15615 GNULIB_UNLOCKPT=0;
15616 GNULIB_UNSETENV=0;
15617 GNULIB_WCTOMB=0;
15618 HAVE__EXIT=1;
15619 HAVE_ATOLL=1;
15620 HAVE_CANONICALIZE_FILE_NAME=1;
15621 HAVE_DECL_GETLOADAVG=1;
15622 HAVE_GETSUBOPT=1;
15623 HAVE_GRANTPT=1;
15624 HAVE_MKDTEMP=1;
15625 HAVE_MKOSTEMP=1;
15626 HAVE_MKOSTEMPS=1;
15627 HAVE_MKSTEMP=1;
15628 HAVE_MKSTEMPS=1;
15629 HAVE_POSIX_OPENPT=1;
15630 HAVE_PTSNAME=1;
15631 HAVE_PTSNAME_R=1;
15632 HAVE_RANDOM=1;
15633 HAVE_RANDOM_H=1;
15634 HAVE_RANDOM_R=1;
15635 HAVE_REALPATH=1;
15636 HAVE_RPMATCH=1;
15637 HAVE_SETENV=1;
15638 HAVE_DECL_SETENV=1;
15639 HAVE_STRTOD=1;
15640 HAVE_STRTOLL=1;
15641 HAVE_STRTOULL=1;
15642 HAVE_STRUCT_RANDOM_DATA=1;
15643 HAVE_SYS_LOADAVG_H=0;
15644 HAVE_UNLOCKPT=1;
15645 HAVE_DECL_UNSETENV=1;
15646 REPLACE_CALLOC=0;
15647 REPLACE_CANONICALIZE_FILE_NAME=0;
15648 REPLACE_MALLOC=0;
15649 REPLACE_MBTOWC=0;
15650 REPLACE_MKSTEMP=0;
15651 REPLACE_PTSNAME_R=0;
15652 REPLACE_PUTENV=0;
15653 REPLACE_RANDOM_R=0;
15654 REPLACE_REALLOC=0;
15655 REPLACE_REALPATH=0;
15656 REPLACE_SETENV=0;
15657 REPLACE_STRTOD=0;
15658 REPLACE_UNSETENV=0;
15659 REPLACE_WCTOMB=0;
15660
15661
15662
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15664 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15665 if test "${gl_cv_have_include_next+set}" = set; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 rm -rf conftestd1a conftestd1b conftestd2
15669 mkdir conftestd1a conftestd1b conftestd2
15670 cat <<EOF > conftestd1a/conftest.h
15671 #define DEFINED_IN_CONFTESTD1
15672 #include_next <conftest.h>
15673 #ifdef DEFINED_IN_CONFTESTD2
15674 int foo;
15675 #else
15676 #error "include_next doesn't work"
15677 #endif
15678 EOF
15679 cat <<EOF > conftestd1b/conftest.h
15680 #define DEFINED_IN_CONFTESTD1
15681 #include <stdio.h>
15682 #include_next <conftest.h>
15683 #ifdef DEFINED_IN_CONFTESTD2
15684 int foo;
15685 #else
15686 #error "include_next doesn't work"
15687 #endif
15688 EOF
15689 cat <<EOF > conftestd2/conftest.h
15690 #ifndef DEFINED_IN_CONFTESTD1
15691 #error "include_next test doesn't work"
15692 #endif
15693 #define DEFINED_IN_CONFTESTD2
15694 EOF
15695 gl_save_CPPFLAGS="$CPPFLAGS"
15696 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15699 #include <conftest.h>
15700 _ACEOF
15701 if ac_fn_c_try_compile "$LINENO"; then :
15702 gl_cv_have_include_next=yes
15703 else
15704 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15707 #include <conftest.h>
15708 _ACEOF
15709 if ac_fn_c_try_compile "$LINENO"; then :
15710 gl_cv_have_include_next=buggy
15711 else
15712 gl_cv_have_include_next=no
15713 fi
15714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 CPPFLAGS="$gl_save_CPPFLAGS"
15719 rm -rf conftestd1a conftestd1b conftestd2
15720
15721 fi
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15723 $as_echo "$gl_cv_have_include_next" >&6; }
15724 PRAGMA_SYSTEM_HEADER=
15725 if test $gl_cv_have_include_next = yes; then
15726 INCLUDE_NEXT=include_next
15727 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15728 if test -n "$GCC"; then
15729 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15730 fi
15731 else
15732 if test $gl_cv_have_include_next = buggy; then
15733 INCLUDE_NEXT=include
15734 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15735 else
15736 INCLUDE_NEXT=include
15737 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15738 fi
15739 fi
15740
15741
15742
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15744 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15745 if test "${gl_cv_pragma_columns+set}" = set; then :
15746 $as_echo_n "(cached) " >&6
15747 else
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750
15751 #ifdef __TANDEM
15752 choke me
15753 #endif
15754
15755 _ACEOF
15756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15757 $EGREP "choke me" >/dev/null 2>&1; then :
15758 gl_cv_pragma_columns=yes
15759 else
15760 gl_cv_pragma_columns=no
15761 fi
15762 rm -f conftest*
15763
15764
15765 fi
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15767 $as_echo "$gl_cv_pragma_columns" >&6; }
15768 if test $gl_cv_pragma_columns = yes; then
15769 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15770 else
15771 PRAGMA_COLUMNS=
15772 fi
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790 if test $gl_cv_have_include_next = yes; then
15791 gl_cv_next_getopt_h='<'getopt.h'>'
15792 else
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15794 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15795 if test "${gl_cv_next_getopt_h+set}" = set; then :
15796 $as_echo_n "(cached) " >&6
15797 else
15798
15799 if test $ac_cv_header_getopt_h = yes; then
15800
15801
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 #include <getopt.h>
15805
15806 _ACEOF
15807 case "$host_os" in
15808 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15809 *) gl_absname_cpp="$ac_cpp" ;;
15810 esac
15811
15812 case "$host_os" in
15813 mingw*)
15814 gl_dirsep_regex='[/\\]'
15815 ;;
15816 *)
15817 gl_dirsep_regex='\/'
15818 ;;
15819 esac
15820 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15821
15822 gl_header_literal_regex=`echo 'getopt.h' \
15823 | sed -e "$gl_make_literal_regex_sed"`
15824 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15825 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15826 s|^/[^/]|//&|
15827 p
15828 q
15829 }'
15830 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15831 sed -n "$gl_absolute_header_sed"`'"'
15832 else
15833 gl_cv_next_getopt_h='<'getopt.h'>'
15834 fi
15835
15836
15837 fi
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
15839 $as_echo "$gl_cv_next_getopt_h" >&6; }
15840 fi
15841 NEXT_GETOPT_H=$gl_cv_next_getopt_h
15842
15843 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15844 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15845 gl_next_as_first_directive='<'getopt.h'>'
15846 else
15847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15848 gl_next_as_first_directive=$gl_cv_next_getopt_h
15849 fi
15850 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
15851
15852
15853
15854
15855 if test $ac_cv_header_getopt_h = yes; then
15856 HAVE_GETOPT_H=1
15857 else
15858 HAVE_GETOPT_H=0
15859 fi
15860
15861
15862 gl_replace_getopt=
15863
15864 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15865 for ac_header in getopt.h
15866 do :
15867 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15868 if test "x$ac_cv_header_getopt_h" = x""yes; then :
15869 cat >>confdefs.h <<_ACEOF
15870 #define HAVE_GETOPT_H 1
15871 _ACEOF
15872
15873 else
15874 gl_replace_getopt=yes
15875 fi
15876
15877 done
15878
15879 fi
15880
15881 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15882 for ac_func in getopt_long_only
15883 do :
15884 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
15885 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
15886 cat >>confdefs.h <<_ACEOF
15887 #define HAVE_GETOPT_LONG_ONLY 1
15888 _ACEOF
15889
15890 else
15891 gl_replace_getopt=yes
15892 fi
15893 done
15894
15895 fi
15896
15897 if test -z "$gl_replace_getopt"; then
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
15899 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15900 if test "${gl_cv_func_getopt_posix+set}" = set; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 #include <unistd.h>
15907 int
15908 main ()
15909 {
15910 int *p = &optreset; return optreset;
15911 ;
15912 return 0;
15913 }
15914 _ACEOF
15915 if ac_fn_c_try_link "$LINENO"; then :
15916 gl_optind_min=1
15917 else
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15920 #include <getopt.h>
15921 int
15922 main ()
15923 {
15924 return !getopt_clip;
15925 ;
15926 return 0;
15927 }
15928 _ACEOF
15929 if ac_fn_c_try_compile "$LINENO"; then :
15930 gl_optind_min=1
15931 else
15932 gl_optind_min=0
15933 fi
15934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938
15939 gl_save_CPPFLAGS=$CPPFLAGS
15940 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
15941 if test "$cross_compiling" = yes; then :
15942 case "$host_os" in
15943 mingw*) gl_cv_func_getopt_posix="guessing no";;
15944 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
15945 *) gl_cv_func_getopt_posix="guessing yes";;
15946 esac
15947
15948 else
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951
15952 #include <unistd.h>
15953 #include <stdlib.h>
15954 #include <string.h>
15955
15956 int
15957 main ()
15958 {
15959 {
15960 static char program[] = "program";
15961 static char a[] = "-a";
15962 static char foo[] = "foo";
15963 static char bar[] = "bar";
15964 char *argv[] = { program, a, foo, bar, NULL };
15965 int c;
15966
15967 optind = OPTIND_MIN;
15968 opterr = 0;
15969
15970 c = getopt (4, argv, "ab");
15971 if (!(c == 'a'))
15972 return 1;
15973 c = getopt (4, argv, "ab");
15974 if (!(c == -1))
15975 return 2;
15976 if (!(optind == 2))
15977 return 3;
15978 }
15979 /* Some internal state exists at this point. */
15980 {
15981 static char program[] = "program";
15982 static char donald[] = "donald";
15983 static char p[] = "-p";
15984 static char billy[] = "billy";
15985 static char duck[] = "duck";
15986 static char a[] = "-a";
15987 static char bar[] = "bar";
15988 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
15989 int c;
15990
15991 optind = OPTIND_MIN;
15992 opterr = 0;
15993
15994 c = getopt (7, argv, "+abp:q:");
15995 if (!(c == -1))
15996 return 4;
15997 if (!(strcmp (argv[0], "program") == 0))
15998 return 5;
15999 if (!(strcmp (argv[1], "donald") == 0))
16000 return 6;
16001 if (!(strcmp (argv[2], "-p") == 0))
16002 return 7;
16003 if (!(strcmp (argv[3], "billy") == 0))
16004 return 8;
16005 if (!(strcmp (argv[4], "duck") == 0))
16006 return 9;
16007 if (!(strcmp (argv[5], "-a") == 0))
16008 return 10;
16009 if (!(strcmp (argv[6], "bar") == 0))
16010 return 11;
16011 if (!(optind == 1))
16012 return 12;
16013 }
16014 /* Detect MacOS 10.5, AIX 7.1 bug. */
16015 {
16016 static char program[] = "program";
16017 static char ab[] = "-ab";
16018 char *argv[3] = { program, ab, NULL };
16019 optind = OPTIND_MIN;
16020 opterr = 0;
16021 if (getopt (2, argv, "ab:") != 'a')
16022 return 13;
16023 if (getopt (2, argv, "ab:") != '?')
16024 return 14;
16025 if (optopt != 'b')
16026 return 15;
16027 if (optind != 2)
16028 return 16;
16029 }
16030
16031 return 0;
16032 }
16033
16034 _ACEOF
16035 if ac_fn_c_try_run "$LINENO"; then :
16036 gl_cv_func_getopt_posix=yes
16037 else
16038 gl_cv_func_getopt_posix=no
16039 fi
16040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16041 conftest.$ac_objext conftest.beam conftest.$ac_ext
16042 fi
16043
16044 CPPFLAGS=$gl_save_CPPFLAGS
16045
16046 fi
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16048 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16049 case "$gl_cv_func_getopt_posix" in
16050 *no) gl_replace_getopt=yes ;;
16051 esac
16052 fi
16053
16054 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16056 $as_echo_n "checking for working GNU getopt function... " >&6; }
16057 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16060 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16061 # optstring is necessary for programs like m4 that have POSIX-mandated
16062 # semantics for supporting options interspersed with files.
16063 # Also, since getopt_long is a GNU extension, we require optind=0.
16064 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16065 # so take care to revert to the correct (non-)export state.
16066 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16067 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16068 xx) gl_had_POSIXLY_CORRECT=exported ;;
16069 x) gl_had_POSIXLY_CORRECT=yes ;;
16070 *) gl_had_POSIXLY_CORRECT= ;;
16071 esac
16072 POSIXLY_CORRECT=1
16073 export POSIXLY_CORRECT
16074 if test "$cross_compiling" = yes; then :
16075 case $host_os:$ac_cv_have_decl_optreset in
16076 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16077 *:yes) gl_cv_func_getopt_gnu=no;;
16078 *) gl_cv_func_getopt_gnu=yes;;
16079 esac
16080
16081 else
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <getopt.h>
16085 #include <stddef.h>
16086 #include <string.h>
16087
16088 #include <stdlib.h>
16089 #if defined __MACH__ && defined __APPLE__
16090 /* Avoid a crash on MacOS X. */
16091 #include <mach/mach.h>
16092 #include <mach/mach_error.h>
16093 #include <mach/thread_status.h>
16094 #include <mach/exception.h>
16095 #include <mach/task.h>
16096 #include <pthread.h>
16097 /* The exception port on which our thread listens. */
16098 static mach_port_t our_exception_port;
16099 /* The main function of the thread listening for exceptions of type
16100 EXC_BAD_ACCESS. */
16101 static void *
16102 mach_exception_thread (void *arg)
16103 {
16104 /* Buffer for a message to be received. */
16105 struct {
16106 mach_msg_header_t head;
16107 mach_msg_body_t msgh_body;
16108 char data[1024];
16109 } msg;
16110 mach_msg_return_t retval;
16111 /* Wait for a message on the exception port. */
16112 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16113 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16114 if (retval != MACH_MSG_SUCCESS)
16115 abort ();
16116 exit (1);
16117 }
16118 static void
16119 nocrash_init (void)
16120 {
16121 mach_port_t self = mach_task_self ();
16122 /* Allocate a port on which the thread shall listen for exceptions. */
16123 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16124 == KERN_SUCCESS) {
16125 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16126 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16127 MACH_MSG_TYPE_MAKE_SEND)
16128 == KERN_SUCCESS) {
16129 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16130 for us. */
16131 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16132 /* Create the thread listening on the exception port. */
16133 pthread_attr_t attr;
16134 pthread_t thread;
16135 if (pthread_attr_init (&attr) == 0
16136 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16137 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16138 pthread_attr_destroy (&attr);
16139 /* Replace the exception port info for these exceptions with our own.
16140 Note that we replace the exception port for the entire task, not only
16141 for a particular thread. This has the effect that when our exception
16142 port gets the message, the thread specific exception port has already
16143 been asked, and we don't need to bother about it.
16144 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16145 task_set_exception_ports (self, mask, our_exception_port,
16146 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16147 }
16148 }
16149 }
16150 }
16151 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16152 /* Avoid a crash on native Windows. */
16153 #define WIN32_LEAN_AND_MEAN
16154 #include <windows.h>
16155 #include <winerror.h>
16156 static LONG WINAPI
16157 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16158 {
16159 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16160 {
16161 case EXCEPTION_ACCESS_VIOLATION:
16162 case EXCEPTION_IN_PAGE_ERROR:
16163 case EXCEPTION_STACK_OVERFLOW:
16164 case EXCEPTION_GUARD_PAGE:
16165 case EXCEPTION_PRIV_INSTRUCTION:
16166 case EXCEPTION_ILLEGAL_INSTRUCTION:
16167 case EXCEPTION_DATATYPE_MISALIGNMENT:
16168 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16169 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16170 exit (1);
16171 }
16172 return EXCEPTION_CONTINUE_SEARCH;
16173 }
16174 static void
16175 nocrash_init (void)
16176 {
16177 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16178 }
16179 #else
16180 /* Avoid a crash on POSIX systems. */
16181 #include <signal.h>
16182 /* A POSIX signal handler. */
16183 static void
16184 exception_handler (int sig)
16185 {
16186 exit (1);
16187 }
16188 static void
16189 nocrash_init (void)
16190 {
16191 #ifdef SIGSEGV
16192 signal (SIGSEGV, exception_handler);
16193 #endif
16194 #ifdef SIGBUS
16195 signal (SIGBUS, exception_handler);
16196 #endif
16197 }
16198 #endif
16199
16200
16201 int
16202 main ()
16203 {
16204
16205 int result = 0;
16206
16207 nocrash_init();
16208
16209 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16210 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16211 OSF/1 5.1, Solaris 10. */
16212 {
16213 static char conftest[] = "conftest";
16214 static char plus[] = "-+";
16215 char *argv[3] = { conftest, plus, NULL };
16216 opterr = 0;
16217 if (getopt (2, argv, "+a") != '?')
16218 result |= 1;
16219 }
16220 /* This code succeeds on glibc 2.8, mingw,
16221 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16222 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16223 {
16224 static char program[] = "program";
16225 static char p[] = "-p";
16226 static char foo[] = "foo";
16227 static char bar[] = "bar";
16228 char *argv[] = { program, p, foo, bar, NULL };
16229
16230 optind = 1;
16231 if (getopt (4, argv, "p::") != 'p')
16232 result |= 2;
16233 else if (optarg != NULL)
16234 result |= 4;
16235 else if (getopt (4, argv, "p::") != -1)
16236 result |= 6;
16237 else if (optind != 2)
16238 result |= 8;
16239 }
16240 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16241 {
16242 static char program[] = "program";
16243 static char foo[] = "foo";
16244 static char p[] = "-p";
16245 char *argv[] = { program, foo, p, NULL };
16246 optind = 0;
16247 if (getopt (3, argv, "-p") != 1)
16248 result |= 16;
16249 else if (getopt (3, argv, "-p") != 'p')
16250 result |= 32;
16251 }
16252 /* This code fails on glibc 2.11. */
16253 {
16254 static char program[] = "program";
16255 static char b[] = "-b";
16256 static char a[] = "-a";
16257 char *argv[] = { program, b, a, NULL };
16258 optind = opterr = 0;
16259 if (getopt (3, argv, "+:a:b") != 'b')
16260 result |= 64;
16261 else if (getopt (3, argv, "+:a:b") != ':')
16262 result |= 64;
16263 }
16264 /* This code dumps core on glibc 2.14. */
16265 {
16266 static char program[] = "program";
16267 static char w[] = "-W";
16268 static char dummy[] = "dummy";
16269 char *argv[] = { program, w, dummy, NULL };
16270 optind = opterr = 1;
16271 if (getopt (3, argv, "W;") != 'W')
16272 result |= 128;
16273 }
16274 return result;
16275
16276 ;
16277 return 0;
16278 }
16279 _ACEOF
16280 if ac_fn_c_try_run "$LINENO"; then :
16281 gl_cv_func_getopt_gnu=yes
16282 else
16283 gl_cv_func_getopt_gnu=no
16284 fi
16285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16286 conftest.$ac_objext conftest.beam conftest.$ac_ext
16287 fi
16288
16289 case $gl_had_POSIXLY_CORRECT in
16290 exported) ;;
16291 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16292 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16293 esac
16294
16295 fi
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16297 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16298 if test "$gl_cv_func_getopt_gnu" = "no"; then
16299 gl_replace_getopt=yes
16300 fi
16301 fi
16302
16303
16304
16305
16306
16307 REPLACE_GETOPT=0
16308
16309
16310 if test -n "$gl_replace_getopt"; then :
16311
16312 REPLACE_GETOPT=1
16313
16314 fi
16315
16316
16317 if test $REPLACE_GETOPT = 1; then
16318
16319 GETOPT_H=getopt.h
16320
16321 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16322
16323
16324
16325 fi
16326
16327 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16328 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16329 ac_have_decl=1
16330 else
16331 ac_have_decl=0
16332 fi
16333
16334 cat >>confdefs.h <<_ACEOF
16335 #define HAVE_DECL_GETENV $ac_have_decl
16336 _ACEOF
16337
16338
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16340 $as_echo_n "checking for unsigned long long int... " >&6; }
16341 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16342 $as_echo_n "(cached) " >&6
16343 else
16344 ac_cv_type_unsigned_long_long_int=yes
16345 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h. */
16348
16349 /* For now, do not test the preprocessor; as of 2007 there are too many
16350 implementations with broken preprocessors. Perhaps this can
16351 be revisited in 2012. In the meantime, code should not expect
16352 #if to work with literals wider than 32 bits. */
16353 /* Test literals. */
16354 long long int ll = 9223372036854775807ll;
16355 long long int nll = -9223372036854775807LL;
16356 unsigned long long int ull = 18446744073709551615ULL;
16357 /* Test constant expressions. */
16358 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16359 ? 1 : -1)];
16360 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16361 ? 1 : -1)];
16362 int i = 63;
16363 int
16364 main ()
16365 {
16366 /* Test availability of runtime routines for shift and division. */
16367 long long int llmax = 9223372036854775807ll;
16368 unsigned long long int ullmax = 18446744073709551615ull;
16369 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16370 | (llmax / ll) | (llmax % ll)
16371 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16372 | (ullmax / ull) | (ullmax % ull));
16373 ;
16374 return 0;
16375 }
16376
16377 _ACEOF
16378 if ac_fn_c_try_link "$LINENO"; then :
16379
16380 else
16381 ac_cv_type_unsigned_long_long_int=no
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16385 fi
16386 fi
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16388 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16389 if test $ac_cv_type_unsigned_long_long_int = yes; then
16390
16391 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16392
16393 fi
16394
16395
16396
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16398 $as_echo_n "checking for long long int... " >&6; }
16399 if test "${ac_cv_type_long_long_int+set}" = set; then :
16400 $as_echo_n "(cached) " >&6
16401 else
16402 ac_cv_type_long_long_int=yes
16403 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16404 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16405 if test $ac_cv_type_long_long_int = yes; then
16406 if test "$cross_compiling" = yes; then :
16407 :
16408 else
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16411 #include <limits.h>
16412 #ifndef LLONG_MAX
16413 # define HALF \
16414 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16415 # define LLONG_MAX (HALF - 1 + HALF)
16416 #endif
16417 int
16418 main ()
16419 {
16420 long long int n = 1;
16421 int i;
16422 for (i = 0; ; i++)
16423 {
16424 long long int m = n << i;
16425 if (m >> i != n)
16426 return 1;
16427 if (LLONG_MAX / 2 < m)
16428 break;
16429 }
16430 return 0;
16431 ;
16432 return 0;
16433 }
16434 _ACEOF
16435 if ac_fn_c_try_run "$LINENO"; then :
16436
16437 else
16438 ac_cv_type_long_long_int=no
16439 fi
16440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16441 conftest.$ac_objext conftest.beam conftest.$ac_ext
16442 fi
16443
16444 fi
16445 fi
16446 fi
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16448 $as_echo "$ac_cv_type_long_long_int" >&6; }
16449 if test $ac_cv_type_long_long_int = yes; then
16450
16451 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16452
16453 fi
16454
16455
16456
16457
16458
16459
16460 gl_cv_c_multiarch=no
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16463 #ifndef __APPLE_CC__
16464 not a universal capable compiler
16465 #endif
16466 typedef int dummy;
16467
16468 _ACEOF
16469 if ac_fn_c_try_compile "$LINENO"; then :
16470
16471 arch=
16472 prev=
16473 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16474 if test -n "$prev"; then
16475 case $word in
16476 i?86 | x86_64 | ppc | ppc64)
16477 if test -z "$arch" || test "$arch" = "$word"; then
16478 arch="$word"
16479 else
16480 gl_cv_c_multiarch=yes
16481 fi
16482 ;;
16483 esac
16484 prev=
16485 else
16486 if test "x$word" = "x-arch"; then
16487 prev=arch
16488 fi
16489 fi
16490 done
16491
16492 fi
16493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16494 if test $gl_cv_c_multiarch = yes; then
16495 APPLE_UNIVERSAL_BUILD=1
16496 else
16497 APPLE_UNIVERSAL_BUILD=0
16498 fi
16499
16500
16501
16502
16503
16504 if test $ac_cv_type_long_long_int = yes; then
16505 HAVE_LONG_LONG_INT=1
16506 else
16507 HAVE_LONG_LONG_INT=0
16508 fi
16509
16510
16511 if test $ac_cv_type_unsigned_long_long_int = yes; then
16512 HAVE_UNSIGNED_LONG_LONG_INT=1
16513 else
16514 HAVE_UNSIGNED_LONG_LONG_INT=0
16515 fi
16516
16517
16518
16519 if test $ac_cv_header_wchar_h = yes; then
16520 HAVE_WCHAR_H=1
16521 else
16522 HAVE_WCHAR_H=0
16523 fi
16524
16525
16526 if test $ac_cv_header_inttypes_h = yes; then
16527 HAVE_INTTYPES_H=1
16528 else
16529 HAVE_INTTYPES_H=0
16530 fi
16531
16532
16533 if test $ac_cv_header_sys_types_h = yes; then
16534 HAVE_SYS_TYPES_H=1
16535 else
16536 HAVE_SYS_TYPES_H=0
16537 fi
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549 if test $gl_cv_have_include_next = yes; then
16550 gl_cv_next_stdint_h='<'stdint.h'>'
16551 else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16553 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16554 if test "${gl_cv_next_stdint_h+set}" = set; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16557
16558 if test $ac_cv_header_stdint_h = yes; then
16559
16560
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16563 #include <stdint.h>
16564
16565 _ACEOF
16566 case "$host_os" in
16567 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16568 *) gl_absname_cpp="$ac_cpp" ;;
16569 esac
16570
16571 case "$host_os" in
16572 mingw*)
16573 gl_dirsep_regex='[/\\]'
16574 ;;
16575 *)
16576 gl_dirsep_regex='\/'
16577 ;;
16578 esac
16579 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16580
16581 gl_header_literal_regex=`echo 'stdint.h' \
16582 | sed -e "$gl_make_literal_regex_sed"`
16583 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16584 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16585 s|^/[^/]|//&|
16586 p
16587 q
16588 }'
16589 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16590 sed -n "$gl_absolute_header_sed"`'"'
16591 else
16592 gl_cv_next_stdint_h='<'stdint.h'>'
16593 fi
16594
16595
16596 fi
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16598 $as_echo "$gl_cv_next_stdint_h" >&6; }
16599 fi
16600 NEXT_STDINT_H=$gl_cv_next_stdint_h
16601
16602 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16604 gl_next_as_first_directive='<'stdint.h'>'
16605 else
16606 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16607 gl_next_as_first_directive=$gl_cv_next_stdint_h
16608 fi
16609 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16610
16611
16612
16613
16614 if test $ac_cv_header_stdint_h = yes; then
16615 HAVE_STDINT_H=1
16616 else
16617 HAVE_STDINT_H=0
16618 fi
16619
16620
16621 if test $ac_cv_header_stdint_h = yes; then
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16623 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16624 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16625 $as_echo_n "(cached) " >&6
16626 else
16627 gl_cv_header_working_stdint_h=no
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16630
16631
16632 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16633 #include <stdint.h>
16634 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16635 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16636 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16637 #endif
16638
16639
16640 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16641 included before <wchar.h>. */
16642 #include <stddef.h>
16643 #include <signal.h>
16644 #if HAVE_WCHAR_H
16645 # include <stdio.h>
16646 # include <time.h>
16647 # include <wchar.h>
16648 #endif
16649
16650
16651 #ifdef INT8_MAX
16652 int8_t a1 = INT8_MAX;
16653 int8_t a1min = INT8_MIN;
16654 #endif
16655 #ifdef INT16_MAX
16656 int16_t a2 = INT16_MAX;
16657 int16_t a2min = INT16_MIN;
16658 #endif
16659 #ifdef INT32_MAX
16660 int32_t a3 = INT32_MAX;
16661 int32_t a3min = INT32_MIN;
16662 #endif
16663 #ifdef INT64_MAX
16664 int64_t a4 = INT64_MAX;
16665 int64_t a4min = INT64_MIN;
16666 #endif
16667 #ifdef UINT8_MAX
16668 uint8_t b1 = UINT8_MAX;
16669 #else
16670 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16671 #endif
16672 #ifdef UINT16_MAX
16673 uint16_t b2 = UINT16_MAX;
16674 #endif
16675 #ifdef UINT32_MAX
16676 uint32_t b3 = UINT32_MAX;
16677 #endif
16678 #ifdef UINT64_MAX
16679 uint64_t b4 = UINT64_MAX;
16680 #endif
16681 int_least8_t c1 = INT8_C (0x7f);
16682 int_least8_t c1max = INT_LEAST8_MAX;
16683 int_least8_t c1min = INT_LEAST8_MIN;
16684 int_least16_t c2 = INT16_C (0x7fff);
16685 int_least16_t c2max = INT_LEAST16_MAX;
16686 int_least16_t c2min = INT_LEAST16_MIN;
16687 int_least32_t c3 = INT32_C (0x7fffffff);
16688 int_least32_t c3max = INT_LEAST32_MAX;
16689 int_least32_t c3min = INT_LEAST32_MIN;
16690 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16691 int_least64_t c4max = INT_LEAST64_MAX;
16692 int_least64_t c4min = INT_LEAST64_MIN;
16693 uint_least8_t d1 = UINT8_C (0xff);
16694 uint_least8_t d1max = UINT_LEAST8_MAX;
16695 uint_least16_t d2 = UINT16_C (0xffff);
16696 uint_least16_t d2max = UINT_LEAST16_MAX;
16697 uint_least32_t d3 = UINT32_C (0xffffffff);
16698 uint_least32_t d3max = UINT_LEAST32_MAX;
16699 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16700 uint_least64_t d4max = UINT_LEAST64_MAX;
16701 int_fast8_t e1 = INT_FAST8_MAX;
16702 int_fast8_t e1min = INT_FAST8_MIN;
16703 int_fast16_t e2 = INT_FAST16_MAX;
16704 int_fast16_t e2min = INT_FAST16_MIN;
16705 int_fast32_t e3 = INT_FAST32_MAX;
16706 int_fast32_t e3min = INT_FAST32_MIN;
16707 int_fast64_t e4 = INT_FAST64_MAX;
16708 int_fast64_t e4min = INT_FAST64_MIN;
16709 uint_fast8_t f1 = UINT_FAST8_MAX;
16710 uint_fast16_t f2 = UINT_FAST16_MAX;
16711 uint_fast32_t f3 = UINT_FAST32_MAX;
16712 uint_fast64_t f4 = UINT_FAST64_MAX;
16713 #ifdef INTPTR_MAX
16714 intptr_t g = INTPTR_MAX;
16715 intptr_t gmin = INTPTR_MIN;
16716 #endif
16717 #ifdef UINTPTR_MAX
16718 uintptr_t h = UINTPTR_MAX;
16719 #endif
16720 intmax_t i = INTMAX_MAX;
16721 uintmax_t j = UINTMAX_MAX;
16722
16723 #include <limits.h> /* for CHAR_BIT */
16724 #define TYPE_MINIMUM(t) \
16725 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16726 #define TYPE_MAXIMUM(t) \
16727 ((t) ((t) 0 < (t) -1 \
16728 ? (t) -1 \
16729 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16730 struct s {
16731 int check_PTRDIFF:
16732 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16733 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16734 ? 1 : -1;
16735 /* Detect bug in FreeBSD 6.0 / ia64. */
16736 int check_SIG_ATOMIC:
16737 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16738 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16739 ? 1 : -1;
16740 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16741 int check_WCHAR:
16742 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16743 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16744 ? 1 : -1;
16745 /* Detect bug in mingw. */
16746 int check_WINT:
16747 WINT_MIN == TYPE_MINIMUM (wint_t)
16748 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16749 ? 1 : -1;
16750
16751 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16752 int check_UINT8_C:
16753 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16754 int check_UINT16_C:
16755 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16756
16757 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16758 #ifdef UINT8_MAX
16759 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16760 #endif
16761 #ifdef UINT16_MAX
16762 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16763 #endif
16764 #ifdef UINT32_MAX
16765 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16766 #endif
16767 #ifdef UINT64_MAX
16768 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16769 #endif
16770 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16771 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16772 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16773 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16774 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16775 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16776 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16777 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16778 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16779 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16780 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16781 };
16782
16783 int
16784 main ()
16785 {
16786
16787 ;
16788 return 0;
16789 }
16790 _ACEOF
16791 if ac_fn_c_try_compile "$LINENO"; then :
16792 if test "$cross_compiling" = yes; then :
16793 gl_cv_header_working_stdint_h=yes
16794
16795 else
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16798
16799
16800 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16801 #include <stdint.h>
16802
16803
16804 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16805 included before <wchar.h>. */
16806 #include <stddef.h>
16807 #include <signal.h>
16808 #if HAVE_WCHAR_H
16809 # include <stdio.h>
16810 # include <time.h>
16811 # include <wchar.h>
16812 #endif
16813
16814
16815 #include <stdio.h>
16816 #include <string.h>
16817 #define MVAL(macro) MVAL1(macro)
16818 #define MVAL1(expression) #expression
16819 static const char *macro_values[] =
16820 {
16821 #ifdef INT8_MAX
16822 MVAL (INT8_MAX),
16823 #endif
16824 #ifdef INT16_MAX
16825 MVAL (INT16_MAX),
16826 #endif
16827 #ifdef INT32_MAX
16828 MVAL (INT32_MAX),
16829 #endif
16830 #ifdef INT64_MAX
16831 MVAL (INT64_MAX),
16832 #endif
16833 #ifdef UINT8_MAX
16834 MVAL (UINT8_MAX),
16835 #endif
16836 #ifdef UINT16_MAX
16837 MVAL (UINT16_MAX),
16838 #endif
16839 #ifdef UINT32_MAX
16840 MVAL (UINT32_MAX),
16841 #endif
16842 #ifdef UINT64_MAX
16843 MVAL (UINT64_MAX),
16844 #endif
16845 NULL
16846 };
16847
16848 int
16849 main ()
16850 {
16851
16852 const char **mv;
16853 for (mv = macro_values; *mv != NULL; mv++)
16854 {
16855 const char *value = *mv;
16856 /* Test whether it looks like a cast expression. */
16857 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16858 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16859 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16860 || strncmp (value, "((int)"/*)*/, 6) == 0
16861 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16862 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16863 return mv - macro_values + 1;
16864 }
16865 return 0;
16866
16867 ;
16868 return 0;
16869 }
16870 _ACEOF
16871 if ac_fn_c_try_run "$LINENO"; then :
16872 gl_cv_header_working_stdint_h=yes
16873 fi
16874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16875 conftest.$ac_objext conftest.beam conftest.$ac_ext
16876 fi
16877
16878
16879 fi
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881
16882 fi
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16884 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16885 fi
16886 if test "$gl_cv_header_working_stdint_h" = yes; then
16887 STDINT_H=
16888 else
16889 for ac_header in sys/inttypes.h sys/bitypes.h
16890 do :
16891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16893 eval as_val=\$$as_ac_Header
16894 if test "x$as_val" = x""yes; then :
16895 cat >>confdefs.h <<_ACEOF
16896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16897 _ACEOF
16898
16899 fi
16900
16901 done
16902
16903 if test $ac_cv_header_sys_inttypes_h = yes; then
16904 HAVE_SYS_INTTYPES_H=1
16905 else
16906 HAVE_SYS_INTTYPES_H=0
16907 fi
16908
16909 if test $ac_cv_header_sys_bitypes_h = yes; then
16910 HAVE_SYS_BITYPES_H=1
16911 else
16912 HAVE_SYS_BITYPES_H=0
16913 fi
16914
16915
16916
16917
16918 if test $APPLE_UNIVERSAL_BUILD = 0; then
16919
16920
16921 for gltype in ptrdiff_t size_t ; do
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16923 $as_echo_n "checking for bit size of $gltype... " >&6; }
16924 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16927 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16928 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16929 included before <wchar.h>. */
16930 #include <stddef.h>
16931 #include <signal.h>
16932 #if HAVE_WCHAR_H
16933 # include <stdio.h>
16934 # include <time.h>
16935 # include <wchar.h>
16936 #endif
16937
16938 #include <limits.h>"; then :
16939
16940 else
16941 result=unknown
16942 fi
16943
16944 eval gl_cv_bitsizeof_${gltype}=\$result
16945
16946 fi
16947 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16949 $as_echo "$ac_res" >&6; }
16950 eval result=\$gl_cv_bitsizeof_${gltype}
16951 if test $result = unknown; then
16952 result=0
16953 fi
16954 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16955 cat >>confdefs.h <<_ACEOF
16956 #define BITSIZEOF_${GLTYPE} $result
16957 _ACEOF
16958
16959 eval BITSIZEOF_${GLTYPE}=\$result
16960 done
16961
16962
16963 fi
16964
16965
16966 for gltype in sig_atomic_t wchar_t wint_t ; do
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16968 $as_echo_n "checking for bit size of $gltype... " >&6; }
16969 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16970 $as_echo_n "(cached) " >&6
16971 else
16972 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16973 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16974 included before <wchar.h>. */
16975 #include <stddef.h>
16976 #include <signal.h>
16977 #if HAVE_WCHAR_H
16978 # include <stdio.h>
16979 # include <time.h>
16980 # include <wchar.h>
16981 #endif
16982
16983 #include <limits.h>"; then :
16984
16985 else
16986 result=unknown
16987 fi
16988
16989 eval gl_cv_bitsizeof_${gltype}=\$result
16990
16991 fi
16992 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16994 $as_echo "$ac_res" >&6; }
16995 eval result=\$gl_cv_bitsizeof_${gltype}
16996 if test $result = unknown; then
16997 result=0
16998 fi
16999 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17000 cat >>confdefs.h <<_ACEOF
17001 #define BITSIZEOF_${GLTYPE} $result
17002 _ACEOF
17003
17004 eval BITSIZEOF_${GLTYPE}=\$result
17005 done
17006
17007
17008
17009
17010 for gltype in sig_atomic_t wchar_t wint_t ; do
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17012 $as_echo_n "checking whether $gltype is signed... " >&6; }
17013 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17014 $as_echo_n "(cached) " >&6
17015 else
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17018
17019 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17020 included before <wchar.h>. */
17021 #include <stddef.h>
17022 #include <signal.h>
17023 #if HAVE_WCHAR_H
17024 # include <stdio.h>
17025 # include <time.h>
17026 # include <wchar.h>
17027 #endif
17028
17029 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17030 int
17031 main ()
17032 {
17033
17034 ;
17035 return 0;
17036 }
17037 _ACEOF
17038 if ac_fn_c_try_compile "$LINENO"; then :
17039 result=yes
17040 else
17041 result=no
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044 eval gl_cv_type_${gltype}_signed=\$result
17045
17046 fi
17047 eval ac_res=\$gl_cv_type_${gltype}_signed
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17049 $as_echo "$ac_res" >&6; }
17050 eval result=\$gl_cv_type_${gltype}_signed
17051 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17052 if test "$result" = yes; then
17053 cat >>confdefs.h <<_ACEOF
17054 #define HAVE_SIGNED_${GLTYPE} 1
17055 _ACEOF
17056
17057 eval HAVE_SIGNED_${GLTYPE}=1
17058 else
17059 eval HAVE_SIGNED_${GLTYPE}=0
17060 fi
17061 done
17062
17063
17064 gl_cv_type_ptrdiff_t_signed=yes
17065 gl_cv_type_size_t_signed=no
17066 if test $APPLE_UNIVERSAL_BUILD = 0; then
17067
17068
17069 for gltype in ptrdiff_t size_t ; do
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17071 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17072 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17073 $as_echo_n "(cached) " >&6
17074 else
17075 eval gl_cv_type_${gltype}_suffix=no
17076 eval result=\$gl_cv_type_${gltype}_signed
17077 if test "$result" = yes; then
17078 glsufu=
17079 else
17080 glsufu=u
17081 fi
17082 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17083 case $glsuf in
17084 '') gltype1='int';;
17085 l) gltype1='long int';;
17086 ll) gltype1='long long int';;
17087 i64) gltype1='__int64';;
17088 u) gltype1='unsigned int';;
17089 ul) gltype1='unsigned long int';;
17090 ull) gltype1='unsigned long long int';;
17091 ui64)gltype1='unsigned __int64';;
17092 esac
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095
17096 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17097 included before <wchar.h>. */
17098 #include <stddef.h>
17099 #include <signal.h>
17100 #if HAVE_WCHAR_H
17101 # include <stdio.h>
17102 # include <time.h>
17103 # include <wchar.h>
17104 #endif
17105
17106 extern $gltype foo;
17107 extern $gltype1 foo;
17108 int
17109 main ()
17110 {
17111
17112 ;
17113 return 0;
17114 }
17115 _ACEOF
17116 if ac_fn_c_try_compile "$LINENO"; then :
17117 eval gl_cv_type_${gltype}_suffix=\$glsuf
17118 fi
17119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17120 eval result=\$gl_cv_type_${gltype}_suffix
17121 test "$result" != no && break
17122 done
17123 fi
17124 eval ac_res=\$gl_cv_type_${gltype}_suffix
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17126 $as_echo "$ac_res" >&6; }
17127 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17128 eval result=\$gl_cv_type_${gltype}_suffix
17129 test "$result" = no && result=
17130 eval ${GLTYPE}_SUFFIX=\$result
17131 cat >>confdefs.h <<_ACEOF
17132 #define ${GLTYPE}_SUFFIX $result
17133 _ACEOF
17134
17135 done
17136
17137
17138 fi
17139
17140
17141 for gltype in sig_atomic_t wchar_t wint_t ; do
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17143 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17144 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17145 $as_echo_n "(cached) " >&6
17146 else
17147 eval gl_cv_type_${gltype}_suffix=no
17148 eval result=\$gl_cv_type_${gltype}_signed
17149 if test "$result" = yes; then
17150 glsufu=
17151 else
17152 glsufu=u
17153 fi
17154 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17155 case $glsuf in
17156 '') gltype1='int';;
17157 l) gltype1='long int';;
17158 ll) gltype1='long long int';;
17159 i64) gltype1='__int64';;
17160 u) gltype1='unsigned int';;
17161 ul) gltype1='unsigned long int';;
17162 ull) gltype1='unsigned long long int';;
17163 ui64)gltype1='unsigned __int64';;
17164 esac
17165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166 /* end confdefs.h. */
17167
17168 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17169 included before <wchar.h>. */
17170 #include <stddef.h>
17171 #include <signal.h>
17172 #if HAVE_WCHAR_H
17173 # include <stdio.h>
17174 # include <time.h>
17175 # include <wchar.h>
17176 #endif
17177
17178 extern $gltype foo;
17179 extern $gltype1 foo;
17180 int
17181 main ()
17182 {
17183
17184 ;
17185 return 0;
17186 }
17187 _ACEOF
17188 if ac_fn_c_try_compile "$LINENO"; then :
17189 eval gl_cv_type_${gltype}_suffix=\$glsuf
17190 fi
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 eval result=\$gl_cv_type_${gltype}_suffix
17193 test "$result" != no && break
17194 done
17195 fi
17196 eval ac_res=\$gl_cv_type_${gltype}_suffix
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17198 $as_echo "$ac_res" >&6; }
17199 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17200 eval result=\$gl_cv_type_${gltype}_suffix
17201 test "$result" = no && result=
17202 eval ${GLTYPE}_SUFFIX=\$result
17203 cat >>confdefs.h <<_ACEOF
17204 #define ${GLTYPE}_SUFFIX $result
17205 _ACEOF
17206
17207 done
17208
17209
17210
17211 if test $BITSIZEOF_WINT_T -lt 32; then
17212 BITSIZEOF_WINT_T=32
17213 fi
17214
17215 STDINT_H=stdint.h
17216 fi
17217
17218 if test -n "$STDINT_H"; then
17219 GL_GENERATE_STDINT_H_TRUE=
17220 GL_GENERATE_STDINT_H_FALSE='#'
17221 else
17222 GL_GENERATE_STDINT_H_TRUE='#'
17223 GL_GENERATE_STDINT_H_FALSE=
17224 fi
17225
17226
17227
17228
17229
17230 GNULIB_IMAXABS=0;
17231 GNULIB_IMAXDIV=0;
17232 GNULIB_STRTOIMAX=0;
17233 GNULIB_STRTOUMAX=0;
17234 HAVE_DECL_IMAXABS=1;
17235 HAVE_DECL_IMAXDIV=1;
17236 HAVE_DECL_STRTOIMAX=1;
17237 HAVE_DECL_STRTOUMAX=1;
17238 REPLACE_STRTOIMAX=0;
17239 INT32_MAX_LT_INTMAX_MAX=1;
17240 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17241 PRI_MACROS_BROKEN=0;
17242 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17243 UINT32_MAX_LT_UINTMAX_MAX=1;
17244 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260 if test $gl_cv_have_include_next = yes; then
17261 gl_cv_next_inttypes_h='<'inttypes.h'>'
17262 else
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17264 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17265 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17266 $as_echo_n "(cached) " >&6
17267 else
17268
17269 if test $ac_cv_header_inttypes_h = yes; then
17270
17271
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17274 #include <inttypes.h>
17275
17276 _ACEOF
17277 case "$host_os" in
17278 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17279 *) gl_absname_cpp="$ac_cpp" ;;
17280 esac
17281
17282 case "$host_os" in
17283 mingw*)
17284 gl_dirsep_regex='[/\\]'
17285 ;;
17286 *)
17287 gl_dirsep_regex='\/'
17288 ;;
17289 esac
17290 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17291
17292 gl_header_literal_regex=`echo 'inttypes.h' \
17293 | sed -e "$gl_make_literal_regex_sed"`
17294 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17295 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17296 s|^/[^/]|//&|
17297 p
17298 q
17299 }'
17300 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17301 sed -n "$gl_absolute_header_sed"`'"'
17302 else
17303 gl_cv_next_inttypes_h='<'inttypes.h'>'
17304 fi
17305
17306
17307 fi
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17309 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17310 fi
17311 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17312
17313 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17315 gl_next_as_first_directive='<'inttypes.h'>'
17316 else
17317 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17318 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17319 fi
17320 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332 case "$host_os" in
17333 mingw*)
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17335 $as_echo_n "checking for 64-bit off_t... " >&6; }
17336 if test "${gl_cv_type_off_t_64+set}" = set; then :
17337 $as_echo_n "(cached) " >&6
17338 else
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17341 #include <sys/types.h>
17342 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17343
17344 int
17345 main ()
17346 {
17347
17348 ;
17349 return 0;
17350 }
17351 _ACEOF
17352 if ac_fn_c_try_compile "$LINENO"; then :
17353 gl_cv_type_off_t_64=yes
17354 else
17355 gl_cv_type_off_t_64=no
17356 fi
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358
17359 fi
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17361 $as_echo "$gl_cv_type_off_t_64" >&6; }
17362 if test $gl_cv_type_off_t_64 = no; then
17363 WINDOWS_64_BIT_OFF_T=1
17364 else
17365 WINDOWS_64_BIT_OFF_T=0
17366 fi
17367 WINDOWS_64_BIT_ST_SIZE=1
17368 ;;
17369 *)
17370 WINDOWS_64_BIT_OFF_T=0
17371 WINDOWS_64_BIT_ST_SIZE=0
17372 ;;
17373 esac
17374
17375
17376 GNULIB_FCHMODAT=0;
17377 GNULIB_FSTAT=0;
17378 GNULIB_FSTATAT=0;
17379 GNULIB_FUTIMENS=0;
17380 GNULIB_LCHMOD=0;
17381 GNULIB_LSTAT=0;
17382 GNULIB_MKDIRAT=0;
17383 GNULIB_MKFIFO=0;
17384 GNULIB_MKFIFOAT=0;
17385 GNULIB_MKNOD=0;
17386 GNULIB_MKNODAT=0;
17387 GNULIB_STAT=0;
17388 GNULIB_UTIMENSAT=0;
17389 HAVE_FCHMODAT=1;
17390 HAVE_FSTATAT=1;
17391 HAVE_FUTIMENS=1;
17392 HAVE_LCHMOD=1;
17393 HAVE_LSTAT=1;
17394 HAVE_MKDIRAT=1;
17395 HAVE_MKFIFO=1;
17396 HAVE_MKFIFOAT=1;
17397 HAVE_MKNOD=1;
17398 HAVE_MKNODAT=1;
17399 HAVE_UTIMENSAT=1;
17400 REPLACE_FSTAT=0;
17401 REPLACE_FSTATAT=0;
17402 REPLACE_FUTIMENS=0;
17403 REPLACE_LSTAT=0;
17404 REPLACE_MKDIR=0;
17405 REPLACE_MKFIFO=0;
17406 REPLACE_MKNOD=0;
17407 REPLACE_STAT=0;
17408 REPLACE_UTIMENSAT=0;
17409
17410
17411
17412
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17414 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17415 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17416 $as_echo_n "(cached) " >&6
17417 else
17418 rm -f conftest.sym conftest.file
17419 echo >conftest.file
17420 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17421 if test "$cross_compiling" = yes; then :
17422 case "$host_os" in
17423 # Guess yes on glibc systems.
17424 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17425 # If we don't know, assume the worst.
17426 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17427 esac
17428
17429 else
17430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h. */
17432 $ac_includes_default
17433 int
17434 main ()
17435 {
17436 struct stat sbuf;
17437 /* Linux will dereference the symlink and fail, as required by
17438 POSIX. That is better in the sense that it means we will not
17439 have to compile and use the lstat wrapper. */
17440 return lstat ("conftest.sym/", &sbuf) == 0;
17441
17442 ;
17443 return 0;
17444 }
17445 _ACEOF
17446 if ac_fn_c_try_run "$LINENO"; then :
17447 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17448 else
17449 gl_cv_func_lstat_dereferences_slashed_symlink=no
17450 fi
17451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17452 conftest.$ac_objext conftest.beam conftest.$ac_ext
17453 fi
17454
17455 else
17456 # If the 'ln -s' command failed, then we probably don't even
17457 # have an lstat function.
17458 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17459 fi
17460 rm -f conftest.sym conftest.file
17461
17462 fi
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17464 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17465 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17466 *yes)
17467
17468 cat >>confdefs.h <<_ACEOF
17469 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17470 _ACEOF
17471
17472 ;;
17473 esac
17474
17475
17476 GNULIB_MKTIME=0;
17477 GNULIB_NANOSLEEP=0;
17478 GNULIB_STRPTIME=0;
17479 GNULIB_TIMEGM=0;
17480 GNULIB_TIME_R=0;
17481 HAVE_DECL_LOCALTIME_R=1;
17482 HAVE_NANOSLEEP=1;
17483 HAVE_STRPTIME=1;
17484 HAVE_TIMEGM=1;
17485 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17486 REPLACE_MKTIME=GNULIB_PORTCHECK;
17487 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17488 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17489
17490
17491
17492
17493 GNULIB_PTHREAD_SIGMASK=0;
17494 GNULIB_RAISE=0;
17495 GNULIB_SIGNAL_H_SIGPIPE=0;
17496 GNULIB_SIGPROCMASK=0;
17497 GNULIB_SIGACTION=0;
17498 HAVE_POSIX_SIGNALBLOCKING=1;
17499 HAVE_PTHREAD_SIGMASK=1;
17500 HAVE_RAISE=1;
17501 HAVE_SIGSET_T=1;
17502 HAVE_SIGINFO_T=1;
17503 HAVE_SIGACTION=1;
17504 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17505
17506 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17507
17508 HAVE_SIGHANDLER_T=1;
17509 REPLACE_PTHREAD_SIGMASK=0;
17510 REPLACE_RAISE=0;
17511
17512
17513
17514
17515
17516
17517 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17518 #include <signal.h>
17519 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17520 #include <sys/types.h>
17521
17522 "
17523 if test "x$ac_cv_type_sigset_t" = x""yes; then :
17524
17525 cat >>confdefs.h <<_ACEOF
17526 #define HAVE_SIGSET_T 1
17527 _ACEOF
17528
17529 gl_cv_type_sigset_t=yes
17530 else
17531 gl_cv_type_sigset_t=no
17532 fi
17533
17534 if test $gl_cv_type_sigset_t != yes; then
17535 HAVE_SIGSET_T=0
17536 fi
17537
17538
17539
17540 if test $ac_cv_header_sys_socket_h = no; then
17541 for ac_header in ws2tcpip.h
17542 do :
17543 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17544 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
17545 cat >>confdefs.h <<_ACEOF
17546 #define HAVE_WS2TCPIP_H 1
17547 _ACEOF
17548
17549 fi
17550
17551 done
17552
17553 fi
17554
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17556 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17557 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17558 $as_echo_n "(cached) " >&6
17559 else
17560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h. */
17562
17563 #include <stdbool.h>
17564 #ifndef bool
17565 "error: bool is not defined"
17566 #endif
17567 #ifndef false
17568 "error: false is not defined"
17569 #endif
17570 #if false
17571 "error: false is not 0"
17572 #endif
17573 #ifndef true
17574 "error: true is not defined"
17575 #endif
17576 #if true != 1
17577 "error: true is not 1"
17578 #endif
17579 #ifndef __bool_true_false_are_defined
17580 "error: __bool_true_false_are_defined is not defined"
17581 #endif
17582
17583 struct s { _Bool s: 1; _Bool t; } s;
17584
17585 char a[true == 1 ? 1 : -1];
17586 char b[false == 0 ? 1 : -1];
17587 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17588 char d[(bool) 0.5 == true ? 1 : -1];
17589 /* See body of main program for 'e'. */
17590 char f[(_Bool) 0.0 == false ? 1 : -1];
17591 char g[true];
17592 char h[sizeof (_Bool)];
17593 char i[sizeof s.t];
17594 enum { j = false, k = true, l = false * true, m = true * 256 };
17595 /* The following fails for
17596 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17597 _Bool n[m];
17598 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17599 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17600 /* Catch a bug in an HP-UX C compiler. See
17601 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17602 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17603 */
17604 _Bool q = true;
17605 _Bool *pq = &q;
17606
17607 int
17608 main ()
17609 {
17610
17611 bool e = &s;
17612 *pq |= q;
17613 *pq |= ! q;
17614 /* Refer to every declared value, to avoid compiler optimizations. */
17615 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17616 + !m + !n + !o + !p + !q + !pq);
17617
17618 ;
17619 return 0;
17620 }
17621 _ACEOF
17622 if ac_fn_c_try_compile "$LINENO"; then :
17623 ac_cv_header_stdbool_h=yes
17624 else
17625 ac_cv_header_stdbool_h=no
17626 fi
17627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 fi
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17630 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17631 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17632 if test "x$ac_cv_type__Bool" = x""yes; then :
17633
17634 cat >>confdefs.h <<_ACEOF
17635 #define HAVE__BOOL 1
17636 _ACEOF
17637
17638
17639 fi
17640
17641
17642
17643 REPLACE_NULL=0;
17644 HAVE_WCHAR_T=1;
17645
17646
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17648 $as_echo_n "checking for wchar_t... " >&6; }
17649 if test "${gt_cv_c_wchar_t+set}" = set; then :
17650 $as_echo_n "(cached) " >&6
17651 else
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654 #include <stddef.h>
17655 wchar_t foo = (wchar_t)'\0';
17656 int
17657 main ()
17658 {
17659
17660 ;
17661 return 0;
17662 }
17663 _ACEOF
17664 if ac_fn_c_try_compile "$LINENO"; then :
17665 gt_cv_c_wchar_t=yes
17666 else
17667 gt_cv_c_wchar_t=no
17668 fi
17669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17670 fi
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17672 $as_echo "$gt_cv_c_wchar_t" >&6; }
17673 if test $gt_cv_c_wchar_t = yes; then
17674
17675 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17676
17677 fi
17678
17679
17680 GNULIB_DPRINTF=0;
17681 GNULIB_FCLOSE=0;
17682 GNULIB_FDOPEN=0;
17683 GNULIB_FFLUSH=0;
17684 GNULIB_FGETC=0;
17685 GNULIB_FGETS=0;
17686 GNULIB_FOPEN=0;
17687 GNULIB_FPRINTF=0;
17688 GNULIB_FPRINTF_POSIX=0;
17689 GNULIB_FPURGE=0;
17690 GNULIB_FPUTC=0;
17691 GNULIB_FPUTS=0;
17692 GNULIB_FREAD=0;
17693 GNULIB_FREOPEN=0;
17694 GNULIB_FSCANF=0;
17695 GNULIB_FSEEK=0;
17696 GNULIB_FSEEKO=0;
17697 GNULIB_FTELL=0;
17698 GNULIB_FTELLO=0;
17699 GNULIB_FWRITE=0;
17700 GNULIB_GETC=0;
17701 GNULIB_GETCHAR=0;
17702 GNULIB_GETDELIM=0;
17703 GNULIB_GETLINE=0;
17704 GNULIB_OBSTACK_PRINTF=0;
17705 GNULIB_OBSTACK_PRINTF_POSIX=0;
17706 GNULIB_PCLOSE=0;
17707 GNULIB_PERROR=0;
17708 GNULIB_POPEN=0;
17709 GNULIB_PRINTF=0;
17710 GNULIB_PRINTF_POSIX=0;
17711 GNULIB_PUTC=0;
17712 GNULIB_PUTCHAR=0;
17713 GNULIB_PUTS=0;
17714 GNULIB_REMOVE=0;
17715 GNULIB_RENAME=0;
17716 GNULIB_RENAMEAT=0;
17717 GNULIB_SCANF=0;
17718 GNULIB_SNPRINTF=0;
17719 GNULIB_SPRINTF_POSIX=0;
17720 GNULIB_STDIO_H_NONBLOCKING=0;
17721 GNULIB_STDIO_H_SIGPIPE=0;
17722 GNULIB_TMPFILE=0;
17723 GNULIB_VASPRINTF=0;
17724 GNULIB_VFSCANF=0;
17725 GNULIB_VSCANF=0;
17726 GNULIB_VDPRINTF=0;
17727 GNULIB_VFPRINTF=0;
17728 GNULIB_VFPRINTF_POSIX=0;
17729 GNULIB_VPRINTF=0;
17730 GNULIB_VPRINTF_POSIX=0;
17731 GNULIB_VSNPRINTF=0;
17732 GNULIB_VSPRINTF_POSIX=0;
17733 HAVE_DECL_FPURGE=1;
17734 HAVE_DECL_FSEEKO=1;
17735 HAVE_DECL_FTELLO=1;
17736 HAVE_DECL_GETDELIM=1;
17737 HAVE_DECL_GETLINE=1;
17738 HAVE_DECL_OBSTACK_PRINTF=1;
17739 HAVE_DECL_SNPRINTF=1;
17740 HAVE_DECL_VSNPRINTF=1;
17741 HAVE_DPRINTF=1;
17742 HAVE_FSEEKO=1;
17743 HAVE_FTELLO=1;
17744 HAVE_PCLOSE=1;
17745 HAVE_POPEN=1;
17746 HAVE_RENAMEAT=1;
17747 HAVE_VASPRINTF=1;
17748 HAVE_VDPRINTF=1;
17749 REPLACE_DPRINTF=0;
17750 REPLACE_FCLOSE=0;
17751 REPLACE_FDOPEN=0;
17752 REPLACE_FFLUSH=0;
17753 REPLACE_FOPEN=0;
17754 REPLACE_FPRINTF=0;
17755 REPLACE_FPURGE=0;
17756 REPLACE_FREOPEN=0;
17757 REPLACE_FSEEK=0;
17758 REPLACE_FSEEKO=0;
17759 REPLACE_FTELL=0;
17760 REPLACE_FTELLO=0;
17761 REPLACE_GETDELIM=0;
17762 REPLACE_GETLINE=0;
17763 REPLACE_OBSTACK_PRINTF=0;
17764 REPLACE_PERROR=0;
17765 REPLACE_POPEN=0;
17766 REPLACE_PRINTF=0;
17767 REPLACE_REMOVE=0;
17768 REPLACE_RENAME=0;
17769 REPLACE_RENAMEAT=0;
17770 REPLACE_SNPRINTF=0;
17771 REPLACE_SPRINTF=0;
17772 REPLACE_STDIO_READ_FUNCS=0;
17773 REPLACE_STDIO_WRITE_FUNCS=0;
17774 REPLACE_TMPFILE=0;
17775 REPLACE_VASPRINTF=0;
17776 REPLACE_VDPRINTF=0;
17777 REPLACE_VFPRINTF=0;
17778 REPLACE_VPRINTF=0;
17779 REPLACE_VSNPRINTF=0;
17780 REPLACE_VSPRINTF=0;
17781
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17783 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17784 if test "${ac_cv_struct_tm+set}" = set; then :
17785 $as_echo_n "(cached) " >&6
17786 else
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 #include <sys/types.h>
17790 #include <time.h>
17791
17792 int
17793 main ()
17794 {
17795 struct tm tm;
17796 int *p = &tm.tm_sec;
17797 return !p;
17798 ;
17799 return 0;
17800 }
17801 _ACEOF
17802 if ac_fn_c_try_compile "$LINENO"; then :
17803 ac_cv_struct_tm=time.h
17804 else
17805 ac_cv_struct_tm=sys/time.h
17806 fi
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 fi
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17810 $as_echo "$ac_cv_struct_tm" >&6; }
17811 if test $ac_cv_struct_tm = sys/time.h; then
17812
17813 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17814
17815 fi
17816
17817 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17818 #include <$ac_cv_struct_tm>
17819
17820 "
17821 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17822
17823 cat >>confdefs.h <<_ACEOF
17824 #define HAVE_STRUCT_TM_TM_ZONE 1
17825 _ACEOF
17826
17827
17828 fi
17829
17830 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17831
17832 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17833
17834 else
17835 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17836 "
17837 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17838 ac_have_decl=1
17839 else
17840 ac_have_decl=0
17841 fi
17842
17843 cat >>confdefs.h <<_ACEOF
17844 #define HAVE_DECL_TZNAME $ac_have_decl
17845 _ACEOF
17846
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17848 $as_echo_n "checking for tzname... " >&6; }
17849 if test "${ac_cv_var_tzname+set}" = set; then :
17850 $as_echo_n "(cached) " >&6
17851 else
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17854 #include <time.h>
17855 #if !HAVE_DECL_TZNAME
17856 extern char *tzname[];
17857 #endif
17858
17859 int
17860 main ()
17861 {
17862 return tzname[0][0];
17863 ;
17864 return 0;
17865 }
17866 _ACEOF
17867 if ac_fn_c_try_link "$LINENO"; then :
17868 ac_cv_var_tzname=yes
17869 else
17870 ac_cv_var_tzname=no
17871 fi
17872 rm -f core conftest.err conftest.$ac_objext \
17873 conftest$ac_exeext conftest.$ac_ext
17874 fi
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17876 $as_echo "$ac_cv_var_tzname" >&6; }
17877 if test $ac_cv_var_tzname = yes; then
17878
17879 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17880
17881 fi
17882 fi
17883
17884
17885 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
17886 "
17887 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
17888
17889 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
17890
17891 fi
17892
17893
17894
17895
17896 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
17897 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
17898 ac_have_decl=1
17899 else
17900 ac_have_decl=0
17901 fi
17902
17903 cat >>confdefs.h <<_ACEOF
17904 #define HAVE_DECL_STRTOIMAX $ac_have_decl
17905 _ACEOF
17906
17907
17908
17909 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
17910 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
17911 ac_have_decl=1
17912 else
17913 ac_have_decl=0
17914 fi
17915
17916 cat >>confdefs.h <<_ACEOF
17917 #define HAVE_DECL_STRTOUMAX $ac_have_decl
17918 _ACEOF
17919
17920
17921
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
17923 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
17924 if test "${ac_cv_header_stat_broken+set}" = set; then :
17925 $as_echo_n "(cached) " >&6
17926 else
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929 #include <sys/types.h>
17930 #include <sys/stat.h>
17931
17932 #if defined S_ISBLK && defined S_IFDIR
17933 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
17934 #endif
17935
17936 #if defined S_ISBLK && defined S_IFCHR
17937 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
17938 #endif
17939
17940 #if defined S_ISLNK && defined S_IFREG
17941 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
17942 #endif
17943
17944 #if defined S_ISSOCK && defined S_IFREG
17945 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
17946 #endif
17947
17948 _ACEOF
17949 if ac_fn_c_try_compile "$LINENO"; then :
17950 ac_cv_header_stat_broken=no
17951 else
17952 ac_cv_header_stat_broken=yes
17953 fi
17954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17955 fi
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
17957 $as_echo "$ac_cv_header_stat_broken" >&6; }
17958 if test $ac_cv_header_stat_broken = yes; then
17959
17960 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
17961
17962 fi
17963
17964
17965
17966 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17967 if test "x$ac_cv_type_mode_t" = x""yes; then :
17968
17969 else
17970
17971 cat >>confdefs.h <<_ACEOF
17972 #define mode_t int
17973 _ACEOF
17974
17975 fi
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17986 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17987 if test "${ac_cv_c_restrict+set}" = set; then :
17988 $as_echo_n "(cached) " >&6
17989 else
17990 ac_cv_c_restrict=no
17991 # The order here caters to the fact that C++ does not require restrict.
17992 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17995 typedef int * int_ptr;
17996 int foo (int_ptr $ac_kw ip) {
17997 return ip[0];
17998 }
17999 int
18000 main ()
18001 {
18002 int s[1];
18003 int * $ac_kw t = s;
18004 t[0] = 0;
18005 return foo(t)
18006 ;
18007 return 0;
18008 }
18009 _ACEOF
18010 if ac_fn_c_try_compile "$LINENO"; then :
18011 ac_cv_c_restrict=$ac_kw
18012 fi
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014 test "$ac_cv_c_restrict" != no && break
18015 done
18016
18017 fi
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18019 $as_echo "$ac_cv_c_restrict" >&6; }
18020
18021 case $ac_cv_c_restrict in
18022 restrict) ;;
18023 no) $as_echo "#define restrict /**/" >>confdefs.h
18024 ;;
18025 *) cat >>confdefs.h <<_ACEOF
18026 #define restrict $ac_cv_c_restrict
18027 _ACEOF
18028 ;;
18029 esac
18030
18031
18032
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18034 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18035 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18036 $as_echo_n "(cached) " >&6
18037 else
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18040 #include <time.h>
18041
18042 int
18043 main ()
18044 {
18045 static struct timespec x; x.tv_sec = x.tv_nsec;
18046 ;
18047 return 0;
18048 }
18049 _ACEOF
18050 if ac_fn_c_try_compile "$LINENO"; then :
18051 gl_cv_sys_struct_timespec_in_time_h=yes
18052 else
18053 gl_cv_sys_struct_timespec_in_time_h=no
18054 fi
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056 fi
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18058 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18059
18060 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18061 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18062 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18063 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18064 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18065 else
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18067 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18068 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18069 $as_echo_n "(cached) " >&6
18070 else
18071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072 /* end confdefs.h. */
18073 #include <sys/time.h>
18074
18075 int
18076 main ()
18077 {
18078 static struct timespec x; x.tv_sec = x.tv_nsec;
18079 ;
18080 return 0;
18081 }
18082 _ACEOF
18083 if ac_fn_c_try_compile "$LINENO"; then :
18084 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18085 else
18086 gl_cv_sys_struct_timespec_in_sys_time_h=no
18087 fi
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 fi
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18091 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18092 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18093 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18094 else
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18096 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18097 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18098 $as_echo_n "(cached) " >&6
18099 else
18100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101 /* end confdefs.h. */
18102 #include <pthread.h>
18103
18104 int
18105 main ()
18106 {
18107 static struct timespec x; x.tv_sec = x.tv_nsec;
18108 ;
18109 return 0;
18110 }
18111 _ACEOF
18112 if ac_fn_c_try_compile "$LINENO"; then :
18113 gl_cv_sys_struct_timespec_in_pthread_h=yes
18114 else
18115 gl_cv_sys_struct_timespec_in_pthread_h=no
18116 fi
18117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118 fi
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18120 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18121 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18122 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18123 fi
18124 fi
18125 fi
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141 if test $gl_cv_have_include_next = yes; then
18142 gl_cv_next_time_h='<'time.h'>'
18143 else
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18145 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18146 if test "${gl_cv_next_time_h+set}" = set; then :
18147 $as_echo_n "(cached) " >&6
18148 else
18149
18150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151 /* end confdefs.h. */
18152 #include <time.h>
18153
18154 _ACEOF
18155 case "$host_os" in
18156 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18157 *) gl_absname_cpp="$ac_cpp" ;;
18158 esac
18159
18160 case "$host_os" in
18161 mingw*)
18162 gl_dirsep_regex='[/\\]'
18163 ;;
18164 *)
18165 gl_dirsep_regex='\/'
18166 ;;
18167 esac
18168 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18169
18170 gl_header_literal_regex=`echo 'time.h' \
18171 | sed -e "$gl_make_literal_regex_sed"`
18172 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18173 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18174 s|^/[^/]|//&|
18175 p
18176 q
18177 }'
18178 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18179 sed -n "$gl_absolute_header_sed"`'"'
18180
18181
18182 fi
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18184 $as_echo "$gl_cv_next_time_h" >&6; }
18185 fi
18186 NEXT_TIME_H=$gl_cv_next_time_h
18187
18188 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18190 gl_next_as_first_directive='<'time.h'>'
18191 else
18192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18193 gl_next_as_first_directive=$gl_cv_next_time_h
18194 fi
18195 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18196
18197
18198
18199
18200
18201
18202 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18203 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18204 ac_have_decl=1
18205 else
18206 ac_have_decl=0
18207 fi
18208
18209 cat >>confdefs.h <<_ACEOF
18210 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18211 _ACEOF
18212
18213
18214
18215
18216 if false; then
18217 GL_COND_LIBTOOL_TRUE=
18218 GL_COND_LIBTOOL_FALSE='#'
18219 else
18220 GL_COND_LIBTOOL_TRUE='#'
18221 GL_COND_LIBTOOL_FALSE=
18222 fi
18223
18224 gl_cond_libtool=false
18225 gl_libdeps=
18226 gl_ltlibdeps=
18227 gl_m4_base='m4'
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237 gl_source_base='lib'
18238
18239
18240 if test $ac_cv_func_alloca_works = no; then
18241 :
18242 fi
18243
18244 # Define an additional variable used in the Makefile substitution.
18245 if test $ac_cv_working_alloca_h = yes; then
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18247 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18248 if test "${gl_cv_rpl_alloca+set}" = set; then :
18249 $as_echo_n "(cached) " >&6
18250 else
18251
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254
18255 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18256 Need own alloca
18257 #endif
18258
18259 _ACEOF
18260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18261 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18262 gl_cv_rpl_alloca=yes
18263 else
18264 gl_cv_rpl_alloca=no
18265 fi
18266 rm -f conftest*
18267
18268
18269 fi
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18271 $as_echo "$gl_cv_rpl_alloca" >&6; }
18272 if test $gl_cv_rpl_alloca = yes; then
18273
18274 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18275
18276 ALLOCA_H=alloca.h
18277 else
18278 ALLOCA_H=
18279 fi
18280 else
18281 ALLOCA_H=alloca.h
18282 fi
18283
18284 if test -n "$ALLOCA_H"; then
18285 GL_GENERATE_ALLOCA_H_TRUE=
18286 GL_GENERATE_ALLOCA_H_FALSE='#'
18287 else
18288 GL_GENERATE_ALLOCA_H_TRUE='#'
18289 GL_GENERATE_ALLOCA_H_FALSE=
18290 fi
18291
18292
18293
18294
18295
18296
18297 :
18298
18299
18300
18301
18302 :
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18319
18320
18321 if test $HAVE_DUP2 = 1; then
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18323 $as_echo_n "checking whether dup2 works... " >&6; }
18324 if test "${gl_cv_func_dup2_works+set}" = set; then :
18325 $as_echo_n "(cached) " >&6
18326 else
18327 if test "$cross_compiling" = yes; then :
18328 case "$host_os" in
18329 mingw*) # on this platform, dup2 always returns 0 for success
18330 gl_cv_func_dup2_works="guessing no" ;;
18331 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18332 gl_cv_func_dup2_works="guessing no" ;;
18333 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18334 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18335 gl_cv_func_dup2_works="guessing no" ;;
18336 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18337 gl_cv_func_dup2_works="guessing no" ;;
18338 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18339 gl_cv_func_dup2_works="guessing no" ;;
18340 *) gl_cv_func_dup2_works="guessing yes" ;;
18341 esac
18342 else
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345
18346 #include <unistd.h>
18347 #include <fcntl.h>
18348 #include <errno.h>
18349 int
18350 main ()
18351 {
18352 int result = 0;
18353 #ifdef FD_CLOEXEC
18354 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18355 result |= 1;
18356 #endif
18357 if (dup2 (1, 1) == 0)
18358 result |= 2;
18359 #ifdef FD_CLOEXEC
18360 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18361 result |= 4;
18362 #endif
18363 close (0);
18364 if (dup2 (0, 0) != -1)
18365 result |= 8;
18366 /* Many gnulib modules require POSIX conformance of EBADF. */
18367 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18368 result |= 16;
18369 return result;
18370
18371 ;
18372 return 0;
18373 }
18374
18375 _ACEOF
18376 if ac_fn_c_try_run "$LINENO"; then :
18377 gl_cv_func_dup2_works=yes
18378 else
18379 gl_cv_func_dup2_works=no
18380 fi
18381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18382 conftest.$ac_objext conftest.beam conftest.$ac_ext
18383 fi
18384
18385
18386 fi
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18388 $as_echo "$gl_cv_func_dup2_works" >&6; }
18389 case "$gl_cv_func_dup2_works" in
18390 *yes) ;;
18391 *)
18392 REPLACE_DUP2=1
18393 ;;
18394 esac
18395 fi
18396
18397
18398 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
18399
18400
18401
18402
18403
18404
18405
18406
18407 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18408
18409
18410 fi
18411
18412
18413
18414
18415
18416 GNULIB_DUP2=1
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428 # Persuade glibc <stdlib.h> to declare getloadavg().
18429
18430
18431 gl_save_LIBS=$LIBS
18432
18433 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18434 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18435 HAVE_GETLOADAVG=1
18436 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18437 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18438
18439 else
18440 gl_func_getloadavg_done=no
18441
18442 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18443 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18444 # to get the right answer into the cache.
18445 # For kstat on solaris, we need to test for libelf and libkvm to force the
18446 # definition of SVR4 below.
18447 if test $gl_func_getloadavg_done = no; then
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18449 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18450 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18451 $as_echo_n "(cached) " >&6
18452 else
18453 ac_check_lib_save_LIBS=$LIBS
18454 LIBS="-lelf $LIBS"
18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18457
18458 /* Override any GCC internal prototype to avoid an error.
18459 Use char because int might match the return type of a GCC
18460 builtin and then its argument prototype would still apply. */
18461 #ifdef __cplusplus
18462 extern "C"
18463 #endif
18464 char elf_begin ();
18465 int
18466 main ()
18467 {
18468 return elf_begin ();
18469 ;
18470 return 0;
18471 }
18472 _ACEOF
18473 if ac_fn_c_try_link "$LINENO"; then :
18474 ac_cv_lib_elf_elf_begin=yes
18475 else
18476 ac_cv_lib_elf_elf_begin=no
18477 fi
18478 rm -f core conftest.err conftest.$ac_objext \
18479 conftest$ac_exeext conftest.$ac_ext
18480 LIBS=$ac_check_lib_save_LIBS
18481 fi
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18483 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18484 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18485 LIBS="-lelf $LIBS"
18486 fi
18487
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18489 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18490 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18493 ac_check_lib_save_LIBS=$LIBS
18494 LIBS="-lkvm $LIBS"
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18497
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 char kvm_open ();
18505 int
18506 main ()
18507 {
18508 return kvm_open ();
18509 ;
18510 return 0;
18511 }
18512 _ACEOF
18513 if ac_fn_c_try_link "$LINENO"; then :
18514 ac_cv_lib_kvm_kvm_open=yes
18515 else
18516 ac_cv_lib_kvm_kvm_open=no
18517 fi
18518 rm -f core conftest.err conftest.$ac_objext \
18519 conftest$ac_exeext conftest.$ac_ext
18520 LIBS=$ac_check_lib_save_LIBS
18521 fi
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18523 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18524 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18525 LIBS="-lkvm $LIBS"
18526 fi
18527
18528 # Check for the 4.4BSD definition of getloadavg.
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18530 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18531 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18532 $as_echo_n "(cached) " >&6
18533 else
18534 ac_check_lib_save_LIBS=$LIBS
18535 LIBS="-lutil $LIBS"
18536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h. */
18538
18539 /* Override any GCC internal prototype to avoid an error.
18540 Use char because int might match the return type of a GCC
18541 builtin and then its argument prototype would still apply. */
18542 #ifdef __cplusplus
18543 extern "C"
18544 #endif
18545 char getloadavg ();
18546 int
18547 main ()
18548 {
18549 return getloadavg ();
18550 ;
18551 return 0;
18552 }
18553 _ACEOF
18554 if ac_fn_c_try_link "$LINENO"; then :
18555 ac_cv_lib_util_getloadavg=yes
18556 else
18557 ac_cv_lib_util_getloadavg=no
18558 fi
18559 rm -f core conftest.err conftest.$ac_objext \
18560 conftest$ac_exeext conftest.$ac_ext
18561 LIBS=$ac_check_lib_save_LIBS
18562 fi
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18564 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18565 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18566 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18567 fi
18568
18569 fi
18570
18571 if test $gl_func_getloadavg_done = no; then
18572 # There is a commonly available library for RS/6000 AIX.
18573 # Since it is not a standard part of AIX, it might be installed locally.
18574 gl_getloadavg_LIBS=$LIBS
18575 LIBS="-L/usr/local/lib $LIBS"
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18577 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18578 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18579 $as_echo_n "(cached) " >&6
18580 else
18581 ac_check_lib_save_LIBS=$LIBS
18582 LIBS="-lgetloadavg $LIBS"
18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18584 /* end confdefs.h. */
18585
18586 /* Override any GCC internal prototype to avoid an error.
18587 Use char because int might match the return type of a GCC
18588 builtin and then its argument prototype would still apply. */
18589 #ifdef __cplusplus
18590 extern "C"
18591 #endif
18592 char getloadavg ();
18593 int
18594 main ()
18595 {
18596 return getloadavg ();
18597 ;
18598 return 0;
18599 }
18600 _ACEOF
18601 if ac_fn_c_try_link "$LINENO"; then :
18602 ac_cv_lib_getloadavg_getloadavg=yes
18603 else
18604 ac_cv_lib_getloadavg_getloadavg=no
18605 fi
18606 rm -f core conftest.err conftest.$ac_objext \
18607 conftest$ac_exeext conftest.$ac_ext
18608 LIBS=$ac_check_lib_save_LIBS
18609 fi
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18611 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18612 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18613 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18614 else
18615 LIBS=$gl_getloadavg_LIBS
18616 fi
18617
18618 fi
18619
18620 # Set up the replacement function if necessary.
18621 if test $gl_func_getloadavg_done = no; then
18622 HAVE_GETLOADAVG=0
18623
18624 # Solaris has libkstat which does not require root.
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18626 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18627 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18628 $as_echo_n "(cached) " >&6
18629 else
18630 ac_check_lib_save_LIBS=$LIBS
18631 LIBS="-lkstat $LIBS"
18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633 /* end confdefs.h. */
18634
18635 /* Override any GCC internal prototype to avoid an error.
18636 Use char because int might match the return type of a GCC
18637 builtin and then its argument prototype would still apply. */
18638 #ifdef __cplusplus
18639 extern "C"
18640 #endif
18641 char kstat_open ();
18642 int
18643 main ()
18644 {
18645 return kstat_open ();
18646 ;
18647 return 0;
18648 }
18649 _ACEOF
18650 if ac_fn_c_try_link "$LINENO"; then :
18651 ac_cv_lib_kstat_kstat_open=yes
18652 else
18653 ac_cv_lib_kstat_kstat_open=no
18654 fi
18655 rm -f core conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657 LIBS=$ac_check_lib_save_LIBS
18658 fi
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18660 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18661 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18662 cat >>confdefs.h <<_ACEOF
18663 #define HAVE_LIBKSTAT 1
18664 _ACEOF
18665
18666 LIBS="-lkstat $LIBS"
18667
18668 fi
18669
18670 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
18671
18672 # AIX has libperfstat which does not require root
18673 if test $gl_func_getloadavg_done = no; then
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18675 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18676 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18677 $as_echo_n "(cached) " >&6
18678 else
18679 ac_check_lib_save_LIBS=$LIBS
18680 LIBS="-lperfstat $LIBS"
18681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h. */
18683
18684 /* Override any GCC internal prototype to avoid an error.
18685 Use char because int might match the return type of a GCC
18686 builtin and then its argument prototype would still apply. */
18687 #ifdef __cplusplus
18688 extern "C"
18689 #endif
18690 char perfstat_cpu_total ();
18691 int
18692 main ()
18693 {
18694 return perfstat_cpu_total ();
18695 ;
18696 return 0;
18697 }
18698 _ACEOF
18699 if ac_fn_c_try_link "$LINENO"; then :
18700 ac_cv_lib_perfstat_perfstat_cpu_total=yes
18701 else
18702 ac_cv_lib_perfstat_perfstat_cpu_total=no
18703 fi
18704 rm -f core conftest.err conftest.$ac_objext \
18705 conftest$ac_exeext conftest.$ac_ext
18706 LIBS=$ac_check_lib_save_LIBS
18707 fi
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18709 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18710 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
18711 cat >>confdefs.h <<_ACEOF
18712 #define HAVE_LIBPERFSTAT 1
18713 _ACEOF
18714
18715 LIBS="-lperfstat $LIBS"
18716
18717 fi
18718
18719 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
18720 fi
18721
18722 if test $gl_func_getloadavg_done = no; then
18723 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18724 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18725 gl_func_getloadavg_done=yes
18726
18727 $as_echo "#define DGUX 1" >>confdefs.h
18728
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18730 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18731 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18732 $as_echo_n "(cached) " >&6
18733 else
18734 ac_check_lib_save_LIBS=$LIBS
18735 LIBS="-ldgc $LIBS"
18736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18737 /* end confdefs.h. */
18738
18739 /* Override any GCC internal prototype to avoid an error.
18740 Use char because int might match the return type of a GCC
18741 builtin and then its argument prototype would still apply. */
18742 #ifdef __cplusplus
18743 extern "C"
18744 #endif
18745 char dg_sys_info ();
18746 int
18747 main ()
18748 {
18749 return dg_sys_info ();
18750 ;
18751 return 0;
18752 }
18753 _ACEOF
18754 if ac_fn_c_try_link "$LINENO"; then :
18755 ac_cv_lib_dgc_dg_sys_info=yes
18756 else
18757 ac_cv_lib_dgc_dg_sys_info=no
18758 fi
18759 rm -f core conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18762 fi
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18764 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18765 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
18766 cat >>confdefs.h <<_ACEOF
18767 #define HAVE_LIBDGC 1
18768 _ACEOF
18769
18770 LIBS="-ldgc $LIBS"
18771
18772 fi
18773
18774 fi
18775
18776
18777 fi
18778 fi
18779 fi
18780
18781
18782 if test "x$gl_save_LIBS" = x; then
18783 GETLOADAVG_LIBS=$LIBS
18784 else
18785 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
18786 fi
18787 LIBS=$gl_save_LIBS
18788
18789
18790 # Test whether the system declares getloadavg. Solaris has the function
18791 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
18792 for ac_header in sys/loadavg.h
18793 do :
18794 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
18795 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
18796 cat >>confdefs.h <<_ACEOF
18797 #define HAVE_SYS_LOADAVG_H 1
18798 _ACEOF
18799
18800 fi
18801
18802 done
18803
18804 if test $ac_cv_header_sys_loadavg_h = yes; then
18805 HAVE_SYS_LOADAVG_H=1
18806 else
18807 HAVE_SYS_LOADAVG_H=0
18808 fi
18809 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
18810 # include <sys/loadavg.h>
18811 #endif
18812 #include <stdlib.h>
18813 "
18814 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
18815
18816 else
18817 HAVE_DECL_GETLOADAVG=0
18818 fi
18819
18820
18821 if test $HAVE_GETLOADAVG = 0; then
18822
18823
18824
18825
18826
18827
18828
18829
18830 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
18831
18832
18833 # Figure out what our getloadavg.c needs.
18834
18835 # On HPUX9, an unprivileged user can get load averages this way.
18836 if test $gl_func_getloadavg_done = no; then
18837 for ac_func in pstat_getdynamic
18838 do :
18839 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18840 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
18841 cat >>confdefs.h <<_ACEOF
18842 #define HAVE_PSTAT_GETDYNAMIC 1
18843 _ACEOF
18844 gl_func_getloadavg_done=yes
18845 fi
18846 done
18847
18848 fi
18849
18850 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18851 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18852 # Irix 4.0.5F has the header but not the library.
18853 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
18854 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
18855 gl_func_getloadavg_done=yes
18856
18857 $as_echo "#define SVR4 1" >>confdefs.h
18858
18859 fi
18860
18861 if test $gl_func_getloadavg_done = no; then
18862 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
18863 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
18864 gl_func_getloadavg_done=yes
18865
18866 $as_echo "#define UMAX 1" >>confdefs.h
18867
18868
18869 $as_echo "#define UMAX4_3 1" >>confdefs.h
18870
18871 fi
18872
18873
18874 fi
18875
18876 if test $gl_func_getloadavg_done = no; then
18877 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
18878 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
18879 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
18880
18881 fi
18882
18883
18884 fi
18885
18886 if test $gl_func_getloadavg_done = no; then
18887 for ac_header in mach/mach.h
18888 do :
18889 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18890 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18891 cat >>confdefs.h <<_ACEOF
18892 #define HAVE_MACH_MACH_H 1
18893 _ACEOF
18894
18895 fi
18896
18897 done
18898
18899 fi
18900
18901 for ac_header in nlist.h
18902 do :
18903 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
18904 if test "x$ac_cv_header_nlist_h" = x""yes; then :
18905 cat >>confdefs.h <<_ACEOF
18906 #define HAVE_NLIST_H 1
18907 _ACEOF
18908 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
18909 "
18910 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
18911
18912 cat >>confdefs.h <<_ACEOF
18913 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18914 _ACEOF
18915
18916
18917 fi
18918
18919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h. */
18921 #include <nlist.h>
18922 int
18923 main ()
18924 {
18925 struct nlist x;
18926 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
18927 x.n_un.n_name = "";
18928 #else
18929 x.n_name = "";
18930 #endif
18931 ;
18932 return 0;
18933 }
18934 _ACEOF
18935 if ac_fn_c_try_link "$LINENO"; then :
18936
18937 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
18938
18939 fi
18940 rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
18942
18943 fi
18944
18945 done
18946
18947 fi
18948
18949
18950
18951
18952
18953 GNULIB_GETLOADAVG=1
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964 if test $REPLACE_GETOPT = 1; then
18965
18966
18967
18968
18969
18970
18971
18972
18973 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18984
18985
18986
18987
18988 GNULIB_GL_UNISTD_H_GETOPT=1
18989 fi
18990
18991
18992
18993
18994
18995
18996 REPLACE_GETOPT=0
18997
18998
18999 if test -n "$gl_replace_getopt"; then :
19000
19001 REPLACE_GETOPT=1
19002
19003 fi
19004
19005
19006 if test $REPLACE_GETOPT = 1; then
19007
19008 GETOPT_H=getopt.h
19009
19010 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19011
19012
19013
19014 fi
19015
19016 if test $REPLACE_GETOPT = 1; then
19017
19018
19019
19020
19021
19022
19023
19024
19025 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19036
19037
19038
19039
19040 GNULIB_GL_UNISTD_H_GETOPT=1
19041 fi
19042
19043
19044
19045
19046
19047
19048
19049 if test $ac_cv_func_lstat = yes; then
19050
19051 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19052 *no)
19053 REPLACE_LSTAT=1
19054 ;;
19055 esac
19056 else
19057 HAVE_LSTAT=0
19058 fi
19059
19060 if test $REPLACE_LSTAT = 1; then
19061
19062
19063
19064
19065
19066
19067
19068
19069 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19070
19071
19072
19073 :
19074
19075 fi
19076
19077
19078
19079
19080
19081 GNULIB_LSTAT=1
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093 if test $APPLE_UNIVERSAL_BUILD = 1; then
19094 # A universal build on Apple MacOS X platforms.
19095 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19096 # But we need a configuration result that is valid in both modes.
19097 gl_cv_func_working_mktime=no
19098 fi
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19100 $as_echo_n "checking for working mktime... " >&6; }
19101 if test "${gl_cv_func_working_mktime+set}" = set; then :
19102 $as_echo_n "(cached) " >&6
19103 else
19104 if test "$cross_compiling" = yes; then :
19105 gl_cv_func_working_mktime=no
19106 else
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19109 /* Test program from Paul Eggert and Tony Leneis. */
19110 #include <limits.h>
19111 #include <stdlib.h>
19112 #include <time.h>
19113
19114 #ifdef HAVE_UNISTD_H
19115 # include <unistd.h>
19116 #endif
19117
19118 #ifndef HAVE_ALARM
19119 # define alarm(X) /* empty */
19120 #endif
19121
19122 /* Work around redefinition to rpl_putenv by other config tests. */
19123 #undef putenv
19124
19125 static time_t time_t_max;
19126 static time_t time_t_min;
19127
19128 /* Values we'll use to set the TZ environment variable. */
19129 static char *tz_strings[] = {
19130 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19131 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19132 };
19133 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19134
19135 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19136 Based on a problem report from Andreas Jaeger. */
19137 static int
19138 spring_forward_gap ()
19139 {
19140 /* glibc (up to about 1998-10-07) failed this test. */
19141 struct tm tm;
19142
19143 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19144 instead of "TZ=America/Vancouver" in order to detect the bug even
19145 on systems that don't support the Olson extension, or don't have the
19146 full zoneinfo tables installed. */
19147 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19148
19149 tm.tm_year = 98;
19150 tm.tm_mon = 3;
19151 tm.tm_mday = 5;
19152 tm.tm_hour = 2;
19153 tm.tm_min = 0;
19154 tm.tm_sec = 0;
19155 tm.tm_isdst = -1;
19156 return mktime (&tm) != (time_t) -1;
19157 }
19158
19159 static int
19160 mktime_test1 (time_t now)
19161 {
19162 struct tm *lt;
19163 return ! (lt = localtime (&now)) || mktime (lt) == now;
19164 }
19165
19166 static int
19167 mktime_test (time_t now)
19168 {
19169 return (mktime_test1 (now)
19170 && mktime_test1 ((time_t) (time_t_max - now))
19171 && mktime_test1 ((time_t) (time_t_min + now)));
19172 }
19173
19174 static int
19175 irix_6_4_bug ()
19176 {
19177 /* Based on code from Ariel Faigon. */
19178 struct tm tm;
19179 tm.tm_year = 96;
19180 tm.tm_mon = 3;
19181 tm.tm_mday = 0;
19182 tm.tm_hour = 0;
19183 tm.tm_min = 0;
19184 tm.tm_sec = 0;
19185 tm.tm_isdst = -1;
19186 mktime (&tm);
19187 return tm.tm_mon == 2 && tm.tm_mday == 31;
19188 }
19189
19190 static int
19191 bigtime_test (int j)
19192 {
19193 struct tm tm;
19194 time_t now;
19195 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19196 now = mktime (&tm);
19197 if (now != (time_t) -1)
19198 {
19199 struct tm *lt = localtime (&now);
19200 if (! (lt
19201 && lt->tm_year == tm.tm_year
19202 && lt->tm_mon == tm.tm_mon
19203 && lt->tm_mday == tm.tm_mday
19204 && lt->tm_hour == tm.tm_hour
19205 && lt->tm_min == tm.tm_min
19206 && lt->tm_sec == tm.tm_sec
19207 && lt->tm_yday == tm.tm_yday
19208 && lt->tm_wday == tm.tm_wday
19209 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19210 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19211 return 0;
19212 }
19213 return 1;
19214 }
19215
19216 static int
19217 year_2050_test ()
19218 {
19219 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19220 ignoring leap seconds. */
19221 unsigned long int answer = 2527315200UL;
19222
19223 struct tm tm;
19224 time_t t;
19225 tm.tm_year = 2050 - 1900;
19226 tm.tm_mon = 2 - 1;
19227 tm.tm_mday = 1;
19228 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19229 tm.tm_isdst = -1;
19230
19231 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19232 instead of "TZ=America/Vancouver" in order to detect the bug even
19233 on systems that don't support the Olson extension, or don't have the
19234 full zoneinfo tables installed. */
19235 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19236
19237 t = mktime (&tm);
19238
19239 /* Check that the result is either a failure, or close enough
19240 to the correct answer that we can assume the discrepancy is
19241 due to leap seconds. */
19242 return (t == (time_t) -1
19243 || (0 < t && answer - 120 <= t && t <= answer + 120));
19244 }
19245
19246 int
19247 main ()
19248 {
19249 int result = 0;
19250 time_t t, delta;
19251 int i, j;
19252 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19253 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19254
19255 /* This test makes some buggy mktime implementations loop.
19256 Give up after 60 seconds; a mktime slower than that
19257 isn't worth using anyway. */
19258 alarm (60);
19259
19260 time_t_max = (! time_t_signed
19261 ? (time_t) -1
19262 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19263 * 2 + 1));
19264 time_t_min = (! time_t_signed
19265 ? (time_t) 0
19266 : time_t_signed_magnitude
19267 ? ~ (time_t) 0
19268 : ~ time_t_max);
19269
19270 delta = time_t_max / 997; /* a suitable prime number */
19271 for (i = 0; i < N_STRINGS; i++)
19272 {
19273 if (tz_strings[i])
19274 putenv (tz_strings[i]);
19275
19276 for (t = 0; t <= time_t_max - delta; t += delta)
19277 if (! mktime_test (t))
19278 result |= 1;
19279 if (! (mktime_test ((time_t) 1)
19280 && mktime_test ((time_t) (60 * 60))
19281 && mktime_test ((time_t) (60 * 60 * 24))))
19282 result |= 2;
19283
19284 for (j = 1; ; j <<= 1)
19285 if (! bigtime_test (j))
19286 result |= 4;
19287 else if (INT_MAX / 2 < j)
19288 break;
19289 if (! bigtime_test (INT_MAX))
19290 result |= 8;
19291 }
19292 if (! irix_6_4_bug ())
19293 result |= 16;
19294 if (! spring_forward_gap ())
19295 result |= 32;
19296 if (! year_2050_test ())
19297 result |= 64;
19298 return result;
19299 }
19300 _ACEOF
19301 if ac_fn_c_try_run "$LINENO"; then :
19302 gl_cv_func_working_mktime=yes
19303 else
19304 gl_cv_func_working_mktime=no
19305 fi
19306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19307 conftest.$ac_objext conftest.beam conftest.$ac_ext
19308 fi
19309
19310
19311 fi
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19313 $as_echo "$gl_cv_func_working_mktime" >&6; }
19314
19315 if test $gl_cv_func_working_mktime = no; then
19316 REPLACE_MKTIME=1
19317 else
19318 REPLACE_MKTIME=0
19319 fi
19320
19321 if test $REPLACE_MKTIME = 1; then
19322
19323
19324
19325
19326
19327
19328
19329
19330 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19331
19332
19333
19334
19335 fi
19336
19337
19338
19339
19340
19341 GNULIB_MKTIME=1
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352 LIB_PTHREAD_SIGMASK=
19353
19354
19355 if test $ac_cv_func_pthread_sigmask = yes; then
19356 :
19357 else
19358 HAVE_PTHREAD_SIGMASK=0
19359 REPLACE_PTHREAD_SIGMASK=1
19360 fi
19361
19362
19363
19364
19365 if test $HAVE_PTHREAD_SIGMASK = 1; then
19366
19367
19368 if test -z "$LIB_PTHREAD_SIGMASK"; then
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
19370 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
19371 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
19372 $as_echo_n "(cached) " >&6
19373 else
19374
19375 if test "$cross_compiling" = yes; then :
19376
19377 case "$host_os" in
19378 freebsd* | hpux* | solaris | solaris2.[2-9]*)
19379 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
19380 *)
19381 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
19382 esac
19383
19384 else
19385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19386 /* end confdefs.h. */
19387
19388 #include <pthread.h>
19389 #include <signal.h>
19390 #include <stddef.h>
19391 int main ()
19392 {
19393 sigset_t set;
19394 sigemptyset (&set);
19395 return pthread_sigmask (1729, &set, NULL) != 0;
19396 }
19397 _ACEOF
19398 if ac_fn_c_try_run "$LINENO"; then :
19399 gl_cv_func_pthread_sigmask_in_libc_works=no
19400 else
19401 gl_cv_func_pthread_sigmask_in_libc_works=yes
19402 fi
19403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19404 conftest.$ac_objext conftest.beam conftest.$ac_ext
19405 fi
19406
19407
19408 fi
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
19410 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
19411 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
19412 *no)
19413 REPLACE_PTHREAD_SIGMASK=1
19414
19415 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
19416
19417 ;;
19418 esac
19419 fi
19420
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
19422 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
19423 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
19424 $as_echo_n "(cached) " >&6
19425 else
19426
19427 gl_save_LIBS="$LIBS"
19428 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
19429 if test "$cross_compiling" = yes; then :
19430 case "$host_os" in
19431 cygwin*)
19432 gl_cv_func_pthread_sigmask_return_works="guessing no";;
19433 *)
19434 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
19435 esac
19436
19437 else
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19440
19441 #include <pthread.h>
19442 #include <signal.h>
19443 #include <stddef.h>
19444 int main ()
19445 {
19446 sigset_t set;
19447 sigemptyset (&set);
19448 if (pthread_sigmask (1729, &set, NULL) == -1)
19449 return 1;
19450 return 0;
19451 }
19452 _ACEOF
19453 if ac_fn_c_try_run "$LINENO"; then :
19454 gl_cv_func_pthread_sigmask_return_works=yes
19455 else
19456 gl_cv_func_pthread_sigmask_return_works=no
19457 fi
19458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19459 conftest.$ac_objext conftest.beam conftest.$ac_ext
19460 fi
19461
19462 LIBS="$gl_save_LIBS"
19463
19464 fi
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
19466 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
19467 case "$gl_cv_func_pthread_sigmask_return_works" in
19468 *no)
19469 REPLACE_PTHREAD_SIGMASK=1
19470
19471 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
19472
19473 ;;
19474 esac
19475
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
19477 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
19478 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
19479 $as_echo_n "(cached) " >&6
19480 else
19481
19482 case "$host_os" in
19483 irix*)
19484 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
19485 *)
19486 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
19487 esac
19488 gl_save_LIBS="$LIBS"
19489 LIBS="$LIBS $LIBMULTITHREAD"
19490 if test "$cross_compiling" = yes; then :
19491 :
19492 else
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h. */
19495
19496 #include <pthread.h>
19497 #include <signal.h>
19498 #include <stdio.h>
19499 #include <stdlib.h>
19500 #include <unistd.h>
19501 static volatile int sigint_occurred;
19502 static void
19503 sigint_handler (int sig)
19504 {
19505 sigint_occurred++;
19506 }
19507 int main ()
19508 {
19509 sigset_t set;
19510 int pid = getpid ();
19511 char command[80];
19512 signal (SIGINT, sigint_handler);
19513 sigemptyset (&set);
19514 sigaddset (&set, SIGINT);
19515 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
19516 return 1;
19517 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
19518 if (!(system (command) == 0))
19519 return 2;
19520 sleep (2);
19521 if (!(sigint_occurred == 0))
19522 return 3;
19523 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
19524 return 4;
19525 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
19526 return 5;
19527 return 0;
19528 }
19529 _ACEOF
19530 if ac_fn_c_try_run "$LINENO"; then :
19531 :
19532 else
19533 gl_cv_func_pthread_sigmask_unblock_works=no
19534 fi
19535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19536 conftest.$ac_objext conftest.beam conftest.$ac_ext
19537 fi
19538
19539 LIBS="$gl_save_LIBS"
19540
19541 fi
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
19543 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
19544 case "$gl_cv_func_pthread_sigmask_unblock_works" in
19545 *no)
19546 REPLACE_PTHREAD_SIGMASK=1
19547
19548 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
19549
19550 ;;
19551 esac
19552 fi
19553
19554 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
19555
19556
19557
19558
19559
19560
19561
19562
19563 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19564
19565
19566 if test $HAVE_PTHREAD_SIGMASK = 1; then
19567
19568 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19569
19570 fi
19571
19572 fi
19573
19574
19575
19576
19577
19578 GNULIB_PTHREAD_SIGMASK=1
19579
19580
19581
19582
19583
19584
19585
19586
19587 if test $ac_cv_func_readlink = no; then
19588 HAVE_READLINK=0
19589 else
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19591 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19592 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19593 $as_echo_n "(cached) " >&6
19594 else
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19597 #include <unistd.h>
19598 /* Cause compilation failure if original declaration has wrong type. */
19599 ssize_t readlink (const char *, char *, size_t);
19600 int
19601 main ()
19602 {
19603
19604 ;
19605 return 0;
19606 }
19607 _ACEOF
19608 if ac_fn_c_try_compile "$LINENO"; then :
19609 gl_cv_decl_readlink_works=yes
19610 else
19611 gl_cv_decl_readlink_works=no
19612 fi
19613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 fi
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19616 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19618 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19619 if test "${gl_cv_func_readlink_works+set}" = set; then :
19620 $as_echo_n "(cached) " >&6
19621 else
19622 # We have readlink, so assume ln -s works.
19623 ln -s conftest.no-such conftest.link
19624 ln -s conftest.link conftest.lnk2
19625 if test "$cross_compiling" = yes; then :
19626 case "$host_os" in
19627 # Guess yes on glibc systems.
19628 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
19629 # If we don't know, assume the worst.
19630 *) gl_cv_func_readlink_works="guessing no" ;;
19631 esac
19632
19633 else
19634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19635 /* end confdefs.h. */
19636 #include <unistd.h>
19637
19638 int
19639 main ()
19640 {
19641 char buf[20];
19642 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19643 ;
19644 return 0;
19645 }
19646 _ACEOF
19647 if ac_fn_c_try_run "$LINENO"; then :
19648 gl_cv_func_readlink_works=yes
19649 else
19650 gl_cv_func_readlink_works=no
19651 fi
19652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19653 conftest.$ac_objext conftest.beam conftest.$ac_ext
19654 fi
19655
19656 rm -f conftest.link conftest.lnk2
19657 fi
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19659 $as_echo "$gl_cv_func_readlink_works" >&6; }
19660 case "$gl_cv_func_readlink_works" in
19661 *yes)
19662 if test "$gl_cv_decl_readlink_works" != yes; then
19663 REPLACE_READLINK=1
19664 fi
19665 ;;
19666 *)
19667
19668 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19669
19670 REPLACE_READLINK=1
19671 ;;
19672 esac
19673 fi
19674
19675 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19676
19677
19678
19679
19680
19681
19682
19683
19684 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19685
19686
19687 :
19688
19689 fi
19690
19691
19692
19693
19694
19695 GNULIB_READLINK=1
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712 if test $gl_cv_have_include_next = yes; then
19713 gl_cv_next_signal_h='<'signal.h'>'
19714 else
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19716 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19717 if test "${gl_cv_next_signal_h+set}" = set; then :
19718 $as_echo_n "(cached) " >&6
19719 else
19720
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19723 #include <signal.h>
19724
19725 _ACEOF
19726 case "$host_os" in
19727 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19728 *) gl_absname_cpp="$ac_cpp" ;;
19729 esac
19730
19731 case "$host_os" in
19732 mingw*)
19733 gl_dirsep_regex='[/\\]'
19734 ;;
19735 *)
19736 gl_dirsep_regex='\/'
19737 ;;
19738 esac
19739 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19740
19741 gl_header_literal_regex=`echo 'signal.h' \
19742 | sed -e "$gl_make_literal_regex_sed"`
19743 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19744 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19745 s|^/[^/]|//&|
19746 p
19747 q
19748 }'
19749 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19750 sed -n "$gl_absolute_header_sed"`'"'
19751
19752
19753 fi
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19755 $as_echo "$gl_cv_next_signal_h" >&6; }
19756 fi
19757 NEXT_SIGNAL_H=$gl_cv_next_signal_h
19758
19759 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19761 gl_next_as_first_directive='<'signal.h'>'
19762 else
19763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19764 gl_next_as_first_directive=$gl_cv_next_signal_h
19765 fi
19766 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
19767
19768
19769
19770
19771
19772 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
19773 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
19774 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
19775 #include <signal.h>
19776
19777 "
19778 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
19779
19780 else
19781 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
19782 fi
19783
19784
19785
19786
19787
19788
19789
19790 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
19791 #include <signal.h>
19792
19793 "
19794 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
19795
19796 else
19797 HAVE_SIGHANDLER_T=0
19798 fi
19799
19800
19801
19802
19803 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19804 /* <sys/types.h> is not needed according to POSIX, but the
19805 <sys/socket.h> in i386-unknown-freebsd4.10 and
19806 powerpc-apple-darwin5.5 required it. */
19807 #include <sys/types.h>
19808 #if HAVE_SYS_SOCKET_H
19809 # include <sys/socket.h>
19810 #elif HAVE_WS2TCPIP_H
19811 # include <ws2tcpip.h>
19812 #endif
19813
19814 "
19815 if test "x$ac_cv_type_socklen_t" = x""yes; then :
19816
19817 else
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19819 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19820 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19821 $as_echo_n "(cached) " >&6
19822 else
19823 # Systems have either "struct sockaddr *" or
19824 # "void *" as the second argument to getpeername
19825 gl_cv_socklen_t_equiv=
19826 for arg2 in "struct sockaddr" void; do
19827 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 #include <sys/types.h>
19831 #include <sys/socket.h>
19832
19833 int getpeername (int, $arg2 *, $t *);
19834 int
19835 main ()
19836 {
19837 $t len;
19838 getpeername (0, 0, &len);
19839 ;
19840 return 0;
19841 }
19842 _ACEOF
19843 if ac_fn_c_try_compile "$LINENO"; then :
19844 gl_cv_socklen_t_equiv="$t"
19845 fi
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 test "$gl_cv_socklen_t_equiv" != "" && break
19848 done
19849 test "$gl_cv_socklen_t_equiv" != "" && break
19850 done
19851
19852 fi
19853
19854 if test "$gl_cv_socklen_t_equiv" = ""; then
19855 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
19856 fi
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
19858 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
19859
19860 cat >>confdefs.h <<_ACEOF
19861 #define socklen_t $gl_cv_socklen_t_equiv
19862 _ACEOF
19863
19864 fi
19865
19866
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19868 $as_echo_n "checking for ssize_t... " >&6; }
19869 if test "${gt_cv_ssize_t+set}" = set; then :
19870 $as_echo_n "(cached) " >&6
19871 else
19872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h. */
19874 #include <sys/types.h>
19875 int
19876 main ()
19877 {
19878 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19879 return !x;
19880 ;
19881 return 0;
19882 }
19883 _ACEOF
19884 if ac_fn_c_try_compile "$LINENO"; then :
19885 gt_cv_ssize_t=yes
19886 else
19887 gt_cv_ssize_t=no
19888 fi
19889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19890 fi
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19892 $as_echo "$gt_cv_ssize_t" >&6; }
19893 if test $gt_cv_ssize_t = no; then
19894
19895 $as_echo "#define ssize_t int" >>confdefs.h
19896
19897 fi
19898
19899
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
19901 $as_echo_n "checking for working stdalign.h... " >&6; }
19902 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
19903 $as_echo_n "(cached) " >&6
19904 else
19905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19906 /* end confdefs.h. */
19907 #include <stdalign.h>
19908 #include <stddef.h>
19909
19910 /* Test that alignof yields a result consistent with offsetof.
19911 This catches GCC bug 52023
19912 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
19913 #ifdef __cplusplus
19914 template <class t> struct alignof_helper { char a; t b; };
19915 # define ao(type) offsetof (alignof_helper<type>, b)
19916 #else
19917 # define ao(type) offsetof (struct { char a; type b; }, b)
19918 #endif
19919 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
19920 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
19921 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
19922
19923 /* Test _Alignas only on platforms where gnulib can help. */
19924 #if \
19925 (__GNUC__ || __IBMC__ || __IBMCPP__ \
19926 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
19927 int alignas (8) alignas_int = 1;
19928 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
19929 #endif
19930
19931 int
19932 main ()
19933 {
19934
19935 ;
19936 return 0;
19937 }
19938 _ACEOF
19939 if ac_fn_c_try_compile "$LINENO"; then :
19940 gl_cv_header_working_stdalign_h=yes
19941 else
19942 gl_cv_header_working_stdalign_h=no
19943 fi
19944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19945 fi
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
19947 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
19948
19949 if test $gl_cv_header_working_stdalign_h = yes; then
19950 STDALIGN_H=''
19951 else
19952 STDALIGN_H='stdalign.h'
19953 fi
19954
19955
19956 if test -n "$STDALIGN_H"; then
19957 GL_GENERATE_STDALIGN_H_TRUE=
19958 GL_GENERATE_STDALIGN_H_FALSE='#'
19959 else
19960 GL_GENERATE_STDALIGN_H_TRUE='#'
19961 GL_GENERATE_STDALIGN_H_FALSE=
19962 fi
19963
19964
19965
19966 STDARG_H=''
19967 NEXT_STDARG_H='<stdarg.h>'
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
19969 $as_echo_n "checking for va_copy... " >&6; }
19970 if test "${gl_cv_func_va_copy+set}" = set; then :
19971 $as_echo_n "(cached) " >&6
19972 else
19973
19974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975 /* end confdefs.h. */
19976 #include <stdarg.h>
19977 int
19978 main ()
19979 {
19980
19981 #ifndef va_copy
19982 void (*func) (va_list, va_list) = va_copy;
19983 #endif
19984
19985 ;
19986 return 0;
19987 }
19988 _ACEOF
19989 if ac_fn_c_try_compile "$LINENO"; then :
19990 gl_cv_func_va_copy=yes
19991 else
19992 gl_cv_func_va_copy=no
19993 fi
19994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19995 fi
19996
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
19998 $as_echo "$gl_cv_func_va_copy" >&6; }
19999 if test $gl_cv_func_va_copy = no; then
20000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20001 /* end confdefs.h. */
20002 #if defined _AIX && !defined __GNUC__
20003 AIX vaccine
20004 #endif
20005
20006 _ACEOF
20007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20008 $EGREP "vaccine" >/dev/null 2>&1; then :
20009 gl_aixcc=yes
20010 else
20011 gl_aixcc=no
20012 fi
20013 rm -f conftest*
20014
20015 if test $gl_aixcc = yes; then
20016 STDARG_H=stdarg.h
20017
20018
20019
20020
20021
20022
20023
20024
20025 if test $gl_cv_have_include_next = yes; then
20026 gl_cv_next_stdarg_h='<'stdarg.h'>'
20027 else
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20029 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20030 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20031 $as_echo_n "(cached) " >&6
20032 else
20033
20034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035 /* end confdefs.h. */
20036 #include <stdarg.h>
20037
20038 _ACEOF
20039 case "$host_os" in
20040 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20041 *) gl_absname_cpp="$ac_cpp" ;;
20042 esac
20043
20044 case "$host_os" in
20045 mingw*)
20046 gl_dirsep_regex='[/\\]'
20047 ;;
20048 *)
20049 gl_dirsep_regex='\/'
20050 ;;
20051 esac
20052 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20053
20054 gl_header_literal_regex=`echo 'stdarg.h' \
20055 | sed -e "$gl_make_literal_regex_sed"`
20056 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20057 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20058 s|^/[^/]|//&|
20059 p
20060 q
20061 }'
20062 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20063 sed -n "$gl_absolute_header_sed"`'"'
20064
20065
20066 fi
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20068 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20069 fi
20070 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20071
20072 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20074 gl_next_as_first_directive='<'stdarg.h'>'
20075 else
20076 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20077 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20078 fi
20079 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20080
20081
20082
20083
20084 if test "$gl_cv_next_stdarg_h" = '""'; then
20085 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20086 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20087 fi
20088 else
20089
20090 saved_as_echo_n="$as_echo_n"
20091 as_echo_n=':'
20092 if test "${gl_cv_func___va_copy+set}" = set; then :
20093 $as_echo_n "(cached) " >&6
20094 else
20095
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h. */
20098 #include <stdarg.h>
20099 int
20100 main ()
20101 {
20102
20103 #ifndef __va_copy
20104 error, bail out
20105 #endif
20106
20107 ;
20108 return 0;
20109 }
20110 _ACEOF
20111 if ac_fn_c_try_compile "$LINENO"; then :
20112 gl_cv_func___va_copy=yes
20113 else
20114 gl_cv_func___va_copy=no
20115 fi
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117 fi
20118
20119 as_echo_n="$saved_as_echo_n"
20120
20121 if test $gl_cv_func___va_copy = yes; then
20122
20123 $as_echo "#define va_copy __va_copy" >>confdefs.h
20124
20125 else
20126
20127
20128 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20129
20130 fi
20131 fi
20132 fi
20133
20134 if test -n "$STDARG_H"; then
20135 GL_GENERATE_STDARG_H_TRUE=
20136 GL_GENERATE_STDARG_H_FALSE='#'
20137 else
20138 GL_GENERATE_STDARG_H_TRUE='#'
20139 GL_GENERATE_STDARG_H_FALSE=
20140 fi
20141
20142
20143
20144
20145
20146
20147 # Define two additional variables used in the Makefile substitution.
20148
20149 if test "$ac_cv_header_stdbool_h" = yes; then
20150 STDBOOL_H=''
20151 else
20152 STDBOOL_H='stdbool.h'
20153 fi
20154
20155 if test -n "$STDBOOL_H"; then
20156 GL_GENERATE_STDBOOL_H_TRUE=
20157 GL_GENERATE_STDBOOL_H_FALSE='#'
20158 else
20159 GL_GENERATE_STDBOOL_H_TRUE='#'
20160 GL_GENERATE_STDBOOL_H_FALSE=
20161 fi
20162
20163
20164 if test "$ac_cv_type__Bool" = yes; then
20165 HAVE__BOOL=1
20166 else
20167 HAVE__BOOL=0
20168 fi
20169
20170
20171
20172
20173
20174 STDDEF_H=
20175 if test $gt_cv_c_wchar_t = no; then
20176 HAVE_WCHAR_T=0
20177 STDDEF_H=stddef.h
20178 fi
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20180 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20181 if test "${gl_cv_decl_null_works+set}" = set; then :
20182 $as_echo_n "(cached) " >&6
20183 else
20184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h. */
20186 #include <stddef.h>
20187 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20188
20189 int
20190 main ()
20191 {
20192
20193 ;
20194 return 0;
20195 }
20196 _ACEOF
20197 if ac_fn_c_try_compile "$LINENO"; then :
20198 gl_cv_decl_null_works=yes
20199 else
20200 gl_cv_decl_null_works=no
20201 fi
20202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203 fi
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20205 $as_echo "$gl_cv_decl_null_works" >&6; }
20206 if test $gl_cv_decl_null_works = no; then
20207 REPLACE_NULL=1
20208 STDDEF_H=stddef.h
20209 fi
20210
20211 if test -n "$STDDEF_H"; then
20212 GL_GENERATE_STDDEF_H_TRUE=
20213 GL_GENERATE_STDDEF_H_FALSE='#'
20214 else
20215 GL_GENERATE_STDDEF_H_TRUE='#'
20216 GL_GENERATE_STDDEF_H_FALSE=
20217 fi
20218
20219 if test -n "$STDDEF_H"; then
20220
20221
20222
20223
20224
20225
20226
20227
20228 if test $gl_cv_have_include_next = yes; then
20229 gl_cv_next_stddef_h='<'stddef.h'>'
20230 else
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20232 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20233 if test "${gl_cv_next_stddef_h+set}" = set; then :
20234 $as_echo_n "(cached) " >&6
20235 else
20236
20237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20238 /* end confdefs.h. */
20239 #include <stddef.h>
20240
20241 _ACEOF
20242 case "$host_os" in
20243 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20244 *) gl_absname_cpp="$ac_cpp" ;;
20245 esac
20246
20247 case "$host_os" in
20248 mingw*)
20249 gl_dirsep_regex='[/\\]'
20250 ;;
20251 *)
20252 gl_dirsep_regex='\/'
20253 ;;
20254 esac
20255 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20256
20257 gl_header_literal_regex=`echo 'stddef.h' \
20258 | sed -e "$gl_make_literal_regex_sed"`
20259 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20260 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20261 s|^/[^/]|//&|
20262 p
20263 q
20264 }'
20265 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20266 sed -n "$gl_absolute_header_sed"`'"'
20267
20268
20269 fi
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20271 $as_echo "$gl_cv_next_stddef_h" >&6; }
20272 fi
20273 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20274
20275 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20277 gl_next_as_first_directive='<'stddef.h'>'
20278 else
20279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20280 gl_next_as_first_directive=$gl_cv_next_stddef_h
20281 fi
20282 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20283
20284
20285
20286
20287 fi
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301 if test $gl_cv_have_include_next = yes; then
20302 gl_cv_next_stdio_h='<'stdio.h'>'
20303 else
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20305 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20306 if test "${gl_cv_next_stdio_h+set}" = set; then :
20307 $as_echo_n "(cached) " >&6
20308 else
20309
20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h. */
20312 #include <stdio.h>
20313
20314 _ACEOF
20315 case "$host_os" in
20316 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20317 *) gl_absname_cpp="$ac_cpp" ;;
20318 esac
20319
20320 case "$host_os" in
20321 mingw*)
20322 gl_dirsep_regex='[/\\]'
20323 ;;
20324 *)
20325 gl_dirsep_regex='\/'
20326 ;;
20327 esac
20328 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20329
20330 gl_header_literal_regex=`echo 'stdio.h' \
20331 | sed -e "$gl_make_literal_regex_sed"`
20332 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20333 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20334 s|^/[^/]|//&|
20335 p
20336 q
20337 }'
20338 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20339 sed -n "$gl_absolute_header_sed"`'"'
20340
20341
20342 fi
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20344 $as_echo "$gl_cv_next_stdio_h" >&6; }
20345 fi
20346 NEXT_STDIO_H=$gl_cv_next_stdio_h
20347
20348 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20350 gl_next_as_first_directive='<'stdio.h'>'
20351 else
20352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20353 gl_next_as_first_directive=$gl_cv_next_stdio_h
20354 fi
20355 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20356
20357
20358
20359
20360
20361 GNULIB_FSCANF=1
20362 GNULIB_SCANF=1
20363 GNULIB_FGETC=1
20364 GNULIB_GETC=1
20365 GNULIB_GETCHAR=1
20366 GNULIB_FGETS=1
20367 GNULIB_FREAD=1
20368
20369
20370 GNULIB_FPRINTF=1
20371 GNULIB_PRINTF=1
20372 GNULIB_VFPRINTF=1
20373 GNULIB_VPRINTF=1
20374 GNULIB_FPUTC=1
20375 GNULIB_PUTC=1
20376 GNULIB_PUTCHAR=1
20377 GNULIB_FPUTS=1
20378 GNULIB_PUTS=1
20379 GNULIB_FWRITE=1
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395 if test $gl_cv_have_include_next = yes; then
20396 gl_cv_next_stdlib_h='<'stdlib.h'>'
20397 else
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20399 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20400 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20401 $as_echo_n "(cached) " >&6
20402 else
20403
20404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20405 /* end confdefs.h. */
20406 #include <stdlib.h>
20407
20408 _ACEOF
20409 case "$host_os" in
20410 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20411 *) gl_absname_cpp="$ac_cpp" ;;
20412 esac
20413
20414 case "$host_os" in
20415 mingw*)
20416 gl_dirsep_regex='[/\\]'
20417 ;;
20418 *)
20419 gl_dirsep_regex='\/'
20420 ;;
20421 esac
20422 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20423
20424 gl_header_literal_regex=`echo 'stdlib.h' \
20425 | sed -e "$gl_make_literal_regex_sed"`
20426 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20427 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20428 s|^/[^/]|//&|
20429 p
20430 q
20431 }'
20432 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20433 sed -n "$gl_absolute_header_sed"`'"'
20434
20435
20436 fi
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20438 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20439 fi
20440 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20441
20442 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20444 gl_next_as_first_directive='<'stdlib.h'>'
20445 else
20446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20447 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20448 fi
20449 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20460
20461
20462
20463
20464
20465
20466
20467 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20468
20469
20470
20471
20472
20473
20474
20475
20476 if test "$ac_cv_have_decl_strtoimax" != yes; then
20477 HAVE_DECL_STRTOIMAX=0
20478 fi
20479
20480 if test $ac_cv_func_strtoimax = yes; then
20481 HAVE_STRTOIMAX=1
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
20483 $as_echo_n "checking whether strtoimax works... " >&6; }
20484 if test "${gl_cv_func_strtoimax+set}" = set; then :
20485 $as_echo_n "(cached) " >&6
20486 else
20487 if test "$cross_compiling" = yes; then :
20488 case "$host_os" in
20489 # Guess no on AIX 5.
20490 aix5*) gl_cv_func_strtoimax="guessing no" ;;
20491 # Guess yes otherwise.
20492 *) gl_cv_func_strtoimax="guessing yes" ;;
20493 esac
20494
20495 else
20496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h. */
20498
20499 #include <errno.h>
20500 #include <string.h>
20501 #include <inttypes.h>
20502 int main ()
20503 {
20504 if (sizeof (intmax_t) > sizeof (int))
20505 {
20506 const char *s = "4294967295";
20507 char *p;
20508 intmax_t res;
20509 errno = 0;
20510 res = strtoimax (s, &p, 10);
20511 if (p != s + strlen (s))
20512 return 1;
20513 if (errno != 0)
20514 return 2;
20515 if (res != (intmax_t) 65535 * (intmax_t) 65537)
20516 return 3;
20517 }
20518 else
20519 {
20520 const char *s = "2147483647";
20521 char *p;
20522 intmax_t res;
20523 errno = 0;
20524 res = strtoimax (s, &p, 10);
20525 if (p != s + strlen (s))
20526 return 1;
20527 if (errno != 0)
20528 return 2;
20529 if (res != 2147483647)
20530 return 3;
20531 }
20532 return 0;
20533 }
20534
20535 _ACEOF
20536 if ac_fn_c_try_run "$LINENO"; then :
20537 gl_cv_func_strtoimax=yes
20538 else
20539 gl_cv_func_strtoimax=no
20540 fi
20541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20542 conftest.$ac_objext conftest.beam conftest.$ac_ext
20543 fi
20544
20545
20546 fi
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
20548 $as_echo "$gl_cv_func_strtoimax" >&6; }
20549 case "$gl_cv_func_strtoimax" in
20550 *no) REPLACE_STRTOIMAX=1 ;;
20551 esac
20552 else
20553 HAVE_STRTOIMAX=0
20554 fi
20555
20556 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
20557
20558
20559
20560
20561
20562
20563
20564
20565 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
20566
20567
20568 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20569 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
20570 ac_have_decl=1
20571 else
20572 ac_have_decl=0
20573 fi
20574
20575 cat >>confdefs.h <<_ACEOF
20576 #define HAVE_DECL_STRTOLL $ac_have_decl
20577 _ACEOF
20578
20579
20580
20581 fi
20582
20583
20584
20585
20586
20587 GNULIB_STRTOIMAX=1
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597 if test "$ac_cv_have_decl_strtoumax" != yes; then
20598 HAVE_DECL_STRTOUMAX=0
20599 fi
20600
20601 if test $ac_cv_func_strtoumax = no; then
20602
20603
20604
20605
20606
20607
20608
20609
20610 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20611
20612
20613 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20614 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20615 ac_have_decl=1
20616 else
20617 ac_have_decl=0
20618 fi
20619
20620 cat >>confdefs.h <<_ACEOF
20621 #define HAVE_DECL_STRTOULL $ac_have_decl
20622 _ACEOF
20623
20624
20625
20626 fi
20627
20628
20629
20630
20631
20632 GNULIB_STRTOUMAX=1
20633
20634
20635
20636
20637
20638
20639
20640 if test $ac_cv_func_symlink = no; then
20641 HAVE_SYMLINK=0
20642 else
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20644 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20645 if test "${gl_cv_func_symlink_works+set}" = set; then :
20646 $as_echo_n "(cached) " >&6
20647 else
20648 if test "$cross_compiling" = yes; then :
20649 case "$host_os" in
20650 # Guess yes on glibc systems.
20651 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
20652 # If we don't know, assume the worst.
20653 *) gl_cv_func_symlink_works="guessing no" ;;
20654 esac
20655
20656 else
20657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20658 /* end confdefs.h. */
20659 #include <unistd.h>
20660
20661 int
20662 main ()
20663 {
20664 int result = 0;
20665 if (!symlink ("a", "conftest.link/"))
20666 result |= 1;
20667 if (symlink ("conftest.f", "conftest.lnk2"))
20668 result |= 2;
20669 else if (!symlink ("a", "conftest.lnk2/"))
20670 result |= 4;
20671 return result;
20672
20673 ;
20674 return 0;
20675 }
20676 _ACEOF
20677 if ac_fn_c_try_run "$LINENO"; then :
20678 gl_cv_func_symlink_works=yes
20679 else
20680 gl_cv_func_symlink_works=no
20681 fi
20682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20683 conftest.$ac_objext conftest.beam conftest.$ac_ext
20684 fi
20685
20686 rm -f conftest.f conftest.link conftest.lnk2
20687 fi
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20689 $as_echo "$gl_cv_func_symlink_works" >&6; }
20690 case "$gl_cv_func_symlink_works" in
20691 *yes) ;;
20692 *)
20693 REPLACE_SYMLINK=1
20694 ;;
20695 esac
20696 fi
20697
20698 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20699
20700
20701
20702
20703
20704
20705
20706
20707 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20708
20709 fi
20710
20711
20712
20713
20714
20715 GNULIB_SYMLINK=1
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737 if test $gl_cv_have_include_next = yes; then
20738 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20739 else
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20741 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20742 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20743 $as_echo_n "(cached) " >&6
20744 else
20745
20746 if test $ac_cv_header_sys_stat_h = yes; then
20747
20748
20749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20750 /* end confdefs.h. */
20751 #include <sys/stat.h>
20752
20753 _ACEOF
20754 case "$host_os" in
20755 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20756 *) gl_absname_cpp="$ac_cpp" ;;
20757 esac
20758
20759 case "$host_os" in
20760 mingw*)
20761 gl_dirsep_regex='[/\\]'
20762 ;;
20763 *)
20764 gl_dirsep_regex='\/'
20765 ;;
20766 esac
20767 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20768
20769 gl_header_literal_regex=`echo 'sys/stat.h' \
20770 | sed -e "$gl_make_literal_regex_sed"`
20771 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20772 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20773 s|^/[^/]|//&|
20774 p
20775 q
20776 }'
20777 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20778 sed -n "$gl_absolute_header_sed"`'"'
20779 else
20780 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20781 fi
20782
20783
20784 fi
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20786 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20787 fi
20788 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20789
20790 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20792 gl_next_as_first_directive='<'sys/stat.h'>'
20793 else
20794 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20795 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20796 fi
20797 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20810
20811 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
20812
20813 fi
20814
20815 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20816 #include <sys/stat.h>
20817 "
20818 if test "x$ac_cv_type_nlink_t" = x""yes; then :
20819
20820 else
20821
20822 $as_echo "#define nlink_t int" >>confdefs.h
20823
20824 fi
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840 if test $gl_cv_have_include_next = yes; then
20841 gl_cv_next_sys_types_h='<'sys/types.h'>'
20842 else
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20844 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20845 if test "${gl_cv_next_sys_types_h+set}" = set; then :
20846 $as_echo_n "(cached) " >&6
20847 else
20848
20849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20850 /* end confdefs.h. */
20851 #include <sys/types.h>
20852
20853 _ACEOF
20854 case "$host_os" in
20855 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20856 *) gl_absname_cpp="$ac_cpp" ;;
20857 esac
20858
20859 case "$host_os" in
20860 mingw*)
20861 gl_dirsep_regex='[/\\]'
20862 ;;
20863 *)
20864 gl_dirsep_regex='\/'
20865 ;;
20866 esac
20867 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20868
20869 gl_header_literal_regex=`echo 'sys/types.h' \
20870 | sed -e "$gl_make_literal_regex_sed"`
20871 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20872 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20873 s|^/[^/]|//&|
20874 p
20875 q
20876 }'
20877 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20878 sed -n "$gl_absolute_header_sed"`'"'
20879
20880
20881 fi
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20883 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20884 fi
20885 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20886
20887 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20889 gl_next_as_first_directive='<'sys/types.h'>'
20890 else
20891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20892 gl_next_as_first_directive=$gl_cv_next_sys_types_h
20893 fi
20894 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917 if test $ac_cv_have_decl_localtime_r = no; then
20918 HAVE_DECL_LOCALTIME_R=0
20919 fi
20920
20921
20922 if test $ac_cv_func_localtime_r = yes; then
20923 HAVE_LOCALTIME_R=1
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20925 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20926 if test "${gl_cv_time_r_posix+set}" = set; then :
20927 $as_echo_n "(cached) " >&6
20928 else
20929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20930 /* end confdefs.h. */
20931 #include <time.h>
20932 int
20933 main ()
20934 {
20935 /* We don't need to append 'restrict's to the argument types,
20936 even though the POSIX signature has the 'restrict's,
20937 since C99 says they can't affect type compatibility. */
20938 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20939 if (ptr) return 0;
20940 /* Check the return type is a pointer.
20941 On HP-UX 10 it is 'int'. */
20942 *localtime_r (0, 0);
20943 ;
20944 return 0;
20945 }
20946
20947 _ACEOF
20948 if ac_fn_c_try_compile "$LINENO"; then :
20949 gl_cv_time_r_posix=yes
20950 else
20951 gl_cv_time_r_posix=no
20952 fi
20953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954
20955 fi
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20957 $as_echo "$gl_cv_time_r_posix" >&6; }
20958 if test $gl_cv_time_r_posix = yes; then
20959 REPLACE_LOCALTIME_R=0
20960 else
20961 REPLACE_LOCALTIME_R=1
20962 fi
20963 else
20964 HAVE_LOCALTIME_R=0
20965 fi
20966
20967 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
20968
20969
20970
20971
20972
20973
20974
20975
20976 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
20977
20978
20979 :
20980
20981 fi
20982
20983
20984
20985
20986
20987 GNULIB_TIME_R=1
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007 if test $gl_cv_have_include_next = yes; then
21008 gl_cv_next_unistd_h='<'unistd.h'>'
21009 else
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21011 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21012 if test "${gl_cv_next_unistd_h+set}" = set; then :
21013 $as_echo_n "(cached) " >&6
21014 else
21015
21016 if test $ac_cv_header_unistd_h = yes; then
21017
21018
21019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21020 /* end confdefs.h. */
21021 #include <unistd.h>
21022
21023 _ACEOF
21024 case "$host_os" in
21025 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21026 *) gl_absname_cpp="$ac_cpp" ;;
21027 esac
21028
21029 case "$host_os" in
21030 mingw*)
21031 gl_dirsep_regex='[/\\]'
21032 ;;
21033 *)
21034 gl_dirsep_regex='\/'
21035 ;;
21036 esac
21037 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21038
21039 gl_header_literal_regex=`echo 'unistd.h' \
21040 | sed -e "$gl_make_literal_regex_sed"`
21041 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21042 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21043 s|^/[^/]|//&|
21044 p
21045 q
21046 }'
21047 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21048 sed -n "$gl_absolute_header_sed"`'"'
21049 else
21050 gl_cv_next_unistd_h='<'unistd.h'>'
21051 fi
21052
21053
21054 fi
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21056 $as_echo "$gl_cv_next_unistd_h" >&6; }
21057 fi
21058 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21059
21060 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21062 gl_next_as_first_directive='<'unistd.h'>'
21063 else
21064 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21065 gl_next_as_first_directive=$gl_cv_next_unistd_h
21066 fi
21067 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21068
21069
21070
21071
21072 if test $ac_cv_header_unistd_h = yes; then
21073 HAVE_UNISTD_H=1
21074 else
21075 HAVE_UNISTD_H=0
21076 fi
21077
21078
21079
21080
21081
21082
21083
21084
21085 gl_gnulib_enabled_dosname=false
21086 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21087 gl_gnulib_enabled_pathmax=false
21088 gl_gnulib_enabled_sigprocmask=false
21089 gl_gnulib_enabled_stat=false
21090 gl_gnulib_enabled_strtoll=false
21091 gl_gnulib_enabled_strtoull=false
21092 gl_gnulib_enabled_verify=false
21093 func_gl_gnulib_m4code_dosname ()
21094 {
21095 if ! $gl_gnulib_enabled_dosname; then
21096 gl_gnulib_enabled_dosname=true
21097 fi
21098 }
21099 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21100 {
21101 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21102
21103
21104 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21105 fi
21106 }
21107 func_gl_gnulib_m4code_pathmax ()
21108 {
21109 if ! $gl_gnulib_enabled_pathmax; then
21110
21111
21112
21113 gl_gnulib_enabled_pathmax=true
21114 fi
21115 }
21116 func_gl_gnulib_m4code_sigprocmask ()
21117 {
21118 if ! $gl_gnulib_enabled_sigprocmask; then
21119
21120
21121
21122 if test $gl_cv_type_sigset_t = yes; then
21123 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21124 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21125 gl_cv_func_sigprocmask=1
21126 fi
21127
21128 fi
21129 if test -z "$gl_cv_func_sigprocmask"; then
21130 HAVE_POSIX_SIGNALBLOCKING=0
21131 fi
21132
21133 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21134
21135
21136
21137
21138
21139
21140
21141
21142 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21143
21144
21145
21146
21147 fi
21148
21149
21150
21151
21152
21153 GNULIB_SIGPROCMASK=1
21154
21155
21156
21157
21158
21159 gl_gnulib_enabled_sigprocmask=true
21160 fi
21161 }
21162 func_gl_gnulib_m4code_stat ()
21163 {
21164 if ! $gl_gnulib_enabled_stat; then
21165
21166
21167
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21169 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21170 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21171 $as_echo_n "(cached) " >&6
21172 else
21173 if test "$cross_compiling" = yes; then :
21174 case $host_os in
21175 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21176 *) gl_cv_func_stat_dir_slash="guessing yes";;
21177 esac
21178 else
21179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21180 /* end confdefs.h. */
21181 #include <sys/stat.h>
21182
21183 int
21184 main ()
21185 {
21186 struct stat st; return stat (".", &st) != stat ("./", &st);
21187 ;
21188 return 0;
21189 }
21190 _ACEOF
21191 if ac_fn_c_try_run "$LINENO"; then :
21192 gl_cv_func_stat_dir_slash=yes
21193 else
21194 gl_cv_func_stat_dir_slash=no
21195 fi
21196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21197 conftest.$ac_objext conftest.beam conftest.$ac_ext
21198 fi
21199
21200 fi
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21202 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21204 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21205 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21206 $as_echo_n "(cached) " >&6
21207 else
21208 touch conftest.tmp
21209 # Assume that if we have lstat, we can also check symlinks.
21210 if test $ac_cv_func_lstat = yes; then
21211 ln -s conftest.tmp conftest.lnk
21212 fi
21213 if test "$cross_compiling" = yes; then :
21214 case "$host_os" in
21215 # Guess yes on glibc systems.
21216 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
21217 # If we don't know, assume the worst.
21218 *) gl_cv_func_stat_file_slash="guessing no" ;;
21219 esac
21220
21221 else
21222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21224 #include <sys/stat.h>
21225
21226 int
21227 main ()
21228 {
21229 int result = 0;
21230 struct stat st;
21231 if (!stat ("conftest.tmp/", &st))
21232 result |= 1;
21233 #if HAVE_LSTAT
21234 if (!stat ("conftest.lnk/", &st))
21235 result |= 2;
21236 #endif
21237 return result;
21238
21239 ;
21240 return 0;
21241 }
21242 _ACEOF
21243 if ac_fn_c_try_run "$LINENO"; then :
21244 gl_cv_func_stat_file_slash=yes
21245 else
21246 gl_cv_func_stat_file_slash=no
21247 fi
21248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21249 conftest.$ac_objext conftest.beam conftest.$ac_ext
21250 fi
21251
21252 rm -f conftest.tmp conftest.lnk
21253 fi
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21255 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21256 case $gl_cv_func_stat_dir_slash in
21257 *no) REPLACE_STAT=1
21258
21259 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21260 ;;
21261 esac
21262 case $gl_cv_func_stat_file_slash in
21263 *no) REPLACE_STAT=1
21264
21265 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21266 ;;
21267 esac
21268
21269 if test $REPLACE_STAT = 1; then
21270
21271
21272
21273
21274
21275
21276
21277
21278 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21279
21280
21281
21282 :
21283
21284 fi
21285
21286
21287
21288
21289
21290 GNULIB_STAT=1
21291
21292
21293
21294
21295
21296 gl_gnulib_enabled_stat=true
21297 if test $REPLACE_STAT = 1; then
21298 func_gl_gnulib_m4code_dosname
21299 fi
21300 if test $REPLACE_STAT = 1; then
21301 func_gl_gnulib_m4code_pathmax
21302 fi
21303 if test $REPLACE_STAT = 1; then
21304 func_gl_gnulib_m4code_verify
21305 fi
21306 fi
21307 }
21308 func_gl_gnulib_m4code_strtoll ()
21309 {
21310 if ! $gl_gnulib_enabled_strtoll; then
21311
21312
21313
21314 if test "$ac_cv_type_long_long_int" = yes; then
21315 for ac_func in strtoll
21316 do :
21317 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21318 if test "x$ac_cv_func_strtoll" = x""yes; then :
21319 cat >>confdefs.h <<_ACEOF
21320 #define HAVE_STRTOLL 1
21321 _ACEOF
21322
21323 fi
21324 done
21325
21326 if test $ac_cv_func_strtoll = no; then
21327 HAVE_STRTOLL=0
21328 fi
21329 fi
21330
21331 if test $HAVE_STRTOLL = 0; then
21332
21333
21334
21335
21336
21337
21338
21339
21340 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21341
21342
21343 :
21344
21345 fi
21346
21347
21348
21349
21350
21351 GNULIB_STRTOLL=1
21352
21353
21354
21355
21356
21357 gl_gnulib_enabled_strtoll=true
21358 fi
21359 }
21360 func_gl_gnulib_m4code_strtoull ()
21361 {
21362 if ! $gl_gnulib_enabled_strtoull; then
21363
21364
21365
21366 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21367 for ac_func in strtoull
21368 do :
21369 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21370 if test "x$ac_cv_func_strtoull" = x""yes; then :
21371 cat >>confdefs.h <<_ACEOF
21372 #define HAVE_STRTOULL 1
21373 _ACEOF
21374
21375 fi
21376 done
21377
21378 if test $ac_cv_func_strtoull = no; then
21379 HAVE_STRTOULL=0
21380 fi
21381 fi
21382
21383 if test $HAVE_STRTOULL = 0; then
21384
21385
21386
21387
21388
21389
21390
21391
21392 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21393
21394
21395 :
21396
21397 fi
21398
21399
21400
21401
21402
21403 GNULIB_STRTOULL=1
21404
21405
21406
21407
21408
21409 gl_gnulib_enabled_strtoull=true
21410 fi
21411 }
21412 func_gl_gnulib_m4code_verify ()
21413 {
21414 if ! $gl_gnulib_enabled_verify; then
21415 gl_gnulib_enabled_verify=true
21416 fi
21417 }
21418 if test $REPLACE_GETOPT = 1; then
21419 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21420 fi
21421 if test $REPLACE_LSTAT = 1; then
21422 func_gl_gnulib_m4code_dosname
21423 fi
21424 if test $REPLACE_LSTAT = 1; then
21425 func_gl_gnulib_m4code_stat
21426 fi
21427 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21428 func_gl_gnulib_m4code_sigprocmask
21429 fi
21430 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21431 func_gl_gnulib_m4code_stat
21432 fi
21433 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
21434 func_gl_gnulib_m4code_strtoll
21435 fi
21436 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
21437 func_gl_gnulib_m4code_verify
21438 fi
21439 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21440 func_gl_gnulib_m4code_strtoull
21441 fi
21442 if test $ac_cv_func_strtoumax = no; then
21443 func_gl_gnulib_m4code_verify
21444 fi
21445
21446 if $gl_gnulib_enabled_dosname; then
21447 gl_GNULIB_ENABLED_dosname_TRUE=
21448 gl_GNULIB_ENABLED_dosname_FALSE='#'
21449 else
21450 gl_GNULIB_ENABLED_dosname_TRUE='#'
21451 gl_GNULIB_ENABLED_dosname_FALSE=
21452 fi
21453
21454 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21455 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21456 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21457 else
21458 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21459 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21460 fi
21461
21462 if $gl_gnulib_enabled_pathmax; then
21463 gl_GNULIB_ENABLED_pathmax_TRUE=
21464 gl_GNULIB_ENABLED_pathmax_FALSE='#'
21465 else
21466 gl_GNULIB_ENABLED_pathmax_TRUE='#'
21467 gl_GNULIB_ENABLED_pathmax_FALSE=
21468 fi
21469
21470 if $gl_gnulib_enabled_sigprocmask; then
21471 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21472 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21473 else
21474 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21475 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21476 fi
21477
21478 if $gl_gnulib_enabled_stat; then
21479 gl_GNULIB_ENABLED_stat_TRUE=
21480 gl_GNULIB_ENABLED_stat_FALSE='#'
21481 else
21482 gl_GNULIB_ENABLED_stat_TRUE='#'
21483 gl_GNULIB_ENABLED_stat_FALSE=
21484 fi
21485
21486 if $gl_gnulib_enabled_strtoll; then
21487 gl_GNULIB_ENABLED_strtoll_TRUE=
21488 gl_GNULIB_ENABLED_strtoll_FALSE='#'
21489 else
21490 gl_GNULIB_ENABLED_strtoll_TRUE='#'
21491 gl_GNULIB_ENABLED_strtoll_FALSE=
21492 fi
21493
21494 if $gl_gnulib_enabled_strtoull; then
21495 gl_GNULIB_ENABLED_strtoull_TRUE=
21496 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21497 else
21498 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21499 gl_GNULIB_ENABLED_strtoull_FALSE=
21500 fi
21501
21502 if $gl_gnulib_enabled_verify; then
21503 gl_GNULIB_ENABLED_verify_TRUE=
21504 gl_GNULIB_ENABLED_verify_FALSE='#'
21505 else
21506 gl_GNULIB_ENABLED_verify_TRUE='#'
21507 gl_GNULIB_ENABLED_verify_FALSE=
21508 fi
21509
21510 # End of code from modules
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520 gltests_libdeps=
21521 gltests_ltlibdeps=
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531 gl_source_base='tests'
21532 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
21533
21534 gl_module_indicator_condition=$gltests_WITNESS
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545 LIBGNU_LIBDEPS="$gl_libdeps"
21546
21547 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
21548
21549
21550
21551 case "$opsys" in
21552 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
21553
21554 darwin)
21555 ## The -headerpad option tells ld (see man page) to leave room at the
21556 ## end of the header for adding load commands. Needed for dumping.
21557 ## 0x690 is the total size of 30 segment load commands (at 56
21558 ## each); under Cocoa 31 commands are required.
21559 if test "$HAVE_NS" = "yes"; then
21560 libs_nsgui="-framework AppKit"
21561 headerpad_extra=6C8
21562 else
21563 libs_nsgui=
21564 headerpad_extra=690
21565 fi
21566 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21567
21568 ## This is here because src/Makefile.in did some extra fiddling around
21569 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21570 ## #ifndef LD_SWITCH_SYSTEM
21571 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21572 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21573 ## not using gcc, darwin.
21574 ## Because this was done in src/Makefile.in, the resulting part of
21575 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21576 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21577 ## rather than LD_SWITCH_SYSTEM.
21578 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21579 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
21580 ;;
21581
21582 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
21583 ## find X at run-time.
21584 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
21585 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
21586 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21587 ## had different values in configure (in ac_link) and src/Makefile.in.
21588 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21589 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
21590
21591 *) LD_SWITCH_SYSTEM_TEMACS= ;;
21592 esac
21593
21594 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21595 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21596 fi
21597
21598
21599
21600
21601 LD_FIRSTFLAG=
21602 ORDINARY_LINK=
21603 case "$opsys" in
21604 ## gnu: GNU needs its own crt0.
21605 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
21606
21607 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21608 ## library search parth, i.e. it won't search /usr/lib for libc and
21609 ## friends. Using -nostartfiles instead avoids this problem, and
21610 ## will also work on earlier NetBSD releases.
21611 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
21612
21613 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21614 ## MkLinux/LinuxPPC needs this.
21615 ## s390x-* only supports opsys = gnu-linux so it can be added here.
21616 gnu-*)
21617 case "$canonical" in
21618 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
21619 esac
21620 ;;
21621 esac
21622
21623
21624 if test "x$ORDINARY_LINK" = "xyes"; then
21625
21626 LD_FIRSTFLAG=""
21627
21628 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21629
21630
21631 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21632 ## freebsd, gnu-* not on powerpc*|s390x*.
21633 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21634
21635 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21636 ## places that are difficult to figure out at make time. Fortunately,
21637 ## these same versions allow you to pass arbitrary flags on to the
21638 ## linker, so there is no reason not to use it as a linker.
21639 ##
21640 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21641 ## searching for libraries in its internal directories, so we have to
21642 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21643 LD_FIRSTFLAG="-nostdlib"
21644 fi
21645
21646 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21647 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
21648
21649
21650
21651
21652 ## FIXME? The logic here is not precisely the same as that above.
21653 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21654 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21655 LIB_GCC=
21656 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21657
21658 case "$opsys" in
21659 freebsd|netbsd|openbsd) LIB_GCC= ;;
21660
21661 gnu-*)
21662 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21663 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21664 case $host_cpu in
21665 arm*)
21666 LIB_GCC="-lgcc_s"
21667 ;;
21668 *)
21669 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21670 ## immediately undefine it again and redefine it to empty.
21671 ## Was the C_SWITCH_X_SITE part really necessary?
21672 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21673 LIB_GCC=
21674 ;;
21675 esac
21676 ;;
21677
21678 ## Ask GCC where to find libgcc.a.
21679 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21680 esac
21681 fi
21682
21683
21684 ## If we're using X11/GNUstep, define some consequences.
21685 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
21686
21687 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21688
21689
21690 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21691
21692 fi
21693
21694
21695
21696
21697 #### Report on what we decided to do.
21698 #### Report GTK as a toolkit, even if it doesn't use Xt.
21699 #### It makes printing result more understandable as using GTK sets
21700 #### toolkit_scroll_bars to yes by default.
21701 if test "${HAVE_GTK}" = "yes"; then
21702 USE_X_TOOLKIT=GTK
21703 fi
21704
21705 echo "
21706 Configured for \`${canonical}'.
21707
21708 Where should the build process find the source code? ${srcdir}
21709 What operating system file should Emacs use?
21710 \`${opsysfile}'
21711 What compiler should emacs be built with? ${CC} ${CFLAGS}
21712 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21713 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21714 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21715 What window system should Emacs use? ${window_system}
21716 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21717
21718 if test -n "${x_includes}"; then
21719 echo " Where do we find X Windows header files? ${x_includes}"
21720 else
21721 echo " Where do we find X Windows header files? Standard dirs"
21722 fi
21723 if test -n "${x_libraries}"; then
21724 echo " Where do we find X Windows libraries? ${x_libraries}"
21725 else
21726 echo " Where do we find X Windows libraries? Standard dirs"
21727 fi
21728
21729 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21730 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21731 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21732 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21733 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21734 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21735 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21736 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21737
21738 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21739 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21740 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21741 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21742 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21743 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
21744 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21745
21746 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21747 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21748 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21749 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21750
21751 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21752 echo
21753
21754 if test -n "${EMACSDATA}"; then
21755 echo " Environment variable EMACSDATA set to: $EMACSDATA"
21756 fi
21757 if test -n "${EMACSDOC}"; then
21758 echo " Environment variable EMACSDOC set to: $EMACSDOC"
21759 fi
21760
21761 if test $USE_XASSERTS = yes; then
21762 echo " Compiling with asserts turned on."
21763 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21764 fi
21765
21766 echo
21767
21768 if test "$HAVE_NS" = "yes"; then
21769 echo
21770 echo "You must run \"${MAKE-make} install\" in order to test the built application.
21771 The installed application will go to nextstep/Emacs.app and can be
21772 run or moved from there."
21773 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21774 echo "The application will be fully self-contained."
21775 else
21776 echo "The lisp resources for the application will be installed under ${prefix}.
21777 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
21778 to run if these resources are not installed."
21779 fi
21780 echo
21781 fi
21782
21783 if test "${opsys}" = "cygwin"; then
21784 case `uname -r` in
21785 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
21786 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
21787 echo
21788 ;;
21789 esac
21790 fi
21791
21792 # Remove any trailing slashes in these variables.
21793 test "${prefix}" != NONE &&
21794 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21795 test "${exec_prefix}" != NONE &&
21796 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21797
21798 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"
21799
21800 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"
21801
21802
21803 opt_makefile=test/automated/Makefile
21804
21805 if test -f $srcdir/${opt_makefile}.in; then
21806 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21807 ac_config_files="$ac_config_files test/automated/Makefile"
21808
21809 fi
21810
21811
21812 opt_makefile=admin/unidata/Makefile
21813
21814 if test -f $srcdir/${opt_makefile}.in; then
21815 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21816 ac_config_files="$ac_config_files admin/unidata/Makefile"
21817
21818 fi
21819
21820
21821 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21822
21823
21824
21825 ac_config_commands="$ac_config_commands mkdirs"
21826
21827
21828 ac_config_commands="$ac_config_commands epaths"
21829
21830
21831 ac_config_commands="$ac_config_commands gdbinit"
21832
21833
21834 cat >confcache <<\_ACEOF
21835 # This file is a shell script that caches the results of configure
21836 # tests run on this system so they can be shared between configure
21837 # scripts and configure runs, see configure's option --config-cache.
21838 # It is not useful on other systems. If it contains results you don't
21839 # want to keep, you may remove or edit it.
21840 #
21841 # config.status only pays attention to the cache file if you give it
21842 # the --recheck option to rerun configure.
21843 #
21844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21846 # following values.
21847
21848 _ACEOF
21849
21850 # The following way of writing the cache mishandles newlines in values,
21851 # but we know of no workaround that is simple, portable, and efficient.
21852 # So, we kill variables containing newlines.
21853 # Ultrix sh set writes to stderr and can't be redirected directly,
21854 # and sets the high bit in the cache file unless we assign to the vars.
21855 (
21856 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21857 eval ac_val=\$$ac_var
21858 case $ac_val in #(
21859 *${as_nl}*)
21860 case $ac_var in #(
21861 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21863 esac
21864 case $ac_var in #(
21865 _ | IFS | as_nl) ;; #(
21866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21867 *) { eval $ac_var=; unset $ac_var;} ;;
21868 esac ;;
21869 esac
21870 done
21871
21872 (set) 2>&1 |
21873 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21874 *${as_nl}ac_space=\ *)
21875 # `set' does not quote correctly, so add quotes: double-quote
21876 # substitution turns \\\\ into \\, and sed turns \\ into \.
21877 sed -n \
21878 "s/'/'\\\\''/g;
21879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21880 ;; #(
21881 *)
21882 # `set' quotes correctly as required by POSIX, so do not add quotes.
21883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21884 ;;
21885 esac |
21886 sort
21887 ) |
21888 sed '
21889 /^ac_cv_env_/b end
21890 t clear
21891 :clear
21892 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21893 t end
21894 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21895 :end' >>confcache
21896 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21897 if test -w "$cache_file"; then
21898 test "x$cache_file" != "x/dev/null" &&
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21900 $as_echo "$as_me: updating cache $cache_file" >&6;}
21901 cat confcache >$cache_file
21902 else
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21905 fi
21906 fi
21907 rm -f confcache
21908
21909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21910 # Let make expand exec_prefix.
21911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21912
21913 DEFS=-DHAVE_CONFIG_H
21914
21915 ac_libobjs=
21916 ac_ltlibobjs=
21917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21918 # 1. Remove the extension, and $U if already installed.
21919 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21920 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21922 # will be set to the directory where LIBOBJS objects are built.
21923 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21924 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21925 done
21926 LIBOBJS=$ac_libobjs
21927
21928 LTLIBOBJS=$ac_ltlibobjs
21929
21930
21931 if test -n "$EXEEXT"; then
21932 am__EXEEXT_TRUE=
21933 am__EXEEXT_FALSE='#'
21934 else
21935 am__EXEEXT_TRUE='#'
21936 am__EXEEXT_FALSE=
21937 fi
21938
21939 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21940 as_fn_error "conditional \"AMDEP\" was never defined.
21941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21942 fi
21943 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21944 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21946 fi
21947 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21948 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21950 fi
21951 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21952 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21954 fi
21955
21956 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21957 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21959 fi
21960 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
21961 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
21962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21963 fi
21964 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21965 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21967 fi
21968 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21969 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21971 fi
21972 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21973 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21975 fi
21976 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21977 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21979 fi
21980 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21981 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21983 fi
21984 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
21985 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
21986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21987 fi
21988 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
21989 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
21990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21991 fi
21992 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21993 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21995 fi
21996 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
21997 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
21998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21999 fi
22000 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22001 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22003 fi
22004 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22005 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22007 fi
22008
22009 gl_libobjs=
22010 gl_ltlibobjs=
22011 if test -n "$gl_LIBOBJS"; then
22012 # Remove the extension.
22013 sed_drop_objext='s/\.o$//;s/\.obj$//'
22014 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22015 gl_libobjs="$gl_libobjs $i.$ac_objext"
22016 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22017 done
22018 fi
22019 gl_LIBOBJS=$gl_libobjs
22020
22021 gl_LTLIBOBJS=$gl_ltlibobjs
22022
22023
22024
22025 gltests_libobjs=
22026 gltests_ltlibobjs=
22027 if test -n "$gltests_LIBOBJS"; then
22028 # Remove the extension.
22029 sed_drop_objext='s/\.o$//;s/\.obj$//'
22030 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22031 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22032 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22033 done
22034 fi
22035 gltests_LIBOBJS=$gltests_libobjs
22036
22037 gltests_LTLIBOBJS=$gltests_ltlibobjs
22038
22039
22040
22041 : ${CONFIG_STATUS=./config.status}
22042 ac_write_fail=0
22043 ac_clean_files_save=$ac_clean_files
22044 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22046 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22047 as_write_fail=0
22048 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22049 #! $SHELL
22050 # Generated by $as_me.
22051 # Run this file to recreate the current configuration.
22052 # Compiler output produced by configure, useful for debugging
22053 # configure, is in config.log if it exists.
22054
22055 debug=false
22056 ac_cs_recheck=false
22057 ac_cs_silent=false
22058
22059 SHELL=\${CONFIG_SHELL-$SHELL}
22060 export SHELL
22061 _ASEOF
22062 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22063 ## -------------------- ##
22064 ## M4sh Initialization. ##
22065 ## -------------------- ##
22066
22067 # Be more Bourne compatible
22068 DUALCASE=1; export DUALCASE # for MKS sh
22069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22070 emulate sh
22071 NULLCMD=:
22072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22073 # is contrary to our usage. Disable this feature.
22074 alias -g '${1+"$@"}'='"$@"'
22075 setopt NO_GLOB_SUBST
22076 else
22077 case `(set -o) 2>/dev/null` in #(
22078 *posix*) :
22079 set -o posix ;; #(
22080 *) :
22081 ;;
22082 esac
22083 fi
22084
22085
22086 as_nl='
22087 '
22088 export as_nl
22089 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22090 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22093 # Prefer a ksh shell builtin over an external printf program on Solaris,
22094 # but without wasting forks for bash or zsh.
22095 if test -z "$BASH_VERSION$ZSH_VERSION" \
22096 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22097 as_echo='print -r --'
22098 as_echo_n='print -rn --'
22099 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22100 as_echo='printf %s\n'
22101 as_echo_n='printf %s'
22102 else
22103 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22104 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22105 as_echo_n='/usr/ucb/echo -n'
22106 else
22107 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22108 as_echo_n_body='eval
22109 arg=$1;
22110 case $arg in #(
22111 *"$as_nl"*)
22112 expr "X$arg" : "X\\(.*\\)$as_nl";
22113 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22114 esac;
22115 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22116 '
22117 export as_echo_n_body
22118 as_echo_n='sh -c $as_echo_n_body as_echo'
22119 fi
22120 export as_echo_body
22121 as_echo='sh -c $as_echo_body as_echo'
22122 fi
22123
22124 # The user is always right.
22125 if test "${PATH_SEPARATOR+set}" != set; then
22126 PATH_SEPARATOR=:
22127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22128 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22129 PATH_SEPARATOR=';'
22130 }
22131 fi
22132
22133
22134 # IFS
22135 # We need space, tab and new line, in precisely that order. Quoting is
22136 # there to prevent editors from complaining about space-tab.
22137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22138 # splitting by setting IFS to empty value.)
22139 IFS=" "" $as_nl"
22140
22141 # Find who we are. Look in the path if we contain no directory separator.
22142 case $0 in #((
22143 *[\\/]* ) as_myself=$0 ;;
22144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22145 for as_dir in $PATH
22146 do
22147 IFS=$as_save_IFS
22148 test -z "$as_dir" && as_dir=.
22149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22150 done
22151 IFS=$as_save_IFS
22152
22153 ;;
22154 esac
22155 # We did not find ourselves, most probably we were run as `sh COMMAND'
22156 # in which case we are not to be found in the path.
22157 if test "x$as_myself" = x; then
22158 as_myself=$0
22159 fi
22160 if test ! -f "$as_myself"; then
22161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22162 exit 1
22163 fi
22164
22165 # Unset variables that we do not need and which cause bugs (e.g. in
22166 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22167 # suppresses any "Segmentation fault" message there. '((' could
22168 # trigger a bug in pdksh 5.2.14.
22169 for as_var in BASH_ENV ENV MAIL MAILPATH
22170 do eval test x\${$as_var+set} = xset \
22171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22172 done
22173 PS1='$ '
22174 PS2='> '
22175 PS4='+ '
22176
22177 # NLS nuisances.
22178 LC_ALL=C
22179 export LC_ALL
22180 LANGUAGE=C
22181 export LANGUAGE
22182
22183 # CDPATH.
22184 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22185
22186
22187 # as_fn_error ERROR [LINENO LOG_FD]
22188 # ---------------------------------
22189 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22190 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22191 # script with status $?, using 1 if that was 0.
22192 as_fn_error ()
22193 {
22194 as_status=$?; test $as_status -eq 0 && as_status=1
22195 if test "$3"; then
22196 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22198 fi
22199 $as_echo "$as_me: error: $1" >&2
22200 as_fn_exit $as_status
22201 } # as_fn_error
22202
22203
22204 # as_fn_set_status STATUS
22205 # -----------------------
22206 # Set $? to STATUS, without forking.
22207 as_fn_set_status ()
22208 {
22209 return $1
22210 } # as_fn_set_status
22211
22212 # as_fn_exit STATUS
22213 # -----------------
22214 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22215 as_fn_exit ()
22216 {
22217 set +e
22218 as_fn_set_status $1
22219 exit $1
22220 } # as_fn_exit
22221
22222 # as_fn_unset VAR
22223 # ---------------
22224 # Portably unset VAR.
22225 as_fn_unset ()
22226 {
22227 { eval $1=; unset $1;}
22228 }
22229 as_unset=as_fn_unset
22230 # as_fn_append VAR VALUE
22231 # ----------------------
22232 # Append the text in VALUE to the end of the definition contained in VAR. Take
22233 # advantage of any shell optimizations that allow amortized linear growth over
22234 # repeated appends, instead of the typical quadratic growth present in naive
22235 # implementations.
22236 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22237 eval 'as_fn_append ()
22238 {
22239 eval $1+=\$2
22240 }'
22241 else
22242 as_fn_append ()
22243 {
22244 eval $1=\$$1\$2
22245 }
22246 fi # as_fn_append
22247
22248 # as_fn_arith ARG...
22249 # ------------------
22250 # Perform arithmetic evaluation on the ARGs, and store the result in the
22251 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22252 # must be portable across $(()) and expr.
22253 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22254 eval 'as_fn_arith ()
22255 {
22256 as_val=$(( $* ))
22257 }'
22258 else
22259 as_fn_arith ()
22260 {
22261 as_val=`expr "$@" || test $? -eq 1`
22262 }
22263 fi # as_fn_arith
22264
22265
22266 if expr a : '\(a\)' >/dev/null 2>&1 &&
22267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22268 as_expr=expr
22269 else
22270 as_expr=false
22271 fi
22272
22273 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22274 as_basename=basename
22275 else
22276 as_basename=false
22277 fi
22278
22279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22280 as_dirname=dirname
22281 else
22282 as_dirname=false
22283 fi
22284
22285 as_me=`$as_basename -- "$0" ||
22286 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22287 X"$0" : 'X\(//\)$' \| \
22288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22289 $as_echo X/"$0" |
22290 sed '/^.*\/\([^/][^/]*\)\/*$/{
22291 s//\1/
22292 q
22293 }
22294 /^X\/\(\/\/\)$/{
22295 s//\1/
22296 q
22297 }
22298 /^X\/\(\/\).*/{
22299 s//\1/
22300 q
22301 }
22302 s/.*/./; q'`
22303
22304 # Avoid depending upon Character Ranges.
22305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22308 as_cr_digits='0123456789'
22309 as_cr_alnum=$as_cr_Letters$as_cr_digits
22310
22311 ECHO_C= ECHO_N= ECHO_T=
22312 case `echo -n x` in #(((((
22313 -n*)
22314 case `echo 'xy\c'` in
22315 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22316 xy) ECHO_C='\c';;
22317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22318 ECHO_T=' ';;
22319 esac;;
22320 *)
22321 ECHO_N='-n';;
22322 esac
22323
22324 rm -f conf$$ conf$$.exe conf$$.file
22325 if test -d conf$$.dir; then
22326 rm -f conf$$.dir/conf$$.file
22327 else
22328 rm -f conf$$.dir
22329 mkdir conf$$.dir 2>/dev/null
22330 fi
22331 if (echo >conf$$.file) 2>/dev/null; then
22332 if ln -s conf$$.file conf$$ 2>/dev/null; then
22333 as_ln_s='ln -s'
22334 # ... but there are two gotchas:
22335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22337 # In both cases, we have to default to `cp -p'.
22338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22339 as_ln_s='cp -p'
22340 elif ln conf$$.file conf$$ 2>/dev/null; then
22341 as_ln_s=ln
22342 else
22343 as_ln_s='cp -p'
22344 fi
22345 else
22346 as_ln_s='cp -p'
22347 fi
22348 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22349 rmdir conf$$.dir 2>/dev/null
22350
22351
22352 # as_fn_mkdir_p
22353 # -------------
22354 # Create "$as_dir" as a directory, including parents if necessary.
22355 as_fn_mkdir_p ()
22356 {
22357
22358 case $as_dir in #(
22359 -*) as_dir=./$as_dir;;
22360 esac
22361 test -d "$as_dir" || eval $as_mkdir_p || {
22362 as_dirs=
22363 while :; do
22364 case $as_dir in #(
22365 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22366 *) as_qdir=$as_dir;;
22367 esac
22368 as_dirs="'$as_qdir' $as_dirs"
22369 as_dir=`$as_dirname -- "$as_dir" ||
22370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22371 X"$as_dir" : 'X\(//\)[^/]' \| \
22372 X"$as_dir" : 'X\(//\)$' \| \
22373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22374 $as_echo X"$as_dir" |
22375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22376 s//\1/
22377 q
22378 }
22379 /^X\(\/\/\)[^/].*/{
22380 s//\1/
22381 q
22382 }
22383 /^X\(\/\/\)$/{
22384 s//\1/
22385 q
22386 }
22387 /^X\(\/\).*/{
22388 s//\1/
22389 q
22390 }
22391 s/.*/./; q'`
22392 test -d "$as_dir" && break
22393 done
22394 test -z "$as_dirs" || eval "mkdir $as_dirs"
22395 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22396
22397
22398 } # as_fn_mkdir_p
22399 if mkdir -p . 2>/dev/null; then
22400 as_mkdir_p='mkdir -p "$as_dir"'
22401 else
22402 test -d ./-p && rmdir ./-p
22403 as_mkdir_p=false
22404 fi
22405
22406 if test -x / >/dev/null 2>&1; then
22407 as_test_x='test -x'
22408 else
22409 if ls -dL / >/dev/null 2>&1; then
22410 as_ls_L_option=L
22411 else
22412 as_ls_L_option=
22413 fi
22414 as_test_x='
22415 eval sh -c '\''
22416 if test -d "$1"; then
22417 test -d "$1/.";
22418 else
22419 case $1 in #(
22420 -*)set "./$1";;
22421 esac;
22422 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22423 ???[sx]*):;;*)false;;esac;fi
22424 '\'' sh
22425 '
22426 fi
22427 as_executable_p=$as_test_x
22428
22429 # Sed expression to map a string onto a valid CPP name.
22430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22431
22432 # Sed expression to map a string onto a valid variable name.
22433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22434
22435
22436 exec 6>&1
22437 ## ----------------------------------- ##
22438 ## Main body of $CONFIG_STATUS script. ##
22439 ## ----------------------------------- ##
22440 _ASEOF
22441 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22442
22443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22444 # Save the log message, to keep $0 and so on meaningful, and to
22445 # report actual input values of CONFIG_FILES etc. instead of their
22446 # values after options handling.
22447 ac_log="
22448 This file was extended by emacs $as_me 24.1.50, which was
22449 generated by GNU Autoconf 2.65. Invocation command line was
22450
22451 CONFIG_FILES = $CONFIG_FILES
22452 CONFIG_HEADERS = $CONFIG_HEADERS
22453 CONFIG_LINKS = $CONFIG_LINKS
22454 CONFIG_COMMANDS = $CONFIG_COMMANDS
22455 $ $0 $@
22456
22457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22458 "
22459
22460 _ACEOF
22461
22462 case $ac_config_files in *"
22463 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22464 esac
22465
22466 case $ac_config_headers in *"
22467 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22468 esac
22469
22470
22471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22472 # Files that config.status was made for.
22473 config_files="$ac_config_files"
22474 config_headers="$ac_config_headers"
22475 config_commands="$ac_config_commands"
22476
22477 _ACEOF
22478
22479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22480 ac_cs_usage="\
22481 \`$as_me' instantiates files and other configuration actions
22482 from templates according to the current configuration. Unless the files
22483 and actions are specified as TAGs, all are instantiated by default.
22484
22485 Usage: $0 [OPTION]... [TAG]...
22486
22487 -h, --help print this help, then exit
22488 -V, --version print version number and configuration settings, then exit
22489 --config print configuration, then exit
22490 -q, --quiet, --silent
22491 do not print progress messages
22492 -d, --debug don't remove temporary files
22493 --recheck update $as_me by reconfiguring in the same conditions
22494 --file=FILE[:TEMPLATE]
22495 instantiate the configuration file FILE
22496 --header=FILE[:TEMPLATE]
22497 instantiate the configuration header FILE
22498
22499 Configuration files:
22500 $config_files
22501
22502 Configuration headers:
22503 $config_headers
22504
22505 Configuration commands:
22506 $config_commands
22507
22508 Report bugs to the package provider."
22509
22510 _ACEOF
22511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22512 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22513 ac_cs_version="\\
22514 emacs config.status 24.1.50
22515 configured by $0, generated by GNU Autoconf 2.65,
22516 with options \\"\$ac_cs_config\\"
22517
22518 Copyright (C) 2009 Free Software Foundation, Inc.
22519 This config.status script is free software; the Free Software Foundation
22520 gives unlimited permission to copy, distribute and modify it."
22521
22522 ac_pwd='$ac_pwd'
22523 srcdir='$srcdir'
22524 INSTALL='$INSTALL'
22525 MKDIR_P='$MKDIR_P'
22526 AWK='$AWK'
22527 test -n "\$AWK" || AWK=awk
22528 _ACEOF
22529
22530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22531 # The default lists apply if the user does not specify any file.
22532 ac_need_defaults=:
22533 while test $# != 0
22534 do
22535 case $1 in
22536 --*=*)
22537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22539 ac_shift=:
22540 ;;
22541 *)
22542 ac_option=$1
22543 ac_optarg=$2
22544 ac_shift=shift
22545 ;;
22546 esac
22547
22548 case $ac_option in
22549 # Handling of the options.
22550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22551 ac_cs_recheck=: ;;
22552 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22553 $as_echo "$ac_cs_version"; exit ;;
22554 --config | --confi | --conf | --con | --co | --c )
22555 $as_echo "$ac_cs_config"; exit ;;
22556 --debug | --debu | --deb | --de | --d | -d )
22557 debug=: ;;
22558 --file | --fil | --fi | --f )
22559 $ac_shift
22560 case $ac_optarg in
22561 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22562 esac
22563 as_fn_append CONFIG_FILES " '$ac_optarg'"
22564 ac_need_defaults=false;;
22565 --header | --heade | --head | --hea )
22566 $ac_shift
22567 case $ac_optarg in
22568 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22569 esac
22570 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22571 ac_need_defaults=false;;
22572 --he | --h)
22573 # Conflict between --help and --header
22574 as_fn_error "ambiguous option: \`$1'
22575 Try \`$0 --help' for more information.";;
22576 --help | --hel | -h )
22577 $as_echo "$ac_cs_usage"; exit ;;
22578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22580 ac_cs_silent=: ;;
22581
22582 # This is an error.
22583 -*) as_fn_error "unrecognized option: \`$1'
22584 Try \`$0 --help' for more information." ;;
22585
22586 *) as_fn_append ac_config_targets " $1"
22587 ac_need_defaults=false ;;
22588
22589 esac
22590 shift
22591 done
22592
22593 ac_configure_extra_args=
22594
22595 if $ac_cs_silent; then
22596 exec 6>/dev/null
22597 ac_configure_extra_args="$ac_configure_extra_args --silent"
22598 fi
22599
22600 _ACEOF
22601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22602 if \$ac_cs_recheck; then
22603 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22604 shift
22605 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22606 CONFIG_SHELL='$SHELL'
22607 export CONFIG_SHELL
22608 exec "\$@"
22609 fi
22610
22611 _ACEOF
22612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22613 exec 5>>config.log
22614 {
22615 echo
22616 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22617 ## Running $as_me. ##
22618 _ASBOX
22619 $as_echo "$ac_log"
22620 } >&5
22621
22622 _ACEOF
22623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22624 #
22625 # INIT-COMMANDS
22626 #
22627 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22628 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
22629
22630 _ACEOF
22631
22632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22633
22634 # Handling of arguments.
22635 for ac_config_target in $ac_config_targets
22636 do
22637 case $ac_config_target in
22638 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22639 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22640 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22641 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22642 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
22643 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22644 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
22645 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
22646 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
22647 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
22648 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22649 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22650 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22651 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22652 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
22653 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
22654 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
22655 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
22656 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
22657
22658 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22659 esac
22660 done
22661
22662
22663 # If the user did not use the arguments to specify the items to instantiate,
22664 # then the envvar interface is used. Set only those that are not.
22665 # We use the long form for the default assignment because of an extremely
22666 # bizarre bug on SunOS 4.1.3.
22667 if $ac_need_defaults; then
22668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22671 fi
22672
22673 # Have a temporary directory for convenience. Make it in the build tree
22674 # simply because there is no reason against having it here, and in addition,
22675 # creating and moving files from /tmp can sometimes cause problems.
22676 # Hook for its removal unless debugging.
22677 # Note that there is a small window in which the directory will not be cleaned:
22678 # after its creation but before its name has been assigned to `$tmp'.
22679 $debug ||
22680 {
22681 tmp=
22682 trap 'exit_status=$?
22683 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22684 ' 0
22685 trap 'as_fn_exit 1' 1 2 13 15
22686 }
22687 # Create a (secure) tmp directory for tmp files.
22688
22689 {
22690 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22691 test -n "$tmp" && test -d "$tmp"
22692 } ||
22693 {
22694 tmp=./conf$$-$RANDOM
22695 (umask 077 && mkdir "$tmp")
22696 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22697
22698 # Set up the scripts for CONFIG_FILES section.
22699 # No need to generate them if there are no CONFIG_FILES.
22700 # This happens for instance with `./config.status config.h'.
22701 if test -n "$CONFIG_FILES"; then
22702
22703 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
22704 ac_cs_awk_getline=:
22705 ac_cs_awk_pipe_init=
22706 ac_cs_awk_read_file='
22707 while ((getline aline < (F[key])) > 0)
22708 print(aline)
22709 close(F[key])'
22710 ac_cs_awk_pipe_fini=
22711 else
22712 ac_cs_awk_getline=false
22713 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
22714 ac_cs_awk_read_file='
22715 print "|#_!!_#|"
22716 print "cat " F[key] " &&"
22717 '$ac_cs_awk_pipe_init
22718 # The final `:' finishes the AND list.
22719 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
22720 fi
22721 ac_cr=`echo X | tr X '\015'`
22722 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22723 # But we know of no other shell where ac_cr would be empty at this
22724 # point, so we can use a bashism as a fallback.
22725 if test "x$ac_cr" = x; then
22726 eval ac_cr=\$\'\\r\'
22727 fi
22728 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22729 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22730 ac_cs_awk_cr='\r'
22731 else
22732 ac_cs_awk_cr=$ac_cr
22733 fi
22734
22735 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22736 _ACEOF
22737
22738 # Create commands to substitute file output variables.
22739 {
22740 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22741 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22742 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
22743 echo "_ACAWK" &&
22744 echo "_ACEOF"
22745 } >conf$$files.sh &&
22746 . ./conf$$files.sh ||
22747 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22748 rm -f conf$$files.sh
22749
22750 {
22751 echo "cat >conf$$subs.awk <<_ACEOF" &&
22752 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22753 echo "_ACEOF"
22754 } >conf$$subs.sh ||
22755 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22756 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22757 ac_delim='%!_!# '
22758 for ac_last_try in false false false false false :; do
22759 . ./conf$$subs.sh ||
22760 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22761
22762 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22763 if test $ac_delim_n = $ac_delim_num; then
22764 break
22765 elif $ac_last_try; then
22766 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22767 else
22768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22769 fi
22770 done
22771 rm -f conf$$subs.sh
22772
22773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22774 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22775 _ACEOF
22776 sed -n '
22777 h
22778 s/^/S["/; s/!.*/"]=/
22779 p
22780 g
22781 s/^[^!]*!//
22782 :repl
22783 t repl
22784 s/'"$ac_delim"'$//
22785 t delim
22786 :nl
22787 h
22788 s/\(.\{148\}\)..*/\1/
22789 t more1
22790 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22791 p
22792 n
22793 b repl
22794 :more1
22795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22796 p
22797 g
22798 s/.\{148\}//
22799 t nl
22800 :delim
22801 h
22802 s/\(.\{148\}\)..*/\1/
22803 t more2
22804 s/["\\]/\\&/g; s/^/"/; s/$/"/
22805 p
22806 b
22807 :more2
22808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22809 p
22810 g
22811 s/.\{148\}//
22812 t delim
22813 ' <conf$$subs.awk | sed '
22814 /^[^""]/{
22815 N
22816 s/\n//
22817 }
22818 ' >>$CONFIG_STATUS || ac_write_fail=1
22819 rm -f conf$$subs.awk
22820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22821 _ACAWK
22822 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22823 for (key in S) S_is_set[key] = 1
22824 FS = "\a"
22825 \$ac_cs_awk_pipe_init
22826 }
22827 {
22828 line = $ 0
22829 nfields = split(line, field, "@")
22830 substed = 0
22831 len = length(field[1])
22832 for (i = 2; i < nfields; i++) {
22833 key = field[i]
22834 keylen = length(key)
22835 if (S_is_set[key]) {
22836 value = S[key]
22837 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22838 len += length(value) + length(field[++i])
22839 substed = 1
22840 } else
22841 len += 1 + keylen
22842 }
22843 if (nfields == 3 && !substed) {
22844 key = field[2]
22845 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22846 \$ac_cs_awk_read_file
22847 next
22848 }
22849 }
22850 print line
22851 }
22852 \$ac_cs_awk_pipe_fini
22853 _ACAWK
22854 _ACEOF
22855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22857 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22858 else
22859 cat
22860 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22861 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22862 _ACEOF
22863
22864 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22865 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22866 # trailing colons and then remove the whole line if VPATH becomes empty
22867 # (actually we leave an empty line to preserve line numbers).
22868 if test "x$srcdir" = x.; then
22869 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22870 s/:*\$(srcdir):*/:/
22871 s/:*\${srcdir}:*/:/
22872 s/:*@srcdir@:*/:/
22873 s/^\([^=]*=[ ]*\):*/\1/
22874 s/:*$//
22875 s/^[^=]*=[ ]*$//
22876 }'
22877 fi
22878
22879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22880 fi # test -n "$CONFIG_FILES"
22881
22882 # Set up the scripts for CONFIG_HEADERS section.
22883 # No need to generate them if there are no CONFIG_HEADERS.
22884 # This happens for instance with `./config.status Makefile'.
22885 if test -n "$CONFIG_HEADERS"; then
22886 cat >"$tmp/defines.awk" <<\_ACAWK ||
22887 BEGIN {
22888 _ACEOF
22889
22890 # Transform confdefs.h into an awk script `defines.awk', embedded as
22891 # here-document in config.status, that substitutes the proper values into
22892 # config.h.in to produce config.h.
22893
22894 # Create a delimiter string that does not exist in confdefs.h, to ease
22895 # handling of long lines.
22896 ac_delim='%!_!# '
22897 for ac_last_try in false false :; do
22898 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22899 if test -z "$ac_t"; then
22900 break
22901 elif $ac_last_try; then
22902 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22903 else
22904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22905 fi
22906 done
22907
22908 # For the awk script, D is an array of macro values keyed by name,
22909 # likewise P contains macro parameters if any. Preserve backslash
22910 # newline sequences.
22911
22912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22913 sed -n '
22914 s/.\{148\}/&'"$ac_delim"'/g
22915 t rset
22916 :rset
22917 s/^[ ]*#[ ]*define[ ][ ]*/ /
22918 t def
22919 d
22920 :def
22921 s/\\$//
22922 t bsnl
22923 s/["\\]/\\&/g
22924 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22925 D["\1"]=" \3"/p
22926 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22927 d
22928 :bsnl
22929 s/["\\]/\\&/g
22930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22931 D["\1"]=" \3\\\\\\n"\\/p
22932 t cont
22933 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22934 t cont
22935 d
22936 :cont
22937 n
22938 s/.\{148\}/&'"$ac_delim"'/g
22939 t clear
22940 :clear
22941 s/\\$//
22942 t bsnlc
22943 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22944 d
22945 :bsnlc
22946 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22947 b cont
22948 ' <confdefs.h | sed '
22949 s/'"$ac_delim"'/"\\\
22950 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22951
22952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22953 for (key in D) D_is_set[key] = 1
22954 FS = "\a"
22955 }
22956 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22957 line = \$ 0
22958 split(line, arg, " ")
22959 if (arg[1] == "#") {
22960 defundef = arg[2]
22961 mac1 = arg[3]
22962 } else {
22963 defundef = substr(arg[1], 2)
22964 mac1 = arg[2]
22965 }
22966 split(mac1, mac2, "(") #)
22967 macro = mac2[1]
22968 prefix = substr(line, 1, index(line, defundef) - 1)
22969 if (D_is_set[macro]) {
22970 # Preserve the white space surrounding the "#".
22971 print prefix "define", macro P[macro] D[macro]
22972 next
22973 } else {
22974 # Replace #undef with comments. This is necessary, for example,
22975 # in the case of _POSIX_SOURCE, which is predefined and required
22976 # on some systems where configure will not decide to define it.
22977 if (defundef == "undef") {
22978 print "/*", prefix defundef, macro, "*/"
22979 next
22980 }
22981 }
22982 }
22983 { print }
22984 _ACAWK
22985 _ACEOF
22986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22987 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22988 fi # test -n "$CONFIG_HEADERS"
22989
22990
22991 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22992 shift
22993 for ac_tag
22994 do
22995 case $ac_tag in
22996 :[FHLC]) ac_mode=$ac_tag; continue;;
22997 esac
22998 case $ac_mode$ac_tag in
22999 :[FHL]*:*);;
23000 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23001 :[FH]-) ac_tag=-:-;;
23002 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23003 esac
23004 ac_save_IFS=$IFS
23005 IFS=:
23006 set x $ac_tag
23007 IFS=$ac_save_IFS
23008 shift
23009 ac_file=$1
23010 shift
23011
23012 case $ac_mode in
23013 :L) ac_source=$1;;
23014 :[FH])
23015 ac_file_inputs=
23016 for ac_f
23017 do
23018 case $ac_f in
23019 -) ac_f="$tmp/stdin";;
23020 *) # Look for the file first in the build tree, then in the source tree
23021 # (if the path is not absolute). The absolute path cannot be DOS-style,
23022 # because $ac_f cannot contain `:'.
23023 test -f "$ac_f" ||
23024 case $ac_f in
23025 [\\/$]*) false;;
23026 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23027 esac ||
23028 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23029 esac
23030 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23031 as_fn_append ac_file_inputs " '$ac_f'"
23032 done
23033
23034 # Let's still pretend it is `configure' which instantiates (i.e., don't
23035 # use $as_me), people would be surprised to read:
23036 # /* config.h. Generated by config.status. */
23037 configure_input='Generated from '`
23038 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23039 `' by configure.'
23040 if test x"$ac_file" != x-; then
23041 configure_input="$ac_file. $configure_input"
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23043 $as_echo "$as_me: creating $ac_file" >&6;}
23044 fi
23045 # Neutralize special characters interpreted by sed in replacement strings.
23046 case $configure_input in #(
23047 *\&* | *\|* | *\\* )
23048 ac_sed_conf_input=`$as_echo "$configure_input" |
23049 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23050 *) ac_sed_conf_input=$configure_input;;
23051 esac
23052
23053 case $ac_tag in
23054 *:-:* | *:-) cat >"$tmp/stdin" \
23055 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23056 esac
23057 ;;
23058 esac
23059
23060 ac_dir=`$as_dirname -- "$ac_file" ||
23061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23062 X"$ac_file" : 'X\(//\)[^/]' \| \
23063 X"$ac_file" : 'X\(//\)$' \| \
23064 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23065 $as_echo X"$ac_file" |
23066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23067 s//\1/
23068 q
23069 }
23070 /^X\(\/\/\)[^/].*/{
23071 s//\1/
23072 q
23073 }
23074 /^X\(\/\/\)$/{
23075 s//\1/
23076 q
23077 }
23078 /^X\(\/\).*/{
23079 s//\1/
23080 q
23081 }
23082 s/.*/./; q'`
23083 as_dir="$ac_dir"; as_fn_mkdir_p
23084 ac_builddir=.
23085
23086 case "$ac_dir" in
23087 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23088 *)
23089 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23090 # A ".." for each directory in $ac_dir_suffix.
23091 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23092 case $ac_top_builddir_sub in
23093 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23094 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23095 esac ;;
23096 esac
23097 ac_abs_top_builddir=$ac_pwd
23098 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23099 # for backward compatibility:
23100 ac_top_builddir=$ac_top_build_prefix
23101
23102 case $srcdir in
23103 .) # We are building in place.
23104 ac_srcdir=.
23105 ac_top_srcdir=$ac_top_builddir_sub
23106 ac_abs_top_srcdir=$ac_pwd ;;
23107 [\\/]* | ?:[\\/]* ) # Absolute name.
23108 ac_srcdir=$srcdir$ac_dir_suffix;
23109 ac_top_srcdir=$srcdir
23110 ac_abs_top_srcdir=$srcdir ;;
23111 *) # Relative name.
23112 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23113 ac_top_srcdir=$ac_top_build_prefix$srcdir
23114 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23115 esac
23116 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23117
23118
23119 case $ac_mode in
23120 :F)
23121 #
23122 # CONFIG_FILE
23123 #
23124
23125 case $INSTALL in
23126 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23127 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23128 esac
23129 ac_MKDIR_P=$MKDIR_P
23130 case $MKDIR_P in
23131 [\\/$]* | ?:[\\/]* ) ;;
23132 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23133 esac
23134 _ACEOF
23135
23136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23137 # If the template does not know about datarootdir, expand it.
23138 # FIXME: This hack should be removed a few years after 2.60.
23139 ac_datarootdir_hack=; ac_datarootdir_seen=
23140 ac_sed_dataroot='
23141 /datarootdir/ {
23142 p
23143 q
23144 }
23145 /@datadir@/p
23146 /@docdir@/p
23147 /@infodir@/p
23148 /@localedir@/p
23149 /@mandir@/p'
23150 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23151 *datarootdir*) ac_datarootdir_seen=yes;;
23152 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23154 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23155 _ACEOF
23156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23157 ac_datarootdir_hack='
23158 s&@datadir@&$datadir&g
23159 s&@docdir@&$docdir&g
23160 s&@infodir@&$infodir&g
23161 s&@localedir@&$localedir&g
23162 s&@mandir@&$mandir&g
23163 s&\\\${datarootdir}&$datarootdir&g' ;;
23164 esac
23165 _ACEOF
23166
23167 # Neutralize VPATH when `$srcdir' = `.'.
23168 # Shell code in configure.ac might set extrasub.
23169 # FIXME: do we really want to maintain this feature?
23170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23171 ac_sed_extra="$ac_vpsub
23172 $extrasub
23173 _ACEOF
23174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23175 :t
23176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23177 s|@configure_input@|$ac_sed_conf_input|;t t
23178 s&@top_builddir@&$ac_top_builddir_sub&;t t
23179 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23180 s&@srcdir@&$ac_srcdir&;t t
23181 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23182 s&@top_srcdir@&$ac_top_srcdir&;t t
23183 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23184 s&@builddir@&$ac_builddir&;t t
23185 s&@abs_builddir@&$ac_abs_builddir&;t t
23186 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23187 s&@INSTALL@&$ac_INSTALL&;t t
23188 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23189 $ac_datarootdir_hack
23190 "
23191 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23192 if $ac_cs_awk_getline; then
23193 $AWK -f "$tmp/subs.awk"
23194 else
23195 $AWK -f "$tmp/subs.awk" | $SHELL
23196 fi >$tmp/out \
23197 || as_fn_error "could not create $ac_file" "$LINENO" 5
23198
23199 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23200 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23203 which seems to be undefined. Please make sure it is defined." >&5
23204 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23205 which seems to be undefined. Please make sure it is defined." >&2;}
23206
23207 rm -f "$tmp/stdin"
23208 case $ac_file in
23209 -) cat "$tmp/out" && rm -f "$tmp/out";;
23210 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23211 esac \
23212 || as_fn_error "could not create $ac_file" "$LINENO" 5
23213 ;;
23214 :H)
23215 #
23216 # CONFIG_HEADER
23217 #
23218 if test x"$ac_file" != x-; then
23219 {
23220 $as_echo "/* $configure_input */" \
23221 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23222 } >"$tmp/config.h" \
23223 || as_fn_error "could not create $ac_file" "$LINENO" 5
23224 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23226 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23227 else
23228 rm -f "$ac_file"
23229 mv "$tmp/config.h" "$ac_file" \
23230 || as_fn_error "could not create $ac_file" "$LINENO" 5
23231 fi
23232 else
23233 $as_echo "/* $configure_input */" \
23234 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23235 || as_fn_error "could not create -" "$LINENO" 5
23236 fi
23237 # Compute "$ac_file"'s index in $config_headers.
23238 _am_arg="$ac_file"
23239 _am_stamp_count=1
23240 for _am_header in $config_headers :; do
23241 case $_am_header in
23242 $_am_arg | $_am_arg:* )
23243 break ;;
23244 * )
23245 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23246 esac
23247 done
23248 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23249 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23250 X"$_am_arg" : 'X\(//\)[^/]' \| \
23251 X"$_am_arg" : 'X\(//\)$' \| \
23252 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23253 $as_echo X"$_am_arg" |
23254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23255 s//\1/
23256 q
23257 }
23258 /^X\(\/\/\)[^/].*/{
23259 s//\1/
23260 q
23261 }
23262 /^X\(\/\/\)$/{
23263 s//\1/
23264 q
23265 }
23266 /^X\(\/\).*/{
23267 s//\1/
23268 q
23269 }
23270 s/.*/./; q'`/stamp-h$_am_stamp_count
23271 ;;
23272
23273 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23274 $as_echo "$as_me: executing $ac_file commands" >&6;}
23275 ;;
23276 esac
23277
23278
23279 case $ac_file$ac_mode in
23280 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23281 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23282 # are listed without --file. Let's play safe and only enable the eval
23283 # if we detect the quoting.
23284 case $CONFIG_FILES in
23285 *\'*) eval set x "$CONFIG_FILES" ;;
23286 *) set x $CONFIG_FILES ;;
23287 esac
23288 shift
23289 for mf
23290 do
23291 # Strip MF so we end up with the name of the file.
23292 mf=`echo "$mf" | sed -e 's/:.*$//'`
23293 # Check whether this is an Automake generated Makefile or not.
23294 # We used to match only the files named `Makefile.in', but
23295 # some people rename them; so instead we look at the file content.
23296 # Grep'ing the first line is not enough: some people post-process
23297 # each Makefile.in and add a new line on top of each file to say so.
23298 # Grep'ing the whole file is not good either: AIX grep has a line
23299 # limit of 2048, but all sed's we know have understand at least 4000.
23300 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23301 dirpart=`$as_dirname -- "$mf" ||
23302 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23303 X"$mf" : 'X\(//\)[^/]' \| \
23304 X"$mf" : 'X\(//\)$' \| \
23305 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23306 $as_echo X"$mf" |
23307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23308 s//\1/
23309 q
23310 }
23311 /^X\(\/\/\)[^/].*/{
23312 s//\1/
23313 q
23314 }
23315 /^X\(\/\/\)$/{
23316 s//\1/
23317 q
23318 }
23319 /^X\(\/\).*/{
23320 s//\1/
23321 q
23322 }
23323 s/.*/./; q'`
23324 else
23325 continue
23326 fi
23327 # Extract the definition of DEPDIR, am__include, and am__quote
23328 # from the Makefile without running `make'.
23329 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23330 test -z "$DEPDIR" && continue
23331 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23332 test -z "am__include" && continue
23333 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23334 # When using ansi2knr, U may be empty or an underscore; expand it
23335 U=`sed -n 's/^U = //p' < "$mf"`
23336 # Find all dependency output files, they are included files with
23337 # $(DEPDIR) in their names. We invoke sed twice because it is the
23338 # simplest approach to changing $(DEPDIR) to its actual value in the
23339 # expansion.
23340 for file in `sed -n "
23341 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23342 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23343 # Make sure the directory exists.
23344 test -f "$dirpart/$file" && continue
23345 fdir=`$as_dirname -- "$file" ||
23346 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23347 X"$file" : 'X\(//\)[^/]' \| \
23348 X"$file" : 'X\(//\)$' \| \
23349 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23350 $as_echo X"$file" |
23351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23352 s//\1/
23353 q
23354 }
23355 /^X\(\/\/\)[^/].*/{
23356 s//\1/
23357 q
23358 }
23359 /^X\(\/\/\)$/{
23360 s//\1/
23361 q
23362 }
23363 /^X\(\/\).*/{
23364 s//\1/
23365 q
23366 }
23367 s/.*/./; q'`
23368 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23369 # echo "creating $dirpart/$file"
23370 echo '# dummy' > "$dirpart/$file"
23371 done
23372 done
23373 }
23374 ;;
23375 "mkdirs":C)
23376 for dir in etc lisp ; do
23377 test -d ${dir} || mkdir ${dir}
23378 done
23379 ;;
23380 "epaths":C)
23381 echo creating src/epaths.h
23382 ${MAKE-make} epaths-force
23383 ;;
23384 "gdbinit":C)
23385 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23386 echo creating src/.gdbinit
23387 echo source $srcdir/src/.gdbinit > src/.gdbinit
23388 fi
23389 ;;
23390
23391 esac
23392 done # for ac_tag
23393
23394
23395 as_fn_exit 0
23396 _ACEOF
23397 ac_clean_files=$ac_clean_files_save
23398
23399 test $ac_write_fail = 0 ||
23400 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23401
23402
23403 # configure is writing to config.log, and then calls config.status.
23404 # config.status does its own redirection, appending to config.log.
23405 # Unfortunately, on DOS this fails, as config.log is still kept open
23406 # by configure, so config.status won't be able to write to it; its
23407 # output is simply discarded. So we exec the FD to /dev/null,
23408 # effectively closing config.log, so it can be properly (re)opened and
23409 # appended to by config.status. When coming back to configure, we
23410 # need to make the FD available again.
23411 if test "$no_create" != yes; then
23412 ac_cs_success=:
23413 ac_config_status_args=
23414 test "$silent" = yes &&
23415 ac_config_status_args="$ac_config_status_args --quiet"
23416 exec 5>/dev/null
23417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23418 exec 5>>config.log
23419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23420 # would make configure fail if this is the last instruction.
23421 $ac_cs_success || as_fn_exit $?
23422 fi
23423 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23425 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23426 fi
23427
23428