]> code.delx.au - gnu-emacs/blob - autogen/configure
Auto-commit of generated files.
[gnu-emacs] / 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.0.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.0.50'
553 PACKAGE_STRING='emacs 24.0.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_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
627 LTLIBINTL
628 LIBINTL
629 HAVE_UNISTD_H
630 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
631 NEXT_UNISTD_H
632 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
633 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
634 TIME_H_DEFINES_STRUCT_TIMESPEC
635 NEXT_AS_FIRST_DIRECTIVE_TIME_H
636 NEXT_TIME_H
637 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
638 NEXT_SYS_STAT_H
639 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
640 NEXT_STDLIB_H
641 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
642 NEXT_STDIO_H
643 REPLACE_VSPRINTF
644 REPLACE_VSNPRINTF
645 REPLACE_VPRINTF
646 REPLACE_VFPRINTF
647 REPLACE_VDPRINTF
648 REPLACE_VASPRINTF
649 REPLACE_TMPFILE
650 REPLACE_STDIO_WRITE_FUNCS
651 REPLACE_STDIO_READ_FUNCS
652 REPLACE_SPRINTF
653 REPLACE_SNPRINTF
654 REPLACE_RENAMEAT
655 REPLACE_RENAME
656 REPLACE_REMOVE
657 REPLACE_PRINTF
658 REPLACE_POPEN
659 REPLACE_PERROR
660 REPLACE_OBSTACK_PRINTF
661 REPLACE_GETLINE
662 REPLACE_GETDELIM
663 REPLACE_FTELLO
664 REPLACE_FTELL
665 REPLACE_FSEEKO
666 REPLACE_FSEEK
667 REPLACE_FREOPEN
668 REPLACE_FPURGE
669 REPLACE_FPRINTF
670 REPLACE_FOPEN
671 REPLACE_FFLUSH
672 REPLACE_FCLOSE
673 REPLACE_DPRINTF
674 HAVE_VDPRINTF
675 HAVE_VASPRINTF
676 HAVE_RENAMEAT
677 HAVE_FTELLO
678 HAVE_FSEEKO
679 HAVE_DPRINTF
680 HAVE_DECL_VSNPRINTF
681 HAVE_DECL_SNPRINTF
682 HAVE_DECL_OBSTACK_PRINTF
683 HAVE_DECL_GETLINE
684 HAVE_DECL_GETDELIM
685 HAVE_DECL_FTELLO
686 HAVE_DECL_FSEEKO
687 HAVE_DECL_FPURGE
688 GNULIB_VSPRINTF_POSIX
689 GNULIB_VSNPRINTF
690 GNULIB_VPRINTF_POSIX
691 GNULIB_VPRINTF
692 GNULIB_VFPRINTF_POSIX
693 GNULIB_VFPRINTF
694 GNULIB_VDPRINTF
695 GNULIB_VSCANF
696 GNULIB_VFSCANF
697 GNULIB_VASPRINTF
698 GNULIB_TMPFILE
699 GNULIB_STDIO_H_SIGPIPE
700 GNULIB_STDIO_H_NONBLOCKING
701 GNULIB_SPRINTF_POSIX
702 GNULIB_SNPRINTF
703 GNULIB_SCANF
704 GNULIB_RENAMEAT
705 GNULIB_RENAME
706 GNULIB_REMOVE
707 GNULIB_PUTS
708 GNULIB_PUTCHAR
709 GNULIB_PUTC
710 GNULIB_PRINTF_POSIX
711 GNULIB_PRINTF
712 GNULIB_POPEN
713 GNULIB_PERROR
714 GNULIB_OBSTACK_PRINTF_POSIX
715 GNULIB_OBSTACK_PRINTF
716 GNULIB_GETS
717 GNULIB_GETLINE
718 GNULIB_GETDELIM
719 GNULIB_GETCHAR
720 GNULIB_GETC
721 GNULIB_FWRITE
722 GNULIB_FTELLO
723 GNULIB_FTELL
724 GNULIB_FSEEKO
725 GNULIB_FSEEK
726 GNULIB_FSCANF
727 GNULIB_FREOPEN
728 GNULIB_FREAD
729 GNULIB_FPUTS
730 GNULIB_FPUTC
731 GNULIB_FPURGE
732 GNULIB_FPRINTF_POSIX
733 GNULIB_FPRINTF
734 GNULIB_FOPEN
735 GNULIB_FGETS
736 GNULIB_FGETC
737 GNULIB_FFLUSH
738 GNULIB_FCLOSE
739 GNULIB_DPRINTF
740 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
741 NEXT_STDDEF_H
742 GL_GENERATE_STDDEF_H_FALSE
743 GL_GENERATE_STDDEF_H_TRUE
744 STDDEF_H
745 HAVE_WCHAR_T
746 REPLACE_NULL
747 HAVE__BOOL
748 GL_GENERATE_STDBOOL_H_FALSE
749 GL_GENERATE_STDBOOL_H_TRUE
750 STDBOOL_H
751 GL_GENERATE_STDARG_H_FALSE
752 GL_GENERATE_STDARG_H_TRUE
753 STDARG_H
754 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
755 NEXT_STDARG_H
756 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
757 NEXT_SIGNAL_H
758 REPLACE_PTHREAD_SIGMASK
759 HAVE_SIGHANDLER_T
760 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
761 HAVE_STRUCT_SIGACTION_SA_SIGACTION
762 HAVE_SIGACTION
763 HAVE_SIGINFO_T
764 HAVE_SIGSET_T
765 HAVE_PTHREAD_SIGMASK
766 HAVE_POSIX_SIGNALBLOCKING
767 GNULIB_SIGACTION
768 GNULIB_SIGPROCMASK
769 GNULIB_SIGNAL_H_SIGPIPE
770 GNULIB_PTHREAD_SIGMASK
771 LIB_PTHREAD_SIGMASK
772 REPLACE_TIMEGM
773 REPLACE_NANOSLEEP
774 REPLACE_MKTIME
775 REPLACE_LOCALTIME_R
776 HAVE_TIMEGM
777 HAVE_STRPTIME
778 HAVE_NANOSLEEP
779 HAVE_DECL_LOCALTIME_R
780 GNULIB_TIME_R
781 GNULIB_TIMEGM
782 GNULIB_STRPTIME
783 GNULIB_NANOSLEEP
784 GNULIB_MKTIME
785 REPLACE_UTIMENSAT
786 REPLACE_STAT
787 REPLACE_MKNOD
788 REPLACE_MKFIFO
789 REPLACE_MKDIR
790 REPLACE_LSTAT
791 REPLACE_FUTIMENS
792 REPLACE_FSTATAT
793 REPLACE_FSTAT
794 HAVE_UTIMENSAT
795 HAVE_MKNODAT
796 HAVE_MKNOD
797 HAVE_MKFIFOAT
798 HAVE_MKFIFO
799 HAVE_MKDIRAT
800 HAVE_LSTAT
801 HAVE_LCHMOD
802 HAVE_FUTIMENS
803 HAVE_FSTATAT
804 HAVE_FCHMODAT
805 GNULIB_UTIMENSAT
806 GNULIB_STAT
807 GNULIB_MKNODAT
808 GNULIB_MKNOD
809 GNULIB_MKFIFOAT
810 GNULIB_MKFIFO
811 GNULIB_MKDIRAT
812 GNULIB_LSTAT
813 GNULIB_LCHMOD
814 GNULIB_FUTIMENS
815 GNULIB_FSTATAT
816 GNULIB_FCHMODAT
817 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
818 NEXT_INTTYPES_H
819 UINT64_MAX_EQ_ULONG_MAX
820 UINT32_MAX_LT_UINTMAX_MAX
821 PRIPTR_PREFIX
822 PRI_MACROS_BROKEN
823 INT64_MAX_EQ_LONG_MAX
824 INT32_MAX_LT_INTMAX_MAX
825 HAVE_DECL_STRTOUMAX
826 HAVE_DECL_STRTOIMAX
827 HAVE_DECL_IMAXDIV
828 HAVE_DECL_IMAXABS
829 GNULIB_STRTOUMAX
830 GNULIB_STRTOIMAX
831 GNULIB_IMAXDIV
832 GNULIB_IMAXABS
833 GL_GENERATE_STDINT_H_FALSE
834 GL_GENERATE_STDINT_H_TRUE
835 STDINT_H
836 WINT_T_SUFFIX
837 WCHAR_T_SUFFIX
838 SIG_ATOMIC_T_SUFFIX
839 SIZE_T_SUFFIX
840 PTRDIFF_T_SUFFIX
841 HAVE_SIGNED_WINT_T
842 HAVE_SIGNED_WCHAR_T
843 HAVE_SIGNED_SIG_ATOMIC_T
844 BITSIZEOF_WINT_T
845 BITSIZEOF_WCHAR_T
846 BITSIZEOF_SIG_ATOMIC_T
847 BITSIZEOF_SIZE_T
848 BITSIZEOF_PTRDIFF_T
849 APPLE_UNIVERSAL_BUILD
850 HAVE_SYS_BITYPES_H
851 HAVE_SYS_INTTYPES_H
852 HAVE_STDINT_H
853 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
854 NEXT_STDINT_H
855 HAVE_SYS_TYPES_H
856 HAVE_INTTYPES_H
857 HAVE_WCHAR_H
858 HAVE_UNSIGNED_LONG_LONG_INT
859 HAVE_LONG_LONG_INT
860 GETOPT_H
861 HAVE_GETOPT_H
862 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
863 NEXT_GETOPT_H
864 PRAGMA_COLUMNS
865 PRAGMA_SYSTEM_HEADER
866 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
867 INCLUDE_NEXT
868 GETLOADAVG_LIBS
869 REPLACE_WCTOMB
870 REPLACE_UNSETENV
871 REPLACE_STRTOD
872 REPLACE_SETENV
873 REPLACE_REALPATH
874 REPLACE_REALLOC
875 REPLACE_PUTENV
876 REPLACE_MKSTEMP
877 REPLACE_MBTOWC
878 REPLACE_MALLOC
879 REPLACE_CANONICALIZE_FILE_NAME
880 REPLACE_CALLOC
881 HAVE_DECL_UNSETENV
882 HAVE_UNLOCKPT
883 HAVE_SYS_LOADAVG_H
884 HAVE_STRUCT_RANDOM_DATA
885 HAVE_STRTOULL
886 HAVE_STRTOLL
887 HAVE_STRTOD
888 HAVE_DECL_SETENV
889 HAVE_SETENV
890 HAVE_RPMATCH
891 HAVE_REALPATH
892 HAVE_RANDOM_R
893 HAVE_RANDOM_H
894 HAVE_PTSNAME
895 HAVE_MKSTEMPS
896 HAVE_MKSTEMP
897 HAVE_MKOSTEMPS
898 HAVE_MKOSTEMP
899 HAVE_MKDTEMP
900 HAVE_GRANTPT
901 HAVE_GETSUBOPT
902 HAVE_DECL_GETLOADAVG
903 HAVE_CANONICALIZE_FILE_NAME
904 HAVE_ATOLL
905 HAVE__EXIT
906 GNULIB_WCTOMB
907 GNULIB_UNSETENV
908 GNULIB_UNLOCKPT
909 GNULIB_SYSTEM_POSIX
910 GNULIB_STRTOULL
911 GNULIB_STRTOLL
912 GNULIB_STRTOD
913 GNULIB_SETENV
914 GNULIB_RPMATCH
915 GNULIB_REALPATH
916 GNULIB_REALLOC_POSIX
917 GNULIB_RANDOM_R
918 GNULIB_PUTENV
919 GNULIB_PTSNAME
920 GNULIB_MKSTEMPS
921 GNULIB_MKSTEMP
922 GNULIB_MKOSTEMPS
923 GNULIB_MKOSTEMP
924 GNULIB_MKDTEMP
925 GNULIB_MBTOWC
926 GNULIB_MALLOC_POSIX
927 GNULIB_GRANTPT
928 GNULIB_GETSUBOPT
929 GNULIB_GETLOADAVG
930 GNULIB_CANONICALIZE_FILE_NAME
931 GNULIB_CALLOC_POSIX
932 GNULIB_ATOLL
933 GNULIB__EXIT
934 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
935 UNISTD_H_HAVE_WINSOCK2_H
936 REPLACE_WRITE
937 REPLACE_USLEEP
938 REPLACE_UNLINKAT
939 REPLACE_UNLINK
940 REPLACE_TTYNAME_R
941 REPLACE_SYMLINK
942 REPLACE_SLEEP
943 REPLACE_RMDIR
944 REPLACE_READLINK
945 REPLACE_READ
946 REPLACE_PWRITE
947 REPLACE_PREAD
948 REPLACE_LSEEK
949 REPLACE_LINKAT
950 REPLACE_LINK
951 REPLACE_LCHOWN
952 REPLACE_GETPAGESIZE
953 REPLACE_GETGROUPS
954 REPLACE_GETLOGIN_R
955 REPLACE_GETDOMAINNAME
956 REPLACE_GETCWD
957 REPLACE_FCHOWNAT
958 REPLACE_DUP2
959 REPLACE_DUP
960 REPLACE_CLOSE
961 REPLACE_CHOWN
962 HAVE_SYS_PARAM_H
963 HAVE_OS_H
964 HAVE_DECL_TTYNAME_R
965 HAVE_DECL_GETUSERSHELL
966 HAVE_DECL_GETPAGESIZE
967 HAVE_DECL_GETLOGIN_R
968 HAVE_DECL_GETDOMAINNAME
969 HAVE_DECL_FCHDIR
970 HAVE_DECL_ENVIRON
971 HAVE_USLEEP
972 HAVE_UNLINKAT
973 HAVE_SYMLINKAT
974 HAVE_SYMLINK
975 HAVE_SLEEP
976 HAVE_READLINKAT
977 HAVE_READLINK
978 HAVE_PWRITE
979 HAVE_PREAD
980 HAVE_PIPE2
981 HAVE_PIPE
982 HAVE_LINKAT
983 HAVE_LINK
984 HAVE_LCHOWN
985 HAVE_GROUP_MEMBER
986 HAVE_GETPAGESIZE
987 HAVE_GETLOGIN
988 HAVE_GETHOSTNAME
989 HAVE_GETGROUPS
990 HAVE_GETDTABLESIZE
991 HAVE_FTRUNCATE
992 HAVE_FSYNC
993 HAVE_FCHOWNAT
994 HAVE_FCHDIR
995 HAVE_FACCESSAT
996 HAVE_EUIDACCESS
997 HAVE_DUP3
998 HAVE_DUP2
999 HAVE_CHOWN
1000 GNULIB_WRITE
1001 GNULIB_USLEEP
1002 GNULIB_UNLINKAT
1003 GNULIB_UNLINK
1004 GNULIB_UNISTD_H_SIGPIPE
1005 GNULIB_UNISTD_H_NONBLOCKING
1006 GNULIB_UNISTD_H_GETOPT
1007 GNULIB_TTYNAME_R
1008 GNULIB_SYMLINKAT
1009 GNULIB_SYMLINK
1010 GNULIB_SLEEP
1011 GNULIB_RMDIR
1012 GNULIB_READLINKAT
1013 GNULIB_READLINK
1014 GNULIB_READ
1015 GNULIB_PWRITE
1016 GNULIB_PREAD
1017 GNULIB_PIPE2
1018 GNULIB_PIPE
1019 GNULIB_LSEEK
1020 GNULIB_LINKAT
1021 GNULIB_LINK
1022 GNULIB_LCHOWN
1023 GNULIB_GROUP_MEMBER
1024 GNULIB_GETUSERSHELL
1025 GNULIB_GETPAGESIZE
1026 GNULIB_GETLOGIN_R
1027 GNULIB_GETLOGIN
1028 GNULIB_GETHOSTNAME
1029 GNULIB_GETGROUPS
1030 GNULIB_GETDTABLESIZE
1031 GNULIB_GETDOMAINNAME
1032 GNULIB_GETCWD
1033 GNULIB_FTRUNCATE
1034 GNULIB_FSYNC
1035 GNULIB_FCHOWNAT
1036 GNULIB_FCHDIR
1037 GNULIB_FACCESSAT
1038 GNULIB_EUIDACCESS
1039 GNULIB_ENVIRON
1040 GNULIB_DUP3
1041 GNULIB_DUP2
1042 GNULIB_CLOSE
1043 GNULIB_CHOWN
1044 GL_GENERATE_ALLOCA_H_FALSE
1045 GL_GENERATE_ALLOCA_H_TRUE
1046 ALLOCA_H
1047 ALLOCA
1048 GL_COND_LIBTOOL_FALSE
1049 GL_COND_LIBTOOL_TRUE
1050 POST_ALLOC_OBJ
1051 PRE_ALLOC_OBJ
1052 CYGWIN_OBJ
1053 RALLOC_OBJ
1054 OLDXMENU_DEPS
1055 LIBX_OTHER
1056 LIBXMENU
1057 OLDXMENU
1058 OLDXMENU_TARGET
1059 LIBXT_OTHER
1060 TOOLKIT_LIBW
1061 WIDGET_OBJ
1062 XOBJ
1063 XMENU_OBJ
1064 FONT_OBJ
1065 OTHER_FILES
1066 GNU_OBJC_CFLAGS
1067 ns_appsrc
1068 ns_appresdir
1069 ns_appbindir
1070 ns_appdir
1071 S_FILE
1072 M_FILE
1073 X_TOOLKIT_TYPE
1074 C_SWITCH_X_SYSTEM
1075 C_SWITCH_X_SITE
1076 LD_SWITCH_X_SITE
1077 gameuser
1078 gamedir
1079 bitmapdir
1080 archlibdir
1081 etcdir
1082 x_default_search_path
1083 lisppath
1084 locallisppath
1085 lispdir
1086 srcdir
1087 canonical
1088 configuration
1089 version
1090 KRB4LIB
1091 DESLIB
1092 KRB5LIB
1093 CRYPTOLIB
1094 COM_ERRLIB
1095 LIBRESOLV
1096 LIBHESIOD
1097 TERMCAP_OBJ
1098 LIBS_TERMCAP
1099 BLESSMAIL_TARGET
1100 LIBS_MAIL
1101 liblockfile
1102 LIBXML2_LIBS
1103 LIBXML2_CFLAGS
1104 LIBXSM
1105 LIBGPM
1106 LIBGIF
1107 LIBTIFF
1108 LIBPNG
1109 LIBJPEG
1110 LIBXPM
1111 M17N_FLT_LIBS
1112 M17N_FLT_CFLAGS
1113 LIBOTF_LIBS
1114 LIBOTF_CFLAGS
1115 FREETYPE_LIBS
1116 FREETYPE_CFLAGS
1117 XFT_LIBS
1118 XFT_CFLAGS
1119 FONTCONFIG_LIBS
1120 FONTCONFIG_CFLAGS
1121 LIBXMU
1122 LIBXTR6
1123 LIBGNUTLS_LIBS
1124 LIBGNUTLS_CFLAGS
1125 LIBSELINUX_LIBS
1126 SETTINGS_LIBS
1127 SETTINGS_CFLAGS
1128 GCONF_LIBS
1129 GCONF_CFLAGS
1130 GSETTINGS_LIBS
1131 GSETTINGS_CFLAGS
1132 DBUS_OBJ
1133 DBUS_LIBS
1134 DBUS_CFLAGS
1135 GTK_OBJ
1136 GTK_LIBS
1137 GTK_CFLAGS
1138 IMAGEMAGICK_LIBS
1139 IMAGEMAGICK_CFLAGS
1140 RSVG_LIBS
1141 RSVG_CFLAGS
1142 VMLIMIT_OBJ
1143 GMALLOC_OBJ
1144 HAVE_XSERVER
1145 LIB_STANDARD
1146 NS_OBJC_OBJ
1147 NS_OBJ
1148 TEMACS_LDFLAGS2
1149 LD_SWITCH_X_SITE_AUX_RPATH
1150 LD_SWITCH_X_SITE_AUX
1151 XMKMF
1152 DEPFLAGS
1153 MKDEPDIR
1154 CFLAGS_SOUND
1155 ALSA_LIBS
1156 ALSA_CFLAGS
1157 PKG_CONFIG
1158 LIBSOUND
1159 CRT_DIR
1160 START_FILES
1161 LIB_MATH
1162 LIBS_SYSTEM
1163 C_SWITCH_SYSTEM
1164 UNEXEC_OBJ
1165 C_SWITCH_MACHINE
1166 LD_SWITCH_SYSTEM
1167 CANNOT_DUMP
1168 HAVE_MAKEINFO
1169 GZIP_PROG
1170 INSTALL_INFO
1171 C_WARNINGS_SWITCH
1172 EGREP
1173 GREP
1174 CPP
1175 RANLIB
1176 am__fastdepCC_FALSE
1177 am__fastdepCC_TRUE
1178 CCDEPMODE
1179 AMDEPBACKSLASH
1180 AMDEP_FALSE
1181 AMDEP_TRUE
1182 am__quote
1183 am__include
1184 DEPDIR
1185 OBJEXT
1186 EXEEXT
1187 ac_ct_CC
1188 CPPFLAGS
1189 LDFLAGS
1190 CFLAGS
1191 CC
1192 host_os
1193 host_vendor
1194 host_cpu
1195 host
1196 build_os
1197 build_vendor
1198 build_cpu
1199 build
1200 PROFILING_CFLAGS
1201 MAINT
1202 GZIP_INFO
1203 am__untar
1204 am__tar
1205 AMTAR
1206 am__leading_dot
1207 SET_MAKE
1208 AWK
1209 mkdir_p
1210 MKDIR_P
1211 INSTALL_STRIP_PROGRAM
1212 STRIP
1213 install_sh
1214 MAKEINFO
1215 AUTOHEADER
1216 AUTOMAKE
1217 AUTOCONF
1218 ACLOCAL
1219 VERSION
1220 PACKAGE
1221 CYGPATH_W
1222 am__isrc
1223 INSTALL_DATA
1224 INSTALL_SCRIPT
1225 INSTALL_PROGRAM
1226 target_alias
1227 host_alias
1228 build_alias
1229 LIBS
1230 ECHO_T
1231 ECHO_N
1232 ECHO_C
1233 DEFS
1234 mandir
1235 localedir
1236 libdir
1237 psdir
1238 pdfdir
1239 dvidir
1240 htmldir
1241 infodir
1242 docdir
1243 oldincludedir
1244 includedir
1245 localstatedir
1246 sharedstatedir
1247 sysconfdir
1248 datadir
1249 datarootdir
1250 libexecdir
1251 sbindir
1252 bindir
1253 program_transform_name
1254 prefix
1255 exec_prefix
1256 PACKAGE_URL
1257 PACKAGE_BUGREPORT
1258 PACKAGE_STRING
1259 PACKAGE_VERSION
1260 PACKAGE_TARNAME
1261 PACKAGE_NAME
1262 PATH_SEPARATOR
1263 SHELL'
1264 ac_subst_files='deps_frag
1265 lisp_frag
1266 ns_frag'
1267 ac_user_opts='
1268 enable_option_checking
1269 with_pop
1270 with_kerberos
1271 with_kerberos5
1272 with_hesiod
1273 with_mmdf
1274 with_mail_unlink
1275 with_mailhost
1276 with_sound
1277 with_sync_input
1278 with_x_toolkit
1279 with_wide_int
1280 with_xpm
1281 with_jpeg
1282 with_tiff
1283 with_gif
1284 with_png
1285 with_rsvg
1286 with_xml2
1287 with_imagemagick
1288 with_xft
1289 with_libotf
1290 with_m17n_flt
1291 with_toolkit_scroll_bars
1292 with_xaw3d
1293 with_xim
1294 with_ns
1295 with_gpm
1296 with_dbus
1297 with_gconf
1298 with_gsettings
1299 with_selinux
1300 with_gnutls
1301 with_makeinfo
1302 with_compress_info
1303 with_pkg_config_prog
1304 with_crt_dir
1305 with_gameuser
1306 with_gnustep_conf
1307 enable_ns_self_contained
1308 enable_asserts
1309 enable_maintainer_mode
1310 enable_locallisppath
1311 enable_checking
1312 enable_use_lisp_union_type
1313 enable_profiling
1314 enable_autodepend
1315 enable_dependency_tracking
1316 enable_largefile
1317 with_x
1318 '
1319 ac_precious_vars='build_alias
1320 host_alias
1321 target_alias
1322 CC
1323 CFLAGS
1324 LDFLAGS
1325 LIBS
1326 CPPFLAGS
1327 CPP
1328 XMKMF'
1329
1330
1331 # Initialize some variables set by options.
1332 ac_init_help=
1333 ac_init_version=false
1334 ac_unrecognized_opts=
1335 ac_unrecognized_sep=
1336 # The variables have the same names as the options, with
1337 # dashes changed to underlines.
1338 cache_file=/dev/null
1339 exec_prefix=NONE
1340 no_create=
1341 no_recursion=
1342 prefix=NONE
1343 program_prefix=NONE
1344 program_suffix=NONE
1345 program_transform_name=s,x,x,
1346 silent=
1347 site=
1348 srcdir=
1349 verbose=
1350 x_includes=NONE
1351 x_libraries=NONE
1352
1353 # Installation directory options.
1354 # These are left unexpanded so users can "make install exec_prefix=/foo"
1355 # and all the variables that are supposed to be based on exec_prefix
1356 # by default will actually change.
1357 # Use braces instead of parens because sh, perl, etc. also accept them.
1358 # (The list follows the same order as the GNU Coding Standards.)
1359 bindir='${exec_prefix}/bin'
1360 sbindir='${exec_prefix}/sbin'
1361 libexecdir='${exec_prefix}/libexec'
1362 datarootdir='${prefix}/share'
1363 datadir='${datarootdir}'
1364 sysconfdir='${prefix}/etc'
1365 sharedstatedir='${prefix}/com'
1366 localstatedir='${prefix}/var'
1367 includedir='${prefix}/include'
1368 oldincludedir='/usr/include'
1369 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1370 infodir='${datarootdir}/info'
1371 htmldir='${docdir}'
1372 dvidir='${docdir}'
1373 pdfdir='${docdir}'
1374 psdir='${docdir}'
1375 libdir='${exec_prefix}/lib'
1376 localedir='${datarootdir}/locale'
1377 mandir='${datarootdir}/man'
1378
1379 ac_prev=
1380 ac_dashdash=
1381 for ac_option
1382 do
1383 # If the previous option needs an argument, assign it.
1384 if test -n "$ac_prev"; then
1385 eval $ac_prev=\$ac_option
1386 ac_prev=
1387 continue
1388 fi
1389
1390 case $ac_option in
1391 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1392 *) ac_optarg=yes ;;
1393 esac
1394
1395 # Accept the important Cygnus configure options, so we can diagnose typos.
1396
1397 case $ac_dashdash$ac_option in
1398 --)
1399 ac_dashdash=yes ;;
1400
1401 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1402 ac_prev=bindir ;;
1403 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1404 bindir=$ac_optarg ;;
1405
1406 -build | --build | --buil | --bui | --bu)
1407 ac_prev=build_alias ;;
1408 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1409 build_alias=$ac_optarg ;;
1410
1411 -cache-file | --cache-file | --cache-fil | --cache-fi \
1412 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1413 ac_prev=cache_file ;;
1414 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1415 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1416 cache_file=$ac_optarg ;;
1417
1418 --config-cache | -C)
1419 cache_file=config.cache ;;
1420
1421 -datadir | --datadir | --datadi | --datad)
1422 ac_prev=datadir ;;
1423 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1424 datadir=$ac_optarg ;;
1425
1426 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1427 | --dataroo | --dataro | --datar)
1428 ac_prev=datarootdir ;;
1429 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1430 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1431 datarootdir=$ac_optarg ;;
1432
1433 -disable-* | --disable-*)
1434 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1437 as_fn_error "invalid feature name: $ac_useropt"
1438 ac_useropt_orig=$ac_useropt
1439 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1440 case $ac_user_opts in
1441 *"
1442 "enable_$ac_useropt"
1443 "*) ;;
1444 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1445 ac_unrecognized_sep=', ';;
1446 esac
1447 eval enable_$ac_useropt=no ;;
1448
1449 -docdir | --docdir | --docdi | --doc | --do)
1450 ac_prev=docdir ;;
1451 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1452 docdir=$ac_optarg ;;
1453
1454 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1455 ac_prev=dvidir ;;
1456 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1457 dvidir=$ac_optarg ;;
1458
1459 -enable-* | --enable-*)
1460 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1461 # Reject names that are not valid shell variable names.
1462 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1463 as_fn_error "invalid feature name: $ac_useropt"
1464 ac_useropt_orig=$ac_useropt
1465 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1466 case $ac_user_opts in
1467 *"
1468 "enable_$ac_useropt"
1469 "*) ;;
1470 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1471 ac_unrecognized_sep=', ';;
1472 esac
1473 eval enable_$ac_useropt=\$ac_optarg ;;
1474
1475 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1476 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1477 | --exec | --exe | --ex)
1478 ac_prev=exec_prefix ;;
1479 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1480 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1481 | --exec=* | --exe=* | --ex=*)
1482 exec_prefix=$ac_optarg ;;
1483
1484 -gas | --gas | --ga | --g)
1485 # Obsolete; use --with-gas.
1486 with_gas=yes ;;
1487
1488 -help | --help | --hel | --he | -h)
1489 ac_init_help=long ;;
1490 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1491 ac_init_help=recursive ;;
1492 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1493 ac_init_help=short ;;
1494
1495 -host | --host | --hos | --ho)
1496 ac_prev=host_alias ;;
1497 -host=* | --host=* | --hos=* | --ho=*)
1498 host_alias=$ac_optarg ;;
1499
1500 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1501 ac_prev=htmldir ;;
1502 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1503 | --ht=*)
1504 htmldir=$ac_optarg ;;
1505
1506 -includedir | --includedir | --includedi | --included | --include \
1507 | --includ | --inclu | --incl | --inc)
1508 ac_prev=includedir ;;
1509 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1510 | --includ=* | --inclu=* | --incl=* | --inc=*)
1511 includedir=$ac_optarg ;;
1512
1513 -infodir | --infodir | --infodi | --infod | --info | --inf)
1514 ac_prev=infodir ;;
1515 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1516 infodir=$ac_optarg ;;
1517
1518 -libdir | --libdir | --libdi | --libd)
1519 ac_prev=libdir ;;
1520 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1521 libdir=$ac_optarg ;;
1522
1523 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1524 | --libexe | --libex | --libe)
1525 ac_prev=libexecdir ;;
1526 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1527 | --libexe=* | --libex=* | --libe=*)
1528 libexecdir=$ac_optarg ;;
1529
1530 -localedir | --localedir | --localedi | --localed | --locale)
1531 ac_prev=localedir ;;
1532 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1533 localedir=$ac_optarg ;;
1534
1535 -localstatedir | --localstatedir | --localstatedi | --localstated \
1536 | --localstate | --localstat | --localsta | --localst | --locals)
1537 ac_prev=localstatedir ;;
1538 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1539 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1540 localstatedir=$ac_optarg ;;
1541
1542 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1543 ac_prev=mandir ;;
1544 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1545 mandir=$ac_optarg ;;
1546
1547 -nfp | --nfp | --nf)
1548 # Obsolete; use --without-fp.
1549 with_fp=no ;;
1550
1551 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1552 | --no-cr | --no-c | -n)
1553 no_create=yes ;;
1554
1555 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1556 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1557 no_recursion=yes ;;
1558
1559 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1560 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1561 | --oldin | --oldi | --old | --ol | --o)
1562 ac_prev=oldincludedir ;;
1563 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1564 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1565 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1566 oldincludedir=$ac_optarg ;;
1567
1568 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1569 ac_prev=prefix ;;
1570 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1571 prefix=$ac_optarg ;;
1572
1573 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1574 | --program-pre | --program-pr | --program-p)
1575 ac_prev=program_prefix ;;
1576 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1577 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1578 program_prefix=$ac_optarg ;;
1579
1580 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1581 | --program-suf | --program-su | --program-s)
1582 ac_prev=program_suffix ;;
1583 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1584 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1585 program_suffix=$ac_optarg ;;
1586
1587 -program-transform-name | --program-transform-name \
1588 | --program-transform-nam | --program-transform-na \
1589 | --program-transform-n | --program-transform- \
1590 | --program-transform | --program-transfor \
1591 | --program-transfo | --program-transf \
1592 | --program-trans | --program-tran \
1593 | --progr-tra | --program-tr | --program-t)
1594 ac_prev=program_transform_name ;;
1595 -program-transform-name=* | --program-transform-name=* \
1596 | --program-transform-nam=* | --program-transform-na=* \
1597 | --program-transform-n=* | --program-transform-=* \
1598 | --program-transform=* | --program-transfor=* \
1599 | --program-transfo=* | --program-transf=* \
1600 | --program-trans=* | --program-tran=* \
1601 | --progr-tra=* | --program-tr=* | --program-t=*)
1602 program_transform_name=$ac_optarg ;;
1603
1604 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1605 ac_prev=pdfdir ;;
1606 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1607 pdfdir=$ac_optarg ;;
1608
1609 -psdir | --psdir | --psdi | --psd | --ps)
1610 ac_prev=psdir ;;
1611 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1612 psdir=$ac_optarg ;;
1613
1614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615 | -silent | --silent | --silen | --sile | --sil)
1616 silent=yes ;;
1617
1618 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1619 ac_prev=sbindir ;;
1620 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1621 | --sbi=* | --sb=*)
1622 sbindir=$ac_optarg ;;
1623
1624 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1625 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1626 | --sharedst | --shareds | --shared | --share | --shar \
1627 | --sha | --sh)
1628 ac_prev=sharedstatedir ;;
1629 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1630 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1631 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1632 | --sha=* | --sh=*)
1633 sharedstatedir=$ac_optarg ;;
1634
1635 -site | --site | --sit)
1636 ac_prev=site ;;
1637 -site=* | --site=* | --sit=*)
1638 site=$ac_optarg ;;
1639
1640 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1641 ac_prev=srcdir ;;
1642 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1643 srcdir=$ac_optarg ;;
1644
1645 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1646 | --syscon | --sysco | --sysc | --sys | --sy)
1647 ac_prev=sysconfdir ;;
1648 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1649 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1650 sysconfdir=$ac_optarg ;;
1651
1652 -target | --target | --targe | --targ | --tar | --ta | --t)
1653 ac_prev=target_alias ;;
1654 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1655 target_alias=$ac_optarg ;;
1656
1657 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1658 verbose=yes ;;
1659
1660 -version | --version | --versio | --versi | --vers | -V)
1661 ac_init_version=: ;;
1662
1663 -with-* | --with-*)
1664 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1665 # Reject names that are not valid shell variable names.
1666 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1667 as_fn_error "invalid package name: $ac_useropt"
1668 ac_useropt_orig=$ac_useropt
1669 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1670 case $ac_user_opts in
1671 *"
1672 "with_$ac_useropt"
1673 "*) ;;
1674 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1675 ac_unrecognized_sep=', ';;
1676 esac
1677 eval with_$ac_useropt=\$ac_optarg ;;
1678
1679 -without-* | --without-*)
1680 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1681 # Reject names that are not valid shell variable names.
1682 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1683 as_fn_error "invalid package name: $ac_useropt"
1684 ac_useropt_orig=$ac_useropt
1685 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1686 case $ac_user_opts in
1687 *"
1688 "with_$ac_useropt"
1689 "*) ;;
1690 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1691 ac_unrecognized_sep=', ';;
1692 esac
1693 eval with_$ac_useropt=no ;;
1694
1695 --x)
1696 # Obsolete; use --with-x.
1697 with_x=yes ;;
1698
1699 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1700 | --x-incl | --x-inc | --x-in | --x-i)
1701 ac_prev=x_includes ;;
1702 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1703 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1704 x_includes=$ac_optarg ;;
1705
1706 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1707 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1708 ac_prev=x_libraries ;;
1709 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1710 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1711 x_libraries=$ac_optarg ;;
1712
1713 -*) as_fn_error "unrecognized option: \`$ac_option'
1714 Try \`$0 --help' for more information."
1715 ;;
1716
1717 *=*)
1718 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1719 # Reject names that are not valid shell variable names.
1720 case $ac_envvar in #(
1721 '' | [0-9]* | *[!_$as_cr_alnum]* )
1722 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1723 esac
1724 eval $ac_envvar=\$ac_optarg
1725 export $ac_envvar ;;
1726
1727 *)
1728 # FIXME: should be removed in autoconf 3.0.
1729 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1730 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1731 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1732 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1733 ;;
1734
1735 esac
1736 done
1737
1738 if test -n "$ac_prev"; then
1739 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1740 as_fn_error "missing argument to $ac_option"
1741 fi
1742
1743 if test -n "$ac_unrecognized_opts"; then
1744 case $enable_option_checking in
1745 no) ;;
1746 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1747 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1748 esac
1749 fi
1750
1751 # Check all directory arguments for consistency.
1752 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1753 datadir sysconfdir sharedstatedir localstatedir includedir \
1754 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1755 libdir localedir mandir
1756 do
1757 eval ac_val=\$$ac_var
1758 # Remove trailing slashes.
1759 case $ac_val in
1760 */ )
1761 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1762 eval $ac_var=\$ac_val;;
1763 esac
1764 # Be sure to have absolute directory names.
1765 case $ac_val in
1766 [\\/$]* | ?:[\\/]* ) continue;;
1767 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1768 esac
1769 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1770 done
1771
1772 # There might be people who depend on the old broken behavior: `$host'
1773 # used to hold the argument of --host etc.
1774 # FIXME: To remove some day.
1775 build=$build_alias
1776 host=$host_alias
1777 target=$target_alias
1778
1779 # FIXME: To remove some day.
1780 if test "x$host_alias" != x; then
1781 if test "x$build_alias" = x; then
1782 cross_compiling=maybe
1783 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1784 If a cross compiler is detected then cross compile mode will be used." >&2
1785 elif test "x$build_alias" != "x$host_alias"; then
1786 cross_compiling=yes
1787 fi
1788 fi
1789
1790 ac_tool_prefix=
1791 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1792
1793 test "$silent" = yes && exec 6>/dev/null
1794
1795
1796 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1797 ac_ls_di=`ls -di .` &&
1798 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1799 as_fn_error "working directory cannot be determined"
1800 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1801 as_fn_error "pwd does not report name of working directory"
1802
1803
1804 # Find the source files, if location was not specified.
1805 if test -z "$srcdir"; then
1806 ac_srcdir_defaulted=yes
1807 # Try the directory containing this script, then the parent directory.
1808 ac_confdir=`$as_dirname -- "$as_myself" ||
1809 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1810 X"$as_myself" : 'X\(//\)[^/]' \| \
1811 X"$as_myself" : 'X\(//\)$' \| \
1812 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1813 $as_echo X"$as_myself" |
1814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1815 s//\1/
1816 q
1817 }
1818 /^X\(\/\/\)[^/].*/{
1819 s//\1/
1820 q
1821 }
1822 /^X\(\/\/\)$/{
1823 s//\1/
1824 q
1825 }
1826 /^X\(\/\).*/{
1827 s//\1/
1828 q
1829 }
1830 s/.*/./; q'`
1831 srcdir=$ac_confdir
1832 if test ! -r "$srcdir/$ac_unique_file"; then
1833 srcdir=..
1834 fi
1835 else
1836 ac_srcdir_defaulted=no
1837 fi
1838 if test ! -r "$srcdir/$ac_unique_file"; then
1839 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1840 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1841 fi
1842 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1843 ac_abs_confdir=`(
1844 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1845 pwd)`
1846 # When building in place, set srcdir=.
1847 if test "$ac_abs_confdir" = "$ac_pwd"; then
1848 srcdir=.
1849 fi
1850 # Remove unnecessary trailing slashes from srcdir.
1851 # Double slashes in file names in object file debugging info
1852 # mess up M-x gdb in Emacs.
1853 case $srcdir in
1854 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1855 esac
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1858 eval ac_env_${ac_var}_value=\$${ac_var}
1859 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1860 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1861 done
1862
1863 #
1864 # Report the --help message.
1865 #
1866 if test "$ac_init_help" = "long"; then
1867 # Omit some internal or obsolete options to make the list less imposing.
1868 # This message is too long to be a string in the A/UX 3.1 sh.
1869 cat <<_ACEOF
1870 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1871
1872 Usage: $0 [OPTION]... [VAR=VALUE]...
1873
1874 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1875 VAR=VALUE. See below for descriptions of some of the useful variables.
1876
1877 Defaults for the options are specified in brackets.
1878
1879 Configuration:
1880 -h, --help display this help and exit
1881 --help=short display options specific to this package
1882 --help=recursive display the short help of all the included packages
1883 -V, --version display version information and exit
1884 -q, --quiet, --silent do not print \`checking...' messages
1885 --cache-file=FILE cache test results in FILE [disabled]
1886 -C, --config-cache alias for \`--cache-file=config.cache'
1887 -n, --no-create do not create output files
1888 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1889
1890 Installation directories:
1891 --prefix=PREFIX install architecture-independent files in PREFIX
1892 [$ac_default_prefix]
1893 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1894 [PREFIX]
1895
1896 By default, \`make install' will install all the files in
1897 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1898 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1899 for instance \`--prefix=\$HOME'.
1900
1901 For better control, use the options below.
1902
1903 Fine tuning of the installation directories:
1904 --bindir=DIR user executables [EPREFIX/bin]
1905 --sbindir=DIR system admin executables [EPREFIX/sbin]
1906 --libexecdir=DIR program executables [EPREFIX/libexec]
1907 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1908 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1909 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1910 --libdir=DIR object code libraries [EPREFIX/lib]
1911 --includedir=DIR C header files [PREFIX/include]
1912 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1913 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1914 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1915 --infodir=DIR info documentation [DATAROOTDIR/info]
1916 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1917 --mandir=DIR man documentation [DATAROOTDIR/man]
1918 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1919 --htmldir=DIR html documentation [DOCDIR]
1920 --dvidir=DIR dvi documentation [DOCDIR]
1921 --pdfdir=DIR pdf documentation [DOCDIR]
1922 --psdir=DIR ps documentation [DOCDIR]
1923 _ACEOF
1924
1925 cat <<\_ACEOF
1926
1927 Program names:
1928 --program-prefix=PREFIX prepend PREFIX to installed program names
1929 --program-suffix=SUFFIX append SUFFIX to installed program names
1930 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1931
1932 X features:
1933 --x-includes=DIR X include files are in DIR
1934 --x-libraries=DIR X library files are in DIR
1935
1936 System types:
1937 --build=BUILD configure for building on BUILD [guessed]
1938 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1939 _ACEOF
1940 fi
1941
1942 if test -n "$ac_init_help"; then
1943 case $ac_init_help in
1944 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1945 esac
1946 cat <<\_ACEOF
1947
1948 Optional Features:
1949 --disable-option-checking ignore unrecognized --enable/--with options
1950 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1951 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1952 --disable-ns-self-contained
1953 disable self contained build under NeXTstep
1954 --enable-asserts compile code with asserts enabled
1955 --disable-maintainer-mode
1956 disable make rules and dependencies not useful (and
1957 sometimes confusing) to the casual installer
1958 --enable-locallisppath=PATH
1959 directories Emacs should search for lisp files
1960 specific to this site
1961 --enable-checking[=LIST]
1962 enable expensive run-time checks. With LIST, enable
1963 only specific categories of checks. Categories are:
1964 all,yes,no. Flags are: stringbytes, stringoverrun,
1965 stringfreelist, xmallocoverrun, conslist
1966 --enable-use-lisp-union-type
1967 use a union for the Lisp_Object data type. This is
1968 only useful for development for catching certain
1969 types of bugs.
1970 --enable-profiling build emacs with profiling support. This might not
1971 work on all platforms
1972 --enable-autodepend automatically generate dependencies to .h-files.
1973 Requires GNU Make and Gcc. Enabled if GNU Make and
1974 Gcc is found
1975 --disable-dependency-tracking speeds up one-time build
1976 --enable-dependency-tracking do not reject slow dependency extractors
1977 --disable-largefile omit support for large files
1978
1979 Optional Packages:
1980 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1981 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1982 --without-pop don't support POP mail retrieval with movemail
1983 --with-kerberos support Kerberos-authenticated POP
1984 --with-kerberos5 support Kerberos version 5 authenticated POP
1985 --with-hesiod support Hesiod to get the POP server host
1986 --with-mmdf support MMDF mailboxes
1987 --with-mail-unlink unlink, rather than empty, mail spool after reading
1988 --with-mailhost=HOSTNAME
1989 string giving default POP mail host
1990 --without-sound don't compile with sound support
1991 --without-sync-input process async input synchronously
1992 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1993 lucid or athena, motif, no)
1994 --with-wide-int prefer wide Emacs integers (typically 62-bit)
1995 --without-xpm don't compile with XPM image support
1996 --without-jpeg don't compile with JPEG image support
1997 --without-tiff don't compile with TIFF image support
1998 --without-gif don't compile with GIF image support
1999 --without-png don't compile with PNG image support
2000 --without-rsvg don't compile with SVG image support
2001 --without-xml2 don't compile with XML parsing support
2002 --without-imagemagick don't compile with ImageMagick image support
2003 --without-xft don't use XFT for anti aliased fonts
2004 --without-libotf don't use libotf for OpenType font support
2005 --without-m17n-flt don't use m17n-flt for text shaping
2006 --without-toolkit-scroll-bars
2007 don't use Motif or Xaw3d scroll bars
2008 --without-xaw3d don't use Xaw3d
2009 --without-xim don't use X11 XIM
2010 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2011 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2012 console
2013 --without-dbus don't compile with D-Bus support
2014 --without-gconf don't compile with GConf support
2015 --without-gsettings don't compile with GSettings support
2016 --without-selinux don't compile with SELinux support
2017 --without-gnutls don't use -lgnutls for SSL/TLS support
2018 --without-makeinfo don't require makeinfo for building manuals
2019 --without-compress-info don't compress the installed Info pages
2020 --with-pkg-config-prog=PATH
2021 path to pkg-config for finding GTK and librsvg
2022 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2023 /usr/lib, or /usr/lib64 on some platforms.
2024 --with-gameuser=USER user for shared game score files
2025 --with-gnustep-conf=PATH
2026 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2027 or /etc/GNUstep/GNUstep.conf
2028 --with-x use the X Window System
2029
2030 Some influential environment variables:
2031 CC C compiler command
2032 CFLAGS C compiler flags
2033 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2034 nonstandard directory <lib dir>
2035 LIBS libraries to pass to the linker, e.g. -l<library>
2036 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2037 you have headers in a nonstandard directory <include dir>
2038 CPP C preprocessor
2039 XMKMF Path to xmkmf, Makefile generator for X Window System
2040
2041 Use these variables to override the choices made by `configure' or to help
2042 it to find libraries and programs with nonstandard names/locations.
2043
2044 Report bugs to the package provider.
2045 _ACEOF
2046 ac_status=$?
2047 fi
2048
2049 if test "$ac_init_help" = "recursive"; then
2050 # If there are subdirs, report their specific --help.
2051 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2052 test -d "$ac_dir" ||
2053 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2054 continue
2055 ac_builddir=.
2056
2057 case "$ac_dir" in
2058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2059 *)
2060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2061 # A ".." for each directory in $ac_dir_suffix.
2062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2063 case $ac_top_builddir_sub in
2064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2066 esac ;;
2067 esac
2068 ac_abs_top_builddir=$ac_pwd
2069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2070 # for backward compatibility:
2071 ac_top_builddir=$ac_top_build_prefix
2072
2073 case $srcdir in
2074 .) # We are building in place.
2075 ac_srcdir=.
2076 ac_top_srcdir=$ac_top_builddir_sub
2077 ac_abs_top_srcdir=$ac_pwd ;;
2078 [\\/]* | ?:[\\/]* ) # Absolute name.
2079 ac_srcdir=$srcdir$ac_dir_suffix;
2080 ac_top_srcdir=$srcdir
2081 ac_abs_top_srcdir=$srcdir ;;
2082 *) # Relative name.
2083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2084 ac_top_srcdir=$ac_top_build_prefix$srcdir
2085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2086 esac
2087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2088
2089 cd "$ac_dir" || { ac_status=$?; continue; }
2090 # Check for guested configure.
2091 if test -f "$ac_srcdir/configure.gnu"; then
2092 echo &&
2093 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2094 elif test -f "$ac_srcdir/configure"; then
2095 echo &&
2096 $SHELL "$ac_srcdir/configure" --help=recursive
2097 else
2098 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2099 fi || ac_status=$?
2100 cd "$ac_pwd" || { ac_status=$?; break; }
2101 done
2102 fi
2103
2104 test -n "$ac_init_help" && exit $ac_status
2105 if $ac_init_version; then
2106 cat <<\_ACEOF
2107 emacs configure 24.0.50
2108 generated by GNU Autoconf 2.65
2109
2110 Copyright (C) 2009 Free Software Foundation, Inc.
2111 This configure script is free software; the Free Software Foundation
2112 gives unlimited permission to copy, distribute and modify it.
2113 _ACEOF
2114 exit
2115 fi
2116
2117 ## ------------------------ ##
2118 ## Autoconf initialization. ##
2119 ## ------------------------ ##
2120
2121 # ac_fn_c_try_compile LINENO
2122 # --------------------------
2123 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2124 ac_fn_c_try_compile ()
2125 {
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 rm -f conftest.$ac_objext
2128 if { { ac_try="$ac_compile"
2129 case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_compile") 2>conftest.err
2136 ac_status=$?
2137 if test -s conftest.err; then
2138 grep -v '^ *+' conftest.err >conftest.er1
2139 cat conftest.er1 >&5
2140 mv -f conftest.er1 conftest.err
2141 fi
2142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; } && {
2144 test -z "$ac_c_werror_flag" ||
2145 test ! -s conftest.err
2146 } && test -s conftest.$ac_objext; then :
2147 ac_retval=0
2148 else
2149 $as_echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 ac_retval=1
2153 fi
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155 as_fn_set_status $ac_retval
2156
2157 } # ac_fn_c_try_compile
2158
2159 # ac_fn_c_try_cpp LINENO
2160 # ----------------------
2161 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2162 ac_fn_c_try_cpp ()
2163 {
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 if { { ac_try="$ac_cpp conftest.$ac_ext"
2166 case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169 esac
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2173 ac_status=$?
2174 if test -s conftest.err; then
2175 grep -v '^ *+' conftest.err >conftest.er1
2176 cat conftest.er1 >&5
2177 mv -f conftest.er1 conftest.err
2178 fi
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } >/dev/null && {
2181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2182 test ! -s conftest.err
2183 }; then :
2184 ac_retval=0
2185 else
2186 $as_echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 ac_retval=1
2190 fi
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192 as_fn_set_status $ac_retval
2193
2194 } # ac_fn_c_try_cpp
2195
2196 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2197 # -------------------------------------------------------
2198 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2199 # the include files in INCLUDES and setting the cache variable VAR
2200 # accordingly.
2201 ac_fn_c_check_header_mongrel ()
2202 {
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206 $as_echo_n "checking for $2... " >&6; }
2207 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 $as_echo_n "(cached) " >&6
2209 fi
2210 eval ac_res=\$$3
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 else
2214 # Is the header compilable?
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2216 $as_echo_n "checking $2 usability... " >&6; }
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 $4
2220 #include <$2>
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_header_compiler=yes
2224 else
2225 ac_header_compiler=no
2226 fi
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2229 $as_echo "$ac_header_compiler" >&6; }
2230
2231 # Is the header present?
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2233 $as_echo_n "checking $2 presence... " >&6; }
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2236 #include <$2>
2237 _ACEOF
2238 if ac_fn_c_try_cpp "$LINENO"; then :
2239 ac_header_preproc=yes
2240 else
2241 ac_header_preproc=no
2242 fi
2243 rm -f conftest.err conftest.$ac_ext
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2245 $as_echo "$ac_header_preproc" >&6; }
2246
2247 # So? What about this header?
2248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2249 yes:no: )
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2251 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2253 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2254 ;;
2255 no:yes:* )
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2257 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2259 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2261 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2263 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2266 ;;
2267 esac
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 $as_echo_n "(cached) " >&6
2272 else
2273 eval "$3=\$ac_header_compiler"
2274 fi
2275 eval ac_res=\$$3
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 fi
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280
2281 } # ac_fn_c_check_header_mongrel
2282
2283 # ac_fn_c_try_run LINENO
2284 # ----------------------
2285 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2286 # that executables *can* be run.
2287 ac_fn_c_try_run ()
2288 {
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 if { { ac_try="$ac_link"
2291 case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294 esac
2295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296 $as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_link") 2>&5
2298 ac_status=$?
2299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2301 { { case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304 esac
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_try") 2>&5
2308 ac_status=$?
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; }; }; then :
2311 ac_retval=0
2312 else
2313 $as_echo "$as_me: program exited with status $ac_status" >&5
2314 $as_echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2316
2317 ac_retval=$ac_status
2318 fi
2319 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 as_fn_set_status $ac_retval
2322
2323 } # ac_fn_c_try_run
2324
2325 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2326 # -------------------------------------------------------
2327 # Tests whether HEADER exists and can be compiled using the include files in
2328 # INCLUDES, setting the cache variable VAR accordingly.
2329 ac_fn_c_check_header_compile ()
2330 {
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2333 $as_echo_n "checking for $2... " >&6; }
2334 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2335 $as_echo_n "(cached) " >&6
2336 else
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2339 $4
2340 #include <$2>
2341 _ACEOF
2342 if ac_fn_c_try_compile "$LINENO"; then :
2343 eval "$3=yes"
2344 else
2345 eval "$3=no"
2346 fi
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 fi
2349 eval ac_res=\$$3
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353
2354 } # ac_fn_c_check_header_compile
2355
2356 # ac_fn_c_try_link LINENO
2357 # -----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded.
2359 ac_fn_c_try_link ()
2360 {
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 rm -f conftest.$ac_objext conftest$ac_exeext
2363 if { { ac_try="$ac_link"
2364 case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>conftest.err
2371 ac_status=$?
2372 if test -s conftest.err; then
2373 grep -v '^ *+' conftest.err >conftest.er1
2374 cat conftest.er1 >&5
2375 mv -f conftest.er1 conftest.err
2376 fi
2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378 test $ac_status = 0; } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest$ac_exeext && {
2382 test "$cross_compiling" = yes ||
2383 $as_test_x conftest$ac_exeext
2384 }; then :
2385 ac_retval=0
2386 else
2387 $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_retval=1
2391 fi
2392 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394 # interfere with the next link command; also delete a directory that is
2395 # left behind by Apple's compiler. We do this before executing the actions.
2396 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 as_fn_set_status $ac_retval
2399
2400 } # ac_fn_c_try_link
2401
2402 # ac_fn_c_check_decl LINENO SYMBOL VAR
2403 # ------------------------------------
2404 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2405 ac_fn_c_check_decl ()
2406 {
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2409 $as_echo_n "checking whether $2 is declared... " >&6; }
2410 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $4
2416 int
2417 main ()
2418 {
2419 #ifndef $2
2420 (void) $2;
2421 #endif
2422
2423 ;
2424 return 0;
2425 }
2426 _ACEOF
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428 eval "$3=yes"
2429 else
2430 eval "$3=no"
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 fi
2434 eval ac_res=\$$3
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438
2439 } # ac_fn_c_check_decl
2440
2441 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2442 # ----------------------------------------------
2443 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2444 ac_fn_c_check_header_preproc ()
2445 {
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448 $as_echo_n "checking for $2... " >&6; }
2449 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 #include <$2>
2455 _ACEOF
2456 if ac_fn_c_try_cpp "$LINENO"; then :
2457 eval "$3=yes"
2458 else
2459 eval "$3=no"
2460 fi
2461 rm -f conftest.err conftest.$ac_ext
2462 fi
2463 eval ac_res=\$$3
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465 $as_echo "$ac_res" >&6; }
2466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467
2468 } # ac_fn_c_check_header_preproc
2469
2470 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2471 # ----------------------------------------------------
2472 # Tries to find if the field MEMBER exists in type AGGR, after including
2473 # INCLUDES, setting cache variable VAR accordingly.
2474 ac_fn_c_check_member ()
2475 {
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2478 $as_echo_n "checking for $2.$3... " >&6; }
2479 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2484 $5
2485 int
2486 main ()
2487 {
2488 static $2 ac_aggr;
2489 if (ac_aggr.$3)
2490 return 0;
2491 ;
2492 return 0;
2493 }
2494 _ACEOF
2495 if ac_fn_c_try_compile "$LINENO"; then :
2496 eval "$4=yes"
2497 else
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2500 $5
2501 int
2502 main ()
2503 {
2504 static $2 ac_aggr;
2505 if (sizeof ac_aggr.$3)
2506 return 0;
2507 ;
2508 return 0;
2509 }
2510 _ACEOF
2511 if ac_fn_c_try_compile "$LINENO"; then :
2512 eval "$4=yes"
2513 else
2514 eval "$4=no"
2515 fi
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 fi
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 fi
2520 eval ac_res=\$$4
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2524
2525 } # ac_fn_c_check_member
2526
2527 # ac_fn_c_check_func LINENO FUNC VAR
2528 # ----------------------------------
2529 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2530 ac_fn_c_check_func ()
2531 {
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2542 #define $2 innocuous_$2
2543
2544 /* System header to define __stub macros and hopefully few prototypes,
2545 which can conflict with char $2 (); below.
2546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2547 <limits.h> exists even on freestanding compilers. */
2548
2549 #ifdef __STDC__
2550 # include <limits.h>
2551 #else
2552 # include <assert.h>
2553 #endif
2554
2555 #undef $2
2556
2557 /* Override any GCC internal prototype to avoid an error.
2558 Use char because int might match the return type of a GCC
2559 builtin and then its argument prototype would still apply. */
2560 #ifdef __cplusplus
2561 extern "C"
2562 #endif
2563 char $2 ();
2564 /* The GNU C library defines this for functions which it implements
2565 to always fail with ENOSYS. Some functions are actually named
2566 something starting with __ and the normal name is an alias. */
2567 #if defined __stub_$2 || defined __stub___$2
2568 choke me
2569 #endif
2570
2571 int
2572 main ()
2573 {
2574 return $2 ();
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 if ac_fn_c_try_link "$LINENO"; then :
2580 eval "$3=yes"
2581 else
2582 eval "$3=no"
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext \
2585 conftest$ac_exeext conftest.$ac_ext
2586 fi
2587 eval ac_res=\$$3
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2591
2592 } # ac_fn_c_check_func
2593
2594 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2595 # -------------------------------------------
2596 # Tests whether TYPE exists after having included INCLUDES, setting cache
2597 # variable VAR accordingly.
2598 ac_fn_c_check_type ()
2599 {
2600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2602 $as_echo_n "checking for $2... " >&6; }
2603 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 eval "$3=no"
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 $4
2610 int
2611 main ()
2612 {
2613 if (sizeof ($2))
2614 return 0;
2615 ;
2616 return 0;
2617 }
2618 _ACEOF
2619 if ac_fn_c_try_compile "$LINENO"; then :
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2622 $4
2623 int
2624 main ()
2625 {
2626 if (sizeof (($2)))
2627 return 0;
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 if ac_fn_c_try_compile "$LINENO"; then :
2633
2634 else
2635 eval "$3=yes"
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 fi
2641 eval ac_res=\$$3
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645
2646 } # ac_fn_c_check_type
2647
2648 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2649 # --------------------------------------------
2650 # Tries to find the compile-time value of EXPR in a program that includes
2651 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2652 # computed
2653 ac_fn_c_compute_int ()
2654 {
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 if test "$cross_compiling" = yes; then
2657 # Depending upon the size, compute the lo and hi bounds.
2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659 /* end confdefs.h. */
2660 $4
2661 int
2662 main ()
2663 {
2664 static int test_array [1 - 2 * !(($2) >= 0)];
2665 test_array [0] = 0
2666
2667 ;
2668 return 0;
2669 }
2670 _ACEOF
2671 if ac_fn_c_try_compile "$LINENO"; then :
2672 ac_lo=0 ac_mid=0
2673 while :; do
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 $4
2677 int
2678 main ()
2679 {
2680 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2681 test_array [0] = 0
2682
2683 ;
2684 return 0;
2685 }
2686 _ACEOF
2687 if ac_fn_c_try_compile "$LINENO"; then :
2688 ac_hi=$ac_mid; break
2689 else
2690 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2691 if test $ac_lo -le $ac_mid; then
2692 ac_lo= ac_hi=
2693 break
2694 fi
2695 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2696 fi
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 done
2699 else
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2702 $4
2703 int
2704 main ()
2705 {
2706 static int test_array [1 - 2 * !(($2) < 0)];
2707 test_array [0] = 0
2708
2709 ;
2710 return 0;
2711 }
2712 _ACEOF
2713 if ac_fn_c_try_compile "$LINENO"; then :
2714 ac_hi=-1 ac_mid=-1
2715 while :; do
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h. */
2718 $4
2719 int
2720 main ()
2721 {
2722 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2723 test_array [0] = 0
2724
2725 ;
2726 return 0;
2727 }
2728 _ACEOF
2729 if ac_fn_c_try_compile "$LINENO"; then :
2730 ac_lo=$ac_mid; break
2731 else
2732 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2733 if test $ac_mid -le $ac_hi; then
2734 ac_lo= ac_hi=
2735 break
2736 fi
2737 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741 else
2742 ac_lo= ac_hi=
2743 fi
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 fi
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 # Binary search between lo and hi bounds.
2748 while test "x$ac_lo" != "x$ac_hi"; do
2749 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2752 $4
2753 int
2754 main ()
2755 {
2756 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2757 test_array [0] = 0
2758
2759 ;
2760 return 0;
2761 }
2762 _ACEOF
2763 if ac_fn_c_try_compile "$LINENO"; then :
2764 ac_hi=$ac_mid
2765 else
2766 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2767 fi
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 done
2770 case $ac_lo in #((
2771 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2772 '') ac_retval=1 ;;
2773 esac
2774 else
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2777 $4
2778 static long int longval () { return $2; }
2779 static unsigned long int ulongval () { return $2; }
2780 #include <stdio.h>
2781 #include <stdlib.h>
2782 int
2783 main ()
2784 {
2785
2786 FILE *f = fopen ("conftest.val", "w");
2787 if (! f)
2788 return 1;
2789 if (($2) < 0)
2790 {
2791 long int i = longval ();
2792 if (i != ($2))
2793 return 1;
2794 fprintf (f, "%ld", i);
2795 }
2796 else
2797 {
2798 unsigned long int i = ulongval ();
2799 if (i != ($2))
2800 return 1;
2801 fprintf (f, "%lu", i);
2802 }
2803 /* Do not output a trailing newline, as this causes \r\n confusion
2804 on some platforms. */
2805 return ferror (f) || fclose (f) != 0;
2806
2807 ;
2808 return 0;
2809 }
2810 _ACEOF
2811 if ac_fn_c_try_run "$LINENO"; then :
2812 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2813 else
2814 ac_retval=1
2815 fi
2816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2817 conftest.$ac_objext conftest.beam conftest.$ac_ext
2818 rm -f conftest.val
2819
2820 fi
2821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2822 as_fn_set_status $ac_retval
2823
2824 } # ac_fn_c_compute_int
2825 cat >config.log <<_ACEOF
2826 This file contains any messages produced by compilers while
2827 running configure, to aid debugging if configure makes a mistake.
2828
2829 It was created by emacs $as_me 24.0.50, which was
2830 generated by GNU Autoconf 2.65. Invocation command line was
2831
2832 $ $0 $@
2833
2834 _ACEOF
2835 exec 5>>config.log
2836 {
2837 cat <<_ASUNAME
2838 ## --------- ##
2839 ## Platform. ##
2840 ## --------- ##
2841
2842 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2843 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2844 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2845 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2846 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2847
2848 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2849 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2850
2851 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2852 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2853 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2854 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2855 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2856 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2857 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2858
2859 _ASUNAME
2860
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 $as_echo "PATH: $as_dir"
2867 done
2868 IFS=$as_save_IFS
2869
2870 } >&5
2871
2872 cat >&5 <<_ACEOF
2873
2874
2875 ## ----------- ##
2876 ## Core tests. ##
2877 ## ----------- ##
2878
2879 _ACEOF
2880
2881
2882 # Keep a trace of the command line.
2883 # Strip out --no-create and --no-recursion so they do not pile up.
2884 # Strip out --silent because we don't want to record it for future runs.
2885 # Also quote any args containing shell meta-characters.
2886 # Make two passes to allow for proper duplicate-argument suppression.
2887 ac_configure_args=
2888 ac_configure_args0=
2889 ac_configure_args1=
2890 ac_must_keep_next=false
2891 for ac_pass in 1 2
2892 do
2893 for ac_arg
2894 do
2895 case $ac_arg in
2896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2898 | -silent | --silent | --silen | --sile | --sil)
2899 continue ;;
2900 *\'*)
2901 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2902 esac
2903 case $ac_pass in
2904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2905 2)
2906 as_fn_append ac_configure_args1 " '$ac_arg'"
2907 if test $ac_must_keep_next = true; then
2908 ac_must_keep_next=false # Got value, back to normal.
2909 else
2910 case $ac_arg in
2911 *=* | --config-cache | -C | -disable-* | --disable-* \
2912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2914 | -with-* | --with-* | -without-* | --without-* | --x)
2915 case "$ac_configure_args0 " in
2916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2917 esac
2918 ;;
2919 -* ) ac_must_keep_next=true ;;
2920 esac
2921 fi
2922 as_fn_append ac_configure_args " '$ac_arg'"
2923 ;;
2924 esac
2925 done
2926 done
2927 { ac_configure_args0=; unset ac_configure_args0;}
2928 { ac_configure_args1=; unset ac_configure_args1;}
2929
2930 # When interrupted or exit'd, cleanup temporary files, and complete
2931 # config.log. We remove comments because anyway the quotes in there
2932 # would cause problems or look ugly.
2933 # WARNING: Use '\'' to represent an apostrophe within the trap.
2934 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2935 trap 'exit_status=$?
2936 # Save into config.log some information that might help in debugging.
2937 {
2938 echo
2939
2940 cat <<\_ASBOX
2941 ## ---------------- ##
2942 ## Cache variables. ##
2943 ## ---------------- ##
2944 _ASBOX
2945 echo
2946 # The following way of writing the cache mishandles newlines in values,
2947 (
2948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2949 eval ac_val=\$$ac_var
2950 case $ac_val in #(
2951 *${as_nl}*)
2952 case $ac_var in #(
2953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2955 esac
2956 case $ac_var in #(
2957 _ | IFS | as_nl) ;; #(
2958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2959 *) { eval $ac_var=; unset $ac_var;} ;;
2960 esac ;;
2961 esac
2962 done
2963 (set) 2>&1 |
2964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2965 *${as_nl}ac_space=\ *)
2966 sed -n \
2967 "s/'\''/'\''\\\\'\'''\''/g;
2968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2969 ;; #(
2970 *)
2971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2972 ;;
2973 esac |
2974 sort
2975 )
2976 echo
2977
2978 cat <<\_ASBOX
2979 ## ----------------- ##
2980 ## Output variables. ##
2981 ## ----------------- ##
2982 _ASBOX
2983 echo
2984 for ac_var in $ac_subst_vars
2985 do
2986 eval ac_val=\$$ac_var
2987 case $ac_val in
2988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2989 esac
2990 $as_echo "$ac_var='\''$ac_val'\''"
2991 done | sort
2992 echo
2993
2994 if test -n "$ac_subst_files"; then
2995 cat <<\_ASBOX
2996 ## ------------------- ##
2997 ## File substitutions. ##
2998 ## ------------------- ##
2999 _ASBOX
3000 echo
3001 for ac_var in $ac_subst_files
3002 do
3003 eval ac_val=\$$ac_var
3004 case $ac_val in
3005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3006 esac
3007 $as_echo "$ac_var='\''$ac_val'\''"
3008 done | sort
3009 echo
3010 fi
3011
3012 if test -s confdefs.h; then
3013 cat <<\_ASBOX
3014 ## ----------- ##
3015 ## confdefs.h. ##
3016 ## ----------- ##
3017 _ASBOX
3018 echo
3019 cat confdefs.h
3020 echo
3021 fi
3022 test "$ac_signal" != 0 &&
3023 $as_echo "$as_me: caught signal $ac_signal"
3024 $as_echo "$as_me: exit $exit_status"
3025 } >&5
3026 rm -f core *.core core.conftest.* &&
3027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3028 exit $exit_status
3029 ' 0
3030 for ac_signal in 1 2 13 15; do
3031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3032 done
3033 ac_signal=0
3034
3035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3036 rm -f -r conftest* confdefs.h
3037
3038 $as_echo "/* confdefs.h */" > confdefs.h
3039
3040 # Predefined preprocessor variables.
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_NAME "$PACKAGE_NAME"
3044 _ACEOF
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3048 _ACEOF
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_STRING "$PACKAGE_STRING"
3056 _ACEOF
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_URL "$PACKAGE_URL"
3064 _ACEOF
3065
3066
3067 # Let the site file select an alternate cache file if it wants to.
3068 # Prefer an explicitly selected file to automatically selected ones.
3069 ac_site_file1=NONE
3070 ac_site_file2=NONE
3071 if test -n "$CONFIG_SITE"; then
3072 ac_site_file1=$CONFIG_SITE
3073 elif test "x$prefix" != xNONE; then
3074 ac_site_file1=$prefix/share/config.site
3075 ac_site_file2=$prefix/etc/config.site
3076 else
3077 ac_site_file1=$ac_default_prefix/share/config.site
3078 ac_site_file2=$ac_default_prefix/etc/config.site
3079 fi
3080 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3081 do
3082 test "x$ac_site_file" = xNONE && continue
3083 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3085 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3086 sed 's/^/| /' "$ac_site_file" >&5
3087 . "$ac_site_file"
3088 fi
3089 done
3090
3091 if test -r "$cache_file"; then
3092 # Some versions of bash will fail to source /dev/null (special files
3093 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3094 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3096 $as_echo "$as_me: loading cache $cache_file" >&6;}
3097 case $cache_file in
3098 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3099 *) . "./$cache_file";;
3100 esac
3101 fi
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3104 $as_echo "$as_me: creating cache $cache_file" >&6;}
3105 >$cache_file
3106 fi
3107
3108 as_fn_append ac_header_list " stdlib.h"
3109 as_fn_append ac_header_list " unistd.h"
3110 as_fn_append ac_header_list " sys/param.h"
3111 as_fn_append ac_func_list " readlinkat"
3112 as_fn_append ac_func_list " dup2"
3113 gl_getopt_required=GNU
3114 as_fn_append ac_header_list " getopt.h"
3115 as_fn_append ac_header_list " wchar.h"
3116 as_fn_append ac_header_list " stdint.h"
3117 as_fn_append ac_header_list " inttypes.h"
3118 as_fn_append ac_func_list " lstat"
3119 as_fn_append ac_func_list " alarm"
3120 as_fn_append ac_func_list " pthread_sigmask"
3121 as_fn_append ac_func_list " readlink"
3122 as_fn_append ac_header_list " sys/socket.h"
3123 as_fn_append ac_func_list " tzset"
3124 as_fn_append ac_func_list " symlink"
3125 as_fn_append ac_header_list " sys/stat.h"
3126 as_fn_append ac_header_list " sys/time.h"
3127 as_fn_append ac_func_list " localtime_r"
3128 # Check that the precious variables saved in the cache have kept the same
3129 # value.
3130 ac_cache_corrupted=false
3131 for ac_var in $ac_precious_vars; do
3132 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3133 eval ac_new_set=\$ac_env_${ac_var}_set
3134 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3135 eval ac_new_val=\$ac_env_${ac_var}_value
3136 case $ac_old_set,$ac_new_set in
3137 set,)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3139 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3140 ac_cache_corrupted=: ;;
3141 ,set)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3143 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3144 ac_cache_corrupted=: ;;
3145 ,);;
3146 *)
3147 if test "x$ac_old_val" != "x$ac_new_val"; then
3148 # differences in whitespace do not lead to failure.
3149 ac_old_val_w=`echo x $ac_old_val`
3150 ac_new_val_w=`echo x $ac_new_val`
3151 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3153 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3154 ac_cache_corrupted=:
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3157 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3158 eval $ac_var=\$ac_old_val
3159 fi
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3161 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3163 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3164 fi;;
3165 esac
3166 # Pass precious variables to config.status.
3167 if test "$ac_new_set" = set; then
3168 case $ac_new_val in
3169 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3170 *) ac_arg=$ac_var=$ac_new_val ;;
3171 esac
3172 case " $ac_configure_args " in
3173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3174 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3175 esac
3176 fi
3177 done
3178 if $ac_cache_corrupted; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3182 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3183 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3184 fi
3185 ## -------------------- ##
3186 ## Main body of script. ##
3187 ## -------------------- ##
3188
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194
3195
3196 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3197
3198
3199 am__api_version='1.11'
3200
3201 ac_aux_dir=
3202 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3203 for ac_t in install-sh install.sh shtool; do
3204 if test -f "$ac_dir/$ac_t"; then
3205 ac_aux_dir=$ac_dir
3206 ac_install_sh="$ac_aux_dir/$ac_t -c"
3207 break 2
3208 fi
3209 done
3210 done
3211 if test -z "$ac_aux_dir"; then
3212 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3213 fi
3214
3215 # These three variables are undocumented and unsupported,
3216 # and are intended to be withdrawn in a future Autoconf release.
3217 # They can cause serious problems if a builder's source tree is in a directory
3218 # whose full name contains unusual characters.
3219 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3220 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3221 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3222
3223
3224 # Find a good install program. We prefer a C program (faster),
3225 # so one script is as good as another. But avoid the broken or
3226 # incompatible versions:
3227 # SysV /etc/install, /usr/sbin/install
3228 # SunOS /usr/etc/install
3229 # IRIX /sbin/install
3230 # AIX /bin/install
3231 # AmigaOS /C/install, which installs bootblocks on floppy discs
3232 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3235 # OS/2's system install, which has a completely different semantic
3236 # ./install, which can be erroneously created by make from ./install.sh.
3237 # Reject install programs that cannot install multiple files.
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3239 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3240 if test -z "$INSTALL"; then
3241 if test "${ac_cv_path_install+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 # Account for people who put trailing slashes in PATH elements.
3250 case $as_dir/ in #((
3251 ./ | .// | /[cC]/* | \
3252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3253 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3254 /usr/ucb/* ) ;;
3255 *)
3256 # OSF1 and SCO ODT 3.0 have their own names for install.
3257 # Don't use installbsd from OSF since it installs stuff as root
3258 # by default.
3259 for ac_prog in ginstall scoinst install; do
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3262 if test $ac_prog = install &&
3263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3264 # AIX install. It has an incompatible calling convention.
3265 :
3266 elif test $ac_prog = install &&
3267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3268 # program-specific install script used by HP pwplus--don't use.
3269 :
3270 else
3271 rm -rf conftest.one conftest.two conftest.dir
3272 echo one > conftest.one
3273 echo two > conftest.two
3274 mkdir conftest.dir
3275 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3276 test -s conftest.one && test -s conftest.two &&
3277 test -s conftest.dir/conftest.one &&
3278 test -s conftest.dir/conftest.two
3279 then
3280 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3281 break 3
3282 fi
3283 fi
3284 fi
3285 done
3286 done
3287 ;;
3288 esac
3289
3290 done
3291 IFS=$as_save_IFS
3292
3293 rm -rf conftest.one conftest.two conftest.dir
3294
3295 fi
3296 if test "${ac_cv_path_install+set}" = set; then
3297 INSTALL=$ac_cv_path_install
3298 else
3299 # As a last resort, use the slow shell script. Don't cache a
3300 # value for INSTALL within a source directory, because that will
3301 # break other packages using the cache if that directory is
3302 # removed, or if the value is a relative name.
3303 INSTALL=$ac_install_sh
3304 fi
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3307 $as_echo "$INSTALL" >&6; }
3308
3309 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3310 # It thinks the first close brace ends the variable substitution.
3311 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3312
3313 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3314
3315 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3316
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3318 $as_echo_n "checking whether build environment is sane... " >&6; }
3319 # Just in case
3320 sleep 1
3321 echo timestamp > conftest.file
3322 # Reject unsafe characters in $srcdir or the absolute working directory
3323 # name. Accept space and tab only in the latter.
3324 am_lf='
3325 '
3326 case `pwd` in
3327 *[\\\"\#\$\&\'\`$am_lf]*)
3328 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3329 esac
3330 case $srcdir in
3331 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3332 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3333 esac
3334
3335 # Do `set' in a subshell so we don't clobber the current shell's
3336 # arguments. Must try -L first in case configure is actually a
3337 # symlink; some systems play weird games with the mod time of symlinks
3338 # (eg FreeBSD returns the mod time of the symlink's containing
3339 # directory).
3340 if (
3341 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3342 if test "$*" = "X"; then
3343 # -L didn't work.
3344 set X `ls -t "$srcdir/configure" conftest.file`
3345 fi
3346 rm -f conftest.file
3347 if test "$*" != "X $srcdir/configure conftest.file" \
3348 && test "$*" != "X conftest.file $srcdir/configure"; then
3349
3350 # If neither matched, then we have a broken ls. This can happen
3351 # if, for instance, CONFIG_SHELL is bash and it inherits a
3352 # broken ls alias from the environment. This has actually
3353 # happened. Such a system could not be considered "sane".
3354 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3355 alias in your environment" "$LINENO" 5
3356 fi
3357
3358 test "$2" = conftest.file
3359 )
3360 then
3361 # Ok.
3362 :
3363 else
3364 as_fn_error "newly created file is older than distributed files!
3365 Check your system clock" "$LINENO" 5
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368 $as_echo "yes" >&6; }
3369 test "$program_prefix" != NONE &&
3370 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3371 # Use a double $ so make ignores it.
3372 test "$program_suffix" != NONE &&
3373 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3374 # Double any \ or $.
3375 # By default was `s,x,x', remove it if useless.
3376 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3377 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3378
3379 # expand $ac_aux_dir to an absolute path
3380 am_aux_dir=`cd $ac_aux_dir && pwd`
3381
3382 if test x"${MISSING+set}" != xset; then
3383 case $am_aux_dir in
3384 *\ * | *\ *)
3385 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3386 *)
3387 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3388 esac
3389 fi
3390 # Use eval to expand $SHELL
3391 if eval "$MISSING --run true"; then
3392 am_missing_run="$MISSING --run "
3393 else
3394 am_missing_run=
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3396 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3397 fi
3398
3399 if test x"${install_sh}" != xset; then
3400 case $am_aux_dir in
3401 *\ * | *\ *)
3402 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3403 *)
3404 install_sh="\${SHELL} $am_aux_dir/install-sh"
3405 esac
3406 fi
3407
3408 # Installed binaries are usually stripped using `strip' when the user
3409 # run `make install-strip'. However `strip' might not be the right
3410 # tool to use in cross-compilation environments, therefore Automake
3411 # will honor the `STRIP' environment variable to overrule this program.
3412 if test "$cross_compiling" != no; then
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3415 set dummy ${ac_tool_prefix}strip; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if test "${ac_cv_prog_STRIP+set}" = set; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$STRIP"; then
3422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 STRIP=$ac_cv_prog_STRIP
3442 if test -n "$STRIP"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3444 $as_echo "$STRIP" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$ac_cv_prog_STRIP"; then
3453 ac_ct_STRIP=$STRIP
3454 # Extract the first word of "strip", so it can be a program name with args.
3455 set dummy strip; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$ac_ct_STRIP"; then
3462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_ac_ct_STRIP="strip"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3482 if test -n "$ac_ct_STRIP"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3484 $as_echo "$ac_ct_STRIP" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490 if test "x$ac_ct_STRIP" = x; then
3491 STRIP=":"
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494 yes:)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497 ac_tool_warned=yes ;;
3498 esac
3499 STRIP=$ac_ct_STRIP
3500 fi
3501 else
3502 STRIP="$ac_cv_prog_STRIP"
3503 fi
3504
3505 fi
3506 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3507
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3509 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3510 if test -z "$MKDIR_P"; then
3511 if test "${ac_cv_path_mkdir+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3516 do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 for ac_prog in mkdir gmkdir; do
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3522 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3523 'mkdir (GNU coreutils) '* | \
3524 'mkdir (coreutils) '* | \
3525 'mkdir (fileutils) '4.1*)
3526 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3527 break 3;;
3528 esac
3529 done
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi
3535
3536 test -d ./--version && rmdir ./--version
3537 if test "${ac_cv_path_mkdir+set}" = set; then
3538 MKDIR_P="$ac_cv_path_mkdir -p"
3539 else
3540 # As a last resort, use the slow shell script. Don't cache a
3541 # value for MKDIR_P within a source directory, because that will
3542 # break other packages using the cache if that directory is
3543 # removed, or if the value is a relative name.
3544 MKDIR_P="$ac_install_sh -d"
3545 fi
3546 fi
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3548 $as_echo "$MKDIR_P" >&6; }
3549
3550
3551 mkdir_p="$MKDIR_P"
3552 case $mkdir_p in
3553 [\\/$]* | ?:[\\/]*) ;;
3554 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3555 esac
3556
3557 for ac_prog in gawk mawk nawk awk
3558 do
3559 # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy $ac_prog; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if test "${ac_cv_prog_AWK+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 if test -n "$AWK"; then
3567 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576 ac_cv_prog_AWK="$ac_prog"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580 done
3581 done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 AWK=$ac_cv_prog_AWK
3587 if test -n "$AWK"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3589 $as_echo "$AWK" >&6; }
3590 else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593 fi
3594
3595
3596 test -n "$AWK" && break
3597 done
3598
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3600 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3601 set x ${MAKE-make}
3602 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3603 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 cat >conftest.make <<\_ACEOF
3607 SHELL = /bin/sh
3608 all:
3609 @echo '@@@%%%=$(MAKE)=@@@%%%'
3610 _ACEOF
3611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3612 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3613 *@@@%%%=?*=@@@%%%*)
3614 eval ac_cv_prog_make_${ac_make}_set=yes;;
3615 *)
3616 eval ac_cv_prog_make_${ac_make}_set=no;;
3617 esac
3618 rm -f conftest.make
3619 fi
3620 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3622 $as_echo "yes" >&6; }
3623 SET_MAKE=
3624 else
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 $as_echo "no" >&6; }
3627 SET_MAKE="MAKE=${MAKE-make}"
3628 fi
3629
3630 rm -rf .tst 2>/dev/null
3631 mkdir .tst 2>/dev/null
3632 if test -d .tst; then
3633 am__leading_dot=.
3634 else
3635 am__leading_dot=_
3636 fi
3637 rmdir .tst 2>/dev/null
3638
3639 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3640 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3641 # is not polluted with repeated "-I."
3642 am__isrc=' -I$(srcdir)'
3643 # test to see if srcdir already configured
3644 if test -f $srcdir/config.status; then
3645 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3646 fi
3647 fi
3648
3649 # test whether we have cygpath
3650 if test -z "$CYGPATH_W"; then
3651 if (cygpath --version) >/dev/null 2>/dev/null; then
3652 CYGPATH_W='cygpath -w'
3653 else
3654 CYGPATH_W=echo
3655 fi
3656 fi
3657
3658
3659 # Define the identity of the package.
3660 PACKAGE='emacs'
3661 VERSION='24.0.50'
3662
3663
3664 cat >>confdefs.h <<_ACEOF
3665 #define PACKAGE "$PACKAGE"
3666 _ACEOF
3667
3668
3669 cat >>confdefs.h <<_ACEOF
3670 #define VERSION "$VERSION"
3671 _ACEOF
3672
3673 # Some tools Automake needs.
3674
3675 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3676
3677
3678 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3679
3680
3681 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3682
3683
3684 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3685
3686
3687 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3688
3689 # We need awk for the "check" target. The system "awk" is bad on
3690 # some platforms.
3691 # Always define AMTAR for backward compatibility.
3692
3693 AMTAR=${AMTAR-"${am_missing_run}tar"}
3694
3695 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3696
3697
3698
3699
3700
3701
3702
3703
3704 lispdir='${datadir}/emacs/${version}/lisp'
3705 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3706 '${datadir}/emacs/site-lisp'
3707 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3708 etcdir='${datadir}/emacs/${version}/etc'
3709 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3710 docdir='${datadir}/emacs/${version}/etc'
3711 gamedir='${localstatedir}/games/emacs'
3712
3713
3714
3715
3716 # Check whether --with-pop was given.
3717 if test "${with_pop+set}" = set; then :
3718 withval=$with_pop;
3719 else
3720 with_pop=yes
3721 fi
3722
3723 if test "$with_pop" = yes; then
3724 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3725
3726 fi
3727
3728
3729 # Check whether --with-kerberos was given.
3730 if test "${with_kerberos+set}" = set; then :
3731 withval=$with_kerberos;
3732 else
3733 with_kerberos=no
3734 fi
3735
3736 if test "$with_kerberos" != no; then
3737 $as_echo "#define KERBEROS 1" >>confdefs.h
3738
3739 fi
3740
3741
3742 # Check whether --with-kerberos5 was given.
3743 if test "${with_kerberos5+set}" = set; then :
3744 withval=$with_kerberos5;
3745 else
3746 with_kerberos5=no
3747 fi
3748
3749 if test "${with_kerberos5}" != no; then
3750 if test "${with_kerberos}" = no; then
3751 with_kerberos=yes
3752 $as_echo "#define KERBEROS 1" >>confdefs.h
3753
3754 fi
3755
3756 $as_echo "#define KERBEROS5 1" >>confdefs.h
3757
3758 fi
3759
3760
3761 # Check whether --with-hesiod was given.
3762 if test "${with_hesiod+set}" = set; then :
3763 withval=$with_hesiod;
3764 else
3765 with_hesiod=no
3766 fi
3767
3768 if test "$with_hesiod" != no; then
3769
3770 $as_echo "#define HESIOD 1" >>confdefs.h
3771
3772 fi
3773
3774
3775 # Check whether --with-mmdf was given.
3776 if test "${with_mmdf+set}" = set; then :
3777 withval=$with_mmdf;
3778 else
3779 with_mmdf=no
3780 fi
3781
3782 if test "$with_mmdf" != no; then
3783
3784 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3785
3786 fi
3787
3788
3789 # Check whether --with-mail-unlink was given.
3790 if test "${with_mail_unlink+set}" = set; then :
3791 withval=$with_mail_unlink;
3792 else
3793 with_mail_unlink=no
3794 fi
3795
3796 if test "$with_mail_unlink" != no; then
3797
3798 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3799
3800 fi
3801
3802
3803 # Check whether --with-mailhost was given.
3804 if test "${with_mailhost+set}" = set; then :
3805 withval=$with_mailhost;
3806 cat >>confdefs.h <<_ACEOF
3807 #define MAILHOST "$withval"
3808 _ACEOF
3809
3810 fi
3811
3812
3813
3814 # Check whether --with-sound was given.
3815 if test "${with_sound+set}" = set; then :
3816 withval=$with_sound;
3817 else
3818 with_sound=yes
3819 fi
3820
3821
3822
3823 # Check whether --with-sync-input was given.
3824 if test "${with_sync_input+set}" = set; then :
3825 withval=$with_sync_input;
3826 else
3827 with_sync_input=yes
3828 fi
3829
3830 if test "$with_sync_input" = yes; then
3831
3832 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3833
3834 fi
3835
3836
3837 # Check whether --with-x-toolkit was given.
3838 if test "${with_x_toolkit+set}" = set; then :
3839 withval=$with_x_toolkit; case "${withval}" in
3840 y | ye | yes ) val=gtk ;;
3841 n | no ) val=no ;;
3842 l | lu | luc | luci | lucid ) val=lucid ;;
3843 a | at | ath | athe | athen | athena ) val=athena ;;
3844 m | mo | mot | moti | motif ) val=motif ;;
3845 g | gt | gtk ) val=gtk ;;
3846 gtk3 ) val=gtk3 ;;
3847 * )
3848 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3849 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3850 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3851 ;;
3852 esac
3853 with_x_toolkit=$val
3854
3855 fi
3856
3857
3858
3859 # Check whether --with-wide-int was given.
3860 if test "${with_wide_int+set}" = set; then :
3861 withval=$with_wide_int;
3862 else
3863 with_wide_int=no
3864 fi
3865
3866 if test "$with_wide_int" = yes; then
3867
3868 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3869
3870 fi
3871
3872
3873 # Check whether --with-xpm was given.
3874 if test "${with_xpm+set}" = set; then :
3875 withval=$with_xpm;
3876 else
3877 with_xpm=yes
3878 fi
3879
3880
3881 # Check whether --with-jpeg was given.
3882 if test "${with_jpeg+set}" = set; then :
3883 withval=$with_jpeg;
3884 else
3885 with_jpeg=yes
3886 fi
3887
3888
3889 # Check whether --with-tiff was given.
3890 if test "${with_tiff+set}" = set; then :
3891 withval=$with_tiff;
3892 else
3893 with_tiff=yes
3894 fi
3895
3896
3897 # Check whether --with-gif was given.
3898 if test "${with_gif+set}" = set; then :
3899 withval=$with_gif;
3900 else
3901 with_gif=yes
3902 fi
3903
3904
3905 # Check whether --with-png was given.
3906 if test "${with_png+set}" = set; then :
3907 withval=$with_png;
3908 else
3909 with_png=yes
3910 fi
3911
3912
3913 # Check whether --with-rsvg was given.
3914 if test "${with_rsvg+set}" = set; then :
3915 withval=$with_rsvg;
3916 else
3917 with_rsvg=yes
3918 fi
3919
3920
3921 # Check whether --with-xml2 was given.
3922 if test "${with_xml2+set}" = set; then :
3923 withval=$with_xml2;
3924 else
3925 with_xml2=yes
3926 fi
3927
3928
3929 # Check whether --with-imagemagick was given.
3930 if test "${with_imagemagick+set}" = set; then :
3931 withval=$with_imagemagick;
3932 else
3933 with_imagemagick=yes
3934 fi
3935
3936
3937
3938 # Check whether --with-xft was given.
3939 if test "${with_xft+set}" = set; then :
3940 withval=$with_xft;
3941 else
3942 with_xft=yes
3943 fi
3944
3945
3946 # Check whether --with-libotf was given.
3947 if test "${with_libotf+set}" = set; then :
3948 withval=$with_libotf;
3949 else
3950 with_libotf=yes
3951 fi
3952
3953
3954 # Check whether --with-m17n-flt was given.
3955 if test "${with_m17n_flt+set}" = set; then :
3956 withval=$with_m17n_flt;
3957 else
3958 with_m17n_flt=yes
3959 fi
3960
3961
3962
3963 # Check whether --with-toolkit-scroll-bars was given.
3964 if test "${with_toolkit_scroll_bars+set}" = set; then :
3965 withval=$with_toolkit_scroll_bars;
3966 else
3967 with_toolkit_scroll_bars=yes
3968 fi
3969
3970
3971 # Check whether --with-xaw3d was given.
3972 if test "${with_xaw3d+set}" = set; then :
3973 withval=$with_xaw3d;
3974 else
3975 with_xaw3d=yes
3976 fi
3977
3978
3979 # Check whether --with-xim was given.
3980 if test "${with_xim+set}" = set; then :
3981 withval=$with_xim;
3982 else
3983 with_xim=yes
3984 fi
3985
3986
3987 # Check whether --with-ns was given.
3988 if test "${with_ns+set}" = set; then :
3989 withval=$with_ns;
3990 else
3991 with_ns=no
3992 fi
3993
3994
3995
3996 # Check whether --with-gpm was given.
3997 if test "${with_gpm+set}" = set; then :
3998 withval=$with_gpm;
3999 else
4000 with_gpm=yes
4001 fi
4002
4003
4004 # Check whether --with-dbus was given.
4005 if test "${with_dbus+set}" = set; then :
4006 withval=$with_dbus;
4007 else
4008 with_dbus=yes
4009 fi
4010
4011
4012 # Check whether --with-gconf was given.
4013 if test "${with_gconf+set}" = set; then :
4014 withval=$with_gconf;
4015 else
4016 with_gconf=yes
4017 fi
4018
4019
4020 # Check whether --with-gsettings was given.
4021 if test "${with_gsettings+set}" = set; then :
4022 withval=$with_gsettings;
4023 else
4024 with_gsettings=yes
4025 fi
4026
4027
4028 # Check whether --with-selinux was given.
4029 if test "${with_selinux+set}" = set; then :
4030 withval=$with_selinux;
4031 else
4032 with_selinux=yes
4033 fi
4034
4035
4036 # Check whether --with-gnutls was given.
4037 if test "${with_gnutls+set}" = set; then :
4038 withval=$with_gnutls;
4039 else
4040 with_gnutls=yes
4041 fi
4042
4043
4044 ## For the times when you want to build Emacs but don't have
4045 ## a suitable makeinfo, and can live without the manuals.
4046
4047 # Check whether --with-makeinfo was given.
4048 if test "${with_makeinfo+set}" = set; then :
4049 withval=$with_makeinfo;
4050 else
4051 with_makeinfo=yes
4052 fi
4053
4054
4055 ## This is an option because I do not know if all info/man support
4056 ## compressed files, nor how to test if they do so.
4057
4058 # Check whether --with-compress-info was given.
4059 if test "${with_compress_info+set}" = set; then :
4060 withval=$with_compress_info;
4061 else
4062 with_compress_info=yes
4063 fi
4064
4065 if test $with_compress_info = yes; then
4066 GZIP_INFO=yes
4067 else
4068 GZIP_INFO=
4069 fi
4070
4071
4072
4073 # Check whether --with-pkg-config-prog was given.
4074 if test "${with_pkg_config_prog+set}" = set; then :
4075 withval=$with_pkg_config_prog;
4076 fi
4077
4078 if test "X${with_pkg_config_prog}" != X; then
4079 if test "${with_pkg_config_prog}" != yes; then
4080 PKG_CONFIG="${with_pkg_config_prog}"
4081 fi
4082 fi
4083
4084 CRT_DIR=
4085
4086 # Check whether --with-crt-dir was given.
4087 if test "${with_crt_dir+set}" = set; then :
4088 withval=$with_crt_dir;
4089 fi
4090
4091 CRT_DIR="${with_crt_dir}"
4092
4093
4094 # Check whether --with-gameuser was given.
4095 if test "${with_gameuser+set}" = set; then :
4096 withval=$with_gameuser;
4097 fi
4098
4099 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4100 && gameuser="${with_gameuser}"
4101 test "X$gameuser" = X && gameuser=games
4102
4103
4104 # Check whether --with-gnustep-conf was given.
4105 if test "${with_gnustep_conf+set}" = set; then :
4106 withval=$with_gnustep_conf;
4107 fi
4108
4109 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4110 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4111 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4112 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4113
4114 # Check whether --enable-ns-self-contained was given.
4115 if test "${enable_ns_self_contained+set}" = set; then :
4116 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4117 else
4118 EN_NS_SELF_CONTAINED=yes
4119 fi
4120
4121
4122 # Check whether --enable-asserts was given.
4123 if test "${enable_asserts+set}" = set; then :
4124 enableval=$enable_asserts; USE_XASSERTS=$enableval
4125 else
4126 USE_XASSERTS=no
4127 fi
4128
4129
4130 # Check whether --enable-maintainer-mode was given.
4131 if test "${enable_maintainer_mode+set}" = set; then :
4132 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4133 else
4134 USE_MAINTAINER_MODE=yes
4135 fi
4136
4137 if test $USE_MAINTAINER_MODE = yes; then
4138 MAINT=
4139 else
4140 MAINT=#
4141 fi
4142
4143
4144 # Check whether --enable-locallisppath was given.
4145 if test "${enable_locallisppath+set}" = set; then :
4146 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4147 locallisppath=
4148 elif test "${enableval}" != "yes"; then
4149 locallisppath=${enableval}
4150 fi
4151 fi
4152
4153
4154 # Check whether --enable-checking was given.
4155 if test "${enable_checking+set}" = set; then :
4156 enableval=$enable_checking; ac_checking_flags="${enableval}"
4157 fi
4158
4159 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4160 for check in $ac_checking_flags
4161 do
4162 case $check in
4163 # these set all the flags to specific states
4164 yes) ac_enable_checking=1 ;;
4165 no) ac_enable_checking= ;
4166 ac_gc_check_stringbytes= ;
4167 ac_gc_check_string_overrun= ;
4168 ac_gc_check_string_free_list= ;
4169 ac_xmalloc_overrun= ;
4170 ac_gc_check_cons_list= ;;
4171 all) ac_enable_checking=1 ;
4172 ac_gc_check_stringbytes=1 ;
4173 ac_gc_check_string_overrun=1 ;
4174 ac_gc_check_string_free_list=1 ;
4175 ac_xmalloc_overrun=1 ;
4176 ac_gc_check_cons_list=1 ;;
4177 # these enable particular checks
4178 stringbytes) ac_gc_check_stringbytes=1 ;;
4179 stringoverrun) ac_gc_check_string_overrun=1 ;;
4180 stringfreelist) ac_gc_check_string_free_list=1 ;;
4181 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4182 conslist) ac_gc_check_cons_list=1 ;;
4183 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4184 esac
4185 done
4186 IFS="$ac_save_IFS"
4187
4188 if test x$ac_enable_checking != x ; then
4189
4190 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4191
4192 fi
4193 if test x$ac_gc_check_stringbytes != x ; then
4194
4195 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4196
4197 fi
4198 if test x$ac_gc_check_string_overrun != x ; then
4199
4200 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4201
4202 fi
4203 if test x$ac_gc_check_string_free_list != x ; then
4204
4205 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4206
4207 fi
4208 if test x$ac_xmalloc_overrun != x ; then
4209
4210 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4211
4212 fi
4213 if test x$ac_gc_check_cons_list != x ; then
4214
4215 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4216
4217 fi
4218
4219 # Check whether --enable-use-lisp-union-type was given.
4220 if test "${enable_use_lisp_union_type+set}" = set; then :
4221 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4222
4223 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4224
4225 fi
4226 fi
4227
4228
4229
4230 # Check whether --enable-profiling was given.
4231 if test "${enable_profiling+set}" = set; then :
4232 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4233 fi
4234
4235 if test x$ac_enable_profiling != x ; then
4236 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4237 else
4238 PROFILING_CFLAGS=
4239 fi
4240
4241
4242 # Check whether --enable-autodepend was given.
4243 if test "${enable_autodepend+set}" = set; then :
4244 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4245 else
4246 ac_enable_autodepend=yes
4247 fi
4248
4249
4250 #### Make srcdir absolute, if it isn't already. It's important to
4251 #### avoid running the path through pwd unnecessarily, since pwd can
4252 #### give you automounter prefixes, which can go away. We do all this
4253 #### so Emacs can find its files when run uninstalled.
4254 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4255 unset CDPATH
4256 case "${srcdir}" in
4257 /* ) ;;
4258 . )
4259 ## We may be able to use the $PWD environment variable to make this
4260 ## absolute. But sometimes PWD is inaccurate.
4261 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4262 ## but that tested only for a well-formed and valid PWD,
4263 ## it did not object when PWD was well-formed and valid but just wrong.
4264 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4265 then
4266 srcdir="$PWD"
4267 else
4268 srcdir="`(cd ${srcdir}; pwd)`"
4269 fi
4270 ;;
4271 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4272 esac
4273
4274 #### Given the configuration name, set machfile and opsysfile to the
4275 #### names of the m/*.h and s/*.h files we should use.
4276
4277 ### Canonicalize the configuration name.
4278
4279 # Make sure we can run config.sub.
4280 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4281 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4282
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4284 $as_echo_n "checking build system type... " >&6; }
4285 if test "${ac_cv_build+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 ac_build_alias=$build_alias
4289 test "x$ac_build_alias" = x &&
4290 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4291 test "x$ac_build_alias" = x &&
4292 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4293 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4294 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4295
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4298 $as_echo "$ac_cv_build" >&6; }
4299 case $ac_cv_build in
4300 *-*-*) ;;
4301 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4302 esac
4303 build=$ac_cv_build
4304 ac_save_IFS=$IFS; IFS='-'
4305 set x $ac_cv_build
4306 shift
4307 build_cpu=$1
4308 build_vendor=$2
4309 shift; shift
4310 # Remember, the first character of IFS is used to create $*,
4311 # except with old shells:
4312 build_os=$*
4313 IFS=$ac_save_IFS
4314 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4315
4316
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4318 $as_echo_n "checking host system type... " >&6; }
4319 if test "${ac_cv_host+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test "x$host_alias" = x; then
4323 ac_cv_host=$ac_cv_build
4324 else
4325 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4326 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4327 fi
4328
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4331 $as_echo "$ac_cv_host" >&6; }
4332 case $ac_cv_host in
4333 *-*-*) ;;
4334 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4335 esac
4336 host=$ac_cv_host
4337 ac_save_IFS=$IFS; IFS='-'
4338 set x $ac_cv_host
4339 shift
4340 host_cpu=$1
4341 host_vendor=$2
4342 shift; shift
4343 # Remember, the first character of IFS is used to create $*,
4344 # except with old shells:
4345 host_os=$*
4346 IFS=$ac_save_IFS
4347 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4348
4349
4350 canonical=$host
4351 configuration=${host_alias-${build_alias-$host}}
4352
4353
4354
4355 ### If you add support for a new configuration, add code to this
4356 ### switch statement to recognize your configuration name and select
4357 ### the appropriate operating system and machine description files.
4358
4359 ### You would hope that you could choose an m/*.h file pretty much
4360 ### based on the machine portion of the configuration name, and an s/*.h
4361 ### file based on the operating system portion. However, it turns out
4362 ### that each m/*.h file is pretty manufacturer-specific - for
4363 ### example mips.h is MIPS
4364 ### So we basically have to have a special case for each
4365 ### configuration name.
4366 ###
4367 ### As far as handling version numbers on operating systems is
4368 ### concerned, make sure things will fail in a fixable way. If
4369 ### /etc/MACHINES doesn't say anything about version numbers, be
4370 ### prepared to handle anything reasonably. If version numbers
4371 ### matter, be sure /etc/MACHINES says something about it.
4372
4373 machine='' opsys='' unported=no
4374 case "${canonical}" in
4375
4376 ## GNU/Linux ports
4377 *-*-linux-gnu*)
4378 opsys=gnu-linux
4379 case ${canonical} in
4380 alpha*) machine=alpha ;;
4381 s390-*) machine=ibms390 ;;
4382 s390x-*) machine=ibms390x ;;
4383 powerpc*) machine=macppc ;;
4384 sparc*) machine=sparc ;;
4385 ia64*) machine=ia64 ;;
4386 m68k*) machine=m68k ;;
4387 x86_64*) machine=amdx86-64 ;;
4388 esac
4389 ;;
4390
4391 ## FreeBSD ports
4392 *-*-freebsd* )
4393 opsys=freebsd
4394 case "${canonical}" in
4395 alpha*) machine=alpha ;;
4396 amd64-*|x86_64-*) machine=amdx86-64 ;;
4397 ia64-*) machine=ia64 ;;
4398 i[3456]86-*) machine=intel386 ;;
4399 powerpc-*) machine=macppc ;;
4400 sparc-*) machine=sparc ;;
4401 sparc64-*) machine=sparc ;;
4402 esac
4403 ;;
4404
4405 ## FreeBSD kernel + glibc based userland
4406 *-*-kfreebsd*gnu* )
4407 opsys=gnu-kfreebsd
4408 case "${canonical}" in
4409 alpha*) machine=alpha ;;
4410 amd64-*|x86_64-*) machine=amdx86-64 ;;
4411 ia64-*) machine=ia64 ;;
4412 i[3456]86-*) machine=intel386 ;;
4413 powerpc-*) machine=macppc ;;
4414 sparc-*) machine=sparc ;;
4415 sparc64-*) machine=sparc ;;
4416 esac
4417 ;;
4418
4419 ## NetBSD ports
4420 *-*-netbsd* )
4421 opsys=netbsd
4422 case "${canonical}" in
4423 alpha*) machine=alpha ;;
4424 x86_64-*) machine=amdx86-64 ;;
4425 i[3456]86-*) machine=intel386 ;;
4426 m68k-*) machine=m68k ;;
4427 powerpc-*) machine=macppc ;;
4428 sparc*-) machine=sparc ;;
4429 vax-*) machine=vax ;;
4430 esac
4431 ;;
4432
4433 ## OpenBSD ports
4434 *-*-openbsd* )
4435 opsys=openbsd
4436 case "${canonical}" in
4437 alpha*) machine=alpha ;;
4438 x86_64-*) machine=amdx86-64 ;;
4439 i386-*) machine=intel386 ;;
4440 powerpc-*) machine=macppc ;;
4441 sparc*) machine=sparc ;;
4442 vax-*) machine=vax ;;
4443 esac
4444 ;;
4445
4446 ## Apple Darwin / Mac OS X
4447 *-apple-darwin* )
4448 case "${canonical}" in
4449 i[3456]86-* ) machine=intel386 ;;
4450 powerpc-* ) machine=macppc ;;
4451 x86_64-* ) machine=amdx86-64 ;;
4452 * ) unported=yes ;;
4453 esac
4454 opsys=darwin
4455 # Define CPP as follows to make autoconf work correctly.
4456 CPP="${CC-cc} -E -no-cpp-precomp"
4457 # Use fink packages if available.
4458 if test -d /sw/include && test -d /sw/lib; then
4459 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4460 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4461 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4462 fi
4463 ;;
4464
4465 ## HP 9000 series 700 and 800, running HP/UX
4466 hppa*-hp-hpux10.2* )
4467 opsys=hpux10-20
4468 ;;
4469 hppa*-hp-hpux1[1-9]* )
4470 opsys=hpux11
4471 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4472 ;;
4473
4474 ia64*-hp-hpux1[1-9]* )
4475 machine=hp800 opsys=hpux11
4476 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4477 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4478 CANNOT_DUMP=yes
4479 ;;
4480
4481 hppa*-*-linux-gnu* )
4482 machine=hp800 opsys=gnu-linux
4483 ;;
4484
4485 ## IBM machines
4486 rs6000-ibm-aix4.[23]* )
4487 machine=ibmrs6000 opsys=aix4-2
4488 ;;
4489 powerpc-ibm-aix4.[23]* )
4490 machine=ibmrs6000 opsys=aix4-2
4491 ;;
4492 rs6000-ibm-aix[56]* )
4493 machine=ibmrs6000 opsys=aix4-2
4494 ;;
4495 powerpc-ibm-aix[56]* )
4496 machine=ibmrs6000 opsys=aix4-2
4497 ;;
4498
4499 ## Silicon Graphics machines
4500 ## Iris 4D
4501 mips-sgi-irix6.5 )
4502 opsys=irix6-5
4503 # Without defining _LANGUAGE_C, things get masked out in the headers
4504 # so that, for instance, grepping for `free' in stdlib.h fails and
4505 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4506 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4507 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4508 ;;
4509
4510 ## Suns
4511 *-sun-solaris* \
4512 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4513 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4514 case "${canonical}" in
4515 i[3456]86-*-* ) machine=intel386 ;;
4516 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4517 sparc* ) machine=sparc ;;
4518 * ) unported=yes ;;
4519 esac
4520 case "${canonical}" in
4521 *-sunos5.6* | *-solaris2.6* )
4522 opsys=sol2-6
4523 NON_GNU_CPP=/usr/ccs/lib/cpp
4524 RANLIB="ar -ts"
4525 ;;
4526 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4527 opsys=sol2-6
4528 emacs_check_sunpro_c=yes
4529 NON_GNU_CPP=/usr/ccs/lib/cpp
4530 ;;
4531 *-sunos5* | *-solaris* )
4532 opsys=sol2-10
4533 emacs_check_sunpro_c=yes
4534 NON_GNU_CPP=/usr/ccs/lib/cpp
4535 ;;
4536 esac
4537 ## Watch out for a compiler that we know will not work.
4538 case "${canonical}" in
4539 *-solaris* | *-sunos5* )
4540 if [ "x$CC" = x/usr/ucb/cc ]; then
4541 ## /usr/ucb/cc doesn't work;
4542 ## we should find some other compiler that does work.
4543 unset CC
4544 fi
4545 ;;
4546 *) ;;
4547 esac
4548 ;;
4549
4550 ## Intel 386 machines where we don't care about the manufacturer.
4551 i[3456]86-*-* )
4552 machine=intel386
4553 case "${canonical}" in
4554 *-cygwin ) opsys=cygwin ;;
4555 *-darwin* ) opsys=darwin
4556 CPP="${CC-cc} -E -no-cpp-precomp"
4557 ;;
4558 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4559 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4560 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4561 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4562 esac
4563 ;;
4564
4565 * )
4566 unported=yes
4567 ;;
4568 esac
4569
4570 ### If the code above didn't choose an operating system, just choose
4571 ### an operating system based on the configuration name. You really
4572 ### only want to use this when you have no idea what the right
4573 ### operating system is; if you know what operating systems a machine
4574 ### runs, it's cleaner to make it explicit in the case statement
4575 ### above.
4576 if test x"${opsys}" = x; then
4577 case "${canonical}" in
4578 *-gnu* ) opsys=gnu ;;
4579 * )
4580 unported=yes
4581 ;;
4582 esac
4583 fi
4584
4585
4586
4587 if test $unported = yes; then
4588 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4589 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4590 fi
4591
4592 if test -n "$machine"; then
4593 machfile="m/${machine}.h"
4594 else
4595 machfile=
4596 fi
4597 opsysfile="s/${opsys}.h"
4598
4599
4600 #### Choose a compiler.
4601 test -n "$CC" && cc_specified=yes
4602
4603 # Save the value of CFLAGS that the user specified.
4604 SPECIFIED_CFLAGS="$CFLAGS"
4605
4606 ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if test "${ac_cv_prog_CC+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 if test -n "$CC"; then
4620 ac_cv_prog_CC="$CC" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4632 fi
4633 done
4634 done
4635 IFS=$as_save_IFS
4636
4637 fi
4638 fi
4639 CC=$ac_cv_prog_CC
4640 if test -n "$CC"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4642 $as_echo "$CC" >&6; }
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4646 fi
4647
4648
4649 fi
4650 if test -z "$ac_cv_prog_CC"; then
4651 ac_ct_CC=$CC
4652 # Extract the first word of "gcc", so it can be a program name with args.
4653 set dummy gcc; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_CC="gcc"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 fi
4678 fi
4679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682 $as_echo "$ac_ct_CC" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4686 fi
4687
4688 if test "x$ac_ct_CC" = x; then
4689 CC=""
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4696 esac
4697 CC=$ac_ct_CC
4698 fi
4699 else
4700 CC="$ac_cv_prog_CC"
4701 fi
4702
4703 if test -z "$CC"; then
4704 if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4706 set dummy ${ac_tool_prefix}cc; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_prog_CC+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if test -n "$CC"; then
4713 ac_cv_prog_CC="$CC" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_CC="${ac_tool_prefix}cc"
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4729
4730 fi
4731 fi
4732 CC=$ac_cv_prog_CC
4733 if test -n "$CC"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4735 $as_echo "$CC" >&6; }
4736 else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4739 fi
4740
4741
4742 fi
4743 fi
4744 if test -z "$CC"; then
4745 # Extract the first word of "cc", so it can be a program name with args.
4746 set dummy cc; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if test "${ac_cv_prog_CC+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4754 else
4755 ac_prog_rejected=no
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4758 do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4764 ac_prog_rejected=yes
4765 continue
4766 fi
4767 ac_cv_prog_CC="cc"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 if test $ac_prog_rejected = yes; then
4776 # We found a bogon in the path, so make sure we never use it.
4777 set dummy $ac_cv_prog_CC
4778 shift
4779 if test $# != 0; then
4780 # We chose a different compiler from the bogus one.
4781 # However, it has the same basename, so the bogon will be chosen
4782 # first if we set CC to just the basename; use the full file name.
4783 shift
4784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4785 fi
4786 fi
4787 fi
4788 fi
4789 CC=$ac_cv_prog_CC
4790 if test -n "$CC"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4792 $as_echo "$CC" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798
4799 fi
4800 if test -z "$CC"; then
4801 if test -n "$ac_tool_prefix"; then
4802 for ac_prog in cl.exe
4803 do
4804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_prog_CC+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC="$CC" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825 done
4826 done
4827 IFS=$as_save_IFS
4828
4829 fi
4830 fi
4831 CC=$ac_cv_prog_CC
4832 if test -n "$CC"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4834 $as_echo "$CC" >&6; }
4835 else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4838 fi
4839
4840
4841 test -n "$CC" && break
4842 done
4843 fi
4844 if test -z "$CC"; then
4845 ac_ct_CC=$CC
4846 for ac_prog in cl.exe
4847 do
4848 # Extract the first word of "$ac_prog", so it can be a program name with args.
4849 set dummy $ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$ac_ct_CC"; then
4856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_ac_ct_CC="$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869 done
4870 done
4871 IFS=$as_save_IFS
4872
4873 fi
4874 fi
4875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4876 if test -n "$ac_ct_CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4878 $as_echo "$ac_ct_CC" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4882 fi
4883
4884
4885 test -n "$ac_ct_CC" && break
4886 done
4887
4888 if test "x$ac_ct_CC" = x; then
4889 CC=""
4890 else
4891 case $cross_compiling:$ac_tool_warned in
4892 yes:)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned=yes ;;
4896 esac
4897 CC=$ac_ct_CC
4898 fi
4899 fi
4900
4901 fi
4902
4903
4904 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906 as_fn_error "no acceptable C compiler found in \$PATH
4907 See \`config.log' for more details." "$LINENO" 5; }
4908
4909 # Provide some information about the compiler.
4910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4911 set X $ac_compile
4912 ac_compiler=$2
4913 for ac_option in --version -v -V -qversion; do
4914 { { ac_try="$ac_compiler $ac_option >&5"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4922 ac_status=$?
4923 if test -s conftest.err; then
4924 sed '10a\
4925 ... rest of stderr output deleted ...
4926 10q' conftest.err >conftest.er1
4927 cat conftest.er1 >&5
4928 fi
4929 rm -f conftest.er1 conftest.err
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4932 done
4933
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936
4937 int
4938 main ()
4939 {
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 ac_clean_files_save=$ac_clean_files
4946 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4947 # Try to create an executable without -o first, disregard a.out.
4948 # It will help us diagnose broken compilers, and finding out an intuition
4949 # of exeext.
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4951 $as_echo_n "checking whether the C compiler works... " >&6; }
4952 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4953
4954 # The possible output files:
4955 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4956
4957 ac_rmfiles=
4958 for ac_file in $ac_files
4959 do
4960 case $ac_file in
4961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4962 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4963 esac
4964 done
4965 rm -f $ac_rmfiles
4966
4967 if { { ac_try="$ac_link_default"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4973 $as_echo "$ac_try_echo"; } >&5
4974 (eval "$ac_link_default") 2>&5
4975 ac_status=$?
4976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977 test $ac_status = 0; }; then :
4978 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4979 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4980 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4981 # so that the user can short-circuit this test for compilers unknown to
4982 # Autoconf.
4983 for ac_file in $ac_files ''
4984 do
4985 test -f "$ac_file" || continue
4986 case $ac_file in
4987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4988 ;;
4989 [ab].out )
4990 # We found the default executable, but exeext='' is most
4991 # certainly right.
4992 break;;
4993 *.* )
4994 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4995 then :; else
4996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4997 fi
4998 # We set ac_cv_exeext here because the later test for it is not
4999 # safe: cross compilers may not add the suffix if given an `-o'
5000 # argument, so we may need to know it at that point already.
5001 # Even if this section looks crufty: it has the advantage of
5002 # actually working.
5003 break;;
5004 * )
5005 break;;
5006 esac
5007 done
5008 test "$ac_cv_exeext" = no && ac_cv_exeext=
5009
5010 else
5011 ac_file=''
5012 fi
5013 if test -z "$ac_file"; then :
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 $as_echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5021 { as_fn_set_status 77
5022 as_fn_error "C compiler cannot create executables
5023 See \`config.log' for more details." "$LINENO" 5; }; }
5024 else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026 $as_echo "yes" >&6; }
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5029 $as_echo_n "checking for C compiler default output file name... " >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5031 $as_echo "$ac_file" >&6; }
5032 ac_exeext=$ac_cv_exeext
5033
5034 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5035 ac_clean_files=$ac_clean_files_save
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5037 $as_echo_n "checking for suffix of executables... " >&6; }
5038 if { { ac_try="$ac_link"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044 $as_echo "$ac_try_echo"; } >&5
5045 (eval "$ac_link") 2>&5
5046 ac_status=$?
5047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; }; then :
5049 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5050 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5051 # work properly (i.e., refer to `conftest.exe'), while it won't with
5052 # `rm'.
5053 for ac_file in conftest.exe conftest conftest.*; do
5054 test -f "$ac_file" || continue
5055 case $ac_file in
5056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5058 break;;
5059 * ) break;;
5060 esac
5061 done
5062 else
5063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5065 as_fn_error "cannot compute suffix of executables: cannot compile and link
5066 See \`config.log' for more details." "$LINENO" 5; }
5067 fi
5068 rm -f conftest conftest$ac_cv_exeext
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5070 $as_echo "$ac_cv_exeext" >&6; }
5071
5072 rm -f conftest.$ac_ext
5073 EXEEXT=$ac_cv_exeext
5074 ac_exeext=$EXEEXT
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <stdio.h>
5078 int
5079 main ()
5080 {
5081 FILE *f = fopen ("conftest.out", "w");
5082 return ferror (f) || fclose (f) != 0;
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 ac_clean_files="$ac_clean_files conftest.out"
5089 # Check that the compiler produces executables we can run. If not, either
5090 # the compiler is broken, or we cross compile.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5092 $as_echo_n "checking whether we are cross compiling... " >&6; }
5093 if test "$cross_compiling" != yes; then
5094 { { ac_try="$ac_link"
5095 case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5100 $as_echo "$ac_try_echo"; } >&5
5101 (eval "$ac_link") 2>&5
5102 ac_status=$?
5103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104 test $ac_status = 0; }
5105 if { ac_try='./conftest$ac_cv_exeext'
5106 { { case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5111 $as_echo "$ac_try_echo"; } >&5
5112 (eval "$ac_try") 2>&5
5113 ac_status=$?
5114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5115 test $ac_status = 0; }; }; then
5116 cross_compiling=no
5117 else
5118 if test "$cross_compiling" = maybe; then
5119 cross_compiling=yes
5120 else
5121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5123 as_fn_error "cannot run C compiled programs.
5124 If you meant to cross compile, use \`--host'.
5125 See \`config.log' for more details." "$LINENO" 5; }
5126 fi
5127 fi
5128 fi
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5130 $as_echo "$cross_compiling" >&6; }
5131
5132 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5133 ac_clean_files=$ac_clean_files_save
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5135 $as_echo_n "checking for suffix of object files... " >&6; }
5136 if test "${ac_cv_objext+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141
5142 int
5143 main ()
5144 {
5145
5146 ;
5147 return 0;
5148 }
5149 _ACEOF
5150 rm -f conftest.o conftest.obj
5151 if { { ac_try="$ac_compile"
5152 case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155 esac
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_compile") 2>&5
5159 ac_status=$?
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; }; then :
5162 for ac_file in conftest.o conftest.obj conftest.*; do
5163 test -f "$ac_file" || continue;
5164 case $ac_file in
5165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5166 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5167 break;;
5168 esac
5169 done
5170 else
5171 $as_echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5176 as_fn_error "cannot compute suffix of object files: cannot compile
5177 See \`config.log' for more details." "$LINENO" 5; }
5178 fi
5179 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5180 fi
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5182 $as_echo "$ac_cv_objext" >&6; }
5183 OBJEXT=$ac_cv_objext
5184 ac_objext=$OBJEXT
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5186 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5187 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192
5193 int
5194 main ()
5195 {
5196 #ifndef __GNUC__
5197 choke me
5198 #endif
5199
5200 ;
5201 return 0;
5202 }
5203 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 ac_compiler_gnu=yes
5206 else
5207 ac_compiler_gnu=no
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5211
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5214 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5215 if test $ac_compiler_gnu = yes; then
5216 GCC=yes
5217 else
5218 GCC=
5219 fi
5220 ac_test_CFLAGS=${CFLAGS+set}
5221 ac_save_CFLAGS=$CFLAGS
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5223 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5224 if test "${ac_cv_prog_cc_g+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 ac_save_c_werror_flag=$ac_c_werror_flag
5228 ac_c_werror_flag=yes
5229 ac_cv_prog_cc_g=no
5230 CFLAGS="-g"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233
5234 int
5235 main ()
5236 {
5237
5238 ;
5239 return 0;
5240 }
5241 _ACEOF
5242 if ac_fn_c_try_compile "$LINENO"; then :
5243 ac_cv_prog_cc_g=yes
5244 else
5245 CFLAGS=""
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248
5249 int
5250 main ()
5251 {
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258
5259 else
5260 ac_c_werror_flag=$ac_save_c_werror_flag
5261 CFLAGS="-g"
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264
5265 int
5266 main ()
5267 {
5268
5269 ;
5270 return 0;
5271 }
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274 ac_cv_prog_cc_g=yes
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 ac_c_werror_flag=$ac_save_c_werror_flag
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5284 $as_echo "$ac_cv_prog_cc_g" >&6; }
5285 if test "$ac_test_CFLAGS" = set; then
5286 CFLAGS=$ac_save_CFLAGS
5287 elif test $ac_cv_prog_cc_g = yes; then
5288 if test "$GCC" = yes; then
5289 CFLAGS="-g -O2"
5290 else
5291 CFLAGS="-g"
5292 fi
5293 else
5294 if test "$GCC" = yes; then
5295 CFLAGS="-O2"
5296 else
5297 CFLAGS=
5298 fi
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5301 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5302 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 ac_cv_prog_cc_c89=no
5306 ac_save_CC=$CC
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <stdarg.h>
5310 #include <stdio.h>
5311 #include <sys/types.h>
5312 #include <sys/stat.h>
5313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5314 struct buf { int x; };
5315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5316 static char *e (p, i)
5317 char **p;
5318 int i;
5319 {
5320 return p[i];
5321 }
5322 static char *f (char * (*g) (char **, int), char **p, ...)
5323 {
5324 char *s;
5325 va_list v;
5326 va_start (v,p);
5327 s = g (p, va_arg (v,int));
5328 va_end (v);
5329 return s;
5330 }
5331
5332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5333 function prototypes and stuff, but not '\xHH' hex character constants.
5334 These don't provoke an error unfortunately, instead are silently treated
5335 as 'x'. The following induces an error, until -std is added to get
5336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5337 array size at least. It's necessary to write '\x00'==0 to get something
5338 that's true only with -std. */
5339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5340
5341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5342 inside strings and character constants. */
5343 #define FOO(x) 'x'
5344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5345
5346 int test (int i, double x);
5347 struct s1 {int (*f) (int a);};
5348 struct s2 {int (*f) (double a);};
5349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5350 int argc;
5351 char **argv;
5352 int
5353 main ()
5354 {
5355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5356 ;
5357 return 0;
5358 }
5359 _ACEOF
5360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5362 do
5363 CC="$ac_save_CC $ac_arg"
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_prog_cc_c89=$ac_arg
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext
5368 test "x$ac_cv_prog_cc_c89" != "xno" && break
5369 done
5370 rm -f conftest.$ac_ext
5371 CC=$ac_save_CC
5372
5373 fi
5374 # AC_CACHE_VAL
5375 case "x$ac_cv_prog_cc_c89" in
5376 x)
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5378 $as_echo "none needed" >&6; } ;;
5379 xno)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5381 $as_echo "unsupported" >&6; } ;;
5382 *)
5383 CC="$CC $ac_cv_prog_cc_c89"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5386 esac
5387 if test "x$ac_cv_prog_cc_c89" != xno; then :
5388
5389 fi
5390
5391 ac_ext=c
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396 DEPDIR="${am__leading_dot}deps"
5397
5398 ac_config_commands="$ac_config_commands depfiles"
5399
5400
5401 am_make=${MAKE-make}
5402 cat > confinc << 'END'
5403 am__doit:
5404 @echo this is the am__doit target
5405 .PHONY: am__doit
5406 END
5407 # If we don't find an include directive, just comment out the code.
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5409 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5410 am__include="#"
5411 am__quote=
5412 _am_result=none
5413 # First try GNU make style include.
5414 echo "include confinc" > confmf
5415 # Ignore all kinds of additional output from `make'.
5416 case `$am_make -s -f confmf 2> /dev/null` in #(
5417 *the\ am__doit\ target*)
5418 am__include=include
5419 am__quote=
5420 _am_result=GNU
5421 ;;
5422 esac
5423 # Now try BSD make style include.
5424 if test "$am__include" = "#"; then
5425 echo '.include "confinc"' > confmf
5426 case `$am_make -s -f confmf 2> /dev/null` in #(
5427 *the\ am__doit\ target*)
5428 am__include=.include
5429 am__quote="\""
5430 _am_result=BSD
5431 ;;
5432 esac
5433 fi
5434
5435
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5437 $as_echo "$_am_result" >&6; }
5438 rm -f confinc confmf
5439
5440 # Check whether --enable-dependency-tracking was given.
5441 if test "${enable_dependency_tracking+set}" = set; then :
5442 enableval=$enable_dependency_tracking;
5443 fi
5444
5445 if test "x$enable_dependency_tracking" != xno; then
5446 am_depcomp="$ac_aux_dir/depcomp"
5447 AMDEPBACKSLASH='\'
5448 fi
5449 if test "x$enable_dependency_tracking" != xno; then
5450 AMDEP_TRUE=
5451 AMDEP_FALSE='#'
5452 else
5453 AMDEP_TRUE='#'
5454 AMDEP_FALSE=
5455 fi
5456
5457
5458
5459 depcc="$CC" am_compiler_list=
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5462 $as_echo_n "checking dependency style of $depcc... " >&6; }
5463 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5467 # We make a subdir and do the tests there. Otherwise we can end up
5468 # making bogus files that we don't know about and never remove. For
5469 # instance it was reported that on HP-UX the gcc test will end up
5470 # making a dummy file named `D' -- because `-MD' means `put the output
5471 # in D'.
5472 mkdir conftest.dir
5473 # Copy depcomp to subdir because otherwise we won't find it if we're
5474 # using a relative directory.
5475 cp "$am_depcomp" conftest.dir
5476 cd conftest.dir
5477 # We will build objects and dependencies in a subdirectory because
5478 # it helps to detect inapplicable dependency modes. For instance
5479 # both Tru64's cc and ICC support -MD to output dependencies as a
5480 # side effect of compilation, but ICC will put the dependencies in
5481 # the current directory while Tru64 will put them in the object
5482 # directory.
5483 mkdir sub
5484
5485 am_cv_CC_dependencies_compiler_type=none
5486 if test "$am_compiler_list" = ""; then
5487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5488 fi
5489 am__universal=false
5490 case " $depcc " in #(
5491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5492 esac
5493
5494 for depmode in $am_compiler_list; do
5495 # Setup a source with many dependencies, because some compilers
5496 # like to wrap large dependency lists on column 80 (with \), and
5497 # we should not choose a depcomp mode which is confused by this.
5498 #
5499 # We need to recreate these files for each test, as the compiler may
5500 # overwrite some of them when testing with obscure command lines.
5501 # This happens at least with the AIX C compiler.
5502 : > sub/conftest.c
5503 for i in 1 2 3 4 5 6; do
5504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5506 # Solaris 8's {/usr,}/bin/sh.
5507 touch sub/conftst$i.h
5508 done
5509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5510
5511 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5512 # mode. It turns out that the SunPro C++ compiler does not properly
5513 # handle `-M -o', and we need to detect this. Also, some Intel
5514 # versions had trouble with output in subdirs
5515 am__obj=sub/conftest.${OBJEXT-o}
5516 am__minus_obj="-o $am__obj"
5517 case $depmode in
5518 gcc)
5519 # This depmode causes a compiler race in universal mode.
5520 test "$am__universal" = false || continue
5521 ;;
5522 nosideeffect)
5523 # after this tag, mechanisms are not by side-effect, so they'll
5524 # only be used when explicitly requested
5525 if test "x$enable_dependency_tracking" = xyes; then
5526 continue
5527 else
5528 break
5529 fi
5530 ;;
5531 msvisualcpp | msvcmsys)
5532 # This compiler won't grok `-c -o', but also, the minuso test has
5533 # not run yet. These depmodes are late enough in the game, and
5534 # so weak that their functioning should not be impacted.
5535 am__obj=conftest.${OBJEXT-o}
5536 am__minus_obj=
5537 ;;
5538 none) break ;;
5539 esac
5540 if depmode=$depmode \
5541 source=sub/conftest.c object=$am__obj \
5542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5544 >/dev/null 2>conftest.err &&
5545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5549 # icc doesn't choke on unknown options, it will just issue warnings
5550 # or remarks (even with -Werror). So we grep stderr for any message
5551 # that says an option was ignored or not supported.
5552 # When given -MP, icc 7.0 and 7.1 complain thusly:
5553 # icc: Command line warning: ignoring option '-M'; no argument required
5554 # The diagnosis changed in icc 8.0:
5555 # icc: Command line remark: option '-MP' not supported
5556 if (grep 'ignoring option' conftest.err ||
5557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5558 am_cv_CC_dependencies_compiler_type=$depmode
5559 break
5560 fi
5561 fi
5562 done
5563
5564 cd ..
5565 rm -rf conftest.dir
5566 else
5567 am_cv_CC_dependencies_compiler_type=none
5568 fi
5569
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5572 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5573 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5574
5575 if
5576 test "x$enable_dependency_tracking" != xno \
5577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5578 am__fastdepCC_TRUE=
5579 am__fastdepCC_FALSE='#'
5580 else
5581 am__fastdepCC_TRUE='#'
5582 am__fastdepCC_FALSE=
5583 fi
5584
5585
5586 if test "x$CC" != xcc; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5588 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5591 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5592 fi
5593 set dummy $CC; ac_cc=`$as_echo "$2" |
5594 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5595 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600
5601 int
5602 main ()
5603 {
5604
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 # Make sure it works both with $CC and with simple cc.
5610 # We do the test twice because some compilers refuse to overwrite an
5611 # existing .o file with -o, though they will create one.
5612 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5613 rm -f conftest2.*
5614 if { { case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617 esac
5618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5619 $as_echo "$ac_try_echo"; } >&5
5620 (eval "$ac_try") 2>&5
5621 ac_status=$?
5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623 test $ac_status = 0; } &&
5624 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627 esac
5628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5629 $as_echo "$ac_try_echo"; } >&5
5630 (eval "$ac_try") 2>&5
5631 ac_status=$?
5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633 test $ac_status = 0; };
5634 then
5635 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5636 if test "x$CC" != xcc; then
5637 # Test first that cc exists at all.
5638 if { ac_try='cc -c conftest.$ac_ext >&5'
5639 { { 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; }; }; then
5649 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5650 rm -f conftest2.*
5651 if { { case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5656 $as_echo "$ac_try_echo"; } >&5
5657 (eval "$ac_try") 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; } &&
5661 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5666 $as_echo "$ac_try_echo"; } >&5
5667 (eval "$ac_try") 2>&5
5668 ac_status=$?
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; };
5671 then
5672 # cc works too.
5673 :
5674 else
5675 # cc exists but doesn't like -o.
5676 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5677 fi
5678 fi
5679 fi
5680 else
5681 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5682 fi
5683 rm -f core conftest*
5684
5685 fi
5686 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5688 $as_echo "yes" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692
5693 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5694
5695 fi
5696
5697 # FIXME: we rely on the cache variable name because
5698 # there is no other way.
5699 set dummy $CC
5700 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5701 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5702 if test "$am_t" != yes; then
5703 # Losing compiler, so override with the script.
5704 # FIXME: It is wrong to rewrite CC.
5705 # But if we don't then we get into trouble of one sort or another.
5706 # A longer-term fix would be to have automake use am__CC in this case,
5707 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5708 CC="$am_aux_dir/compile $CC"
5709 fi
5710
5711
5712
5713 # Initialize gnulib right after verifying that the C compiler works.
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$RANLIB"; then
5723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5735 fi
5736 done
5737 done
5738 IFS=$as_save_IFS
5739
5740 fi
5741 fi
5742 RANLIB=$ac_cv_prog_RANLIB
5743 if test -n "$RANLIB"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5745 $as_echo "$RANLIB" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751
5752 fi
5753 if test -z "$ac_cv_prog_RANLIB"; then
5754 ac_ct_RANLIB=$RANLIB
5755 # Extract the first word of "ranlib", so it can be a program name with args.
5756 set dummy ranlib; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$ac_ct_RANLIB"; then
5763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_ac_ct_RANLIB="ranlib"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5783 if test -n "$ac_ct_RANLIB"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5785 $as_echo "$ac_ct_RANLIB" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790
5791 if test "x$ac_ct_RANLIB" = x; then
5792 RANLIB=":"
5793 else
5794 case $cross_compiling:$ac_tool_warned in
5795 yes:)
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798 ac_tool_warned=yes ;;
5799 esac
5800 RANLIB=$ac_ct_RANLIB
5801 fi
5802 else
5803 RANLIB="$ac_cv_prog_RANLIB"
5804 fi
5805
5806
5807 ac_ext=c
5808 ac_cpp='$CPP $CPPFLAGS'
5809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5813 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5814 # On Suns, sometimes $CPP names a directory.
5815 if test -n "$CPP" && test -d "$CPP"; then
5816 CPP=
5817 fi
5818 if test -z "$CPP"; then
5819 if test "${ac_cv_prog_CPP+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 # Double quotes because CPP needs to be expanded
5823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5824 do
5825 ac_preproc_ok=false
5826 for ac_c_preproc_warn_flag in '' yes
5827 do
5828 # Use a header file that comes with gcc, so configuring glibc
5829 # with a fresh cross-compiler works.
5830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5831 # <limits.h> exists even on freestanding compilers.
5832 # On the NeXT, cc -E runs the code through the compiler's parser,
5833 # not just through cpp. "Syntax error" is here to catch this case.
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #ifdef __STDC__
5837 # include <limits.h>
5838 #else
5839 # include <assert.h>
5840 #endif
5841 Syntax error
5842 _ACEOF
5843 if ac_fn_c_try_cpp "$LINENO"; then :
5844
5845 else
5846 # Broken: fails on valid input.
5847 continue
5848 fi
5849 rm -f conftest.err conftest.$ac_ext
5850
5851 # OK, works on sane cases. Now check whether nonexistent headers
5852 # can be detected and how.
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 #include <ac_nonexistent.h>
5856 _ACEOF
5857 if ac_fn_c_try_cpp "$LINENO"; then :
5858 # Broken: success on invalid input.
5859 continue
5860 else
5861 # Passes both tests.
5862 ac_preproc_ok=:
5863 break
5864 fi
5865 rm -f conftest.err conftest.$ac_ext
5866
5867 done
5868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5869 rm -f conftest.err conftest.$ac_ext
5870 if $ac_preproc_ok; then :
5871 break
5872 fi
5873
5874 done
5875 ac_cv_prog_CPP=$CPP
5876
5877 fi
5878 CPP=$ac_cv_prog_CPP
5879 else
5880 ac_cv_prog_CPP=$CPP
5881 fi
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5883 $as_echo "$CPP" >&6; }
5884 ac_preproc_ok=false
5885 for ac_c_preproc_warn_flag in '' yes
5886 do
5887 # Use a header file that comes with gcc, so configuring glibc
5888 # with a fresh cross-compiler works.
5889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5890 # <limits.h> exists even on freestanding compilers.
5891 # On the NeXT, cc -E runs the code through the compiler's parser,
5892 # not just through cpp. "Syntax error" is here to catch this case.
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #ifdef __STDC__
5896 # include <limits.h>
5897 #else
5898 # include <assert.h>
5899 #endif
5900 Syntax error
5901 _ACEOF
5902 if ac_fn_c_try_cpp "$LINENO"; then :
5903
5904 else
5905 # Broken: fails on valid input.
5906 continue
5907 fi
5908 rm -f conftest.err conftest.$ac_ext
5909
5910 # OK, works on sane cases. Now check whether nonexistent headers
5911 # can be detected and how.
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <ac_nonexistent.h>
5915 _ACEOF
5916 if ac_fn_c_try_cpp "$LINENO"; then :
5917 # Broken: success on invalid input.
5918 continue
5919 else
5920 # Passes both tests.
5921 ac_preproc_ok=:
5922 break
5923 fi
5924 rm -f conftest.err conftest.$ac_ext
5925
5926 done
5927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5928 rm -f conftest.err conftest.$ac_ext
5929 if $ac_preproc_ok; then :
5930
5931 else
5932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5934 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5935 See \`config.log' for more details." "$LINENO" 5; }
5936 fi
5937
5938 ac_ext=c
5939 ac_cpp='$CPP $CPPFLAGS'
5940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5943
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5946 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5947 if test "${ac_cv_path_GREP+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -z "$GREP"; then
5951 ac_path_GREP_found=false
5952 # Loop through the user's path and test for each of PROGNAME-LIST
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5955 do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_prog in grep ggrep; do
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5961 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5962 # Check for GNU ac_path_GREP and select it if it is found.
5963 # Check for GNU $ac_path_GREP
5964 case `"$ac_path_GREP" --version 2>&1` in
5965 *GNU*)
5966 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5967 *)
5968 ac_count=0
5969 $as_echo_n 0123456789 >"conftest.in"
5970 while :
5971 do
5972 cat "conftest.in" "conftest.in" >"conftest.tmp"
5973 mv "conftest.tmp" "conftest.in"
5974 cp "conftest.in" "conftest.nl"
5975 $as_echo 'GREP' >> "conftest.nl"
5976 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5978 as_fn_arith $ac_count + 1 && ac_count=$as_val
5979 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5980 # Best one so far, save it but keep looking for a better one
5981 ac_cv_path_GREP="$ac_path_GREP"
5982 ac_path_GREP_max=$ac_count
5983 fi
5984 # 10*(2^10) chars as input seems more than enough
5985 test $ac_count -gt 10 && break
5986 done
5987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5988 esac
5989
5990 $ac_path_GREP_found && break 3
5991 done
5992 done
5993 done
5994 IFS=$as_save_IFS
5995 if test -z "$ac_cv_path_GREP"; then
5996 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5997 fi
5998 else
5999 ac_cv_path_GREP=$GREP
6000 fi
6001
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6004 $as_echo "$ac_cv_path_GREP" >&6; }
6005 GREP="$ac_cv_path_GREP"
6006
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6009 $as_echo_n "checking for egrep... " >&6; }
6010 if test "${ac_cv_path_EGREP+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6014 then ac_cv_path_EGREP="$GREP -E"
6015 else
6016 if test -z "$EGREP"; then
6017 ac_path_EGREP_found=false
6018 # Loop through the user's path and test for each of PROGNAME-LIST
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6021 do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_prog in egrep; do
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6027 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6028 # Check for GNU ac_path_EGREP and select it if it is found.
6029 # Check for GNU $ac_path_EGREP
6030 case `"$ac_path_EGREP" --version 2>&1` in
6031 *GNU*)
6032 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6033 *)
6034 ac_count=0
6035 $as_echo_n 0123456789 >"conftest.in"
6036 while :
6037 do
6038 cat "conftest.in" "conftest.in" >"conftest.tmp"
6039 mv "conftest.tmp" "conftest.in"
6040 cp "conftest.in" "conftest.nl"
6041 $as_echo 'EGREP' >> "conftest.nl"
6042 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6044 as_fn_arith $ac_count + 1 && ac_count=$as_val
6045 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6046 # Best one so far, save it but keep looking for a better one
6047 ac_cv_path_EGREP="$ac_path_EGREP"
6048 ac_path_EGREP_max=$ac_count
6049 fi
6050 # 10*(2^10) chars as input seems more than enough
6051 test $ac_count -gt 10 && break
6052 done
6053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6054 esac
6055
6056 $ac_path_EGREP_found && break 3
6057 done
6058 done
6059 done
6060 IFS=$as_save_IFS
6061 if test -z "$ac_cv_path_EGREP"; then
6062 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6063 fi
6064 else
6065 ac_cv_path_EGREP=$EGREP
6066 fi
6067
6068 fi
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6071 $as_echo "$ac_cv_path_EGREP" >&6; }
6072 EGREP="$ac_cv_path_EGREP"
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6076 $as_echo_n "checking for ANSI C header files... " >&6; }
6077 if test "${ac_cv_header_stdc+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 #include <stdlib.h>
6083 #include <stdarg.h>
6084 #include <string.h>
6085 #include <float.h>
6086
6087 int
6088 main ()
6089 {
6090
6091 ;
6092 return 0;
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096 ac_cv_header_stdc=yes
6097 else
6098 ac_cv_header_stdc=no
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101
6102 if test $ac_cv_header_stdc = yes; then
6103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 #include <string.h>
6107
6108 _ACEOF
6109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6110 $EGREP "memchr" >/dev/null 2>&1; then :
6111
6112 else
6113 ac_cv_header_stdc=no
6114 fi
6115 rm -f conftest*
6116
6117 fi
6118
6119 if test $ac_cv_header_stdc = yes; then
6120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 #include <stdlib.h>
6124
6125 _ACEOF
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 $EGREP "free" >/dev/null 2>&1; then :
6128
6129 else
6130 ac_cv_header_stdc=no
6131 fi
6132 rm -f conftest*
6133
6134 fi
6135
6136 if test $ac_cv_header_stdc = yes; then
6137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6138 if test "$cross_compiling" = yes; then :
6139 :
6140 else
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 #include <ctype.h>
6144 #include <stdlib.h>
6145 #if ((' ' & 0x0FF) == 0x020)
6146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6148 #else
6149 # define ISLOWER(c) \
6150 (('a' <= (c) && (c) <= 'i') \
6151 || ('j' <= (c) && (c) <= 'r') \
6152 || ('s' <= (c) && (c) <= 'z'))
6153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6154 #endif
6155
6156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6157 int
6158 main ()
6159 {
6160 int i;
6161 for (i = 0; i < 256; i++)
6162 if (XOR (islower (i), ISLOWER (i))
6163 || toupper (i) != TOUPPER (i))
6164 return 2;
6165 return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_run "$LINENO"; then :
6169
6170 else
6171 ac_cv_header_stdc=no
6172 fi
6173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6174 conftest.$ac_objext conftest.beam conftest.$ac_ext
6175 fi
6176
6177 fi
6178 fi
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6180 $as_echo "$ac_cv_header_stdc" >&6; }
6181 if test $ac_cv_header_stdc = yes; then
6182
6183 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6184
6185 fi
6186
6187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6188 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6189 inttypes.h stdint.h unistd.h
6190 do :
6191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6193 "
6194 eval as_val=\$$as_ac_Header
6195 if test "x$as_val" = x""yes; then :
6196 cat >>confdefs.h <<_ACEOF
6197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6198 _ACEOF
6199
6200 fi
6201
6202 done
6203
6204
6205
6206
6207
6208 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6209 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6210 MINIX=yes
6211 else
6212 MINIX=
6213 fi
6214
6215
6216 if test "$MINIX" = yes; then
6217
6218 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6219
6220
6221 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6222
6223
6224 $as_echo "#define _MINIX 1" >>confdefs.h
6225
6226 fi
6227
6228 case "$host_os" in
6229 hpux*)
6230
6231 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6232
6233 ;;
6234 esac
6235
6236
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6238 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6239 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244
6245 # define __EXTENSIONS__ 1
6246 $ac_includes_default
6247 int
6248 main ()
6249 {
6250
6251 ;
6252 return 0;
6253 }
6254 _ACEOF
6255 if ac_fn_c_try_compile "$LINENO"; then :
6256 ac_cv_safe_to_define___extensions__=yes
6257 else
6258 ac_cv_safe_to_define___extensions__=no
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6263 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6264 test $ac_cv_safe_to_define___extensions__ = yes &&
6265 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6266
6267 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6268
6269 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6270
6271 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6272
6273 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6274
6275
6276
6277
6278
6279
6280
6281
6282 case $ac_cv_prog_cc_stdc in #(
6283 no) :
6284 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6285 *) :
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6287 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6288 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 ac_cv_prog_cc_c99=no
6292 ac_save_CC=$CC
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #include <stdarg.h>
6296 #include <stdbool.h>
6297 #include <stdlib.h>
6298 #include <wchar.h>
6299 #include <stdio.h>
6300
6301 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6302 #define debug(...) fprintf (stderr, __VA_ARGS__)
6303 #define showlist(...) puts (#__VA_ARGS__)
6304 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6305 static void
6306 test_varargs_macros (void)
6307 {
6308 int x = 1234;
6309 int y = 5678;
6310 debug ("Flag");
6311 debug ("X = %d\n", x);
6312 showlist (The first, second, and third items.);
6313 report (x>y, "x is %d but y is %d", x, y);
6314 }
6315
6316 // Check long long types.
6317 #define BIG64 18446744073709551615ull
6318 #define BIG32 4294967295ul
6319 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6320 #if !BIG_OK
6321 your preprocessor is broken;
6322 #endif
6323 #if BIG_OK
6324 #else
6325 your preprocessor is broken;
6326 #endif
6327 static long long int bignum = -9223372036854775807LL;
6328 static unsigned long long int ubignum = BIG64;
6329
6330 struct incomplete_array
6331 {
6332 int datasize;
6333 double data[];
6334 };
6335
6336 struct named_init {
6337 int number;
6338 const wchar_t *name;
6339 double average;
6340 };
6341
6342 typedef const char *ccp;
6343
6344 static inline int
6345 test_restrict (ccp restrict text)
6346 {
6347 // See if C++-style comments work.
6348 // Iterate through items via the restricted pointer.
6349 // Also check for declarations in for loops.
6350 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6351 continue;
6352 return 0;
6353 }
6354
6355 // Check varargs and va_copy.
6356 static void
6357 test_varargs (const char *format, ...)
6358 {
6359 va_list args;
6360 va_start (args, format);
6361 va_list args_copy;
6362 va_copy (args_copy, args);
6363
6364 const char *str;
6365 int number;
6366 float fnumber;
6367
6368 while (*format)
6369 {
6370 switch (*format++)
6371 {
6372 case 's': // string
6373 str = va_arg (args_copy, const char *);
6374 break;
6375 case 'd': // int
6376 number = va_arg (args_copy, int);
6377 break;
6378 case 'f': // float
6379 fnumber = va_arg (args_copy, double);
6380 break;
6381 default:
6382 break;
6383 }
6384 }
6385 va_end (args_copy);
6386 va_end (args);
6387 }
6388
6389 int
6390 main ()
6391 {
6392
6393 // Check bool.
6394 _Bool success = false;
6395
6396 // Check restrict.
6397 if (test_restrict ("String literal") == 0)
6398 success = true;
6399 char *restrict newvar = "Another string";
6400
6401 // Check varargs.
6402 test_varargs ("s, d' f .", "string", 65, 34.234);
6403 test_varargs_macros ();
6404
6405 // Check flexible array members.
6406 struct incomplete_array *ia =
6407 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6408 ia->datasize = 10;
6409 for (int i = 0; i < ia->datasize; ++i)
6410 ia->data[i] = i * 1.234;
6411
6412 // Check named initializers.
6413 struct named_init ni = {
6414 .number = 34,
6415 .name = L"Test wide string",
6416 .average = 543.34343,
6417 };
6418
6419 ni.number = 58;
6420
6421 int dynamic_array[ni.number];
6422 dynamic_array[ni.number - 1] = 543;
6423
6424 // work around unused variable warnings
6425 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6426 || dynamic_array[ni.number - 1] != 543);
6427
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6433 do
6434 CC="$ac_save_CC $ac_arg"
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436 ac_cv_prog_cc_c99=$ac_arg
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext
6439 test "x$ac_cv_prog_cc_c99" != "xno" && break
6440 done
6441 rm -f conftest.$ac_ext
6442 CC=$ac_save_CC
6443
6444 fi
6445 # AC_CACHE_VAL
6446 case "x$ac_cv_prog_cc_c99" in
6447 x)
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6449 $as_echo "none needed" >&6; } ;;
6450 xno)
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6452 $as_echo "unsupported" >&6; } ;;
6453 *)
6454 CC="$CC $ac_cv_prog_cc_c99"
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6456 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6457 esac
6458 if test "x$ac_cv_prog_cc_c99" != xno; then :
6459 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6462 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6463 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 ac_cv_prog_cc_c89=no
6467 ac_save_CC=$CC
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 #include <stdarg.h>
6471 #include <stdio.h>
6472 #include <sys/types.h>
6473 #include <sys/stat.h>
6474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6475 struct buf { int x; };
6476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6477 static char *e (p, i)
6478 char **p;
6479 int i;
6480 {
6481 return p[i];
6482 }
6483 static char *f (char * (*g) (char **, int), char **p, ...)
6484 {
6485 char *s;
6486 va_list v;
6487 va_start (v,p);
6488 s = g (p, va_arg (v,int));
6489 va_end (v);
6490 return s;
6491 }
6492
6493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6494 function prototypes and stuff, but not '\xHH' hex character constants.
6495 These don't provoke an error unfortunately, instead are silently treated
6496 as 'x'. The following induces an error, until -std is added to get
6497 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6498 array size at least. It's necessary to write '\x00'==0 to get something
6499 that's true only with -std. */
6500 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6501
6502 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6503 inside strings and character constants. */
6504 #define FOO(x) 'x'
6505 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6506
6507 int test (int i, double x);
6508 struct s1 {int (*f) (int a);};
6509 struct s2 {int (*f) (double a);};
6510 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6511 int argc;
6512 char **argv;
6513 int
6514 main ()
6515 {
6516 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6522 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6523 do
6524 CC="$ac_save_CC $ac_arg"
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 ac_cv_prog_cc_c89=$ac_arg
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext
6529 test "x$ac_cv_prog_cc_c89" != "xno" && break
6530 done
6531 rm -f conftest.$ac_ext
6532 CC=$ac_save_CC
6533
6534 fi
6535 # AC_CACHE_VAL
6536 case "x$ac_cv_prog_cc_c89" in
6537 x)
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6539 $as_echo "none needed" >&6; } ;;
6540 xno)
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6542 $as_echo "unsupported" >&6; } ;;
6543 *)
6544 CC="$CC $ac_cv_prog_cc_c89"
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6546 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6547 esac
6548 if test "x$ac_cv_prog_cc_c89" != xno; then :
6549 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6550 else
6551 ac_cv_prog_cc_stdc=no
6552 fi
6553
6554 fi
6555 ;;
6556 esac
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6558 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6559 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 fi
6562
6563 case $ac_cv_prog_cc_stdc in #(
6564 no) :
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6566 $as_echo "unsupported" >&6; } ;; #(
6567 '') :
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6569 $as_echo "none needed" >&6; } ;; #(
6570 *) :
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6572 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6573 esac
6574
6575
6576
6577 # Code from module alloca-opt:
6578 # Code from module allocator:
6579 # Code from module arg-nonnull:
6580 # Code from module c++defs:
6581 # Code from module careadlinkat:
6582 # Code from module crypto/md5:
6583 # Code from module crypto/sha1:
6584 # Code from module crypto/sha256:
6585 # Code from module crypto/sha512:
6586 # Code from module dosname:
6587 # Code from module dtoastr:
6588 # Code from module dup2:
6589 # Code from module extensions:
6590
6591 # Code from module filemode:
6592 # Code from module getloadavg:
6593 # Code from module getopt-gnu:
6594 # Code from module getopt-posix:
6595 # Code from module gettext-h:
6596 # Code from module ignore-value:
6597 # Code from module include_next:
6598 # Code from module intprops:
6599 # Code from module inttypes-incomplete:
6600 # Code from module lstat:
6601 # Code from module mktime:
6602 # Code from module multiarch:
6603 # Code from module pthread_sigmask:
6604 # Code from module readlink:
6605 # Code from module signal:
6606 # Code from module sigprocmask:
6607 # Code from module socklen:
6608 # Code from module ssize_t:
6609 # Code from module stat:
6610 # Code from module stdarg:
6611
6612 # Code from module stdbool:
6613 # Code from module stddef:
6614 # Code from module stdint:
6615 # Code from module stdio:
6616 # Code from module stdlib:
6617 # Code from module strftime:
6618 # Code from module strtoimax:
6619 # Code from module strtoll:
6620 # Code from module strtoull:
6621 # Code from module strtoumax:
6622 # Code from module symlink:
6623 # Code from module sys_stat:
6624 # Code from module time:
6625 # Code from module time_r:
6626 # Code from module u64:
6627 # Code from module unistd:
6628 # Code from module verify:
6629 # Code from module warn-on-use:
6630
6631
6632 # On Suns, sometimes $CPP names a directory.
6633 if test -n "$CPP" && test -d "$CPP"; then
6634 CPP=
6635 fi
6636
6637 ## If not using gcc, and on Solaris, and no CPP specified, see if
6638 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6639 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6640 test x"$CPP" = x; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6642 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6643 if test "${emacs_cv_sunpro_c+set}" = set; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648
6649 int
6650 main ()
6651 {
6652 #ifndef __SUNPRO_C
6653 fail;
6654 #endif
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 if ac_fn_c_try_link "$LINENO"; then :
6661 emacs_cv_sunpro_c=yes
6662 else
6663 emacs_cv_sunpro_c=no
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6667 fi
6668
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6670 $as_echo "$emacs_cv_sunpro_c" >&6; }
6671
6672 if test x"$emacs_cv_sunpro_c" = xyes; then
6673 NON_GNU_CPP="$CC -E -Xs"
6674 fi
6675 fi
6676
6677 #### Some systems specify a CPP to use unless we are using GCC.
6678 #### Now that we know whether we are using GCC, we can decide whether
6679 #### to use that one.
6680 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6681 then
6682 CPP="$NON_GNU_CPP"
6683 fi
6684
6685 #### Some systems specify a CC to use unless we are using GCC.
6686 #### Now that we know whether we are using GCC, we can decide whether
6687 #### to use that one.
6688 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6689 test x$cc_specified != xyes
6690 then
6691 CC="$NON_GNU_CC"
6692 fi
6693
6694 if test x$GCC = xyes; then
6695 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6696 else
6697 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6698 fi
6699
6700 ### Use -Wdeclaration-after-statement if the compiler supports it
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6702 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6703 SAVE_CFLAGS="$CFLAGS"
6704 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707
6708 int
6709 main ()
6710 {
6711
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 if ac_fn_c_try_compile "$LINENO"; then :
6717 has_option=yes
6718 else
6719 has_option=no
6720 fi
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 if test $has_option = yes; then
6723 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6724 fi
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6726 $as_echo "$has_option" >&6; }
6727 CFLAGS="$SAVE_CFLAGS"
6728 unset has_option
6729 unset SAVE_CFLAGS
6730
6731 ### Use -Wold-style-definition if the compiler supports it
6732 # This can be removed when conversion to standard C is finished.
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6734 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6735 SAVE_CFLAGS="$CFLAGS"
6736 CFLAGS="$CFLAGS -Wold-style-definition"
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6739
6740 int
6741 main ()
6742 {
6743
6744 ;
6745 return 0;
6746 }
6747 _ACEOF
6748 if ac_fn_c_try_compile "$LINENO"; then :
6749 has_option=yes
6750 else
6751 has_option=no
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754 if test $has_option = yes; then
6755 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6756 fi
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6758 $as_echo "$has_option" >&6; }
6759 CFLAGS="$SAVE_CFLAGS"
6760 unset has_option
6761 unset SAVE_CFLAGS
6762
6763 ### Use -Wimplicit-function-declaration if the compiler supports it
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6765 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6766 SAVE_CFLAGS="$CFLAGS"
6767 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770
6771 int
6772 main ()
6773 {
6774
6775 ;
6776 return 0;
6777 }
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780 has_option=yes
6781 else
6782 has_option=no
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 if test $has_option = yes; then
6786 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6789 $as_echo "$has_option" >&6; }
6790 CFLAGS="$SAVE_CFLAGS"
6791 unset has_option
6792 unset SAVE_CFLAGS
6793
6794
6795
6796
6797 #### Some other nice autoconf tests.
6798
6799 ac_ext=c
6800 ac_cpp='$CPP $CPPFLAGS'
6801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6805 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6806 # On Suns, sometimes $CPP names a directory.
6807 if test -n "$CPP" && test -d "$CPP"; then
6808 CPP=
6809 fi
6810 if test -z "$CPP"; then
6811 if test "${ac_cv_prog_CPP+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 # Double quotes because CPP needs to be expanded
6815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6816 do
6817 ac_preproc_ok=false
6818 for ac_c_preproc_warn_flag in '' yes
6819 do
6820 # Use a header file that comes with gcc, so configuring glibc
6821 # with a fresh cross-compiler works.
6822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6823 # <limits.h> exists even on freestanding compilers.
6824 # On the NeXT, cc -E runs the code through the compiler's parser,
6825 # not just through cpp. "Syntax error" is here to catch this case.
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #ifdef __STDC__
6829 # include <limits.h>
6830 #else
6831 # include <assert.h>
6832 #endif
6833 Syntax error
6834 _ACEOF
6835 if ac_fn_c_try_cpp "$LINENO"; then :
6836
6837 else
6838 # Broken: fails on valid input.
6839 continue
6840 fi
6841 rm -f conftest.err conftest.$ac_ext
6842
6843 # OK, works on sane cases. Now check whether nonexistent headers
6844 # can be detected and how.
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <ac_nonexistent.h>
6848 _ACEOF
6849 if ac_fn_c_try_cpp "$LINENO"; then :
6850 # Broken: success on invalid input.
6851 continue
6852 else
6853 # Passes both tests.
6854 ac_preproc_ok=:
6855 break
6856 fi
6857 rm -f conftest.err conftest.$ac_ext
6858
6859 done
6860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6861 rm -f conftest.err conftest.$ac_ext
6862 if $ac_preproc_ok; then :
6863 break
6864 fi
6865
6866 done
6867 ac_cv_prog_CPP=$CPP
6868
6869 fi
6870 CPP=$ac_cv_prog_CPP
6871 else
6872 ac_cv_prog_CPP=$CPP
6873 fi
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6875 $as_echo "$CPP" >&6; }
6876 ac_preproc_ok=false
6877 for ac_c_preproc_warn_flag in '' yes
6878 do
6879 # Use a header file that comes with gcc, so configuring glibc
6880 # with a fresh cross-compiler works.
6881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6882 # <limits.h> exists even on freestanding compilers.
6883 # On the NeXT, cc -E runs the code through the compiler's parser,
6884 # not just through cpp. "Syntax error" is here to catch this case.
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 #ifdef __STDC__
6888 # include <limits.h>
6889 #else
6890 # include <assert.h>
6891 #endif
6892 Syntax error
6893 _ACEOF
6894 if ac_fn_c_try_cpp "$LINENO"; then :
6895
6896 else
6897 # Broken: fails on valid input.
6898 continue
6899 fi
6900 rm -f conftest.err conftest.$ac_ext
6901
6902 # OK, works on sane cases. Now check whether nonexistent headers
6903 # can be detected and how.
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 #include <ac_nonexistent.h>
6907 _ACEOF
6908 if ac_fn_c_try_cpp "$LINENO"; then :
6909 # Broken: success on invalid input.
6910 continue
6911 else
6912 # Passes both tests.
6913 ac_preproc_ok=:
6914 break
6915 fi
6916 rm -f conftest.err conftest.$ac_ext
6917
6918 done
6919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6920 rm -f conftest.err conftest.$ac_ext
6921 if $ac_preproc_ok; then :
6922
6923 else
6924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6926 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6927 See \`config.log' for more details." "$LINENO" 5; }
6928 fi
6929
6930 ac_ext=c
6931 ac_cpp='$CPP $CPPFLAGS'
6932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6935
6936
6937 if test "x$RANLIB" = x; then
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$RANLIB"; then
6947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 RANLIB=$ac_cv_prog_RANLIB
6967 if test -n "$RANLIB"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6969 $as_echo "$RANLIB" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975
6976 fi
6977 if test -z "$ac_cv_prog_RANLIB"; then
6978 ac_ct_RANLIB=$RANLIB
6979 # Extract the first word of "ranlib", so it can be a program name with args.
6980 set dummy ranlib; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$ac_ct_RANLIB"; then
6987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_ac_ct_RANLIB="ranlib"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000 done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7007 if test -n "$ac_ct_RANLIB"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7009 $as_echo "$ac_ct_RANLIB" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7013 fi
7014
7015 if test "x$ac_ct_RANLIB" = x; then
7016 RANLIB=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024 RANLIB=$ac_ct_RANLIB
7025 fi
7026 else
7027 RANLIB="$ac_cv_prog_RANLIB"
7028 fi
7029
7030 fi
7031
7032 ## Although we're running on an amd64 kernel, we're actually compiling for
7033 ## the x86 architecture. The user should probably have provided an
7034 ## explicit --build to `configure', but if everything else than the kernel
7035 ## is running in i386 mode, we can help them out.
7036 if test "$machine" = "amdx86-64"; then
7037 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7038 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7039
7040 fi
7041
7042 if test "$ac_cv_have_decl_i386" = "yes"; then
7043 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7044 machine=intel386
7045 machfile="m/${machine}.h"
7046 fi
7047 fi
7048
7049 # Extract the first word of "install-info", so it can be a program name with args.
7050 set dummy install-info; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 case $INSTALL_INFO in
7057 [\\/]* | ?:[\\/]*)
7058 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7059 ;;
7060 *)
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076 ;;
7077 esac
7078 fi
7079 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7080 if test -n "$INSTALL_INFO"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7082 $as_echo "$INSTALL_INFO" >&6; }
7083 else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7086 fi
7087
7088
7089 # Extract the first word of "install-info", so it can be a program name with args.
7090 set dummy install-info; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 case $INSTALL_INFO in
7097 [\\/]* | ?:[\\/]*)
7098 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7099 ;;
7100 *)
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in /usr/sbin
7103 do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112 done
7113 done
7114 IFS=$as_save_IFS
7115
7116 ;;
7117 esac
7118 fi
7119 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7120 if test -n "$INSTALL_INFO"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7122 $as_echo "$INSTALL_INFO" >&6; }
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128
7129 # Extract the first word of "install-info", so it can be a program name with args.
7130 set dummy install-info; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 case $INSTALL_INFO in
7137 [\\/]* | ?:[\\/]*)
7138 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7139 ;;
7140 *)
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in /sbin
7143 do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7157 ;;
7158 esac
7159 fi
7160 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7161 if test -n "$INSTALL_INFO"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7163 $as_echo "$INSTALL_INFO" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169
7170 # Extract the first word of "gzip", so it can be a program name with args.
7171 set dummy gzip; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 case $GZIP_PROG in
7178 [\\/]* | ?:[\\/]*)
7179 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7180 ;;
7181 *)
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197 ;;
7198 esac
7199 fi
7200 GZIP_PROG=$ac_cv_path_GZIP_PROG
7201 if test -n "$GZIP_PROG"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7203 $as_echo "$GZIP_PROG" >&6; }
7204 else
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7207 fi
7208
7209
7210
7211
7212 ## Need makeinfo >= 4.6 (?) to build the manuals.
7213 # Extract the first word of "makeinfo", so it can be a program name with args.
7214 set dummy makeinfo; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 case $MAKEINFO in
7221 [\\/]* | ?:[\\/]*)
7222 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7223 ;;
7224 *)
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7241 ;;
7242 esac
7243 fi
7244 MAKEINFO=$ac_cv_path_MAKEINFO
7245 if test -n "$MAKEINFO"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7247 $as_echo "$MAKEINFO" >&6; }
7248 else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 if test "$MAKEINFO" != "no" && \
7255 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
7256 MAKEINFO=no
7257 fi
7258
7259 ## Makeinfo is unusual. For a released Emacs, the manuals are
7260 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7261 ## therefore in the category of "special tools" not normally required, which
7262 ## configure does not have to check for (eg autoconf itself).
7263 ## In a Bazaar checkout on the other hand, the manuals are not included.
7264 ## So makeinfo is a requirement to build from Bazaar, and configure
7265 ## should test for it as it does for any other build requirement.
7266 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7267 ## with pre-built manuals, from a Bazaar checkout.
7268 HAVE_MAKEINFO=yes
7269
7270 if test "$MAKEINFO" = "no"; then
7271 MAKEINFO=makeinfo
7272 if test "x${with_makeinfo}" = "xno"; then
7273 HAVE_MAKEINFO=no
7274 elif test ! -e $srcdir/info/emacs; then
7275 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7276 source tree does not seem to have pre-built manuals in the \`info' directory.
7277 Either install a suitable version of makeinfo, or re-run configure
7278 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7279 fi
7280 fi
7281
7282
7283
7284 if test x$GCC = xyes; then
7285 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7286 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7287 else
7288 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7289 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7290 fi
7291
7292
7293 late_LDFLAGS=$LDFLAGS
7294 if test x$GCC = xyes; then
7295 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7296 else
7297 LDFLAGS="$LDFLAGS -znocombreloc"
7298 fi
7299
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7301 $as_echo_n "checking for -znocombreloc... " >&6; }
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304
7305 int
7306 main ()
7307 {
7308
7309 ;
7310 return 0;
7311 }
7312 _ACEOF
7313 if ac_fn_c_try_link "$LINENO"; then :
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7315 $as_echo "yes" >&6; }
7316 else
7317 LDFLAGS=$late_LDFLAGS
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321 rm -f core conftest.err conftest.$ac_objext \
7322 conftest$ac_exeext conftest.$ac_ext
7323
7324
7325 # The value of CPP is a quoted variable reference, so we need to do this
7326 # to get its actual value...
7327 CPP=`eval "echo $CPP"`
7328
7329
7330 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7331 case "$opsys" in
7332 your-opsys-here) CANNOT_DUMP=yes ;;
7333 esac
7334
7335 test "$CANNOT_DUMP" = "yes" && \
7336
7337 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7338
7339
7340
7341
7342
7343 UNEXEC_OBJ=unexelf.o
7344 case "$opsys" in
7345 # MSDOS uses unexcoff.o
7346 # MSWindows uses unexw32.o
7347 aix4-2)
7348 UNEXEC_OBJ=unexaix.o
7349 ;;
7350 cygwin)
7351 UNEXEC_OBJ=unexcw.o
7352 ;;
7353 darwin)
7354 UNEXEC_OBJ=unexmacosx.o
7355 ;;
7356 hpux10-20 | hpux11)
7357 UNEXEC_OBJ=unexhp9k800.o
7358 ;;
7359 sol2-10)
7360 # Use the Solaris dldump() function, called from unexsol.c, to dump
7361 # emacs, instead of the generic ELF dump code found in unexelf.c.
7362 # The resulting binary has a complete symbol table, and is better
7363 # for debugging and other observability tools (debuggers, pstack, etc).
7364 #
7365 # If you encounter a problem using dldump(), please consider sending
7366 # a message to the OpenSolaris tools-linking mailing list:
7367 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7368 #
7369 # It is likely that dldump() works with older Solaris too, but this has
7370 # not been tested, so for now this change is for Solaris 10 or newer.
7371 UNEXEC_OBJ=unexsol.o
7372 ;;
7373 esac
7374
7375 LD_SWITCH_SYSTEM=
7376 case "$opsys" in
7377 freebsd)
7378 ## Let `ld' find image libs and similar things in /usr/local/lib.
7379 ## The system compiler, GCC, has apparently been modified to not
7380 ## look there, contrary to what a stock GCC would do.
7381 LD_SWITCH_SYSTEM=-L/usr/local/lib
7382 ;;
7383
7384 gnu-linux)
7385 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7386 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7387 ;;
7388
7389 netbsd)
7390 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7391 ;;
7392
7393 openbsd)
7394 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7395 ## otherwise Emacs dumps core on elf systems.
7396 LD_SWITCH_SYSTEM="-Z"
7397 ;;
7398 esac
7399
7400
7401 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7402
7403 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7404 ## which has not been defined yet. When this was handled with cpp,
7405 ## it was expanded to null when configure sourced the s/*.h file.
7406 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7407 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7408 ## (or somesuch), but because it is supposed to go at the _front_
7409 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7410 ## Compare with the gnu-linux case below, which added to the end
7411 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7412 ## LD_SWITCH_SYSTEM_TEMACS.
7413 case "$opsys" in
7414 netbsd|openbsd)
7415 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7416 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7417 esac
7418
7419
7420 C_SWITCH_MACHINE=
7421 if test "$machine" = "alpha"; then
7422 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7423 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7424
7425 fi
7426
7427 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7428 ## With ELF, make sure that all common symbols get allocated to in the
7429 ## data section. Otherwise, the dump of temacs may miss variables in
7430 ## the shared library that have been initialized. For example, with
7431 ## GNU libc, __malloc_initialized would normally be resolved to the
7432 ## shared library's .bss section, which is fatal.
7433 if test "x$GCC" = "xyes"; then
7434 C_SWITCH_MACHINE="-fno-common"
7435 else
7436 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7437 fi
7438 else
7439 UNEXEC_OBJ=unexalpha.o
7440 fi
7441 fi
7442
7443
7444
7445
7446 C_SWITCH_SYSTEM=
7447 ## Some programs in src produce warnings saying certain subprograms
7448 ## are too complex and need a MAXMEM value greater than 2000 for
7449 ## additional optimization. --nils@exp-math.uni-essen.de
7450 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7451 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7452 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7453 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7454
7455
7456
7457 LIBS_SYSTEM=
7458 case "$opsys" in
7459 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7460 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7461
7462 freebsd) LIBS_SYSTEM="-lutil" ;;
7463
7464 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7465
7466 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7467
7468 ## Motif needs -lgen.
7469 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7470 esac
7471
7472
7473
7474 ### Make sure subsequent tests use flags consistent with the build flags.
7475
7476 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7477 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7478 else
7479 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7480 fi
7481
7482 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7483
7484 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7485
7486
7487 # Check whether --enable-largefile was given.
7488 if test "${enable_largefile+set}" = set; then :
7489 enableval=$enable_largefile;
7490 fi
7491
7492 if test "$enable_largefile" != no; then
7493
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7495 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7496 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 ac_cv_sys_largefile_CC=no
7500 if test "$GCC" != yes; then
7501 ac_save_CC=$CC
7502 while :; do
7503 # IRIX 6.2 and later do not support large files by default,
7504 # so use the C compiler's -n32 option if that helps.
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <sys/types.h>
7508 /* Check that off_t can represent 2**63 - 1 correctly.
7509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7510 since some C++ compilers masquerading as C compilers
7511 incorrectly reject 9223372036854775807. */
7512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7514 && LARGE_OFF_T % 2147483647 == 1)
7515 ? 1 : -1];
7516 int
7517 main ()
7518 {
7519
7520 ;
7521 return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525 break
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext
7528 CC="$CC -n32"
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 ac_cv_sys_largefile_CC=' -n32'; break
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext
7533 break
7534 done
7535 CC=$ac_save_CC
7536 rm -f conftest.$ac_ext
7537 fi
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7540 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7541 if test "$ac_cv_sys_largefile_CC" != no; then
7542 CC=$CC$ac_cv_sys_largefile_CC
7543 fi
7544
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7546 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7547 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 while :; do
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553 #include <sys/types.h>
7554 /* Check that off_t can represent 2**63 - 1 correctly.
7555 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7556 since some C++ compilers masquerading as C compilers
7557 incorrectly reject 9223372036854775807. */
7558 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7559 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7560 && LARGE_OFF_T % 2147483647 == 1)
7561 ? 1 : -1];
7562 int
7563 main ()
7564 {
7565
7566 ;
7567 return 0;
7568 }
7569 _ACEOF
7570 if ac_fn_c_try_compile "$LINENO"; then :
7571 ac_cv_sys_file_offset_bits=no; break
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576 #define _FILE_OFFSET_BITS 64
7577 #include <sys/types.h>
7578 /* Check that off_t can represent 2**63 - 1 correctly.
7579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7580 since some C++ compilers masquerading as C compilers
7581 incorrectly reject 9223372036854775807. */
7582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7584 && LARGE_OFF_T % 2147483647 == 1)
7585 ? 1 : -1];
7586 int
7587 main ()
7588 {
7589
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 if ac_fn_c_try_compile "$LINENO"; then :
7595 ac_cv_sys_file_offset_bits=64; break
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 ac_cv_sys_file_offset_bits=unknown
7599 break
7600 done
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7603 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7604 case $ac_cv_sys_file_offset_bits in #(
7605 no | unknown) ;;
7606 *)
7607 cat >>confdefs.h <<_ACEOF
7608 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7609 _ACEOF
7610 ;;
7611 esac
7612 rm -rf conftest*
7613 if test $ac_cv_sys_file_offset_bits = unknown; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7615 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7616 if test "${ac_cv_sys_large_files+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 while :; do
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 #include <sys/types.h>
7623 /* Check that off_t can represent 2**63 - 1 correctly.
7624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7625 since some C++ compilers masquerading as C compilers
7626 incorrectly reject 9223372036854775807. */
7627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7629 && LARGE_OFF_T % 2147483647 == 1)
7630 ? 1 : -1];
7631 int
7632 main ()
7633 {
7634
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 ac_cv_sys_large_files=no; break
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #define _LARGE_FILES 1
7646 #include <sys/types.h>
7647 /* Check that off_t can represent 2**63 - 1 correctly.
7648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7649 since some C++ compilers masquerading as C compilers
7650 incorrectly reject 9223372036854775807. */
7651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7653 && LARGE_OFF_T % 2147483647 == 1)
7654 ? 1 : -1];
7655 int
7656 main ()
7657 {
7658
7659 ;
7660 return 0;
7661 }
7662 _ACEOF
7663 if ac_fn_c_try_compile "$LINENO"; then :
7664 ac_cv_sys_large_files=1; break
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 ac_cv_sys_large_files=unknown
7668 break
7669 done
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7672 $as_echo "$ac_cv_sys_large_files" >&6; }
7673 case $ac_cv_sys_large_files in #(
7674 no | unknown) ;;
7675 *)
7676 cat >>confdefs.h <<_ACEOF
7677 #define _LARGE_FILES $ac_cv_sys_large_files
7678 _ACEOF
7679 ;;
7680 esac
7681 rm -rf conftest*
7682 fi
7683 fi
7684
7685
7686
7687 LIB_MATH=-lm
7688 LIB_STANDARD=
7689 START_FILES=
7690
7691 case $opsys in
7692 cygwin )
7693 LIB_MATH=
7694 START_FILES='pre-crt0.o'
7695 ;;
7696 darwin )
7697 ## Adding -lm confuses the dynamic linker, so omit it.
7698 LIB_MATH=
7699 START_FILES='pre-crt0.o'
7700 ;;
7701 freebsd )
7702 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7703 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7704 ;;
7705 gnu-linux | gnu-kfreebsd )
7706 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7707 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7708 ;;
7709 hpux10-20 | hpux11 )
7710 LIB_STANDARD=-lc
7711 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7712 ;;
7713 netbsd | openbsd )
7714 if test -f $CRT_DIR/crti.o; then
7715 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7716 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7717 else
7718 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7719 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7720 fi
7721 ;;
7722 esac
7723
7724
7725
7726
7727 crt_files=
7728
7729 for file in x $LIB_STANDARD $START_FILES; do
7730 case "$file" in
7731 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
7732 esac
7733 done
7734
7735 if test "x$crt_files" != x; then
7736
7737 ## If user specified a crt-dir, use that unconditionally.
7738 crt_gcc=no
7739
7740 if test "X$CRT_DIR" = "X"; then
7741
7742 CRT_DIR=/usr/lib # default
7743
7744 case "$canonical" in
7745 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7746 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7747 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7748 ## For anything else (eg /usr/lib32), it is up the user to specify
7749 ## the location (bug#5655).
7750 ## Test for crtn.o, not just the directory, because sometimes the
7751 ## directory exists but does not have the relevant files (bug#1287).
7752 ## FIXME better to test for binary compatibility somehow.
7753 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7754 ;;
7755
7756 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7757 esac
7758
7759 case "$opsys" in
7760 hpux10-20) CRT_DIR=/lib ;;
7761 esac
7762
7763 test "x${GCC}" = xyes && crt_gcc=yes
7764
7765 fi # CRT_DIR = ""
7766
7767 crt_missing=
7768
7769 for file in $crt_files; do
7770
7771 ## If we're using gcc, try to determine it automatically by asking
7772 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7773 ## system-dependent default from above.]
7774 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
7775
7776 crt_file=`$CC --print-file-name=$file 2>/dev/null`
7777 case "$crt_file" in
7778 */*)
7779 CRT_DIR=`$as_dirname -- "$crt_file" ||
7780 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7781 X"$crt_file" : 'X\(//\)[^/]' \| \
7782 X"$crt_file" : 'X\(//\)$' \| \
7783 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7784 $as_echo X"$crt_file" |
7785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7786 s//\1/
7787 q
7788 }
7789 /^X\(\/\/\)[^/].*/{
7790 s//\1/
7791 q
7792 }
7793 /^X\(\/\/\)$/{
7794 s//\1/
7795 q
7796 }
7797 /^X\(\/\).*/{
7798 s//\1/
7799 q
7800 }
7801 s/.*/./; q'`
7802 ;;
7803 esac
7804 fi
7805
7806 crt_gcc=no
7807
7808 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
7809 done # $crt_files
7810
7811 test "x$crt_missing" = x || \
7812 as_fn_error "Required file(s) not found:$crt_missing
7813 Try using the --with-crt-dir option." "$LINENO" 5
7814
7815 fi # crt_files != ""
7816
7817
7818
7819
7820
7821
7822
7823 if test "${with_sound}" != "no"; then
7824 # Sound support for GNU/Linux and the free BSDs.
7825 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7826 do :
7827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7828 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7829 eval as_val=\$$as_ac_Header
7830 if test "x$as_val" = x""yes; then :
7831 cat >>confdefs.h <<_ACEOF
7832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7833 _ACEOF
7834 have_sound_header=yes
7835 fi
7836
7837 done
7838
7839 # Emulation library used on NetBSD.
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7841 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7842 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 ac_check_lib_save_LIBS=$LIBS
7846 LIBS="-lossaudio $LIBS"
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849
7850 /* Override any GCC internal prototype to avoid an error.
7851 Use char because int might match the return type of a GCC
7852 builtin and then its argument prototype would still apply. */
7853 #ifdef __cplusplus
7854 extern "C"
7855 #endif
7856 char _oss_ioctl ();
7857 int
7858 main ()
7859 {
7860 return _oss_ioctl ();
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_link "$LINENO"; then :
7866 ac_cv_lib_ossaudio__oss_ioctl=yes
7867 else
7868 ac_cv_lib_ossaudio__oss_ioctl=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7872 LIBS=$ac_check_lib_save_LIBS
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7875 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7876 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7877 LIBSOUND=-lossaudio
7878 else
7879 LIBSOUND=
7880 fi
7881
7882
7883
7884 ALSA_REQUIRED=1.0.0
7885 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7886
7887 succeeded=no
7888
7889 # Extract the first word of "pkg-config", so it can be a program name with args.
7890 set dummy pkg-config; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 case $PKG_CONFIG in
7897 [\\/]* | ?:[\\/]*)
7898 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7899 ;;
7900 *)
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7903 do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912 done
7913 done
7914 IFS=$as_save_IFS
7915
7916 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7917 ;;
7918 esac
7919 fi
7920 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7921 if test -n "$PKG_CONFIG"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7923 $as_echo "$PKG_CONFIG" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930
7931 if test "$PKG_CONFIG" = "no" ; then
7932 HAVE_ALSA=no
7933 else
7934 PKG_CONFIG_MIN_VERSION=0.9.0
7935 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7937 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7938
7939 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7941 $as_echo "yes" >&6; }
7942 succeeded=yes
7943
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7945 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7946 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7948 $as_echo "$ALSA_CFLAGS" >&6; }
7949
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7951 $as_echo_n "checking ALSA_LIBS... " >&6; }
7952 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7954 $as_echo "$ALSA_LIBS" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 ALSA_CFLAGS=""
7959 ALSA_LIBS=""
7960 ## If we have a custom action on failure, don't print errors, but
7961 ## do set a variable so people can do so.
7962 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7963
7964 fi
7965
7966
7967
7968 else
7969 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7970 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7971 fi
7972 fi
7973
7974 if test $succeeded = yes; then
7975 HAVE_ALSA=yes
7976 else
7977 HAVE_ALSA=no
7978 fi
7979
7980 if test $HAVE_ALSA = yes; then
7981 SAVE_CFLAGS="$CFLAGS"
7982 SAVE_LDFLAGS="$LDFLAGS"
7983 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7984 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 #include <asoundlib.h>
7988 int
7989 main ()
7990 {
7991 snd_lib_error_set_handler (0);
7992 ;
7993 return 0;
7994 }
7995 _ACEOF
7996 if ac_fn_c_try_compile "$LINENO"; then :
7997 emacs_alsa_normal=yes
7998 else
7999 emacs_alsa_normal=no
8000 fi
8001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002 if test "$emacs_alsa_normal" != yes; then
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 #include <alsa/asoundlib.h>
8006 int
8007 main ()
8008 {
8009 snd_lib_error_set_handler (0);
8010 ;
8011 return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_compile "$LINENO"; then :
8015 emacs_alsa_subdir=yes
8016 else
8017 emacs_alsa_subdir=no
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 if test "$emacs_alsa_subdir" != yes; then
8021 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8022 fi
8023 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8024 fi
8025
8026 CFLAGS="$SAVE_CFLAGS"
8027 LDFLAGS="$SAVE_LDFLAGS"
8028 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8029 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8030
8031 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8032
8033 fi
8034
8035 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8036 case "$opsys" in
8037 gnu-linux|freebsd|netbsd)
8038
8039 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8040
8041 ;;
8042 esac
8043 fi
8044
8045
8046 fi
8047
8048 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8049 linux/version.h sys/systeminfo.h \
8050 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8051 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8052 sys/utsname.h pwd.h utmp.h dirent.h util.h
8053 do :
8054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8055 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8056 eval as_val=\$$as_ac_Header
8057 if test "x$as_val" = x""yes; then :
8058 cat >>confdefs.h <<_ACEOF
8059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8060 _ACEOF
8061
8062 fi
8063
8064 done
8065
8066
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8068 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #include <sys/personality.h>
8072 int
8073 main ()
8074 {
8075 personality (PER_LINUX32)
8076 ;
8077 return 0;
8078 }
8079 _ACEOF
8080 if ac_fn_c_try_compile "$LINENO"; then :
8081 emacs_cv_personality_linux32=yes
8082 else
8083 emacs_cv_personality_linux32=no
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8087 $as_echo "$emacs_cv_personality_linux32" >&6; }
8088
8089 if test $emacs_cv_personality_linux32 = yes; then
8090
8091 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8092
8093 fi
8094
8095 for ac_header in term.h
8096 do :
8097 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8098 if test "x$ac_cv_header_term_h" = x""yes; then :
8099 cat >>confdefs.h <<_ACEOF
8100 #define HAVE_TERM_H 1
8101 _ACEOF
8102
8103 fi
8104
8105 done
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8108 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8109 if test "${ac_cv_header_time+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 #include <sys/types.h>
8115 #include <sys/time.h>
8116 #include <time.h>
8117
8118 int
8119 main ()
8120 {
8121 if ((struct tm *) 0)
8122 return 0;
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128 ac_cv_header_time=yes
8129 else
8130 ac_cv_header_time=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8135 $as_echo "$ac_cv_header_time" >&6; }
8136 if test $ac_cv_header_time = yes; then
8137
8138 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8139
8140 fi
8141
8142 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8143 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8144 ac_have_decl=1
8145 else
8146 ac_have_decl=0
8147 fi
8148
8149 cat >>confdefs.h <<_ACEOF
8150 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8151 _ACEOF
8152
8153 if test $ac_cv_have_decl_sys_siglist != yes; then
8154 # For Tru64, at least:
8155 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8156 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8157 ac_have_decl=1
8158 else
8159 ac_have_decl=0
8160 fi
8161
8162 cat >>confdefs.h <<_ACEOF
8163 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8164 _ACEOF
8165
8166 if test $ac_cv_have_decl___sys_siglist = yes; then
8167
8168 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8169
8170 fi
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8173 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8174 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #include <sys/types.h>
8180 #include <sys/wait.h>
8181 #ifndef WEXITSTATUS
8182 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8183 #endif
8184 #ifndef WIFEXITED
8185 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8186 #endif
8187
8188 int
8189 main ()
8190 {
8191 int s;
8192 wait (&s);
8193 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 if ac_fn_c_try_compile "$LINENO"; then :
8199 ac_cv_header_sys_wait_h=yes
8200 else
8201 ac_cv_header_sys_wait_h=no
8202 fi
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8206 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8207 if test $ac_cv_header_sys_wait_h = yes; then
8208
8209 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8210
8211 fi
8212
8213
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8215 $as_echo_n "checking for struct utimbuf... " >&6; }
8216 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #ifdef TIME_WITH_SYS_TIME
8222 #include <sys/time.h>
8223 #include <time.h>
8224 #else
8225 #ifdef HAVE_SYS_TIME_H
8226 #include <sys/time.h>
8227 #else
8228 #include <time.h>
8229 #endif
8230 #endif
8231 #ifdef HAVE_UTIME_H
8232 #include <utime.h>
8233 #endif
8234 int
8235 main ()
8236 {
8237 static struct utimbuf x; x.actime = x.modtime;
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_compile "$LINENO"; then :
8243 emacs_cv_struct_utimbuf=yes
8244 else
8245 emacs_cv_struct_utimbuf=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 fi
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8250 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8251 if test $emacs_cv_struct_utimbuf = yes; then
8252
8253 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8254
8255 fi
8256
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8258 $as_echo_n "checking for speed_t... " >&6; }
8259 if test "${emacs_cv_speed_t+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264 #include <termios.h>
8265 int
8266 main ()
8267 {
8268 speed_t x = 1;
8269 ;
8270 return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"; then :
8274 emacs_cv_speed_t=yes
8275 else
8276 emacs_cv_speed_t=no
8277 fi
8278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8281 $as_echo "$emacs_cv_speed_t" >&6; }
8282 if test $emacs_cv_speed_t = yes; then
8283
8284 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8285
8286 fi
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8289 $as_echo_n "checking for struct timeval... " >&6; }
8290 if test "${emacs_cv_struct_timeval+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 #ifdef TIME_WITH_SYS_TIME
8296 #include <sys/time.h>
8297 #include <time.h>
8298 #else
8299 #ifdef HAVE_SYS_TIME_H
8300 #include <sys/time.h>
8301 #else
8302 #include <time.h>
8303 #endif
8304 #endif
8305 int
8306 main ()
8307 {
8308 static struct timeval x; x.tv_sec = x.tv_usec;
8309 ;
8310 return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_c_try_compile "$LINENO"; then :
8314 emacs_cv_struct_timeval=yes
8315 else
8316 emacs_cv_struct_timeval=no
8317 fi
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8321 $as_echo "$emacs_cv_struct_timeval" >&6; }
8322 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8323 if test $emacs_cv_struct_timeval = yes; then
8324
8325 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8326
8327 fi
8328
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8330 $as_echo_n "checking for struct exception... " >&6; }
8331 if test "${emacs_cv_struct_exception+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #include <math.h>
8337 int
8338 main ()
8339 {
8340 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_compile "$LINENO"; then :
8346 emacs_cv_struct_exception=yes
8347 else
8348 emacs_cv_struct_exception=no
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8353 $as_echo "$emacs_cv_struct_exception" >&6; }
8354 HAVE_EXCEPTION=$emacs_cv_struct_exception
8355 if test $emacs_cv_struct_exception != yes; then
8356
8357 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8358
8359 fi
8360
8361 for ac_header in net/if.h
8362 do :
8363 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8364 #if HAVE_SYS_SOCKET_H
8365 #include <sys/socket.h>
8366 #endif
8367 "
8368 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8369 cat >>confdefs.h <<_ACEOF
8370 #define HAVE_NET_IF_H 1
8371 _ACEOF
8372
8373 fi
8374
8375 done
8376
8377
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8379 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8380 if test "${ac_cv_struct_tm+set}" = set; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 #include <sys/types.h>
8386 #include <time.h>
8387
8388 int
8389 main ()
8390 {
8391 struct tm tm;
8392 int *p = &tm.tm_sec;
8393 return !p;
8394 ;
8395 return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"; then :
8399 ac_cv_struct_tm=time.h
8400 else
8401 ac_cv_struct_tm=sys/time.h
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8406 $as_echo "$ac_cv_struct_tm" >&6; }
8407 if test $ac_cv_struct_tm = sys/time.h; then
8408
8409 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8410
8411 fi
8412
8413 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8414 #include <$ac_cv_struct_tm>
8415
8416 "
8417 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8418
8419 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_STRUCT_TM_TM_ZONE 1
8421 _ACEOF
8422
8423
8424 fi
8425
8426 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8427
8428 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8429
8430 else
8431 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8432 "
8433 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8434 ac_have_decl=1
8435 else
8436 ac_have_decl=0
8437 fi
8438
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_TZNAME $ac_have_decl
8441 _ACEOF
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8444 $as_echo_n "checking for tzname... " >&6; }
8445 if test "${ac_cv_var_tzname+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8450 #include <time.h>
8451 #if !HAVE_DECL_TZNAME
8452 extern char *tzname[];
8453 #endif
8454
8455 int
8456 main ()
8457 {
8458 return tzname[0][0];
8459 ;
8460 return 0;
8461 }
8462 _ACEOF
8463 if ac_fn_c_try_link "$LINENO"; then :
8464 ac_cv_var_tzname=yes
8465 else
8466 ac_cv_var_tzname=no
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8472 $as_echo "$ac_cv_var_tzname" >&6; }
8473 if test $ac_cv_var_tzname = yes; then
8474
8475 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8476
8477 fi
8478 fi
8479
8480 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8481 "
8482 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8483
8484 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8485
8486 fi
8487
8488 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8489 #if HAVE_SYS_SOCKET_H
8490 #include <sys/socket.h>
8491 #endif
8492 #if HAVE_NET_IF_H
8493 #include <net/if.h>
8494 #endif
8495 "
8496 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8497
8498 cat >>confdefs.h <<_ACEOF
8499 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8500 _ACEOF
8501
8502
8503 fi
8504 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8505 #if HAVE_SYS_SOCKET_H
8506 #include <sys/socket.h>
8507 #endif
8508 #if HAVE_NET_IF_H
8509 #include <net/if.h>
8510 #endif
8511 "
8512 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8513
8514 cat >>confdefs.h <<_ACEOF
8515 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8516 _ACEOF
8517
8518
8519 fi
8520 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8521 #if HAVE_SYS_SOCKET_H
8522 #include <sys/socket.h>
8523 #endif
8524 #if HAVE_NET_IF_H
8525 #include <net/if.h>
8526 #endif
8527 "
8528 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8529
8530 cat >>confdefs.h <<_ACEOF
8531 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8532 _ACEOF
8533
8534
8535 fi
8536 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8537 #if HAVE_SYS_SOCKET_H
8538 #include <sys/socket.h>
8539 #endif
8540 #if HAVE_NET_IF_H
8541 #include <net/if.h>
8542 #endif
8543 "
8544 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8545
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8548 _ACEOF
8549
8550
8551 fi
8552 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8553 #if HAVE_SYS_SOCKET_H
8554 #include <sys/socket.h>
8555 #endif
8556 #if HAVE_NET_IF_H
8557 #include <net/if.h>
8558 #endif
8559 "
8560 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8561
8562 cat >>confdefs.h <<_ACEOF
8563 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8564 _ACEOF
8565
8566
8567 fi
8568
8569
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8572 $as_echo_n "checking for function prototypes... " >&6; }
8573 if test "$ac_cv_prog_cc_c89" != no; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8575 $as_echo "yes" >&6; }
8576
8577 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8578
8579
8580 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8581
8582 else
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8585 fi
8586
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8588 $as_echo_n "checking for working volatile... " >&6; }
8589 if test "${ac_cv_c_volatile+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8594
8595 int
8596 main ()
8597 {
8598
8599 volatile int x;
8600 int * volatile y = (int *) 0;
8601 return !x && !y;
8602 ;
8603 return 0;
8604 }
8605 _ACEOF
8606 if ac_fn_c_try_compile "$LINENO"; then :
8607 ac_cv_c_volatile=yes
8608 else
8609 ac_cv_c_volatile=no
8610 fi
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 fi
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8614 $as_echo "$ac_cv_c_volatile" >&6; }
8615 if test $ac_cv_c_volatile = no; then
8616
8617 $as_echo "#define volatile /**/" >>confdefs.h
8618
8619 fi
8620
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8622 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8623 if test "${ac_cv_c_const+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8628
8629 int
8630 main ()
8631 {
8632 /* FIXME: Include the comments suggested by Paul. */
8633 #ifndef __cplusplus
8634 /* Ultrix mips cc rejects this. */
8635 typedef int charset[2];
8636 const charset cs;
8637 /* SunOS 4.1.1 cc rejects this. */
8638 char const *const *pcpcc;
8639 char **ppc;
8640 /* NEC SVR4.0.2 mips cc rejects this. */
8641 struct point {int x, y;};
8642 static struct point const zero = {0,0};
8643 /* AIX XL C 1.02.0.0 rejects this.
8644 It does not let you subtract one const X* pointer from another in
8645 an arm of an if-expression whose if-part is not a constant
8646 expression */
8647 const char *g = "string";
8648 pcpcc = &g + (g ? g-g : 0);
8649 /* HPUX 7.0 cc rejects these. */
8650 ++pcpcc;
8651 ppc = (char**) pcpcc;
8652 pcpcc = (char const *const *) ppc;
8653 { /* SCO 3.2v4 cc rejects this. */
8654 char *t;
8655 char const *s = 0 ? (char *) 0 : (char const *) 0;
8656
8657 *t++ = 0;
8658 if (s) return 0;
8659 }
8660 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8661 int x[] = {25, 17};
8662 const int *foo = &x[0];
8663 ++foo;
8664 }
8665 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8666 typedef const int *iptr;
8667 iptr p = 0;
8668 ++p;
8669 }
8670 { /* AIX XL C 1.02.0.0 rejects this saying
8671 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8672 struct s { int j; const int *ap[3]; };
8673 struct s *b; b->j = 5;
8674 }
8675 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8676 const int foo = 10;
8677 if (!foo) return 0;
8678 }
8679 return !cs[0] && !zero.x;
8680 #endif
8681
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_compile "$LINENO"; then :
8687 ac_cv_c_const=yes
8688 else
8689 ac_cv_c_const=no
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8692 fi
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8694 $as_echo "$ac_cv_c_const" >&6; }
8695 if test $ac_cv_c_const = no; then
8696
8697 $as_echo "#define const /**/" >>confdefs.h
8698
8699 fi
8700
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8702 $as_echo_n "checking for void * support... " >&6; }
8703 if test "${emacs_cv_void_star+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708
8709 int
8710 main ()
8711 {
8712 void * foo;
8713 ;
8714 return 0;
8715 }
8716 _ACEOF
8717 if ac_fn_c_try_compile "$LINENO"; then :
8718 emacs_cv_void_star=yes
8719 else
8720 emacs_cv_void_star=no
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8725 $as_echo "$emacs_cv_void_star" >&6; }
8726 if test $emacs_cv_void_star = yes; then
8727 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8728
8729 else
8730 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8731
8732 fi
8733
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8735 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8736 if test "${ac_cv_c_bigendian+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 ac_cv_c_bigendian=unknown
8740 # See if we're dealing with a universal compiler.
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 #ifndef __APPLE_CC__
8744 not a universal capable compiler
8745 #endif
8746 typedef int dummy;
8747
8748 _ACEOF
8749 if ac_fn_c_try_compile "$LINENO"; then :
8750
8751 # Check for potential -arch flags. It is not universal unless
8752 # there are at least two -arch flags with different values.
8753 ac_arch=
8754 ac_prev=
8755 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8756 if test -n "$ac_prev"; then
8757 case $ac_word in
8758 i?86 | x86_64 | ppc | ppc64)
8759 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8760 ac_arch=$ac_word
8761 else
8762 ac_cv_c_bigendian=universal
8763 break
8764 fi
8765 ;;
8766 esac
8767 ac_prev=
8768 elif test "x$ac_word" = "x-arch"; then
8769 ac_prev=arch
8770 fi
8771 done
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 if test $ac_cv_c_bigendian = unknown; then
8775 # See if sys/param.h defines the BYTE_ORDER macro.
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 #include <sys/types.h>
8779 #include <sys/param.h>
8780
8781 int
8782 main ()
8783 {
8784 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8785 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8786 && LITTLE_ENDIAN)
8787 bogus endian macros
8788 #endif
8789
8790 ;
8791 return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_compile "$LINENO"; then :
8795 # It does; now see whether it defined to BIG_ENDIAN or not.
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 #include <sys/types.h>
8799 #include <sys/param.h>
8800
8801 int
8802 main ()
8803 {
8804 #if BYTE_ORDER != BIG_ENDIAN
8805 not big endian
8806 #endif
8807
8808 ;
8809 return 0;
8810 }
8811 _ACEOF
8812 if ac_fn_c_try_compile "$LINENO"; then :
8813 ac_cv_c_bigendian=yes
8814 else
8815 ac_cv_c_bigendian=no
8816 fi
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 fi
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 fi
8821 if test $ac_cv_c_bigendian = unknown; then
8822 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 #include <limits.h>
8826
8827 int
8828 main ()
8829 {
8830 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8831 bogus endian macros
8832 #endif
8833
8834 ;
8835 return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_c_try_compile "$LINENO"; then :
8839 # It does; now see whether it defined to _BIG_ENDIAN or not.
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 #include <limits.h>
8843
8844 int
8845 main ()
8846 {
8847 #ifndef _BIG_ENDIAN
8848 not big endian
8849 #endif
8850
8851 ;
8852 return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_c_try_compile "$LINENO"; then :
8856 ac_cv_c_bigendian=yes
8857 else
8858 ac_cv_c_bigendian=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 fi
8864 if test $ac_cv_c_bigendian = unknown; then
8865 # Compile a test program.
8866 if test "$cross_compiling" = yes; then :
8867 # Try to guess by grepping values from an object file.
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 short int ascii_mm[] =
8871 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8872 short int ascii_ii[] =
8873 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8874 int use_ascii (int i) {
8875 return ascii_mm[i] + ascii_ii[i];
8876 }
8877 short int ebcdic_ii[] =
8878 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8879 short int ebcdic_mm[] =
8880 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8881 int use_ebcdic (int i) {
8882 return ebcdic_mm[i] + ebcdic_ii[i];
8883 }
8884 extern int foo;
8885
8886 int
8887 main ()
8888 {
8889 return use_ascii (foo) == use_ebcdic (foo);
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_compile "$LINENO"; then :
8895 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8896 ac_cv_c_bigendian=yes
8897 fi
8898 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8899 if test "$ac_cv_c_bigendian" = unknown; then
8900 ac_cv_c_bigendian=no
8901 else
8902 # finding both strings is unlikely to happen, but who knows?
8903 ac_cv_c_bigendian=unknown
8904 fi
8905 fi
8906 fi
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 else
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 $ac_includes_default
8912 int
8913 main ()
8914 {
8915
8916 /* Are we little or big endian? From Harbison&Steele. */
8917 union
8918 {
8919 long int l;
8920 char c[sizeof (long int)];
8921 } u;
8922 u.l = 1;
8923 return u.c[sizeof (long int) - 1] == 1;
8924
8925 ;
8926 return 0;
8927 }
8928 _ACEOF
8929 if ac_fn_c_try_run "$LINENO"; then :
8930 ac_cv_c_bigendian=no
8931 else
8932 ac_cv_c_bigendian=yes
8933 fi
8934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8935 conftest.$ac_objext conftest.beam conftest.$ac_ext
8936 fi
8937
8938 fi
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8941 $as_echo "$ac_cv_c_bigendian" >&6; }
8942 case $ac_cv_c_bigendian in #(
8943 yes)
8944 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8945 ;; #(
8946 no)
8947 ;; #(
8948 universal)
8949
8950 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8951
8952 ;; #(
8953 *)
8954 as_fn_error "unknown endianness
8955 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8956 esac
8957
8958
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8960 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8961 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 char __attribute__ ((__aligned__ (1 << 3))) c;
8967 int
8968 main ()
8969 {
8970
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 if ac_fn_c_try_compile "$LINENO"; then :
8976 emacs_cv_attribute_aligned=yes
8977 else
8978 emacs_cv_attribute_aligned=no
8979 fi
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8983 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8984 if test $emacs_cv_attribute_aligned = yes; then
8985
8986 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8987
8988 fi
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8991 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8992 set x ${MAKE-make}
8993 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8994 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 cat >conftest.make <<\_ACEOF
8998 SHELL = /bin/sh
8999 all:
9000 @echo '@@@%%%=$(MAKE)=@@@%%%'
9001 _ACEOF
9002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9004 *@@@%%%=?*=@@@%%%*)
9005 eval ac_cv_prog_make_${ac_make}_set=yes;;
9006 *)
9007 eval ac_cv_prog_make_${ac_make}_set=no;;
9008 esac
9009 rm -f conftest.make
9010 fi
9011 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9013 $as_echo "yes" >&6; }
9014 SET_MAKE=
9015 else
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9018 SET_MAKE="MAKE=${MAKE-make}"
9019 fi
9020
9021
9022 DEPFLAGS=
9023 MKDEPDIR=":"
9024 deps_frag=deps.mk
9025 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9027 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9028 HAVE_GNU_MAKE=no
9029 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9030 if test "x$testval" != x; then
9031 HAVE_GNU_MAKE=yes
9032 else
9033 ac_enable_autodepend=no
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9036 $as_echo "$HAVE_GNU_MAKE" >&6; }
9037 if test $HAVE_GNU_MAKE = yes; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9039 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9040 SAVE_CFLAGS="$CFLAGS"
9041 CFLAGS="$CFLAGS -MMD -MF deps.d"
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044
9045 int
9046 main ()
9047 {
9048
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_compile "$LINENO"; then :
9054
9055 else
9056 ac_enable_autodepend=no
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 CFLAGS="$SAVE_CFLAGS"
9060 test -f deps.d || ac_enable_autodepend=no
9061 rm -rf deps.d
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9063 $as_echo "$ac_enable_autodepend" >&6; }
9064 fi
9065 if test $ac_enable_autodepend = yes; then
9066 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9067 ## In parallel builds, another make might create depdir between
9068 ## the first test and mkdir, so stick another test on the end.
9069 ## Or use install-sh -d? mkdir -p is not portable.
9070 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9071 deps_frag=autodeps.mk
9072 fi
9073 fi
9074 deps_frag=$srcdir/src/$deps_frag
9075
9076
9077
9078
9079
9080 lisp_frag=$srcdir/src/lisp.mk
9081
9082
9083
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9085 $as_echo_n "checking for long file names... " >&6; }
9086 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 ac_cv_sys_long_file_names=yes
9090 # Test for long file names in all the places we know might matter:
9091 # . the current directory, where building will happen
9092 # $prefix/lib where we will be installing things
9093 # $exec_prefix/lib likewise
9094 # $TMPDIR if set, where it might want to write temporary files
9095 # /tmp where it might want to write temporary files
9096 # /var/tmp likewise
9097 # /usr/tmp likewise
9098 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9099 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9100 # in the usual case where exec_prefix is '${prefix}'.
9101 case $ac_dir in #(
9102 . | /* | ?:[\\/]*) ;; #(
9103 *) continue;;
9104 esac
9105 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9106 ac_xdir=$ac_dir/cf$$
9107 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9108 ac_tf1=$ac_xdir/conftest9012345
9109 ac_tf2=$ac_xdir/conftest9012346
9110 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9111 ac_cv_sys_long_file_names=no
9112 rm -f -r "$ac_xdir" 2>/dev/null
9113 test $ac_cv_sys_long_file_names = no && break
9114 done
9115 fi
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9117 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9118 if test $ac_cv_sys_long_file_names = yes; then
9119
9120 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9121
9122 fi
9123
9124
9125 #### Choose a window system.
9126
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9128 $as_echo_n "checking for X... " >&6; }
9129
9130
9131 # Check whether --with-x was given.
9132 if test "${with_x+set}" = set; then :
9133 withval=$with_x;
9134 fi
9135
9136 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9137 if test "x$with_x" = xno; then
9138 # The user explicitly disabled X.
9139 have_x=disabled
9140 else
9141 case $x_includes,$x_libraries in #(
9142 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9143 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 # One or both of the vars are not set, and there is no cached value.
9147 ac_x_includes=no ac_x_libraries=no
9148 rm -f -r conftest.dir
9149 if mkdir conftest.dir; then
9150 cd conftest.dir
9151 cat >Imakefile <<'_ACEOF'
9152 incroot:
9153 @echo incroot='${INCROOT}'
9154 usrlibdir:
9155 @echo usrlibdir='${USRLIBDIR}'
9156 libdir:
9157 @echo libdir='${LIBDIR}'
9158 _ACEOF
9159 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9160 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9161 for ac_var in incroot usrlibdir libdir; do
9162 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9163 done
9164 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9165 for ac_extension in a so sl dylib la dll; do
9166 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9167 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9168 ac_im_usrlibdir=$ac_im_libdir; break
9169 fi
9170 done
9171 # Screen out bogus values from the imake configuration. They are
9172 # bogus both because they are the default anyway, and because
9173 # using them would break gcc on systems where it needs fixed includes.
9174 case $ac_im_incroot in
9175 /usr/include) ac_x_includes= ;;
9176 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9177 esac
9178 case $ac_im_usrlibdir in
9179 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9180 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9181 esac
9182 fi
9183 cd ..
9184 rm -f -r conftest.dir
9185 fi
9186
9187 # Standard set of common directories for X headers.
9188 # Check X11 before X11Rn because it is often a symlink to the current release.
9189 ac_x_header_dirs='
9190 /usr/X11/include
9191 /usr/X11R7/include
9192 /usr/X11R6/include
9193 /usr/X11R5/include
9194 /usr/X11R4/include
9195
9196 /usr/include/X11
9197 /usr/include/X11R7
9198 /usr/include/X11R6
9199 /usr/include/X11R5
9200 /usr/include/X11R4
9201
9202 /usr/local/X11/include
9203 /usr/local/X11R7/include
9204 /usr/local/X11R6/include
9205 /usr/local/X11R5/include
9206 /usr/local/X11R4/include
9207
9208 /usr/local/include/X11
9209 /usr/local/include/X11R7
9210 /usr/local/include/X11R6
9211 /usr/local/include/X11R5
9212 /usr/local/include/X11R4
9213
9214 /usr/X386/include
9215 /usr/x386/include
9216 /usr/XFree86/include/X11
9217
9218 /usr/include
9219 /usr/local/include
9220 /usr/unsupported/include
9221 /usr/athena/include
9222 /usr/local/x11r5/include
9223 /usr/lpp/Xamples/include
9224
9225 /usr/openwin/include
9226 /usr/openwin/share/include'
9227
9228 if test "$ac_x_includes" = no; then
9229 # Guess where to find include files, by looking for Xlib.h.
9230 # First, try using that file with no special directory specified.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <X11/Xlib.h>
9234 _ACEOF
9235 if ac_fn_c_try_cpp "$LINENO"; then :
9236 # We can compile using X headers with no special include directory.
9237 ac_x_includes=
9238 else
9239 for ac_dir in $ac_x_header_dirs; do
9240 if test -r "$ac_dir/X11/Xlib.h"; then
9241 ac_x_includes=$ac_dir
9242 break
9243 fi
9244 done
9245 fi
9246 rm -f conftest.err conftest.$ac_ext
9247 fi # $ac_x_includes = no
9248
9249 if test "$ac_x_libraries" = no; then
9250 # Check for the libraries.
9251 # See if we find them without any special options.
9252 # Don't add to $LIBS permanently.
9253 ac_save_LIBS=$LIBS
9254 LIBS="-lX11 $LIBS"
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 #include <X11/Xlib.h>
9258 int
9259 main ()
9260 {
9261 XrmInitialize ()
9262 ;
9263 return 0;
9264 }
9265 _ACEOF
9266 if ac_fn_c_try_link "$LINENO"; then :
9267 LIBS=$ac_save_LIBS
9268 # We can link X programs with no special library path.
9269 ac_x_libraries=
9270 else
9271 LIBS=$ac_save_LIBS
9272 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9273 do
9274 # Don't even attempt the hair of trying to link an X program!
9275 for ac_extension in a so sl dylib la dll; do
9276 if test -r "$ac_dir/libX11.$ac_extension"; then
9277 ac_x_libraries=$ac_dir
9278 break 2
9279 fi
9280 done
9281 done
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 fi # $ac_x_libraries = no
9286
9287 case $ac_x_includes,$ac_x_libraries in #(
9288 no,* | *,no | *\'*)
9289 # Didn't find X, or a directory has "'" in its name.
9290 ac_cv_have_x="have_x=no";; #(
9291 *)
9292 # Record where we found X for the cache.
9293 ac_cv_have_x="have_x=yes\
9294 ac_x_includes='$ac_x_includes'\
9295 ac_x_libraries='$ac_x_libraries'"
9296 esac
9297 fi
9298 ;; #(
9299 *) have_x=yes;;
9300 esac
9301 eval "$ac_cv_have_x"
9302 fi # $with_x != no
9303
9304 if test "$have_x" != yes; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9306 $as_echo "$have_x" >&6; }
9307 no_x=yes
9308 else
9309 # If each of the values was on the command line, it overrides each guess.
9310 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9311 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9312 # Update the cache value to reflect the command line values.
9313 ac_cv_have_x="have_x=yes\
9314 ac_x_includes='$x_includes'\
9315 ac_x_libraries='$x_libraries'"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9317 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9318 fi
9319
9320 if test "$no_x" = yes; then
9321 window_system=none
9322 else
9323 window_system=x11
9324 fi
9325
9326 ## Workaround for bug in autoconf <= 2.62.
9327 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9328 ## No need to do anything special for these standard directories.
9329 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9330
9331 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9332
9333 fi
9334
9335 LD_SWITCH_X_SITE_AUX=
9336 LD_SWITCH_X_SITE_AUX_RPATH=
9337 if test "${x_libraries}" != NONE; then
9338 if test -n "${x_libraries}"; then
9339 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9340 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9341 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9342 fi
9343 x_default_search_path=""
9344 x_search_path=${x_libraries}
9345 if test -z "${x_search_path}"; then
9346 x_search_path=/usr/lib
9347 fi
9348 for x_library in `echo ${x_search_path}: | \
9349 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9350 x_search_path="\
9351 ${x_library}/X11/%L/%T/%N%C%S:\
9352 ${x_library}/X11/%l/%T/%N%C%S:\
9353 ${x_library}/X11/%T/%N%C%S:\
9354 ${x_library}/X11/%L/%T/%N%S:\
9355 ${x_library}/X11/%l/%T/%N%S:\
9356 ${x_library}/X11/%T/%N%S"
9357 if test x"${x_default_search_path}" = x; then
9358 x_default_search_path=${x_search_path}
9359 else
9360 x_default_search_path="${x_search_path}:${x_default_search_path}"
9361 fi
9362 done
9363 fi
9364
9365
9366
9367 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9368 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9369 fi
9370
9371 if test x"${x_includes}" = x; then
9372 bitmapdir=/usr/include/X11/bitmaps
9373 else
9374 # accumulate include directories that have X11 bitmap subdirectories
9375 bmd_acc="dummyval"
9376 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9377 if test -d "${bmd}/X11/bitmaps"; then
9378 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9379 fi
9380 if test -d "${bmd}/bitmaps"; then
9381 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9382 fi
9383 done
9384 if test ${bmd_acc} != "dummyval"; then
9385 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9386 fi
9387 fi
9388
9389 HAVE_NS=no
9390 NS_IMPL_COCOA=no
9391 NS_IMPL_GNUSTEP=no
9392 tmp_CPPFLAGS="$CPPFLAGS"
9393 tmp_CFLAGS="$CFLAGS"
9394 CPPFLAGS="$CPPFLAGS -x objective-c"
9395 CFLAGS="$CFLAGS -x objective-c"
9396 TEMACS_LDFLAGS2="\${LDFLAGS}"
9397 if test "${with_ns}" != no; then
9398 if test "${opsys}" = darwin; then
9399 NS_IMPL_COCOA=yes
9400 ns_appdir=`pwd`/nextstep/Emacs.app
9401 ns_appbindir=${ns_appdir}/Contents/MacOS/
9402 ns_appresdir=${ns_appdir}/Contents/Resources
9403 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9404 elif test -f $GNUSTEP_CONFIG_FILE; then
9405 NS_IMPL_GNUSTEP=yes
9406 ns_appdir=`pwd`/nextstep/Emacs.app
9407 ns_appbindir=${ns_appdir}/
9408 ns_appresdir=${ns_appdir}/Resources
9409 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9410 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9411 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9412 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9413 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9414 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9415 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9416 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9417 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9418 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9419 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9420 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9421 LIB_STANDARD=
9422 START_FILES=
9423 TEMACS_LDFLAGS2=
9424 fi
9425 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9426 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9427 HAVE_NS=yes
9428 else
9429 as_fn_error "\`--with-ns' was specified, but the include
9430 files are missing or cannot be compiled." "$LINENO" 5
9431 fi
9432
9433
9434 NS_HAVE_NSINTEGER=yes
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 #include <Foundation/NSObjCRuntime.h>
9438 int
9439 main ()
9440 {
9441 NSInteger i;
9442 ;
9443 return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447 ns_have_nsinteger=yes
9448 else
9449 ns_have_nsinteger=no
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 if test $ns_have_nsinteger = no; then
9453 NS_HAVE_NSINTEGER=no
9454 fi
9455 fi
9456
9457
9458 ns_frag=/dev/null
9459 NS_OBJ=
9460 NS_OBJC_OBJ=
9461 if test "${HAVE_NS}" = yes; then
9462 window_system=nextstep
9463 with_xft=no
9464 # set up packaging dirs
9465 exec_prefix=${ns_appbindir}
9466 libexecdir=${ns_appbindir}/libexec
9467 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9468 prefix=${ns_appresdir}
9469 fi
9470 ns_frag=$srcdir/src/ns.mk
9471 NS_OBJ="fontset.o fringe.o image.o"
9472 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9473 fi
9474 CFLAGS="$tmp_CFLAGS"
9475 CPPFLAGS="$tmp_CPPFLAGS"
9476
9477
9478
9479
9480
9481 case "${window_system}" in
9482 x11 )
9483 HAVE_X_WINDOWS=yes
9484 HAVE_X11=yes
9485 case "${with_x_toolkit}" in
9486 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9487 motif ) USE_X_TOOLKIT=MOTIF ;;
9488 gtk ) with_gtk=yes
9489 USE_X_TOOLKIT=none ;;
9490 gtk3 ) with_gtk3=yes
9491 USE_X_TOOLKIT=none ;;
9492 no ) USE_X_TOOLKIT=none ;;
9493 * ) USE_X_TOOLKIT=maybe ;;
9494 esac
9495 ;;
9496 nextstep | none )
9497 HAVE_X_WINDOWS=no
9498 HAVE_X11=no
9499 USE_X_TOOLKIT=none
9500 ;;
9501 esac
9502
9503 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9504 # Extract the first word of "X", so it can be a program name with args.
9505 set dummy X; ac_word=$2
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507 $as_echo_n "checking for $ac_word... " >&6; }
9508 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 if test -n "$HAVE_XSERVER"; then
9512 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9513 else
9514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in $PATH
9516 do
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
9519 for ac_exec_ext in '' $ac_executable_extensions; do
9520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9521 ac_cv_prog_HAVE_XSERVER="true"
9522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 break 2
9524 fi
9525 done
9526 done
9527 IFS=$as_save_IFS
9528
9529 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9530 fi
9531 fi
9532 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9533 if test -n "$HAVE_XSERVER"; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9535 $as_echo "$HAVE_XSERVER" >&6; }
9536 else
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9539 fi
9540
9541
9542 if test "$HAVE_XSERVER" = true ||
9543 test -n "$DISPLAY" ||
9544 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9545 as_fn_error "You seem to be running X, but no X development libraries
9546 were found. You should install the relevant development files for X
9547 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9548 sure you have development files for image handling, i.e.
9549 tiff, gif, jpeg, png and xpm.
9550 If you are sure you want Emacs compiled without X window support, pass
9551 --without-x
9552 to configure." "$LINENO" 5
9553 fi
9554 fi
9555
9556 ### If we're using X11, we should use the X menu package.
9557 HAVE_MENUS=no
9558 case ${HAVE_X11} in
9559 yes ) HAVE_MENUS=yes ;;
9560 esac
9561
9562 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9563 # Assume not, until told otherwise.
9564 GNU_MALLOC=yes
9565 doug_lea_malloc=yes
9566 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9567 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9568
9569 else
9570 doug_lea_malloc=no
9571 fi
9572
9573 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9574 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9575
9576 else
9577 doug_lea_malloc=no
9578 fi
9579
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9581 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9582 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587 extern void (* __after_morecore_hook)();
9588 int
9589 main ()
9590 {
9591 __after_morecore_hook = 0
9592 ;
9593 return 0;
9594 }
9595 _ACEOF
9596 if ac_fn_c_try_link "$LINENO"; then :
9597 emacs_cv_var___after_morecore_hook=yes
9598 else
9599 emacs_cv_var___after_morecore_hook=no
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603 fi
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9605 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9606 if test $emacs_cv_var___after_morecore_hook = no; then
9607 doug_lea_malloc=no
9608 fi
9609
9610
9611 system_malloc=no
9612 case "$opsys" in
9613 ## darwin ld insists on the use of malloc routines in the System framework.
9614 darwin|sol2-10) system_malloc=yes ;;
9615 esac
9616
9617 if test "${system_malloc}" = "yes"; then
9618
9619 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9620
9621 GNU_MALLOC=no
9622 GNU_MALLOC_reason="
9623 (The GNU allocators don't work with this system configuration.)"
9624 GMALLOC_OBJ=
9625 VMLIMIT_OBJ=
9626 else
9627 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9628 VMLIMIT_OBJ=vm-limit.o
9629 fi
9630
9631
9632
9633 if test "$doug_lea_malloc" = "yes" ; then
9634 if test "$GNU_MALLOC" = yes ; then
9635 GNU_MALLOC_reason="
9636 (Using Doug Lea's new malloc from the GNU C Library.)"
9637 fi
9638
9639 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9640
9641
9642 ## Use mmap directly for allocating larger buffers.
9643 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9644 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9645 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9646 case "$opsys" in
9647 gnu*) REL_ALLOC=no ;;
9648 esac
9649 fi
9650
9651 if test x"${REL_ALLOC}" = x; then
9652 REL_ALLOC=${GNU_MALLOC}
9653 fi
9654
9655 use_mmap_for_buffers=no
9656 case "$opsys" in
9657 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9658 esac
9659
9660
9661
9662
9663 for ac_header in $ac_header_list
9664 do :
9665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9666 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9667 "
9668 eval as_val=\$$as_ac_Header
9669 if test "x$as_val" = x""yes; then :
9670 cat >>confdefs.h <<_ACEOF
9671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9672 _ACEOF
9673
9674 fi
9675
9676 done
9677
9678
9679
9680
9681
9682
9683
9684
9685 for ac_func in getpagesize
9686 do :
9687 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9688 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9689 cat >>confdefs.h <<_ACEOF
9690 #define HAVE_GETPAGESIZE 1
9691 _ACEOF
9692
9693 fi
9694 done
9695
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9697 $as_echo_n "checking for working mmap... " >&6; }
9698 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9699 $as_echo_n "(cached) " >&6
9700 else
9701 if test "$cross_compiling" = yes; then :
9702 ac_cv_func_mmap_fixed_mapped=no
9703 else
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706 $ac_includes_default
9707 /* malloc might have been renamed as rpl_malloc. */
9708 #undef malloc
9709
9710 /* Thanks to Mike Haertel and Jim Avera for this test.
9711 Here is a matrix of mmap possibilities:
9712 mmap private not fixed
9713 mmap private fixed at somewhere currently unmapped
9714 mmap private fixed at somewhere already mapped
9715 mmap shared not fixed
9716 mmap shared fixed at somewhere currently unmapped
9717 mmap shared fixed at somewhere already mapped
9718 For private mappings, we should verify that changes cannot be read()
9719 back from the file, nor mmap's back from the file at a different
9720 address. (There have been systems where private was not correctly
9721 implemented like the infamous i386 svr4.0, and systems where the
9722 VM page cache was not coherent with the file system buffer cache
9723 like early versions of FreeBSD and possibly contemporary NetBSD.)
9724 For shared mappings, we should conversely verify that changes get
9725 propagated back to all the places they're supposed to be.
9726
9727 Grep wants private fixed already mapped.
9728 The main things grep needs to know about mmap are:
9729 * does it exist and is it safe to write into the mmap'd area
9730 * how to use it (BSD variants) */
9731
9732 #include <fcntl.h>
9733 #include <sys/mman.h>
9734
9735 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9736 char *malloc ();
9737 #endif
9738
9739 /* This mess was copied from the GNU getpagesize.h. */
9740 #ifndef HAVE_GETPAGESIZE
9741 # ifdef _SC_PAGESIZE
9742 # define getpagesize() sysconf(_SC_PAGESIZE)
9743 # else /* no _SC_PAGESIZE */
9744 # ifdef HAVE_SYS_PARAM_H
9745 # include <sys/param.h>
9746 # ifdef EXEC_PAGESIZE
9747 # define getpagesize() EXEC_PAGESIZE
9748 # else /* no EXEC_PAGESIZE */
9749 # ifdef NBPG
9750 # define getpagesize() NBPG * CLSIZE
9751 # ifndef CLSIZE
9752 # define CLSIZE 1
9753 # endif /* no CLSIZE */
9754 # else /* no NBPG */
9755 # ifdef NBPC
9756 # define getpagesize() NBPC
9757 # else /* no NBPC */
9758 # ifdef PAGESIZE
9759 # define getpagesize() PAGESIZE
9760 # endif /* PAGESIZE */
9761 # endif /* no NBPC */
9762 # endif /* no NBPG */
9763 # endif /* no EXEC_PAGESIZE */
9764 # else /* no HAVE_SYS_PARAM_H */
9765 # define getpagesize() 8192 /* punt totally */
9766 # endif /* no HAVE_SYS_PARAM_H */
9767 # endif /* no _SC_PAGESIZE */
9768
9769 #endif /* no HAVE_GETPAGESIZE */
9770
9771 int
9772 main ()
9773 {
9774 char *data, *data2, *data3;
9775 const char *cdata2;
9776 int i, pagesize;
9777 int fd, fd2;
9778
9779 pagesize = getpagesize ();
9780
9781 /* First, make a file with some known garbage in it. */
9782 data = (char *) malloc (pagesize);
9783 if (!data)
9784 return 1;
9785 for (i = 0; i < pagesize; ++i)
9786 *(data + i) = rand ();
9787 umask (0);
9788 fd = creat ("conftest.mmap", 0600);
9789 if (fd < 0)
9790 return 2;
9791 if (write (fd, data, pagesize) != pagesize)
9792 return 3;
9793 close (fd);
9794
9795 /* Next, check that the tail of a page is zero-filled. File must have
9796 non-zero length, otherwise we risk SIGBUS for entire page. */
9797 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9798 if (fd2 < 0)
9799 return 4;
9800 cdata2 = "";
9801 if (write (fd2, cdata2, 1) != 1)
9802 return 5;
9803 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9804 if (data2 == MAP_FAILED)
9805 return 6;
9806 for (i = 0; i < pagesize; ++i)
9807 if (*(data2 + i))
9808 return 7;
9809 close (fd2);
9810 if (munmap (data2, pagesize))
9811 return 8;
9812
9813 /* Next, try to mmap the file at a fixed address which already has
9814 something else allocated at it. If we can, also make sure that
9815 we see the same garbage. */
9816 fd = open ("conftest.mmap", O_RDWR);
9817 if (fd < 0)
9818 return 9;
9819 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9820 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9821 return 10;
9822 for (i = 0; i < pagesize; ++i)
9823 if (*(data + i) != *(data2 + i))
9824 return 11;
9825
9826 /* Finally, make sure that changes to the mapped area do not
9827 percolate back to the file as seen by read(). (This is a bug on
9828 some variants of i386 svr4.0.) */
9829 for (i = 0; i < pagesize; ++i)
9830 *(data2 + i) = *(data2 + i) + 1;
9831 data3 = (char *) malloc (pagesize);
9832 if (!data3)
9833 return 12;
9834 if (read (fd, data3, pagesize) != pagesize)
9835 return 13;
9836 for (i = 0; i < pagesize; ++i)
9837 if (*(data + i) != *(data3 + i))
9838 return 14;
9839 close (fd);
9840 return 0;
9841 }
9842 _ACEOF
9843 if ac_fn_c_try_run "$LINENO"; then :
9844 ac_cv_func_mmap_fixed_mapped=yes
9845 else
9846 ac_cv_func_mmap_fixed_mapped=no
9847 fi
9848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9849 conftest.$ac_objext conftest.beam conftest.$ac_ext
9850 fi
9851
9852 fi
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9854 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9855 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9856
9857 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9858
9859 fi
9860 rm -f conftest.mmap conftest.txt
9861
9862 if test $use_mmap_for_buffers = yes; then
9863
9864 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9865
9866 REL_ALLOC=no
9867 fi
9868
9869 LIBS="$LIBS_SYSTEM $LIBS"
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9872 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9873 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9874 $as_echo_n "(cached) " >&6
9875 else
9876 ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-ldnet $LIBS"
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9880
9881 /* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char dnet_ntoa ();
9888 int
9889 main ()
9890 {
9891 return dnet_ntoa ();
9892 ;
9893 return 0;
9894 }
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9897 ac_cv_lib_dnet_dnet_ntoa=yes
9898 else
9899 ac_cv_lib_dnet_dnet_ntoa=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9904 fi
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9906 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9907 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9908 cat >>confdefs.h <<_ACEOF
9909 #define HAVE_LIBDNET 1
9910 _ACEOF
9911
9912 LIBS="-ldnet $LIBS"
9913
9914 fi
9915
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9918 $as_echo_n "checking for main in -lXbsd... " >&6; }
9919 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 ac_check_lib_save_LIBS=$LIBS
9923 LIBS="-lXbsd $LIBS"
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926
9927
9928 int
9929 main ()
9930 {
9931 return main ();
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 if ac_fn_c_try_link "$LINENO"; then :
9937 ac_cv_lib_Xbsd_main=yes
9938 else
9939 ac_cv_lib_Xbsd_main=no
9940 fi
9941 rm -f core conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9943 LIBS=$ac_check_lib_save_LIBS
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9946 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9947 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9948 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9949 fi
9950
9951
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9953 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9954 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 ac_check_lib_save_LIBS=$LIBS
9958 LIBS="-lpthreads $LIBS"
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961
9962 /* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
9965 #ifdef __cplusplus
9966 extern "C"
9967 #endif
9968 char cma_open ();
9969 int
9970 main ()
9971 {
9972 return cma_open ();
9973 ;
9974 return 0;
9975 }
9976 _ACEOF
9977 if ac_fn_c_try_link "$LINENO"; then :
9978 ac_cv_lib_pthreads_cma_open=yes
9979 else
9980 ac_cv_lib_pthreads_cma_open=no
9981 fi
9982 rm -f core conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9984 LIBS=$ac_check_lib_save_LIBS
9985 fi
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9987 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9988 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9989 cat >>confdefs.h <<_ACEOF
9990 #define HAVE_LIBPTHREADS 1
9991 _ACEOF
9992
9993 LIBS="-lpthreads $LIBS"
9994
9995 fi
9996
9997
9998 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9999 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10000 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10001 ## added to LIBS in configure would never contain the pthreads part,
10002 ## but the value used in Makefiles might. FIXME?
10003 ##
10004 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10005 ## be harmless on older versions of X where it happens to exist.
10006 test "$opsys" = "aix4-2" && \
10007 test $ac_cv_lib_pthreads_cma_open = yes && \
10008 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10009
10010
10011 case ${host_os} in
10012 aix*)
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10014 $as_echo_n "checking for -bbigtoc option... " >&6; }
10015 if test "${gdb_cv_bigtoc+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018
10019 case $GCC in
10020 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10021 *) gdb_cv_bigtoc=-bbigtoc ;;
10022 esac
10023
10024 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027
10028 int
10029 main ()
10030 {
10031 int i;
10032 ;
10033 return 0;
10034 }
10035 _ACEOF
10036 if ac_fn_c_try_link "$LINENO"; then :
10037
10038 else
10039 gdb_cv_bigtoc=
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043
10044 fi
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10046 $as_echo "$gdb_cv_bigtoc" >&6; }
10047 ;;
10048 esac
10049
10050 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10051 # used for the tests that follow. We set them back to REAL_CFLAGS and
10052 # REAL_CPPFLAGS later on.
10053
10054 REAL_CFLAGS="$CFLAGS"
10055 REAL_CPPFLAGS="$CPPFLAGS"
10056
10057 if test "${HAVE_X11}" = "yes"; then
10058 DEFS="$C_SWITCH_X_SITE $DEFS"
10059 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10060 LIBS="-lX11 $LIBS"
10061 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10062 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10063
10064 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10065 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10066 # but it's more convenient here to set LD_RUN_PATH
10067 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10068 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10069 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10070 export LD_RUN_PATH
10071 fi
10072
10073 if test "${opsys}" = "gnu-linux"; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10075 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10078
10079 int
10080 main ()
10081 {
10082 XOpenDisplay ("foo");
10083 ;
10084 return 0;
10085 }
10086 _ACEOF
10087 if ac_fn_c_try_link "$LINENO"; then :
10088 xlinux_first_failure=no
10089 else
10090 xlinux_first_failure=yes
10091 fi
10092 rm -f core conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094 if test "${xlinux_first_failure}" = "yes"; then
10095 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10096 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10097 OLD_CPPFLAGS="$CPPFLAGS"
10098 OLD_LIBS="$LIBS"
10099 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10100 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10101 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10102 LIBS="$LIBS -b i486-linuxaout"
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105
10106 int
10107 main ()
10108 {
10109 XOpenDisplay ("foo");
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"; then :
10115 xlinux_second_failure=no
10116 else
10117 xlinux_second_failure=yes
10118 fi
10119 rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 if test "${xlinux_second_failure}" = "yes"; then
10122 # If we get the same failure with -b, there is no use adding -b.
10123 # So take it out. This plays safe.
10124 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10125 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10126 CPPFLAGS="$OLD_CPPFLAGS"
10127 LIBS="$OLD_LIBS"
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10130 else
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10132 $as_echo "yes" >&6; }
10133 fi
10134 else
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136 $as_echo "no" >&6; }
10137 fi
10138 fi
10139
10140 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10141 # header files included from there.
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10143 $as_echo_n "checking for Xkb... " >&6; }
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 #include <X11/Xlib.h>
10147 #include <X11/XKBlib.h>
10148 int
10149 main ()
10150 {
10151 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10152 ;
10153 return 0;
10154 }
10155 _ACEOF
10156 if ac_fn_c_try_link "$LINENO"; then :
10157 emacs_xkb=yes
10158 else
10159 emacs_xkb=no
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10164 $as_echo "$emacs_xkb" >&6; }
10165 if test $emacs_xkb = yes; then
10166
10167 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10168
10169 fi
10170
10171 for ac_func in XrmSetDatabase XScreenResourceString \
10172 XScreenNumberOfScreen XSetWMProtocols
10173 do :
10174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10176 eval as_val=\$$as_ac_var
10177 if test "x$as_val" = x""yes; then :
10178 cat >>confdefs.h <<_ACEOF
10179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10180 _ACEOF
10181
10182 fi
10183 done
10184
10185 fi
10186
10187 if test "${window_system}" = "x11"; then
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10189 $as_echo_n "checking X11 version 6... " >&6; }
10190 if test "${emacs_cv_x11_version_6+set}" = set; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 #include <X11/Xlib.h>
10196 int
10197 main ()
10198 {
10199 #if XlibSpecificationRelease < 6
10200 fail;
10201 #endif
10202
10203 ;
10204 return 0;
10205 }
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208 emacs_cv_x11_version_6=yes
10209 else
10210 emacs_cv_x11_version_6=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 fi
10215
10216 if test $emacs_cv_x11_version_6 = yes; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10218 $as_echo "6 or newer" >&6; }
10219
10220 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10221
10222
10223 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10224
10225 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10226 ## XIM support.
10227 case "$opsys" in
10228 sol2-*) : ;;
10229 *)
10230 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10231
10232 ;;
10233 esac
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10236 $as_echo "before 6" >&6; }
10237 fi
10238 fi
10239
10240
10241 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10242 HAVE_RSVG=no
10243 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10244 if test "${with_rsvg}" != "no"; then
10245 RSVG_REQUIRED=2.11.0
10246 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10247
10248
10249 succeeded=no
10250
10251 # Extract the first word of "pkg-config", so it can be a program name with args.
10252 set dummy pkg-config; ac_word=$2
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254 $as_echo_n "checking for $ac_word... " >&6; }
10255 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 case $PKG_CONFIG in
10259 [\\/]* | ?:[\\/]*)
10260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10261 ;;
10262 *)
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10265 do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10273 fi
10274 done
10275 done
10276 IFS=$as_save_IFS
10277
10278 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10279 ;;
10280 esac
10281 fi
10282 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10283 if test -n "$PKG_CONFIG"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10285 $as_echo "$PKG_CONFIG" >&6; }
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10289 fi
10290
10291
10292
10293 if test "$PKG_CONFIG" = "no" ; then
10294 :
10295 else
10296 PKG_CONFIG_MIN_VERSION=0.9.0
10297 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10299 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10300
10301 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10303 $as_echo "yes" >&6; }
10304 succeeded=yes
10305
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10307 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10308 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10310 $as_echo "$RSVG_CFLAGS" >&6; }
10311
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10313 $as_echo_n "checking RSVG_LIBS... " >&6; }
10314 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10316 $as_echo "$RSVG_LIBS" >&6; }
10317 else
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319 $as_echo "no" >&6; }
10320 RSVG_CFLAGS=""
10321 RSVG_LIBS=""
10322 ## If we have a custom action on failure, don't print errors, but
10323 ## do set a variable so people can do so.
10324 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10325
10326 fi
10327
10328
10329
10330 else
10331 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10332 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10333 fi
10334 fi
10335
10336 if test $succeeded = yes; then
10337 HAVE_RSVG=yes
10338 else
10339 :
10340 fi
10341
10342
10343
10344
10345 if test $HAVE_RSVG = yes; then
10346
10347 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10348
10349 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10350 LIBS="$RSVG_LIBS $LIBS"
10351 fi
10352 fi
10353 fi
10354
10355 HAVE_IMAGEMAGICK=no
10356 if test "${HAVE_X11}" = "yes"; then
10357 if test "${with_imagemagick}" != "no"; then
10358 ## 6.2.8 is the earliest version known to work, but earlier versions
10359 ## might work - let us know if you find one.
10360 ## 6.0.7 does not work. See bug#7955.
10361 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10362
10363 succeeded=no
10364
10365 # Extract the first word of "pkg-config", so it can be a program name with args.
10366 set dummy pkg-config; ac_word=$2
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368 $as_echo_n "checking for $ac_word... " >&6; }
10369 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 case $PKG_CONFIG in
10373 [\\/]* | ?:[\\/]*)
10374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10375 ;;
10376 *)
10377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378 for as_dir in $PATH
10379 do
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
10383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10384 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 break 2
10387 fi
10388 done
10389 done
10390 IFS=$as_save_IFS
10391
10392 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10393 ;;
10394 esac
10395 fi
10396 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10397 if test -n "$PKG_CONFIG"; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10399 $as_echo "$PKG_CONFIG" >&6; }
10400 else
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 $as_echo "no" >&6; }
10403 fi
10404
10405
10406
10407 if test "$PKG_CONFIG" = "no" ; then
10408 :
10409 else
10410 PKG_CONFIG_MIN_VERSION=0.9.0
10411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10413 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10414
10415 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10417 $as_echo "yes" >&6; }
10418 succeeded=yes
10419
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10421 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10422 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10424 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10425
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10427 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10428 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10430 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10431 else
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10434 IMAGEMAGICK_CFLAGS=""
10435 IMAGEMAGICK_LIBS=""
10436 ## If we have a custom action on failure, don't print errors, but
10437 ## do set a variable so people can do so.
10438 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10439
10440 fi
10441
10442
10443
10444 else
10445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10447 fi
10448 fi
10449
10450 if test $succeeded = yes; then
10451 HAVE_IMAGEMAGICK=yes
10452 else
10453 :
10454 fi
10455
10456
10457
10458
10459 if test $HAVE_IMAGEMAGICK = yes; then
10460
10461 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10462
10463 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10464 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10465 for ac_func in MagickExportImagePixels
10466 do :
10467 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10468 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10469 cat >>confdefs.h <<_ACEOF
10470 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10471 _ACEOF
10472
10473 fi
10474 done
10475
10476 fi
10477 fi
10478 fi
10479
10480
10481 HAVE_GTK=no
10482 GTK_OBJ=
10483 if test "${with_gtk3}" = "yes"; then
10484 GLIB_REQUIRED=2.28
10485 GTK_REQUIRED=3.0
10486 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10487
10488
10489 succeeded=no
10490
10491 # Extract the first word of "pkg-config", so it can be a program name with args.
10492 set dummy pkg-config; ac_word=$2
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494 $as_echo_n "checking for $ac_word... " >&6; }
10495 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 case $PKG_CONFIG in
10499 [\\/]* | ?:[\\/]*)
10500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10501 ;;
10502 *)
10503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504 for as_dir in $PATH
10505 do
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10510 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10513 fi
10514 done
10515 done
10516 IFS=$as_save_IFS
10517
10518 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10519 ;;
10520 esac
10521 fi
10522 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10523 if test -n "$PKG_CONFIG"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10525 $as_echo "$PKG_CONFIG" >&6; }
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10529 fi
10530
10531
10532
10533 if test "$PKG_CONFIG" = "no" ; then
10534 pkg_check_gtk=no
10535 else
10536 PKG_CONFIG_MIN_VERSION=0.9.0
10537 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10539 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10540
10541 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10543 $as_echo "yes" >&6; }
10544 succeeded=yes
10545
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10547 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10548 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10550 $as_echo "$GTK_CFLAGS" >&6; }
10551
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10553 $as_echo_n "checking GTK_LIBS... " >&6; }
10554 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10556 $as_echo "$GTK_LIBS" >&6; }
10557 else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10560 GTK_CFLAGS=""
10561 GTK_LIBS=""
10562 ## If we have a custom action on failure, don't print errors, but
10563 ## do set a variable so people can do so.
10564 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10565
10566 fi
10567
10568
10569
10570 else
10571 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10572 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10573 fi
10574 fi
10575
10576 if test $succeeded = yes; then
10577 pkg_check_gtk=yes
10578 else
10579 pkg_check_gtk=no
10580 fi
10581
10582 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10583 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10584 fi
10585
10586 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10587
10588 GTK_OBJ=emacsgtkfixed.o
10589 fi
10590
10591 if test "$pkg_check_gtk" != "yes"; then
10592 HAVE_GTK=no
10593 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10594 GLIB_REQUIRED=2.6
10595 GTK_REQUIRED=2.6
10596 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10597
10598
10599 succeeded=no
10600
10601 # Extract the first word of "pkg-config", so it can be a program name with args.
10602 set dummy pkg-config; ac_word=$2
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 case $PKG_CONFIG in
10609 [\\/]* | ?:[\\/]*)
10610 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10611 ;;
10612 *)
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10615 do
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10620 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10623 fi
10624 done
10625 done
10626 IFS=$as_save_IFS
10627
10628 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10629 ;;
10630 esac
10631 fi
10632 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10633 if test -n "$PKG_CONFIG"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10635 $as_echo "$PKG_CONFIG" >&6; }
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10639 fi
10640
10641
10642
10643 if test "$PKG_CONFIG" = "no" ; then
10644 pkg_check_gtk=no
10645 else
10646 PKG_CONFIG_MIN_VERSION=0.9.0
10647 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10649 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10650
10651 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10653 $as_echo "yes" >&6; }
10654 succeeded=yes
10655
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10657 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10658 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10660 $as_echo "$GTK_CFLAGS" >&6; }
10661
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10663 $as_echo_n "checking GTK_LIBS... " >&6; }
10664 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10666 $as_echo "$GTK_LIBS" >&6; }
10667 else
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; }
10670 GTK_CFLAGS=""
10671 GTK_LIBS=""
10672 ## If we have a custom action on failure, don't print errors, but
10673 ## do set a variable so people can do so.
10674 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10675
10676 fi
10677
10678
10679
10680 else
10681 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10682 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10683 fi
10684 fi
10685
10686 if test $succeeded = yes; then
10687 pkg_check_gtk=yes
10688 else
10689 pkg_check_gtk=no
10690 fi
10691
10692 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10693 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10694 fi
10695 fi
10696 fi
10697
10698 if test x"$pkg_check_gtk" = xyes; then
10699
10700
10701
10702 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10703 CFLAGS="$CFLAGS $GTK_CFLAGS"
10704 LIBS="$GTK_LIBS $LIBS"
10705 GTK_COMPILES=no
10706 for ac_func in gtk_main
10707 do :
10708 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10709 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_GTK_MAIN 1
10712 _ACEOF
10713 GTK_COMPILES=yes
10714 fi
10715 done
10716
10717 if test "${GTK_COMPILES}" != "yes"; then
10718 if test "$USE_X_TOOLKIT" != "maybe"; then
10719 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10720 fi
10721 else
10722 HAVE_GTK=yes
10723
10724 $as_echo "#define USE_GTK 1" >>confdefs.h
10725
10726 GTK_OBJ="gtkutil.o $GTK_OBJ"
10727 USE_X_TOOLKIT=none
10728 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10729 :
10730 else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10732 closing open displays. This is no problem if you just use
10733 one display, but if you use more than one and close one of them
10734 Emacs may crash." >&5
10735 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10736 closing open displays. This is no problem if you just use
10737 one display, but if you use more than one and close one of them
10738 Emacs may crash." >&2;}
10739 sleep 3
10740 fi
10741 fi
10742
10743 fi
10744
10745
10746
10747 if test "${HAVE_GTK}" = "yes"; then
10748
10749 if test "$with_toolkit_scroll_bars" != no; then
10750 with_toolkit_scroll_bars=yes
10751 fi
10752
10753 HAVE_GTK_FILE_SELECTION=no
10754 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10755 #include <gtk/gtk.h>
10756 "
10757 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10758 HAVE_GTK_FILE_SELECTION=yes
10759 else
10760 HAVE_GTK_FILE_SELECTION=no
10761 fi
10762
10763 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10764 for ac_func in gtk_file_selection_new
10765 do :
10766 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10767 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10768 cat >>confdefs.h <<_ACEOF
10769 #define HAVE_GTK_FILE_SELECTION_NEW 1
10770 _ACEOF
10771
10772 fi
10773 done
10774
10775 fi
10776
10777 HAVE_GTK_AND_PTHREAD=no
10778 for ac_header in pthread.h
10779 do :
10780 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10781 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10782 cat >>confdefs.h <<_ACEOF
10783 #define HAVE_PTHREAD_H 1
10784 _ACEOF
10785
10786 fi
10787
10788 done
10789
10790 if test "$ac_cv_header_pthread_h"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10792 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10793 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 ac_check_lib_save_LIBS=$LIBS
10797 LIBS="-lpthread $LIBS"
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char pthread_self ();
10808 int
10809 main ()
10810 {
10811 return pthread_self ();
10812 ;
10813 return 0;
10814 }
10815 _ACEOF
10816 if ac_fn_c_try_link "$LINENO"; then :
10817 ac_cv_lib_pthread_pthread_self=yes
10818 else
10819 ac_cv_lib_pthread_pthread_self=no
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10823 LIBS=$ac_check_lib_save_LIBS
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10826 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10827 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10828 HAVE_GTK_AND_PTHREAD=yes
10829 fi
10830
10831 fi
10832 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10833 case "${canonical}" in
10834 *-hpux*) ;;
10835 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10836 esac
10837
10838 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10839
10840 fi
10841
10842 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10843 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10844 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10845 gtk_orientable_set_orientation
10846 do :
10847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10848 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10849 eval as_val=\$$as_ac_var
10850 if test "x$as_val" = x""yes; then :
10851 cat >>confdefs.h <<_ACEOF
10852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10853 _ACEOF
10854
10855 fi
10856 done
10857
10858
10859 fi
10860
10861 HAVE_DBUS=no
10862 DBUS_OBJ=
10863 if test "${with_dbus}" = "yes"; then
10864
10865 succeeded=no
10866
10867 # Extract the first word of "pkg-config", so it can be a program name with args.
10868 set dummy pkg-config; ac_word=$2
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870 $as_echo_n "checking for $ac_word... " >&6; }
10871 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 case $PKG_CONFIG in
10875 [\\/]* | ?:[\\/]*)
10876 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10877 ;;
10878 *)
10879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880 for as_dir in $PATH
10881 do
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10886 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10889 fi
10890 done
10891 done
10892 IFS=$as_save_IFS
10893
10894 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10895 ;;
10896 esac
10897 fi
10898 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10899 if test -n "$PKG_CONFIG"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10901 $as_echo "$PKG_CONFIG" >&6; }
10902 else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10905 fi
10906
10907
10908
10909 if test "$PKG_CONFIG" = "no" ; then
10910 HAVE_DBUS=no
10911 else
10912 PKG_CONFIG_MIN_VERSION=0.9.0
10913 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10915 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10916
10917 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919 $as_echo "yes" >&6; }
10920 succeeded=yes
10921
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10923 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10924 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10926 $as_echo "$DBUS_CFLAGS" >&6; }
10927
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10929 $as_echo_n "checking DBUS_LIBS... " >&6; }
10930 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10932 $as_echo "$DBUS_LIBS" >&6; }
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10936 DBUS_CFLAGS=""
10937 DBUS_LIBS=""
10938 ## If we have a custom action on failure, don't print errors, but
10939 ## do set a variable so people can do so.
10940 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10941
10942 fi
10943
10944
10945
10946 else
10947 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10948 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10949 fi
10950 fi
10951
10952 if test $succeeded = yes; then
10953 HAVE_DBUS=yes
10954 else
10955 HAVE_DBUS=no
10956 fi
10957
10958 if test "$HAVE_DBUS" = yes; then
10959 LIBS="$LIBS $DBUS_LIBS"
10960
10961 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10962
10963 for ac_func in dbus_watch_get_unix_fd
10964 do :
10965 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10966 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10967 cat >>confdefs.h <<_ACEOF
10968 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10969 _ACEOF
10970
10971 fi
10972 done
10973
10974 DBUS_OBJ=dbusbind.o
10975 fi
10976 fi
10977
10978
10979 HAVE_GSETTINGS=no
10980 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10981
10982 succeeded=no
10983
10984 # Extract the first word of "pkg-config", so it can be a program name with args.
10985 set dummy pkg-config; ac_word=$2
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987 $as_echo_n "checking for $ac_word... " >&6; }
10988 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10990 else
10991 case $PKG_CONFIG in
10992 [\\/]* | ?:[\\/]*)
10993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10994 ;;
10995 *)
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
10998 do
10999 IFS=$as_save_IFS
11000 test -z "$as_dir" && as_dir=.
11001 for ac_exec_ext in '' $ac_executable_extensions; do
11002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11003 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11005 break 2
11006 fi
11007 done
11008 done
11009 IFS=$as_save_IFS
11010
11011 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11012 ;;
11013 esac
11014 fi
11015 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11016 if test -n "$PKG_CONFIG"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11018 $as_echo "$PKG_CONFIG" >&6; }
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11022 fi
11023
11024
11025
11026 if test "$PKG_CONFIG" = "no" ; then
11027 HAVE_GSETTINGS=no
11028 else
11029 PKG_CONFIG_MIN_VERSION=0.9.0
11030 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11032 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11033
11034 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11036 $as_echo "yes" >&6; }
11037 succeeded=yes
11038
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11040 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11041 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11043 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11044
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11046 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11047 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11049 $as_echo "$GSETTINGS_LIBS" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 GSETTINGS_CFLAGS=""
11054 GSETTINGS_LIBS=""
11055 ## If we have a custom action on failure, don't print errors, but
11056 ## do set a variable so people can do so.
11057 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11058
11059 fi
11060
11061
11062
11063 else
11064 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11065 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11066 fi
11067 fi
11068
11069 if test $succeeded = yes; then
11070 HAVE_GSETTINGS=yes
11071 else
11072 HAVE_GSETTINGS=no
11073 fi
11074
11075 if test "$HAVE_GSETTINGS" = "yes"; then
11076
11077 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11078
11079 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11080 SETTINGS_LIBS="$GSETTINGS_LIBS"
11081 fi
11082 fi
11083
11084 HAVE_GCONF=no
11085 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11086
11087 succeeded=no
11088
11089 # Extract the first word of "pkg-config", so it can be a program name with args.
11090 set dummy pkg-config; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 case $PKG_CONFIG in
11097 [\\/]* | ?:[\\/]*)
11098 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11099 ;;
11100 *)
11101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $PATH
11103 do
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11108 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 break 2
11111 fi
11112 done
11113 done
11114 IFS=$as_save_IFS
11115
11116 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11117 ;;
11118 esac
11119 fi
11120 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11121 if test -n "$PKG_CONFIG"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11123 $as_echo "$PKG_CONFIG" >&6; }
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11127 fi
11128
11129
11130
11131 if test "$PKG_CONFIG" = "no" ; then
11132 HAVE_GCONF=no
11133 else
11134 PKG_CONFIG_MIN_VERSION=0.9.0
11135 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11137 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11138
11139 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11141 $as_echo "yes" >&6; }
11142 succeeded=yes
11143
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11145 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11146 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11148 $as_echo "$GCONF_CFLAGS" >&6; }
11149
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11151 $as_echo_n "checking GCONF_LIBS... " >&6; }
11152 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11154 $as_echo "$GCONF_LIBS" >&6; }
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11158 GCONF_CFLAGS=""
11159 GCONF_LIBS=""
11160 ## If we have a custom action on failure, don't print errors, but
11161 ## do set a variable so people can do so.
11162 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11163
11164 fi
11165
11166
11167
11168 else
11169 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11170 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11171 fi
11172 fi
11173
11174 if test $succeeded = yes; then
11175 HAVE_GCONF=yes
11176 else
11177 HAVE_GCONF=no
11178 fi
11179
11180 if test "$HAVE_GCONF" = yes; then
11181
11182 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11183
11184 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11185 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11186 fi
11187 fi
11188
11189 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11190 SAVE_CFLAGS="$CFLAGS"
11191 SAVE_LDFLAGS="$LDFLAGS"
11192 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11193 LDFLAGS="$SETTINGS_LIBS $LDFLAGS"
11194 for ac_func in g_type_init
11195 do :
11196 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11197 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11198 cat >>confdefs.h <<_ACEOF
11199 #define HAVE_G_TYPE_INIT 1
11200 _ACEOF
11201
11202 fi
11203 done
11204
11205 CFLAGS="$SAVE_CFLAGS"
11206 LDFLAGS="$SAVE_LDFLAGS"
11207 fi
11208
11209
11210
11211
11212 HAVE_LIBSELINUX=no
11213 LIBSELINUX_LIBS=
11214 if test "${with_selinux}" = "yes"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11216 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11217 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 ac_check_lib_save_LIBS=$LIBS
11221 LIBS="-lselinux $LIBS"
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224
11225 /* Override any GCC internal prototype to avoid an error.
11226 Use char because int might match the return type of a GCC
11227 builtin and then its argument prototype would still apply. */
11228 #ifdef __cplusplus
11229 extern "C"
11230 #endif
11231 char lgetfilecon ();
11232 int
11233 main ()
11234 {
11235 return lgetfilecon ();
11236 ;
11237 return 0;
11238 }
11239 _ACEOF
11240 if ac_fn_c_try_link "$LINENO"; then :
11241 ac_cv_lib_selinux_lgetfilecon=yes
11242 else
11243 ac_cv_lib_selinux_lgetfilecon=no
11244 fi
11245 rm -f core conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11248 fi
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11250 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11251 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11252 HAVE_LIBSELINUX=yes
11253 else
11254 HAVE_LIBSELINUX=no
11255 fi
11256
11257 if test "$HAVE_LIBSELINUX" = yes; then
11258
11259 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11260
11261 LIBSELINUX_LIBS=-lselinux
11262 fi
11263 fi
11264
11265
11266 HAVE_GNUTLS=no
11267 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11268 if test "${with_gnutls}" = "yes" ; then
11269
11270 succeeded=no
11271
11272 # Extract the first word of "pkg-config", so it can be a program name with args.
11273 set dummy pkg-config; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275 $as_echo_n "checking for $ac_word... " >&6; }
11276 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 case $PKG_CONFIG in
11280 [\\/]* | ?:[\\/]*)
11281 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11282 ;;
11283 *)
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11293 break 2
11294 fi
11295 done
11296 done
11297 IFS=$as_save_IFS
11298
11299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11300 ;;
11301 esac
11302 fi
11303 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11304 if test -n "$PKG_CONFIG"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11306 $as_echo "$PKG_CONFIG" >&6; }
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310 fi
11311
11312
11313
11314 if test "$PKG_CONFIG" = "no" ; then
11315 HAVE_GNUTLS=no
11316 else
11317 PKG_CONFIG_MIN_VERSION=0.9.0
11318 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11320 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11321
11322 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324 $as_echo "yes" >&6; }
11325 succeeded=yes
11326
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11328 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11329 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11331 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11332
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11334 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11335 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11337 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11338 else
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340 $as_echo "no" >&6; }
11341 LIBGNUTLS_CFLAGS=""
11342 LIBGNUTLS_LIBS=""
11343 ## If we have a custom action on failure, don't print errors, but
11344 ## do set a variable so people can do so.
11345 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11346
11347 fi
11348
11349
11350
11351 else
11352 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11353 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11354 fi
11355 fi
11356
11357 if test $succeeded = yes; then
11358 HAVE_GNUTLS=yes
11359 else
11360 HAVE_GNUTLS=no
11361 fi
11362
11363 if test "${HAVE_GNUTLS}" = "yes"; then
11364
11365 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11366
11367 fi
11368
11369 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11370 LIBS="$LIBGNUTLS_LIBS $LIBS"
11371 for ac_func in gnutls_certificate_set_verify_function
11372 do :
11373 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11374 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11375 cat >>confdefs.h <<_ACEOF
11376 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11377 _ACEOF
11378 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11379 fi
11380 done
11381
11382
11383 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11384
11385 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11386
11387 fi
11388 fi
11389
11390
11391
11392
11393 HAVE_XAW3D=no
11394 LUCID_LIBW=
11395 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11396 if test "$with_xaw3d" != no; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11398 $as_echo_n "checking for xaw3d... " >&6; }
11399 if test "${emacs_cv_xaw3d+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404
11405 #include <X11/Intrinsic.h>
11406 #include <X11/Xaw3d/Simple.h>
11407 int
11408 main ()
11409 {
11410
11411 ;
11412 return 0;
11413 }
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11417 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11418 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-lXaw3d $LIBS"
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11425
11426 /* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429 #ifdef __cplusplus
11430 extern "C"
11431 #endif
11432 char XawScrollbarSetThumb ();
11433 int
11434 main ()
11435 {
11436 return XawScrollbarSetThumb ();
11437 ;
11438 return 0;
11439 }
11440 _ACEOF
11441 if ac_fn_c_try_link "$LINENO"; then :
11442 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11443 else
11444 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11451 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11452 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11453 emacs_cv_xaw3d=yes
11454 else
11455 emacs_cv_xaw3d=no
11456 fi
11457
11458 else
11459 emacs_cv_xaw3d=no
11460 fi
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 fi
11464
11465 else
11466 emacs_cv_xaw3d=no
11467 fi
11468 if test $emacs_cv_xaw3d = yes; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11470 $as_echo "yes; using Lucid toolkit" >&6; }
11471 USE_X_TOOLKIT=LUCID
11472 HAVE_XAW3D=yes
11473 LUCID_LIBW=-lXaw3d
11474
11475 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11476
11477 else
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479 $as_echo "no" >&6; }
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11481 $as_echo_n "checking for libXaw... " >&6; }
11482 if test "${emacs_cv_xaw+set}" = set; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11487
11488 #include <X11/Intrinsic.h>
11489 #include <X11/Xaw/Simple.h>
11490 int
11491 main ()
11492 {
11493
11494 ;
11495 return 0;
11496 }
11497 _ACEOF
11498 if ac_fn_c_try_link "$LINENO"; then :
11499 emacs_cv_xaw=yes
11500 else
11501 emacs_cv_xaw=no
11502 fi
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 fi
11506
11507 if test $emacs_cv_xaw = yes; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11509 $as_echo "yes; using Lucid toolkit" >&6; }
11510 USE_X_TOOLKIT=LUCID
11511 LUCID_LIBW=-lXaw
11512 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11513 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11514 else
11515 as_fn_error "No X toolkit could be found.
11516 If you are sure you want Emacs compiled without an X toolkit, pass
11517 --with-x-toolkit=no
11518 to configure. Otherwise, install the development libraries for the toolkit
11519 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11520 fi
11521 fi
11522 fi
11523
11524 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11525
11526 LIBXTR6=
11527 if test "${USE_X_TOOLKIT}" != "none"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11529 $as_echo_n "checking X11 toolkit version... " >&6; }
11530 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11535 #include <X11/Intrinsic.h>
11536 int
11537 main ()
11538 {
11539 #if XtSpecificationRelease < 6
11540 fail;
11541 #endif
11542
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"; then :
11548 emacs_cv_x11_toolkit_version_6=yes
11549 else
11550 emacs_cv_x11_toolkit_version_6=no
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 fi
11555
11556 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11557 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11559 $as_echo "6 or newer" >&6; }
11560
11561 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11562
11563 LIBXTR6="-lSM -lICE"
11564 case "$opsys" in
11565 ## Use libw.a along with X11R6 Xt.
11566 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11567 esac
11568 else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11570 $as_echo "before 6" >&6; }
11571 fi
11572
11573 OLDLIBS="$LIBS"
11574 if test x$HAVE_X11XTR6 = xyes; then
11575 LIBS="-lXt -lSM -lICE $LIBS"
11576 else
11577 LIBS="-lXt $LIBS"
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11580 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11581 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 ac_check_lib_save_LIBS=$LIBS
11585 LIBS="-lXmu $LIBS"
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 char XmuConvertStandardSelection ();
11596 int
11597 main ()
11598 {
11599 return XmuConvertStandardSelection ();
11600 ;
11601 return 0;
11602 }
11603 _ACEOF
11604 if ac_fn_c_try_link "$LINENO"; then :
11605 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11606 else
11607 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11614 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11615 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11616 cat >>confdefs.h <<_ACEOF
11617 #define HAVE_LIBXMU 1
11618 _ACEOF
11619
11620 LIBS="-lXmu $LIBS"
11621
11622 fi
11623
11624 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11625 fi
11626
11627
11628 LIBXMU=-lXmu
11629 case $opsys in
11630 ## These systems don't supply Xmu.
11631 hpux* | aix4-2 )
11632 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11633 ;;
11634 esac
11635
11636
11637 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11638 if test "${HAVE_X11}" = "yes"; then
11639 if test "${USE_X_TOOLKIT}" != "none"; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11641 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11642 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 ac_check_lib_save_LIBS=$LIBS
11646 LIBS="-lXext $LIBS"
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 char XShapeQueryExtension ();
11657 int
11658 main ()
11659 {
11660 return XShapeQueryExtension ();
11661 ;
11662 return 0;
11663 }
11664 _ACEOF
11665 if ac_fn_c_try_link "$LINENO"; then :
11666 ac_cv_lib_Xext_XShapeQueryExtension=yes
11667 else
11668 ac_cv_lib_Xext_XShapeQueryExtension=no
11669 fi
11670 rm -f core conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11673 fi
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11675 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11676 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11677 cat >>confdefs.h <<_ACEOF
11678 #define HAVE_LIBXEXT 1
11679 _ACEOF
11680
11681 LIBS="-lXext $LIBS"
11682
11683 fi
11684
11685 fi
11686 fi
11687
11688 LIBXP=
11689 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11691 $as_echo_n "checking for Motif version 2.1... " >&6; }
11692 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11697 #include <Xm/Xm.h>
11698 int
11699 main ()
11700 {
11701 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11702 int x = 5;
11703 #else
11704 Motif version prior to 2.1.
11705 #endif
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 if ac_fn_c_try_compile "$LINENO"; then :
11711 emacs_cv_motif_version_2_1=yes
11712 else
11713 emacs_cv_motif_version_2_1=no
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 fi
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11718 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11719 if test $emacs_cv_motif_version_2_1 = yes; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11721 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11722 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 ac_check_lib_save_LIBS=$LIBS
11726 LIBS="-lXp $LIBS"
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729
11730 /* Override any GCC internal prototype to avoid an error.
11731 Use char because int might match the return type of a GCC
11732 builtin and then its argument prototype would still apply. */
11733 #ifdef __cplusplus
11734 extern "C"
11735 #endif
11736 char XpCreateContext ();
11737 int
11738 main ()
11739 {
11740 return XpCreateContext ();
11741 ;
11742 return 0;
11743 }
11744 _ACEOF
11745 if ac_fn_c_try_link "$LINENO"; then :
11746 ac_cv_lib_Xp_XpCreateContext=yes
11747 else
11748 ac_cv_lib_Xp_XpCreateContext=no
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext \
11751 conftest$ac_exeext conftest.$ac_ext
11752 LIBS=$ac_check_lib_save_LIBS
11753 fi
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11755 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11756 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11757 LIBXP=-lXp
11758 fi
11759
11760 else
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11762 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11763 if test "${emacs_cv_lesstif+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
11765 else
11766 # We put this in CFLAGS temporarily to precede other -I options
11767 # that might be in CFLAGS temporarily.
11768 # We put this in CPPFLAGS where it precedes the other -I options.
11769 OLD_CPPFLAGS=$CPPFLAGS
11770 OLD_CFLAGS=$CFLAGS
11771 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11772 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11776 int
11777 main ()
11778 {
11779 int x = 5;
11780 ;
11781 return 0;
11782 }
11783 _ACEOF
11784 if ac_fn_c_try_compile "$LINENO"; then :
11785 emacs_cv_lesstif=yes
11786 else
11787 emacs_cv_lesstif=no
11788 fi
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11792 $as_echo "$emacs_cv_lesstif" >&6; }
11793 if test $emacs_cv_lesstif = yes; then
11794 # Make sure this -I option remains in CPPFLAGS after it is set
11795 # back to REAL_CPPFLAGS.
11796 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11797 # have those other -I options anyway. Ultimately, having this
11798 # directory ultimately in CPPFLAGS will be enough.
11799 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11800 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11801 else
11802 CFLAGS=$OLD_CFLAGS
11803 CPPFLAGS=$OLD_CPPFLAGS
11804 fi
11805 fi
11806 fi
11807
11808
11809 USE_TOOLKIT_SCROLL_BARS=no
11810 if test "${with_toolkit_scroll_bars}" != "no"; then
11811 if test "${USE_X_TOOLKIT}" != "none"; then
11812 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11813 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11814
11815 HAVE_XAW3D=no
11816 USE_TOOLKIT_SCROLL_BARS=yes
11817 elif test "${HAVE_XAW3D}" = "yes"; then
11818 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11819
11820 USE_TOOLKIT_SCROLL_BARS=yes
11821 fi
11822 elif test "${HAVE_GTK}" = "yes"; then
11823 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11824
11825 USE_TOOLKIT_SCROLL_BARS=yes
11826 elif test "${HAVE_NS}" = "yes"; then
11827 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11828
11829 USE_TOOLKIT_SCROLL_BARS=yes
11830 fi
11831 fi
11832
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835
11836 #include <X11/Xlib.h>
11837 #include <X11/Xresource.h>
11838 int
11839 main ()
11840 {
11841 XIMProc callback;
11842 ;
11843 return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_compile "$LINENO"; then :
11847 HAVE_XIM=yes
11848
11849 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11850
11851 else
11852 HAVE_XIM=no
11853 fi
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855
11856
11857 if test "${with_xim}" != "no"; then
11858
11859 $as_echo "#define USE_XIM 1" >>confdefs.h
11860
11861 fi
11862
11863
11864 if test "${HAVE_XIM}" != "no"; then
11865 late_CFLAGS=$CFLAGS
11866 if test "$GCC" = yes; then
11867 CFLAGS="$CFLAGS --pedantic-errors"
11868 fi
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871
11872 #include <X11/Xlib.h>
11873 #include <X11/Xresource.h>
11874 int
11875 main ()
11876 {
11877 Display *display;
11878 XrmDatabase db;
11879 char *res_name;
11880 char *res_class;
11881 XIMProc callback;
11882 XPointer *client_data;
11883 #ifndef __GNUC__
11884 /* If we're not using GCC, it's probably not XFree86, and this is
11885 probably right, but we can't use something like --pedantic-errors. */
11886 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11887 char*, XIMProc, XPointer*);
11888 #endif
11889 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11890 client_data);
11891 ;
11892 return 0;
11893 }
11894 _ACEOF
11895 if ac_fn_c_try_compile "$LINENO"; then :
11896 emacs_cv_arg6_star=yes
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 if test "$emacs_cv_arg6_star" = yes; then
11900 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11901
11902 else
11903 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11904
11905 fi
11906 CFLAGS=$late_CFLAGS
11907 fi
11908
11909 ### Start of font-backend (under any platform) section.
11910 # (nothing here yet -- this is a placeholder)
11911 ### End of font-backend (under any platform) section.
11912
11913 ### Start of font-backend (under X11) section.
11914 if test "${HAVE_X11}" = "yes"; then
11915
11916 succeeded=no
11917
11918 # Extract the first word of "pkg-config", so it can be a program name with args.
11919 set dummy pkg-config; ac_word=$2
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11921 $as_echo_n "checking for $ac_word... " >&6; }
11922 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 case $PKG_CONFIG in
11926 [\\/]* | ?:[\\/]*)
11927 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11928 ;;
11929 *)
11930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931 for as_dir in $PATH
11932 do
11933 IFS=$as_save_IFS
11934 test -z "$as_dir" && as_dir=.
11935 for ac_exec_ext in '' $ac_executable_extensions; do
11936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11937 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939 break 2
11940 fi
11941 done
11942 done
11943 IFS=$as_save_IFS
11944
11945 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11946 ;;
11947 esac
11948 fi
11949 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11950 if test -n "$PKG_CONFIG"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11952 $as_echo "$PKG_CONFIG" >&6; }
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956 fi
11957
11958
11959
11960 if test "$PKG_CONFIG" = "no" ; then
11961 HAVE_FC=no
11962 else
11963 PKG_CONFIG_MIN_VERSION=0.9.0
11964 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11966 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11967
11968 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970 $as_echo "yes" >&6; }
11971 succeeded=yes
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11974 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11975 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11977 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11978
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11980 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11981 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11983 $as_echo "$FONTCONFIG_LIBS" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 FONTCONFIG_CFLAGS=""
11988 FONTCONFIG_LIBS=""
11989 ## If we have a custom action on failure, don't print errors, but
11990 ## do set a variable so people can do so.
11991 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11992
11993 fi
11994
11995
11996
11997 else
11998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12000 fi
12001 fi
12002
12003 if test $succeeded = yes; then
12004 HAVE_FC=yes
12005 else
12006 HAVE_FC=no
12007 fi
12008
12009
12010 ## Use -lXft if available, unless `--with-xft=no'.
12011 HAVE_XFT=maybe
12012 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12013 with_xft="no";
12014 fi
12015 if test "x${with_xft}" != "xno"; then
12016
12017
12018 succeeded=no
12019
12020 # Extract the first word of "pkg-config", so it can be a program name with args.
12021 set dummy pkg-config; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12025 $as_echo_n "(cached) " >&6
12026 else
12027 case $PKG_CONFIG in
12028 [\\/]* | ?:[\\/]*)
12029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12030 ;;
12031 *)
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12034 do
12035 IFS=$as_save_IFS
12036 test -z "$as_dir" && as_dir=.
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041 break 2
12042 fi
12043 done
12044 done
12045 IFS=$as_save_IFS
12046
12047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12048 ;;
12049 esac
12050 fi
12051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12052 if test -n "$PKG_CONFIG"; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12054 $as_echo "$PKG_CONFIG" >&6; }
12055 else
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12058 fi
12059
12060
12061
12062 if test "$PKG_CONFIG" = "no" ; then
12063 HAVE_XFT=no
12064 else
12065 PKG_CONFIG_MIN_VERSION=0.9.0
12066 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12068 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12069
12070 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; }
12073 succeeded=yes
12074
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12076 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12077 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12079 $as_echo "$XFT_CFLAGS" >&6; }
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12082 $as_echo_n "checking XFT_LIBS... " >&6; }
12083 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12085 $as_echo "$XFT_LIBS" >&6; }
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 XFT_CFLAGS=""
12090 XFT_LIBS=""
12091 ## If we have a custom action on failure, don't print errors, but
12092 ## do set a variable so people can do so.
12093 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12094
12095 fi
12096
12097
12098
12099 else
12100 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12101 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12102 fi
12103 fi
12104
12105 if test $succeeded = yes; then
12106 :
12107 else
12108 HAVE_XFT=no
12109 fi
12110
12111 ## Because xftfont.c uses XRenderQueryExtension, we also
12112 ## need to link to -lXrender.
12113 HAVE_XRENDER=no
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12115 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12116 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-lXrender $LIBS"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char XRenderQueryExtension ();
12131 int
12132 main ()
12133 {
12134 return XRenderQueryExtension ();
12135 ;
12136 return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12141 else
12142 ac_cv_lib_Xrender_XRenderQueryExtension=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12149 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12150 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12151 HAVE_XRENDER=yes
12152 fi
12153
12154 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12155 OLD_CPPFLAGS="$CPPFLAGS"
12156 OLD_CFLAGS="$CFLAGS"
12157 OLD_LIBS="$LIBS"
12158 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12159 CFLAGS="$CFLAGS $XFT_CFLAGS"
12160 XFT_LIBS="-lXrender $XFT_LIBS"
12161 LIBS="$XFT_LIBS $LIBS"
12162 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12163 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12165 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12166 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-lXft $XFT_LIBS $LIBS"
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12173
12174 /* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char XftFontOpen ();
12181 int
12182 main ()
12183 {
12184 return XftFontOpen ();
12185 ;
12186 return 0;
12187 }
12188 _ACEOF
12189 if ac_fn_c_try_link "$LINENO"; then :
12190 ac_cv_lib_Xft_XftFontOpen=yes
12191 else
12192 ac_cv_lib_Xft_XftFontOpen=no
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12199 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12200 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12201 HAVE_XFT=yes
12202 fi
12203
12204 fi
12205
12206
12207
12208 if test "${HAVE_XFT}" = "yes"; then
12209
12210 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12211
12212
12213 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12214 else
12215 CPPFLAGS="$OLD_CPPFLAGS"
12216 CFLAGS="$OLD_CFLAGS"
12217 LIBS="$OLD_LIBS"
12218 fi # "${HAVE_XFT}" = "yes"
12219 fi # "$HAVE_XFT" != no
12220 fi # "x${with_xft}" != "xno"
12221
12222 ## We used to allow building with FreeType and without Xft.
12223 ## However, the ftx font backend driver is not in good shape.
12224 if test "$HAVE_XFT" != "yes"; then
12225 HAVE_XFT=no
12226 HAVE_FREETYPE=no
12227 else
12228
12229 succeeded=no
12230
12231 # Extract the first word of "pkg-config", so it can be a program name with args.
12232 set dummy pkg-config; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 case $PKG_CONFIG in
12239 [\\/]* | ?:[\\/]*)
12240 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12241 ;;
12242 *)
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12245 do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12250 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254 done
12255 done
12256 IFS=$as_save_IFS
12257
12258 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12259 ;;
12260 esac
12261 fi
12262 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12263 if test -n "$PKG_CONFIG"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12265 $as_echo "$PKG_CONFIG" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270
12271
12272
12273 if test "$PKG_CONFIG" = "no" ; then
12274 HAVE_FREETYPE=no
12275 else
12276 PKG_CONFIG_MIN_VERSION=0.9.0
12277 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12279 $as_echo_n "checking for freetype2... " >&6; }
12280
12281 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12283 $as_echo "yes" >&6; }
12284 succeeded=yes
12285
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12287 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12288 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12290 $as_echo "$FREETYPE_CFLAGS" >&6; }
12291
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12293 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12294 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12296 $as_echo "$FREETYPE_LIBS" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 FREETYPE_CFLAGS=""
12301 FREETYPE_LIBS=""
12302 ## If we have a custom action on failure, don't print errors, but
12303 ## do set a variable so people can do so.
12304 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12305
12306 fi
12307
12308
12309
12310 else
12311 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12312 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12313 fi
12314 fi
12315
12316 if test $succeeded = yes; then
12317 HAVE_FREETYPE=yes
12318 else
12319 HAVE_FREETYPE=no
12320 fi
12321
12322
12323 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12324 fi
12325
12326 HAVE_LIBOTF=no
12327 if test "${HAVE_FREETYPE}" = "yes"; then
12328
12329 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12330
12331 if test "${with_libotf}" != "no"; then
12332
12333 succeeded=no
12334
12335 # Extract the first word of "pkg-config", so it can be a program name with args.
12336 set dummy pkg-config; ac_word=$2
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338 $as_echo_n "checking for $ac_word... " >&6; }
12339 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 case $PKG_CONFIG in
12343 [\\/]* | ?:[\\/]*)
12344 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12345 ;;
12346 *)
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12349 do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12357 fi
12358 done
12359 done
12360 IFS=$as_save_IFS
12361
12362 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12363 ;;
12364 esac
12365 fi
12366 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12367 if test -n "$PKG_CONFIG"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12369 $as_echo "$PKG_CONFIG" >&6; }
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12373 fi
12374
12375
12376
12377 if test "$PKG_CONFIG" = "no" ; then
12378 HAVE_LIBOTF=no
12379 else
12380 PKG_CONFIG_MIN_VERSION=0.9.0
12381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12383 $as_echo_n "checking for libotf... " >&6; }
12384
12385 if $PKG_CONFIG --exists "libotf" 2>&5; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12387 $as_echo "yes" >&6; }
12388 succeeded=yes
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12391 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12392 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12394 $as_echo "$LIBOTF_CFLAGS" >&6; }
12395
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12397 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12398 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12400 $as_echo "$LIBOTF_LIBS" >&6; }
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12404 LIBOTF_CFLAGS=""
12405 LIBOTF_LIBS=""
12406 ## If we have a custom action on failure, don't print errors, but
12407 ## do set a variable so people can do so.
12408 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12409
12410 fi
12411
12412
12413
12414 else
12415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12417 fi
12418 fi
12419
12420 if test $succeeded = yes; then
12421 HAVE_LIBOTF=yes
12422 else
12423 HAVE_LIBOTF=no
12424 fi
12425
12426 if test "$HAVE_LIBOTF" = "yes"; then
12427
12428 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12429
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12431 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12432 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 ac_check_lib_save_LIBS=$LIBS
12436 LIBS="-lotf $LIBS"
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439
12440 /* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12443 #ifdef __cplusplus
12444 extern "C"
12445 #endif
12446 char OTF_get_variation_glyphs ();
12447 int
12448 main ()
12449 {
12450 return OTF_get_variation_glyphs ();
12451 ;
12452 return 0;
12453 }
12454 _ACEOF
12455 if ac_fn_c_try_link "$LINENO"; then :
12456 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12457 else
12458 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12459 fi
12460 rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
12462 LIBS=$ac_check_lib_save_LIBS
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12465 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12466 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12467 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12468 else
12469 HAVE_OTF_GET_VARIATION_GLYPHS=no
12470 fi
12471
12472 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12473
12474 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12475
12476 fi
12477 fi
12478 fi
12479 fi
12480
12481 HAVE_M17N_FLT=no
12482 if test "${HAVE_LIBOTF}" = yes; then
12483 if test "${with_m17n_flt}" != "no"; then
12484
12485 succeeded=no
12486
12487 # Extract the first word of "pkg-config", so it can be a program name with args.
12488 set dummy pkg-config; ac_word=$2
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12490 $as_echo_n "checking for $ac_word... " >&6; }
12491 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 case $PKG_CONFIG in
12495 [\\/]* | ?:[\\/]*)
12496 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12497 ;;
12498 *)
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12501 do
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 for ac_exec_ext in '' $ac_executable_extensions; do
12505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12506 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 break 2
12509 fi
12510 done
12511 done
12512 IFS=$as_save_IFS
12513
12514 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12515 ;;
12516 esac
12517 fi
12518 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12519 if test -n "$PKG_CONFIG"; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12521 $as_echo "$PKG_CONFIG" >&6; }
12522 else
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12524 $as_echo "no" >&6; }
12525 fi
12526
12527
12528
12529 if test "$PKG_CONFIG" = "no" ; then
12530 HAVE_M17N_FLT=no
12531 else
12532 PKG_CONFIG_MIN_VERSION=0.9.0
12533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12535 $as_echo_n "checking for m17n-flt... " >&6; }
12536
12537 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539 $as_echo "yes" >&6; }
12540 succeeded=yes
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12543 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12544 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12546 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12549 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12550 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12552 $as_echo "$M17N_FLT_LIBS" >&6; }
12553 else
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 $as_echo "no" >&6; }
12556 M17N_FLT_CFLAGS=""
12557 M17N_FLT_LIBS=""
12558 ## If we have a custom action on failure, don't print errors, but
12559 ## do set a variable so people can do so.
12560 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12561
12562 fi
12563
12564
12565
12566 else
12567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12569 fi
12570 fi
12571
12572 if test $succeeded = yes; then
12573 HAVE_M17N_FLT=yes
12574 else
12575 HAVE_M17N_FLT=no
12576 fi
12577
12578 if test "$HAVE_M17N_FLT" = "yes"; then
12579
12580 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12581
12582 fi
12583 fi
12584 fi
12585 else
12586 HAVE_XFT=no
12587 HAVE_FREETYPE=no
12588 HAVE_LIBOTF=no
12589 HAVE_M17N_FLT=no
12590 fi
12591
12592 ### End of font-backend (under X11) section.
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603 ### Use -lXpm if available, unless `--with-xpm=no'.
12604 HAVE_XPM=no
12605 LIBXPM=
12606 if test "${HAVE_X11}" = "yes"; then
12607 if test "${with_xpm}" != "no"; then
12608 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12609 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12611 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12612 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 ac_check_lib_save_LIBS=$LIBS
12616 LIBS="-lXpm -lX11 $LIBS"
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12619
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 char XpmReadFileToPixmap ();
12627 int
12628 main ()
12629 {
12630 return XpmReadFileToPixmap ();
12631 ;
12632 return 0;
12633 }
12634 _ACEOF
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12637 else
12638 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12639 fi
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12643 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12645 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12646 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12647 HAVE_XPM=yes
12648 fi
12649
12650 fi
12651
12652
12653 if test "${HAVE_XPM}" = "yes"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12655 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658 #include "X11/xpm.h"
12659 #ifndef XpmReturnAllocPixels
12660 no_return_alloc_pixels
12661 #endif
12662
12663 _ACEOF
12664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12665 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12666 HAVE_XPM=no
12667 else
12668 HAVE_XPM=yes
12669 fi
12670 rm -f conftest*
12671
12672
12673 if test "${HAVE_XPM}" = "yes"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12675 $as_echo "yes" >&6; }
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12679 fi
12680 fi
12681 fi
12682
12683 if test "${HAVE_XPM}" = "yes"; then
12684
12685 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12686
12687 LIBXPM=-lXpm
12688 fi
12689 fi
12690
12691
12692 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12693 HAVE_JPEG=no
12694 LIBJPEG=
12695 if test "${HAVE_X11}" = "yes"; then
12696 if test "${with_jpeg}" != "no"; then
12697 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12698 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12700 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12701 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 ac_check_lib_save_LIBS=$LIBS
12705 LIBS="-ljpeg $LIBS"
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12712 #ifdef __cplusplus
12713 extern "C"
12714 #endif
12715 char jpeg_destroy_compress ();
12716 int
12717 main ()
12718 {
12719 return jpeg_destroy_compress ();
12720 ;
12721 return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_link "$LINENO"; then :
12725 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12726 else
12727 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12734 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12735 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12736 HAVE_JPEG=yes
12737 fi
12738
12739 fi
12740
12741
12742 fi
12743
12744 if test "${HAVE_JPEG}" = "yes"; then
12745 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12746
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 #include <jpeglib.h>
12750 version=JPEG_LIB_VERSION
12751
12752 _ACEOF
12753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12754 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12755 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12756
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12759 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12760 HAVE_JPEG=no
12761 fi
12762 rm -f conftest*
12763
12764 fi
12765 if test "${HAVE_JPEG}" = "yes"; then
12766 LIBJPEG=-ljpeg
12767 fi
12768 fi
12769
12770
12771 ### Use -lpng if available, unless `--with-png=no'.
12772 HAVE_PNG=no
12773 LIBPNG=
12774 if test "${HAVE_X11}" = "yes"; then
12775 if test "${with_png}" != "no"; then
12776 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12777 # in /usr/include/libpng.
12778 for ac_header in png.h libpng/png.h
12779 do :
12780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12782 eval as_val=\$$as_ac_Header
12783 if test "x$as_val" = x""yes; then :
12784 cat >>confdefs.h <<_ACEOF
12785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12786 _ACEOF
12787
12788 fi
12789
12790 done
12791
12792 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12794 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12795 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 ac_check_lib_save_LIBS=$LIBS
12799 LIBS="-lpng -lz -lm $LIBS"
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12802
12803 /* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 char png_get_channels ();
12810 int
12811 main ()
12812 {
12813 return png_get_channels ();
12814 ;
12815 return 0;
12816 }
12817 _ACEOF
12818 if ac_fn_c_try_link "$LINENO"; then :
12819 ac_cv_lib_png_png_get_channels=yes
12820 else
12821 ac_cv_lib_png_png_get_channels=no
12822 fi
12823 rm -f core conftest.err conftest.$ac_objext \
12824 conftest$ac_exeext conftest.$ac_ext
12825 LIBS=$ac_check_lib_save_LIBS
12826 fi
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12828 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12829 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12830 HAVE_PNG=yes
12831 fi
12832
12833 fi
12834 fi
12835
12836 if test "${HAVE_PNG}" = "yes"; then
12837
12838 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12839
12840 LIBPNG="-lpng -lz -lm"
12841 fi
12842 fi
12843
12844
12845 ### Use -ltiff if available, unless `--with-tiff=no'.
12846 HAVE_TIFF=no
12847 LIBTIFF=
12848 if test "${HAVE_X11}" = "yes"; then
12849 if test "${with_tiff}" != "no"; then
12850 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12851 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12852 tifflibs="-lz -lm"
12853 # At least one tiff package requires the jpeg library.
12854 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12856 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12857 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-ltiff $tifflibs $LIBS"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 char TIFFGetVersion ();
12872 int
12873 main ()
12874 {
12875 return TIFFGetVersion ();
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 ac_cv_lib_tiff_TIFFGetVersion=yes
12882 else
12883 ac_cv_lib_tiff_TIFFGetVersion=no
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12890 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12891 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12892 HAVE_TIFF=yes
12893 fi
12894
12895 fi
12896
12897
12898 fi
12899
12900 if test "${HAVE_TIFF}" = "yes"; then
12901
12902 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12903
12904 LIBTIFF=-ltiff
12905 fi
12906 fi
12907
12908
12909 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12910 HAVE_GIF=no
12911 LIBGIF=
12912 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12913 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12914 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12915 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12916 # Earlier versions can crash Emacs.
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12918 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12919 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 ac_check_lib_save_LIBS=$LIBS
12923 LIBS="-lgif $LIBS"
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926
12927 /* Override any GCC internal prototype to avoid an error.
12928 Use char because int might match the return type of a GCC
12929 builtin and then its argument prototype would still apply. */
12930 #ifdef __cplusplus
12931 extern "C"
12932 #endif
12933 char EGifPutExtensionLast ();
12934 int
12935 main ()
12936 {
12937 return EGifPutExtensionLast ();
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 ac_cv_lib_gif_EGifPutExtensionLast=yes
12944 else
12945 ac_cv_lib_gif_EGifPutExtensionLast=no
12946 fi
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12949 LIBS=$ac_check_lib_save_LIBS
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12952 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12953 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12954 HAVE_GIF=yes
12955 else
12956 HAVE_GIF=maybe
12957 fi
12958
12959 fi
12960
12961
12962
12963 if test "$HAVE_GIF" = yes; then
12964 LIBGIF=-lgif
12965 elif test "$HAVE_GIF" = maybe; then
12966 # If gif_lib.h but no libgif, try libungif.
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12968 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12969 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12970 $as_echo_n "(cached) " >&6
12971 else
12972 ac_check_lib_save_LIBS=$LIBS
12973 LIBS="-lungif $LIBS"
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12976
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char EGifPutExtensionLast ();
12984 int
12985 main ()
12986 {
12987 return EGifPutExtensionLast ();
12988 ;
12989 return 0;
12990 }
12991 _ACEOF
12992 if ac_fn_c_try_link "$LINENO"; then :
12993 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12994 else
12995 ac_cv_lib_ungif_EGifPutExtensionLast=no
12996 fi
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LIBS=$ac_check_lib_save_LIBS
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13002 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13003 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13004 HAVE_GIF=yes
13005 else
13006 HAVE_GIF=no
13007 fi
13008
13009 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13010 fi
13011
13012 if test "${HAVE_GIF}" = "yes"; then
13013
13014 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13015
13016 fi
13017 fi
13018
13019
13020 if test "${HAVE_X11}" = "yes"; then
13021 MISSING=""
13022 WITH_NO=""
13023 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13024 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13025 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13026 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13027 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13028 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13029 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13030 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13031 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13032 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13033
13034 if test "X${MISSING}" != X; then
13035 as_fn_error "The following required libraries were not found:
13036 $MISSING
13037 Maybe some development libraries/packages are missing?
13038 If you don't want to link with them give
13039 $WITH_NO
13040 as options to configure" "$LINENO" 5
13041 fi
13042 fi
13043
13044 ### Use -lgpm if available, unless `--with-gpm=no'.
13045 HAVE_GPM=no
13046 LIBGPM=
13047 if test "${with_gpm}" != "no"; then
13048 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13049 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13051 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13052 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13055 ac_check_lib_save_LIBS=$LIBS
13056 LIBS="-lgpm $LIBS"
13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13059
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13063 #ifdef __cplusplus
13064 extern "C"
13065 #endif
13066 char Gpm_Open ();
13067 int
13068 main ()
13069 {
13070 return Gpm_Open ();
13071 ;
13072 return 0;
13073 }
13074 _ACEOF
13075 if ac_fn_c_try_link "$LINENO"; then :
13076 ac_cv_lib_gpm_Gpm_Open=yes
13077 else
13078 ac_cv_lib_gpm_Gpm_Open=no
13079 fi
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext conftest.$ac_ext
13082 LIBS=$ac_check_lib_save_LIBS
13083 fi
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13085 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13086 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13087 HAVE_GPM=yes
13088 fi
13089
13090 fi
13091
13092
13093
13094 if test "${HAVE_GPM}" = "yes"; then
13095
13096 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13097
13098 LIBGPM=-lgpm
13099 fi
13100 fi
13101
13102
13103 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13104 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13105
13106 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13107
13108 fi
13109
13110
13111
13112 C_SWITCH_X_SYSTEM=
13113 ### Use NeXTstep API to implement GUI.
13114 if test "${HAVE_NS}" = "yes"; then
13115
13116 $as_echo "#define HAVE_NS 1" >>confdefs.h
13117
13118 if test "${NS_IMPL_COCOA}" = "yes"; then
13119
13120 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13121
13122 GNU_OBJC_CFLAGS=
13123 fi
13124 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13125
13126 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13127
13128 # See also .m.o rule in Makefile.in */
13129 # FIXME: are all these flags really needed? Document here why. */
13130 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
13131 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13132 fi
13133 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13134
13135 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13136
13137 fi
13138 # We also have mouse menus.
13139 HAVE_MENUS=yes
13140 OTHER_FILES=ns-app
13141 fi
13142
13143
13144 ### Use session management (-lSM -lICE) if available
13145 HAVE_X_SM=no
13146 LIBXSM=
13147 if test "${HAVE_X11}" = "yes"; then
13148 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13149 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13151 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13152 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 ac_check_lib_save_LIBS=$LIBS
13156 LIBS="-lSM -lICE $LIBS"
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13159
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 char SmcOpenConnection ();
13167 int
13168 main ()
13169 {
13170 return SmcOpenConnection ();
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 ac_cv_lib_SM_SmcOpenConnection=yes
13177 else
13178 ac_cv_lib_SM_SmcOpenConnection=no
13179 fi
13180 rm -f core conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13182 LIBS=$ac_check_lib_save_LIBS
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13185 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13186 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13187 HAVE_X_SM=yes
13188 fi
13189
13190 fi
13191
13192
13193
13194 if test "${HAVE_X_SM}" = "yes"; then
13195
13196 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13197
13198 LIBXSM="-lSM -lICE"
13199 case "$LIBS" in
13200 *-lSM*) ;;
13201 *) LIBS="$LIBXSM $LIBS" ;;
13202 esac
13203 fi
13204 fi
13205
13206
13207 ### Use libxml (-lxml2) if available
13208 if test "${with_xml2}" != "no"; then
13209 ### I'm not sure what the version number should be, so I just guessed.
13210
13211 succeeded=no
13212
13213 # Extract the first word of "pkg-config", so it can be a program name with args.
13214 set dummy pkg-config; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 case $PKG_CONFIG in
13221 [\\/]* | ?:[\\/]*)
13222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13223 ;;
13224 *)
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13227 do
13228 IFS=$as_save_IFS
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13234 break 2
13235 fi
13236 done
13237 done
13238 IFS=$as_save_IFS
13239
13240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13241 ;;
13242 esac
13243 fi
13244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13245 if test -n "$PKG_CONFIG"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13247 $as_echo "$PKG_CONFIG" >&6; }
13248 else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13251 fi
13252
13253
13254
13255 if test "$PKG_CONFIG" = "no" ; then
13256 HAVE_LIBXML2=no
13257 else
13258 PKG_CONFIG_MIN_VERSION=0.9.0
13259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13261 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13262
13263 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13265 $as_echo "yes" >&6; }
13266 succeeded=yes
13267
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13269 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13270 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13272 $as_echo "$LIBXML2_CFLAGS" >&6; }
13273
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13275 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13276 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13278 $as_echo "$LIBXML2_LIBS" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13282 LIBXML2_CFLAGS=""
13283 LIBXML2_LIBS=""
13284 ## If we have a custom action on failure, don't print errors, but
13285 ## do set a variable so people can do so.
13286 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13287
13288 fi
13289
13290
13291
13292 else
13293 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13294 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13295 fi
13296 fi
13297
13298 if test $succeeded = yes; then
13299 HAVE_LIBXML2=yes
13300 else
13301 HAVE_LIBXML2=no
13302 fi
13303
13304 if test "${HAVE_LIBXML2}" = "yes"; then
13305 LIBS="$LIBXML2_LIBS $LIBS"
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13307 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13308 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-lxml2 $LIBS"
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13319 #ifdef __cplusplus
13320 extern "C"
13321 #endif
13322 char htmlReadMemory ();
13323 int
13324 main ()
13325 {
13326 return htmlReadMemory ();
13327 ;
13328 return 0;
13329 }
13330 _ACEOF
13331 if ac_fn_c_try_link "$LINENO"; then :
13332 ac_cv_lib_xml2_htmlReadMemory=yes
13333 else
13334 ac_cv_lib_xml2_htmlReadMemory=no
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext conftest.$ac_ext
13338 LIBS=$ac_check_lib_save_LIBS
13339 fi
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13341 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13342 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13343 HAVE_LIBXML2=yes
13344 else
13345 HAVE_LIBXML2=no
13346 fi
13347
13348 if test "${HAVE_LIBXML2}" = "yes"; then
13349
13350 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13351
13352 else
13353 LIBXML2_LIBS=""
13354 LIBXML2_CFLAGS=""
13355 fi
13356 fi
13357 fi
13358
13359
13360
13361 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13363 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13364 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13365 $as_echo_n "(cached) " >&6
13366 else
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369 #include <netdb.h>
13370 int
13371 main ()
13372 {
13373 return h_errno;
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_link "$LINENO"; then :
13379 emacs_cv_netdb_declares_h_errno=yes
13380 else
13381 emacs_cv_netdb_declares_h_errno=no
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext \
13384 conftest$ac_exeext conftest.$ac_ext
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13387 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13388 if test $emacs_cv_netdb_declares_h_errno = yes; then
13389
13390 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13391
13392 fi
13393
13394 # fmod, logb, and frexp are found in -lm on most systems.
13395 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13397 $as_echo_n "checking for sqrt in -lm... " >&6; }
13398 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 ac_check_lib_save_LIBS=$LIBS
13402 LIBS="-lm $LIBS"
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404 /* end confdefs.h. */
13405
13406 /* Override any GCC internal prototype to avoid an error.
13407 Use char because int might match the return type of a GCC
13408 builtin and then its argument prototype would still apply. */
13409 #ifdef __cplusplus
13410 extern "C"
13411 #endif
13412 char sqrt ();
13413 int
13414 main ()
13415 {
13416 return sqrt ();
13417 ;
13418 return 0;
13419 }
13420 _ACEOF
13421 if ac_fn_c_try_link "$LINENO"; then :
13422 ac_cv_lib_m_sqrt=yes
13423 else
13424 ac_cv_lib_m_sqrt=no
13425 fi
13426 rm -f core conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
13428 LIBS=$ac_check_lib_save_LIBS
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13431 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13432 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13433 cat >>confdefs.h <<_ACEOF
13434 #define HAVE_LIBM 1
13435 _ACEOF
13436
13437 LIBS="-lm $LIBS"
13438
13439 fi
13440
13441
13442 # Check for mail-locking functions in a "mail" library. Probably this should
13443 # have the same check as for liblockfile below.
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13445 $as_echo_n "checking for maillock in -lmail... " >&6; }
13446 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 ac_check_lib_save_LIBS=$LIBS
13450 LIBS="-lmail $LIBS"
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13453
13454 /* Override any GCC internal prototype to avoid an error.
13455 Use char because int might match the return type of a GCC
13456 builtin and then its argument prototype would still apply. */
13457 #ifdef __cplusplus
13458 extern "C"
13459 #endif
13460 char maillock ();
13461 int
13462 main ()
13463 {
13464 return maillock ();
13465 ;
13466 return 0;
13467 }
13468 _ACEOF
13469 if ac_fn_c_try_link "$LINENO"; then :
13470 ac_cv_lib_mail_maillock=yes
13471 else
13472 ac_cv_lib_mail_maillock=no
13473 fi
13474 rm -f core conftest.err conftest.$ac_objext \
13475 conftest$ac_exeext conftest.$ac_ext
13476 LIBS=$ac_check_lib_save_LIBS
13477 fi
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13479 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13480 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13481 have_mail=yes
13482 else
13483 have_mail=no
13484 fi
13485
13486 if test $have_mail = yes; then
13487 LIBS_MAIL=-lmail
13488 LIBS="$LIBS_MAIL $LIBS"
13489
13490 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13491
13492 else
13493 LIBS_MAIL=
13494 fi
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13496 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13497 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
13499 else
13500 ac_check_lib_save_LIBS=$LIBS
13501 LIBS="-llockfile $LIBS"
13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13503 /* end confdefs.h. */
13504
13505 /* Override any GCC internal prototype to avoid an error.
13506 Use char because int might match the return type of a GCC
13507 builtin and then its argument prototype would still apply. */
13508 #ifdef __cplusplus
13509 extern "C"
13510 #endif
13511 char maillock ();
13512 int
13513 main ()
13514 {
13515 return maillock ();
13516 ;
13517 return 0;
13518 }
13519 _ACEOF
13520 if ac_fn_c_try_link "$LINENO"; then :
13521 ac_cv_lib_lockfile_maillock=yes
13522 else
13523 ac_cv_lib_lockfile_maillock=no
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13527 LIBS=$ac_check_lib_save_LIBS
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13530 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13531 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13532 have_lockfile=yes
13533 else
13534 have_lockfile=no
13535 fi
13536
13537 if test $have_lockfile = yes; then
13538 LIBS_MAIL=-llockfile
13539 LIBS="$LIBS_MAIL $LIBS"
13540
13541 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13542
13543 else
13544 # If we have the shared liblockfile, assume we must use it for mail
13545 # locking (e.g. Debian). If we couldn't link against liblockfile
13546 # (no liblockfile.a installed), ensure that we don't need to.
13547 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13548 set dummy liblockfile.so; ac_word=$2
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13550 $as_echo_n "checking for $ac_word... " >&6; }
13551 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13552 $as_echo_n "(cached) " >&6
13553 else
13554 if test -n "$liblockfile"; then
13555 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13556 else
13557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13559 for as_dir in $as_dummy
13560 do
13561 IFS=$as_save_IFS
13562 test -z "$as_dir" && as_dir=.
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13565 ac_cv_prog_liblockfile="yes"
13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567 break 2
13568 fi
13569 done
13570 done
13571 IFS=$as_save_IFS
13572
13573 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13574 fi
13575 fi
13576 liblockfile=$ac_cv_prog_liblockfile
13577 if test -n "$liblockfile"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13579 $as_echo "$liblockfile" >&6; }
13580 else
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13583 fi
13584
13585
13586 if test $ac_cv_prog_liblockfile = yes; then
13587 as_fn_error "Shared liblockfile found but can't link against it.
13588 This probably means that movemail could lose mail.
13589 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13590 fi
13591 fi
13592 for ac_func in touchlock
13593 do :
13594 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13595 if test "x$ac_cv_func_touchlock" = x""yes; then :
13596 cat >>confdefs.h <<_ACEOF
13597 #define HAVE_TOUCHLOCK 1
13598 _ACEOF
13599
13600 fi
13601 done
13602
13603 for ac_header in maillock.h
13604 do :
13605 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13606 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13607 cat >>confdefs.h <<_ACEOF
13608 #define HAVE_MAILLOCK_H 1
13609 _ACEOF
13610
13611 fi
13612
13613 done
13614
13615
13616
13617 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13618 ## interlock access to the mail spool. The alternative is a lock file named
13619 ## /usr/spool/mail/$USER.lock.
13620 mail_lock=no
13621 case "$opsys" in
13622 aix4-2) mail_lock="lockf" ;;
13623
13624 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13625
13626 ## On GNU/Linux systems, both methods are used by various mail programs.
13627 ## I assume most people are using newer mailers that have heard of flock.
13628 ## Change this if you need to.
13629 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13630 ## configure gets the right answers, and that means *NOT* using flock.
13631 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13632 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13633 ## Debian maintainer hasn't provided a clean fix for Emacs.
13634 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13635 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13636 ## correct logic. -- fx
13637 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13638 ## liblockfile is a Free Software replacement for libmail, used on
13639 ## Debian systems and elsewhere. -rfr.
13640 gnu-*)
13641 mail_lock="flock"
13642 if test $have_mail = yes || test $have_lockfile = yes; then
13643 test $ac_cv_header_maillock_h = yes && mail_lock=no
13644 fi
13645 ;;
13646 esac
13647
13648 BLESSMAIL_TARGET=
13649 case "$mail_lock" in
13650 flock)
13651 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13652 ;;
13653
13654 lockf)
13655 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13656 ;;
13657
13658 *) BLESSMAIL_TARGET="need-blessmail" ;;
13659 esac
13660
13661
13662
13663 for ac_func in gethostname getdomainname \
13664 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13665 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13666 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13667 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13668 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
13669 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13670 gai_strerror mkstemp getline getdelim mremap fsync sync \
13671 difftime mempcpy mblen mbrlen posix_memalign \
13672 cfmakeraw cfsetspeed isnan copysign __executable_start
13673 do :
13674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13675 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13676 eval as_val=\$$as_ac_var
13677 if test "x$as_val" = x""yes; then :
13678 cat >>confdefs.h <<_ACEOF
13679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13680 _ACEOF
13681
13682 fi
13683 done
13684
13685
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13687 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13688 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13689 $as_echo_n "(cached) " >&6
13690 else
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13693
13694 int
13695 main ()
13696 {
13697 __builtin_unwind_init ();
13698 ;
13699 return 0;
13700 }
13701 _ACEOF
13702 if ac_fn_c_try_link "$LINENO"; then :
13703 emacs_cv_func___builtin_unwind_init=yes
13704 else
13705 emacs_cv_func___builtin_unwind_init=no
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 fi
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13711 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13712 if test $emacs_cv_func___builtin_unwind_init = yes; then
13713
13714 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13715
13716 fi
13717
13718 for ac_header in sys/un.h
13719 do :
13720 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13721 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13722 cat >>confdefs.h <<_ACEOF
13723 #define HAVE_SYS_UN_H 1
13724 _ACEOF
13725
13726 fi
13727
13728 done
13729
13730
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13732 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13733 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13734 $as_echo_n "(cached) " >&6
13735 else
13736 while :; do
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739 #include <sys/types.h> /* for off_t */
13740 #include <stdio.h>
13741 int
13742 main ()
13743 {
13744 int (*fp) (FILE *, off_t, int) = fseeko;
13745 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13746 ;
13747 return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_link "$LINENO"; then :
13751 ac_cv_sys_largefile_source=no; break
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 #define _LARGEFILE_SOURCE 1
13758 #include <sys/types.h> /* for off_t */
13759 #include <stdio.h>
13760 int
13761 main ()
13762 {
13763 int (*fp) (FILE *, off_t, int) = fseeko;
13764 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13765 ;
13766 return 0;
13767 }
13768 _ACEOF
13769 if ac_fn_c_try_link "$LINENO"; then :
13770 ac_cv_sys_largefile_source=1; break
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13774 ac_cv_sys_largefile_source=unknown
13775 break
13776 done
13777 fi
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13779 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13780 case $ac_cv_sys_largefile_source in #(
13781 no | unknown) ;;
13782 *)
13783 cat >>confdefs.h <<_ACEOF
13784 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13785 _ACEOF
13786 ;;
13787 esac
13788 rm -rf conftest*
13789
13790 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13791 # in glibc 2.1.3, but that breaks too many other things.
13792 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13793 if test $ac_cv_sys_largefile_source != unknown; then
13794
13795 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13796
13797 fi
13798
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13801 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13802 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 # Use it with a single arg.
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808 $ac_includes_default
13809 int
13810 main ()
13811 {
13812 getpgrp (0);
13813 ;
13814 return 0;
13815 }
13816 _ACEOF
13817 if ac_fn_c_try_compile "$LINENO"; then :
13818 ac_cv_func_getpgrp_void=no
13819 else
13820 ac_cv_func_getpgrp_void=yes
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823
13824 fi
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13826 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13827 if test $ac_cv_func_getpgrp_void = yes; then
13828
13829 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13830
13831 fi
13832
13833
13834 # UNIX98 PTYs.
13835 for ac_func in grantpt
13836 do :
13837 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13838 if test "x$ac_cv_func_grantpt" = x""yes; then :
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_GRANTPT 1
13841 _ACEOF
13842
13843 fi
13844 done
13845
13846
13847 # PTY-related GNU extensions.
13848 for ac_func in getpt
13849 do :
13850 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13851 if test "x$ac_cv_func_getpt" = x""yes; then :
13852 cat >>confdefs.h <<_ACEOF
13853 #define HAVE_GETPT 1
13854 _ACEOF
13855
13856 fi
13857 done
13858
13859
13860 # Check this now, so that we will NOT find the above functions in ncurses.
13861 # That is because we have not set up to link ncurses in lib-src.
13862 # It's better to believe a function is not available
13863 # than to expect to find it in ncurses.
13864 # Also we need tputs and friends to be able to build at all.
13865 have_tputs_et_al=true
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13867 $as_echo_n "checking for library containing tputs... " >&6; }
13868 if test "${ac_cv_search_tputs+set}" = set; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871 ac_func_search_save_LIBS=$LIBS
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874
13875 /* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
13878 #ifdef __cplusplus
13879 extern "C"
13880 #endif
13881 char tputs ();
13882 int
13883 main ()
13884 {
13885 return tputs ();
13886 ;
13887 return 0;
13888 }
13889 _ACEOF
13890 for ac_lib in '' ncurses terminfo termcap; do
13891 if test -z "$ac_lib"; then
13892 ac_res="none required"
13893 else
13894 ac_res=-l$ac_lib
13895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13896 fi
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 ac_cv_search_tputs=$ac_res
13899 fi
13900 rm -f core conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext
13902 if test "${ac_cv_search_tputs+set}" = set; then :
13903 break
13904 fi
13905 done
13906 if test "${ac_cv_search_tputs+set}" = set; then :
13907
13908 else
13909 ac_cv_search_tputs=no
13910 fi
13911 rm conftest.$ac_ext
13912 LIBS=$ac_func_search_save_LIBS
13913 fi
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13915 $as_echo "$ac_cv_search_tputs" >&6; }
13916 ac_res=$ac_cv_search_tputs
13917 if test "$ac_res" != no; then :
13918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13919
13920 else
13921 have_tputs_et_al=false
13922 fi
13923
13924 if test "$have_tputs_et_al" != true; then
13925 as_fn_error "I couldn't find termcap functions (tputs and friends).
13926 Maybe some development libraries/packages are missing? Try installing
13927 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13928 fi
13929 # Must define this when any termcap library is found.
13930
13931 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13932
13933 ## FIXME This was the cpp logic, but I am not sure it is right.
13934 ## The above test has not necessarily found libncurses.
13935 HAVE_LIBNCURSES=yes
13936
13937 ## Use terminfo instead of termcap?
13938 ## Note only system files NOT using terminfo are:
13939 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13940 ## darwin|gnu without ncurses.
13941 TERMINFO=no
13942 LIBS_TERMCAP=
13943 case "$opsys" in
13944 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13945 ## hpux10-20: Use the system provided termcap(3) library.
13946 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13947 ## is necessary. Otherwise Emacs dumps core when run -nw.
13948 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13949
13950 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13951 ## The ncurses library has been moved out of the System framework in
13952 ## Mac OS X 10.2. So if configure detects it, set the command-line
13953 ## option to use it.
13954 darwin|gnu*)
13955 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13956 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13957 TERMINFO=yes
13958 LIBS_TERMCAP="-lncurses"
13959 fi
13960 ;;
13961
13962 freebsd)
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13964 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13965 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 #include <osreldate.h>
13971 int
13972 main ()
13973 {
13974 #if __FreeBSD_version < 400000
13975 fail;
13976 #endif
13977
13978 ;
13979 return 0;
13980 }
13981 _ACEOF
13982 if ac_fn_c_try_link "$LINENO"; then :
13983 emacs_cv_freebsd_terminfo=yes
13984 else
13985 emacs_cv_freebsd_terminfo=no
13986 fi
13987 rm -f core conftest.err conftest.$ac_objext \
13988 conftest$ac_exeext conftest.$ac_ext
13989 fi
13990
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13993 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13994
13995 if test $emacs_cv_freebsd_terminfo = yes; then
13996 TERMINFO=yes
13997 LIBS_TERMCAP="-lncurses"
13998 else
13999 LIBS_TERMCAP="-ltermcap"
14000 fi
14001 ;;
14002
14003 netbsd)
14004 if test $ac_cv_search_tputs = -lterminfo; then
14005 TERMINFO=yes
14006 LIBS_TERMCAP="-lterminfo"
14007 else
14008 LIBS_TERMCAP="-ltermcap"
14009 fi
14010 ;;
14011
14012 esac
14013
14014 case "$opsys" in
14015 ## hpux: Make sure we get select from libc rather than from libcurses
14016 ## because libcurses on HPUX 10.10 has a broken version of select.
14017 ## We used to use -lc -lcurses, but this may be cleaner.
14018 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14019
14020 openbsd) LIBS_TERMCAP="-lncurses" ;;
14021
14022 ## Must use system termcap, if we use any termcap. It does special things.
14023 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14024 esac
14025
14026 TERMCAP_OBJ=tparam.o
14027 if test $TERMINFO = yes; then
14028
14029 $as_echo "#define TERMINFO 1" >>confdefs.h
14030
14031
14032 ## Default used to be -ltermcap. Add a case above if need something else.
14033 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14034
14035 TERMCAP_OBJ=terminfo.o
14036 fi
14037
14038
14039
14040
14041 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14042 resolv=no
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045 #include <netinet/in.h>
14046 #include <arpa/nameser.h>
14047 #include <resolv.h>
14048 int
14049 main ()
14050 {
14051 return res_init();
14052 ;
14053 return 0;
14054 }
14055 _ACEOF
14056 if ac_fn_c_try_link "$LINENO"; then :
14057 have_res_init=yes
14058 else
14059 have_res_init=no
14060 fi
14061 rm -f core conftest.err conftest.$ac_objext \
14062 conftest$ac_exeext conftest.$ac_ext
14063 if test "$have_res_init" = no; then
14064 OLIBS="$LIBS"
14065 LIBS="$LIBS -lresolv"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14067 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 #include <netinet/in.h>
14071 #include <arpa/nameser.h>
14072 #include <resolv.h>
14073 int
14074 main ()
14075 {
14076 return res_init();
14077 ;
14078 return 0;
14079 }
14080 _ACEOF
14081 if ac_fn_c_try_link "$LINENO"; then :
14082 have_res_init=yes
14083 else
14084 have_res_init=no
14085 fi
14086 rm -f core conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14089 $as_echo "$have_res_init" >&6; }
14090 if test "$have_res_init" = yes ; then
14091 resolv=yes
14092 fi
14093 LIBS="$OLIBS"
14094 fi
14095
14096 if test "$have_res_init" = yes; then
14097
14098 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14099
14100 fi
14101
14102 # Do we need the Hesiod library to provide the support routines?
14103 LIBHESIOD=
14104 if test "$with_hesiod" != no ; then
14105 # Don't set $LIBS here -- see comments above. FIXME which comments?
14106 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14107 if test "x$ac_cv_func_res_send" = x""yes; then :
14108
14109 else
14110 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14111 if test "x$ac_cv_func___res_send" = x""yes; then :
14112
14113 else
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14115 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14116 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14117 $as_echo_n "(cached) " >&6
14118 else
14119 ac_check_lib_save_LIBS=$LIBS
14120 LIBS="-lresolv $LIBS"
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123
14124 /* Override any GCC internal prototype to avoid an error.
14125 Use char because int might match the return type of a GCC
14126 builtin and then its argument prototype would still apply. */
14127 #ifdef __cplusplus
14128 extern "C"
14129 #endif
14130 char res_send ();
14131 int
14132 main ()
14133 {
14134 return res_send ();
14135 ;
14136 return 0;
14137 }
14138 _ACEOF
14139 if ac_fn_c_try_link "$LINENO"; then :
14140 ac_cv_lib_resolv_res_send=yes
14141 else
14142 ac_cv_lib_resolv_res_send=no
14143 fi
14144 rm -f core conftest.err conftest.$ac_objext \
14145 conftest$ac_exeext conftest.$ac_ext
14146 LIBS=$ac_check_lib_save_LIBS
14147 fi
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14149 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14150 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14151 resolv=yes
14152 else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14154 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14155 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14158 ac_check_lib_save_LIBS=$LIBS
14159 LIBS="-lresolv $LIBS"
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162
14163 /* Override any GCC internal prototype to avoid an error.
14164 Use char because int might match the return type of a GCC
14165 builtin and then its argument prototype would still apply. */
14166 #ifdef __cplusplus
14167 extern "C"
14168 #endif
14169 char __res_send ();
14170 int
14171 main ()
14172 {
14173 return __res_send ();
14174 ;
14175 return 0;
14176 }
14177 _ACEOF
14178 if ac_fn_c_try_link "$LINENO"; then :
14179 ac_cv_lib_resolv___res_send=yes
14180 else
14181 ac_cv_lib_resolv___res_send=no
14182 fi
14183 rm -f core conftest.err conftest.$ac_objext \
14184 conftest$ac_exeext conftest.$ac_ext
14185 LIBS=$ac_check_lib_save_LIBS
14186 fi
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14188 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14189 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14190 resolv=yes
14191 fi
14192
14193 fi
14194
14195 fi
14196
14197 fi
14198
14199 if test "$resolv" = yes ; then
14200 RESOLVLIB=-lresolv
14201 else
14202 RESOLVLIB=
14203 fi
14204 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14205 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14206
14207 else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14209 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14210 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 ac_check_lib_save_LIBS=$LIBS
14214 LIBS="-lhesiod $RESOLVLIB $LIBS"
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217
14218 /* Override any GCC internal prototype to avoid an error.
14219 Use char because int might match the return type of a GCC
14220 builtin and then its argument prototype would still apply. */
14221 #ifdef __cplusplus
14222 extern "C"
14223 #endif
14224 char hes_getmailhost ();
14225 int
14226 main ()
14227 {
14228 return hes_getmailhost ();
14229 ;
14230 return 0;
14231 }
14232 _ACEOF
14233 if ac_fn_c_try_link "$LINENO"; then :
14234 ac_cv_lib_hesiod_hes_getmailhost=yes
14235 else
14236 ac_cv_lib_hesiod_hes_getmailhost=no
14237 fi
14238 rm -f core conftest.err conftest.$ac_objext \
14239 conftest$ac_exeext conftest.$ac_ext
14240 LIBS=$ac_check_lib_save_LIBS
14241 fi
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14243 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14244 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14245 hesiod=yes
14246 else
14247 :
14248 fi
14249
14250 fi
14251
14252
14253 if test x"$hesiod" = xyes; then
14254
14255 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14256
14257 LIBHESIOD=-lhesiod
14258 fi
14259 fi
14260
14261
14262 # Do we need libresolv (due to res_init or Hesiod)?
14263 if test "$resolv" = yes ; then
14264
14265 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14266
14267 LIBRESOLV=-lresolv
14268 else
14269 LIBRESOLV=
14270 fi
14271
14272
14273 # These tell us which Kerberos-related libraries to use.
14274 COM_ERRLIB=
14275 CRYPTOLIB=
14276 KRB5LIB=
14277 DESLIB=
14278 KRB4LIB=
14279
14280 if test "${with_kerberos}" != no; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14282 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14283 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 ac_check_lib_save_LIBS=$LIBS
14287 LIBS="-lcom_err $LIBS"
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290
14291 /* Override any GCC internal prototype to avoid an error.
14292 Use char because int might match the return type of a GCC
14293 builtin and then its argument prototype would still apply. */
14294 #ifdef __cplusplus
14295 extern "C"
14296 #endif
14297 char com_err ();
14298 int
14299 main ()
14300 {
14301 return com_err ();
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"; then :
14307 ac_cv_lib_com_err_com_err=yes
14308 else
14309 ac_cv_lib_com_err_com_err=no
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LIBS=$ac_check_lib_save_LIBS
14314 fi
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14316 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14317 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14318 have_com_err=yes
14319 else
14320 have_com_err=no
14321 fi
14322
14323 if test $have_com_err = yes; then
14324 COM_ERRLIB=-lcom_err
14325 LIBS="$COM_ERRLIB $LIBS"
14326
14327 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14328
14329 fi
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14331 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14332 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 ac_check_lib_save_LIBS=$LIBS
14336 LIBS="-lcrypto $LIBS"
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339
14340 /* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply. */
14343 #ifdef __cplusplus
14344 extern "C"
14345 #endif
14346 char mit_des_cbc_encrypt ();
14347 int
14348 main ()
14349 {
14350 return mit_des_cbc_encrypt ();
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_link "$LINENO"; then :
14356 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14357 else
14358 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext \
14361 conftest$ac_exeext conftest.$ac_ext
14362 LIBS=$ac_check_lib_save_LIBS
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14365 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14366 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14367 have_crypto=yes
14368 else
14369 have_crypto=no
14370 fi
14371
14372 if test $have_crypto = yes; then
14373 CRYPTOLIB=-lcrypto
14374 LIBS="$CRYPTOLIB $LIBS"
14375
14376 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14377
14378 fi
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14380 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14381 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 ac_check_lib_save_LIBS=$LIBS
14385 LIBS="-lk5crypto $LIBS"
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388
14389 /* Override any GCC internal prototype to avoid an error.
14390 Use char because int might match the return type of a GCC
14391 builtin and then its argument prototype would still apply. */
14392 #ifdef __cplusplus
14393 extern "C"
14394 #endif
14395 char mit_des_cbc_encrypt ();
14396 int
14397 main ()
14398 {
14399 return mit_des_cbc_encrypt ();
14400 ;
14401 return 0;
14402 }
14403 _ACEOF
14404 if ac_fn_c_try_link "$LINENO"; then :
14405 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14406 else
14407 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14408 fi
14409 rm -f core conftest.err conftest.$ac_objext \
14410 conftest$ac_exeext conftest.$ac_ext
14411 LIBS=$ac_check_lib_save_LIBS
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14414 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14415 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14416 have_k5crypto=yes
14417 else
14418 have_k5crypto=no
14419 fi
14420
14421 if test $have_k5crypto = yes; then
14422 CRYPTOLIB=-lk5crypto
14423 LIBS="$CRYPTOLIB $LIBS"
14424
14425 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14426
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14429 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14430 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433 ac_check_lib_save_LIBS=$LIBS
14434 LIBS="-lkrb5 $LIBS"
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h. */
14437
14438 /* Override any GCC internal prototype to avoid an error.
14439 Use char because int might match the return type of a GCC
14440 builtin and then its argument prototype would still apply. */
14441 #ifdef __cplusplus
14442 extern "C"
14443 #endif
14444 char krb5_init_context ();
14445 int
14446 main ()
14447 {
14448 return krb5_init_context ();
14449 ;
14450 return 0;
14451 }
14452 _ACEOF
14453 if ac_fn_c_try_link "$LINENO"; then :
14454 ac_cv_lib_krb5_krb5_init_context=yes
14455 else
14456 ac_cv_lib_krb5_krb5_init_context=no
14457 fi
14458 rm -f core conftest.err conftest.$ac_objext \
14459 conftest$ac_exeext conftest.$ac_ext
14460 LIBS=$ac_check_lib_save_LIBS
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14463 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14464 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14465 have_krb5=yes
14466 else
14467 have_krb5=no
14468 fi
14469
14470 if test $have_krb5=yes; then
14471 KRB5LIB=-lkrb5
14472 LIBS="$KRB5LIB $LIBS"
14473
14474 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14475
14476 fi
14477 if test "${with_kerberos5}" = no; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14479 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14480 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 ac_check_lib_save_LIBS=$LIBS
14484 LIBS="-ldes425 $LIBS"
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487
14488 /* Override any GCC internal prototype to avoid an error.
14489 Use char because int might match the return type of a GCC
14490 builtin and then its argument prototype would still apply. */
14491 #ifdef __cplusplus
14492 extern "C"
14493 #endif
14494 char des_cbc_encrypt ();
14495 int
14496 main ()
14497 {
14498 return des_cbc_encrypt ();
14499 ;
14500 return 0;
14501 }
14502 _ACEOF
14503 if ac_fn_c_try_link "$LINENO"; then :
14504 ac_cv_lib_des425_des_cbc_encrypt=yes
14505 else
14506 ac_cv_lib_des425_des_cbc_encrypt=no
14507 fi
14508 rm -f core conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
14510 LIBS=$ac_check_lib_save_LIBS
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14513 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14514 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14515 have_des425=yes
14516 else
14517 have_des425=no
14518 fi
14519
14520 if test $have_des425 = yes; then
14521 DESLIB=-ldes425
14522 LIBS="$DESLIB $LIBS"
14523
14524 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14525
14526 else
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14528 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14529 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14531 else
14532 ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-ldes $LIBS"
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14536
14537 /* Override any GCC internal prototype to avoid an error.
14538 Use char because int might match the return type of a GCC
14539 builtin and then its argument prototype would still apply. */
14540 #ifdef __cplusplus
14541 extern "C"
14542 #endif
14543 char des_cbc_encrypt ();
14544 int
14545 main ()
14546 {
14547 return des_cbc_encrypt ();
14548 ;
14549 return 0;
14550 }
14551 _ACEOF
14552 if ac_fn_c_try_link "$LINENO"; then :
14553 ac_cv_lib_des_des_cbc_encrypt=yes
14554 else
14555 ac_cv_lib_des_des_cbc_encrypt=no
14556 fi
14557 rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14559 LIBS=$ac_check_lib_save_LIBS
14560 fi
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14562 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14563 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14564 have_des=yes
14565 else
14566 have_des=no
14567 fi
14568
14569 if test $have_des = yes; then
14570 DESLIB=-ldes
14571 LIBS="$DESLIB $LIBS"
14572
14573 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14574
14575 fi
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14578 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14579 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-lkrb4 $LIBS"
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14586
14587 /* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14590 #ifdef __cplusplus
14591 extern "C"
14592 #endif
14593 char krb_get_cred ();
14594 int
14595 main ()
14596 {
14597 return krb_get_cred ();
14598 ;
14599 return 0;
14600 }
14601 _ACEOF
14602 if ac_fn_c_try_link "$LINENO"; then :
14603 ac_cv_lib_krb4_krb_get_cred=yes
14604 else
14605 ac_cv_lib_krb4_krb_get_cred=no
14606 fi
14607 rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14609 LIBS=$ac_check_lib_save_LIBS
14610 fi
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14612 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14613 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14614 have_krb4=yes
14615 else
14616 have_krb4=no
14617 fi
14618
14619 if test $have_krb4 = yes; then
14620 KRB4LIB=-lkrb4
14621 LIBS="$KRB4LIB $LIBS"
14622
14623 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14624
14625 else
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14627 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14628 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 ac_check_lib_save_LIBS=$LIBS
14632 LIBS="-lkrb $LIBS"
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14635
14636 /* Override any GCC internal prototype to avoid an error.
14637 Use char because int might match the return type of a GCC
14638 builtin and then its argument prototype would still apply. */
14639 #ifdef __cplusplus
14640 extern "C"
14641 #endif
14642 char krb_get_cred ();
14643 int
14644 main ()
14645 {
14646 return krb_get_cred ();
14647 ;
14648 return 0;
14649 }
14650 _ACEOF
14651 if ac_fn_c_try_link "$LINENO"; then :
14652 ac_cv_lib_krb_krb_get_cred=yes
14653 else
14654 ac_cv_lib_krb_krb_get_cred=no
14655 fi
14656 rm -f core conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext conftest.$ac_ext
14658 LIBS=$ac_check_lib_save_LIBS
14659 fi
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14661 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14662 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14663 have_krb=yes
14664 else
14665 have_krb=no
14666 fi
14667
14668 if test $have_krb = yes; then
14669 KRB4LIB=-lkrb
14670 LIBS="$KRB4LIB $LIBS"
14671
14672 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14673
14674 fi
14675 fi
14676 fi
14677
14678 if test "${with_kerberos5}" != no; then
14679 for ac_header in krb5.h
14680 do :
14681 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14682 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14683 cat >>confdefs.h <<_ACEOF
14684 #define HAVE_KRB5_H 1
14685 _ACEOF
14686 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14687 "
14688 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14689
14690 cat >>confdefs.h <<_ACEOF
14691 #define HAVE_KRB5_ERROR_TEXT 1
14692 _ACEOF
14693
14694
14695 fi
14696 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14697 "
14698 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14699
14700 cat >>confdefs.h <<_ACEOF
14701 #define HAVE_KRB5_ERROR_E_TEXT 1
14702 _ACEOF
14703
14704
14705 fi
14706
14707 fi
14708
14709 done
14710
14711 else
14712 for ac_header in des.h
14713 do :
14714 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14715 if test "x$ac_cv_header_des_h" = x""yes; then :
14716 cat >>confdefs.h <<_ACEOF
14717 #define HAVE_DES_H 1
14718 _ACEOF
14719
14720 else
14721 for ac_header in kerberosIV/des.h
14722 do :
14723 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14724 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14725 cat >>confdefs.h <<_ACEOF
14726 #define HAVE_KERBEROSIV_DES_H 1
14727 _ACEOF
14728
14729 else
14730 for ac_header in kerberos/des.h
14731 do :
14732 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14733 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_KERBEROS_DES_H 1
14736 _ACEOF
14737
14738 fi
14739
14740 done
14741
14742 fi
14743
14744 done
14745
14746 fi
14747
14748 done
14749
14750 for ac_header in krb.h
14751 do :
14752 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14753 if test "x$ac_cv_header_krb_h" = x""yes; then :
14754 cat >>confdefs.h <<_ACEOF
14755 #define HAVE_KRB_H 1
14756 _ACEOF
14757
14758 else
14759 for ac_header in kerberosIV/krb.h
14760 do :
14761 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14762 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_KERBEROSIV_KRB_H 1
14765 _ACEOF
14766
14767 else
14768 for ac_header in kerberos/krb.h
14769 do :
14770 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14771 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14772 cat >>confdefs.h <<_ACEOF
14773 #define HAVE_KERBEROS_KRB_H 1
14774 _ACEOF
14775
14776 fi
14777
14778 done
14779
14780 fi
14781
14782 done
14783
14784 fi
14785
14786 done
14787
14788 fi
14789 for ac_header in com_err.h
14790 do :
14791 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14792 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_COM_ERR_H 1
14795 _ACEOF
14796
14797 fi
14798
14799 done
14800
14801 fi
14802
14803
14804
14805
14806
14807
14808
14809 # Solaris requires -lintl if you want strerror (which calls dgettext)
14810 # to return localized messages.
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14812 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14813 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 ac_check_lib_save_LIBS=$LIBS
14817 LIBS="-lintl $LIBS"
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820
14821 /* Override any GCC internal prototype to avoid an error.
14822 Use char because int might match the return type of a GCC
14823 builtin and then its argument prototype would still apply. */
14824 #ifdef __cplusplus
14825 extern "C"
14826 #endif
14827 char dgettext ();
14828 int
14829 main ()
14830 {
14831 return dgettext ();
14832 ;
14833 return 0;
14834 }
14835 _ACEOF
14836 if ac_fn_c_try_link "$LINENO"; then :
14837 ac_cv_lib_intl_dgettext=yes
14838 else
14839 ac_cv_lib_intl_dgettext=no
14840 fi
14841 rm -f core conftest.err conftest.$ac_objext \
14842 conftest$ac_exeext conftest.$ac_ext
14843 LIBS=$ac_check_lib_save_LIBS
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14846 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14847 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
14848 cat >>confdefs.h <<_ACEOF
14849 #define HAVE_LIBINTL 1
14850 _ACEOF
14851
14852 LIBS="-lintl $LIBS"
14853
14854 fi
14855
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14858 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14859 if test "${emacs_cv_localtime_cache+set}" = set; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 if test x$ac_cv_func_tzset = xyes; then
14863 if test "$cross_compiling" = yes; then :
14864 # If we have tzset, assume the worst when cross-compiling.
14865 emacs_cv_localtime_cache=yes
14866 else
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14869 #include <time.h>
14870 char TZ_GMT0[] = "TZ=GMT0";
14871 char TZ_PST8[] = "TZ=PST8";
14872 main()
14873 {
14874 time_t now = time ((time_t *) 0);
14875 int hour_GMT0, hour_unset;
14876 if (putenv (TZ_GMT0) != 0)
14877 exit (1);
14878 hour_GMT0 = localtime (&now)->tm_hour;
14879 unsetenv("TZ");
14880 hour_unset = localtime (&now)->tm_hour;
14881 if (putenv (TZ_PST8) != 0)
14882 exit (1);
14883 if (localtime (&now)->tm_hour == hour_GMT0)
14884 exit (1);
14885 unsetenv("TZ");
14886 if (localtime (&now)->tm_hour != hour_unset)
14887 exit (1);
14888 exit (0);
14889 }
14890 _ACEOF
14891 if ac_fn_c_try_run "$LINENO"; then :
14892 emacs_cv_localtime_cache=no
14893 else
14894 emacs_cv_localtime_cache=yes
14895 fi
14896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14897 conftest.$ac_objext conftest.beam conftest.$ac_ext
14898 fi
14899
14900 else
14901 # If we lack tzset, report that localtime does not cache TZ,
14902 # since we can't invalidate the cache if we don't have tzset.
14903 emacs_cv_localtime_cache=no
14904 fi
14905 fi
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14907 $as_echo "$emacs_cv_localtime_cache" >&6; }
14908 if test $emacs_cv_localtime_cache = yes; then
14909
14910 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14911
14912 fi
14913
14914 if test "x$HAVE_TIMEVAL" = xyes; then
14915 for ac_func in gettimeofday
14916 do :
14917 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14918 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14919 cat >>confdefs.h <<_ACEOF
14920 #define HAVE_GETTIMEOFDAY 1
14921 _ACEOF
14922
14923 fi
14924 done
14925
14926 if test $ac_cv_func_gettimeofday = yes; then
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14928 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14929 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14934
14935 #ifdef TIME_WITH_SYS_TIME
14936 #include <sys/time.h>
14937 #include <time.h>
14938 #else
14939 #ifdef HAVE_SYS_TIME_H
14940 #include <sys/time.h>
14941 #else
14942 #include <time.h>
14943 #endif
14944 #endif
14945 int
14946 main ()
14947 {
14948 struct timeval time;
14949 gettimeofday (&time, 0);
14950 ;
14951 return 0;
14952 }
14953 _ACEOF
14954 if ac_fn_c_try_compile "$LINENO"; then :
14955 emacs_cv_gettimeofday_two_arguments=yes
14956 else
14957 emacs_cv_gettimeofday_two_arguments=no
14958 fi
14959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14960 fi
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14962 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14963 if test $emacs_cv_gettimeofday_two_arguments = no; then
14964
14965 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14966
14967 fi
14968 fi
14969 fi
14970
14971 ok_so_far=yes
14972 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14973 if test "x$ac_cv_func_socket" = x""yes; then :
14974
14975 else
14976 ok_so_far=no
14977 fi
14978
14979 if test $ok_so_far = yes; then
14980 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14981 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14982
14983 else
14984 ok_so_far=no
14985 fi
14986
14987
14988 fi
14989 if test $ok_so_far = yes; then
14990 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14991 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14992
14993 else
14994 ok_so_far=no
14995 fi
14996
14997
14998 fi
14999 if test $ok_so_far = yes; then
15000
15001 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15002
15003 fi
15004
15005 if test -f /usr/lpp/X11/bin/smt.exp; then
15006
15007 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15008
15009 fi
15010
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15012 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15013 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15015 $as_echo "yes" >&6; }
15016
15017 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15018
15019 else
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021 $as_echo "no" >&6; }
15022 fi
15023
15024 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15025 if test "x$ac_cv_type_pid_t" = x""yes; then :
15026
15027 else
15028
15029 cat >>confdefs.h <<_ACEOF
15030 #define pid_t int
15031 _ACEOF
15032
15033 fi
15034
15035 for ac_header in vfork.h
15036 do :
15037 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15038 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15039 cat >>confdefs.h <<_ACEOF
15040 #define HAVE_VFORK_H 1
15041 _ACEOF
15042
15043 fi
15044
15045 done
15046
15047 for ac_func in fork vfork
15048 do :
15049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15050 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15051 eval as_val=\$$as_ac_var
15052 if test "x$as_val" = x""yes; then :
15053 cat >>confdefs.h <<_ACEOF
15054 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15055 _ACEOF
15056
15057 fi
15058 done
15059
15060 if test "x$ac_cv_func_fork" = xyes; then
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15062 $as_echo_n "checking for working fork... " >&6; }
15063 if test "${ac_cv_func_fork_works+set}" = set; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 if test "$cross_compiling" = yes; then :
15067 ac_cv_func_fork_works=cross
15068 else
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071 $ac_includes_default
15072 int
15073 main ()
15074 {
15075
15076 /* By Ruediger Kuhlmann. */
15077 return fork () < 0;
15078
15079 ;
15080 return 0;
15081 }
15082 _ACEOF
15083 if ac_fn_c_try_run "$LINENO"; then :
15084 ac_cv_func_fork_works=yes
15085 else
15086 ac_cv_func_fork_works=no
15087 fi
15088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15089 conftest.$ac_objext conftest.beam conftest.$ac_ext
15090 fi
15091
15092 fi
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15094 $as_echo "$ac_cv_func_fork_works" >&6; }
15095
15096 else
15097 ac_cv_func_fork_works=$ac_cv_func_fork
15098 fi
15099 if test "x$ac_cv_func_fork_works" = xcross; then
15100 case $host in
15101 *-*-amigaos* | *-*-msdosdjgpp*)
15102 # Override, as these systems have only a dummy fork() stub
15103 ac_cv_func_fork_works=no
15104 ;;
15105 *)
15106 ac_cv_func_fork_works=yes
15107 ;;
15108 esac
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15110 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15111 fi
15112 ac_cv_func_vfork_works=$ac_cv_func_vfork
15113 if test "x$ac_cv_func_vfork" = xyes; then
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15115 $as_echo_n "checking for working vfork... " >&6; }
15116 if test "${ac_cv_func_vfork_works+set}" = set; then :
15117 $as_echo_n "(cached) " >&6
15118 else
15119 if test "$cross_compiling" = yes; then :
15120 ac_cv_func_vfork_works=cross
15121 else
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15124 /* Thanks to Paul Eggert for this test. */
15125 $ac_includes_default
15126 #include <sys/wait.h>
15127 #ifdef HAVE_VFORK_H
15128 # include <vfork.h>
15129 #endif
15130 /* On some sparc systems, changes by the child to local and incoming
15131 argument registers are propagated back to the parent. The compiler
15132 is told about this with #include <vfork.h>, but some compilers
15133 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15134 static variable whose address is put into a register that is
15135 clobbered by the vfork. */
15136 static void
15137 #ifdef __cplusplus
15138 sparc_address_test (int arg)
15139 # else
15140 sparc_address_test (arg) int arg;
15141 #endif
15142 {
15143 static pid_t child;
15144 if (!child) {
15145 child = vfork ();
15146 if (child < 0) {
15147 perror ("vfork");
15148 _exit(2);
15149 }
15150 if (!child) {
15151 arg = getpid();
15152 write(-1, "", 0);
15153 _exit (arg);
15154 }
15155 }
15156 }
15157
15158 int
15159 main ()
15160 {
15161 pid_t parent = getpid ();
15162 pid_t child;
15163
15164 sparc_address_test (0);
15165
15166 child = vfork ();
15167
15168 if (child == 0) {
15169 /* Here is another test for sparc vfork register problems. This
15170 test uses lots of local variables, at least as many local
15171 variables as main has allocated so far including compiler
15172 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15173 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15174 reuse the register of parent for one of the local variables,
15175 since it will think that parent can't possibly be used any more
15176 in this routine. Assigning to the local variable will thus
15177 munge parent in the parent process. */
15178 pid_t
15179 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15180 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15181 /* Convince the compiler that p..p7 are live; otherwise, it might
15182 use the same hardware register for all 8 local variables. */
15183 if (p != p1 || p != p2 || p != p3 || p != p4
15184 || p != p5 || p != p6 || p != p7)
15185 _exit(1);
15186
15187 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15188 from child file descriptors. If the child closes a descriptor
15189 before it execs or exits, this munges the parent's descriptor
15190 as well. Test for this by closing stdout in the child. */
15191 _exit(close(fileno(stdout)) != 0);
15192 } else {
15193 int status;
15194 struct stat st;
15195
15196 while (wait(&status) != child)
15197 ;
15198 return (
15199 /* Was there some problem with vforking? */
15200 child < 0
15201
15202 /* Did the child fail? (This shouldn't happen.) */
15203 || status
15204
15205 /* Did the vfork/compiler bug occur? */
15206 || parent != getpid()
15207
15208 /* Did the file descriptor bug occur? */
15209 || fstat(fileno(stdout), &st) != 0
15210 );
15211 }
15212 }
15213 _ACEOF
15214 if ac_fn_c_try_run "$LINENO"; then :
15215 ac_cv_func_vfork_works=yes
15216 else
15217 ac_cv_func_vfork_works=no
15218 fi
15219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15220 conftest.$ac_objext conftest.beam conftest.$ac_ext
15221 fi
15222
15223 fi
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15225 $as_echo "$ac_cv_func_vfork_works" >&6; }
15226
15227 fi;
15228 if test "x$ac_cv_func_fork_works" = xcross; then
15229 ac_cv_func_vfork_works=$ac_cv_func_vfork
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15231 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15232 fi
15233
15234 if test "x$ac_cv_func_vfork_works" = xyes; then
15235
15236 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15237
15238 else
15239
15240 $as_echo "#define vfork fork" >>confdefs.h
15241
15242 fi
15243 if test "x$ac_cv_func_fork_works" = xyes; then
15244
15245 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15246
15247 fi
15248
15249
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15251 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15252 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 #include <langinfo.h>
15258 int
15259 main ()
15260 {
15261 char* cs = nl_langinfo(CODESET);
15262 ;
15263 return 0;
15264 }
15265 _ACEOF
15266 if ac_fn_c_try_link "$LINENO"; then :
15267 emacs_cv_langinfo_codeset=yes
15268 else
15269 emacs_cv_langinfo_codeset=no
15270 fi
15271 rm -f core conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15273
15274 fi
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15276 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15277 if test $emacs_cv_langinfo_codeset = yes; then
15278
15279 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15280
15281 fi
15282
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15284 $as_echo_n "checking for mbstate_t... " >&6; }
15285 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 $ac_includes_default
15291 # include <wchar.h>
15292 int
15293 main ()
15294 {
15295 mbstate_t x; return sizeof x;
15296 ;
15297 return 0;
15298 }
15299 _ACEOF
15300 if ac_fn_c_try_compile "$LINENO"; then :
15301 ac_cv_type_mbstate_t=yes
15302 else
15303 ac_cv_type_mbstate_t=no
15304 fi
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 fi
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15308 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15309 if test $ac_cv_type_mbstate_t = yes; then
15310
15311 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15312
15313 else
15314
15315 $as_echo "#define mbstate_t int" >>confdefs.h
15316
15317 fi
15318
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15320 $as_echo_n "checking for C restricted array declarations... " >&6; }
15321 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15322 $as_echo_n "(cached) " >&6
15323 else
15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h. */
15326 void fred (int x[__restrict]);
15327 int
15328 main ()
15329 {
15330
15331 ;
15332 return 0;
15333 }
15334 _ACEOF
15335 if ac_fn_c_try_compile "$LINENO"; then :
15336 emacs_cv_c_restrict_arr=yes
15337 else
15338 emacs_cv_c_restrict_arr=no
15339 fi
15340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15341 fi
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15343 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15344 if test "$emacs_cv_c_restrict_arr" = yes; then
15345
15346 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15347
15348 fi
15349
15350
15351 # Set up the CFLAGS for real compilation, so we can substitute it.
15352 CFLAGS="$REAL_CFLAGS"
15353 CPPFLAGS="$REAL_CPPFLAGS"
15354
15355 ## Hack to detect a buggy GCC version.
15356 if test "x$GCC" = xyes \
15357 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15358 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15359 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15360 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15361 fi
15362
15363 version=$PACKAGE_VERSION
15364
15365 ### Specify what sort of things we'll be editing into Makefile and config.h.
15366 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15367
15368
15369 ## Unused?
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15391 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15392 ## end of LIBX_BASE, but nothing ever set it.
15393
15394
15395
15396
15397 ## Used in lwlib/Makefile.in.
15398
15399 if test -n "${machfile}"; then
15400 M_FILE="\$(srcdir)/${machfile}"
15401 else
15402 M_FILE=
15403 fi
15404 S_FILE="\$(srcdir)/${opsysfile}"
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415 cat >>confdefs.h <<_ACEOF
15416 #define EMACS_CONFIGURATION "${canonical}"
15417 _ACEOF
15418
15419
15420 cat >>confdefs.h <<_ACEOF
15421 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15422 _ACEOF
15423
15424 if test -n "$machfile"; then
15425
15426 cat >>confdefs.h <<_ACEOF
15427 #define config_machfile "${machfile}"
15428 _ACEOF
15429
15430 fi
15431
15432 cat >>confdefs.h <<_ACEOF
15433 #define config_opsysfile "${opsysfile}"
15434 _ACEOF
15435
15436
15437 XMENU_OBJ=
15438 XOBJ=
15439 FONT_OBJ=
15440 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15441
15442 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15443
15444 XMENU_OBJ=xmenu.o
15445 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15446 FONT_OBJ=xfont.o
15447 if test "$HAVE_XFT" = "yes"; then
15448 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15449 elif test "$HAVE_FREETYPE" = "yes"; then
15450 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15451 fi
15452
15453 fi
15454
15455
15456
15457
15458 WIDGET_OBJ=
15459 MOTIF_LIBW=
15460 if test "${USE_X_TOOLKIT}" != "none" ; then
15461 WIDGET_OBJ=widget.o
15462
15463 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15464
15465 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15466
15467 $as_echo "#define USE_LUCID 1" >>confdefs.h
15468
15469 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15470
15471 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15472
15473 MOTIF_LIBW=-lXm
15474 case "$opsys" in
15475 gnu-linux)
15476 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15477 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15478 ;;
15479
15480 unixware)
15481 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15482 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15483 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15484 ;;
15485
15486 aix4-2)
15487 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15488 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15489 ;;
15490 esac
15491 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15492 fi
15493 fi
15494
15495
15496 TOOLKIT_LIBW=
15497 case "$USE_X_TOOLKIT" in
15498 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15499 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15500 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15501 esac
15502
15503
15504 if test "$USE_X_TOOLKIT" = "none"; then
15505 LIBXT_OTHER="\$(LIBXSM)"
15506 OLDXMENU_TARGET="really-oldXMenu"
15507 else
15508 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15509 OLDXMENU_TARGET="really-lwlib"
15510 fi
15511
15512
15513 ## The X Menu stuff is present in the X10 distribution, but missing
15514 ## from X11. If we have X10, just use the installed library;
15515 ## otherwise, use our own copy.
15516 if test "${HAVE_X11}" = "yes" ; then
15517
15518 $as_echo "#define HAVE_X11 1" >>confdefs.h
15519
15520
15521 if test "$USE_X_TOOLKIT" = "none"; then
15522 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15523 else
15524 OLDXMENU="\${lwlibdir}/liblw.a"
15525 fi
15526 LIBXMENU="\$(OLDXMENU)"
15527 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15528 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15529 else
15530 ## For a syntactically valid Makefile; not actually used for anything.
15531 ## See comments in src/Makefile.in.
15532 OLDXMENU=nothing
15533 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15534 if test "${HAVE_X_WINDOWS}" = "yes"; then
15535 LIBXMENU="-lXMenu"
15536 else
15537 LIBXMENU=
15538 fi
15539 LIBX_OTHER=
15540 OLDXMENU_DEPS=
15541 fi
15542
15543 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15544 OLDXMENU_TARGET=
15545 OLDXMENU=nothing
15546 LIBXMENU=
15547 OLDXMENU_DEPS=
15548 fi
15549
15550
15551
15552
15553
15554
15555
15556 if test "${HAVE_MENUS}" = "yes" ; then
15557
15558 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15559
15560 fi
15561
15562 if test "${GNU_MALLOC}" = "yes" ; then
15563
15564 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15565
15566 fi
15567
15568 RALLOC_OBJ=
15569 if test "${REL_ALLOC}" = "yes" ; then
15570
15571 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15572
15573
15574 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15575 fi
15576
15577
15578 if test "$opsys" = "cygwin"; then
15579 CYGWIN_OBJ="sheap.o"
15580 ## Cygwin differs because of its unexec().
15581 PRE_ALLOC_OBJ=
15582 POST_ALLOC_OBJ=lastfile.o
15583 else
15584 CYGWIN_OBJ=
15585 PRE_ALLOC_OBJ=lastfile.o
15586 POST_ALLOC_OBJ=
15587 fi
15588
15589
15590
15591
15592 # Configure gnulib here, now that we know LIBS.
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603 LIBC_FATAL_STDERR_=1
15604 export LIBC_FATAL_STDERR_
15605
15606 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15607 # for constant arguments. Useless!
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15609 $as_echo_n "checking for working alloca.h... " >&6; }
15610 if test "${ac_cv_working_alloca_h+set}" = set; then :
15611 $as_echo_n "(cached) " >&6
15612 else
15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h. */
15615 #include <alloca.h>
15616 int
15617 main ()
15618 {
15619 char *p = (char *) alloca (2 * sizeof (int));
15620 if (p) return 0;
15621 ;
15622 return 0;
15623 }
15624 _ACEOF
15625 if ac_fn_c_try_link "$LINENO"; then :
15626 ac_cv_working_alloca_h=yes
15627 else
15628 ac_cv_working_alloca_h=no
15629 fi
15630 rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15632 fi
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15634 $as_echo "$ac_cv_working_alloca_h" >&6; }
15635 if test $ac_cv_working_alloca_h = yes; then
15636
15637 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15638
15639 fi
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15642 $as_echo_n "checking for alloca... " >&6; }
15643 if test "${ac_cv_func_alloca_works+set}" = set; then :
15644 $as_echo_n "(cached) " >&6
15645 else
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 #ifdef __GNUC__
15649 # define alloca __builtin_alloca
15650 #else
15651 # ifdef _MSC_VER
15652 # include <malloc.h>
15653 # define alloca _alloca
15654 # else
15655 # ifdef HAVE_ALLOCA_H
15656 # include <alloca.h>
15657 # else
15658 # ifdef _AIX
15659 #pragma alloca
15660 # else
15661 # ifndef alloca /* predefined by HP cc +Olibcalls */
15662 char *alloca ();
15663 # endif
15664 # endif
15665 # endif
15666 # endif
15667 #endif
15668
15669 int
15670 main ()
15671 {
15672 char *p = (char *) alloca (1);
15673 if (p) return 0;
15674 ;
15675 return 0;
15676 }
15677 _ACEOF
15678 if ac_fn_c_try_link "$LINENO"; then :
15679 ac_cv_func_alloca_works=yes
15680 else
15681 ac_cv_func_alloca_works=no
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
15685 fi
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15687 $as_echo "$ac_cv_func_alloca_works" >&6; }
15688
15689 if test $ac_cv_func_alloca_works = yes; then
15690
15691 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15692
15693 else
15694 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15695 # that cause trouble. Some versions do not even contain alloca or
15696 # contain a buggy version. If you still want to use their alloca,
15697 # use ar to extract alloca.o from them instead of compiling alloca.c.
15698
15699
15700
15701
15702
15703 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15704
15705 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15706
15707
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15709 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15710 if test "${ac_cv_os_cray+set}" = set; then :
15711 $as_echo_n "(cached) " >&6
15712 else
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15715 #if defined CRAY && ! defined CRAY2
15716 webecray
15717 #else
15718 wenotbecray
15719 #endif
15720
15721 _ACEOF
15722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15723 $EGREP "webecray" >/dev/null 2>&1; then :
15724 ac_cv_os_cray=yes
15725 else
15726 ac_cv_os_cray=no
15727 fi
15728 rm -f conftest*
15729
15730 fi
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15732 $as_echo "$ac_cv_os_cray" >&6; }
15733 if test $ac_cv_os_cray = yes; then
15734 for ac_func in _getb67 GETB67 getb67; do
15735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15737 eval as_val=\$$as_ac_var
15738 if test "x$as_val" = x""yes; then :
15739
15740 cat >>confdefs.h <<_ACEOF
15741 #define CRAY_STACKSEG_END $ac_func
15742 _ACEOF
15743
15744 break
15745 fi
15746
15747 done
15748 fi
15749
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15751 $as_echo_n "checking stack direction for C alloca... " >&6; }
15752 if test "${ac_cv_c_stack_direction+set}" = set; then :
15753 $as_echo_n "(cached) " >&6
15754 else
15755 if test "$cross_compiling" = yes; then :
15756 ac_cv_c_stack_direction=0
15757 else
15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h. */
15760 $ac_includes_default
15761 int
15762 find_stack_direction (int *addr, int depth)
15763 {
15764 int dir, dummy = 0;
15765 if (! addr)
15766 addr = &dummy;
15767 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15768 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15769 return dir + dummy;
15770 }
15771
15772 int
15773 main (int argc, char **argv)
15774 {
15775 return find_stack_direction (0, argc + !argv + 20) < 0;
15776 }
15777 _ACEOF
15778 if ac_fn_c_try_run "$LINENO"; then :
15779 ac_cv_c_stack_direction=1
15780 else
15781 ac_cv_c_stack_direction=-1
15782 fi
15783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15784 conftest.$ac_objext conftest.beam conftest.$ac_ext
15785 fi
15786
15787 fi
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15789 $as_echo "$ac_cv_c_stack_direction" >&6; }
15790 cat >>confdefs.h <<_ACEOF
15791 #define STACK_DIRECTION $ac_cv_c_stack_direction
15792 _ACEOF
15793
15794
15795 fi
15796
15797
15798
15799
15800 for ac_func in $ac_func_list
15801 do :
15802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15804 eval as_val=\$$as_ac_var
15805 if test "x$as_val" = x""yes; then :
15806 cat >>confdefs.h <<_ACEOF
15807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15808 _ACEOF
15809
15810 fi
15811 done
15812
15813
15814
15815
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15817 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15818 if test "${ac_cv_c_bigendian+set}" = set; then :
15819 $as_echo_n "(cached) " >&6
15820 else
15821 ac_cv_c_bigendian=unknown
15822 # See if we're dealing with a universal compiler.
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825 #ifndef __APPLE_CC__
15826 not a universal capable compiler
15827 #endif
15828 typedef int dummy;
15829
15830 _ACEOF
15831 if ac_fn_c_try_compile "$LINENO"; then :
15832
15833 # Check for potential -arch flags. It is not universal unless
15834 # there are at least two -arch flags with different values.
15835 ac_arch=
15836 ac_prev=
15837 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15838 if test -n "$ac_prev"; then
15839 case $ac_word in
15840 i?86 | x86_64 | ppc | ppc64)
15841 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15842 ac_arch=$ac_word
15843 else
15844 ac_cv_c_bigendian=universal
15845 break
15846 fi
15847 ;;
15848 esac
15849 ac_prev=
15850 elif test "x$ac_word" = "x-arch"; then
15851 ac_prev=arch
15852 fi
15853 done
15854 fi
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 if test $ac_cv_c_bigendian = unknown; then
15857 # See if sys/param.h defines the BYTE_ORDER macro.
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h. */
15860 #include <sys/types.h>
15861 #include <sys/param.h>
15862
15863 int
15864 main ()
15865 {
15866 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15867 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15868 && LITTLE_ENDIAN)
15869 bogus endian macros
15870 #endif
15871
15872 ;
15873 return 0;
15874 }
15875 _ACEOF
15876 if ac_fn_c_try_compile "$LINENO"; then :
15877 # It does; now see whether it defined to BIG_ENDIAN or not.
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 #include <sys/types.h>
15881 #include <sys/param.h>
15882
15883 int
15884 main ()
15885 {
15886 #if BYTE_ORDER != BIG_ENDIAN
15887 not big endian
15888 #endif
15889
15890 ;
15891 return 0;
15892 }
15893 _ACEOF
15894 if ac_fn_c_try_compile "$LINENO"; then :
15895 ac_cv_c_bigendian=yes
15896 else
15897 ac_cv_c_bigendian=no
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903 if test $ac_cv_c_bigendian = unknown; then
15904 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907 #include <limits.h>
15908
15909 int
15910 main ()
15911 {
15912 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15913 bogus endian macros
15914 #endif
15915
15916 ;
15917 return 0;
15918 }
15919 _ACEOF
15920 if ac_fn_c_try_compile "$LINENO"; then :
15921 # It does; now see whether it defined to _BIG_ENDIAN or not.
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15924 #include <limits.h>
15925
15926 int
15927 main ()
15928 {
15929 #ifndef _BIG_ENDIAN
15930 not big endian
15931 #endif
15932
15933 ;
15934 return 0;
15935 }
15936 _ACEOF
15937 if ac_fn_c_try_compile "$LINENO"; then :
15938 ac_cv_c_bigendian=yes
15939 else
15940 ac_cv_c_bigendian=no
15941 fi
15942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943 fi
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 fi
15946 if test $ac_cv_c_bigendian = unknown; then
15947 # Compile a test program.
15948 if test "$cross_compiling" = yes; then :
15949 # Try to guess by grepping values from an object file.
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952 short int ascii_mm[] =
15953 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15954 short int ascii_ii[] =
15955 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15956 int use_ascii (int i) {
15957 return ascii_mm[i] + ascii_ii[i];
15958 }
15959 short int ebcdic_ii[] =
15960 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15961 short int ebcdic_mm[] =
15962 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15963 int use_ebcdic (int i) {
15964 return ebcdic_mm[i] + ebcdic_ii[i];
15965 }
15966 extern int foo;
15967
15968 int
15969 main ()
15970 {
15971 return use_ascii (foo) == use_ebcdic (foo);
15972 ;
15973 return 0;
15974 }
15975 _ACEOF
15976 if ac_fn_c_try_compile "$LINENO"; then :
15977 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15978 ac_cv_c_bigendian=yes
15979 fi
15980 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15981 if test "$ac_cv_c_bigendian" = unknown; then
15982 ac_cv_c_bigendian=no
15983 else
15984 # finding both strings is unlikely to happen, but who knows?
15985 ac_cv_c_bigendian=unknown
15986 fi
15987 fi
15988 fi
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 else
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993 $ac_includes_default
15994 int
15995 main ()
15996 {
15997
15998 /* Are we little or big endian? From Harbison&Steele. */
15999 union
16000 {
16001 long int l;
16002 char c[sizeof (long int)];
16003 } u;
16004 u.l = 1;
16005 return u.c[sizeof (long int) - 1] == 1;
16006
16007 ;
16008 return 0;
16009 }
16010 _ACEOF
16011 if ac_fn_c_try_run "$LINENO"; then :
16012 ac_cv_c_bigendian=no
16013 else
16014 ac_cv_c_bigendian=yes
16015 fi
16016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16017 conftest.$ac_objext conftest.beam conftest.$ac_ext
16018 fi
16019
16020 fi
16021 fi
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16023 $as_echo "$ac_cv_c_bigendian" >&6; }
16024 case $ac_cv_c_bigendian in #(
16025 yes)
16026 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16027 ;; #(
16028 no)
16029 ;; #(
16030 universal)
16031
16032 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16033
16034 ;; #(
16035 *)
16036 as_fn_error "unknown endianness
16037 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16038 esac
16039
16040
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16042 $as_echo_n "checking for inline... " >&6; }
16043 if test "${ac_cv_c_inline+set}" = set; then :
16044 $as_echo_n "(cached) " >&6
16045 else
16046 ac_cv_c_inline=no
16047 for ac_kw in inline __inline__ __inline; do
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16050 #ifndef __cplusplus
16051 typedef int foo_t;
16052 static $ac_kw foo_t static_foo () {return 0; }
16053 $ac_kw foo_t foo () {return 0; }
16054 #endif
16055
16056 _ACEOF
16057 if ac_fn_c_try_compile "$LINENO"; then :
16058 ac_cv_c_inline=$ac_kw
16059 fi
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 test "$ac_cv_c_inline" != no && break
16062 done
16063
16064 fi
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16066 $as_echo "$ac_cv_c_inline" >&6; }
16067
16068 case $ac_cv_c_inline in
16069 inline | yes) ;;
16070 *)
16071 case $ac_cv_c_inline in
16072 no) ac_val=;;
16073 *) ac_val=$ac_cv_c_inline;;
16074 esac
16075 cat >>confdefs.h <<_ACEOF
16076 #ifndef __cplusplus
16077 #define inline $ac_val
16078 #endif
16079 _ACEOF
16080 ;;
16081 esac
16082
16083
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16085 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16086 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16087 $as_echo_n "(cached) " >&6
16088 else
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091 /* On HP-UX before 11.23, strtold returns a struct instead of
16092 long double. Reject implementations like that, by requiring
16093 compatibility with the C99 prototype. */
16094 #include <stdlib.h>
16095 static long double (*p) (char const *, char **) = strtold;
16096 static long double
16097 test (char const *nptr, char **endptr)
16098 {
16099 long double r;
16100 r = strtold (nptr, endptr);
16101 return r;
16102 }
16103 int
16104 main ()
16105 {
16106 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16107 ;
16108 return 0;
16109 }
16110 _ACEOF
16111 if ac_fn_c_try_link "$LINENO"; then :
16112 gl_cv_func_c99_strtold=yes
16113 else
16114 gl_cv_func_c99_strtold=no
16115 fi
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16118 fi
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16120 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16121 if test $gl_cv_func_c99_strtold = yes; then
16122
16123 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16124
16125 fi
16126
16127
16128 GNULIB_CHOWN=0;
16129 GNULIB_CLOSE=0;
16130 GNULIB_DUP2=0;
16131 GNULIB_DUP3=0;
16132 GNULIB_ENVIRON=0;
16133 GNULIB_EUIDACCESS=0;
16134 GNULIB_FACCESSAT=0;
16135 GNULIB_FCHDIR=0;
16136 GNULIB_FCHOWNAT=0;
16137 GNULIB_FSYNC=0;
16138 GNULIB_FTRUNCATE=0;
16139 GNULIB_GETCWD=0;
16140 GNULIB_GETDOMAINNAME=0;
16141 GNULIB_GETDTABLESIZE=0;
16142 GNULIB_GETGROUPS=0;
16143 GNULIB_GETHOSTNAME=0;
16144 GNULIB_GETLOGIN=0;
16145 GNULIB_GETLOGIN_R=0;
16146 GNULIB_GETPAGESIZE=0;
16147 GNULIB_GETUSERSHELL=0;
16148 GNULIB_GROUP_MEMBER=0;
16149 GNULIB_LCHOWN=0;
16150 GNULIB_LINK=0;
16151 GNULIB_LINKAT=0;
16152 GNULIB_LSEEK=0;
16153 GNULIB_PIPE=0;
16154 GNULIB_PIPE2=0;
16155 GNULIB_PREAD=0;
16156 GNULIB_PWRITE=0;
16157 GNULIB_READ=0;
16158 GNULIB_READLINK=0;
16159 GNULIB_READLINKAT=0;
16160 GNULIB_RMDIR=0;
16161 GNULIB_SLEEP=0;
16162 GNULIB_SYMLINK=0;
16163 GNULIB_SYMLINKAT=0;
16164 GNULIB_TTYNAME_R=0;
16165 GNULIB_UNISTD_H_GETOPT=0;
16166 GNULIB_UNISTD_H_NONBLOCKING=0;
16167 GNULIB_UNISTD_H_SIGPIPE=0;
16168 GNULIB_UNLINK=0;
16169 GNULIB_UNLINKAT=0;
16170 GNULIB_USLEEP=0;
16171 GNULIB_WRITE=0;
16172 HAVE_CHOWN=1;
16173 HAVE_DUP2=1;
16174 HAVE_DUP3=1;
16175 HAVE_EUIDACCESS=1;
16176 HAVE_FACCESSAT=1;
16177 HAVE_FCHDIR=1;
16178 HAVE_FCHOWNAT=1;
16179 HAVE_FSYNC=1;
16180 HAVE_FTRUNCATE=1;
16181 HAVE_GETDTABLESIZE=1;
16182 HAVE_GETGROUPS=1;
16183 HAVE_GETHOSTNAME=1;
16184 HAVE_GETLOGIN=1;
16185 HAVE_GETPAGESIZE=1;
16186 HAVE_GROUP_MEMBER=1;
16187 HAVE_LCHOWN=1;
16188 HAVE_LINK=1;
16189 HAVE_LINKAT=1;
16190 HAVE_PIPE=1;
16191 HAVE_PIPE2=1;
16192 HAVE_PREAD=1;
16193 HAVE_PWRITE=1;
16194 HAVE_READLINK=1;
16195 HAVE_READLINKAT=1;
16196 HAVE_SLEEP=1;
16197 HAVE_SYMLINK=1;
16198 HAVE_SYMLINKAT=1;
16199 HAVE_UNLINKAT=1;
16200 HAVE_USLEEP=1;
16201 HAVE_DECL_ENVIRON=1;
16202 HAVE_DECL_FCHDIR=1;
16203 HAVE_DECL_GETDOMAINNAME=1;
16204 HAVE_DECL_GETLOGIN_R=1;
16205 HAVE_DECL_GETPAGESIZE=1;
16206 HAVE_DECL_GETUSERSHELL=1;
16207 HAVE_DECL_TTYNAME_R=1;
16208 HAVE_OS_H=0;
16209 HAVE_SYS_PARAM_H=0;
16210 REPLACE_CHOWN=0;
16211 REPLACE_CLOSE=0;
16212 REPLACE_DUP=0;
16213 REPLACE_DUP2=0;
16214 REPLACE_FCHOWNAT=0;
16215 REPLACE_GETCWD=0;
16216 REPLACE_GETDOMAINNAME=0;
16217 REPLACE_GETLOGIN_R=0;
16218 REPLACE_GETGROUPS=0;
16219 REPLACE_GETPAGESIZE=0;
16220 REPLACE_LCHOWN=0;
16221 REPLACE_LINK=0;
16222 REPLACE_LINKAT=0;
16223 REPLACE_LSEEK=0;
16224 REPLACE_PREAD=0;
16225 REPLACE_PWRITE=0;
16226 REPLACE_READ=0;
16227 REPLACE_READLINK=0;
16228 REPLACE_RMDIR=0;
16229 REPLACE_SLEEP=0;
16230 REPLACE_SYMLINK=0;
16231 REPLACE_TTYNAME_R=0;
16232 REPLACE_UNLINK=0;
16233 REPLACE_UNLINKAT=0;
16234 REPLACE_USLEEP=0;
16235 REPLACE_WRITE=0;
16236 UNISTD_H_HAVE_WINSOCK2_H=0;
16237 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16238
16239
16240
16241
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16243 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16244 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16245 $as_echo_n "(cached) " >&6
16246 else
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249
16250 #include <sys/types.h>
16251 #include <sys/stat.h>
16252 int
16253 main ()
16254 {
16255 struct stat s; s.st_dm_mode;
16256 ;
16257 return 0;
16258 }
16259 _ACEOF
16260 if ac_fn_c_try_compile "$LINENO"; then :
16261 ac_cv_struct_st_dm_mode=yes
16262 else
16263 ac_cv_struct_st_dm_mode=no
16264 fi
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 fi
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16268 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16269
16270 if test $ac_cv_struct_st_dm_mode = yes; then
16271
16272 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16273
16274 fi
16275
16276
16277 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16278 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16279 ac_have_decl=1
16280 else
16281 ac_have_decl=0
16282 fi
16283
16284 cat >>confdefs.h <<_ACEOF
16285 #define HAVE_DECL_STRMODE $ac_have_decl
16286 _ACEOF
16287
16288
16289 GNULIB__EXIT=0;
16290 GNULIB_ATOLL=0;
16291 GNULIB_CALLOC_POSIX=0;
16292 GNULIB_CANONICALIZE_FILE_NAME=0;
16293 GNULIB_GETLOADAVG=0;
16294 GNULIB_GETSUBOPT=0;
16295 GNULIB_GRANTPT=0;
16296 GNULIB_MALLOC_POSIX=0;
16297 GNULIB_MBTOWC=0;
16298 GNULIB_MKDTEMP=0;
16299 GNULIB_MKOSTEMP=0;
16300 GNULIB_MKOSTEMPS=0;
16301 GNULIB_MKSTEMP=0;
16302 GNULIB_MKSTEMPS=0;
16303 GNULIB_PTSNAME=0;
16304 GNULIB_PUTENV=0;
16305 GNULIB_RANDOM_R=0;
16306 GNULIB_REALLOC_POSIX=0;
16307 GNULIB_REALPATH=0;
16308 GNULIB_RPMATCH=0;
16309 GNULIB_SETENV=0;
16310 GNULIB_STRTOD=0;
16311 GNULIB_STRTOLL=0;
16312 GNULIB_STRTOULL=0;
16313 GNULIB_SYSTEM_POSIX=0;
16314 GNULIB_UNLOCKPT=0;
16315 GNULIB_UNSETENV=0;
16316 GNULIB_WCTOMB=0;
16317 HAVE__EXIT=1;
16318 HAVE_ATOLL=1;
16319 HAVE_CANONICALIZE_FILE_NAME=1;
16320 HAVE_DECL_GETLOADAVG=1;
16321 HAVE_GETSUBOPT=1;
16322 HAVE_GRANTPT=1;
16323 HAVE_MKDTEMP=1;
16324 HAVE_MKOSTEMP=1;
16325 HAVE_MKOSTEMPS=1;
16326 HAVE_MKSTEMP=1;
16327 HAVE_MKSTEMPS=1;
16328 HAVE_PTSNAME=1;
16329 HAVE_RANDOM_H=1;
16330 HAVE_RANDOM_R=1;
16331 HAVE_REALPATH=1;
16332 HAVE_RPMATCH=1;
16333 HAVE_SETENV=1;
16334 HAVE_DECL_SETENV=1;
16335 HAVE_STRTOD=1;
16336 HAVE_STRTOLL=1;
16337 HAVE_STRTOULL=1;
16338 HAVE_STRUCT_RANDOM_DATA=1;
16339 HAVE_SYS_LOADAVG_H=0;
16340 HAVE_UNLOCKPT=1;
16341 HAVE_DECL_UNSETENV=1;
16342 REPLACE_CALLOC=0;
16343 REPLACE_CANONICALIZE_FILE_NAME=0;
16344 REPLACE_MALLOC=0;
16345 REPLACE_MBTOWC=0;
16346 REPLACE_MKSTEMP=0;
16347 REPLACE_PUTENV=0;
16348 REPLACE_REALLOC=0;
16349 REPLACE_REALPATH=0;
16350 REPLACE_SETENV=0;
16351 REPLACE_STRTOD=0;
16352 REPLACE_UNSETENV=0;
16353 REPLACE_WCTOMB=0;
16354
16355
16356
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16358 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16359 if test "${gl_cv_have_include_next+set}" = set; then :
16360 $as_echo_n "(cached) " >&6
16361 else
16362 rm -rf conftestd1a conftestd1b conftestd2
16363 mkdir conftestd1a conftestd1b conftestd2
16364 cat <<EOF > conftestd1a/conftest.h
16365 #define DEFINED_IN_CONFTESTD1
16366 #include_next <conftest.h>
16367 #ifdef DEFINED_IN_CONFTESTD2
16368 int foo;
16369 #else
16370 #error "include_next doesn't work"
16371 #endif
16372 EOF
16373 cat <<EOF > conftestd1b/conftest.h
16374 #define DEFINED_IN_CONFTESTD1
16375 #include <stdio.h>
16376 #include_next <conftest.h>
16377 #ifdef DEFINED_IN_CONFTESTD2
16378 int foo;
16379 #else
16380 #error "include_next doesn't work"
16381 #endif
16382 EOF
16383 cat <<EOF > conftestd2/conftest.h
16384 #ifndef DEFINED_IN_CONFTESTD1
16385 #error "include_next test doesn't work"
16386 #endif
16387 #define DEFINED_IN_CONFTESTD2
16388 EOF
16389 gl_save_CPPFLAGS="$CPPFLAGS"
16390 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 #include <conftest.h>
16394 _ACEOF
16395 if ac_fn_c_try_compile "$LINENO"; then :
16396 gl_cv_have_include_next=yes
16397 else
16398 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400 /* end confdefs.h. */
16401 #include <conftest.h>
16402 _ACEOF
16403 if ac_fn_c_try_compile "$LINENO"; then :
16404 gl_cv_have_include_next=buggy
16405 else
16406 gl_cv_have_include_next=no
16407 fi
16408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409
16410 fi
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 CPPFLAGS="$gl_save_CPPFLAGS"
16413 rm -rf conftestd1a conftestd1b conftestd2
16414
16415 fi
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16417 $as_echo "$gl_cv_have_include_next" >&6; }
16418 PRAGMA_SYSTEM_HEADER=
16419 if test $gl_cv_have_include_next = yes; then
16420 INCLUDE_NEXT=include_next
16421 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16422 if test -n "$GCC"; then
16423 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16424 fi
16425 else
16426 if test $gl_cv_have_include_next = buggy; then
16427 INCLUDE_NEXT=include
16428 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16429 else
16430 INCLUDE_NEXT=include
16431 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16432 fi
16433 fi
16434
16435
16436
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16438 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16439 if test "${gl_cv_pragma_columns+set}" = set; then :
16440 $as_echo_n "(cached) " >&6
16441 else
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16444
16445 #ifdef __TANDEM
16446 choke me
16447 #endif
16448
16449 _ACEOF
16450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16451 $EGREP "choke me" >/dev/null 2>&1; then :
16452 gl_cv_pragma_columns=yes
16453 else
16454 gl_cv_pragma_columns=no
16455 fi
16456 rm -f conftest*
16457
16458
16459 fi
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16461 $as_echo "$gl_cv_pragma_columns" >&6; }
16462 if test $gl_cv_pragma_columns = yes; then
16463 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16464 else
16465 PRAGMA_COLUMNS=
16466 fi
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484 if test $gl_cv_have_include_next = yes; then
16485 gl_cv_next_getopt_h='<'getopt.h'>'
16486 else
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16488 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16489 if test "${gl_cv_next_getopt_h+set}" = set; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492
16493 if test $ac_cv_header_getopt_h = yes; then
16494
16495
16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16498 #include <getopt.h>
16499
16500 _ACEOF
16501 case "$host_os" in
16502 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16503 *) gl_absname_cpp="$ac_cpp" ;;
16504 esac
16505 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16506 sed -n '\#/getopt.h#{
16507 s#.*"\(.*/getopt.h\)".*#\1#
16508 s#^/[^/]#//&#
16509 p
16510 q
16511 }'`'"'
16512 else
16513 gl_cv_next_getopt_h='<'getopt.h'>'
16514 fi
16515
16516
16517 fi
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16519 $as_echo "$gl_cv_next_getopt_h" >&6; }
16520 fi
16521 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16522
16523 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16524 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16525 gl_next_as_first_directive='<'getopt.h'>'
16526 else
16527 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16528 gl_next_as_first_directive=$gl_cv_next_getopt_h
16529 fi
16530 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16531
16532
16533
16534
16535 if test $ac_cv_header_getopt_h = yes; then
16536 HAVE_GETOPT_H=1
16537 else
16538 HAVE_GETOPT_H=0
16539 fi
16540
16541
16542 gl_replace_getopt=
16543
16544 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16545 for ac_header in getopt.h
16546 do :
16547 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16548 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16549 cat >>confdefs.h <<_ACEOF
16550 #define HAVE_GETOPT_H 1
16551 _ACEOF
16552
16553 else
16554 gl_replace_getopt=yes
16555 fi
16556
16557 done
16558
16559 fi
16560
16561 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16562 for ac_func in getopt_long_only
16563 do :
16564 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16565 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_GETOPT_LONG_ONLY 1
16568 _ACEOF
16569
16570 else
16571 gl_replace_getopt=yes
16572 fi
16573 done
16574
16575 fi
16576
16577 if test -z "$gl_replace_getopt"; then
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16579 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16580 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16586 #include <unistd.h>
16587 int
16588 main ()
16589 {
16590 int *p = &optreset; return optreset;
16591 ;
16592 return 0;
16593 }
16594 _ACEOF
16595 if ac_fn_c_try_link "$LINENO"; then :
16596 gl_optind_min=1
16597 else
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 #include <getopt.h>
16601 int
16602 main ()
16603 {
16604 return !getopt_clip;
16605 ;
16606 return 0;
16607 }
16608 _ACEOF
16609 if ac_fn_c_try_compile "$LINENO"; then :
16610 gl_optind_min=1
16611 else
16612 gl_optind_min=0
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 fi
16616 rm -f core conftest.err conftest.$ac_objext \
16617 conftest$ac_exeext conftest.$ac_ext
16618
16619 gl_save_CPPFLAGS=$CPPFLAGS
16620 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16621 if test "$cross_compiling" = yes; then :
16622 case "$host_os" in
16623 mingw*) gl_cv_func_getopt_posix="guessing no";;
16624 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
16625 *) gl_cv_func_getopt_posix="guessing yes";;
16626 esac
16627
16628 else
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631
16632 #include <unistd.h>
16633 #include <stdlib.h>
16634 #include <string.h>
16635
16636 int
16637 main ()
16638 {
16639 {
16640 static char program[] = "program";
16641 static char a[] = "-a";
16642 static char foo[] = "foo";
16643 static char bar[] = "bar";
16644 char *argv[] = { program, a, foo, bar, NULL };
16645 int c;
16646
16647 optind = OPTIND_MIN;
16648 opterr = 0;
16649
16650 c = getopt (4, argv, "ab");
16651 if (!(c == 'a'))
16652 return 1;
16653 c = getopt (4, argv, "ab");
16654 if (!(c == -1))
16655 return 2;
16656 if (!(optind == 2))
16657 return 3;
16658 }
16659 /* Some internal state exists at this point. */
16660 {
16661 static char program[] = "program";
16662 static char donald[] = "donald";
16663 static char p[] = "-p";
16664 static char billy[] = "billy";
16665 static char duck[] = "duck";
16666 static char a[] = "-a";
16667 static char bar[] = "bar";
16668 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16669 int c;
16670
16671 optind = OPTIND_MIN;
16672 opterr = 0;
16673
16674 c = getopt (7, argv, "+abp:q:");
16675 if (!(c == -1))
16676 return 4;
16677 if (!(strcmp (argv[0], "program") == 0))
16678 return 5;
16679 if (!(strcmp (argv[1], "donald") == 0))
16680 return 6;
16681 if (!(strcmp (argv[2], "-p") == 0))
16682 return 7;
16683 if (!(strcmp (argv[3], "billy") == 0))
16684 return 8;
16685 if (!(strcmp (argv[4], "duck") == 0))
16686 return 9;
16687 if (!(strcmp (argv[5], "-a") == 0))
16688 return 10;
16689 if (!(strcmp (argv[6], "bar") == 0))
16690 return 11;
16691 if (!(optind == 1))
16692 return 12;
16693 }
16694 /* Detect MacOS 10.5, AIX 7.1 bug. */
16695 {
16696 static char program[] = "program";
16697 static char ab[] = "-ab";
16698 char *argv[3] = { program, ab, NULL };
16699 optind = OPTIND_MIN;
16700 opterr = 0;
16701 if (getopt (2, argv, "ab:") != 'a')
16702 return 13;
16703 if (getopt (2, argv, "ab:") != '?')
16704 return 14;
16705 if (optopt != 'b')
16706 return 15;
16707 if (optind != 2)
16708 return 16;
16709 }
16710
16711 return 0;
16712 }
16713
16714 _ACEOF
16715 if ac_fn_c_try_run "$LINENO"; then :
16716 gl_cv_func_getopt_posix=yes
16717 else
16718 gl_cv_func_getopt_posix=no
16719 fi
16720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16721 conftest.$ac_objext conftest.beam conftest.$ac_ext
16722 fi
16723
16724 CPPFLAGS=$gl_save_CPPFLAGS
16725
16726 fi
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16728 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16729 case "$gl_cv_func_getopt_posix" in
16730 *no) gl_replace_getopt=yes ;;
16731 esac
16732 fi
16733
16734 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16736 $as_echo_n "checking for working GNU getopt function... " >&6; }
16737 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16738 $as_echo_n "(cached) " >&6
16739 else
16740 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16741 # optstring is necessary for programs like m4 that have POSIX-mandated
16742 # semantics for supporting options interspersed with files.
16743 # Also, since getopt_long is a GNU extension, we require optind=0.
16744 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16745 # so take care to revert to the correct (non-)export state.
16746 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16747 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16748 xx) gl_had_POSIXLY_CORRECT=exported ;;
16749 x) gl_had_POSIXLY_CORRECT=yes ;;
16750 *) gl_had_POSIXLY_CORRECT= ;;
16751 esac
16752 POSIXLY_CORRECT=1
16753 export POSIXLY_CORRECT
16754 if test "$cross_compiling" = yes; then :
16755 case $host_os:$ac_cv_have_decl_optreset in
16756 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16757 *:yes) gl_cv_func_getopt_gnu=no;;
16758 *) gl_cv_func_getopt_gnu=yes;;
16759 esac
16760
16761 else
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 #include <getopt.h>
16765 #include <stddef.h>
16766 #include <string.h>
16767
16768 int
16769 main ()
16770 {
16771
16772 int result = 0;
16773 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16774 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16775 OSF/1 5.1, Solaris 10. */
16776 {
16777 static char conftest[] = "conftest";
16778 static char plus[] = "-+";
16779 char *argv[3] = { conftest, plus, NULL };
16780 opterr = 0;
16781 if (getopt (2, argv, "+a") != '?')
16782 result |= 1;
16783 }
16784 /* This code succeeds on glibc 2.8, mingw,
16785 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16786 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16787 {
16788 static char program[] = "program";
16789 static char p[] = "-p";
16790 static char foo[] = "foo";
16791 static char bar[] = "bar";
16792 char *argv[] = { program, p, foo, bar, NULL };
16793
16794 optind = 1;
16795 if (getopt (4, argv, "p::") != 'p')
16796 result |= 2;
16797 else if (optarg != NULL)
16798 result |= 4;
16799 else if (getopt (4, argv, "p::") != -1)
16800 result |= 6;
16801 else if (optind != 2)
16802 result |= 8;
16803 }
16804 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16805 {
16806 static char program[] = "program";
16807 static char foo[] = "foo";
16808 static char p[] = "-p";
16809 char *argv[] = { program, foo, p, NULL };
16810 optind = 0;
16811 if (getopt (3, argv, "-p") != 1)
16812 result |= 16;
16813 else if (getopt (3, argv, "-p") != 'p')
16814 result |= 32;
16815 }
16816 /* This code fails on glibc 2.11. */
16817 {
16818 static char program[] = "program";
16819 static char b[] = "-b";
16820 static char a[] = "-a";
16821 char *argv[] = { program, b, a, NULL };
16822 optind = opterr = 0;
16823 if (getopt (3, argv, "+:a:b") != 'b')
16824 result |= 64;
16825 else if (getopt (3, argv, "+:a:b") != ':')
16826 result |= 64;
16827 }
16828 /* This code dumps core on glibc 2.14. */
16829 {
16830 static char program[] = "program";
16831 static char w[] = "-W";
16832 static char dummy[] = "dummy";
16833 char *argv[] = { program, w, dummy, NULL };
16834 optind = opterr = 1;
16835 if (getopt (3, argv, "W;") != 'W')
16836 result |= 128;
16837 }
16838 return result;
16839
16840 ;
16841 return 0;
16842 }
16843 _ACEOF
16844 if ac_fn_c_try_run "$LINENO"; then :
16845 gl_cv_func_getopt_gnu=yes
16846 else
16847 gl_cv_func_getopt_gnu=no
16848 fi
16849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16850 conftest.$ac_objext conftest.beam conftest.$ac_ext
16851 fi
16852
16853 case $gl_had_POSIXLY_CORRECT in
16854 exported) ;;
16855 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16856 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16857 esac
16858
16859 fi
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16861 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16862 if test "$gl_cv_func_getopt_gnu" = "no"; then
16863 gl_replace_getopt=yes
16864 fi
16865 fi
16866
16867
16868
16869
16870
16871 REPLACE_GETOPT=0
16872
16873
16874 if test -n "$gl_replace_getopt"; then :
16875
16876 REPLACE_GETOPT=1
16877
16878 fi
16879
16880
16881 if test $REPLACE_GETOPT = 1; then
16882
16883 GETOPT_H=getopt.h
16884
16885 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16886
16887
16888
16889 GNULIB_UNISTD_H_GETOPT=1
16890 fi
16891
16892 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16893 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16894 ac_have_decl=1
16895 else
16896 ac_have_decl=0
16897 fi
16898
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_DECL_GETENV $ac_have_decl
16901 _ACEOF
16902
16903
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16905 $as_echo_n "checking for unsigned long long int... " >&6; }
16906 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16907 $as_echo_n "(cached) " >&6
16908 else
16909 ac_cv_type_unsigned_long_long_int=yes
16910 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16913
16914 /* For now, do not test the preprocessor; as of 2007 there are too many
16915 implementations with broken preprocessors. Perhaps this can
16916 be revisited in 2012. In the meantime, code should not expect
16917 #if to work with literals wider than 32 bits. */
16918 /* Test literals. */
16919 long long int ll = 9223372036854775807ll;
16920 long long int nll = -9223372036854775807LL;
16921 unsigned long long int ull = 18446744073709551615ULL;
16922 /* Test constant expressions. */
16923 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16924 ? 1 : -1)];
16925 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16926 ? 1 : -1)];
16927 int i = 63;
16928 int
16929 main ()
16930 {
16931 /* Test availability of runtime routines for shift and division. */
16932 long long int llmax = 9223372036854775807ll;
16933 unsigned long long int ullmax = 18446744073709551615ull;
16934 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16935 | (llmax / ll) | (llmax % ll)
16936 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16937 | (ullmax / ull) | (ullmax % ull));
16938 ;
16939 return 0;
16940 }
16941
16942 _ACEOF
16943 if ac_fn_c_try_link "$LINENO"; then :
16944
16945 else
16946 ac_cv_type_unsigned_long_long_int=no
16947 fi
16948 rm -f core conftest.err conftest.$ac_objext \
16949 conftest$ac_exeext conftest.$ac_ext
16950 fi
16951 fi
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16953 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16954 if test $ac_cv_type_unsigned_long_long_int = yes; then
16955
16956 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16957
16958 fi
16959
16960
16961
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16963 $as_echo_n "checking for long long int... " >&6; }
16964 if test "${ac_cv_type_long_long_int+set}" = set; then :
16965 $as_echo_n "(cached) " >&6
16966 else
16967 ac_cv_type_long_long_int=yes
16968 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16969 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16970 if test $ac_cv_type_long_long_int = yes; then
16971 if test "$cross_compiling" = yes; then :
16972 :
16973 else
16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16976 #include <limits.h>
16977 #ifndef LLONG_MAX
16978 # define HALF \
16979 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16980 # define LLONG_MAX (HALF - 1 + HALF)
16981 #endif
16982 int
16983 main ()
16984 {
16985 long long int n = 1;
16986 int i;
16987 for (i = 0; ; i++)
16988 {
16989 long long int m = n << i;
16990 if (m >> i != n)
16991 return 1;
16992 if (LLONG_MAX / 2 < m)
16993 break;
16994 }
16995 return 0;
16996 ;
16997 return 0;
16998 }
16999 _ACEOF
17000 if ac_fn_c_try_run "$LINENO"; then :
17001
17002 else
17003 ac_cv_type_long_long_int=no
17004 fi
17005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17006 conftest.$ac_objext conftest.beam conftest.$ac_ext
17007 fi
17008
17009 fi
17010 fi
17011 fi
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17013 $as_echo "$ac_cv_type_long_long_int" >&6; }
17014 if test $ac_cv_type_long_long_int = yes; then
17015
17016 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17017
17018 fi
17019
17020
17021
17022
17023
17024
17025 gl_cv_c_multiarch=no
17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027 /* end confdefs.h. */
17028 #ifndef __APPLE_CC__
17029 not a universal capable compiler
17030 #endif
17031 typedef int dummy;
17032
17033 _ACEOF
17034 if ac_fn_c_try_compile "$LINENO"; then :
17035
17036 arch=
17037 prev=
17038 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17039 if test -n "$prev"; then
17040 case $word in
17041 i?86 | x86_64 | ppc | ppc64)
17042 if test -z "$arch" || test "$arch" = "$word"; then
17043 arch="$word"
17044 else
17045 gl_cv_c_multiarch=yes
17046 fi
17047 ;;
17048 esac
17049 prev=
17050 else
17051 if test "x$word" = "x-arch"; then
17052 prev=arch
17053 fi
17054 fi
17055 done
17056
17057 fi
17058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 if test $gl_cv_c_multiarch = yes; then
17060 APPLE_UNIVERSAL_BUILD=1
17061 else
17062 APPLE_UNIVERSAL_BUILD=0
17063 fi
17064
17065
17066
17067
17068
17069 if test $ac_cv_type_long_long_int = yes; then
17070 HAVE_LONG_LONG_INT=1
17071 else
17072 HAVE_LONG_LONG_INT=0
17073 fi
17074
17075
17076 if test $ac_cv_type_unsigned_long_long_int = yes; then
17077 HAVE_UNSIGNED_LONG_LONG_INT=1
17078 else
17079 HAVE_UNSIGNED_LONG_LONG_INT=0
17080 fi
17081
17082
17083
17084 if test $ac_cv_header_wchar_h = yes; then
17085 HAVE_WCHAR_H=1
17086 else
17087 HAVE_WCHAR_H=0
17088 fi
17089
17090
17091 if test $ac_cv_header_inttypes_h = yes; then
17092 HAVE_INTTYPES_H=1
17093 else
17094 HAVE_INTTYPES_H=0
17095 fi
17096
17097
17098 if test $ac_cv_header_sys_types_h = yes; then
17099 HAVE_SYS_TYPES_H=1
17100 else
17101 HAVE_SYS_TYPES_H=0
17102 fi
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114 if test $gl_cv_have_include_next = yes; then
17115 gl_cv_next_stdint_h='<'stdint.h'>'
17116 else
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17118 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17119 if test "${gl_cv_next_stdint_h+set}" = set; then :
17120 $as_echo_n "(cached) " >&6
17121 else
17122
17123 if test $ac_cv_header_stdint_h = yes; then
17124
17125
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h. */
17128 #include <stdint.h>
17129
17130 _ACEOF
17131 case "$host_os" in
17132 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17133 *) gl_absname_cpp="$ac_cpp" ;;
17134 esac
17135 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17136 sed -n '\#/stdint.h#{
17137 s#.*"\(.*/stdint.h\)".*#\1#
17138 s#^/[^/]#//&#
17139 p
17140 q
17141 }'`'"'
17142 else
17143 gl_cv_next_stdint_h='<'stdint.h'>'
17144 fi
17145
17146
17147 fi
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17149 $as_echo "$gl_cv_next_stdint_h" >&6; }
17150 fi
17151 NEXT_STDINT_H=$gl_cv_next_stdint_h
17152
17153 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17154 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17155 gl_next_as_first_directive='<'stdint.h'>'
17156 else
17157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17158 gl_next_as_first_directive=$gl_cv_next_stdint_h
17159 fi
17160 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17161
17162
17163
17164
17165 if test $ac_cv_header_stdint_h = yes; then
17166 HAVE_STDINT_H=1
17167 else
17168 HAVE_STDINT_H=0
17169 fi
17170
17171
17172 if test $ac_cv_header_stdint_h = yes; then
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17174 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17175 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17176 $as_echo_n "(cached) " >&6
17177 else
17178 gl_cv_header_working_stdint_h=no
17179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180 /* end confdefs.h. */
17181
17182
17183 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17184 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17185 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17186 #include <stdint.h>
17187 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17188 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17189 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17190 #endif
17191
17192
17193 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17194 included before <wchar.h>. */
17195 #include <stddef.h>
17196 #include <signal.h>
17197 #if HAVE_WCHAR_H
17198 # include <stdio.h>
17199 # include <time.h>
17200 # include <wchar.h>
17201 #endif
17202
17203
17204 #ifdef INT8_MAX
17205 int8_t a1 = INT8_MAX;
17206 int8_t a1min = INT8_MIN;
17207 #endif
17208 #ifdef INT16_MAX
17209 int16_t a2 = INT16_MAX;
17210 int16_t a2min = INT16_MIN;
17211 #endif
17212 #ifdef INT32_MAX
17213 int32_t a3 = INT32_MAX;
17214 int32_t a3min = INT32_MIN;
17215 #endif
17216 #ifdef INT64_MAX
17217 int64_t a4 = INT64_MAX;
17218 int64_t a4min = INT64_MIN;
17219 #endif
17220 #ifdef UINT8_MAX
17221 uint8_t b1 = UINT8_MAX;
17222 #else
17223 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17224 #endif
17225 #ifdef UINT16_MAX
17226 uint16_t b2 = UINT16_MAX;
17227 #endif
17228 #ifdef UINT32_MAX
17229 uint32_t b3 = UINT32_MAX;
17230 #endif
17231 #ifdef UINT64_MAX
17232 uint64_t b4 = UINT64_MAX;
17233 #endif
17234 int_least8_t c1 = INT8_C (0x7f);
17235 int_least8_t c1max = INT_LEAST8_MAX;
17236 int_least8_t c1min = INT_LEAST8_MIN;
17237 int_least16_t c2 = INT16_C (0x7fff);
17238 int_least16_t c2max = INT_LEAST16_MAX;
17239 int_least16_t c2min = INT_LEAST16_MIN;
17240 int_least32_t c3 = INT32_C (0x7fffffff);
17241 int_least32_t c3max = INT_LEAST32_MAX;
17242 int_least32_t c3min = INT_LEAST32_MIN;
17243 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17244 int_least64_t c4max = INT_LEAST64_MAX;
17245 int_least64_t c4min = INT_LEAST64_MIN;
17246 uint_least8_t d1 = UINT8_C (0xff);
17247 uint_least8_t d1max = UINT_LEAST8_MAX;
17248 uint_least16_t d2 = UINT16_C (0xffff);
17249 uint_least16_t d2max = UINT_LEAST16_MAX;
17250 uint_least32_t d3 = UINT32_C (0xffffffff);
17251 uint_least32_t d3max = UINT_LEAST32_MAX;
17252 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17253 uint_least64_t d4max = UINT_LEAST64_MAX;
17254 int_fast8_t e1 = INT_FAST8_MAX;
17255 int_fast8_t e1min = INT_FAST8_MIN;
17256 int_fast16_t e2 = INT_FAST16_MAX;
17257 int_fast16_t e2min = INT_FAST16_MIN;
17258 int_fast32_t e3 = INT_FAST32_MAX;
17259 int_fast32_t e3min = INT_FAST32_MIN;
17260 int_fast64_t e4 = INT_FAST64_MAX;
17261 int_fast64_t e4min = INT_FAST64_MIN;
17262 uint_fast8_t f1 = UINT_FAST8_MAX;
17263 uint_fast16_t f2 = UINT_FAST16_MAX;
17264 uint_fast32_t f3 = UINT_FAST32_MAX;
17265 uint_fast64_t f4 = UINT_FAST64_MAX;
17266 #ifdef INTPTR_MAX
17267 intptr_t g = INTPTR_MAX;
17268 intptr_t gmin = INTPTR_MIN;
17269 #endif
17270 #ifdef UINTPTR_MAX
17271 uintptr_t h = UINTPTR_MAX;
17272 #endif
17273 intmax_t i = INTMAX_MAX;
17274 uintmax_t j = UINTMAX_MAX;
17275
17276 #include <limits.h> /* for CHAR_BIT */
17277 #define TYPE_MINIMUM(t) \
17278 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17279 #define TYPE_MAXIMUM(t) \
17280 ((t) ((t) 0 < (t) -1 \
17281 ? (t) -1 \
17282 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17283 struct s {
17284 int check_PTRDIFF:
17285 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17286 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17287 ? 1 : -1;
17288 /* Detect bug in FreeBSD 6.0 / ia64. */
17289 int check_SIG_ATOMIC:
17290 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17291 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17292 ? 1 : -1;
17293 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17294 int check_WCHAR:
17295 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17296 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17297 ? 1 : -1;
17298 /* Detect bug in mingw. */
17299 int check_WINT:
17300 WINT_MIN == TYPE_MINIMUM (wint_t)
17301 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17302 ? 1 : -1;
17303
17304 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17305 int check_UINT8_C:
17306 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17307 int check_UINT16_C:
17308 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17309
17310 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17311 #ifdef UINT8_MAX
17312 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17313 #endif
17314 #ifdef UINT16_MAX
17315 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17316 #endif
17317 #ifdef UINT32_MAX
17318 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17319 #endif
17320 #ifdef UINT64_MAX
17321 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17322 #endif
17323 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17324 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17325 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17326 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17327 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17328 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17329 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17330 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17331 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17332 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17333 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17334 };
17335
17336 int
17337 main ()
17338 {
17339
17340 ;
17341 return 0;
17342 }
17343 _ACEOF
17344 if ac_fn_c_try_compile "$LINENO"; then :
17345 if test "$cross_compiling" = yes; then :
17346 gl_cv_header_working_stdint_h=yes
17347
17348 else
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17351
17352
17353 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17354 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17355 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17356 #include <stdint.h>
17357
17358
17359 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17360 included before <wchar.h>. */
17361 #include <stddef.h>
17362 #include <signal.h>
17363 #if HAVE_WCHAR_H
17364 # include <stdio.h>
17365 # include <time.h>
17366 # include <wchar.h>
17367 #endif
17368
17369
17370 #include <stdio.h>
17371 #include <string.h>
17372 #define MVAL(macro) MVAL1(macro)
17373 #define MVAL1(expression) #expression
17374 static const char *macro_values[] =
17375 {
17376 #ifdef INT8_MAX
17377 MVAL (INT8_MAX),
17378 #endif
17379 #ifdef INT16_MAX
17380 MVAL (INT16_MAX),
17381 #endif
17382 #ifdef INT32_MAX
17383 MVAL (INT32_MAX),
17384 #endif
17385 #ifdef INT64_MAX
17386 MVAL (INT64_MAX),
17387 #endif
17388 #ifdef UINT8_MAX
17389 MVAL (UINT8_MAX),
17390 #endif
17391 #ifdef UINT16_MAX
17392 MVAL (UINT16_MAX),
17393 #endif
17394 #ifdef UINT32_MAX
17395 MVAL (UINT32_MAX),
17396 #endif
17397 #ifdef UINT64_MAX
17398 MVAL (UINT64_MAX),
17399 #endif
17400 NULL
17401 };
17402
17403 int
17404 main ()
17405 {
17406
17407 const char **mv;
17408 for (mv = macro_values; *mv != NULL; mv++)
17409 {
17410 const char *value = *mv;
17411 /* Test whether it looks like a cast expression. */
17412 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17413 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17414 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17415 || strncmp (value, "((int)"/*)*/, 6) == 0
17416 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17417 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17418 return mv - macro_values + 1;
17419 }
17420 return 0;
17421
17422 ;
17423 return 0;
17424 }
17425 _ACEOF
17426 if ac_fn_c_try_run "$LINENO"; then :
17427 gl_cv_header_working_stdint_h=yes
17428 fi
17429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17430 conftest.$ac_objext conftest.beam conftest.$ac_ext
17431 fi
17432
17433
17434 fi
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436
17437 fi
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17439 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17440 fi
17441 if test "$gl_cv_header_working_stdint_h" = yes; then
17442 STDINT_H=
17443 else
17444 for ac_header in sys/inttypes.h sys/bitypes.h
17445 do :
17446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17447 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17448 eval as_val=\$$as_ac_Header
17449 if test "x$as_val" = x""yes; then :
17450 cat >>confdefs.h <<_ACEOF
17451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17452 _ACEOF
17453
17454 fi
17455
17456 done
17457
17458 if test $ac_cv_header_sys_inttypes_h = yes; then
17459 HAVE_SYS_INTTYPES_H=1
17460 else
17461 HAVE_SYS_INTTYPES_H=0
17462 fi
17463
17464 if test $ac_cv_header_sys_bitypes_h = yes; then
17465 HAVE_SYS_BITYPES_H=1
17466 else
17467 HAVE_SYS_BITYPES_H=0
17468 fi
17469
17470
17471
17472
17473 if test $APPLE_UNIVERSAL_BUILD = 0; then
17474
17475
17476 for gltype in ptrdiff_t size_t ; do
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17478 $as_echo_n "checking for bit size of $gltype... " >&6; }
17479 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17480 $as_echo_n "(cached) " >&6
17481 else
17482 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17483 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17484 included before <wchar.h>. */
17485 #include <stddef.h>
17486 #include <signal.h>
17487 #if HAVE_WCHAR_H
17488 # include <stdio.h>
17489 # include <time.h>
17490 # include <wchar.h>
17491 #endif
17492
17493 #include <limits.h>"; then :
17494
17495 else
17496 result=unknown
17497 fi
17498
17499 eval gl_cv_bitsizeof_${gltype}=\$result
17500
17501 fi
17502 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17504 $as_echo "$ac_res" >&6; }
17505 eval result=\$gl_cv_bitsizeof_${gltype}
17506 if test $result = unknown; then
17507 result=0
17508 fi
17509 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17510 cat >>confdefs.h <<_ACEOF
17511 #define BITSIZEOF_${GLTYPE} $result
17512 _ACEOF
17513
17514 eval BITSIZEOF_${GLTYPE}=\$result
17515 done
17516
17517
17518 fi
17519
17520
17521 for gltype in sig_atomic_t wchar_t wint_t ; do
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17523 $as_echo_n "checking for bit size of $gltype... " >&6; }
17524 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17525 $as_echo_n "(cached) " >&6
17526 else
17527 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17528 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17529 included before <wchar.h>. */
17530 #include <stddef.h>
17531 #include <signal.h>
17532 #if HAVE_WCHAR_H
17533 # include <stdio.h>
17534 # include <time.h>
17535 # include <wchar.h>
17536 #endif
17537
17538 #include <limits.h>"; then :
17539
17540 else
17541 result=unknown
17542 fi
17543
17544 eval gl_cv_bitsizeof_${gltype}=\$result
17545
17546 fi
17547 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17549 $as_echo "$ac_res" >&6; }
17550 eval result=\$gl_cv_bitsizeof_${gltype}
17551 if test $result = unknown; then
17552 result=0
17553 fi
17554 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17555 cat >>confdefs.h <<_ACEOF
17556 #define BITSIZEOF_${GLTYPE} $result
17557 _ACEOF
17558
17559 eval BITSIZEOF_${GLTYPE}=\$result
17560 done
17561
17562
17563
17564
17565 for gltype in sig_atomic_t wchar_t wint_t ; do
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17567 $as_echo_n "checking whether $gltype is signed... " >&6; }
17568 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17569 $as_echo_n "(cached) " >&6
17570 else
17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572 /* end confdefs.h. */
17573
17574 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17575 included before <wchar.h>. */
17576 #include <stddef.h>
17577 #include <signal.h>
17578 #if HAVE_WCHAR_H
17579 # include <stdio.h>
17580 # include <time.h>
17581 # include <wchar.h>
17582 #endif
17583
17584 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17585 int
17586 main ()
17587 {
17588
17589 ;
17590 return 0;
17591 }
17592 _ACEOF
17593 if ac_fn_c_try_compile "$LINENO"; then :
17594 result=yes
17595 else
17596 result=no
17597 fi
17598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17599 eval gl_cv_type_${gltype}_signed=\$result
17600
17601 fi
17602 eval ac_res=\$gl_cv_type_${gltype}_signed
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17604 $as_echo "$ac_res" >&6; }
17605 eval result=\$gl_cv_type_${gltype}_signed
17606 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17607 if test "$result" = yes; then
17608 cat >>confdefs.h <<_ACEOF
17609 #define HAVE_SIGNED_${GLTYPE} 1
17610 _ACEOF
17611
17612 eval HAVE_SIGNED_${GLTYPE}=1
17613 else
17614 eval HAVE_SIGNED_${GLTYPE}=0
17615 fi
17616 done
17617
17618
17619 gl_cv_type_ptrdiff_t_signed=yes
17620 gl_cv_type_size_t_signed=no
17621 if test $APPLE_UNIVERSAL_BUILD = 0; then
17622
17623
17624 for gltype in ptrdiff_t size_t ; do
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17626 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17627 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17628 $as_echo_n "(cached) " >&6
17629 else
17630 eval gl_cv_type_${gltype}_suffix=no
17631 eval result=\$gl_cv_type_${gltype}_signed
17632 if test "$result" = yes; then
17633 glsufu=
17634 else
17635 glsufu=u
17636 fi
17637 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17638 case $glsuf in
17639 '') gltype1='int';;
17640 l) gltype1='long int';;
17641 ll) gltype1='long long int';;
17642 i64) gltype1='__int64';;
17643 u) gltype1='unsigned int';;
17644 ul) gltype1='unsigned long int';;
17645 ull) gltype1='unsigned long long int';;
17646 ui64)gltype1='unsigned __int64';;
17647 esac
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17650
17651 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17652 included before <wchar.h>. */
17653 #include <stddef.h>
17654 #include <signal.h>
17655 #if HAVE_WCHAR_H
17656 # include <stdio.h>
17657 # include <time.h>
17658 # include <wchar.h>
17659 #endif
17660
17661 extern $gltype foo;
17662 extern $gltype1 foo;
17663 int
17664 main ()
17665 {
17666
17667 ;
17668 return 0;
17669 }
17670 _ACEOF
17671 if ac_fn_c_try_compile "$LINENO"; then :
17672 eval gl_cv_type_${gltype}_suffix=\$glsuf
17673 fi
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 eval result=\$gl_cv_type_${gltype}_suffix
17676 test "$result" != no && break
17677 done
17678 fi
17679 eval ac_res=\$gl_cv_type_${gltype}_suffix
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17681 $as_echo "$ac_res" >&6; }
17682 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17683 eval result=\$gl_cv_type_${gltype}_suffix
17684 test "$result" = no && result=
17685 eval ${GLTYPE}_SUFFIX=\$result
17686 cat >>confdefs.h <<_ACEOF
17687 #define ${GLTYPE}_SUFFIX $result
17688 _ACEOF
17689
17690 done
17691
17692
17693 fi
17694
17695
17696 for gltype in sig_atomic_t wchar_t wint_t ; do
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17698 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17699 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702 eval gl_cv_type_${gltype}_suffix=no
17703 eval result=\$gl_cv_type_${gltype}_signed
17704 if test "$result" = yes; then
17705 glsufu=
17706 else
17707 glsufu=u
17708 fi
17709 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17710 case $glsuf in
17711 '') gltype1='int';;
17712 l) gltype1='long int';;
17713 ll) gltype1='long long int';;
17714 i64) gltype1='__int64';;
17715 u) gltype1='unsigned int';;
17716 ul) gltype1='unsigned long int';;
17717 ull) gltype1='unsigned long long int';;
17718 ui64)gltype1='unsigned __int64';;
17719 esac
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722
17723 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17724 included before <wchar.h>. */
17725 #include <stddef.h>
17726 #include <signal.h>
17727 #if HAVE_WCHAR_H
17728 # include <stdio.h>
17729 # include <time.h>
17730 # include <wchar.h>
17731 #endif
17732
17733 extern $gltype foo;
17734 extern $gltype1 foo;
17735 int
17736 main ()
17737 {
17738
17739 ;
17740 return 0;
17741 }
17742 _ACEOF
17743 if ac_fn_c_try_compile "$LINENO"; then :
17744 eval gl_cv_type_${gltype}_suffix=\$glsuf
17745 fi
17746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747 eval result=\$gl_cv_type_${gltype}_suffix
17748 test "$result" != no && break
17749 done
17750 fi
17751 eval ac_res=\$gl_cv_type_${gltype}_suffix
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17753 $as_echo "$ac_res" >&6; }
17754 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17755 eval result=\$gl_cv_type_${gltype}_suffix
17756 test "$result" = no && result=
17757 eval ${GLTYPE}_SUFFIX=\$result
17758 cat >>confdefs.h <<_ACEOF
17759 #define ${GLTYPE}_SUFFIX $result
17760 _ACEOF
17761
17762 done
17763
17764
17765
17766 STDINT_H=stdint.h
17767 fi
17768
17769 if test -n "$STDINT_H"; then
17770 GL_GENERATE_STDINT_H_TRUE=
17771 GL_GENERATE_STDINT_H_FALSE='#'
17772 else
17773 GL_GENERATE_STDINT_H_TRUE='#'
17774 GL_GENERATE_STDINT_H_FALSE=
17775 fi
17776
17777
17778
17779
17780
17781 GNULIB_IMAXABS=0;
17782 GNULIB_IMAXDIV=0;
17783 GNULIB_STRTOIMAX=0;
17784 GNULIB_STRTOUMAX=0;
17785 HAVE_DECL_IMAXABS=1;
17786 HAVE_DECL_IMAXDIV=1;
17787 HAVE_DECL_STRTOIMAX=1;
17788 HAVE_DECL_STRTOUMAX=1;
17789 INT32_MAX_LT_INTMAX_MAX=1;
17790 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17791 PRI_MACROS_BROKEN=0;
17792 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17793 UINT32_MAX_LT_UINTMAX_MAX=1;
17794 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810 if test $gl_cv_have_include_next = yes; then
17811 gl_cv_next_inttypes_h='<'inttypes.h'>'
17812 else
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17814 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17815 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17816 $as_echo_n "(cached) " >&6
17817 else
17818
17819 if test $ac_cv_header_inttypes_h = yes; then
17820
17821
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h. */
17824 #include <inttypes.h>
17825
17826 _ACEOF
17827 case "$host_os" in
17828 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17829 *) gl_absname_cpp="$ac_cpp" ;;
17830 esac
17831 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17832 sed -n '\#/inttypes.h#{
17833 s#.*"\(.*/inttypes.h\)".*#\1#
17834 s#^/[^/]#//&#
17835 p
17836 q
17837 }'`'"'
17838 else
17839 gl_cv_next_inttypes_h='<'inttypes.h'>'
17840 fi
17841
17842
17843 fi
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17845 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17846 fi
17847 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17848
17849 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17851 gl_next_as_first_directive='<'inttypes.h'>'
17852 else
17853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17854 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17855 fi
17856 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17857
17858
17859
17860
17861
17862
17863
17864
17865 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
17866
17867
17868
17869
17870
17871
17872 GNULIB_FCHMODAT=0;
17873 GNULIB_FSTATAT=0;
17874 GNULIB_FUTIMENS=0;
17875 GNULIB_LCHMOD=0;
17876 GNULIB_LSTAT=0;
17877 GNULIB_MKDIRAT=0;
17878 GNULIB_MKFIFO=0;
17879 GNULIB_MKFIFOAT=0;
17880 GNULIB_MKNOD=0;
17881 GNULIB_MKNODAT=0;
17882 GNULIB_STAT=0;
17883 GNULIB_UTIMENSAT=0;
17884 HAVE_FCHMODAT=1;
17885 HAVE_FSTATAT=1;
17886 HAVE_FUTIMENS=1;
17887 HAVE_LCHMOD=1;
17888 HAVE_LSTAT=1;
17889 HAVE_MKDIRAT=1;
17890 HAVE_MKFIFO=1;
17891 HAVE_MKFIFOAT=1;
17892 HAVE_MKNOD=1;
17893 HAVE_MKNODAT=1;
17894 HAVE_UTIMENSAT=1;
17895 REPLACE_FSTAT=0;
17896 REPLACE_FSTATAT=0;
17897 REPLACE_FUTIMENS=0;
17898 REPLACE_LSTAT=0;
17899 REPLACE_MKDIR=0;
17900 REPLACE_MKFIFO=0;
17901 REPLACE_MKNOD=0;
17902 REPLACE_STAT=0;
17903 REPLACE_UTIMENSAT=0;
17904
17905
17906
17907
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17909 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17910 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17911 $as_echo_n "(cached) " >&6
17912 else
17913 rm -f conftest.sym conftest.file
17914 echo >conftest.file
17915 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17916 if test "$cross_compiling" = yes; then :
17917 # When cross-compiling, be pessimistic so we will end up using the
17918 # replacement version of lstat that checks for trailing slashes and
17919 # calls lstat a second time when necessary.
17920 gl_cv_func_lstat_dereferences_slashed_symlink=no
17921
17922 else
17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924 /* end confdefs.h. */
17925 $ac_includes_default
17926 int
17927 main ()
17928 {
17929 struct stat sbuf;
17930 /* Linux will dereference the symlink and fail, as required by
17931 POSIX. That is better in the sense that it means we will not
17932 have to compile and use the lstat wrapper. */
17933 return lstat ("conftest.sym/", &sbuf) == 0;
17934
17935 ;
17936 return 0;
17937 }
17938 _ACEOF
17939 if ac_fn_c_try_run "$LINENO"; then :
17940 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17941 else
17942 gl_cv_func_lstat_dereferences_slashed_symlink=no
17943 fi
17944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17945 conftest.$ac_objext conftest.beam conftest.$ac_ext
17946 fi
17947
17948 else
17949 # If the 'ln -s' command failed, then we probably don't even
17950 # have an lstat function.
17951 gl_cv_func_lstat_dereferences_slashed_symlink=no
17952 fi
17953 rm -f conftest.sym conftest.file
17954
17955 fi
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17957 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17958 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
17959
17960 cat >>confdefs.h <<_ACEOF
17961 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17962 _ACEOF
17963
17964
17965
17966 GNULIB_MKTIME=0;
17967 GNULIB_NANOSLEEP=0;
17968 GNULIB_STRPTIME=0;
17969 GNULIB_TIMEGM=0;
17970 GNULIB_TIME_R=0;
17971 HAVE_DECL_LOCALTIME_R=1;
17972 HAVE_NANOSLEEP=1;
17973 HAVE_STRPTIME=1;
17974 HAVE_TIMEGM=1;
17975 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17976 REPLACE_MKTIME=GNULIB_PORTCHECK;
17977 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17978 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17979
17980
17981
17982
17983
17984
17985 GNULIB_PTHREAD_SIGMASK=0;
17986 GNULIB_SIGNAL_H_SIGPIPE=0;
17987 GNULIB_SIGPROCMASK=0;
17988 GNULIB_SIGACTION=0;
17989 HAVE_POSIX_SIGNALBLOCKING=1;
17990 HAVE_PTHREAD_SIGMASK=1;
17991 HAVE_SIGSET_T=1;
17992 HAVE_SIGINFO_T=1;
17993 HAVE_SIGACTION=1;
17994 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17995
17996 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17997
17998 HAVE_SIGHANDLER_T=1;
17999 REPLACE_PTHREAD_SIGMASK=0;
18000
18001
18002
18003
18004 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18005 #include <signal.h>
18006 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18007 #include <sys/types.h>
18008
18009 "
18010 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18011
18012 cat >>confdefs.h <<_ACEOF
18013 #define HAVE_SIGSET_T 1
18014 _ACEOF
18015
18016 gl_cv_type_sigset_t=yes
18017 else
18018 gl_cv_type_sigset_t=no
18019 fi
18020
18021 if test $gl_cv_type_sigset_t != yes; then
18022 HAVE_SIGSET_T=0
18023 fi
18024
18025
18026
18027
18028
18029 if test $ac_cv_header_sys_socket_h = no; then
18030 for ac_header in ws2tcpip.h
18031 do :
18032 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18033 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18034 cat >>confdefs.h <<_ACEOF
18035 #define HAVE_WS2TCPIP_H 1
18036 _ACEOF
18037
18038 fi
18039
18040 done
18041
18042 fi
18043
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18045 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18046 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18047 $as_echo_n "(cached) " >&6
18048 else
18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18051
18052 #include <stdbool.h>
18053 #ifndef bool
18054 "error: bool is not defined"
18055 #endif
18056 #ifndef false
18057 "error: false is not defined"
18058 #endif
18059 #if false
18060 "error: false is not 0"
18061 #endif
18062 #ifndef true
18063 "error: true is not defined"
18064 #endif
18065 #if true != 1
18066 "error: true is not 1"
18067 #endif
18068 #ifndef __bool_true_false_are_defined
18069 "error: __bool_true_false_are_defined is not defined"
18070 #endif
18071
18072 struct s { _Bool s: 1; _Bool t; } s;
18073
18074 char a[true == 1 ? 1 : -1];
18075 char b[false == 0 ? 1 : -1];
18076 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18077 char d[(bool) 0.5 == true ? 1 : -1];
18078 /* See body of main program for 'e'. */
18079 char f[(_Bool) 0.0 == false ? 1 : -1];
18080 char g[true];
18081 char h[sizeof (_Bool)];
18082 char i[sizeof s.t];
18083 enum { j = false, k = true, l = false * true, m = true * 256 };
18084 /* The following fails for
18085 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18086 _Bool n[m];
18087 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18088 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18089 /* Catch a bug in an HP-UX C compiler. See
18090 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18091 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18092 */
18093 _Bool q = true;
18094 _Bool *pq = &q;
18095
18096 int
18097 main ()
18098 {
18099
18100 bool e = &s;
18101 *pq |= q;
18102 *pq |= ! q;
18103 /* Refer to every declared value, to avoid compiler optimizations. */
18104 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18105 + !m + !n + !o + !p + !q + !pq);
18106
18107 ;
18108 return 0;
18109 }
18110 _ACEOF
18111 if ac_fn_c_try_compile "$LINENO"; then :
18112 ac_cv_header_stdbool_h=yes
18113 else
18114 ac_cv_header_stdbool_h=no
18115 fi
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 fi
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18119 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18120 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18121 if test "x$ac_cv_type__Bool" = x""yes; then :
18122
18123 cat >>confdefs.h <<_ACEOF
18124 #define HAVE__BOOL 1
18125 _ACEOF
18126
18127
18128 fi
18129
18130
18131
18132 REPLACE_NULL=0;
18133 HAVE_WCHAR_T=1;
18134
18135
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18137 $as_echo_n "checking for wchar_t... " >&6; }
18138 if test "${gt_cv_c_wchar_t+set}" = set; then :
18139 $as_echo_n "(cached) " >&6
18140 else
18141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142 /* end confdefs.h. */
18143 #include <stddef.h>
18144 wchar_t foo = (wchar_t)'\0';
18145 int
18146 main ()
18147 {
18148
18149 ;
18150 return 0;
18151 }
18152 _ACEOF
18153 if ac_fn_c_try_compile "$LINENO"; then :
18154 gt_cv_c_wchar_t=yes
18155 else
18156 gt_cv_c_wchar_t=no
18157 fi
18158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18159 fi
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18161 $as_echo "$gt_cv_c_wchar_t" >&6; }
18162 if test $gt_cv_c_wchar_t = yes; then
18163
18164 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18165
18166 fi
18167
18168
18169 GNULIB_DPRINTF=0;
18170 GNULIB_FCLOSE=0;
18171 GNULIB_FFLUSH=0;
18172 GNULIB_FGETC=0;
18173 GNULIB_FGETS=0;
18174 GNULIB_FOPEN=0;
18175 GNULIB_FPRINTF=0;
18176 GNULIB_FPRINTF_POSIX=0;
18177 GNULIB_FPURGE=0;
18178 GNULIB_FPUTC=0;
18179 GNULIB_FPUTS=0;
18180 GNULIB_FREAD=0;
18181 GNULIB_FREOPEN=0;
18182 GNULIB_FSCANF=0;
18183 GNULIB_FSEEK=0;
18184 GNULIB_FSEEKO=0;
18185 GNULIB_FTELL=0;
18186 GNULIB_FTELLO=0;
18187 GNULIB_FWRITE=0;
18188 GNULIB_GETC=0;
18189 GNULIB_GETCHAR=0;
18190 GNULIB_GETDELIM=0;
18191 GNULIB_GETLINE=0;
18192 GNULIB_GETS=0;
18193 GNULIB_OBSTACK_PRINTF=0;
18194 GNULIB_OBSTACK_PRINTF_POSIX=0;
18195 GNULIB_PERROR=0;
18196 GNULIB_POPEN=0;
18197 GNULIB_PRINTF=0;
18198 GNULIB_PRINTF_POSIX=0;
18199 GNULIB_PUTC=0;
18200 GNULIB_PUTCHAR=0;
18201 GNULIB_PUTS=0;
18202 GNULIB_REMOVE=0;
18203 GNULIB_RENAME=0;
18204 GNULIB_RENAMEAT=0;
18205 GNULIB_SCANF=0;
18206 GNULIB_SNPRINTF=0;
18207 GNULIB_SPRINTF_POSIX=0;
18208 GNULIB_STDIO_H_NONBLOCKING=0;
18209 GNULIB_STDIO_H_SIGPIPE=0;
18210 GNULIB_TMPFILE=0;
18211 GNULIB_VASPRINTF=0;
18212 GNULIB_VFSCANF=0;
18213 GNULIB_VSCANF=0;
18214 GNULIB_VDPRINTF=0;
18215 GNULIB_VFPRINTF=0;
18216 GNULIB_VFPRINTF_POSIX=0;
18217 GNULIB_VPRINTF=0;
18218 GNULIB_VPRINTF_POSIX=0;
18219 GNULIB_VSNPRINTF=0;
18220 GNULIB_VSPRINTF_POSIX=0;
18221 HAVE_DECL_FPURGE=1;
18222 HAVE_DECL_FSEEKO=1;
18223 HAVE_DECL_FTELLO=1;
18224 HAVE_DECL_GETDELIM=1;
18225 HAVE_DECL_GETLINE=1;
18226 HAVE_DECL_OBSTACK_PRINTF=1;
18227 HAVE_DECL_SNPRINTF=1;
18228 HAVE_DECL_VSNPRINTF=1;
18229 HAVE_DPRINTF=1;
18230 HAVE_FSEEKO=1;
18231 HAVE_FTELLO=1;
18232 HAVE_RENAMEAT=1;
18233 HAVE_VASPRINTF=1;
18234 HAVE_VDPRINTF=1;
18235 REPLACE_DPRINTF=0;
18236 REPLACE_FCLOSE=0;
18237 REPLACE_FFLUSH=0;
18238 REPLACE_FOPEN=0;
18239 REPLACE_FPRINTF=0;
18240 REPLACE_FPURGE=0;
18241 REPLACE_FREOPEN=0;
18242 REPLACE_FSEEK=0;
18243 REPLACE_FSEEKO=0;
18244 REPLACE_FTELL=0;
18245 REPLACE_FTELLO=0;
18246 REPLACE_GETDELIM=0;
18247 REPLACE_GETLINE=0;
18248 REPLACE_OBSTACK_PRINTF=0;
18249 REPLACE_PERROR=0;
18250 REPLACE_POPEN=0;
18251 REPLACE_PRINTF=0;
18252 REPLACE_REMOVE=0;
18253 REPLACE_RENAME=0;
18254 REPLACE_RENAMEAT=0;
18255 REPLACE_SNPRINTF=0;
18256 REPLACE_SPRINTF=0;
18257 REPLACE_STDIO_READ_FUNCS=0;
18258 REPLACE_STDIO_WRITE_FUNCS=0;
18259 REPLACE_TMPFILE=0;
18260 REPLACE_VASPRINTF=0;
18261 REPLACE_VDPRINTF=0;
18262 REPLACE_VFPRINTF=0;
18263 REPLACE_VPRINTF=0;
18264 REPLACE_VSNPRINTF=0;
18265 REPLACE_VSPRINTF=0;
18266
18267
18268 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18269 "
18270 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18271
18272 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18273
18274 fi
18275
18276
18277
18278
18279 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18280 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18281 ac_have_decl=1
18282 else
18283 ac_have_decl=0
18284 fi
18285
18286 cat >>confdefs.h <<_ACEOF
18287 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18288 _ACEOF
18289
18290 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18291 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18292 ac_have_decl=1
18293 else
18294 ac_have_decl=0
18295 fi
18296
18297 cat >>confdefs.h <<_ACEOF
18298 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18299 _ACEOF
18300
18301
18302
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18304 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18305 if test "${ac_cv_header_stat_broken+set}" = set; then :
18306 $as_echo_n "(cached) " >&6
18307 else
18308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18310 #include <sys/types.h>
18311 #include <sys/stat.h>
18312
18313 #if defined S_ISBLK && defined S_IFDIR
18314 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18315 #endif
18316
18317 #if defined S_ISBLK && defined S_IFCHR
18318 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18319 #endif
18320
18321 #if defined S_ISLNK && defined S_IFREG
18322 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18323 #endif
18324
18325 #if defined S_ISSOCK && defined S_IFREG
18326 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18327 #endif
18328
18329 _ACEOF
18330 if ac_fn_c_try_compile "$LINENO"; then :
18331 ac_cv_header_stat_broken=no
18332 else
18333 ac_cv_header_stat_broken=yes
18334 fi
18335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18336 fi
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18338 $as_echo "$ac_cv_header_stat_broken" >&6; }
18339 if test $ac_cv_header_stat_broken = yes; then
18340
18341 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18342
18343 fi
18344
18345
18346
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18348 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18349 if test "${ac_cv_c_restrict+set}" = set; then :
18350 $as_echo_n "(cached) " >&6
18351 else
18352 ac_cv_c_restrict=no
18353 # The order here caters to the fact that C++ does not require restrict.
18354 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18357 typedef int * int_ptr;
18358 int foo (int_ptr $ac_kw ip) {
18359 return ip[0];
18360 }
18361 int
18362 main ()
18363 {
18364 int s[1];
18365 int * $ac_kw t = s;
18366 t[0] = 0;
18367 return foo(t)
18368 ;
18369 return 0;
18370 }
18371 _ACEOF
18372 if ac_fn_c_try_compile "$LINENO"; then :
18373 ac_cv_c_restrict=$ac_kw
18374 fi
18375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18376 test "$ac_cv_c_restrict" != no && break
18377 done
18378
18379 fi
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18381 $as_echo "$ac_cv_c_restrict" >&6; }
18382
18383 case $ac_cv_c_restrict in
18384 restrict) ;;
18385 no) $as_echo "#define restrict /**/" >>confdefs.h
18386 ;;
18387 *) cat >>confdefs.h <<_ACEOF
18388 #define restrict $ac_cv_c_restrict
18389 _ACEOF
18390 ;;
18391 esac
18392
18393
18394
18395
18396
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18398 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18399 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18400 $as_echo_n "(cached) " >&6
18401 else
18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h. */
18404 #include <time.h>
18405
18406 int
18407 main ()
18408 {
18409 static struct timespec x; x.tv_sec = x.tv_nsec;
18410 ;
18411 return 0;
18412 }
18413 _ACEOF
18414 if ac_fn_c_try_compile "$LINENO"; then :
18415 gl_cv_sys_struct_timespec_in_time_h=yes
18416 else
18417 gl_cv_sys_struct_timespec_in_time_h=no
18418 fi
18419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 fi
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18422 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18423
18424 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18425 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18426 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18427 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18428 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18429 else
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18431 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18432 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18433 $as_echo_n "(cached) " >&6
18434 else
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18437 #include <sys/time.h>
18438
18439 int
18440 main ()
18441 {
18442 static struct timespec x; x.tv_sec = x.tv_nsec;
18443 ;
18444 return 0;
18445 }
18446 _ACEOF
18447 if ac_fn_c_try_compile "$LINENO"; then :
18448 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18449 else
18450 gl_cv_sys_struct_timespec_in_sys_time_h=no
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 fi
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18455 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18456 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18457 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18458 else
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18460 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18461 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18462 $as_echo_n "(cached) " >&6
18463 else
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466 #include <pthread.h>
18467
18468 int
18469 main ()
18470 {
18471 static struct timespec x; x.tv_sec = x.tv_nsec;
18472 ;
18473 return 0;
18474 }
18475 _ACEOF
18476 if ac_fn_c_try_compile "$LINENO"; then :
18477 gl_cv_sys_struct_timespec_in_pthread_h=yes
18478 else
18479 gl_cv_sys_struct_timespec_in_pthread_h=no
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 fi
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18484 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18485 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18486 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18487 fi
18488 fi
18489 fi
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505 if test $gl_cv_have_include_next = yes; then
18506 gl_cv_next_time_h='<'time.h'>'
18507 else
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18509 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18510 if test "${gl_cv_next_time_h+set}" = set; then :
18511 $as_echo_n "(cached) " >&6
18512 else
18513
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515 /* end confdefs.h. */
18516 #include <time.h>
18517
18518 _ACEOF
18519 case "$host_os" in
18520 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18521 *) gl_absname_cpp="$ac_cpp" ;;
18522 esac
18523 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18524 sed -n '\#/time.h#{
18525 s#.*"\(.*/time.h\)".*#\1#
18526 s#^/[^/]#//&#
18527 p
18528 q
18529 }'`'"'
18530
18531
18532 fi
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18534 $as_echo "$gl_cv_next_time_h" >&6; }
18535 fi
18536 NEXT_TIME_H=$gl_cv_next_time_h
18537
18538 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18540 gl_next_as_first_directive='<'time.h'>'
18541 else
18542 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18543 gl_next_as_first_directive=$gl_cv_next_time_h
18544 fi
18545 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18546
18547
18548
18549
18550
18551
18552 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18553 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18554 ac_have_decl=1
18555 else
18556 ac_have_decl=0
18557 fi
18558
18559 cat >>confdefs.h <<_ACEOF
18560 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18561 _ACEOF
18562
18563
18564
18565
18566 if false; then
18567 GL_COND_LIBTOOL_TRUE=
18568 GL_COND_LIBTOOL_FALSE='#'
18569 else
18570 GL_COND_LIBTOOL_TRUE='#'
18571 GL_COND_LIBTOOL_FALSE=
18572 fi
18573
18574 gl_cond_libtool=false
18575 gl_libdeps=
18576 gl_ltlibdeps=
18577 gl_m4_base='m4'
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587 gl_source_base='lib'
18588
18589
18590 if test $ac_cv_func_alloca_works = no; then
18591 :
18592 fi
18593
18594 # Define an additional variable used in the Makefile substitution.
18595 if test $ac_cv_working_alloca_h = yes; then
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18597 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18598 if test "${gl_cv_rpl_alloca+set}" = set; then :
18599 $as_echo_n "(cached) " >&6
18600 else
18601
18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603 /* end confdefs.h. */
18604
18605 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18606 Need own alloca
18607 #endif
18608
18609 _ACEOF
18610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18611 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18612 gl_cv_rpl_alloca=yes
18613 else
18614 gl_cv_rpl_alloca=no
18615 fi
18616 rm -f conftest*
18617
18618
18619 fi
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18621 $as_echo "$gl_cv_rpl_alloca" >&6; }
18622 if test $gl_cv_rpl_alloca = yes; then
18623
18624 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18625
18626 ALLOCA_H=alloca.h
18627 else
18628 ALLOCA_H=
18629 fi
18630 else
18631 ALLOCA_H=alloca.h
18632 fi
18633
18634 if test -n "$ALLOCA_H"; then
18635 GL_GENERATE_ALLOCA_H_TRUE=
18636 GL_GENERATE_ALLOCA_H_FALSE='#'
18637 else
18638 GL_GENERATE_ALLOCA_H_TRUE='#'
18639 GL_GENERATE_ALLOCA_H_FALSE=
18640 fi
18641
18642
18643
18644
18645
18646
18647 :
18648
18649
18650
18651
18652 :
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18669
18670
18671 if test $HAVE_DUP2 = 1; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18673 $as_echo_n "checking whether dup2 works... " >&6; }
18674 if test "${gl_cv_func_dup2_works+set}" = set; then :
18675 $as_echo_n "(cached) " >&6
18676 else
18677 if test "$cross_compiling" = yes; then :
18678 case "$host_os" in
18679 mingw*) # on this platform, dup2 always returns 0 for success
18680 gl_cv_func_dup2_works=no;;
18681 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18682 gl_cv_func_dup2_works=no;;
18683 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18684 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18685 gl_cv_func_dup2_works=no;;
18686 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18687 gl_cv_func_dup2_works=no;;
18688 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18689 gl_cv_func_dup2_works=no;;
18690 *) gl_cv_func_dup2_works=yes;;
18691 esac
18692 else
18693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694 /* end confdefs.h. */
18695
18696 #include <unistd.h>
18697 #include <fcntl.h>
18698 #include <errno.h>
18699 int
18700 main ()
18701 {
18702 int result = 0;
18703 #ifdef FD_CLOEXEC
18704 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18705 result |= 1;
18706 #endif
18707 if (dup2 (1, 1) == 0)
18708 result |= 2;
18709 #ifdef FD_CLOEXEC
18710 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18711 result |= 4;
18712 #endif
18713 close (0);
18714 if (dup2 (0, 0) != -1)
18715 result |= 8;
18716 /* Many gnulib modules require POSIX conformance of EBADF. */
18717 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18718 result |= 16;
18719 return result;
18720
18721 ;
18722 return 0;
18723 }
18724
18725 _ACEOF
18726 if ac_fn_c_try_run "$LINENO"; then :
18727 gl_cv_func_dup2_works=yes
18728 else
18729 gl_cv_func_dup2_works=no
18730 fi
18731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18732 conftest.$ac_objext conftest.beam conftest.$ac_ext
18733 fi
18734
18735
18736 fi
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18738 $as_echo "$gl_cv_func_dup2_works" >&6; }
18739 if test "$gl_cv_func_dup2_works" = no; then
18740
18741
18742
18743 if test $ac_cv_func_dup2 = yes; then
18744 REPLACE_DUP2=1
18745 fi
18746
18747
18748
18749
18750
18751
18752
18753
18754 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18755
18756
18757 fi
18758 fi
18759
18760
18761
18762
18763
18764
18765 GNULIB_DUP2=1
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777 # Persuade glibc <stdlib.h> to declare getloadavg().
18778
18779
18780 gl_save_LIBS=$LIBS
18781
18782 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18783 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18784 HAVE_GETLOADAVG=1
18785 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18786 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18787
18788 else
18789 gl_func_getloadavg_done=no
18790
18791 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18792 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18793 # to get the right answer into the cache.
18794 # For kstat on solaris, we need to test for libelf and libkvm to force the
18795 # definition of SVR4 below.
18796 if test $gl_func_getloadavg_done = no; then
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18798 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18799 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18800 $as_echo_n "(cached) " >&6
18801 else
18802 ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lelf $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18806
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char elf_begin ();
18814 int
18815 main ()
18816 {
18817 return elf_begin ();
18818 ;
18819 return 0;
18820 }
18821 _ACEOF
18822 if ac_fn_c_try_link "$LINENO"; then :
18823 ac_cv_lib_elf_elf_begin=yes
18824 else
18825 ac_cv_lib_elf_elf_begin=no
18826 fi
18827 rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18830 fi
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18832 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18833 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18834 LIBS="-lelf $LIBS"
18835 fi
18836
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18838 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18839 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18840 $as_echo_n "(cached) " >&6
18841 else
18842 ac_check_lib_save_LIBS=$LIBS
18843 LIBS="-lkvm $LIBS"
18844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18845 /* end confdefs.h. */
18846
18847 /* Override any GCC internal prototype to avoid an error.
18848 Use char because int might match the return type of a GCC
18849 builtin and then its argument prototype would still apply. */
18850 #ifdef __cplusplus
18851 extern "C"
18852 #endif
18853 char kvm_open ();
18854 int
18855 main ()
18856 {
18857 return kvm_open ();
18858 ;
18859 return 0;
18860 }
18861 _ACEOF
18862 if ac_fn_c_try_link "$LINENO"; then :
18863 ac_cv_lib_kvm_kvm_open=yes
18864 else
18865 ac_cv_lib_kvm_kvm_open=no
18866 fi
18867 rm -f core conftest.err conftest.$ac_objext \
18868 conftest$ac_exeext conftest.$ac_ext
18869 LIBS=$ac_check_lib_save_LIBS
18870 fi
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18872 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18873 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18874 LIBS="-lkvm $LIBS"
18875 fi
18876
18877 # Check for the 4.4BSD definition of getloadavg.
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18879 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18880 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18881 $as_echo_n "(cached) " >&6
18882 else
18883 ac_check_lib_save_LIBS=$LIBS
18884 LIBS="-lutil $LIBS"
18885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886 /* end confdefs.h. */
18887
18888 /* Override any GCC internal prototype to avoid an error.
18889 Use char because int might match the return type of a GCC
18890 builtin and then its argument prototype would still apply. */
18891 #ifdef __cplusplus
18892 extern "C"
18893 #endif
18894 char getloadavg ();
18895 int
18896 main ()
18897 {
18898 return getloadavg ();
18899 ;
18900 return 0;
18901 }
18902 _ACEOF
18903 if ac_fn_c_try_link "$LINENO"; then :
18904 ac_cv_lib_util_getloadavg=yes
18905 else
18906 ac_cv_lib_util_getloadavg=no
18907 fi
18908 rm -f core conftest.err conftest.$ac_objext \
18909 conftest$ac_exeext conftest.$ac_ext
18910 LIBS=$ac_check_lib_save_LIBS
18911 fi
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18913 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18914 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18915 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18916 fi
18917
18918 fi
18919
18920 if test $gl_func_getloadavg_done = no; then
18921 # There is a commonly available library for RS/6000 AIX.
18922 # Since it is not a standard part of AIX, it might be installed locally.
18923 gl_getloadavg_LIBS=$LIBS
18924 LIBS="-L/usr/local/lib $LIBS"
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18926 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18927 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18928 $as_echo_n "(cached) " >&6
18929 else
18930 ac_check_lib_save_LIBS=$LIBS
18931 LIBS="-lgetloadavg $LIBS"
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18934
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 char getloadavg ();
18942 int
18943 main ()
18944 {
18945 return getloadavg ();
18946 ;
18947 return 0;
18948 }
18949 _ACEOF
18950 if ac_fn_c_try_link "$LINENO"; then :
18951 ac_cv_lib_getloadavg_getloadavg=yes
18952 else
18953 ac_cv_lib_getloadavg_getloadavg=no
18954 fi
18955 rm -f core conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext conftest.$ac_ext
18957 LIBS=$ac_check_lib_save_LIBS
18958 fi
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18960 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18961 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18962 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18963 else
18964 LIBS=$gl_getloadavg_LIBS
18965 fi
18966
18967 fi
18968
18969 # Set up the replacement function if necessary.
18970 if test $gl_func_getloadavg_done = no; then
18971 HAVE_GETLOADAVG=0
18972
18973 # Solaris has libkstat which does not require root.
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18975 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18976 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18977 $as_echo_n "(cached) " >&6
18978 else
18979 ac_check_lib_save_LIBS=$LIBS
18980 LIBS="-lkstat $LIBS"
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18983
18984 /* Override any GCC internal prototype to avoid an error.
18985 Use char because int might match the return type of a GCC
18986 builtin and then its argument prototype would still apply. */
18987 #ifdef __cplusplus
18988 extern "C"
18989 #endif
18990 char kstat_open ();
18991 int
18992 main ()
18993 {
18994 return kstat_open ();
18995 ;
18996 return 0;
18997 }
18998 _ACEOF
18999 if ac_fn_c_try_link "$LINENO"; then :
19000 ac_cv_lib_kstat_kstat_open=yes
19001 else
19002 ac_cv_lib_kstat_kstat_open=no
19003 fi
19004 rm -f core conftest.err conftest.$ac_objext \
19005 conftest$ac_exeext conftest.$ac_ext
19006 LIBS=$ac_check_lib_save_LIBS
19007 fi
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19009 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19010 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19011 cat >>confdefs.h <<_ACEOF
19012 #define HAVE_LIBKSTAT 1
19013 _ACEOF
19014
19015 LIBS="-lkstat $LIBS"
19016
19017 fi
19018
19019 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19020
19021 # AIX has libperfstat which does not require root
19022 if test $gl_func_getloadavg_done = no; then
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19024 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19025 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19026 $as_echo_n "(cached) " >&6
19027 else
19028 ac_check_lib_save_LIBS=$LIBS
19029 LIBS="-lperfstat $LIBS"
19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031 /* end confdefs.h. */
19032
19033 /* Override any GCC internal prototype to avoid an error.
19034 Use char because int might match the return type of a GCC
19035 builtin and then its argument prototype would still apply. */
19036 #ifdef __cplusplus
19037 extern "C"
19038 #endif
19039 char perfstat_cpu_total ();
19040 int
19041 main ()
19042 {
19043 return perfstat_cpu_total ();
19044 ;
19045 return 0;
19046 }
19047 _ACEOF
19048 if ac_fn_c_try_link "$LINENO"; then :
19049 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19050 else
19051 ac_cv_lib_perfstat_perfstat_cpu_total=no
19052 fi
19053 rm -f core conftest.err conftest.$ac_objext \
19054 conftest$ac_exeext conftest.$ac_ext
19055 LIBS=$ac_check_lib_save_LIBS
19056 fi
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19058 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19059 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19060 cat >>confdefs.h <<_ACEOF
19061 #define HAVE_LIBPERFSTAT 1
19062 _ACEOF
19063
19064 LIBS="-lperfstat $LIBS"
19065
19066 fi
19067
19068 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19069 fi
19070
19071 if test $gl_func_getloadavg_done = no; then
19072 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19073 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19074 gl_func_getloadavg_done=yes
19075
19076 $as_echo "#define DGUX 1" >>confdefs.h
19077
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19079 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19080 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19081 $as_echo_n "(cached) " >&6
19082 else
19083 ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-ldgc $LIBS"
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19087
19088 /* Override any GCC internal prototype to avoid an error.
19089 Use char because int might match the return type of a GCC
19090 builtin and then its argument prototype would still apply. */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 char dg_sys_info ();
19095 int
19096 main ()
19097 {
19098 return dg_sys_info ();
19099 ;
19100 return 0;
19101 }
19102 _ACEOF
19103 if ac_fn_c_try_link "$LINENO"; then :
19104 ac_cv_lib_dgc_dg_sys_info=yes
19105 else
19106 ac_cv_lib_dgc_dg_sys_info=no
19107 fi
19108 rm -f core conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19111 fi
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19113 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19114 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19115 cat >>confdefs.h <<_ACEOF
19116 #define HAVE_LIBDGC 1
19117 _ACEOF
19118
19119 LIBS="-ldgc $LIBS"
19120
19121 fi
19122
19123 fi
19124
19125
19126 fi
19127 fi
19128 fi
19129
19130
19131 if test "x$gl_save_LIBS" = x; then
19132 GETLOADAVG_LIBS=$LIBS
19133 else
19134 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19135 fi
19136 LIBS=$gl_save_LIBS
19137
19138
19139 # Test whether the system declares getloadavg. Solaris has the function
19140 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19141 for ac_header in sys/loadavg.h
19142 do :
19143 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19144 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19145 cat >>confdefs.h <<_ACEOF
19146 #define HAVE_SYS_LOADAVG_H 1
19147 _ACEOF
19148
19149 fi
19150
19151 done
19152
19153 if test $ac_cv_header_sys_loadavg_h = yes; then
19154 HAVE_SYS_LOADAVG_H=1
19155 else
19156 HAVE_SYS_LOADAVG_H=0
19157 fi
19158 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19159 # include <sys/loadavg.h>
19160 #endif
19161 #include <stdlib.h>
19162 "
19163 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19164
19165 else
19166 HAVE_DECL_GETLOADAVG=0
19167 fi
19168
19169
19170 if test $HAVE_GETLOADAVG = 0; then
19171
19172
19173
19174
19175
19176
19177
19178
19179 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19180
19181
19182 # Figure out what our getloadavg.c needs.
19183
19184 # On HPUX9, an unprivileged user can get load averages this way.
19185 if test $gl_func_getloadavg_done = no; then
19186 for ac_func in pstat_getdynamic
19187 do :
19188 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19189 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19190 cat >>confdefs.h <<_ACEOF
19191 #define HAVE_PSTAT_GETDYNAMIC 1
19192 _ACEOF
19193 gl_func_getloadavg_done=yes
19194 fi
19195 done
19196
19197 fi
19198
19199 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19200 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19201 # Irix 4.0.5F has the header but not the library.
19202 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19203 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19204 gl_func_getloadavg_done=yes
19205
19206 $as_echo "#define SVR4 1" >>confdefs.h
19207
19208 fi
19209
19210 if test $gl_func_getloadavg_done = no; then
19211 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19212 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19213 gl_func_getloadavg_done=yes
19214
19215 $as_echo "#define UMAX 1" >>confdefs.h
19216
19217
19218 $as_echo "#define UMAX4_3 1" >>confdefs.h
19219
19220 fi
19221
19222
19223 fi
19224
19225 if test $gl_func_getloadavg_done = no; then
19226 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19227 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19228 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19229
19230 fi
19231
19232
19233 fi
19234
19235 if test $gl_func_getloadavg_done = no; then
19236 for ac_header in mach/mach.h
19237 do :
19238 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19239 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19240 cat >>confdefs.h <<_ACEOF
19241 #define HAVE_MACH_MACH_H 1
19242 _ACEOF
19243
19244 fi
19245
19246 done
19247
19248 fi
19249
19250 for ac_header in nlist.h
19251 do :
19252 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19253 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19254 cat >>confdefs.h <<_ACEOF
19255 #define HAVE_NLIST_H 1
19256 _ACEOF
19257 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19258 "
19259 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19260
19261 cat >>confdefs.h <<_ACEOF
19262 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19263 _ACEOF
19264
19265
19266 fi
19267
19268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269 /* end confdefs.h. */
19270 #include <nlist.h>
19271 int
19272 main ()
19273 {
19274 struct nlist x;
19275 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19276 x.n_un.n_name = "";
19277 #else
19278 x.n_name = "";
19279 #endif
19280 ;
19281 return 0;
19282 }
19283 _ACEOF
19284 if ac_fn_c_try_link "$LINENO"; then :
19285
19286 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19287
19288 fi
19289 rm -f core conftest.err conftest.$ac_objext \
19290 conftest$ac_exeext conftest.$ac_ext
19291
19292 fi
19293
19294 done
19295
19296 fi
19297
19298
19299
19300
19301
19302 GNULIB_GETLOADAVG=1
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313 if test $REPLACE_GETOPT = 1; then
19314
19315
19316
19317
19318
19319
19320
19321
19322 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19333
19334
19335
19336
19337 fi
19338
19339
19340
19341
19342
19343 REPLACE_GETOPT=0
19344
19345
19346 if test -n "$gl_replace_getopt"; then :
19347
19348 REPLACE_GETOPT=1
19349
19350 fi
19351
19352
19353 if test $REPLACE_GETOPT = 1; then
19354
19355 GETOPT_H=getopt.h
19356
19357 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19358
19359
19360
19361 GNULIB_UNISTD_H_GETOPT=1
19362 fi
19363
19364 if test $REPLACE_GETOPT = 1; then
19365
19366
19367
19368
19369
19370
19371
19372
19373 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19384
19385
19386
19387
19388 fi
19389
19390
19391
19392
19393
19394 if test $ac_cv_func_lstat = yes; then
19395
19396 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
19397 REPLACE_LSTAT=1
19398 fi
19399 else
19400 HAVE_LSTAT=0
19401 fi
19402
19403 if test $REPLACE_LSTAT = 1; then
19404
19405
19406
19407
19408
19409
19410
19411
19412 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19413
19414
19415
19416 :
19417
19418 fi
19419
19420
19421
19422
19423
19424 GNULIB_LSTAT=1
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436 if test $APPLE_UNIVERSAL_BUILD = 1; then
19437 # A universal build on Apple MacOS X platforms.
19438 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19439 # But we need a configuration result that is valid in both modes.
19440 gl_cv_func_working_mktime=no
19441 fi
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19443 $as_echo_n "checking for working mktime... " >&6; }
19444 if test "${gl_cv_func_working_mktime+set}" = set; then :
19445 $as_echo_n "(cached) " >&6
19446 else
19447 if test "$cross_compiling" = yes; then :
19448 gl_cv_func_working_mktime=no
19449 else
19450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19452 /* Test program from Paul Eggert and Tony Leneis. */
19453 #include <limits.h>
19454 #include <stdlib.h>
19455 #include <time.h>
19456
19457 #ifdef HAVE_UNISTD_H
19458 # include <unistd.h>
19459 #endif
19460
19461 #ifndef HAVE_ALARM
19462 # define alarm(X) /* empty */
19463 #endif
19464
19465 /* Work around redefinition to rpl_putenv by other config tests. */
19466 #undef putenv
19467
19468 static time_t time_t_max;
19469 static time_t time_t_min;
19470
19471 /* Values we'll use to set the TZ environment variable. */
19472 static char *tz_strings[] = {
19473 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19474 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19475 };
19476 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19477
19478 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19479 Based on a problem report from Andreas Jaeger. */
19480 static int
19481 spring_forward_gap ()
19482 {
19483 /* glibc (up to about 1998-10-07) failed this test. */
19484 struct tm tm;
19485
19486 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19487 instead of "TZ=America/Vancouver" in order to detect the bug even
19488 on systems that don't support the Olson extension, or don't have the
19489 full zoneinfo tables installed. */
19490 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19491
19492 tm.tm_year = 98;
19493 tm.tm_mon = 3;
19494 tm.tm_mday = 5;
19495 tm.tm_hour = 2;
19496 tm.tm_min = 0;
19497 tm.tm_sec = 0;
19498 tm.tm_isdst = -1;
19499 return mktime (&tm) != (time_t) -1;
19500 }
19501
19502 static int
19503 mktime_test1 (time_t now)
19504 {
19505 struct tm *lt;
19506 return ! (lt = localtime (&now)) || mktime (lt) == now;
19507 }
19508
19509 static int
19510 mktime_test (time_t now)
19511 {
19512 return (mktime_test1 (now)
19513 && mktime_test1 ((time_t) (time_t_max - now))
19514 && mktime_test1 ((time_t) (time_t_min + now)));
19515 }
19516
19517 static int
19518 irix_6_4_bug ()
19519 {
19520 /* Based on code from Ariel Faigon. */
19521 struct tm tm;
19522 tm.tm_year = 96;
19523 tm.tm_mon = 3;
19524 tm.tm_mday = 0;
19525 tm.tm_hour = 0;
19526 tm.tm_min = 0;
19527 tm.tm_sec = 0;
19528 tm.tm_isdst = -1;
19529 mktime (&tm);
19530 return tm.tm_mon == 2 && tm.tm_mday == 31;
19531 }
19532
19533 static int
19534 bigtime_test (int j)
19535 {
19536 struct tm tm;
19537 time_t now;
19538 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19539 now = mktime (&tm);
19540 if (now != (time_t) -1)
19541 {
19542 struct tm *lt = localtime (&now);
19543 if (! (lt
19544 && lt->tm_year == tm.tm_year
19545 && lt->tm_mon == tm.tm_mon
19546 && lt->tm_mday == tm.tm_mday
19547 && lt->tm_hour == tm.tm_hour
19548 && lt->tm_min == tm.tm_min
19549 && lt->tm_sec == tm.tm_sec
19550 && lt->tm_yday == tm.tm_yday
19551 && lt->tm_wday == tm.tm_wday
19552 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19553 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19554 return 0;
19555 }
19556 return 1;
19557 }
19558
19559 static int
19560 year_2050_test ()
19561 {
19562 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19563 ignoring leap seconds. */
19564 unsigned long int answer = 2527315200UL;
19565
19566 struct tm tm;
19567 time_t t;
19568 tm.tm_year = 2050 - 1900;
19569 tm.tm_mon = 2 - 1;
19570 tm.tm_mday = 1;
19571 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19572 tm.tm_isdst = -1;
19573
19574 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19575 instead of "TZ=America/Vancouver" in order to detect the bug even
19576 on systems that don't support the Olson extension, or don't have the
19577 full zoneinfo tables installed. */
19578 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19579
19580 t = mktime (&tm);
19581
19582 /* Check that the result is either a failure, or close enough
19583 to the correct answer that we can assume the discrepancy is
19584 due to leap seconds. */
19585 return (t == (time_t) -1
19586 || (0 < t && answer - 120 <= t && t <= answer + 120));
19587 }
19588
19589 int
19590 main ()
19591 {
19592 int result = 0;
19593 time_t t, delta;
19594 int i, j;
19595 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19596 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19597
19598 /* This test makes some buggy mktime implementations loop.
19599 Give up after 60 seconds; a mktime slower than that
19600 isn't worth using anyway. */
19601 alarm (60);
19602
19603 time_t_max = (! time_t_signed
19604 ? (time_t) -1
19605 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19606 * 2 + 1));
19607 time_t_min = (! time_t_signed
19608 ? (time_t) 0
19609 : time_t_signed_magnitude
19610 ? ~ (time_t) 0
19611 : ~ time_t_max);
19612
19613 delta = time_t_max / 997; /* a suitable prime number */
19614 for (i = 0; i < N_STRINGS; i++)
19615 {
19616 if (tz_strings[i])
19617 putenv (tz_strings[i]);
19618
19619 for (t = 0; t <= time_t_max - delta; t += delta)
19620 if (! mktime_test (t))
19621 result |= 1;
19622 if (! (mktime_test ((time_t) 1)
19623 && mktime_test ((time_t) (60 * 60))
19624 && mktime_test ((time_t) (60 * 60 * 24))))
19625 result |= 2;
19626
19627 for (j = 1; ; j <<= 1)
19628 if (! bigtime_test (j))
19629 result |= 4;
19630 else if (INT_MAX / 2 < j)
19631 break;
19632 if (! bigtime_test (INT_MAX))
19633 result |= 8;
19634 }
19635 if (! irix_6_4_bug ())
19636 result |= 16;
19637 if (! spring_forward_gap ())
19638 result |= 32;
19639 if (! year_2050_test ())
19640 result |= 64;
19641 return result;
19642 }
19643 _ACEOF
19644 if ac_fn_c_try_run "$LINENO"; then :
19645 gl_cv_func_working_mktime=yes
19646 else
19647 gl_cv_func_working_mktime=no
19648 fi
19649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19650 conftest.$ac_objext conftest.beam conftest.$ac_ext
19651 fi
19652
19653
19654 fi
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19656 $as_echo "$gl_cv_func_working_mktime" >&6; }
19657
19658 if test $gl_cv_func_working_mktime = no; then
19659 REPLACE_MKTIME=1
19660 else
19661 REPLACE_MKTIME=0
19662 fi
19663
19664 if test $REPLACE_MKTIME = 1; then
19665
19666
19667
19668
19669
19670
19671
19672
19673 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19674
19675
19676
19677
19678 fi
19679
19680
19681
19682
19683
19684 GNULIB_MKTIME=1
19685
19686
19687
19688
19689
19690
19691
19692
19693 LIB_PTHREAD_SIGMASK=
19694 if test $ac_cv_func_pthread_sigmask != yes; then
19695 gl_save_LIBS=$LIBS
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_sigmask" >&5
19697 $as_echo_n "checking for library containing pthread_sigmask... " >&6; }
19698 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19699 $as_echo_n "(cached) " >&6
19700 else
19701 ac_func_search_save_LIBS=$LIBS
19702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h. */
19704
19705 /* Override any GCC internal prototype to avoid an error.
19706 Use char because int might match the return type of a GCC
19707 builtin and then its argument prototype would still apply. */
19708 #ifdef __cplusplus
19709 extern "C"
19710 #endif
19711 char pthread_sigmask ();
19712 int
19713 main ()
19714 {
19715 return pthread_sigmask ();
19716 ;
19717 return 0;
19718 }
19719 _ACEOF
19720 for ac_lib in '' pthread c_r; do
19721 if test -z "$ac_lib"; then
19722 ac_res="none required"
19723 else
19724 ac_res=-l$ac_lib
19725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19726 fi
19727 if ac_fn_c_try_link "$LINENO"; then :
19728 ac_cv_search_pthread_sigmask=$ac_res
19729 fi
19730 rm -f core conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext
19732 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19733 break
19734 fi
19735 done
19736 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19737
19738 else
19739 ac_cv_search_pthread_sigmask=no
19740 fi
19741 rm conftest.$ac_ext
19742 LIBS=$ac_func_search_save_LIBS
19743 fi
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_sigmask" >&5
19745 $as_echo "$ac_cv_search_pthread_sigmask" >&6; }
19746 ac_res=$ac_cv_search_pthread_sigmask
19747 if test "$ac_res" != no; then :
19748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19749
19750 fi
19751
19752 LIBS=$gl_save_LIBS
19753 if test "$ac_cv_search_pthread_sigmask" = no; then
19754 HAVE_PTHREAD_SIGMASK=0
19755 elif test "$ac_cv_search_pthread_sigmask" != 'none required'; then
19756 LIB_PTHREAD_SIGMASK=$ac_cv_search_pthread_sigmask
19757 fi
19758 fi
19759
19760
19761 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
19762
19763
19764
19765
19766
19767
19768
19769
19770 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19771
19772 fi
19773
19774
19775
19776
19777
19778 GNULIB_PTHREAD_SIGMASK=1
19779
19780
19781
19782
19783
19784
19785
19786
19787 if test $ac_cv_func_readlink = no; then
19788 HAVE_READLINK=0
19789 else
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19791 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19792 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19793 $as_echo_n "(cached) " >&6
19794 else
19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796 /* end confdefs.h. */
19797 #include <unistd.h>
19798 /* Cause compilation failure if original declaration has wrong type. */
19799 ssize_t readlink (const char *, char *, size_t);
19800 int
19801 main ()
19802 {
19803
19804 ;
19805 return 0;
19806 }
19807 _ACEOF
19808 if ac_fn_c_try_compile "$LINENO"; then :
19809 gl_cv_decl_readlink_works=yes
19810 else
19811 gl_cv_decl_readlink_works=no
19812 fi
19813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19814 fi
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19816 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19818 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19819 if test "${gl_cv_func_readlink_works+set}" = set; then :
19820 $as_echo_n "(cached) " >&6
19821 else
19822 # We have readlink, so assume ln -s works.
19823 ln -s conftest.no-such conftest.link
19824 ln -s conftest.link conftest.lnk2
19825 if test "$cross_compiling" = yes; then :
19826 gl_cv_func_readlink_works="guessing no"
19827 else
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 #include <unistd.h>
19831
19832 int
19833 main ()
19834 {
19835 char buf[20];
19836 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19837 ;
19838 return 0;
19839 }
19840 _ACEOF
19841 if ac_fn_c_try_run "$LINENO"; then :
19842 gl_cv_func_readlink_works=yes
19843 else
19844 gl_cv_func_readlink_works=no
19845 fi
19846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19847 conftest.$ac_objext conftest.beam conftest.$ac_ext
19848 fi
19849
19850 rm -f conftest.link conftest.lnk2
19851 fi
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19853 $as_echo "$gl_cv_func_readlink_works" >&6; }
19854 if test "$gl_cv_func_readlink_works" != yes; then
19855
19856 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19857
19858 REPLACE_READLINK=1
19859 elif test "$gl_cv_decl_readlink_works" != yes; then
19860 REPLACE_READLINK=1
19861 fi
19862 fi
19863
19864 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19865
19866
19867
19868
19869
19870
19871
19872
19873 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19874
19875
19876 :
19877
19878 fi
19879
19880
19881
19882
19883
19884 GNULIB_READLINK=1
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901 if test $gl_cv_have_include_next = yes; then
19902 gl_cv_next_signal_h='<'signal.h'>'
19903 else
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19905 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19906 if test "${gl_cv_next_signal_h+set}" = set; then :
19907 $as_echo_n "(cached) " >&6
19908 else
19909
19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19912 #include <signal.h>
19913
19914 _ACEOF
19915 case "$host_os" in
19916 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19917 *) gl_absname_cpp="$ac_cpp" ;;
19918 esac
19919 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19920 sed -n '\#/signal.h#{
19921 s#.*"\(.*/signal.h\)".*#\1#
19922 s#^/[^/]#//&#
19923 p
19924 q
19925 }'`'"'
19926
19927
19928 fi
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19930 $as_echo "$gl_cv_next_signal_h" >&6; }
19931 fi
19932 NEXT_SIGNAL_H=$gl_cv_next_signal_h
19933
19934 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19936 gl_next_as_first_directive='<'signal.h'>'
19937 else
19938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19939 gl_next_as_first_directive=$gl_cv_next_signal_h
19940 fi
19941 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
19942
19943
19944
19945
19946
19947 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
19948 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
19949 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
19950 #include <signal.h>
19951
19952 "
19953 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
19954
19955 else
19956 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
19957 fi
19958
19959
19960
19961
19962
19963 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
19964 #include <signal.h>
19965
19966 "
19967 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
19968
19969 else
19970 HAVE_SIGHANDLER_T=0
19971 fi
19972
19973
19974
19975
19976 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19977 /* <sys/types.h> is not needed according to POSIX, but the
19978 <sys/socket.h> in i386-unknown-freebsd4.10 and
19979 powerpc-apple-darwin5.5 required it. */
19980 #include <sys/types.h>
19981 #if HAVE_SYS_SOCKET_H
19982 # include <sys/socket.h>
19983 #elif HAVE_WS2TCPIP_H
19984 # include <ws2tcpip.h>
19985 #endif
19986
19987 "
19988 if test "x$ac_cv_type_socklen_t" = x""yes; then :
19989
19990 else
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19992 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19993 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19994 $as_echo_n "(cached) " >&6
19995 else
19996 # Systems have either "struct sockaddr *" or
19997 # "void *" as the second argument to getpeername
19998 gl_cv_socklen_t_equiv=
19999 for arg2 in "struct sockaddr" void; do
20000 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20003 #include <sys/types.h>
20004 #include <sys/socket.h>
20005
20006 int getpeername (int, $arg2 *, $t *);
20007 int
20008 main ()
20009 {
20010 $t len;
20011 getpeername (0, 0, &len);
20012 ;
20013 return 0;
20014 }
20015 _ACEOF
20016 if ac_fn_c_try_compile "$LINENO"; then :
20017 gl_cv_socklen_t_equiv="$t"
20018 fi
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 test "$gl_cv_socklen_t_equiv" != "" && break
20021 done
20022 test "$gl_cv_socklen_t_equiv" != "" && break
20023 done
20024
20025 fi
20026
20027 if test "$gl_cv_socklen_t_equiv" = ""; then
20028 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20029 fi
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20031 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20032
20033 cat >>confdefs.h <<_ACEOF
20034 #define socklen_t $gl_cv_socklen_t_equiv
20035 _ACEOF
20036
20037 fi
20038
20039
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20041 $as_echo_n "checking for ssize_t... " >&6; }
20042 if test "${gt_cv_ssize_t+set}" = set; then :
20043 $as_echo_n "(cached) " >&6
20044 else
20045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h. */
20047 #include <sys/types.h>
20048 int
20049 main ()
20050 {
20051 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20052 return !x;
20053 ;
20054 return 0;
20055 }
20056 _ACEOF
20057 if ac_fn_c_try_compile "$LINENO"; then :
20058 gt_cv_ssize_t=yes
20059 else
20060 gt_cv_ssize_t=no
20061 fi
20062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20063 fi
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20065 $as_echo "$gt_cv_ssize_t" >&6; }
20066 if test $gt_cv_ssize_t = no; then
20067
20068 $as_echo "#define ssize_t int" >>confdefs.h
20069
20070 fi
20071
20072
20073 STDARG_H=''
20074 NEXT_STDARG_H='<stdarg.h>'
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20076 $as_echo_n "checking for va_copy... " >&6; }
20077 if test "${gl_cv_func_va_copy+set}" = set; then :
20078 $as_echo_n "(cached) " >&6
20079 else
20080
20081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h. */
20083 #include <stdarg.h>
20084 int
20085 main ()
20086 {
20087
20088 #ifndef va_copy
20089 void (*func) (va_list, va_list) = va_copy;
20090 #endif
20091
20092 ;
20093 return 0;
20094 }
20095 _ACEOF
20096 if ac_fn_c_try_compile "$LINENO"; then :
20097 gl_cv_func_va_copy=yes
20098 else
20099 gl_cv_func_va_copy=no
20100 fi
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 fi
20103
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20105 $as_echo "$gl_cv_func_va_copy" >&6; }
20106 if test $gl_cv_func_va_copy = no; then
20107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h. */
20109 #if defined _AIX && !defined __GNUC__
20110 AIX vaccine
20111 #endif
20112
20113 _ACEOF
20114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20115 $EGREP "vaccine" >/dev/null 2>&1; then :
20116 gl_aixcc=yes
20117 else
20118 gl_aixcc=no
20119 fi
20120 rm -f conftest*
20121
20122 if test $gl_aixcc = yes; then
20123 STDARG_H=stdarg.h
20124
20125
20126
20127
20128
20129
20130
20131
20132 if test $gl_cv_have_include_next = yes; then
20133 gl_cv_next_stdarg_h='<'stdarg.h'>'
20134 else
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20136 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20137 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20138 $as_echo_n "(cached) " >&6
20139 else
20140
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20143 #include <stdarg.h>
20144
20145 _ACEOF
20146 case "$host_os" in
20147 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20148 *) gl_absname_cpp="$ac_cpp" ;;
20149 esac
20150 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20151 sed -n '\#/stdarg.h#{
20152 s#.*"\(.*/stdarg.h\)".*#\1#
20153 s#^/[^/]#//&#
20154 p
20155 q
20156 }'`'"'
20157
20158
20159 fi
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20161 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20162 fi
20163 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20164
20165 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20167 gl_next_as_first_directive='<'stdarg.h'>'
20168 else
20169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20170 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20171 fi
20172 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20173
20174
20175
20176
20177 if test "$gl_cv_next_stdarg_h" = '""'; then
20178 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20179 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20180 fi
20181 else
20182
20183 saved_as_echo_n="$as_echo_n"
20184 as_echo_n=':'
20185 if test "${gl_cv_func___va_copy+set}" = set; then :
20186 $as_echo_n "(cached) " >&6
20187 else
20188
20189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20190 /* end confdefs.h. */
20191 #include <stdarg.h>
20192 int
20193 main ()
20194 {
20195
20196 #ifndef __va_copy
20197 error, bail out
20198 #endif
20199
20200 ;
20201 return 0;
20202 }
20203 _ACEOF
20204 if ac_fn_c_try_compile "$LINENO"; then :
20205 gl_cv_func___va_copy=yes
20206 else
20207 gl_cv_func___va_copy=no
20208 fi
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210 fi
20211
20212 as_echo_n="$saved_as_echo_n"
20213
20214 if test $gl_cv_func___va_copy = yes; then
20215
20216 $as_echo "#define va_copy __va_copy" >>confdefs.h
20217
20218 else
20219
20220
20221 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20222
20223 fi
20224 fi
20225 fi
20226
20227 if test -n "$STDARG_H"; then
20228 GL_GENERATE_STDARG_H_TRUE=
20229 GL_GENERATE_STDARG_H_FALSE='#'
20230 else
20231 GL_GENERATE_STDARG_H_TRUE='#'
20232 GL_GENERATE_STDARG_H_FALSE=
20233 fi
20234
20235
20236
20237
20238
20239
20240 # Define two additional variables used in the Makefile substitution.
20241
20242 if test "$ac_cv_header_stdbool_h" = yes; then
20243 STDBOOL_H=''
20244 else
20245 STDBOOL_H='stdbool.h'
20246 fi
20247
20248 if test -n "$STDBOOL_H"; then
20249 GL_GENERATE_STDBOOL_H_TRUE=
20250 GL_GENERATE_STDBOOL_H_FALSE='#'
20251 else
20252 GL_GENERATE_STDBOOL_H_TRUE='#'
20253 GL_GENERATE_STDBOOL_H_FALSE=
20254 fi
20255
20256
20257 if test "$ac_cv_type__Bool" = yes; then
20258 HAVE__BOOL=1
20259 else
20260 HAVE__BOOL=0
20261 fi
20262
20263
20264
20265
20266
20267 STDDEF_H=
20268 if test $gt_cv_c_wchar_t = no; then
20269 HAVE_WCHAR_T=0
20270 STDDEF_H=stddef.h
20271 fi
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20273 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20274 if test "${gl_cv_decl_null_works+set}" = set; then :
20275 $as_echo_n "(cached) " >&6
20276 else
20277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h. */
20279 #include <stddef.h>
20280 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20281
20282 int
20283 main ()
20284 {
20285
20286 ;
20287 return 0;
20288 }
20289 _ACEOF
20290 if ac_fn_c_try_compile "$LINENO"; then :
20291 gl_cv_decl_null_works=yes
20292 else
20293 gl_cv_decl_null_works=no
20294 fi
20295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20296 fi
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20298 $as_echo "$gl_cv_decl_null_works" >&6; }
20299 if test $gl_cv_decl_null_works = no; then
20300 REPLACE_NULL=1
20301 STDDEF_H=stddef.h
20302 fi
20303
20304 if test -n "$STDDEF_H"; then
20305 GL_GENERATE_STDDEF_H_TRUE=
20306 GL_GENERATE_STDDEF_H_FALSE='#'
20307 else
20308 GL_GENERATE_STDDEF_H_TRUE='#'
20309 GL_GENERATE_STDDEF_H_FALSE=
20310 fi
20311
20312 if test -n "$STDDEF_H"; then
20313
20314
20315
20316
20317
20318
20319
20320
20321 if test $gl_cv_have_include_next = yes; then
20322 gl_cv_next_stddef_h='<'stddef.h'>'
20323 else
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20325 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20326 if test "${gl_cv_next_stddef_h+set}" = set; then :
20327 $as_echo_n "(cached) " >&6
20328 else
20329
20330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20331 /* end confdefs.h. */
20332 #include <stddef.h>
20333
20334 _ACEOF
20335 case "$host_os" in
20336 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20337 *) gl_absname_cpp="$ac_cpp" ;;
20338 esac
20339 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20340 sed -n '\#/stddef.h#{
20341 s#.*"\(.*/stddef.h\)".*#\1#
20342 s#^/[^/]#//&#
20343 p
20344 q
20345 }'`'"'
20346
20347
20348 fi
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20350 $as_echo "$gl_cv_next_stddef_h" >&6; }
20351 fi
20352 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20353
20354 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20356 gl_next_as_first_directive='<'stddef.h'>'
20357 else
20358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20359 gl_next_as_first_directive=$gl_cv_next_stddef_h
20360 fi
20361 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20362
20363
20364
20365
20366 fi
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380 if test $gl_cv_have_include_next = yes; then
20381 gl_cv_next_stdio_h='<'stdio.h'>'
20382 else
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20384 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20385 if test "${gl_cv_next_stdio_h+set}" = set; then :
20386 $as_echo_n "(cached) " >&6
20387 else
20388
20389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390 /* end confdefs.h. */
20391 #include <stdio.h>
20392
20393 _ACEOF
20394 case "$host_os" in
20395 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20396 *) gl_absname_cpp="$ac_cpp" ;;
20397 esac
20398 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20399 sed -n '\#/stdio.h#{
20400 s#.*"\(.*/stdio.h\)".*#\1#
20401 s#^/[^/]#//&#
20402 p
20403 q
20404 }'`'"'
20405
20406
20407 fi
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20409 $as_echo "$gl_cv_next_stdio_h" >&6; }
20410 fi
20411 NEXT_STDIO_H=$gl_cv_next_stdio_h
20412
20413 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20415 gl_next_as_first_directive='<'stdio.h'>'
20416 else
20417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20418 gl_next_as_first_directive=$gl_cv_next_stdio_h
20419 fi
20420 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20421
20422
20423
20424
20425
20426 GNULIB_FSCANF=1
20427 GNULIB_SCANF=1
20428 GNULIB_FGETC=1
20429 GNULIB_GETC=1
20430 GNULIB_GETCHAR=1
20431 GNULIB_FGETS=1
20432 GNULIB_GETS=1
20433 GNULIB_FREAD=1
20434
20435
20436 GNULIB_FPRINTF=1
20437 GNULIB_PRINTF=1
20438 GNULIB_VFPRINTF=1
20439 GNULIB_VPRINTF=1
20440 GNULIB_FPUTC=1
20441 GNULIB_PUTC=1
20442 GNULIB_PUTCHAR=1
20443 GNULIB_FPUTS=1
20444 GNULIB_PUTS=1
20445 GNULIB_FWRITE=1
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461 if test $gl_cv_have_include_next = yes; then
20462 gl_cv_next_stdlib_h='<'stdlib.h'>'
20463 else
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20465 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20466 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20467 $as_echo_n "(cached) " >&6
20468 else
20469
20470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20471 /* end confdefs.h. */
20472 #include <stdlib.h>
20473
20474 _ACEOF
20475 case "$host_os" in
20476 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20477 *) gl_absname_cpp="$ac_cpp" ;;
20478 esac
20479 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20480 sed -n '\#/stdlib.h#{
20481 s#.*"\(.*/stdlib.h\)".*#\1#
20482 s#^/[^/]#//&#
20483 p
20484 q
20485 }'`'"'
20486
20487
20488 fi
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20490 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20491 fi
20492 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20493
20494 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20495 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20496 gl_next_as_first_directive='<'stdlib.h'>'
20497 else
20498 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20499 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20500 fi
20501 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20512
20513
20514
20515
20516
20517
20518
20519 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20520
20521
20522
20523
20524
20525
20526
20527 if test "$ac_cv_have_decl_strtoimax" != yes; then
20528 HAVE_DECL_STRTOIMAX=0
20529
20530 for ac_func in strtoimax
20531 do :
20532 ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax"
20533 if test "x$ac_cv_func_strtoimax" = x""yes; then :
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_STRTOIMAX 1
20536 _ACEOF
20537
20538 fi
20539 done
20540
20541 fi
20542
20543 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then
20544
20545
20546
20547
20548
20549
20550
20551
20552 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
20553
20554
20555 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20556 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
20557 ac_have_decl=1
20558 else
20559 ac_have_decl=0
20560 fi
20561
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_DECL_STRTOLL $ac_have_decl
20564 _ACEOF
20565
20566
20567
20568 fi
20569
20570
20571
20572
20573
20574 GNULIB_STRTOIMAX=1
20575
20576
20577
20578
20579
20580
20581
20582
20583 if test "$ac_cv_have_decl_strtoumax" != yes; then
20584 HAVE_DECL_STRTOUMAX=0
20585
20586 for ac_func in strtoumax
20587 do :
20588 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
20589 if test "x$ac_cv_func_strtoumax" = x""yes; then :
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_STRTOUMAX 1
20592 _ACEOF
20593
20594 fi
20595 done
20596
20597 fi
20598
20599 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
20600
20601
20602
20603
20604
20605
20606
20607
20608 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20609
20610
20611 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20612 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20613 ac_have_decl=1
20614 else
20615 ac_have_decl=0
20616 fi
20617
20618 cat >>confdefs.h <<_ACEOF
20619 #define HAVE_DECL_STRTOULL $ac_have_decl
20620 _ACEOF
20621
20622
20623
20624 fi
20625
20626
20627
20628
20629
20630 GNULIB_STRTOUMAX=1
20631
20632
20633
20634
20635
20636
20637
20638 if test $ac_cv_func_symlink = no; then
20639 HAVE_SYMLINK=0
20640 else
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20642 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20643 if test "${gl_cv_func_symlink_works+set}" = set; then :
20644 $as_echo_n "(cached) " >&6
20645 else
20646 if test "$cross_compiling" = yes; then :
20647 gl_cv_func_symlink_works="guessing no"
20648 else
20649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650 /* end confdefs.h. */
20651 #include <unistd.h>
20652
20653 int
20654 main ()
20655 {
20656 int result = 0;
20657 if (!symlink ("a", "conftest.link/"))
20658 result |= 1;
20659 if (symlink ("conftest.f", "conftest.lnk2"))
20660 result |= 2;
20661 else if (!symlink ("a", "conftest.lnk2/"))
20662 result |= 4;
20663 return result;
20664
20665 ;
20666 return 0;
20667 }
20668 _ACEOF
20669 if ac_fn_c_try_run "$LINENO"; then :
20670 gl_cv_func_symlink_works=yes
20671 else
20672 gl_cv_func_symlink_works=no
20673 fi
20674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20675 conftest.$ac_objext conftest.beam conftest.$ac_ext
20676 fi
20677
20678 rm -f conftest.f conftest.link conftest.lnk2
20679 fi
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20681 $as_echo "$gl_cv_func_symlink_works" >&6; }
20682 if test "$gl_cv_func_symlink_works" != yes; then
20683 REPLACE_SYMLINK=1
20684 fi
20685 fi
20686
20687 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20688
20689
20690
20691
20692
20693
20694
20695
20696 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20697
20698 fi
20699
20700
20701
20702
20703
20704 GNULIB_SYMLINK=1
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726 if test $gl_cv_have_include_next = yes; then
20727 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20728 else
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20730 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20731 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20732 $as_echo_n "(cached) " >&6
20733 else
20734
20735 if test $ac_cv_header_sys_stat_h = yes; then
20736
20737
20738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h. */
20740 #include <sys/stat.h>
20741
20742 _ACEOF
20743 case "$host_os" in
20744 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20745 *) gl_absname_cpp="$ac_cpp" ;;
20746 esac
20747 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20748 sed -n '\#/sys/stat.h#{
20749 s#.*"\(.*/sys/stat.h\)".*#\1#
20750 s#^/[^/]#//&#
20751 p
20752 q
20753 }'`'"'
20754 else
20755 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20756 fi
20757
20758
20759 fi
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20761 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20762 fi
20763 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20764
20765 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20767 gl_next_as_first_directive='<'sys/stat.h'>'
20768 else
20769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20770 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20771 fi
20772 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20773
20774
20775
20776
20777
20778 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20779 #include <sys/stat.h>
20780 "
20781 if test "x$ac_cv_type_nlink_t" = x""yes; then :
20782
20783 else
20784
20785 $as_echo "#define nlink_t int" >>confdefs.h
20786
20787 fi
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803 if test $ac_cv_have_decl_localtime_r = no; then
20804 HAVE_DECL_LOCALTIME_R=0
20805 fi
20806
20807
20808 if test $ac_cv_func_localtime_r = yes; then
20809 HAVE_LOCALTIME_R=1
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20811 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20812 if test "${gl_cv_time_r_posix+set}" = set; then :
20813 $as_echo_n "(cached) " >&6
20814 else
20815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20816 /* end confdefs.h. */
20817 #include <time.h>
20818 int
20819 main ()
20820 {
20821 /* We don't need to append 'restrict's to the argument types,
20822 even though the POSIX signature has the 'restrict's,
20823 since C99 says they can't affect type compatibility. */
20824 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20825 if (ptr) return 0;
20826 /* Check the return type is a pointer.
20827 On HP-UX 10 it is 'int'. */
20828 *localtime_r (0, 0);
20829 ;
20830 return 0;
20831 }
20832
20833 _ACEOF
20834 if ac_fn_c_try_compile "$LINENO"; then :
20835 gl_cv_time_r_posix=yes
20836 else
20837 gl_cv_time_r_posix=no
20838 fi
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840
20841 fi
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20843 $as_echo "$gl_cv_time_r_posix" >&6; }
20844 if test $gl_cv_time_r_posix = yes; then
20845 REPLACE_LOCALTIME_R=0
20846 else
20847 REPLACE_LOCALTIME_R=1
20848 fi
20849 else
20850 HAVE_LOCALTIME_R=0
20851 fi
20852
20853 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
20854
20855
20856
20857
20858
20859
20860
20861
20862 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
20863
20864
20865 :
20866
20867 fi
20868
20869
20870
20871
20872
20873 GNULIB_TIME_R=1
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893 if test $gl_cv_have_include_next = yes; then
20894 gl_cv_next_unistd_h='<'unistd.h'>'
20895 else
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
20897 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
20898 if test "${gl_cv_next_unistd_h+set}" = set; then :
20899 $as_echo_n "(cached) " >&6
20900 else
20901
20902 if test $ac_cv_header_unistd_h = yes; then
20903
20904
20905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h. */
20907 #include <unistd.h>
20908
20909 _ACEOF
20910 case "$host_os" in
20911 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20912 *) gl_absname_cpp="$ac_cpp" ;;
20913 esac
20914 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20915 sed -n '\#/unistd.h#{
20916 s#.*"\(.*/unistd.h\)".*#\1#
20917 s#^/[^/]#//&#
20918 p
20919 q
20920 }'`'"'
20921 else
20922 gl_cv_next_unistd_h='<'unistd.h'>'
20923 fi
20924
20925
20926 fi
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
20928 $as_echo "$gl_cv_next_unistd_h" >&6; }
20929 fi
20930 NEXT_UNISTD_H=$gl_cv_next_unistd_h
20931
20932 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20934 gl_next_as_first_directive='<'unistd.h'>'
20935 else
20936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20937 gl_next_as_first_directive=$gl_cv_next_unistd_h
20938 fi
20939 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
20940
20941
20942
20943
20944 if test $ac_cv_header_unistd_h = yes; then
20945 HAVE_UNISTD_H=1
20946 else
20947 HAVE_UNISTD_H=0
20948 fi
20949
20950
20951
20952
20953 gl_gnulib_enabled_dosname=false
20954 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
20955 gl_gnulib_enabled_sigprocmask=false
20956 gl_gnulib_enabled_stat=false
20957 gl_gnulib_enabled_strtoll=false
20958 gl_gnulib_enabled_strtoull=false
20959 gl_gnulib_enabled_verify=false
20960 func_gl_gnulib_m4code_dosname ()
20961 {
20962 if ! $gl_gnulib_enabled_dosname; then
20963 gl_gnulib_enabled_dosname=true
20964 fi
20965 }
20966 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
20967 {
20968 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
20969
20970
20971 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
20972 fi
20973 }
20974 func_gl_gnulib_m4code_sigprocmask ()
20975 {
20976 if ! $gl_gnulib_enabled_sigprocmask; then
20977
20978
20979
20980 if test $gl_cv_type_sigset_t = yes; then
20981 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
20982 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
20983 gl_cv_func_sigprocmask=1
20984 fi
20985
20986 fi
20987 if test -z "$gl_cv_func_sigprocmask"; then
20988 HAVE_POSIX_SIGNALBLOCKING=0
20989 fi
20990
20991 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
20992
20993
20994
20995
20996
20997
20998
20999
21000 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21001
21002 :
21003 fi
21004
21005
21006
21007
21008
21009 GNULIB_SIGPROCMASK=1
21010
21011
21012
21013
21014
21015 gl_gnulib_enabled_sigprocmask=true
21016 fi
21017 }
21018 func_gl_gnulib_m4code_stat ()
21019 {
21020 if ! $gl_gnulib_enabled_stat; then
21021
21022
21023
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21025 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21026 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21027 $as_echo_n "(cached) " >&6
21028 else
21029 if test "$cross_compiling" = yes; then :
21030 case $host_os in
21031 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21032 *) gl_cv_func_stat_dir_slash="guessing yes";;
21033 esac
21034 else
21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036 /* end confdefs.h. */
21037 #include <sys/stat.h>
21038
21039 int
21040 main ()
21041 {
21042 struct stat st; return stat (".", &st) != stat ("./", &st);
21043 ;
21044 return 0;
21045 }
21046 _ACEOF
21047 if ac_fn_c_try_run "$LINENO"; then :
21048 gl_cv_func_stat_dir_slash=yes
21049 else
21050 gl_cv_func_stat_dir_slash=no
21051 fi
21052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21053 conftest.$ac_objext conftest.beam conftest.$ac_ext
21054 fi
21055
21056 fi
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21058 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21060 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21061 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21062 $as_echo_n "(cached) " >&6
21063 else
21064 touch conftest.tmp
21065 # Assume that if we have lstat, we can also check symlinks.
21066 if test $ac_cv_func_lstat = yes; then
21067 ln -s conftest.tmp conftest.lnk
21068 fi
21069 if test "$cross_compiling" = yes; then :
21070 gl_cv_func_stat_file_slash="guessing no"
21071 else
21072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21073 /* end confdefs.h. */
21074 #include <sys/stat.h>
21075
21076 int
21077 main ()
21078 {
21079 int result = 0;
21080 struct stat st;
21081 if (!stat ("conftest.tmp/", &st))
21082 result |= 1;
21083 #if HAVE_LSTAT
21084 if (!stat ("conftest.lnk/", &st))
21085 result |= 2;
21086 #endif
21087 return result;
21088
21089 ;
21090 return 0;
21091 }
21092 _ACEOF
21093 if ac_fn_c_try_run "$LINENO"; then :
21094 gl_cv_func_stat_file_slash=yes
21095 else
21096 gl_cv_func_stat_file_slash=no
21097 fi
21098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21099 conftest.$ac_objext conftest.beam conftest.$ac_ext
21100 fi
21101
21102 rm -f conftest.tmp conftest.lnk
21103 fi
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21105 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21106 case $gl_cv_func_stat_dir_slash in
21107 *no) REPLACE_STAT=1
21108
21109 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21110 ;;
21111 esac
21112 case $gl_cv_func_stat_file_slash in
21113 *no) REPLACE_STAT=1
21114
21115 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21116 ;;
21117 esac
21118
21119 if test $REPLACE_STAT = 1; then
21120
21121
21122
21123
21124
21125
21126
21127
21128 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21129
21130
21131
21132 :
21133
21134 fi
21135
21136
21137
21138
21139
21140 GNULIB_STAT=1
21141
21142
21143
21144
21145
21146 gl_gnulib_enabled_stat=true
21147 if $condition; then
21148 func_gl_gnulib_m4code_dosname
21149 fi
21150 if $condition; then
21151 func_gl_gnulib_m4code_verify
21152 fi
21153 fi
21154 }
21155 func_gl_gnulib_m4code_strtoll ()
21156 {
21157 if ! $gl_gnulib_enabled_strtoll; then
21158
21159
21160
21161 if test "$ac_cv_type_long_long_int" = yes; then
21162 for ac_func in strtoll
21163 do :
21164 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21165 if test "x$ac_cv_func_strtoll" = x""yes; then :
21166 cat >>confdefs.h <<_ACEOF
21167 #define HAVE_STRTOLL 1
21168 _ACEOF
21169
21170 fi
21171 done
21172
21173 if test $ac_cv_func_strtoll = no; then
21174 HAVE_STRTOLL=0
21175 fi
21176 fi
21177
21178 if test $HAVE_STRTOLL = 0; then
21179
21180
21181
21182
21183
21184
21185
21186
21187 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21188
21189
21190 :
21191
21192 fi
21193
21194
21195
21196
21197
21198 GNULIB_STRTOLL=1
21199
21200
21201
21202
21203
21204 gl_gnulib_enabled_strtoll=true
21205 fi
21206 }
21207 func_gl_gnulib_m4code_strtoull ()
21208 {
21209 if ! $gl_gnulib_enabled_strtoull; then
21210
21211
21212
21213 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21214 for ac_func in strtoull
21215 do :
21216 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21217 if test "x$ac_cv_func_strtoull" = x""yes; then :
21218 cat >>confdefs.h <<_ACEOF
21219 #define HAVE_STRTOULL 1
21220 _ACEOF
21221
21222 fi
21223 done
21224
21225 if test $ac_cv_func_strtoull = no; then
21226 HAVE_STRTOULL=0
21227 fi
21228 fi
21229
21230 if test $HAVE_STRTOULL = 0; then
21231
21232
21233
21234
21235
21236
21237
21238
21239 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21240
21241
21242 :
21243
21244 fi
21245
21246
21247
21248
21249
21250 GNULIB_STRTOULL=1
21251
21252
21253
21254
21255
21256 gl_gnulib_enabled_strtoull=true
21257 fi
21258 }
21259 func_gl_gnulib_m4code_verify ()
21260 {
21261 if ! $gl_gnulib_enabled_verify; then
21262 gl_gnulib_enabled_verify=true
21263 fi
21264 }
21265 if test $REPLACE_GETOPT = 1; then
21266 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21267 fi
21268 if test $REPLACE_LSTAT = 1; then
21269 func_gl_gnulib_m4code_dosname
21270 fi
21271 if test $REPLACE_LSTAT = 1; then
21272 func_gl_gnulib_m4code_stat
21273 fi
21274 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21275 func_gl_gnulib_m4code_sigprocmask
21276 fi
21277 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21278 func_gl_gnulib_m4code_stat
21279 fi
21280 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then
21281 func_gl_gnulib_m4code_verify
21282 fi
21283 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
21284 func_gl_gnulib_m4code_strtoll
21285 fi
21286 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
21287 func_gl_gnulib_m4code_verify
21288 fi
21289 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21290 func_gl_gnulib_m4code_strtoull
21291 fi
21292
21293 if $gl_gnulib_enabled_dosname; then
21294 gl_GNULIB_ENABLED_dosname_TRUE=
21295 gl_GNULIB_ENABLED_dosname_FALSE='#'
21296 else
21297 gl_GNULIB_ENABLED_dosname_TRUE='#'
21298 gl_GNULIB_ENABLED_dosname_FALSE=
21299 fi
21300
21301 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21302 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21303 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21304 else
21305 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21306 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21307 fi
21308
21309 if $gl_gnulib_enabled_sigprocmask; then
21310 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21311 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21312 else
21313 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21314 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21315 fi
21316
21317 if $gl_gnulib_enabled_stat; then
21318 gl_GNULIB_ENABLED_stat_TRUE=
21319 gl_GNULIB_ENABLED_stat_FALSE='#'
21320 else
21321 gl_GNULIB_ENABLED_stat_TRUE='#'
21322 gl_GNULIB_ENABLED_stat_FALSE=
21323 fi
21324
21325 if $gl_gnulib_enabled_strtoll; then
21326 gl_GNULIB_ENABLED_strtoll_TRUE=
21327 gl_GNULIB_ENABLED_strtoll_FALSE='#'
21328 else
21329 gl_GNULIB_ENABLED_strtoll_TRUE='#'
21330 gl_GNULIB_ENABLED_strtoll_FALSE=
21331 fi
21332
21333 if $gl_gnulib_enabled_strtoull; then
21334 gl_GNULIB_ENABLED_strtoull_TRUE=
21335 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21336 else
21337 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21338 gl_GNULIB_ENABLED_strtoull_FALSE=
21339 fi
21340
21341 if $gl_gnulib_enabled_verify; then
21342 gl_GNULIB_ENABLED_verify_TRUE=
21343 gl_GNULIB_ENABLED_verify_FALSE='#'
21344 else
21345 gl_GNULIB_ENABLED_verify_TRUE='#'
21346 gl_GNULIB_ENABLED_verify_FALSE=
21347 fi
21348
21349 # End of code from modules
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359 gltests_libdeps=
21360 gltests_ltlibdeps=
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370 gl_source_base='tests'
21371 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
21372
21373 gl_module_indicator_condition=$gltests_WITNESS
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384 LIBGNU_LIBDEPS="$gl_libdeps"
21385
21386 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
21387
21388
21389
21390 case "$opsys" in
21391 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
21392
21393 darwin)
21394 ## The -headerpad option tells ld (see man page) to leave room at the
21395 ## end of the header for adding load commands. Needed for dumping.
21396 ## 0x690 is the total size of 30 segment load commands (at 56
21397 ## each); under Cocoa 31 commands are required.
21398 if test "$HAVE_NS" = "yes"; then
21399 libs_nsgui="-framework AppKit"
21400 headerpad_extra=6C8
21401 else
21402 libs_nsgui=
21403 headerpad_extra=690
21404 fi
21405 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21406
21407 ## This is here because src/Makefile.in did some extra fiddling around
21408 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21409 ## #ifndef LD_SWITCH_SYSTEM
21410 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21411 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21412 ## not using gcc, darwin system not on an alpha (ie darwin, since
21413 ## darwin + alpha does not occur).
21414 ## Because this was done in src/Makefile.in, the resulting part of
21415 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21416 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21417 ## rather than LD_SWITCH_SYSTEM.
21418 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21419 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
21420 ;;
21421
21422 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
21423 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
21424 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
21425 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21426 ## had different values in configure (in ac_link) and src/Makefile.in.
21427 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21428 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
21429
21430 *) LD_SWITCH_SYSTEM_TEMACS= ;;
21431 esac
21432
21433 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21434 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21435 fi
21436
21437
21438
21439
21440 LD_FIRSTFLAG=
21441 ORDINARY_LINK=
21442 case "$opsys" in
21443 ## gnu: GNU needs its own crt0.
21444 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
21445
21446 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21447 ## library search parth, i.e. it won't search /usr/lib for libc and
21448 ## friends. Using -nostartfiles instead avoids this problem, and
21449 ## will also work on earlier NetBSD releases.
21450 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
21451
21452 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21453 ## MkLinux/LinuxPPC needs this.
21454 ## ibms390x only supports opsys = gnu-linux so it can be added here.
21455 gnu-*)
21456 case "$machine" in
21457 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
21458 esac
21459 ;;
21460 esac
21461
21462
21463 if test "x$ORDINARY_LINK" = "xyes"; then
21464
21465 LD_FIRSTFLAG=""
21466
21467 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21468
21469
21470 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21471 ## freebsd, gnu-* not on macppc|ibms390x.
21472 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21473
21474 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21475 ## places that are difficult to figure out at make time. Fortunately,
21476 ## these same versions allow you to pass arbitrary flags on to the
21477 ## linker, so there is no reason not to use it as a linker.
21478 ##
21479 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21480 ## searching for libraries in its internal directories, so we have to
21481 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21482 LD_FIRSTFLAG="-nostdlib"
21483 fi
21484
21485 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21486 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
21487
21488
21489
21490
21491 ## FIXME? The logic here is not precisely the same as that above.
21492 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21493 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21494 LIB_GCC=
21495 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21496
21497 case "$opsys" in
21498 freebsd|netbsd|openbsd) LIB_GCC= ;;
21499
21500 gnu-*)
21501 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21502 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21503 case $host_cpu in
21504 arm*)
21505 LIB_GCC="-lgcc_s"
21506 ;;
21507 *)
21508 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21509 ## immediately undefine it again and redefine it to empty.
21510 ## Was the C_SWITCH_X_SITE part really necessary?
21511 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21512 LIB_GCC=
21513 ;;
21514 esac
21515 ;;
21516
21517 ## Ask GCC where to find libgcc.a.
21518 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21519 esac
21520 fi
21521
21522
21523 ## If we're using X11/GNUstep, define some consequences.
21524 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
21525
21526 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21527
21528
21529 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21530
21531 fi
21532
21533
21534
21535
21536 #### Report on what we decided to do.
21537 #### Report GTK as a toolkit, even if it doesn't use Xt.
21538 #### It makes printing result more understandable as using GTK sets
21539 #### toolkit_scroll_bars to yes by default.
21540 if test "${HAVE_GTK}" = "yes"; then
21541 USE_X_TOOLKIT=GTK
21542 fi
21543
21544 and_machfile=
21545 if test -n "$machfile"; then
21546 and_machfile=" and \`${machfile}'"
21547 fi
21548
21549 echo "
21550 Configured for \`${canonical}'.
21551
21552 Where should the build process find the source code? ${srcdir}
21553 What operating system and machine description files should Emacs use?
21554 \`${opsysfile}'${and_machfile}
21555 What compiler should emacs be built with? ${CC} ${CFLAGS}
21556 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21557 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21558 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21559 What window system should Emacs use? ${window_system}
21560 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21561
21562 if test -n "${x_includes}"; then
21563 echo " Where do we find X Windows header files? ${x_includes}"
21564 else
21565 echo " Where do we find X Windows header files? Standard dirs"
21566 fi
21567 if test -n "${x_libraries}"; then
21568 echo " Where do we find X Windows libraries? ${x_libraries}"
21569 else
21570 echo " Where do we find X Windows libraries? Standard dirs"
21571 fi
21572
21573 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21574 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21575 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21576 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21577 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21578 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21579 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21580 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21581
21582 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21583 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21584 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21585 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21586 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21587 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
21588 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21589
21590 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21591 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21592 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21593 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21594
21595 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21596 echo
21597
21598 if test $USE_XASSERTS = yes; then
21599 echo " Compiling with asserts turned on."
21600 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21601 fi
21602
21603 echo
21604
21605 if test "$HAVE_NS" = "yes"; then
21606 echo
21607 echo "You must run \"make install\" in order to test the built application.
21608 The installed application will go to nextstep/Emacs.app and can be
21609 run or moved from there."
21610 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21611 echo "The application will be fully self-contained."
21612 else
21613 echo "The lisp resources for the application will be installed under ${prefix}.
21614 You may need to run \"make install\" with sudo. The application will fail
21615 to run if these resources are not installed."
21616 fi
21617 echo
21618 fi
21619
21620
21621 # Remove any trailing slashes in these variables.
21622 test "${prefix}" != NONE &&
21623 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21624 test "${exec_prefix}" != NONE &&
21625 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21626
21627 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"
21628
21629 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"
21630
21631
21632 opt_makefile=test/automated/Makefile
21633
21634 if test -f $srcdir/${opt_makefile}.in; then
21635 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21636 ac_config_files="$ac_config_files test/automated/Makefile"
21637
21638 fi
21639
21640 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21641
21642
21643
21644 ac_config_commands="$ac_config_commands mkdirs"
21645
21646
21647 ac_config_commands="$ac_config_commands epaths"
21648
21649
21650 ac_config_commands="$ac_config_commands gdbinit"
21651
21652
21653 cat >confcache <<\_ACEOF
21654 # This file is a shell script that caches the results of configure
21655 # tests run on this system so they can be shared between configure
21656 # scripts and configure runs, see configure's option --config-cache.
21657 # It is not useful on other systems. If it contains results you don't
21658 # want to keep, you may remove or edit it.
21659 #
21660 # config.status only pays attention to the cache file if you give it
21661 # the --recheck option to rerun configure.
21662 #
21663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21665 # following values.
21666
21667 _ACEOF
21668
21669 # The following way of writing the cache mishandles newlines in values,
21670 # but we know of no workaround that is simple, portable, and efficient.
21671 # So, we kill variables containing newlines.
21672 # Ultrix sh set writes to stderr and can't be redirected directly,
21673 # and sets the high bit in the cache file unless we assign to the vars.
21674 (
21675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21676 eval ac_val=\$$ac_var
21677 case $ac_val in #(
21678 *${as_nl}*)
21679 case $ac_var in #(
21680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21682 esac
21683 case $ac_var in #(
21684 _ | IFS | as_nl) ;; #(
21685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21686 *) { eval $ac_var=; unset $ac_var;} ;;
21687 esac ;;
21688 esac
21689 done
21690
21691 (set) 2>&1 |
21692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21693 *${as_nl}ac_space=\ *)
21694 # `set' does not quote correctly, so add quotes: double-quote
21695 # substitution turns \\\\ into \\, and sed turns \\ into \.
21696 sed -n \
21697 "s/'/'\\\\''/g;
21698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21699 ;; #(
21700 *)
21701 # `set' quotes correctly as required by POSIX, so do not add quotes.
21702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21703 ;;
21704 esac |
21705 sort
21706 ) |
21707 sed '
21708 /^ac_cv_env_/b end
21709 t clear
21710 :clear
21711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21712 t end
21713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21714 :end' >>confcache
21715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21716 if test -w "$cache_file"; then
21717 test "x$cache_file" != "x/dev/null" &&
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21719 $as_echo "$as_me: updating cache $cache_file" >&6;}
21720 cat confcache >$cache_file
21721 else
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21723 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21724 fi
21725 fi
21726 rm -f confcache
21727
21728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21729 # Let make expand exec_prefix.
21730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21731
21732 DEFS=-DHAVE_CONFIG_H
21733
21734 ac_libobjs=
21735 ac_ltlibobjs=
21736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21737 # 1. Remove the extension, and $U if already installed.
21738 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21739 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21740 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21741 # will be set to the directory where LIBOBJS objects are built.
21742 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21743 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21744 done
21745 LIBOBJS=$ac_libobjs
21746
21747 LTLIBOBJS=$ac_ltlibobjs
21748
21749
21750 if test -n "$EXEEXT"; then
21751 am__EXEEXT_TRUE=
21752 am__EXEEXT_FALSE='#'
21753 else
21754 am__EXEEXT_TRUE='#'
21755 am__EXEEXT_FALSE=
21756 fi
21757
21758 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21759 as_fn_error "conditional \"AMDEP\" was never defined.
21760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21761 fi
21762 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21763 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21765 fi
21766
21767 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21768 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21770 fi
21771 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21772 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21774 fi
21775
21776 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21777 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21779 fi
21780 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21781 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21783 fi
21784 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21785 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21787 fi
21788 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21789 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21791 fi
21792 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21793 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21795 fi
21796 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21797 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21799 fi
21800 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
21801 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
21802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21803 fi
21804 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21805 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21807 fi
21808 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
21809 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
21810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21811 fi
21812 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21813 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21815 fi
21816 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21817 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21819 fi
21820
21821 gl_libobjs=
21822 gl_ltlibobjs=
21823 if test -n "$gl_LIBOBJS"; then
21824 # Remove the extension.
21825 sed_drop_objext='s/\.o$//;s/\.obj$//'
21826 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21827 gl_libobjs="$gl_libobjs $i.$ac_objext"
21828 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21829 done
21830 fi
21831 gl_LIBOBJS=$gl_libobjs
21832
21833 gl_LTLIBOBJS=$gl_ltlibobjs
21834
21835
21836
21837 gltests_libobjs=
21838 gltests_ltlibobjs=
21839 if test -n "$gltests_LIBOBJS"; then
21840 # Remove the extension.
21841 sed_drop_objext='s/\.o$//;s/\.obj$//'
21842 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21843 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21844 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21845 done
21846 fi
21847 gltests_LIBOBJS=$gltests_libobjs
21848
21849 gltests_LTLIBOBJS=$gltests_ltlibobjs
21850
21851
21852
21853 : ${CONFIG_STATUS=./config.status}
21854 ac_write_fail=0
21855 ac_clean_files_save=$ac_clean_files
21856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21858 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21859 as_write_fail=0
21860 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21861 #! $SHELL
21862 # Generated by $as_me.
21863 # Run this file to recreate the current configuration.
21864 # Compiler output produced by configure, useful for debugging
21865 # configure, is in config.log if it exists.
21866
21867 debug=false
21868 ac_cs_recheck=false
21869 ac_cs_silent=false
21870
21871 SHELL=\${CONFIG_SHELL-$SHELL}
21872 export SHELL
21873 _ASEOF
21874 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21875 ## -------------------- ##
21876 ## M4sh Initialization. ##
21877 ## -------------------- ##
21878
21879 # Be more Bourne compatible
21880 DUALCASE=1; export DUALCASE # for MKS sh
21881 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21882 emulate sh
21883 NULLCMD=:
21884 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21885 # is contrary to our usage. Disable this feature.
21886 alias -g '${1+"$@"}'='"$@"'
21887 setopt NO_GLOB_SUBST
21888 else
21889 case `(set -o) 2>/dev/null` in #(
21890 *posix*) :
21891 set -o posix ;; #(
21892 *) :
21893 ;;
21894 esac
21895 fi
21896
21897
21898 as_nl='
21899 '
21900 export as_nl
21901 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21902 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21905 # Prefer a ksh shell builtin over an external printf program on Solaris,
21906 # but without wasting forks for bash or zsh.
21907 if test -z "$BASH_VERSION$ZSH_VERSION" \
21908 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21909 as_echo='print -r --'
21910 as_echo_n='print -rn --'
21911 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21912 as_echo='printf %s\n'
21913 as_echo_n='printf %s'
21914 else
21915 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21916 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21917 as_echo_n='/usr/ucb/echo -n'
21918 else
21919 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21920 as_echo_n_body='eval
21921 arg=$1;
21922 case $arg in #(
21923 *"$as_nl"*)
21924 expr "X$arg" : "X\\(.*\\)$as_nl";
21925 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21926 esac;
21927 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21928 '
21929 export as_echo_n_body
21930 as_echo_n='sh -c $as_echo_n_body as_echo'
21931 fi
21932 export as_echo_body
21933 as_echo='sh -c $as_echo_body as_echo'
21934 fi
21935
21936 # The user is always right.
21937 if test "${PATH_SEPARATOR+set}" != set; then
21938 PATH_SEPARATOR=:
21939 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21940 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21941 PATH_SEPARATOR=';'
21942 }
21943 fi
21944
21945
21946 # IFS
21947 # We need space, tab and new line, in precisely that order. Quoting is
21948 # there to prevent editors from complaining about space-tab.
21949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21950 # splitting by setting IFS to empty value.)
21951 IFS=" "" $as_nl"
21952
21953 # Find who we are. Look in the path if we contain no directory separator.
21954 case $0 in #((
21955 *[\\/]* ) as_myself=$0 ;;
21956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21957 for as_dir in $PATH
21958 do
21959 IFS=$as_save_IFS
21960 test -z "$as_dir" && as_dir=.
21961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21962 done
21963 IFS=$as_save_IFS
21964
21965 ;;
21966 esac
21967 # We did not find ourselves, most probably we were run as `sh COMMAND'
21968 # in which case we are not to be found in the path.
21969 if test "x$as_myself" = x; then
21970 as_myself=$0
21971 fi
21972 if test ! -f "$as_myself"; then
21973 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21974 exit 1
21975 fi
21976
21977 # Unset variables that we do not need and which cause bugs (e.g. in
21978 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21979 # suppresses any "Segmentation fault" message there. '((' could
21980 # trigger a bug in pdksh 5.2.14.
21981 for as_var in BASH_ENV ENV MAIL MAILPATH
21982 do eval test x\${$as_var+set} = xset \
21983 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21984 done
21985 PS1='$ '
21986 PS2='> '
21987 PS4='+ '
21988
21989 # NLS nuisances.
21990 LC_ALL=C
21991 export LC_ALL
21992 LANGUAGE=C
21993 export LANGUAGE
21994
21995 # CDPATH.
21996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21997
21998
21999 # as_fn_error ERROR [LINENO LOG_FD]
22000 # ---------------------------------
22001 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22002 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22003 # script with status $?, using 1 if that was 0.
22004 as_fn_error ()
22005 {
22006 as_status=$?; test $as_status -eq 0 && as_status=1
22007 if test "$3"; then
22008 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22009 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22010 fi
22011 $as_echo "$as_me: error: $1" >&2
22012 as_fn_exit $as_status
22013 } # as_fn_error
22014
22015
22016 # as_fn_set_status STATUS
22017 # -----------------------
22018 # Set $? to STATUS, without forking.
22019 as_fn_set_status ()
22020 {
22021 return $1
22022 } # as_fn_set_status
22023
22024 # as_fn_exit STATUS
22025 # -----------------
22026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22027 as_fn_exit ()
22028 {
22029 set +e
22030 as_fn_set_status $1
22031 exit $1
22032 } # as_fn_exit
22033
22034 # as_fn_unset VAR
22035 # ---------------
22036 # Portably unset VAR.
22037 as_fn_unset ()
22038 {
22039 { eval $1=; unset $1;}
22040 }
22041 as_unset=as_fn_unset
22042 # as_fn_append VAR VALUE
22043 # ----------------------
22044 # Append the text in VALUE to the end of the definition contained in VAR. Take
22045 # advantage of any shell optimizations that allow amortized linear growth over
22046 # repeated appends, instead of the typical quadratic growth present in naive
22047 # implementations.
22048 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22049 eval 'as_fn_append ()
22050 {
22051 eval $1+=\$2
22052 }'
22053 else
22054 as_fn_append ()
22055 {
22056 eval $1=\$$1\$2
22057 }
22058 fi # as_fn_append
22059
22060 # as_fn_arith ARG...
22061 # ------------------
22062 # Perform arithmetic evaluation on the ARGs, and store the result in the
22063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22064 # must be portable across $(()) and expr.
22065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22066 eval 'as_fn_arith ()
22067 {
22068 as_val=$(( $* ))
22069 }'
22070 else
22071 as_fn_arith ()
22072 {
22073 as_val=`expr "$@" || test $? -eq 1`
22074 }
22075 fi # as_fn_arith
22076
22077
22078 if expr a : '\(a\)' >/dev/null 2>&1 &&
22079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22080 as_expr=expr
22081 else
22082 as_expr=false
22083 fi
22084
22085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22086 as_basename=basename
22087 else
22088 as_basename=false
22089 fi
22090
22091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22092 as_dirname=dirname
22093 else
22094 as_dirname=false
22095 fi
22096
22097 as_me=`$as_basename -- "$0" ||
22098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22099 X"$0" : 'X\(//\)$' \| \
22100 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22101 $as_echo X/"$0" |
22102 sed '/^.*\/\([^/][^/]*\)\/*$/{
22103 s//\1/
22104 q
22105 }
22106 /^X\/\(\/\/\)$/{
22107 s//\1/
22108 q
22109 }
22110 /^X\/\(\/\).*/{
22111 s//\1/
22112 q
22113 }
22114 s/.*/./; q'`
22115
22116 # Avoid depending upon Character Ranges.
22117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22120 as_cr_digits='0123456789'
22121 as_cr_alnum=$as_cr_Letters$as_cr_digits
22122
22123 ECHO_C= ECHO_N= ECHO_T=
22124 case `echo -n x` in #(((((
22125 -n*)
22126 case `echo 'xy\c'` in
22127 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22128 xy) ECHO_C='\c';;
22129 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22130 ECHO_T=' ';;
22131 esac;;
22132 *)
22133 ECHO_N='-n';;
22134 esac
22135
22136 rm -f conf$$ conf$$.exe conf$$.file
22137 if test -d conf$$.dir; then
22138 rm -f conf$$.dir/conf$$.file
22139 else
22140 rm -f conf$$.dir
22141 mkdir conf$$.dir 2>/dev/null
22142 fi
22143 if (echo >conf$$.file) 2>/dev/null; then
22144 if ln -s conf$$.file conf$$ 2>/dev/null; then
22145 as_ln_s='ln -s'
22146 # ... but there are two gotchas:
22147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22149 # In both cases, we have to default to `cp -p'.
22150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22151 as_ln_s='cp -p'
22152 elif ln conf$$.file conf$$ 2>/dev/null; then
22153 as_ln_s=ln
22154 else
22155 as_ln_s='cp -p'
22156 fi
22157 else
22158 as_ln_s='cp -p'
22159 fi
22160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22161 rmdir conf$$.dir 2>/dev/null
22162
22163
22164 # as_fn_mkdir_p
22165 # -------------
22166 # Create "$as_dir" as a directory, including parents if necessary.
22167 as_fn_mkdir_p ()
22168 {
22169
22170 case $as_dir in #(
22171 -*) as_dir=./$as_dir;;
22172 esac
22173 test -d "$as_dir" || eval $as_mkdir_p || {
22174 as_dirs=
22175 while :; do
22176 case $as_dir in #(
22177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22178 *) as_qdir=$as_dir;;
22179 esac
22180 as_dirs="'$as_qdir' $as_dirs"
22181 as_dir=`$as_dirname -- "$as_dir" ||
22182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22183 X"$as_dir" : 'X\(//\)[^/]' \| \
22184 X"$as_dir" : 'X\(//\)$' \| \
22185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22186 $as_echo X"$as_dir" |
22187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22188 s//\1/
22189 q
22190 }
22191 /^X\(\/\/\)[^/].*/{
22192 s//\1/
22193 q
22194 }
22195 /^X\(\/\/\)$/{
22196 s//\1/
22197 q
22198 }
22199 /^X\(\/\).*/{
22200 s//\1/
22201 q
22202 }
22203 s/.*/./; q'`
22204 test -d "$as_dir" && break
22205 done
22206 test -z "$as_dirs" || eval "mkdir $as_dirs"
22207 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22208
22209
22210 } # as_fn_mkdir_p
22211 if mkdir -p . 2>/dev/null; then
22212 as_mkdir_p='mkdir -p "$as_dir"'
22213 else
22214 test -d ./-p && rmdir ./-p
22215 as_mkdir_p=false
22216 fi
22217
22218 if test -x / >/dev/null 2>&1; then
22219 as_test_x='test -x'
22220 else
22221 if ls -dL / >/dev/null 2>&1; then
22222 as_ls_L_option=L
22223 else
22224 as_ls_L_option=
22225 fi
22226 as_test_x='
22227 eval sh -c '\''
22228 if test -d "$1"; then
22229 test -d "$1/.";
22230 else
22231 case $1 in #(
22232 -*)set "./$1";;
22233 esac;
22234 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22235 ???[sx]*):;;*)false;;esac;fi
22236 '\'' sh
22237 '
22238 fi
22239 as_executable_p=$as_test_x
22240
22241 # Sed expression to map a string onto a valid CPP name.
22242 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22243
22244 # Sed expression to map a string onto a valid variable name.
22245 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22246
22247
22248 exec 6>&1
22249 ## ----------------------------------- ##
22250 ## Main body of $CONFIG_STATUS script. ##
22251 ## ----------------------------------- ##
22252 _ASEOF
22253 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22254
22255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22256 # Save the log message, to keep $0 and so on meaningful, and to
22257 # report actual input values of CONFIG_FILES etc. instead of their
22258 # values after options handling.
22259 ac_log="
22260 This file was extended by emacs $as_me 24.0.50, which was
22261 generated by GNU Autoconf 2.65. Invocation command line was
22262
22263 CONFIG_FILES = $CONFIG_FILES
22264 CONFIG_HEADERS = $CONFIG_HEADERS
22265 CONFIG_LINKS = $CONFIG_LINKS
22266 CONFIG_COMMANDS = $CONFIG_COMMANDS
22267 $ $0 $@
22268
22269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22270 "
22271
22272 _ACEOF
22273
22274 case $ac_config_files in *"
22275 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22276 esac
22277
22278 case $ac_config_headers in *"
22279 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22280 esac
22281
22282
22283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22284 # Files that config.status was made for.
22285 config_files="$ac_config_files"
22286 config_headers="$ac_config_headers"
22287 config_commands="$ac_config_commands"
22288
22289 _ACEOF
22290
22291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22292 ac_cs_usage="\
22293 \`$as_me' instantiates files and other configuration actions
22294 from templates according to the current configuration. Unless the files
22295 and actions are specified as TAGs, all are instantiated by default.
22296
22297 Usage: $0 [OPTION]... [TAG]...
22298
22299 -h, --help print this help, then exit
22300 -V, --version print version number and configuration settings, then exit
22301 --config print configuration, then exit
22302 -q, --quiet, --silent
22303 do not print progress messages
22304 -d, --debug don't remove temporary files
22305 --recheck update $as_me by reconfiguring in the same conditions
22306 --file=FILE[:TEMPLATE]
22307 instantiate the configuration file FILE
22308 --header=FILE[:TEMPLATE]
22309 instantiate the configuration header FILE
22310
22311 Configuration files:
22312 $config_files
22313
22314 Configuration headers:
22315 $config_headers
22316
22317 Configuration commands:
22318 $config_commands
22319
22320 Report bugs to the package provider."
22321
22322 _ACEOF
22323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22324 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22325 ac_cs_version="\\
22326 emacs config.status 24.0.50
22327 configured by $0, generated by GNU Autoconf 2.65,
22328 with options \\"\$ac_cs_config\\"
22329
22330 Copyright (C) 2009 Free Software Foundation, Inc.
22331 This config.status script is free software; the Free Software Foundation
22332 gives unlimited permission to copy, distribute and modify it."
22333
22334 ac_pwd='$ac_pwd'
22335 srcdir='$srcdir'
22336 INSTALL='$INSTALL'
22337 MKDIR_P='$MKDIR_P'
22338 AWK='$AWK'
22339 test -n "\$AWK" || AWK=awk
22340 _ACEOF
22341
22342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22343 # The default lists apply if the user does not specify any file.
22344 ac_need_defaults=:
22345 while test $# != 0
22346 do
22347 case $1 in
22348 --*=*)
22349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22351 ac_shift=:
22352 ;;
22353 *)
22354 ac_option=$1
22355 ac_optarg=$2
22356 ac_shift=shift
22357 ;;
22358 esac
22359
22360 case $ac_option in
22361 # Handling of the options.
22362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22363 ac_cs_recheck=: ;;
22364 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22365 $as_echo "$ac_cs_version"; exit ;;
22366 --config | --confi | --conf | --con | --co | --c )
22367 $as_echo "$ac_cs_config"; exit ;;
22368 --debug | --debu | --deb | --de | --d | -d )
22369 debug=: ;;
22370 --file | --fil | --fi | --f )
22371 $ac_shift
22372 case $ac_optarg in
22373 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22374 esac
22375 as_fn_append CONFIG_FILES " '$ac_optarg'"
22376 ac_need_defaults=false;;
22377 --header | --heade | --head | --hea )
22378 $ac_shift
22379 case $ac_optarg in
22380 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22381 esac
22382 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22383 ac_need_defaults=false;;
22384 --he | --h)
22385 # Conflict between --help and --header
22386 as_fn_error "ambiguous option: \`$1'
22387 Try \`$0 --help' for more information.";;
22388 --help | --hel | -h )
22389 $as_echo "$ac_cs_usage"; exit ;;
22390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22391 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22392 ac_cs_silent=: ;;
22393
22394 # This is an error.
22395 -*) as_fn_error "unrecognized option: \`$1'
22396 Try \`$0 --help' for more information." ;;
22397
22398 *) as_fn_append ac_config_targets " $1"
22399 ac_need_defaults=false ;;
22400
22401 esac
22402 shift
22403 done
22404
22405 ac_configure_extra_args=
22406
22407 if $ac_cs_silent; then
22408 exec 6>/dev/null
22409 ac_configure_extra_args="$ac_configure_extra_args --silent"
22410 fi
22411
22412 _ACEOF
22413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22414 if \$ac_cs_recheck; then
22415 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22416 shift
22417 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22418 CONFIG_SHELL='$SHELL'
22419 export CONFIG_SHELL
22420 exec "\$@"
22421 fi
22422
22423 _ACEOF
22424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22425 exec 5>>config.log
22426 {
22427 echo
22428 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22429 ## Running $as_me. ##
22430 _ASBOX
22431 $as_echo "$ac_log"
22432 } >&5
22433
22434 _ACEOF
22435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22436 #
22437 # INIT-COMMANDS
22438 #
22439 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22440 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
22441
22442 _ACEOF
22443
22444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22445
22446 # Handling of arguments.
22447 for ac_config_target in $ac_config_targets
22448 do
22449 case $ac_config_target in
22450 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22451 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22452 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22453 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22454 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
22455 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22456 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
22457 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
22458 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
22459 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
22460 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22461 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22462 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22463 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22464 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
22465 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
22466 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
22467 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
22468
22469 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22470 esac
22471 done
22472
22473
22474 # If the user did not use the arguments to specify the items to instantiate,
22475 # then the envvar interface is used. Set only those that are not.
22476 # We use the long form for the default assignment because of an extremely
22477 # bizarre bug on SunOS 4.1.3.
22478 if $ac_need_defaults; then
22479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22480 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22481 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22482 fi
22483
22484 # Have a temporary directory for convenience. Make it in the build tree
22485 # simply because there is no reason against having it here, and in addition,
22486 # creating and moving files from /tmp can sometimes cause problems.
22487 # Hook for its removal unless debugging.
22488 # Note that there is a small window in which the directory will not be cleaned:
22489 # after its creation but before its name has been assigned to `$tmp'.
22490 $debug ||
22491 {
22492 tmp=
22493 trap 'exit_status=$?
22494 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22495 ' 0
22496 trap 'as_fn_exit 1' 1 2 13 15
22497 }
22498 # Create a (secure) tmp directory for tmp files.
22499
22500 {
22501 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22502 test -n "$tmp" && test -d "$tmp"
22503 } ||
22504 {
22505 tmp=./conf$$-$RANDOM
22506 (umask 077 && mkdir "$tmp")
22507 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22508
22509 # Set up the scripts for CONFIG_FILES section.
22510 # No need to generate them if there are no CONFIG_FILES.
22511 # This happens for instance with `./config.status config.h'.
22512 if test -n "$CONFIG_FILES"; then
22513
22514 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
22515 ac_cs_awk_getline=:
22516 ac_cs_awk_pipe_init=
22517 ac_cs_awk_read_file='
22518 while ((getline aline < (F[key])) > 0)
22519 print(aline)
22520 close(F[key])'
22521 ac_cs_awk_pipe_fini=
22522 else
22523 ac_cs_awk_getline=false
22524 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
22525 ac_cs_awk_read_file='
22526 print "|#_!!_#|"
22527 print "cat " F[key] " &&"
22528 '$ac_cs_awk_pipe_init
22529 # The final `:' finishes the AND list.
22530 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
22531 fi
22532 ac_cr=`echo X | tr X '\015'`
22533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22534 # But we know of no other shell where ac_cr would be empty at this
22535 # point, so we can use a bashism as a fallback.
22536 if test "x$ac_cr" = x; then
22537 eval ac_cr=\$\'\\r\'
22538 fi
22539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22541 ac_cs_awk_cr='\r'
22542 else
22543 ac_cs_awk_cr=$ac_cr
22544 fi
22545
22546 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22547 _ACEOF
22548
22549 # Create commands to substitute file output variables.
22550 {
22551 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22552 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22553 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
22554 echo "_ACAWK" &&
22555 echo "_ACEOF"
22556 } >conf$$files.sh &&
22557 . ./conf$$files.sh ||
22558 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22559 rm -f conf$$files.sh
22560
22561 {
22562 echo "cat >conf$$subs.awk <<_ACEOF" &&
22563 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22564 echo "_ACEOF"
22565 } >conf$$subs.sh ||
22566 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22567 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22568 ac_delim='%!_!# '
22569 for ac_last_try in false false false false false :; do
22570 . ./conf$$subs.sh ||
22571 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22572
22573 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22574 if test $ac_delim_n = $ac_delim_num; then
22575 break
22576 elif $ac_last_try; then
22577 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22578 else
22579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22580 fi
22581 done
22582 rm -f conf$$subs.sh
22583
22584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22585 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22586 _ACEOF
22587 sed -n '
22588 h
22589 s/^/S["/; s/!.*/"]=/
22590 p
22591 g
22592 s/^[^!]*!//
22593 :repl
22594 t repl
22595 s/'"$ac_delim"'$//
22596 t delim
22597 :nl
22598 h
22599 s/\(.\{148\}\)..*/\1/
22600 t more1
22601 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22602 p
22603 n
22604 b repl
22605 :more1
22606 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22607 p
22608 g
22609 s/.\{148\}//
22610 t nl
22611 :delim
22612 h
22613 s/\(.\{148\}\)..*/\1/
22614 t more2
22615 s/["\\]/\\&/g; s/^/"/; s/$/"/
22616 p
22617 b
22618 :more2
22619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22620 p
22621 g
22622 s/.\{148\}//
22623 t delim
22624 ' <conf$$subs.awk | sed '
22625 /^[^""]/{
22626 N
22627 s/\n//
22628 }
22629 ' >>$CONFIG_STATUS || ac_write_fail=1
22630 rm -f conf$$subs.awk
22631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22632 _ACAWK
22633 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22634 for (key in S) S_is_set[key] = 1
22635 FS = "\a"
22636 \$ac_cs_awk_pipe_init
22637 }
22638 {
22639 line = $ 0
22640 nfields = split(line, field, "@")
22641 substed = 0
22642 len = length(field[1])
22643 for (i = 2; i < nfields; i++) {
22644 key = field[i]
22645 keylen = length(key)
22646 if (S_is_set[key]) {
22647 value = S[key]
22648 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22649 len += length(value) + length(field[++i])
22650 substed = 1
22651 } else
22652 len += 1 + keylen
22653 }
22654 if (nfields == 3 && !substed) {
22655 key = field[2]
22656 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22657 \$ac_cs_awk_read_file
22658 next
22659 }
22660 }
22661 print line
22662 }
22663 \$ac_cs_awk_pipe_fini
22664 _ACAWK
22665 _ACEOF
22666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22667 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22668 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22669 else
22670 cat
22671 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22672 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22673 _ACEOF
22674
22675 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22676 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22677 # trailing colons and then remove the whole line if VPATH becomes empty
22678 # (actually we leave an empty line to preserve line numbers).
22679 if test "x$srcdir" = x.; then
22680 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22681 s/:*\$(srcdir):*/:/
22682 s/:*\${srcdir}:*/:/
22683 s/:*@srcdir@:*/:/
22684 s/^\([^=]*=[ ]*\):*/\1/
22685 s/:*$//
22686 s/^[^=]*=[ ]*$//
22687 }'
22688 fi
22689
22690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22691 fi # test -n "$CONFIG_FILES"
22692
22693 # Set up the scripts for CONFIG_HEADERS section.
22694 # No need to generate them if there are no CONFIG_HEADERS.
22695 # This happens for instance with `./config.status Makefile'.
22696 if test -n "$CONFIG_HEADERS"; then
22697 cat >"$tmp/defines.awk" <<\_ACAWK ||
22698 BEGIN {
22699 _ACEOF
22700
22701 # Transform confdefs.h into an awk script `defines.awk', embedded as
22702 # here-document in config.status, that substitutes the proper values into
22703 # config.h.in to produce config.h.
22704
22705 # Create a delimiter string that does not exist in confdefs.h, to ease
22706 # handling of long lines.
22707 ac_delim='%!_!# '
22708 for ac_last_try in false false :; do
22709 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22710 if test -z "$ac_t"; then
22711 break
22712 elif $ac_last_try; then
22713 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22714 else
22715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22716 fi
22717 done
22718
22719 # For the awk script, D is an array of macro values keyed by name,
22720 # likewise P contains macro parameters if any. Preserve backslash
22721 # newline sequences.
22722
22723 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22724 sed -n '
22725 s/.\{148\}/&'"$ac_delim"'/g
22726 t rset
22727 :rset
22728 s/^[ ]*#[ ]*define[ ][ ]*/ /
22729 t def
22730 d
22731 :def
22732 s/\\$//
22733 t bsnl
22734 s/["\\]/\\&/g
22735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22736 D["\1"]=" \3"/p
22737 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22738 d
22739 :bsnl
22740 s/["\\]/\\&/g
22741 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22742 D["\1"]=" \3\\\\\\n"\\/p
22743 t cont
22744 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22745 t cont
22746 d
22747 :cont
22748 n
22749 s/.\{148\}/&'"$ac_delim"'/g
22750 t clear
22751 :clear
22752 s/\\$//
22753 t bsnlc
22754 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22755 d
22756 :bsnlc
22757 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22758 b cont
22759 ' <confdefs.h | sed '
22760 s/'"$ac_delim"'/"\\\
22761 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22762
22763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22764 for (key in D) D_is_set[key] = 1
22765 FS = "\a"
22766 }
22767 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22768 line = \$ 0
22769 split(line, arg, " ")
22770 if (arg[1] == "#") {
22771 defundef = arg[2]
22772 mac1 = arg[3]
22773 } else {
22774 defundef = substr(arg[1], 2)
22775 mac1 = arg[2]
22776 }
22777 split(mac1, mac2, "(") #)
22778 macro = mac2[1]
22779 prefix = substr(line, 1, index(line, defundef) - 1)
22780 if (D_is_set[macro]) {
22781 # Preserve the white space surrounding the "#".
22782 print prefix "define", macro P[macro] D[macro]
22783 next
22784 } else {
22785 # Replace #undef with comments. This is necessary, for example,
22786 # in the case of _POSIX_SOURCE, which is predefined and required
22787 # on some systems where configure will not decide to define it.
22788 if (defundef == "undef") {
22789 print "/*", prefix defundef, macro, "*/"
22790 next
22791 }
22792 }
22793 }
22794 { print }
22795 _ACAWK
22796 _ACEOF
22797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22798 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22799 fi # test -n "$CONFIG_HEADERS"
22800
22801
22802 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22803 shift
22804 for ac_tag
22805 do
22806 case $ac_tag in
22807 :[FHLC]) ac_mode=$ac_tag; continue;;
22808 esac
22809 case $ac_mode$ac_tag in
22810 :[FHL]*:*);;
22811 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22812 :[FH]-) ac_tag=-:-;;
22813 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22814 esac
22815 ac_save_IFS=$IFS
22816 IFS=:
22817 set x $ac_tag
22818 IFS=$ac_save_IFS
22819 shift
22820 ac_file=$1
22821 shift
22822
22823 case $ac_mode in
22824 :L) ac_source=$1;;
22825 :[FH])
22826 ac_file_inputs=
22827 for ac_f
22828 do
22829 case $ac_f in
22830 -) ac_f="$tmp/stdin";;
22831 *) # Look for the file first in the build tree, then in the source tree
22832 # (if the path is not absolute). The absolute path cannot be DOS-style,
22833 # because $ac_f cannot contain `:'.
22834 test -f "$ac_f" ||
22835 case $ac_f in
22836 [\\/$]*) false;;
22837 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22838 esac ||
22839 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22840 esac
22841 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22842 as_fn_append ac_file_inputs " '$ac_f'"
22843 done
22844
22845 # Let's still pretend it is `configure' which instantiates (i.e., don't
22846 # use $as_me), people would be surprised to read:
22847 # /* config.h. Generated by config.status. */
22848 configure_input='Generated from '`
22849 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22850 `' by configure.'
22851 if test x"$ac_file" != x-; then
22852 configure_input="$ac_file. $configure_input"
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22854 $as_echo "$as_me: creating $ac_file" >&6;}
22855 fi
22856 # Neutralize special characters interpreted by sed in replacement strings.
22857 case $configure_input in #(
22858 *\&* | *\|* | *\\* )
22859 ac_sed_conf_input=`$as_echo "$configure_input" |
22860 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22861 *) ac_sed_conf_input=$configure_input;;
22862 esac
22863
22864 case $ac_tag in
22865 *:-:* | *:-) cat >"$tmp/stdin" \
22866 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22867 esac
22868 ;;
22869 esac
22870
22871 ac_dir=`$as_dirname -- "$ac_file" ||
22872 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22873 X"$ac_file" : 'X\(//\)[^/]' \| \
22874 X"$ac_file" : 'X\(//\)$' \| \
22875 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22876 $as_echo X"$ac_file" |
22877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22878 s//\1/
22879 q
22880 }
22881 /^X\(\/\/\)[^/].*/{
22882 s//\1/
22883 q
22884 }
22885 /^X\(\/\/\)$/{
22886 s//\1/
22887 q
22888 }
22889 /^X\(\/\).*/{
22890 s//\1/
22891 q
22892 }
22893 s/.*/./; q'`
22894 as_dir="$ac_dir"; as_fn_mkdir_p
22895 ac_builddir=.
22896
22897 case "$ac_dir" in
22898 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22899 *)
22900 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22901 # A ".." for each directory in $ac_dir_suffix.
22902 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22903 case $ac_top_builddir_sub in
22904 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22905 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22906 esac ;;
22907 esac
22908 ac_abs_top_builddir=$ac_pwd
22909 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22910 # for backward compatibility:
22911 ac_top_builddir=$ac_top_build_prefix
22912
22913 case $srcdir in
22914 .) # We are building in place.
22915 ac_srcdir=.
22916 ac_top_srcdir=$ac_top_builddir_sub
22917 ac_abs_top_srcdir=$ac_pwd ;;
22918 [\\/]* | ?:[\\/]* ) # Absolute name.
22919 ac_srcdir=$srcdir$ac_dir_suffix;
22920 ac_top_srcdir=$srcdir
22921 ac_abs_top_srcdir=$srcdir ;;
22922 *) # Relative name.
22923 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22924 ac_top_srcdir=$ac_top_build_prefix$srcdir
22925 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22926 esac
22927 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22928
22929
22930 case $ac_mode in
22931 :F)
22932 #
22933 # CONFIG_FILE
22934 #
22935
22936 case $INSTALL in
22937 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22938 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22939 esac
22940 ac_MKDIR_P=$MKDIR_P
22941 case $MKDIR_P in
22942 [\\/$]* | ?:[\\/]* ) ;;
22943 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22944 esac
22945 _ACEOF
22946
22947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22948 # If the template does not know about datarootdir, expand it.
22949 # FIXME: This hack should be removed a few years after 2.60.
22950 ac_datarootdir_hack=; ac_datarootdir_seen=
22951 ac_sed_dataroot='
22952 /datarootdir/ {
22953 p
22954 q
22955 }
22956 /@datadir@/p
22957 /@docdir@/p
22958 /@infodir@/p
22959 /@localedir@/p
22960 /@mandir@/p'
22961 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22962 *datarootdir*) ac_datarootdir_seen=yes;;
22963 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22965 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22966 _ACEOF
22967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22968 ac_datarootdir_hack='
22969 s&@datadir@&$datadir&g
22970 s&@docdir@&$docdir&g
22971 s&@infodir@&$infodir&g
22972 s&@localedir@&$localedir&g
22973 s&@mandir@&$mandir&g
22974 s&\\\${datarootdir}&$datarootdir&g' ;;
22975 esac
22976 _ACEOF
22977
22978 # Neutralize VPATH when `$srcdir' = `.'.
22979 # Shell code in configure.ac might set extrasub.
22980 # FIXME: do we really want to maintain this feature?
22981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22982 ac_sed_extra="$ac_vpsub
22983 $extrasub
22984 _ACEOF
22985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22986 :t
22987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22988 s|@configure_input@|$ac_sed_conf_input|;t t
22989 s&@top_builddir@&$ac_top_builddir_sub&;t t
22990 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22991 s&@srcdir@&$ac_srcdir&;t t
22992 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22993 s&@top_srcdir@&$ac_top_srcdir&;t t
22994 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22995 s&@builddir@&$ac_builddir&;t t
22996 s&@abs_builddir@&$ac_abs_builddir&;t t
22997 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22998 s&@INSTALL@&$ac_INSTALL&;t t
22999 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23000 $ac_datarootdir_hack
23001 "
23002 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23003 if $ac_cs_awk_getline; then
23004 $AWK -f "$tmp/subs.awk"
23005 else
23006 $AWK -f "$tmp/subs.awk" | $SHELL
23007 fi >$tmp/out \
23008 || as_fn_error "could not create $ac_file" "$LINENO" 5
23009
23010 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23011 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23014 which seems to be undefined. Please make sure it is defined." >&5
23015 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23016 which seems to be undefined. Please make sure it is defined." >&2;}
23017
23018 rm -f "$tmp/stdin"
23019 case $ac_file in
23020 -) cat "$tmp/out" && rm -f "$tmp/out";;
23021 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23022 esac \
23023 || as_fn_error "could not create $ac_file" "$LINENO" 5
23024 ;;
23025 :H)
23026 #
23027 # CONFIG_HEADER
23028 #
23029 if test x"$ac_file" != x-; then
23030 {
23031 $as_echo "/* $configure_input */" \
23032 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23033 } >"$tmp/config.h" \
23034 || as_fn_error "could not create $ac_file" "$LINENO" 5
23035 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23037 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23038 else
23039 rm -f "$ac_file"
23040 mv "$tmp/config.h" "$ac_file" \
23041 || as_fn_error "could not create $ac_file" "$LINENO" 5
23042 fi
23043 else
23044 $as_echo "/* $configure_input */" \
23045 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23046 || as_fn_error "could not create -" "$LINENO" 5
23047 fi
23048 # Compute "$ac_file"'s index in $config_headers.
23049 _am_arg="$ac_file"
23050 _am_stamp_count=1
23051 for _am_header in $config_headers :; do
23052 case $_am_header in
23053 $_am_arg | $_am_arg:* )
23054 break ;;
23055 * )
23056 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23057 esac
23058 done
23059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23060 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23061 X"$_am_arg" : 'X\(//\)[^/]' \| \
23062 X"$_am_arg" : 'X\(//\)$' \| \
23063 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23064 $as_echo X"$_am_arg" |
23065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23066 s//\1/
23067 q
23068 }
23069 /^X\(\/\/\)[^/].*/{
23070 s//\1/
23071 q
23072 }
23073 /^X\(\/\/\)$/{
23074 s//\1/
23075 q
23076 }
23077 /^X\(\/\).*/{
23078 s//\1/
23079 q
23080 }
23081 s/.*/./; q'`/stamp-h$_am_stamp_count
23082 ;;
23083
23084 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23085 $as_echo "$as_me: executing $ac_file commands" >&6;}
23086 ;;
23087 esac
23088
23089
23090 case $ac_file$ac_mode in
23091 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23092 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23093 # are listed without --file. Let's play safe and only enable the eval
23094 # if we detect the quoting.
23095 case $CONFIG_FILES in
23096 *\'*) eval set x "$CONFIG_FILES" ;;
23097 *) set x $CONFIG_FILES ;;
23098 esac
23099 shift
23100 for mf
23101 do
23102 # Strip MF so we end up with the name of the file.
23103 mf=`echo "$mf" | sed -e 's/:.*$//'`
23104 # Check whether this is an Automake generated Makefile or not.
23105 # We used to match only the files named `Makefile.in', but
23106 # some people rename them; so instead we look at the file content.
23107 # Grep'ing the first line is not enough: some people post-process
23108 # each Makefile.in and add a new line on top of each file to say so.
23109 # Grep'ing the whole file is not good either: AIX grep has a line
23110 # limit of 2048, but all sed's we know have understand at least 4000.
23111 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23112 dirpart=`$as_dirname -- "$mf" ||
23113 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23114 X"$mf" : 'X\(//\)[^/]' \| \
23115 X"$mf" : 'X\(//\)$' \| \
23116 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23117 $as_echo X"$mf" |
23118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23119 s//\1/
23120 q
23121 }
23122 /^X\(\/\/\)[^/].*/{
23123 s//\1/
23124 q
23125 }
23126 /^X\(\/\/\)$/{
23127 s//\1/
23128 q
23129 }
23130 /^X\(\/\).*/{
23131 s//\1/
23132 q
23133 }
23134 s/.*/./; q'`
23135 else
23136 continue
23137 fi
23138 # Extract the definition of DEPDIR, am__include, and am__quote
23139 # from the Makefile without running `make'.
23140 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23141 test -z "$DEPDIR" && continue
23142 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23143 test -z "am__include" && continue
23144 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23145 # When using ansi2knr, U may be empty or an underscore; expand it
23146 U=`sed -n 's/^U = //p' < "$mf"`
23147 # Find all dependency output files, they are included files with
23148 # $(DEPDIR) in their names. We invoke sed twice because it is the
23149 # simplest approach to changing $(DEPDIR) to its actual value in the
23150 # expansion.
23151 for file in `sed -n "
23152 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23153 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23154 # Make sure the directory exists.
23155 test -f "$dirpart/$file" && continue
23156 fdir=`$as_dirname -- "$file" ||
23157 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23158 X"$file" : 'X\(//\)[^/]' \| \
23159 X"$file" : 'X\(//\)$' \| \
23160 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23161 $as_echo X"$file" |
23162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23163 s//\1/
23164 q
23165 }
23166 /^X\(\/\/\)[^/].*/{
23167 s//\1/
23168 q
23169 }
23170 /^X\(\/\/\)$/{
23171 s//\1/
23172 q
23173 }
23174 /^X\(\/\).*/{
23175 s//\1/
23176 q
23177 }
23178 s/.*/./; q'`
23179 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23180 # echo "creating $dirpart/$file"
23181 echo '# dummy' > "$dirpart/$file"
23182 done
23183 done
23184 }
23185 ;;
23186 "mkdirs":C)
23187 for dir in etc lisp ; do
23188 test -d ${dir} || mkdir ${dir}
23189 done
23190 ;;
23191 "epaths":C)
23192 echo creating src/epaths.h
23193 ${MAKE-make} epaths-force
23194 ;;
23195 "gdbinit":C)
23196 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23197 echo creating src/.gdbinit
23198 echo source $srcdir/src/.gdbinit > src/.gdbinit
23199 fi
23200 ;;
23201
23202 esac
23203 done # for ac_tag
23204
23205
23206 as_fn_exit 0
23207 _ACEOF
23208 ac_clean_files=$ac_clean_files_save
23209
23210 test $ac_write_fail = 0 ||
23211 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23212
23213
23214 # configure is writing to config.log, and then calls config.status.
23215 # config.status does its own redirection, appending to config.log.
23216 # Unfortunately, on DOS this fails, as config.log is still kept open
23217 # by configure, so config.status won't be able to write to it; its
23218 # output is simply discarded. So we exec the FD to /dev/null,
23219 # effectively closing config.log, so it can be properly (re)opened and
23220 # appended to by config.status. When coming back to configure, we
23221 # need to make the FD available again.
23222 if test "$no_create" != yes; then
23223 ac_cs_success=:
23224 ac_config_status_args=
23225 test "$silent" = yes &&
23226 ac_config_status_args="$ac_config_status_args --quiet"
23227 exec 5>/dev/null
23228 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23229 exec 5>>config.log
23230 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23231 # would make configure fail if this is the last instruction.
23232 $ac_cs_success || as_fn_exit $?
23233 fi
23234 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23236 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23237 fi
23238
23239