]> code.delx.au - gnu-emacs/blob - autogen/configure
upstream
[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.94.
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.94'
553 PACKAGE_STRING='emacs 24.0.94'
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 POST_ALLOC_OBJ
611 PRE_ALLOC_OBJ
612 CYGWIN_OBJ
613 RALLOC_OBJ
614 OLDXMENU_DEPS
615 LIBX_OTHER
616 LIBXMENU
617 OLDXMENU
618 OLDXMENU_TARGET
619 LIBXT_OTHER
620 TOOLKIT_LIBW
621 WIDGET_OBJ
622 XOBJ
623 XMENU_OBJ
624 FONT_OBJ
625 OTHER_FILES
626 GNU_OBJC_CFLAGS
627 ns_appsrc
628 ns_appresdir
629 ns_appbindir
630 ns_appdir
631 S_FILE
632 M_FILE
633 X_TOOLKIT_TYPE
634 C_SWITCH_X_SYSTEM
635 C_SWITCH_X_SITE
636 LD_SWITCH_X_SITE
637 gameuser
638 gamedir
639 bitmapdir
640 archlibdir
641 etcdir
642 x_default_search_path
643 lisppath
644 locallisppath
645 lispdir
646 srcdir
647 canonical
648 configuration
649 version
650 KRB4LIB
651 DESLIB
652 KRB5LIB
653 CRYPTOLIB
654 COM_ERRLIB
655 LIBRESOLV
656 LIBHESIOD
657 TERMCAP_OBJ
658 LIBS_TERMCAP
659 LIBGNU_LTLIBDEPS
660 LIBGNU_LIBDEPS
661 gltests_WITNESS
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
668 <<<<<<< TREE
669 =======
670 gl_GNULIB_ENABLED_sigprocmask_FALSE
671 gl_GNULIB_ENABLED_sigprocmask_TRUE
672 gl_GNULIB_ENABLED_pathmax_FALSE
673 gl_GNULIB_ENABLED_pathmax_TRUE
674 >>>>>>> MERGE-SOURCE
675 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
676 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
677 gl_GNULIB_ENABLED_dosname_FALSE
678 gl_GNULIB_ENABLED_dosname_TRUE
679 LTLIBINTL
680 LIBINTL
681 HAVE_UNISTD_H
682 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
683 NEXT_UNISTD_H
684 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
685 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
686 TIME_H_DEFINES_STRUCT_TIMESPEC
687 NEXT_AS_FIRST_DIRECTIVE_TIME_H
688 NEXT_TIME_H
689 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
690 NEXT_SYS_STAT_H
691 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
692 NEXT_STDLIB_H
693 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
694 NEXT_STDIO_H
695 REPLACE_VSPRINTF
696 REPLACE_VSNPRINTF
697 REPLACE_VPRINTF
698 REPLACE_VFPRINTF
699 REPLACE_VDPRINTF
700 REPLACE_VASPRINTF
701 REPLACE_TMPFILE
702 REPLACE_STDIO_WRITE_FUNCS
703 REPLACE_STDIO_READ_FUNCS
704 REPLACE_SPRINTF
705 REPLACE_SNPRINTF
706 REPLACE_RENAMEAT
707 REPLACE_RENAME
708 REPLACE_REMOVE
709 REPLACE_PRINTF
710 REPLACE_POPEN
711 REPLACE_PERROR
712 REPLACE_OBSTACK_PRINTF
713 REPLACE_GETLINE
714 REPLACE_GETDELIM
715 REPLACE_FTELLO
716 REPLACE_FTELL
717 REPLACE_FSEEKO
718 REPLACE_FSEEK
719 REPLACE_FREOPEN
720 REPLACE_FPURGE
721 REPLACE_FPRINTF
722 REPLACE_FOPEN
723 REPLACE_FFLUSH
724 REPLACE_FCLOSE
725 REPLACE_DPRINTF
726 HAVE_VDPRINTF
727 HAVE_VASPRINTF
728 HAVE_RENAMEAT
729 HAVE_FTELLO
730 HAVE_FSEEKO
731 HAVE_DPRINTF
732 HAVE_DECL_VSNPRINTF
733 HAVE_DECL_SNPRINTF
734 HAVE_DECL_OBSTACK_PRINTF
735 HAVE_DECL_GETLINE
736 HAVE_DECL_GETDELIM
737 HAVE_DECL_FTELLO
738 HAVE_DECL_FSEEKO
739 HAVE_DECL_FPURGE
740 GNULIB_VSPRINTF_POSIX
741 GNULIB_VSNPRINTF
742 GNULIB_VPRINTF_POSIX
743 GNULIB_VPRINTF
744 GNULIB_VFPRINTF_POSIX
745 GNULIB_VFPRINTF
746 GNULIB_VDPRINTF
747 GNULIB_VSCANF
748 GNULIB_VFSCANF
749 GNULIB_VASPRINTF
750 GNULIB_TMPFILE
751 GNULIB_STDIO_H_SIGPIPE
752 GNULIB_STDIO_H_NONBLOCKING
753 GNULIB_SPRINTF_POSIX
754 GNULIB_SNPRINTF
755 GNULIB_SCANF
756 GNULIB_RENAMEAT
757 GNULIB_RENAME
758 GNULIB_REMOVE
759 GNULIB_PUTS
760 GNULIB_PUTCHAR
761 GNULIB_PUTC
762 GNULIB_PRINTF_POSIX
763 GNULIB_PRINTF
764 GNULIB_POPEN
765 GNULIB_PERROR
766 GNULIB_OBSTACK_PRINTF_POSIX
767 GNULIB_OBSTACK_PRINTF
768 GNULIB_GETS
769 GNULIB_GETLINE
770 GNULIB_GETDELIM
771 GNULIB_GETCHAR
772 GNULIB_GETC
773 GNULIB_FWRITE
774 GNULIB_FTELLO
775 GNULIB_FTELL
776 GNULIB_FSEEKO
777 GNULIB_FSEEK
778 GNULIB_FSCANF
779 GNULIB_FREOPEN
780 GNULIB_FREAD
781 GNULIB_FPUTS
782 GNULIB_FPUTC
783 GNULIB_FPURGE
784 GNULIB_FPRINTF_POSIX
785 GNULIB_FPRINTF
786 GNULIB_FOPEN
787 GNULIB_FGETS
788 GNULIB_FGETC
789 GNULIB_FFLUSH
790 GNULIB_FCLOSE
791 GNULIB_DPRINTF
792 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
793 NEXT_STDDEF_H
794 GL_GENERATE_STDDEF_H_FALSE
795 GL_GENERATE_STDDEF_H_TRUE
796 STDDEF_H
797 HAVE_WCHAR_T
798 REPLACE_NULL
799 HAVE__BOOL
800 GL_GENERATE_STDBOOL_H_FALSE
801 GL_GENERATE_STDBOOL_H_TRUE
802 STDBOOL_H
803 GL_GENERATE_STDARG_H_FALSE
804 GL_GENERATE_STDARG_H_TRUE
805 STDARG_H
806 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
807 NEXT_STDARG_H
808 REPLACE_TIMEGM
809 REPLACE_NANOSLEEP
810 REPLACE_MKTIME
811 REPLACE_LOCALTIME_R
812 HAVE_TIMEGM
813 HAVE_STRPTIME
814 HAVE_NANOSLEEP
815 HAVE_DECL_LOCALTIME_R
816 GNULIB_TIME_R
817 GNULIB_TIMEGM
818 GNULIB_STRPTIME
819 GNULIB_NANOSLEEP
820 GNULIB_MKTIME
821 REPLACE_UTIMENSAT
822 REPLACE_STAT
823 REPLACE_MKNOD
824 REPLACE_MKFIFO
825 REPLACE_MKDIR
826 REPLACE_LSTAT
827 REPLACE_FUTIMENS
828 REPLACE_FSTATAT
829 REPLACE_FSTAT
830 HAVE_UTIMENSAT
831 HAVE_MKNODAT
832 HAVE_MKNOD
833 HAVE_MKFIFOAT
834 HAVE_MKFIFO
835 HAVE_MKDIRAT
836 HAVE_LSTAT
837 HAVE_LCHMOD
838 HAVE_FUTIMENS
839 HAVE_FSTATAT
840 HAVE_FCHMODAT
841 GNULIB_UTIMENSAT
842 GNULIB_STAT
843 GNULIB_MKNODAT
844 GNULIB_MKNOD
845 GNULIB_MKFIFOAT
846 GNULIB_MKFIFO
847 GNULIB_MKDIRAT
848 GNULIB_LSTAT
849 GNULIB_LCHMOD
850 GNULIB_FUTIMENS
851 GNULIB_FSTATAT
852 GNULIB_FCHMODAT
853 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
854 NEXT_INTTYPES_H
855 UINT64_MAX_EQ_ULONG_MAX
856 UINT32_MAX_LT_UINTMAX_MAX
857 PRIPTR_PREFIX
858 PRI_MACROS_BROKEN
859 INT64_MAX_EQ_LONG_MAX
860 INT32_MAX_LT_INTMAX_MAX
861 HAVE_DECL_STRTOUMAX
862 HAVE_DECL_STRTOIMAX
863 HAVE_DECL_IMAXDIV
864 HAVE_DECL_IMAXABS
865 GNULIB_STRTOUMAX
866 GNULIB_STRTOIMAX
867 GNULIB_IMAXDIV
868 GNULIB_IMAXABS
869 GL_GENERATE_STDINT_H_FALSE
870 GL_GENERATE_STDINT_H_TRUE
871 STDINT_H
872 WINT_T_SUFFIX
873 WCHAR_T_SUFFIX
874 SIG_ATOMIC_T_SUFFIX
875 SIZE_T_SUFFIX
876 PTRDIFF_T_SUFFIX
877 HAVE_SIGNED_WINT_T
878 HAVE_SIGNED_WCHAR_T
879 HAVE_SIGNED_SIG_ATOMIC_T
880 BITSIZEOF_WINT_T
881 BITSIZEOF_WCHAR_T
882 BITSIZEOF_SIG_ATOMIC_T
883 BITSIZEOF_SIZE_T
884 BITSIZEOF_PTRDIFF_T
885 APPLE_UNIVERSAL_BUILD
886 HAVE_SYS_BITYPES_H
887 HAVE_SYS_INTTYPES_H
888 HAVE_STDINT_H
889 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
890 NEXT_STDINT_H
891 HAVE_SYS_TYPES_H
892 HAVE_INTTYPES_H
893 HAVE_WCHAR_H
894 HAVE_UNSIGNED_LONG_LONG_INT
895 HAVE_LONG_LONG_INT
896 GETOPT_H
897 HAVE_GETOPT_H
898 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
899 NEXT_GETOPT_H
900 PRAGMA_COLUMNS
901 PRAGMA_SYSTEM_HEADER
902 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
903 INCLUDE_NEXT
904 GETLOADAVG_LIBS
905 REPLACE_WCTOMB
906 REPLACE_UNSETENV
907 REPLACE_STRTOD
908 REPLACE_SETENV
909 REPLACE_REALPATH
910 REPLACE_REALLOC
911 REPLACE_PUTENV
912 REPLACE_MKSTEMP
913 REPLACE_MBTOWC
914 REPLACE_MALLOC
915 REPLACE_CANONICALIZE_FILE_NAME
916 REPLACE_CALLOC
917 HAVE_DECL_UNSETENV
918 HAVE_UNLOCKPT
919 HAVE_SYS_LOADAVG_H
920 HAVE_STRUCT_RANDOM_DATA
921 HAVE_STRTOULL
922 HAVE_STRTOLL
923 HAVE_STRTOD
924 HAVE_DECL_SETENV
925 HAVE_SETENV
926 HAVE_RPMATCH
927 HAVE_REALPATH
928 HAVE_RANDOM_R
929 HAVE_RANDOM_H
930 HAVE_PTSNAME
931 HAVE_MKSTEMPS
932 HAVE_MKSTEMP
933 HAVE_MKOSTEMPS
934 HAVE_MKOSTEMP
935 HAVE_MKDTEMP
936 HAVE_GRANTPT
937 HAVE_GETSUBOPT
938 HAVE_DECL_GETLOADAVG
939 HAVE_CANONICALIZE_FILE_NAME
940 HAVE_ATOLL
941 HAVE__EXIT
942 GNULIB_WCTOMB
943 GNULIB_UNSETENV
944 GNULIB_UNLOCKPT
945 GNULIB_SYSTEM_POSIX
946 GNULIB_STRTOULL
947 GNULIB_STRTOLL
948 GNULIB_STRTOD
949 GNULIB_SETENV
950 GNULIB_RPMATCH
951 GNULIB_REALPATH
952 GNULIB_REALLOC_POSIX
953 GNULIB_RANDOM_R
954 GNULIB_PUTENV
955 GNULIB_PTSNAME
956 GNULIB_MKSTEMPS
957 GNULIB_MKSTEMP
958 GNULIB_MKOSTEMPS
959 GNULIB_MKOSTEMP
960 GNULIB_MKDTEMP
961 GNULIB_MBTOWC
962 GNULIB_MALLOC_POSIX
963 GNULIB_GRANTPT
964 GNULIB_GETSUBOPT
965 GNULIB_GETLOADAVG
966 GNULIB_CANONICALIZE_FILE_NAME
967 GNULIB_CALLOC_POSIX
968 GNULIB_ATOLL
969 GNULIB__EXIT
970 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
971 UNISTD_H_HAVE_WINSOCK2_H
972 REPLACE_WRITE
973 REPLACE_USLEEP
974 REPLACE_UNLINKAT
975 REPLACE_UNLINK
976 REPLACE_TTYNAME_R
977 REPLACE_SYMLINK
978 REPLACE_SLEEP
979 REPLACE_RMDIR
980 REPLACE_READLINK
981 REPLACE_READ
982 REPLACE_PWRITE
983 REPLACE_PREAD
984 REPLACE_LSEEK
985 REPLACE_LINKAT
986 REPLACE_LINK
987 REPLACE_LCHOWN
988 REPLACE_GETPAGESIZE
989 REPLACE_GETGROUPS
990 REPLACE_GETLOGIN_R
991 REPLACE_GETDOMAINNAME
992 REPLACE_GETCWD
993 REPLACE_FCHOWNAT
994 REPLACE_DUP2
995 REPLACE_DUP
996 REPLACE_CLOSE
997 REPLACE_CHOWN
998 HAVE_SYS_PARAM_H
999 HAVE_OS_H
1000 HAVE_DECL_TTYNAME_R
1001 HAVE_DECL_GETUSERSHELL
1002 HAVE_DECL_GETPAGESIZE
1003 HAVE_DECL_GETLOGIN_R
1004 HAVE_DECL_GETDOMAINNAME
1005 HAVE_DECL_FCHDIR
1006 HAVE_DECL_ENVIRON
1007 HAVE_USLEEP
1008 HAVE_UNLINKAT
1009 HAVE_SYMLINKAT
1010 HAVE_SYMLINK
1011 HAVE_SLEEP
1012 HAVE_READLINKAT
1013 HAVE_READLINK
1014 HAVE_PWRITE
1015 HAVE_PREAD
1016 HAVE_PIPE2
1017 HAVE_PIPE
1018 HAVE_LINKAT
1019 HAVE_LINK
1020 HAVE_LCHOWN
1021 HAVE_GROUP_MEMBER
1022 HAVE_GETPAGESIZE
1023 HAVE_GETLOGIN
1024 HAVE_GETHOSTNAME
1025 HAVE_GETGROUPS
1026 HAVE_GETDTABLESIZE
1027 HAVE_FTRUNCATE
1028 HAVE_FSYNC
1029 HAVE_FCHOWNAT
1030 HAVE_FCHDIR
1031 HAVE_FACCESSAT
1032 HAVE_EUIDACCESS
1033 HAVE_DUP3
1034 HAVE_DUP2
1035 HAVE_CHOWN
1036 GNULIB_WRITE
1037 GNULIB_USLEEP
1038 GNULIB_UNLINKAT
1039 GNULIB_UNLINK
1040 GNULIB_UNISTD_H_SIGPIPE
1041 GNULIB_UNISTD_H_NONBLOCKING
1042 GNULIB_UNISTD_H_GETOPT
1043 GNULIB_TTYNAME_R
1044 GNULIB_SYMLINKAT
1045 GNULIB_SYMLINK
1046 GNULIB_SLEEP
1047 GNULIB_RMDIR
1048 GNULIB_READLINKAT
1049 GNULIB_READLINK
1050 GNULIB_READ
1051 GNULIB_PWRITE
1052 GNULIB_PREAD
1053 GNULIB_PIPE2
1054 GNULIB_PIPE
1055 GNULIB_LSEEK
1056 GNULIB_LINKAT
1057 GNULIB_LINK
1058 GNULIB_LCHOWN
1059 GNULIB_GROUP_MEMBER
1060 GNULIB_GETUSERSHELL
1061 GNULIB_GETPAGESIZE
1062 GNULIB_GETLOGIN_R
1063 GNULIB_GETLOGIN
1064 GNULIB_GETHOSTNAME
1065 GNULIB_GETGROUPS
1066 GNULIB_GETDTABLESIZE
1067 GNULIB_GETDOMAINNAME
1068 GNULIB_GETCWD
1069 GNULIB_FTRUNCATE
1070 GNULIB_FSYNC
1071 GNULIB_FCHOWNAT
1072 GNULIB_FCHDIR
1073 GNULIB_FACCESSAT
1074 GNULIB_EUIDACCESS
1075 GNULIB_ENVIRON
1076 GNULIB_DUP3
1077 GNULIB_DUP2
1078 GNULIB_CLOSE
1079 GNULIB_CHOWN
1080 GL_GENERATE_ALLOCA_H_FALSE
1081 GL_GENERATE_ALLOCA_H_TRUE
1082 ALLOCA_H
1083 ALLOCA
1084 GL_COND_LIBTOOL_FALSE
1085 GL_COND_LIBTOOL_TRUE
1086 BLESSMAIL_TARGET
1087 LIBS_MAIL
1088 liblockfile
1089 LIBXML2_LIBS
1090 LIBXML2_CFLAGS
1091 LIBXSM
1092 LIBGPM
1093 LIBGIF
1094 LIBTIFF
1095 LIBPNG
1096 LIBJPEG
1097 LIBXPM
1098 M17N_FLT_LIBS
1099 M17N_FLT_CFLAGS
1100 LIBOTF_LIBS
1101 LIBOTF_CFLAGS
1102 FREETYPE_LIBS
1103 FREETYPE_CFLAGS
1104 XFT_LIBS
1105 XFT_CFLAGS
1106 FONTCONFIG_LIBS
1107 FONTCONFIG_CFLAGS
1108 LIBXMU
1109 LIBXTR6
1110 LIBGNUTLS_LIBS
1111 LIBGNUTLS_CFLAGS
1112 LIBSELINUX_LIBS
1113 GCONF_LIBS
1114 GCONF_CFLAGS
1115 DBUS_OBJ
1116 DBUS_LIBS
1117 DBUS_CFLAGS
1118 GTK_OBJ
1119 GTK_LIBS
1120 GTK_CFLAGS
1121 IMAGEMAGICK_LIBS
1122 IMAGEMAGICK_CFLAGS
1123 RSVG_LIBS
1124 RSVG_CFLAGS
1125 LIB_PTHREAD
1126 VMLIMIT_OBJ
1127 GMALLOC_OBJ
1128 HAVE_XSERVER
1129 LIB_STANDARD
1130 NS_OBJC_OBJ
1131 NS_OBJ
1132 TEMACS_LDFLAGS2
1133 LD_SWITCH_X_SITE_AUX_RPATH
1134 LD_SWITCH_X_SITE_AUX
1135 XMKMF
1136 DEPFLAGS
1137 MKDEPDIR
1138 CFLAGS_SOUND
1139 ALSA_LIBS
1140 ALSA_CFLAGS
1141 PKG_CONFIG
1142 LIBSOUND
1143 START_FILES
1144 LIB_MATH
1145 CRT_DIR
1146 LIBS_SYSTEM
1147 C_SWITCH_SYSTEM
1148 UNEXEC_OBJ
1149 C_SWITCH_MACHINE
1150 LD_SWITCH_SYSTEM
1151 CANNOT_DUMP
1152 HAVE_MAKEINFO
1153 GZIP_PROG
1154 INSTALL_INFO
1155 C_WARNINGS_SWITCH
1156 RANLIB
1157 ARFLAGS
1158 AR
1159 EGREP
1160 GREP
1161 CPP
1162 am__fastdepCC_FALSE
1163 am__fastdepCC_TRUE
1164 CCDEPMODE
1165 AMDEPBACKSLASH
1166 AMDEP_FALSE
1167 AMDEP_TRUE
1168 am__quote
1169 am__include
1170 DEPDIR
1171 OBJEXT
1172 EXEEXT
1173 ac_ct_CC
1174 CPPFLAGS
1175 LDFLAGS
1176 CFLAGS
1177 CC
1178 host_os
1179 host_vendor
1180 host_cpu
1181 host
1182 build_os
1183 build_vendor
1184 build_cpu
1185 build
1186 PROFILING_CFLAGS
1187 MAINT
1188 GZIP_INFO
1189 am__untar
1190 am__tar
1191 AMTAR
1192 am__leading_dot
1193 SET_MAKE
1194 AWK
1195 mkdir_p
1196 MKDIR_P
1197 INSTALL_STRIP_PROGRAM
1198 STRIP
1199 install_sh
1200 MAKEINFO
1201 AUTOHEADER
1202 AUTOMAKE
1203 AUTOCONF
1204 ACLOCAL
1205 VERSION
1206 PACKAGE
1207 CYGPATH_W
1208 am__isrc
1209 INSTALL_DATA
1210 INSTALL_SCRIPT
1211 INSTALL_PROGRAM
1212 target_alias
1213 host_alias
1214 build_alias
1215 LIBS
1216 ECHO_T
1217 ECHO_N
1218 ECHO_C
1219 DEFS
1220 mandir
1221 localedir
1222 libdir
1223 psdir
1224 pdfdir
1225 dvidir
1226 htmldir
1227 infodir
1228 docdir
1229 oldincludedir
1230 includedir
1231 localstatedir
1232 sharedstatedir
1233 sysconfdir
1234 datadir
1235 datarootdir
1236 libexecdir
1237 sbindir
1238 bindir
1239 program_transform_name
1240 prefix
1241 exec_prefix
1242 PACKAGE_URL
1243 PACKAGE_BUGREPORT
1244 PACKAGE_STRING
1245 PACKAGE_VERSION
1246 PACKAGE_TARNAME
1247 PACKAGE_NAME
1248 PATH_SEPARATOR
1249 SHELL'
1250 ac_subst_files='deps_frag
1251 lisp_frag
1252 ns_frag'
1253 ac_user_opts='
1254 enable_option_checking
1255 with_pop
1256 with_kerberos
1257 with_kerberos5
1258 with_hesiod
1259 with_mmdf
1260 with_mail_unlink
1261 with_mailhost
1262 with_sound
1263 with_sync_input
1264 with_x_toolkit
1265 with_wide_int
1266 with_xpm
1267 with_jpeg
1268 with_tiff
1269 with_gif
1270 with_png
1271 with_rsvg
1272 with_xml2
1273 with_imagemagick
1274 with_xft
1275 with_libotf
1276 with_m17n_flt
1277 with_toolkit_scroll_bars
1278 with_xaw3d
1279 with_xim
1280 with_ns
1281 with_gpm
1282 with_dbus
1283 with_gconf
1284 with_selinux
1285 with_gnutls
1286 with_makeinfo
1287 with_compress_info
1288 with_pkg_config_prog
1289 with_crt_dir
1290 with_gameuser
1291 with_gnustep_conf
1292 enable_ns_self_contained
1293 enable_asserts
1294 enable_maintainer_mode
1295 enable_locallisppath
1296 enable_checking
1297 enable_use_lisp_union_type
1298 enable_profiling
1299 enable_autodepend
1300 enable_dependency_tracking
1301 enable_largefile
1302 with_x
1303 '
1304 ac_precious_vars='build_alias
1305 host_alias
1306 target_alias
1307 CC
1308 CFLAGS
1309 LDFLAGS
1310 LIBS
1311 CPPFLAGS
1312 CPP
1313 XMKMF'
1314
1315
1316 # Initialize some variables set by options.
1317 ac_init_help=
1318 ac_init_version=false
1319 ac_unrecognized_opts=
1320 ac_unrecognized_sep=
1321 # The variables have the same names as the options, with
1322 # dashes changed to underlines.
1323 cache_file=/dev/null
1324 exec_prefix=NONE
1325 no_create=
1326 no_recursion=
1327 prefix=NONE
1328 program_prefix=NONE
1329 program_suffix=NONE
1330 program_transform_name=s,x,x,
1331 silent=
1332 site=
1333 srcdir=
1334 verbose=
1335 x_includes=NONE
1336 x_libraries=NONE
1337
1338 # Installation directory options.
1339 # These are left unexpanded so users can "make install exec_prefix=/foo"
1340 # and all the variables that are supposed to be based on exec_prefix
1341 # by default will actually change.
1342 # Use braces instead of parens because sh, perl, etc. also accept them.
1343 # (The list follows the same order as the GNU Coding Standards.)
1344 bindir='${exec_prefix}/bin'
1345 sbindir='${exec_prefix}/sbin'
1346 libexecdir='${exec_prefix}/libexec'
1347 datarootdir='${prefix}/share'
1348 datadir='${datarootdir}'
1349 sysconfdir='${prefix}/etc'
1350 sharedstatedir='${prefix}/com'
1351 localstatedir='${prefix}/var'
1352 includedir='${prefix}/include'
1353 oldincludedir='/usr/include'
1354 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1355 infodir='${datarootdir}/info'
1356 htmldir='${docdir}'
1357 dvidir='${docdir}'
1358 pdfdir='${docdir}'
1359 psdir='${docdir}'
1360 libdir='${exec_prefix}/lib'
1361 localedir='${datarootdir}/locale'
1362 mandir='${datarootdir}/man'
1363
1364 ac_prev=
1365 ac_dashdash=
1366 for ac_option
1367 do
1368 # If the previous option needs an argument, assign it.
1369 if test -n "$ac_prev"; then
1370 eval $ac_prev=\$ac_option
1371 ac_prev=
1372 continue
1373 fi
1374
1375 case $ac_option in
1376 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1377 *) ac_optarg=yes ;;
1378 esac
1379
1380 # Accept the important Cygnus configure options, so we can diagnose typos.
1381
1382 case $ac_dashdash$ac_option in
1383 --)
1384 ac_dashdash=yes ;;
1385
1386 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1387 ac_prev=bindir ;;
1388 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1389 bindir=$ac_optarg ;;
1390
1391 -build | --build | --buil | --bui | --bu)
1392 ac_prev=build_alias ;;
1393 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1394 build_alias=$ac_optarg ;;
1395
1396 -cache-file | --cache-file | --cache-fil | --cache-fi \
1397 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1398 ac_prev=cache_file ;;
1399 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1400 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1401 cache_file=$ac_optarg ;;
1402
1403 --config-cache | -C)
1404 cache_file=config.cache ;;
1405
1406 -datadir | --datadir | --datadi | --datad)
1407 ac_prev=datadir ;;
1408 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1409 datadir=$ac_optarg ;;
1410
1411 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1412 | --dataroo | --dataro | --datar)
1413 ac_prev=datarootdir ;;
1414 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1415 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1416 datarootdir=$ac_optarg ;;
1417
1418 -disable-* | --disable-*)
1419 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422 as_fn_error "invalid feature name: $ac_useropt"
1423 ac_useropt_orig=$ac_useropt
1424 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1426 *"
1427 "enable_$ac_useropt"
1428 "*) ;;
1429 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1430 ac_unrecognized_sep=', ';;
1431 esac
1432 eval enable_$ac_useropt=no ;;
1433
1434 -docdir | --docdir | --docdi | --doc | --do)
1435 ac_prev=docdir ;;
1436 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1437 docdir=$ac_optarg ;;
1438
1439 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1440 ac_prev=dvidir ;;
1441 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1442 dvidir=$ac_optarg ;;
1443
1444 -enable-* | --enable-*)
1445 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1446 # Reject names that are not valid shell variable names.
1447 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1448 as_fn_error "invalid feature name: $ac_useropt"
1449 ac_useropt_orig=$ac_useropt
1450 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1451 case $ac_user_opts in
1452 *"
1453 "enable_$ac_useropt"
1454 "*) ;;
1455 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1456 ac_unrecognized_sep=', ';;
1457 esac
1458 eval enable_$ac_useropt=\$ac_optarg ;;
1459
1460 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1461 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1462 | --exec | --exe | --ex)
1463 ac_prev=exec_prefix ;;
1464 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1465 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1466 | --exec=* | --exe=* | --ex=*)
1467 exec_prefix=$ac_optarg ;;
1468
1469 -gas | --gas | --ga | --g)
1470 # Obsolete; use --with-gas.
1471 with_gas=yes ;;
1472
1473 -help | --help | --hel | --he | -h)
1474 ac_init_help=long ;;
1475 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1476 ac_init_help=recursive ;;
1477 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1478 ac_init_help=short ;;
1479
1480 -host | --host | --hos | --ho)
1481 ac_prev=host_alias ;;
1482 -host=* | --host=* | --hos=* | --ho=*)
1483 host_alias=$ac_optarg ;;
1484
1485 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1486 ac_prev=htmldir ;;
1487 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1488 | --ht=*)
1489 htmldir=$ac_optarg ;;
1490
1491 -includedir | --includedir | --includedi | --included | --include \
1492 | --includ | --inclu | --incl | --inc)
1493 ac_prev=includedir ;;
1494 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1495 | --includ=* | --inclu=* | --incl=* | --inc=*)
1496 includedir=$ac_optarg ;;
1497
1498 -infodir | --infodir | --infodi | --infod | --info | --inf)
1499 ac_prev=infodir ;;
1500 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1501 infodir=$ac_optarg ;;
1502
1503 -libdir | --libdir | --libdi | --libd)
1504 ac_prev=libdir ;;
1505 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1506 libdir=$ac_optarg ;;
1507
1508 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1509 | --libexe | --libex | --libe)
1510 ac_prev=libexecdir ;;
1511 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1512 | --libexe=* | --libex=* | --libe=*)
1513 libexecdir=$ac_optarg ;;
1514
1515 -localedir | --localedir | --localedi | --localed | --locale)
1516 ac_prev=localedir ;;
1517 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1518 localedir=$ac_optarg ;;
1519
1520 -localstatedir | --localstatedir | --localstatedi | --localstated \
1521 | --localstate | --localstat | --localsta | --localst | --locals)
1522 ac_prev=localstatedir ;;
1523 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1524 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1525 localstatedir=$ac_optarg ;;
1526
1527 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1528 ac_prev=mandir ;;
1529 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1530 mandir=$ac_optarg ;;
1531
1532 -nfp | --nfp | --nf)
1533 # Obsolete; use --without-fp.
1534 with_fp=no ;;
1535
1536 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1537 | --no-cr | --no-c | -n)
1538 no_create=yes ;;
1539
1540 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1541 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1542 no_recursion=yes ;;
1543
1544 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1545 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1546 | --oldin | --oldi | --old | --ol | --o)
1547 ac_prev=oldincludedir ;;
1548 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1549 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1550 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1551 oldincludedir=$ac_optarg ;;
1552
1553 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1554 ac_prev=prefix ;;
1555 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1556 prefix=$ac_optarg ;;
1557
1558 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1559 | --program-pre | --program-pr | --program-p)
1560 ac_prev=program_prefix ;;
1561 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1562 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1563 program_prefix=$ac_optarg ;;
1564
1565 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1566 | --program-suf | --program-su | --program-s)
1567 ac_prev=program_suffix ;;
1568 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1569 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1570 program_suffix=$ac_optarg ;;
1571
1572 -program-transform-name | --program-transform-name \
1573 | --program-transform-nam | --program-transform-na \
1574 | --program-transform-n | --program-transform- \
1575 | --program-transform | --program-transfor \
1576 | --program-transfo | --program-transf \
1577 | --program-trans | --program-tran \
1578 | --progr-tra | --program-tr | --program-t)
1579 ac_prev=program_transform_name ;;
1580 -program-transform-name=* | --program-transform-name=* \
1581 | --program-transform-nam=* | --program-transform-na=* \
1582 | --program-transform-n=* | --program-transform-=* \
1583 | --program-transform=* | --program-transfor=* \
1584 | --program-transfo=* | --program-transf=* \
1585 | --program-trans=* | --program-tran=* \
1586 | --progr-tra=* | --program-tr=* | --program-t=*)
1587 program_transform_name=$ac_optarg ;;
1588
1589 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1590 ac_prev=pdfdir ;;
1591 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1592 pdfdir=$ac_optarg ;;
1593
1594 -psdir | --psdir | --psdi | --psd | --ps)
1595 ac_prev=psdir ;;
1596 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1597 psdir=$ac_optarg ;;
1598
1599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1600 | -silent | --silent | --silen | --sile | --sil)
1601 silent=yes ;;
1602
1603 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1604 ac_prev=sbindir ;;
1605 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1606 | --sbi=* | --sb=*)
1607 sbindir=$ac_optarg ;;
1608
1609 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1610 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1611 | --sharedst | --shareds | --shared | --share | --shar \
1612 | --sha | --sh)
1613 ac_prev=sharedstatedir ;;
1614 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1615 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1616 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1617 | --sha=* | --sh=*)
1618 sharedstatedir=$ac_optarg ;;
1619
1620 -site | --site | --sit)
1621 ac_prev=site ;;
1622 -site=* | --site=* | --sit=*)
1623 site=$ac_optarg ;;
1624
1625 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1626 ac_prev=srcdir ;;
1627 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1628 srcdir=$ac_optarg ;;
1629
1630 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1631 | --syscon | --sysco | --sysc | --sys | --sy)
1632 ac_prev=sysconfdir ;;
1633 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1634 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1635 sysconfdir=$ac_optarg ;;
1636
1637 -target | --target | --targe | --targ | --tar | --ta | --t)
1638 ac_prev=target_alias ;;
1639 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1640 target_alias=$ac_optarg ;;
1641
1642 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1643 verbose=yes ;;
1644
1645 -version | --version | --versio | --versi | --vers | -V)
1646 ac_init_version=: ;;
1647
1648 -with-* | --with-*)
1649 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1650 # Reject names that are not valid shell variable names.
1651 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1652 as_fn_error "invalid package name: $ac_useropt"
1653 ac_useropt_orig=$ac_useropt
1654 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1655 case $ac_user_opts in
1656 *"
1657 "with_$ac_useropt"
1658 "*) ;;
1659 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1660 ac_unrecognized_sep=', ';;
1661 esac
1662 eval with_$ac_useropt=\$ac_optarg ;;
1663
1664 -without-* | --without-*)
1665 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1666 # Reject names that are not valid shell variable names.
1667 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1668 as_fn_error "invalid package name: $ac_useropt"
1669 ac_useropt_orig=$ac_useropt
1670 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1671 case $ac_user_opts in
1672 *"
1673 "with_$ac_useropt"
1674 "*) ;;
1675 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1676 ac_unrecognized_sep=', ';;
1677 esac
1678 eval with_$ac_useropt=no ;;
1679
1680 --x)
1681 # Obsolete; use --with-x.
1682 with_x=yes ;;
1683
1684 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1685 | --x-incl | --x-inc | --x-in | --x-i)
1686 ac_prev=x_includes ;;
1687 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1688 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1689 x_includes=$ac_optarg ;;
1690
1691 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1692 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1693 ac_prev=x_libraries ;;
1694 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1695 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1696 x_libraries=$ac_optarg ;;
1697
1698 -*) as_fn_error "unrecognized option: \`$ac_option'
1699 Try \`$0 --help' for more information."
1700 ;;
1701
1702 *=*)
1703 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1704 # Reject names that are not valid shell variable names.
1705 case $ac_envvar in #(
1706 '' | [0-9]* | *[!_$as_cr_alnum]* )
1707 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1708 esac
1709 eval $ac_envvar=\$ac_optarg
1710 export $ac_envvar ;;
1711
1712 *)
1713 # FIXME: should be removed in autoconf 3.0.
1714 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1715 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1716 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1717 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1718 ;;
1719
1720 esac
1721 done
1722
1723 if test -n "$ac_prev"; then
1724 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1725 as_fn_error "missing argument to $ac_option"
1726 fi
1727
1728 if test -n "$ac_unrecognized_opts"; then
1729 case $enable_option_checking in
1730 no) ;;
1731 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1732 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1733 esac
1734 fi
1735
1736 # Check all directory arguments for consistency.
1737 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1738 datadir sysconfdir sharedstatedir localstatedir includedir \
1739 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1740 libdir localedir mandir
1741 do
1742 eval ac_val=\$$ac_var
1743 # Remove trailing slashes.
1744 case $ac_val in
1745 */ )
1746 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1747 eval $ac_var=\$ac_val;;
1748 esac
1749 # Be sure to have absolute directory names.
1750 case $ac_val in
1751 [\\/$]* | ?:[\\/]* ) continue;;
1752 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1753 esac
1754 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1755 done
1756
1757 # There might be people who depend on the old broken behavior: `$host'
1758 # used to hold the argument of --host etc.
1759 # FIXME: To remove some day.
1760 build=$build_alias
1761 host=$host_alias
1762 target=$target_alias
1763
1764 # FIXME: To remove some day.
1765 if test "x$host_alias" != x; then
1766 if test "x$build_alias" = x; then
1767 cross_compiling=maybe
1768 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1769 If a cross compiler is detected then cross compile mode will be used." >&2
1770 elif test "x$build_alias" != "x$host_alias"; then
1771 cross_compiling=yes
1772 fi
1773 fi
1774
1775 ac_tool_prefix=
1776 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1777
1778 test "$silent" = yes && exec 6>/dev/null
1779
1780
1781 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1782 ac_ls_di=`ls -di .` &&
1783 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1784 as_fn_error "working directory cannot be determined"
1785 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1786 as_fn_error "pwd does not report name of working directory"
1787
1788
1789 # Find the source files, if location was not specified.
1790 if test -z "$srcdir"; then
1791 ac_srcdir_defaulted=yes
1792 # Try the directory containing this script, then the parent directory.
1793 ac_confdir=`$as_dirname -- "$as_myself" ||
1794 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1795 X"$as_myself" : 'X\(//\)[^/]' \| \
1796 X"$as_myself" : 'X\(//\)$' \| \
1797 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1798 $as_echo X"$as_myself" |
1799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1800 s//\1/
1801 q
1802 }
1803 /^X\(\/\/\)[^/].*/{
1804 s//\1/
1805 q
1806 }
1807 /^X\(\/\/\)$/{
1808 s//\1/
1809 q
1810 }
1811 /^X\(\/\).*/{
1812 s//\1/
1813 q
1814 }
1815 s/.*/./; q'`
1816 srcdir=$ac_confdir
1817 if test ! -r "$srcdir/$ac_unique_file"; then
1818 srcdir=..
1819 fi
1820 else
1821 ac_srcdir_defaulted=no
1822 fi
1823 if test ! -r "$srcdir/$ac_unique_file"; then
1824 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1825 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1826 fi
1827 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1828 ac_abs_confdir=`(
1829 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1830 pwd)`
1831 # When building in place, set srcdir=.
1832 if test "$ac_abs_confdir" = "$ac_pwd"; then
1833 srcdir=.
1834 fi
1835 # Remove unnecessary trailing slashes from srcdir.
1836 # Double slashes in file names in object file debugging info
1837 # mess up M-x gdb in Emacs.
1838 case $srcdir in
1839 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1840 esac
1841 for ac_var in $ac_precious_vars; do
1842 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1843 eval ac_env_${ac_var}_value=\$${ac_var}
1844 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1845 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1846 done
1847
1848 #
1849 # Report the --help message.
1850 #
1851 if test "$ac_init_help" = "long"; then
1852 # Omit some internal or obsolete options to make the list less imposing.
1853 # This message is too long to be a string in the A/UX 3.1 sh.
1854 cat <<_ACEOF
1855 \`configure' configures emacs 24.0.94 to adapt to many kinds of systems.
1856
1857 Usage: $0 [OPTION]... [VAR=VALUE]...
1858
1859 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1860 VAR=VALUE. See below for descriptions of some of the useful variables.
1861
1862 Defaults for the options are specified in brackets.
1863
1864 Configuration:
1865 -h, --help display this help and exit
1866 --help=short display options specific to this package
1867 --help=recursive display the short help of all the included packages
1868 -V, --version display version information and exit
1869 -q, --quiet, --silent do not print \`checking...' messages
1870 --cache-file=FILE cache test results in FILE [disabled]
1871 -C, --config-cache alias for \`--cache-file=config.cache'
1872 -n, --no-create do not create output files
1873 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1874
1875 Installation directories:
1876 --prefix=PREFIX install architecture-independent files in PREFIX
1877 [$ac_default_prefix]
1878 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1879 [PREFIX]
1880
1881 By default, \`make install' will install all the files in
1882 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1883 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1884 for instance \`--prefix=\$HOME'.
1885
1886 For better control, use the options below.
1887
1888 Fine tuning of the installation directories:
1889 --bindir=DIR user executables [EPREFIX/bin]
1890 --sbindir=DIR system admin executables [EPREFIX/sbin]
1891 --libexecdir=DIR program executables [EPREFIX/libexec]
1892 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1893 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1894 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1895 --libdir=DIR object code libraries [EPREFIX/lib]
1896 --includedir=DIR C header files [PREFIX/include]
1897 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1898 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1899 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1900 --infodir=DIR info documentation [DATAROOTDIR/info]
1901 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1902 --mandir=DIR man documentation [DATAROOTDIR/man]
1903 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1904 --htmldir=DIR html documentation [DOCDIR]
1905 --dvidir=DIR dvi documentation [DOCDIR]
1906 --pdfdir=DIR pdf documentation [DOCDIR]
1907 --psdir=DIR ps documentation [DOCDIR]
1908 _ACEOF
1909
1910 cat <<\_ACEOF
1911
1912 Program names:
1913 --program-prefix=PREFIX prepend PREFIX to installed program names
1914 --program-suffix=SUFFIX append SUFFIX to installed program names
1915 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1916
1917 X features:
1918 --x-includes=DIR X include files are in DIR
1919 --x-libraries=DIR X library files are in DIR
1920
1921 System types:
1922 --build=BUILD configure for building on BUILD [guessed]
1923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1924 _ACEOF
1925 fi
1926
1927 if test -n "$ac_init_help"; then
1928 case $ac_init_help in
1929 short | recursive ) echo "Configuration of emacs 24.0.94:";;
1930 esac
1931 cat <<\_ACEOF
1932
1933 Optional Features:
1934 --disable-option-checking ignore unrecognized --enable/--with options
1935 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1936 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1937 --disable-ns-self-contained
1938 disable self contained build under NeXTstep
1939 --enable-asserts compile code with asserts enabled
1940 --enable-maintainer-mode
1941 enable make rules and dependencies not useful (and
1942 sometimes confusing) to the casual installer
1943 --enable-locallisppath=PATH
1944 directories Emacs should search for lisp files
1945 specific to this site
1946 --enable-checking[=LIST]
1947 enable expensive run-time checks. With LIST, enable
1948 only specific categories of checks. Categories are:
1949 all,yes,no. Flags are: stringbytes, stringoverrun,
1950 stringfreelist, xmallocoverrun, conslist
1951 --enable-use-lisp-union-type
1952 use a union for the Lisp_Object data type. This is
1953 only useful for development for catching certain
1954 types of bugs.
1955 --enable-profiling build emacs with profiling support. This might not
1956 work on all platforms
1957 --enable-autodepend automatically generate dependencies to .h-files.
1958 Requires GNU Make and Gcc. Enabled if GNU Make and
1959 Gcc is found
1960 --disable-dependency-tracking speeds up one-time build
1961 --enable-dependency-tracking do not reject slow dependency extractors
1962 --disable-largefile omit support for large files
1963
1964 Optional Packages:
1965 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1966 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1967 --without-pop don't support POP mail retrieval with movemail
1968 --with-kerberos support Kerberos-authenticated POP
1969 --with-kerberos5 support Kerberos version 5 authenticated POP
1970 --with-hesiod support Hesiod to get the POP server host
1971 --with-mmdf support MMDF mailboxes
1972 --with-mail-unlink unlink, rather than empty, mail spool after reading
1973 --with-mailhost=HOSTNAME
1974 string giving default POP mail host
1975 --without-sound don't compile with sound support
1976 --without-sync-input process async input synchronously
1977 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1978 lucid or athena, motif, no)
1979 --with-wide-int prefer wide Emacs integers (typically 62-bit)
1980 --without-xpm don't compile with XPM image support
1981 --without-jpeg don't compile with JPEG image support
1982 --without-tiff don't compile with TIFF image support
1983 --without-gif don't compile with GIF image support
1984 --without-png don't compile with PNG image support
1985 --without-rsvg don't compile with SVG image support
1986 --without-xml2 don't compile with XML parsing support
1987 --without-imagemagick don't compile with ImageMagick image support
1988 --without-xft don't use XFT for anti aliased fonts
1989 --without-libotf don't use libotf for OpenType font support
1990 --without-m17n-flt don't use m17n-flt for text shaping
1991 --without-toolkit-scroll-bars
1992 don't use Motif or Xaw3d scroll bars
1993 --without-xaw3d don't use Xaw3d
1994 --without-xim don't use X11 XIM
1995 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1996 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1997 console
1998 --without-dbus don't compile with D-Bus support
1999 --without-gconf don't compile with GConf support
2000 --without-selinux don't compile with SELinux support
2001 --without-gnutls don't use -lgnutls for SSL/TLS support
2002 --without-makeinfo don't require makeinfo for building manuals
2003 --without-compress-info don't compress the installed Info pages
2004 --with-pkg-config-prog=PATH
2005 path to pkg-config for finding GTK and librsvg
2006 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2007 /usr/lib, or /usr/lib64 on some platforms.
2008 --with-gameuser=USER user for shared game score files
2009 --with-gnustep-conf=PATH
2010 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2011 or /etc/GNUstep/GNUstep.conf
2012 --with-x use the X Window System
2013
2014 Some influential environment variables:
2015 CC C compiler command
2016 CFLAGS C compiler flags
2017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2018 nonstandard directory <lib dir>
2019 LIBS libraries to pass to the linker, e.g. -l<library>
2020 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2021 you have headers in a nonstandard directory <include dir>
2022 CPP C preprocessor
2023 XMKMF Path to xmkmf, Makefile generator for X Window System
2024
2025 Use these variables to override the choices made by `configure' or to help
2026 it to find libraries and programs with nonstandard names/locations.
2027
2028 Report bugs to the package provider.
2029 _ACEOF
2030 ac_status=$?
2031 fi
2032
2033 if test "$ac_init_help" = "recursive"; then
2034 # If there are subdirs, report their specific --help.
2035 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2036 test -d "$ac_dir" ||
2037 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2038 continue
2039 ac_builddir=.
2040
2041 case "$ac_dir" in
2042 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2043 *)
2044 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2045 # A ".." for each directory in $ac_dir_suffix.
2046 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2047 case $ac_top_builddir_sub in
2048 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2049 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2050 esac ;;
2051 esac
2052 ac_abs_top_builddir=$ac_pwd
2053 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2054 # for backward compatibility:
2055 ac_top_builddir=$ac_top_build_prefix
2056
2057 case $srcdir in
2058 .) # We are building in place.
2059 ac_srcdir=.
2060 ac_top_srcdir=$ac_top_builddir_sub
2061 ac_abs_top_srcdir=$ac_pwd ;;
2062 [\\/]* | ?:[\\/]* ) # Absolute name.
2063 ac_srcdir=$srcdir$ac_dir_suffix;
2064 ac_top_srcdir=$srcdir
2065 ac_abs_top_srcdir=$srcdir ;;
2066 *) # Relative name.
2067 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2068 ac_top_srcdir=$ac_top_build_prefix$srcdir
2069 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2070 esac
2071 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2072
2073 cd "$ac_dir" || { ac_status=$?; continue; }
2074 # Check for guested configure.
2075 if test -f "$ac_srcdir/configure.gnu"; then
2076 echo &&
2077 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2078 elif test -f "$ac_srcdir/configure"; then
2079 echo &&
2080 $SHELL "$ac_srcdir/configure" --help=recursive
2081 else
2082 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2083 fi || ac_status=$?
2084 cd "$ac_pwd" || { ac_status=$?; break; }
2085 done
2086 fi
2087
2088 test -n "$ac_init_help" && exit $ac_status
2089 if $ac_init_version; then
2090 cat <<\_ACEOF
2091 emacs configure 24.0.94
2092 generated by GNU Autoconf 2.65
2093
2094 Copyright (C) 2009 Free Software Foundation, Inc.
2095 This configure script is free software; the Free Software Foundation
2096 gives unlimited permission to copy, distribute and modify it.
2097 _ACEOF
2098 exit
2099 fi
2100
2101 ## ------------------------ ##
2102 ## Autoconf initialization. ##
2103 ## ------------------------ ##
2104
2105 # ac_fn_c_try_compile LINENO
2106 # --------------------------
2107 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_c_try_compile ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 rm -f conftest.$ac_objext
2112 if { { ac_try="$ac_compile"
2113 case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119 (eval "$ac_compile") 2>conftest.err
2120 ac_status=$?
2121 if test -s conftest.err; then
2122 grep -v '^ *+' conftest.err >conftest.er1
2123 cat conftest.er1 >&5
2124 mv -f conftest.er1 conftest.err
2125 fi
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && {
2128 test -z "$ac_c_werror_flag" ||
2129 test ! -s conftest.err
2130 } && test -s conftest.$ac_objext; then :
2131 ac_retval=0
2132 else
2133 $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136 ac_retval=1
2137 fi
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139 as_fn_set_status $ac_retval
2140
2141 } # ac_fn_c_try_compile
2142
2143 # ac_fn_c_try_cpp LINENO
2144 # ----------------------
2145 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_c_try_cpp ()
2147 {
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if { { ac_try="$ac_cpp conftest.$ac_ext"
2150 case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153 esac
2154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2157 ac_status=$?
2158 if test -s conftest.err; then
2159 grep -v '^ *+' conftest.err >conftest.er1
2160 cat conftest.er1 >&5
2161 mv -f conftest.er1 conftest.err
2162 fi
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } >/dev/null && {
2165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2166 test ! -s conftest.err
2167 }; then :
2168 ac_retval=0
2169 else
2170 $as_echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2172
2173 ac_retval=1
2174 fi
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176 as_fn_set_status $ac_retval
2177
2178 } # ac_fn_c_try_cpp
2179
2180 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2181 # -------------------------------------------------------
2182 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2183 # the include files in INCLUDES and setting the cache variable VAR
2184 # accordingly.
2185 ac_fn_c_check_header_mongrel ()
2186 {
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2193 fi
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 else
2198 # Is the header compilable?
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2200 $as_echo_n "checking $2 usability... " >&6; }
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $4
2204 #include <$2>
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207 ac_header_compiler=yes
2208 else
2209 ac_header_compiler=no
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2213 $as_echo "$ac_header_compiler" >&6; }
2214
2215 # Is the header present?
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2217 $as_echo_n "checking $2 presence... " >&6; }
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2220 #include <$2>
2221 _ACEOF
2222 if ac_fn_c_try_cpp "$LINENO"; then :
2223 ac_header_preproc=yes
2224 else
2225 ac_header_preproc=no
2226 fi
2227 rm -f conftest.err conftest.$ac_ext
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2229 $as_echo "$ac_header_preproc" >&6; }
2230
2231 # So? What about this header?
2232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2233 yes:no: )
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2235 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238 ;;
2239 no:yes:* )
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2241 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2243 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2245 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2247 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2249 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2250 ;;
2251 esac
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 eval "$3=\$ac_header_compiler"
2258 fi
2259 eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 fi
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264
2265 } # ac_fn_c_check_header_mongrel
2266
2267 # ac_fn_c_try_run LINENO
2268 # ----------------------
2269 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2270 # that executables *can* be run.
2271 ac_fn_c_try_run ()
2272 {
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 if { { ac_try="$ac_link"
2275 case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_link") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2285 { { case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_try") 2>&5
2292 ac_status=$?
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; }; }; then :
2295 ac_retval=0
2296 else
2297 $as_echo "$as_me: program exited with status $ac_status" >&5
2298 $as_echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2300
2301 ac_retval=$ac_status
2302 fi
2303 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 as_fn_set_status $ac_retval
2306
2307 } # ac_fn_c_try_run
2308
2309 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2310 # -------------------------------------------------------
2311 # Tests whether HEADER exists and can be compiled using the include files in
2312 # INCLUDES, setting the cache variable VAR accordingly.
2313 ac_fn_c_check_header_compile ()
2314 {
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 $4
2324 #include <$2>
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 eval "$3=yes"
2328 else
2329 eval "$3=no"
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2337
2338 } # ac_fn_c_check_header_compile
2339
2340 # ac_fn_c_try_link LINENO
2341 # -----------------------
2342 # Try to link conftest.$ac_ext, and return whether this succeeded.
2343 ac_fn_c_try_link ()
2344 {
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 rm -f conftest.$ac_objext conftest$ac_exeext
2347 if { { ac_try="$ac_link"
2348 case "(($ac_try" in
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2351 esac
2352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2353 $as_echo "$ac_try_echo"; } >&5
2354 (eval "$ac_link") 2>conftest.err
2355 ac_status=$?
2356 if test -s conftest.err; then
2357 grep -v '^ *+' conftest.err >conftest.er1
2358 cat conftest.er1 >&5
2359 mv -f conftest.er1 conftest.err
2360 fi
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; } && {
2363 test -z "$ac_c_werror_flag" ||
2364 test ! -s conftest.err
2365 } && test -s conftest$ac_exeext && {
2366 test "$cross_compiling" = yes ||
2367 $as_test_x conftest$ac_exeext
2368 }; then :
2369 ac_retval=0
2370 else
2371 $as_echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 ac_retval=1
2375 fi
2376 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2377 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2378 # interfere with the next link command; also delete a directory that is
2379 # left behind by Apple's compiler. We do this before executing the actions.
2380 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2382 as_fn_set_status $ac_retval
2383
2384 } # ac_fn_c_try_link
2385
2386 # ac_fn_c_check_decl LINENO SYMBOL VAR
2387 # ------------------------------------
2388 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2389 ac_fn_c_check_decl ()
2390 {
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2393 $as_echo_n "checking whether $2 is declared... " >&6; }
2394 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $4
2400 int
2401 main ()
2402 {
2403 #ifndef $2
2404 (void) $2;
2405 #endif
2406
2407 ;
2408 return 0;
2409 }
2410 _ACEOF
2411 if ac_fn_c_try_compile "$LINENO"; then :
2412 eval "$3=yes"
2413 else
2414 eval "$3=no"
2415 fi
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 fi
2418 eval ac_res=\$$3
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2422
2423 } # ac_fn_c_check_decl
2424
2425 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2426 # ----------------------------------------------
2427 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2428 ac_fn_c_check_header_preproc ()
2429 {
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432 $as_echo_n "checking for $2... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2438 #include <$2>
2439 _ACEOF
2440 if ac_fn_c_try_cpp "$LINENO"; then :
2441 eval "$3=yes"
2442 else
2443 eval "$3=no"
2444 fi
2445 rm -f conftest.err conftest.$ac_ext
2446 fi
2447 eval ac_res=\$$3
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451
2452 } # ac_fn_c_check_header_preproc
2453
2454 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2455 # ----------------------------------------------------
2456 # Tries to find if the field MEMBER exists in type AGGR, after including
2457 # INCLUDES, setting cache variable VAR accordingly.
2458 ac_fn_c_check_member ()
2459 {
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2462 $as_echo_n "checking for $2.$3... " >&6; }
2463 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 $5
2469 int
2470 main ()
2471 {
2472 static $2 ac_aggr;
2473 if (ac_aggr.$3)
2474 return 0;
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 eval "$4=yes"
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 (sizeof 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 eval "$4=no"
2499 fi
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 fi
2504 eval ac_res=\$$4
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508
2509 } # ac_fn_c_check_member
2510
2511 # ac_fn_c_check_func LINENO FUNC VAR
2512 # ----------------------------------
2513 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2514 ac_fn_c_check_func ()
2515 {
2516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2518 $as_echo_n "checking for $2... " >&6; }
2519 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2524 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2526 #define $2 innocuous_$2
2527
2528 /* System header to define __stub macros and hopefully few prototypes,
2529 which can conflict with char $2 (); below.
2530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2531 <limits.h> exists even on freestanding compilers. */
2532
2533 #ifdef __STDC__
2534 # include <limits.h>
2535 #else
2536 # include <assert.h>
2537 #endif
2538
2539 #undef $2
2540
2541 /* Override any GCC internal prototype to avoid an error.
2542 Use char because int might match the return type of a GCC
2543 builtin and then its argument prototype would still apply. */
2544 #ifdef __cplusplus
2545 extern "C"
2546 #endif
2547 char $2 ();
2548 /* The GNU C library defines this for functions which it implements
2549 to always fail with ENOSYS. Some functions are actually named
2550 something starting with __ and the normal name is an alias. */
2551 #if defined __stub_$2 || defined __stub___$2
2552 choke me
2553 #endif
2554
2555 int
2556 main ()
2557 {
2558 return $2 ();
2559 ;
2560 return 0;
2561 }
2562 _ACEOF
2563 if ac_fn_c_try_link "$LINENO"; then :
2564 eval "$3=yes"
2565 else
2566 eval "$3=no"
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext \
2569 conftest$ac_exeext conftest.$ac_ext
2570 fi
2571 eval ac_res=\$$3
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 $as_echo "$ac_res" >&6; }
2574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2575
2576 } # ac_fn_c_check_func
2577
2578 <<<<<<< TREE
2579 =======
2580 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2581 # ----------------------------------------------------
2582 # Tries to find if the field MEMBER exists in type AGGR, after including
2583 # INCLUDES, setting cache variable VAR accordingly.
2584 ac_fn_c_check_member ()
2585 {
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2588 $as_echo_n "checking for $2.$3... " >&6; }
2589 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h. */
2594 $5
2595 int
2596 main ()
2597 {
2598 static $2 ac_aggr;
2599 if (ac_aggr.$3)
2600 return 0;
2601 ;
2602 return 0;
2603 }
2604 _ACEOF
2605 if ac_fn_c_try_compile "$LINENO"; then :
2606 eval "$4=yes"
2607 else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2610 $5
2611 int
2612 main ()
2613 {
2614 static $2 ac_aggr;
2615 if (sizeof ac_aggr.$3)
2616 return 0;
2617 ;
2618 return 0;
2619 }
2620 _ACEOF
2621 if ac_fn_c_try_compile "$LINENO"; then :
2622 eval "$4=yes"
2623 else
2624 eval "$4=no"
2625 fi
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 fi
2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 fi
2630 eval ac_res=\$$4
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2632 $as_echo "$ac_res" >&6; }
2633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2634
2635 } # ac_fn_c_check_member
2636
2637 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2638 # -------------------------------------------
2639 # Tests whether TYPE exists after having included INCLUDES, setting cache
2640 # variable VAR accordingly.
2641 ac_fn_c_check_type ()
2642 {
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2645 $as_echo_n "checking for $2... " >&6; }
2646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 eval "$3=no"
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h. */
2652 $4
2653 int
2654 main ()
2655 {
2656 if (sizeof ($2))
2657 return 0;
2658 ;
2659 return 0;
2660 }
2661 _ACEOF
2662 if ac_fn_c_try_compile "$LINENO"; then :
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2665 $4
2666 int
2667 main ()
2668 {
2669 if (sizeof (($2)))
2670 return 0;
2671 ;
2672 return 0;
2673 }
2674 _ACEOF
2675 if ac_fn_c_try_compile "$LINENO"; then :
2676
2677 else
2678 eval "$3=yes"
2679 fi
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 fi
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 fi
2684 eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2688
2689 } # ac_fn_c_check_type
2690
2691 >>>>>>> MERGE-SOURCE
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2696 # computed
2697 ac_fn_c_compute_int ()
2698 {
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if test "$cross_compiling" = yes; then
2701 # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2704 $4
2705 int
2706 main ()
2707 {
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2709 test_array [0] = 0
2710
2711 ;
2712 return 0;
2713 }
2714 _ACEOF
2715 if ac_fn_c_try_compile "$LINENO"; then :
2716 ac_lo=0 ac_mid=0
2717 while :; do
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2720 $4
2721 int
2722 main ()
2723 {
2724 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2725 test_array [0] = 0
2726
2727 ;
2728 return 0;
2729 }
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732 ac_hi=$ac_mid; break
2733 else
2734 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2735 if test $ac_lo -le $ac_mid; then
2736 ac_lo= ac_hi=
2737 break
2738 fi
2739 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2740 fi
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 done
2743 else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2746 $4
2747 int
2748 main ()
2749 {
2750 static int test_array [1 - 2 * !(($2) < 0)];
2751 test_array [0] = 0
2752
2753 ;
2754 return 0;
2755 }
2756 _ACEOF
2757 if ac_fn_c_try_compile "$LINENO"; then :
2758 ac_hi=-1 ac_mid=-1
2759 while :; do
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2762 $4
2763 int
2764 main ()
2765 {
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2767 test_array [0] = 0
2768
2769 ;
2770 return 0;
2771 }
2772 _ACEOF
2773 if ac_fn_c_try_compile "$LINENO"; then :
2774 ac_lo=$ac_mid; break
2775 else
2776 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2777 if test $ac_mid -le $ac_hi; then
2778 ac_lo= ac_hi=
2779 break
2780 fi
2781 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785 else
2786 ac_lo= ac_hi=
2787 fi
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 # Binary search between lo and hi bounds.
2792 while test "x$ac_lo" != "x$ac_hi"; do
2793 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2796 $4
2797 int
2798 main ()
2799 {
2800 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2801 test_array [0] = 0
2802
2803 ;
2804 return 0;
2805 }
2806 _ACEOF
2807 if ac_fn_c_try_compile "$LINENO"; then :
2808 ac_hi=$ac_mid
2809 else
2810 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2811 fi
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 done
2814 case $ac_lo in #((
2815 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2816 '') ac_retval=1 ;;
2817 esac
2818 else
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2821 $4
2822 static long int longval () { return $2; }
2823 static unsigned long int ulongval () { return $2; }
2824 #include <stdio.h>
2825 #include <stdlib.h>
2826 int
2827 main ()
2828 {
2829
2830 FILE *f = fopen ("conftest.val", "w");
2831 if (! f)
2832 return 1;
2833 if (($2) < 0)
2834 {
2835 long int i = longval ();
2836 if (i != ($2))
2837 return 1;
2838 fprintf (f, "%ld", i);
2839 }
2840 else
2841 {
2842 unsigned long int i = ulongval ();
2843 if (i != ($2))
2844 return 1;
2845 fprintf (f, "%lu", i);
2846 }
2847 /* Do not output a trailing newline, as this causes \r\n confusion
2848 on some platforms. */
2849 return ferror (f) || fclose (f) != 0;
2850
2851 ;
2852 return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_c_try_run "$LINENO"; then :
2856 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2857 else
2858 ac_retval=1
2859 fi
2860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2861 conftest.$ac_objext conftest.beam conftest.$ac_ext
2862 rm -f conftest.val
2863
2864 fi
2865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2866 as_fn_set_status $ac_retval
2867
2868 } # ac_fn_c_compute_int
2869
2870 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2871 # -------------------------------------------
2872 # Tests whether TYPE exists after having included INCLUDES, setting cache
2873 # variable VAR accordingly.
2874 ac_fn_c_check_type ()
2875 {
2876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2878 $as_echo_n "checking for $2... " >&6; }
2879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 eval "$3=no"
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2885 $4
2886 int
2887 main ()
2888 {
2889 if (sizeof ($2))
2890 return 0;
2891 ;
2892 return 0;
2893 }
2894 _ACEOF
2895 if ac_fn_c_try_compile "$LINENO"; then :
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2898 $4
2899 int
2900 main ()
2901 {
2902 if (sizeof (($2)))
2903 return 0;
2904 ;
2905 return 0;
2906 }
2907 _ACEOF
2908 if ac_fn_c_try_compile "$LINENO"; then :
2909
2910 else
2911 eval "$3=yes"
2912 fi
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 fi
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916 fi
2917 eval ac_res=\$$3
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2919 $as_echo "$ac_res" >&6; }
2920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2921
2922 } # ac_fn_c_check_type
2923 cat >config.log <<_ACEOF
2924 This file contains any messages produced by compilers while
2925 running configure, to aid debugging if configure makes a mistake.
2926
2927 It was created by emacs $as_me 24.0.94, which was
2928 generated by GNU Autoconf 2.65. Invocation command line was
2929
2930 $ $0 $@
2931
2932 _ACEOF
2933 exec 5>>config.log
2934 {
2935 cat <<_ASUNAME
2936 ## --------- ##
2937 ## Platform. ##
2938 ## --------- ##
2939
2940 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2941 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2942 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2943 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2944 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2945
2946 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2947 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2948
2949 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2950 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2951 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2952 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2953 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2954 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2955 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2956
2957 _ASUNAME
2958
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 $as_echo "PATH: $as_dir"
2965 done
2966 IFS=$as_save_IFS
2967
2968 } >&5
2969
2970 cat >&5 <<_ACEOF
2971
2972
2973 ## ----------- ##
2974 ## Core tests. ##
2975 ## ----------- ##
2976
2977 _ACEOF
2978
2979
2980 # Keep a trace of the command line.
2981 # Strip out --no-create and --no-recursion so they do not pile up.
2982 # Strip out --silent because we don't want to record it for future runs.
2983 # Also quote any args containing shell meta-characters.
2984 # Make two passes to allow for proper duplicate-argument suppression.
2985 ac_configure_args=
2986 ac_configure_args0=
2987 ac_configure_args1=
2988 ac_must_keep_next=false
2989 for ac_pass in 1 2
2990 do
2991 for ac_arg
2992 do
2993 case $ac_arg in
2994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2996 | -silent | --silent | --silen | --sile | --sil)
2997 continue ;;
2998 *\'*)
2999 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3000 esac
3001 case $ac_pass in
3002 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3003 2)
3004 as_fn_append ac_configure_args1 " '$ac_arg'"
3005 if test $ac_must_keep_next = true; then
3006 ac_must_keep_next=false # Got value, back to normal.
3007 else
3008 case $ac_arg in
3009 *=* | --config-cache | -C | -disable-* | --disable-* \
3010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3012 | -with-* | --with-* | -without-* | --without-* | --x)
3013 case "$ac_configure_args0 " in
3014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3015 esac
3016 ;;
3017 -* ) ac_must_keep_next=true ;;
3018 esac
3019 fi
3020 as_fn_append ac_configure_args " '$ac_arg'"
3021 ;;
3022 esac
3023 done
3024 done
3025 { ac_configure_args0=; unset ac_configure_args0;}
3026 { ac_configure_args1=; unset ac_configure_args1;}
3027
3028 # When interrupted or exit'd, cleanup temporary files, and complete
3029 # config.log. We remove comments because anyway the quotes in there
3030 # would cause problems or look ugly.
3031 # WARNING: Use '\'' to represent an apostrophe within the trap.
3032 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3033 trap 'exit_status=$?
3034 # Save into config.log some information that might help in debugging.
3035 {
3036 echo
3037
3038 cat <<\_ASBOX
3039 ## ---------------- ##
3040 ## Cache variables. ##
3041 ## ---------------- ##
3042 _ASBOX
3043 echo
3044 # The following way of writing the cache mishandles newlines in values,
3045 (
3046 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3047 eval ac_val=\$$ac_var
3048 case $ac_val in #(
3049 *${as_nl}*)
3050 case $ac_var in #(
3051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3053 esac
3054 case $ac_var in #(
3055 _ | IFS | as_nl) ;; #(
3056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3057 *) { eval $ac_var=; unset $ac_var;} ;;
3058 esac ;;
3059 esac
3060 done
3061 (set) 2>&1 |
3062 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3063 *${as_nl}ac_space=\ *)
3064 sed -n \
3065 "s/'\''/'\''\\\\'\'''\''/g;
3066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3067 ;; #(
3068 *)
3069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3070 ;;
3071 esac |
3072 sort
3073 )
3074 echo
3075
3076 cat <<\_ASBOX
3077 ## ----------------- ##
3078 ## Output variables. ##
3079 ## ----------------- ##
3080 _ASBOX
3081 echo
3082 for ac_var in $ac_subst_vars
3083 do
3084 eval ac_val=\$$ac_var
3085 case $ac_val in
3086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3087 esac
3088 $as_echo "$ac_var='\''$ac_val'\''"
3089 done | sort
3090 echo
3091
3092 if test -n "$ac_subst_files"; then
3093 cat <<\_ASBOX
3094 ## ------------------- ##
3095 ## File substitutions. ##
3096 ## ------------------- ##
3097 _ASBOX
3098 echo
3099 for ac_var in $ac_subst_files
3100 do
3101 eval ac_val=\$$ac_var
3102 case $ac_val in
3103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3104 esac
3105 $as_echo "$ac_var='\''$ac_val'\''"
3106 done | sort
3107 echo
3108 fi
3109
3110 if test -s confdefs.h; then
3111 cat <<\_ASBOX
3112 ## ----------- ##
3113 ## confdefs.h. ##
3114 ## ----------- ##
3115 _ASBOX
3116 echo
3117 cat confdefs.h
3118 echo
3119 fi
3120 test "$ac_signal" != 0 &&
3121 $as_echo "$as_me: caught signal $ac_signal"
3122 $as_echo "$as_me: exit $exit_status"
3123 } >&5
3124 rm -f core *.core core.conftest.* &&
3125 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3126 exit $exit_status
3127 ' 0
3128 for ac_signal in 1 2 13 15; do
3129 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3130 done
3131 ac_signal=0
3132
3133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3134 rm -f -r conftest* confdefs.h
3135
3136 $as_echo "/* confdefs.h */" > confdefs.h
3137
3138 # Predefined preprocessor variables.
3139
3140 cat >>confdefs.h <<_ACEOF
3141 #define PACKAGE_NAME "$PACKAGE_NAME"
3142 _ACEOF
3143
3144 cat >>confdefs.h <<_ACEOF
3145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3146 _ACEOF
3147
3148 cat >>confdefs.h <<_ACEOF
3149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3150 _ACEOF
3151
3152 cat >>confdefs.h <<_ACEOF
3153 #define PACKAGE_STRING "$PACKAGE_STRING"
3154 _ACEOF
3155
3156 cat >>confdefs.h <<_ACEOF
3157 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3158 _ACEOF
3159
3160 cat >>confdefs.h <<_ACEOF
3161 #define PACKAGE_URL "$PACKAGE_URL"
3162 _ACEOF
3163
3164
3165 # Let the site file select an alternate cache file if it wants to.
3166 # Prefer an explicitly selected file to automatically selected ones.
3167 ac_site_file1=NONE
3168 ac_site_file2=NONE
3169 if test -n "$CONFIG_SITE"; then
3170 ac_site_file1=$CONFIG_SITE
3171 elif test "x$prefix" != xNONE; then
3172 ac_site_file1=$prefix/share/config.site
3173 ac_site_file2=$prefix/etc/config.site
3174 else
3175 ac_site_file1=$ac_default_prefix/share/config.site
3176 ac_site_file2=$ac_default_prefix/etc/config.site
3177 fi
3178 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3179 do
3180 test "x$ac_site_file" = xNONE && continue
3181 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3183 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3184 sed 's/^/| /' "$ac_site_file" >&5
3185 . "$ac_site_file"
3186 fi
3187 done
3188
3189 if test -r "$cache_file"; then
3190 # Some versions of bash will fail to source /dev/null (special files
3191 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3194 $as_echo "$as_me: loading cache $cache_file" >&6;}
3195 case $cache_file in
3196 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3197 *) . "./$cache_file";;
3198 esac
3199 fi
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3202 $as_echo "$as_me: creating cache $cache_file" >&6;}
3203 >$cache_file
3204 fi
3205
3206 as_fn_append ac_header_list " stdlib.h"
3207 as_fn_append ac_header_list " unistd.h"
3208 as_fn_append ac_header_list " sys/param.h"
3209 as_fn_append ac_func_list " readlinkat"
3210 gl_getopt_required=GNU
3211 as_fn_append ac_header_list " getopt.h"
3212 as_fn_append ac_header_list " wchar.h"
3213 as_fn_append ac_header_list " stdint.h"
3214 as_fn_append ac_header_list " inttypes.h"
3215 as_fn_append ac_func_list " lstat"
3216 as_fn_append ac_func_list " alarm"
3217 as_fn_append ac_func_list " readlink"
3218 as_fn_append ac_header_list " sys/socket.h"
3219 as_fn_append ac_func_list " tzset"
3220 as_fn_append ac_func_list " strtoimax"
3221 as_fn_append ac_func_list " strtoumax"
3222 as_fn_append ac_func_list " symlink"
3223 as_fn_append ac_header_list " sys/stat.h"
3224 as_fn_append ac_header_list " sys/time.h"
3225 as_fn_append ac_func_list " localtime_r"
3226 # Check that the precious variables saved in the cache have kept the same
3227 # value.
3228 ac_cache_corrupted=false
3229 for ac_var in $ac_precious_vars; do
3230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3231 eval ac_new_set=\$ac_env_${ac_var}_set
3232 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3233 eval ac_new_val=\$ac_env_${ac_var}_value
3234 case $ac_old_set,$ac_new_set in
3235 set,)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3237 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3238 ac_cache_corrupted=: ;;
3239 ,set)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3241 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3242 ac_cache_corrupted=: ;;
3243 ,);;
3244 *)
3245 if test "x$ac_old_val" != "x$ac_new_val"; then
3246 # differences in whitespace do not lead to failure.
3247 ac_old_val_w=`echo x $ac_old_val`
3248 ac_new_val_w=`echo x $ac_new_val`
3249 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3251 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3252 ac_cache_corrupted=:
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3255 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3256 eval $ac_var=\$ac_old_val
3257 fi
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3259 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3261 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3262 fi;;
3263 esac
3264 # Pass precious variables to config.status.
3265 if test "$ac_new_set" = set; then
3266 case $ac_new_val in
3267 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3268 *) ac_arg=$ac_var=$ac_new_val ;;
3269 esac
3270 case " $ac_configure_args " in
3271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3272 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3273 esac
3274 fi
3275 done
3276 if $ac_cache_corrupted; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3280 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3281 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3282 fi
3283 ## -------------------- ##
3284 ## Main body of script. ##
3285 ## -------------------- ##
3286
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292
3293
3294 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3295
3296
3297 ac_aux_dir=
3298 for ac_dir in build-aux "$srcdir"/build-aux; do
3299 for ac_t in install-sh install.sh shtool; do
3300 if test -f "$ac_dir/$ac_t"; then
3301 ac_aux_dir=$ac_dir
3302 ac_install_sh="$ac_aux_dir/$ac_t -c"
3303 break 2
3304 fi
3305 done
3306 done
3307 if test -z "$ac_aux_dir"; then
3308 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3309 fi
3310
3311 # These three variables are undocumented and unsupported,
3312 # and are intended to be withdrawn in a future Autoconf release.
3313 # They can cause serious problems if a builder's source tree is in a directory
3314 # whose full name contains unusual characters.
3315 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3316 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3317 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3318
3319
3320 am__api_version='1.11'
3321
3322 # Find a good install program. We prefer a C program (faster),
3323 # so one script is as good as another. But avoid the broken or
3324 # incompatible versions:
3325 # SysV /etc/install, /usr/sbin/install
3326 # SunOS /usr/etc/install
3327 # IRIX /sbin/install
3328 # AIX /bin/install
3329 # AmigaOS /C/install, which installs bootblocks on floppy discs
3330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3333 # OS/2's system install, which has a completely different semantic
3334 # ./install, which can be erroneously created by make from ./install.sh.
3335 # Reject install programs that cannot install multiple files.
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3337 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3338 if test -z "$INSTALL"; then
3339 if test "${ac_cv_path_install+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 # Account for people who put trailing slashes in PATH elements.
3348 case $as_dir/ in #((
3349 ./ | .// | /[cC]/* | \
3350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3351 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3352 /usr/ucb/* ) ;;
3353 *)
3354 # OSF1 and SCO ODT 3.0 have their own names for install.
3355 # Don't use installbsd from OSF since it installs stuff as root
3356 # by default.
3357 for ac_prog in ginstall scoinst install; do
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3360 if test $ac_prog = install &&
3361 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3362 # AIX install. It has an incompatible calling convention.
3363 :
3364 elif test $ac_prog = install &&
3365 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3366 # program-specific install script used by HP pwplus--don't use.
3367 :
3368 else
3369 rm -rf conftest.one conftest.two conftest.dir
3370 echo one > conftest.one
3371 echo two > conftest.two
3372 mkdir conftest.dir
3373 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3374 test -s conftest.one && test -s conftest.two &&
3375 test -s conftest.dir/conftest.one &&
3376 test -s conftest.dir/conftest.two
3377 then
3378 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3379 break 3
3380 fi
3381 fi
3382 fi
3383 done
3384 done
3385 ;;
3386 esac
3387
3388 done
3389 IFS=$as_save_IFS
3390
3391 rm -rf conftest.one conftest.two conftest.dir
3392
3393 fi
3394 if test "${ac_cv_path_install+set}" = set; then
3395 INSTALL=$ac_cv_path_install
3396 else
3397 # As a last resort, use the slow shell script. Don't cache a
3398 # value for INSTALL within a source directory, because that will
3399 # break other packages using the cache if that directory is
3400 # removed, or if the value is a relative name.
3401 INSTALL=$ac_install_sh
3402 fi
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3405 $as_echo "$INSTALL" >&6; }
3406
3407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3408 # It thinks the first close brace ends the variable substitution.
3409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3410
3411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3412
3413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3414
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3416 $as_echo_n "checking whether build environment is sane... " >&6; }
3417 # Just in case
3418 sleep 1
3419 echo timestamp > conftest.file
3420 # Reject unsafe characters in $srcdir or the absolute working directory
3421 # name. Accept space and tab only in the latter.
3422 am_lf='
3423 '
3424 case `pwd` in
3425 *[\\\"\#\$\&\'\`$am_lf]*)
3426 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3427 esac
3428 case $srcdir in
3429 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3430 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3431 esac
3432
3433 # Do `set' in a subshell so we don't clobber the current shell's
3434 # arguments. Must try -L first in case configure is actually a
3435 # symlink; some systems play weird games with the mod time of symlinks
3436 # (eg FreeBSD returns the mod time of the symlink's containing
3437 # directory).
3438 if (
3439 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3440 if test "$*" = "X"; then
3441 # -L didn't work.
3442 set X `ls -t "$srcdir/configure" conftest.file`
3443 fi
3444 rm -f conftest.file
3445 if test "$*" != "X $srcdir/configure conftest.file" \
3446 && test "$*" != "X conftest.file $srcdir/configure"; then
3447
3448 # If neither matched, then we have a broken ls. This can happen
3449 # if, for instance, CONFIG_SHELL is bash and it inherits a
3450 # broken ls alias from the environment. This has actually
3451 # happened. Such a system could not be considered "sane".
3452 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3453 alias in your environment" "$LINENO" 5
3454 fi
3455
3456 test "$2" = conftest.file
3457 )
3458 then
3459 # Ok.
3460 :
3461 else
3462 as_fn_error "newly created file is older than distributed files!
3463 Check your system clock" "$LINENO" 5
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3466 $as_echo "yes" >&6; }
3467 test "$program_prefix" != NONE &&
3468 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3469 # Use a double $ so make ignores it.
3470 test "$program_suffix" != NONE &&
3471 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3472 # Double any \ or $.
3473 # By default was `s,x,x', remove it if useless.
3474 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3475 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3476
3477 # expand $ac_aux_dir to an absolute path
3478 am_aux_dir=`cd $ac_aux_dir && pwd`
3479
3480 if test x"${MISSING+set}" != xset; then
3481 case $am_aux_dir in
3482 *\ * | *\ *)
3483 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3484 *)
3485 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3486 esac
3487 fi
3488 # Use eval to expand $SHELL
3489 if eval "$MISSING --run true"; then
3490 am_missing_run="$MISSING --run "
3491 else
3492 am_missing_run=
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3494 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3495 fi
3496
3497 if test x"${install_sh}" != xset; then
3498 case $am_aux_dir in
3499 *\ * | *\ *)
3500 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3501 *)
3502 install_sh="\${SHELL} $am_aux_dir/install-sh"
3503 esac
3504 fi
3505
3506 # Installed binaries are usually stripped using `strip' when the user
3507 # run `make install-strip'. However `strip' might not be the right
3508 # tool to use in cross-compilation environments, therefore Automake
3509 # will honor the `STRIP' environment variable to overrule this program.
3510 if test "$cross_compiling" != no; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}strip; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_STRIP+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$STRIP"; then
3520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533 done
3534 done
3535 IFS=$as_save_IFS
3536
3537 fi
3538 fi
3539 STRIP=$ac_cv_prog_STRIP
3540 if test -n "$STRIP"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3542 $as_echo "$STRIP" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548
3549 fi
3550 if test -z "$ac_cv_prog_STRIP"; then
3551 ac_ct_STRIP=$STRIP
3552 # Extract the first word of "strip", so it can be a program name with args.
3553 set dummy strip; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$ac_ct_STRIP"; then
3560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_ac_ct_STRIP="strip"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3572 fi
3573 done
3574 done
3575 IFS=$as_save_IFS
3576
3577 fi
3578 fi
3579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3580 if test -n "$ac_ct_STRIP"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3582 $as_echo "$ac_ct_STRIP" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 fi
3587
3588 if test "x$ac_ct_STRIP" = x; then
3589 STRIP=":"
3590 else
3591 case $cross_compiling:$ac_tool_warned in
3592 yes:)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595 ac_tool_warned=yes ;;
3596 esac
3597 STRIP=$ac_ct_STRIP
3598 fi
3599 else
3600 STRIP="$ac_cv_prog_STRIP"
3601 fi
3602
3603 fi
3604 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3607 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3608 if test -z "$MKDIR_P"; then
3609 if test "${ac_cv_path_mkdir+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in mkdir gmkdir; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3620 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3621 'mkdir (GNU coreutils) '* | \
3622 'mkdir (coreutils) '* | \
3623 'mkdir (fileutils) '4.1*)
3624 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3625 break 3;;
3626 esac
3627 done
3628 done
3629 done
3630 IFS=$as_save_IFS
3631
3632 fi
3633
3634 test -d ./--version && rmdir ./--version
3635 if test "${ac_cv_path_mkdir+set}" = set; then
3636 MKDIR_P="$ac_cv_path_mkdir -p"
3637 else
3638 # As a last resort, use the slow shell script. Don't cache a
3639 # value for MKDIR_P within a source directory, because that will
3640 # break other packages using the cache if that directory is
3641 # removed, or if the value is a relative name.
3642 MKDIR_P="$ac_install_sh -d"
3643 fi
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3646 $as_echo "$MKDIR_P" >&6; }
3647
3648
3649 mkdir_p="$MKDIR_P"
3650 case $mkdir_p in
3651 [\\/$]* | ?:[\\/]*) ;;
3652 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3653 esac
3654
3655 for ac_prog in gawk mawk nawk awk
3656 do
3657 # Extract the first word of "$ac_prog", so it can be a program name with args.
3658 set dummy $ac_prog; ac_word=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if test "${ac_cv_prog_AWK+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if test -n "$AWK"; then
3665 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3666 else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_AWK="$ac_prog"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 fi
3683 fi
3684 AWK=$ac_cv_prog_AWK
3685 if test -n "$AWK"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3687 $as_echo "$AWK" >&6; }
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3691 fi
3692
3693
3694 test -n "$AWK" && break
3695 done
3696
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3698 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3699 set x ${MAKE-make}
3700 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3701 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 cat >conftest.make <<\_ACEOF
3705 SHELL = /bin/sh
3706 all:
3707 @echo '@@@%%%=$(MAKE)=@@@%%%'
3708 _ACEOF
3709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3710 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3711 *@@@%%%=?*=@@@%%%*)
3712 eval ac_cv_prog_make_${ac_make}_set=yes;;
3713 *)
3714 eval ac_cv_prog_make_${ac_make}_set=no;;
3715 esac
3716 rm -f conftest.make
3717 fi
3718 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720 $as_echo "yes" >&6; }
3721 SET_MAKE=
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3725 SET_MAKE="MAKE=${MAKE-make}"
3726 fi
3727
3728 rm -rf .tst 2>/dev/null
3729 mkdir .tst 2>/dev/null
3730 if test -d .tst; then
3731 am__leading_dot=.
3732 else
3733 am__leading_dot=_
3734 fi
3735 rmdir .tst 2>/dev/null
3736
3737 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3738 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3739 # is not polluted with repeated "-I."
3740 am__isrc=' -I$(srcdir)'
3741 # test to see if srcdir already configured
3742 if test -f $srcdir/config.status; then
3743 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3744 fi
3745 fi
3746
3747 # test whether we have cygpath
3748 if test -z "$CYGPATH_W"; then
3749 if (cygpath --version) >/dev/null 2>/dev/null; then
3750 CYGPATH_W='cygpath -w'
3751 else
3752 CYGPATH_W=echo
3753 fi
3754 fi
3755
3756
3757 # Define the identity of the package.
3758 PACKAGE='emacs'
3759 VERSION='24.0.94'
3760
3761
3762 cat >>confdefs.h <<_ACEOF
3763 #define PACKAGE "$PACKAGE"
3764 _ACEOF
3765
3766
3767 cat >>confdefs.h <<_ACEOF
3768 #define VERSION "$VERSION"
3769 _ACEOF
3770
3771 # Some tools Automake needs.
3772
3773 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3774
3775
3776 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3777
3778
3779 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3780
3781
3782 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3783
3784
3785 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3786
3787 # We need awk for the "check" target. The system "awk" is bad on
3788 # some platforms.
3789 # Always define AMTAR for backward compatibility.
3790
3791 AMTAR=${AMTAR-"${am_missing_run}tar"}
3792
3793 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3794
3795
3796
3797
3798
3799
3800
3801
3802 lispdir='${datadir}/emacs/${version}/lisp'
3803 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3804 '${datadir}/emacs/site-lisp'
3805 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3806 etcdir='${datadir}/emacs/${version}/etc'
3807 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3808 docdir='${datadir}/emacs/${version}/etc'
3809 gamedir='${localstatedir}/games/emacs'
3810
3811
3812
3813
3814 # Check whether --with-pop was given.
3815 if test "${with_pop+set}" = set; then :
3816 withval=$with_pop;
3817 else
3818 with_pop=yes
3819 fi
3820
3821 if test "$with_pop" = yes; then
3822 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3823
3824 fi
3825
3826
3827 # Check whether --with-kerberos was given.
3828 if test "${with_kerberos+set}" = set; then :
3829 withval=$with_kerberos;
3830 else
3831 with_kerberos=no
3832 fi
3833
3834 if test "$with_kerberos" != no; then
3835 $as_echo "#define KERBEROS 1" >>confdefs.h
3836
3837 fi
3838
3839
3840 # Check whether --with-kerberos5 was given.
3841 if test "${with_kerberos5+set}" = set; then :
3842 withval=$with_kerberos5;
3843 else
3844 with_kerberos5=no
3845 fi
3846
3847 if test "${with_kerberos5}" != no; then
3848 if test "${with_kerberos}" = no; then
3849 with_kerberos=yes
3850 $as_echo "#define KERBEROS 1" >>confdefs.h
3851
3852 fi
3853
3854 $as_echo "#define KERBEROS5 1" >>confdefs.h
3855
3856 fi
3857
3858
3859 # Check whether --with-hesiod was given.
3860 if test "${with_hesiod+set}" = set; then :
3861 withval=$with_hesiod;
3862 else
3863 with_hesiod=no
3864 fi
3865
3866 if test "$with_hesiod" != no; then
3867
3868 $as_echo "#define HESIOD 1" >>confdefs.h
3869
3870 fi
3871
3872
3873 # Check whether --with-mmdf was given.
3874 if test "${with_mmdf+set}" = set; then :
3875 withval=$with_mmdf;
3876 else
3877 with_mmdf=no
3878 fi
3879
3880 if test "$with_mmdf" != no; then
3881
3882 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3883
3884 fi
3885
3886
3887 # Check whether --with-mail-unlink was given.
3888 if test "${with_mail_unlink+set}" = set; then :
3889 withval=$with_mail_unlink;
3890 else
3891 with_mail_unlink=no
3892 fi
3893
3894 if test "$with_mail_unlink" != no; then
3895
3896 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3897
3898 fi
3899
3900
3901 # Check whether --with-mailhost was given.
3902 if test "${with_mailhost+set}" = set; then :
3903 withval=$with_mailhost;
3904 cat >>confdefs.h <<_ACEOF
3905 #define MAILHOST "$withval"
3906 _ACEOF
3907
3908 fi
3909
3910
3911
3912 # Check whether --with-sound was given.
3913 if test "${with_sound+set}" = set; then :
3914 withval=$with_sound;
3915 else
3916 with_sound=yes
3917 fi
3918
3919
3920
3921 # Check whether --with-sync-input was given.
3922 if test "${with_sync_input+set}" = set; then :
3923 withval=$with_sync_input;
3924 else
3925 with_sync_input=yes
3926 fi
3927
3928 if test "$with_sync_input" = yes; then
3929
3930 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3931
3932 fi
3933
3934
3935 # Check whether --with-x-toolkit was given.
3936 if test "${with_x_toolkit+set}" = set; then :
3937 withval=$with_x_toolkit; case "${withval}" in
3938 y | ye | yes ) val=gtk ;;
3939 n | no ) val=no ;;
3940 l | lu | luc | luci | lucid ) val=lucid ;;
3941 a | at | ath | athe | athen | athena ) val=athena ;;
3942 m | mo | mot | moti | motif ) val=motif ;;
3943 g | gt | gtk ) val=gtk ;;
3944 gtk3 ) val=gtk3 ;;
3945 * )
3946 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3947 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3948 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3949 ;;
3950 esac
3951 with_x_toolkit=$val
3952
3953 fi
3954
3955
3956
3957 # Check whether --with-wide-int was given.
3958 if test "${with_wide_int+set}" = set; then :
3959 withval=$with_wide_int;
3960 else
3961 with_wide_int=no
3962 fi
3963
3964 if test "$with_wide_int" = yes; then
3965
3966 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3967
3968 fi
3969
3970
3971 # Check whether --with-xpm was given.
3972 if test "${with_xpm+set}" = set; then :
3973 withval=$with_xpm;
3974 else
3975 with_xpm=yes
3976 fi
3977
3978
3979 # Check whether --with-jpeg was given.
3980 if test "${with_jpeg+set}" = set; then :
3981 withval=$with_jpeg;
3982 else
3983 with_jpeg=yes
3984 fi
3985
3986
3987 # Check whether --with-tiff was given.
3988 if test "${with_tiff+set}" = set; then :
3989 withval=$with_tiff;
3990 else
3991 with_tiff=yes
3992 fi
3993
3994
3995 # Check whether --with-gif was given.
3996 if test "${with_gif+set}" = set; then :
3997 withval=$with_gif;
3998 else
3999 with_gif=yes
4000 fi
4001
4002
4003 # Check whether --with-png was given.
4004 if test "${with_png+set}" = set; then :
4005 withval=$with_png;
4006 else
4007 with_png=yes
4008 fi
4009
4010
4011 # Check whether --with-rsvg was given.
4012 if test "${with_rsvg+set}" = set; then :
4013 withval=$with_rsvg;
4014 else
4015 with_rsvg=yes
4016 fi
4017
4018
4019 # Check whether --with-xml2 was given.
4020 if test "${with_xml2+set}" = set; then :
4021 withval=$with_xml2;
4022 else
4023 with_xml2=yes
4024 fi
4025
4026
4027 # Check whether --with-imagemagick was given.
4028 if test "${with_imagemagick+set}" = set; then :
4029 withval=$with_imagemagick;
4030 else
4031 with_imagemagick=yes
4032 fi
4033
4034
4035
4036 # Check whether --with-xft was given.
4037 if test "${with_xft+set}" = set; then :
4038 withval=$with_xft;
4039 else
4040 with_xft=yes
4041 fi
4042
4043
4044 # Check whether --with-libotf was given.
4045 if test "${with_libotf+set}" = set; then :
4046 withval=$with_libotf;
4047 else
4048 with_libotf=yes
4049 fi
4050
4051
4052 # Check whether --with-m17n-flt was given.
4053 if test "${with_m17n_flt+set}" = set; then :
4054 withval=$with_m17n_flt;
4055 else
4056 with_m17n_flt=yes
4057 fi
4058
4059
4060
4061 # Check whether --with-toolkit-scroll-bars was given.
4062 if test "${with_toolkit_scroll_bars+set}" = set; then :
4063 withval=$with_toolkit_scroll_bars;
4064 else
4065 with_toolkit_scroll_bars=yes
4066 fi
4067
4068
4069 # Check whether --with-xaw3d was given.
4070 if test "${with_xaw3d+set}" = set; then :
4071 withval=$with_xaw3d;
4072 else
4073 with_xaw3d=yes
4074 fi
4075
4076
4077 # Check whether --with-xim was given.
4078 if test "${with_xim+set}" = set; then :
4079 withval=$with_xim;
4080 else
4081 with_xim=yes
4082 fi
4083
4084
4085 # Check whether --with-ns was given.
4086 if test "${with_ns+set}" = set; then :
4087 withval=$with_ns;
4088 else
4089 with_ns=no
4090 fi
4091
4092
4093
4094 # Check whether --with-gpm was given.
4095 if test "${with_gpm+set}" = set; then :
4096 withval=$with_gpm;
4097 else
4098 with_gpm=yes
4099 fi
4100
4101
4102 # Check whether --with-dbus was given.
4103 if test "${with_dbus+set}" = set; then :
4104 withval=$with_dbus;
4105 else
4106 with_dbus=yes
4107 fi
4108
4109
4110 # Check whether --with-gconf was given.
4111 if test "${with_gconf+set}" = set; then :
4112 withval=$with_gconf;
4113 else
4114 with_gconf=yes
4115 fi
4116
4117
4118 # Check whether --with-selinux was given.
4119 if test "${with_selinux+set}" = set; then :
4120 withval=$with_selinux;
4121 else
4122 with_selinux=yes
4123 fi
4124
4125
4126 # Check whether --with-gnutls was given.
4127 if test "${with_gnutls+set}" = set; then :
4128 withval=$with_gnutls;
4129 else
4130 with_gnutls=yes
4131 fi
4132
4133
4134 ## For the times when you want to build Emacs but don't have
4135 ## a suitable makeinfo, and can live without the manuals.
4136
4137 # Check whether --with-makeinfo was given.
4138 if test "${with_makeinfo+set}" = set; then :
4139 withval=$with_makeinfo;
4140 else
4141 with_makeinfo=yes
4142 fi
4143
4144
4145 ## This is an option because I do not know if all info/man support
4146 ## compressed files, nor how to test if they do so.
4147
4148 # Check whether --with-compress-info was given.
4149 if test "${with_compress_info+set}" = set; then :
4150 withval=$with_compress_info;
4151 else
4152 with_compress_info=yes
4153 fi
4154
4155 if test $with_compress_info = yes; then
4156 GZIP_INFO=yes
4157 else
4158 GZIP_INFO=
4159 fi
4160
4161
4162
4163 # Check whether --with-pkg-config-prog was given.
4164 if test "${with_pkg_config_prog+set}" = set; then :
4165 withval=$with_pkg_config_prog;
4166 fi
4167
4168 if test "X${with_pkg_config_prog}" != X; then
4169 if test "${with_pkg_config_prog}" != yes; then
4170 PKG_CONFIG="${with_pkg_config_prog}"
4171 fi
4172 fi
4173
4174 CRT_DIR=
4175
4176 # Check whether --with-crt-dir was given.
4177 if test "${with_crt_dir+set}" = set; then :
4178 withval=$with_crt_dir;
4179 fi
4180
4181 CRT_DIR="${with_crt_dir}"
4182
4183
4184 # Check whether --with-gameuser was given.
4185 if test "${with_gameuser+set}" = set; then :
4186 withval=$with_gameuser;
4187 fi
4188
4189 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4190 && gameuser="${with_gameuser}"
4191 test "X$gameuser" = X && gameuser=games
4192
4193
4194 # Check whether --with-gnustep-conf was given.
4195 if test "${with_gnustep_conf+set}" = set; then :
4196 withval=$with_gnustep_conf;
4197 fi
4198
4199 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4200 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4201 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4202 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4203
4204 # Check whether --enable-ns-self-contained was given.
4205 if test "${enable_ns_self_contained+set}" = set; then :
4206 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4207 else
4208 EN_NS_SELF_CONTAINED=yes
4209 fi
4210
4211
4212 # Check whether --enable-asserts was given.
4213 if test "${enable_asserts+set}" = set; then :
4214 enableval=$enable_asserts; USE_XASSERTS=$enableval
4215 else
4216 USE_XASSERTS=no
4217 fi
4218
4219
4220 # Check whether --enable-maintainer-mode was given.
4221 if test "${enable_maintainer_mode+set}" = set; then :
4222 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4223 else
4224 USE_MAINTAINER_MODE=yes
4225 fi
4226
4227 if test $USE_MAINTAINER_MODE = yes; then
4228 MAINT=
4229 else
4230 MAINT=#
4231 fi
4232
4233
4234 # Check whether --enable-locallisppath was given.
4235 if test "${enable_locallisppath+set}" = set; then :
4236 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4237 locallisppath=
4238 elif test "${enableval}" != "yes"; then
4239 locallisppath=${enableval}
4240 fi
4241 fi
4242
4243
4244 # Check whether --enable-checking was given.
4245 if test "${enable_checking+set}" = set; then :
4246 enableval=$enable_checking; ac_checking_flags="${enableval}"
4247 fi
4248
4249 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4250 for check in $ac_checking_flags
4251 do
4252 case $check in
4253 # these set all the flags to specific states
4254 yes) ac_enable_checking=1 ;;
4255 no) ac_enable_checking= ;
4256 ac_gc_check_stringbytes= ;
4257 ac_gc_check_string_overrun= ;
4258 ac_gc_check_string_free_list= ;
4259 ac_xmalloc_overrun= ;
4260 ac_gc_check_cons_list= ;;
4261 all) ac_enable_checking=1 ;
4262 ac_gc_check_stringbytes=1 ;
4263 ac_gc_check_string_overrun=1 ;
4264 ac_gc_check_string_free_list=1 ;
4265 ac_xmalloc_overrun=1 ;
4266 ac_gc_check_cons_list=1 ;;
4267 # these enable particular checks
4268 stringbytes) ac_gc_check_stringbytes=1 ;;
4269 stringoverrun) ac_gc_check_string_overrun=1 ;;
4270 stringfreelist) ac_gc_check_string_free_list=1 ;;
4271 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4272 conslist) ac_gc_check_cons_list=1 ;;
4273 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4274 esac
4275 done
4276 IFS="$ac_save_IFS"
4277
4278 if test x$ac_enable_checking != x ; then
4279
4280 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4281
4282 fi
4283 if test x$ac_gc_check_stringbytes != x ; then
4284
4285 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4286
4287 fi
4288 if test x$ac_gc_check_string_overrun != x ; then
4289
4290 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4291
4292 fi
4293 if test x$ac_gc_check_string_free_list != x ; then
4294
4295 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4296
4297 fi
4298 if test x$ac_xmalloc_overrun != x ; then
4299
4300 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4301
4302 fi
4303 if test x$ac_gc_check_cons_list != x ; then
4304
4305 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4306
4307 fi
4308
4309 # Check whether --enable-use-lisp-union-type was given.
4310 if test "${enable_use_lisp_union_type+set}" = set; then :
4311 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4312
4313 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4314
4315 fi
4316 fi
4317
4318
4319
4320 # Check whether --enable-profiling was given.
4321 if test "${enable_profiling+set}" = set; then :
4322 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4323 fi
4324
4325 if test x$ac_enable_profiling != x ; then
4326 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4327 else
4328 PROFILING_CFLAGS=
4329 fi
4330
4331
4332 # Check whether --enable-autodepend was given.
4333 if test "${enable_autodepend+set}" = set; then :
4334 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4335 else
4336 ac_enable_autodepend=yes
4337 fi
4338
4339
4340 #### Make srcdir absolute, if it isn't already. It's important to
4341 #### avoid running the path through pwd unnecessarily, since pwd can
4342 #### give you automounter prefixes, which can go away. We do all this
4343 #### so Emacs can find its files when run uninstalled.
4344 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4345 unset CDPATH
4346 case "${srcdir}" in
4347 /* ) ;;
4348 . )
4349 ## We may be able to use the $PWD environment variable to make this
4350 ## absolute. But sometimes PWD is inaccurate.
4351 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4352 ## but that tested only for a well-formed and valid PWD,
4353 ## it did not object when PWD was well-formed and valid but just wrong.
4354 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4355 then
4356 srcdir="$PWD"
4357 else
4358 srcdir="`(cd ${srcdir}; pwd)`"
4359 fi
4360 ;;
4361 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4362 esac
4363
4364 #### Given the configuration name, set machfile and opsysfile to the
4365 #### names of the m/*.h and s/*.h files we should use.
4366
4367 ### Canonicalize the configuration name.
4368
4369 # Make sure we can run config.sub.
4370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4371 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4372
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4374 $as_echo_n "checking build system type... " >&6; }
4375 if test "${ac_cv_build+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 ac_build_alias=$build_alias
4379 test "x$ac_build_alias" = x &&
4380 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4381 test "x$ac_build_alias" = x &&
4382 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4384 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4385
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4388 $as_echo "$ac_cv_build" >&6; }
4389 case $ac_cv_build in
4390 *-*-*) ;;
4391 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4392 esac
4393 build=$ac_cv_build
4394 ac_save_IFS=$IFS; IFS='-'
4395 set x $ac_cv_build
4396 shift
4397 build_cpu=$1
4398 build_vendor=$2
4399 shift; shift
4400 # Remember, the first character of IFS is used to create $*,
4401 # except with old shells:
4402 build_os=$*
4403 IFS=$ac_save_IFS
4404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4405
4406
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4408 $as_echo_n "checking host system type... " >&6; }
4409 if test "${ac_cv_host+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test "x$host_alias" = x; then
4413 ac_cv_host=$ac_cv_build
4414 else
4415 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4416 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4417 fi
4418
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4421 $as_echo "$ac_cv_host" >&6; }
4422 case $ac_cv_host in
4423 *-*-*) ;;
4424 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4425 esac
4426 host=$ac_cv_host
4427 ac_save_IFS=$IFS; IFS='-'
4428 set x $ac_cv_host
4429 shift
4430 host_cpu=$1
4431 host_vendor=$2
4432 shift; shift
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4435 host_os=$*
4436 IFS=$ac_save_IFS
4437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4438
4439
4440 canonical=$host
4441 configuration=${host_alias-${build_alias-$host}}
4442
4443
4444
4445 ### If you add support for a new configuration, add code to this
4446 ### switch statement to recognize your configuration name and select
4447 ### the appropriate operating system and machine description files.
4448
4449 ### You would hope that you could choose an m/*.h file pretty much
4450 ### based on the machine portion of the configuration name, and an s/*.h
4451 ### file based on the operating system portion. However, it turns out
4452 ### that each m/*.h file is pretty manufacturer-specific - for
4453 ### example mips.h is MIPS
4454 ### So we basically have to have a special case for each
4455 ### configuration name.
4456 ###
4457 ### As far as handling version numbers on operating systems is
4458 ### concerned, make sure things will fail in a fixable way. If
4459 ### /etc/MACHINES doesn't say anything about version numbers, be
4460 ### prepared to handle anything reasonably. If version numbers
4461 ### matter, be sure /etc/MACHINES says something about it.
4462
4463 machine='' opsys='' unported=no
4464 case "${canonical}" in
4465
4466 ## GNU/Linux and similar ports
4467 *-*-linux* )
4468 opsys=gnu-linux
4469 case ${canonical} in
4470 alpha*) machine=alpha ;;
4471 s390x-*) machine=ibms390x ;;
4472 powerpc*) machine=macppc ;;
4473 sparc*) machine=sparc ;;
4474 ia64*) machine=ia64 ;;
4475 m68k*) machine=m68k ;;
4476 x86_64*) machine=amdx86-64 ;;
4477 esac
4478 ;;
4479
4480 ## FreeBSD ports
4481 *-*-freebsd* )
4482 opsys=freebsd
4483 case "${canonical}" in
4484 alpha*) machine=alpha ;;
4485 amd64-*|x86_64-*) machine=amdx86-64 ;;
4486 ia64-*) machine=ia64 ;;
4487 i[3456]86-*) machine=intel386 ;;
4488 powerpc-*) machine=macppc ;;
4489 sparc-*) machine=sparc ;;
4490 sparc64-*) machine=sparc ;;
4491 esac
4492 ;;
4493
4494 ## FreeBSD kernel + glibc based userland
4495 *-*-kfreebsd*gnu* )
4496 opsys=gnu-kfreebsd
4497 case "${canonical}" in
4498 alpha*) machine=alpha ;;
4499 amd64-*|x86_64-*) machine=amdx86-64 ;;
4500 ia64-*) machine=ia64 ;;
4501 i[3456]86-*) machine=intel386 ;;
4502 powerpc-*) machine=macppc ;;
4503 sparc-*) machine=sparc ;;
4504 sparc64-*) machine=sparc ;;
4505 esac
4506 ;;
4507
4508 ## NetBSD ports
4509 *-*-netbsd* )
4510 opsys=netbsd
4511 case "${canonical}" in
4512 alpha*) machine=alpha ;;
4513 x86_64-*) machine=amdx86-64 ;;
4514 i[3456]86-*) machine=intel386 ;;
4515 m68k-*) machine=m68k ;;
4516 powerpc-*) machine=macppc ;;
4517 sparc*-) machine=sparc ;;
4518 vax-*) machine=vax ;;
4519 esac
4520 ;;
4521
4522 ## OpenBSD ports
4523 *-*-openbsd* )
4524 opsys=openbsd
4525 case "${canonical}" in
4526 alpha*) machine=alpha ;;
4527 x86_64-*) machine=amdx86-64 ;;
4528 i386-*) machine=intel386 ;;
4529 powerpc-*) machine=macppc ;;
4530 sparc*) machine=sparc ;;
4531 vax-*) machine=vax ;;
4532 esac
4533 ;;
4534
4535 ## Apple Darwin / Mac OS X
4536 *-apple-darwin* )
4537 case "${canonical}" in
4538 i[3456]86-* ) machine=intel386 ;;
4539 powerpc-* ) machine=macppc ;;
4540 x86_64-* ) machine=amdx86-64 ;;
4541 * ) unported=yes ;;
4542 esac
4543 opsys=darwin
4544 # Define CPP as follows to make autoconf work correctly.
4545 CPP="${CC-cc} -E -no-cpp-precomp"
4546 # Use fink packages if available.
4547 if test -d /sw/include && test -d /sw/lib; then
4548 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4549 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4550 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4551 fi
4552 ;;
4553
4554 ## HP 9000 series 700 and 800, running HP/UX
4555 hppa*-hp-hpux10.2* )
4556 opsys=hpux10-20
4557 ;;
4558 hppa*-hp-hpux1[1-9]* )
4559 opsys=hpux11
4560 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4561 ;;
4562
4563 ## IBM machines
4564 rs6000-ibm-aix4.[23]* )
4565 machine=ibmrs6000 opsys=aix4-2
4566 ;;
4567 powerpc-ibm-aix4.[23]* )
4568 machine=ibmrs6000 opsys=aix4-2
4569 ;;
4570 rs6000-ibm-aix[56]* )
4571 machine=ibmrs6000 opsys=aix4-2
4572 ;;
4573 powerpc-ibm-aix[56]* )
4574 machine=ibmrs6000 opsys=aix4-2
4575 ;;
4576
4577 ## Silicon Graphics machines
4578 ## Iris 4D
4579 mips-sgi-irix6.5 )
4580 machine=iris4d opsys=irix6-5
4581 # Without defining _LANGUAGE_C, things get masked out in the headers
4582 # so that, for instance, grepping for `free' in stdlib.h fails and
4583 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4584 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4585 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4586 ;;
4587
4588 ## Suns
4589 *-sun-solaris* \
4590 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4591 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4592 case "${canonical}" in
4593 i[3456]86-*-* ) machine=intel386 ;;
4594 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4595 sparc* ) machine=sparc ;;
4596 * ) unported=yes ;;
4597 esac
4598 case "${canonical}" in
4599 *-sunos5.6* | *-solaris2.6* )
4600 opsys=sol2-6
4601 NON_GNU_CPP=/usr/ccs/lib/cpp
4602 RANLIB="ar -ts"
4603 ;;
4604 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4605 opsys=sol2-6
4606 emacs_check_sunpro_c=yes
4607 NON_GNU_CPP=/usr/ccs/lib/cpp
4608 ;;
4609 *-sunos5* | *-solaris* )
4610 opsys=sol2-10
4611 emacs_check_sunpro_c=yes
4612 NON_GNU_CPP=/usr/ccs/lib/cpp
4613 ;;
4614 esac
4615 ## Watch out for a compiler that we know will not work.
4616 case "${canonical}" in
4617 *-solaris* | *-sunos5* )
4618 if [ "x$CC" = x/usr/ucb/cc ]; then
4619 ## /usr/ucb/cc doesn't work;
4620 ## we should find some other compiler that does work.
4621 unset CC
4622 fi
4623 ;;
4624 *) ;;
4625 esac
4626 ;;
4627
4628 ## Intel 386 machines where we don't care about the manufacturer.
4629 i[3456]86-*-* )
4630 machine=intel386
4631 case "${canonical}" in
4632 *-cygwin ) opsys=cygwin ;;
4633 *-darwin* ) opsys=darwin
4634 CPP="${CC-cc} -E -no-cpp-precomp"
4635 ;;
4636 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4637 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4638 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4639 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4640 esac
4641 ;;
4642
4643 * )
4644 unported=yes
4645 ;;
4646 esac
4647
4648 ### If the code above didn't choose an operating system, just choose
4649 ### an operating system based on the configuration name. You really
4650 ### only want to use this when you have no idea what the right
4651 ### operating system is; if you know what operating systems a machine
4652 ### runs, it's cleaner to make it explicit in the case statement
4653 ### above.
4654 if test x"${opsys}" = x; then
4655 case "${canonical}" in
4656 *-gnu* ) opsys=gnu ;;
4657 * )
4658 unported=yes
4659 ;;
4660 esac
4661 fi
4662
4663
4664
4665 if test $unported = yes; then
4666 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4667 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4668 fi
4669
4670 if test -n "$machine"; then
4671 machfile="m/${machine}.h"
4672 else
4673 machfile=
4674 fi
4675 opsysfile="s/${opsys}.h"
4676
4677
4678 #### Choose a compiler.
4679 test -n "$CC" && cc_specified=yes
4680
4681 # Save the value of CFLAGS that the user specified.
4682 SPECIFIED_CFLAGS="$CFLAGS"
4683
4684 ac_ext=c
4685 ac_cpp='$CPP $CPPFLAGS'
4686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689 if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4691 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_CC+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 CC=$ac_cv_prog_CC
4718 if test -n "$CC"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4720 $as_echo "$CC" >&6; }
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726
4727 fi
4728 if test -z "$ac_cv_prog_CC"; then
4729 ac_ct_CC=$CC
4730 # Extract the first word of "gcc", so it can be a program name with args.
4731 set dummy gcc; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$ac_ct_CC"; then
4738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_prog_ac_ct_CC="gcc"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751 done
4752 done
4753 IFS=$as_save_IFS
4754
4755 fi
4756 fi
4757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4758 if test -n "$ac_ct_CC"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4760 $as_echo "$ac_ct_CC" >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766 if test "x$ac_ct_CC" = x; then
4767 CC=""
4768 else
4769 case $cross_compiling:$ac_tool_warned in
4770 yes:)
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773 ac_tool_warned=yes ;;
4774 esac
4775 CC=$ac_ct_CC
4776 fi
4777 else
4778 CC="$ac_cv_prog_CC"
4779 fi
4780
4781 if test -z "$CC"; then
4782 if test -n "$ac_tool_prefix"; then
4783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4784 set dummy ${ac_tool_prefix}cc; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_CC+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 if test -n "$CC"; then
4791 ac_cv_prog_CC="$CC" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_CC="${ac_tool_prefix}cc"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808 fi
4809 fi
4810 CC=$ac_cv_prog_CC
4811 if test -n "$CC"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4813 $as_echo "$CC" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819
4820 fi
4821 fi
4822 if test -z "$CC"; then
4823 # Extract the first word of "cc", so it can be a program name with args.
4824 set dummy cc; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_CC+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 if test -n "$CC"; then
4831 ac_cv_prog_CC="$CC" # Let the user override the test.
4832 else
4833 ac_prog_rejected=no
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4842 ac_prog_rejected=yes
4843 continue
4844 fi
4845 ac_cv_prog_CC="cc"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849 done
4850 done
4851 IFS=$as_save_IFS
4852
4853 if test $ac_prog_rejected = yes; then
4854 # We found a bogon in the path, so make sure we never use it.
4855 set dummy $ac_cv_prog_CC
4856 shift
4857 if test $# != 0; then
4858 # We chose a different compiler from the bogus one.
4859 # However, it has the same basename, so the bogon will be chosen
4860 # first if we set CC to just the basename; use the full file name.
4861 shift
4862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4863 fi
4864 fi
4865 fi
4866 fi
4867 CC=$ac_cv_prog_CC
4868 if test -n "$CC"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4870 $as_echo "$CC" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876
4877 fi
4878 if test -z "$CC"; then
4879 if test -n "$ac_tool_prefix"; then
4880 for ac_prog in cl.exe
4881 do
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_CC+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$CC"; then
4890 ac_cv_prog_CC="$CC" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907 fi
4908 fi
4909 CC=$ac_cv_prog_CC
4910 if test -n "$CC"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4912 $as_echo "$CC" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916 fi
4917
4918
4919 test -n "$CC" && break
4920 done
4921 fi
4922 if test -z "$CC"; then
4923 ac_ct_CC=$CC
4924 for ac_prog in cl.exe
4925 do
4926 # Extract the first word of "$ac_prog", so it can be a program name with args.
4927 set dummy $ac_prog; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$ac_ct_CC"; then
4934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_ac_ct_CC="$ac_prog"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4954 if test -n "$ac_ct_CC"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4956 $as_echo "$ac_ct_CC" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962
4963 test -n "$ac_ct_CC" && break
4964 done
4965
4966 if test "x$ac_ct_CC" = x; then
4967 CC=""
4968 else
4969 case $cross_compiling:$ac_tool_warned in
4970 yes:)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973 ac_tool_warned=yes ;;
4974 esac
4975 CC=$ac_ct_CC
4976 fi
4977 fi
4978
4979 fi
4980
4981
4982 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4984 as_fn_error "no acceptable C compiler found in \$PATH
4985 See \`config.log' for more details." "$LINENO" 5; }
4986
4987 # Provide some information about the compiler.
4988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4989 set X $ac_compile
4990 ac_compiler=$2
4991 for ac_option in --version -v -V -qversion; do
4992 { { ac_try="$ac_compiler $ac_option >&5"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4998 $as_echo "$ac_try_echo"; } >&5
4999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5000 ac_status=$?
5001 if test -s conftest.err; then
5002 sed '10a\
5003 ... rest of stderr output deleted ...
5004 10q' conftest.err >conftest.er1
5005 cat conftest.er1 >&5
5006 fi
5007 rm -f conftest.er1 conftest.err
5008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; }
5010 done
5011
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014
5015 int
5016 main ()
5017 {
5018
5019 ;
5020 return 0;
5021 }
5022 _ACEOF
5023 ac_clean_files_save=$ac_clean_files
5024 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5025 # Try to create an executable without -o first, disregard a.out.
5026 # It will help us diagnose broken compilers, and finding out an intuition
5027 # of exeext.
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5029 $as_echo_n "checking whether the C compiler works... " >&6; }
5030 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5031
5032 # The possible output files:
5033 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5034
5035 ac_rmfiles=
5036 for ac_file in $ac_files
5037 do
5038 case $ac_file in
5039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5041 esac
5042 done
5043 rm -f $ac_rmfiles
5044
5045 if { { ac_try="$ac_link_default"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051 $as_echo "$ac_try_echo"; } >&5
5052 (eval "$ac_link_default") 2>&5
5053 ac_status=$?
5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; then :
5056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5057 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5058 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5059 # so that the user can short-circuit this test for compilers unknown to
5060 # Autoconf.
5061 for ac_file in $ac_files ''
5062 do
5063 test -f "$ac_file" || continue
5064 case $ac_file in
5065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5066 ;;
5067 [ab].out )
5068 # We found the default executable, but exeext='' is most
5069 # certainly right.
5070 break;;
5071 *.* )
5072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5073 then :; else
5074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5075 fi
5076 # We set ac_cv_exeext here because the later test for it is not
5077 # safe: cross compilers may not add the suffix if given an `-o'
5078 # argument, so we may need to know it at that point already.
5079 # Even if this section looks crufty: it has the advantage of
5080 # actually working.
5081 break;;
5082 * )
5083 break;;
5084 esac
5085 done
5086 test "$ac_cv_exeext" = no && ac_cv_exeext=
5087
5088 else
5089 ac_file=''
5090 fi
5091 if test -z "$ac_file"; then :
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5094 $as_echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5099 { as_fn_set_status 77
5100 as_fn_error "C compiler cannot create executables
5101 See \`config.log' for more details." "$LINENO" 5; }; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 $as_echo "yes" >&6; }
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5107 $as_echo_n "checking for C compiler default output file name... " >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5109 $as_echo "$ac_file" >&6; }
5110 ac_exeext=$ac_cv_exeext
5111
5112 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5113 ac_clean_files=$ac_clean_files_save
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5115 $as_echo_n "checking for suffix of executables... " >&6; }
5116 if { { ac_try="$ac_link"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5122 $as_echo "$ac_try_echo"; } >&5
5123 (eval "$ac_link") 2>&5
5124 ac_status=$?
5125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126 test $ac_status = 0; }; then :
5127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5129 # work properly (i.e., refer to `conftest.exe'), while it won't with
5130 # `rm'.
5131 for ac_file in conftest.exe conftest conftest.*; do
5132 test -f "$ac_file" || continue
5133 case $ac_file in
5134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5136 break;;
5137 * ) break;;
5138 esac
5139 done
5140 else
5141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143 as_fn_error "cannot compute suffix of executables: cannot compile and link
5144 See \`config.log' for more details." "$LINENO" 5; }
5145 fi
5146 rm -f conftest conftest$ac_cv_exeext
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5148 $as_echo "$ac_cv_exeext" >&6; }
5149
5150 rm -f conftest.$ac_ext
5151 EXEEXT=$ac_cv_exeext
5152 ac_exeext=$EXEEXT
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <stdio.h>
5156 int
5157 main ()
5158 {
5159 FILE *f = fopen ("conftest.out", "w");
5160 return ferror (f) || fclose (f) != 0;
5161
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 ac_clean_files="$ac_clean_files conftest.out"
5167 # Check that the compiler produces executables we can run. If not, either
5168 # the compiler is broken, or we cross compile.
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5170 $as_echo_n "checking whether we are cross compiling... " >&6; }
5171 if test "$cross_compiling" != yes; then
5172 { { ac_try="$ac_link"
5173 case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176 esac
5177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178 $as_echo "$ac_try_echo"; } >&5
5179 (eval "$ac_link") 2>&5
5180 ac_status=$?
5181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; }
5183 if { ac_try='./conftest$ac_cv_exeext'
5184 { { case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187 esac
5188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5189 $as_echo "$ac_try_echo"; } >&5
5190 (eval "$ac_try") 2>&5
5191 ac_status=$?
5192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193 test $ac_status = 0; }; }; then
5194 cross_compiling=no
5195 else
5196 if test "$cross_compiling" = maybe; then
5197 cross_compiling=yes
5198 else
5199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5201 as_fn_error "cannot run C compiled programs.
5202 If you meant to cross compile, use \`--host'.
5203 See \`config.log' for more details." "$LINENO" 5; }
5204 fi
5205 fi
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5208 $as_echo "$cross_compiling" >&6; }
5209
5210 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5211 ac_clean_files=$ac_clean_files_save
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5213 $as_echo_n "checking for suffix of object files... " >&6; }
5214 if test "${ac_cv_objext+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219
5220 int
5221 main ()
5222 {
5223
5224 ;
5225 return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.o conftest.obj
5229 if { { ac_try="$ac_compile"
5230 case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233 esac
5234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5235 $as_echo "$ac_try_echo"; } >&5
5236 (eval "$ac_compile") 2>&5
5237 ac_status=$?
5238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5239 test $ac_status = 0; }; then :
5240 for ac_file in conftest.o conftest.obj conftest.*; do
5241 test -f "$ac_file" || continue;
5242 case $ac_file in
5243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5244 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5245 break;;
5246 esac
5247 done
5248 else
5249 $as_echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5254 as_fn_error "cannot compute suffix of object files: cannot compile
5255 See \`config.log' for more details." "$LINENO" 5; }
5256 fi
5257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5260 $as_echo "$ac_cv_objext" >&6; }
5261 OBJEXT=$ac_cv_objext
5262 ac_objext=$OBJEXT
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5264 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5265 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270
5271 int
5272 main ()
5273 {
5274 #ifndef __GNUC__
5275 choke me
5276 #endif
5277
5278 ;
5279 return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 ac_compiler_gnu=yes
5284 else
5285 ac_compiler_gnu=no
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5289
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5292 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5293 if test $ac_compiler_gnu = yes; then
5294 GCC=yes
5295 else
5296 GCC=
5297 fi
5298 ac_test_CFLAGS=${CFLAGS+set}
5299 ac_save_CFLAGS=$CFLAGS
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5301 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5302 if test "${ac_cv_prog_cc_g+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 ac_save_c_werror_flag=$ac_c_werror_flag
5306 ac_c_werror_flag=yes
5307 ac_cv_prog_cc_g=no
5308 CFLAGS="-g"
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311
5312 int
5313 main ()
5314 {
5315
5316 ;
5317 return 0;
5318 }
5319 _ACEOF
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321 ac_cv_prog_cc_g=yes
5322 else
5323 CFLAGS=""
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326
5327 int
5328 main ()
5329 {
5330
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336
5337 else
5338 ac_c_werror_flag=$ac_save_c_werror_flag
5339 CFLAGS="-g"
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342
5343 int
5344 main ()
5345 {
5346
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 ac_cv_prog_cc_g=yes
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_c_werror_flag=$ac_save_c_werror_flag
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5362 $as_echo "$ac_cv_prog_cc_g" >&6; }
5363 if test "$ac_test_CFLAGS" = set; then
5364 CFLAGS=$ac_save_CFLAGS
5365 elif test $ac_cv_prog_cc_g = yes; then
5366 if test "$GCC" = yes; then
5367 CFLAGS="-g -O2"
5368 else
5369 CFLAGS="-g"
5370 fi
5371 else
5372 if test "$GCC" = yes; then
5373 CFLAGS="-O2"
5374 else
5375 CFLAGS=
5376 fi
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5379 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5380 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 ac_cv_prog_cc_c89=no
5384 ac_save_CC=$CC
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <stdarg.h>
5388 #include <stdio.h>
5389 #include <sys/types.h>
5390 #include <sys/stat.h>
5391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5392 struct buf { int x; };
5393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5394 static char *e (p, i)
5395 char **p;
5396 int i;
5397 {
5398 return p[i];
5399 }
5400 static char *f (char * (*g) (char **, int), char **p, ...)
5401 {
5402 char *s;
5403 va_list v;
5404 va_start (v,p);
5405 s = g (p, va_arg (v,int));
5406 va_end (v);
5407 return s;
5408 }
5409
5410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5411 function prototypes and stuff, but not '\xHH' hex character constants.
5412 These don't provoke an error unfortunately, instead are silently treated
5413 as 'x'. The following induces an error, until -std is added to get
5414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5415 array size at least. It's necessary to write '\x00'==0 to get something
5416 that's true only with -std. */
5417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5418
5419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5420 inside strings and character constants. */
5421 #define FOO(x) 'x'
5422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5423
5424 int test (int i, double x);
5425 struct s1 {int (*f) (int a);};
5426 struct s2 {int (*f) (double a);};
5427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5428 int argc;
5429 char **argv;
5430 int
5431 main ()
5432 {
5433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5440 do
5441 CC="$ac_save_CC $ac_arg"
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443 ac_cv_prog_cc_c89=$ac_arg
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext
5446 test "x$ac_cv_prog_cc_c89" != "xno" && break
5447 done
5448 rm -f conftest.$ac_ext
5449 CC=$ac_save_CC
5450
5451 fi
5452 # AC_CACHE_VAL
5453 case "x$ac_cv_prog_cc_c89" in
5454 x)
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5456 $as_echo "none needed" >&6; } ;;
5457 xno)
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5459 $as_echo "unsupported" >&6; } ;;
5460 *)
5461 CC="$CC $ac_cv_prog_cc_c89"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5463 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5464 esac
5465 if test "x$ac_cv_prog_cc_c89" != xno; then :
5466
5467 fi
5468
5469 ac_ext=c
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474 DEPDIR="${am__leading_dot}deps"
5475
5476 ac_config_commands="$ac_config_commands depfiles"
5477
5478
5479 am_make=${MAKE-make}
5480 cat > confinc << 'END'
5481 am__doit:
5482 @echo this is the am__doit target
5483 .PHONY: am__doit
5484 END
5485 # If we don't find an include directive, just comment out the code.
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5487 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5488 am__include="#"
5489 am__quote=
5490 _am_result=none
5491 # First try GNU make style include.
5492 echo "include confinc" > confmf
5493 # Ignore all kinds of additional output from `make'.
5494 case `$am_make -s -f confmf 2> /dev/null` in #(
5495 *the\ am__doit\ target*)
5496 am__include=include
5497 am__quote=
5498 _am_result=GNU
5499 ;;
5500 esac
5501 # Now try BSD make style include.
5502 if test "$am__include" = "#"; then
5503 echo '.include "confinc"' > confmf
5504 case `$am_make -s -f confmf 2> /dev/null` in #(
5505 *the\ am__doit\ target*)
5506 am__include=.include
5507 am__quote="\""
5508 _am_result=BSD
5509 ;;
5510 esac
5511 fi
5512
5513
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5515 $as_echo "$_am_result" >&6; }
5516 rm -f confinc confmf
5517
5518 # Check whether --enable-dependency-tracking was given.
5519 if test "${enable_dependency_tracking+set}" = set; then :
5520 enableval=$enable_dependency_tracking;
5521 fi
5522
5523 if test "x$enable_dependency_tracking" != xno; then
5524 am_depcomp="$ac_aux_dir/depcomp"
5525 AMDEPBACKSLASH='\'
5526 fi
5527 if test "x$enable_dependency_tracking" != xno; then
5528 AMDEP_TRUE=
5529 AMDEP_FALSE='#'
5530 else
5531 AMDEP_TRUE='#'
5532 AMDEP_FALSE=
5533 fi
5534
5535
5536
5537 depcc="$CC" am_compiler_list=
5538
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5540 $as_echo_n "checking dependency style of $depcc... " >&6; }
5541 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5545 # We make a subdir and do the tests there. Otherwise we can end up
5546 # making bogus files that we don't know about and never remove. For
5547 # instance it was reported that on HP-UX the gcc test will end up
5548 # making a dummy file named `D' -- because `-MD' means `put the output
5549 # in D'.
5550 mkdir conftest.dir
5551 # Copy depcomp to subdir because otherwise we won't find it if we're
5552 # using a relative directory.
5553 cp "$am_depcomp" conftest.dir
5554 cd conftest.dir
5555 # We will build objects and dependencies in a subdirectory because
5556 # it helps to detect inapplicable dependency modes. For instance
5557 # both Tru64's cc and ICC support -MD to output dependencies as a
5558 # side effect of compilation, but ICC will put the dependencies in
5559 # the current directory while Tru64 will put them in the object
5560 # directory.
5561 mkdir sub
5562
5563 am_cv_CC_dependencies_compiler_type=none
5564 if test "$am_compiler_list" = ""; then
5565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5566 fi
5567 am__universal=false
5568 case " $depcc " in #(
5569 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5570 esac
5571
5572 for depmode in $am_compiler_list; do
5573 # Setup a source with many dependencies, because some compilers
5574 # like to wrap large dependency lists on column 80 (with \), and
5575 # we should not choose a depcomp mode which is confused by this.
5576 #
5577 # We need to recreate these files for each test, as the compiler may
5578 # overwrite some of them when testing with obscure command lines.
5579 # This happens at least with the AIX C compiler.
5580 : > sub/conftest.c
5581 for i in 1 2 3 4 5 6; do
5582 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5583 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5584 # Solaris 8's {/usr,}/bin/sh.
5585 touch sub/conftst$i.h
5586 done
5587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5588
5589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5590 # mode. It turns out that the SunPro C++ compiler does not properly
5591 # handle `-M -o', and we need to detect this. Also, some Intel
5592 # versions had trouble with output in subdirs
5593 am__obj=sub/conftest.${OBJEXT-o}
5594 am__minus_obj="-o $am__obj"
5595 case $depmode in
5596 gcc)
5597 # This depmode causes a compiler race in universal mode.
5598 test "$am__universal" = false || continue
5599 ;;
5600 nosideeffect)
5601 # after this tag, mechanisms are not by side-effect, so they'll
5602 # only be used when explicitly requested
5603 if test "x$enable_dependency_tracking" = xyes; then
5604 continue
5605 else
5606 break
5607 fi
5608 ;;
5609 msvisualcpp | msvcmsys)
5610 # This compiler won't grok `-c -o', but also, the minuso test has
5611 # not run yet. These depmodes are late enough in the game, and
5612 # so weak that their functioning should not be impacted.
5613 am__obj=conftest.${OBJEXT-o}
5614 am__minus_obj=
5615 ;;
5616 none) break ;;
5617 esac
5618 if depmode=$depmode \
5619 source=sub/conftest.c object=$am__obj \
5620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5621 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5622 >/dev/null 2>conftest.err &&
5623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5625 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5627 # icc doesn't choke on unknown options, it will just issue warnings
5628 # or remarks (even with -Werror). So we grep stderr for any message
5629 # that says an option was ignored or not supported.
5630 # When given -MP, icc 7.0 and 7.1 complain thusly:
5631 # icc: Command line warning: ignoring option '-M'; no argument required
5632 # The diagnosis changed in icc 8.0:
5633 # icc: Command line remark: option '-MP' not supported
5634 if (grep 'ignoring option' conftest.err ||
5635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5636 am_cv_CC_dependencies_compiler_type=$depmode
5637 break
5638 fi
5639 fi
5640 done
5641
5642 cd ..
5643 rm -rf conftest.dir
5644 else
5645 am_cv_CC_dependencies_compiler_type=none
5646 fi
5647
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5650 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5651 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5652
5653 if
5654 test "x$enable_dependency_tracking" != xno \
5655 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5656 am__fastdepCC_TRUE=
5657 am__fastdepCC_FALSE='#'
5658 else
5659 am__fastdepCC_TRUE='#'
5660 am__fastdepCC_FALSE=
5661 fi
5662
5663
5664 if test "x$CC" != xcc; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5666 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5669 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5670 fi
5671 set dummy $CC; ac_cc=`$as_echo "$2" |
5672 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5673 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678
5679 int
5680 main ()
5681 {
5682
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 # Make sure it works both with $CC and with simple cc.
5688 # We do the test twice because some compilers refuse to overwrite an
5689 # existing .o file with -o, though they will create one.
5690 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5691 rm -f conftest2.*
5692 if { { case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697 $as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; } &&
5702 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705 esac
5706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5707 $as_echo "$ac_try_echo"; } >&5
5708 (eval "$ac_try") 2>&5
5709 ac_status=$?
5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711 test $ac_status = 0; };
5712 then
5713 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5714 if test "x$CC" != xcc; then
5715 # Test first that cc exists at all.
5716 if { ac_try='cc -c conftest.$ac_ext >&5'
5717 { { case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5722 $as_echo "$ac_try_echo"; } >&5
5723 (eval "$ac_try") 2>&5
5724 ac_status=$?
5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726 test $ac_status = 0; }; }; then
5727 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5728 rm -f conftest2.*
5729 if { { case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5734 $as_echo "$ac_try_echo"; } >&5
5735 (eval "$ac_try") 2>&5
5736 ac_status=$?
5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738 test $ac_status = 0; } &&
5739 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5744 $as_echo "$ac_try_echo"; } >&5
5745 (eval "$ac_try") 2>&5
5746 ac_status=$?
5747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5748 test $ac_status = 0; };
5749 then
5750 # cc works too.
5751 :
5752 else
5753 # cc exists but doesn't like -o.
5754 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5755 fi
5756 fi
5757 fi
5758 else
5759 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5760 fi
5761 rm -f core conftest*
5762
5763 fi
5764 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5766 $as_echo "yes" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5770
5771 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5772
5773 fi
5774
5775 # FIXME: we rely on the cache variable name because
5776 # there is no other way.
5777 set dummy $CC
5778 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5779 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5780 if test "$am_t" != yes; then
5781 # Losing compiler, so override with the script.
5782 # FIXME: It is wrong to rewrite CC.
5783 # But if we don't then we get into trouble of one sort or another.
5784 # A longer-term fix would be to have automake use am__CC in this case,
5785 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5786 CC="$am_aux_dir/compile $CC"
5787 fi
5788
5789
5790
5791 # Initialize gnulib right after verifying that the C compiler works.
5792
5793 ac_ext=c
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5799 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5800 # On Suns, sometimes $CPP names a directory.
5801 if test -n "$CPP" && test -d "$CPP"; then
5802 CPP=
5803 fi
5804 if test -z "$CPP"; then
5805 if test "${ac_cv_prog_CPP+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 # Double quotes because CPP needs to be expanded
5809 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5810 do
5811 ac_preproc_ok=false
5812 for ac_c_preproc_warn_flag in '' yes
5813 do
5814 # Use a header file that comes with gcc, so configuring glibc
5815 # with a fresh cross-compiler works.
5816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 # <limits.h> exists even on freestanding compilers.
5818 # On the NeXT, cc -E runs the code through the compiler's parser,
5819 # not just through cpp. "Syntax error" is here to catch this case.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #ifdef __STDC__
5823 # include <limits.h>
5824 #else
5825 # include <assert.h>
5826 #endif
5827 Syntax error
5828 _ACEOF
5829 if ac_fn_c_try_cpp "$LINENO"; then :
5830
5831 else
5832 # Broken: fails on valid input.
5833 continue
5834 fi
5835 rm -f conftest.err conftest.$ac_ext
5836
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <ac_nonexistent.h>
5842 _ACEOF
5843 if ac_fn_c_try_cpp "$LINENO"; then :
5844 # Broken: success on invalid input.
5845 continue
5846 else
5847 # Passes both tests.
5848 ac_preproc_ok=:
5849 break
5850 fi
5851 rm -f conftest.err conftest.$ac_ext
5852
5853 done
5854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855 rm -f conftest.err conftest.$ac_ext
5856 if $ac_preproc_ok; then :
5857 break
5858 fi
5859
5860 done
5861 ac_cv_prog_CPP=$CPP
5862
5863 fi
5864 CPP=$ac_cv_prog_CPP
5865 else
5866 ac_cv_prog_CPP=$CPP
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5869 $as_echo "$CPP" >&6; }
5870 ac_preproc_ok=false
5871 for ac_c_preproc_warn_flag in '' yes
5872 do
5873 # Use a header file that comes with gcc, so configuring glibc
5874 # with a fresh cross-compiler works.
5875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876 # <limits.h> exists even on freestanding compilers.
5877 # On the NeXT, cc -E runs the code through the compiler's parser,
5878 # not just through cpp. "Syntax error" is here to catch this case.
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 #ifdef __STDC__
5882 # include <limits.h>
5883 #else
5884 # include <assert.h>
5885 #endif
5886 Syntax error
5887 _ACEOF
5888 if ac_fn_c_try_cpp "$LINENO"; then :
5889
5890 else
5891 # Broken: fails on valid input.
5892 continue
5893 fi
5894 rm -f conftest.err conftest.$ac_ext
5895
5896 # OK, works on sane cases. Now check whether nonexistent headers
5897 # can be detected and how.
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 #include <ac_nonexistent.h>
5901 _ACEOF
5902 if ac_fn_c_try_cpp "$LINENO"; then :
5903 # Broken: success on invalid input.
5904 continue
5905 else
5906 # Passes both tests.
5907 ac_preproc_ok=:
5908 break
5909 fi
5910 rm -f conftest.err conftest.$ac_ext
5911
5912 done
5913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5914 rm -f conftest.err conftest.$ac_ext
5915 if $ac_preproc_ok; then :
5916
5917 else
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5921 See \`config.log' for more details." "$LINENO" 5; }
5922 fi
5923
5924 ac_ext=c
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5932 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5933 if test "${ac_cv_path_GREP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -z "$GREP"; then
5937 ac_path_GREP_found=false
5938 # Loop through the user's path and test for each of PROGNAME-LIST
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_prog in grep ggrep; do
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5947 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5948 # Check for GNU ac_path_GREP and select it if it is found.
5949 # Check for GNU $ac_path_GREP
5950 case `"$ac_path_GREP" --version 2>&1` in
5951 *GNU*)
5952 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5953 *)
5954 ac_count=0
5955 $as_echo_n 0123456789 >"conftest.in"
5956 while :
5957 do
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 $as_echo 'GREP' >> "conftest.nl"
5962 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5964 as_fn_arith $ac_count + 1 && ac_count=$as_val
5965 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_GREP="$ac_path_GREP"
5968 ac_path_GREP_max=$ac_count
5969 fi
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5972 done
5973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5974 esac
5975
5976 $ac_path_GREP_found && break 3
5977 done
5978 done
5979 done
5980 IFS=$as_save_IFS
5981 if test -z "$ac_cv_path_GREP"; then
5982 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5983 fi
5984 else
5985 ac_cv_path_GREP=$GREP
5986 fi
5987
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5990 $as_echo "$ac_cv_path_GREP" >&6; }
5991 GREP="$ac_cv_path_GREP"
5992
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5995 $as_echo_n "checking for egrep... " >&6; }
5996 if test "${ac_cv_path_EGREP+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6000 then ac_cv_path_EGREP="$GREP -E"
6001 else
6002 if test -z "$EGREP"; then
6003 ac_path_EGREP_found=false
6004 # Loop through the user's path and test for each of PROGNAME-LIST
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6007 do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_prog in egrep; do
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6013 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6014 # Check for GNU ac_path_EGREP and select it if it is found.
6015 # Check for GNU $ac_path_EGREP
6016 case `"$ac_path_EGREP" --version 2>&1` in
6017 *GNU*)
6018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6019 *)
6020 ac_count=0
6021 $as_echo_n 0123456789 >"conftest.in"
6022 while :
6023 do
6024 cat "conftest.in" "conftest.in" >"conftest.tmp"
6025 mv "conftest.tmp" "conftest.in"
6026 cp "conftest.in" "conftest.nl"
6027 $as_echo 'EGREP' >> "conftest.nl"
6028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6030 as_fn_arith $ac_count + 1 && ac_count=$as_val
6031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6032 # Best one so far, save it but keep looking for a better one
6033 ac_cv_path_EGREP="$ac_path_EGREP"
6034 ac_path_EGREP_max=$ac_count
6035 fi
6036 # 10*(2^10) chars as input seems more than enough
6037 test $ac_count -gt 10 && break
6038 done
6039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6040 esac
6041
6042 $ac_path_EGREP_found && break 3
6043 done
6044 done
6045 done
6046 IFS=$as_save_IFS
6047 if test -z "$ac_cv_path_EGREP"; then
6048 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6049 fi
6050 else
6051 ac_cv_path_EGREP=$EGREP
6052 fi
6053
6054 fi
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6057 $as_echo "$ac_cv_path_EGREP" >&6; }
6058 EGREP="$ac_cv_path_EGREP"
6059
6060
6061
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6064 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6065 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071
6072 #ifdef __ACK__
6073 Amsterdam
6074 #endif
6075
6076 _ACEOF
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6079 gl_cv_c_amsterdam_compiler=yes
6080 else
6081 gl_cv_c_amsterdam_compiler=no
6082 fi
6083 rm -f conftest*
6084
6085
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6088 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6089 if test -z "$AR"; then
6090 if test $gl_cv_c_amsterdam_compiler = yes; then
6091 AR='cc -c.a'
6092 if test -z "$ARFLAGS"; then
6093 ARFLAGS='-o'
6094 fi
6095 else
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ar; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if test "${ac_cv_prog_AR+set}" = set; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 if test -n "$AR"; then
6105 ac_cv_prog_AR="$AR" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_AR="${ac_tool_prefix}ar"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 AR=$ac_cv_prog_AR
6125 if test -n "$AR"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6127 $as_echo "$AR" >&6; }
6128 else
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134 fi
6135 if test -z "$ac_cv_prog_AR"; then
6136 ac_ct_AR=$AR
6137 # Extract the first word of "ar", so it can be a program name with args.
6138 set dummy ar; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 if test -n "$ac_ct_AR"; then
6145 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_ac_ct_AR="ar"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6157 fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6165 if test -n "$ac_ct_AR"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6167 $as_echo "$ac_ct_AR" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173 if test "x$ac_ct_AR" = x; then
6174 AR="ar"
6175 else
6176 case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182 AR=$ac_ct_AR
6183 fi
6184 else
6185 AR="$ac_cv_prog_AR"
6186 fi
6187
6188 if test -z "$ARFLAGS"; then
6189 ARFLAGS='cru'
6190 fi
6191 fi
6192 else
6193 if test -z "$ARFLAGS"; then
6194 ARFLAGS='cru'
6195 fi
6196 fi
6197
6198
6199 if test -z "$RANLIB"; then
6200 if test $gl_cv_c_amsterdam_compiler = yes; then
6201 RANLIB=':'
6202 else
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 if test -n "$RANLIB"; then
6212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225 done
6226 done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 RANLIB=$ac_cv_prog_RANLIB
6232 if test -n "$RANLIB"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6234 $as_echo "$RANLIB" >&6; }
6235 else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239
6240
6241 fi
6242 if test -z "$ac_cv_prog_RANLIB"; then
6243 ac_ct_RANLIB=$RANLIB
6244 # Extract the first word of "ranlib", so it can be a program name with args.
6245 set dummy ranlib; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$ac_ct_RANLIB"; then
6252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_ac_ct_RANLIB="ranlib"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6272 if test -n "$ac_ct_RANLIB"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6274 $as_echo "$ac_ct_RANLIB" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280 if test "x$ac_ct_RANLIB" = x; then
6281 RANLIB=":"
6282 else
6283 case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289 RANLIB=$ac_ct_RANLIB
6290 fi
6291 else
6292 RANLIB="$ac_cv_prog_RANLIB"
6293 fi
6294
6295 fi
6296 fi
6297
6298
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6300 $as_echo_n "checking for ANSI C header files... " >&6; }
6301 if test "${ac_cv_header_stdc+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <stdlib.h>
6307 #include <stdarg.h>
6308 #include <string.h>
6309 #include <float.h>
6310
6311 int
6312 main ()
6313 {
6314
6315 ;
6316 return 0;
6317 }
6318 _ACEOF
6319 if ac_fn_c_try_compile "$LINENO"; then :
6320 ac_cv_header_stdc=yes
6321 else
6322 ac_cv_header_stdc=no
6323 fi
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325
6326 if test $ac_cv_header_stdc = yes; then
6327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 #include <string.h>
6331
6332 _ACEOF
6333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6334 $EGREP "memchr" >/dev/null 2>&1; then :
6335
6336 else
6337 ac_cv_header_stdc=no
6338 fi
6339 rm -f conftest*
6340
6341 fi
6342
6343 if test $ac_cv_header_stdc = yes; then
6344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 #include <stdlib.h>
6348
6349 _ACEOF
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 $EGREP "free" >/dev/null 2>&1; then :
6352
6353 else
6354 ac_cv_header_stdc=no
6355 fi
6356 rm -f conftest*
6357
6358 fi
6359
6360 if test $ac_cv_header_stdc = yes; then
6361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6362 if test "$cross_compiling" = yes; then :
6363 :
6364 else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 #include <ctype.h>
6368 #include <stdlib.h>
6369 #if ((' ' & 0x0FF) == 0x020)
6370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6372 #else
6373 # define ISLOWER(c) \
6374 (('a' <= (c) && (c) <= 'i') \
6375 || ('j' <= (c) && (c) <= 'r') \
6376 || ('s' <= (c) && (c) <= 'z'))
6377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6378 #endif
6379
6380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6381 int
6382 main ()
6383 {
6384 int i;
6385 for (i = 0; i < 256; i++)
6386 if (XOR (islower (i), ISLOWER (i))
6387 || toupper (i) != TOUPPER (i))
6388 return 2;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_run "$LINENO"; then :
6393
6394 else
6395 ac_cv_header_stdc=no
6396 fi
6397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6398 conftest.$ac_objext conftest.beam conftest.$ac_ext
6399 fi
6400
6401 fi
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6404 $as_echo "$ac_cv_header_stdc" >&6; }
6405 if test $ac_cv_header_stdc = yes; then
6406
6407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6408
6409 fi
6410
6411 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6412 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6413 inttypes.h stdint.h unistd.h
6414 do :
6415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6416 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6417 "
6418 eval as_val=\$$as_ac_Header
6419 if test "x$as_val" = x""yes; then :
6420 cat >>confdefs.h <<_ACEOF
6421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6422 _ACEOF
6423
6424 fi
6425
6426 done
6427
6428
6429
6430
6431
6432 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6433 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6434 MINIX=yes
6435 else
6436 MINIX=
6437 fi
6438
6439
6440 if test "$MINIX" = yes; then
6441
6442 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6443
6444
6445 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6446
6447
6448 $as_echo "#define _MINIX 1" >>confdefs.h
6449
6450 fi
6451
6452 case "$host_os" in
6453 hpux*)
6454
6455 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6456
6457 ;;
6458 esac
6459
6460
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6462 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6463 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468
6469 # define __EXTENSIONS__ 1
6470 $ac_includes_default
6471 int
6472 main ()
6473 {
6474
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 ac_cv_safe_to_define___extensions__=yes
6481 else
6482 ac_cv_safe_to_define___extensions__=no
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6487 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6488 test $ac_cv_safe_to_define___extensions__ = yes &&
6489 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6490
6491 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6492
6493 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6494
6495 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6496
6497 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6498
6499 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6500
6501
6502
6503
6504
6505
6506
6507
6508 # Check whether --enable-largefile was given.
6509 if test "${enable_largefile+set}" = set; then :
6510 enableval=$enable_largefile;
6511 fi
6512
6513 if test "$enable_largefile" != no; then
6514
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6516 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6517 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 ac_cv_sys_largefile_CC=no
6521 if test "$GCC" != yes; then
6522 ac_save_CC=$CC
6523 while :; do
6524 # IRIX 6.2 and later do not support large files by default,
6525 # so use the C compiler's -n32 option if that helps.
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #include <sys/types.h>
6529 /* Check that off_t can represent 2**63 - 1 correctly.
6530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6531 since some C++ compilers masquerading as C compilers
6532 incorrectly reject 9223372036854775807. */
6533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6535 && LARGE_OFF_T % 2147483647 == 1)
6536 ? 1 : -1];
6537 int
6538 main ()
6539 {
6540
6541 ;
6542 return 0;
6543 }
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"; then :
6546 break
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext
6549 CC="$CC -n32"
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 ac_cv_sys_largefile_CC=' -n32'; break
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext
6554 break
6555 done
6556 CC=$ac_save_CC
6557 rm -f conftest.$ac_ext
6558 fi
6559 fi
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6561 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6562 if test "$ac_cv_sys_largefile_CC" != no; then
6563 CC=$CC$ac_cv_sys_largefile_CC
6564 fi
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6567 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6568 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 while :; do
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 #include <sys/types.h>
6575 /* Check that off_t can represent 2**63 - 1 correctly.
6576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6577 since some C++ compilers masquerading as C compilers
6578 incorrectly reject 9223372036854775807. */
6579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6581 && LARGE_OFF_T % 2147483647 == 1)
6582 ? 1 : -1];
6583 int
6584 main ()
6585 {
6586
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 ac_cv_sys_file_offset_bits=no; break
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #define _FILE_OFFSET_BITS 64
6598 #include <sys/types.h>
6599 /* Check that off_t can represent 2**63 - 1 correctly.
6600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6601 since some C++ compilers masquerading as C compilers
6602 incorrectly reject 9223372036854775807. */
6603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6605 && LARGE_OFF_T % 2147483647 == 1)
6606 ? 1 : -1];
6607 int
6608 main ()
6609 {
6610
6611 ;
6612 return 0;
6613 }
6614 _ACEOF
6615 if ac_fn_c_try_compile "$LINENO"; then :
6616 ac_cv_sys_file_offset_bits=64; break
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 ac_cv_sys_file_offset_bits=unknown
6620 break
6621 done
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6624 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6625 case $ac_cv_sys_file_offset_bits in #(
6626 no | unknown) ;;
6627 *)
6628 cat >>confdefs.h <<_ACEOF
6629 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6630 _ACEOF
6631 ;;
6632 esac
6633 rm -rf conftest*
6634 if test $ac_cv_sys_file_offset_bits = unknown; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6636 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6637 if test "${ac_cv_sys_large_files+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 while :; do
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #include <sys/types.h>
6644 /* Check that off_t can represent 2**63 - 1 correctly.
6645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6646 since some C++ compilers masquerading as C compilers
6647 incorrectly reject 9223372036854775807. */
6648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6650 && LARGE_OFF_T % 2147483647 == 1)
6651 ? 1 : -1];
6652 int
6653 main ()
6654 {
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 if ac_fn_c_try_compile "$LINENO"; then :
6661 ac_cv_sys_large_files=no; break
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #define _LARGE_FILES 1
6667 #include <sys/types.h>
6668 /* Check that off_t can represent 2**63 - 1 correctly.
6669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6670 since some C++ compilers masquerading as C compilers
6671 incorrectly reject 9223372036854775807. */
6672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6674 && LARGE_OFF_T % 2147483647 == 1)
6675 ? 1 : -1];
6676 int
6677 main ()
6678 {
6679
6680 ;
6681 return 0;
6682 }
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685 ac_cv_sys_large_files=1; break
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 ac_cv_sys_large_files=unknown
6689 break
6690 done
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6693 $as_echo "$ac_cv_sys_large_files" >&6; }
6694 case $ac_cv_sys_large_files in #(
6695 no | unknown) ;;
6696 *)
6697 cat >>confdefs.h <<_ACEOF
6698 #define _LARGE_FILES $ac_cv_sys_large_files
6699 _ACEOF
6700 ;;
6701 esac
6702 rm -rf conftest*
6703 fi
6704
6705
6706 fi
6707
6708 case $ac_cv_prog_cc_stdc in #(
6709 no) :
6710 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6711 *) :
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6713 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6714 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 ac_cv_prog_cc_c99=no
6718 ac_save_CC=$CC
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <stdarg.h>
6722 #include <stdbool.h>
6723 #include <stdlib.h>
6724 #include <wchar.h>
6725 #include <stdio.h>
6726
6727 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6728 #define debug(...) fprintf (stderr, __VA_ARGS__)
6729 #define showlist(...) puts (#__VA_ARGS__)
6730 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6731 static void
6732 test_varargs_macros (void)
6733 {
6734 int x = 1234;
6735 int y = 5678;
6736 debug ("Flag");
6737 debug ("X = %d\n", x);
6738 showlist (The first, second, and third items.);
6739 report (x>y, "x is %d but y is %d", x, y);
6740 }
6741
6742 // Check long long types.
6743 #define BIG64 18446744073709551615ull
6744 #define BIG32 4294967295ul
6745 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6746 #if !BIG_OK
6747 your preprocessor is broken;
6748 #endif
6749 #if BIG_OK
6750 #else
6751 your preprocessor is broken;
6752 #endif
6753 static long long int bignum = -9223372036854775807LL;
6754 static unsigned long long int ubignum = BIG64;
6755
6756 struct incomplete_array
6757 {
6758 int datasize;
6759 double data[];
6760 };
6761
6762 struct named_init {
6763 int number;
6764 const wchar_t *name;
6765 double average;
6766 };
6767
6768 typedef const char *ccp;
6769
6770 static inline int
6771 test_restrict (ccp restrict text)
6772 {
6773 // See if C++-style comments work.
6774 // Iterate through items via the restricted pointer.
6775 // Also check for declarations in for loops.
6776 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6777 continue;
6778 return 0;
6779 }
6780
6781 // Check varargs and va_copy.
6782 static void
6783 test_varargs (const char *format, ...)
6784 {
6785 va_list args;
6786 va_start (args, format);
6787 va_list args_copy;
6788 va_copy (args_copy, args);
6789
6790 const char *str;
6791 int number;
6792 float fnumber;
6793
6794 while (*format)
6795 {
6796 switch (*format++)
6797 {
6798 case 's': // string
6799 str = va_arg (args_copy, const char *);
6800 break;
6801 case 'd': // int
6802 number = va_arg (args_copy, int);
6803 break;
6804 case 'f': // float
6805 fnumber = va_arg (args_copy, double);
6806 break;
6807 default:
6808 break;
6809 }
6810 }
6811 va_end (args_copy);
6812 va_end (args);
6813 }
6814
6815 int
6816 main ()
6817 {
6818
6819 // Check bool.
6820 _Bool success = false;
6821
6822 // Check restrict.
6823 if (test_restrict ("String literal") == 0)
6824 success = true;
6825 char *restrict newvar = "Another string";
6826
6827 // Check varargs.
6828 test_varargs ("s, d' f .", "string", 65, 34.234);
6829 test_varargs_macros ();
6830
6831 // Check flexible array members.
6832 struct incomplete_array *ia =
6833 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6834 ia->datasize = 10;
6835 for (int i = 0; i < ia->datasize; ++i)
6836 ia->data[i] = i * 1.234;
6837
6838 // Check named initializers.
6839 struct named_init ni = {
6840 .number = 34,
6841 .name = L"Test wide string",
6842 .average = 543.34343,
6843 };
6844
6845 ni.number = 58;
6846
6847 int dynamic_array[ni.number];
6848 dynamic_array[ni.number - 1] = 543;
6849
6850 // work around unused variable warnings
6851 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6852 || dynamic_array[ni.number - 1] != 543);
6853
6854 ;
6855 return 0;
6856 }
6857 _ACEOF
6858 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6859 do
6860 CC="$ac_save_CC $ac_arg"
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 ac_cv_prog_cc_c99=$ac_arg
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext
6865 test "x$ac_cv_prog_cc_c99" != "xno" && break
6866 done
6867 rm -f conftest.$ac_ext
6868 CC=$ac_save_CC
6869
6870 fi
6871 # AC_CACHE_VAL
6872 case "x$ac_cv_prog_cc_c99" in
6873 x)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6875 $as_echo "none needed" >&6; } ;;
6876 xno)
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6878 $as_echo "unsupported" >&6; } ;;
6879 *)
6880 CC="$CC $ac_cv_prog_cc_c99"
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6882 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6883 esac
6884 if test "x$ac_cv_prog_cc_c99" != xno; then :
6885 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6889 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 ac_cv_prog_cc_c89=no
6893 ac_save_CC=$CC
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <stdarg.h>
6897 #include <stdio.h>
6898 #include <sys/types.h>
6899 #include <sys/stat.h>
6900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6901 struct buf { int x; };
6902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6903 static char *e (p, i)
6904 char **p;
6905 int i;
6906 {
6907 return p[i];
6908 }
6909 static char *f (char * (*g) (char **, int), char **p, ...)
6910 {
6911 char *s;
6912 va_list v;
6913 va_start (v,p);
6914 s = g (p, va_arg (v,int));
6915 va_end (v);
6916 return s;
6917 }
6918
6919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6920 function prototypes and stuff, but not '\xHH' hex character constants.
6921 These don't provoke an error unfortunately, instead are silently treated
6922 as 'x'. The following induces an error, until -std is added to get
6923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6924 array size at least. It's necessary to write '\x00'==0 to get something
6925 that's true only with -std. */
6926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6927
6928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6929 inside strings and character constants. */
6930 #define FOO(x) 'x'
6931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6932
6933 int test (int i, double x);
6934 struct s1 {int (*f) (int a);};
6935 struct s2 {int (*f) (double a);};
6936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6937 int argc;
6938 char **argv;
6939 int
6940 main ()
6941 {
6942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6943 ;
6944 return 0;
6945 }
6946 _ACEOF
6947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6949 do
6950 CC="$ac_save_CC $ac_arg"
6951 if ac_fn_c_try_compile "$LINENO"; then :
6952 ac_cv_prog_cc_c89=$ac_arg
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext
6955 test "x$ac_cv_prog_cc_c89" != "xno" && break
6956 done
6957 rm -f conftest.$ac_ext
6958 CC=$ac_save_CC
6959
6960 fi
6961 # AC_CACHE_VAL
6962 case "x$ac_cv_prog_cc_c89" in
6963 x)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6965 $as_echo "none needed" >&6; } ;;
6966 xno)
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6968 $as_echo "unsupported" >&6; } ;;
6969 *)
6970 CC="$CC $ac_cv_prog_cc_c89"
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6973 esac
6974 if test "x$ac_cv_prog_cc_c89" != xno; then :
6975 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6976 else
6977 ac_cv_prog_cc_stdc=no
6978 fi
6979
6980 fi
6981 ;;
6982 esac
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6984 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6985 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987 fi
6988
6989 case $ac_cv_prog_cc_stdc in #(
6990 no) :
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6992 $as_echo "unsupported" >&6; } ;; #(
6993 '') :
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6995 $as_echo "none needed" >&6; } ;; #(
6996 *) :
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6998 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6999 esac
7000
7001
7002
7003 # Code from module alloca-opt:
7004 # Code from module allocator:
7005 # Code from module careadlinkat:
7006 # Code from module crypto/md5:
7007 # Code from module crypto/sha1:
7008 # Code from module crypto/sha256:
7009 # Code from module crypto/sha512:
7010 # Code from module dosname:
7011 # Code from module dtoastr:
7012 # Code from module dup2:
7013 # Code from module extensions:
7014
7015 # Code from module filemode:
7016 # Code from module getloadavg:
7017 # Code from module getopt-gnu:
7018 # Code from module getopt-posix:
7019 # Code from module gettext-h:
7020 # Code from module ignore-value:
7021 # Code from module include_next:
7022 # Code from module intprops:
7023 # Code from module inttypes-incomplete:
7024 # Code from module largefile:
7025
7026 # Code from module lstat:
7027 # Code from module mktime:
7028 # Code from module multiarch:
7029 <<<<<<< TREE
7030 =======
7031 # Code from module nocrash:
7032 # Code from module pathmax:
7033 # Code from module pthread_sigmask:
7034 >>>>>>> MERGE-SOURCE
7035 # Code from module readlink:
7036 <<<<<<< TREE
7037 =======
7038 # Code from module signal:
7039 # Code from module sigprocmask:
7040 # Code from module snippet/_Noreturn:
7041 # Code from module snippet/arg-nonnull:
7042 # Code from module snippet/c++defs:
7043 # Code from module snippet/warn-on-use:
7044 >>>>>>> MERGE-SOURCE
7045 # Code from module socklen:
7046 # Code from module ssize_t:
7047 # Code from module stat:
7048 # Code from module stdarg:
7049
7050
7051
7052 # Code from module stdbool:
7053 # Code from module stddef:
7054 # Code from module stdint:
7055 # Code from module stdio:
7056 # Code from module stdlib:
7057 # Code from module strftime:
7058 # Code from module strtoull:
7059 # Code from module strtoumax:
7060 # Code from module symlink:
7061 # Code from module sys_stat:
7062 # Code from module time:
7063 # Code from module time_r:
7064 # Code from module u64:
7065 # Code from module unistd:
7066 # Code from module verify:
7067
7068
7069 # On Suns, sometimes $CPP names a directory.
7070 if test -n "$CPP" && test -d "$CPP"; then
7071 CPP=
7072 fi
7073
7074 ## If not using gcc, and on Solaris, and no CPP specified, see if
7075 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7076 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7077 test x"$CPP" = x; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7079 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7080 if test "${emacs_cv_sunpro_c+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085
7086 int
7087 main ()
7088 {
7089 #ifndef __SUNPRO_C
7090 fail;
7091 #endif
7092
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 if ac_fn_c_try_link "$LINENO"; then :
7098 emacs_cv_sunpro_c=yes
7099 else
7100 emacs_cv_sunpro_c=no
7101 fi
7102 rm -f core conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
7104 fi
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7107 $as_echo "$emacs_cv_sunpro_c" >&6; }
7108
7109 if test x"$emacs_cv_sunpro_c" = xyes; then
7110 NON_GNU_CPP="$CC -E -Xs"
7111 fi
7112 fi
7113
7114 #### Some systems specify a CPP to use unless we are using GCC.
7115 #### Now that we know whether we are using GCC, we can decide whether
7116 #### to use that one.
7117 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7118 then
7119 CPP="$NON_GNU_CPP"
7120 fi
7121
7122 #### Some systems specify a CC to use unless we are using GCC.
7123 #### Now that we know whether we are using GCC, we can decide whether
7124 #### to use that one.
7125 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7126 test x$cc_specified != xyes
7127 then
7128 CC="$NON_GNU_CC"
7129 fi
7130
7131 if test x$GCC = xyes; then
7132 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7133 else
7134 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7135 fi
7136
7137 ### Use -Wdeclaration-after-statement if the compiler supports it
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7139 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7140 SAVE_CFLAGS="$CFLAGS"
7141 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144
7145 int
7146 main ()
7147 {
7148
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 has_option=yes
7155 else
7156 has_option=no
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 if test $has_option = yes; then
7160 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7161 fi
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7163 $as_echo "$has_option" >&6; }
7164 CFLAGS="$SAVE_CFLAGS"
7165 unset has_option
7166 unset SAVE_CFLAGS
7167
7168 ### Use -Wold-style-definition if the compiler supports it
7169 # This can be removed when conversion to standard C is finished.
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7171 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7172 SAVE_CFLAGS="$CFLAGS"
7173 CFLAGS="$CFLAGS -Wold-style-definition"
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176
7177 int
7178 main ()
7179 {
7180
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_compile "$LINENO"; then :
7186 has_option=yes
7187 else
7188 has_option=no
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 if test $has_option = yes; then
7192 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7195 $as_echo "$has_option" >&6; }
7196 CFLAGS="$SAVE_CFLAGS"
7197 unset has_option
7198 unset SAVE_CFLAGS
7199
7200 ### Use -Wimplicit-function-declaration if the compiler supports it
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7202 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7203 SAVE_CFLAGS="$CFLAGS"
7204 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207
7208 int
7209 main ()
7210 {
7211
7212 ;
7213 return 0;
7214 }
7215 _ACEOF
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217 has_option=yes
7218 else
7219 has_option=no
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 if test $has_option = yes; then
7223 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7226 $as_echo "$has_option" >&6; }
7227 CFLAGS="$SAVE_CFLAGS"
7228 unset has_option
7229 unset SAVE_CFLAGS
7230
7231
7232
7233
7234 #### Some other nice autoconf tests.
7235
7236 ac_ext=c
7237 ac_cpp='$CPP $CPPFLAGS'
7238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7242 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7243 # On Suns, sometimes $CPP names a directory.
7244 if test -n "$CPP" && test -d "$CPP"; then
7245 CPP=
7246 fi
7247 if test -z "$CPP"; then
7248 if test "${ac_cv_prog_CPP+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 # Double quotes because CPP needs to be expanded
7252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7253 do
7254 ac_preproc_ok=false
7255 for ac_c_preproc_warn_flag in '' yes
7256 do
7257 # Use a header file that comes with gcc, so configuring glibc
7258 # with a fresh cross-compiler works.
7259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260 # <limits.h> exists even on freestanding compilers.
7261 # On the NeXT, cc -E runs the code through the compiler's parser,
7262 # not just through cpp. "Syntax error" is here to catch this case.
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7265 #ifdef __STDC__
7266 # include <limits.h>
7267 #else
7268 # include <assert.h>
7269 #endif
7270 Syntax error
7271 _ACEOF
7272 if ac_fn_c_try_cpp "$LINENO"; then :
7273
7274 else
7275 # Broken: fails on valid input.
7276 continue
7277 fi
7278 rm -f conftest.err conftest.$ac_ext
7279
7280 # OK, works on sane cases. Now check whether nonexistent headers
7281 # can be detected and how.
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #include <ac_nonexistent.h>
7285 _ACEOF
7286 if ac_fn_c_try_cpp "$LINENO"; then :
7287 # Broken: success on invalid input.
7288 continue
7289 else
7290 # Passes both tests.
7291 ac_preproc_ok=:
7292 break
7293 fi
7294 rm -f conftest.err conftest.$ac_ext
7295
7296 done
7297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7298 rm -f conftest.err conftest.$ac_ext
7299 if $ac_preproc_ok; then :
7300 break
7301 fi
7302
7303 done
7304 ac_cv_prog_CPP=$CPP
7305
7306 fi
7307 CPP=$ac_cv_prog_CPP
7308 else
7309 ac_cv_prog_CPP=$CPP
7310 fi
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7312 $as_echo "$CPP" >&6; }
7313 ac_preproc_ok=false
7314 for ac_c_preproc_warn_flag in '' yes
7315 do
7316 # Use a header file that comes with gcc, so configuring glibc
7317 # with a fresh cross-compiler works.
7318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7319 # <limits.h> exists even on freestanding compilers.
7320 # On the NeXT, cc -E runs the code through the compiler's parser,
7321 # not just through cpp. "Syntax error" is here to catch this case.
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 #ifdef __STDC__
7325 # include <limits.h>
7326 #else
7327 # include <assert.h>
7328 #endif
7329 Syntax error
7330 _ACEOF
7331 if ac_fn_c_try_cpp "$LINENO"; then :
7332
7333 else
7334 # Broken: fails on valid input.
7335 continue
7336 fi
7337 rm -f conftest.err conftest.$ac_ext
7338
7339 # OK, works on sane cases. Now check whether nonexistent headers
7340 # can be detected and how.
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 #include <ac_nonexistent.h>
7344 _ACEOF
7345 if ac_fn_c_try_cpp "$LINENO"; then :
7346 # Broken: success on invalid input.
7347 continue
7348 else
7349 # Passes both tests.
7350 ac_preproc_ok=:
7351 break
7352 fi
7353 rm -f conftest.err conftest.$ac_ext
7354
7355 done
7356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7357 rm -f conftest.err conftest.$ac_ext
7358 if $ac_preproc_ok; then :
7359
7360 else
7361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7363 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7364 See \`config.log' for more details." "$LINENO" 5; }
7365 fi
7366
7367 ac_ext=c
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373
7374 if test "x$RANLIB" = x; then
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$RANLIB"; then
7384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 RANLIB=$ac_cv_prog_RANLIB
7404 if test -n "$RANLIB"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7406 $as_echo "$RANLIB" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412
7413 fi
7414 if test -z "$ac_cv_prog_RANLIB"; then
7415 ac_ct_RANLIB=$RANLIB
7416 # Extract the first word of "ranlib", so it can be a program name with args.
7417 set dummy ranlib; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 if test -n "$ac_ct_RANLIB"; then
7424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_ac_ct_RANLIB="ranlib"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7444 if test -n "$ac_ct_RANLIB"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7446 $as_echo "$ac_ct_RANLIB" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452 if test "x$ac_ct_RANLIB" = x; then
7453 RANLIB=":"
7454 else
7455 case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned=yes ;;
7460 esac
7461 RANLIB=$ac_ct_RANLIB
7462 fi
7463 else
7464 RANLIB="$ac_cv_prog_RANLIB"
7465 fi
7466
7467 fi
7468
7469 ## Although we're running on an amd64 kernel, we're actually compiling for
7470 ## the x86 architecture. The user should probably have provided an
7471 ## explicit --build to `configure', but if everything else than the kernel
7472 ## is running in i386 mode, we can help them out.
7473 if test "$machine" = "amdx86-64"; then
7474 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7475 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7476
7477 fi
7478
7479 if test "$ac_cv_have_decl_i386" = "yes"; then
7480 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7481 machine=intel386
7482 machfile="m/${machine}.h"
7483 fi
7484 fi
7485
7486 # Extract the first word of "install-info", so it can be a program name with args.
7487 set dummy install-info; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 case $INSTALL_INFO in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7496 ;;
7497 *)
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513 ;;
7514 esac
7515 fi
7516 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7517 if test -n "$INSTALL_INFO"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7519 $as_echo "$INSTALL_INFO" >&6; }
7520 else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7523 fi
7524
7525
7526 # Extract the first word of "install-info", so it can be a program name with args.
7527 set dummy install-info; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 case $INSTALL_INFO in
7534 [\\/]* | ?:[\\/]*)
7535 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7536 ;;
7537 *)
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in /usr/sbin
7540 do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549 done
7550 done
7551 IFS=$as_save_IFS
7552
7553 ;;
7554 esac
7555 fi
7556 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7557 if test -n "$INSTALL_INFO"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7559 $as_echo "$INSTALL_INFO" >&6; }
7560 else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7563 fi
7564
7565
7566 # Extract the first word of "install-info", so it can be a program name with args.
7567 set dummy install-info; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 case $INSTALL_INFO in
7574 [\\/]* | ?:[\\/]*)
7575 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7576 ;;
7577 *)
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in /sbin
7580 do
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 break 2
7588 fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7594 ;;
7595 esac
7596 fi
7597 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7598 if test -n "$INSTALL_INFO"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7600 $as_echo "$INSTALL_INFO" >&6; }
7601 else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606
7607 # Extract the first word of "gzip", so it can be a program name with args.
7608 set dummy gzip; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 case $GZIP_PROG in
7615 [\\/]* | ?:[\\/]*)
7616 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7617 ;;
7618 *)
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7626 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7629 fi
7630 done
7631 done
7632 IFS=$as_save_IFS
7633
7634 ;;
7635 esac
7636 fi
7637 GZIP_PROG=$ac_cv_path_GZIP_PROG
7638 if test -n "$GZIP_PROG"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7640 $as_echo "$GZIP_PROG" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646
7647
7648
7649 ## Need makeinfo >= 4.6 (?) to build the manuals.
7650 # Extract the first word of "makeinfo", so it can be a program name with args.
7651 set dummy makeinfo; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 case $MAKEINFO in
7658 [\\/]* | ?:[\\/]*)
7659 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7660 ;;
7661 *)
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7678 ;;
7679 esac
7680 fi
7681 MAKEINFO=$ac_cv_path_MAKEINFO
7682 if test -n "$MAKEINFO"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7684 $as_echo "$MAKEINFO" >&6; }
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689
7690
7691 if test "$MAKEINFO" != "no" && \
7692 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
7693 MAKEINFO=no
7694 fi
7695
7696 ## Makeinfo is unusual. For a released Emacs, the manuals are
7697 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7698 ## therefore in the category of "special tools" not normally required, which
7699 ## configure does not have to check for (eg autoconf itself).
7700 ## In a Bazaar checkout on the other hand, the manuals are not included.
7701 ## So makeinfo is a requirement to build from Bazaar, and configure
7702 ## should test for it as it does for any other build requirement.
7703 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7704 ## with pre-built manuals, from a Bazaar checkout.
7705 HAVE_MAKEINFO=yes
7706
7707 if test "$MAKEINFO" = "no"; then
7708 MAKEINFO=makeinfo
7709 if test "x${with_makeinfo}" = "xno"; then
7710 HAVE_MAKEINFO=no
7711 elif test ! -e $srcdir/info/emacs; then
7712 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7713 source tree does not seem to have pre-built manuals in the \`info' directory.
7714 Either install a suitable version of makeinfo, or re-run configure
7715 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7716 fi
7717 fi
7718
7719
7720
7721 if test x$GCC = xyes; then
7722 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7723 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7724 else
7725 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7726 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7727 fi
7728
7729
7730 late_LDFLAGS=$LDFLAGS
7731 if test x$GCC = xyes; then
7732 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7733 else
7734 LDFLAGS="$LDFLAGS -znocombreloc"
7735 fi
7736
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7738 $as_echo_n "checking for -znocombreloc... " >&6; }
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741
7742 int
7743 main ()
7744 {
7745
7746 ;
7747 return 0;
7748 }
7749 _ACEOF
7750 if ac_fn_c_try_link "$LINENO"; then :
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7752 $as_echo "yes" >&6; }
7753 else
7754 LDFLAGS=$late_LDFLAGS
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758 rm -f core conftest.err conftest.$ac_objext \
7759 conftest$ac_exeext conftest.$ac_ext
7760
7761
7762 # The value of CPP is a quoted variable reference, so we need to do this
7763 # to get its actual value...
7764 CPP=`eval "echo $CPP"`
7765
7766
7767 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7768 case "$opsys" in
7769 your-opsys-here) CANNOT_DUMP=yes ;;
7770 esac
7771
7772 test "$CANNOT_DUMP" = "yes" && \
7773
7774 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7775
7776
7777
7778
7779
7780 UNEXEC_OBJ=unexelf.o
7781 case "$opsys" in
7782 # MSDOS uses unexcoff.o
7783 # MSWindows uses unexw32.o
7784 aix4-2)
7785 UNEXEC_OBJ=unexaix.o
7786 ;;
7787 cygwin)
7788 UNEXEC_OBJ=unexcw.o
7789 ;;
7790 darwin)
7791 UNEXEC_OBJ=unexmacosx.o
7792 ;;
7793 hpux10-20 | hpux11)
7794 UNEXEC_OBJ=unexhp9k800.o
7795 ;;
7796 sol2-10)
7797 # Use the Solaris dldump() function, called from unexsol.c, to dump
7798 # emacs, instead of the generic ELF dump code found in unexelf.c.
7799 # The resulting binary has a complete symbol table, and is better
7800 # for debugging and other observability tools (debuggers, pstack, etc).
7801 #
7802 # If you encounter a problem using dldump(), please consider sending
7803 # a message to the OpenSolaris tools-linking mailing list:
7804 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7805 #
7806 # It is likely that dldump() works with older Solaris too, but this has
7807 # not been tested, so for now this change is for Solaris 10 or newer.
7808 UNEXEC_OBJ=unexsol.o
7809 ;;
7810 esac
7811
7812 LD_SWITCH_SYSTEM=
7813 case "$opsys" in
7814 freebsd)
7815 ## Let `ld' find image libs and similar things in /usr/local/lib.
7816 ## The system compiler, GCC, has apparently been modified to not
7817 ## look there, contrary to what a stock GCC would do.
7818 LD_SWITCH_SYSTEM=-L/usr/local/lib
7819 ;;
7820
7821 gnu-linux)
7822 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7823 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7824 ;;
7825
7826 netbsd)
7827 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7828 ;;
7829
7830 openbsd)
7831 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7832 ## otherwise Emacs dumps core on elf systems.
7833 LD_SWITCH_SYSTEM="-Z"
7834 ;;
7835 esac
7836
7837
7838 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7839
7840 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7841 ## which has not been defined yet. When this was handled with cpp,
7842 ## it was expanded to null when configure sourced the s/*.h file.
7843 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7844 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7845 ## (or somesuch), but because it is supposed to go at the _front_
7846 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7847 ## Compare with the gnu-linux case below, which added to the end
7848 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7849 ## LD_SWITCH_SYSTEM_TEMACS.
7850 case "$opsys" in
7851 netbsd|openbsd)
7852 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7853 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7854 esac
7855
7856
7857 C_SWITCH_MACHINE=
7858 if test "$machine" = "alpha"; then
7859 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7860 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7861
7862 fi
7863
7864 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7865 ## With ELF, make sure that all common symbols get allocated to in the
7866 ## data section. Otherwise, the dump of temacs may miss variables in
7867 ## the shared library that have been initialized. For example, with
7868 ## GNU libc, __malloc_initialized would normally be resolved to the
7869 ## shared library's .bss section, which is fatal.
7870 if test "x$GCC" = "xyes"; then
7871 C_SWITCH_MACHINE="-fno-common"
7872 else
7873 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7874 fi
7875 else
7876 UNEXEC_OBJ=unexalpha.o
7877 fi
7878 fi
7879
7880
7881
7882
7883 C_SWITCH_SYSTEM=
7884 ## Some programs in src produce warnings saying certain subprograms
7885 ## are too complex and need a MAXMEM value greater than 2000 for
7886 ## additional optimization. --nils@exp-math.uni-essen.de
7887 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7888 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7889 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7890 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7891
7892
7893
7894 LIBS_SYSTEM=
7895 case "$opsys" in
7896 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7897 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7898
7899 freebsd) LIBS_SYSTEM="-lutil" ;;
7900
7901 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7902
7903 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7904
7905 ## Motif needs -lgen.
7906 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7907 esac
7908
7909
7910
7911 ### Make sure subsequent tests use flags consistent with the build flags.
7912
7913 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7914 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7915 else
7916 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7917 fi
7918
7919 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7920
7921
7922 # Check whether --enable-largefile was given.
7923 if test "${enable_largefile+set}" = set; then :
7924 enableval=$enable_largefile;
7925 fi
7926
7927 if test "$enable_largefile" != no; then
7928
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7930 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7931 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 ac_cv_sys_largefile_CC=no
7935 if test "$GCC" != yes; then
7936 ac_save_CC=$CC
7937 while :; do
7938 # IRIX 6.2 and later do not support large files by default,
7939 # so use the C compiler's -n32 option if that helps.
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 #include <sys/types.h>
7943 /* Check that off_t can represent 2**63 - 1 correctly.
7944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7945 since some C++ compilers masquerading as C compilers
7946 incorrectly reject 9223372036854775807. */
7947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7949 && LARGE_OFF_T % 2147483647 == 1)
7950 ? 1 : -1];
7951 int
7952 main ()
7953 {
7954
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 if ac_fn_c_try_compile "$LINENO"; then :
7960 break
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext
7963 CC="$CC -n32"
7964 if ac_fn_c_try_compile "$LINENO"; then :
7965 ac_cv_sys_largefile_CC=' -n32'; break
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext
7968 break
7969 done
7970 CC=$ac_save_CC
7971 rm -f conftest.$ac_ext
7972 fi
7973 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7975 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7976 if test "$ac_cv_sys_largefile_CC" != no; then
7977 CC=$CC$ac_cv_sys_largefile_CC
7978 fi
7979
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7981 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7982 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 while :; do
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 #include <sys/types.h>
7989 /* Check that off_t can represent 2**63 - 1 correctly.
7990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7991 since some C++ compilers masquerading as C compilers
7992 incorrectly reject 9223372036854775807. */
7993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7995 && LARGE_OFF_T % 2147483647 == 1)
7996 ? 1 : -1];
7997 int
7998 main ()
7999 {
8000
8001 ;
8002 return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 ac_cv_sys_file_offset_bits=no; break
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 #define _FILE_OFFSET_BITS 64
8012 #include <sys/types.h>
8013 /* Check that off_t can represent 2**63 - 1 correctly.
8014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8015 since some C++ compilers masquerading as C compilers
8016 incorrectly reject 9223372036854775807. */
8017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8019 && LARGE_OFF_T % 2147483647 == 1)
8020 ? 1 : -1];
8021 int
8022 main ()
8023 {
8024
8025 ;
8026 return 0;
8027 }
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 ac_cv_sys_file_offset_bits=64; break
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 ac_cv_sys_file_offset_bits=unknown
8034 break
8035 done
8036 fi
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8038 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8039 case $ac_cv_sys_file_offset_bits in #(
8040 no | unknown) ;;
8041 *)
8042 cat >>confdefs.h <<_ACEOF
8043 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8044 _ACEOF
8045 ;;
8046 esac
8047 rm -rf conftest*
8048 if test $ac_cv_sys_file_offset_bits = unknown; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8050 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8051 if test "${ac_cv_sys_large_files+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 while :; do
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 #include <sys/types.h>
8058 /* Check that off_t can represent 2**63 - 1 correctly.
8059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8060 since some C++ compilers masquerading as C compilers
8061 incorrectly reject 9223372036854775807. */
8062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8064 && LARGE_OFF_T % 2147483647 == 1)
8065 ? 1 : -1];
8066 int
8067 main ()
8068 {
8069
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075 ac_cv_sys_large_files=no; break
8076 fi
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #define _LARGE_FILES 1
8081 #include <sys/types.h>
8082 /* Check that off_t can represent 2**63 - 1 correctly.
8083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8084 since some C++ compilers masquerading as C compilers
8085 incorrectly reject 9223372036854775807. */
8086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8088 && LARGE_OFF_T % 2147483647 == 1)
8089 ? 1 : -1];
8090 int
8091 main ()
8092 {
8093
8094 ;
8095 return 0;
8096 }
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099 ac_cv_sys_large_files=1; break
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 ac_cv_sys_large_files=unknown
8103 break
8104 done
8105 fi
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8107 $as_echo "$ac_cv_sys_large_files" >&6; }
8108 case $ac_cv_sys_large_files in #(
8109 no | unknown) ;;
8110 *)
8111 cat >>confdefs.h <<_ACEOF
8112 #define _LARGE_FILES $ac_cv_sys_large_files
8113 _ACEOF
8114 ;;
8115 esac
8116 rm -rf conftest*
8117 fi
8118
8119
8120 fi
8121
8122
8123
8124 ## If user specified a crt-dir, use that unconditionally.
8125 if test "X$CRT_DIR" = "X"; then
8126
8127 case "$canonical" in
8128 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8129 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8130 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8131 ## For anything else (eg /usr/lib32), it is up the user to specify
8132 ## the location (bug#5655).
8133 ## Test for crtn.o, not just the directory, because sometimes the
8134 ## directory exists but does not have the relevant files (bug#1287).
8135 ## FIXME better to test for binary compatibility somehow.
8136 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8137 ;;
8138
8139 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8140 esac
8141
8142 case "$opsys" in
8143 hpux10-20) CRT_DIR=/lib ;;
8144 esac
8145
8146 ## Default is /usr/lib.
8147 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
8148
8149 ## If we're using gcc, try to determine it automatically by asking
8150 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8151 ## system-dependent default from above.]
8152 if test "x${GCC}" = xyes; then
8153 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
8154 case "$crt_file" in
8155 */*)
8156 CRT_DIR=`$as_dirname -- "$crt_file" ||
8157 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8158 X"$crt_file" : 'X\(//\)[^/]' \| \
8159 X"$crt_file" : 'X\(//\)$' \| \
8160 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8161 $as_echo X"$crt_file" |
8162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8163 s//\1/
8164 q
8165 }
8166 /^X\(\/\/\)[^/].*/{
8167 s//\1/
8168 q
8169 }
8170 /^X\(\/\/\)$/{
8171 s//\1/
8172 q
8173 }
8174 /^X\(\/\).*/{
8175 s//\1/
8176 q
8177 }
8178 s/.*/./; q'`
8179 ;;
8180 esac
8181 fi
8182
8183 else
8184
8185 ## Some platforms don't use any of these files, so it is not
8186 ## appropriate to put this test outside the if block.
8187 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
8188 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
8189
8190 fi
8191
8192
8193
8194 LIB_MATH=-lm
8195 LIB_STANDARD=
8196 START_FILES=
8197
8198 case $opsys in
8199 cygwin )
8200 LIB_MATH=
8201 START_FILES='pre-crt0.o'
8202 ;;
8203 darwin )
8204 ## Adding -lm confuses the dynamic linker, so omit it.
8205 LIB_MATH=
8206 START_FILES='pre-crt0.o'
8207 ;;
8208 freebsd )
8209 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8210 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8211 ;;
8212 gnu-linux | gnu-kfreebsd )
8213 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8214 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8215 ;;
8216 hpux10-20 | hpux11 )
8217 LIB_STANDARD=-lc
8218 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8219 ;;
8220 netbsd | openbsd )
8221 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8222 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8223 ;;
8224 esac
8225
8226
8227
8228
8229 <<<<<<< TREE
8230 =======
8231 crt_files=
8232
8233 for file in x $LIB_STANDARD $START_FILES; do
8234 case "$file" in
8235 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8236 esac
8237 done
8238
8239 if test "x$crt_files" != x; then
8240
8241 ## If user specified a crt-dir, use that unconditionally.
8242 crt_gcc=no
8243
8244 if test "X$CRT_DIR" = "X"; then
8245
8246 CRT_DIR=/usr/lib # default
8247
8248 case "$canonical" in
8249 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8250 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8251 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8252 ## For anything else (eg /usr/lib32), it is up the user to specify
8253 ## the location (bug#5655).
8254 ## Test for crtn.o, not just the directory, because sometimes the
8255 ## directory exists but does not have the relevant files (bug#1287).
8256 ## FIXME better to test for binary compatibility somehow.
8257 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8258 ;;
8259
8260 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8261 esac
8262
8263 case "$opsys" in
8264 hpux10-20) CRT_DIR=/lib ;;
8265 esac
8266
8267 test "x${GCC}" = xyes && crt_gcc=yes
8268
8269 fi # CRT_DIR = ""
8270
8271 crt_missing=
8272
8273 for file in $crt_files; do
8274
8275 ## If we're using gcc, try to determine it automatically by asking
8276 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8277 ## system-dependent default from above.]
8278 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8279
8280 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8281 case "$crt_file" in
8282 */*)
8283 CRT_DIR=`$as_dirname -- "$crt_file" ||
8284 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8285 X"$crt_file" : 'X\(//\)[^/]' \| \
8286 X"$crt_file" : 'X\(//\)$' \| \
8287 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8288 $as_echo X"$crt_file" |
8289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8290 s//\1/
8291 q
8292 }
8293 /^X\(\/\/\)[^/].*/{
8294 s//\1/
8295 q
8296 }
8297 /^X\(\/\/\)$/{
8298 s//\1/
8299 q
8300 }
8301 /^X\(\/\).*/{
8302 s//\1/
8303 q
8304 }
8305 s/.*/./; q'`
8306 ;;
8307 esac
8308 fi
8309
8310 crt_gcc=no
8311
8312 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8313 done # $crt_files
8314
8315 test "x$crt_missing" = x || \
8316 as_fn_error "Required file(s) not found:$crt_missing
8317 Try using the --with-crt-dir option." "$LINENO" 5
8318
8319 fi # crt_files != ""
8320
8321
8322
8323 case $opsys in
8324 netbsd | openbsd )
8325 if test -f $CRT_DIR/crti.o; then
8326
8327 test -f $CRT_DIR/crtn.o || \
8328 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8329
8330 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8331 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8332 fi
8333 ;;
8334 esac
8335
8336
8337 >>>>>>> MERGE-SOURCE
8338
8339
8340
8341 if test "${with_sound}" != "no"; then
8342 # Sound support for GNU/Linux and the free BSDs.
8343 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8344 do :
8345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8347 eval as_val=\$$as_ac_Header
8348 if test "x$as_val" = x""yes; then :
8349 cat >>confdefs.h <<_ACEOF
8350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8351 _ACEOF
8352 have_sound_header=yes
8353 fi
8354
8355 done
8356
8357 # Emulation library used on NetBSD.
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8359 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8360 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 ac_check_lib_save_LIBS=$LIBS
8364 LIBS="-lossaudio $LIBS"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367
8368 /* Override any GCC internal prototype to avoid an error.
8369 Use char because int might match the return type of a GCC
8370 builtin and then its argument prototype would still apply. */
8371 #ifdef __cplusplus
8372 extern "C"
8373 #endif
8374 char _oss_ioctl ();
8375 int
8376 main ()
8377 {
8378 return _oss_ioctl ();
8379 ;
8380 return 0;
8381 }
8382 _ACEOF
8383 if ac_fn_c_try_link "$LINENO"; then :
8384 ac_cv_lib_ossaudio__oss_ioctl=yes
8385 else
8386 ac_cv_lib_ossaudio__oss_ioctl=no
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext \
8389 conftest$ac_exeext conftest.$ac_ext
8390 LIBS=$ac_check_lib_save_LIBS
8391 fi
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8393 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8394 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8395 LIBSOUND=-lossaudio
8396 else
8397 LIBSOUND=
8398 fi
8399
8400
8401
8402 ALSA_REQUIRED=1.0.0
8403 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8404
8405 succeeded=no
8406
8407 # Extract the first word of "pkg-config", so it can be a program name with args.
8408 set dummy pkg-config; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 case $PKG_CONFIG in
8415 [\\/]* | ?:[\\/]*)
8416 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8417 ;;
8418 *)
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430 done
8431 done
8432 IFS=$as_save_IFS
8433
8434 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8435 ;;
8436 esac
8437 fi
8438 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8439 if test -n "$PKG_CONFIG"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8441 $as_echo "$PKG_CONFIG" >&6; }
8442 else
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8445 fi
8446
8447
8448
8449 if test "$PKG_CONFIG" = "no" ; then
8450 HAVE_ALSA=no
8451 else
8452 PKG_CONFIG_MIN_VERSION=0.9.0
8453 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8455 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8456
8457 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8459 $as_echo "yes" >&6; }
8460 succeeded=yes
8461
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8463 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8464 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8466 $as_echo "$ALSA_CFLAGS" >&6; }
8467
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8469 $as_echo_n "checking ALSA_LIBS... " >&6; }
8470 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8472 $as_echo "$ALSA_LIBS" >&6; }
8473 else
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8476 ALSA_CFLAGS=""
8477 ALSA_LIBS=""
8478 ## If we have a custom action on failure, don't print errors, but
8479 ## do set a variable so people can do so.
8480 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8481
8482 fi
8483
8484
8485
8486 else
8487 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8488 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8489 fi
8490 fi
8491
8492 if test $succeeded = yes; then
8493 HAVE_ALSA=yes
8494 else
8495 HAVE_ALSA=no
8496 fi
8497
8498 if test $HAVE_ALSA = yes; then
8499 SAVE_CFLAGS="$CFLAGS"
8500 SAVE_LDFLAGS="$LDFLAGS"
8501 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8502 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <asoundlib.h>
8506 int
8507 main ()
8508 {
8509 snd_lib_error_set_handler (0);
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"; then :
8515 emacs_alsa_normal=yes
8516 else
8517 emacs_alsa_normal=no
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 if test "$emacs_alsa_normal" != yes; then
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 #include <alsa/asoundlib.h>
8524 int
8525 main ()
8526 {
8527 snd_lib_error_set_handler (0);
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 if ac_fn_c_try_compile "$LINENO"; then :
8533 emacs_alsa_subdir=yes
8534 else
8535 emacs_alsa_subdir=no
8536 fi
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 if test "$emacs_alsa_subdir" != yes; then
8539 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8540 fi
8541 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8542 fi
8543
8544 CFLAGS="$SAVE_CFLAGS"
8545 LDFLAGS="$SAVE_LDFLAGS"
8546 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8547 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8548
8549 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8550
8551 fi
8552
8553 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8554 case "$opsys" in
8555 gnu-linux|freebsd|netbsd)
8556
8557 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8558
8559 ;;
8560 esac
8561 fi
8562
8563
8564 fi
8565
8566 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8567 linux/version.h sys/systeminfo.h \
8568 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8569 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8570 sys/utsname.h pwd.h utmp.h dirent.h util.h
8571 do :
8572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8573 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8574 eval as_val=\$$as_ac_Header
8575 if test "x$as_val" = x""yes; then :
8576 cat >>confdefs.h <<_ACEOF
8577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8578 _ACEOF
8579
8580 fi
8581
8582 done
8583
8584
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8586 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h. */
8589 #include <sys/personality.h>
8590 int
8591 main ()
8592 {
8593 personality (PER_LINUX32)
8594 ;
8595 return 0;
8596 }
8597 _ACEOF
8598 if ac_fn_c_try_compile "$LINENO"; then :
8599 emacs_cv_personality_linux32=yes
8600 else
8601 emacs_cv_personality_linux32=no
8602 fi
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8605 $as_echo "$emacs_cv_personality_linux32" >&6; }
8606
8607 if test $emacs_cv_personality_linux32 = yes; then
8608
8609 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8610
8611 fi
8612
8613 for ac_header in term.h
8614 do :
8615 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8616 if test "x$ac_cv_header_term_h" = x""yes; then :
8617 cat >>confdefs.h <<_ACEOF
8618 #define HAVE_TERM_H 1
8619 _ACEOF
8620
8621 fi
8622
8623 done
8624
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8626 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8627 if test "${ac_cv_header_time+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <sys/types.h>
8633 #include <sys/time.h>
8634 #include <time.h>
8635
8636 int
8637 main ()
8638 {
8639 if ((struct tm *) 0)
8640 return 0;
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"; then :
8646 ac_cv_header_time=yes
8647 else
8648 ac_cv_header_time=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 fi
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8653 $as_echo "$ac_cv_header_time" >&6; }
8654 if test $ac_cv_header_time = yes; then
8655
8656 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8657
8658 fi
8659
8660 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8661 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8662 ac_have_decl=1
8663 else
8664 ac_have_decl=0
8665 fi
8666
8667 cat >>confdefs.h <<_ACEOF
8668 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8669 _ACEOF
8670
8671 if test $ac_cv_have_decl_sys_siglist != yes; then
8672 # For Tru64, at least:
8673 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8674 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8675 ac_have_decl=1
8676 else
8677 ac_have_decl=0
8678 fi
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8682 _ACEOF
8683
8684 if test $ac_cv_have_decl___sys_siglist = yes; then
8685
8686 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8687
8688 fi
8689 fi
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8691 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8692 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 #include <sys/types.h>
8698 #include <sys/wait.h>
8699 #ifndef WEXITSTATUS
8700 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8701 #endif
8702 #ifndef WIFEXITED
8703 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8704 #endif
8705
8706 int
8707 main ()
8708 {
8709 int s;
8710 wait (&s);
8711 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8712 ;
8713 return 0;
8714 }
8715 _ACEOF
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 ac_cv_header_sys_wait_h=yes
8718 else
8719 ac_cv_header_sys_wait_h=no
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8724 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8725 if test $ac_cv_header_sys_wait_h = yes; then
8726
8727 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8728
8729 fi
8730
8731
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8733 $as_echo_n "checking for struct utimbuf... " >&6; }
8734 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #ifdef TIME_WITH_SYS_TIME
8740 #include <sys/time.h>
8741 #include <time.h>
8742 #else
8743 #ifdef HAVE_SYS_TIME_H
8744 #include <sys/time.h>
8745 #else
8746 #include <time.h>
8747 #endif
8748 #endif
8749 #ifdef HAVE_UTIME_H
8750 #include <utime.h>
8751 #endif
8752 int
8753 main ()
8754 {
8755 static struct utimbuf x; x.actime = x.modtime;
8756 ;
8757 return 0;
8758 }
8759 _ACEOF
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761 emacs_cv_struct_utimbuf=yes
8762 else
8763 emacs_cv_struct_utimbuf=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8768 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8769 if test $emacs_cv_struct_utimbuf = yes; then
8770
8771 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8772
8773 fi
8774
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8776 $as_echo_n "checking for speed_t... " >&6; }
8777 if test "${emacs_cv_speed_t+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782 #include <termios.h>
8783 int
8784 main ()
8785 {
8786 speed_t x = 1;
8787 ;
8788 return 0;
8789 }
8790 _ACEOF
8791 if ac_fn_c_try_compile "$LINENO"; then :
8792 emacs_cv_speed_t=yes
8793 else
8794 emacs_cv_speed_t=no
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8799 $as_echo "$emacs_cv_speed_t" >&6; }
8800 if test $emacs_cv_speed_t = yes; then
8801
8802 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8803
8804 fi
8805
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8807 $as_echo_n "checking for struct timeval... " >&6; }
8808 if test "${emacs_cv_struct_timeval+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 #ifdef TIME_WITH_SYS_TIME
8814 #include <sys/time.h>
8815 #include <time.h>
8816 #else
8817 #ifdef HAVE_SYS_TIME_H
8818 #include <sys/time.h>
8819 #else
8820 #include <time.h>
8821 #endif
8822 #endif
8823 int
8824 main ()
8825 {
8826 static struct timeval x; x.tv_sec = x.tv_usec;
8827 ;
8828 return 0;
8829 }
8830 _ACEOF
8831 if ac_fn_c_try_compile "$LINENO"; then :
8832 emacs_cv_struct_timeval=yes
8833 else
8834 emacs_cv_struct_timeval=no
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 fi
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8839 $as_echo "$emacs_cv_struct_timeval" >&6; }
8840 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8841 if test $emacs_cv_struct_timeval = yes; then
8842
8843 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8844
8845 fi
8846
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8848 $as_echo_n "checking for struct exception... " >&6; }
8849 if test "${emacs_cv_struct_exception+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #include <math.h>
8855 int
8856 main ()
8857 {
8858 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8859 ;
8860 return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_compile "$LINENO"; then :
8864 emacs_cv_struct_exception=yes
8865 else
8866 emacs_cv_struct_exception=no
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869 fi
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8871 $as_echo "$emacs_cv_struct_exception" >&6; }
8872 HAVE_EXCEPTION=$emacs_cv_struct_exception
8873 if test $emacs_cv_struct_exception != yes; then
8874
8875 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8876
8877 fi
8878
8879 <<<<<<< TREE
8880 =======
8881 for ac_header in sys/socket.h
8882 do :
8883 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8884 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8885 cat >>confdefs.h <<_ACEOF
8886 #define HAVE_SYS_SOCKET_H 1
8887 _ACEOF
8888
8889 fi
8890
8891 done
8892
8893 >>>>>>> MERGE-SOURCE
8894 for ac_header in net/if.h
8895 do :
8896 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8897 #if HAVE_SYS_SOCKET_H
8898 #include <sys/socket.h>
8899 #endif
8900 "
8901 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8902 cat >>confdefs.h <<_ACEOF
8903 #define HAVE_NET_IF_H 1
8904 _ACEOF
8905
8906 fi
8907
8908 done
8909
8910 <<<<<<< TREE
8911 =======
8912 for ac_header in ifaddrs.h
8913 do :
8914 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8915 #if HAVE_SYS_SOCKET_H
8916 #include <sys/socket.h>
8917 #endif
8918 "
8919 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8920 cat >>confdefs.h <<_ACEOF
8921 #define HAVE_IFADDRS_H 1
8922 _ACEOF
8923
8924 fi
8925
8926 done
8927
8928 for ac_header in net/if_dl.h
8929 do :
8930 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8931 #if HAVE_SYS_SOCKET_H
8932 #include <sys/socket.h>
8933 #endif
8934 "
8935 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_NET_IF_DL_H 1
8938 _ACEOF
8939
8940 fi
8941
8942 done
8943
8944 for ac_func in getifaddrs freeifaddrs
8945 do :
8946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8948 eval as_val=\$$as_ac_var
8949 if test "x$as_val" = x""yes; then :
8950 cat >>confdefs.h <<_ACEOF
8951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8952 _ACEOF
8953
8954 fi
8955 done
8956
8957 >>>>>>> MERGE-SOURCE
8958
8959 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8960 #if HAVE_SYS_SOCKET_H
8961 #include <sys/socket.h>
8962 #endif
8963 #if HAVE_NET_IF_H
8964 #include <net/if.h>
8965 #endif
8966 "
8967 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8968
8969 cat >>confdefs.h <<_ACEOF
8970 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8971 _ACEOF
8972
8973
8974 fi
8975 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8976 #if HAVE_SYS_SOCKET_H
8977 #include <sys/socket.h>
8978 #endif
8979 #if HAVE_NET_IF_H
8980 #include <net/if.h>
8981 #endif
8982 "
8983 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8984
8985 cat >>confdefs.h <<_ACEOF
8986 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8987 _ACEOF
8988
8989
8990 fi
8991 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8992 #if HAVE_SYS_SOCKET_H
8993 #include <sys/socket.h>
8994 #endif
8995 #if HAVE_NET_IF_H
8996 #include <net/if.h>
8997 #endif
8998 "
8999 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9000
9001 cat >>confdefs.h <<_ACEOF
9002 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9003 _ACEOF
9004
9005
9006 fi
9007 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9008 #if HAVE_SYS_SOCKET_H
9009 #include <sys/socket.h>
9010 #endif
9011 #if HAVE_NET_IF_H
9012 #include <net/if.h>
9013 #endif
9014 "
9015 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9016
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9019 _ACEOF
9020
9021
9022 fi
9023 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9024 #if HAVE_SYS_SOCKET_H
9025 #include <sys/socket.h>
9026 #endif
9027 #if HAVE_NET_IF_H
9028 #include <net/if.h>
9029 #endif
9030 "
9031 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9032
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9035 _ACEOF
9036
9037
9038 fi
9039 <<<<<<< TREE
9040 =======
9041 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9042 #if HAVE_SYS_SOCKET_H
9043 #include <sys/socket.h>
9044 #endif
9045 #if HAVE_NET_IF_H
9046 #include <net/if.h>
9047 #endif
9048 "
9049 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9050
9051 cat >>confdefs.h <<_ACEOF
9052 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9053 _ACEOF
9054
9055
9056 fi
9057 >>>>>>> MERGE-SOURCE
9058
9059
9060
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9062 $as_echo_n "checking for function prototypes... " >&6; }
9063 if test "$ac_cv_prog_cc_c89" != no; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9065 $as_echo "yes" >&6; }
9066
9067 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9068
9069
9070 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9071
9072 else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9075 fi
9076
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9078 $as_echo_n "checking for working volatile... " >&6; }
9079 if test "${ac_cv_c_volatile+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9084
9085 int
9086 main ()
9087 {
9088
9089 volatile int x;
9090 int * volatile y = (int *) 0;
9091 return !x && !y;
9092 ;
9093 return 0;
9094 }
9095 _ACEOF
9096 if ac_fn_c_try_compile "$LINENO"; then :
9097 ac_cv_c_volatile=yes
9098 else
9099 ac_cv_c_volatile=no
9100 fi
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102 fi
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9104 $as_echo "$ac_cv_c_volatile" >&6; }
9105 if test $ac_cv_c_volatile = no; then
9106
9107 $as_echo "#define volatile /**/" >>confdefs.h
9108
9109 fi
9110
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9112 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9113 if test "${ac_cv_c_const+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118
9119 int
9120 main ()
9121 {
9122 /* FIXME: Include the comments suggested by Paul. */
9123 #ifndef __cplusplus
9124 /* Ultrix mips cc rejects this. */
9125 typedef int charset[2];
9126 const charset cs;
9127 /* SunOS 4.1.1 cc rejects this. */
9128 char const *const *pcpcc;
9129 char **ppc;
9130 /* NEC SVR4.0.2 mips cc rejects this. */
9131 struct point {int x, y;};
9132 static struct point const zero = {0,0};
9133 /* AIX XL C 1.02.0.0 rejects this.
9134 It does not let you subtract one const X* pointer from another in
9135 an arm of an if-expression whose if-part is not a constant
9136 expression */
9137 const char *g = "string";
9138 pcpcc = &g + (g ? g-g : 0);
9139 /* HPUX 7.0 cc rejects these. */
9140 ++pcpcc;
9141 ppc = (char**) pcpcc;
9142 pcpcc = (char const *const *) ppc;
9143 { /* SCO 3.2v4 cc rejects this. */
9144 char *t;
9145 char const *s = 0 ? (char *) 0 : (char const *) 0;
9146
9147 *t++ = 0;
9148 if (s) return 0;
9149 }
9150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9151 int x[] = {25, 17};
9152 const int *foo = &x[0];
9153 ++foo;
9154 }
9155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9156 typedef const int *iptr;
9157 iptr p = 0;
9158 ++p;
9159 }
9160 { /* AIX XL C 1.02.0.0 rejects this saying
9161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9162 struct s { int j; const int *ap[3]; };
9163 struct s *b; b->j = 5;
9164 }
9165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9166 const int foo = 10;
9167 if (!foo) return 0;
9168 }
9169 return !cs[0] && !zero.x;
9170 #endif
9171
9172 ;
9173 return 0;
9174 }
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177 ac_cv_c_const=yes
9178 else
9179 ac_cv_c_const=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9184 $as_echo "$ac_cv_c_const" >&6; }
9185 if test $ac_cv_c_const = no; then
9186
9187 $as_echo "#define const /**/" >>confdefs.h
9188
9189 fi
9190
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9192 $as_echo_n "checking for void * support... " >&6; }
9193 if test "${emacs_cv_void_star+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198
9199 int
9200 main ()
9201 {
9202 void * foo;
9203 ;
9204 return 0;
9205 }
9206 _ACEOF
9207 if ac_fn_c_try_compile "$LINENO"; then :
9208 emacs_cv_void_star=yes
9209 else
9210 emacs_cv_void_star=no
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9215 $as_echo "$emacs_cv_void_star" >&6; }
9216 if test $emacs_cv_void_star = yes; then
9217 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9218
9219 else
9220 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9221
9222 fi
9223
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9225 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9226 if test "${ac_cv_c_bigendian+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 ac_cv_c_bigendian=unknown
9230 # See if we're dealing with a universal compiler.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #ifndef __APPLE_CC__
9234 not a universal capable compiler
9235 #endif
9236 typedef int dummy;
9237
9238 _ACEOF
9239 if ac_fn_c_try_compile "$LINENO"; then :
9240
9241 # Check for potential -arch flags. It is not universal unless
9242 # there are at least two -arch flags with different values.
9243 ac_arch=
9244 ac_prev=
9245 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9246 if test -n "$ac_prev"; then
9247 case $ac_word in
9248 i?86 | x86_64 | ppc | ppc64)
9249 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9250 ac_arch=$ac_word
9251 else
9252 ac_cv_c_bigendian=universal
9253 break
9254 fi
9255 ;;
9256 esac
9257 ac_prev=
9258 elif test "x$ac_word" = "x-arch"; then
9259 ac_prev=arch
9260 fi
9261 done
9262 fi
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264 if test $ac_cv_c_bigendian = unknown; then
9265 # See if sys/param.h defines the BYTE_ORDER macro.
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <sys/types.h>
9269 #include <sys/param.h>
9270
9271 int
9272 main ()
9273 {
9274 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9275 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9276 && LITTLE_ENDIAN)
9277 bogus endian macros
9278 #endif
9279
9280 ;
9281 return 0;
9282 }
9283 _ACEOF
9284 if ac_fn_c_try_compile "$LINENO"; then :
9285 # It does; now see whether it defined to BIG_ENDIAN or not.
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 #include <sys/types.h>
9289 #include <sys/param.h>
9290
9291 int
9292 main ()
9293 {
9294 #if BYTE_ORDER != BIG_ENDIAN
9295 not big endian
9296 #endif
9297
9298 ;
9299 return 0;
9300 }
9301 _ACEOF
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303 ac_cv_c_bigendian=yes
9304 else
9305 ac_cv_c_bigendian=no
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 fi
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 fi
9311 if test $ac_cv_c_bigendian = unknown; then
9312 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #include <limits.h>
9316
9317 int
9318 main ()
9319 {
9320 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9321 bogus endian macros
9322 #endif
9323
9324 ;
9325 return 0;
9326 }
9327 _ACEOF
9328 if ac_fn_c_try_compile "$LINENO"; then :
9329 # It does; now see whether it defined to _BIG_ENDIAN or not.
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 #include <limits.h>
9333
9334 int
9335 main ()
9336 {
9337 #ifndef _BIG_ENDIAN
9338 not big endian
9339 #endif
9340
9341 ;
9342 return 0;
9343 }
9344 _ACEOF
9345 if ac_fn_c_try_compile "$LINENO"; then :
9346 ac_cv_c_bigendian=yes
9347 else
9348 ac_cv_c_bigendian=no
9349 fi
9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 fi
9354 if test $ac_cv_c_bigendian = unknown; then
9355 # Compile a test program.
9356 if test "$cross_compiling" = yes; then :
9357 # Try to guess by grepping values from an object file.
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 short int ascii_mm[] =
9361 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9362 short int ascii_ii[] =
9363 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9364 int use_ascii (int i) {
9365 return ascii_mm[i] + ascii_ii[i];
9366 }
9367 short int ebcdic_ii[] =
9368 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9369 short int ebcdic_mm[] =
9370 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9371 int use_ebcdic (int i) {
9372 return ebcdic_mm[i] + ebcdic_ii[i];
9373 }
9374 extern int foo;
9375
9376 int
9377 main ()
9378 {
9379 return use_ascii (foo) == use_ebcdic (foo);
9380 ;
9381 return 0;
9382 }
9383 _ACEOF
9384 if ac_fn_c_try_compile "$LINENO"; then :
9385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9386 ac_cv_c_bigendian=yes
9387 fi
9388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9389 if test "$ac_cv_c_bigendian" = unknown; then
9390 ac_cv_c_bigendian=no
9391 else
9392 # finding both strings is unlikely to happen, but who knows?
9393 ac_cv_c_bigendian=unknown
9394 fi
9395 fi
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 else
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 $ac_includes_default
9402 int
9403 main ()
9404 {
9405
9406 /* Are we little or big endian? From Harbison&Steele. */
9407 union
9408 {
9409 long int l;
9410 char c[sizeof (long int)];
9411 } u;
9412 u.l = 1;
9413 return u.c[sizeof (long int) - 1] == 1;
9414
9415 ;
9416 return 0;
9417 }
9418 _ACEOF
9419 if ac_fn_c_try_run "$LINENO"; then :
9420 ac_cv_c_bigendian=no
9421 else
9422 ac_cv_c_bigendian=yes
9423 fi
9424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9425 conftest.$ac_objext conftest.beam conftest.$ac_ext
9426 fi
9427
9428 fi
9429 fi
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9431 $as_echo "$ac_cv_c_bigendian" >&6; }
9432 case $ac_cv_c_bigendian in #(
9433 yes)
9434 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9435 ;; #(
9436 no)
9437 ;; #(
9438 universal)
9439
9440 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9441
9442 ;; #(
9443 *)
9444 as_fn_error "unknown endianness
9445 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9446 esac
9447
9448
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9450 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9451 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 char __attribute__ ((__aligned__ (1 << 3))) c;
9457 int
9458 main ()
9459 {
9460
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 if ac_fn_c_try_compile "$LINENO"; then :
9466 emacs_cv_attribute_aligned=yes
9467 else
9468 emacs_cv_attribute_aligned=no
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9473 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9474 if test $emacs_cv_attribute_aligned = yes; then
9475
9476 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9477
9478 fi
9479
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9481 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9482 set x ${MAKE-make}
9483 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9484 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 cat >conftest.make <<\_ACEOF
9488 SHELL = /bin/sh
9489 all:
9490 @echo '@@@%%%=$(MAKE)=@@@%%%'
9491 _ACEOF
9492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9493 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9494 *@@@%%%=?*=@@@%%%*)
9495 eval ac_cv_prog_make_${ac_make}_set=yes;;
9496 *)
9497 eval ac_cv_prog_make_${ac_make}_set=no;;
9498 esac
9499 rm -f conftest.make
9500 fi
9501 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9503 $as_echo "yes" >&6; }
9504 SET_MAKE=
9505 else
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9508 SET_MAKE="MAKE=${MAKE-make}"
9509 fi
9510
9511
9512 DEPFLAGS=
9513 MKDEPDIR=":"
9514 deps_frag=deps.mk
9515 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9517 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9518 HAVE_GNU_MAKE=no
9519 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9520 if test "x$testval" != x; then
9521 HAVE_GNU_MAKE=yes
9522 else
9523 ac_enable_autodepend=no
9524 fi
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9526 $as_echo "$HAVE_GNU_MAKE" >&6; }
9527 if test $HAVE_GNU_MAKE = yes; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9529 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9530 SAVE_CFLAGS="$CFLAGS"
9531 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534
9535 int
9536 main ()
9537 {
9538
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 if ac_fn_c_try_compile "$LINENO"; then :
9544
9545 else
9546 ac_enable_autodepend=no
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 CFLAGS="$SAVE_CFLAGS"
9550 test -f deps.d || ac_enable_autodepend=no
9551 rm -rf deps.d
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9553 $as_echo "$ac_enable_autodepend" >&6; }
9554 fi
9555 if test $ac_enable_autodepend = yes; then
9556 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9557 ## In parallel builds, another make might create depdir between
9558 ## the first test and mkdir, so stick another test on the end.
9559 ## Or use install-sh -d? mkdir -p is not portable.
9560 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9561 deps_frag=autodeps.mk
9562 fi
9563 fi
9564 deps_frag=$srcdir/src/$deps_frag
9565
9566
9567
9568
9569
9570 lisp_frag=$srcdir/src/lisp.mk
9571
9572
9573
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9575 $as_echo_n "checking for long file names... " >&6; }
9576 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 ac_cv_sys_long_file_names=yes
9580 # Test for long file names in all the places we know might matter:
9581 # . the current directory, where building will happen
9582 # $prefix/lib where we will be installing things
9583 # $exec_prefix/lib likewise
9584 # $TMPDIR if set, where it might want to write temporary files
9585 # /tmp where it might want to write temporary files
9586 # /var/tmp likewise
9587 # /usr/tmp likewise
9588 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9589 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9590 # in the usual case where exec_prefix is '${prefix}'.
9591 case $ac_dir in #(
9592 . | /* | ?:[\\/]*) ;; #(
9593 *) continue;;
9594 esac
9595 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9596 ac_xdir=$ac_dir/cf$$
9597 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9598 ac_tf1=$ac_xdir/conftest9012345
9599 ac_tf2=$ac_xdir/conftest9012346
9600 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9601 ac_cv_sys_long_file_names=no
9602 rm -f -r "$ac_xdir" 2>/dev/null
9603 test $ac_cv_sys_long_file_names = no && break
9604 done
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9607 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9608 if test $ac_cv_sys_long_file_names = yes; then
9609
9610 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9611
9612 fi
9613
9614
9615 #### Choose a window system.
9616
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9618 $as_echo_n "checking for X... " >&6; }
9619
9620
9621 # Check whether --with-x was given.
9622 if test "${with_x+set}" = set; then :
9623 withval=$with_x;
9624 fi
9625
9626 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9627 if test "x$with_x" = xno; then
9628 # The user explicitly disabled X.
9629 have_x=disabled
9630 else
9631 case $x_includes,$x_libraries in #(
9632 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9633 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 # One or both of the vars are not set, and there is no cached value.
9637 ac_x_includes=no ac_x_libraries=no
9638 rm -f -r conftest.dir
9639 if mkdir conftest.dir; then
9640 cd conftest.dir
9641 cat >Imakefile <<'_ACEOF'
9642 incroot:
9643 @echo incroot='${INCROOT}'
9644 usrlibdir:
9645 @echo usrlibdir='${USRLIBDIR}'
9646 libdir:
9647 @echo libdir='${LIBDIR}'
9648 _ACEOF
9649 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9650 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9651 for ac_var in incroot usrlibdir libdir; do
9652 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9653 done
9654 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9655 for ac_extension in a so sl dylib la dll; do
9656 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9657 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9658 ac_im_usrlibdir=$ac_im_libdir; break
9659 fi
9660 done
9661 # Screen out bogus values from the imake configuration. They are
9662 # bogus both because they are the default anyway, and because
9663 # using them would break gcc on systems where it needs fixed includes.
9664 case $ac_im_incroot in
9665 /usr/include) ac_x_includes= ;;
9666 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9667 esac
9668 case $ac_im_usrlibdir in
9669 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9670 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9671 esac
9672 fi
9673 cd ..
9674 rm -f -r conftest.dir
9675 fi
9676
9677 # Standard set of common directories for X headers.
9678 # Check X11 before X11Rn because it is often a symlink to the current release.
9679 ac_x_header_dirs='
9680 /usr/X11/include
9681 /usr/X11R7/include
9682 /usr/X11R6/include
9683 /usr/X11R5/include
9684 /usr/X11R4/include
9685
9686 /usr/include/X11
9687 /usr/include/X11R7
9688 /usr/include/X11R6
9689 /usr/include/X11R5
9690 /usr/include/X11R4
9691
9692 /usr/local/X11/include
9693 /usr/local/X11R7/include
9694 /usr/local/X11R6/include
9695 /usr/local/X11R5/include
9696 /usr/local/X11R4/include
9697
9698 /usr/local/include/X11
9699 /usr/local/include/X11R7
9700 /usr/local/include/X11R6
9701 /usr/local/include/X11R5
9702 /usr/local/include/X11R4
9703
9704 /usr/X386/include
9705 /usr/x386/include
9706 /usr/XFree86/include/X11
9707
9708 /usr/include
9709 /usr/local/include
9710 /usr/unsupported/include
9711 /usr/athena/include
9712 /usr/local/x11r5/include
9713 /usr/lpp/Xamples/include
9714
9715 /usr/openwin/include
9716 /usr/openwin/share/include'
9717
9718 if test "$ac_x_includes" = no; then
9719 # Guess where to find include files, by looking for Xlib.h.
9720 # First, try using that file with no special directory specified.
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 #include <X11/Xlib.h>
9724 _ACEOF
9725 if ac_fn_c_try_cpp "$LINENO"; then :
9726 # We can compile using X headers with no special include directory.
9727 ac_x_includes=
9728 else
9729 for ac_dir in $ac_x_header_dirs; do
9730 if test -r "$ac_dir/X11/Xlib.h"; then
9731 ac_x_includes=$ac_dir
9732 break
9733 fi
9734 done
9735 fi
9736 rm -f conftest.err conftest.$ac_ext
9737 fi # $ac_x_includes = no
9738
9739 if test "$ac_x_libraries" = no; then
9740 # Check for the libraries.
9741 # See if we find them without any special options.
9742 # Don't add to $LIBS permanently.
9743 ac_save_LIBS=$LIBS
9744 LIBS="-lX11 $LIBS"
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 #include <X11/Xlib.h>
9748 int
9749 main ()
9750 {
9751 XrmInitialize ()
9752 ;
9753 return 0;
9754 }
9755 _ACEOF
9756 if ac_fn_c_try_link "$LINENO"; then :
9757 LIBS=$ac_save_LIBS
9758 # We can link X programs with no special library path.
9759 ac_x_libraries=
9760 else
9761 LIBS=$ac_save_LIBS
9762 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9763 do
9764 # Don't even attempt the hair of trying to link an X program!
9765 for ac_extension in a so sl dylib la dll; do
9766 if test -r "$ac_dir/libX11.$ac_extension"; then
9767 ac_x_libraries=$ac_dir
9768 break 2
9769 fi
9770 done
9771 done
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9775 fi # $ac_x_libraries = no
9776
9777 case $ac_x_includes,$ac_x_libraries in #(
9778 no,* | *,no | *\'*)
9779 # Didn't find X, or a directory has "'" in its name.
9780 ac_cv_have_x="have_x=no";; #(
9781 *)
9782 # Record where we found X for the cache.
9783 ac_cv_have_x="have_x=yes\
9784 ac_x_includes='$ac_x_includes'\
9785 ac_x_libraries='$ac_x_libraries'"
9786 esac
9787 fi
9788 ;; #(
9789 *) have_x=yes;;
9790 esac
9791 eval "$ac_cv_have_x"
9792 fi # $with_x != no
9793
9794 if test "$have_x" != yes; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9796 $as_echo "$have_x" >&6; }
9797 no_x=yes
9798 else
9799 # If each of the values was on the command line, it overrides each guess.
9800 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9801 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9802 # Update the cache value to reflect the command line values.
9803 ac_cv_have_x="have_x=yes\
9804 ac_x_includes='$x_includes'\
9805 ac_x_libraries='$x_libraries'"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9807 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9808 fi
9809
9810 if test "$no_x" = yes; then
9811 window_system=none
9812 else
9813 window_system=x11
9814 fi
9815
9816 ## Workaround for bug in autoconf <= 2.62.
9817 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9818 ## No need to do anything special for these standard directories.
9819 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9820
9821 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9822
9823 fi
9824
9825 LD_SWITCH_X_SITE_AUX=
9826 LD_SWITCH_X_SITE_AUX_RPATH=
9827 if test "${x_libraries}" != NONE; then
9828 if test -n "${x_libraries}"; then
9829 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9830 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9831 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9832 fi
9833 x_default_search_path=""
9834 x_search_path=${x_libraries}
9835 if test -z "${x_search_path}"; then
9836 x_search_path=/usr/lib
9837 fi
9838 for x_library in `echo ${x_search_path}: | \
9839 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9840 x_search_path="\
9841 ${x_library}/X11/%L/%T/%N%C%S:\
9842 ${x_library}/X11/%l/%T/%N%C%S:\
9843 ${x_library}/X11/%T/%N%C%S:\
9844 ${x_library}/X11/%L/%T/%N%S:\
9845 ${x_library}/X11/%l/%T/%N%S:\
9846 ${x_library}/X11/%T/%N%S"
9847 if test x"${x_default_search_path}" = x; then
9848 x_default_search_path=${x_search_path}
9849 else
9850 x_default_search_path="${x_search_path}:${x_default_search_path}"
9851 fi
9852 done
9853 fi
9854
9855
9856
9857 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9858 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9859 fi
9860
9861 if test x"${x_includes}" = x; then
9862 bitmapdir=/usr/include/X11/bitmaps
9863 else
9864 # accumulate include directories that have X11 bitmap subdirectories
9865 bmd_acc="dummyval"
9866 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9867 if test -d "${bmd}/X11/bitmaps"; then
9868 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9869 fi
9870 if test -d "${bmd}/bitmaps"; then
9871 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9872 fi
9873 done
9874 if test ${bmd_acc} != "dummyval"; then
9875 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9876 fi
9877 fi
9878
9879 HAVE_NS=no
9880 NS_IMPL_COCOA=no
9881 NS_IMPL_GNUSTEP=no
9882 tmp_CPPFLAGS="$CPPFLAGS"
9883 tmp_CFLAGS="$CFLAGS"
9884 CPPFLAGS="$CPPFLAGS -x objective-c"
9885 CFLAGS="$CFLAGS -x objective-c"
9886 TEMACS_LDFLAGS2="\${LDFLAGS}"
9887 GNU_OBJC_CFLAGS=
9888 if test "${with_ns}" != no; then
9889 if test "${opsys}" = darwin; then
9890 NS_IMPL_COCOA=yes
9891 ns_appdir=`pwd`/nextstep/Emacs.app
9892 ns_appbindir=${ns_appdir}/Contents/MacOS/
9893 ns_appresdir=${ns_appdir}/Contents/Resources
9894 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9895 elif test -f $GNUSTEP_CONFIG_FILE; then
9896 NS_IMPL_GNUSTEP=yes
9897 ns_appdir=`pwd`/nextstep/Emacs.app
9898 ns_appbindir=${ns_appdir}/
9899 ns_appresdir=${ns_appdir}/Resources
9900 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9901 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9902 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9903 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9904 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9905 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9906 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9907 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9908 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9909 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9910 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9911 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9912 LIB_STANDARD=
9913 START_FILES=
9914 TEMACS_LDFLAGS2=
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9916 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9917 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 #include <GNUstepBase/GSConfig.h>
9923 int
9924 main ()
9925 {
9926 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9927 1;
9928 #else
9929 fail;
9930 #endif
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 if ac_fn_c_try_compile "$LINENO"; then :
9936 emacs_cv_objc_exceptions=yes
9937 else
9938 emacs_cv_objc_exceptions=no
9939 fi
9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9941 fi
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9943 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9944 if test $emacs_cv_objc_exceptions = yes; then
9945
9946 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9947
9948 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9949 fi
9950 fi
9951
9952 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9953
9954 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9955 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9956 HAVE_NS=yes
9957 else
9958 as_fn_error "\`--with-ns' was specified, but the include
9959 files are missing or cannot be compiled." "$LINENO" 5
9960 fi
9961
9962
9963 NS_HAVE_NSINTEGER=yes
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9966 #include <Foundation/NSObjCRuntime.h>
9967 int
9968 main ()
9969 {
9970 NSInteger i;
9971 ;
9972 return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_compile "$LINENO"; then :
9976 ns_have_nsinteger=yes
9977 else
9978 ns_have_nsinteger=no
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 if test $ns_have_nsinteger = no; then
9982 NS_HAVE_NSINTEGER=no
9983 fi
9984 fi
9985
9986
9987 ns_frag=/dev/null
9988 NS_OBJ=
9989 NS_OBJC_OBJ=
9990 if test "${HAVE_NS}" = yes; then
9991 if test "$with_toolkit_scroll_bars" = "no"; then
9992 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9993 fi
9994
9995 window_system=nextstep
9996 with_xft=no
9997 # set up packaging dirs
9998 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9999 prefix=${ns_appresdir}
10000 exec_prefix=${ns_appbindir}
10001 libexecdir=${ns_appbindir}/libexec
10002 fi
10003 ns_frag=$srcdir/src/ns.mk
10004 NS_OBJ="fontset.o fringe.o image.o"
10005 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10006 fi
10007 CFLAGS="$tmp_CFLAGS"
10008 CPPFLAGS="$tmp_CPPFLAGS"
10009
10010
10011
10012
10013
10014 case "${window_system}" in
10015 x11 )
10016 HAVE_X_WINDOWS=yes
10017 HAVE_X11=yes
10018 case "${with_x_toolkit}" in
10019 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10020 motif ) USE_X_TOOLKIT=MOTIF ;;
10021 gtk ) with_gtk=yes
10022 USE_X_TOOLKIT=none ;;
10023 gtk3 ) with_gtk3=yes
10024 USE_X_TOOLKIT=none ;;
10025 no ) USE_X_TOOLKIT=none ;;
10026 * ) USE_X_TOOLKIT=maybe ;;
10027 esac
10028 ;;
10029 nextstep | none )
10030 HAVE_X_WINDOWS=no
10031 HAVE_X11=no
10032 USE_X_TOOLKIT=none
10033 ;;
10034 esac
10035
10036 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10037 # Extract the first word of "X", so it can be a program name with args.
10038 set dummy X; ac_word=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 $as_echo_n "checking for $ac_word... " >&6; }
10041 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 if test -n "$HAVE_XSERVER"; then
10045 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10046 else
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10049 do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10054 ac_cv_prog_HAVE_XSERVER="true"
10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10057 fi
10058 done
10059 done
10060 IFS=$as_save_IFS
10061
10062 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10063 fi
10064 fi
10065 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10066 if test -n "$HAVE_XSERVER"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10068 $as_echo "$HAVE_XSERVER" >&6; }
10069 else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10072 fi
10073
10074
10075 if test "$HAVE_XSERVER" = true ||
10076 test -n "$DISPLAY" ||
10077 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10078 as_fn_error "You seem to be running X, but no X development libraries
10079 were found. You should install the relevant development files for X
10080 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10081 sure you have development files for image handling, i.e.
10082 tiff, gif, jpeg, png and xpm.
10083 If you are sure you want Emacs compiled without X window support, pass
10084 --without-x
10085 to configure." "$LINENO" 5
10086 fi
10087 fi
10088
10089 ### If we're using X11, we should use the X menu package.
10090 HAVE_MENUS=no
10091 case ${HAVE_X11} in
10092 yes ) HAVE_MENUS=yes ;;
10093 esac
10094
10095 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10096 # Assume not, until told otherwise.
10097 GNU_MALLOC=yes
10098 doug_lea_malloc=yes
10099 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10100 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10101
10102 else
10103 doug_lea_malloc=no
10104 fi
10105
10106 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10107 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10108
10109 else
10110 doug_lea_malloc=no
10111 fi
10112
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10114 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10115 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 extern void (* __after_morecore_hook)();
10121 int
10122 main ()
10123 {
10124 __after_morecore_hook = 0
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_c_try_link "$LINENO"; then :
10130 emacs_cv_var___after_morecore_hook=yes
10131 else
10132 emacs_cv_var___after_morecore_hook=no
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10138 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10139 if test $emacs_cv_var___after_morecore_hook = no; then
10140 doug_lea_malloc=no
10141 fi
10142
10143
10144 system_malloc=no
10145 case "$opsys" in
10146 ## darwin ld insists on the use of malloc routines in the System framework.
10147 darwin|sol2-10) system_malloc=yes ;;
10148 esac
10149
10150 if test "${system_malloc}" = "yes"; then
10151
10152 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10153
10154 GNU_MALLOC=no
10155 GNU_MALLOC_reason="
10156 (The GNU allocators don't work with this system configuration.)"
10157 GMALLOC_OBJ=
10158 VMLIMIT_OBJ=
10159 else
10160 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10161 VMLIMIT_OBJ=vm-limit.o
10162 fi
10163
10164
10165
10166 if test "$doug_lea_malloc" = "yes" ; then
10167 if test "$GNU_MALLOC" = yes ; then
10168 GNU_MALLOC_reason="
10169 (Using Doug Lea's new malloc from the GNU C Library.)"
10170 fi
10171
10172 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10173
10174
10175 ## Use mmap directly for allocating larger buffers.
10176 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10177 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10178 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10179 case "$opsys" in
10180 gnu*) REL_ALLOC=no ;;
10181 esac
10182 fi
10183
10184 if test x"${REL_ALLOC}" = x; then
10185 REL_ALLOC=${GNU_MALLOC}
10186 fi
10187
10188 use_mmap_for_buffers=no
10189 case "$opsys" in
10190 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10191 esac
10192
10193
10194
10195
10196 for ac_header in $ac_header_list
10197 do :
10198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10199 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10200 "
10201 eval as_val=\$$as_ac_Header
10202 if test "x$as_val" = x""yes; then :
10203 cat >>confdefs.h <<_ACEOF
10204 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10205 _ACEOF
10206
10207 fi
10208
10209 done
10210
10211
10212
10213
10214
10215
10216
10217
10218 for ac_func in getpagesize
10219 do :
10220 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10221 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10222 cat >>confdefs.h <<_ACEOF
10223 #define HAVE_GETPAGESIZE 1
10224 _ACEOF
10225
10226 fi
10227 done
10228
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10230 $as_echo_n "checking for working mmap... " >&6; }
10231 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 if test "$cross_compiling" = yes; then :
10235 ac_cv_func_mmap_fixed_mapped=no
10236 else
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 $ac_includes_default
10240 /* malloc might have been renamed as rpl_malloc. */
10241 #undef malloc
10242
10243 /* Thanks to Mike Haertel and Jim Avera for this test.
10244 Here is a matrix of mmap possibilities:
10245 mmap private not fixed
10246 mmap private fixed at somewhere currently unmapped
10247 mmap private fixed at somewhere already mapped
10248 mmap shared not fixed
10249 mmap shared fixed at somewhere currently unmapped
10250 mmap shared fixed at somewhere already mapped
10251 For private mappings, we should verify that changes cannot be read()
10252 back from the file, nor mmap's back from the file at a different
10253 address. (There have been systems where private was not correctly
10254 implemented like the infamous i386 svr4.0, and systems where the
10255 VM page cache was not coherent with the file system buffer cache
10256 like early versions of FreeBSD and possibly contemporary NetBSD.)
10257 For shared mappings, we should conversely verify that changes get
10258 propagated back to all the places they're supposed to be.
10259
10260 Grep wants private fixed already mapped.
10261 The main things grep needs to know about mmap are:
10262 * does it exist and is it safe to write into the mmap'd area
10263 * how to use it (BSD variants) */
10264
10265 #include <fcntl.h>
10266 #include <sys/mman.h>
10267
10268 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10269 char *malloc ();
10270 #endif
10271
10272 /* This mess was copied from the GNU getpagesize.h. */
10273 #ifndef HAVE_GETPAGESIZE
10274 # ifdef _SC_PAGESIZE
10275 # define getpagesize() sysconf(_SC_PAGESIZE)
10276 # else /* no _SC_PAGESIZE */
10277 # ifdef HAVE_SYS_PARAM_H
10278 # include <sys/param.h>
10279 # ifdef EXEC_PAGESIZE
10280 # define getpagesize() EXEC_PAGESIZE
10281 # else /* no EXEC_PAGESIZE */
10282 # ifdef NBPG
10283 # define getpagesize() NBPG * CLSIZE
10284 # ifndef CLSIZE
10285 # define CLSIZE 1
10286 # endif /* no CLSIZE */
10287 # else /* no NBPG */
10288 # ifdef NBPC
10289 # define getpagesize() NBPC
10290 # else /* no NBPC */
10291 # ifdef PAGESIZE
10292 # define getpagesize() PAGESIZE
10293 # endif /* PAGESIZE */
10294 # endif /* no NBPC */
10295 # endif /* no NBPG */
10296 # endif /* no EXEC_PAGESIZE */
10297 # else /* no HAVE_SYS_PARAM_H */
10298 # define getpagesize() 8192 /* punt totally */
10299 # endif /* no HAVE_SYS_PARAM_H */
10300 # endif /* no _SC_PAGESIZE */
10301
10302 #endif /* no HAVE_GETPAGESIZE */
10303
10304 int
10305 main ()
10306 {
10307 char *data, *data2, *data3;
10308 const char *cdata2;
10309 int i, pagesize;
10310 int fd, fd2;
10311
10312 pagesize = getpagesize ();
10313
10314 /* First, make a file with some known garbage in it. */
10315 data = (char *) malloc (pagesize);
10316 if (!data)
10317 return 1;
10318 for (i = 0; i < pagesize; ++i)
10319 *(data + i) = rand ();
10320 umask (0);
10321 fd = creat ("conftest.mmap", 0600);
10322 if (fd < 0)
10323 return 2;
10324 if (write (fd, data, pagesize) != pagesize)
10325 return 3;
10326 close (fd);
10327
10328 /* Next, check that the tail of a page is zero-filled. File must have
10329 non-zero length, otherwise we risk SIGBUS for entire page. */
10330 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10331 if (fd2 < 0)
10332 return 4;
10333 cdata2 = "";
10334 if (write (fd2, cdata2, 1) != 1)
10335 return 5;
10336 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10337 if (data2 == MAP_FAILED)
10338 return 6;
10339 for (i = 0; i < pagesize; ++i)
10340 if (*(data2 + i))
10341 return 7;
10342 close (fd2);
10343 if (munmap (data2, pagesize))
10344 return 8;
10345
10346 /* Next, try to mmap the file at a fixed address which already has
10347 something else allocated at it. If we can, also make sure that
10348 we see the same garbage. */
10349 fd = open ("conftest.mmap", O_RDWR);
10350 if (fd < 0)
10351 return 9;
10352 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10353 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10354 return 10;
10355 for (i = 0; i < pagesize; ++i)
10356 if (*(data + i) != *(data2 + i))
10357 return 11;
10358
10359 /* Finally, make sure that changes to the mapped area do not
10360 percolate back to the file as seen by read(). (This is a bug on
10361 some variants of i386 svr4.0.) */
10362 for (i = 0; i < pagesize; ++i)
10363 *(data2 + i) = *(data2 + i) + 1;
10364 data3 = (char *) malloc (pagesize);
10365 if (!data3)
10366 return 12;
10367 if (read (fd, data3, pagesize) != pagesize)
10368 return 13;
10369 for (i = 0; i < pagesize; ++i)
10370 if (*(data + i) != *(data3 + i))
10371 return 14;
10372 close (fd);
10373 return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_c_try_run "$LINENO"; then :
10377 ac_cv_func_mmap_fixed_mapped=yes
10378 else
10379 ac_cv_func_mmap_fixed_mapped=no
10380 fi
10381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10382 conftest.$ac_objext conftest.beam conftest.$ac_ext
10383 fi
10384
10385 fi
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10387 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10388 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10389
10390 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10391
10392 fi
10393 rm -f conftest.mmap conftest.txt
10394
10395 if test $use_mmap_for_buffers = yes; then
10396
10397 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10398
10399 REL_ALLOC=no
10400 fi
10401
10402 LIBS="$LIBS_SYSTEM $LIBS"
10403
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10405 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10406 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 ac_check_lib_save_LIBS=$LIBS
10410 LIBS="-ldnet $LIBS"
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413
10414 /* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10417 #ifdef __cplusplus
10418 extern "C"
10419 #endif
10420 char dnet_ntoa ();
10421 int
10422 main ()
10423 {
10424 return dnet_ntoa ();
10425 ;
10426 return 0;
10427 }
10428 _ACEOF
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 ac_cv_lib_dnet_dnet_ntoa=yes
10431 else
10432 ac_cv_lib_dnet_dnet_ntoa=no
10433 fi
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436 LIBS=$ac_check_lib_save_LIBS
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10439 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10440 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10441 cat >>confdefs.h <<_ACEOF
10442 #define HAVE_LIBDNET 1
10443 _ACEOF
10444
10445 LIBS="-ldnet $LIBS"
10446
10447 fi
10448
10449
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10451 $as_echo_n "checking for main in -lXbsd... " >&6; }
10452 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 ac_check_lib_save_LIBS=$LIBS
10456 LIBS="-lXbsd $LIBS"
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10459
10460
10461 int
10462 main ()
10463 {
10464 return main ();
10465 ;
10466 return 0;
10467 }
10468 _ACEOF
10469 if ac_fn_c_try_link "$LINENO"; then :
10470 ac_cv_lib_Xbsd_main=yes
10471 else
10472 ac_cv_lib_Xbsd_main=no
10473 fi
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 LIBS=$ac_check_lib_save_LIBS
10477 fi
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10479 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10480 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10481 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10482 fi
10483
10484
10485 LIB_PTHREAD=
10486 for ac_header in pthread.h
10487 do :
10488 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10489 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10490 cat >>confdefs.h <<_ACEOF
10491 #define HAVE_PTHREAD_H 1
10492 _ACEOF
10493
10494 fi
10495
10496 done
10497
10498 if test "$ac_cv_header_pthread_h"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10500 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10501 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-lpthread $LIBS"
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508
10509 /* Override any GCC internal prototype to avoid an error.
10510 Use char because int might match the return type of a GCC
10511 builtin and then its argument prototype would still apply. */
10512 #ifdef __cplusplus
10513 extern "C"
10514 #endif
10515 char pthread_self ();
10516 int
10517 main ()
10518 {
10519 return pthread_self ();
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 if ac_fn_c_try_link "$LINENO"; then :
10525 ac_cv_lib_pthread_pthread_self=yes
10526 else
10527 ac_cv_lib_pthread_pthread_self=no
10528 fi
10529 rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 LIBS=$ac_check_lib_save_LIBS
10532 fi
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10534 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10535 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10536 HAVE_PTHREAD=yes
10537 fi
10538
10539 fi
10540 if test "$HAVE_PTHREAD" = yes; then
10541 case "${canonical}" in
10542 *-hpux*) ;;
10543 *) LIB_PTHREAD="-lpthread"
10544 LIBS="$LIB_PTHREAD $LIBS" ;;
10545 esac
10546
10547 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10548
10549 fi
10550
10551
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10553 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10554 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 ac_check_lib_save_LIBS=$LIBS
10558 LIBS="-lpthreads $LIBS"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 char cma_open ();
10569 int
10570 main ()
10571 {
10572 return cma_open ();
10573 ;
10574 return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 ac_cv_lib_pthreads_cma_open=yes
10579 else
10580 ac_cv_lib_pthreads_cma_open=no
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LIBS=$ac_check_lib_save_LIBS
10585 fi
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10587 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10588 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10589 cat >>confdefs.h <<_ACEOF
10590 #define HAVE_LIBPTHREADS 1
10591 _ACEOF
10592
10593 LIBS="-lpthreads $LIBS"
10594
10595 fi
10596
10597
10598 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10599 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10600 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10601 ## added to LIBS in configure would never contain the pthreads part,
10602 ## but the value used in Makefiles might. FIXME?
10603 ##
10604 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10605 ## be harmless on older versions of X where it happens to exist.
10606 test "$opsys" = "aix4-2" && \
10607 test $ac_cv_lib_pthreads_cma_open = yes && \
10608 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10609
10610
10611 case ${host_os} in
10612 aix*)
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10614 $as_echo_n "checking for -bbigtoc option... " >&6; }
10615 if test "${gdb_cv_bigtoc+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618
10619 case $GCC in
10620 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10621 *) gdb_cv_bigtoc=-bbigtoc ;;
10622 esac
10623
10624 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10627
10628 int
10629 main ()
10630 {
10631 int i;
10632 ;
10633 return 0;
10634 }
10635 _ACEOF
10636 if ac_fn_c_try_link "$LINENO"; then :
10637
10638 else
10639 gdb_cv_bigtoc=
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext \
10642 conftest$ac_exeext conftest.$ac_ext
10643
10644 fi
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10646 $as_echo "$gdb_cv_bigtoc" >&6; }
10647 ;;
10648 esac
10649
10650 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10651 # used for the tests that follow. We set them back to REAL_CFLAGS and
10652 # REAL_CPPFLAGS later on.
10653
10654 REAL_CFLAGS="$CFLAGS"
10655 REAL_CPPFLAGS="$CPPFLAGS"
10656
10657 if test "${HAVE_X11}" = "yes"; then
10658 DEFS="$C_SWITCH_X_SITE $DEFS"
10659 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10660 LIBS="-lX11 $LIBS"
10661 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10662 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10663
10664 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10665 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10666 # but it's more convenient here to set LD_RUN_PATH
10667 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10668 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10669 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10670 export LD_RUN_PATH
10671 fi
10672
10673 if test "${opsys}" = "gnu-linux"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10675 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678
10679 int
10680 main ()
10681 {
10682 XOpenDisplay ("foo");
10683 ;
10684 return 0;
10685 }
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 xgnu_linux_first_failure=no
10689 else
10690 xgnu_linux_first_failure=yes
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 if test "${xgnu_linux_first_failure}" = "yes"; then
10695 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10696 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10697 OLD_CPPFLAGS="$CPPFLAGS"
10698 OLD_LIBS="$LIBS"
10699 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10700 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10701 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10702 LIBS="$LIBS -b i486-linuxaout"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705
10706 int
10707 main ()
10708 {
10709 XOpenDisplay ("foo");
10710 ;
10711 return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 xgnu_linux_second_failure=no
10716 else
10717 xgnu_linux_second_failure=yes
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 if test "${xgnu_linux_second_failure}" = "yes"; then
10722 # If we get the same failure with -b, there is no use adding -b.
10723 # So take it out. This plays safe.
10724 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10725 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10726 CPPFLAGS="$OLD_CPPFLAGS"
10727 LIBS="$OLD_LIBS"
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10730 else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10732 $as_echo "yes" >&6; }
10733 fi
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10737 fi
10738 fi
10739
10740 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10741 # header files included from there.
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10743 $as_echo_n "checking for Xkb... " >&6; }
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746 #include <X11/Xlib.h>
10747 #include <X11/XKBlib.h>
10748 int
10749 main ()
10750 {
10751 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10752 ;
10753 return 0;
10754 }
10755 _ACEOF
10756 if ac_fn_c_try_link "$LINENO"; then :
10757 emacs_xkb=yes
10758 else
10759 emacs_xkb=no
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10764 $as_echo "$emacs_xkb" >&6; }
10765 if test $emacs_xkb = yes; then
10766
10767 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10768
10769 fi
10770
10771 for ac_func in XrmSetDatabase XScreenResourceString \
10772 XScreenNumberOfScreen XSetWMProtocols
10773 do :
10774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10776 eval as_val=\$$as_ac_var
10777 if test "x$as_val" = x""yes; then :
10778 cat >>confdefs.h <<_ACEOF
10779 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10780 _ACEOF
10781
10782 fi
10783 done
10784
10785 fi
10786
10787 if test "${window_system}" = "x11"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10789 $as_echo_n "checking X11 version 6... " >&6; }
10790 if test "${emacs_cv_x11_version_6+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
10792 else
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #include <X11/Xlib.h>
10796 int
10797 main ()
10798 {
10799 #if XlibSpecificationRelease < 6
10800 fail;
10801 #endif
10802
10803 ;
10804 return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 emacs_cv_x11_version_6=yes
10809 else
10810 emacs_cv_x11_version_6=no
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 fi
10815
10816 if test $emacs_cv_x11_version_6 = yes; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10818 $as_echo "6 or newer" >&6; }
10819
10820 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10821
10822
10823 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10824
10825 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10826 ## XIM support.
10827 case "$opsys" in
10828 sol2-*) : ;;
10829 *)
10830 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10831
10832 ;;
10833 esac
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10836 $as_echo "before 6" >&6; }
10837 fi
10838 fi
10839
10840
10841 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10842 HAVE_RSVG=no
10843 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10844 if test "${with_rsvg}" != "no"; then
10845 RSVG_REQUIRED=2.11.0
10846 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10847
10848
10849 succeeded=no
10850
10851 # Extract the first word of "pkg-config", so it can be a program name with args.
10852 set dummy pkg-config; ac_word=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 case $PKG_CONFIG in
10859 [\\/]* | ?:[\\/]*)
10860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10861 ;;
10862 *)
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10865 do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874 done
10875 done
10876 IFS=$as_save_IFS
10877
10878 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10879 ;;
10880 esac
10881 fi
10882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10883 if test -n "$PKG_CONFIG"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10885 $as_echo "$PKG_CONFIG" >&6; }
10886 else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10889 fi
10890
10891
10892
10893 if test "$PKG_CONFIG" = "no" ; then
10894 :
10895 else
10896 PKG_CONFIG_MIN_VERSION=0.9.0
10897 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10899 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10900
10901 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10903 $as_echo "yes" >&6; }
10904 succeeded=yes
10905
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10907 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10908 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10910 $as_echo "$RSVG_CFLAGS" >&6; }
10911
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10913 $as_echo_n "checking RSVG_LIBS... " >&6; }
10914 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10916 $as_echo "$RSVG_LIBS" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10920 RSVG_CFLAGS=""
10921 RSVG_LIBS=""
10922 ## If we have a custom action on failure, don't print errors, but
10923 ## do set a variable so people can do so.
10924 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10925
10926 fi
10927
10928
10929
10930 else
10931 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10932 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10933 fi
10934 fi
10935
10936 if test $succeeded = yes; then
10937 HAVE_RSVG=yes
10938 else
10939 :
10940 fi
10941
10942
10943
10944
10945 if test $HAVE_RSVG = yes; then
10946
10947 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10948
10949 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10950 LIBS="$RSVG_LIBS $LIBS"
10951 fi
10952 fi
10953 fi
10954
10955 HAVE_IMAGEMAGICK=no
10956 if test "${HAVE_X11}" = "yes"; then
10957 if test "${with_imagemagick}" != "no"; then
10958 ## 6.2.8 is the earliest version known to work, but earlier versions
10959 ## might work - let us know if you find one.
10960 ## 6.0.7 does not work. See bug#7955.
10961 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10962
10963 succeeded=no
10964
10965 # Extract the first word of "pkg-config", so it can be a program name with args.
10966 set dummy pkg-config; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 case $PKG_CONFIG in
10973 [\\/]* | ?:[\\/]*)
10974 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10975 ;;
10976 *)
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10979 do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988 done
10989 done
10990 IFS=$as_save_IFS
10991
10992 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10993 ;;
10994 esac
10995 fi
10996 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10997 if test -n "$PKG_CONFIG"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10999 $as_echo "$PKG_CONFIG" >&6; }
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11003 fi
11004
11005
11006
11007 if test "$PKG_CONFIG" = "no" ; then
11008 :
11009 else
11010 PKG_CONFIG_MIN_VERSION=0.9.0
11011 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11013 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11014
11015 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017 $as_echo "yes" >&6; }
11018 succeeded=yes
11019
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
11021 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11022 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
11024 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11025
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
11027 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11028 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
11030 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11034 IMAGEMAGICK_CFLAGS=""
11035 IMAGEMAGICK_LIBS=""
11036 ## If we have a custom action on failure, don't print errors, but
11037 ## do set a variable so people can do so.
11038 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11039
11040 fi
11041
11042
11043
11044 else
11045 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11046 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11047 fi
11048 fi
11049
11050 if test $succeeded = yes; then
11051 HAVE_IMAGEMAGICK=yes
11052 else
11053 :
11054 fi
11055
11056
11057
11058
11059 if test $HAVE_IMAGEMAGICK = yes; then
11060
11061 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11062
11063 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11064 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11065 for ac_func in MagickExportImagePixels
11066 do :
11067 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11068 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11069 cat >>confdefs.h <<_ACEOF
11070 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11071 _ACEOF
11072
11073 fi
11074 done
11075
11076 fi
11077 fi
11078 fi
11079
11080
11081 HAVE_GTK=no
11082 GTK_OBJ=
11083 if test "${with_gtk3}" = "yes"; then
11084 GLIB_REQUIRED=2.28
11085 GTK_REQUIRED=3.0
11086 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11087
11088
11089 succeeded=no
11090
11091 # Extract the first word of "pkg-config", so it can be a program name with args.
11092 set dummy pkg-config; ac_word=$2
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094 $as_echo_n "checking for $ac_word... " >&6; }
11095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 case $PKG_CONFIG in
11099 [\\/]* | ?:[\\/]*)
11100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11101 ;;
11102 *)
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11105 do
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 break 2
11113 fi
11114 done
11115 done
11116 IFS=$as_save_IFS
11117
11118 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11119 ;;
11120 esac
11121 fi
11122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11123 if test -n "$PKG_CONFIG"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11125 $as_echo "$PKG_CONFIG" >&6; }
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11129 fi
11130
11131
11132
11133 if test "$PKG_CONFIG" = "no" ; then
11134 pkg_check_gtk=no
11135 else
11136 PKG_CONFIG_MIN_VERSION=0.9.0
11137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11139 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11140
11141 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143 $as_echo "yes" >&6; }
11144 succeeded=yes
11145
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11147 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11148 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11150 $as_echo "$GTK_CFLAGS" >&6; }
11151
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11153 $as_echo_n "checking GTK_LIBS... " >&6; }
11154 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11156 $as_echo "$GTK_LIBS" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11160 GTK_CFLAGS=""
11161 GTK_LIBS=""
11162 ## If we have a custom action on failure, don't print errors, but
11163 ## do set a variable so people can do so.
11164 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11165
11166 fi
11167
11168
11169
11170 else
11171 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11172 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11173 fi
11174 fi
11175
11176 if test $succeeded = yes; then
11177 pkg_check_gtk=yes
11178 else
11179 pkg_check_gtk=no
11180 fi
11181
11182 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11183 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11184 fi
11185
11186 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11187
11188 GTK_OBJ=emacsgtkfixed.o
11189 fi
11190
11191 if test "$pkg_check_gtk" != "yes"; then
11192 HAVE_GTK=no
11193 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11194 GLIB_REQUIRED=2.10
11195 GTK_REQUIRED=2.10
11196 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11197
11198
11199 succeeded=no
11200
11201 # Extract the first word of "pkg-config", so it can be a program name with args.
11202 set dummy pkg-config; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 case $PKG_CONFIG in
11209 [\\/]* | ?:[\\/]*)
11210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11211 ;;
11212 *)
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11215 do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224 done
11225 done
11226 IFS=$as_save_IFS
11227
11228 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11229 ;;
11230 esac
11231 fi
11232 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11233 if test -n "$PKG_CONFIG"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11235 $as_echo "$PKG_CONFIG" >&6; }
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11239 fi
11240
11241
11242
11243 if test "$PKG_CONFIG" = "no" ; then
11244 pkg_check_gtk=no
11245 else
11246 PKG_CONFIG_MIN_VERSION=0.9.0
11247 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11249 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11250
11251 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11253 $as_echo "yes" >&6; }
11254 succeeded=yes
11255
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11257 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11258 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11260 $as_echo "$GTK_CFLAGS" >&6; }
11261
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11263 $as_echo_n "checking GTK_LIBS... " >&6; }
11264 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11266 $as_echo "$GTK_LIBS" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 GTK_CFLAGS=""
11271 GTK_LIBS=""
11272 ## If we have a custom action on failure, don't print errors, but
11273 ## do set a variable so people can do so.
11274 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11275
11276 fi
11277
11278
11279
11280 else
11281 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11282 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11283 fi
11284 fi
11285
11286 if test $succeeded = yes; then
11287 pkg_check_gtk=yes
11288 else
11289 pkg_check_gtk=no
11290 fi
11291
11292 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11293 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11294 fi
11295 fi
11296 fi
11297
11298 if test x"$pkg_check_gtk" = xyes; then
11299
11300
11301
11302 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11303 CFLAGS="$CFLAGS $GTK_CFLAGS"
11304 LIBS="$GTK_LIBS $LIBS"
11305 GTK_COMPILES=no
11306 for ac_func in gtk_main
11307 do :
11308 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11309 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11310 cat >>confdefs.h <<_ACEOF
11311 #define HAVE_GTK_MAIN 1
11312 _ACEOF
11313 GTK_COMPILES=yes
11314 fi
11315 done
11316
11317 if test "${GTK_COMPILES}" != "yes"; then
11318 if test "$USE_X_TOOLKIT" != "maybe"; then
11319 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11320 fi
11321 else
11322 HAVE_GTK=yes
11323
11324 $as_echo "#define USE_GTK 1" >>confdefs.h
11325
11326 GTK_OBJ="gtkutil.o $GTK_OBJ"
11327 USE_X_TOOLKIT=none
11328 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11329 :
11330 else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11332 closing open displays. This is no problem if you just use
11333 one display, but if you use more than one and close one of them
11334 Emacs may crash." >&5
11335 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11336 closing open displays. This is no problem if you just use
11337 one display, but if you use more than one and close one of them
11338 Emacs may crash." >&2;}
11339 sleep 3
11340 fi
11341 fi
11342
11343 fi
11344
11345
11346
11347 if test "${HAVE_GTK}" = "yes"; then
11348
11349 if test "$with_toolkit_scroll_bars" != no; then
11350 with_toolkit_scroll_bars=yes
11351 fi
11352
11353 HAVE_GTK_FILE_SELECTION=no
11354 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11355 #include <gtk/gtk.h>
11356 "
11357 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11358 HAVE_GTK_FILE_SELECTION=yes
11359 else
11360 HAVE_GTK_FILE_SELECTION=no
11361 fi
11362
11363 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11364 for ac_func in gtk_file_selection_new
11365 do :
11366 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11367 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11368 cat >>confdefs.h <<_ACEOF
11369 #define HAVE_GTK_FILE_SELECTION_NEW 1
11370 _ACEOF
11371
11372 fi
11373 done
11374
11375 fi
11376
11377
11378 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11379 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11380 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11381 gtk_orientable_set_orientation \
11382 gtk_window_set_has_resize_grip
11383 do :
11384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11386 eval as_val=\$$as_ac_var
11387 if test "x$as_val" = x""yes; then :
11388 cat >>confdefs.h <<_ACEOF
11389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11390 _ACEOF
11391
11392 fi
11393 done
11394
11395 fi
11396
11397 HAVE_DBUS=no
11398 DBUS_OBJ=
11399 if test "${with_dbus}" = "yes"; then
11400
11401 succeeded=no
11402
11403 # Extract the first word of "pkg-config", so it can be a program name with args.
11404 set dummy pkg-config; ac_word=$2
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406 $as_echo_n "checking for $ac_word... " >&6; }
11407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11408 $as_echo_n "(cached) " >&6
11409 else
11410 case $PKG_CONFIG in
11411 [\\/]* | ?:[\\/]*)
11412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11413 ;;
11414 *)
11415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11417 do
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11425 fi
11426 done
11427 done
11428 IFS=$as_save_IFS
11429
11430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11431 ;;
11432 esac
11433 fi
11434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11435 if test -n "$PKG_CONFIG"; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11437 $as_echo "$PKG_CONFIG" >&6; }
11438 else
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 $as_echo "no" >&6; }
11441 fi
11442
11443
11444
11445 if test "$PKG_CONFIG" = "no" ; then
11446 HAVE_DBUS=no
11447 else
11448 PKG_CONFIG_MIN_VERSION=0.9.0
11449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11451 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11452
11453 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11455 $as_echo "yes" >&6; }
11456 succeeded=yes
11457
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11459 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11460 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11462 $as_echo "$DBUS_CFLAGS" >&6; }
11463
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11465 $as_echo_n "checking DBUS_LIBS... " >&6; }
11466 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11468 $as_echo "$DBUS_LIBS" >&6; }
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11472 DBUS_CFLAGS=""
11473 DBUS_LIBS=""
11474 ## If we have a custom action on failure, don't print errors, but
11475 ## do set a variable so people can do so.
11476 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11477
11478 fi
11479
11480
11481
11482 else
11483 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11484 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11485 fi
11486 fi
11487
11488 if test $succeeded = yes; then
11489 HAVE_DBUS=yes
11490 else
11491 HAVE_DBUS=no
11492 fi
11493
11494 if test "$HAVE_DBUS" = yes; then
11495 LIBS="$LIBS $DBUS_LIBS"
11496
11497 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11498
11499 for ac_func in dbus_watch_get_unix_fd
11500 do :
11501 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11502 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11503 cat >>confdefs.h <<_ACEOF
11504 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11505 _ACEOF
11506
11507 fi
11508 done
11509
11510 DBUS_OBJ=dbusbind.o
11511 fi
11512 fi
11513
11514
11515 <<<<<<< TREE
11516 =======
11517 HAVE_GSETTINGS=no
11518 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11519
11520 succeeded=no
11521
11522 # Extract the first word of "pkg-config", so it can be a program name with args.
11523 set dummy pkg-config; ac_word=$2
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525 $as_echo_n "checking for $ac_word... " >&6; }
11526 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 case $PKG_CONFIG in
11530 [\\/]* | ?:[\\/]*)
11531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11532 ;;
11533 *)
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH
11536 do
11537 IFS=$as_save_IFS
11538 test -z "$as_dir" && as_dir=.
11539 for ac_exec_ext in '' $ac_executable_extensions; do
11540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11541 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543 break 2
11544 fi
11545 done
11546 done
11547 IFS=$as_save_IFS
11548
11549 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11550 ;;
11551 esac
11552 fi
11553 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11554 if test -n "$PKG_CONFIG"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11556 $as_echo "$PKG_CONFIG" >&6; }
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11560 fi
11561
11562
11563
11564 if test "$PKG_CONFIG" = "no" ; then
11565 HAVE_GSETTINGS=no
11566 else
11567 PKG_CONFIG_MIN_VERSION=0.9.0
11568 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11570 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11571
11572 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11574 $as_echo "yes" >&6; }
11575 succeeded=yes
11576
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11578 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11579 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11581 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11582
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11584 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11585 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11587 $as_echo "$GSETTINGS_LIBS" >&6; }
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11591 GSETTINGS_CFLAGS=""
11592 GSETTINGS_LIBS=""
11593 ## If we have a custom action on failure, don't print errors, but
11594 ## do set a variable so people can do so.
11595 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11596
11597 fi
11598
11599
11600
11601 else
11602 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11603 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11604 fi
11605 fi
11606
11607 if test $succeeded = yes; then
11608 HAVE_GSETTINGS=yes
11609 else
11610 HAVE_GSETTINGS=no
11611 fi
11612
11613 if test "$HAVE_GSETTINGS" = "yes"; then
11614
11615 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11616
11617 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11618 SETTINGS_LIBS="$GSETTINGS_LIBS"
11619 fi
11620 fi
11621
11622 >>>>>>> MERGE-SOURCE
11623 HAVE_GCONF=no
11624 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11625
11626 succeeded=no
11627
11628 # Extract the first word of "pkg-config", so it can be a program name with args.
11629 set dummy pkg-config; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 case $PKG_CONFIG in
11636 [\\/]* | ?:[\\/]*)
11637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11638 ;;
11639 *)
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11642 do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11647 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11650 fi
11651 done
11652 done
11653 IFS=$as_save_IFS
11654
11655 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11656 ;;
11657 esac
11658 fi
11659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11660 if test -n "$PKG_CONFIG"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11662 $as_echo "$PKG_CONFIG" >&6; }
11663 else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11666 fi
11667
11668
11669
11670 if test "$PKG_CONFIG" = "no" ; then
11671 HAVE_GCONF=no
11672 else
11673 PKG_CONFIG_MIN_VERSION=0.9.0
11674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11676 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11677
11678 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11680 $as_echo "yes" >&6; }
11681 succeeded=yes
11682
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11684 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11685 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11687 $as_echo "$GCONF_CFLAGS" >&6; }
11688
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11690 $as_echo_n "checking GCONF_LIBS... " >&6; }
11691 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11693 $as_echo "$GCONF_LIBS" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11697 GCONF_CFLAGS=""
11698 GCONF_LIBS=""
11699 ## If we have a custom action on failure, don't print errors, but
11700 ## do set a variable so people can do so.
11701 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11702
11703 fi
11704
11705
11706
11707 else
11708 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11709 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11710 fi
11711 fi
11712
11713 if test $succeeded = yes; then
11714 HAVE_GCONF=yes
11715 else
11716 HAVE_GCONF=no
11717 fi
11718
11719 if test "$HAVE_GCONF" = yes; then
11720
11721 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11722
11723 for ac_func in g_type_init
11724 do :
11725 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11726 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11727 cat >>confdefs.h <<_ACEOF
11728 #define HAVE_G_TYPE_INIT 1
11729 _ACEOF
11730
11731 fi
11732 done
11733
11734 fi
11735 fi
11736
11737 HAVE_LIBSELINUX=no
11738 LIBSELINUX_LIBS=
11739 if test "${with_selinux}" = "yes"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11741 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11742 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 ac_check_lib_save_LIBS=$LIBS
11746 LIBS="-lselinux $LIBS"
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11753 #ifdef __cplusplus
11754 extern "C"
11755 #endif
11756 char lgetfilecon ();
11757 int
11758 main ()
11759 {
11760 return lgetfilecon ();
11761 ;
11762 return 0;
11763 }
11764 _ACEOF
11765 if ac_fn_c_try_link "$LINENO"; then :
11766 ac_cv_lib_selinux_lgetfilecon=yes
11767 else
11768 ac_cv_lib_selinux_lgetfilecon=no
11769 fi
11770 rm -f core conftest.err conftest.$ac_objext \
11771 conftest$ac_exeext conftest.$ac_ext
11772 LIBS=$ac_check_lib_save_LIBS
11773 fi
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11775 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11776 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11777 HAVE_LIBSELINUX=yes
11778 else
11779 HAVE_LIBSELINUX=no
11780 fi
11781
11782 if test "$HAVE_LIBSELINUX" = yes; then
11783
11784 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11785
11786 LIBSELINUX_LIBS=-lselinux
11787 fi
11788 fi
11789
11790
11791 HAVE_GNUTLS=no
11792 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11793 if test "${with_gnutls}" = "yes" ; then
11794
11795 succeeded=no
11796
11797 # Extract the first word of "pkg-config", so it can be a program name with args.
11798 set dummy pkg-config; ac_word=$2
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800 $as_echo_n "checking for $ac_word... " >&6; }
11801 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11802 $as_echo_n "(cached) " >&6
11803 else
11804 case $PKG_CONFIG in
11805 [\\/]* | ?:[\\/]*)
11806 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11807 ;;
11808 *)
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11811 do
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
11815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11816 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 break 2
11819 fi
11820 done
11821 done
11822 IFS=$as_save_IFS
11823
11824 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11825 ;;
11826 esac
11827 fi
11828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11829 if test -n "$PKG_CONFIG"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11831 $as_echo "$PKG_CONFIG" >&6; }
11832 else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11835 fi
11836
11837
11838
11839 if test "$PKG_CONFIG" = "no" ; then
11840 HAVE_GNUTLS=no
11841 else
11842 PKG_CONFIG_MIN_VERSION=0.9.0
11843 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11845 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11846
11847 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11849 $as_echo "yes" >&6; }
11850 succeeded=yes
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11853 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11854 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11856 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11857
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11859 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11860 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11862 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11866 LIBGNUTLS_CFLAGS=""
11867 LIBGNUTLS_LIBS=""
11868 ## If we have a custom action on failure, don't print errors, but
11869 ## do set a variable so people can do so.
11870 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11871
11872 fi
11873
11874
11875
11876 else
11877 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11878 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11879 fi
11880 fi
11881
11882 if test $succeeded = yes; then
11883 HAVE_GNUTLS=yes
11884 else
11885 HAVE_GNUTLS=no
11886 fi
11887
11888 if test "${HAVE_GNUTLS}" = "yes"; then
11889
11890 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11891
11892 fi
11893
11894 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11895 LIBS="$LIBGNUTLS_LIBS $LIBS"
11896 for ac_func in gnutls_certificate_set_verify_function
11897 do :
11898 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11899 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11902 _ACEOF
11903 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11904 fi
11905 done
11906
11907
11908 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11909
11910 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11911
11912 fi
11913 fi
11914
11915
11916
11917
11918 HAVE_XAW3D=no
11919 LUCID_LIBW=
11920 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11921 if test "$with_xaw3d" != no; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11923 $as_echo_n "checking for xaw3d... " >&6; }
11924 if test "${emacs_cv_xaw3d+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929
11930 #include <X11/Intrinsic.h>
11931 #include <X11/Xaw3d/Simple.h>
11932 int
11933 main ()
11934 {
11935
11936 ;
11937 return 0;
11938 }
11939 _ACEOF
11940 if ac_fn_c_try_link "$LINENO"; then :
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11942 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11943 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 ac_check_lib_save_LIBS=$LIBS
11947 LIBS="-lXaw3d $LIBS"
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11950
11951 /* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
11957 char XawScrollbarSetThumb ();
11958 int
11959 main ()
11960 {
11961 return XawScrollbarSetThumb ();
11962 ;
11963 return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"; then :
11967 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11968 else
11969 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11976 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11977 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11978 emacs_cv_xaw3d=yes
11979 else
11980 emacs_cv_xaw3d=no
11981 fi
11982
11983 else
11984 emacs_cv_xaw3d=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 fi
11989
11990 else
11991 emacs_cv_xaw3d=no
11992 fi
11993 if test $emacs_cv_xaw3d = yes; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11995 $as_echo "yes; using Lucid toolkit" >&6; }
11996 USE_X_TOOLKIT=LUCID
11997 HAVE_XAW3D=yes
11998 LUCID_LIBW=-lXaw3d
11999
12000 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12001
12002 else
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12006 $as_echo_n "checking for libXaw... " >&6; }
12007 if test "${emacs_cv_xaw+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012
12013 #include <X11/Intrinsic.h>
12014 #include <X11/Xaw/Simple.h>
12015 int
12016 main ()
12017 {
12018
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 if ac_fn_c_try_link "$LINENO"; then :
12024 emacs_cv_xaw=yes
12025 else
12026 emacs_cv_xaw=no
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 fi
12031
12032 if test $emacs_cv_xaw = yes; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12034 $as_echo "yes; using Lucid toolkit" >&6; }
12035 USE_X_TOOLKIT=LUCID
12036 LUCID_LIBW=-lXaw
12037 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12038 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12039 else
12040 as_fn_error "No X toolkit could be found.
12041 If you are sure you want Emacs compiled without an X toolkit, pass
12042 --with-x-toolkit=no
12043 to configure. Otherwise, install the development libraries for the toolkit
12044 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12045 fi
12046 fi
12047 fi
12048
12049 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12050
12051 LIBXTR6=
12052 if test "${USE_X_TOOLKIT}" != "none"; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12054 $as_echo_n "checking X11 toolkit version... " >&6; }
12055 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12060 #include <X11/Intrinsic.h>
12061 int
12062 main ()
12063 {
12064 #if XtSpecificationRelease < 6
12065 fail;
12066 #endif
12067
12068 ;
12069 return 0;
12070 }
12071 _ACEOF
12072 if ac_fn_c_try_link "$LINENO"; then :
12073 emacs_cv_x11_toolkit_version_6=yes
12074 else
12075 emacs_cv_x11_toolkit_version_6=no
12076 fi
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12079 fi
12080
12081 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12082 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12084 $as_echo "6 or newer" >&6; }
12085
12086 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12087
12088 LIBXTR6="-lSM -lICE"
12089 case "$opsys" in
12090 ## Use libw.a along with X11R6 Xt.
12091 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12092 esac
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12095 $as_echo "before 6" >&6; }
12096 fi
12097
12098 OLDLIBS="$LIBS"
12099 if test x$HAVE_X11XTR6 = xyes; then
12100 LIBS="-lXt -lSM -lICE $LIBS"
12101 else
12102 LIBS="-lXt $LIBS"
12103 fi
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12105 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12106 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 ac_check_lib_save_LIBS=$LIBS
12110 LIBS="-lXmu $LIBS"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char XmuConvertStandardSelection ();
12121 int
12122 main ()
12123 {
12124 return XmuConvertStandardSelection ();
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"; then :
12130 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12131 else
12132 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12133 fi
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12139 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12140 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12141 cat >>confdefs.h <<_ACEOF
12142 #define HAVE_LIBXMU 1
12143 _ACEOF
12144
12145 LIBS="-lXmu $LIBS"
12146
12147 fi
12148
12149 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12150 fi
12151
12152
12153 LIBXMU=-lXmu
12154 case $opsys in
12155 ## These systems don't supply Xmu.
12156 hpux* | aix4-2 )
12157 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12158 ;;
12159 esac
12160
12161
12162 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12163 if test "${HAVE_X11}" = "yes"; then
12164 if test "${USE_X_TOOLKIT}" != "none"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12166 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12167 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 ac_check_lib_save_LIBS=$LIBS
12171 LIBS="-lXext $LIBS"
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174
12175 /* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178 #ifdef __cplusplus
12179 extern "C"
12180 #endif
12181 char XShapeQueryExtension ();
12182 int
12183 main ()
12184 {
12185 return XShapeQueryExtension ();
12186 ;
12187 return 0;
12188 }
12189 _ACEOF
12190 if ac_fn_c_try_link "$LINENO"; then :
12191 ac_cv_lib_Xext_XShapeQueryExtension=yes
12192 else
12193 ac_cv_lib_Xext_XShapeQueryExtension=no
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_check_lib_save_LIBS
12198 fi
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12200 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12201 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12202 cat >>confdefs.h <<_ACEOF
12203 #define HAVE_LIBXEXT 1
12204 _ACEOF
12205
12206 LIBS="-lXext $LIBS"
12207
12208 fi
12209
12210 fi
12211 fi
12212
12213 LIBXP=
12214 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12216 $as_echo_n "checking for Motif version 2.1... " >&6; }
12217 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12222 #include <Xm/Xm.h>
12223 int
12224 main ()
12225 {
12226 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12227 int x = 5;
12228 #else
12229 Motif version prior to 2.1.
12230 #endif
12231 ;
12232 return 0;
12233 }
12234 _ACEOF
12235 if ac_fn_c_try_compile "$LINENO"; then :
12236 emacs_cv_motif_version_2_1=yes
12237 else
12238 emacs_cv_motif_version_2_1=no
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12243 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12244 if test $emacs_cv_motif_version_2_1 = yes; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12246 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12247 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12248 $as_echo_n "(cached) " >&6
12249 else
12250 ac_check_lib_save_LIBS=$LIBS
12251 LIBS="-lXp $LIBS"
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12254
12255 /* Override any GCC internal prototype to avoid an error.
12256 Use char because int might match the return type of a GCC
12257 builtin and then its argument prototype would still apply. */
12258 #ifdef __cplusplus
12259 extern "C"
12260 #endif
12261 char XpCreateContext ();
12262 int
12263 main ()
12264 {
12265 return XpCreateContext ();
12266 ;
12267 return 0;
12268 }
12269 _ACEOF
12270 if ac_fn_c_try_link "$LINENO"; then :
12271 ac_cv_lib_Xp_XpCreateContext=yes
12272 else
12273 ac_cv_lib_Xp_XpCreateContext=no
12274 fi
12275 rm -f core conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12280 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12281 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12282 LIBXP=-lXp
12283 fi
12284
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12287 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12288 if test "${emacs_cv_lesstif+set}" = set; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 # We put this in CFLAGS temporarily to precede other -I options
12292 # that might be in CFLAGS temporarily.
12293 # We put this in CPPFLAGS where it precedes the other -I options.
12294 OLD_CPPFLAGS=$CPPFLAGS
12295 OLD_CFLAGS=$CFLAGS
12296 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12297 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12301 int
12302 main ()
12303 {
12304 int x = 5;
12305 ;
12306 return 0;
12307 }
12308 _ACEOF
12309 if ac_fn_c_try_compile "$LINENO"; then :
12310 emacs_cv_lesstif=yes
12311 else
12312 emacs_cv_lesstif=no
12313 fi
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315 fi
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12317 $as_echo "$emacs_cv_lesstif" >&6; }
12318 if test $emacs_cv_lesstif = yes; then
12319 # Make sure this -I option remains in CPPFLAGS after it is set
12320 # back to REAL_CPPFLAGS.
12321 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12322 # have those other -I options anyway. Ultimately, having this
12323 # directory ultimately in CPPFLAGS will be enough.
12324 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12325 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12326 else
12327 CFLAGS=$OLD_CFLAGS
12328 CPPFLAGS=$OLD_CPPFLAGS
12329 fi
12330 fi
12331 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12332 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12333
12334 else
12335 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12336 fi
12337
12338
12339 fi
12340
12341
12342 USE_TOOLKIT_SCROLL_BARS=no
12343 if test "${with_toolkit_scroll_bars}" != "no"; then
12344 if test "${USE_X_TOOLKIT}" != "none"; then
12345 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12346 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12347
12348 HAVE_XAW3D=no
12349 USE_TOOLKIT_SCROLL_BARS=yes
12350 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12351 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12352
12353 USE_TOOLKIT_SCROLL_BARS=yes
12354 fi
12355 elif test "${HAVE_GTK}" = "yes"; then
12356 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12357
12358 USE_TOOLKIT_SCROLL_BARS=yes
12359 elif test "${HAVE_NS}" = "yes"; then
12360 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12361
12362 USE_TOOLKIT_SCROLL_BARS=yes
12363 fi
12364 fi
12365
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368
12369 #include <X11/Xlib.h>
12370 #include <X11/Xresource.h>
12371 int
12372 main ()
12373 {
12374 XIMProc callback;
12375 ;
12376 return 0;
12377 }
12378 _ACEOF
12379 if ac_fn_c_try_compile "$LINENO"; then :
12380 HAVE_XIM=yes
12381
12382 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12383
12384 else
12385 HAVE_XIM=no
12386 fi
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388
12389
12390 if test "${with_xim}" != "no"; then
12391
12392 $as_echo "#define USE_XIM 1" >>confdefs.h
12393
12394 fi
12395
12396
12397 if test "${HAVE_XIM}" != "no"; then
12398 late_CFLAGS=$CFLAGS
12399 if test "$GCC" = yes; then
12400 CFLAGS="$CFLAGS --pedantic-errors"
12401 fi
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404
12405 #include <X11/Xlib.h>
12406 #include <X11/Xresource.h>
12407 int
12408 main ()
12409 {
12410 Display *display;
12411 XrmDatabase db;
12412 char *res_name;
12413 char *res_class;
12414 XIMProc callback;
12415 XPointer *client_data;
12416 #ifndef __GNUC__
12417 /* If we're not using GCC, it's probably not XFree86, and this is
12418 probably right, but we can't use something like --pedantic-errors. */
12419 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12420 char*, XIMProc, XPointer*);
12421 #endif
12422 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12423 client_data);
12424 ;
12425 return 0;
12426 }
12427 _ACEOF
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429 emacs_cv_arg6_star=yes
12430 fi
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432 if test "$emacs_cv_arg6_star" = yes; then
12433 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12434
12435 else
12436 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12437
12438 fi
12439 CFLAGS=$late_CFLAGS
12440 fi
12441
12442 ### Start of font-backend (under any platform) section.
12443 # (nothing here yet -- this is a placeholder)
12444 ### End of font-backend (under any platform) section.
12445
12446 ### Start of font-backend (under X11) section.
12447 if test "${HAVE_X11}" = "yes"; then
12448
12449 succeeded=no
12450
12451 # Extract the first word of "pkg-config", so it can be a program name with args.
12452 set dummy pkg-config; ac_word=$2
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454 $as_echo_n "checking for $ac_word... " >&6; }
12455 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12457 else
12458 case $PKG_CONFIG in
12459 [\\/]* | ?:[\\/]*)
12460 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12461 ;;
12462 *)
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12465 do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12473 fi
12474 done
12475 done
12476 IFS=$as_save_IFS
12477
12478 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12479 ;;
12480 esac
12481 fi
12482 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12483 if test -n "$PKG_CONFIG"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12485 $as_echo "$PKG_CONFIG" >&6; }
12486 else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12489 fi
12490
12491
12492
12493 if test "$PKG_CONFIG" = "no" ; then
12494 HAVE_FC=no
12495 else
12496 PKG_CONFIG_MIN_VERSION=0.9.0
12497 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12499 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12500
12501 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12503 $as_echo "yes" >&6; }
12504 succeeded=yes
12505
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12507 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12508 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12510 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12513 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12514 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12516 $as_echo "$FONTCONFIG_LIBS" >&6; }
12517 else
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12520 FONTCONFIG_CFLAGS=""
12521 FONTCONFIG_LIBS=""
12522 ## If we have a custom action on failure, don't print errors, but
12523 ## do set a variable so people can do so.
12524 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12525
12526 fi
12527
12528
12529
12530 else
12531 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12532 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12533 fi
12534 fi
12535
12536 if test $succeeded = yes; then
12537 HAVE_FC=yes
12538 else
12539 HAVE_FC=no
12540 fi
12541
12542
12543 ## Use -lXft if available, unless `--with-xft=no'.
12544 HAVE_XFT=maybe
12545 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12546 with_xft="no";
12547 fi
12548 if test "x${with_xft}" != "xno"; then
12549
12550
12551 succeeded=no
12552
12553 # Extract the first word of "pkg-config", so it can be a program name with args.
12554 set dummy pkg-config; ac_word=$2
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556 $as_echo_n "checking for $ac_word... " >&6; }
12557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12558 $as_echo_n "(cached) " >&6
12559 else
12560 case $PKG_CONFIG in
12561 [\\/]* | ?:[\\/]*)
12562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12563 ;;
12564 *)
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12567 do
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 break 2
12575 fi
12576 done
12577 done
12578 IFS=$as_save_IFS
12579
12580 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12581 ;;
12582 esac
12583 fi
12584 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12585 if test -n "$PKG_CONFIG"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12587 $as_echo "$PKG_CONFIG" >&6; }
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12591 fi
12592
12593
12594
12595 if test "$PKG_CONFIG" = "no" ; then
12596 HAVE_XFT=no
12597 else
12598 PKG_CONFIG_MIN_VERSION=0.9.0
12599 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12601 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12602
12603 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12605 $as_echo "yes" >&6; }
12606 succeeded=yes
12607
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12609 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12610 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12612 $as_echo "$XFT_CFLAGS" >&6; }
12613
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12615 $as_echo_n "checking XFT_LIBS... " >&6; }
12616 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12618 $as_echo "$XFT_LIBS" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622 XFT_CFLAGS=""
12623 XFT_LIBS=""
12624 ## If we have a custom action on failure, don't print errors, but
12625 ## do set a variable so people can do so.
12626 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12627
12628 fi
12629
12630
12631
12632 else
12633 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12634 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12635 fi
12636 fi
12637
12638 if test $succeeded = yes; then
12639 :
12640 else
12641 HAVE_XFT=no
12642 fi
12643
12644 ## Because xftfont.c uses XRenderQueryExtension, we also
12645 ## need to link to -lXrender.
12646 HAVE_XRENDER=no
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12648 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12649 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 ac_check_lib_save_LIBS=$LIBS
12653 LIBS="-lXrender $LIBS"
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12656
12657 /* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12660 #ifdef __cplusplus
12661 extern "C"
12662 #endif
12663 char XRenderQueryExtension ();
12664 int
12665 main ()
12666 {
12667 return XRenderQueryExtension ();
12668 ;
12669 return 0;
12670 }
12671 _ACEOF
12672 if ac_fn_c_try_link "$LINENO"; then :
12673 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12674 else
12675 ac_cv_lib_Xrender_XRenderQueryExtension=no
12676 fi
12677 rm -f core conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12679 LIBS=$ac_check_lib_save_LIBS
12680 fi
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12682 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12683 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12684 HAVE_XRENDER=yes
12685 fi
12686
12687 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12688 OLD_CPPFLAGS="$CPPFLAGS"
12689 OLD_CFLAGS="$CFLAGS"
12690 OLD_LIBS="$LIBS"
12691 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12692 CFLAGS="$CFLAGS $XFT_CFLAGS"
12693 XFT_LIBS="-lXrender $XFT_LIBS"
12694 LIBS="$XFT_LIBS $LIBS"
12695 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12696 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12698 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12699 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 ac_check_lib_save_LIBS=$LIBS
12703 LIBS="-lXft $XFT_LIBS $LIBS"
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706
12707 /* Override any GCC internal prototype to avoid an error.
12708 Use char because int might match the return type of a GCC
12709 builtin and then its argument prototype would still apply. */
12710 #ifdef __cplusplus
12711 extern "C"
12712 #endif
12713 char XftFontOpen ();
12714 int
12715 main ()
12716 {
12717 return XftFontOpen ();
12718 ;
12719 return 0;
12720 }
12721 _ACEOF
12722 if ac_fn_c_try_link "$LINENO"; then :
12723 ac_cv_lib_Xft_XftFontOpen=yes
12724 else
12725 ac_cv_lib_Xft_XftFontOpen=no
12726 fi
12727 rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS
12730 fi
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12732 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12733 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12734 HAVE_XFT=yes
12735 fi
12736
12737 fi
12738
12739
12740
12741 if test "${HAVE_XFT}" = "yes"; then
12742
12743 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12744
12745
12746 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12747 else
12748 CPPFLAGS="$OLD_CPPFLAGS"
12749 CFLAGS="$OLD_CFLAGS"
12750 LIBS="$OLD_LIBS"
12751 fi # "${HAVE_XFT}" = "yes"
12752 fi # "$HAVE_XFT" != no
12753 fi # "x${with_xft}" != "xno"
12754
12755 ## We used to allow building with FreeType and without Xft.
12756 ## However, the ftx font backend driver is not in good shape.
12757 if test "$HAVE_XFT" != "yes"; then
12758 HAVE_XFT=no
12759 HAVE_FREETYPE=no
12760 else
12761
12762 succeeded=no
12763
12764 # Extract the first word of "pkg-config", so it can be a program name with args.
12765 set dummy pkg-config; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 case $PKG_CONFIG in
12772 [\\/]* | ?:[\\/]*)
12773 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12774 ;;
12775 *)
12776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777 for as_dir in $PATH
12778 do
12779 IFS=$as_save_IFS
12780 test -z "$as_dir" && as_dir=.
12781 for ac_exec_ext in '' $ac_executable_extensions; do
12782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12783 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12785 break 2
12786 fi
12787 done
12788 done
12789 IFS=$as_save_IFS
12790
12791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12792 ;;
12793 esac
12794 fi
12795 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12796 if test -n "$PKG_CONFIG"; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12798 $as_echo "$PKG_CONFIG" >&6; }
12799 else
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 $as_echo "no" >&6; }
12802 fi
12803
12804
12805
12806 if test "$PKG_CONFIG" = "no" ; then
12807 HAVE_FREETYPE=no
12808 else
12809 PKG_CONFIG_MIN_VERSION=0.9.0
12810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12812 $as_echo_n "checking for freetype2... " >&6; }
12813
12814 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12816 $as_echo "yes" >&6; }
12817 succeeded=yes
12818
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12820 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12821 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12823 $as_echo "$FREETYPE_CFLAGS" >&6; }
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12826 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12827 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12829 $as_echo "$FREETYPE_LIBS" >&6; }
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12833 FREETYPE_CFLAGS=""
12834 FREETYPE_LIBS=""
12835 ## If we have a custom action on failure, don't print errors, but
12836 ## do set a variable so people can do so.
12837 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12838
12839 fi
12840
12841
12842
12843 else
12844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12846 fi
12847 fi
12848
12849 if test $succeeded = yes; then
12850 HAVE_FREETYPE=yes
12851 else
12852 HAVE_FREETYPE=no
12853 fi
12854
12855
12856 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12857 fi
12858
12859 HAVE_LIBOTF=no
12860 if test "${HAVE_FREETYPE}" = "yes"; then
12861
12862 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12863
12864 if test "${with_libotf}" != "no"; then
12865
12866 succeeded=no
12867
12868 # Extract the first word of "pkg-config", so it can be a program name with args.
12869 set dummy pkg-config; ac_word=$2
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871 $as_echo_n "checking for $ac_word... " >&6; }
12872 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 case $PKG_CONFIG in
12876 [\\/]* | ?:[\\/]*)
12877 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12878 ;;
12879 *)
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12882 do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891 done
12892 done
12893 IFS=$as_save_IFS
12894
12895 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12896 ;;
12897 esac
12898 fi
12899 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12900 if test -n "$PKG_CONFIG"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12902 $as_echo "$PKG_CONFIG" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906 fi
12907
12908
12909
12910 if test "$PKG_CONFIG" = "no" ; then
12911 HAVE_LIBOTF=no
12912 else
12913 PKG_CONFIG_MIN_VERSION=0.9.0
12914 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12916 $as_echo_n "checking for libotf... " >&6; }
12917
12918 if $PKG_CONFIG --exists "libotf" 2>&5; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12920 $as_echo "yes" >&6; }
12921 succeeded=yes
12922
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12924 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12925 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12927 $as_echo "$LIBOTF_CFLAGS" >&6; }
12928
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12930 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12931 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12933 $as_echo "$LIBOTF_LIBS" >&6; }
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12937 LIBOTF_CFLAGS=""
12938 LIBOTF_LIBS=""
12939 ## If we have a custom action on failure, don't print errors, but
12940 ## do set a variable so people can do so.
12941 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12942
12943 fi
12944
12945
12946
12947 else
12948 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12949 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12950 fi
12951 fi
12952
12953 if test $succeeded = yes; then
12954 HAVE_LIBOTF=yes
12955 else
12956 HAVE_LIBOTF=no
12957 fi
12958
12959 if test "$HAVE_LIBOTF" = "yes"; then
12960
12961 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12962
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12964 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12965 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12967 else
12968 ac_check_lib_save_LIBS=$LIBS
12969 LIBS="-lotf $LIBS"
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12976 #ifdef __cplusplus
12977 extern "C"
12978 #endif
12979 char OTF_get_variation_glyphs ();
12980 int
12981 main ()
12982 {
12983 return OTF_get_variation_glyphs ();
12984 ;
12985 return 0;
12986 }
12987 _ACEOF
12988 if ac_fn_c_try_link "$LINENO"; then :
12989 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12990 else
12991 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12992 fi
12993 rm -f core conftest.err conftest.$ac_objext \
12994 conftest$ac_exeext conftest.$ac_ext
12995 LIBS=$ac_check_lib_save_LIBS
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12998 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12999 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13000 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13001 else
13002 HAVE_OTF_GET_VARIATION_GLYPHS=no
13003 fi
13004
13005 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13006
13007 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13008
13009 fi
13010 fi
13011 fi
13012 fi
13013
13014 HAVE_M17N_FLT=no
13015 if test "${HAVE_LIBOTF}" = yes; then
13016 if test "${with_m17n_flt}" != "no"; then
13017
13018 succeeded=no
13019
13020 # Extract the first word of "pkg-config", so it can be a program name with args.
13021 set dummy pkg-config; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 case $PKG_CONFIG in
13028 [\\/]* | ?:[\\/]*)
13029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13030 ;;
13031 *)
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13034 do
13035 IFS=$as_save_IFS
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13041 break 2
13042 fi
13043 done
13044 done
13045 IFS=$as_save_IFS
13046
13047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13048 ;;
13049 esac
13050 fi
13051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13052 if test -n "$PKG_CONFIG"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13054 $as_echo "$PKG_CONFIG" >&6; }
13055 else
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13058 fi
13059
13060
13061
13062 if test "$PKG_CONFIG" = "no" ; then
13063 HAVE_M17N_FLT=no
13064 else
13065 PKG_CONFIG_MIN_VERSION=0.9.0
13066 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13068 $as_echo_n "checking for m17n-flt... " >&6; }
13069
13070 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13072 $as_echo "yes" >&6; }
13073 succeeded=yes
13074
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
13076 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13077 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
13079 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
13082 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13083 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
13085 $as_echo "$M17N_FLT_LIBS" >&6; }
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13089 M17N_FLT_CFLAGS=""
13090 M17N_FLT_LIBS=""
13091 ## If we have a custom action on failure, don't print errors, but
13092 ## do set a variable so people can do so.
13093 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13094
13095 fi
13096
13097
13098
13099 else
13100 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13101 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13102 fi
13103 fi
13104
13105 if test $succeeded = yes; then
13106 HAVE_M17N_FLT=yes
13107 else
13108 HAVE_M17N_FLT=no
13109 fi
13110
13111 if test "$HAVE_M17N_FLT" = "yes"; then
13112
13113 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13114
13115 fi
13116 fi
13117 fi
13118 else
13119 HAVE_XFT=no
13120 HAVE_FREETYPE=no
13121 HAVE_LIBOTF=no
13122 HAVE_M17N_FLT=no
13123 fi
13124
13125 ### End of font-backend (under X11) section.
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136 ### Use -lXpm if available, unless `--with-xpm=no'.
13137 HAVE_XPM=no
13138 LIBXPM=
13139 if test "${HAVE_X11}" = "yes"; then
13140 if test "${with_xpm}" != "no"; then
13141 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13142 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13144 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13145 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 ac_check_lib_save_LIBS=$LIBS
13149 LIBS="-lXpm -lX11 $LIBS"
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13156 #ifdef __cplusplus
13157 extern "C"
13158 #endif
13159 char XpmReadFileToPixmap ();
13160 int
13161 main ()
13162 {
13163 return XpmReadFileToPixmap ();
13164 ;
13165 return 0;
13166 }
13167 _ACEOF
13168 if ac_fn_c_try_link "$LINENO"; then :
13169 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13170 else
13171 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13172 fi
13173 rm -f core conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13175 LIBS=$ac_check_lib_save_LIBS
13176 fi
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13178 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13179 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13180 HAVE_XPM=yes
13181 fi
13182
13183 fi
13184
13185
13186 if test "${HAVE_XPM}" = "yes"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13188 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191 #include "X11/xpm.h"
13192 #ifndef XpmReturnAllocPixels
13193 no_return_alloc_pixels
13194 #endif
13195
13196 _ACEOF
13197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13198 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13199 HAVE_XPM=no
13200 else
13201 HAVE_XPM=yes
13202 fi
13203 rm -f conftest*
13204
13205
13206 if test "${HAVE_XPM}" = "yes"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13208 $as_echo "yes" >&6; }
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13212 fi
13213 fi
13214 fi
13215
13216 if test "${HAVE_XPM}" = "yes"; then
13217
13218 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13219
13220 LIBXPM=-lXpm
13221 fi
13222 fi
13223
13224
13225 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13226 HAVE_JPEG=no
13227 LIBJPEG=
13228 if test "${HAVE_X11}" = "yes"; then
13229 if test "${with_jpeg}" != "no"; then
13230 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13231 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13233 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13234 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13235 $as_echo_n "(cached) " >&6
13236 else
13237 ac_check_lib_save_LIBS=$LIBS
13238 LIBS="-ljpeg $LIBS"
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241
13242 /* Override any GCC internal prototype to avoid an error.
13243 Use char because int might match the return type of a GCC
13244 builtin and then its argument prototype would still apply. */
13245 #ifdef __cplusplus
13246 extern "C"
13247 #endif
13248 char jpeg_destroy_compress ();
13249 int
13250 main ()
13251 {
13252 return jpeg_destroy_compress ();
13253 ;
13254 return 0;
13255 }
13256 _ACEOF
13257 if ac_fn_c_try_link "$LINENO"; then :
13258 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13259 else
13260 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13261 fi
13262 rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13264 LIBS=$ac_check_lib_save_LIBS
13265 fi
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13267 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13268 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13269 HAVE_JPEG=yes
13270 fi
13271
13272 fi
13273
13274
13275 fi
13276
13277 if test "${HAVE_JPEG}" = "yes"; then
13278 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13279
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13282 #include <jpeglib.h>
13283 version=JPEG_LIB_VERSION
13284
13285 _ACEOF
13286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13287 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13288 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13289
13290 else
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13292 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13293 HAVE_JPEG=no
13294 fi
13295 rm -f conftest*
13296
13297 fi
13298 if test "${HAVE_JPEG}" = "yes"; then
13299 LIBJPEG=-ljpeg
13300 fi
13301 fi
13302
13303
13304 ### Use -lpng if available, unless `--with-png=no'.
13305 HAVE_PNG=no
13306 LIBPNG=
13307 if test "${HAVE_X11}" = "yes"; then
13308 if test "${with_png}" != "no"; then
13309 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13310 # in /usr/include/libpng.
13311 for ac_header in png.h libpng/png.h
13312 do :
13313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13314 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13315 eval as_val=\$$as_ac_Header
13316 if test "x$as_val" = x""yes; then :
13317 cat >>confdefs.h <<_ACEOF
13318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13319 _ACEOF
13320
13321 fi
13322
13323 done
13324
13325 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13327 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13328 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 ac_check_lib_save_LIBS=$LIBS
13332 LIBS="-lpng -lz -lm $LIBS"
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335
13336 /* Override any GCC internal prototype to avoid an error.
13337 Use char because int might match the return type of a GCC
13338 builtin and then its argument prototype would still apply. */
13339 #ifdef __cplusplus
13340 extern "C"
13341 #endif
13342 char png_get_channels ();
13343 int
13344 main ()
13345 {
13346 return png_get_channels ();
13347 ;
13348 return 0;
13349 }
13350 _ACEOF
13351 if ac_fn_c_try_link "$LINENO"; then :
13352 ac_cv_lib_png_png_get_channels=yes
13353 else
13354 ac_cv_lib_png_png_get_channels=no
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 LIBS=$ac_check_lib_save_LIBS
13359 fi
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13361 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13362 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13363 HAVE_PNG=yes
13364 fi
13365
13366 fi
13367 fi
13368
13369 if test "${HAVE_PNG}" = "yes"; then
13370
13371 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13372
13373 LIBPNG="-lpng -lz -lm"
13374 fi
13375 fi
13376
13377
13378 ### Use -ltiff if available, unless `--with-tiff=no'.
13379 HAVE_TIFF=no
13380 LIBTIFF=
13381 if test "${HAVE_X11}" = "yes"; then
13382 if test "${with_tiff}" != "no"; then
13383 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13384 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13385 tifflibs="-lz -lm"
13386 # At least one tiff package requires the jpeg library.
13387 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13389 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13390 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 ac_check_lib_save_LIBS=$LIBS
13394 LIBS="-ltiff $tifflibs $LIBS"
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13397
13398 /* Override any GCC internal prototype to avoid an error.
13399 Use char because int might match the return type of a GCC
13400 builtin and then its argument prototype would still apply. */
13401 #ifdef __cplusplus
13402 extern "C"
13403 #endif
13404 char TIFFGetVersion ();
13405 int
13406 main ()
13407 {
13408 return TIFFGetVersion ();
13409 ;
13410 return 0;
13411 }
13412 _ACEOF
13413 if ac_fn_c_try_link "$LINENO"; then :
13414 ac_cv_lib_tiff_TIFFGetVersion=yes
13415 else
13416 ac_cv_lib_tiff_TIFFGetVersion=no
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext conftest.$ac_ext
13420 LIBS=$ac_check_lib_save_LIBS
13421 fi
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13423 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13424 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13425 HAVE_TIFF=yes
13426 fi
13427
13428 fi
13429
13430
13431 fi
13432
13433 if test "${HAVE_TIFF}" = "yes"; then
13434
13435 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13436
13437 LIBTIFF=-ltiff
13438 fi
13439 fi
13440
13441
13442 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13443 HAVE_GIF=no
13444 LIBGIF=
13445 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13446 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13447 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13448 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13449 # Earlier versions can crash Emacs.
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13451 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13452 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 ac_check_lib_save_LIBS=$LIBS
13456 LIBS="-lgif $LIBS"
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459
13460 /* Override any GCC internal prototype to avoid an error.
13461 Use char because int might match the return type of a GCC
13462 builtin and then its argument prototype would still apply. */
13463 #ifdef __cplusplus
13464 extern "C"
13465 #endif
13466 char EGifPutExtensionLast ();
13467 int
13468 main ()
13469 {
13470 return EGifPutExtensionLast ();
13471 ;
13472 return 0;
13473 }
13474 _ACEOF
13475 if ac_fn_c_try_link "$LINENO"; then :
13476 ac_cv_lib_gif_EGifPutExtensionLast=yes
13477 else
13478 ac_cv_lib_gif_EGifPutExtensionLast=no
13479 fi
13480 rm -f core conftest.err conftest.$ac_objext \
13481 conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13483 fi
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13485 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13486 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13487 HAVE_GIF=yes
13488 else
13489 HAVE_GIF=maybe
13490 fi
13491
13492 fi
13493
13494
13495
13496 if test "$HAVE_GIF" = yes; then
13497 LIBGIF=-lgif
13498 elif test "$HAVE_GIF" = maybe; then
13499 # If gif_lib.h but no libgif, try libungif.
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13501 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13502 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 ac_check_lib_save_LIBS=$LIBS
13506 LIBS="-lungif $LIBS"
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13509
13510 /* Override any GCC internal prototype to avoid an error.
13511 Use char because int might match the return type of a GCC
13512 builtin and then its argument prototype would still apply. */
13513 #ifdef __cplusplus
13514 extern "C"
13515 #endif
13516 char EGifPutExtensionLast ();
13517 int
13518 main ()
13519 {
13520 return EGifPutExtensionLast ();
13521 ;
13522 return 0;
13523 }
13524 _ACEOF
13525 if ac_fn_c_try_link "$LINENO"; then :
13526 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13527 else
13528 ac_cv_lib_ungif_EGifPutExtensionLast=no
13529 fi
13530 rm -f core conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 LIBS=$ac_check_lib_save_LIBS
13533 fi
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13535 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13536 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13537 HAVE_GIF=yes
13538 else
13539 HAVE_GIF=no
13540 fi
13541
13542 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13543 fi
13544
13545 if test "${HAVE_GIF}" = "yes"; then
13546
13547 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13548
13549 fi
13550 fi
13551
13552
13553 if test "${HAVE_X11}" = "yes"; then
13554 MISSING=""
13555 WITH_NO=""
13556 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13557 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13558 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13559 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13560 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13561 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13562 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13563 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13564 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13565 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13566
13567 if test "X${MISSING}" != X; then
13568 as_fn_error "The following required libraries were not found:
13569 $MISSING
13570 Maybe some development libraries/packages are missing?
13571 If you don't want to link with them give
13572 $WITH_NO
13573 as options to configure" "$LINENO" 5
13574 fi
13575 fi
13576
13577 ### Use -lgpm if available, unless `--with-gpm=no'.
13578 HAVE_GPM=no
13579 LIBGPM=
13580 if test "${with_gpm}" != "no"; then
13581 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13582 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13584 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13585 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-lgpm $LIBS"
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592
13593 /* Override any GCC internal prototype to avoid an error.
13594 Use char because int might match the return type of a GCC
13595 builtin and then its argument prototype would still apply. */
13596 #ifdef __cplusplus
13597 extern "C"
13598 #endif
13599 char Gpm_Open ();
13600 int
13601 main ()
13602 {
13603 return Gpm_Open ();
13604 ;
13605 return 0;
13606 }
13607 _ACEOF
13608 if ac_fn_c_try_link "$LINENO"; then :
13609 ac_cv_lib_gpm_Gpm_Open=yes
13610 else
13611 ac_cv_lib_gpm_Gpm_Open=no
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext \
13614 conftest$ac_exeext conftest.$ac_ext
13615 LIBS=$ac_check_lib_save_LIBS
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13618 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13619 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13620 HAVE_GPM=yes
13621 fi
13622
13623 fi
13624
13625
13626
13627 if test "${HAVE_GPM}" = "yes"; then
13628
13629 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13630
13631 LIBGPM=-lgpm
13632 fi
13633 fi
13634
13635
13636 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13637 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13638
13639 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13640
13641 fi
13642
13643
13644
13645 C_SWITCH_X_SYSTEM=
13646 ### Use NeXTstep API to implement GUI.
13647 if test "${HAVE_NS}" = "yes"; then
13648
13649 $as_echo "#define HAVE_NS 1" >>confdefs.h
13650
13651 if test "${NS_IMPL_COCOA}" = "yes"; then
13652
13653 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13654
13655 fi
13656 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13657
13658 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13659
13660 # See also .m.o rule in Makefile.in */
13661 # FIXME: are all these flags really needed? Document here why. */
13662 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13663 ## Extra CFLAGS applied to src/*.m files.
13664 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13665 fi
13666 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13667
13668 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13669
13670 fi
13671 # We also have mouse menus.
13672 HAVE_MENUS=yes
13673 OTHER_FILES=ns-app
13674 fi
13675
13676
13677 ### Use session management (-lSM -lICE) if available
13678 HAVE_X_SM=no
13679 LIBXSM=
13680 if test "${HAVE_X11}" = "yes"; then
13681 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13682 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13684 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13685 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 ac_check_lib_save_LIBS=$LIBS
13689 LIBS="-lSM -lICE $LIBS"
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13696 #ifdef __cplusplus
13697 extern "C"
13698 #endif
13699 char SmcOpenConnection ();
13700 int
13701 main ()
13702 {
13703 return SmcOpenConnection ();
13704 ;
13705 return 0;
13706 }
13707 _ACEOF
13708 if ac_fn_c_try_link "$LINENO"; then :
13709 ac_cv_lib_SM_SmcOpenConnection=yes
13710 else
13711 ac_cv_lib_SM_SmcOpenConnection=no
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext \
13714 conftest$ac_exeext conftest.$ac_ext
13715 LIBS=$ac_check_lib_save_LIBS
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13718 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13719 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13720 HAVE_X_SM=yes
13721 fi
13722
13723 fi
13724
13725
13726
13727 if test "${HAVE_X_SM}" = "yes"; then
13728
13729 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13730
13731 LIBXSM="-lSM -lICE"
13732 case "$LIBS" in
13733 *-lSM*) ;;
13734 *) LIBS="$LIBXSM $LIBS" ;;
13735 esac
13736 fi
13737 fi
13738
13739
13740 ### Use libxml (-lxml2) if available
13741 if test "${with_xml2}" != "no"; then
13742 ### I'm not sure what the version number should be, so I just guessed.
13743
13744 succeeded=no
13745
13746 # Extract the first word of "pkg-config", so it can be a program name with args.
13747 set dummy pkg-config; ac_word=$2
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749 $as_echo_n "checking for $ac_word... " >&6; }
13750 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 case $PKG_CONFIG in
13754 [\\/]* | ?:[\\/]*)
13755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13756 ;;
13757 *)
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13760 do
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13768 fi
13769 done
13770 done
13771 IFS=$as_save_IFS
13772
13773 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13774 ;;
13775 esac
13776 fi
13777 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13778 if test -n "$PKG_CONFIG"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13780 $as_echo "$PKG_CONFIG" >&6; }
13781 else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 $as_echo "no" >&6; }
13784 fi
13785
13786
13787
13788 if test "$PKG_CONFIG" = "no" ; then
13789 HAVE_LIBXML2=no
13790 else
13791 PKG_CONFIG_MIN_VERSION=0.9.0
13792 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13794 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13795
13796 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13798 $as_echo "yes" >&6; }
13799 succeeded=yes
13800
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13802 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13803 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13805 $as_echo "$LIBXML2_CFLAGS" >&6; }
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13808 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13809 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13811 $as_echo "$LIBXML2_LIBS" >&6; }
13812 else
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814 $as_echo "no" >&6; }
13815 LIBXML2_CFLAGS=""
13816 LIBXML2_LIBS=""
13817 ## If we have a custom action on failure, don't print errors, but
13818 ## do set a variable so people can do so.
13819 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13820
13821 fi
13822
13823
13824
13825 else
13826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13828 fi
13829 fi
13830
13831 if test $succeeded = yes; then
13832 HAVE_LIBXML2=yes
13833 else
13834 HAVE_LIBXML2=no
13835 fi
13836
13837 if test "${HAVE_LIBXML2}" = "yes"; then
13838 LIBS="$LIBXML2_LIBS $LIBS"
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13840 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13841 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 ac_check_lib_save_LIBS=$LIBS
13845 LIBS="-lxml2 $LIBS"
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char htmlReadMemory ();
13856 int
13857 main ()
13858 {
13859 return htmlReadMemory ();
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 if ac_fn_c_try_link "$LINENO"; then :
13865 ac_cv_lib_xml2_htmlReadMemory=yes
13866 else
13867 ac_cv_lib_xml2_htmlReadMemory=no
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 LIBS=$ac_check_lib_save_LIBS
13872 fi
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13874 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13875 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13876 HAVE_LIBXML2=yes
13877 else
13878 HAVE_LIBXML2=no
13879 fi
13880
13881 if test "${HAVE_LIBXML2}" = "yes"; then
13882
13883 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13884
13885 else
13886 LIBXML2_LIBS=""
13887 LIBXML2_CFLAGS=""
13888 fi
13889 fi
13890 fi
13891
13892
13893
13894 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13896 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13897 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13898 $as_echo_n "(cached) " >&6
13899 else
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 #include <netdb.h>
13903 int
13904 main ()
13905 {
13906 return h_errno;
13907 ;
13908 return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 emacs_cv_netdb_declares_h_errno=yes
13913 else
13914 emacs_cv_netdb_declares_h_errno=no
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 fi
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13920 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13921 if test $emacs_cv_netdb_declares_h_errno = yes; then
13922
13923 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13924
13925 fi
13926
13927 # fmod, logb, and frexp are found in -lm on most systems.
13928 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13930 $as_echo_n "checking for sqrt in -lm... " >&6; }
13931 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13933 else
13934 ac_check_lib_save_LIBS=$LIBS
13935 LIBS="-lm $LIBS"
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13942 #ifdef __cplusplus
13943 extern "C"
13944 #endif
13945 char sqrt ();
13946 int
13947 main ()
13948 {
13949 return sqrt ();
13950 ;
13951 return 0;
13952 }
13953 _ACEOF
13954 if ac_fn_c_try_link "$LINENO"; then :
13955 ac_cv_lib_m_sqrt=yes
13956 else
13957 ac_cv_lib_m_sqrt=no
13958 fi
13959 rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 LIBS=$ac_check_lib_save_LIBS
13962 fi
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13964 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13965 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13966 cat >>confdefs.h <<_ACEOF
13967 #define HAVE_LIBM 1
13968 _ACEOF
13969
13970 LIBS="-lm $LIBS"
13971
13972 fi
13973
13974
13975 # Check for mail-locking functions in a "mail" library. Probably this should
13976 # have the same check as for liblockfile below.
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13978 $as_echo_n "checking for maillock in -lmail... " >&6; }
13979 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 ac_check_lib_save_LIBS=$LIBS
13983 LIBS="-lmail $LIBS"
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986
13987 /* Override any GCC internal prototype to avoid an error.
13988 Use char because int might match the return type of a GCC
13989 builtin and then its argument prototype would still apply. */
13990 #ifdef __cplusplus
13991 extern "C"
13992 #endif
13993 char maillock ();
13994 int
13995 main ()
13996 {
13997 return maillock ();
13998 ;
13999 return 0;
14000 }
14001 _ACEOF
14002 if ac_fn_c_try_link "$LINENO"; then :
14003 ac_cv_lib_mail_maillock=yes
14004 else
14005 ac_cv_lib_mail_maillock=no
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext \
14008 conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14010 fi
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14012 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14013 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14014 have_mail=yes
14015 else
14016 have_mail=no
14017 fi
14018
14019 if test $have_mail = yes; then
14020 LIBS_MAIL=-lmail
14021 LIBS="$LIBS_MAIL $LIBS"
14022
14023 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14024
14025 else
14026 LIBS_MAIL=
14027 fi
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14029 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14030 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 ac_check_lib_save_LIBS=$LIBS
14034 LIBS="-llockfile $LIBS"
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14041 #ifdef __cplusplus
14042 extern "C"
14043 #endif
14044 char maillock ();
14045 int
14046 main ()
14047 {
14048 return maillock ();
14049 ;
14050 return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_lib_lockfile_maillock=yes
14055 else
14056 ac_cv_lib_lockfile_maillock=no
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 LIBS=$ac_check_lib_save_LIBS
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14063 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14064 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14065 have_lockfile=yes
14066 else
14067 have_lockfile=no
14068 fi
14069
14070 if test $have_lockfile = yes; then
14071 LIBS_MAIL=-llockfile
14072 LIBS="$LIBS_MAIL $LIBS"
14073
14074 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14075
14076 else
14077 # If we have the shared liblockfile, assume we must use it for mail
14078 # locking (e.g. Debian). If we couldn't link against liblockfile
14079 # (no liblockfile.a installed), ensure that we don't need to.
14080 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14081 set dummy liblockfile.so; ac_word=$2
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14083 $as_echo_n "checking for $ac_word... " >&6; }
14084 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087 if test -n "$liblockfile"; then
14088 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14089 else
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14092 for as_dir in $as_dummy
14093 do
14094 IFS=$as_save_IFS
14095 test -z "$as_dir" && as_dir=.
14096 for ac_exec_ext in '' $ac_executable_extensions; do
14097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14098 ac_cv_prog_liblockfile="yes"
14099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14100 break 2
14101 fi
14102 done
14103 done
14104 IFS=$as_save_IFS
14105
14106 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14107 fi
14108 fi
14109 liblockfile=$ac_cv_prog_liblockfile
14110 if test -n "$liblockfile"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14112 $as_echo "$liblockfile" >&6; }
14113 else
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14116 fi
14117
14118
14119 if test $ac_cv_prog_liblockfile = yes; then
14120 as_fn_error "Shared liblockfile found but can't link against it.
14121 This probably means that movemail could lose mail.
14122 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14123 fi
14124 fi
14125 for ac_func in touchlock
14126 do :
14127 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14128 if test "x$ac_cv_func_touchlock" = x""yes; then :
14129 cat >>confdefs.h <<_ACEOF
14130 #define HAVE_TOUCHLOCK 1
14131 _ACEOF
14132
14133 fi
14134 done
14135
14136 for ac_header in maillock.h
14137 do :
14138 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14139 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14140 cat >>confdefs.h <<_ACEOF
14141 #define HAVE_MAILLOCK_H 1
14142 _ACEOF
14143
14144 fi
14145
14146 done
14147
14148
14149
14150 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14151 ## interlock access to the mail spool. The alternative is a lock file named
14152 ## /usr/spool/mail/$USER.lock.
14153 mail_lock=no
14154 case "$opsys" in
14155 aix4-2) mail_lock="lockf" ;;
14156
14157 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14158
14159 ## On GNU/Linux systems, both methods are used by various mail programs.
14160 ## I assume most people are using newer mailers that have heard of flock.
14161 ## Change this if you need to.
14162 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14163 ## configure gets the right answers, and that means *NOT* using flock.
14164 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14165 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14166 ## Debian maintainer hasn't provided a clean fix for Emacs.
14167 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14168 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14169 ## correct logic. -- fx
14170 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14171 ## liblockfile is a Free Software replacement for libmail, used on
14172 ## Debian systems and elsewhere. -rfr.
14173 gnu-*)
14174 mail_lock="flock"
14175 if test $have_mail = yes || test $have_lockfile = yes; then
14176 test $ac_cv_header_maillock_h = yes && mail_lock=no
14177 fi
14178 ;;
14179 esac
14180
14181 BLESSMAIL_TARGET=
14182 case "$mail_lock" in
14183 flock)
14184 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14185 ;;
14186
14187 lockf)
14188 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14189 ;;
14190
14191 *) BLESSMAIL_TARGET="need-blessmail" ;;
14192 esac
14193
14194
14195
14196 for ac_func in gethostname getdomainname \
14197 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14198 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14199 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14200 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14201 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14202 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14203 gai_strerror mkstemp getline getdelim mremap fsync sync \
14204 difftime mempcpy mblen mbrlen posix_memalign \
14205 cfmakeraw cfsetspeed copysign __executable_start
14206 do :
14207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14209 eval as_val=\$$as_ac_var
14210 if test "x$as_val" = x""yes; then :
14211 cat >>confdefs.h <<_ACEOF
14212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14213 _ACEOF
14214
14215 fi
14216 done
14217
14218
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14220 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14221 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226
14227 int
14228 main ()
14229 {
14230 __builtin_unwind_init ();
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_link "$LINENO"; then :
14236 emacs_cv_func___builtin_unwind_init=yes
14237 else
14238 emacs_cv_func___builtin_unwind_init=no
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
14242 fi
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14244 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14245 if test $emacs_cv_func___builtin_unwind_init = yes; then
14246
14247 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14248
14249 fi
14250
14251 for ac_header in sys/un.h
14252 do :
14253 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14254 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14255 cat >>confdefs.h <<_ACEOF
14256 #define HAVE_SYS_UN_H 1
14257 _ACEOF
14258
14259 fi
14260
14261 done
14262
14263
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14265 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14266 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 while :; do
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14272 #include <sys/types.h> /* for off_t */
14273 #include <stdio.h>
14274 int
14275 main ()
14276 {
14277 int (*fp) (FILE *, off_t, int) = fseeko;
14278 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14279 ;
14280 return 0;
14281 }
14282 _ACEOF
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 ac_cv_sys_largefile_source=no; break
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290 #define _LARGEFILE_SOURCE 1
14291 #include <sys/types.h> /* for off_t */
14292 #include <stdio.h>
14293 int
14294 main ()
14295 {
14296 int (*fp) (FILE *, off_t, int) = fseeko;
14297 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14298 ;
14299 return 0;
14300 }
14301 _ACEOF
14302 if ac_fn_c_try_link "$LINENO"; then :
14303 ac_cv_sys_largefile_source=1; break
14304 fi
14305 rm -f core conftest.err conftest.$ac_objext \
14306 conftest$ac_exeext conftest.$ac_ext
14307 ac_cv_sys_largefile_source=unknown
14308 break
14309 done
14310 fi
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14312 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14313 case $ac_cv_sys_largefile_source in #(
14314 no | unknown) ;;
14315 *)
14316 cat >>confdefs.h <<_ACEOF
14317 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14318 _ACEOF
14319 ;;
14320 esac
14321 rm -rf conftest*
14322
14323 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14324 # in glibc 2.1.3, but that breaks too many other things.
14325 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14326 if test $ac_cv_sys_largefile_source != unknown; then
14327
14328 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14329
14330 fi
14331
14332
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14334 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14335 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 # Use it with a single arg.
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14341 $ac_includes_default
14342 int
14343 main ()
14344 {
14345 getpgrp (0);
14346 ;
14347 return 0;
14348 }
14349 _ACEOF
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351 ac_cv_func_getpgrp_void=no
14352 else
14353 ac_cv_func_getpgrp_void=yes
14354 fi
14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356
14357 fi
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14359 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14360 if test $ac_cv_func_getpgrp_void = yes; then
14361
14362 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14363
14364 fi
14365
14366
14367 <<<<<<< TREE
14368 # Configure gnulib.
14369 =======
14370 # UNIX98 PTYs.
14371 for ac_func in grantpt
14372 do :
14373 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14374 if test "x$ac_cv_func_grantpt" = x""yes; then :
14375 cat >>confdefs.h <<_ACEOF
14376 #define HAVE_GRANTPT 1
14377 _ACEOF
14378
14379 fi
14380 done
14381
14382
14383 # PTY-related GNU extensions.
14384 for ac_func in getpt
14385 do :
14386 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14387 if test "x$ac_cv_func_getpt" = x""yes; then :
14388 cat >>confdefs.h <<_ACEOF
14389 #define HAVE_GETPT 1
14390 _ACEOF
14391
14392 fi
14393 done
14394
14395
14396 # Check this now, so that we will NOT find the above functions in ncurses.
14397 # That is because we have not set up to link ncurses in lib-src.
14398 # It's better to believe a function is not available
14399 # than to expect to find it in ncurses.
14400 # Also we need tputs and friends to be able to build at all.
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14402 $as_echo_n "checking for library containing tputs... " >&6; }
14403 # Run a test program that contains a call to tputs, a call that is
14404 # never executed. This tests whether a pre-'main' dynamic linker
14405 # works with the library. It's too much trouble to actually call
14406 # tputs in the test program, due to portability hassles. When
14407 # cross-compiling, assume the test program will run if it links.
14408
14409 # Maybe curses should be tried earlier?
14410 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14411 for tputs_library in '' ncurses terminfo termcap curses; do
14412 OLIBS=$LIBS
14413 if test -z "$tputs_library"; then
14414 LIBS_TERMCAP=
14415 msg='none required'
14416 else
14417 LIBS_TERMCAP=-l$tputs_library
14418 msg=$LIBS_TERMCAP
14419 LIBS="$LIBS_TERMCAP $LIBS"
14420 fi
14421 if test "$cross_compiling" = yes; then :
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424
14425 extern void tputs (const char *, int, int (*)(int));
14426 int main (int argc, char **argv)
14427 {
14428 if (argc == 10000)
14429 tputs (argv[0], 0, 0);
14430 return 0;
14431 }
14432
14433 _ACEOF
14434 if ac_fn_c_try_link "$LINENO"; then :
14435
14436 else
14437 msg=no
14438 fi
14439 rm -f core conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14441 else
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444
14445 extern void tputs (const char *, int, int (*)(int));
14446 int main (int argc, char **argv)
14447 {
14448 if (argc == 10000)
14449 tputs (argv[0], 0, 0);
14450 return 0;
14451 }
14452
14453 _ACEOF
14454 if ac_fn_c_try_run "$LINENO"; then :
14455
14456 else
14457 msg=no
14458 fi
14459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14460 conftest.$ac_objext conftest.beam conftest.$ac_ext
14461 fi
14462
14463 LIBS=$OLIBS
14464 if test "X$msg" != Xno; then
14465 break
14466 fi
14467 done
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14469 $as_echo "$msg" >&6; }
14470 if test "X$msg" = Xno; then
14471 as_fn_error "The required function \`tputs' was not found in any library.
14472 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14473 Please try installing whichever of these libraries is most appropriate
14474 for your system, together with its header files.
14475 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14476 fi
14477 # Must define this when any termcap library is found.
14478
14479 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14480
14481 ## FIXME This was the cpp logic, but I am not sure it is right.
14482 ## The above test has not necessarily found libncurses.
14483 HAVE_LIBNCURSES=yes
14484
14485 ## Use terminfo instead of termcap?
14486 ## Note only system files NOT using terminfo are:
14487 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14488 ## darwin|gnu without ncurses.
14489 TERMINFO=no
14490 case "$opsys" in
14491 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14492 ## hpux10-20: Use the system provided termcap(3) library.
14493 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14494 ## is necessary. Otherwise Emacs dumps core when run -nw.
14495 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14496
14497 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14498 ## The ncurses library has been moved out of the System framework in
14499 ## Mac OS X 10.2. So if configure detects it, set the command-line
14500 ## option to use it.
14501 darwin|gnu*)
14502 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14503 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14504 TERMINFO=yes
14505 LIBS_TERMCAP="-lncurses"
14506 fi
14507 ;;
14508
14509 freebsd)
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14511 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14512 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 #include <osreldate.h>
14518 int
14519 main ()
14520 {
14521 #if __FreeBSD_version < 400000
14522 fail;
14523 #endif
14524
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"; then :
14530 emacs_cv_freebsd_terminfo=yes
14531 else
14532 emacs_cv_freebsd_terminfo=no
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 fi
14537
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14540 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14541
14542 if test $emacs_cv_freebsd_terminfo = yes; then
14543 TERMINFO=yes
14544 LIBS_TERMCAP="-lncurses"
14545 else
14546 LIBS_TERMCAP="-ltermcap"
14547 fi
14548 ;;
14549
14550 netbsd)
14551 if test $ac_cv_search_tputs = -lterminfo; then
14552 TERMINFO=yes
14553 LIBS_TERMCAP="-lterminfo"
14554 else
14555 LIBS_TERMCAP="-ltermcap"
14556 fi
14557 ;;
14558
14559 esac
14560
14561 case "$opsys" in
14562 ## hpux: Make sure we get select from libc rather than from libcurses
14563 ## because libcurses on HPUX 10.10 has a broken version of select.
14564 ## We used to use -lc -lcurses, but this may be cleaner.
14565 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14566
14567 openbsd) LIBS_TERMCAP="-lncurses" ;;
14568
14569 ## Must use system termcap, if we use any termcap. It does special things.
14570 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14571 esac
14572
14573 TERMCAP_OBJ=tparam.o
14574 if test $TERMINFO = yes; then
14575
14576 $as_echo "#define TERMINFO 1" >>confdefs.h
14577
14578 TERMCAP_OBJ=terminfo.o
14579 fi
14580
14581
14582
14583
14584 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14585 resolv=no
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14588 #include <netinet/in.h>
14589 #include <arpa/nameser.h>
14590 #include <resolv.h>
14591 int
14592 main ()
14593 {
14594 return res_init();
14595 ;
14596 return 0;
14597 }
14598 _ACEOF
14599 if ac_fn_c_try_link "$LINENO"; then :
14600 have_res_init=yes
14601 else
14602 have_res_init=no
14603 fi
14604 rm -f core conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14606 if test "$have_res_init" = no; then
14607 OLIBS="$LIBS"
14608 LIBS="$LIBS -lresolv"
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14610 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include <netinet/in.h>
14614 #include <arpa/nameser.h>
14615 #include <resolv.h>
14616 int
14617 main ()
14618 {
14619 return res_init();
14620 ;
14621 return 0;
14622 }
14623 _ACEOF
14624 if ac_fn_c_try_link "$LINENO"; then :
14625 have_res_init=yes
14626 else
14627 have_res_init=no
14628 fi
14629 rm -f core conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14632 $as_echo "$have_res_init" >&6; }
14633 if test "$have_res_init" = yes ; then
14634 resolv=yes
14635 fi
14636 LIBS="$OLIBS"
14637 fi
14638
14639 if test "$have_res_init" = yes; then
14640
14641 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14642
14643 fi
14644
14645 # Do we need the Hesiod library to provide the support routines?
14646 LIBHESIOD=
14647 if test "$with_hesiod" != no ; then
14648 # Don't set $LIBS here -- see comments above. FIXME which comments?
14649 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14650 if test "x$ac_cv_func_res_send" = x""yes; then :
14651
14652 else
14653 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14654 if test "x$ac_cv_func___res_send" = x""yes; then :
14655
14656 else
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14658 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14659 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 ac_check_lib_save_LIBS=$LIBS
14663 LIBS="-lresolv $LIBS"
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14666
14667 /* Override any GCC internal prototype to avoid an error.
14668 Use char because int might match the return type of a GCC
14669 builtin and then its argument prototype would still apply. */
14670 #ifdef __cplusplus
14671 extern "C"
14672 #endif
14673 char res_send ();
14674 int
14675 main ()
14676 {
14677 return res_send ();
14678 ;
14679 return 0;
14680 }
14681 _ACEOF
14682 if ac_fn_c_try_link "$LINENO"; then :
14683 ac_cv_lib_resolv_res_send=yes
14684 else
14685 ac_cv_lib_resolv_res_send=no
14686 fi
14687 rm -f core conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext conftest.$ac_ext
14689 LIBS=$ac_check_lib_save_LIBS
14690 fi
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14692 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14693 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14694 resolv=yes
14695 else
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14697 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14698 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14699 $as_echo_n "(cached) " >&6
14700 else
14701 ac_check_lib_save_LIBS=$LIBS
14702 LIBS="-lresolv $LIBS"
14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14705
14706 /* Override any GCC internal prototype to avoid an error.
14707 Use char because int might match the return type of a GCC
14708 builtin and then its argument prototype would still apply. */
14709 #ifdef __cplusplus
14710 extern "C"
14711 #endif
14712 char __res_send ();
14713 int
14714 main ()
14715 {
14716 return __res_send ();
14717 ;
14718 return 0;
14719 }
14720 _ACEOF
14721 if ac_fn_c_try_link "$LINENO"; then :
14722 ac_cv_lib_resolv___res_send=yes
14723 else
14724 ac_cv_lib_resolv___res_send=no
14725 fi
14726 rm -f core conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14728 LIBS=$ac_check_lib_save_LIBS
14729 fi
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14731 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14732 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14733 resolv=yes
14734 fi
14735
14736 fi
14737
14738 fi
14739
14740 fi
14741
14742 if test "$resolv" = yes ; then
14743 RESOLVLIB=-lresolv
14744 else
14745 RESOLVLIB=
14746 fi
14747 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14748 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14749
14750 else
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14752 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14753 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 ac_check_lib_save_LIBS=$LIBS
14757 LIBS="-lhesiod $RESOLVLIB $LIBS"
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14760
14761 /* Override any GCC internal prototype to avoid an error.
14762 Use char because int might match the return type of a GCC
14763 builtin and then its argument prototype would still apply. */
14764 #ifdef __cplusplus
14765 extern "C"
14766 #endif
14767 char hes_getmailhost ();
14768 int
14769 main ()
14770 {
14771 return hes_getmailhost ();
14772 ;
14773 return 0;
14774 }
14775 _ACEOF
14776 if ac_fn_c_try_link "$LINENO"; then :
14777 ac_cv_lib_hesiod_hes_getmailhost=yes
14778 else
14779 ac_cv_lib_hesiod_hes_getmailhost=no
14780 fi
14781 rm -f core conftest.err conftest.$ac_objext \
14782 conftest$ac_exeext conftest.$ac_ext
14783 LIBS=$ac_check_lib_save_LIBS
14784 fi
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14786 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14787 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14788 hesiod=yes
14789 else
14790 :
14791 fi
14792
14793 fi
14794
14795
14796 if test x"$hesiod" = xyes; then
14797
14798 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14799
14800 LIBHESIOD=-lhesiod
14801 fi
14802 fi
14803
14804
14805 # Do we need libresolv (due to res_init or Hesiod)?
14806 if test "$resolv" = yes ; then
14807
14808 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14809
14810 LIBRESOLV=-lresolv
14811 else
14812 LIBRESOLV=
14813 fi
14814
14815
14816 # These tell us which Kerberos-related libraries to use.
14817 COM_ERRLIB=
14818 CRYPTOLIB=
14819 KRB5LIB=
14820 DESLIB=
14821 KRB4LIB=
14822
14823 if test "${with_kerberos}" != no; then
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14825 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14826 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14828 else
14829 ac_check_lib_save_LIBS=$LIBS
14830 LIBS="-lcom_err $LIBS"
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833
14834 /* Override any GCC internal prototype to avoid an error.
14835 Use char because int might match the return type of a GCC
14836 builtin and then its argument prototype would still apply. */
14837 #ifdef __cplusplus
14838 extern "C"
14839 #endif
14840 char com_err ();
14841 int
14842 main ()
14843 {
14844 return com_err ();
14845 ;
14846 return 0;
14847 }
14848 _ACEOF
14849 if ac_fn_c_try_link "$LINENO"; then :
14850 ac_cv_lib_com_err_com_err=yes
14851 else
14852 ac_cv_lib_com_err_com_err=no
14853 fi
14854 rm -f core conftest.err conftest.$ac_objext \
14855 conftest$ac_exeext conftest.$ac_ext
14856 LIBS=$ac_check_lib_save_LIBS
14857 fi
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14859 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14860 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14861 have_com_err=yes
14862 else
14863 have_com_err=no
14864 fi
14865
14866 if test $have_com_err = yes; then
14867 COM_ERRLIB=-lcom_err
14868 LIBS="$COM_ERRLIB $LIBS"
14869
14870 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14871
14872 fi
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14874 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14875 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lcrypto $LIBS"
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14882
14883 /* Override any GCC internal prototype to avoid an error.
14884 Use char because int might match the return type of a GCC
14885 builtin and then its argument prototype would still apply. */
14886 #ifdef __cplusplus
14887 extern "C"
14888 #endif
14889 char mit_des_cbc_encrypt ();
14890 int
14891 main ()
14892 {
14893 return mit_des_cbc_encrypt ();
14894 ;
14895 return 0;
14896 }
14897 _ACEOF
14898 if ac_fn_c_try_link "$LINENO"; then :
14899 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14900 else
14901 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14902 fi
14903 rm -f core conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext conftest.$ac_ext
14905 LIBS=$ac_check_lib_save_LIBS
14906 fi
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14908 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14909 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14910 have_crypto=yes
14911 else
14912 have_crypto=no
14913 fi
14914
14915 if test $have_crypto = yes; then
14916 CRYPTOLIB=-lcrypto
14917 LIBS="$CRYPTOLIB $LIBS"
14918
14919 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14920
14921 fi
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14923 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14924 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14925 $as_echo_n "(cached) " >&6
14926 else
14927 ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-lk5crypto $LIBS"
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931
14932 /* Override any GCC internal prototype to avoid an error.
14933 Use char because int might match the return type of a GCC
14934 builtin and then its argument prototype would still apply. */
14935 #ifdef __cplusplus
14936 extern "C"
14937 #endif
14938 char mit_des_cbc_encrypt ();
14939 int
14940 main ()
14941 {
14942 return mit_des_cbc_encrypt ();
14943 ;
14944 return 0;
14945 }
14946 _ACEOF
14947 if ac_fn_c_try_link "$LINENO"; then :
14948 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14949 else
14950 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14951 fi
14952 rm -f core conftest.err conftest.$ac_objext \
14953 conftest$ac_exeext conftest.$ac_ext
14954 LIBS=$ac_check_lib_save_LIBS
14955 fi
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14957 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14958 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14959 have_k5crypto=yes
14960 else
14961 have_k5crypto=no
14962 fi
14963
14964 if test $have_k5crypto = yes; then
14965 CRYPTOLIB=-lk5crypto
14966 LIBS="$CRYPTOLIB $LIBS"
14967
14968 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14969
14970 fi
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14972 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14973 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 ac_check_lib_save_LIBS=$LIBS
14977 LIBS="-lkrb5 $LIBS"
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980
14981 /* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
14984 #ifdef __cplusplus
14985 extern "C"
14986 #endif
14987 char krb5_init_context ();
14988 int
14989 main ()
14990 {
14991 return krb5_init_context ();
14992 ;
14993 return 0;
14994 }
14995 _ACEOF
14996 if ac_fn_c_try_link "$LINENO"; then :
14997 ac_cv_lib_krb5_krb5_init_context=yes
14998 else
14999 ac_cv_lib_krb5_krb5_init_context=no
15000 fi
15001 rm -f core conftest.err conftest.$ac_objext \
15002 conftest$ac_exeext conftest.$ac_ext
15003 LIBS=$ac_check_lib_save_LIBS
15004 fi
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15006 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15007 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15008 have_krb5=yes
15009 else
15010 have_krb5=no
15011 fi
15012
15013 if test $have_krb5=yes; then
15014 KRB5LIB=-lkrb5
15015 LIBS="$KRB5LIB $LIBS"
15016
15017 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15018
15019 fi
15020 if test "${with_kerberos5}" = no; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15022 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15023 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 ac_check_lib_save_LIBS=$LIBS
15027 LIBS="-ldes425 $LIBS"
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15034 #ifdef __cplusplus
15035 extern "C"
15036 #endif
15037 char des_cbc_encrypt ();
15038 int
15039 main ()
15040 {
15041 return des_cbc_encrypt ();
15042 ;
15043 return 0;
15044 }
15045 _ACEOF
15046 if ac_fn_c_try_link "$LINENO"; then :
15047 ac_cv_lib_des425_des_cbc_encrypt=yes
15048 else
15049 ac_cv_lib_des425_des_cbc_encrypt=no
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext conftest.$ac_ext
15053 LIBS=$ac_check_lib_save_LIBS
15054 fi
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15056 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15057 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15058 have_des425=yes
15059 else
15060 have_des425=no
15061 fi
15062
15063 if test $have_des425 = yes; then
15064 DESLIB=-ldes425
15065 LIBS="$DESLIB $LIBS"
15066
15067 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15068
15069 else
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15071 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15072 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075 ac_check_lib_save_LIBS=$LIBS
15076 LIBS="-ldes $LIBS"
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079
15080 /* Override any GCC internal prototype to avoid an error.
15081 Use char because int might match the return type of a GCC
15082 builtin and then its argument prototype would still apply. */
15083 #ifdef __cplusplus
15084 extern "C"
15085 #endif
15086 char des_cbc_encrypt ();
15087 int
15088 main ()
15089 {
15090 return des_cbc_encrypt ();
15091 ;
15092 return 0;
15093 }
15094 _ACEOF
15095 if ac_fn_c_try_link "$LINENO"; then :
15096 ac_cv_lib_des_des_cbc_encrypt=yes
15097 else
15098 ac_cv_lib_des_des_cbc_encrypt=no
15099 fi
15100 rm -f core conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15102 LIBS=$ac_check_lib_save_LIBS
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15105 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15106 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15107 have_des=yes
15108 else
15109 have_des=no
15110 fi
15111
15112 if test $have_des = yes; then
15113 DESLIB=-ldes
15114 LIBS="$DESLIB $LIBS"
15115
15116 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15117
15118 fi
15119 fi
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15121 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15122 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 ac_check_lib_save_LIBS=$LIBS
15126 LIBS="-lkrb4 $LIBS"
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 char krb_get_cred ();
15137 int
15138 main ()
15139 {
15140 return krb_get_cred ();
15141 ;
15142 return 0;
15143 }
15144 _ACEOF
15145 if ac_fn_c_try_link "$LINENO"; then :
15146 ac_cv_lib_krb4_krb_get_cred=yes
15147 else
15148 ac_cv_lib_krb4_krb_get_cred=no
15149 fi
15150 rm -f core conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext conftest.$ac_ext
15152 LIBS=$ac_check_lib_save_LIBS
15153 fi
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15155 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15156 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15157 have_krb4=yes
15158 else
15159 have_krb4=no
15160 fi
15161
15162 if test $have_krb4 = yes; then
15163 KRB4LIB=-lkrb4
15164 LIBS="$KRB4LIB $LIBS"
15165
15166 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15167
15168 else
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15170 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15171 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15172 $as_echo_n "(cached) " >&6
15173 else
15174 ac_check_lib_save_LIBS=$LIBS
15175 LIBS="-lkrb $LIBS"
15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15178
15179 /* Override any GCC internal prototype to avoid an error.
15180 Use char because int might match the return type of a GCC
15181 builtin and then its argument prototype would still apply. */
15182 #ifdef __cplusplus
15183 extern "C"
15184 #endif
15185 char krb_get_cred ();
15186 int
15187 main ()
15188 {
15189 return krb_get_cred ();
15190 ;
15191 return 0;
15192 }
15193 _ACEOF
15194 if ac_fn_c_try_link "$LINENO"; then :
15195 ac_cv_lib_krb_krb_get_cred=yes
15196 else
15197 ac_cv_lib_krb_krb_get_cred=no
15198 fi
15199 rm -f core conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15201 LIBS=$ac_check_lib_save_LIBS
15202 fi
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15204 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15205 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15206 have_krb=yes
15207 else
15208 have_krb=no
15209 fi
15210
15211 if test $have_krb = yes; then
15212 KRB4LIB=-lkrb
15213 LIBS="$KRB4LIB $LIBS"
15214
15215 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15216
15217 fi
15218 fi
15219 fi
15220
15221 if test "${with_kerberos5}" != no; then
15222 for ac_header in krb5.h
15223 do :
15224 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15225 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_KRB5_H 1
15228 _ACEOF
15229 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15230 "
15231 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15232
15233 cat >>confdefs.h <<_ACEOF
15234 #define HAVE_KRB5_ERROR_TEXT 1
15235 _ACEOF
15236
15237
15238 fi
15239 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15240 "
15241 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15242
15243 cat >>confdefs.h <<_ACEOF
15244 #define HAVE_KRB5_ERROR_E_TEXT 1
15245 _ACEOF
15246
15247
15248 fi
15249
15250 fi
15251
15252 done
15253
15254 else
15255 for ac_header in des.h
15256 do :
15257 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15258 if test "x$ac_cv_header_des_h" = x""yes; then :
15259 cat >>confdefs.h <<_ACEOF
15260 #define HAVE_DES_H 1
15261 _ACEOF
15262
15263 else
15264 for ac_header in kerberosIV/des.h
15265 do :
15266 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15267 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15268 cat >>confdefs.h <<_ACEOF
15269 #define HAVE_KERBEROSIV_DES_H 1
15270 _ACEOF
15271
15272 else
15273 for ac_header in kerberos/des.h
15274 do :
15275 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15276 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_KERBEROS_DES_H 1
15279 _ACEOF
15280
15281 fi
15282
15283 done
15284
15285 fi
15286
15287 done
15288
15289 fi
15290
15291 done
15292
15293 for ac_header in krb.h
15294 do :
15295 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15296 if test "x$ac_cv_header_krb_h" = x""yes; then :
15297 cat >>confdefs.h <<_ACEOF
15298 #define HAVE_KRB_H 1
15299 _ACEOF
15300
15301 else
15302 for ac_header in kerberosIV/krb.h
15303 do :
15304 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15305 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15306 cat >>confdefs.h <<_ACEOF
15307 #define HAVE_KERBEROSIV_KRB_H 1
15308 _ACEOF
15309
15310 else
15311 for ac_header in kerberos/krb.h
15312 do :
15313 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15314 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15315 cat >>confdefs.h <<_ACEOF
15316 #define HAVE_KERBEROS_KRB_H 1
15317 _ACEOF
15318
15319 fi
15320
15321 done
15322
15323 fi
15324
15325 done
15326
15327 fi
15328
15329 done
15330
15331 fi
15332 for ac_header in com_err.h
15333 do :
15334 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15335 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15336 cat >>confdefs.h <<_ACEOF
15337 #define HAVE_COM_ERR_H 1
15338 _ACEOF
15339
15340 fi
15341
15342 done
15343
15344 fi
15345
15346
15347
15348
15349
15350
15351
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15353 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15354 if test "${emacs_cv_localtime_cache+set}" = set; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15357 if test x$ac_cv_func_tzset = xyes; then
15358 if test "$cross_compiling" = yes; then :
15359 # If we have tzset, assume the worst when cross-compiling.
15360 emacs_cv_localtime_cache=yes
15361 else
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364 #include <time.h>
15365 char TZ_GMT0[] = "TZ=GMT0";
15366 char TZ_PST8[] = "TZ=PST8";
15367 main()
15368 {
15369 time_t now = time ((time_t *) 0);
15370 int hour_GMT0, hour_unset;
15371 if (putenv (TZ_GMT0) != 0)
15372 exit (1);
15373 hour_GMT0 = localtime (&now)->tm_hour;
15374 unsetenv("TZ");
15375 hour_unset = localtime (&now)->tm_hour;
15376 if (putenv (TZ_PST8) != 0)
15377 exit (1);
15378 if (localtime (&now)->tm_hour == hour_GMT0)
15379 exit (1);
15380 unsetenv("TZ");
15381 if (localtime (&now)->tm_hour != hour_unset)
15382 exit (1);
15383 exit (0);
15384 }
15385 _ACEOF
15386 if ac_fn_c_try_run "$LINENO"; then :
15387 emacs_cv_localtime_cache=no
15388 else
15389 emacs_cv_localtime_cache=yes
15390 fi
15391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15392 conftest.$ac_objext conftest.beam conftest.$ac_ext
15393 fi
15394
15395 else
15396 # If we lack tzset, report that localtime does not cache TZ,
15397 # since we can't invalidate the cache if we don't have tzset.
15398 emacs_cv_localtime_cache=no
15399 fi
15400 fi
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15402 $as_echo "$emacs_cv_localtime_cache" >&6; }
15403 if test $emacs_cv_localtime_cache = yes; then
15404
15405 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15406
15407 fi
15408
15409 if test "x$HAVE_TIMEVAL" = xyes; then
15410 for ac_func in gettimeofday
15411 do :
15412 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15413 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15414 cat >>confdefs.h <<_ACEOF
15415 #define HAVE_GETTIMEOFDAY 1
15416 _ACEOF
15417
15418 fi
15419 done
15420
15421 if test $ac_cv_func_gettimeofday = yes; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15423 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15424 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15425 $as_echo_n "(cached) " >&6
15426 else
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429
15430 #ifdef TIME_WITH_SYS_TIME
15431 #include <sys/time.h>
15432 #include <time.h>
15433 #else
15434 #ifdef HAVE_SYS_TIME_H
15435 #include <sys/time.h>
15436 #else
15437 #include <time.h>
15438 #endif
15439 #endif
15440 int
15441 main ()
15442 {
15443 struct timeval time;
15444 gettimeofday (&time, 0);
15445 ;
15446 return 0;
15447 }
15448 _ACEOF
15449 if ac_fn_c_try_compile "$LINENO"; then :
15450 emacs_cv_gettimeofday_two_arguments=yes
15451 else
15452 emacs_cv_gettimeofday_two_arguments=no
15453 fi
15454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15455 fi
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15457 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15458 if test $emacs_cv_gettimeofday_two_arguments = no; then
15459
15460 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15461
15462 fi
15463 fi
15464 fi
15465
15466 ok_so_far=yes
15467 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15468 if test "x$ac_cv_func_socket" = x""yes; then :
15469
15470 else
15471 ok_so_far=no
15472 fi
15473
15474 if test $ok_so_far = yes; then
15475 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15476 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15477
15478 else
15479 ok_so_far=no
15480 fi
15481
15482
15483 fi
15484 if test $ok_so_far = yes; then
15485 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15486 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15487
15488 else
15489 ok_so_far=no
15490 fi
15491
15492
15493 fi
15494 if test $ok_so_far = yes; then
15495
15496 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15497
15498 fi
15499
15500 if test -f /usr/lpp/X11/bin/smt.exp; then
15501
15502 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15503
15504 fi
15505
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15507 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15508 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15510 $as_echo "yes" >&6; }
15511
15512 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15513
15514 else
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15517 fi
15518
15519 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15520 if test "x$ac_cv_type_pid_t" = x""yes; then :
15521
15522 else
15523
15524 cat >>confdefs.h <<_ACEOF
15525 #define pid_t int
15526 _ACEOF
15527
15528 fi
15529
15530 for ac_header in vfork.h
15531 do :
15532 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15533 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15534 cat >>confdefs.h <<_ACEOF
15535 #define HAVE_VFORK_H 1
15536 _ACEOF
15537
15538 fi
15539
15540 done
15541
15542 for ac_func in fork vfork
15543 do :
15544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15546 eval as_val=\$$as_ac_var
15547 if test "x$as_val" = x""yes; then :
15548 cat >>confdefs.h <<_ACEOF
15549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15550 _ACEOF
15551
15552 fi
15553 done
15554
15555 if test "x$ac_cv_func_fork" = xyes; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15557 $as_echo_n "checking for working fork... " >&6; }
15558 if test "${ac_cv_func_fork_works+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 if test "$cross_compiling" = yes; then :
15562 ac_cv_func_fork_works=cross
15563 else
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 $ac_includes_default
15567 int
15568 main ()
15569 {
15570
15571 /* By Ruediger Kuhlmann. */
15572 return fork () < 0;
15573
15574 ;
15575 return 0;
15576 }
15577 _ACEOF
15578 if ac_fn_c_try_run "$LINENO"; then :
15579 ac_cv_func_fork_works=yes
15580 else
15581 ac_cv_func_fork_works=no
15582 fi
15583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15584 conftest.$ac_objext conftest.beam conftest.$ac_ext
15585 fi
15586
15587 fi
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15589 $as_echo "$ac_cv_func_fork_works" >&6; }
15590
15591 else
15592 ac_cv_func_fork_works=$ac_cv_func_fork
15593 fi
15594 if test "x$ac_cv_func_fork_works" = xcross; then
15595 case $host in
15596 *-*-amigaos* | *-*-msdosdjgpp*)
15597 # Override, as these systems have only a dummy fork() stub
15598 ac_cv_func_fork_works=no
15599 ;;
15600 *)
15601 ac_cv_func_fork_works=yes
15602 ;;
15603 esac
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15605 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15606 fi
15607 ac_cv_func_vfork_works=$ac_cv_func_vfork
15608 if test "x$ac_cv_func_vfork" = xyes; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15610 $as_echo_n "checking for working vfork... " >&6; }
15611 if test "${ac_cv_func_vfork_works+set}" = set; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 if test "$cross_compiling" = yes; then :
15615 ac_cv_func_vfork_works=cross
15616 else
15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15619 /* Thanks to Paul Eggert for this test. */
15620 $ac_includes_default
15621 #include <sys/wait.h>
15622 #ifdef HAVE_VFORK_H
15623 # include <vfork.h>
15624 #endif
15625 /* On some sparc systems, changes by the child to local and incoming
15626 argument registers are propagated back to the parent. The compiler
15627 is told about this with #include <vfork.h>, but some compilers
15628 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15629 static variable whose address is put into a register that is
15630 clobbered by the vfork. */
15631 static void
15632 #ifdef __cplusplus
15633 sparc_address_test (int arg)
15634 # else
15635 sparc_address_test (arg) int arg;
15636 #endif
15637 {
15638 static pid_t child;
15639 if (!child) {
15640 child = vfork ();
15641 if (child < 0) {
15642 perror ("vfork");
15643 _exit(2);
15644 }
15645 if (!child) {
15646 arg = getpid();
15647 write(-1, "", 0);
15648 _exit (arg);
15649 }
15650 }
15651 }
15652
15653 int
15654 main ()
15655 {
15656 pid_t parent = getpid ();
15657 pid_t child;
15658
15659 sparc_address_test (0);
15660
15661 child = vfork ();
15662
15663 if (child == 0) {
15664 /* Here is another test for sparc vfork register problems. This
15665 test uses lots of local variables, at least as many local
15666 variables as main has allocated so far including compiler
15667 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15668 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15669 reuse the register of parent for one of the local variables,
15670 since it will think that parent can't possibly be used any more
15671 in this routine. Assigning to the local variable will thus
15672 munge parent in the parent process. */
15673 pid_t
15674 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15675 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15676 /* Convince the compiler that p..p7 are live; otherwise, it might
15677 use the same hardware register for all 8 local variables. */
15678 if (p != p1 || p != p2 || p != p3 || p != p4
15679 || p != p5 || p != p6 || p != p7)
15680 _exit(1);
15681
15682 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15683 from child file descriptors. If the child closes a descriptor
15684 before it execs or exits, this munges the parent's descriptor
15685 as well. Test for this by closing stdout in the child. */
15686 _exit(close(fileno(stdout)) != 0);
15687 } else {
15688 int status;
15689 struct stat st;
15690
15691 while (wait(&status) != child)
15692 ;
15693 return (
15694 /* Was there some problem with vforking? */
15695 child < 0
15696
15697 /* Did the child fail? (This shouldn't happen.) */
15698 || status
15699
15700 /* Did the vfork/compiler bug occur? */
15701 || parent != getpid()
15702
15703 /* Did the file descriptor bug occur? */
15704 || fstat(fileno(stdout), &st) != 0
15705 );
15706 }
15707 }
15708 _ACEOF
15709 if ac_fn_c_try_run "$LINENO"; then :
15710 ac_cv_func_vfork_works=yes
15711 else
15712 ac_cv_func_vfork_works=no
15713 fi
15714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15715 conftest.$ac_objext conftest.beam conftest.$ac_ext
15716 fi
15717
15718 fi
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15720 $as_echo "$ac_cv_func_vfork_works" >&6; }
15721
15722 fi;
15723 if test "x$ac_cv_func_fork_works" = xcross; then
15724 ac_cv_func_vfork_works=$ac_cv_func_vfork
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15726 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15727 fi
15728
15729 if test "x$ac_cv_func_vfork_works" = xyes; then
15730
15731 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15732
15733 else
15734
15735 $as_echo "#define vfork fork" >>confdefs.h
15736
15737 fi
15738 if test "x$ac_cv_func_fork_works" = xyes; then
15739
15740 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15741
15742 fi
15743
15744
15745 for ac_func in snprintf
15746 do :
15747 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15748 if test "x$ac_cv_func_snprintf" = x""yes; then :
15749 cat >>confdefs.h <<_ACEOF
15750 #define HAVE_SNPRINTF 1
15751 _ACEOF
15752
15753 fi
15754 done
15755
15756
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15758 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15759 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15760 $as_echo_n "(cached) " >&6
15761 else
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 #include <langinfo.h>
15765 int
15766 main ()
15767 {
15768 char* cs = nl_langinfo(CODESET);
15769 ;
15770 return 0;
15771 }
15772 _ACEOF
15773 if ac_fn_c_try_link "$LINENO"; then :
15774 emacs_cv_langinfo_codeset=yes
15775 else
15776 emacs_cv_langinfo_codeset=no
15777 fi
15778 rm -f core conftest.err conftest.$ac_objext \
15779 conftest$ac_exeext conftest.$ac_ext
15780
15781 fi
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15783 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15784 if test $emacs_cv_langinfo_codeset = yes; then
15785
15786 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15787
15788 fi
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15791 $as_echo_n "checking for mbstate_t... " >&6; }
15792 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 $ac_includes_default
15798 # include <wchar.h>
15799 int
15800 main ()
15801 {
15802 mbstate_t x; return sizeof x;
15803 ;
15804 return 0;
15805 }
15806 _ACEOF
15807 if ac_fn_c_try_compile "$LINENO"; then :
15808 ac_cv_type_mbstate_t=yes
15809 else
15810 ac_cv_type_mbstate_t=no
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 fi
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15815 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15816 if test $ac_cv_type_mbstate_t = yes; then
15817
15818 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15819
15820 else
15821
15822 $as_echo "#define mbstate_t int" >>confdefs.h
15823
15824 fi
15825
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15827 $as_echo_n "checking for C restricted array declarations... " >&6; }
15828 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 void fred (int x[__restrict]);
15834 int
15835 main ()
15836 {
15837
15838 ;
15839 return 0;
15840 }
15841 _ACEOF
15842 if ac_fn_c_try_compile "$LINENO"; then :
15843 emacs_cv_c_restrict_arr=yes
15844 else
15845 emacs_cv_c_restrict_arr=no
15846 fi
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848 fi
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15850 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15851 if test "$emacs_cv_c_restrict_arr" = yes; then
15852
15853 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15854
15855 fi
15856
15857
15858 # Set up the CFLAGS for real compilation, so we can substitute it.
15859 CFLAGS="$REAL_CFLAGS"
15860 CPPFLAGS="$REAL_CPPFLAGS"
15861
15862 ## Hack to detect a buggy GCC version.
15863 if test "x$GCC" = xyes \
15864 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15865 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15866 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15867 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15868 fi
15869
15870 version=$PACKAGE_VERSION
15871
15872 ### Specify what sort of things we'll be editing into Makefile and config.h.
15873 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15874
15875
15876 ## Unused?
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15898 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15899 ## end of LIBX_BASE, but nothing ever set it.
15900
15901
15902
15903
15904 ## Used in lwlib/Makefile.in.
15905
15906 if test -n "${machfile}"; then
15907 M_FILE="\$(srcdir)/${machfile}"
15908 else
15909 M_FILE=
15910 fi
15911 S_FILE="\$(srcdir)/${opsysfile}"
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922 cat >>confdefs.h <<_ACEOF
15923 #define EMACS_CONFIGURATION "${canonical}"
15924 _ACEOF
15925
15926
15927 cat >>confdefs.h <<_ACEOF
15928 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15929 _ACEOF
15930
15931 if test -n "$machfile"; then
15932
15933 cat >>confdefs.h <<_ACEOF
15934 #define config_machfile "${machfile}"
15935 _ACEOF
15936
15937 fi
15938
15939 cat >>confdefs.h <<_ACEOF
15940 #define config_opsysfile "${opsysfile}"
15941 _ACEOF
15942
15943
15944 XMENU_OBJ=
15945 XOBJ=
15946 FONT_OBJ=
15947 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15948
15949 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15950
15951 XMENU_OBJ=xmenu.o
15952 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15953 FONT_OBJ=xfont.o
15954 if test "$HAVE_XFT" = "yes"; then
15955 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15956 elif test "$HAVE_FREETYPE" = "yes"; then
15957 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15958 fi
15959
15960 fi
15961
15962
15963
15964
15965 WIDGET_OBJ=
15966 MOTIF_LIBW=
15967 if test "${USE_X_TOOLKIT}" != "none" ; then
15968 WIDGET_OBJ=widget.o
15969
15970 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15971
15972 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15973
15974 $as_echo "#define USE_LUCID 1" >>confdefs.h
15975
15976 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15977
15978 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15979
15980 MOTIF_LIBW=-lXm
15981 case "$opsys" in
15982 gnu-linux)
15983 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15984 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15985 ;;
15986
15987 unixware)
15988 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15989 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15990 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15991 ;;
15992
15993 aix4-2)
15994 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15995 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15996 ;;
15997 esac
15998 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15999 fi
16000 fi
16001
16002
16003 TOOLKIT_LIBW=
16004 case "$USE_X_TOOLKIT" in
16005 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16006 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16007 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16008 esac
16009
16010
16011 if test "$USE_X_TOOLKIT" = "none"; then
16012 LIBXT_OTHER="\$(LIBXSM)"
16013 OLDXMENU_TARGET="really-oldXMenu"
16014 else
16015 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16016 OLDXMENU_TARGET="really-lwlib"
16017 fi
16018
16019
16020 ## The X Menu stuff is present in the X10 distribution, but missing
16021 ## from X11. If we have X10, just use the installed library;
16022 ## otherwise, use our own copy.
16023 if test "${HAVE_X11}" = "yes" ; then
16024
16025 $as_echo "#define HAVE_X11 1" >>confdefs.h
16026
16027
16028 if test "$USE_X_TOOLKIT" = "none"; then
16029 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16030 else
16031 OLDXMENU="\${lwlibdir}/liblw.a"
16032 fi
16033 LIBXMENU="\$(OLDXMENU)"
16034 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16035 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16036 else
16037 ## For a syntactically valid Makefile; not actually used for anything.
16038 ## See comments in src/Makefile.in.
16039 OLDXMENU=nothing
16040 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16041 if test "${HAVE_X_WINDOWS}" = "yes"; then
16042 LIBXMENU="-lXMenu"
16043 else
16044 LIBXMENU=
16045 fi
16046 LIBX_OTHER=
16047 OLDXMENU_DEPS=
16048 fi
16049
16050 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16051 OLDXMENU_TARGET=
16052 OLDXMENU=nothing
16053 LIBXMENU=
16054 OLDXMENU_DEPS=
16055 fi
16056
16057
16058
16059
16060
16061
16062
16063 if test "${HAVE_MENUS}" = "yes" ; then
16064
16065 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16066
16067 fi
16068
16069 if test "${GNU_MALLOC}" = "yes" ; then
16070
16071 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16072
16073 fi
16074
16075 RALLOC_OBJ=
16076 if test "${REL_ALLOC}" = "yes" ; then
16077
16078 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16079
16080
16081 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16082 fi
16083
16084
16085 if test "$opsys" = "cygwin"; then
16086 CYGWIN_OBJ="sheap.o"
16087 ## Cygwin differs because of its unexec().
16088 PRE_ALLOC_OBJ=
16089 POST_ALLOC_OBJ=lastfile.o
16090 else
16091 CYGWIN_OBJ=
16092 PRE_ALLOC_OBJ=lastfile.o
16093 POST_ALLOC_OBJ=
16094 fi
16095
16096
16097
16098
16099 # Configure gnulib here, now that we know LIBS.
16100 >>>>>>> MERGE-SOURCE
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112 LIBC_FATAL_STDERR_=1
16113 export LIBC_FATAL_STDERR_
16114
16115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16116 # for constant arguments. Useless!
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16118 $as_echo_n "checking for working alloca.h... " >&6; }
16119 if test "${ac_cv_working_alloca_h+set}" = set; then :
16120 $as_echo_n "(cached) " >&6
16121 else
16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16124 #include <alloca.h>
16125 int
16126 main ()
16127 {
16128 char *p = (char *) alloca (2 * sizeof (int));
16129 if (p) return 0;
16130 ;
16131 return 0;
16132 }
16133 _ACEOF
16134 if ac_fn_c_try_link "$LINENO"; then :
16135 ac_cv_working_alloca_h=yes
16136 else
16137 ac_cv_working_alloca_h=no
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16141 fi
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16143 $as_echo "$ac_cv_working_alloca_h" >&6; }
16144 if test $ac_cv_working_alloca_h = yes; then
16145
16146 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16147
16148 fi
16149
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16151 $as_echo_n "checking for alloca... " >&6; }
16152 if test "${ac_cv_func_alloca_works+set}" = set; then :
16153 $as_echo_n "(cached) " >&6
16154 else
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157 #ifdef __GNUC__
16158 # define alloca __builtin_alloca
16159 #else
16160 # ifdef _MSC_VER
16161 # include <malloc.h>
16162 # define alloca _alloca
16163 # else
16164 # ifdef HAVE_ALLOCA_H
16165 # include <alloca.h>
16166 # else
16167 # ifdef _AIX
16168 #pragma alloca
16169 # else
16170 # ifndef alloca /* predefined by HP cc +Olibcalls */
16171 char *alloca ();
16172 # endif
16173 # endif
16174 # endif
16175 # endif
16176 #endif
16177
16178 int
16179 main ()
16180 {
16181 char *p = (char *) alloca (1);
16182 if (p) return 0;
16183 ;
16184 return 0;
16185 }
16186 _ACEOF
16187 if ac_fn_c_try_link "$LINENO"; then :
16188 ac_cv_func_alloca_works=yes
16189 else
16190 ac_cv_func_alloca_works=no
16191 fi
16192 rm -f core conftest.err conftest.$ac_objext \
16193 conftest$ac_exeext conftest.$ac_ext
16194 fi
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16196 $as_echo "$ac_cv_func_alloca_works" >&6; }
16197
16198 if test $ac_cv_func_alloca_works = yes; then
16199
16200 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16201
16202 else
16203 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16204 # that cause trouble. Some versions do not even contain alloca or
16205 # contain a buggy version. If you still want to use their alloca,
16206 # use ar to extract alloca.o from them instead of compiling alloca.c.
16207
16208
16209
16210
16211
16212 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16213
16214 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16215
16216
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16218 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16219 if test "${ac_cv_os_cray+set}" = set; then :
16220 $as_echo_n "(cached) " >&6
16221 else
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 #if defined CRAY && ! defined CRAY2
16225 webecray
16226 #else
16227 wenotbecray
16228 #endif
16229
16230 _ACEOF
16231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16232 $EGREP "webecray" >/dev/null 2>&1; then :
16233 ac_cv_os_cray=yes
16234 else
16235 ac_cv_os_cray=no
16236 fi
16237 rm -f conftest*
16238
16239 fi
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16241 $as_echo "$ac_cv_os_cray" >&6; }
16242 if test $ac_cv_os_cray = yes; then
16243 for ac_func in _getb67 GETB67 getb67; do
16244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16245 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16246 eval as_val=\$$as_ac_var
16247 if test "x$as_val" = x""yes; then :
16248
16249 cat >>confdefs.h <<_ACEOF
16250 #define CRAY_STACKSEG_END $ac_func
16251 _ACEOF
16252
16253 break
16254 fi
16255
16256 done
16257 fi
16258
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16260 $as_echo_n "checking stack direction for C alloca... " >&6; }
16261 if test "${ac_cv_c_stack_direction+set}" = set; then :
16262 $as_echo_n "(cached) " >&6
16263 else
16264 if test "$cross_compiling" = yes; then :
16265 ac_cv_c_stack_direction=0
16266 else
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 $ac_includes_default
16270 int
16271 find_stack_direction (int *addr, int depth)
16272 {
16273 int dir, dummy = 0;
16274 if (! addr)
16275 addr = &dummy;
16276 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16277 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16278 return dir + dummy;
16279 }
16280
16281 int
16282 main (int argc, char **argv)
16283 {
16284 return find_stack_direction (0, argc + !argv + 20) < 0;
16285 }
16286 _ACEOF
16287 if ac_fn_c_try_run "$LINENO"; then :
16288 ac_cv_c_stack_direction=1
16289 else
16290 ac_cv_c_stack_direction=-1
16291 fi
16292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16293 conftest.$ac_objext conftest.beam conftest.$ac_ext
16294 fi
16295
16296 fi
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16298 $as_echo "$ac_cv_c_stack_direction" >&6; }
16299 cat >>confdefs.h <<_ACEOF
16300 #define STACK_DIRECTION $ac_cv_c_stack_direction
16301 _ACEOF
16302
16303
16304 fi
16305
16306
16307
16308
16309 for ac_func in $ac_func_list
16310 do :
16311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16312 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16313 eval as_val=\$$as_ac_var
16314 if test "x$as_val" = x""yes; then :
16315 cat >>confdefs.h <<_ACEOF
16316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16317 _ACEOF
16318
16319 fi
16320 done
16321
16322
16323
16324
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16326 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16327 if test "${ac_cv_c_bigendian+set}" = set; then :
16328 $as_echo_n "(cached) " >&6
16329 else
16330 ac_cv_c_bigendian=unknown
16331 # See if we're dealing with a universal compiler.
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 #ifndef __APPLE_CC__
16335 not a universal capable compiler
16336 #endif
16337 typedef int dummy;
16338
16339 _ACEOF
16340 if ac_fn_c_try_compile "$LINENO"; then :
16341
16342 # Check for potential -arch flags. It is not universal unless
16343 # there are at least two -arch flags with different values.
16344 ac_arch=
16345 ac_prev=
16346 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16347 if test -n "$ac_prev"; then
16348 case $ac_word in
16349 i?86 | x86_64 | ppc | ppc64)
16350 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16351 ac_arch=$ac_word
16352 else
16353 ac_cv_c_bigendian=universal
16354 break
16355 fi
16356 ;;
16357 esac
16358 ac_prev=
16359 elif test "x$ac_word" = "x-arch"; then
16360 ac_prev=arch
16361 fi
16362 done
16363 fi
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 if test $ac_cv_c_bigendian = unknown; then
16366 # See if sys/param.h defines the BYTE_ORDER macro.
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16369 #include <sys/types.h>
16370 #include <sys/param.h>
16371
16372 int
16373 main ()
16374 {
16375 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16376 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16377 && LITTLE_ENDIAN)
16378 bogus endian macros
16379 #endif
16380
16381 ;
16382 return 0;
16383 }
16384 _ACEOF
16385 if ac_fn_c_try_compile "$LINENO"; then :
16386 # It does; now see whether it defined to BIG_ENDIAN or not.
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 #include <sys/types.h>
16390 #include <sys/param.h>
16391
16392 int
16393 main ()
16394 {
16395 #if BYTE_ORDER != BIG_ENDIAN
16396 not big endian
16397 #endif
16398
16399 ;
16400 return 0;
16401 }
16402 _ACEOF
16403 if ac_fn_c_try_compile "$LINENO"; then :
16404 ac_cv_c_bigendian=yes
16405 else
16406 ac_cv_c_bigendian=no
16407 fi
16408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409 fi
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 if test $ac_cv_c_bigendian = unknown; then
16413 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416 #include <limits.h>
16417
16418 int
16419 main ()
16420 {
16421 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16422 bogus endian macros
16423 #endif
16424
16425 ;
16426 return 0;
16427 }
16428 _ACEOF
16429 if ac_fn_c_try_compile "$LINENO"; then :
16430 # It does; now see whether it defined to _BIG_ENDIAN or not.
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16433 #include <limits.h>
16434
16435 int
16436 main ()
16437 {
16438 #ifndef _BIG_ENDIAN
16439 not big endian
16440 #endif
16441
16442 ;
16443 return 0;
16444 }
16445 _ACEOF
16446 if ac_fn_c_try_compile "$LINENO"; then :
16447 ac_cv_c_bigendian=yes
16448 else
16449 ac_cv_c_bigendian=no
16450 fi
16451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 fi
16455 if test $ac_cv_c_bigendian = unknown; then
16456 # Compile a test program.
16457 if test "$cross_compiling" = yes; then :
16458 # Try to guess by grepping values from an object file.
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16461 short int ascii_mm[] =
16462 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16463 short int ascii_ii[] =
16464 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16465 int use_ascii (int i) {
16466 return ascii_mm[i] + ascii_ii[i];
16467 }
16468 short int ebcdic_ii[] =
16469 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16470 short int ebcdic_mm[] =
16471 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16472 int use_ebcdic (int i) {
16473 return ebcdic_mm[i] + ebcdic_ii[i];
16474 }
16475 extern int foo;
16476
16477 int
16478 main ()
16479 {
16480 return use_ascii (foo) == use_ebcdic (foo);
16481 ;
16482 return 0;
16483 }
16484 _ACEOF
16485 if ac_fn_c_try_compile "$LINENO"; then :
16486 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16487 ac_cv_c_bigendian=yes
16488 fi
16489 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16490 if test "$ac_cv_c_bigendian" = unknown; then
16491 ac_cv_c_bigendian=no
16492 else
16493 # finding both strings is unlikely to happen, but who knows?
16494 ac_cv_c_bigendian=unknown
16495 fi
16496 fi
16497 fi
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499 else
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502 $ac_includes_default
16503 int
16504 main ()
16505 {
16506
16507 /* Are we little or big endian? From Harbison&Steele. */
16508 union
16509 {
16510 long int l;
16511 char c[sizeof (long int)];
16512 } u;
16513 u.l = 1;
16514 return u.c[sizeof (long int) - 1] == 1;
16515
16516 ;
16517 return 0;
16518 }
16519 _ACEOF
16520 if ac_fn_c_try_run "$LINENO"; then :
16521 ac_cv_c_bigendian=no
16522 else
16523 ac_cv_c_bigendian=yes
16524 fi
16525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16526 conftest.$ac_objext conftest.beam conftest.$ac_ext
16527 fi
16528
16529 fi
16530 fi
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16532 $as_echo "$ac_cv_c_bigendian" >&6; }
16533 case $ac_cv_c_bigendian in #(
16534 yes)
16535 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16536 ;; #(
16537 no)
16538 ;; #(
16539 universal)
16540
16541 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16542
16543 ;; #(
16544 *)
16545 as_fn_error "unknown endianness
16546 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16547 esac
16548
16549
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16551 $as_echo_n "checking for inline... " >&6; }
16552 if test "${ac_cv_c_inline+set}" = set; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 ac_cv_c_inline=no
16556 for ac_kw in inline __inline__ __inline; do
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559 #ifndef __cplusplus
16560 typedef int foo_t;
16561 static $ac_kw foo_t static_foo () {return 0; }
16562 $ac_kw foo_t foo () {return 0; }
16563 #endif
16564
16565 _ACEOF
16566 if ac_fn_c_try_compile "$LINENO"; then :
16567 ac_cv_c_inline=$ac_kw
16568 fi
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 test "$ac_cv_c_inline" != no && break
16571 done
16572
16573 fi
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16575 $as_echo "$ac_cv_c_inline" >&6; }
16576
16577 case $ac_cv_c_inline in
16578 inline | yes) ;;
16579 *)
16580 case $ac_cv_c_inline in
16581 no) ac_val=;;
16582 *) ac_val=$ac_cv_c_inline;;
16583 esac
16584 cat >>confdefs.h <<_ACEOF
16585 #ifndef __cplusplus
16586 #define inline $ac_val
16587 #endif
16588 _ACEOF
16589 ;;
16590 esac
16591
16592
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16594 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16595 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16596 $as_echo_n "(cached) " >&6
16597 else
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 /* On HP-UX before 11.23, strtold returns a struct instead of
16601 long double. Reject implementations like that, by requiring
16602 compatibility with the C99 prototype. */
16603 #include <stdlib.h>
16604 static long double (*p) (char const *, char **) = strtold;
16605 static long double
16606 test (char const *nptr, char **endptr)
16607 {
16608 long double r;
16609 r = strtold (nptr, endptr);
16610 return r;
16611 }
16612 int
16613 main ()
16614 {
16615 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16616 ;
16617 return 0;
16618 }
16619 _ACEOF
16620 if ac_fn_c_try_link "$LINENO"; then :
16621 gl_cv_func_c99_strtold=yes
16622 else
16623 gl_cv_func_c99_strtold=no
16624 fi
16625 rm -f core conftest.err conftest.$ac_objext \
16626 conftest$ac_exeext conftest.$ac_ext
16627 fi
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16629 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16630 if test $gl_cv_func_c99_strtold = yes; then
16631
16632 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16633
16634 fi
16635
16636
16637 GNULIB_CHOWN=0;
16638 GNULIB_CLOSE=0;
16639 GNULIB_DUP2=0;
16640 GNULIB_DUP3=0;
16641 GNULIB_ENVIRON=0;
16642 GNULIB_EUIDACCESS=0;
16643 GNULIB_FACCESSAT=0;
16644 GNULIB_FCHDIR=0;
16645 GNULIB_FCHOWNAT=0;
16646 GNULIB_FSYNC=0;
16647 GNULIB_FTRUNCATE=0;
16648 GNULIB_GETCWD=0;
16649 GNULIB_GETDOMAINNAME=0;
16650 GNULIB_GETDTABLESIZE=0;
16651 GNULIB_GETGROUPS=0;
16652 GNULIB_GETHOSTNAME=0;
16653 GNULIB_GETLOGIN=0;
16654 GNULIB_GETLOGIN_R=0;
16655 GNULIB_GETPAGESIZE=0;
16656 GNULIB_GETUSERSHELL=0;
16657 GNULIB_GROUP_MEMBER=0;
16658 GNULIB_LCHOWN=0;
16659 GNULIB_LINK=0;
16660 GNULIB_LINKAT=0;
16661 GNULIB_LSEEK=0;
16662 GNULIB_PIPE=0;
16663 GNULIB_PIPE2=0;
16664 GNULIB_PREAD=0;
16665 GNULIB_PWRITE=0;
16666 GNULIB_READ=0;
16667 GNULIB_READLINK=0;
16668 GNULIB_READLINKAT=0;
16669 GNULIB_RMDIR=0;
16670 GNULIB_SLEEP=0;
16671 GNULIB_SYMLINK=0;
16672 GNULIB_SYMLINKAT=0;
16673 GNULIB_TTYNAME_R=0;
16674 GNULIB_UNISTD_H_GETOPT=0;
16675 GNULIB_UNISTD_H_NONBLOCKING=0;
16676 GNULIB_UNISTD_H_SIGPIPE=0;
16677 GNULIB_UNLINK=0;
16678 GNULIB_UNLINKAT=0;
16679 GNULIB_USLEEP=0;
16680 GNULIB_WRITE=0;
16681 HAVE_CHOWN=1;
16682 HAVE_DUP2=1;
16683 HAVE_DUP3=1;
16684 HAVE_EUIDACCESS=1;
16685 HAVE_FACCESSAT=1;
16686 HAVE_FCHDIR=1;
16687 HAVE_FCHOWNAT=1;
16688 HAVE_FSYNC=1;
16689 HAVE_FTRUNCATE=1;
16690 HAVE_GETDTABLESIZE=1;
16691 HAVE_GETGROUPS=1;
16692 HAVE_GETHOSTNAME=1;
16693 HAVE_GETLOGIN=1;
16694 HAVE_GETPAGESIZE=1;
16695 HAVE_GROUP_MEMBER=1;
16696 HAVE_LCHOWN=1;
16697 HAVE_LINK=1;
16698 HAVE_LINKAT=1;
16699 HAVE_PIPE=1;
16700 HAVE_PIPE2=1;
16701 HAVE_PREAD=1;
16702 HAVE_PWRITE=1;
16703 HAVE_READLINK=1;
16704 HAVE_READLINKAT=1;
16705 HAVE_SLEEP=1;
16706 HAVE_SYMLINK=1;
16707 HAVE_SYMLINKAT=1;
16708 HAVE_UNLINKAT=1;
16709 HAVE_USLEEP=1;
16710 HAVE_DECL_ENVIRON=1;
16711 HAVE_DECL_FCHDIR=1;
16712 HAVE_DECL_GETDOMAINNAME=1;
16713 HAVE_DECL_GETLOGIN_R=1;
16714 HAVE_DECL_GETPAGESIZE=1;
16715 HAVE_DECL_GETUSERSHELL=1;
16716 HAVE_DECL_TTYNAME_R=1;
16717 HAVE_OS_H=0;
16718 HAVE_SYS_PARAM_H=0;
16719 REPLACE_CHOWN=0;
16720 REPLACE_CLOSE=0;
16721 REPLACE_DUP=0;
16722 REPLACE_DUP2=0;
16723 REPLACE_FCHOWNAT=0;
16724 REPLACE_GETCWD=0;
16725 REPLACE_GETDOMAINNAME=0;
16726 REPLACE_GETLOGIN_R=0;
16727 REPLACE_GETGROUPS=0;
16728 REPLACE_GETPAGESIZE=0;
16729 REPLACE_LCHOWN=0;
16730 REPLACE_LINK=0;
16731 REPLACE_LINKAT=0;
16732 REPLACE_LSEEK=0;
16733 REPLACE_PREAD=0;
16734 REPLACE_PWRITE=0;
16735 REPLACE_READ=0;
16736 REPLACE_READLINK=0;
16737 REPLACE_RMDIR=0;
16738 REPLACE_SLEEP=0;
16739 REPLACE_SYMLINK=0;
16740 REPLACE_TTYNAME_R=0;
16741 REPLACE_UNLINK=0;
16742 REPLACE_UNLINKAT=0;
16743 REPLACE_USLEEP=0;
16744 REPLACE_WRITE=0;
16745 UNISTD_H_HAVE_WINSOCK2_H=0;
16746 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16747
16748
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16750 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16751 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16752 $as_echo_n "(cached) " >&6
16753 else
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16756
16757 #include <sys/types.h>
16758 #include <sys/stat.h>
16759 int
16760 main ()
16761 {
16762 struct stat s; s.st_dm_mode;
16763 ;
16764 return 0;
16765 }
16766 _ACEOF
16767 if ac_fn_c_try_compile "$LINENO"; then :
16768 ac_cv_struct_st_dm_mode=yes
16769 else
16770 ac_cv_struct_st_dm_mode=no
16771 fi
16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16773 fi
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16775 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16776
16777 if test $ac_cv_struct_st_dm_mode = yes; then
16778
16779 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16780
16781 fi
16782
16783
16784 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16785 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16786 ac_have_decl=1
16787 else
16788 ac_have_decl=0
16789 fi
16790
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_DECL_STRMODE $ac_have_decl
16793 _ACEOF
16794
16795
16796 GNULIB__EXIT=0;
16797 GNULIB_ATOLL=0;
16798 GNULIB_CALLOC_POSIX=0;
16799 GNULIB_CANONICALIZE_FILE_NAME=0;
16800 GNULIB_GETLOADAVG=0;
16801 GNULIB_GETSUBOPT=0;
16802 GNULIB_GRANTPT=0;
16803 GNULIB_MALLOC_POSIX=0;
16804 GNULIB_MBTOWC=0;
16805 GNULIB_MKDTEMP=0;
16806 GNULIB_MKOSTEMP=0;
16807 GNULIB_MKOSTEMPS=0;
16808 GNULIB_MKSTEMP=0;
16809 GNULIB_MKSTEMPS=0;
16810 GNULIB_PTSNAME=0;
16811 GNULIB_PUTENV=0;
16812 GNULIB_RANDOM_R=0;
16813 GNULIB_REALLOC_POSIX=0;
16814 GNULIB_REALPATH=0;
16815 GNULIB_RPMATCH=0;
16816 GNULIB_SETENV=0;
16817 GNULIB_STRTOD=0;
16818 GNULIB_STRTOLL=0;
16819 GNULIB_STRTOULL=0;
16820 GNULIB_SYSTEM_POSIX=0;
16821 GNULIB_UNLOCKPT=0;
16822 GNULIB_UNSETENV=0;
16823 GNULIB_WCTOMB=0;
16824 HAVE__EXIT=1;
16825 HAVE_ATOLL=1;
16826 HAVE_CANONICALIZE_FILE_NAME=1;
16827 HAVE_DECL_GETLOADAVG=1;
16828 HAVE_GETSUBOPT=1;
16829 HAVE_GRANTPT=1;
16830 HAVE_MKDTEMP=1;
16831 HAVE_MKOSTEMP=1;
16832 HAVE_MKOSTEMPS=1;
16833 HAVE_MKSTEMP=1;
16834 HAVE_MKSTEMPS=1;
16835 HAVE_PTSNAME=1;
16836 HAVE_RANDOM_H=1;
16837 HAVE_RANDOM_R=1;
16838 HAVE_REALPATH=1;
16839 HAVE_RPMATCH=1;
16840 HAVE_SETENV=1;
16841 HAVE_DECL_SETENV=1;
16842 HAVE_STRTOD=1;
16843 HAVE_STRTOLL=1;
16844 HAVE_STRTOULL=1;
16845 HAVE_STRUCT_RANDOM_DATA=1;
16846 HAVE_SYS_LOADAVG_H=0;
16847 HAVE_UNLOCKPT=1;
16848 HAVE_DECL_UNSETENV=1;
16849 REPLACE_CALLOC=0;
16850 REPLACE_CANONICALIZE_FILE_NAME=0;
16851 REPLACE_MALLOC=0;
16852 REPLACE_MBTOWC=0;
16853 REPLACE_MKSTEMP=0;
16854 REPLACE_PUTENV=0;
16855 REPLACE_REALLOC=0;
16856 REPLACE_REALPATH=0;
16857 REPLACE_SETENV=0;
16858 REPLACE_STRTOD=0;
16859 REPLACE_UNSETENV=0;
16860 REPLACE_WCTOMB=0;
16861
16862
16863
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16865 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16866 if test "${gl_cv_have_include_next+set}" = set; then :
16867 $as_echo_n "(cached) " >&6
16868 else
16869 rm -rf conftestd1a conftestd1b conftestd2
16870 mkdir conftestd1a conftestd1b conftestd2
16871 cat <<EOF > conftestd1a/conftest.h
16872 #define DEFINED_IN_CONFTESTD1
16873 #include_next <conftest.h>
16874 #ifdef DEFINED_IN_CONFTESTD2
16875 int foo;
16876 #else
16877 #error "include_next doesn't work"
16878 #endif
16879 EOF
16880 cat <<EOF > conftestd1b/conftest.h
16881 #define DEFINED_IN_CONFTESTD1
16882 #include <stdio.h>
16883 #include_next <conftest.h>
16884 #ifdef DEFINED_IN_CONFTESTD2
16885 int foo;
16886 #else
16887 #error "include_next doesn't work"
16888 #endif
16889 EOF
16890 cat <<EOF > conftestd2/conftest.h
16891 #ifndef DEFINED_IN_CONFTESTD1
16892 #error "include_next test doesn't work"
16893 #endif
16894 #define DEFINED_IN_CONFTESTD2
16895 EOF
16896 gl_save_CPPFLAGS="$CPPFLAGS"
16897 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h. */
16900 #include <conftest.h>
16901 _ACEOF
16902 if ac_fn_c_try_compile "$LINENO"; then :
16903 gl_cv_have_include_next=yes
16904 else
16905 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h. */
16908 #include <conftest.h>
16909 _ACEOF
16910 if ac_fn_c_try_compile "$LINENO"; then :
16911 gl_cv_have_include_next=buggy
16912 else
16913 gl_cv_have_include_next=no
16914 fi
16915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16916
16917 fi
16918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919 CPPFLAGS="$gl_save_CPPFLAGS"
16920 rm -rf conftestd1a conftestd1b conftestd2
16921
16922 fi
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16924 $as_echo "$gl_cv_have_include_next" >&6; }
16925 PRAGMA_SYSTEM_HEADER=
16926 if test $gl_cv_have_include_next = yes; then
16927 INCLUDE_NEXT=include_next
16928 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16929 if test -n "$GCC"; then
16930 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16931 fi
16932 else
16933 if test $gl_cv_have_include_next = buggy; then
16934 INCLUDE_NEXT=include
16935 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16936 else
16937 INCLUDE_NEXT=include
16938 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16939 fi
16940 fi
16941
16942
16943
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16945 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16946 if test "${gl_cv_pragma_columns+set}" = set; then :
16947 $as_echo_n "(cached) " >&6
16948 else
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16951
16952 #ifdef __TANDEM
16953 choke me
16954 #endif
16955
16956 _ACEOF
16957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16958 $EGREP "choke me" >/dev/null 2>&1; then :
16959 gl_cv_pragma_columns=yes
16960 else
16961 gl_cv_pragma_columns=no
16962 fi
16963 rm -f conftest*
16964
16965
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16968 $as_echo "$gl_cv_pragma_columns" >&6; }
16969 if test $gl_cv_pragma_columns = yes; then
16970 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16971 else
16972 PRAGMA_COLUMNS=
16973 fi
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991 if test $gl_cv_have_include_next = yes; then
16992 gl_cv_next_getopt_h='<'getopt.h'>'
16993 else
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16995 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16996 if test "${gl_cv_next_getopt_h+set}" = set; then :
16997 $as_echo_n "(cached) " >&6
16998 else
16999
17000 if test $ac_cv_header_getopt_h = yes; then
17001
17002
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17005 #include <getopt.h>
17006
17007 _ACEOF
17008 case "$host_os" in
17009 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17010 *) gl_absname_cpp="$ac_cpp" ;;
17011 esac
17012
17013 case "$host_os" in
17014 mingw*)
17015 gl_dirsep_regex='[/\\]'
17016 ;;
17017 *)
17018 gl_dirsep_regex='/'
17019 ;;
17020 esac
17021
17022 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'getopt.h#{
17023 s#.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*#\1#
17024 s#^/[^/]#//&#
17025 p
17026 q
17027 }'
17028 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17029 sed -n "$gl_absolute_header_sed"`'"'
17030 else
17031 gl_cv_next_getopt_h='<'getopt.h'>'
17032 fi
17033
17034
17035 fi
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17037 $as_echo "$gl_cv_next_getopt_h" >&6; }
17038 fi
17039 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17040
17041 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17042 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17043 gl_next_as_first_directive='<'getopt.h'>'
17044 else
17045 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17046 gl_next_as_first_directive=$gl_cv_next_getopt_h
17047 fi
17048 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17049
17050
17051
17052
17053 if test $ac_cv_header_getopt_h = yes; then
17054 HAVE_GETOPT_H=1
17055 else
17056 HAVE_GETOPT_H=0
17057 fi
17058
17059
17060 gl_replace_getopt=
17061
17062 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17063 for ac_header in getopt.h
17064 do :
17065 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17066 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17067 cat >>confdefs.h <<_ACEOF
17068 #define HAVE_GETOPT_H 1
17069 _ACEOF
17070
17071 else
17072 gl_replace_getopt=yes
17073 fi
17074
17075 done
17076
17077 fi
17078
17079 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17080 for ac_func in getopt_long_only
17081 do :
17082 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17083 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17084 cat >>confdefs.h <<_ACEOF
17085 #define HAVE_GETOPT_LONG_ONLY 1
17086 _ACEOF
17087
17088 else
17089 gl_replace_getopt=yes
17090 fi
17091 done
17092
17093 fi
17094
17095 if test -z "$gl_replace_getopt"; then
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17097 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17098 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17099 $as_echo_n "(cached) " >&6
17100 else
17101
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h. */
17104 #include <unistd.h>
17105 int
17106 main ()
17107 {
17108 int *p = &optreset; return optreset;
17109 ;
17110 return 0;
17111 }
17112 _ACEOF
17113 if ac_fn_c_try_compile "$LINENO"; then :
17114 gl_optind_min=1
17115 else
17116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17117 /* end confdefs.h. */
17118 #include <getopt.h>
17119 int
17120 main ()
17121 {
17122 return !getopt_clip;
17123 ;
17124 return 0;
17125 }
17126 _ACEOF
17127 if ac_fn_c_try_compile "$LINENO"; then :
17128 gl_optind_min=1
17129 else
17130 gl_optind_min=0
17131 fi
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133 fi
17134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135
17136 gl_save_CPPFLAGS=$CPPFLAGS
17137 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17138 if test "$cross_compiling" = yes; then :
17139 case "$host_os" in
17140 mingw*) gl_cv_func_getopt_posix="guessing no";;
17141 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17142 *) gl_cv_func_getopt_posix="guessing yes";;
17143 esac
17144
17145 else
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17148
17149 #include <unistd.h>
17150 #include <stdlib.h>
17151 #include <string.h>
17152
17153 int
17154 main ()
17155 {
17156 {
17157 int argc = 0;
17158 char *argv[10];
17159 int c;
17160
17161 argv[argc++] = "program";
17162 argv[argc++] = "-a";
17163 argv[argc++] = "foo";
17164 argv[argc++] = "bar";
17165 argv[argc] = NULL;
17166 optind = OPTIND_MIN;
17167 opterr = 0;
17168
17169 c = getopt (argc, argv, "ab");
17170 if (!(c == 'a'))
17171 return 1;
17172 c = getopt (argc, argv, "ab");
17173 if (!(c == -1))
17174 return 2;
17175 if (!(optind == 2))
17176 return 3;
17177 }
17178 /* Some internal state exists at this point. */
17179 {
17180 int argc = 0;
17181 char *argv[10];
17182 int c;
17183
17184 argv[argc++] = "program";
17185 argv[argc++] = "donald";
17186 argv[argc++] = "-p";
17187 argv[argc++] = "billy";
17188 argv[argc++] = "duck";
17189 argv[argc++] = "-a";
17190 argv[argc++] = "bar";
17191 argv[argc] = NULL;
17192 optind = OPTIND_MIN;
17193 opterr = 0;
17194
17195 c = getopt (argc, argv, "+abp:q:");
17196 if (!(c == -1))
17197 return 4;
17198 if (!(strcmp (argv[0], "program") == 0))
17199 return 5;
17200 if (!(strcmp (argv[1], "donald") == 0))
17201 return 6;
17202 if (!(strcmp (argv[2], "-p") == 0))
17203 return 7;
17204 if (!(strcmp (argv[3], "billy") == 0))
17205 return 8;
17206 if (!(strcmp (argv[4], "duck") == 0))
17207 return 9;
17208 if (!(strcmp (argv[5], "-a") == 0))
17209 return 10;
17210 if (!(strcmp (argv[6], "bar") == 0))
17211 return 11;
17212 if (!(optind == 1))
17213 return 12;
17214 }
17215 /* Detect MacOS 10.5, AIX 7.1 bug. */
17216 {
17217 char *argv[3] = { "program", "-ab", NULL };
17218 optind = OPTIND_MIN;
17219 opterr = 0;
17220 if (getopt (2, argv, "ab:") != 'a')
17221 return 13;
17222 if (getopt (2, argv, "ab:") != '?')
17223 return 14;
17224 if (optopt != 'b')
17225 return 15;
17226 if (optind != 2)
17227 return 16;
17228 }
17229
17230 return 0;
17231 }
17232
17233 _ACEOF
17234 if ac_fn_c_try_run "$LINENO"; then :
17235 gl_cv_func_getopt_posix=yes
17236 else
17237 gl_cv_func_getopt_posix=no
17238 fi
17239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17240 conftest.$ac_objext conftest.beam conftest.$ac_ext
17241 fi
17242
17243 CPPFLAGS=$gl_save_CPPFLAGS
17244
17245 fi
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17247 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17248 case "$gl_cv_func_getopt_posix" in
17249 *no) gl_replace_getopt=yes ;;
17250 esac
17251 fi
17252
17253 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17255 $as_echo_n "checking for working GNU getopt function... " >&6; }
17256 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17257 $as_echo_n "(cached) " >&6
17258 else
17259 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17260 # optstring is necessary for programs like m4 that have POSIX-mandated
17261 # semantics for supporting options interspersed with files.
17262 # Also, since getopt_long is a GNU extension, we require optind=0.
17263 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17264 # so take care to revert to the correct (non-)export state.
17265 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17266 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17267 xx) gl_had_POSIXLY_CORRECT=exported ;;
17268 x) gl_had_POSIXLY_CORRECT=yes ;;
17269 *) gl_had_POSIXLY_CORRECT= ;;
17270 esac
17271 POSIXLY_CORRECT=1
17272 export POSIXLY_CORRECT
17273 if test "$cross_compiling" = yes; then :
17274 case $host_os:$ac_cv_have_decl_optreset in
17275 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17276 *:yes) gl_cv_func_getopt_gnu=no;;
17277 *) gl_cv_func_getopt_gnu=yes;;
17278 esac
17279
17280 else
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283 #include <getopt.h>
17284 #include <stddef.h>
17285 #include <string.h>
17286
17287 #include <stdlib.h>
17288 #if defined __MACH__ && defined __APPLE__
17289 /* Avoid a crash on MacOS X. */
17290 #include <mach/mach.h>
17291 #include <mach/mach_error.h>
17292 #include <mach/thread_status.h>
17293 #include <mach/exception.h>
17294 #include <mach/task.h>
17295 #include <pthread.h>
17296 /* The exception port on which our thread listens. */
17297 static mach_port_t our_exception_port;
17298 /* The main function of the thread listening for exceptions of type
17299 EXC_BAD_ACCESS. */
17300 static void *
17301 mach_exception_thread (void *arg)
17302 {
17303 /* Buffer for a message to be received. */
17304 struct {
17305 mach_msg_header_t head;
17306 mach_msg_body_t msgh_body;
17307 char data[1024];
17308 } msg;
17309 mach_msg_return_t retval;
17310 /* Wait for a message on the exception port. */
17311 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17312 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17313 if (retval != MACH_MSG_SUCCESS)
17314 abort ();
17315 exit (1);
17316 }
17317 static void
17318 nocrash_init (void)
17319 {
17320 mach_port_t self = mach_task_self ();
17321 /* Allocate a port on which the thread shall listen for exceptions. */
17322 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17323 == KERN_SUCCESS) {
17324 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17325 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17326 MACH_MSG_TYPE_MAKE_SEND)
17327 == KERN_SUCCESS) {
17328 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17329 for us. */
17330 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17331 /* Create the thread listening on the exception port. */
17332 pthread_attr_t attr;
17333 pthread_t thread;
17334 if (pthread_attr_init (&attr) == 0
17335 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17336 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17337 pthread_attr_destroy (&attr);
17338 /* Replace the exception port info for these exceptions with our own.
17339 Note that we replace the exception port for the entire task, not only
17340 for a particular thread. This has the effect that when our exception
17341 port gets the message, the thread specific exception port has already
17342 been asked, and we don't need to bother about it.
17343 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17344 task_set_exception_ports (self, mask, our_exception_port,
17345 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17346 }
17347 }
17348 }
17349 }
17350 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17351 /* Avoid a crash on native Windows. */
17352 #define WIN32_LEAN_AND_MEAN
17353 #include <windows.h>
17354 #include <winerror.h>
17355 static LONG WINAPI
17356 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17357 {
17358 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17359 {
17360 case EXCEPTION_ACCESS_VIOLATION:
17361 case EXCEPTION_IN_PAGE_ERROR:
17362 case EXCEPTION_STACK_OVERFLOW:
17363 case EXCEPTION_GUARD_PAGE:
17364 case EXCEPTION_PRIV_INSTRUCTION:
17365 case EXCEPTION_ILLEGAL_INSTRUCTION:
17366 case EXCEPTION_DATATYPE_MISALIGNMENT:
17367 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17368 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17369 exit (1);
17370 }
17371 return EXCEPTION_CONTINUE_SEARCH;
17372 }
17373 static void
17374 nocrash_init (void)
17375 {
17376 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17377 }
17378 #else
17379 /* Avoid a crash on POSIX systems. */
17380 #include <signal.h>
17381 /* A POSIX signal handler. */
17382 static void
17383 exception_handler (int sig)
17384 {
17385 exit (1);
17386 }
17387 static void
17388 nocrash_init (void)
17389 {
17390 #ifdef SIGSEGV
17391 signal (SIGSEGV, exception_handler);
17392 #endif
17393 #ifdef SIGBUS
17394 signal (SIGBUS, exception_handler);
17395 #endif
17396 }
17397 #endif
17398
17399
17400 int
17401 main ()
17402 {
17403
17404 int result = 0;
17405
17406 nocrash_init();
17407
17408 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17409 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17410 OSF/1 5.1, Solaris 10. */
17411 {
17412 char *myargv[3];
17413 myargv[0] = "conftest";
17414 myargv[1] = "-+";
17415 myargv[2] = 0;
17416 opterr = 0;
17417 if (getopt (2, myargv, "+a") != '?')
17418 result |= 1;
17419 }
17420 /* This code succeeds on glibc 2.8, mingw,
17421 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17422 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17423 {
17424 char *argv[] = { "program", "-p", "foo", "bar", NULL };
17425
17426 optind = 1;
17427 if (getopt (4, argv, "p::") != 'p')
17428 result |= 2;
17429 else if (optarg != NULL)
17430 result |= 4;
17431 else if (getopt (4, argv, "p::") != -1)
17432 result |= 6;
17433 else if (optind != 2)
17434 result |= 8;
17435 }
17436 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17437 {
17438 char *argv[] = { "program", "foo", "-p", NULL };
17439 optind = 0;
17440 if (getopt (3, argv, "-p") != 1)
17441 result |= 16;
17442 else if (getopt (3, argv, "-p") != 'p')
17443 result |= 32;
17444 }
17445 /* This code fails on glibc 2.11. */
17446 {
17447 char *argv[] = { "program", "-b", "-a", NULL };
17448 optind = opterr = 0;
17449 if (getopt (3, argv, "+:a:b") != 'b')
17450 result |= 64;
17451 else if (getopt (3, argv, "+:a:b") != ':')
17452 result |= 64;
17453 }
17454 return result;
17455
17456 ;
17457 return 0;
17458 }
17459 _ACEOF
17460 if ac_fn_c_try_run "$LINENO"; then :
17461 gl_cv_func_getopt_gnu=yes
17462 else
17463 gl_cv_func_getopt_gnu=no
17464 fi
17465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17466 conftest.$ac_objext conftest.beam conftest.$ac_ext
17467 fi
17468
17469 case $gl_had_POSIXLY_CORRECT in
17470 exported) ;;
17471 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17472 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17473 esac
17474
17475 fi
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17477 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17478 if test "$gl_cv_func_getopt_gnu" = "no"; then
17479 gl_replace_getopt=yes
17480 fi
17481 fi
17482
17483
17484
17485
17486
17487 REPLACE_GETOPT=0
17488
17489
17490 if test -n "$gl_replace_getopt"; then :
17491
17492 REPLACE_GETOPT=1
17493
17494 fi
17495
17496
17497 if test $REPLACE_GETOPT = 1; then
17498
17499 GETOPT_H=getopt.h
17500
17501 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17502
17503
17504
17505 GNULIB_UNISTD_H_GETOPT=1
17506 fi
17507
17508 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17509 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17510 ac_have_decl=1
17511 else
17512 ac_have_decl=0
17513 fi
17514
17515 cat >>confdefs.h <<_ACEOF
17516 #define HAVE_DECL_GETENV $ac_have_decl
17517 _ACEOF
17518
17519
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17521 $as_echo_n "checking for unsigned long long int... " >&6; }
17522 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17523 $as_echo_n "(cached) " >&6
17524 else
17525 ac_cv_type_unsigned_long_long_int=yes
17526 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529
17530 /* For now, do not test the preprocessor; as of 2007 there are too many
17531 implementations with broken preprocessors. Perhaps this can
17532 be revisited in 2012. In the meantime, code should not expect
17533 #if to work with literals wider than 32 bits. */
17534 /* Test literals. */
17535 long long int ll = 9223372036854775807ll;
17536 long long int nll = -9223372036854775807LL;
17537 unsigned long long int ull = 18446744073709551615ULL;
17538 /* Test constant expressions. */
17539 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17540 ? 1 : -1)];
17541 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17542 ? 1 : -1)];
17543 int i = 63;
17544 int
17545 main ()
17546 {
17547 /* Test availability of runtime routines for shift and division. */
17548 long long int llmax = 9223372036854775807ll;
17549 unsigned long long int ullmax = 18446744073709551615ull;
17550 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17551 | (llmax / ll) | (llmax % ll)
17552 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17553 | (ullmax / ull) | (ullmax % ull));
17554 ;
17555 return 0;
17556 }
17557
17558 _ACEOF
17559 if ac_fn_c_try_link "$LINENO"; then :
17560
17561 else
17562 ac_cv_type_unsigned_long_long_int=no
17563 fi
17564 rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17566 fi
17567 fi
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17569 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17570 if test $ac_cv_type_unsigned_long_long_int = yes; then
17571
17572 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17573
17574 fi
17575
17576
17577
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17579 $as_echo_n "checking for long long int... " >&6; }
17580 if test "${ac_cv_type_long_long_int+set}" = set; then :
17581 $as_echo_n "(cached) " >&6
17582 else
17583 ac_cv_type_long_long_int=yes
17584 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17585 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17586 if test $ac_cv_type_long_long_int = yes; then
17587 if test "$cross_compiling" = yes; then :
17588 :
17589 else
17590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17591 /* end confdefs.h. */
17592 #include <limits.h>
17593 #ifndef LLONG_MAX
17594 # define HALF \
17595 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17596 # define LLONG_MAX (HALF - 1 + HALF)
17597 #endif
17598 int
17599 main ()
17600 {
17601 long long int n = 1;
17602 int i;
17603 for (i = 0; ; i++)
17604 {
17605 long long int m = n << i;
17606 if (m >> i != n)
17607 return 1;
17608 if (LLONG_MAX / 2 < m)
17609 break;
17610 }
17611 return 0;
17612 ;
17613 return 0;
17614 }
17615 _ACEOF
17616 if ac_fn_c_try_run "$LINENO"; then :
17617
17618 else
17619 ac_cv_type_long_long_int=no
17620 fi
17621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17622 conftest.$ac_objext conftest.beam conftest.$ac_ext
17623 fi
17624
17625 fi
17626 fi
17627 fi
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17629 $as_echo "$ac_cv_type_long_long_int" >&6; }
17630 if test $ac_cv_type_long_long_int = yes; then
17631
17632 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17633
17634 fi
17635
17636
17637
17638
17639
17640
17641 gl_cv_c_multiarch=no
17642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17643 /* end confdefs.h. */
17644 #ifndef __APPLE_CC__
17645 not a universal capable compiler
17646 #endif
17647 typedef int dummy;
17648
17649 _ACEOF
17650 if ac_fn_c_try_compile "$LINENO"; then :
17651
17652 arch=
17653 prev=
17654 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17655 if test -n "$prev"; then
17656 case $word in
17657 i?86 | x86_64 | ppc | ppc64)
17658 if test -z "$arch" || test "$arch" = "$word"; then
17659 arch="$word"
17660 else
17661 gl_cv_c_multiarch=yes
17662 fi
17663 ;;
17664 esac
17665 prev=
17666 else
17667 if test "x$word" = "x-arch"; then
17668 prev=arch
17669 fi
17670 fi
17671 done
17672
17673 fi
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 if test $gl_cv_c_multiarch = yes; then
17676 APPLE_UNIVERSAL_BUILD=1
17677 else
17678 APPLE_UNIVERSAL_BUILD=0
17679 fi
17680
17681
17682
17683
17684
17685 if test $ac_cv_type_long_long_int = yes; then
17686 HAVE_LONG_LONG_INT=1
17687 else
17688 HAVE_LONG_LONG_INT=0
17689 fi
17690
17691
17692 if test $ac_cv_type_unsigned_long_long_int = yes; then
17693 HAVE_UNSIGNED_LONG_LONG_INT=1
17694 else
17695 HAVE_UNSIGNED_LONG_LONG_INT=0
17696 fi
17697
17698
17699
17700 if test $ac_cv_header_wchar_h = yes; then
17701 HAVE_WCHAR_H=1
17702 else
17703 HAVE_WCHAR_H=0
17704 fi
17705
17706
17707 if test $ac_cv_header_inttypes_h = yes; then
17708 HAVE_INTTYPES_H=1
17709 else
17710 HAVE_INTTYPES_H=0
17711 fi
17712
17713
17714 if test $ac_cv_header_sys_types_h = yes; then
17715 HAVE_SYS_TYPES_H=1
17716 else
17717 HAVE_SYS_TYPES_H=0
17718 fi
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730 if test $gl_cv_have_include_next = yes; then
17731 gl_cv_next_stdint_h='<'stdint.h'>'
17732 else
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17734 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17735 if test "${gl_cv_next_stdint_h+set}" = set; then :
17736 $as_echo_n "(cached) " >&6
17737 else
17738
17739 if test $ac_cv_header_stdint_h = yes; then
17740
17741
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17744 #include <stdint.h>
17745
17746 _ACEOF
17747 case "$host_os" in
17748 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17749 *) gl_absname_cpp="$ac_cpp" ;;
17750 esac
17751
17752 case "$host_os" in
17753 mingw*)
17754 gl_dirsep_regex='[/\\]'
17755 ;;
17756 *)
17757 gl_dirsep_regex='/'
17758 ;;
17759 esac
17760
17761 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdint.h#{
17762 s#.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*#\1#
17763 s#^/[^/]#//&#
17764 p
17765 q
17766 }'
17767 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17768 sed -n "$gl_absolute_header_sed"`'"'
17769 else
17770 gl_cv_next_stdint_h='<'stdint.h'>'
17771 fi
17772
17773
17774 fi
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17776 $as_echo "$gl_cv_next_stdint_h" >&6; }
17777 fi
17778 NEXT_STDINT_H=$gl_cv_next_stdint_h
17779
17780 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17782 gl_next_as_first_directive='<'stdint.h'>'
17783 else
17784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17785 gl_next_as_first_directive=$gl_cv_next_stdint_h
17786 fi
17787 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17788
17789
17790
17791
17792 if test $ac_cv_header_stdint_h = yes; then
17793 HAVE_STDINT_H=1
17794 else
17795 HAVE_STDINT_H=0
17796 fi
17797
17798
17799 if test $ac_cv_header_stdint_h = yes; then
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17801 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17802 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17803 $as_echo_n "(cached) " >&6
17804 else
17805 gl_cv_header_working_stdint_h=no
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808
17809
17810 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17811 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17812 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17813 #include <stdint.h>
17814 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17815 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17816 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17817 #endif
17818
17819
17820 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17821 included before <wchar.h>. */
17822 #include <stddef.h>
17823 #include <signal.h>
17824 #if HAVE_WCHAR_H
17825 # include <stdio.h>
17826 # include <time.h>
17827 # include <wchar.h>
17828 #endif
17829
17830
17831 #ifdef INT8_MAX
17832 int8_t a1 = INT8_MAX;
17833 int8_t a1min = INT8_MIN;
17834 #endif
17835 #ifdef INT16_MAX
17836 int16_t a2 = INT16_MAX;
17837 int16_t a2min = INT16_MIN;
17838 #endif
17839 #ifdef INT32_MAX
17840 int32_t a3 = INT32_MAX;
17841 int32_t a3min = INT32_MIN;
17842 #endif
17843 #ifdef INT64_MAX
17844 int64_t a4 = INT64_MAX;
17845 int64_t a4min = INT64_MIN;
17846 #endif
17847 #ifdef UINT8_MAX
17848 uint8_t b1 = UINT8_MAX;
17849 #else
17850 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17851 #endif
17852 #ifdef UINT16_MAX
17853 uint16_t b2 = UINT16_MAX;
17854 #endif
17855 #ifdef UINT32_MAX
17856 uint32_t b3 = UINT32_MAX;
17857 #endif
17858 #ifdef UINT64_MAX
17859 uint64_t b4 = UINT64_MAX;
17860 #endif
17861 int_least8_t c1 = INT8_C (0x7f);
17862 int_least8_t c1max = INT_LEAST8_MAX;
17863 int_least8_t c1min = INT_LEAST8_MIN;
17864 int_least16_t c2 = INT16_C (0x7fff);
17865 int_least16_t c2max = INT_LEAST16_MAX;
17866 int_least16_t c2min = INT_LEAST16_MIN;
17867 int_least32_t c3 = INT32_C (0x7fffffff);
17868 int_least32_t c3max = INT_LEAST32_MAX;
17869 int_least32_t c3min = INT_LEAST32_MIN;
17870 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17871 int_least64_t c4max = INT_LEAST64_MAX;
17872 int_least64_t c4min = INT_LEAST64_MIN;
17873 uint_least8_t d1 = UINT8_C (0xff);
17874 uint_least8_t d1max = UINT_LEAST8_MAX;
17875 uint_least16_t d2 = UINT16_C (0xffff);
17876 uint_least16_t d2max = UINT_LEAST16_MAX;
17877 uint_least32_t d3 = UINT32_C (0xffffffff);
17878 uint_least32_t d3max = UINT_LEAST32_MAX;
17879 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17880 uint_least64_t d4max = UINT_LEAST64_MAX;
17881 int_fast8_t e1 = INT_FAST8_MAX;
17882 int_fast8_t e1min = INT_FAST8_MIN;
17883 int_fast16_t e2 = INT_FAST16_MAX;
17884 int_fast16_t e2min = INT_FAST16_MIN;
17885 int_fast32_t e3 = INT_FAST32_MAX;
17886 int_fast32_t e3min = INT_FAST32_MIN;
17887 int_fast64_t e4 = INT_FAST64_MAX;
17888 int_fast64_t e4min = INT_FAST64_MIN;
17889 uint_fast8_t f1 = UINT_FAST8_MAX;
17890 uint_fast16_t f2 = UINT_FAST16_MAX;
17891 uint_fast32_t f3 = UINT_FAST32_MAX;
17892 uint_fast64_t f4 = UINT_FAST64_MAX;
17893 #ifdef INTPTR_MAX
17894 intptr_t g = INTPTR_MAX;
17895 intptr_t gmin = INTPTR_MIN;
17896 #endif
17897 #ifdef UINTPTR_MAX
17898 uintptr_t h = UINTPTR_MAX;
17899 #endif
17900 intmax_t i = INTMAX_MAX;
17901 uintmax_t j = UINTMAX_MAX;
17902
17903 #include <limits.h> /* for CHAR_BIT */
17904 #define TYPE_MINIMUM(t) \
17905 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17906 #define TYPE_MAXIMUM(t) \
17907 ((t) ((t) 0 < (t) -1 \
17908 ? (t) -1 \
17909 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17910 struct s {
17911 int check_PTRDIFF:
17912 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17913 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17914 ? 1 : -1;
17915 /* Detect bug in FreeBSD 6.0 / ia64. */
17916 int check_SIG_ATOMIC:
17917 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17918 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17919 ? 1 : -1;
17920 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17921 int check_WCHAR:
17922 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17923 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17924 ? 1 : -1;
17925 /* Detect bug in mingw. */
17926 int check_WINT:
17927 WINT_MIN == TYPE_MINIMUM (wint_t)
17928 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17929 ? 1 : -1;
17930
17931 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17932 int check_UINT8_C:
17933 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17934 int check_UINT16_C:
17935 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17936
17937 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17938 #ifdef UINT8_MAX
17939 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17940 #endif
17941 #ifdef UINT16_MAX
17942 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17943 #endif
17944 #ifdef UINT32_MAX
17945 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17946 #endif
17947 #ifdef UINT64_MAX
17948 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17949 #endif
17950 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17951 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17952 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17953 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17954 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17955 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17956 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17957 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17958 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17959 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17960 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17961 };
17962
17963 int
17964 main ()
17965 {
17966
17967 ;
17968 return 0;
17969 }
17970 _ACEOF
17971 if ac_fn_c_try_compile "$LINENO"; then :
17972 if test "$cross_compiling" = yes; then :
17973 gl_cv_header_working_stdint_h=yes
17974
17975 else
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17978
17979
17980 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17981 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17982 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17983 #include <stdint.h>
17984
17985
17986 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17987 included before <wchar.h>. */
17988 #include <stddef.h>
17989 #include <signal.h>
17990 #if HAVE_WCHAR_H
17991 # include <stdio.h>
17992 # include <time.h>
17993 # include <wchar.h>
17994 #endif
17995
17996
17997 #include <stdio.h>
17998 #include <string.h>
17999 #define MVAL(macro) MVAL1(macro)
18000 #define MVAL1(expression) #expression
18001 static const char *macro_values[] =
18002 {
18003 #ifdef INT8_MAX
18004 MVAL (INT8_MAX),
18005 #endif
18006 #ifdef INT16_MAX
18007 MVAL (INT16_MAX),
18008 #endif
18009 #ifdef INT32_MAX
18010 MVAL (INT32_MAX),
18011 #endif
18012 #ifdef INT64_MAX
18013 MVAL (INT64_MAX),
18014 #endif
18015 #ifdef UINT8_MAX
18016 MVAL (UINT8_MAX),
18017 #endif
18018 #ifdef UINT16_MAX
18019 MVAL (UINT16_MAX),
18020 #endif
18021 #ifdef UINT32_MAX
18022 MVAL (UINT32_MAX),
18023 #endif
18024 #ifdef UINT64_MAX
18025 MVAL (UINT64_MAX),
18026 #endif
18027 NULL
18028 };
18029
18030 int
18031 main ()
18032 {
18033
18034 const char **mv;
18035 for (mv = macro_values; *mv != NULL; mv++)
18036 {
18037 const char *value = *mv;
18038 /* Test whether it looks like a cast expression. */
18039 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18040 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18041 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18042 || strncmp (value, "((int)"/*)*/, 6) == 0
18043 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18044 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18045 return mv - macro_values + 1;
18046 }
18047 return 0;
18048
18049 ;
18050 return 0;
18051 }
18052 _ACEOF
18053 if ac_fn_c_try_run "$LINENO"; then :
18054 gl_cv_header_working_stdint_h=yes
18055 fi
18056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18057 conftest.$ac_objext conftest.beam conftest.$ac_ext
18058 fi
18059
18060
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063
18064 fi
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18066 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18067 fi
18068 if test "$gl_cv_header_working_stdint_h" = yes; then
18069 STDINT_H=
18070 else
18071 for ac_header in sys/inttypes.h sys/bitypes.h
18072 do :
18073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18074 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18075 eval as_val=\$$as_ac_Header
18076 if test "x$as_val" = x""yes; then :
18077 cat >>confdefs.h <<_ACEOF
18078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18079 _ACEOF
18080
18081 fi
18082
18083 done
18084
18085 if test $ac_cv_header_sys_inttypes_h = yes; then
18086 HAVE_SYS_INTTYPES_H=1
18087 else
18088 HAVE_SYS_INTTYPES_H=0
18089 fi
18090
18091 if test $ac_cv_header_sys_bitypes_h = yes; then
18092 HAVE_SYS_BITYPES_H=1
18093 else
18094 HAVE_SYS_BITYPES_H=0
18095 fi
18096
18097
18098
18099
18100 if test $APPLE_UNIVERSAL_BUILD = 0; then
18101
18102
18103 for gltype in ptrdiff_t size_t ; do
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18105 $as_echo_n "checking for bit size of $gltype... " >&6; }
18106 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18107 $as_echo_n "(cached) " >&6
18108 else
18109 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18110 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18111 included before <wchar.h>. */
18112 #include <stddef.h>
18113 #include <signal.h>
18114 #if HAVE_WCHAR_H
18115 # include <stdio.h>
18116 # include <time.h>
18117 # include <wchar.h>
18118 #endif
18119
18120 #include <limits.h>"; then :
18121
18122 else
18123 result=unknown
18124 fi
18125
18126 eval gl_cv_bitsizeof_${gltype}=\$result
18127
18128 fi
18129 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18131 $as_echo "$ac_res" >&6; }
18132 eval result=\$gl_cv_bitsizeof_${gltype}
18133 if test $result = unknown; then
18134 result=0
18135 fi
18136 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18137 cat >>confdefs.h <<_ACEOF
18138 #define BITSIZEOF_${GLTYPE} $result
18139 _ACEOF
18140
18141 eval BITSIZEOF_${GLTYPE}=\$result
18142 done
18143
18144
18145 fi
18146
18147
18148 for gltype in sig_atomic_t wchar_t wint_t ; do
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18150 $as_echo_n "checking for bit size of $gltype... " >&6; }
18151 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18152 $as_echo_n "(cached) " >&6
18153 else
18154 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18155 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18156 included before <wchar.h>. */
18157 #include <stddef.h>
18158 #include <signal.h>
18159 #if HAVE_WCHAR_H
18160 # include <stdio.h>
18161 # include <time.h>
18162 # include <wchar.h>
18163 #endif
18164
18165 #include <limits.h>"; then :
18166
18167 else
18168 result=unknown
18169 fi
18170
18171 eval gl_cv_bitsizeof_${gltype}=\$result
18172
18173 fi
18174 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18176 $as_echo "$ac_res" >&6; }
18177 eval result=\$gl_cv_bitsizeof_${gltype}
18178 if test $result = unknown; then
18179 result=0
18180 fi
18181 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18182 cat >>confdefs.h <<_ACEOF
18183 #define BITSIZEOF_${GLTYPE} $result
18184 _ACEOF
18185
18186 eval BITSIZEOF_${GLTYPE}=\$result
18187 done
18188
18189
18190
18191
18192 for gltype in sig_atomic_t wchar_t wint_t ; do
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18194 $as_echo_n "checking whether $gltype is signed... " >&6; }
18195 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18196 $as_echo_n "(cached) " >&6
18197 else
18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18200
18201 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18202 included before <wchar.h>. */
18203 #include <stddef.h>
18204 #include <signal.h>
18205 #if HAVE_WCHAR_H
18206 # include <stdio.h>
18207 # include <time.h>
18208 # include <wchar.h>
18209 #endif
18210
18211 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18212 int
18213 main ()
18214 {
18215
18216 ;
18217 return 0;
18218 }
18219 _ACEOF
18220 if ac_fn_c_try_compile "$LINENO"; then :
18221 result=yes
18222 else
18223 result=no
18224 fi
18225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18226 eval gl_cv_type_${gltype}_signed=\$result
18227
18228 fi
18229 eval ac_res=\$gl_cv_type_${gltype}_signed
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18231 $as_echo "$ac_res" >&6; }
18232 eval result=\$gl_cv_type_${gltype}_signed
18233 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18234 if test "$result" = yes; then
18235 cat >>confdefs.h <<_ACEOF
18236 #define HAVE_SIGNED_${GLTYPE} 1
18237 _ACEOF
18238
18239 eval HAVE_SIGNED_${GLTYPE}=1
18240 else
18241 eval HAVE_SIGNED_${GLTYPE}=0
18242 fi
18243 done
18244
18245
18246 gl_cv_type_ptrdiff_t_signed=yes
18247 gl_cv_type_size_t_signed=no
18248 if test $APPLE_UNIVERSAL_BUILD = 0; then
18249
18250
18251 for gltype in ptrdiff_t size_t ; do
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18253 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18254 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18255 $as_echo_n "(cached) " >&6
18256 else
18257 eval gl_cv_type_${gltype}_suffix=no
18258 eval result=\$gl_cv_type_${gltype}_signed
18259 if test "$result" = yes; then
18260 glsufu=
18261 else
18262 glsufu=u
18263 fi
18264 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18265 case $glsuf in
18266 '') gltype1='int';;
18267 l) gltype1='long int';;
18268 ll) gltype1='long long int';;
18269 i64) gltype1='__int64';;
18270 u) gltype1='unsigned int';;
18271 ul) gltype1='unsigned long int';;
18272 ull) gltype1='unsigned long long int';;
18273 ui64)gltype1='unsigned __int64';;
18274 esac
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277
18278 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18279 included before <wchar.h>. */
18280 #include <stddef.h>
18281 #include <signal.h>
18282 #if HAVE_WCHAR_H
18283 # include <stdio.h>
18284 # include <time.h>
18285 # include <wchar.h>
18286 #endif
18287
18288 extern $gltype foo;
18289 extern $gltype1 foo;
18290 int
18291 main ()
18292 {
18293
18294 ;
18295 return 0;
18296 }
18297 _ACEOF
18298 if ac_fn_c_try_compile "$LINENO"; then :
18299 eval gl_cv_type_${gltype}_suffix=\$glsuf
18300 fi
18301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18302 eval result=\$gl_cv_type_${gltype}_suffix
18303 test "$result" != no && break
18304 done
18305 fi
18306 eval ac_res=\$gl_cv_type_${gltype}_suffix
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18308 $as_echo "$ac_res" >&6; }
18309 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18310 eval result=\$gl_cv_type_${gltype}_suffix
18311 test "$result" = no && result=
18312 eval ${GLTYPE}_SUFFIX=\$result
18313 cat >>confdefs.h <<_ACEOF
18314 #define ${GLTYPE}_SUFFIX $result
18315 _ACEOF
18316
18317 done
18318
18319
18320 fi
18321
18322
18323 for gltype in sig_atomic_t wchar_t wint_t ; do
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18325 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18326 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18327 $as_echo_n "(cached) " >&6
18328 else
18329 eval gl_cv_type_${gltype}_suffix=no
18330 eval result=\$gl_cv_type_${gltype}_signed
18331 if test "$result" = yes; then
18332 glsufu=
18333 else
18334 glsufu=u
18335 fi
18336 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18337 case $glsuf in
18338 '') gltype1='int';;
18339 l) gltype1='long int';;
18340 ll) gltype1='long long int';;
18341 i64) gltype1='__int64';;
18342 u) gltype1='unsigned int';;
18343 ul) gltype1='unsigned long int';;
18344 ull) gltype1='unsigned long long int';;
18345 ui64)gltype1='unsigned __int64';;
18346 esac
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18349
18350 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18351 included before <wchar.h>. */
18352 #include <stddef.h>
18353 #include <signal.h>
18354 #if HAVE_WCHAR_H
18355 # include <stdio.h>
18356 # include <time.h>
18357 # include <wchar.h>
18358 #endif
18359
18360 extern $gltype foo;
18361 extern $gltype1 foo;
18362 int
18363 main ()
18364 {
18365
18366 ;
18367 return 0;
18368 }
18369 _ACEOF
18370 if ac_fn_c_try_compile "$LINENO"; then :
18371 eval gl_cv_type_${gltype}_suffix=\$glsuf
18372 fi
18373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374 eval result=\$gl_cv_type_${gltype}_suffix
18375 test "$result" != no && break
18376 done
18377 fi
18378 eval ac_res=\$gl_cv_type_${gltype}_suffix
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18380 $as_echo "$ac_res" >&6; }
18381 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18382 eval result=\$gl_cv_type_${gltype}_suffix
18383 test "$result" = no && result=
18384 eval ${GLTYPE}_SUFFIX=\$result
18385 cat >>confdefs.h <<_ACEOF
18386 #define ${GLTYPE}_SUFFIX $result
18387 _ACEOF
18388
18389 done
18390
18391
18392
18393 STDINT_H=stdint.h
18394 fi
18395
18396 if test -n "$STDINT_H"; then
18397 GL_GENERATE_STDINT_H_TRUE=
18398 GL_GENERATE_STDINT_H_FALSE='#'
18399 else
18400 GL_GENERATE_STDINT_H_TRUE='#'
18401 GL_GENERATE_STDINT_H_FALSE=
18402 fi
18403
18404
18405
18406
18407
18408 GNULIB_IMAXABS=0;
18409 GNULIB_IMAXDIV=0;
18410 GNULIB_STRTOIMAX=0;
18411 GNULIB_STRTOUMAX=0;
18412 HAVE_DECL_IMAXABS=1;
18413 HAVE_DECL_IMAXDIV=1;
18414 HAVE_DECL_STRTOIMAX=1;
18415 HAVE_DECL_STRTOUMAX=1;
18416 INT32_MAX_LT_INTMAX_MAX=1;
18417 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18418 PRI_MACROS_BROKEN=0;
18419 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18420 UINT32_MAX_LT_UINTMAX_MAX=1;
18421 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437 if test $gl_cv_have_include_next = yes; then
18438 gl_cv_next_inttypes_h='<'inttypes.h'>'
18439 else
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18441 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18442 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18443 $as_echo_n "(cached) " >&6
18444 else
18445
18446 if test $ac_cv_header_inttypes_h = yes; then
18447
18448
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18451 #include <inttypes.h>
18452
18453 _ACEOF
18454 case "$host_os" in
18455 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18456 *) gl_absname_cpp="$ac_cpp" ;;
18457 esac
18458
18459 case "$host_os" in
18460 mingw*)
18461 gl_dirsep_regex='[/\\]'
18462 ;;
18463 *)
18464 gl_dirsep_regex='/'
18465 ;;
18466 esac
18467
18468 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'inttypes.h#{
18469 s#.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*#\1#
18470 s#^/[^/]#//&#
18471 p
18472 q
18473 }'
18474 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18475 sed -n "$gl_absolute_header_sed"`'"'
18476 else
18477 gl_cv_next_inttypes_h='<'inttypes.h'>'
18478 fi
18479
18480
18481 fi
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18483 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18484 fi
18485 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18486
18487 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18489 gl_next_as_first_directive='<'inttypes.h'>'
18490 else
18491 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18492 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18493 fi
18494 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18495
18496
18497
18498
18499
18500
18501
18502
18503 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18504
18505
18506
18507
18508
18509
18510 GNULIB_FCHMODAT=0;
18511 GNULIB_FSTATAT=0;
18512 GNULIB_FUTIMENS=0;
18513 GNULIB_LCHMOD=0;
18514 GNULIB_LSTAT=0;
18515 GNULIB_MKDIRAT=0;
18516 GNULIB_MKFIFO=0;
18517 GNULIB_MKFIFOAT=0;
18518 GNULIB_MKNOD=0;
18519 GNULIB_MKNODAT=0;
18520 GNULIB_STAT=0;
18521 GNULIB_UTIMENSAT=0;
18522 HAVE_FCHMODAT=1;
18523 HAVE_FSTATAT=1;
18524 HAVE_FUTIMENS=1;
18525 HAVE_LCHMOD=1;
18526 HAVE_LSTAT=1;
18527 HAVE_MKDIRAT=1;
18528 HAVE_MKFIFO=1;
18529 HAVE_MKFIFOAT=1;
18530 HAVE_MKNOD=1;
18531 HAVE_MKNODAT=1;
18532 HAVE_UTIMENSAT=1;
18533 REPLACE_FSTAT=0;
18534 REPLACE_FSTATAT=0;
18535 REPLACE_FUTIMENS=0;
18536 REPLACE_LSTAT=0;
18537 REPLACE_MKDIR=0;
18538 REPLACE_MKFIFO=0;
18539 REPLACE_MKNOD=0;
18540 REPLACE_STAT=0;
18541 REPLACE_UTIMENSAT=0;
18542
18543
18544
18545
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18547 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18548 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18549 $as_echo_n "(cached) " >&6
18550 else
18551 rm -f conftest.sym conftest.file
18552 echo >conftest.file
18553 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18554 if test "$cross_compiling" = yes; then :
18555 # When cross-compiling, be pessimistic so we will end up using the
18556 # replacement version of lstat that checks for trailing slashes and
18557 # calls lstat a second time when necessary.
18558 gl_cv_func_lstat_dereferences_slashed_symlink=no
18559
18560 else
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 $ac_includes_default
18564 int
18565 main ()
18566 {
18567 struct stat sbuf;
18568 /* Linux will dereference the symlink and fail, as required by
18569 POSIX. That is better in the sense that it means we will not
18570 have to compile and use the lstat wrapper. */
18571 return lstat ("conftest.sym/", &sbuf) == 0;
18572
18573 ;
18574 return 0;
18575 }
18576 _ACEOF
18577 if ac_fn_c_try_run "$LINENO"; then :
18578 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18579 else
18580 gl_cv_func_lstat_dereferences_slashed_symlink=no
18581 fi
18582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18583 conftest.$ac_objext conftest.beam conftest.$ac_ext
18584 fi
18585
18586 else
18587 # If the 'ln -s' command failed, then we probably don't even
18588 # have an lstat function.
18589 gl_cv_func_lstat_dereferences_slashed_symlink=no
18590 fi
18591 rm -f conftest.sym conftest.file
18592
18593 fi
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18595 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18596 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18597
18598 cat >>confdefs.h <<_ACEOF
18599 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18600 _ACEOF
18601
18602
18603
18604 GNULIB_MKTIME=0;
18605 GNULIB_NANOSLEEP=0;
18606 GNULIB_STRPTIME=0;
18607 GNULIB_TIMEGM=0;
18608 GNULIB_TIME_R=0;
18609 HAVE_DECL_LOCALTIME_R=1;
18610 HAVE_NANOSLEEP=1;
18611 HAVE_STRPTIME=1;
18612 HAVE_TIMEGM=1;
18613 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18614 REPLACE_MKTIME=GNULIB_PORTCHECK;
18615 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18616 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18617
18618
18619
18620
18621
18622
18623 <<<<<<< TREE
18624 =======
18625 GNULIB_PTHREAD_SIGMASK=0;
18626 GNULIB_SIGNAL_H_SIGPIPE=0;
18627 GNULIB_SIGPROCMASK=0;
18628 GNULIB_SIGACTION=0;
18629 HAVE_POSIX_SIGNALBLOCKING=1;
18630 HAVE_PTHREAD_SIGMASK=1;
18631 HAVE_SIGSET_T=1;
18632 HAVE_SIGINFO_T=1;
18633 HAVE_SIGACTION=1;
18634 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18635
18636 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18637
18638 HAVE_SIGHANDLER_T=1;
18639 REPLACE_PTHREAD_SIGMASK=0;
18640
18641
18642
18643
18644 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18645 #include <signal.h>
18646 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18647 #include <sys/types.h>
18648
18649 "
18650 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18651
18652 cat >>confdefs.h <<_ACEOF
18653 #define HAVE_SIGSET_T 1
18654 _ACEOF
18655
18656 gl_cv_type_sigset_t=yes
18657 else
18658 gl_cv_type_sigset_t=no
18659 fi
18660
18661 if test $gl_cv_type_sigset_t != yes; then
18662 HAVE_SIGSET_T=0
18663 fi
18664
18665
18666
18667 >>>>>>> MERGE-SOURCE
18668
18669
18670 if test $ac_cv_header_sys_socket_h = no; then
18671 for ac_header in ws2tcpip.h
18672 do :
18673 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18674 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18675 cat >>confdefs.h <<_ACEOF
18676 #define HAVE_WS2TCPIP_H 1
18677 _ACEOF
18678
18679 fi
18680
18681 done
18682
18683 fi
18684
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18686 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18687 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18688 $as_echo_n "(cached) " >&6
18689 else
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18692
18693 #include <stdbool.h>
18694 #ifndef bool
18695 "error: bool is not defined"
18696 #endif
18697 #ifndef false
18698 "error: false is not defined"
18699 #endif
18700 #if false
18701 "error: false is not 0"
18702 #endif
18703 #ifndef true
18704 "error: true is not defined"
18705 #endif
18706 #if true != 1
18707 "error: true is not 1"
18708 #endif
18709 #ifndef __bool_true_false_are_defined
18710 "error: __bool_true_false_are_defined is not defined"
18711 #endif
18712
18713 struct s { _Bool s: 1; _Bool t; } s;
18714
18715 char a[true == 1 ? 1 : -1];
18716 char b[false == 0 ? 1 : -1];
18717 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18718 char d[(bool) 0.5 == true ? 1 : -1];
18719 /* See body of main program for 'e'. */
18720 char f[(_Bool) 0.0 == false ? 1 : -1];
18721 char g[true];
18722 char h[sizeof (_Bool)];
18723 char i[sizeof s.t];
18724 enum { j = false, k = true, l = false * true, m = true * 256 };
18725 /* The following fails for
18726 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18727 _Bool n[m];
18728 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18729 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18730 /* Catch a bug in an HP-UX C compiler. See
18731 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18732 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18733 */
18734 _Bool q = true;
18735 _Bool *pq = &q;
18736
18737 int
18738 main ()
18739 {
18740
18741 bool e = &s;
18742 *pq |= q;
18743 *pq |= ! q;
18744 /* Refer to every declared value, to avoid compiler optimizations. */
18745 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18746 + !m + !n + !o + !p + !q + !pq);
18747
18748 ;
18749 return 0;
18750 }
18751 _ACEOF
18752 if ac_fn_c_try_compile "$LINENO"; then :
18753 ac_cv_header_stdbool_h=yes
18754 else
18755 ac_cv_header_stdbool_h=no
18756 fi
18757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18758 fi
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18760 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18761 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18762 if test "x$ac_cv_type__Bool" = x""yes; then :
18763
18764 cat >>confdefs.h <<_ACEOF
18765 #define HAVE__BOOL 1
18766 _ACEOF
18767
18768
18769 fi
18770
18771
18772
18773 REPLACE_NULL=0;
18774 HAVE_WCHAR_T=1;
18775
18776
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18778 $as_echo_n "checking for wchar_t... " >&6; }
18779 if test "${gt_cv_c_wchar_t+set}" = set; then :
18780 $as_echo_n "(cached) " >&6
18781 else
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18784 #include <stddef.h>
18785 wchar_t foo = (wchar_t)'\0';
18786 int
18787 main ()
18788 {
18789
18790 ;
18791 return 0;
18792 }
18793 _ACEOF
18794 if ac_fn_c_try_compile "$LINENO"; then :
18795 gt_cv_c_wchar_t=yes
18796 else
18797 gt_cv_c_wchar_t=no
18798 fi
18799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18800 fi
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18802 $as_echo "$gt_cv_c_wchar_t" >&6; }
18803 if test $gt_cv_c_wchar_t = yes; then
18804
18805 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18806
18807 fi
18808
18809
18810 GNULIB_DPRINTF=0;
18811 GNULIB_FCLOSE=0;
18812 GNULIB_FFLUSH=0;
18813 GNULIB_FGETC=0;
18814 GNULIB_FGETS=0;
18815 GNULIB_FOPEN=0;
18816 GNULIB_FPRINTF=0;
18817 GNULIB_FPRINTF_POSIX=0;
18818 GNULIB_FPURGE=0;
18819 GNULIB_FPUTC=0;
18820 GNULIB_FPUTS=0;
18821 GNULIB_FREAD=0;
18822 GNULIB_FREOPEN=0;
18823 GNULIB_FSCANF=0;
18824 GNULIB_FSEEK=0;
18825 GNULIB_FSEEKO=0;
18826 GNULIB_FTELL=0;
18827 GNULIB_FTELLO=0;
18828 GNULIB_FWRITE=0;
18829 GNULIB_GETC=0;
18830 GNULIB_GETCHAR=0;
18831 GNULIB_GETDELIM=0;
18832 GNULIB_GETLINE=0;
18833 GNULIB_GETS=0;
18834 GNULIB_OBSTACK_PRINTF=0;
18835 GNULIB_OBSTACK_PRINTF_POSIX=0;
18836 GNULIB_PERROR=0;
18837 GNULIB_POPEN=0;
18838 GNULIB_PRINTF=0;
18839 GNULIB_PRINTF_POSIX=0;
18840 GNULIB_PUTC=0;
18841 GNULIB_PUTCHAR=0;
18842 GNULIB_PUTS=0;
18843 GNULIB_REMOVE=0;
18844 GNULIB_RENAME=0;
18845 GNULIB_RENAMEAT=0;
18846 GNULIB_SCANF=0;
18847 GNULIB_SNPRINTF=0;
18848 GNULIB_SPRINTF_POSIX=0;
18849 GNULIB_STDIO_H_NONBLOCKING=0;
18850 GNULIB_STDIO_H_SIGPIPE=0;
18851 GNULIB_TMPFILE=0;
18852 GNULIB_VASPRINTF=0;
18853 GNULIB_VFSCANF=0;
18854 GNULIB_VSCANF=0;
18855 GNULIB_VDPRINTF=0;
18856 GNULIB_VFPRINTF=0;
18857 GNULIB_VFPRINTF_POSIX=0;
18858 GNULIB_VPRINTF=0;
18859 GNULIB_VPRINTF_POSIX=0;
18860 GNULIB_VSNPRINTF=0;
18861 GNULIB_VSPRINTF_POSIX=0;
18862 HAVE_DECL_FPURGE=1;
18863 HAVE_DECL_FSEEKO=1;
18864 HAVE_DECL_FTELLO=1;
18865 HAVE_DECL_GETDELIM=1;
18866 HAVE_DECL_GETLINE=1;
18867 HAVE_DECL_OBSTACK_PRINTF=1;
18868 HAVE_DECL_SNPRINTF=1;
18869 HAVE_DECL_VSNPRINTF=1;
18870 HAVE_DPRINTF=1;
18871 HAVE_FSEEKO=1;
18872 HAVE_FTELLO=1;
18873 HAVE_RENAMEAT=1;
18874 HAVE_VASPRINTF=1;
18875 HAVE_VDPRINTF=1;
18876 REPLACE_DPRINTF=0;
18877 REPLACE_FCLOSE=0;
18878 REPLACE_FFLUSH=0;
18879 REPLACE_FOPEN=0;
18880 REPLACE_FPRINTF=0;
18881 REPLACE_FPURGE=0;
18882 REPLACE_FREOPEN=0;
18883 REPLACE_FSEEK=0;
18884 REPLACE_FSEEKO=0;
18885 REPLACE_FTELL=0;
18886 REPLACE_FTELLO=0;
18887 REPLACE_GETDELIM=0;
18888 REPLACE_GETLINE=0;
18889 REPLACE_OBSTACK_PRINTF=0;
18890 REPLACE_PERROR=0;
18891 REPLACE_POPEN=0;
18892 REPLACE_PRINTF=0;
18893 REPLACE_REMOVE=0;
18894 REPLACE_RENAME=0;
18895 REPLACE_RENAMEAT=0;
18896 REPLACE_SNPRINTF=0;
18897 REPLACE_SPRINTF=0;
18898 REPLACE_STDIO_READ_FUNCS=0;
18899 REPLACE_STDIO_WRITE_FUNCS=0;
18900 REPLACE_TMPFILE=0;
18901 REPLACE_VASPRINTF=0;
18902 REPLACE_VDPRINTF=0;
18903 REPLACE_VFPRINTF=0;
18904 REPLACE_VPRINTF=0;
18905 REPLACE_VSNPRINTF=0;
18906 REPLACE_VSPRINTF=0;
18907
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18909 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18910 if test "${ac_cv_struct_tm+set}" = set; then :
18911 $as_echo_n "(cached) " >&6
18912 else
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18915 #include <sys/types.h>
18916 #include <time.h>
18917
18918 int
18919 main ()
18920 {
18921 struct tm tm;
18922 int *p = &tm.tm_sec;
18923 return !p;
18924 ;
18925 return 0;
18926 }
18927 _ACEOF
18928 if ac_fn_c_try_compile "$LINENO"; then :
18929 ac_cv_struct_tm=time.h
18930 else
18931 ac_cv_struct_tm=sys/time.h
18932 fi
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18934 fi
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18936 $as_echo "$ac_cv_struct_tm" >&6; }
18937 if test $ac_cv_struct_tm = sys/time.h; then
18938
18939 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18940
18941 fi
18942
18943 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18944 #include <$ac_cv_struct_tm>
18945
18946 "
18947 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
18948
18949 cat >>confdefs.h <<_ACEOF
18950 #define HAVE_STRUCT_TM_TM_ZONE 1
18951 _ACEOF
18952
18953
18954 fi
18955
18956 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18957
18958 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18959
18960 else
18961 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18962 "
18963 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18964 ac_have_decl=1
18965 else
18966 ac_have_decl=0
18967 fi
18968
18969 cat >>confdefs.h <<_ACEOF
18970 #define HAVE_DECL_TZNAME $ac_have_decl
18971 _ACEOF
18972
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18974 $as_echo_n "checking for tzname... " >&6; }
18975 if test "${ac_cv_var_tzname+set}" = set; then :
18976 $as_echo_n "(cached) " >&6
18977 else
18978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h. */
18980 #include <time.h>
18981 #if !HAVE_DECL_TZNAME
18982 extern char *tzname[];
18983 #endif
18984
18985 int
18986 main ()
18987 {
18988 return tzname[0][0];
18989 ;
18990 return 0;
18991 }
18992 _ACEOF
18993 if ac_fn_c_try_link "$LINENO"; then :
18994 ac_cv_var_tzname=yes
18995 else
18996 ac_cv_var_tzname=no
18997 fi
18998 rm -f core conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19002 $as_echo "$ac_cv_var_tzname" >&6; }
19003 if test $ac_cv_var_tzname = yes; then
19004
19005 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19006
19007 fi
19008 fi
19009
19010
19011 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19012 "
19013 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19014
19015 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19016
19017 fi
19018
19019
19020
19021
19022 <<<<<<< TREE
19023 =======
19024
19025
19026 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19027 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19028 ac_have_decl=1
19029 else
19030 ac_have_decl=0
19031 fi
19032
19033 cat >>confdefs.h <<_ACEOF
19034 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19035 _ACEOF
19036
19037
19038
19039 >>>>>>> MERGE-SOURCE
19040 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19041 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19042 ac_have_decl=1
19043 else
19044 ac_have_decl=0
19045 fi
19046
19047 cat >>confdefs.h <<_ACEOF
19048 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19049 _ACEOF
19050
19051
19052
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19054 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19055 if test "${ac_cv_header_stat_broken+set}" = set; then :
19056 $as_echo_n "(cached) " >&6
19057 else
19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h. */
19060 #include <sys/types.h>
19061 #include <sys/stat.h>
19062
19063 #if defined S_ISBLK && defined S_IFDIR
19064 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19065 #endif
19066
19067 #if defined S_ISBLK && defined S_IFCHR
19068 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19069 #endif
19070
19071 #if defined S_ISLNK && defined S_IFREG
19072 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19073 #endif
19074
19075 #if defined S_ISSOCK && defined S_IFREG
19076 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19077 #endif
19078
19079 _ACEOF
19080 if ac_fn_c_try_compile "$LINENO"; then :
19081 ac_cv_header_stat_broken=no
19082 else
19083 ac_cv_header_stat_broken=yes
19084 fi
19085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19086 fi
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19088 $as_echo "$ac_cv_header_stat_broken" >&6; }
19089 if test $ac_cv_header_stat_broken = yes; then
19090
19091 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19092
19093 fi
19094
19095
19096
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19098 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19099 if test "${ac_cv_c_restrict+set}" = set; then :
19100 $as_echo_n "(cached) " >&6
19101 else
19102 ac_cv_c_restrict=no
19103 # The order here caters to the fact that C++ does not require restrict.
19104 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19107 typedef int * int_ptr;
19108 int foo (int_ptr $ac_kw ip) {
19109 return ip[0];
19110 }
19111 int
19112 main ()
19113 {
19114 int s[1];
19115 int * $ac_kw t = s;
19116 t[0] = 0;
19117 return foo(t)
19118 ;
19119 return 0;
19120 }
19121 _ACEOF
19122 if ac_fn_c_try_compile "$LINENO"; then :
19123 ac_cv_c_restrict=$ac_kw
19124 fi
19125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 test "$ac_cv_c_restrict" != no && break
19127 done
19128
19129 fi
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19131 $as_echo "$ac_cv_c_restrict" >&6; }
19132
19133 case $ac_cv_c_restrict in
19134 restrict) ;;
19135 no) $as_echo "#define restrict /**/" >>confdefs.h
19136 ;;
19137 *) cat >>confdefs.h <<_ACEOF
19138 #define restrict $ac_cv_c_restrict
19139 _ACEOF
19140 ;;
19141 esac
19142
19143
19144
19145
19146
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19148 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19149 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19150 $as_echo_n "(cached) " >&6
19151 else
19152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153 /* end confdefs.h. */
19154 #include <time.h>
19155
19156 int
19157 main ()
19158 {
19159 static struct timespec x; x.tv_sec = x.tv_nsec;
19160 ;
19161 return 0;
19162 }
19163 _ACEOF
19164 if ac_fn_c_try_compile "$LINENO"; then :
19165 gl_cv_sys_struct_timespec_in_time_h=yes
19166 else
19167 gl_cv_sys_struct_timespec_in_time_h=no
19168 fi
19169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19170 fi
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19172 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19173
19174 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19175 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19176 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19177 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19178 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19179 else
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19181 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19182 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19183 $as_echo_n "(cached) " >&6
19184 else
19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19187 #include <sys/time.h>
19188
19189 int
19190 main ()
19191 {
19192 static struct timespec x; x.tv_sec = x.tv_nsec;
19193 ;
19194 return 0;
19195 }
19196 _ACEOF
19197 if ac_fn_c_try_compile "$LINENO"; then :
19198 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19199 else
19200 gl_cv_sys_struct_timespec_in_sys_time_h=no
19201 fi
19202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19203 fi
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19205 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19206 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19207 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19208 else
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19210 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19211 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19212 $as_echo_n "(cached) " >&6
19213 else
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19216 #include <pthread.h>
19217
19218 int
19219 main ()
19220 {
19221 static struct timespec x; x.tv_sec = x.tv_nsec;
19222 ;
19223 return 0;
19224 }
19225 _ACEOF
19226 if ac_fn_c_try_compile "$LINENO"; then :
19227 gl_cv_sys_struct_timespec_in_pthread_h=yes
19228 else
19229 gl_cv_sys_struct_timespec_in_pthread_h=no
19230 fi
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 fi
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19234 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19235 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19236 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19237 fi
19238 fi
19239 fi
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255 if test $gl_cv_have_include_next = yes; then
19256 gl_cv_next_time_h='<'time.h'>'
19257 else
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19259 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19260 if test "${gl_cv_next_time_h+set}" = set; then :
19261 $as_echo_n "(cached) " >&6
19262 else
19263
19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19266 #include <time.h>
19267
19268 _ACEOF
19269 case "$host_os" in
19270 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19271 *) gl_absname_cpp="$ac_cpp" ;;
19272 esac
19273
19274 case "$host_os" in
19275 mingw*)
19276 gl_dirsep_regex='[/\\]'
19277 ;;
19278 *)
19279 gl_dirsep_regex='/'
19280 ;;
19281 esac
19282
19283 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'time.h#{
19284 s#.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*#\1#
19285 s#^/[^/]#//&#
19286 p
19287 q
19288 }'
19289 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19290 sed -n "$gl_absolute_header_sed"`'"'
19291
19292
19293 fi
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19295 $as_echo "$gl_cv_next_time_h" >&6; }
19296 fi
19297 NEXT_TIME_H=$gl_cv_next_time_h
19298
19299 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19301 gl_next_as_first_directive='<'time.h'>'
19302 else
19303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19304 gl_next_as_first_directive=$gl_cv_next_time_h
19305 fi
19306 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19307
19308
19309
19310
19311
19312
19313
19314
19315 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19316 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19317 ac_have_decl=1
19318 else
19319 ac_have_decl=0
19320 fi
19321
19322 cat >>confdefs.h <<_ACEOF
19323 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19324 _ACEOF
19325
19326
19327
19328
19329 if false; then
19330 GL_COND_LIBTOOL_TRUE=
19331 GL_COND_LIBTOOL_FALSE='#'
19332 else
19333 GL_COND_LIBTOOL_TRUE='#'
19334 GL_COND_LIBTOOL_FALSE=
19335 fi
19336
19337 gl_cond_libtool=false
19338 gl_libdeps=
19339 gl_ltlibdeps=
19340 gl_m4_base='m4'
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350 gl_source_base='lib'
19351
19352
19353 if test $ac_cv_func_alloca_works = no; then
19354 :
19355 fi
19356
19357 # Define an additional variable used in the Makefile substitution.
19358 if test $ac_cv_working_alloca_h = yes; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19360 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19361 if test "${gl_cv_rpl_alloca+set}" = set; then :
19362 $as_echo_n "(cached) " >&6
19363 else
19364
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19367
19368 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19369 Need own alloca
19370 #endif
19371
19372 _ACEOF
19373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19374 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19375 gl_cv_rpl_alloca=yes
19376 else
19377 gl_cv_rpl_alloca=no
19378 fi
19379 rm -f conftest*
19380
19381
19382 fi
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19384 $as_echo "$gl_cv_rpl_alloca" >&6; }
19385 if test $gl_cv_rpl_alloca = yes; then
19386
19387 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19388
19389 ALLOCA_H=alloca.h
19390 else
19391 ALLOCA_H=
19392 fi
19393 else
19394 ALLOCA_H=alloca.h
19395 fi
19396
19397 if test -n "$ALLOCA_H"; then
19398 GL_GENERATE_ALLOCA_H_TRUE=
19399 GL_GENERATE_ALLOCA_H_FALSE='#'
19400 else
19401 GL_GENERATE_ALLOCA_H_TRUE='#'
19402 GL_GENERATE_ALLOCA_H_FALSE=
19403 fi
19404
19405
19406
19407
19408
19409
19410 :
19411
19412
19413
19414
19415 :
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19432
19433
19434 if test $HAVE_DUP2 = 1; then
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19436 $as_echo_n "checking whether dup2 works... " >&6; }
19437 if test "${gl_cv_func_dup2_works+set}" = set; then :
19438 $as_echo_n "(cached) " >&6
19439 else
19440 if test "$cross_compiling" = yes; then :
19441 case "$host_os" in
19442 mingw*) # on this platform, dup2 always returns 0 for success
19443 gl_cv_func_dup2_works=no;;
19444 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19445 gl_cv_func_dup2_works=no;;
19446 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19447 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19448 gl_cv_func_dup2_works=no;;
19449 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19450 gl_cv_func_dup2_works=no;;
19451 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19452 gl_cv_func_dup2_works=no;;
19453 *) gl_cv_func_dup2_works=yes;;
19454 esac
19455 else
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19458
19459 #include <unistd.h>
19460 #include <fcntl.h>
19461 #include <errno.h>
19462 int
19463 main ()
19464 {
19465 int result = 0;
19466 #ifdef FD_CLOEXEC
19467 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19468 result |= 1;
19469 #endif
19470 if (dup2 (1, 1) == 0)
19471 result |= 2;
19472 #ifdef FD_CLOEXEC
19473 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19474 result |= 4;
19475 #endif
19476 close (0);
19477 if (dup2 (0, 0) != -1)
19478 result |= 8;
19479 /* Many gnulib modules require POSIX conformance of EBADF. */
19480 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19481 result |= 16;
19482 return result;
19483
19484 ;
19485 return 0;
19486 }
19487
19488 _ACEOF
19489 if ac_fn_c_try_run "$LINENO"; then :
19490 gl_cv_func_dup2_works=yes
19491 else
19492 gl_cv_func_dup2_works=no
19493 fi
19494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19495 conftest.$ac_objext conftest.beam conftest.$ac_ext
19496 fi
19497
19498
19499 fi
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19501 $as_echo "$gl_cv_func_dup2_works" >&6; }
19502 if test "$gl_cv_func_dup2_works" = no; then
19503 REPLACE_DUP2=1
19504 fi
19505 fi
19506
19507
19508 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19509
19510
19511
19512
19513
19514
19515
19516
19517 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19518
19519 fi
19520
19521
19522
19523
19524
19525 GNULIB_DUP2=1
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537 # Persuade glibc <stdlib.h> to declare getloadavg().
19538
19539
19540 gl_save_LIBS=$LIBS
19541
19542 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19543 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19544 HAVE_GETLOADAVG=1
19545 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19546 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19547
19548 else
19549 gl_func_getloadavg_done=no
19550
19551 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19552 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19553 # to get the right answer into the cache.
19554 # For kstat on solaris, we need to test for libelf and libkvm to force the
19555 # definition of SVR4 below.
19556 if test $gl_func_getloadavg_done = no; then
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19558 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19559 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19560 $as_echo_n "(cached) " >&6
19561 else
19562 ac_check_lib_save_LIBS=$LIBS
19563 LIBS="-lelf $LIBS"
19564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19565 /* end confdefs.h. */
19566
19567 /* Override any GCC internal prototype to avoid an error.
19568 Use char because int might match the return type of a GCC
19569 builtin and then its argument prototype would still apply. */
19570 #ifdef __cplusplus
19571 extern "C"
19572 #endif
19573 char elf_begin ();
19574 int
19575 main ()
19576 {
19577 return elf_begin ();
19578 ;
19579 return 0;
19580 }
19581 _ACEOF
19582 if ac_fn_c_try_link "$LINENO"; then :
19583 ac_cv_lib_elf_elf_begin=yes
19584 else
19585 ac_cv_lib_elf_elf_begin=no
19586 fi
19587 rm -f core conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19590 fi
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19592 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19593 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19594 LIBS="-lelf $LIBS"
19595 fi
19596
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19598 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19599 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19600 $as_echo_n "(cached) " >&6
19601 else
19602 ac_check_lib_save_LIBS=$LIBS
19603 LIBS="-lkvm $LIBS"
19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19606
19607 /* Override any GCC internal prototype to avoid an error.
19608 Use char because int might match the return type of a GCC
19609 builtin and then its argument prototype would still apply. */
19610 #ifdef __cplusplus
19611 extern "C"
19612 #endif
19613 char kvm_open ();
19614 int
19615 main ()
19616 {
19617 return kvm_open ();
19618 ;
19619 return 0;
19620 }
19621 _ACEOF
19622 if ac_fn_c_try_link "$LINENO"; then :
19623 ac_cv_lib_kvm_kvm_open=yes
19624 else
19625 ac_cv_lib_kvm_kvm_open=no
19626 fi
19627 rm -f core conftest.err conftest.$ac_objext \
19628 conftest$ac_exeext conftest.$ac_ext
19629 LIBS=$ac_check_lib_save_LIBS
19630 fi
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19632 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19633 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19634 LIBS="-lkvm $LIBS"
19635 fi
19636
19637 # Check for the 4.4BSD definition of getloadavg.
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19639 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19640 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19641 $as_echo_n "(cached) " >&6
19642 else
19643 ac_check_lib_save_LIBS=$LIBS
19644 LIBS="-lutil $LIBS"
19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h. */
19647
19648 /* Override any GCC internal prototype to avoid an error.
19649 Use char because int might match the return type of a GCC
19650 builtin and then its argument prototype would still apply. */
19651 #ifdef __cplusplus
19652 extern "C"
19653 #endif
19654 char getloadavg ();
19655 int
19656 main ()
19657 {
19658 return getloadavg ();
19659 ;
19660 return 0;
19661 }
19662 _ACEOF
19663 if ac_fn_c_try_link "$LINENO"; then :
19664 ac_cv_lib_util_getloadavg=yes
19665 else
19666 ac_cv_lib_util_getloadavg=no
19667 fi
19668 rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19670 LIBS=$ac_check_lib_save_LIBS
19671 fi
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19673 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19674 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19675 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19676 fi
19677
19678 fi
19679
19680 if test $gl_func_getloadavg_done = no; then
19681 # There is a commonly available library for RS/6000 AIX.
19682 # Since it is not a standard part of AIX, it might be installed locally.
19683 gl_getloadavg_LIBS=$LIBS
19684 LIBS="-L/usr/local/lib $LIBS"
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19686 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19687 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19688 $as_echo_n "(cached) " >&6
19689 else
19690 ac_check_lib_save_LIBS=$LIBS
19691 LIBS="-lgetloadavg $LIBS"
19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19694
19695 /* Override any GCC internal prototype to avoid an error.
19696 Use char because int might match the return type of a GCC
19697 builtin and then its argument prototype would still apply. */
19698 #ifdef __cplusplus
19699 extern "C"
19700 #endif
19701 char getloadavg ();
19702 int
19703 main ()
19704 {
19705 return getloadavg ();
19706 ;
19707 return 0;
19708 }
19709 _ACEOF
19710 if ac_fn_c_try_link "$LINENO"; then :
19711 ac_cv_lib_getloadavg_getloadavg=yes
19712 else
19713 ac_cv_lib_getloadavg_getloadavg=no
19714 fi
19715 rm -f core conftest.err conftest.$ac_objext \
19716 conftest$ac_exeext conftest.$ac_ext
19717 LIBS=$ac_check_lib_save_LIBS
19718 fi
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19720 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19721 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19722 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19723 else
19724 LIBS=$gl_getloadavg_LIBS
19725 fi
19726
19727 fi
19728
19729 # Set up the replacement function if necessary.
19730 if test $gl_func_getloadavg_done = no; then
19731 HAVE_GETLOADAVG=0
19732
19733 # Solaris has libkstat which does not require root.
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19735 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19736 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19737 $as_echo_n "(cached) " >&6
19738 else
19739 ac_check_lib_save_LIBS=$LIBS
19740 LIBS="-lkstat $LIBS"
19741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19742 /* end confdefs.h. */
19743
19744 /* Override any GCC internal prototype to avoid an error.
19745 Use char because int might match the return type of a GCC
19746 builtin and then its argument prototype would still apply. */
19747 #ifdef __cplusplus
19748 extern "C"
19749 #endif
19750 char kstat_open ();
19751 int
19752 main ()
19753 {
19754 return kstat_open ();
19755 ;
19756 return 0;
19757 }
19758 _ACEOF
19759 if ac_fn_c_try_link "$LINENO"; then :
19760 ac_cv_lib_kstat_kstat_open=yes
19761 else
19762 ac_cv_lib_kstat_kstat_open=no
19763 fi
19764 rm -f core conftest.err conftest.$ac_objext \
19765 conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19767 fi
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19769 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19770 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19771 cat >>confdefs.h <<_ACEOF
19772 #define HAVE_LIBKSTAT 1
19773 _ACEOF
19774
19775 LIBS="-lkstat $LIBS"
19776
19777 fi
19778
19779 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19780
19781 # AIX has libperfstat which does not require root
19782 if test $gl_func_getloadavg_done = no; then
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19784 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19785 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19786 $as_echo_n "(cached) " >&6
19787 else
19788 ac_check_lib_save_LIBS=$LIBS
19789 LIBS="-lperfstat $LIBS"
19790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791 /* end confdefs.h. */
19792
19793 /* Override any GCC internal prototype to avoid an error.
19794 Use char because int might match the return type of a GCC
19795 builtin and then its argument prototype would still apply. */
19796 #ifdef __cplusplus
19797 extern "C"
19798 #endif
19799 char perfstat_cpu_total ();
19800 int
19801 main ()
19802 {
19803 return perfstat_cpu_total ();
19804 ;
19805 return 0;
19806 }
19807 _ACEOF
19808 if ac_fn_c_try_link "$LINENO"; then :
19809 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19810 else
19811 ac_cv_lib_perfstat_perfstat_cpu_total=no
19812 fi
19813 rm -f core conftest.err conftest.$ac_objext \
19814 conftest$ac_exeext conftest.$ac_ext
19815 LIBS=$ac_check_lib_save_LIBS
19816 fi
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19818 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19819 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19820 cat >>confdefs.h <<_ACEOF
19821 #define HAVE_LIBPERFSTAT 1
19822 _ACEOF
19823
19824 LIBS="-lperfstat $LIBS"
19825
19826 fi
19827
19828 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19829 fi
19830
19831 if test $gl_func_getloadavg_done = no; then
19832 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19833 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19834 gl_func_getloadavg_done=yes
19835
19836 $as_echo "#define DGUX 1" >>confdefs.h
19837
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19839 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19840 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19841 $as_echo_n "(cached) " >&6
19842 else
19843 ac_check_lib_save_LIBS=$LIBS
19844 LIBS="-ldgc $LIBS"
19845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19847
19848 /* Override any GCC internal prototype to avoid an error.
19849 Use char because int might match the return type of a GCC
19850 builtin and then its argument prototype would still apply. */
19851 #ifdef __cplusplus
19852 extern "C"
19853 #endif
19854 char dg_sys_info ();
19855 int
19856 main ()
19857 {
19858 return dg_sys_info ();
19859 ;
19860 return 0;
19861 }
19862 _ACEOF
19863 if ac_fn_c_try_link "$LINENO"; then :
19864 ac_cv_lib_dgc_dg_sys_info=yes
19865 else
19866 ac_cv_lib_dgc_dg_sys_info=no
19867 fi
19868 rm -f core conftest.err conftest.$ac_objext \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19871 fi
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19873 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19874 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_LIBDGC 1
19877 _ACEOF
19878
19879 LIBS="-ldgc $LIBS"
19880
19881 fi
19882
19883 fi
19884
19885
19886 fi
19887 fi
19888 fi
19889
19890
19891 if test "x$gl_save_LIBS" = x; then
19892 GETLOADAVG_LIBS=$LIBS
19893 else
19894 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19895 fi
19896 LIBS=$gl_save_LIBS
19897
19898
19899 # Test whether the system declares getloadavg. Solaris has the function
19900 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19901 for ac_header in sys/loadavg.h
19902 do :
19903 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19904 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19905 cat >>confdefs.h <<_ACEOF
19906 #define HAVE_SYS_LOADAVG_H 1
19907 _ACEOF
19908
19909 fi
19910
19911 done
19912
19913 if test $ac_cv_header_sys_loadavg_h = yes; then
19914 HAVE_SYS_LOADAVG_H=1
19915 else
19916 HAVE_SYS_LOADAVG_H=0
19917 fi
19918 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19919 # include <sys/loadavg.h>
19920 #endif
19921 #include <stdlib.h>
19922 "
19923 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19924
19925 else
19926 HAVE_DECL_GETLOADAVG=0
19927 fi
19928
19929
19930 if test $HAVE_GETLOADAVG = 0; then
19931
19932
19933
19934
19935
19936
19937
19938
19939 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19940
19941
19942 # Figure out what our getloadavg.c needs.
19943
19944 # On HPUX9, an unprivileged user can get load averages this way.
19945 if test $gl_func_getloadavg_done = no; then
19946 for ac_func in pstat_getdynamic
19947 do :
19948 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19949 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19950 cat >>confdefs.h <<_ACEOF
19951 #define HAVE_PSTAT_GETDYNAMIC 1
19952 _ACEOF
19953 gl_func_getloadavg_done=yes
19954 fi
19955 done
19956
19957 fi
19958
19959 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19960 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19961 # Irix 4.0.5F has the header but not the library.
19962 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19963 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19964 gl_func_getloadavg_done=yes
19965
19966 $as_echo "#define SVR4 1" >>confdefs.h
19967
19968 fi
19969
19970 if test $gl_func_getloadavg_done = no; then
19971 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19972 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19973 gl_func_getloadavg_done=yes
19974
19975 $as_echo "#define UMAX 1" >>confdefs.h
19976
19977
19978 $as_echo "#define UMAX4_3 1" >>confdefs.h
19979
19980 fi
19981
19982
19983 fi
19984
19985 if test $gl_func_getloadavg_done = no; then
19986 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19987 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19988 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19989
19990 fi
19991
19992
19993 fi
19994
19995 if test $gl_func_getloadavg_done = no; then
19996 for ac_header in mach/mach.h
19997 do :
19998 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19999 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20000 cat >>confdefs.h <<_ACEOF
20001 #define HAVE_MACH_MACH_H 1
20002 _ACEOF
20003
20004 fi
20005
20006 done
20007
20008 fi
20009
20010 for ac_header in nlist.h
20011 do :
20012 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20013 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_NLIST_H 1
20016 _ACEOF
20017 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20018 "
20019 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20020
20021 cat >>confdefs.h <<_ACEOF
20022 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20023 _ACEOF
20024
20025
20026 fi
20027
20028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h. */
20030 #include <nlist.h>
20031 int
20032 main ()
20033 {
20034 struct nlist x;
20035 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20036 x.n_un.n_name = "";
20037 #else
20038 x.n_name = "";
20039 #endif
20040 ;
20041 return 0;
20042 }
20043 _ACEOF
20044 if ac_fn_c_try_link "$LINENO"; then :
20045
20046 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20047
20048 fi
20049 rm -f core conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20051
20052 fi
20053
20054 done
20055
20056 fi
20057
20058
20059
20060
20061
20062 GNULIB_GETLOADAVG=1
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073 if test $REPLACE_GETOPT = 1; then
20074
20075
20076
20077
20078
20079
20080
20081
20082 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20093
20094
20095
20096
20097 fi
20098
20099
20100
20101
20102
20103 REPLACE_GETOPT=0
20104
20105
20106 if test -n "$gl_replace_getopt"; then :
20107
20108 REPLACE_GETOPT=1
20109
20110 fi
20111
20112
20113 if test $REPLACE_GETOPT = 1; then
20114
20115 GETOPT_H=getopt.h
20116
20117 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20118
20119
20120
20121 GNULIB_UNISTD_H_GETOPT=1
20122 fi
20123
20124 if test $REPLACE_GETOPT = 1; then
20125
20126
20127
20128
20129
20130
20131
20132
20133 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20144
20145
20146
20147
20148 fi
20149
20150
20151
20152
20153
20154 if test $ac_cv_func_lstat = yes; then
20155
20156 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20157 REPLACE_LSTAT=1
20158 fi
20159 else
20160 HAVE_LSTAT=0
20161 fi
20162
20163 if test $REPLACE_LSTAT = 1; then
20164
20165
20166
20167
20168
20169
20170
20171
20172 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20173
20174
20175
20176 :
20177
20178 fi
20179
20180
20181
20182
20183
20184 GNULIB_LSTAT=1
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196 if test $APPLE_UNIVERSAL_BUILD = 1; then
20197 # A universal build on Apple MacOS X platforms.
20198 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20199 # But we need a configuration result that is valid in both modes.
20200 gl_cv_func_working_mktime=no
20201 fi
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20203 $as_echo_n "checking for working mktime... " >&6; }
20204 if test "${gl_cv_func_working_mktime+set}" = set; then :
20205 $as_echo_n "(cached) " >&6
20206 else
20207 if test "$cross_compiling" = yes; then :
20208 gl_cv_func_working_mktime=no
20209 else
20210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20211 /* end confdefs.h. */
20212 /* Test program from Paul Eggert and Tony Leneis. */
20213 #include <limits.h>
20214 #include <stdlib.h>
20215 #include <time.h>
20216
20217 #ifdef HAVE_UNISTD_H
20218 # include <unistd.h>
20219 #endif
20220
20221 #ifndef HAVE_ALARM
20222 # define alarm(X) /* empty */
20223 #endif
20224
20225 /* Work around redefinition to rpl_putenv by other config tests. */
20226 #undef putenv
20227
20228 static time_t time_t_max;
20229 static time_t time_t_min;
20230
20231 /* Values we'll use to set the TZ environment variable. */
20232 static char *tz_strings[] = {
20233 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20234 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20235 };
20236 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20237
20238 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20239 Based on a problem report from Andreas Jaeger. */
20240 static int
20241 spring_forward_gap ()
20242 {
20243 /* glibc (up to about 1998-10-07) failed this test. */
20244 struct tm tm;
20245
20246 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20247 instead of "TZ=America/Vancouver" in order to detect the bug even
20248 on systems that don't support the Olson extension, or don't have the
20249 full zoneinfo tables installed. */
20250 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20251
20252 tm.tm_year = 98;
20253 tm.tm_mon = 3;
20254 tm.tm_mday = 5;
20255 tm.tm_hour = 2;
20256 tm.tm_min = 0;
20257 tm.tm_sec = 0;
20258 tm.tm_isdst = -1;
20259 return mktime (&tm) != (time_t) -1;
20260 }
20261
20262 static int
20263 mktime_test1 (time_t now)
20264 {
20265 struct tm *lt;
20266 return ! (lt = localtime (&now)) || mktime (lt) == now;
20267 }
20268
20269 static int
20270 mktime_test (time_t now)
20271 {
20272 return (mktime_test1 (now)
20273 && mktime_test1 ((time_t) (time_t_max - now))
20274 && mktime_test1 ((time_t) (time_t_min + now)));
20275 }
20276
20277 static int
20278 irix_6_4_bug ()
20279 {
20280 /* Based on code from Ariel Faigon. */
20281 struct tm tm;
20282 tm.tm_year = 96;
20283 tm.tm_mon = 3;
20284 tm.tm_mday = 0;
20285 tm.tm_hour = 0;
20286 tm.tm_min = 0;
20287 tm.tm_sec = 0;
20288 tm.tm_isdst = -1;
20289 mktime (&tm);
20290 return tm.tm_mon == 2 && tm.tm_mday == 31;
20291 }
20292
20293 static int
20294 bigtime_test (int j)
20295 {
20296 struct tm tm;
20297 time_t now;
20298 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20299 now = mktime (&tm);
20300 if (now != (time_t) -1)
20301 {
20302 struct tm *lt = localtime (&now);
20303 if (! (lt
20304 && lt->tm_year == tm.tm_year
20305 && lt->tm_mon == tm.tm_mon
20306 && lt->tm_mday == tm.tm_mday
20307 && lt->tm_hour == tm.tm_hour
20308 && lt->tm_min == tm.tm_min
20309 && lt->tm_sec == tm.tm_sec
20310 && lt->tm_yday == tm.tm_yday
20311 && lt->tm_wday == tm.tm_wday
20312 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20313 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20314 return 0;
20315 }
20316 return 1;
20317 }
20318
20319 static int
20320 year_2050_test ()
20321 {
20322 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20323 ignoring leap seconds. */
20324 unsigned long int answer = 2527315200UL;
20325
20326 struct tm tm;
20327 time_t t;
20328 tm.tm_year = 2050 - 1900;
20329 tm.tm_mon = 2 - 1;
20330 tm.tm_mday = 1;
20331 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20332 tm.tm_isdst = -1;
20333
20334 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20335 instead of "TZ=America/Vancouver" in order to detect the bug even
20336 on systems that don't support the Olson extension, or don't have the
20337 full zoneinfo tables installed. */
20338 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20339
20340 t = mktime (&tm);
20341
20342 /* Check that the result is either a failure, or close enough
20343 to the correct answer that we can assume the discrepancy is
20344 due to leap seconds. */
20345 return (t == (time_t) -1
20346 || (0 < t && answer - 120 <= t && t <= answer + 120));
20347 }
20348
20349 int
20350 main ()
20351 {
20352 int result = 0;
20353 time_t t, delta;
20354 int i, j;
20355 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20356 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20357
20358 /* This test makes some buggy mktime implementations loop.
20359 Give up after 60 seconds; a mktime slower than that
20360 isn't worth using anyway. */
20361 alarm (60);
20362
20363 time_t_max = (! time_t_signed
20364 ? (time_t) -1
20365 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20366 * 2 + 1));
20367 time_t_min = (! time_t_signed
20368 ? (time_t) 0
20369 : time_t_signed_magnitude
20370 ? ~ (time_t) 0
20371 : ~ time_t_max);
20372
20373 delta = time_t_max / 997; /* a suitable prime number */
20374 for (i = 0; i < N_STRINGS; i++)
20375 {
20376 if (tz_strings[i])
20377 putenv (tz_strings[i]);
20378
20379 for (t = 0; t <= time_t_max - delta; t += delta)
20380 if (! mktime_test (t))
20381 result |= 1;
20382 if (! (mktime_test ((time_t) 1)
20383 && mktime_test ((time_t) (60 * 60))
20384 && mktime_test ((time_t) (60 * 60 * 24))))
20385 result |= 2;
20386
20387 for (j = 1; ; j <<= 1)
20388 if (! bigtime_test (j))
20389 result |= 4;
20390 else if (INT_MAX / 2 < j)
20391 break;
20392 if (! bigtime_test (INT_MAX))
20393 result |= 8;
20394 }
20395 if (! irix_6_4_bug ())
20396 result |= 16;
20397 if (! spring_forward_gap ())
20398 result |= 32;
20399 if (! year_2050_test ())
20400 result |= 64;
20401 return result;
20402 }
20403 _ACEOF
20404 if ac_fn_c_try_run "$LINENO"; then :
20405 gl_cv_func_working_mktime=yes
20406 else
20407 gl_cv_func_working_mktime=no
20408 fi
20409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20410 conftest.$ac_objext conftest.beam conftest.$ac_ext
20411 fi
20412
20413
20414 fi
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20416 $as_echo "$gl_cv_func_working_mktime" >&6; }
20417
20418 if test $gl_cv_func_working_mktime = no; then
20419 REPLACE_MKTIME=1
20420 else
20421 REPLACE_MKTIME=0
20422 fi
20423
20424 if test $REPLACE_MKTIME = 1; then
20425
20426
20427
20428
20429
20430
20431
20432
20433 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20434
20435
20436
20437
20438 fi
20439
20440
20441
20442
20443
20444 GNULIB_MKTIME=1
20445
20446
20447
20448
20449
20450
20451
20452
20453 <<<<<<< TREE
20454 =======
20455 LIB_PTHREAD_SIGMASK=
20456
20457
20458 if test $ac_cv_func_pthread_sigmask = yes; then
20459 :
20460 else
20461 HAVE_PTHREAD_SIGMASK=0
20462 REPLACE_PTHREAD_SIGMASK=1
20463 fi
20464
20465
20466
20467
20468 if test $HAVE_PTHREAD_SIGMASK = 1; then
20469
20470
20471 if test -z "$LIB_PTHREAD_SIGMASK"; then
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20473 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20474 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20476 else
20477
20478 if test "$cross_compiling" = yes; then :
20479
20480 case "$host_os" in
20481 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20482 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20483 *)
20484 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20485 esac
20486
20487 else
20488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h. */
20490
20491 #include <pthread.h>
20492 #include <signal.h>
20493 #include <stddef.h>
20494 int main ()
20495 {
20496 sigset_t set;
20497 sigemptyset (&set);
20498 return pthread_sigmask (1729, &set, NULL) != 0;
20499 }
20500 _ACEOF
20501 if ac_fn_c_try_run "$LINENO"; then :
20502 gl_cv_func_pthread_sigmask_in_libc_works=no
20503 else
20504 gl_cv_func_pthread_sigmask_in_libc_works=yes
20505 fi
20506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20507 conftest.$ac_objext conftest.beam conftest.$ac_ext
20508 fi
20509
20510
20511 fi
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20513 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20514 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20515 *no)
20516 REPLACE_PTHREAD_SIGMASK=1
20517
20518 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20519
20520 ;;
20521 esac
20522 fi
20523
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20525 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20526 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20527 $as_echo_n "(cached) " >&6
20528 else
20529
20530 gl_save_LIBS="$LIBS"
20531 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20532 if test "$cross_compiling" = yes; then :
20533 case "$host_os" in
20534 cygwin*)
20535 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20536 *)
20537 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20538 esac
20539
20540 else
20541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20542 /* end confdefs.h. */
20543
20544 #include <pthread.h>
20545 #include <signal.h>
20546 #include <stddef.h>
20547 int main ()
20548 {
20549 sigset_t set;
20550 sigemptyset (&set);
20551 if (pthread_sigmask (1729, &set, NULL) == -1)
20552 return 1;
20553 return 0;
20554 }
20555 _ACEOF
20556 if ac_fn_c_try_run "$LINENO"; then :
20557 gl_cv_func_pthread_sigmask_return_works=yes
20558 else
20559 gl_cv_func_pthread_sigmask_return_works=no
20560 fi
20561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20562 conftest.$ac_objext conftest.beam conftest.$ac_ext
20563 fi
20564
20565 LIBS="$gl_save_LIBS"
20566
20567 fi
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20569 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20570 case "$gl_cv_func_pthread_sigmask_return_works" in
20571 *no)
20572 REPLACE_PTHREAD_SIGMASK=1
20573
20574 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20575
20576 ;;
20577 esac
20578
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20580 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20581 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20582 $as_echo_n "(cached) " >&6
20583 else
20584
20585 case "$host_os" in
20586 irix*)
20587 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20588 *)
20589 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20590 esac
20591 gl_save_LIBS="$LIBS"
20592 LIBS="$LIBS $LIBMULTITHREAD"
20593 if test "$cross_compiling" = yes; then :
20594 :
20595 else
20596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h. */
20598
20599 #include <pthread.h>
20600 #include <signal.h>
20601 #include <stdio.h>
20602 #include <stdlib.h>
20603 #include <unistd.h>
20604 static volatile int sigint_occurred;
20605 static void
20606 sigint_handler (int sig)
20607 {
20608 sigint_occurred++;
20609 }
20610 int main ()
20611 {
20612 sigset_t set;
20613 int pid = getpid ();
20614 char command[80];
20615 signal (SIGINT, sigint_handler);
20616 sigemptyset (&set);
20617 sigaddset (&set, SIGINT);
20618 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20619 return 1;
20620 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20621 if (!(system (command) == 0))
20622 return 2;
20623 sleep (2);
20624 if (!(sigint_occurred == 0))
20625 return 3;
20626 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20627 return 4;
20628 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20629 return 5;
20630 return 0;
20631 }
20632 _ACEOF
20633 if ac_fn_c_try_run "$LINENO"; then :
20634 :
20635 else
20636 gl_cv_func_pthread_sigmask_unblock_works=no
20637 fi
20638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20639 conftest.$ac_objext conftest.beam conftest.$ac_ext
20640 fi
20641
20642 LIBS="$gl_save_LIBS"
20643
20644 fi
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20646 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20647 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20648 *no)
20649 REPLACE_PTHREAD_SIGMASK=1
20650
20651 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20652
20653 ;;
20654 esac
20655 fi
20656
20657 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20658
20659
20660
20661
20662
20663
20664
20665
20666 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20667
20668
20669 if test $HAVE_PTHREAD_SIGMASK = 1; then
20670
20671 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20672
20673 fi
20674
20675 fi
20676
20677
20678
20679
20680
20681 GNULIB_PTHREAD_SIGMASK=1
20682
20683
20684
20685
20686
20687
20688
20689 >>>>>>> MERGE-SOURCE
20690
20691 if test $ac_cv_func_readlink = no; then
20692 HAVE_READLINK=0
20693 else
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20695 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20696 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20697 $as_echo_n "(cached) " >&6
20698 else
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20701 #include <unistd.h>
20702 /* Cause compilation failure if original declaration has wrong type. */
20703 ssize_t readlink (const char *, char *, size_t);
20704 int
20705 main ()
20706 {
20707
20708 ;
20709 return 0;
20710 }
20711 _ACEOF
20712 if ac_fn_c_try_compile "$LINENO"; then :
20713 gl_cv_decl_readlink_works=yes
20714 else
20715 gl_cv_decl_readlink_works=no
20716 fi
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 fi
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20720 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20722 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20723 if test "${gl_cv_func_readlink_works+set}" = set; then :
20724 $as_echo_n "(cached) " >&6
20725 else
20726 # We have readlink, so assume ln -s works.
20727 ln -s conftest.no-such conftest.link
20728 ln -s conftest.link conftest.lnk2
20729 if test "$cross_compiling" = yes; then :
20730 gl_cv_func_readlink_works="guessing no"
20731 else
20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733 /* end confdefs.h. */
20734 #include <unistd.h>
20735
20736 int
20737 main ()
20738 {
20739 char buf[20];
20740 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20741 ;
20742 return 0;
20743 }
20744 _ACEOF
20745 if ac_fn_c_try_run "$LINENO"; then :
20746 gl_cv_func_readlink_works=yes
20747 else
20748 gl_cv_func_readlink_works=no
20749 fi
20750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20751 conftest.$ac_objext conftest.beam conftest.$ac_ext
20752 fi
20753
20754 rm -f conftest.link conftest.lnk2
20755 fi
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20757 $as_echo "$gl_cv_func_readlink_works" >&6; }
20758 if test "$gl_cv_func_readlink_works" != yes; then
20759
20760 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20761
20762 REPLACE_READLINK=1
20763 elif test "$gl_cv_decl_readlink_works" != yes; then
20764 REPLACE_READLINK=1
20765 fi
20766 fi
20767
20768 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20769
20770
20771
20772
20773
20774
20775
20776
20777 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20778
20779
20780 :
20781
20782 fi
20783
20784
20785
20786
20787
20788 GNULIB_READLINK=1
20789
20790
20791
20792
20793
20794 <<<<<<< TREE
20795 =======
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807 if test $gl_cv_have_include_next = yes; then
20808 gl_cv_next_signal_h='<'signal.h'>'
20809 else
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20811 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20812 if test "${gl_cv_next_signal_h+set}" = set; then :
20813 $as_echo_n "(cached) " >&6
20814 else
20815
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20818 #include <signal.h>
20819
20820 _ACEOF
20821 case "$host_os" in
20822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20823 *) gl_absname_cpp="$ac_cpp" ;;
20824 esac
20825
20826 case "$host_os" in
20827 mingw*)
20828 gl_dirsep_regex='[/\\]'
20829 ;;
20830 *)
20831 gl_dirsep_regex='/'
20832 ;;
20833 esac
20834
20835 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'signal.h#{
20836 s#.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*#\1#
20837 s#^/[^/]#//&#
20838 p
20839 q
20840 }'
20841 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20842 sed -n "$gl_absolute_header_sed"`'"'
20843
20844
20845 fi
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20847 $as_echo "$gl_cv_next_signal_h" >&6; }
20848 fi
20849 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20850
20851 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20852 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20853 gl_next_as_first_directive='<'signal.h'>'
20854 else
20855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20856 gl_next_as_first_directive=$gl_cv_next_signal_h
20857 fi
20858 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20859
20860
20861
20862
20863
20864 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20865 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20866 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20867 #include <signal.h>
20868
20869 "
20870 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20871
20872 else
20873 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20874 fi
20875
20876
20877
20878
20879
20880
20881
20882 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20883 #include <signal.h>
20884
20885 "
20886 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20887
20888 else
20889 HAVE_SIGHANDLER_T=0
20890 fi
20891
20892
20893
20894
20895 >>>>>>> MERGE-SOURCE
20896 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20897 /* <sys/types.h> is not needed according to POSIX, but the
20898 <sys/socket.h> in i386-unknown-freebsd4.10 and
20899 powerpc-apple-darwin5.5 required it. */
20900 #include <sys/types.h>
20901 #if HAVE_SYS_SOCKET_H
20902 # include <sys/socket.h>
20903 #elif HAVE_WS2TCPIP_H
20904 # include <ws2tcpip.h>
20905 #endif
20906
20907 "
20908 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20909
20910 else
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20912 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20913 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20914 $as_echo_n "(cached) " >&6
20915 else
20916 # Systems have either "struct sockaddr *" or
20917 # "void *" as the second argument to getpeername
20918 gl_cv_socklen_t_equiv=
20919 for arg2 in "struct sockaddr" void; do
20920 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20922 /* end confdefs.h. */
20923 #include <sys/types.h>
20924 #include <sys/socket.h>
20925
20926 int getpeername (int, $arg2 *, $t *);
20927 int
20928 main ()
20929 {
20930 $t len;
20931 getpeername (0, 0, &len);
20932 ;
20933 return 0;
20934 }
20935 _ACEOF
20936 if ac_fn_c_try_compile "$LINENO"; then :
20937 gl_cv_socklen_t_equiv="$t"
20938 fi
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 test "$gl_cv_socklen_t_equiv" != "" && break
20941 done
20942 test "$gl_cv_socklen_t_equiv" != "" && break
20943 done
20944
20945 fi
20946
20947 if test "$gl_cv_socklen_t_equiv" = ""; then
20948 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20949 fi
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20951 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20952
20953 cat >>confdefs.h <<_ACEOF
20954 #define socklen_t $gl_cv_socklen_t_equiv
20955 _ACEOF
20956
20957 fi
20958
20959
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20961 $as_echo_n "checking for ssize_t... " >&6; }
20962 if test "${gt_cv_ssize_t+set}" = set; then :
20963 $as_echo_n "(cached) " >&6
20964 else
20965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h. */
20967 #include <sys/types.h>
20968 int
20969 main ()
20970 {
20971 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20972 return !x;
20973 ;
20974 return 0;
20975 }
20976 _ACEOF
20977 if ac_fn_c_try_compile "$LINENO"; then :
20978 gt_cv_ssize_t=yes
20979 else
20980 gt_cv_ssize_t=no
20981 fi
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983 fi
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20985 $as_echo "$gt_cv_ssize_t" >&6; }
20986 if test $gt_cv_ssize_t = no; then
20987
20988 $as_echo "#define ssize_t int" >>confdefs.h
20989
20990 fi
20991
20992
20993 STDARG_H=''
20994 NEXT_STDARG_H='<stdarg.h>'
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20996 $as_echo_n "checking for va_copy... " >&6; }
20997 if test "${gl_cv_func_va_copy+set}" = set; then :
20998 $as_echo_n "(cached) " >&6
20999 else
21000
21001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21002 /* end confdefs.h. */
21003 #include <stdarg.h>
21004 int
21005 main ()
21006 {
21007
21008 #ifndef va_copy
21009 void (*func) (va_list, va_list) = va_copy;
21010 #endif
21011
21012 ;
21013 return 0;
21014 }
21015 _ACEOF
21016 if ac_fn_c_try_compile "$LINENO"; then :
21017 gl_cv_func_va_copy=yes
21018 else
21019 gl_cv_func_va_copy=no
21020 fi
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022 fi
21023
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21025 $as_echo "$gl_cv_func_va_copy" >&6; }
21026 if test $gl_cv_func_va_copy = no; then
21027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028 /* end confdefs.h. */
21029 #if defined _AIX && !defined __GNUC__
21030 AIX vaccine
21031 #endif
21032
21033 _ACEOF
21034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21035 $EGREP "vaccine" >/dev/null 2>&1; then :
21036 gl_aixcc=yes
21037 else
21038 gl_aixcc=no
21039 fi
21040 rm -f conftest*
21041
21042 if test $gl_aixcc = yes; then
21043 STDARG_H=stdarg.h
21044
21045
21046
21047
21048
21049
21050
21051
21052 if test $gl_cv_have_include_next = yes; then
21053 gl_cv_next_stdarg_h='<'stdarg.h'>'
21054 else
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21056 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21057 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21058 $as_echo_n "(cached) " >&6
21059 else
21060
21061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21062 /* end confdefs.h. */
21063 #include <stdarg.h>
21064
21065 _ACEOF
21066 case "$host_os" in
21067 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21068 *) gl_absname_cpp="$ac_cpp" ;;
21069 esac
21070
21071 case "$host_os" in
21072 mingw*)
21073 gl_dirsep_regex='[/\\]'
21074 ;;
21075 *)
21076 gl_dirsep_regex='/'
21077 ;;
21078 esac
21079
21080 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdarg.h#{
21081 s#.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*#\1#
21082 s#^/[^/]#//&#
21083 p
21084 q
21085 }'
21086 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21087 sed -n "$gl_absolute_header_sed"`'"'
21088
21089
21090 fi
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21092 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21093 fi
21094 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21095
21096 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21098 gl_next_as_first_directive='<'stdarg.h'>'
21099 else
21100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21101 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21102 fi
21103 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21104
21105
21106
21107
21108 if test "$gl_cv_next_stdarg_h" = '""'; then
21109 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21110 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21111 fi
21112 else
21113
21114 saved_as_echo_n="$as_echo_n"
21115 as_echo_n=':'
21116 if test "${gl_cv_func___va_copy+set}" = set; then :
21117 $as_echo_n "(cached) " >&6
21118 else
21119
21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h. */
21122 #include <stdarg.h>
21123 int
21124 main ()
21125 {
21126
21127 #ifndef __va_copy
21128 error, bail out
21129 #endif
21130
21131 ;
21132 return 0;
21133 }
21134 _ACEOF
21135 if ac_fn_c_try_compile "$LINENO"; then :
21136 gl_cv_func___va_copy=yes
21137 else
21138 gl_cv_func___va_copy=no
21139 fi
21140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21141 fi
21142
21143 as_echo_n="$saved_as_echo_n"
21144
21145 if test $gl_cv_func___va_copy = yes; then
21146
21147 $as_echo "#define va_copy __va_copy" >>confdefs.h
21148
21149 else
21150
21151
21152 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21153
21154 fi
21155 fi
21156 fi
21157
21158 if test -n "$STDARG_H"; then
21159 GL_GENERATE_STDARG_H_TRUE=
21160 GL_GENERATE_STDARG_H_FALSE='#'
21161 else
21162 GL_GENERATE_STDARG_H_TRUE='#'
21163 GL_GENERATE_STDARG_H_FALSE=
21164 fi
21165
21166
21167
21168
21169
21170
21171 # Define two additional variables used in the Makefile substitution.
21172
21173 if test "$ac_cv_header_stdbool_h" = yes; then
21174 STDBOOL_H=''
21175 else
21176 STDBOOL_H='stdbool.h'
21177 fi
21178
21179 if test -n "$STDBOOL_H"; then
21180 GL_GENERATE_STDBOOL_H_TRUE=
21181 GL_GENERATE_STDBOOL_H_FALSE='#'
21182 else
21183 GL_GENERATE_STDBOOL_H_TRUE='#'
21184 GL_GENERATE_STDBOOL_H_FALSE=
21185 fi
21186
21187
21188 if test "$ac_cv_type__Bool" = yes; then
21189 HAVE__BOOL=1
21190 else
21191 HAVE__BOOL=0
21192 fi
21193
21194
21195
21196
21197
21198 STDDEF_H=
21199 if test $gt_cv_c_wchar_t = no; then
21200 HAVE_WCHAR_T=0
21201 STDDEF_H=stddef.h
21202 fi
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21204 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21205 if test "${gl_cv_decl_null_works+set}" = set; then :
21206 $as_echo_n "(cached) " >&6
21207 else
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h. */
21210 #include <stddef.h>
21211 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21212
21213 int
21214 main ()
21215 {
21216
21217 ;
21218 return 0;
21219 }
21220 _ACEOF
21221 if ac_fn_c_try_compile "$LINENO"; then :
21222 gl_cv_decl_null_works=yes
21223 else
21224 gl_cv_decl_null_works=no
21225 fi
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 fi
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21229 $as_echo "$gl_cv_decl_null_works" >&6; }
21230 if test $gl_cv_decl_null_works = no; then
21231 REPLACE_NULL=1
21232 STDDEF_H=stddef.h
21233 fi
21234
21235 if test -n "$STDDEF_H"; then
21236 GL_GENERATE_STDDEF_H_TRUE=
21237 GL_GENERATE_STDDEF_H_FALSE='#'
21238 else
21239 GL_GENERATE_STDDEF_H_TRUE='#'
21240 GL_GENERATE_STDDEF_H_FALSE=
21241 fi
21242
21243 if test -n "$STDDEF_H"; then
21244
21245
21246
21247
21248
21249
21250
21251
21252 if test $gl_cv_have_include_next = yes; then
21253 gl_cv_next_stddef_h='<'stddef.h'>'
21254 else
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21256 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21257 if test "${gl_cv_next_stddef_h+set}" = set; then :
21258 $as_echo_n "(cached) " >&6
21259 else
21260
21261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21262 /* end confdefs.h. */
21263 #include <stddef.h>
21264
21265 _ACEOF
21266 case "$host_os" in
21267 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21268 *) gl_absname_cpp="$ac_cpp" ;;
21269 esac
21270
21271 case "$host_os" in
21272 mingw*)
21273 gl_dirsep_regex='[/\\]'
21274 ;;
21275 *)
21276 gl_dirsep_regex='/'
21277 ;;
21278 esac
21279
21280 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stddef.h#{
21281 s#.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*#\1#
21282 s#^/[^/]#//&#
21283 p
21284 q
21285 }'
21286 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21287 sed -n "$gl_absolute_header_sed"`'"'
21288
21289
21290 fi
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21292 $as_echo "$gl_cv_next_stddef_h" >&6; }
21293 fi
21294 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21295
21296 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21298 gl_next_as_first_directive='<'stddef.h'>'
21299 else
21300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21301 gl_next_as_first_directive=$gl_cv_next_stddef_h
21302 fi
21303 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21304
21305
21306
21307
21308 fi
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322 if test $gl_cv_have_include_next = yes; then
21323 gl_cv_next_stdio_h='<'stdio.h'>'
21324 else
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21326 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21327 if test "${gl_cv_next_stdio_h+set}" = set; then :
21328 $as_echo_n "(cached) " >&6
21329 else
21330
21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332 /* end confdefs.h. */
21333 #include <stdio.h>
21334
21335 _ACEOF
21336 case "$host_os" in
21337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21338 *) gl_absname_cpp="$ac_cpp" ;;
21339 esac
21340
21341 case "$host_os" in
21342 mingw*)
21343 gl_dirsep_regex='[/\\]'
21344 ;;
21345 *)
21346 gl_dirsep_regex='/'
21347 ;;
21348 esac
21349
21350 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdio.h#{
21351 s#.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*#\1#
21352 s#^/[^/]#//&#
21353 p
21354 q
21355 }'
21356 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21357 sed -n "$gl_absolute_header_sed"`'"'
21358
21359
21360 fi
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21362 $as_echo "$gl_cv_next_stdio_h" >&6; }
21363 fi
21364 NEXT_STDIO_H=$gl_cv_next_stdio_h
21365
21366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21368 gl_next_as_first_directive='<'stdio.h'>'
21369 else
21370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21371 gl_next_as_first_directive=$gl_cv_next_stdio_h
21372 fi
21373 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21374
21375
21376
21377
21378
21379 GNULIB_FSCANF=1
21380 GNULIB_SCANF=1
21381 GNULIB_FGETC=1
21382 GNULIB_GETC=1
21383 GNULIB_GETCHAR=1
21384 GNULIB_FGETS=1
21385 GNULIB_GETS=1
21386 GNULIB_FREAD=1
21387
21388
21389 GNULIB_FPRINTF=1
21390 GNULIB_PRINTF=1
21391 GNULIB_VFPRINTF=1
21392 GNULIB_VPRINTF=1
21393 GNULIB_FPUTC=1
21394 GNULIB_PUTC=1
21395 GNULIB_PUTCHAR=1
21396 GNULIB_FPUTS=1
21397 GNULIB_PUTS=1
21398 GNULIB_FWRITE=1
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414 if test $gl_cv_have_include_next = yes; then
21415 gl_cv_next_stdlib_h='<'stdlib.h'>'
21416 else
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21418 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21419 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21420 $as_echo_n "(cached) " >&6
21421 else
21422
21423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h. */
21425 #include <stdlib.h>
21426
21427 _ACEOF
21428 case "$host_os" in
21429 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21430 *) gl_absname_cpp="$ac_cpp" ;;
21431 esac
21432
21433 case "$host_os" in
21434 mingw*)
21435 gl_dirsep_regex='[/\\]'
21436 ;;
21437 *)
21438 gl_dirsep_regex='/'
21439 ;;
21440 esac
21441
21442 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdlib.h#{
21443 s#.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*#\1#
21444 s#^/[^/]#//&#
21445 p
21446 q
21447 }'
21448 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21449 sed -n "$gl_absolute_header_sed"`'"'
21450
21451
21452 fi
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21454 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21455 fi
21456 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21457
21458 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21459 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21460 gl_next_as_first_directive='<'stdlib.h'>'
21461 else
21462 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21463 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21464 fi
21465 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21476
21477
21478
21479
21480
21481
21482
21483 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21484
21485
21486
21487
21488
21489
21490
21491 <<<<<<< TREE
21492 =======
21493
21494 if test "$ac_cv_have_decl_strtoimax" != yes; then
21495 HAVE_DECL_STRTOIMAX=0
21496 fi
21497
21498 if test $ac_cv_func_strtoimax = no; then
21499
21500
21501
21502
21503
21504
21505
21506
21507 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21508
21509
21510 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21511 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21512 ac_have_decl=1
21513 else
21514 ac_have_decl=0
21515 fi
21516
21517 cat >>confdefs.h <<_ACEOF
21518 #define HAVE_DECL_STRTOLL $ac_have_decl
21519 _ACEOF
21520
21521
21522
21523 fi
21524
21525
21526
21527
21528
21529 GNULIB_STRTOIMAX=1
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539 >>>>>>> MERGE-SOURCE
21540 if test "$ac_cv_have_decl_strtoumax" != yes; then
21541 HAVE_DECL_STRTOUMAX=0
21542 fi
21543
21544 if test $ac_cv_func_strtoumax = no; then
21545
21546
21547
21548
21549
21550
21551
21552
21553 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21554
21555
21556 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21557 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21558 ac_have_decl=1
21559 else
21560 ac_have_decl=0
21561 fi
21562
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_DECL_STRTOULL $ac_have_decl
21565 _ACEOF
21566
21567
21568
21569 fi
21570
21571
21572
21573
21574
21575 GNULIB_STRTOUMAX=1
21576
21577
21578
21579
21580
21581
21582
21583 if test $ac_cv_func_symlink = no; then
21584 HAVE_SYMLINK=0
21585 else
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21587 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21588 if test "${gl_cv_func_symlink_works+set}" = set; then :
21589 $as_echo_n "(cached) " >&6
21590 else
21591 if test "$cross_compiling" = yes; then :
21592 gl_cv_func_symlink_works="guessing no"
21593 else
21594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21595 /* end confdefs.h. */
21596 #include <unistd.h>
21597
21598 int
21599 main ()
21600 {
21601 int result = 0;
21602 if (!symlink ("a", "conftest.link/"))
21603 result |= 1;
21604 if (symlink ("conftest.f", "conftest.lnk2"))
21605 result |= 2;
21606 else if (!symlink ("a", "conftest.lnk2/"))
21607 result |= 4;
21608 return result;
21609
21610 ;
21611 return 0;
21612 }
21613 _ACEOF
21614 if ac_fn_c_try_run "$LINENO"; then :
21615 gl_cv_func_symlink_works=yes
21616 else
21617 gl_cv_func_symlink_works=no
21618 fi
21619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21620 conftest.$ac_objext conftest.beam conftest.$ac_ext
21621 fi
21622
21623 rm -f conftest.f conftest.link conftest.lnk2
21624 fi
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21626 $as_echo "$gl_cv_func_symlink_works" >&6; }
21627 if test "$gl_cv_func_symlink_works" != yes; then
21628 REPLACE_SYMLINK=1
21629 fi
21630 fi
21631
21632 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21633
21634
21635
21636
21637
21638
21639
21640
21641 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21642
21643 fi
21644
21645
21646
21647
21648
21649 GNULIB_SYMLINK=1
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671 if test $gl_cv_have_include_next = yes; then
21672 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21673 else
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21675 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21676 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21677 $as_echo_n "(cached) " >&6
21678 else
21679
21680 if test $ac_cv_header_sys_stat_h = yes; then
21681
21682
21683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h. */
21685 #include <sys/stat.h>
21686
21687 _ACEOF
21688 case "$host_os" in
21689 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21690 *) gl_absname_cpp="$ac_cpp" ;;
21691 esac
21692
21693 case "$host_os" in
21694 mingw*)
21695 gl_dirsep_regex='[/\\]'
21696 ;;
21697 *)
21698 gl_dirsep_regex='/'
21699 ;;
21700 esac
21701
21702 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'sys/stat.h#{
21703 s#.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*#\1#
21704 s#^/[^/]#//&#
21705 p
21706 q
21707 }'
21708 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21709 sed -n "$gl_absolute_header_sed"`'"'
21710 else
21711 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21712 fi
21713
21714
21715 fi
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21717 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21718 fi
21719 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21720
21721 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21723 gl_next_as_first_directive='<'sys/stat.h'>'
21724 else
21725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21726 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21727 fi
21728 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21729
21730
21731
21732
21733
21734 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21735 #include <sys/stat.h>
21736 "
21737 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21738
21739 else
21740
21741 $as_echo "#define nlink_t int" >>confdefs.h
21742
21743 fi
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759 if test $ac_cv_have_decl_localtime_r = no; then
21760 HAVE_DECL_LOCALTIME_R=0
21761 fi
21762
21763
21764 if test $ac_cv_func_localtime_r = yes; then
21765 HAVE_LOCALTIME_R=1
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21767 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21768 if test "${gl_cv_time_r_posix+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21770 else
21771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21772 /* end confdefs.h. */
21773 #include <time.h>
21774 int
21775 main ()
21776 {
21777 /* We don't need to append 'restrict's to the argument types,
21778 even though the POSIX signature has the 'restrict's,
21779 since C99 says they can't affect type compatibility. */
21780 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21781 if (ptr) return 0;
21782 /* Check the return type is a pointer.
21783 On HP-UX 10 it is 'int'. */
21784 *localtime_r (0, 0);
21785 ;
21786 return 0;
21787 }
21788
21789 _ACEOF
21790 if ac_fn_c_try_compile "$LINENO"; then :
21791 gl_cv_time_r_posix=yes
21792 else
21793 gl_cv_time_r_posix=no
21794 fi
21795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21796
21797 fi
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21799 $as_echo "$gl_cv_time_r_posix" >&6; }
21800 if test $gl_cv_time_r_posix = yes; then
21801 REPLACE_LOCALTIME_R=0
21802 else
21803 REPLACE_LOCALTIME_R=1
21804 fi
21805 else
21806 HAVE_LOCALTIME_R=0
21807 fi
21808
21809 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21810
21811
21812
21813
21814
21815
21816
21817
21818 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21819
21820
21821 :
21822
21823 fi
21824
21825
21826
21827
21828
21829 GNULIB_TIME_R=1
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849 if test $gl_cv_have_include_next = yes; then
21850 gl_cv_next_unistd_h='<'unistd.h'>'
21851 else
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21853 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21854 if test "${gl_cv_next_unistd_h+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21856 else
21857
21858 if test $ac_cv_header_unistd_h = yes; then
21859
21860
21861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h. */
21863 #include <unistd.h>
21864
21865 _ACEOF
21866 case "$host_os" in
21867 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21868 *) gl_absname_cpp="$ac_cpp" ;;
21869 esac
21870
21871 case "$host_os" in
21872 mingw*)
21873 gl_dirsep_regex='[/\\]'
21874 ;;
21875 *)
21876 gl_dirsep_regex='/'
21877 ;;
21878 esac
21879
21880 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'unistd.h#{
21881 s#.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*#\1#
21882 s#^/[^/]#//&#
21883 p
21884 q
21885 }'
21886 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21887 sed -n "$gl_absolute_header_sed"`'"'
21888 else
21889 gl_cv_next_unistd_h='<'unistd.h'>'
21890 fi
21891
21892
21893 fi
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21895 $as_echo "$gl_cv_next_unistd_h" >&6; }
21896 fi
21897 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21898
21899 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21901 gl_next_as_first_directive='<'unistd.h'>'
21902 else
21903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21904 gl_next_as_first_directive=$gl_cv_next_unistd_h
21905 fi
21906 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21907
21908
21909
21910
21911 if test $ac_cv_header_unistd_h = yes; then
21912 HAVE_UNISTD_H=1
21913 else
21914 HAVE_UNISTD_H=0
21915 fi
21916
21917
21918
21919
21920
21921
21922 gl_gnulib_enabled_dosname=false
21923 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21924 <<<<<<< TREE
21925 =======
21926 gl_gnulib_enabled_pathmax=false
21927 gl_gnulib_enabled_sigprocmask=false
21928 >>>>>>> MERGE-SOURCE
21929 gl_gnulib_enabled_stat=false
21930 gl_gnulib_enabled_strtoull=false
21931 gl_gnulib_enabled_verify=false
21932 func_gl_gnulib_m4code_dosname ()
21933 {
21934 if ! $gl_gnulib_enabled_dosname; then
21935 gl_gnulib_enabled_dosname=true
21936 fi
21937 }
21938 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21939 {
21940 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21941
21942
21943 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21944 fi
21945 }
21946 <<<<<<< TREE
21947 <<<<<<< TREE
21948 =======
21949 =======
21950 func_gl_gnulib_m4code_pathmax ()
21951 {
21952 if ! $gl_gnulib_enabled_pathmax; then
21953
21954
21955
21956 gl_gnulib_enabled_pathmax=true
21957 fi
21958 }
21959 >>>>>>> MERGE-SOURCE
21960 func_gl_gnulib_m4code_sigprocmask ()
21961 {
21962 if ! $gl_gnulib_enabled_sigprocmask; then
21963
21964
21965
21966 if test $gl_cv_type_sigset_t = yes; then
21967 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21968 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21969 gl_cv_func_sigprocmask=1
21970 fi
21971
21972 fi
21973 if test -z "$gl_cv_func_sigprocmask"; then
21974 HAVE_POSIX_SIGNALBLOCKING=0
21975 fi
21976
21977 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21978
21979
21980
21981
21982
21983
21984
21985
21986 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21987
21988 :
21989 fi
21990
21991
21992
21993
21994
21995 GNULIB_SIGPROCMASK=1
21996
21997
21998
21999
22000
22001 gl_gnulib_enabled_sigprocmask=true
22002 fi
22003 }
22004 >>>>>>> MERGE-SOURCE
22005 func_gl_gnulib_m4code_stat ()
22006 {
22007 if ! $gl_gnulib_enabled_stat; then
22008
22009
22010
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22012 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22013 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22014 $as_echo_n "(cached) " >&6
22015 else
22016 if test "$cross_compiling" = yes; then :
22017 case $host_os in
22018 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
22019 *) gl_cv_func_stat_dir_slash="guessing yes";;
22020 esac
22021 else
22022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22023 /* end confdefs.h. */
22024 #include <sys/stat.h>
22025
22026 int
22027 main ()
22028 {
22029 struct stat st; return stat (".", &st) != stat ("./", &st);
22030 ;
22031 return 0;
22032 }
22033 _ACEOF
22034 if ac_fn_c_try_run "$LINENO"; then :
22035 gl_cv_func_stat_dir_slash=yes
22036 else
22037 gl_cv_func_stat_dir_slash=no
22038 fi
22039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22040 conftest.$ac_objext conftest.beam conftest.$ac_ext
22041 fi
22042
22043 fi
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22045 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22047 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22048 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22049 $as_echo_n "(cached) " >&6
22050 else
22051 touch conftest.tmp
22052 # Assume that if we have lstat, we can also check symlinks.
22053 if test $ac_cv_func_lstat = yes; then
22054 ln -s conftest.tmp conftest.lnk
22055 fi
22056 if test "$cross_compiling" = yes; then :
22057 gl_cv_func_stat_file_slash="guessing no"
22058 else
22059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22060 /* end confdefs.h. */
22061 #include <sys/stat.h>
22062
22063 int
22064 main ()
22065 {
22066 int result = 0;
22067 struct stat st;
22068 if (!stat ("conftest.tmp/", &st))
22069 result |= 1;
22070 #if HAVE_LSTAT
22071 if (!stat ("conftest.lnk/", &st))
22072 result |= 2;
22073 #endif
22074 return result;
22075
22076 ;
22077 return 0;
22078 }
22079 _ACEOF
22080 if ac_fn_c_try_run "$LINENO"; then :
22081 gl_cv_func_stat_file_slash=yes
22082 else
22083 gl_cv_func_stat_file_slash=no
22084 fi
22085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22086 conftest.$ac_objext conftest.beam conftest.$ac_ext
22087 fi
22088
22089 rm -f conftest.tmp conftest.lnk
22090 fi
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22092 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22093 case $gl_cv_func_stat_dir_slash in
22094 *no) REPLACE_STAT=1
22095
22096 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22097 ;;
22098 esac
22099 case $gl_cv_func_stat_file_slash in
22100 *no) REPLACE_STAT=1
22101
22102 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22103 ;;
22104 esac
22105
22106 if test $REPLACE_STAT = 1; then
22107
22108
22109
22110
22111
22112
22113
22114
22115 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22116
22117
22118
22119 :
22120
22121 fi
22122
22123
22124
22125
22126
22127 GNULIB_STAT=1
22128
22129
22130
22131
22132
22133 gl_gnulib_enabled_stat=true
22134 if test $REPLACE_STAT = 1; then
22135 func_gl_gnulib_m4code_dosname
22136 fi
22137 <<<<<<< TREE
22138 if $condition; then
22139 =======
22140 if test $REPLACE_STAT = 1; then
22141 <<<<<<< TREE
22142 >>>>>>> MERGE-SOURCE
22143 =======
22144 func_gl_gnulib_m4code_pathmax
22145 fi
22146 if test $REPLACE_STAT = 1; then
22147 >>>>>>> MERGE-SOURCE
22148 func_gl_gnulib_m4code_verify
22149 fi
22150 fi
22151 }
22152 <<<<<<< TREE
22153 =======
22154 func_gl_gnulib_m4code_strtoll ()
22155 {
22156 if ! $gl_gnulib_enabled_strtoll; then
22157
22158
22159
22160 if test "$ac_cv_type_long_long_int" = yes; then
22161 for ac_func in strtoll
22162 do :
22163 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22164 if test "x$ac_cv_func_strtoll" = x""yes; then :
22165 cat >>confdefs.h <<_ACEOF
22166 #define HAVE_STRTOLL 1
22167 _ACEOF
22168
22169 fi
22170 done
22171
22172 if test $ac_cv_func_strtoll = no; then
22173 HAVE_STRTOLL=0
22174 fi
22175 fi
22176
22177 if test $HAVE_STRTOLL = 0; then
22178
22179
22180
22181
22182
22183
22184
22185
22186 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22187
22188
22189 :
22190
22191 fi
22192
22193
22194
22195
22196
22197 GNULIB_STRTOLL=1
22198
22199
22200
22201
22202
22203 gl_gnulib_enabled_strtoll=true
22204 fi
22205 }
22206 >>>>>>> MERGE-SOURCE
22207 func_gl_gnulib_m4code_strtoull ()
22208 {
22209 if ! $gl_gnulib_enabled_strtoull; then
22210
22211
22212
22213 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22214 for ac_func in strtoull
22215 do :
22216 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22217 if test "x$ac_cv_func_strtoull" = x""yes; then :
22218 cat >>confdefs.h <<_ACEOF
22219 #define HAVE_STRTOULL 1
22220 _ACEOF
22221
22222 fi
22223 done
22224
22225 if test $ac_cv_func_strtoull = no; then
22226 HAVE_STRTOULL=0
22227 fi
22228 fi
22229
22230 if test $HAVE_STRTOULL = 0; then
22231
22232
22233
22234
22235
22236
22237
22238
22239 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22240
22241
22242 :
22243
22244 fi
22245
22246
22247
22248
22249
22250 GNULIB_STRTOULL=1
22251
22252
22253
22254
22255
22256 gl_gnulib_enabled_strtoull=true
22257 fi
22258 }
22259 func_gl_gnulib_m4code_verify ()
22260 {
22261 if ! $gl_gnulib_enabled_verify; then
22262 gl_gnulib_enabled_verify=true
22263 fi
22264 }
22265 if test $REPLACE_GETOPT = 1; then
22266 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22267 fi
22268 if test $REPLACE_LSTAT = 1; then
22269 func_gl_gnulib_m4code_dosname
22270 fi
22271 if test $REPLACE_LSTAT = 1; then
22272 func_gl_gnulib_m4code_stat
22273 fi
22274 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22275 func_gl_gnulib_m4code_stat
22276 fi
22277 <<<<<<< TREE
22278 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
22279 =======
22280 if test $ac_cv_func_strtoimax = no; then
22281 func_gl_gnulib_m4code_verify
22282 fi
22283 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22284 func_gl_gnulib_m4code_strtoll
22285 fi
22286 if test $ac_cv_func_strtoumax = no; then
22287 >>>>>>> MERGE-SOURCE
22288 func_gl_gnulib_m4code_verify
22289 fi
22290 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22291 func_gl_gnulib_m4code_strtoull
22292 fi
22293
22294 if $gl_gnulib_enabled_dosname; then
22295 gl_GNULIB_ENABLED_dosname_TRUE=
22296 gl_GNULIB_ENABLED_dosname_FALSE='#'
22297 else
22298 gl_GNULIB_ENABLED_dosname_TRUE='#'
22299 gl_GNULIB_ENABLED_dosname_FALSE=
22300 fi
22301
22302 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22303 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22304 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22305 else
22306 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22307 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22308 fi
22309
22310 <<<<<<< TREE
22311 =======
22312 if $gl_gnulib_enabled_pathmax; then
22313 gl_GNULIB_ENABLED_pathmax_TRUE=
22314 gl_GNULIB_ENABLED_pathmax_FALSE='#'
22315 else
22316 gl_GNULIB_ENABLED_pathmax_TRUE='#'
22317 gl_GNULIB_ENABLED_pathmax_FALSE=
22318 fi
22319
22320 if $gl_gnulib_enabled_sigprocmask; then
22321 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22322 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22323 else
22324 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22325 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22326 fi
22327
22328 >>>>>>> MERGE-SOURCE
22329 if $gl_gnulib_enabled_stat; then
22330 gl_GNULIB_ENABLED_stat_TRUE=
22331 gl_GNULIB_ENABLED_stat_FALSE='#'
22332 else
22333 gl_GNULIB_ENABLED_stat_TRUE='#'
22334 gl_GNULIB_ENABLED_stat_FALSE=
22335 fi
22336
22337 if $gl_gnulib_enabled_strtoull; then
22338 gl_GNULIB_ENABLED_strtoull_TRUE=
22339 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22340 else
22341 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22342 gl_GNULIB_ENABLED_strtoull_FALSE=
22343 fi
22344
22345 if $gl_gnulib_enabled_verify; then
22346 gl_GNULIB_ENABLED_verify_TRUE=
22347 gl_GNULIB_ENABLED_verify_FALSE='#'
22348 else
22349 gl_GNULIB_ENABLED_verify_TRUE='#'
22350 gl_GNULIB_ENABLED_verify_FALSE=
22351 fi
22352
22353 # End of code from modules
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363 gltests_libdeps=
22364 gltests_ltlibdeps=
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374 gl_source_base='tests'
22375 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
22376
22377 gl_module_indicator_condition=$gltests_WITNESS
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388 LIBGNU_LIBDEPS="$gl_libdeps"
22389
22390 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22391
22392
22393
22394 # UNIX98 PTYs.
22395 for ac_func in grantpt
22396 do :
22397 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
22398 if test "x$ac_cv_func_grantpt" = x""yes; then :
22399 cat >>confdefs.h <<_ACEOF
22400 #define HAVE_GRANTPT 1
22401 _ACEOF
22402
22403 fi
22404 done
22405
22406
22407 # PTY-related GNU extensions.
22408 for ac_func in getpt
22409 do :
22410 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
22411 if test "x$ac_cv_func_getpt" = x""yes; then :
22412 cat >>confdefs.h <<_ACEOF
22413 #define HAVE_GETPT 1
22414 _ACEOF
22415
22416 fi
22417 done
22418
22419
22420 # Check this now, so that we will NOT find the above functions in ncurses.
22421 # That is because we have not set up to link ncurses in lib-src.
22422 # It's better to believe a function is not available
22423 # than to expect to find it in ncurses.
22424 # Also we need tputs and friends to be able to build at all.
22425 have_tputs_et_al=true
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
22427 $as_echo_n "checking for library containing tputs... " >&6; }
22428 if test "${ac_cv_search_tputs+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22430 else
22431 ac_func_search_save_LIBS=$LIBS
22432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h. */
22434
22435 /* Override any GCC internal prototype to avoid an error.
22436 Use char because int might match the return type of a GCC
22437 builtin and then its argument prototype would still apply. */
22438 #ifdef __cplusplus
22439 extern "C"
22440 #endif
22441 char tputs ();
22442 int
22443 main ()
22444 {
22445 return tputs ();
22446 ;
22447 return 0;
22448 }
22449 _ACEOF
22450 for ac_lib in '' ncurses terminfo termcap; do
22451 if test -z "$ac_lib"; then
22452 ac_res="none required"
22453 else
22454 ac_res=-l$ac_lib
22455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22456 fi
22457 if ac_fn_c_try_link "$LINENO"; then :
22458 ac_cv_search_tputs=$ac_res
22459 fi
22460 rm -f core conftest.err conftest.$ac_objext \
22461 conftest$ac_exeext
22462 if test "${ac_cv_search_tputs+set}" = set; then :
22463 break
22464 fi
22465 done
22466 if test "${ac_cv_search_tputs+set}" = set; then :
22467
22468 else
22469 ac_cv_search_tputs=no
22470 fi
22471 rm conftest.$ac_ext
22472 LIBS=$ac_func_search_save_LIBS
22473 fi
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
22475 $as_echo "$ac_cv_search_tputs" >&6; }
22476 ac_res=$ac_cv_search_tputs
22477 if test "$ac_res" != no; then :
22478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22479
22480 else
22481 have_tputs_et_al=false
22482 fi
22483
22484 if test "$have_tputs_et_al" != true; then
22485 as_fn_error "I couldn't find termcap functions (tputs and friends).
22486 Maybe some development libraries/packages are missing? Try installing
22487 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
22488 fi
22489 # Must define this when any termcap library is found.
22490
22491 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
22492
22493 ## FIXME This was the cpp logic, but I am not sure it is right.
22494 ## The above test has not necessarily found libncurses.
22495 HAVE_LIBNCURSES=yes
22496
22497 ## Use terminfo instead of termcap?
22498 ## Note only system files NOT using terminfo are:
22499 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
22500 ## darwin|gnu without ncurses.
22501 TERMINFO=no
22502 LIBS_TERMCAP=
22503 case "$opsys" in
22504 ## cygwin: Fewer environment variables to go wrong, more terminal types.
22505 ## hpux10-20: Use the system provided termcap(3) library.
22506 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
22507 ## is necessary. Otherwise Emacs dumps core when run -nw.
22508 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
22509
22510 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
22511 ## The ncurses library has been moved out of the System framework in
22512 ## Mac OS X 10.2. So if configure detects it, set the command-line
22513 ## option to use it.
22514 darwin|gnu*)
22515 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
22516 if test "x$HAVE_LIBNCURSES" = "xyes"; then
22517 TERMINFO=yes
22518 LIBS_TERMCAP="-lncurses"
22519 fi
22520 ;;
22521
22522 freebsd)
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
22524 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
22525 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
22526 $as_echo_n "(cached) " >&6
22527 else
22528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22529 /* end confdefs.h. */
22530 #include <osreldate.h>
22531 int
22532 main ()
22533 {
22534 #if __FreeBSD_version < 400000
22535 fail;
22536 #endif
22537
22538 ;
22539 return 0;
22540 }
22541 _ACEOF
22542 if ac_fn_c_try_link "$LINENO"; then :
22543 emacs_cv_freebsd_terminfo=yes
22544 else
22545 emacs_cv_freebsd_terminfo=no
22546 fi
22547 rm -f core conftest.err conftest.$ac_objext \
22548 conftest$ac_exeext conftest.$ac_ext
22549 fi
22550
22551
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
22553 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
22554
22555 if test $emacs_cv_freebsd_terminfo = yes; then
22556 TERMINFO=yes
22557 LIBS_TERMCAP="-lncurses"
22558 else
22559 LIBS_TERMCAP="-ltermcap"
22560 fi
22561 ;;
22562
22563 netbsd)
22564 if test $ac_cv_search_tputs = -lterminfo; then
22565 TERMINFO=yes
22566 LIBS_TERMCAP="-lterminfo"
22567 else
22568 LIBS_TERMCAP="-ltermcap"
22569 fi
22570 ;;
22571
22572 esac
22573
22574 case "$opsys" in
22575 ## hpux: Make sure we get select from libc rather than from libcurses
22576 ## because libcurses on HPUX 10.10 has a broken version of select.
22577 ## We used to use -lc -lcurses, but this may be cleaner.
22578 hpux*) LIBS_TERMCAP="-ltermcap" ;;
22579
22580 openbsd) LIBS_TERMCAP="-lncurses" ;;
22581
22582 ## Must use system termcap, if we use any termcap. It does special things.
22583 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
22584 esac
22585
22586 TERMCAP_OBJ=tparam.o
22587 if test $TERMINFO = yes; then
22588
22589 $as_echo "#define TERMINFO 1" >>confdefs.h
22590
22591
22592 ## Default used to be -ltermcap. Add a case above if need something else.
22593 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
22594
22595 TERMCAP_OBJ=terminfo.o
22596 fi
22597
22598
22599
22600
22601 # Do we have res_init, for detecting changes in /etc/resolv.conf?
22602 resolv=no
22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h. */
22605 #include <netinet/in.h>
22606 #include <arpa/nameser.h>
22607 #include <resolv.h>
22608 int
22609 main ()
22610 {
22611 return res_init();
22612 ;
22613 return 0;
22614 }
22615 _ACEOF
22616 if ac_fn_c_try_link "$LINENO"; then :
22617 have_res_init=yes
22618 else
22619 have_res_init=no
22620 fi
22621 rm -f core conftest.err conftest.$ac_objext \
22622 conftest$ac_exeext conftest.$ac_ext
22623 if test "$have_res_init" = no; then
22624 OLIBS="$LIBS"
22625 LIBS="$LIBS -lresolv"
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
22627 $as_echo_n "checking for res_init with -lresolv... " >&6; }
22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629 /* end confdefs.h. */
22630 #include <netinet/in.h>
22631 #include <arpa/nameser.h>
22632 #include <resolv.h>
22633 int
22634 main ()
22635 {
22636 return res_init();
22637 ;
22638 return 0;
22639 }
22640 _ACEOF
22641 if ac_fn_c_try_link "$LINENO"; then :
22642 have_res_init=yes
22643 else
22644 have_res_init=no
22645 fi
22646 rm -f core conftest.err conftest.$ac_objext \
22647 conftest$ac_exeext conftest.$ac_ext
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
22649 $as_echo "$have_res_init" >&6; }
22650 if test "$have_res_init" = yes ; then
22651 resolv=yes
22652 fi
22653 LIBS="$OLIBS"
22654 fi
22655
22656 if test "$have_res_init" = yes; then
22657
22658 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
22659
22660 fi
22661
22662 # Do we need the Hesiod library to provide the support routines?
22663 LIBHESIOD=
22664 if test "$with_hesiod" != no ; then
22665 # Don't set $LIBS here -- see comments above. FIXME which comments?
22666 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
22667 if test "x$ac_cv_func_res_send" = x""yes; then :
22668
22669 else
22670 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
22671 if test "x$ac_cv_func___res_send" = x""yes; then :
22672
22673 else
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
22675 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22676 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
22677 $as_echo_n "(cached) " >&6
22678 else
22679 ac_check_lib_save_LIBS=$LIBS
22680 LIBS="-lresolv $LIBS"
22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h. */
22683
22684 /* Override any GCC internal prototype to avoid an error.
22685 Use char because int might match the return type of a GCC
22686 builtin and then its argument prototype would still apply. */
22687 #ifdef __cplusplus
22688 extern "C"
22689 #endif
22690 char res_send ();
22691 int
22692 main ()
22693 {
22694 return res_send ();
22695 ;
22696 return 0;
22697 }
22698 _ACEOF
22699 if ac_fn_c_try_link "$LINENO"; then :
22700 ac_cv_lib_resolv_res_send=yes
22701 else
22702 ac_cv_lib_resolv_res_send=no
22703 fi
22704 rm -f core conftest.err conftest.$ac_objext \
22705 conftest$ac_exeext conftest.$ac_ext
22706 LIBS=$ac_check_lib_save_LIBS
22707 fi
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
22709 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22710 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
22711 resolv=yes
22712 else
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
22714 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22715 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
22716 $as_echo_n "(cached) " >&6
22717 else
22718 ac_check_lib_save_LIBS=$LIBS
22719 LIBS="-lresolv $LIBS"
22720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22721 /* end confdefs.h. */
22722
22723 /* Override any GCC internal prototype to avoid an error.
22724 Use char because int might match the return type of a GCC
22725 builtin and then its argument prototype would still apply. */
22726 #ifdef __cplusplus
22727 extern "C"
22728 #endif
22729 char __res_send ();
22730 int
22731 main ()
22732 {
22733 return __res_send ();
22734 ;
22735 return 0;
22736 }
22737 _ACEOF
22738 if ac_fn_c_try_link "$LINENO"; then :
22739 ac_cv_lib_resolv___res_send=yes
22740 else
22741 ac_cv_lib_resolv___res_send=no
22742 fi
22743 rm -f core conftest.err conftest.$ac_objext \
22744 conftest$ac_exeext conftest.$ac_ext
22745 LIBS=$ac_check_lib_save_LIBS
22746 fi
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
22748 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22749 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
22750 resolv=yes
22751 fi
22752
22753 fi
22754
22755 fi
22756
22757 fi
22758
22759 if test "$resolv" = yes ; then
22760 RESOLVLIB=-lresolv
22761 else
22762 RESOLVLIB=
22763 fi
22764 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
22765 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
22766
22767 else
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
22769 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22770 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22772 else
22773 ac_check_lib_save_LIBS=$LIBS
22774 LIBS="-lhesiod $RESOLVLIB $LIBS"
22775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22776 /* end confdefs.h. */
22777
22778 /* Override any GCC internal prototype to avoid an error.
22779 Use char because int might match the return type of a GCC
22780 builtin and then its argument prototype would still apply. */
22781 #ifdef __cplusplus
22782 extern "C"
22783 #endif
22784 char hes_getmailhost ();
22785 int
22786 main ()
22787 {
22788 return hes_getmailhost ();
22789 ;
22790 return 0;
22791 }
22792 _ACEOF
22793 if ac_fn_c_try_link "$LINENO"; then :
22794 ac_cv_lib_hesiod_hes_getmailhost=yes
22795 else
22796 ac_cv_lib_hesiod_hes_getmailhost=no
22797 fi
22798 rm -f core conftest.err conftest.$ac_objext \
22799 conftest$ac_exeext conftest.$ac_ext
22800 LIBS=$ac_check_lib_save_LIBS
22801 fi
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22803 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22804 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
22805 hesiod=yes
22806 else
22807 :
22808 fi
22809
22810 fi
22811
22812
22813 if test x"$hesiod" = xyes; then
22814
22815 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
22816
22817 LIBHESIOD=-lhesiod
22818 fi
22819 fi
22820
22821
22822 # Do we need libresolv (due to res_init or Hesiod)?
22823 if test "$resolv" = yes ; then
22824
22825 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
22826
22827 LIBRESOLV=-lresolv
22828 else
22829 LIBRESOLV=
22830 fi
22831
22832
22833 # These tell us which Kerberos-related libraries to use.
22834 COM_ERRLIB=
22835 CRYPTOLIB=
22836 KRB5LIB=
22837 DESLIB=
22838 KRB4LIB=
22839
22840 if test "${with_kerberos}" != no; then
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
22842 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22843 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22845 else
22846 ac_check_lib_save_LIBS=$LIBS
22847 LIBS="-lcom_err $LIBS"
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22850
22851 /* Override any GCC internal prototype to avoid an error.
22852 Use char because int might match the return type of a GCC
22853 builtin and then its argument prototype would still apply. */
22854 #ifdef __cplusplus
22855 extern "C"
22856 #endif
22857 char com_err ();
22858 int
22859 main ()
22860 {
22861 return com_err ();
22862 ;
22863 return 0;
22864 }
22865 _ACEOF
22866 if ac_fn_c_try_link "$LINENO"; then :
22867 ac_cv_lib_com_err_com_err=yes
22868 else
22869 ac_cv_lib_com_err_com_err=no
22870 fi
22871 rm -f core conftest.err conftest.$ac_objext \
22872 conftest$ac_exeext conftest.$ac_ext
22873 LIBS=$ac_check_lib_save_LIBS
22874 fi
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
22876 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22877 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
22878 have_com_err=yes
22879 else
22880 have_com_err=no
22881 fi
22882
22883 if test $have_com_err = yes; then
22884 COM_ERRLIB=-lcom_err
22885 LIBS="$COM_ERRLIB $LIBS"
22886
22887 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
22888
22889 fi
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22891 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22892 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
22893 $as_echo_n "(cached) " >&6
22894 else
22895 ac_check_lib_save_LIBS=$LIBS
22896 LIBS="-lcrypto $LIBS"
22897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h. */
22899
22900 /* Override any GCC internal prototype to avoid an error.
22901 Use char because int might match the return type of a GCC
22902 builtin and then its argument prototype would still apply. */
22903 #ifdef __cplusplus
22904 extern "C"
22905 #endif
22906 char mit_des_cbc_encrypt ();
22907 int
22908 main ()
22909 {
22910 return mit_des_cbc_encrypt ();
22911 ;
22912 return 0;
22913 }
22914 _ACEOF
22915 if ac_fn_c_try_link "$LINENO"; then :
22916 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22917 else
22918 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22919 fi
22920 rm -f core conftest.err conftest.$ac_objext \
22921 conftest$ac_exeext conftest.$ac_ext
22922 LIBS=$ac_check_lib_save_LIBS
22923 fi
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22925 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22926 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22927 have_crypto=yes
22928 else
22929 have_crypto=no
22930 fi
22931
22932 if test $have_crypto = yes; then
22933 CRYPTOLIB=-lcrypto
22934 LIBS="$CRYPTOLIB $LIBS"
22935
22936 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22937
22938 fi
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22940 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22941 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22942 $as_echo_n "(cached) " >&6
22943 else
22944 ac_check_lib_save_LIBS=$LIBS
22945 LIBS="-lk5crypto $LIBS"
22946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22947 /* end confdefs.h. */
22948
22949 /* Override any GCC internal prototype to avoid an error.
22950 Use char because int might match the return type of a GCC
22951 builtin and then its argument prototype would still apply. */
22952 #ifdef __cplusplus
22953 extern "C"
22954 #endif
22955 char mit_des_cbc_encrypt ();
22956 int
22957 main ()
22958 {
22959 return mit_des_cbc_encrypt ();
22960 ;
22961 return 0;
22962 }
22963 _ACEOF
22964 if ac_fn_c_try_link "$LINENO"; then :
22965 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22966 else
22967 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22968 fi
22969 rm -f core conftest.err conftest.$ac_objext \
22970 conftest$ac_exeext conftest.$ac_ext
22971 LIBS=$ac_check_lib_save_LIBS
22972 fi
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22974 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22975 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22976 have_k5crypto=yes
22977 else
22978 have_k5crypto=no
22979 fi
22980
22981 if test $have_k5crypto = yes; then
22982 CRYPTOLIB=-lk5crypto
22983 LIBS="$CRYPTOLIB $LIBS"
22984
22985 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22986
22987 fi
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22989 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22990 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 ac_check_lib_save_LIBS=$LIBS
22994 LIBS="-lkrb5 $LIBS"
22995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h. */
22997
22998 /* Override any GCC internal prototype to avoid an error.
22999 Use char because int might match the return type of a GCC
23000 builtin and then its argument prototype would still apply. */
23001 #ifdef __cplusplus
23002 extern "C"
23003 #endif
23004 char krb5_init_context ();
23005 int
23006 main ()
23007 {
23008 return krb5_init_context ();
23009 ;
23010 return 0;
23011 }
23012 _ACEOF
23013 if ac_fn_c_try_link "$LINENO"; then :
23014 ac_cv_lib_krb5_krb5_init_context=yes
23015 else
23016 ac_cv_lib_krb5_krb5_init_context=no
23017 fi
23018 rm -f core conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
23020 LIBS=$ac_check_lib_save_LIBS
23021 fi
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
23023 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
23024 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
23025 have_krb5=yes
23026 else
23027 have_krb5=no
23028 fi
23029
23030 if test $have_krb5=yes; then
23031 KRB5LIB=-lkrb5
23032 LIBS="$KRB5LIB $LIBS"
23033
23034 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
23035
23036 fi
23037 if test "${with_kerberos5}" = no; then
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
23039 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
23040 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
23041 $as_echo_n "(cached) " >&6
23042 else
23043 ac_check_lib_save_LIBS=$LIBS
23044 LIBS="-ldes425 $LIBS"
23045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h. */
23047
23048 /* Override any GCC internal prototype to avoid an error.
23049 Use char because int might match the return type of a GCC
23050 builtin and then its argument prototype would still apply. */
23051 #ifdef __cplusplus
23052 extern "C"
23053 #endif
23054 char des_cbc_encrypt ();
23055 int
23056 main ()
23057 {
23058 return des_cbc_encrypt ();
23059 ;
23060 return 0;
23061 }
23062 _ACEOF
23063 if ac_fn_c_try_link "$LINENO"; then :
23064 ac_cv_lib_des425_des_cbc_encrypt=yes
23065 else
23066 ac_cv_lib_des425_des_cbc_encrypt=no
23067 fi
23068 rm -f core conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23070 LIBS=$ac_check_lib_save_LIBS
23071 fi
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
23073 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
23074 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
23075 have_des425=yes
23076 else
23077 have_des425=no
23078 fi
23079
23080 if test $have_des425 = yes; then
23081 DESLIB=-ldes425
23082 LIBS="$DESLIB $LIBS"
23083
23084 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
23085
23086 else
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
23088 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
23089 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
23090 $as_echo_n "(cached) " >&6
23091 else
23092 ac_check_lib_save_LIBS=$LIBS
23093 LIBS="-ldes $LIBS"
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23096
23097 /* Override any GCC internal prototype to avoid an error.
23098 Use char because int might match the return type of a GCC
23099 builtin and then its argument prototype would still apply. */
23100 #ifdef __cplusplus
23101 extern "C"
23102 #endif
23103 char des_cbc_encrypt ();
23104 int
23105 main ()
23106 {
23107 return des_cbc_encrypt ();
23108 ;
23109 return 0;
23110 }
23111 _ACEOF
23112 if ac_fn_c_try_link "$LINENO"; then :
23113 ac_cv_lib_des_des_cbc_encrypt=yes
23114 else
23115 ac_cv_lib_des_des_cbc_encrypt=no
23116 fi
23117 rm -f core conftest.err conftest.$ac_objext \
23118 conftest$ac_exeext conftest.$ac_ext
23119 LIBS=$ac_check_lib_save_LIBS
23120 fi
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
23122 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
23123 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
23124 have_des=yes
23125 else
23126 have_des=no
23127 fi
23128
23129 if test $have_des = yes; then
23130 DESLIB=-ldes
23131 LIBS="$DESLIB $LIBS"
23132
23133 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
23134
23135 fi
23136 fi
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
23138 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
23139 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23141 else
23142 ac_check_lib_save_LIBS=$LIBS
23143 LIBS="-lkrb4 $LIBS"
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h. */
23146
23147 /* Override any GCC internal prototype to avoid an error.
23148 Use char because int might match the return type of a GCC
23149 builtin and then its argument prototype would still apply. */
23150 #ifdef __cplusplus
23151 extern "C"
23152 #endif
23153 char krb_get_cred ();
23154 int
23155 main ()
23156 {
23157 return krb_get_cred ();
23158 ;
23159 return 0;
23160 }
23161 _ACEOF
23162 if ac_fn_c_try_link "$LINENO"; then :
23163 ac_cv_lib_krb4_krb_get_cred=yes
23164 else
23165 ac_cv_lib_krb4_krb_get_cred=no
23166 fi
23167 rm -f core conftest.err conftest.$ac_objext \
23168 conftest$ac_exeext conftest.$ac_ext
23169 LIBS=$ac_check_lib_save_LIBS
23170 fi
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
23172 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
23173 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
23174 have_krb4=yes
23175 else
23176 have_krb4=no
23177 fi
23178
23179 if test $have_krb4 = yes; then
23180 KRB4LIB=-lkrb4
23181 LIBS="$KRB4LIB $LIBS"
23182
23183 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
23184
23185 else
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
23187 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
23188 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
23189 $as_echo_n "(cached) " >&6
23190 else
23191 ac_check_lib_save_LIBS=$LIBS
23192 LIBS="-lkrb $LIBS"
23193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23194 /* end confdefs.h. */
23195
23196 /* Override any GCC internal prototype to avoid an error.
23197 Use char because int might match the return type of a GCC
23198 builtin and then its argument prototype would still apply. */
23199 #ifdef __cplusplus
23200 extern "C"
23201 #endif
23202 char krb_get_cred ();
23203 int
23204 main ()
23205 {
23206 return krb_get_cred ();
23207 ;
23208 return 0;
23209 }
23210 _ACEOF
23211 if ac_fn_c_try_link "$LINENO"; then :
23212 ac_cv_lib_krb_krb_get_cred=yes
23213 else
23214 ac_cv_lib_krb_krb_get_cred=no
23215 fi
23216 rm -f core conftest.err conftest.$ac_objext \
23217 conftest$ac_exeext conftest.$ac_ext
23218 LIBS=$ac_check_lib_save_LIBS
23219 fi
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
23221 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23222 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
23223 have_krb=yes
23224 else
23225 have_krb=no
23226 fi
23227
23228 if test $have_krb = yes; then
23229 KRB4LIB=-lkrb
23230 LIBS="$KRB4LIB $LIBS"
23231
23232 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
23233
23234 fi
23235 fi
23236 fi
23237
23238 if test "${with_kerberos5}" != no; then
23239 for ac_header in krb5.h
23240 do :
23241 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
23242 if test "x$ac_cv_header_krb5_h" = x""yes; then :
23243 cat >>confdefs.h <<_ACEOF
23244 #define HAVE_KRB5_H 1
23245 _ACEOF
23246 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
23247 "
23248 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
23249
23250 cat >>confdefs.h <<_ACEOF
23251 #define HAVE_KRB5_ERROR_TEXT 1
23252 _ACEOF
23253
23254
23255 fi
23256 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
23257 "
23258 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
23259
23260 cat >>confdefs.h <<_ACEOF
23261 #define HAVE_KRB5_ERROR_E_TEXT 1
23262 _ACEOF
23263
23264
23265 fi
23266
23267 fi
23268
23269 done
23270
23271 else
23272 for ac_header in des.h
23273 do :
23274 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
23275 if test "x$ac_cv_header_des_h" = x""yes; then :
23276 cat >>confdefs.h <<_ACEOF
23277 #define HAVE_DES_H 1
23278 _ACEOF
23279
23280 else
23281 for ac_header in kerberosIV/des.h
23282 do :
23283 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
23284 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
23285 cat >>confdefs.h <<_ACEOF
23286 #define HAVE_KERBEROSIV_DES_H 1
23287 _ACEOF
23288
23289 else
23290 for ac_header in kerberos/des.h
23291 do :
23292 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
23293 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
23294 cat >>confdefs.h <<_ACEOF
23295 #define HAVE_KERBEROS_DES_H 1
23296 _ACEOF
23297
23298 fi
23299
23300 done
23301
23302 fi
23303
23304 done
23305
23306 fi
23307
23308 done
23309
23310 for ac_header in krb.h
23311 do :
23312 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
23313 if test "x$ac_cv_header_krb_h" = x""yes; then :
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_KRB_H 1
23316 _ACEOF
23317
23318 else
23319 for ac_header in kerberosIV/krb.h
23320 do :
23321 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
23322 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
23323 cat >>confdefs.h <<_ACEOF
23324 #define HAVE_KERBEROSIV_KRB_H 1
23325 _ACEOF
23326
23327 else
23328 for ac_header in kerberos/krb.h
23329 do :
23330 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
23331 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
23332 cat >>confdefs.h <<_ACEOF
23333 #define HAVE_KERBEROS_KRB_H 1
23334 _ACEOF
23335
23336 fi
23337
23338 done
23339
23340 fi
23341
23342 done
23343
23344 fi
23345
23346 done
23347
23348 fi
23349 for ac_header in com_err.h
23350 do :
23351 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
23352 if test "x$ac_cv_header_com_err_h" = x""yes; then :
23353 cat >>confdefs.h <<_ACEOF
23354 #define HAVE_COM_ERR_H 1
23355 _ACEOF
23356
23357 fi
23358
23359 done
23360
23361 fi
23362
23363
23364
23365
23366
23367
23368
23369 # Solaris requires -lintl if you want strerror (which calls dgettext)
23370 # to return localized messages.
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
23372 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23373 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
23374 $as_echo_n "(cached) " >&6
23375 else
23376 ac_check_lib_save_LIBS=$LIBS
23377 LIBS="-lintl $LIBS"
23378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23379 /* end confdefs.h. */
23380
23381 /* Override any GCC internal prototype to avoid an error.
23382 Use char because int might match the return type of a GCC
23383 builtin and then its argument prototype would still apply. */
23384 #ifdef __cplusplus
23385 extern "C"
23386 #endif
23387 char dgettext ();
23388 int
23389 main ()
23390 {
23391 return dgettext ();
23392 ;
23393 return 0;
23394 }
23395 _ACEOF
23396 if ac_fn_c_try_link "$LINENO"; then :
23397 ac_cv_lib_intl_dgettext=yes
23398 else
23399 ac_cv_lib_intl_dgettext=no
23400 fi
23401 rm -f core conftest.err conftest.$ac_objext \
23402 conftest$ac_exeext conftest.$ac_ext
23403 LIBS=$ac_check_lib_save_LIBS
23404 fi
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
23406 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23407 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
23408 cat >>confdefs.h <<_ACEOF
23409 #define HAVE_LIBINTL 1
23410 _ACEOF
23411
23412 LIBS="-lintl $LIBS"
23413
23414 fi
23415
23416
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
23418 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23419 if test "${emacs_cv_localtime_cache+set}" = set; then :
23420 $as_echo_n "(cached) " >&6
23421 else
23422 if test x$ac_cv_func_tzset = xyes; then
23423 if test "$cross_compiling" = yes; then :
23424 # If we have tzset, assume the worst when cross-compiling.
23425 emacs_cv_localtime_cache=yes
23426 else
23427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23428 /* end confdefs.h. */
23429 #include <time.h>
23430 char TZ_GMT0[] = "TZ=GMT0";
23431 char TZ_PST8[] = "TZ=PST8";
23432 main()
23433 {
23434 time_t now = time ((time_t *) 0);
23435 int hour_GMT0, hour_unset;
23436 if (putenv (TZ_GMT0) != 0)
23437 exit (1);
23438 hour_GMT0 = localtime (&now)->tm_hour;
23439 unsetenv("TZ");
23440 hour_unset = localtime (&now)->tm_hour;
23441 if (putenv (TZ_PST8) != 0)
23442 exit (1);
23443 if (localtime (&now)->tm_hour == hour_GMT0)
23444 exit (1);
23445 unsetenv("TZ");
23446 if (localtime (&now)->tm_hour != hour_unset)
23447 exit (1);
23448 exit (0);
23449 }
23450 _ACEOF
23451 if ac_fn_c_try_run "$LINENO"; then :
23452 emacs_cv_localtime_cache=no
23453 else
23454 emacs_cv_localtime_cache=yes
23455 fi
23456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23457 conftest.$ac_objext conftest.beam conftest.$ac_ext
23458 fi
23459
23460 else
23461 # If we lack tzset, report that localtime does not cache TZ,
23462 # since we can't invalidate the cache if we don't have tzset.
23463 emacs_cv_localtime_cache=no
23464 fi
23465 fi
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
23467 $as_echo "$emacs_cv_localtime_cache" >&6; }
23468 if test $emacs_cv_localtime_cache = yes; then
23469
23470 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
23471
23472 fi
23473
23474 if test "x$HAVE_TIMEVAL" = xyes; then
23475 for ac_func in gettimeofday
23476 do :
23477 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
23478 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
23479 cat >>confdefs.h <<_ACEOF
23480 #define HAVE_GETTIMEOFDAY 1
23481 _ACEOF
23482
23483 fi
23484 done
23485
23486 if test $ac_cv_func_gettimeofday = yes; then
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
23488 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23489 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
23490 $as_echo_n "(cached) " >&6
23491 else
23492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23493 /* end confdefs.h. */
23494
23495 #ifdef TIME_WITH_SYS_TIME
23496 #include <sys/time.h>
23497 #include <time.h>
23498 #else
23499 #ifdef HAVE_SYS_TIME_H
23500 #include <sys/time.h>
23501 #else
23502 #include <time.h>
23503 #endif
23504 #endif
23505 int
23506 main ()
23507 {
23508 struct timeval time;
23509 gettimeofday (&time, 0);
23510 ;
23511 return 0;
23512 }
23513 _ACEOF
23514 if ac_fn_c_try_compile "$LINENO"; then :
23515 emacs_cv_gettimeofday_two_arguments=yes
23516 else
23517 emacs_cv_gettimeofday_two_arguments=no
23518 fi
23519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23520 fi
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
23522 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23523 if test $emacs_cv_gettimeofday_two_arguments = no; then
23524
23525 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
23526
23527 fi
23528 fi
23529 fi
23530
23531 ok_so_far=yes
23532 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
23533 if test "x$ac_cv_func_socket" = x""yes; then :
23534
23535 else
23536 ok_so_far=no
23537 fi
23538
23539 if test $ok_so_far = yes; then
23540 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23541 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
23542
23543 else
23544 ok_so_far=no
23545 fi
23546
23547
23548 fi
23549 if test $ok_so_far = yes; then
23550 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23551 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
23552
23553 else
23554 ok_so_far=no
23555 fi
23556
23557
23558 fi
23559 if test $ok_so_far = yes; then
23560
23561 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
23562
23563 fi
23564
23565 if test -f /usr/lpp/X11/bin/smt.exp; then
23566
23567 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
23568
23569 fi
23570
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
23572 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
23573 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23575 $as_echo "yes" >&6; }
23576
23577 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
23578
23579 else
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23581 $as_echo "no" >&6; }
23582 fi
23583
23584 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23585 if test "x$ac_cv_type_pid_t" = x""yes; then :
23586
23587 else
23588
23589 cat >>confdefs.h <<_ACEOF
23590 #define pid_t int
23591 _ACEOF
23592
23593 fi
23594
23595 for ac_header in vfork.h
23596 do :
23597 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23598 if test "x$ac_cv_header_vfork_h" = x""yes; then :
23599 cat >>confdefs.h <<_ACEOF
23600 #define HAVE_VFORK_H 1
23601 _ACEOF
23602
23603 fi
23604
23605 done
23606
23607 for ac_func in fork vfork
23608 do :
23609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23611 eval as_val=\$$as_ac_var
23612 if test "x$as_val" = x""yes; then :
23613 cat >>confdefs.h <<_ACEOF
23614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23615 _ACEOF
23616
23617 fi
23618 done
23619
23620 if test "x$ac_cv_func_fork" = xyes; then
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23622 $as_echo_n "checking for working fork... " >&6; }
23623 if test "${ac_cv_func_fork_works+set}" = set; then :
23624 $as_echo_n "(cached) " >&6
23625 else
23626 if test "$cross_compiling" = yes; then :
23627 ac_cv_func_fork_works=cross
23628 else
23629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23630 /* end confdefs.h. */
23631 $ac_includes_default
23632 int
23633 main ()
23634 {
23635
23636 /* By Ruediger Kuhlmann. */
23637 return fork () < 0;
23638
23639 ;
23640 return 0;
23641 }
23642 _ACEOF
23643 if ac_fn_c_try_run "$LINENO"; then :
23644 ac_cv_func_fork_works=yes
23645 else
23646 ac_cv_func_fork_works=no
23647 fi
23648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23649 conftest.$ac_objext conftest.beam conftest.$ac_ext
23650 fi
23651
23652 fi
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23654 $as_echo "$ac_cv_func_fork_works" >&6; }
23655
23656 else
23657 ac_cv_func_fork_works=$ac_cv_func_fork
23658 fi
23659 if test "x$ac_cv_func_fork_works" = xcross; then
23660 case $host in
23661 *-*-amigaos* | *-*-msdosdjgpp*)
23662 # Override, as these systems have only a dummy fork() stub
23663 ac_cv_func_fork_works=no
23664 ;;
23665 *)
23666 ac_cv_func_fork_works=yes
23667 ;;
23668 esac
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23670 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23671 fi
23672 ac_cv_func_vfork_works=$ac_cv_func_vfork
23673 if test "x$ac_cv_func_vfork" = xyes; then
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23675 $as_echo_n "checking for working vfork... " >&6; }
23676 if test "${ac_cv_func_vfork_works+set}" = set; then :
23677 $as_echo_n "(cached) " >&6
23678 else
23679 if test "$cross_compiling" = yes; then :
23680 ac_cv_func_vfork_works=cross
23681 else
23682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h. */
23684 /* Thanks to Paul Eggert for this test. */
23685 $ac_includes_default
23686 #include <sys/wait.h>
23687 #ifdef HAVE_VFORK_H
23688 # include <vfork.h>
23689 #endif
23690 /* On some sparc systems, changes by the child to local and incoming
23691 argument registers are propagated back to the parent. The compiler
23692 is told about this with #include <vfork.h>, but some compilers
23693 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23694 static variable whose address is put into a register that is
23695 clobbered by the vfork. */
23696 static void
23697 #ifdef __cplusplus
23698 sparc_address_test (int arg)
23699 # else
23700 sparc_address_test (arg) int arg;
23701 #endif
23702 {
23703 static pid_t child;
23704 if (!child) {
23705 child = vfork ();
23706 if (child < 0) {
23707 perror ("vfork");
23708 _exit(2);
23709 }
23710 if (!child) {
23711 arg = getpid();
23712 write(-1, "", 0);
23713 _exit (arg);
23714 }
23715 }
23716 }
23717
23718 int
23719 main ()
23720 {
23721 pid_t parent = getpid ();
23722 pid_t child;
23723
23724 sparc_address_test (0);
23725
23726 child = vfork ();
23727
23728 if (child == 0) {
23729 /* Here is another test for sparc vfork register problems. This
23730 test uses lots of local variables, at least as many local
23731 variables as main has allocated so far including compiler
23732 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23733 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23734 reuse the register of parent for one of the local variables,
23735 since it will think that parent can't possibly be used any more
23736 in this routine. Assigning to the local variable will thus
23737 munge parent in the parent process. */
23738 pid_t
23739 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23740 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23741 /* Convince the compiler that p..p7 are live; otherwise, it might
23742 use the same hardware register for all 8 local variables. */
23743 if (p != p1 || p != p2 || p != p3 || p != p4
23744 || p != p5 || p != p6 || p != p7)
23745 _exit(1);
23746
23747 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23748 from child file descriptors. If the child closes a descriptor
23749 before it execs or exits, this munges the parent's descriptor
23750 as well. Test for this by closing stdout in the child. */
23751 _exit(close(fileno(stdout)) != 0);
23752 } else {
23753 int status;
23754 struct stat st;
23755
23756 while (wait(&status) != child)
23757 ;
23758 return (
23759 /* Was there some problem with vforking? */
23760 child < 0
23761
23762 /* Did the child fail? (This shouldn't happen.) */
23763 || status
23764
23765 /* Did the vfork/compiler bug occur? */
23766 || parent != getpid()
23767
23768 /* Did the file descriptor bug occur? */
23769 || fstat(fileno(stdout), &st) != 0
23770 );
23771 }
23772 }
23773 _ACEOF
23774 if ac_fn_c_try_run "$LINENO"; then :
23775 ac_cv_func_vfork_works=yes
23776 else
23777 ac_cv_func_vfork_works=no
23778 fi
23779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23780 conftest.$ac_objext conftest.beam conftest.$ac_ext
23781 fi
23782
23783 fi
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23785 $as_echo "$ac_cv_func_vfork_works" >&6; }
23786
23787 fi;
23788 if test "x$ac_cv_func_fork_works" = xcross; then
23789 ac_cv_func_vfork_works=$ac_cv_func_vfork
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23791 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23792 fi
23793
23794 if test "x$ac_cv_func_vfork_works" = xyes; then
23795
23796 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23797
23798 else
23799
23800 $as_echo "#define vfork fork" >>confdefs.h
23801
23802 fi
23803 if test "x$ac_cv_func_fork_works" = xyes; then
23804
23805 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23806
23807 fi
23808
23809
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23811 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23812 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23814 else
23815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23816 /* end confdefs.h. */
23817 #include <langinfo.h>
23818 int
23819 main ()
23820 {
23821 char* cs = nl_langinfo(CODESET);
23822 ;
23823 return 0;
23824 }
23825 _ACEOF
23826 if ac_fn_c_try_link "$LINENO"; then :
23827 emacs_cv_langinfo_codeset=yes
23828 else
23829 emacs_cv_langinfo_codeset=no
23830 fi
23831 rm -f core conftest.err conftest.$ac_objext \
23832 conftest$ac_exeext conftest.$ac_ext
23833
23834 fi
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
23836 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
23837 if test $emacs_cv_langinfo_codeset = yes; then
23838
23839 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23840
23841 fi
23842
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23844 $as_echo_n "checking for mbstate_t... " >&6; }
23845 if test "${ac_cv_type_mbstate_t+set}" = set; then :
23846 $as_echo_n "(cached) " >&6
23847 else
23848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23849 /* end confdefs.h. */
23850 $ac_includes_default
23851 # include <wchar.h>
23852 int
23853 main ()
23854 {
23855 mbstate_t x; return sizeof x;
23856 ;
23857 return 0;
23858 }
23859 _ACEOF
23860 if ac_fn_c_try_compile "$LINENO"; then :
23861 ac_cv_type_mbstate_t=yes
23862 else
23863 ac_cv_type_mbstate_t=no
23864 fi
23865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23866 fi
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23868 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23869 if test $ac_cv_type_mbstate_t = yes; then
23870
23871 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23872
23873 else
23874
23875 $as_echo "#define mbstate_t int" >>confdefs.h
23876
23877 fi
23878
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
23880 $as_echo_n "checking for C restricted array declarations... " >&6; }
23881 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
23882 $as_echo_n "(cached) " >&6
23883 else
23884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23885 /* end confdefs.h. */
23886 void fred (int x[__restrict]);
23887 int
23888 main ()
23889 {
23890
23891 ;
23892 return 0;
23893 }
23894 _ACEOF
23895 if ac_fn_c_try_compile "$LINENO"; then :
23896 emacs_cv_c_restrict_arr=yes
23897 else
23898 emacs_cv_c_restrict_arr=no
23899 fi
23900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
23903 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
23904 if test "$emacs_cv_c_restrict_arr" = yes; then
23905
23906 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
23907
23908 fi
23909
23910
23911
23912 # Set up the CFLAGS for real compilation, so we can substitute it.
23913 CFLAGS="$REAL_CFLAGS"
23914 CPPFLAGS="$REAL_CPPFLAGS"
23915
23916 ## Hack to detect a buggy GCC version.
23917 if test "x$GCC" = xyes \
23918 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
23919 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
23920 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
23921 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
23922 fi
23923
23924 version=$PACKAGE_VERSION
23925
23926 ### Specify what sort of things we'll be editing into Makefile and config.h.
23927 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23928
23929
23930 ## Unused?
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
23952 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
23953 ## end of LIBX_BASE, but nothing ever set it.
23954
23955
23956
23957
23958 ## Used in lwlib/Makefile.in.
23959
23960 if test -n "${machfile}"; then
23961 M_FILE="\$(srcdir)/${machfile}"
23962 else
23963 M_FILE=
23964 fi
23965 S_FILE="\$(srcdir)/${opsysfile}"
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976 cat >>confdefs.h <<_ACEOF
23977 #define EMACS_CONFIGURATION "${canonical}"
23978 _ACEOF
23979
23980
23981 cat >>confdefs.h <<_ACEOF
23982 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23983 _ACEOF
23984
23985 if test -n "$machfile"; then
23986
23987 cat >>confdefs.h <<_ACEOF
23988 #define config_machfile "${machfile}"
23989 _ACEOF
23990
23991 fi
23992
23993 cat >>confdefs.h <<_ACEOF
23994 #define config_opsysfile "${opsysfile}"
23995 _ACEOF
23996
23997
23998 XMENU_OBJ=
23999 XOBJ=
24000 FONT_OBJ=
24001 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24002
24003 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
24004
24005 XMENU_OBJ=xmenu.o
24006 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
24007 FONT_OBJ=xfont.o
24008 if test "$HAVE_XFT" = "yes"; then
24009 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
24010 elif test "$HAVE_FREETYPE" = "yes"; then
24011 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
24012 fi
24013
24014 fi
24015
24016
24017
24018
24019 WIDGET_OBJ=
24020 MOTIF_LIBW=
24021 if test "${USE_X_TOOLKIT}" != "none" ; then
24022 WIDGET_OBJ=widget.o
24023
24024 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
24025
24026 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24027
24028 $as_echo "#define USE_LUCID 1" >>confdefs.h
24029
24030 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24031
24032 $as_echo "#define USE_MOTIF 1" >>confdefs.h
24033
24034 MOTIF_LIBW=-lXm
24035 case "$opsys" in
24036 gnu-linux)
24037 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
24038 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
24039 ;;
24040
24041 unixware)
24042 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
24043 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
24044 MOTIF_LIBW="MOTIF_LIBW -lXimp"
24045 ;;
24046
24047 aix4-2)
24048 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
24049 MOTIF_LIBW="$MOTIF_LIBW -li18n"
24050 ;;
24051 esac
24052 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
24053 fi
24054 fi
24055
24056
24057 TOOLKIT_LIBW=
24058 case "$USE_X_TOOLKIT" in
24059 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
24060 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
24061 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
24062 esac
24063
24064
24065 if test "$USE_X_TOOLKIT" = "none"; then
24066 LIBXT_OTHER="\$(LIBXSM)"
24067 OLDXMENU_TARGET="really-oldXMenu"
24068 else
24069 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
24070 OLDXMENU_TARGET="really-lwlib"
24071 fi
24072
24073
24074 ## The X Menu stuff is present in the X10 distribution, but missing
24075 ## from X11. If we have X10, just use the installed library;
24076 ## otherwise, use our own copy.
24077 if test "${HAVE_X11}" = "yes" ; then
24078
24079 $as_echo "#define HAVE_X11 1" >>confdefs.h
24080
24081
24082 if test "$USE_X_TOOLKIT" = "none"; then
24083 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
24084 else
24085 OLDXMENU="\${lwlibdir}/liblw.a"
24086 fi
24087 LIBXMENU="\$(OLDXMENU)"
24088 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
24089 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
24090 else
24091 ## For a syntactically valid Makefile; not actually used for anything.
24092 ## See comments in src/Makefile.in.
24093 OLDXMENU=nothing
24094 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
24095 if test "${HAVE_X_WINDOWS}" = "yes"; then
24096 LIBXMENU="-lXMenu"
24097 else
24098 LIBXMENU=
24099 fi
24100 LIBX_OTHER=
24101 OLDXMENU_DEPS=
24102 fi
24103
24104 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
24105 OLDXMENU_TARGET=
24106 OLDXMENU=nothing
24107 LIBXMENU=
24108 OLDXMENU_DEPS=
24109 fi
24110
24111
24112
24113
24114
24115
24116
24117 if test "${HAVE_MENUS}" = "yes" ; then
24118
24119 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
24120
24121 fi
24122
24123 if test "${GNU_MALLOC}" = "yes" ; then
24124
24125 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
24126
24127 fi
24128
24129 RALLOC_OBJ=
24130 if test "${REL_ALLOC}" = "yes" ; then
24131
24132 $as_echo "#define REL_ALLOC 1" >>confdefs.h
24133
24134
24135 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
24136 fi
24137
24138
24139 if test "$opsys" = "cygwin"; then
24140 CYGWIN_OBJ="sheap.o"
24141 ## Cygwin differs because of its unexec().
24142 PRE_ALLOC_OBJ=
24143 POST_ALLOC_OBJ=lastfile.o
24144 else
24145 CYGWIN_OBJ=
24146 PRE_ALLOC_OBJ=lastfile.o
24147 POST_ALLOC_OBJ=
24148 fi
24149
24150
24151
24152
24153
24154 case "$opsys" in
24155 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
24156
24157 darwin)
24158 ## The -headerpad option tells ld (see man page) to leave room at the
24159 ## end of the header for adding load commands. Needed for dumping.
24160 ## 0x690 is the total size of 30 segment load commands (at 56
24161 ## each); under Cocoa 31 commands are required.
24162 if test "$HAVE_NS" = "yes"; then
24163 libs_nsgui="-framework AppKit"
24164 headerpad_extra=6C8
24165 else
24166 libs_nsgui=
24167 headerpad_extra=690
24168 fi
24169 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24170
24171 ## This is here because src/Makefile.in did some extra fiddling around
24172 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24173 ## #ifndef LD_SWITCH_SYSTEM
24174 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24175 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24176 ## not using gcc, darwin system not on an alpha (ie darwin, since
24177 ## darwin + alpha does not occur).
24178 ## Because this was done in src/Makefile.in, the resulting part of
24179 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24180 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24181 ## rather than LD_SWITCH_SYSTEM.
24182 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24183 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
24184 ;;
24185
24186 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
24187 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
24188 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
24189 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24190 ## had different values in configure (in ac_link) and src/Makefile.in.
24191 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24192 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
24193
24194 *) LD_SWITCH_SYSTEM_TEMACS= ;;
24195 esac
24196
24197 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24198 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24199 fi
24200
24201
24202
24203
24204 LD_FIRSTFLAG=
24205 ORDINARY_LINK=
24206 case "$opsys" in
24207 ## gnu: GNU needs its own crt0.
24208 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
24209
24210 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24211 ## library search parth, i.e. it won't search /usr/lib for libc and
24212 ## friends. Using -nostartfiles instead avoids this problem, and
24213 ## will also work on earlier NetBSD releases.
24214 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
24215
24216 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24217 ## MkLinux/LinuxPPC needs this.
24218 ## ibms390x only supports opsys = gnu-linux so it can be added here.
24219 gnu-*)
24220 case "$machine" in
24221 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
24222 esac
24223 ;;
24224 esac
24225
24226
24227 if test "x$ORDINARY_LINK" = "xyes"; then
24228
24229 LD_FIRSTFLAG=""
24230
24231 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24232
24233
24234 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24235 ## freebsd, gnu-* not on macppc|ibms390x.
24236 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24237
24238 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24239 ## places that are difficult to figure out at make time. Fortunately,
24240 ## these same versions allow you to pass arbitrary flags on to the
24241 ## linker, so there is no reason not to use it as a linker.
24242 ##
24243 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24244 ## searching for libraries in its internal directories, so we have to
24245 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24246 LD_FIRSTFLAG="-nostdlib"
24247 fi
24248
24249 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24250 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24251
24252
24253
24254
24255 ## FIXME? The logic here is not precisely the same as that above.
24256 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24257 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24258 LIB_GCC=
24259 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24260
24261 case "$opsys" in
24262 freebsd|netbsd|openbsd) LIB_GCC= ;;
24263
24264 gnu-*)
24265 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24266 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24267 case $host_cpu in
24268 arm*)
24269 LIB_GCC="-lgcc_s"
24270 ;;
24271 *)
24272 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24273 ## immediately undefine it again and redefine it to empty.
24274 ## Was the C_SWITCH_X_SITE part really necessary?
24275 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24276 LIB_GCC=
24277 ;;
24278 esac
24279 ;;
24280
24281 ## Ask GCC where to find libgcc.a.
24282 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24283 esac
24284 fi
24285
24286
24287 ## If we're using X11/GNUstep, define some consequences.
24288 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
24289
24290 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24291
24292
24293 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24294
24295 fi
24296
24297
24298
24299
24300 #### Report on what we decided to do.
24301 #### Report GTK as a toolkit, even if it doesn't use Xt.
24302 #### It makes printing result more understandable as using GTK sets
24303 #### toolkit_scroll_bars to yes by default.
24304 if test "${HAVE_GTK}" = "yes"; then
24305 USE_X_TOOLKIT=GTK
24306 fi
24307
24308 and_machfile=
24309 if test -n "$machfile"; then
24310 and_machfile=" and \`${machfile}'"
24311 fi
24312
24313 echo "
24314 Configured for \`${canonical}'.
24315
24316 Where should the build process find the source code? ${srcdir}
24317 What operating system and machine description files should Emacs use?
24318 \`${opsysfile}'${and_machfile}
24319 What compiler should emacs be built with? ${CC} ${CFLAGS}
24320 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24321 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24322 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24323 What window system should Emacs use? ${window_system}
24324 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24325
24326 if test -n "${x_includes}"; then
24327 echo " Where do we find X Windows header files? ${x_includes}"
24328 else
24329 echo " Where do we find X Windows header files? Standard dirs"
24330 fi
24331 if test -n "${x_libraries}"; then
24332 echo " Where do we find X Windows libraries? ${x_libraries}"
24333 else
24334 echo " Where do we find X Windows libraries? Standard dirs"
24335 fi
24336
24337 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24338 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24339 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24340 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24341 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24342 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24343 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24344 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24345
24346 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24347 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24348 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24349 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24350 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24351 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24352
24353 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24354 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24355 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24356 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24357
24358 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24359 echo
24360
24361 if test -n "${EMACSDATA}"; then
24362 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24363 fi
24364 if test -n "${EMACSDOC}"; then
24365 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24366 fi
24367
24368 if test $USE_XASSERTS = yes; then
24369 echo " Compiling with asserts turned on."
24370 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24371 fi
24372
24373 echo
24374
24375 if test "$HAVE_NS" = "yes"; then
24376 echo
24377 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24378 The installed application will go to nextstep/Emacs.app and can be
24379 run or moved from there."
24380 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24381 echo "The application will be fully self-contained."
24382 else
24383 echo "The lisp resources for the application will be installed under ${prefix}.
24384 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24385 to run if these resources are not installed."
24386 fi
24387 echo
24388 fi
24389
24390
24391 # Remove any trailing slashes in these variables.
24392 test "${prefix}" != NONE &&
24393 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24394 test "${exec_prefix}" != NONE &&
24395 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24396
24397 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"
24398
24399 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"
24400
24401
24402 opt_makefile=test/automated/Makefile
24403
24404 if test -f $srcdir/${opt_makefile}.in; then
24405 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24406 ac_config_files="$ac_config_files test/automated/Makefile"
24407
24408 fi
24409
24410 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24411
24412
24413
24414 ac_config_commands="$ac_config_commands mkdirs"
24415
24416
24417 ac_config_commands="$ac_config_commands epaths"
24418
24419
24420 ac_config_commands="$ac_config_commands gdbinit"
24421
24422
24423 cat >confcache <<\_ACEOF
24424 # This file is a shell script that caches the results of configure
24425 # tests run on this system so they can be shared between configure
24426 # scripts and configure runs, see configure's option --config-cache.
24427 # It is not useful on other systems. If it contains results you don't
24428 # want to keep, you may remove or edit it.
24429 #
24430 # config.status only pays attention to the cache file if you give it
24431 # the --recheck option to rerun configure.
24432 #
24433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24435 # following values.
24436
24437 _ACEOF
24438
24439 # The following way of writing the cache mishandles newlines in values,
24440 # but we know of no workaround that is simple, portable, and efficient.
24441 # So, we kill variables containing newlines.
24442 # Ultrix sh set writes to stderr and can't be redirected directly,
24443 # and sets the high bit in the cache file unless we assign to the vars.
24444 (
24445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24446 eval ac_val=\$$ac_var
24447 case $ac_val in #(
24448 *${as_nl}*)
24449 case $ac_var in #(
24450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24452 esac
24453 case $ac_var in #(
24454 _ | IFS | as_nl) ;; #(
24455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24456 *) { eval $ac_var=; unset $ac_var;} ;;
24457 esac ;;
24458 esac
24459 done
24460
24461 (set) 2>&1 |
24462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24463 *${as_nl}ac_space=\ *)
24464 # `set' does not quote correctly, so add quotes: double-quote
24465 # substitution turns \\\\ into \\, and sed turns \\ into \.
24466 sed -n \
24467 "s/'/'\\\\''/g;
24468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24469 ;; #(
24470 *)
24471 # `set' quotes correctly as required by POSIX, so do not add quotes.
24472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24473 ;;
24474 esac |
24475 sort
24476 ) |
24477 sed '
24478 /^ac_cv_env_/b end
24479 t clear
24480 :clear
24481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24482 t end
24483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24484 :end' >>confcache
24485 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24486 if test -w "$cache_file"; then
24487 test "x$cache_file" != "x/dev/null" &&
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24489 $as_echo "$as_me: updating cache $cache_file" >&6;}
24490 cat confcache >$cache_file
24491 else
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24493 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24494 fi
24495 fi
24496 rm -f confcache
24497
24498 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24499 # Let make expand exec_prefix.
24500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24501
24502 DEFS=-DHAVE_CONFIG_H
24503
24504 ac_libobjs=
24505 ac_ltlibobjs=
24506 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24507 # 1. Remove the extension, and $U if already installed.
24508 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24509 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24510 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24511 # will be set to the directory where LIBOBJS objects are built.
24512 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24513 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24514 done
24515 LIBOBJS=$ac_libobjs
24516
24517 LTLIBOBJS=$ac_ltlibobjs
24518
24519
24520 if test -n "$EXEEXT"; then
24521 am__EXEEXT_TRUE=
24522 am__EXEEXT_FALSE='#'
24523 else
24524 am__EXEEXT_TRUE='#'
24525 am__EXEEXT_FALSE=
24526 fi
24527
24528 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24529 as_fn_error "conditional \"AMDEP\" was never defined.
24530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24531 fi
24532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24533 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24535 fi
24536
24537 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24538 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24540 fi
24541 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24542 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24544 fi
24545
24546 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24547 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24549 fi
24550 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24551 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24553 fi
24554 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24555 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24557 fi
24558 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24559 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24561 fi
24562 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24563 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24565 fi
24566 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24567 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24569 fi
24570 <<<<<<< TREE
24571 <<<<<<< TREE
24572 =======
24573 =======
24574 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24575 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24577 fi
24578 >>>>>>> MERGE-SOURCE
24579 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
24580 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
24581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24582 fi
24583 >>>>>>> MERGE-SOURCE
24584 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24585 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24587 fi
24588 <<<<<<< TREE
24589 =======
24590 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24591 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24593 fi
24594 >>>>>>> MERGE-SOURCE
24595 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24596 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24598 fi
24599 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24600 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24602 fi
24603
24604 gl_libobjs=
24605 gl_ltlibobjs=
24606 if test -n "$gl_LIBOBJS"; then
24607 # Remove the extension.
24608 sed_drop_objext='s/\.o$//;s/\.obj$//'
24609 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24610 gl_libobjs="$gl_libobjs $i.$ac_objext"
24611 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24612 done
24613 fi
24614 gl_LIBOBJS=$gl_libobjs
24615
24616 gl_LTLIBOBJS=$gl_ltlibobjs
24617
24618
24619
24620 gltests_libobjs=
24621 gltests_ltlibobjs=
24622 if test -n "$gltests_LIBOBJS"; then
24623 # Remove the extension.
24624 sed_drop_objext='s/\.o$//;s/\.obj$//'
24625 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24626 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24627 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24628 done
24629 fi
24630 gltests_LIBOBJS=$gltests_libobjs
24631
24632 gltests_LTLIBOBJS=$gltests_ltlibobjs
24633
24634
24635
24636 : ${CONFIG_STATUS=./config.status}
24637 ac_write_fail=0
24638 ac_clean_files_save=$ac_clean_files
24639 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24641 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24642 as_write_fail=0
24643 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24644 #! $SHELL
24645 # Generated by $as_me.
24646 # Run this file to recreate the current configuration.
24647 # Compiler output produced by configure, useful for debugging
24648 # configure, is in config.log if it exists.
24649
24650 debug=false
24651 ac_cs_recheck=false
24652 ac_cs_silent=false
24653
24654 SHELL=\${CONFIG_SHELL-$SHELL}
24655 export SHELL
24656 _ASEOF
24657 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24658 ## -------------------- ##
24659 ## M4sh Initialization. ##
24660 ## -------------------- ##
24661
24662 # Be more Bourne compatible
24663 DUALCASE=1; export DUALCASE # for MKS sh
24664 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24665 emulate sh
24666 NULLCMD=:
24667 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24668 # is contrary to our usage. Disable this feature.
24669 alias -g '${1+"$@"}'='"$@"'
24670 setopt NO_GLOB_SUBST
24671 else
24672 case `(set -o) 2>/dev/null` in #(
24673 *posix*) :
24674 set -o posix ;; #(
24675 *) :
24676 ;;
24677 esac
24678 fi
24679
24680
24681 as_nl='
24682 '
24683 export as_nl
24684 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24685 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24686 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24688 # Prefer a ksh shell builtin over an external printf program on Solaris,
24689 # but without wasting forks for bash or zsh.
24690 if test -z "$BASH_VERSION$ZSH_VERSION" \
24691 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24692 as_echo='print -r --'
24693 as_echo_n='print -rn --'
24694 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24695 as_echo='printf %s\n'
24696 as_echo_n='printf %s'
24697 else
24698 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24699 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24700 as_echo_n='/usr/ucb/echo -n'
24701 else
24702 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24703 as_echo_n_body='eval
24704 arg=$1;
24705 case $arg in #(
24706 *"$as_nl"*)
24707 expr "X$arg" : "X\\(.*\\)$as_nl";
24708 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24709 esac;
24710 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24711 '
24712 export as_echo_n_body
24713 as_echo_n='sh -c $as_echo_n_body as_echo'
24714 fi
24715 export as_echo_body
24716 as_echo='sh -c $as_echo_body as_echo'
24717 fi
24718
24719 # The user is always right.
24720 if test "${PATH_SEPARATOR+set}" != set; then
24721 PATH_SEPARATOR=:
24722 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24723 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24724 PATH_SEPARATOR=';'
24725 }
24726 fi
24727
24728
24729 # IFS
24730 # We need space, tab and new line, in precisely that order. Quoting is
24731 # there to prevent editors from complaining about space-tab.
24732 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24733 # splitting by setting IFS to empty value.)
24734 IFS=" "" $as_nl"
24735
24736 # Find who we are. Look in the path if we contain no directory separator.
24737 case $0 in #((
24738 *[\\/]* ) as_myself=$0 ;;
24739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24740 for as_dir in $PATH
24741 do
24742 IFS=$as_save_IFS
24743 test -z "$as_dir" && as_dir=.
24744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24745 done
24746 IFS=$as_save_IFS
24747
24748 ;;
24749 esac
24750 # We did not find ourselves, most probably we were run as `sh COMMAND'
24751 # in which case we are not to be found in the path.
24752 if test "x$as_myself" = x; then
24753 as_myself=$0
24754 fi
24755 if test ! -f "$as_myself"; then
24756 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24757 exit 1
24758 fi
24759
24760 # Unset variables that we do not need and which cause bugs (e.g. in
24761 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24762 # suppresses any "Segmentation fault" message there. '((' could
24763 # trigger a bug in pdksh 5.2.14.
24764 for as_var in BASH_ENV ENV MAIL MAILPATH
24765 do eval test x\${$as_var+set} = xset \
24766 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24767 done
24768 PS1='$ '
24769 PS2='> '
24770 PS4='+ '
24771
24772 # NLS nuisances.
24773 LC_ALL=C
24774 export LC_ALL
24775 LANGUAGE=C
24776 export LANGUAGE
24777
24778 # CDPATH.
24779 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24780
24781
24782 # as_fn_error ERROR [LINENO LOG_FD]
24783 # ---------------------------------
24784 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24785 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24786 # script with status $?, using 1 if that was 0.
24787 as_fn_error ()
24788 {
24789 as_status=$?; test $as_status -eq 0 && as_status=1
24790 if test "$3"; then
24791 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24792 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24793 fi
24794 $as_echo "$as_me: error: $1" >&2
24795 as_fn_exit $as_status
24796 } # as_fn_error
24797
24798
24799 # as_fn_set_status STATUS
24800 # -----------------------
24801 # Set $? to STATUS, without forking.
24802 as_fn_set_status ()
24803 {
24804 return $1
24805 } # as_fn_set_status
24806
24807 # as_fn_exit STATUS
24808 # -----------------
24809 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24810 as_fn_exit ()
24811 {
24812 set +e
24813 as_fn_set_status $1
24814 exit $1
24815 } # as_fn_exit
24816
24817 # as_fn_unset VAR
24818 # ---------------
24819 # Portably unset VAR.
24820 as_fn_unset ()
24821 {
24822 { eval $1=; unset $1;}
24823 }
24824 as_unset=as_fn_unset
24825 # as_fn_append VAR VALUE
24826 # ----------------------
24827 # Append the text in VALUE to the end of the definition contained in VAR. Take
24828 # advantage of any shell optimizations that allow amortized linear growth over
24829 # repeated appends, instead of the typical quadratic growth present in naive
24830 # implementations.
24831 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24832 eval 'as_fn_append ()
24833 {
24834 eval $1+=\$2
24835 }'
24836 else
24837 as_fn_append ()
24838 {
24839 eval $1=\$$1\$2
24840 }
24841 fi # as_fn_append
24842
24843 # as_fn_arith ARG...
24844 # ------------------
24845 # Perform arithmetic evaluation on the ARGs, and store the result in the
24846 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24847 # must be portable across $(()) and expr.
24848 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24849 eval 'as_fn_arith ()
24850 {
24851 as_val=$(( $* ))
24852 }'
24853 else
24854 as_fn_arith ()
24855 {
24856 as_val=`expr "$@" || test $? -eq 1`
24857 }
24858 fi # as_fn_arith
24859
24860
24861 if expr a : '\(a\)' >/dev/null 2>&1 &&
24862 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24863 as_expr=expr
24864 else
24865 as_expr=false
24866 fi
24867
24868 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24869 as_basename=basename
24870 else
24871 as_basename=false
24872 fi
24873
24874 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24875 as_dirname=dirname
24876 else
24877 as_dirname=false
24878 fi
24879
24880 as_me=`$as_basename -- "$0" ||
24881 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24882 X"$0" : 'X\(//\)$' \| \
24883 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24884 $as_echo X/"$0" |
24885 sed '/^.*\/\([^/][^/]*\)\/*$/{
24886 s//\1/
24887 q
24888 }
24889 /^X\/\(\/\/\)$/{
24890 s//\1/
24891 q
24892 }
24893 /^X\/\(\/\).*/{
24894 s//\1/
24895 q
24896 }
24897 s/.*/./; q'`
24898
24899 # Avoid depending upon Character Ranges.
24900 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24901 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24902 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24903 as_cr_digits='0123456789'
24904 as_cr_alnum=$as_cr_Letters$as_cr_digits
24905
24906 ECHO_C= ECHO_N= ECHO_T=
24907 case `echo -n x` in #(((((
24908 -n*)
24909 case `echo 'xy\c'` in
24910 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24911 xy) ECHO_C='\c';;
24912 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24913 ECHO_T=' ';;
24914 esac;;
24915 *)
24916 ECHO_N='-n';;
24917 esac
24918
24919 rm -f conf$$ conf$$.exe conf$$.file
24920 if test -d conf$$.dir; then
24921 rm -f conf$$.dir/conf$$.file
24922 else
24923 rm -f conf$$.dir
24924 mkdir conf$$.dir 2>/dev/null
24925 fi
24926 if (echo >conf$$.file) 2>/dev/null; then
24927 if ln -s conf$$.file conf$$ 2>/dev/null; then
24928 as_ln_s='ln -s'
24929 # ... but there are two gotchas:
24930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24932 # In both cases, we have to default to `cp -p'.
24933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24934 as_ln_s='cp -p'
24935 elif ln conf$$.file conf$$ 2>/dev/null; then
24936 as_ln_s=ln
24937 else
24938 as_ln_s='cp -p'
24939 fi
24940 else
24941 as_ln_s='cp -p'
24942 fi
24943 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24944 rmdir conf$$.dir 2>/dev/null
24945
24946
24947 # as_fn_mkdir_p
24948 # -------------
24949 # Create "$as_dir" as a directory, including parents if necessary.
24950 as_fn_mkdir_p ()
24951 {
24952
24953 case $as_dir in #(
24954 -*) as_dir=./$as_dir;;
24955 esac
24956 test -d "$as_dir" || eval $as_mkdir_p || {
24957 as_dirs=
24958 while :; do
24959 case $as_dir in #(
24960 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24961 *) as_qdir=$as_dir;;
24962 esac
24963 as_dirs="'$as_qdir' $as_dirs"
24964 as_dir=`$as_dirname -- "$as_dir" ||
24965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24966 X"$as_dir" : 'X\(//\)[^/]' \| \
24967 X"$as_dir" : 'X\(//\)$' \| \
24968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24969 $as_echo X"$as_dir" |
24970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24971 s//\1/
24972 q
24973 }
24974 /^X\(\/\/\)[^/].*/{
24975 s//\1/
24976 q
24977 }
24978 /^X\(\/\/\)$/{
24979 s//\1/
24980 q
24981 }
24982 /^X\(\/\).*/{
24983 s//\1/
24984 q
24985 }
24986 s/.*/./; q'`
24987 test -d "$as_dir" && break
24988 done
24989 test -z "$as_dirs" || eval "mkdir $as_dirs"
24990 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24991
24992
24993 } # as_fn_mkdir_p
24994 if mkdir -p . 2>/dev/null; then
24995 as_mkdir_p='mkdir -p "$as_dir"'
24996 else
24997 test -d ./-p && rmdir ./-p
24998 as_mkdir_p=false
24999 fi
25000
25001 if test -x / >/dev/null 2>&1; then
25002 as_test_x='test -x'
25003 else
25004 if ls -dL / >/dev/null 2>&1; then
25005 as_ls_L_option=L
25006 else
25007 as_ls_L_option=
25008 fi
25009 as_test_x='
25010 eval sh -c '\''
25011 if test -d "$1"; then
25012 test -d "$1/.";
25013 else
25014 case $1 in #(
25015 -*)set "./$1";;
25016 esac;
25017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25018 ???[sx]*):;;*)false;;esac;fi
25019 '\'' sh
25020 '
25021 fi
25022 as_executable_p=$as_test_x
25023
25024 # Sed expression to map a string onto a valid CPP name.
25025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25026
25027 # Sed expression to map a string onto a valid variable name.
25028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25029
25030
25031 exec 6>&1
25032 ## ----------------------------------- ##
25033 ## Main body of $CONFIG_STATUS script. ##
25034 ## ----------------------------------- ##
25035 _ASEOF
25036 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25037
25038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25039 # Save the log message, to keep $0 and so on meaningful, and to
25040 # report actual input values of CONFIG_FILES etc. instead of their
25041 # values after options handling.
25042 ac_log="
25043 This file was extended by emacs $as_me 24.0.94, which was
25044 generated by GNU Autoconf 2.65. Invocation command line was
25045
25046 CONFIG_FILES = $CONFIG_FILES
25047 CONFIG_HEADERS = $CONFIG_HEADERS
25048 CONFIG_LINKS = $CONFIG_LINKS
25049 CONFIG_COMMANDS = $CONFIG_COMMANDS
25050 $ $0 $@
25051
25052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25053 "
25054
25055 _ACEOF
25056
25057 case $ac_config_files in *"
25058 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25059 esac
25060
25061 case $ac_config_headers in *"
25062 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25063 esac
25064
25065
25066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25067 # Files that config.status was made for.
25068 config_files="$ac_config_files"
25069 config_headers="$ac_config_headers"
25070 config_commands="$ac_config_commands"
25071
25072 _ACEOF
25073
25074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25075 ac_cs_usage="\
25076 \`$as_me' instantiates files and other configuration actions
25077 from templates according to the current configuration. Unless the files
25078 and actions are specified as TAGs, all are instantiated by default.
25079
25080 Usage: $0 [OPTION]... [TAG]...
25081
25082 -h, --help print this help, then exit
25083 -V, --version print version number and configuration settings, then exit
25084 --config print configuration, then exit
25085 -q, --quiet, --silent
25086 do not print progress messages
25087 -d, --debug don't remove temporary files
25088 --recheck update $as_me by reconfiguring in the same conditions
25089 --file=FILE[:TEMPLATE]
25090 instantiate the configuration file FILE
25091 --header=FILE[:TEMPLATE]
25092 instantiate the configuration header FILE
25093
25094 Configuration files:
25095 $config_files
25096
25097 Configuration headers:
25098 $config_headers
25099
25100 Configuration commands:
25101 $config_commands
25102
25103 Report bugs to the package provider."
25104
25105 _ACEOF
25106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25107 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25108 ac_cs_version="\\
25109 emacs config.status 24.0.94
25110 configured by $0, generated by GNU Autoconf 2.65,
25111 with options \\"\$ac_cs_config\\"
25112
25113 Copyright (C) 2009 Free Software Foundation, Inc.
25114 This config.status script is free software; the Free Software Foundation
25115 gives unlimited permission to copy, distribute and modify it."
25116
25117 ac_pwd='$ac_pwd'
25118 srcdir='$srcdir'
25119 INSTALL='$INSTALL'
25120 MKDIR_P='$MKDIR_P'
25121 AWK='$AWK'
25122 test -n "\$AWK" || AWK=awk
25123 _ACEOF
25124
25125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25126 # The default lists apply if the user does not specify any file.
25127 ac_need_defaults=:
25128 while test $# != 0
25129 do
25130 case $1 in
25131 --*=*)
25132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25133 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25134 ac_shift=:
25135 ;;
25136 *)
25137 ac_option=$1
25138 ac_optarg=$2
25139 ac_shift=shift
25140 ;;
25141 esac
25142
25143 case $ac_option in
25144 # Handling of the options.
25145 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25146 ac_cs_recheck=: ;;
25147 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25148 $as_echo "$ac_cs_version"; exit ;;
25149 --config | --confi | --conf | --con | --co | --c )
25150 $as_echo "$ac_cs_config"; exit ;;
25151 --debug | --debu | --deb | --de | --d | -d )
25152 debug=: ;;
25153 --file | --fil | --fi | --f )
25154 $ac_shift
25155 case $ac_optarg in
25156 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25157 esac
25158 as_fn_append CONFIG_FILES " '$ac_optarg'"
25159 ac_need_defaults=false;;
25160 --header | --heade | --head | --hea )
25161 $ac_shift
25162 case $ac_optarg in
25163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25164 esac
25165 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25166 ac_need_defaults=false;;
25167 --he | --h)
25168 # Conflict between --help and --header
25169 as_fn_error "ambiguous option: \`$1'
25170 Try \`$0 --help' for more information.";;
25171 --help | --hel | -h )
25172 $as_echo "$ac_cs_usage"; exit ;;
25173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25174 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25175 ac_cs_silent=: ;;
25176
25177 # This is an error.
25178 -*) as_fn_error "unrecognized option: \`$1'
25179 Try \`$0 --help' for more information." ;;
25180
25181 *) as_fn_append ac_config_targets " $1"
25182 ac_need_defaults=false ;;
25183
25184 esac
25185 shift
25186 done
25187
25188 ac_configure_extra_args=
25189
25190 if $ac_cs_silent; then
25191 exec 6>/dev/null
25192 ac_configure_extra_args="$ac_configure_extra_args --silent"
25193 fi
25194
25195 _ACEOF
25196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25197 if \$ac_cs_recheck; then
25198 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25199 shift
25200 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25201 CONFIG_SHELL='$SHELL'
25202 export CONFIG_SHELL
25203 exec "\$@"
25204 fi
25205
25206 _ACEOF
25207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25208 exec 5>>config.log
25209 {
25210 echo
25211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25212 ## Running $as_me. ##
25213 _ASBOX
25214 $as_echo "$ac_log"
25215 } >&5
25216
25217 _ACEOF
25218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25219 #
25220 # INIT-COMMANDS
25221 #
25222 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25223 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
25224
25225 _ACEOF
25226
25227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25228
25229 # Handling of arguments.
25230 for ac_config_target in $ac_config_targets
25231 do
25232 case $ac_config_target in
25233 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25234 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25235 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25236 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25237 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25238 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25239 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25240 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25241 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25242 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25243 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25244 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25245 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25246 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25247 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25248 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25249 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25250 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25251
25252 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25253 esac
25254 done
25255
25256
25257 # If the user did not use the arguments to specify the items to instantiate,
25258 # then the envvar interface is used. Set only those that are not.
25259 # We use the long form for the default assignment because of an extremely
25260 # bizarre bug on SunOS 4.1.3.
25261 if $ac_need_defaults; then
25262 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25263 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25265 fi
25266
25267 # Have a temporary directory for convenience. Make it in the build tree
25268 # simply because there is no reason against having it here, and in addition,
25269 # creating and moving files from /tmp can sometimes cause problems.
25270 # Hook for its removal unless debugging.
25271 # Note that there is a small window in which the directory will not be cleaned:
25272 # after its creation but before its name has been assigned to `$tmp'.
25273 $debug ||
25274 {
25275 tmp=
25276 trap 'exit_status=$?
25277 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25278 ' 0
25279 trap 'as_fn_exit 1' 1 2 13 15
25280 }
25281 # Create a (secure) tmp directory for tmp files.
25282
25283 {
25284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25285 test -n "$tmp" && test -d "$tmp"
25286 } ||
25287 {
25288 tmp=./conf$$-$RANDOM
25289 (umask 077 && mkdir "$tmp")
25290 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25291
25292 # Set up the scripts for CONFIG_FILES section.
25293 # No need to generate them if there are no CONFIG_FILES.
25294 # This happens for instance with `./config.status config.h'.
25295 if test -n "$CONFIG_FILES"; then
25296
25297 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25298 ac_cs_awk_getline=:
25299 ac_cs_awk_pipe_init=
25300 ac_cs_awk_read_file='
25301 while ((getline aline < (F[key])) > 0)
25302 print(aline)
25303 close(F[key])'
25304 ac_cs_awk_pipe_fini=
25305 else
25306 ac_cs_awk_getline=false
25307 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25308 ac_cs_awk_read_file='
25309 print "|#_!!_#|"
25310 print "cat " F[key] " &&"
25311 '$ac_cs_awk_pipe_init
25312 # The final `:' finishes the AND list.
25313 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25314 fi
25315 ac_cr=`echo X | tr X '\015'`
25316 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25317 # But we know of no other shell where ac_cr would be empty at this
25318 # point, so we can use a bashism as a fallback.
25319 if test "x$ac_cr" = x; then
25320 eval ac_cr=\$\'\\r\'
25321 fi
25322 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25323 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25324 ac_cs_awk_cr='\r'
25325 else
25326 ac_cs_awk_cr=$ac_cr
25327 fi
25328
25329 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25330 _ACEOF
25331
25332 # Create commands to substitute file output variables.
25333 {
25334 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25335 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25336 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25337 echo "_ACAWK" &&
25338 echo "_ACEOF"
25339 } >conf$$files.sh &&
25340 . ./conf$$files.sh ||
25341 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25342 rm -f conf$$files.sh
25343
25344 {
25345 echo "cat >conf$$subs.awk <<_ACEOF" &&
25346 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25347 echo "_ACEOF"
25348 } >conf$$subs.sh ||
25349 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25350 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25351 ac_delim='%!_!# '
25352 for ac_last_try in false false false false false :; do
25353 . ./conf$$subs.sh ||
25354 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25355
25356 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25357 if test $ac_delim_n = $ac_delim_num; then
25358 break
25359 elif $ac_last_try; then
25360 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25361 else
25362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25363 fi
25364 done
25365 rm -f conf$$subs.sh
25366
25367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25368 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25369 _ACEOF
25370 sed -n '
25371 h
25372 s/^/S["/; s/!.*/"]=/
25373 p
25374 g
25375 s/^[^!]*!//
25376 :repl
25377 t repl
25378 s/'"$ac_delim"'$//
25379 t delim
25380 :nl
25381 h
25382 s/\(.\{148\}\)..*/\1/
25383 t more1
25384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25385 p
25386 n
25387 b repl
25388 :more1
25389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25390 p
25391 g
25392 s/.\{148\}//
25393 t nl
25394 :delim
25395 h
25396 s/\(.\{148\}\)..*/\1/
25397 t more2
25398 s/["\\]/\\&/g; s/^/"/; s/$/"/
25399 p
25400 b
25401 :more2
25402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25403 p
25404 g
25405 s/.\{148\}//
25406 t delim
25407 ' <conf$$subs.awk | sed '
25408 /^[^""]/{
25409 N
25410 s/\n//
25411 }
25412 ' >>$CONFIG_STATUS || ac_write_fail=1
25413 rm -f conf$$subs.awk
25414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25415 _ACAWK
25416 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25417 for (key in S) S_is_set[key] = 1
25418 FS = "\a"
25419 \$ac_cs_awk_pipe_init
25420 }
25421 {
25422 line = $ 0
25423 nfields = split(line, field, "@")
25424 substed = 0
25425 len = length(field[1])
25426 for (i = 2; i < nfields; i++) {
25427 key = field[i]
25428 keylen = length(key)
25429 if (S_is_set[key]) {
25430 value = S[key]
25431 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25432 len += length(value) + length(field[++i])
25433 substed = 1
25434 } else
25435 len += 1 + keylen
25436 }
25437 if (nfields == 3 && !substed) {
25438 key = field[2]
25439 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25440 \$ac_cs_awk_read_file
25441 next
25442 }
25443 }
25444 print line
25445 }
25446 \$ac_cs_awk_pipe_fini
25447 _ACAWK
25448 _ACEOF
25449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25450 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25451 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25452 else
25453 cat
25454 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25455 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25456 _ACEOF
25457
25458 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25459 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25460 # trailing colons and then remove the whole line if VPATH becomes empty
25461 # (actually we leave an empty line to preserve line numbers).
25462 if test "x$srcdir" = x.; then
25463 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25464 s/:*\$(srcdir):*/:/
25465 s/:*\${srcdir}:*/:/
25466 s/:*@srcdir@:*/:/
25467 s/^\([^=]*=[ ]*\):*/\1/
25468 s/:*$//
25469 s/^[^=]*=[ ]*$//
25470 }'
25471 fi
25472
25473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25474 fi # test -n "$CONFIG_FILES"
25475
25476 # Set up the scripts for CONFIG_HEADERS section.
25477 # No need to generate them if there are no CONFIG_HEADERS.
25478 # This happens for instance with `./config.status Makefile'.
25479 if test -n "$CONFIG_HEADERS"; then
25480 cat >"$tmp/defines.awk" <<\_ACAWK ||
25481 BEGIN {
25482 _ACEOF
25483
25484 # Transform confdefs.h into an awk script `defines.awk', embedded as
25485 # here-document in config.status, that substitutes the proper values into
25486 # config.h.in to produce config.h.
25487
25488 # Create a delimiter string that does not exist in confdefs.h, to ease
25489 # handling of long lines.
25490 ac_delim='%!_!# '
25491 for ac_last_try in false false :; do
25492 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25493 if test -z "$ac_t"; then
25494 break
25495 elif $ac_last_try; then
25496 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25497 else
25498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25499 fi
25500 done
25501
25502 # For the awk script, D is an array of macro values keyed by name,
25503 # likewise P contains macro parameters if any. Preserve backslash
25504 # newline sequences.
25505
25506 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25507 sed -n '
25508 s/.\{148\}/&'"$ac_delim"'/g
25509 t rset
25510 :rset
25511 s/^[ ]*#[ ]*define[ ][ ]*/ /
25512 t def
25513 d
25514 :def
25515 s/\\$//
25516 t bsnl
25517 s/["\\]/\\&/g
25518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25519 D["\1"]=" \3"/p
25520 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25521 d
25522 :bsnl
25523 s/["\\]/\\&/g
25524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25525 D["\1"]=" \3\\\\\\n"\\/p
25526 t cont
25527 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25528 t cont
25529 d
25530 :cont
25531 n
25532 s/.\{148\}/&'"$ac_delim"'/g
25533 t clear
25534 :clear
25535 s/\\$//
25536 t bsnlc
25537 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25538 d
25539 :bsnlc
25540 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25541 b cont
25542 ' <confdefs.h | sed '
25543 s/'"$ac_delim"'/"\\\
25544 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25545
25546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25547 for (key in D) D_is_set[key] = 1
25548 FS = "\a"
25549 }
25550 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25551 line = \$ 0
25552 split(line, arg, " ")
25553 if (arg[1] == "#") {
25554 defundef = arg[2]
25555 mac1 = arg[3]
25556 } else {
25557 defundef = substr(arg[1], 2)
25558 mac1 = arg[2]
25559 }
25560 split(mac1, mac2, "(") #)
25561 macro = mac2[1]
25562 prefix = substr(line, 1, index(line, defundef) - 1)
25563 if (D_is_set[macro]) {
25564 # Preserve the white space surrounding the "#".
25565 print prefix "define", macro P[macro] D[macro]
25566 next
25567 } else {
25568 # Replace #undef with comments. This is necessary, for example,
25569 # in the case of _POSIX_SOURCE, which is predefined and required
25570 # on some systems where configure will not decide to define it.
25571 if (defundef == "undef") {
25572 print "/*", prefix defundef, macro, "*/"
25573 next
25574 }
25575 }
25576 }
25577 { print }
25578 _ACAWK
25579 _ACEOF
25580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25581 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25582 fi # test -n "$CONFIG_HEADERS"
25583
25584
25585 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25586 shift
25587 for ac_tag
25588 do
25589 case $ac_tag in
25590 :[FHLC]) ac_mode=$ac_tag; continue;;
25591 esac
25592 case $ac_mode$ac_tag in
25593 :[FHL]*:*);;
25594 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25595 :[FH]-) ac_tag=-:-;;
25596 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25597 esac
25598 ac_save_IFS=$IFS
25599 IFS=:
25600 set x $ac_tag
25601 IFS=$ac_save_IFS
25602 shift
25603 ac_file=$1
25604 shift
25605
25606 case $ac_mode in
25607 :L) ac_source=$1;;
25608 :[FH])
25609 ac_file_inputs=
25610 for ac_f
25611 do
25612 case $ac_f in
25613 -) ac_f="$tmp/stdin";;
25614 *) # Look for the file first in the build tree, then in the source tree
25615 # (if the path is not absolute). The absolute path cannot be DOS-style,
25616 # because $ac_f cannot contain `:'.
25617 test -f "$ac_f" ||
25618 case $ac_f in
25619 [\\/$]*) false;;
25620 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25621 esac ||
25622 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25623 esac
25624 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25625 as_fn_append ac_file_inputs " '$ac_f'"
25626 done
25627
25628 # Let's still pretend it is `configure' which instantiates (i.e., don't
25629 # use $as_me), people would be surprised to read:
25630 # /* config.h. Generated by config.status. */
25631 configure_input='Generated from '`
25632 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25633 `' by configure.'
25634 if test x"$ac_file" != x-; then
25635 configure_input="$ac_file. $configure_input"
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25637 $as_echo "$as_me: creating $ac_file" >&6;}
25638 fi
25639 # Neutralize special characters interpreted by sed in replacement strings.
25640 case $configure_input in #(
25641 *\&* | *\|* | *\\* )
25642 ac_sed_conf_input=`$as_echo "$configure_input" |
25643 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25644 *) ac_sed_conf_input=$configure_input;;
25645 esac
25646
25647 case $ac_tag in
25648 *:-:* | *:-) cat >"$tmp/stdin" \
25649 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25650 esac
25651 ;;
25652 esac
25653
25654 ac_dir=`$as_dirname -- "$ac_file" ||
25655 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25656 X"$ac_file" : 'X\(//\)[^/]' \| \
25657 X"$ac_file" : 'X\(//\)$' \| \
25658 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25659 $as_echo X"$ac_file" |
25660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25661 s//\1/
25662 q
25663 }
25664 /^X\(\/\/\)[^/].*/{
25665 s//\1/
25666 q
25667 }
25668 /^X\(\/\/\)$/{
25669 s//\1/
25670 q
25671 }
25672 /^X\(\/\).*/{
25673 s//\1/
25674 q
25675 }
25676 s/.*/./; q'`
25677 as_dir="$ac_dir"; as_fn_mkdir_p
25678 ac_builddir=.
25679
25680 case "$ac_dir" in
25681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25682 *)
25683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25684 # A ".." for each directory in $ac_dir_suffix.
25685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25686 case $ac_top_builddir_sub in
25687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25689 esac ;;
25690 esac
25691 ac_abs_top_builddir=$ac_pwd
25692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25693 # for backward compatibility:
25694 ac_top_builddir=$ac_top_build_prefix
25695
25696 case $srcdir in
25697 .) # We are building in place.
25698 ac_srcdir=.
25699 ac_top_srcdir=$ac_top_builddir_sub
25700 ac_abs_top_srcdir=$ac_pwd ;;
25701 [\\/]* | ?:[\\/]* ) # Absolute name.
25702 ac_srcdir=$srcdir$ac_dir_suffix;
25703 ac_top_srcdir=$srcdir
25704 ac_abs_top_srcdir=$srcdir ;;
25705 *) # Relative name.
25706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25707 ac_top_srcdir=$ac_top_build_prefix$srcdir
25708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25709 esac
25710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25711
25712
25713 case $ac_mode in
25714 :F)
25715 #
25716 # CONFIG_FILE
25717 #
25718
25719 case $INSTALL in
25720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25721 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25722 esac
25723 ac_MKDIR_P=$MKDIR_P
25724 case $MKDIR_P in
25725 [\\/$]* | ?:[\\/]* ) ;;
25726 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25727 esac
25728 _ACEOF
25729
25730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25731 # If the template does not know about datarootdir, expand it.
25732 # FIXME: This hack should be removed a few years after 2.60.
25733 ac_datarootdir_hack=; ac_datarootdir_seen=
25734 ac_sed_dataroot='
25735 /datarootdir/ {
25736 p
25737 q
25738 }
25739 /@datadir@/p
25740 /@docdir@/p
25741 /@infodir@/p
25742 /@localedir@/p
25743 /@mandir@/p'
25744 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25745 *datarootdir*) ac_datarootdir_seen=yes;;
25746 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25748 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25749 _ACEOF
25750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25751 ac_datarootdir_hack='
25752 s&@datadir@&$datadir&g
25753 s&@docdir@&$docdir&g
25754 s&@infodir@&$infodir&g
25755 s&@localedir@&$localedir&g
25756 s&@mandir@&$mandir&g
25757 s&\\\${datarootdir}&$datarootdir&g' ;;
25758 esac
25759 _ACEOF
25760
25761 # Neutralize VPATH when `$srcdir' = `.'.
25762 # Shell code in configure.ac might set extrasub.
25763 # FIXME: do we really want to maintain this feature?
25764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25765 ac_sed_extra="$ac_vpsub
25766 $extrasub
25767 _ACEOF
25768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25769 :t
25770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25771 s|@configure_input@|$ac_sed_conf_input|;t t
25772 s&@top_builddir@&$ac_top_builddir_sub&;t t
25773 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25774 s&@srcdir@&$ac_srcdir&;t t
25775 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25776 s&@top_srcdir@&$ac_top_srcdir&;t t
25777 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25778 s&@builddir@&$ac_builddir&;t t
25779 s&@abs_builddir@&$ac_abs_builddir&;t t
25780 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25781 s&@INSTALL@&$ac_INSTALL&;t t
25782 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25783 $ac_datarootdir_hack
25784 "
25785 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25786 if $ac_cs_awk_getline; then
25787 $AWK -f "$tmp/subs.awk"
25788 else
25789 $AWK -f "$tmp/subs.awk" | $SHELL
25790 fi >$tmp/out \
25791 || as_fn_error "could not create $ac_file" "$LINENO" 5
25792
25793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25794 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25797 which seems to be undefined. Please make sure it is defined." >&5
25798 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25799 which seems to be undefined. Please make sure it is defined." >&2;}
25800
25801 rm -f "$tmp/stdin"
25802 case $ac_file in
25803 -) cat "$tmp/out" && rm -f "$tmp/out";;
25804 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25805 esac \
25806 || as_fn_error "could not create $ac_file" "$LINENO" 5
25807 ;;
25808 :H)
25809 #
25810 # CONFIG_HEADER
25811 #
25812 if test x"$ac_file" != x-; then
25813 {
25814 $as_echo "/* $configure_input */" \
25815 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25816 } >"$tmp/config.h" \
25817 || as_fn_error "could not create $ac_file" "$LINENO" 5
25818 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25820 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25821 else
25822 rm -f "$ac_file"
25823 mv "$tmp/config.h" "$ac_file" \
25824 || as_fn_error "could not create $ac_file" "$LINENO" 5
25825 fi
25826 else
25827 $as_echo "/* $configure_input */" \
25828 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25829 || as_fn_error "could not create -" "$LINENO" 5
25830 fi
25831 # Compute "$ac_file"'s index in $config_headers.
25832 _am_arg="$ac_file"
25833 _am_stamp_count=1
25834 for _am_header in $config_headers :; do
25835 case $_am_header in
25836 $_am_arg | $_am_arg:* )
25837 break ;;
25838 * )
25839 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25840 esac
25841 done
25842 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25843 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25844 X"$_am_arg" : 'X\(//\)[^/]' \| \
25845 X"$_am_arg" : 'X\(//\)$' \| \
25846 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25847 $as_echo X"$_am_arg" |
25848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25849 s//\1/
25850 q
25851 }
25852 /^X\(\/\/\)[^/].*/{
25853 s//\1/
25854 q
25855 }
25856 /^X\(\/\/\)$/{
25857 s//\1/
25858 q
25859 }
25860 /^X\(\/\).*/{
25861 s//\1/
25862 q
25863 }
25864 s/.*/./; q'`/stamp-h$_am_stamp_count
25865 ;;
25866
25867 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25868 $as_echo "$as_me: executing $ac_file commands" >&6;}
25869 ;;
25870 esac
25871
25872
25873 case $ac_file$ac_mode in
25874 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25875 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25876 # are listed without --file. Let's play safe and only enable the eval
25877 # if we detect the quoting.
25878 case $CONFIG_FILES in
25879 *\'*) eval set x "$CONFIG_FILES" ;;
25880 *) set x $CONFIG_FILES ;;
25881 esac
25882 shift
25883 for mf
25884 do
25885 # Strip MF so we end up with the name of the file.
25886 mf=`echo "$mf" | sed -e 's/:.*$//'`
25887 # Check whether this is an Automake generated Makefile or not.
25888 # We used to match only the files named `Makefile.in', but
25889 # some people rename them; so instead we look at the file content.
25890 # Grep'ing the first line is not enough: some people post-process
25891 # each Makefile.in and add a new line on top of each file to say so.
25892 # Grep'ing the whole file is not good either: AIX grep has a line
25893 # limit of 2048, but all sed's we know have understand at least 4000.
25894 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25895 dirpart=`$as_dirname -- "$mf" ||
25896 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25897 X"$mf" : 'X\(//\)[^/]' \| \
25898 X"$mf" : 'X\(//\)$' \| \
25899 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25900 $as_echo X"$mf" |
25901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25902 s//\1/
25903 q
25904 }
25905 /^X\(\/\/\)[^/].*/{
25906 s//\1/
25907 q
25908 }
25909 /^X\(\/\/\)$/{
25910 s//\1/
25911 q
25912 }
25913 /^X\(\/\).*/{
25914 s//\1/
25915 q
25916 }
25917 s/.*/./; q'`
25918 else
25919 continue
25920 fi
25921 # Extract the definition of DEPDIR, am__include, and am__quote
25922 # from the Makefile without running `make'.
25923 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25924 test -z "$DEPDIR" && continue
25925 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25926 test -z "am__include" && continue
25927 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25928 # When using ansi2knr, U may be empty or an underscore; expand it
25929 U=`sed -n 's/^U = //p' < "$mf"`
25930 # Find all dependency output files, they are included files with
25931 # $(DEPDIR) in their names. We invoke sed twice because it is the
25932 # simplest approach to changing $(DEPDIR) to its actual value in the
25933 # expansion.
25934 for file in `sed -n "
25935 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25936 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25937 # Make sure the directory exists.
25938 test -f "$dirpart/$file" && continue
25939 fdir=`$as_dirname -- "$file" ||
25940 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25941 X"$file" : 'X\(//\)[^/]' \| \
25942 X"$file" : 'X\(//\)$' \| \
25943 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25944 $as_echo X"$file" |
25945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25946 s//\1/
25947 q
25948 }
25949 /^X\(\/\/\)[^/].*/{
25950 s//\1/
25951 q
25952 }
25953 /^X\(\/\/\)$/{
25954 s//\1/
25955 q
25956 }
25957 /^X\(\/\).*/{
25958 s//\1/
25959 q
25960 }
25961 s/.*/./; q'`
25962 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25963 # echo "creating $dirpart/$file"
25964 echo '# dummy' > "$dirpart/$file"
25965 done
25966 done
25967 }
25968 ;;
25969 "mkdirs":C)
25970 for dir in etc lisp ; do
25971 test -d ${dir} || mkdir ${dir}
25972 done
25973 ;;
25974 "epaths":C)
25975 echo creating src/epaths.h
25976 ${MAKE-make} epaths-force
25977 ;;
25978 "gdbinit":C)
25979 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25980 echo creating src/.gdbinit
25981 echo source $srcdir/src/.gdbinit > src/.gdbinit
25982 fi
25983 ;;
25984
25985 esac
25986 done # for ac_tag
25987
25988
25989 as_fn_exit 0
25990 _ACEOF
25991 ac_clean_files=$ac_clean_files_save
25992
25993 test $ac_write_fail = 0 ||
25994 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25995
25996
25997 # configure is writing to config.log, and then calls config.status.
25998 # config.status does its own redirection, appending to config.log.
25999 # Unfortunately, on DOS this fails, as config.log is still kept open
26000 # by configure, so config.status won't be able to write to it; its
26001 # output is simply discarded. So we exec the FD to /dev/null,
26002 # effectively closing config.log, so it can be properly (re)opened and
26003 # appended to by config.status. When coming back to configure, we
26004 # need to make the FD available again.
26005 if test "$no_create" != yes; then
26006 ac_cs_success=:
26007 ac_config_status_args=
26008 test "$silent" = yes &&
26009 ac_config_status_args="$ac_config_status_args --quiet"
26010 exec 5>/dev/null
26011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26012 exec 5>>config.log
26013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26014 # would make configure fail if this is the last instruction.
26015 $ac_cs_success || as_fn_exit $?
26016 fi
26017 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26019 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26020 fi
26021
26022